:root {
  --brand: #FF385C;
  --brand-d: #E31C5F;
  --ink: #222222;
  --ink2: #6A6A6A;
  --line: #EBEBEB;
  --soft: #F7F7F7;
  --ok: #008A05;
  --warn: #B26A00;
  --bad: #C13515;
  --r: 20px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .05);
  --shadow-h: 0 10px 30px rgba(0, 0, 0, .13);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
body { margin: 0; background: #fff; color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
h1, h2, h3, h4, p { margin: 0; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
code { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .92em; }
.ic { flex: none; }
.mut { color: var(--ink2); }
.fine { color: var(--ink2); font-size: 12.5px; margin-top: 8px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: #222; color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #222; outline-offset: 2px; border-radius: 10px; }

/* ------------------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo { width: 36px; height: 36px; border-radius: 11px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.bn { font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--brand); }
.brand .tag { font-size: 12px; color: var(--ink2); border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; white-space: nowrap; }
.tabs { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 99px; background: #fff; box-shadow: var(--shadow); }
.tab { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 6px 14px 6px 6px; border-radius: 99px; transition: background .15s; }
.tab:hover { background: var(--soft); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.tab .tn { display: flex; flex-direction: column; text-align: left; font-weight: 600; line-height: 1.1; font-size: 14px; }
.tab small { font-weight: 400; font-size: 11px; opacity: .7; }
.av { width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.av.lg { width: 56px; height: 56px; font-size: 24px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; white-space: nowrap; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: #B0B0B0; }
.pill.live i { background: #1FB857; box-shadow: 0 0 0 0 rgba(31, 184, 87, .5); animation: beat 1.8s infinite; }

/* ------------------------------------------------------------ banner */
#banner:empty { display: none; }
.banner { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--soft); font-size: 14px; }
.banner .ic { margin-top: 2px; }
.banner.warn { background: #FFF8EB; border-color: #F3DDB4; }
.banner.bad { background: #FDF0ED; border-color: #F2C7BB; }
.banner.info { background: #F1F6FF; border-color: #CFE0FB; }

/* -------------------------------------------------------------- cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
main > section, .cols > section, .cols aside section { margin-top: 36px; }
main > section:first-child { margin-top: 24px; }
.sec-head { margin-bottom: 16px; }
.sec-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.sec-head h2 { font-size: 22px; letter-spacing: -.02em; line-height: 1.25; }
.sec-head p { color: var(--ink2); margin-top: 4px; max-width: 70ch; }
.count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; margin-left: 8px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 13px; vertical-align: 2px; }
.count:empty { display: none; }
.ping { animation: ping .9s ease-out; }

/* --------------------------------------------------------------- hero */
.hero { padding: 28px; }
.hero-main { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.who { display: flex; gap: 16px; align-items: center; min-width: 0; flex: 1 1 360px; }
.who h1 { font-size: 28px; letter-spacing: -.025em; line-height: 1.15; }
.who h1 small { font-size: 14px; font-weight: 500; color: var(--ink2); margin-left: 10px; letter-spacing: 0; }
.who p { color: var(--ink2); margin-top: 4px; max-width: 58ch; }
.clockbox { text-align: right; }
.clock { font-size: 52px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.date { color: var(--ink2); margin: 6px 0 8px; }
.state { display: inline-block; padding: 3px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; background: var(--soft); }
.state.sleep { background: #ECEBFF; color: #4338CA; }
.state.awake { background: #E8F5E9; color: #006A04; }
.state.active { background: #FFE9ED; color: #C0173E; }
.track { position: relative; height: 12px; border-radius: 99px; background: #F0F0F0; margin-top: 26px; }
.track .fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, #FF7A8F, var(--brand)); transition: width .4s ease; }
.track i { position: absolute; top: 3px; width: 1px; height: 6px; background: rgba(0, 0, 0, .12); }
.tdot { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid #fff; background: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .35); padding: 0; transition: transform .15s; z-index: 2; }
.tdot:hover { transform: scale(1.25); }
.tdot.draft { background: #fff; border-color: var(--ink); }
.track-l { display: flex; justify-content: space-between; color: var(--ink2); font-size: 12.5px; margin-top: 8px; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid #C9C9C9; background: #fff; font-weight: 600; transition: transform .1s, background .15s, box-shadow .15s; }
.btn:hover:not(:disabled) { background: var(--soft); border-color: #222; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-d)); border-color: transparent; color: #fff; padding: 0 26px; box-shadow: 0 6px 18px rgba(255, 56, 92, .35); }
.btn.primary:hover:not(:disabled) { background: linear-gradient(135deg, #FF4D6D, var(--brand-d)); border-color: transparent; }
.btn:disabled, select:disabled, .seg button:disabled { opacity: .45; cursor: not-allowed; }
.field { display: flex; align-items: center; gap: 8px; color: var(--ink2); font-size: 14px; }
select { height: 46px; padding: 0 12px; border: 1px solid #C9C9C9; border-radius: 12px; background: #fff; color: var(--ink); }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); gap: 2px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ink2); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.switch { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; position: relative; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; left: 0; margin: 0; cursor: pointer; }
.knob { width: 48px; height: 28px; border-radius: 99px; background: #B0B0B0; position: relative; transition: background .2s; flex: none; }
.knob::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.switch input:checked + .knob { background: var(--ink); }
.switch input:checked + .knob::after { transform: translateX(20px); }
.switch input:focus-visible + .knob { outline: 3px solid #222; outline-offset: 3px; }
.switch input:disabled + .knob { opacity: .45; }
.sl { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.hint { color: var(--ink2); font-size: 13.5px; margin-top: 16px; }

/* ----------------------------------------------------------- pipeline */
.pipe { display: flex; align-items: stretch; padding: 22px; gap: 0; }
.node { flex: 1 1 0; min-width: 0; padding: 4px 8px; }
.nic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--soft); margin-bottom: 12px; transition: background .3s, color .3s, transform .3s; }
.node h3 { font-size: 15px; }
.node .l1 { font-weight: 600; margin-top: 4px; font-size: 14px; overflow-wrap: anywhere; }
.node .l2 { color: var(--ink2); font-size: 12.5px; margin-top: 2px; overflow-wrap: anywhere; }
.node.flash .nic { background: var(--brand); color: #fff; transform: scale(1.08); }
.link { flex: 0 0 44px; position: relative; align-self: flex-start; margin-top: 21px; height: 2px; background: repeating-linear-gradient(90deg, #D8D8D8 0 6px, transparent 6px 10px); }
.link i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); opacity: 0; }
.link.run i { opacity: 1; animation: travel 1.6s linear infinite; }

/* ------------------------------------------------------------- chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid #C9C9C9; background: #fff; border-radius: 99px; padding: 8px 16px; font-weight: 600; font-size: 14px; transition: all .15s; }
.chip:hover { border-color: #222; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ------------------------------------------------------- metric cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 20px; }
.mcard { display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; min-width: 0; }
.mcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); }
.mcard > span { display: block; }
.mc-top { display: flex !important; align-items: center; gap: 10px; }
.mc-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); flex: none; }
.mc-ic.big { width: 52px; height: 52px; border-radius: 16px; }
.mc-title { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xtag { font-style: normal; font-weight: 600; font-size: 10.5px; letter-spacing: .02em; text-transform: uppercase; margin-left: 8px; padding: 2px 7px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); color: var(--ink2); vertical-align: 2px; }
.badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.badge.ok { background: #E8F5E9; color: #006A04; }
.badge.watch { background: #FFF1D6; color: #8A5300; }
.badge.unusual { background: #FDE4DD; color: #A12A10; }
.badge.alert { background: var(--brand); color: #fff; }
.badge.learn { background: #F0F0F0; color: var(--ink2); }
.mc-val { display: flex !important; align-items: baseline; gap: 6px; margin-top: 4px; }
.mc-val b { font-size: 38px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.mc-val i { font-style: normal; color: var(--ink2); font-weight: 500; }
.mc-sub { display: flex !important; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; min-height: 20px; }
.delta { font-weight: 700; }
.delta.up::before { content: "\25B2"; font-size: 9px; margin-right: 4px; vertical-align: 1px; }
.delta.down::before { content: "\25BC"; font-size: 9px; margin-right: 4px; vertical-align: 1px; }
.delta.flat { color: var(--ink2); }
.mc-spark { margin-top: 6px; height: 64px; }
.spark { width: 100%; height: 64px; display: block; overflow: visible; }

/* ----------------------------------------------------------- columns */
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 32px; align-items: start; }
aside { position: sticky; top: 92px; }
.acard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; transition: box-shadow .2s, border-color .2s; }
.acard.sel { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 56, 92, .18), var(--shadow); }
.acard header { display: flex; align-items: center; gap: 12px; }
.sev { width: 12px; height: 12px; border-radius: 50%; background: #C9C9C9; flex: none; }
.sev.hot { background: var(--brand); box-shadow: 0 0 0 5px rgba(255, 56, 92, .16); }
.ah { flex: 1; min-width: 0; }
.ah h4 { font-size: 17px; letter-spacing: -.01em; }
.ah p { color: var(--ink2); font-size: 13px; }
.status { font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 99px; white-space: nowrap; background: var(--soft); color: var(--ink2); }
.status.ok { background: #E8F5E9; color: #006A04; }
.status.dark { background: var(--ink); color: #fff; }
.status.warn { background: #FFF1D6; color: #8A5300; }
.status.bad { background: #FDE4DD; color: #A12A10; }
.ev { margin-top: 12px; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.thread { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.bub { max-width: 86%; padding: 9px 14px; border-radius: 20px; font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; }
.bub.out { background: #ECECEE; color: #111; align-self: flex-start; border-bottom-left-radius: 6px; }
.bub.in { background: #0B84FE; color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.dec { margin-top: 12px; font-size: 13px; color: var(--ink2); }
.who { }
.who.jev, .who.llm, .who.policy, .who.out, .who.mon { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; margin-right: 6px; white-space: nowrap; }
.who.jev { background: #EDE9FE; color: #5B21B6; }
.who.llm { background: #DDF6F0; color: #0B6B58; }
.who.policy { background: #EFEFEF; color: #555; }
.who.out { background: #FFE3E8; color: #B3153B; }
.who.mon { background: #DEEBFF; color: #1D4FB5; }
.note { margin-top: 16px; padding: 16px; border-radius: 16px; background: linear-gradient(180deg, #FFF6F7, #FFFFFF); border: 1px solid #FFD3DB; }
.nh { display: flex; align-items: center; gap: 8px; color: var(--brand-d); font-size: 13px; margin-bottom: 6px; }
.note p { font-size: 14.5px; }
.fchips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.fchip { padding: 3px 11px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; text-transform: capitalize; }
.checks { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.checks li { position: relative; padding-left: 20px; font-size: 13.5px; color: #3a3a3a; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.held { margin-top: 8px; border: 1px dashed #CFCFCF; border-radius: 16px; padding: 4px 16px; }
.held summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 10px; }
.held summary::-webkit-details-marker { display: none; }
.held summary::after { content: "\203A"; margin-left: auto; font-size: 20px; transition: transform .2s; }
.held[open] summary::after { transform: rotate(90deg); }
.held summary span { background: var(--soft); border-radius: 99px; padding: 0 9px; font-size: 13px; }
.hrow { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 14px; }
.hrow .dec { flex-basis: 100%; margin: 0; }
.empty-state { text-align: center; padding: 48px 24px; border: 1px dashed #CFCFCF; border-radius: var(--r); }
.empty-state .ei { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--soft); margin-bottom: 14px; }
.empty-state h4 { font-size: 18px; }
.empty-state p { color: var(--ink2); max-width: 46ch; margin: 6px auto 0; }

/* ------------------------------------------------------------- phone */
.phone { border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; background: #fff; }
.ph-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #F7F7F8; border-bottom: 1px solid var(--line); }
.ph-head small { display: block; color: var(--ink2); font-size: 12px; }
.ph-av { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.ph-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; height: 340px; overflow: auto; }
.phone-empty { margin: auto; text-align: center; color: var(--ink2); font-size: 14px; max-width: 28ch; }

/* -------------------------------------------------------------- feed */
.mini { font-size: 13px; color: var(--ink2); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.feed { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: #fff; max-height: 460px; overflow: auto; box-shadow: var(--shadow); }
.fi { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.fi:last-child { border-bottom: 0; }
.fi p { overflow-wrap: anywhere; }
.fi time { grid-column: 2; color: var(--ink2); font-size: 12px; }
.fi.none { display: block; color: var(--ink2); }

/* ------------------------------------------------------------ footer */
.foot { margin-top: 64px; border-top: 1px solid var(--line); background: var(--soft); }
.foot .wrap { display: flex; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 40px; flex-wrap: wrap; color: var(--ink2); font-size: 13.5px; }
.foot-l { max-width: 78ch; }
.sys { margin-top: 8px; }
.linkbtn { background: none; border: 0; color: var(--ink); text-decoration: underline; padding: 0; }

/* ------------------------------------------------------------ drawer */
.drawer-wrap { position: fixed; inset: 0; z-index: 60; }
.scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .42); opacity: 0; transition: opacity .22s; }
.sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(780px, 100%); background: #fff; overflow: auto; padding: 28px; border-radius: 28px 0 0 28px; transform: translateX(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); box-shadow: -20px 0 60px rgba(0, 0, 0, .2); }
.drawer-wrap.open .scrim { opacity: 1; }
.drawer-wrap.open .sheet { transform: none; }
.dr-head { display: flex; gap: 16px; align-items: center; }
.dr-head h2 { font-size: 26px; letter-spacing: -.02em; }
.dr-head p { color: var(--ink2); }
.dr-head > div { flex: 1; min-width: 0; }
.x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.x:hover { background: var(--soft); }
.dstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.dstats > div { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.dstats small { display: block; color: var(--ink2); font-size: 12px; }
.dstats b { font-size: 21px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dstats i { font-style: normal; color: var(--ink2); font-size: 12px; margin-left: 4px; }
.rangebar { margin-top: 24px; }
.chartbox { position: relative; margin-top: 12px; }
.dchart { display: block; width: 100%; height: auto; touch-action: pan-y; }
.ax { font-size: 11px; fill: #6A6A6A; font-variant-numeric: tabular-nums; }
.pin { cursor: pointer; outline: none; }
.pin:focus-visible circle { stroke: #222; stroke-width: 3; }
.tip { position: absolute; top: 8px; z-index: 5; background: #222; color: #fff; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; pointer-events: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); white-space: nowrap; }
.tip .tt { font-weight: 700; margin-bottom: 3px; }
.tip .mut { color: #bdbdbd; }
.sw { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; color: var(--ink2); font-size: 12.5px; margin-top: 8px; }
.legend .sw { width: 14px; height: 10px; border-radius: 3px; vertical-align: -1px; }
.legend .sw.band { background: rgba(255, 56, 92, .18); }
.legend .sw.sleep { background: rgba(99, 102, 241, .18); }
.legend .sw.dot { width: 10px; border-radius: 50%; background: var(--brand); }
.legend .sw.dot.dark { background: #222; }
.sub { font-size: 16px; margin: 28px 0 10px; }
.arow { display: flex; width: 100%; align-items: center; gap: 12px; flex-wrap: wrap; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 8px; font-size: 14px; }
.arow:hover { background: var(--soft); }
.dr-none { margin-top: 24px; }
.nights { display: grid; gap: 10px; margin-top: 12px; }
.nrow { display: grid; grid-template-columns: 70px 1fr 60px; gap: 12px; align-items: center; font-size: 14px; }
.nbar { height: 12px; border-radius: 99px; background: #F0F0F0; overflow: hidden; }
.nbar i { display: block; height: 100%; border-radius: 99px; background: #6366F1; }
.stepbars svg { width: 100%; height: 220px; }
.empty { color: var(--ink2); padding: 32px 0; text-align: center; }

/* ------------------------------------------------------------ toasts */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 90; width: min(92vw, 460px); pointer-events: none; }
.toast { background: #222; color: #fff; padding: 13px 18px; border-radius: 14px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: rise .25s ease-out; }
.toast.ok { background: #14532D; }
.toast.bad { background: #8F1D08; }
.toast.out { opacity: 0; transition: opacity .4s; }

/* -------------------------------------------------------- animation */
@keyframes beat { 70% { box-shadow: 0 0 0 9px rgba(31, 184, 87, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 184, 87, 0); } }
@keyframes travel { from { transform: translateX(0); } to { transform: translateX(36px); } }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 56, 92, .45); } 100% { box-shadow: 0 0 0 18px rgba(255, 56, 92, 0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* -------------------------------------------------------- responsive */
@media (max-width: 1020px) {
  .cols { grid-template-columns: 1fr; }
  aside { position: static; }
  .pipe { flex-direction: column; gap: 4px; }
  .link { flex-basis: 24px; width: 2px; height: 24px; margin: 0 0 0 26px; align-self: flex-start; background: repeating-linear-gradient(180deg, #D8D8D8 0 6px, transparent 6px 10px); }
  .link i { left: -3px; top: 0; }
  @keyframes travel { from { transform: translateY(0); } to { transform: translateY(18px); } }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .brand .tag, .tab .tn small { display: none; }
  .tab { padding-right: 10px; }
  .tab .tn { font-size: 13px; }
  .hero { padding: 20px; }
  .clockbox { text-align: left; }
  .clock { font-size: 42px; }
  .switch { margin-left: 0; }
  .dstats { grid-template-columns: repeat(2, 1fr); }
  .sheet { padding: 20px; border-radius: 24px 24px 0 0; top: 6vh; width: 100%; transform: translateY(100%); }
  .top .wrap { height: 64px; }
  .bn { font-size: 17px; }
  .top-r { display: none; }
}
