/* Living app — "Homepage - Week view" (Figma frame 80:226348, 390 x 2606).
   Static, decorative recreation shown inside the case-study scroll preview.
   Every class is prefixed `app-`; colors live only in the custom properties below. */

.app {
  --app-white: #ffffff;
  --app-surface: #efefef;
  --app-fg: #292929;
  --app-muted: #7c7c7c;
  --app-muted-soft: #989898;
  --app-brand: #e8533b;
  --app-date-yellow-bg: #fdeec8;
  --app-date-yellow-fg: #441404;
  --app-date-red-bg: #fde7e3;
  --app-date-red-fg: #43140c;
  --app-card-red: #e8533b;
  --app-card-yellow: #f9b034;
  --app-shadow: rgba(41, 41, 41, 0.1);
  --app-axis: #656565;                  /* life calendar labels */
  --app-dot: rgba(101, 101, 101, 0.2);  /* empty week dot */
  --app-week-orange: #f0691f;
  --app-week-blue: #4e81c8;
  --app-week-purple: #8073dc;
  --app-shape-lime: #cccd10;            /* paint screen color swatches */
  --app-shape-green: #519378;
  --app-shape-pink: #f07596;
  --app-shape-brown: #654535;
  --app-disabled: #bdbdbd;              /* muted (disabled) icon buttons */

  --app-inner-xs: inset 0 0 4px 0 var(--app-shadow);
  --app-inner-sm: inset 0 0 16px 0 var(--app-shadow);
  --app-drop-sm: drop-shadow(2px 2px 8px var(--app-shadow));
  --app-drop-md: drop-shadow(4px 4px 16px var(--app-shadow));

  /* The phone: 406px wide (the 390px screen plus the header's 8px overhang on
     each side), white, rounded 32px and clipping its content — so nothing
     (like the header's square gray panel) pokes out at the corners */
  position: relative;
  left: calc(50% - 203px); /* centered in the preview at any width (129px in the 664px desktop preview) */
  width: 406px;
  padding: 8px 8px 0; /* an even 8px white frame along the top and sides */
  margin-top: 32px;
  margin-bottom: 32px;
  background: var(--app-white);
  border-radius: 32px;
  overflow: clip;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.1); /* Figma 80:226430: every phone mock casts this soft shadow */
  color: var(--app-fg);
  font-family: "Radio Canada Big", system-ui, sans-serif;
  font-weight: 400;
}

.app *,
.app *::before,
.app *::after {
  box-sizing: border-box;
}

.app p {
  margin: 0;
}

.app img {
  display: block;
  max-width: none;
}

