/* Charts, stat cards, Home grid. */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.chart .base { stroke: var(--border-strong); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.chart .axis.sub { font-size: 10px; fill: var(--faint); }
.chart .val { fill: var(--text); font-size: 11px; font-weight: 600; font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.chart .bar { fill: var(--brand); }
.chart .bar-hl { fill: var(--bad); }
.chart .grow { transform-box: fill-box; transform-origin: 50% 100%; }
.chart[data-anim] .grow { transform: scaleY(0); transition: transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.chart[data-anim].in .grow { transform: scaleY(1); }
.chart[data-anim] .val { opacity: 0; transition: opacity .3s var(--ease) .6s; }
.chart[data-anim].in .val { opacity: 1; }
.chart .area { fill: var(--brand-tint); }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart[data-anim] .line { stroke-dasharray: 2000; stroke-dashoffset: 2000; transition: stroke-dashoffset .8s var(--ease); }
.chart[data-anim].in .line { stroke-dashoffset: 0; }
.chart[data-anim] .area { opacity: 0; transition: opacity .8s var(--ease) .2s; }
.chart[data-anim].in .area { opacity: 1; }
.chart .pt-last { fill: var(--accent); stroke: var(--card); stroke-width: 2; }
.chart .pt-hit { fill: transparent; }
.chart .pt-hit:hover { fill: var(--brand-tint-strong); }
.spark { width: 100%; height: 32px; display: block; }
.spark { margin-top: auto; }
.spark .area { fill: var(--brand-tint); }
.spark .line { fill: none; stroke: var(--brand); stroke-width: 1.8; }
.spark-bad .area { fill: var(--bad-tint); }
.spark-bad .line { stroke: var(--bad); }
.spark[data-anim] .line { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset .8s var(--ease); }
.spark[data-anim].in .line { stroke-dashoffset: 0; }

.chart-card { padding: 16px 18px; display: grid; gap: 10px; align-content: start; }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chart-head p { color: var(--muted); font-size: 12.5px; }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.stat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat-card { padding: 14px 16px 10px; display: grid; gap: 4px; text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s; }
a.stat-card:hover { box-shadow: var(--shadow-2); border-color: var(--border-strong); }
.stat-card small { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.stat-card .big { font: 800 28px/1.1 var(--font-head); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat-card .delta { font-size: 12px; font-weight: 600; }
.delta.up { color: var(--good-ink); } .delta.down { color: var(--bad-ink); }
.home-row { display: grid; gap: 14px; margin-bottom: 14px; align-items: stretch; }
.home-row.r2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.home-row.r3 { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); }
.attn { display: grid; }
.attn a { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px dashed var(--border); text-decoration: none; color: var(--text); font-size: 13px; }
.attn a:last-child { border-bottom: 0; }
.attn a:hover { background: var(--surface); }
.attn svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.attn .n { margin-left: auto; font: 700 13px/1 var(--font-body); font-variant-numeric: tabular-nums; padding: 3px 8px; border-radius: 99px; background: var(--bad-tint); color: var(--bad-ink); }
.attn .ok { display: flex; align-items: center; gap: 8px; color: var(--good-ink); font-weight: 600; padding: 12px 4px; }
.list-lines { display: grid; }
.list-lines a, .list-lines div.li { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px dashed var(--border); text-decoration: none; color: var(--text); font-size: 13px; min-width: 0; }
.list-lines a:last-child, .list-lines div.li:last-child { border-bottom: 0; }
.list-lines .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-lines .r { margin-left: auto; font-variant-numeric: tabular-nums; }

.tabs-line { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--r-ctl); overflow: hidden; background: var(--card); }
.seg button { height: 30px; padding: 0 11px; border: 0; background: transparent; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; border-right: 1px solid var(--border); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--brand-tint); color: var(--brand-ink); }
.date-range { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.date-range input { height: 32px; border: 1px solid var(--border-strong); border-radius: var(--r-ctl); padding: 0 8px; font: inherit; color: var(--text); background: var(--card); }

@media (max-width: 1200px) { .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .home-row.r3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 899px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-row.r2, .home-row.r3 { grid-template-columns: minmax(0, 1fr); }
  .stat-card .big { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .chart[data-anim] .grow, .chart[data-anim] .val, .chart[data-anim] .line, .chart[data-anim] .area, .spark[data-anim] .line { transform: none; stroke-dashoffset: 0; opacity: 1; transition: none; }
}

.show-more { justify-self: start; margin-top: 2px; }
.list-lines .li { padding: 10px 2px; }

/* ---------- Dashboard builder ---------- */
.dash-hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dash-actions { display: flex; gap: 8px; }
.dash-tabs .views { margin-bottom: 12px; }
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; grid-auto-flow: row dense; align-items: stretch; }
.wcard { display: flex; flex-direction: column; min-width: 0; }
.wcard > .card { flex: 1; }
.wbody { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.wbody > .card { flex: 1; }
.w-s { grid-column: span 3; }
.w-m { grid-column: span 6; }
.w-l { grid-column: span 9; }
.w-full, .dash > .w-full { grid-column: 1 / -1; }
.dash-banner { display: flex; gap: 10px; align-items: center; }
@media (max-width: 1200px) { .w-s { grid-column: span 6; } .w-m { grid-column: span 6; } .w-l { grid-column: span 12; } }
@media (max-width: 760px) { .w-s, .w-m, .w-l { grid-column: span 12; } .w-s.w-kpi { grid-column: span 6; } }

.dash-editbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 14px; border-color: var(--brand); background: linear-gradient(var(--brand-tint), var(--brand-tint)), var(--card); }
.deb-note { display: flex; align-items: center; gap: 8px; flex: 1 1 320px; font-size: 13px; color: var(--text); }
.deb-note svg { width: 16px; height: 16px; flex: none; color: var(--brand-ink); }
.deb-note span svg { width: 13px; height: 13px; vertical-align: -2px; display: inline; }
.deb-btns { display: flex; gap: 6px; flex-wrap: wrap; }

.dash.is-editing .wcard { outline: 2px dashed var(--border-strong); outline-offset: 3px; border-radius: var(--r-card); }
.dash.is-editing .wbody { pointer-events: none; user-select: none; }
.dash.is-editing .wcard[draggable="true"] { cursor: grab; }
.wcard.is-dragging { opacity: .4; }
.wcard.drop-before { box-shadow: -4px 0 0 var(--brand); }
.wcard.drop-after { box-shadow: 4px 0 0 var(--brand); }
.wbar { display: flex; align-items: center; gap: 4px; padding: 4px 4px 6px; flex-wrap: wrap; }
.wbar .wname { flex: 1; min-width: 0; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wbar .icon-btn { width: 28px; height: 28px; }
.wbar .icon-btn svg { width: 15px; height: 15px; }
.wbar .icon-btn:disabled { opacity: .3; cursor: default; }
.wbar .wremove:hover { background: var(--bad-tint); color: var(--bad-ink); }
.wgrip { display: inline-flex; color: var(--faint); cursor: grab; }
.wgrip svg { width: 15px; height: 15px; }
.wsizes { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.wsizes button { border: 0; background: var(--card); color: var(--muted); font: 600 11.5px/1 var(--font-body); padding: 6px 7px; cursor: pointer; }
.wsizes button + button { border-left: 1px solid var(--border); }
.wsizes button[aria-pressed="true"] { background: var(--brand); color: var(--brand-on); }

.shortcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.shortcuts a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--text); font-size: 13px; font-weight: 500; }
.shortcuts a:hover { border-color: var(--border-strong); background: var(--surface); }
.shortcuts svg { width: 16px; height: 16px; color: var(--brand-ink); flex: none; }
.shortcuts span { line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
.clocks .li { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px dashed var(--border); font-size: 13px; }
.clocks .li:last-child { border-bottom: 0; }
.clocks .grow { flex: 1; }

.dialog-wide { width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; }
.wlib h3, .td-block h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 6px 0 8px; }
.wlib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-bottom: 8px; }
.wlib-item { display: grid; gap: 4px; align-content: start; text-align: left; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); cursor: pointer; font: inherit; }
.wlib-item:hover:not(:disabled) { border-color: var(--brand); box-shadow: var(--shadow-1); }
.wlib-item:disabled { cursor: default; opacity: .75; }
.wlib-item b { font-size: 13.5px; }
.wlib-item small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.wlib-item .pill { justify-self: start; margin-top: 4px; }
.wlib-add { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--brand-ink); }
.wlib-add svg { width: 13px; height: 13px; }
.td-block { border-top: 1px solid var(--border); padding-top: 12px; display: grid; gap: 8px; }
.td-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.td-row select { flex: 1; min-width: 200px; }
.td-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.td-block .perm-checks { text-transform: none; }
.w-s .wbar .wname { display: none; }

