/* The app's Home, as the hero shows it: a drawing 1180 wide, never read —
   the frame around it is aria-hidden and a caption says what it is. */
.app { width: 1180px; border-radius: 16px; background: var(--bg); overflow: hidden; font-size: 13px; line-height: 1.4; text-align: left; display: flex; flex-direction: column; color: var(--ink); }
.app-top .logo .mark { width: 26px; height: 26px; margin: 0; }
.box-title { font-size: 13px; font-weight: 600; }
.legend i.cur { background: var(--ink); }
.legend i.prev { background: var(--muted2); }
.wait .ic:not(.tinted) { background: var(--card); color: var(--ink); }
.app svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.app-top { height: 56px; display: flex; align-items: center; gap: 4px; padding: 0 10px; flex: none; }
.app-top .logo { gap: 6px; padding-left: 14px; flex: 1; }
.app-top .wordmark { font-size: 18px; }
.app-bell { position: relative; width: 32px; height: 32px; border: 1px solid var(--bd2); border-radius: 999px; background: var(--card); color: var(--muted); display: grid; place-items: center; margin-right: 6px; }
.app-bell svg { width: 14px; height: 14px; stroke-width: 2; }
.app-bell i { position: absolute; top: 6px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--now); box-shadow: 0 0 0 1.5px var(--card); }
.app-search { height: 32px; padding: 0 10px; border: 1px solid var(--bd2); border-radius: 999px; background: var(--card); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.app-search svg { width: 13px; height: 13px; stroke-width: 2; }
.app-search kbd { font: inherit; font-size: 10.5px; border: 1px solid var(--bd2); border-radius: 5px; padding: 0 4px; color: var(--muted); }
.app-body { display: flex; gap: 10px; padding: 0 10px 10px; height: 820px; }
.rail { width: 52px; flex: none; background: var(--card); border: 1px solid var(--bd); border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0 12px; }
.rail span { width: 40px; height: 40px; border-radius: 12px; color: var(--muted); display: grid; place-items: center; }
.rail span.on { background: var(--pri); color: var(--pri-fg); }
.rail svg { width: 18px; height: 18px; stroke-width: 1.8; }
.rail .gap { flex: 1; height: auto; }
.rail .me { width: 34px; height: 34px; border-radius: 50%; background: #5B7A99; color: #fff; font-size: 12px; font-weight: 600; }
.main { flex: 1; min-width: 0; background: var(--card); border: 1px solid var(--bd); border-radius: 16px; overflow: hidden; padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.hello { display: flex; align-items: flex-end; gap: 12px; }
.hello > div:first-child { flex: 1; min-width: 0; }
.hello b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.hello small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.app .seg > * { height: 28px; padding: 0 12px; font-size: 12px; cursor: default; }
.two { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; }
.three { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); }
.box { background: var(--bg); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.three .box { gap: 12px; }
.box-head { display: flex; align-items: center; gap: 8px; }
.box-head b { font-size: 13px; font-weight: 600; flex: 1; }
.box-head .link { font-size: 12px; color: var(--muted); }
.box-head .count { font-size: 11.5px; font-weight: 500; background: var(--card); border-radius: 999px; padding: 1px 8px; }
.rows { display: flex; flex-direction: column; gap: 6px; }
.today-row { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 12px; padding: 8px 12px 8px 8px; }
.thumb { width: 36px; height: 36px; border-radius: 9px; background: repeating-linear-gradient(135deg, transparent 0 6px, var(--bd2) 6px 7px), var(--sel); flex: none; }
.hour { font-family: var(--mono); font-size: 12px; color: var(--muted); width: 40px; flex: none; }
.today-row .what { flex: 1; min-width: 0; }
.today-row .what b { display: block; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today-row .what small { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 1px; }
.state-pill { font-size: 11.5px; font-weight: 500; padding: 3px 9px; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.waits { display: flex; flex-direction: column; gap: 2px; }
.wait { display: flex; gap: 10px; padding: 7px 2px; align-items: flex-start; }
.wait .ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.wait .ic svg { width: 13px; height: 13px; stroke-width: 2; }
.wait p { margin: 0; font-size: 12.5px; line-height: 1.4; }
.wait p b { font-weight: 500; }
.wait p span { color: var(--fg2); }
.wait small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.period { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.period b { font-size: 15px; font-weight: 600; }
.period small { font-size: 12px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--bg); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.kpi .l { font-size: 12px; color: var(--muted); }
.kpi .v { display: flex; align-items: baseline; gap: 8px; }
.kpi .v b { font-size: 26px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .v span { font-size: 11.5px; font-weight: 500; padding: 1px 7px; border-radius: 999px; color: var(--ok); }
.kpi .was { display: flex; align-items: flex-end; gap: 10px; }
.kpi .was span { font-size: 11.5px; color: var(--muted); flex: 1; }
.kpi .was svg { width: 84px; height: 26px; overflow: visible; }
.kpi .prev { stroke: var(--muted2); stroke-width: 1.5; stroke-dasharray: 3 3; }
.kpi .cur { stroke: var(--ink); stroke-width: 1.8; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.legend i { width: 8px; height: 8px; border-radius: 2px; }
.bars { flex: 1; display: flex; gap: 8px; align-items: stretch; min-height: 0; }
.bars > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bars .col { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; border-bottom: 1px solid var(--bd2); }
.bars .col i { width: 14px; min-height: 2px; border-radius: 4px 4px 0 0; position: relative; }
.bars .col i.p { background: var(--muted2); opacity: .55; }
.bars .col i.c { background: var(--ink); }
.bars .col i.c span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 4px; font-size: 11px; font-weight: 500; font-style: normal; }
.bars .lbl { font-size: 11px; color: var(--muted); }
.bars .lbl.now { color: var(--ink); font-weight: 600; }
.mix { display: flex; flex-direction: column; gap: 6px; }
.mix .l { display: flex; font-size: 11.5px; color: var(--muted); }
.mix .l span:first-child { flex: 1; }
.mix .strip { display: flex; gap: 2px; height: 14px; border-radius: 5px; overflow: hidden; }
.fmt-legend { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.fmt-legend div { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.fmt-legend i { width: 8px; height: 8px; border-radius: 2px; }
.fmt-legend span:nth-of-type(1) { flex: 1; }
.fmt-legend span:nth-of-type(2) { font-variant-numeric: tabular-nums; font-weight: 500; }
.fmt-legend span:nth-of-type(3) { font-variant-numeric: tabular-nums; color: var(--muted); width: 28px; text-align: right; }
.team { display: flex; flex-direction: column; gap: 12px; }
.member { display: flex; align-items: center; gap: 10px; }
.member > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.member .t { display: flex; font-size: 12px; }
.member .t span:first-child { flex: 1; }
.member .t b { font-weight: 500; font-variant-numeric: tabular-nums; }
.member .t small { color: var(--muted); width: 48px; text-align: right; font-size: 11.5px; }
.member .track { height: 6px; border-radius: 3px; background: var(--sel); position: relative; }
.member .track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--ink); }
.member .track u { position: absolute; top: -3px; bottom: -3px; width: 2px; border-radius: 1px; background: var(--muted2); }
.marks { margin-top: auto; font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.marks i { width: 2px; height: 10px; background: var(--muted2); border-radius: 1px; }