/* Masked icon: color comes from background, shape from the SVG */
.app-mask {
  display: block;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.app-mask--16 { width: 16px; height: 16px; -webkit-mask-size: 16px 16px; mask-size: 16px 16px; }
.app-mask--24 { width: 24px; height: 24px; -webkit-mask-size: 24px 24px; mask-size: 24px 24px; }
.app-mask--32 { width: 32px; height: 32px; -webkit-mask-size: 32px 32px; mask-size: 32px 32px; }

.app-mask--plus { -webkit-mask-image: url("../assets/cases/living/app/icon-plus-16.svg"); mask-image: url("../assets/cases/living/app/icon-plus-16.svg"); }
.app-mask--flame { -webkit-mask-image: url("../assets/cases/living/app/icon-flame-32.svg"); mask-image: url("../assets/cases/living/app/icon-flame-32.svg"); }
.app-mask--view-days { -webkit-mask-image: url("../assets/cases/living/app/icon-view-days.svg"); mask-image: url("../assets/cases/living/app/icon-view-days.svg"); }
.app-mask--tab-week { -webkit-mask-image: url("../assets/cases/living/app/icon-tab-week.svg"); mask-image: url("../assets/cases/living/app/icon-tab-week.svg"); }
.app-mask--tab-2 { -webkit-mask-image: url("../assets/cases/living/app/icon-tab-2.svg"); mask-image: url("../assets/cases/living/app/icon-tab-2.svg"); }
.app-mask--tab-3 { -webkit-mask-image: url("../assets/cases/living/app/icon-tab-3.svg"); mask-image: url("../assets/cases/living/app/icon-tab-3.svg"); }
.app-mask--12 { width: 12px; height: 12px; -webkit-mask-size: 12px 12px; mask-size: 12px 12px; }
.app-mask--life-year { -webkit-mask-image: url("../assets/cases/living/app/life-arrow-year.svg"); mask-image: url("../assets/cases/living/app/life-arrow-year.svg"); }
.app-mask--life-week { -webkit-mask-image: url("../assets/cases/living/app/life-arrow-week.svg"); mask-image: url("../assets/cases/living/app/life-arrow-week.svg"); }
.app-mask--view-life { -webkit-mask-image: url("../assets/cases/living/app/icon-view-life.svg"); mask-image: url("../assets/cases/living/app/icon-view-life.svg"); }
.app-mask--today { -webkit-mask-image: url("../assets/cases/living/app/icon-today.svg"); mask-image: url("../assets/cases/living/app/icon-today.svg"); }

/* ---------- Status bar (80:226374) — sits over the header ---------- */
.app-status {
  position: absolute;
  top: 8px; /* inside the phone's 8px white frame */
  left: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 154px;
  width: 390px;
  height: 62px;
  padding: 21px 24px 19px;
}

.app-status__time,
.app-status__levels {
  display: flex;
  flex: 1 0 0;
  align-items: center;
  justify-content: center;
  height: 22px;
}

.app-status__time {
  padding-top: 1.5px;
  font-family: -apple-system, "SF Pro Text", "SF Pro", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 590;
  line-height: 22px;
  white-space: nowrap;
}

.app-status__levels {
  gap: 7px;
  padding: 1px 1px 0 0;
}

/* ---------- Header (80:226367) ---------- */
.app-header {
  position: relative;
  width: 406px;
  margin-left: -8px;
  padding: 0 8px 8px;
  background: var(--app-white);
  /* Top corners rounded like the phone screen in the Figma preview */
  border-radius: 32px;
}

.app-header__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 64px 16px 16px;
  background: var(--app-surface);
  border-radius: 24px; /* rounded on top too: it sits inside the white frame like a screen */
  box-shadow: var(--app-inner-sm);
}

.app-header__title {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.app-header__heading,
.app-streak__count {
  font-size: 32px;
  line-height: 36px;
  letter-spacing: -1px;
}

.app-header__heading {
  width: 291px;
  flex-shrink: 0;
}

.app-streak {
  display: flex;
  align-items: center;
  color: var(--app-brand);
}

.app-streak__count {
  color: var(--app-fg);
  white-space: nowrap;
}

/* Week strip */
.app-week {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 358px;
  padding: 8px;
  background: var(--app-white);
  border-radius: 16px;
  filter: var(--app-drop-sm);
}

.app-weekday {
  position: relative;
  display: flex;
  flex: 1 0 0;
  min-width: 1px;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.app-weekday__name {
  width: 100%;
  padding: 2px 0;
  border-radius: 28px;
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  text-align: center;
  text-transform: uppercase;
}

.app-weekday__name--today {
  background: var(--app-brand);
  color: var(--app-white);
}

.app-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 100%;
  height: 56px;
  padding: 2px 2px 4px;
  border-radius: 8px;
  background: var(--app-surface);
  box-shadow: var(--app-inner-xs);
}

.app-date__num {
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  white-space: nowrap;
}

.app-date__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--app-muted);
}

.app-date__item > img { position: absolute; top: 0; left: 0; }

.app-date--future .app-date__num { color: var(--app-muted); }

.app-date--yellow { background: var(--app-date-yellow-bg); box-shadow: none; }
.app-date--yellow .app-date__num { color: var(--app-date-yellow-fg); }
.app-date--red { background: var(--app-date-red-bg); box-shadow: none; }
.app-date--red .app-date__num { color: var(--app-date-red-fg); }