/* Home tour: welcome dialog with a five-second clip of a miniature Home */
.tour-dialog { width: min(560px, calc(100vw - 24px)); gap: 12px; }
.tour-dialog h2 { font-size: 19px; }
.tour-dialog > p { margin: -6px 0 2px; }
.tv { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: inset 0 0 0 4px var(--card); }
.tv-top, .tv-edit { position: absolute; left: 4%; right: 4%; top: 4%; height: 11%; display: flex; align-items: center; gap: 2%; }
.tv-top { justify-content: space-between; }
.tv-edit { padding: 0 2%; border-radius: 8px; border: 1px solid var(--brand); background: linear-gradient(var(--brand-tint), var(--brand-tint)), var(--card); opacity: 0; }
.tv-line { flex: 1; height: 26%; max-width: 36%; border-radius: 99px; background: var(--border-strong); }
.tv-edit .tv-line { max-width: none; background: var(--brand-tint-strong); }
.tv-btn { font: 600 clamp(9px, 2.1vw, 12px)/1 var(--font-body); padding: 1.6% 3%; border-radius: 7px; border: 1px solid var(--border); background: var(--card); color: var(--text); white-space: nowrap; }
.tv-add { background: var(--brand); color: var(--brand-on); border-color: transparent; }
.tv-card { position: absolute; width: 29%; height: 24%; border-radius: 9px; background: var(--card); border: 1px solid var(--border); padding: 2.4%; box-sizing: border-box; display: grid; align-content: start; gap: 12%; }
.tv-card i { display: block; height: 9%; min-height: 4px; width: 55%; border-radius: 99px; background: var(--border-strong); }
.tv-card b { display: block; height: 22%; min-height: 8px; width: 35%; border-radius: 4px; background: var(--brand-tint-strong); }
.tv-card::after { content: ""; position: absolute; inset: -4px; border-radius: 11px; border: 1.5px dashed var(--brand); opacity: 0; }
.tv-c1 { left: 4%; top: 19%; } .tv-c2 { left: 35.5%; top: 19%; } .tv-c3 { left: 67%; top: 19%; }
.tv-c4 { left: 4%; top: 46%; } .tv-c5 { left: 35.5%; top: 46%; } .tv-c6 { left: 67%; top: 46%; }
.tv-sizes { position: absolute; right: 6%; top: 10%; display: flex; gap: 2px; opacity: 0; }
.tv-sizes em { font: 700 clamp(7px, 1.6vw, 9px)/1 var(--font-body); font-style: normal; padding: 3px 4px; border-radius: 4px; background: var(--surface); color: var(--muted); border: 1px solid var(--border); }
.tv-cursor { position: absolute; left: 62%; top: 82%; width: 6%; min-width: 18px; max-width: 26px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); z-index: 3; }
.tv-cursor svg { display: block; width: 100%; height: auto; }
.tv-ripple { position: absolute; width: 9%; aspect-ratio: 1; margin: -4.5% 0 0 -4.5%; border-radius: 50%; border: 2px solid var(--brand); background: var(--brand-tint); opacity: 0; z-index: 2; }
.tv-r1 { left: 88%; top: 10%; } .tv-r2 { left: 27%; top: 51%; } .tv-r3 { left: 91%; top: 10%; }
.tv-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--border); }
.tv-bar i { display: block; height: 100%; width: 0; background: var(--brand); }

