/* stories2.css: homepage v2 story panels (move, week-run, smart-feed). Reads app-kit/tokens.css (--ak-*) and
   www/screens.css (.akx-root, .akx-still, .akx-m-st tiles). Only transform and opacity animate. */
.s2-root { --s2-dur: .5s; --s2-teal: #1f6a95; --s2-shadow: 0 1px 2px rgba(15,56,96,.06), 0 8px 24px rgba(15,56,96,.08); font-size: 14px; }
.s2-root .akx-ic { width: 16px; height: 16px; flex: none; }
.s2-card { background: var(--ak-surface); border: 1px solid var(--ak-line); border-radius: 12px; box-shadow: var(--s2-shadow); position: relative; }
.s2-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.s2-root button:focus-visible, .s2-root [tabindex]:focus-visible { outline: 2px solid var(--ak-primary); outline-offset: 2px; }

/* ── move ─────────────────────────────────────────────────────────────────────────────────── */
.s2-move__card { overflow: hidden; }
.s2-move__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border-bottom: 1px solid var(--ak-line); }
.s2-move__name { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; color: var(--ak-navy); margin-right: auto; }
.s2-move__name .akx-ic { color: var(--ak-office); }
.s2-seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--ak-panel); border: 1px solid var(--ak-line); }
.s2-seg__b { font: 700 13px/1 var(--ak-font); color: var(--ak-ink-2); background: transparent; border: 0; border-radius: 6px; padding: 7px 14px; cursor: pointer; position: relative; }
.s2-seg__b[aria-pressed="true"] { background: var(--ak-navy); color: #fff; }
.s2-seg__b:disabled { cursor: default; }
.s2-seg__b.is-press { transform: scale(.94); }
.s2-seg__b { transition: transform .15s; }
.s2-move__count { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ak-ink-2); min-width: 92px; }
.s2-move__count b { font-size: 18px; color: var(--ak-ink); font-variant-numeric: tabular-nums; }
.s2-move__share { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: #fff; background: var(--s2-teal); border-radius: 8px; padding: 8px 12px; transition: transform .15s, opacity .3s; }
.s2-move__share.is-press { transform: scale(.94); }
.s2-move__stage { position: relative; padding: 10px; background: #f7f9fb; }
.s2-plan { display: block; width: 100%; height: auto; font-family: var(--ak-font); }
.s2-plan__floor { fill: #fff; }
.s2-plan__outline { fill: none; stroke: #3c4a57; stroke-width: 6; stroke-linejoin: round; }
.s2-plan__window { stroke: #8fbfee; stroke-width: 7; stroke-linecap: butt; }
.s2-plan__col { fill: #3c4a57; }
.s2-plan__wall { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.s2-plan__wall--solid { stroke: #3c4a57; stroke-width: 6; }
.s2-plan__wall--glass { stroke: #9db8cf; stroke-width: 4; }
.s2-plan__room { fill: #eef3f7; stroke: #c8d4de; stroke-width: 2; }
.s2-plan__roomname { font: 600 17px var(--ak-font); fill: #24384d; font-optical-sizing: none; }
.s2-rpill rect { fill: #fff; stroke: #a9c6de; stroke-width: 2; }
.s2-rpill circle:not(.s2-rpill__ic) { fill: #1f6a95; }
.s2-rpill__ic { fill: none; stroke: #6f8195; stroke-width: 1.8; }
.s2-rpill__n { font: 600 16px var(--ak-font); fill: #6f8195; font-optical-sizing: none; }
.s2-pop { opacity: 0; transform: scale(.97); transform-box: view-box; transform-origin: 50% 50%; transition: opacity var(--s2-dur) var(--ak-ease), transform var(--s2-dur) var(--ak-ease); }
.s2-pop--bank { transform: translateY(14px); }
.s2-pop.is-in { opacity: 1; transform: none; }
.s2-desk__top { fill: var(--ak-desk-pad); stroke: var(--ak-desk-free-stroke); stroke-width: 1.5; }
.s2-desk__chair { fill: #fff; stroke: var(--ak-desk-free-stroke); stroke-width: 1.5; }
.s2-desk__tint { fill: var(--hue); opacity: 0; transition: opacity .45s var(--ak-ease); }
.s2-desk__tint.is-on { opacity: .62; }
.s2-zone { opacity: 0; transition: opacity .6s var(--ak-ease); }
.s2-zone.is-in { opacity: 1; }
.s2-plan.is-focus .s2-zone.is-in:not(.s2-zone--design), .s2-plan.is-focus .s2-pop--bank:not(.s2-bank--design) { opacity: .35; }
.s2-plan .s2-pop--bank { transition: opacity .4s var(--ak-ease), transform var(--s2-dur) var(--ak-ease); }
.s2-zone__area { fill: var(--hue); fill-opacity: .08; stroke: var(--hue); stroke-width: 2.5; stroke-dasharray: 10 7; }
.s2-zone__tag rect { fill: #fff; stroke: #dfe5eb; stroke-width: 2; }
.s2-zone__dot { fill: var(--hue); }
.s2-zone__tag text { font: 600 20px var(--ak-font); fill: #24384d; font-optical-sizing: none; }
.s2-zone__tag { transition: transform .5s var(--ak-ease); }
.s2-av { opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: 50% 50%; transition: opacity .35s var(--ak-ease), transform .45s cubic-bezier(.3,1.5,.5,1); }
.s2-av.is-on { opacity: 1; transform: none; }
.s2-av circle { fill: var(--hue); stroke: #fff; stroke-width: 3; }
.s2-av text { font: 800 17px var(--ak-font-cond); fill: #fff; font-optical-sizing: none; }
.s2-av.is-me circle { stroke: var(--ak-navy); stroke-width: 5; }
.s2-mine { opacity: 0; transition: opacity .4s var(--ak-ease); }
.s2-mine.is-in { opacity: 1; }
.s2-mine__halo { fill: var(--ak-desk-mine-fill); fill-opacity: .14; stroke: var(--ak-desk-mine-fill); stroke-width: 3; transform-box: fill-box; transform-origin: 50% 50%; }
.s2-mine.is-in .s2-mine__halo { animation: s2-pulse 1.6s ease-out infinite; }
@keyframes s2-pulse { 0% { transform: scale(.7); opacity: 1 } 100% { transform: scale(1.35); opacity: 0 } }
.s2-mine__pin rect { fill: var(--ak-desk-mine-fill); }
.s2-mine__pin text { font: 800 19px var(--ak-font); fill: #fff; font-optical-sizing: none; }
.s2-move__chip { position: absolute; left: 20px; bottom: 18px; font: 700 12px/1 var(--ak-font-cond); text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--ak-navy); border-radius: 6px; padding: 6px 9px; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ak-ease); }
.s2-move__chip.is-in { opacity: 1; transform: none; }
.s2-move__sheet { position: absolute; right: 16px; bottom: 16px; width: min(270px, calc(100% - 32px)); background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(15,56,96,.22); padding: 12px 14px; display: grid; gap: 8px; opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ak-ease), transform .45s var(--ak-ease); }
.s2-move__sheet.is-in { opacity: 1; transform: none; }
.s2-move__sheettop { display: flex; align-items: center; gap: 10px; }
.s2-move__sheettop b { display: block; font-size: 15px; }
.s2-av-chip { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--ak-font-cond); color: #fff; background: var(--hue); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ak-navy); flex: none; }
.s2-team { display: inline-block; margin-top: 2px; font: 700 12px/1 var(--ak-font); color: var(--hue); background: color-mix(in srgb, var(--hue) 12%, #fff); border-radius: 6px; padding: 3px 7px; }
.s2-move__sheetrow { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ak-ink-2); }
.s2-move__sheetrow .akx-ic { color: var(--ak-navy); }

/* ── week run ─────────────────────────────────────────────────────────────────────────────── */
.s2-week { display: grid; gap: 16px; }
.s2-week__inner { padding: 16px 18px 18px; display: grid; gap: 14px; }
.s2-week__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.s2-week__ht { display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1 var(--ak-font-cond); text-transform: uppercase; letter-spacing: .06em; color: var(--akx-label); }
.s2-week__of { font-size: 13px; color: var(--ak-ink-2); }
.s2-week__chart { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.s2-wcol { display: grid; gap: 6px; justify-items: center; }
.s2-wcol__top { height: 24px; display: flex; align-items: flex-end; }
.s2-wcol__n { font-size: 20px; font-weight: 800; color: var(--ak-ink-2); font-variant-numeric: tabular-nums; opacity: .35; transition: opacity .4s; }
.s2-wcol.is-live .s2-wcol__n { opacity: 1; color: var(--ak-ink); }
.s2-wcol__well { position: relative; width: 100%; max-width: 76px; height: 130px; border-radius: 8px; background: var(--ak-notset-fill); overflow: visible; }
.s2-wcol__ghost, .s2-wcol__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; border-radius: 8px; transform-origin: 50% 100%; transform: scaleY(calc(var(--v) * 0)); }
.s2-wcol__ghost { background: repeating-linear-gradient(-45deg, rgba(0,96,209,.16) 0 3px, transparent 3px 7px); box-shadow: inset 0 0 0 1.5px rgba(0,96,209,.45); opacity: 0; transition: transform .7s var(--ak-ease), opacity .4s; }
.s2-wcol__ghost.is-in { opacity: 1; transform: scaleY(var(--v)); }
.s2-wcol__bar { background: var(--ak-office); transition: transform .9s var(--ak-ease); }
.s2-wcol__bar.is-in { transform: scaleY(var(--v)); }
.s2-wcol__chip, .s2-wcol__note { position: absolute; left: 50%; bottom: calc(var(--v) * 100% + 6px); white-space: nowrap; font: 700 11px/1 var(--ak-font); border-radius: 6px; padding: 4px 6px; opacity: 0; transform: translate(-50%, 6px); transition: opacity .4s, transform .4s var(--ak-ease); }
.s2-wcol__chip { display: inline-flex; align-items: center; gap: 4px; color: var(--ak-teamday); background: #f1edf7; border-radius: 999px; padding: 4px 8px 4px 6px; box-shadow: 0 0 0 1.5px #fff; bottom: auto; top: 6px; }
.s2-wcol__chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ak-teamday); flex: none; } /* the app's "● <Team> day" chip */
.s2-wcol__note { color: var(--ak-ink-2); background: #fff; border: 1px solid var(--ak-line); }
.s2-wcol__chip.is-in, .s2-wcol__note.is-in { opacity: 1; transform: translate(-50%, 0); }
.s2-wcol__day { font: 700 12px/1 var(--ak-font-cond); letter-spacing: .06em; color: var(--akx-label); }
.s2-tl { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding-top: 18px; }
.s2-tl__track { position: absolute; top: 24px; left: 10%; right: 10%; height: 3px; border-radius: 2px; background: var(--ak-line); }
.s2-tl__prog { position: absolute; inset: 0; border-radius: 2px; background: var(--ak-today); transform-origin: 0 50%; transform: scaleX(0); transition: transform .9s var(--ak-ease); }
.s2-tl__stop { position: relative; display: grid; gap: 4px; justify-items: center; text-align: center; padding-top: 22px; }
.s2-tl__dot { position: absolute; top: 0; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--ak-line); }
.s2-tl__dot::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; background: var(--ak-today); opacity: 0; transform: scale(.4); transition: opacity .3s, transform .35s var(--ak-ease); }
.s2-tl__stop.is-on .s2-tl__dot::after, .s2-tl__stop.is-past .s2-tl__dot::after { opacity: 1; transform: none; }
.s2-tl__t { font-size: 14px; font-weight: 800; color: var(--ak-ink); }
.s2-tl__c { font-size: 12.5px; line-height: 1.35; color: var(--ak-ink-2); }
.s2-tl__stop { opacity: .5; transition: opacity .4s; }
.s2-tl__stop.is-on, .s2-tl__stop.is-past { opacity: 1; }
.s2-tl__stop.is-on .s2-tl__t { color: var(--ak-today); }
.s2-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.s2-stat { background: var(--ak-surface); border: 1px solid var(--ak-line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; align-content: start; }
.s2-stat p { margin: 0; }
.s2-stat__n { font-size: 26px; line-height: 1.05; font-weight: 900; color: var(--ak-navy); letter-spacing: -.01em; white-space: nowrap; }
.s2-stat__num { display: inline-block; text-align: right; font-variant-numeric: tabular-nums; }
.s2-stat__t { font-size: 13px; line-height: 1.4; color: var(--ak-ink); }
.s2-stat__src { font: 600 12px/1.3 var(--ak-font-cond); color: var(--ak-ink-2); letter-spacing: .02em; }
@container (max-width: 640px) {
  .s2-stats { grid-template-columns: repeat(2, 1fr); }
}
@container (max-width: 520px) {
  .s2-week__chart { gap: 6px; }
  .s2-wcol__well { height: 104px; }
  .s2-wcol__n { font-size: 16px; }
  .s2-wcol__chip, .s2-wcol__note { font-size: 10px; padding: 3px 4px; }
  .s2-wcol:last-child .s2-wcol__note { left: auto; right: 0; transform: translateY(6px); }
  .s2-wcol:last-child .s2-wcol__note.is-in { transform: none; }
  .s2-tl { grid-template-columns: 1fr; gap: 10px; padding-top: 4px; }
  .s2-tl__track { display: none; }
  .s2-tl__stop { justify-items: start; text-align: left; padding: 0 0 0 26px; }
  .s2-tl__dot { left: 0; top: 1px; }
  .s2-stat__n { font-size: 22px; }
}
@container (max-width: 400px) {
  .s2-stats { grid-template-columns: 1fr; }
  .s2-move__count { min-width: 0; }
  .s2-move__share { padding: 6px 9px; font-size: 12px; }
}

/* ── smart feed (bell panel) ──────────────────────────────────────────────────────────────── */
.s2-feed__card { max-width: 640px; margin: 0 auto; }
.s2-feed__head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--ak-line); font-size: 15px; color: var(--ak-ink); }
.s2-feed__head b { font-weight: 600; margin-right: auto; }
.s2-feed__mark { font-size: 13.5px; font-weight: 700; color: #1f5f9a; }
.s2-feed__x { display: grid; color: var(--ak-ink-2); }
.s2-feed__x .akx-ic { width: 16px; height: 16px; }
/* NEEDS YOU: the app's purple block (#4123 bell) */
.s2-needs { margin: 10px 10px 4px; padding: 8px 8px 8px; border-radius: 10px; background: #f4f0fb; border: 1px solid #e3d9f3; display: grid; gap: 6px; }
.s2-needs__h { display: flex; align-items: center; gap: 8px; padding: 2px 4px 2px; }
.s2-needs__t { font: 700 12px/1 var(--ak-font-cond); letter-spacing: .08em; text-transform: uppercase; color: #5b2a8c; }
.s2-needs__n { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #5b2a8c; color: #fff; font: 700 11px/1 var(--ak-font); }
.s2-needs__clr { margin-left: auto; font-size: 12px; color: var(--ak-ink-2); }
.s2-act { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; background: #fff; border: 1px solid #e6def3; }
.s2-act--row { background: transparent; border-color: transparent; }
.s2-act__body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.s2-act__body b { font-size: 14px; font-weight: 700; color: var(--ak-ink); line-height: 1.3; }
.s2-act--row .s2-act__body b { color: #5b2a8c; }
.s2-act__body span { font-size: 12.5px; color: var(--ak-ink-2); }
.s2-act__btn { flex: none; font: 700 13px/1 var(--ak-font-cond); color: #5b2a8c; border: 1.5px solid #5b2a8c; border-radius: 7px; padding: 7px 10px; }
.s2-act__chev { width: 16px; height: 16px; color: var(--ak-ink-2); flex: none; }
.s2-note__ic--needs { background: #ebe3f7; color: #5b2a8c; }
/* NEW / PREVIOUS */
.s2-feed__list { list-style: none; margin: 0; padding: 4px 8px 8px; display: grid; gap: 2px; }
.s2-feed__sec { display: flex; align-items: center; padding: 10px 12px 4px; font: 600 12px/1 var(--ak-font); letter-spacing: .08em; text-transform: uppercase; color: var(--ak-ink-2); }
.s2-feed__clear { margin-left: auto; font: 700 13px/1 var(--ak-font-cond); letter-spacing: 0; text-transform: none; color: #1f5f9a; }
.s2-arrive { opacity: 0; transform: translateY(6px); transition: opacity .45s var(--ak-ease), transform .5s var(--ak-ease); }
.s2-arrive.is-in { opacity: 1; transform: none; }
.s2-note { position: relative; }
.s2-note:hover, .s2-note:focus-within, .s2-note.is-open, .s2-note.is-peek { z-index: 5; }
.s2-note__b { display: flex; align-items: flex-start; gap: 12px; padding: 9px 12px; border-radius: 10px; cursor: pointer; background: #fff; transition: background-color .2s; }
.s2-note__b:hover, .s2-note.is-open .s2-note__b, .s2-note.is-peek .s2-note__b, .s2-note__b:focus-visible { background: var(--ak-panel); }
.s2-note__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; }
.s2-note__ic .akx-ic { width: 17px; height: 17px; }
.s2-note__ic--office { background: var(--ak-office-fill); color: var(--ak-office); }
.s2-note__ic--teal { background: #e3eff6; color: var(--s2-teal); }
.s2-note__ic--team { background: #efebf6; color: var(--ak-teamday); }
.s2-note__ic--amber { background: #fff7e3; color: #7a5300; }
.s2-note__ic--design { background: #e4f0fa; color: #1377cc; }
.s2-note__body { display: grid; gap: 3px; min-width: 0; flex: 1; padding-top: 7px; }
.s2-note__text { font-size: 14px; line-height: 1.35; color: var(--ak-ink); font-weight: 600; }
.s2-note__time { display: inline-flex; align-items: center; gap: 6px; flex: none; padding-top: 9px; font-size: 12.5px; line-height: 1; color: var(--ak-ink-2); white-space: nowrap; }
.s2-note__new { width: 7px; height: 7px; border-radius: 50%; background: var(--ak-primary); flex: none; }

.s2-pv { position: absolute; left: 58px; top: calc(100% - 4px); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; max-width: calc(100% - 66px); padding: 10px 12px; background: #fff; border: 1px solid var(--ak-line); border-radius: 10px; box-shadow: 0 10px 28px rgba(15,56,96,.18); opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .22s, transform .25s var(--ak-ease); }
.s2-note--up .s2-pv { top: auto; bottom: calc(100% - 4px); transform: translateY(4px); }
.s2-note:hover .s2-pv, .s2-note:focus-within .s2-pv, .s2-note.is-open .s2-pv, .s2-note.is-peek .s2-pv { opacity: 1; transform: none; }
.s2-note[aria-hidden="true"] .s2-pv { opacity: 0 !important; }
.s2-pv__week { display: flex; gap: 6px; }
.s2-pv__day { position: relative; display: grid; justify-items: center; gap: 3px; }
.s2-pv__dl { font: 700 10px/1 var(--ak-font-cond); color: var(--akx-label); text-transform: uppercase; letter-spacing: .05em; }
.s2-pv__mark { position: absolute; top: -10px; left: 50%; transform: translate(-50%, -100%); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; font: 700 10px/1 var(--ak-font); color: var(--ak-teamday); background: #efebf6; border-radius: 999px; padding: 3px 6px; }
.s2-pv__mark::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--ak-teamday); }
.s2-pv__req { font: 700 11px/1 var(--ak-font-cond); letter-spacing: .04em; text-transform: uppercase; color: #7a5300; background: #fff7e3; border-radius: 999px; padding: 4px 8px; }
.s2-pv__week:has(.s2-pv__mark) { margin-top: 16px; }
.s2-pv__cap { font-size: 12.5px; color: var(--ak-ink-2); font-weight: 600; }
.s2-pv__cap--ink { color: var(--ak-ink); font-weight: 800; }
.s2-pv__sugg { display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1 var(--ak-font); color: #0f2942; background: #edf2f7; border: 1px solid #e3e8ee; border-radius: 9px; padding: 7px 10px; }
.s2-pv__sugg .akx-ic { width: 14px; height: 14px; color: #6f8195; }
.s2-pv__why { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ak-ink-2); font-weight: 600; }
.s2-pv__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hue); }
.s2-pv__btn { font: 700 12px/1 var(--ak-font); color: #fff; background: var(--akx-btn, #12305a); border-radius: 7px; padding: 7px 10px; }
.s2-pv__pill { font: 700 12px/1 var(--ak-font); color: #7a5300; background: #fff7e3; border: 1px solid #f0d28a; border-radius: 999px; padding: 4px 8px; }
.s2-pv__room { font: 800 13px/1 var(--ak-font); color: var(--ak-ink); padding: 6px 9px; background: #eef3f7; border-radius: 7px; }
.s2-pv__avs { display: inline-flex; }
.s2-pv__av.akx-m-av, .s2-pv__av { width: 26px; height: 26px; margin-left: -5px; font-size: 10px; border: 2px solid #fff; border-radius: 50%; }
.s2-pv__avs > :first-child { margin-left: 0; }
.s2-pv__av.akx-m-av { background: var(--hue); color: #fff; }
.s2-pv__av--empty { display: inline-block; background: #fff; box-shadow: inset 0 0 0 1.5px #b8c5d1; border-style: dashed; border-color: #fff; }
@container (max-width: 420px) {
  .s2-pv { left: 12px; max-width: calc(100% - 24px); }
  .s2-note__text { font-size: 13px; }
  .s2-note__b { flex-wrap: wrap; row-gap: 2px; }
  .s2-note__time { width: 100%; margin-left: 46px; padding-top: 0; }
  .s2-needs__clr { display: none; }
  .s2-act { flex-wrap: wrap; }
  .s2-act__btn { margin-left: 46px; }
}