.app-date--current {
  border: 1.5px solid var(--app-fg);
  box-shadow: none;
}

.app-date__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: var(--app-fg);
  color: var(--app-white);
}

.app-week-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translateX(-50%);
}

.app-week-badge img,
.app-card-badge img {
  position: absolute;
  top: 0;
  left: 0;
}

/* ---------- Body (80:226363) ---------- */
.app-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: -4px;
  padding: 16px;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 358px;
  height: 542px;
  flex-shrink: 0;
  padding: 16px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--app-surface);
}

/* Inner shadow drawn above the stickers, like Figma's overlay layer */
.app-card--plain::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--app-inner-sm);
  pointer-events: none;
}

.app-card--red { background: var(--app-card-red); padding: 40px 16px; }
.app-card--yellow { background: var(--app-card-yellow); padding: 40px 16px; }

.app-card__title {
  position: relative;
  width: 100%;
  font-size: 56px;
  font-weight: 600;
  line-height: 56px;
  letter-spacing: -1px;
  text-align: center;
}

.app-card--red .app-card__title,
.app-card--yellow .app-card__title {
  color: var(--app-white);
}

.app-card__title--hand {
  font-family: "Shantell Sans", "Radio Canada Big", system-ui, sans-serif;
  letter-spacing: -4px;
}

.app-card__art {
  position: relative;
  width: 288px;
  height: 288px;
  flex-shrink: 0;
}

.app-card__art img { position: absolute; }
.app-card__art--plus-circle img { top: -0.5px; left: -0.5px; }
.app-card__art--heart img { top: 0; left: -11.06px; }
/* Drawing on the heart (Figma 89:240334): a 142 × 106.87 box centered at
   (144, 144.43), its SVG exported 8px larger on every side */
.app-card__art--heart .app-card__paint { top: 83px; left: 65px; }
.app-card__art--smiley img { top: -2.04px; left: -2.07px; }
.app-card__art--plus img { top: 0; left: 0; }

.app-sticker {
  position: absolute;
  width: 64px;
  height: 64px;
}

.app-sticker img { position: absolute; top: 0; left: 0; }
.app-sticker--sun img { top: -3px; left: -3px; }

.app-sticker--tree-palm { top: 15px; left: 88px; }
.app-sticker--sun { top: 39px; left: 310px; }
.app-sticker--stop { top: 117px; left: -20px; }
.app-sticker--star { top: 179px; left: 247px; }
.app-sticker--poop { top: 398px; left: -20px; }
.app-sticker--target { top: 438px; left: 318px; }
.app-sticker--x { top: 462px; left: 147px; }

.app-shape {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.app-dayname {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 9999px;
  background: var(--app-white);
  filter: var(--app-drop-sm);
  font-family: "Shantell Sans", "Radio Canada Big", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
}

.app-indicator {
  position: absolute;
  bottom: 32px;
  width: 48px;
  height: 48px;
}

.app-indicator--photos { right: 32px; }
.app-indicator--notes { left: 32px; }

.app-indicator > img { position: absolute; }
.app-indicator--photos > img { top: -8px; left: -9.5px; }
.app-indicator--notes > img { top: -8px; left: -8px; }

.app-indicator__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 20px;
  border-radius: 9999px;
  background: var(--app-white);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

.app-card-badge {
  position: absolute;
  top: 31px;
  left: 50%;
  width: 32px;
  height: 32px;
  transform: translateX(-50%);
}

/* ---------- Bottom bar (80:226365 / 80:226366 / 80:226364) ---------- */
/* Sits at the end of the screen (not pinned: the preview is much shorter than a phone) */
.app-bottombar {
  position: relative;
  z-index: 3;
  width: 390px;
  height: 56px;
}

.app-fab {
  position: absolute;
  top: 0;
  display: flex;
  align-items: center;
  width: 56px;
  height: 56px;
  padding: 16px;
  border-radius: 9999px;
  background: var(--app-white);
  color: var(--app-fg);
  filter: var(--app-drop-sm);
}

.app-fab--view { left: 16px; }
.app-fab--today { left: 318px; }

.app-tabbar {
  position: absolute;
  top: 0;
  left: 95px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 200px;
  height: 56px;
  padding: 4px;
  border-radius: 9999px;
  background: var(--app-white);
  filter: var(--app-drop-md);
}

.app-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 48px;
  padding: 12px 20px;
  border-radius: 9999px;
  background: var(--app-white);
  color: var(--app-muted-soft);
}

