/* ==========================================================================
   JORIE DAILY — outfits.css · Outfit Planner (Beta) + Calendar OOTD
   --------------------------------------------------------------------------
   Additive only: every selector is new (op-*, ootd*) — nothing existing is
   restyled. Colours come from the existing semantic tokens (--ink, --surface,
   --accent, --feature-*, …) so Light, Dark and Winter Arc ❄ follow
   automatically. Shapes use the card / inner radii from refresh.css.
   Loaded by outfit-planner.html and calendar.html only.

   01. Page hero & Beta sticker      07. Wardrobe grid & tiles
   02. Mode tabs                     08. Dialogs (picker, item, paste, confirm)
   03. Layout                        09. Occasions, suggestions, requests
   04. Avatar stage & day switcher   10. Small parts (chips, buttons, toast)
   05. Week bar & segmented control  11. Calendar OOTD
   06. Outfit editor                 12. Small screens & reduced motion
   ========================================================================== */

:root { --op-stage-bg: #E1D7DC; --op-radius: var(--jd-radius-card, var(--radius-lg)); --op-radius-in: var(--jd-radius-inner, var(--radius-md)); }

/* Editing controls scoped to the Outfit Planner; nothing else is affected. */
.op-mesh-toggle { display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; }
.op-mesh-toggle input { flex: none; inline-size: 18px; block-size: 18px; accent-color: var(--accent); }
.op-mesh-toggle input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.op-mesh-toggle span { font-weight: 600; }

/* ---------- 01. PAGE HERO & BETA STICKER -------------------------------- */
.op-title { display: inline; }
.op-beta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 0.18em;
  padding: 7px 12px 7px 11px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 1px rgb(var(--burgundy-rgb) / 0.08), 0 8px 18px -12px rgb(var(--burgundy-rgb) / 0.55);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
  position: relative;
  top: -0.9em;
  transform: rotate(-4deg);
}
.op-beta::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.55; }
:root[data-theme="dark"] .op-beta { box-shadow: 0 0 0 1px rgb(var(--pink-rgb) / 0.25); }

/* ---------- 02. MODE TABS ----------------------------------------------- */
.op-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  margin-bottom: var(--gap);
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.op-mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--ds-btn-md, 44px);
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color var(--dur-2) ease, color var(--dur-2) ease;
}
.op-mode .icon { width: 17px; height: 17px; }
.op-mode:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.op-mode[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.op-mode:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.op-mode__count {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--accent); color: var(--on-accent);
  font-size: var(--fs-2xs); font-weight: 700;
}
.op-mode__sub { font-size: var(--fs-2xs); font-weight: 700; opacity: 0.6; }

/* ---------- 03. LAYOUT --------------------------------------------------- */
.op-app { min-height: 320px; }
.op-app[aria-busy="true"] { opacity: 0.6; transition: opacity var(--dur-2) ease; }
.op-split {
  display: grid;
  gap: var(--gap);
  align-items: start;
}
.op-side { display: grid; gap: var(--gap); min-width: 0; }
@media (min-width: 900px) {
  .op-split { grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr); }
  .op-stagecard { position: sticky; top: calc(var(--header-h) + 16px); }
}
@media (min-width: 1180px) {
  .op-split { grid-template-columns: minmax(340px, 400px) minmax(0, 1fr); }
}
.op-loading { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.op-status:empty { display: none; }

/* ---------- 04. AVATAR STAGE & DAY SWITCHER ----------------------------- */
.op-stagecard { display: grid; gap: 18px; padding: clamp(18px, 2.4vw, 26px); }
.op-stagecard__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.op-stagecard__head .card__eyebrow { margin-bottom: 6px; }
.op-stagecard__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.03em;
  line-height: 1;
}
.op-stagecard__title em, .op-editor__title em, .op-section__title em, .op-proposal__title em,
.op-emptycard__title em { font-style: italic; font-weight: 400; }
.op-stagecard__caption { margin-top: -6px; text-align: center; font-family: var(--font-display); font-style: italic; color: var(--ink-2); }
.op-stagewrap { display: grid; justify-items: center; }
/* One box with the avatar's exact aspect ratio: every layer fills it 100 %. */
.op-stage {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 2170 / 2890;
  border-radius: var(--op-radius-in);
  background: var(--op-stage-bg);
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px rgb(var(--burgundy-rgb) / 0.06), 0 22px 40px -30px rgb(var(--burgundy-rgb) / 0.55);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.op-stage img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: fill; pointer-events: none; -webkit-user-drag: none; }
.op-stage__back { z-index: 0; }
.op-stage__avatar { z-index: 1; }
/* IMPORTANT — keep the resting clothing wrapper in the avatar's stacking context.
   z-index:1 on this wrapper creates a separate stacking context, so Multiply
   only sees other garments (boots), not the avatar skin below the dress.
   Individual garment images still have z-index for garment ordering. */