.tv.is-playing .tv-cursor { animation: tvCursor 6s cubic-bezier(.45, 0, .2, 1) forwards; }
.tv.is-playing .tv-r1 { animation: tvRipple 6s linear forwards; }
.tv.is-playing .tv-r2 { animation: tvRipple2 6s linear forwards; }
.tv.is-playing .tv-r3 { animation: tvRipple3 6s linear forwards; }
.tv.is-playing .tv-top { animation: tvTop 6s linear forwards; }
.tv.is-playing .tv-edit { animation: tvEdit 6s linear forwards; }
.tv.is-playing .tv-card::after, .tv.is-playing .tv-sizes { animation: tvEdit 6s linear forwards; }
.tv.is-playing .tv-c4 { animation: tvGrow 6s cubic-bezier(.3, 0, .2, 1) forwards; }
.tv.is-playing .tv-c5 { animation: tvDrop5 6s cubic-bezier(.3, 0, .2, 1) forwards; }
.tv.is-playing .tv-c6 { animation: tvDrop6 6s cubic-bezier(.3, 0, .2, 1) forwards; }
.tv.is-playing .tv-bar i { animation: tvBar 6s linear forwards; }

@keyframes tvCursor {
  0%, 6% { left: 62%; top: 82%; }
  27%, 35% { left: 87%; top: 9%; }
  52%, 64% { left: 26%; top: 50%; }
  80%, 100% { left: 90%; top: 9%; }
}
@keyframes tvRipple { 0%, 27% { opacity: 0; transform: scale(.3); } 29% { opacity: 1; } 36%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes tvRipple2 { 0%, 55% { opacity: 0; transform: scale(.3); } 57% { opacity: 1; } 64%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes tvRipple3 { 0%, 81% { opacity: 0; transform: scale(.3); } 83% { opacity: 1; } 90%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes tvTop { 0%, 32% { opacity: 1; } 35%, 85% { opacity: 0; } 89%, 100% { opacity: 1; } }
@keyframes tvEdit { 0%, 32% { opacity: 0; } 35%, 85% { opacity: 1; } 89%, 100% { opacity: 0; } }
@keyframes tvGrow { 0%, 58% { width: 29%; } 66%, 100% { width: 92%; } }
@keyframes tvDrop5 { 0%, 58% { top: 46%; left: 35.5%; } 66%, 100% { top: 73%; left: 4%; } }
@keyframes tvDrop6 { 0%, 58% { top: 46%; left: 67%; } 66%, 100% { top: 73%; left: 35.5%; } }
@keyframes tvBar { to { width: 100%; } }

.tour-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tour-steps li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.3; transition: color .2s; }
.tour-steps li span { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 11px/1 var(--font-body); background: var(--surface); border: 1px solid var(--border); color: var(--muted); transition: background .2s, color .2s; }
.tour-steps li.is-on { color: var(--text); font-weight: 600; }
.tour-steps li.is-on span { background: var(--brand); color: var(--brand-on); border-color: transparent; }
@media (max-width: 520px) { .tour-steps { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  .tv.is-playing * { animation-duration: .01s !important; }
}

/* After the tour: the real Customize button glows and says where it is. */
.hint-pulse { position: relative; animation: hintPulse 1.3s ease-out 3; border-color: var(--brand) !important; }
.hint-pulse::after { content: "Customize is here"; position: absolute; top: calc(100% + 8px); right: 0; white-space: nowrap; padding: 6px 10px; border-radius: 8px;
  background: var(--brand); color: var(--brand-on); font: 600 12px/1 var(--font-body); box-shadow: var(--shadow-2); pointer-events: none; animation: hintTag 4.2s ease forwards; }
@keyframes hintPulse { 0% { box-shadow: 0 0 0 0 var(--brand-tint-strong), 0 0 0 0 var(--brand); } 60% { box-shadow: 0 0 0 10px transparent, 0 0 0 2px var(--brand); } 100% { box-shadow: 0 0 0 0 transparent, 0 0 0 0 transparent; } }
@keyframes hintTag { 0% { opacity: 0; transform: translateY(-4px); } 8%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ---------- Guide ---------- */
.guide { display: grid; gap: 14px; max-width: 1000px; }
.guide-intro { margin: 0; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.guide-card { display: grid; text-align: left; padding: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--card); overflow: hidden;
  cursor: pointer; color: var(--text); font: inherit; box-shadow: var(--shadow-1); transition: transform .12s var(--ease), box-shadow .12s; }
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.guide-thumb { position: relative; height: 130px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-tint-strong), var(--accent-tint)); color: var(--brand-ink); }
.guide-thumb > svg { width: 40px; height: 40px; opacity: .55; }
.guide-play { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--brand-on); display: grid; place-items: center; box-shadow: var(--shadow-2); }
.guide-play svg { width: 16px; height: 16px; }
.guide-body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.guide-body b { font-size: 14.5px; }
.guide-body span { font-size: 13px; color: var(--muted); }
.guide-body small { font-size: 11.5px; color: var(--faint); font-weight: 600; }

/* ---------- Guide clips: miniature screens played by a small script ---------- */
.gc { container-type: inline-size; color: var(--text); }
.gc-stage { position: absolute; inset: 0; font: 400 1.9cqw/1.25 var(--font-body); }
.gc-el { position: absolute; box-sizing: border-box; transition: top .6s cubic-bezier(.45, 0, .2, 1), left .6s cubic-bezier(.45, 0, .2, 1), width .45s, box-shadow .2s, background .2s, border-color .2s; }
.gc-el svg { width: 1.2em; height: 1.2em; flex: none; }
.gc-card { background: var(--card); border: 1px solid var(--border); border-radius: .8em; }
.gc-txt { display: flex; align-items: center; gap: .5em; padding: 0 .6em; overflow: hidden; white-space: nowrap; }
.gc-b { font-weight: 700; }
.gc-m { color: var(--muted); }
.gc-big { font-size: 1.2em; }
.gc-center { justify-content: center; }
.gc-right { justify-content: flex-end; }
.gc-line { display: block; flex: none; height: .55em; border-radius: 99px; background: var(--border-strong); }
.gc-btn { display: flex; align-items: center; justify-content: center; gap: .35em; border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: .6em; font-weight: 600; white-space: nowrap; }
.gc-btn.p, .gc-btn.is-on { background: var(--brand); color: var(--brand-on); border-color: transparent; }
.gc-btn.sm { font-size: .85em; }
.gc-input { background: var(--card); border: 1px solid var(--border); border-radius: .6em; }
.gc-input.is-focus { border-color: var(--brand); box-shadow: 0 0 0 .25em var(--brand-tint); }
.gc-pop { opacity: 0; transform: translateY(.3em) scale(.97); pointer-events: none; transition: opacity .25s, transform .25s, top .6s, left .6s; }
.gc-pop.is-on { opacity: 1; transform: none; }
.gc-av { flex: none; width: 1.9em; height: 1.9em; border-radius: 50%; display: grid; place-items: center; font-size: .8em; font-weight: 700; background: var(--brand-tint-strong); color: var(--brand-ink); }
.gc-av.sm { width: 1.4em; height: 1.4em; }
.gc-pill { flex: none; margin-left: auto; padding: .15em .55em; border-radius: 99px; font-size: .8em; font-weight: 600; background: var(--surface); color: var(--muted); border: 1px solid var(--border); }
.gc-pill.o { background: var(--good-tint); color: var(--good-ink); border-color: transparent; }
.gc-pill.w { background: var(--warn-tint); color: var(--warn-ink); border-color: transparent; }
.gc-pill.lab { margin-left: .2em; background: var(--brand-tint-strong); color: var(--brand-ink); border-color: transparent; }
.gc-chk { flex: none; width: 1.25em; height: 1.25em; border-radius: .3em; border: 1.5px solid var(--border-strong); display: grid; place-items: center; font-size: .8em; line-height: 1; color: transparent; transition: background .2s, border-color .2s, color .2s; }
.gc-chk.is-on { background: var(--brand); border-color: var(--brand); color: var(--brand-on); }
.gc-toast { display: flex; align-items: center; justify-content: center; border-radius: .7em; background: var(--text); color: var(--card); font-weight: 600; box-shadow: var(--shadow-2); z-index: 2; }
.gc-mi { display: flex; align-items: center; padding: 0 .6em; border-radius: .5em; font-weight: 500; }
.gc-cursor { position: absolute; left: 50%; top: 92%; width: 6%; min-width: 16px; max-width: 24px; z-index: 4; transform: translate(-16%, -10%); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
  transition: left .65s cubic-bezier(.45, 0, .2, 1), top .65s cubic-bezier(.45, 0, .2, 1); }
.gc-cursor svg { display: block; width: 100%; height: auto; }
.gc-ripple { position: absolute; width: 8%; aspect-ratio: 1; margin: -4% 0 0 -4%; border-radius: 50%; border: 2px solid var(--brand); background: var(--brand-tint); z-index: 3; pointer-events: none; animation: gcRipple .6s ease-out forwards; }
@keyframes gcRipple { from { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: scale(1.5); } }
.gc.is-playing .tv-bar i { animation: tvBar var(--gc-d, 8s) linear forwards; }
.tour-steps.gc-steps { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
@media (max-width: 520px) { .tour-steps.gc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* tables */
.gc-table { display: flex; gap: .5em; padding: .7em; overflow: hidden; }
.gc-col { flex: var(--g, 1) 1 0; min-width: 0; display: grid; gap: .6em; align-content: start; overflow: hidden; transition: flex-grow .45s, opacity .35s; }
.gc-col.is-off { flex-grow: 0; opacity: 0; margin-left: -.5em; }
.gc-th { font-size: .85em; color: var(--muted); white-space: nowrap; padding-bottom: .3em; border-bottom: 1px solid var(--border); }
.gc-cell { display: flex; align-items: center; gap: .4em; height: 1.7em; }
.gc-cell .gc-pill { margin-left: 0; }
.gc-flash { animation: gcFlash 1.2s ease; }
@keyframes gcFlash { 0%, 100% { background: transparent; } 30% { background: var(--brand-tint); } }
.gc-panel { box-shadow: var(--shadow-2); padding: .7em .8em; }
.gc-row { border-radius: .5em; background: var(--card); padding: 0 .4em; gap: .4em; }
.gc-grip { display: flex; color: var(--faint); }
.gc-lift { box-shadow: var(--shadow-2); background: var(--surface); z-index: 2; }

/* patient panel */
.gc-prow.is-sel { border-color: var(--brand); }
.gc-dim { background: rgba(15, 23, 42, .25); }
.gc-sheet { background: var(--card); border-left: 1px solid var(--border); box-shadow: var(--shadow-2); transform: translateX(105%); transition: transform .45s cubic-bezier(.3, 0, .2, 1); }
.gc-sheet.is-on { transform: none; }
.gc-stat { display: grid; align-content: center; gap: .2em; padding: 0 .7em; border: 1px solid var(--border); border-radius: .6em; background: var(--surface); }
.gc-stat small { font-size: .8em; }
.gc-tab2 { display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--muted); transition: color .2s; }
.gc-tab2.is-sel { color: var(--text); }
.gc-uline { background: var(--brand); border-radius: 99px; transition: left .4s cubic-bezier(.45, 0, .2, 1), width .4s; }
.gc-area { padding: .6em .7em; }
.gc-payrow { justify-content: space-between; border-bottom: 1px solid var(--border); }

/* send rx */
.gc-step { display: flex; align-items: center; gap: .4em; font-weight: 600; color: var(--muted); }
.gc-num { flex: none; width: 1.6em; height: 1.6em; border-radius: 50%; display: grid; place-items: center; font-size: .85em; border: 1.5px solid var(--border-strong); transition: background .2s, color .2s, border-color .2s; }
.gc-step.is-now { color: var(--text); }
.gc-step.is-now .gc-num { border-color: var(--brand); color: var(--brand-ink); }
.gc-step.is-done .gc-num { background: var(--brand); border-color: var(--brand); color: var(--brand-on); }
.gc-res { box-shadow: var(--shadow-2); }
.gc-field { display: grid; grid-template-rows: auto 1fr; gap: .3em; }
.gc-fill { display: flex; align-items: center; padding: 0 .6em; }
.gc-fill i { display: block; height: .55em; width: 0; border-radius: 99px; background: var(--brand-tint-strong); transition: width .5s; }
.gc-fill.is-on i { width: var(--w, 60%); }
.gc-opt { display: grid; align-content: start; gap: .3em; padding: .8em; }
.gc-opt small { font-size: .8em; white-space: normal; }
.gc-opt.is-sel, .gc-opt.is-hover { border-color: var(--brand); }
.gc-opt.is-sel { background: var(--brand-tint); }
.gc-radio { width: 1em; height: 1em; border-radius: 50%; border: 1.5px solid var(--border-strong); box-sizing: border-box; }
.gc-opt.is-sel .gc-radio { border: .3em solid var(--brand); }
.gc-mark { flex: none; width: 1.4em; height: 1.4em; border-radius: 50%; display: grid; place-items: center; font-size: .8em; font-weight: 700; background: var(--surface); color: var(--faint); transition: background .2s, color .2s; }
.gc-mark.is-ok { background: var(--good-tint); color: var(--good-ink); }
.gc-mark.is-bad { background: var(--bad-tint); color: var(--bad-ink); }

/* inbox */
.gc-cv { border-radius: .6em; }
.gc-cv.is-sel { background: var(--brand-tint); }
.gc-two { display: grid; gap: .35em; min-width: 0; flex: 1; }
.gc-dot { flex: none; width: .7em; height: .7em; border-radius: 50%; background: var(--brand); }
.gc-bub { display: flex; align-items: center; padding: 0 .8em; border-radius: .9em; background: var(--surface); border: 1px solid var(--border); white-space: normal; }
.gc-bub.out { background: var(--brand); color: var(--brand-on); border-color: transparent; }
.gc-chip { display: flex; align-items: center; justify-content: center; border-radius: 99px; font-size: .85em; font-weight: 600; border: 1px solid var(--border); color: var(--muted); transition: background .2s, color .2s; }
.gc-chip.is-on { background: var(--brand-tint-strong); color: var(--brand-ink); border-color: transparent; }
.gc-lines { display: grid; align-content: start; gap: .7em; }

/* roles */
.gc-tab { display: flex; align-items: center; justify-content: center; border-radius: .6em; font-weight: 600; color: var(--muted); border: 1px solid transparent; transition: background .2s, color .2s; }
.gc-tab.is-sel { background: var(--card); color: var(--text); border-color: var(--border); }
.gc-seg { display: flex; align-items: center; justify-content: center; font-size: .85em; border-radius: .5em; border: 1px solid var(--border); color: var(--muted); transition: background .2s, color .2s; }
.gc-seg.is-on { background: var(--brand); color: var(--brand-on); border-color: transparent; }
.gc-sel { justify-content: space-between; }
.gc-caret { color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .gc-el, .gc-pop, .gc-cursor, .gc-sheet, .gc-col { transition-duration: .01s !important; }
}