.app-tab--active {
  overflow: hidden;
  background: var(--app-surface);
  color: var(--app-white);
}

.app-tab__bg {
  position: absolute;
  top: -8px;
  right: 0;
  bottom: -8px;
  left: 0;
  overflow: hidden;
  border-radius: 9999px;
  background: var(--app-white);
}

.app-tab__bg img {
  position: absolute;
  top: -26.67px;
  left: -26.67px;
}

.app-tab .app-mask { position: relative; }

/* Inner shadow sits above the pattern, as in Figma */
.app-tab--active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--app-inner-xs);
  pointer-events: none;
}

/* ---------- Home indicator (80:226373) ---------- */
.app-home {
  position: relative;
  width: 390px;
  height: 34px;
  margin-top: 8px;
}

.app-home::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 144px;
  height: 5px;
  border-radius: 100px;
  background: var(--app-fg);
  transform: translateX(-50%);
}


/* ---------------------------------------------------------------------------
   Life view (Figma frame 89:255480): one 844px-tall phone screen.
   Kept light on purpose: only the 12 weeks per year that fit the phone are
   built, the empty future years are a single CSS dot pattern, and filled weeks
   reuse a handful of images (decoded once by the browser).
   ------------------------------------------------------------------------- */
.app--life {
  height: 852px; /* 844 + the 8px top frame */
}
.app-life {
  position: relative;
  display: flex;
  margin-top: -4px; /* overlaps the header by 4px, like the home screen body */
  padding: 16px;
}
.app-life__years {
  width: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.app-life__year,
.app-life__wk,
.app-life__axis {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 2px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
  color: var(--app-axis);
  flex: none;
}
.app-life__year--current,
.app-life__wk--current {
  color: var(--app-fg);
}
.app-life__year--current .app-mask { position: absolute; left: -8px; top: 6px; background: var(--app-fg); }
.app-life__wk--current .app-mask { position: absolute; left: 6px; top: -8px; background: var(--app-fg); }
.app-life__weeks {
  width: 334px;
  /* A year has 52 weeks; the phone shows the first 12. Clip sideways only, so
     the current-week arrow above the "8" isn't cut off */
  overflow-x: clip;
}
.app-life__wks {
  position: relative;
  display: flex;
  gap: 4px;
  padding-left: 4px;
  height: 24px;
}
.app-life__axis {
  position: absolute;
  left: 4px;
  top: 0;
}
.app-life__rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}
.app-life__row {
  display: flex;
  gap: 4px;
  padding-left: 4px;
  height: 24px;
}
/* Empty future years: one element, dots tiled every 28px (24 cell + 4 gap) */
.app-life__dots {
  height: 612px; /* 22 years × 28 − 4 */
  margin-left: 4px;
  background-image: radial-gradient(circle, var(--app-dot) 2.5px, transparent 2.6px);
  background-size: 28px 28px;
  background-position: -2px -2px; /* dot centers land on the 24px cells' centers */
}

/* Week cells */
.app-wk {
  position: relative;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 999px;
}
.app-wk--dot {
  background: radial-gradient(circle, var(--app-dot) 2.5px, transparent 2.6px);
}
.app-wk--art {
  overflow: clip;
  background: var(--app-white);
}
.app-wk--art img {
  position: absolute;
  left: -12px; /* the artwork is 48px, cropped by the 24px circle */
  top: -12px;
  max-width: none;
}
.app-wk--red { background: var(--app-brand); }
.app-wk--orange { background: var(--app-week-orange); }
.app-wk--yellow { background: var(--app-card-yellow); }
.app-wk--blue { background: var(--app-week-blue); }
.app-wk--purple { background: var(--app-week-purple); }
.app-wk--future {
  background: var(--app-surface);
  box-shadow: var(--app-inner-xs);
}
/* Current week: a ring 2px outside the circle (drawn outside the clip) */
.app-wk--active { overflow: visible; }
.app-wk--active img { clip-path: circle(12px at 24px 24px); }
.app-wk--active::after {
  content: "";
  position: absolute;
  left: -2px;
  top: -2px;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--app-fg);
  border-radius: 999px;
}