.op-stage__layers { position: absolute; inset: 0; z-index: auto; transition: opacity 240ms ease; }
.op-stage__layers.is-entering { opacity: 1; }
.op-stage__layers.is-leaving { opacity: 0; z-index: 2; }
.op-stage__layer { opacity: 0; transition: opacity 260ms ease; }
.op-stage__layer.is-in { opacity: 1; }
.op-stage__badge {
  position: absolute; z-index: 5; left: 12px; top: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: var(--radius-pill);
  background: rgb(var(--white-rgb) / 0.82); color: #4B1923;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: var(--fs-2xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.op-stage__badge .icon { width: 13px; height: 13px; }
.op-stage--mini { max-width: none; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px rgb(var(--burgundy-rgb) / 0.06); }

.op-days { display: flex; align-items: center; gap: 4px; }
.op-days__list { flex: 1 1 auto; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.op-days__arrow { width: 36px; height: 36px; }
.op-days__arrow, .op-iconbtn {
  flex: none;
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--dur-2) ease, background-color var(--dur-2) ease;
}
.op-days__arrow .icon, .op-iconbtn .icon { width: 17px; height: 17px; }
.op-days__arrow:hover:not(:disabled), .op-iconbtn:hover:not(:disabled) { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.op-days__arrow:disabled, .op-iconbtn:disabled { opacity: 0.35; cursor: default; }
.op-days__arrow:focus-visible, .op-iconbtn:focus-visible, .op-day:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.op-day {
  position: relative;
  display: grid; justify-items: center; gap: 1px;
  min-height: 56px; padding: 6px 0 9px;
  border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink);
  font: inherit; cursor: pointer;
  transition: background-color var(--dur-2) ease, color var(--dur-2) ease;
}
.op-day:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.op-day__wd { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
.op-day__n { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; line-height: 1.1; }
.op-day__dot { position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.op-day.is-saved .op-day__dot { background: currentColor; }
.op-day.is-draft .op-day__dot, .op-day.is-cleared .op-day__dot { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.op-day[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.op-day[aria-selected="true"] .op-day__wd { color: inherit; opacity: 0.75; }

/* ---------- 05. WEEK BAR & SEGMENTED CONTROL ---------------------------- */
.op-weekbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 20px; }
.op-weekbar__text { min-width: 0; }
.op-weekbar__text .card__eyebrow { margin-bottom: 8px; }
.op-weekbar__title { margin-top: 2px; }
.op-weekbar .op-fine { margin-top: 10px; }
.op-weekbar__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.op-weekbar__note {
  flex: 1 1 100%;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--ds-attn-bg, var(--accent-soft));
  font-size: var(--fs-sm); font-weight: 600;
}
.op-seg { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.op-seg__btn {
  min-height: 34px; padding: 0 14px;
  border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--ink-2);
  font: inherit; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
}
.op-seg__btn[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.op-seg__btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ---------- 06. OUTFIT EDITOR -------------------------------------------- */
.op-editor { display: grid; gap: 18px; }
.op-editor__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.op-editor__head .card__eyebrow { margin-bottom: 8px; }
.op-editor__title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.95rem);
  font-weight: 700;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.op-pieces { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.op-piece {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 8px 8px 8px 8px;
  border: 1px solid var(--line);
  border-radius: var(--op-radius-in);
  background: var(--surface-sunk);
}
.op-editor--read .op-piece { grid-template-columns: 52px minmax(0, 1fr); }
.op-piece__text { display: grid; gap: 2px; min-width: 0; }
.op-piece__text strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-piece__text span { font-size: var(--fs-xs); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.op-thumb {
  position: relative; display: block; width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: color-mix(in srgb, var(--op-stage-bg) 55%, var(--surface));
}
.op-thumb img { position: absolute; max-width: none; height: auto; display: block; }
.op-thumb__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); }
.op-thumb__ph .icon { width: 40%; height: 40%; }
.op-thumb--xs { width: 30px; border-radius: 8px; flex: none; }
.op-empty-pieces {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border: 1.5px dashed var(--line-2);
  border-radius: var(--op-radius-in);
  color: var(--ink-2); font-size: var(--fs-sm);
}
.op-empty-pieces .icon { width: 26px; height: 26px; flex: none; color: var(--ink-3); }
.op-codes .field { gap: 8px; }
.op-codes__row { display: flex; gap: 10px; }
.op-codes__input { flex: 1 1 auto; min-width: 0; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.op-codes .btn { flex: none; align-self: center; }
.op-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.op-layers { border-top: 1px solid var(--line); padding-top: 14px; }
.op-layers__sum {
  display: flex; align-items: center; gap: 10px;
  min-height: 36px; cursor: pointer; list-style: none;
  font-size: var(--fs-sm); font-weight: 600;
}
.op-layers__sum::-webkit-details-marker { display: none; }
.op-layers__sum .icon { width: 17px; height: 17px; color: var(--ink-2); }
.op-layers__sum::after { content: ""; width: 8px; height: 8px; margin-left: 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform var(--dur-2) ease; opacity: 0.6; }
.op-layers[open] > .op-layers__sum::after { transform: rotate(225deg) translateY(-2px); }
.op-layers__mode { margin-left: auto; font-size: var(--fs-2xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); order: 2; }
.op-layers__sum::after { order: 3; }
.op-layers__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.op-layer {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  min-height: 44px; padding: 4px 6px 4px 12px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}
.op-layer__n { font-size: var(--fs-2xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.op-layer__name { font-size: var(--fs-sm); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-layer__btns { display: inline-flex; gap: 4px; }
.op-iconbtn--sm { width: 34px; height: 34px; }
.op-iconbtn--sm .icon { width: 15px; height: 15px; }
.op-layers__why { margin-top: 10px; font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.5; }
.op-layers .op-textbtn { margin-top: 6px; }
.op-note { border-top: 1px solid var(--line); padding-top: 16px; }
.op-suggest {
  display: grid; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--op-radius-in);
  background: var(--tint-bg); color: var(--tint-ink);
}
.op-suggest__text { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); line-height: 1.45; }
.op-suggest__text .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.op-suggest__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.op-hint { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.45; }
.op-hint .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.op-readnote { font-family: var(--font-display); font-style: italic; color: var(--ink-2); line-height: 1.4; }
.op-fine { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.5; }
.op-actionrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.op-actionrow__spacer { flex: 1 1 auto; }

/* ---------- 07. WARDROBE GRID & TILES ----------------------------------- */
.op-wardrobe { display: grid; gap: var(--gap); }
.op-wbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.op-wbar .op-fine { margin-top: 10px; }
.op-filters { display: grid; gap: 12px; }
.op-search { position: relative; display: block; max-width: 420px; }
.op-search .icon { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.op-search .input { padding-left: 42px; background: var(--surface); }
.op-pills .pill { min-height: 40px; padding: 0 16px; }
.op-pills--sub .pill { min-height: 34px; padding: 0 14px; font-size: var(--fs-xs); }
.op-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
}
.op-tile { min-width: 0; }
.op-tile__btn {
  position: relative;
  display: grid; width: 100%; height: 100%;
  padding: 0; text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--op-radius-in);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) ease, border-color var(--dur-2) ease;
}
.op-tile__btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.op-tile__btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.op-tile__img { border-radius: 0; }
.op-tile__code {
  position: absolute; left: 10px; top: 10px;
  padding: 4px 8px; border-radius: var(--radius-pill);
  background: rgb(var(--white-rgb) / 0.85); color: #4B1923;
  font-size: var(--fs-2xs); font-weight: 700; letter-spacing: 0.06em; font-variant-numeric: tabular-nums;
}
.op-tile__body { display: grid; gap: 3px; padding: 12px 14px 14px; }
.op-tile__name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.op-tile__meta { font-size: var(--fs-xs); color: var(--ink-2); }
.op-tile__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.op-tile__tags span { padding: 3px 8px; border-radius: var(--radius-pill); background: var(--accent-soft); font-size: var(--fs-2xs); font-weight: 600; }
.op-tile__check {
  position: absolute; right: 10px; top: 10px;
  display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; border: 1.5px solid rgb(var(--burgundy-rgb) / 0.25);
  background: rgb(var(--white-rgb) / 0.85); color: transparent;
  transition: background-color var(--dur-2) ease, color var(--dur-2) ease;
}
.op-tile__check .icon { width: 15px; height: 15px; }
.op-tile.is-selected .op-tile__btn { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink), var(--shadow-sm); }
.op-tile.is-selected .op-tile__check { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.op-grid__empty { grid-column: 1 / -1; padding: 24px; text-align: center; color: var(--ink-2); }

/* ---------- 08. DIALOGS --------------------------------------------------- */
.op-dialog-wide { width: min(1040px, calc(100vw - 24px)); }
.op-picker { gap: 16px; }
.op-picker__head { display: flex; align-items: flex-start; gap: 14px; }
.op-picker__head > div:first-child { flex: 1 1 auto; }
.op-picker__mini { width: 64px; flex: none; }
.op-picker__mini .op-stage { border-radius: 10px; }
.op-grid--picker { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.op-picker__foot {
  position: sticky; bottom: calc(-1 * clamp(22px, 4vw, 34px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 calc(-1 * clamp(22px, 4vw, 34px)) calc(-1 * clamp(22px, 4vw, 34px));
  padding: 14px clamp(22px, 4vw, 34px);
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.op-itemform__x, .ootd-x { margin-left: auto; align-self: flex-start; }
.op-itemform__grid { display: grid; gap: 22px; }
@media (min-width: 760px) {
  .op-itemform__grid { grid-template-columns: 240px minmax(0, 1fr); align-items: start; }
  .op-itemform__visual { position: sticky; top: 0; }
}
.op-itemform__visual { display: grid; gap: 12px; justify-items: center; }
.op-itemform__stage { width: 100%; max-width: 240px; }
.op-upload { display: grid; justify-items: center; gap: 6px; text-align: center; cursor: pointer; }
.op-upload:focus-within .op-upload__btn { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.op-itemform__fields { display: grid; gap: 18px; min-width: 0; }
.op-itemform .form-grid > .field { align-content: start; }
.op-fs { margin: 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--line); display: grid; gap: 14px; min-width: 0; }
.op-fs:first-child { border-top: 0; padding-top: 0; }
.op-fs__legend { padding: 0; margin-bottom: 4px; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.02em; }
.op-checks { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.op-checks:empty { display: none; }
.op-checkrow { display: flex; flex-wrap: wrap; gap: 8px; }
.op-check { position: relative; display: inline-flex; cursor: pointer; }
.op-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.op-check span {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 14px;
  border: 1.5px solid var(--line-2); border-radius: var(--radius-pill);
  font-size: var(--fs-sm); font-weight: 600;
  transition: background-color var(--dur-2) ease, color var(--dur-2) ease, border-color var(--dur-2) ease;
}
.op-check:hover span { border-color: var(--ink); }
.op-check input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.op-check input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.op-code-input { font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.op-code-input[readonly] { opacity: 0.75; }
.op-exc { display: grid; gap: 8px; }
.op-exc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.op-exc__list:empty { display: none; }
.op-exc__row { display: grid; grid-template-columns: auto 110px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--ink-2); }
.op-paste__text { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: var(--fs-sm); }
.op-paste__preview { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.op-paste__preview li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--ink) 4%, transparent); font-size: var(--fs-sm); }
.op-paste__preview li > span:first-child { font-weight: 700; }
.op-paste__preview li.is-skip { color: var(--ink-3); background: transparent; }
.op-paste__preview li.is-bad { background: var(--ds-attn-bg, var(--accent-soft)); }
.op-confirm { gap: 12px; }
.op-confirm__title { margin-bottom: 0; }
.op-confirm__text { color: var(--ink-2); max-width: 40ch; line-height: 1.5; }
.op-confirm__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.op-btn--danger { --btn-bg: var(--ink); }

/* ---------- 09. OCCASIONS, SUGGESTIONS, REQUESTS ------------------------ */
.op-occform { display: grid; gap: 14px; }
.op-section { display: grid; gap: 16px; margin-top: clamp(32px, 4vw, 52px); }
.op-section--first { margin-top: 0; }
.op-section__head { display: grid; gap: 6px; }
.op-section__head .card__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.op-section__head .card__eyebrow .icon { width: 14px; height: 14px; }
.op-section__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  font-variation-settings: "SOFT" 100;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.op-review { display: grid; gap: 18px; margin-bottom: var(--gap); background: var(--tint-bg); color: var(--tint-ink); border-color: transparent; }
.op-review .op-proposal { background: var(--surface); color: var(--ink); }
.op-proposal {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: start;
  padding: 14px; border-radius: var(--op-radius-in); border: 1px solid var(--line);
}
.op-proposal__title { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.op-proposal__body { display: grid; gap: 8px; min-width: 0; }
.op-proposal__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.op-minilist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.op-minilist li { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); }
.op-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); }
.op-occ {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 14px; border-radius: var(--op-radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.op-occ.is-current { border-color: var(--ink); }
.op-occ__body { display: grid; gap: 4px; min-width: 0; }
.op-occ__body .card__eyebrow { margin-bottom: 0; }
.op-occ__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.op-occ__meta { font-size: var(--fs-xs); color: var(--ink-2); }
.op-occ .op-textbtn { justify-self: start; margin-top: 4px; }
.op-reqlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.op-req {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: var(--op-radius-in);
  background: var(--surface); border: 1px solid var(--line);
}
.op-req__date { font-family: var(--font-display); font-weight: 700; }
.op-req__text { display: grid; gap: 2px; min-width: 0; font-size: var(--fs-sm); }
.op-req__text span { color: var(--ink-2); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-asks { display: grid; gap: var(--gap); }
.op-ask { display: grid; gap: 18px; }
@media (min-width: 720px) { .op-ask { grid-template-columns: minmax(0, 1fr) 140px; align-items: center; } }
.op-ask__text { display: grid; gap: 8px; }
.op-ask__title { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.op-ask__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.op-ask__mine { display: grid; gap: 6px; justify-items: center; width: 140px; }
.op-ask__cap { font-size: var(--fs-2xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.op-emptycard { display: flex; align-items: center; gap: 16px; color: var(--ink-2); }
.op-emptycard > span .icon { width: 30px; height: 30px; color: var(--ink-3); }
.op-emptycard--lg { flex-direction: column; text-align: center; gap: 12px; padding-block: clamp(36px, 6vw, 64px); }
.op-emptycard--lg p { max-width: 46ch; }
.op-emptycard__title { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; color: var(--ink); letter-spacing: -0.03em; }

/* ---------- 10. SMALL PARTS ---------------------------------------------- */
.op-chip {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 28px; padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-2);
  color: var(--ink-2);
  font-size: var(--fs-2xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap;
}
.op-chip .icon { width: 13px; height: 13px; }
.op-chip--ok { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.op-chip--draft { border-style: dashed; border-color: var(--ink-3); color: var(--ink); }
.op-chip--soft { background: var(--accent-soft); border-color: transparent; color: var(--ink); }
.op-textbtn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 4px;
  border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: var(--fs-sm); font-weight: 600;
  text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); text-underline-offset: 4px;
  cursor: pointer;
}
.op-textbtn .icon { width: 15px; height: 15px; }
.op-textbtn:hover { text-decoration-color: currentColor; }
.op-textbtn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 6px; }
.op-textbtn--danger { text-decoration-style: dashed; }
.op-toast {
  position: fixed; z-index: 60; left: 50%; bottom: max(20px, env(safe-area-inset-bottom));
  width: max-content;   /* Phase 45.1: one or two lines on phones, not a narrow 4-line block */
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--ink); color: var(--bg);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm); font-weight: 600; text-align: center;
  transform: translate(-50%, 12px); opacity: 0;
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2) ease;
}
.op-toast.is-in { transform: translate(-50%, 0); opacity: 1; }

/* ---------- 11. CALENDAR OOTD --------------------------------------------- */
.ootd { margin-top: 16px; }
.ootd__btn {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  width: 100%; padding: 8px 12px 8px 8px;
  border: 1px solid color-mix(in srgb, var(--feature-ink) 22%, transparent);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--feature-ink) 8%, transparent);
  color: var(--feature-ink);
  font: inherit; text-align: left;
  cursor: pointer;
  transition: background-color var(--dur-2) ease, border-color var(--dur-2) ease;
}
.ootd__btn.is-active:hover { background: color-mix(in srgb, var(--feature-ink) 14%, transparent); border-color: color-mix(in srgb, var(--feature-ink) 45%, transparent); }
.ootd__btn:focus-visible { outline: 2px solid var(--feature-ink); outline-offset: 2px; }
.ootd__btn:disabled { cursor: default; opacity: 0.5; border-style: dashed; background: transparent; }
.ootd__art {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: color-mix(in srgb, var(--feature-ink) 12%, transparent);
  overflow: hidden;
}
.ootd__art .icon { width: 20px; height: 20px; }
.ootd__art--stage { height: 58px; align-self: stretch; background: var(--op-stage-bg); }
.ootd-stage { position: relative; display: block; width: 100%; aspect-ratio: 2170 / 2890; isolation: isolate; }
/* Head-and-shoulders crop would hide the outfit: the whole figure, scaled. */
.ootd-stage img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ootd__text { display: grid; gap: 2px; min-width: 0; }
.ootd__label { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.ootd__full { font-weight: 600; letter-spacing: 0.06em; opacity: 0.75; }
.ootd__sub { font-size: var(--fs-sm); opacity: 0.85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ootd__go .icon { width: 18px; height: 18px; opacity: 0.8; }
.ootd-sheet { gap: 18px; }
.ootd-sheet__head { display: flex; align-items: flex-start; gap: 12px; }
.ootd-x { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--line-2); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.ootd-x .icon { width: 17px; height: 17px; }
.ootd-x:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.ootd-seg { margin-bottom: 0; justify-self: start; }
.ootd-sheet__body { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; align-items: start; }
.ootd-sheet__stage {
  position: relative; width: 100%; aspect-ratio: 2170 / 2890;
  border-radius: var(--radius-sm); overflow: hidden; isolation: isolate; background: var(--op-stage-bg);
  box-shadow: inset 0 0 0 1px rgb(var(--burgundy-rgb) / 0.06);
}
.ootd-sheet__stage img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ootd-sheet__info { display: grid; gap: 12px; min-width: 0; }
.ootd-sheet__kind { font-family: var(--font-display); font-size: var(--fs-lg); font-style: italic; }
.ootd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ootd-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.ootd-list strong { display: block; font-weight: 600; }
.ootd-list__code { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 2px; }
.ootd-list__meta { display: block; font-size: var(--fs-xs); color: var(--ink-2); margin-top: 2px; }
.ootd-sheet__note { font-family: var(--font-display); font-style: italic; color: var(--ink-2); }
.ootd-link { text-decoration: none; }
.ootd-link .icon { width: 15px; height: 15px; }

/* ---------- 11b. PHASE 45.1 — PER-DAY SAVE, SURPRISE NOTES, PHONE DOCK --- */
/* Save Outfit / Save Changes for the selected day: sits right under the
   avatar preview (and docks to the bottom of the screen on phones while
   that copy is scrolled away). Tokens only → Light, Dark, Winter Arc follow. */
.op-savebar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 14px;
  border-radius: var(--op-radius-in);
  background: var(--ds-attn-bg, var(--accent-soft));
  color: var(--ink);
}
.op-savebar__status { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; }
.op-savebar__text { min-width: 0; display: grid; gap: 1px; }
.op-savebar__text strong { font-weight: 700; white-space: nowrap; }
.op-savebar__text > span:not(.visually-hidden) { font-size: var(--fs-xs); font-weight: 500; color: var(--ink-2); }
.op-savebar__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; }
.op-savebar.is-saving .op-savebar__dot { background: currentColor; opacity: 0.55; }
.op-savebar.is-error .op-savebar__dot { background: currentColor; }
.op-savebar.is-error { box-shadow: inset 0 0 0 1.5px var(--ink); }
.op-savebar__save { flex: none; margin-left: auto; white-space: nowrap; }
.op-savebar { flex-wrap: wrap; }
.op-savebar__status { flex-basis: 9.5rem; }
.op-savebar__save .icon { width: 15px; height: 15px; }
.op-savebar__again { width: 40px; height: 40px; }
.op-dock { display: none; }
.op-suggest__note { font-size: var(--fs-xs); line-height: 1.5; opacity: 0.85; }
.op-hint--note { padding: 12px 14px; border-radius: var(--op-radius-in); background: var(--ds-attn-bg, var(--accent-soft)); color: var(--ink); }
.op-surprise-btn[aria-busy="true"] { cursor: progress; }
/* Bigger touch area for the day arrows without changing their look. */
.op-days__arrow { position: relative; }
.op-days__arrow::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; }
@media (pointer: coarse) { .op-savebar__again { width: 44px; height: 44px; } }
@media (max-width: 899.98px) {
  .op-dock {
    display: block;
    grid-column: 1 / -1;
    position: sticky; z-index: 30;
    bottom: max(10px, env(safe-area-inset-bottom));
    transition: opacity var(--dur-2) ease, transform var(--dur-2) var(--ease-out), visibility 0s linear 0s;
  }
  .op-dock .op-savebar { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .op-dock.is-tucked { opacity: 0; transform: translateY(14px); visibility: hidden; pointer-events: none;
    transition: opacity var(--dur-2) ease, transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2); }
  /* While the Save dock is on screen, confirmations appear under the header instead of on top of it. */
  .op-app.has-dock ~ .op-toast { top: calc(var(--header-h) + 12px); bottom: auto; transform: translate(-50%, -12px); }
  .op-app.has-dock ~ .op-toast.is-in { transform: translate(-50%, 0); }
}

/* ---------- 11c. PHASE 45.2 — SEVEN-STEP WEEK & REVIEW ------------------ */
/* Marjorie's day row doubles as the step indicator: ○✓ draft saved, ●✓ confirmed,
   dashed ring = unsaved changes. Tokens only → Light, Dark, Winter Arc follow. */
.op-days--steps .op-day { min-height: 62px; padding-bottom: 20px; }
.op-days--steps .op-day__dot { bottom: 5px; width: 15px; height: 15px; display: grid; place-items: center; }
.op-days--steps .op-day__dot .icon { width: 10px; height: 10px; stroke-width: 3; }
.op-days--steps .op-day.is-saved .op-day__dot { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.op-days--steps .op-day.is-confirmed .op-day__dot { background: currentColor; }
.op-days--steps .op-day.is-confirmed .op-day__dot .icon { color: var(--bg); }
.op-days--steps .op-day.is-confirmed[aria-selected="true"] .op-day__dot .icon { color: var(--ink); }
.op-days--steps .op-day.is-draft .op-day__dot, .op-days--steps .op-day.is-cleared .op-day__dot,
.op-days--steps .op-day.is-attention .op-day__dot { width: 9px; height: 9px; bottom: 8px; background: transparent; box-shadow: none; border: 1.5px dashed currentColor; }
.op-chip--saved { border-color: var(--ink); color: var(--ink); }
.op-progress { flex: 1 1 100%; display: grid; gap: 8px; }
.op-progress__bar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.op-progress__bar li { height: 6px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--ink) 10%, transparent); }
.op-progress__bar li.is-saved { background: color-mix(in srgb, var(--ink) 55%, transparent); }
.op-progress__bar li.is-confirmed { background: var(--ink); }
.op-progress__bar li.is-draft, .op-progress__bar li.is-cleared, .op-progress__bar li.is-attention {
  background: repeating-linear-gradient(90deg, var(--ink-3) 0 4px, transparent 4px 7px); }
.op-progress__bar li.is-current { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.op-progress__label { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--fs-sm); color: var(--ink-2); }
.op-progress__label strong { color: var(--ink); }
.op-weekbar .op-weekbar__why { flex: 1 1 100%; margin-top: -8px; }
.op-savebar.is-done .op-savebar__dot { width: 18px; height: 18px; display: grid; place-items: center; background: var(--ink); color: var(--bg); box-shadow: none; }
.op-savebar.is-done .op-savebar__dot .icon { width: 11px; height: 11px; stroke-width: 3; }
.op-savebar__save .icon + .icon, .op-savebar__save > .icon:last-child:not(:first-child) { margin-left: 2px; }
/* Review your week */
.op-wkreview { display: grid; gap: 18px; }
.op-wkreview__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.op-wkreview__head .op-fine { margin-top: 8px; }
.op-wkreview__head .op-textbtn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.op-wkreview__head .op-textbtn .icon { width: 15px; height: 15px; }
.op-wkreview__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.op-wkreview__day {
  display: grid; grid-template-columns: minmax(124px, auto) minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line); border-radius: var(--op-radius-in);
  background: var(--surface);
}
.op-wkreview__day.is-current { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.op-wkreview__pick {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px;
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink);
  font: inherit; text-align: left; cursor: pointer;
}
.op-wkreview__pick:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.op-wkreview__mark { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink); }
.op-wkreview__mark .icon { width: 14px; height: 14px; stroke-width: 2.5; }
.op-wkreview__day.is-saved .op-wkreview__mark { box-shadow: inset 0 0 0 1.5px var(--ink); }
.op-wkreview__day.is-confirmed .op-wkreview__mark { background: var(--ink); color: var(--bg); box-shadow: none; }
.op-wkreview__day.is-draft .op-wkreview__mark, .op-wkreview__day.is-attention .op-wkreview__mark, .op-wkreview__day.is-cleared .op-wkreview__mark { box-shadow: none; border: 1.5px dashed var(--ink-3); }
.op-wkreview__when { display: grid; line-height: 1.2; }
.op-wkreview__when strong { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 700; }
.op-wkreview__when span { font-size: var(--fs-xs); color: var(--ink-3); }
.op-wkreview__what { min-width: 0; }
.op-wkreview__pieces { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.op-wkreview__pieces li {
  display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%; min-width: 0;
  padding: 3px 9px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  font-size: var(--fs-xs); font-weight: 600; color: var(--ink);
}
.op-wkreview__pieces li > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-wkreview__code { flex: none; font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-3); }
.op-wkreview__empty, .op-wkreview__warn { margin: 0; font-size: var(--fs-xs); color: var(--ink-3); }
.op-wkreview__warn { margin-top: 4px; font-weight: 600; color: var(--ink); }
.op-wkreview__edit { min-height: 44px; padding-inline: 8px; }
.op-wkreview__foot, .op-wkreview__done { display: grid; justify-items: start; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.op-wkreview__confirm { min-height: 48px; padding-inline: 22px; }
.op-wkreview__why { color: var(--ink); font-weight: 600; }
/* Phones: confirmations appear under the header so they never cover the Save / Next controls under the avatar. */
@media (max-width: 899.98px) {
  .op-toast { top: calc(var(--header-h) + 12px); bottom: auto; transform: translate(-50%, -12px); }
  .op-toast.is-in { transform: translate(-50%, 0); }
}
.op-narrow { display: none; }
@media (max-width: 599.98px) {
  .op-wide { display: none; }
  .op-narrow { display: inline; }
  .op-savebar__status { flex: 1 1 0; }
  .op-days--steps .op-day { min-height: 58px; }
  .op-wkreview__day { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .op-wkreview__what { grid-column: 1 / -1; grid-row: 2; padding: 0 4px 4px 42px; }
  .op-wkreview__foot { justify-items: stretch; }
  .op-wkreview__confirm { width: 100%; }
}
@media (pointer: coarse) { .op-wkreview__pick, .op-wkreview__edit { min-height: 44px; } }

/* ---------- 12. SMALL SCREENS & REDUCED MOTION -------------------------- */
@media (max-width: 899.98px) {
  .op-modes { width: 100%; justify-content: stretch; }
  .op-mode { flex: 1 1 0; justify-content: center; padding: 0 12px; }
  .op-stage { max-width: 320px; }
  .op-stagecard__head { align-items: center; }
}
@media (max-width: 599.98px) {
  .op-beta { top: -0.55em; padding: 6px 10px; font-size: 0.6875rem; }
  .op-modes { border-radius: var(--op-radius-in); }
  .op-mode { min-height: 42px; gap: 6px; font-size: var(--fs-xs); flex-direction: column; padding: 6px 4px; border-radius: 14px; }
  .op-mode .icon { width: 16px; height: 16px; }
  .op-mode__count, .op-mode__sub { display: none; }
  .op-stage { max-width: min(300px, 78vw); }
  /* Phase 45.1: on short phones (iPhone SE, Safari with its toolbars) keep the
     whole avatar inside the screen — width follows the available height. */
  .op-stage { max-width: min(300px, 78vw, max(200px, calc((100vh - 280px) * 0.7509))); }
  @supports (height: 100svh) { .op-stage { max-width: min(300px, 78vw, max(200px, calc((100svh - 280px) * 0.7509))); } }
  .op-savebar { padding-left: 12px; gap: 8px; }
  .op-day { min-height: 50px; }
  .op-day__n { font-size: 1rem; }
  .op-days { gap: 2px; }
  .op-days__arrow { width: 34px; height: 34px; }
  .op-weekbar__actions { width: 100%; }
  .op-weekbar__actions .btn { flex: 1 1 auto; }
  .op-codes__row { flex-direction: column; }
  .op-codes .btn { align-self: stretch; }
  .op-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .op-proposal { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
  .op-req { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .op-req .op-textbtn { grid-column: 2 / -1; justify-self: start; }
  .op-exc__row { grid-template-columns: 1fr auto; }
  .op-exc__row > span { display: none; }
  .op-exc__row select { grid-column: 1 / 2; }
  .op-actionrow .btn { flex: 1 1 auto; }
  .ootd-sheet__body { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
  .ootd__full { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .op-stage__layer, .op-stage__layers, .op-tile__btn, .op-toast, .op-mode, .op-day, .op-dock, .op-dock.is-tucked { transition: none; }
  .op-tile__btn:hover { transform: none; }
}