/* Bottom bar + home indicator sit at their Figma spots in this one-screen phone */
.app--life .app-bottombar {
  position: absolute;
  left: 8px;
  top: 754px; /* 8 + 746 */
}
.app--life .app-home {
  position: absolute;
  left: 8px;
  top: 818px; /* 8 + 810 */
  margin: 0;
}


/* ---------------------------------------------------------------------------
   Paint screen (Figma frame 89:262190, "Style your shape"): one 844px-tall
   phone screen. Bands sit at their Figma y + 8 (the phone's top frame);
   the status bar reuses `.app-status`, the home indicator `.app-home`.
   ------------------------------------------------------------------------- */
.app--paint {
  height: 852px; /* 844 + the 8px top frame */
}

/* 20px masked icons (IconButton glyphs) */
.app-paint-icon {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask: no-repeat center / 20px 20px;
  mask: no-repeat center / 20px 20px;
}
.app-paint-icon--close { -webkit-mask-image: url("../assets/cases/living/app/paint-icon-close.svg"); mask-image: url("../assets/cases/living/app/paint-icon-close.svg"); }
.app-paint-icon--check { -webkit-mask-image: url("../assets/cases/living/app/paint-icon-check.svg"); mask-image: url("../assets/cases/living/app/paint-icon-check.svg"); }
.app-paint-icon--highlighter { -webkit-mask-image: url("../assets/cases/living/app/paint-icon-highlighter.svg"); mask-image: url("../assets/cases/living/app/paint-icon-highlighter.svg"); }
.app-paint-icon--hand { -webkit-mask-image: url("../assets/cases/living/app/paint-icon-hand-pointing.svg"); mask-image: url("../assets/cases/living/app/paint-icon-hand-pointing.svg"); }
.app-paint-icon--eraser { -webkit-mask-image: url("../assets/cases/living/app/paint-icon-eraser.svg"); mask-image: url("../assets/cases/living/app/paint-icon-eraser.svg"); }
.app-paint-icon--undo { -webkit-mask-image: url("../assets/cases/living/app/paint-icon-undo.svg"); mask-image: url("../assets/cases/living/app/paint-icon-undo.svg"); }
.app-paint-icon--redo { -webkit-mask-image: url("../assets/cases/living/app/paint-icon-redo.svg"); mask-image: url("../assets/cases/living/app/paint-icon-redo.svg"); }

/* Round icon buttons (48px) */
.app-paint-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
}
.app-paint-btn--primary {
  background: var(--app-fg);
  color: var(--app-white);
}
.app-paint-btn--secondary {
  background: var(--app-white);
  border: 1.5px solid var(--app-surface);
  color: var(--app-fg);
}
.app-paint-btn--muted {
  background: var(--app-white);
  border: 1.5px solid var(--app-surface);
  color: var(--app-disabled);
}

/* ---------- PageHeader (89:262208) at y 62 ---------- */
.app-paint-header {
  position: absolute;
  left: 8px;
  top: 70px; /* 8 + 62 */
  display: flex;
  align-items: center;
  gap: 8px;
  width: 390px;
  height: 56px;
  padding: 8px 16px;
}
.app-paint-header__side {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
}
.app-paint-header__close {
  color: var(--app-axis); /* ghost button foreground */
}
.app-paint-header__title {
  flex: 1 0 0;
  min-width: 1px;
  padding: 8px 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
  white-space: nowrap;
}

/* ---------- BodyContainer (89:262205) at y 118: the orange card ---------- */
.app-paint-card {
  position: absolute;
  left: 16px; /* 8 + the body's 8px side padding */
  top: 126px; /* 8 + 118 */
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 374px;
  height: 622px;
  padding: 16px;
  border-radius: 24px;
  overflow: clip;
  background: var(--app-shape-green); /* Figma 89:268542: green card (was orange) */
}
.app-paint-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--app-inner-sm);
  pointer-events: none;
}

.app-paint-content {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 1px;
  padding-top: 32px;
}

/* Dashed drawing area, 342 × 342 */
.app-paint-area {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 342px;
  height: 342px;
  border: 2px dashed var(--app-white);
  border-radius: 12px;
}
.app-paint-area__shape {
  flex: none;
  width: 288px;
  height: 288px;
}
/* `paint` frame 204 × 140 at (59, 58) in the area (Figma 89:268302; its SVG is
   204 × 148, overhanging at the bottom) — minus the 2px border */
.app-paint-area__drawing {
  position: absolute;
  left: 57px;
  top: 56px;
}

/* ---------- Toolbar (166px): colors + main tools ---------- */
.app-paint-toolbar {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 16px;
}

.app-paint-colors {
  display: flex;
  align-items: center;
  justify-content: center; /* 12 swatches overflow the pill evenly both sides */
  gap: 4px;
  width: 342px;
  padding: 8px;
  border-radius: 9999px;
  overflow: clip;
  background: var(--app-white);
  box-shadow: 2px 2px 16px 0 var(--app-shadow);
}
.app-paint-swatch {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 4px;
}
.app-paint-swatch::before {
  content: "";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: var(--swatch);
}
.app-paint-swatch--orange { --swatch: var(--app-week-orange); }
.app-paint-swatch--yellow { --swatch: var(--app-card-yellow); }
.app-paint-swatch--lime { --swatch: var(--app-shape-lime); }
.app-paint-swatch--green { --swatch: var(--app-shape-green); }
.app-paint-swatch--blue { --swatch: var(--app-week-blue); }
.app-paint-swatch--purple { --swatch: var(--app-week-purple); }
.app-paint-swatch--pink { --swatch: var(--app-shape-pink); }
.app-paint-swatch--brown { --swatch: var(--app-shape-brown); }
.app-paint-swatch--gray { --swatch: var(--app-muted); }
.app-paint-swatch--black { --swatch: var(--app-fg); }
.app-paint-swatch--white::before {
  background: var(--app-white);
  border: 1.5px solid var(--app-surface);
}
/* Selected swatch: a white check on the color */
.app-paint-swatch--selected {
  position: relative;
  color: var(--app-white);
}
.app-paint-swatch--selected .app-paint-icon {
  position: absolute;
  left: 10px;
  top: 10px;
}
.app-paint-swatch--red { --swatch: var(--app-brand); }

.app-paint-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 342px;
  padding: 12px 12px 10px;
  border-radius: 12px;
  background: var(--app-white);
  filter: var(--app-drop-sm);
}
.app-paint-tool {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 1px;
}
.app-paint-tool__label {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
}

/* ---------- PageFooter (89:262214) at y 740 ---------- */
.app-paint-footer {
  position: absolute;
  left: 8px;
  top: 748px; /* 8 + 740 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 390px;
  padding: 16px 16px 40px;
}
.app-paint-footer__group {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Home indicator at y 810 */
.app--paint .app-home {
  position: absolute;
  left: 8px;
  top: 818px; /* 8 + 810 */
  margin: 0;
}


/* ---------------------------------------------------------------------------
   Notes screen (Figma frame 80:226430, "Few notes"): one 844px-tall phone
   screen built like the Paint screen — it reuses `.app-status`,
   `.app-paint-header`, `.app-paint-card` (the orange card), `.app-paint-footer`,
   `.app-paint-icon` and `.app-home`; only what differs is `app-notes-`.
   ------------------------------------------------------------------------- */
.app--notes {
  height: 852px; /* 844 + the 8px top frame */
}

.app-notes-icon--caret-left { -webkit-mask-image: url("../assets/cases/living/app/notes-icon-caret-left.svg"); mask-image: url("../assets/cases/living/app/notes-icon-caret-left.svg"); }
.app-notes-mask--smiley { -webkit-mask-image: url("../assets/cases/living/app/notes-icon-smiley.svg"); mask-image: url("../assets/cases/living/app/notes-icon-smiley.svg"); }
.app-notes-mask--custom-note { -webkit-mask-image: url("../assets/cases/living/app/notes-icon-custom-note.svg"); mask-image: url("../assets/cases/living/app/notes-icon-custom-note.svg"); }
.app-notes-mask--camera { -webkit-mask-image: url("../assets/cases/living/app/notes-icon-camera.svg"); mask-image: url("../assets/cases/living/app/notes-icon-camera.svg"); }

/* ---------- PageHeader (80:226439): ghost back button ---------- */
.app-notes-header__back {
  color: var(--app-axis); /* ghost button foreground */
}

/* ---------- BodyContainer (80:226442): the note stack, centered ---------- */
.app-notes-card {
  align-items: center;
  justify-content: center; /* 440px stack lands at y 91 in the card */
}

/* `Notes` (342 × 440): the front note in flow, two notes peeking behind it */
.app-notes-stack {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
  width: 342px;
}

.app-notes-note {
  display: flex;
  flex-direction: column;
  flex: none;
  width: 342px;
  height: 440px;
  filter: var(--app-drop-sm);
}
.app-notes-note--front { position: relative; }
.app-notes-note--back-2 { position: absolute; top: 16px; right: -16px; }
.app-notes-note--back-1 { position: absolute; top: 8px; right: -8px; }

.app-notes-note__body {
  display: flex;
  flex: 1 0 0;
  align-items: flex-start;
  min-height: 1px;
  padding: 16px;
  border-radius: 16px 16px 0 0;
  background: var(--app-white);
}
.app-notes-note__text {
  width: 310px;
  font-family: "Shantell Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  font-variation-settings: "BNCE" 0, "INFM" 0, "SPAC" 0;
  color: var(--app-fg);
}

/* Back notes: a plain 32px rounded foot */
.app-notes-note__fold {
  flex: none;
  height: 32px;
  border-radius: 0 0 16px 16px;
  background: var(--app-white);
}

/* Front note: page count + folded corner (40px) */
.app-notes-note__footer {
  display: flex;
  align-items: center;
  flex: none;
  width: 342px;
}
.app-notes-note__page {
  flex: 1 0 0;
  align-self: stretch;
  min-width: 1px;
  padding: 0 16px;
  overflow: clip;
  border-bottom-left-radius: 16px;
  background: var(--app-white);
}
.app-notes-note__count {
  font-family: "Shantell Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  font-variation-settings: "BNCE" 0, "INFM" 0, "SPAC" 0;
  color: var(--app-muted-soft);
  white-space: nowrap;
}
/* 32 × 40 slot; the 64 × 64 SVG (shadow room) overhangs by 14px left, 6px top */
.app-notes-note__corner {
  position: relative;
  flex: none;
  width: 32px;
  height: 40px;
}
.app-notes-note__corner img {
  position: absolute;
  left: -14px;
  top: -6px;
}

/* ---------- PageFooter (80:226434): Modules + Save day ---------- */
.app-notes-modules {
  display: flex;
  align-items: center;
  border-radius: 9999px;
}
.app-notes-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 12px 20px;
  border-radius: 9999px;
  color: var(--app-muted-soft);
}
.app-notes-tab--active {
  background: var(--app-surface);
  box-shadow: var(--app-inner-xs);
  color: var(--app-fg);
}
/* Count badge, centered at (+10, -10) from the tab center */
.app-notes-tab__badge {
  position: absolute;
  left: 34px;
  top: 6px;
  width: 16px;
  min-width: 16px;
  padding: 0 4px;
  border-radius: 9999px;
  background: var(--app-white);
  color: var(--app-fg);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

.app-notes-save {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: none;
  padding: 14px 16px;
  border-radius: 9999px;
  background: var(--app-fg);
  color: var(--app-white);
}
.app-notes-save__label {
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
  white-space: nowrap;
}

/* Home indicator at y 810 */
.app--notes .app-home {
  position: absolute;
  left: 8px;
  top: 818px; /* 8 + 810 */
  margin: 0;
}


/* ---------------------------------------------------------------------------
   Share screen (Figma frame 89:261947, "Full preview"): one 844px-tall phone
   screen with an 8px white frame all round and a soft shadow. Reuses
   `.app-status`, `.app-home`, `.app-paint-icon` and `.app-paint-btn`.
   ------------------------------------------------------------------------- */
.app--share {
  height: 860px; /* 844 + the 8px frame top and bottom */
  margin-top: 24px; /* the frame's outer edge; the screen starts at 32 */
  padding: 8px;
}
.app-share-icon--export { -webkit-mask-image: url("../assets/cases/living/app/share-icon-export.svg"); mask-image: url("../assets/cases/living/app/share-icon-export.svg"); }
.app-share-icon--caret-right { -webkit-mask-image: url("../assets/cases/living/app/share-icon-caret-right.svg"); mask-image: url("../assets/cases/living/app/share-icon-caret-right.svg"); }

/* BodyContainer at y 62, 678 tall */
.app-share-body {
  position: absolute;
  left: 8px;
  top: 70px; /* 8 + 62 */
  width: 390px;
  height: 678px;
  padding: 0 8px;
}
.app-share-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 32px 16px;
  border-radius: 24px;
  background: var(--app-shape-green); /* Figma 89:268542: green card (was orange) */
  overflow: clip;
  color: var(--app-white);
}
.app-share-card__content {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.app-share-card__title {
  width: 342px;
  font-family: "Shantell Sans", system-ui, sans-serif;
  font-size: 56px;
  font-weight: 600;
  line-height: 56px;
  letter-spacing: -4px;
  text-align: center;
}
.app-share-shape {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.app-share-shape__name {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 9999px;
  background: var(--app-white);
  filter: var(--app-drop-sm);
  color: var(--app-fg);
  font-family: "Shantell Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
}
.app-share-shape__art {
  position: relative;
  width: 288px;
  height: 288px;
}
/* The painted marks: 204 × 140 at (32, 32) on the 288px palm (Figma 89:268460) */
.app-share-shape__paint {
  position: absolute;
  left: 32px;
  top: 32px;
}
.app-share-card__label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

/* Two Polaroid-style mini photos over the shape (Photos group at 16, 462) */
.app-share-photo {
  position: absolute;
  width: 88px;
  height: 102px;
  padding: 4px;
  border-radius: 4px;
  background: var(--app-white);
  filter: var(--app-drop-sm);
}
.app-share-photo--a { left: 110px; top: 467px; transform: rotate(-2deg); }   /* 16 + 94, 462 + 5 */
.app-share-photo--b { left: 171.75px; top: 479px; transform: rotate(8deg); } /* 16 + 155.75, 462 + 17 */
.app-share-photo__img {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 2px;
  background: var(--app-surface);
  overflow: clip;
}
.app-share-photo--a img {
  position: absolute;
  left: -48.2%;
  top: -99.2%;
  width: 188.7%;
  height: 283.05%;
}
.app-share-photo--b img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PageFooter at y 740: a wide Share button + a round next button */
.app-share-footer {
  position: absolute;
  left: 8px;
  top: 748px; /* 8 + 740 */
  display: flex;
  align-items: center;
  gap: 8px;
  width: 390px;
  padding: 16px 16px 40px;
}
.app-share-btn {
  display: flex;
  flex: 1 0 0;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--app-surface);
  border-radius: 9999px;
  background: var(--app-white);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}

/* Home indicator at y 810 */
.app--share .app-home {
  position: absolute;
  left: 8px;
  top: 818px; /* 8 + 810 */
  margin: 0;
}
