:root {
  --bg: #F4F5F7; --card: #FFFFFF; --line: #E3E6EB; --line2: #EEF0F3; --line3: #D5D9E0;
  --ink: #15171C; --ink2: #3A404A; --muted: #5B6270;
  --blue: #2457D6; --blue-d: #1A43A8; --blue-t: #EAF0FD;
  --green: #1F6B43; --green-t: #E3F4EA; --purple: #5B3FA8; --purple-t: #F1ECFB;
  --amber: #7A4B00; --amber-t: #FDF1D8; --red: #B42318;
  --tabs-h: calc(60px + env(safe-area-inset-bottom));
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}
* { box-sizing: border-box; scrollbar-width: none; -webkit-tap-highlight-color: transparent; }
*::-webkit-scrollbar { display: none; }
html, body { margin: 0; height: 100%; background: #E9EBEF; overscroll-behavior: none; }
body { font: 15px/1.35 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; transition: transform .12s var(--ease), background-color .2s, color .2s, border-color .2s; }
button:active:not(:disabled) { transform: scale(.96); }
button:disabled { opacity: .4; cursor: default; }
:focus-visible { outline: 3px solid #8FB0FF; outline-offset: 2px; }
input[type=text], input[type=date], select, textarea {
  height: 44px; border: 1px solid var(--line3); border-radius: 10px; padding: 0 12px; background: #fff; width: 100%; min-width: 0; font-size: 16px;
}
textarea { height: auto; padding: 10px 12px; line-height: 1.45; resize: vertical; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#app { position: fixed; inset: 0; max-width: 480px; margin: 0 auto; background: var(--bg); overflow: hidden; box-shadow: 0 0 40px rgba(0,0,0,.06); }
#stage { position: absolute; inset: 0; }
.view { position: absolute; inset: 0 0 var(--tabs-h); display: flex; flex-direction: column; background: var(--bg); }
.view.push { bottom: 0; z-index: 3; box-shadow: -10px 0 30px rgba(21,23,28,.08); }
.view.full { bottom: 0; }
.top { background: #fff; border-bottom: 1px solid var(--line); padding: calc(14px + env(safe-area-inset-top)) 16px 12px; display: flex; flex-direction: column; gap: 12px; }
.main { flex: 1; overflow-y: auto; padding: 14px 16px 20px; display: flex; flex-direction: column; gap: 12px; -webkit-overflow-scrolling: touch; }
.main > * { flex-shrink: 0; }
.foot { background: #fff; border-top: 1px solid var(--line); padding: 10px 16px 10px; display: flex; gap: 8px; }
.push .foot { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }

/* Tabs (persistent, so the indicator can slide) */
#tabs { position: absolute; left: 0; right: 0; bottom: 0; height: var(--tabs-h); padding-bottom: env(safe-area-inset-bottom); background: #fff; display: grid; grid-template-columns: repeat(4, 1fr); z-index: 2; }
#tabs::before { content: ""; position: absolute; top: 0; left: calc(var(--ti, 0) * 25% + 12.5% - 18px); width: 36px; height: 3px; border-radius: 0 0 3px 3px; background: var(--blue); transition: left .35s var(--spring); }
#tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 500; }
#tabs button.on { color: var(--blue); font-weight: 600; }
#tabs button.on svg { animation: tabPop .35s var(--spring); }
#app.bare #tabs { display: none; }

/* Common bits */
.h1 { font-size: 18px; font-weight: 700; }
.h2 { font-size: 17px; font-weight: 700; }
.sub { font-size: 13px; color: var(--muted); }
.small { font-size: 12px; color: var(--muted); line-height: 1.45; }
.label { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.col { display: flex; flex-direction: column; gap: 4px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pad14 { padding: 14px; }
.back { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; margin-left: -12px; flex-shrink: 0; }
.avatar { width: 44px; height: 44px; border-radius: 999px; background: var(--blue-t); color: var(--blue-d); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.client { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; }
.btn { height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 600; padding: 0 16px; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:active { background: var(--blue-d); }
.btn.ghost { border: 1px solid var(--line3); background: #fff; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.danger { background: var(--red); color: #fff; }
.btn.sm { height: 40px; font-size: 13px; border-radius: 10px; padding: 0 14px; }
.pill-btn { height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line3); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; background: #fff; white-space: nowrap; }
.chips { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; }
.chip { flex-shrink: 0; height: 36px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; border: 1px solid var(--line3); background: #fff; color: var(--ink2); text-transform: uppercase; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.case { text-transform: none; letter-spacing: 0; font-size: 13px; }
.tag { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 3px 8px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.tag.blue { background: var(--blue-t); color: var(--blue-d); }
.tag.new { background: var(--purple-t); color: var(--purple); }
.tag.green { background: var(--green-t); color: var(--green); }
.tag.amber { background: var(--amber-t); color: var(--amber); }
.tag.grey { background: var(--line2); color: var(--ink2); }
.empty { background: #fff; border: 1px dashed #C9CED6; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.seg { display: flex; background: var(--line2); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; min-height: 40px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ink2); padding: 0 6px; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(21,23,28,.14); }
.big { font-size: 26px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }

/* Targets */
.t1h { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px; }
.t1h b { font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.trow { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line2); min-height: 44px; width: 100%; text-align: left; }
.trow:active { background: #F9FAFB; transform: none; }
.trow .nm { font-size: 15px; font-weight: 600; }
.trow .pc { width: 46px; text-align: right; font-size: 15px; font-weight: 700; }
.t1f { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line2); background: #F9FAFB; font-size: 12px; color: var(--muted); }
.dash-btn { height: 44px; border-radius: 10px; border: 1px dashed #B8C0CC; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }
.spark polyline { stroke-dasharray: 1; stroke-dashoffset: 0; }
.anim .spark polyline { animation: draw .9s var(--ease) both .15s; }

/* Session list */
.grp-h { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 2px 0; }
.scard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left; }
.scard .nm { font-size: 15px; font-weight: 600; }
.strip { display: flex; flex-wrap: wrap; gap: 4px; }
.mini { width: 22px; height: 22px; border-radius: 6px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.segbar { display: flex; gap: 4px; }
.segbar span { flex: 1; height: 8px; border-radius: 4px; background: var(--line); transition: background-color .3s; }

/* Input pad */
.pad { display: flex; flex-direction: column; gap: 8px; }
.pad-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 6px; align-items: start; }
.cb { display: flex; flex-direction: column; border: 1px solid var(--c); border-radius: 12px; background: #fff; min-width: 0; }
.cb-m { position: relative; height: 56px; border-radius: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--u); background: #fff; }
.cb-m b { font-size: 19px; line-height: 1; }
.cb-m small { font-size: 9px; font-weight: 600; }
.cb.on .cb-m { background: var(--c); color: var(--f); border-radius: 11px 11px 0 0; }
.cb-x { height: 32px; border-top: 1px solid var(--c); border-radius: 0 0 11px 11px; background: #fff; color: var(--ink); font-size: 20px; font-weight: 600; line-height: 1; }
.cb.sm { border: 0; border-radius: 9px; flex: 1 1 0; }
.cb.sm .cb-m { height: 48px; border-radius: 9px; }
.cb.sm .cb-m b { font-size: 15px; }
.cb.sm .cb-m small { font-weight: 500; }
.cb.sm.on .cb-m { border-radius: 9px 9px 0 0; }
.cb.sm .cb-x { border-radius: 0 0 9px 9px; }
.badge { position: absolute; top: -8px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: #fff; border: 2px solid #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; z-index: 1; font-style: normal; }
.pop .badge { animation: pop .4s var(--spring); }
.pop .cb-m { animation: flash .35s var(--ease); }
.first .cb-x { animation: minusIn .25s var(--ease); transform-origin: top; }
.pbar { position: relative; height: 48px; border-radius: 12px; border: 1px solid #B8C0CC; background: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 14px; min-width: 0; }
.pbar.open { background: var(--ink); color: #fff; border-color: var(--ink); }
.pbar .t { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 700; }
.pbar .t svg { transition: transform .3s var(--ease); }
.pbar.open .t svg { transform: rotate(180deg); }
.pbar .s { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; opacity: .85; }
.drawer { display: grid; grid-template-rows: 1fr; }
.drawer.in { animation: drawerIn .32s var(--ease); }
.drawer > div { overflow: hidden; min-height: 0; }
.drawer-in { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.drawer.in .dg { animation: fadeUp .35s var(--ease) both; animation-delay: calc(var(--i) * 35ms + 60ms); }
.dl { display: flex; gap: 6px; align-items: flex-start; }
.dg { min-width: 0; background: var(--gt); border-radius: 12px; padding: 4px; display: flex; flex-direction: column; gap: 3px; }
.dg-l { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gx); padding: 1px 4px 0; }
.dg-b { display: flex; gap: 4px; align-items: flex-start; }
.order { display: flex; flex-wrap: wrap; gap: 5px; min-height: 28px; align-items: center; }
.order .mini { width: 28px; height: 28px; font-size: 13px; border-radius: 8px; }
.order .mini:last-child.new { animation: pop .4s var(--spring); }
.link { color: var(--blue); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 4px; }
.stats { display: flex; align-items: flex-end; gap: 14px; }
.bump { animation: bump .35s var(--spring); display: inline-block; }
.steprow { background: #fff; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); transition: border-color .3s; }
.steprow.todo { border-color: #B9C6EE; }
.stepn { width: 26px; height: 26px; border-radius: 999px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--ink2); flex-shrink: 0; transition: background-color .3s, color .3s; }
.stepn.done { background: var(--green-t); color: var(--green); }

/* Graphs */
.chart { width: 100%; height: auto; display: block; }
.chart text { font-size: 10px; fill: var(--muted); font-family: inherit; }
.chart .ln { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.anim .chart .ln { animation: draw 1s var(--ease) both .1s; }
.chart .dot { fill: #fff; stroke: var(--blue); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.anim .chart .dot { animation: dotIn .4s var(--spring) both; animation-delay: calc(var(--i) * 70ms + .3s); }
.chart .bar { transform-box: fill-box; transform-origin: bottom; }
.anim .chart .bar { animation: barUp .6s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; font-weight: 600; color: var(--muted); padding: 8px 14px; border-bottom: 1px solid var(--line2); }
.tbl td { padding: 10px 14px; border-top: 1px solid var(--line2); }
.tbl td:first-child { white-space: nowrap; }
.tbl .r { text-align: right; }
.grid3 { overflow-x: auto; }
.grid3 table { border-collapse: separate; border-spacing: 3px; font-size: 12px; }
.grid3 th { font-weight: 600; color: var(--muted); font-size: 10px; padding: 2px; white-space: nowrap; }
.grid3 td.sn { position: sticky; left: 0; background: #fff; white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis; padding-right: 6px; font-size: 12px; z-index: 1; }
.grid3 td.c { min-width: 30px; height: 28px; border-radius: 6px; text-align: center; font-weight: 700; font-size: 11px; }
.anim .grid3 td.c { animation: dotIn .35s var(--ease) both; animation-delay: calc(var(--i) * 18ms); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--ink2); }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; vertical-align: -2px; margin-right: 5px; }

/* Arrange skills */
.sec-h { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 2px 0; }
.sw { position: relative; overflow: hidden; border-top: 1px solid var(--line2); }
.sw:first-child { border-top: 0; }
.sw-del { position: absolute; top: 0; right: 0; bottom: 0; width: 88px; background: var(--red); color: #fff; font-size: 14px; font-weight: 600; }
.sw-c { position: relative; background: #fff; display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; min-height: 56px; transition: transform .28s var(--ease); }
.sw.open .sw-c { transform: translateX(-88px); }
.sw .nm { flex: 1; min-width: 0; text-align: left; min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
.sw .nm b { font-size: 15px; font-weight: 600; }
.qn { width: 22px; height: 22px; border-radius: 999px; background: var(--purple-t); color: var(--purple); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.act { height: 36px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line3); font-size: 12px; font-weight: 600; white-space: nowrap; background: #fff; flex-shrink: 0; }
.act.blue { border-color: var(--blue); color: var(--blue); }
.act.green { border-color: #9FD3B4; color: var(--green); background: var(--green-t); }
.ico { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: #fff; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line3); font-size: 20px; font-weight: 600; background: #fff; }
.stepper output { min-width: 52px; text-align: center; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.addrow { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line2); background: #F9FAFB; }

/* Settings */
.set { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-top: 1px solid var(--line2); }
.set:first-child { border-top: 0; }
.set-r { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.switch { width: 52px; height: 32px; border-radius: 999px; background: #C9CED6; position: relative; flex-shrink: 0; transition: background-color .25s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .3s var(--spring); }
.switch[aria-checked=true] { background: var(--blue); }
.switch[aria-checked=true]::after { transform: translateX(20px); }
.switch.pop[aria-checked=true]::after { animation: knobOn .3s var(--spring); }
.switch.pop[aria-checked=false]::after { animation: knobOff .3s var(--spring); }
.rule { background: var(--blue-t); color: var(--blue-d); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
.custom { font-size: 11px; color: var(--purple); font-weight: 600; }
.codes { display: flex; flex-wrap: wrap; gap: 6px; }
.code { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; border-radius: 8px; padding: 3px 8px 3px 3px; background: var(--bg); }

/* Welcome */
.welcome { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: calc(24px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom)); background: radial-gradient(120% 60% at 100% 0%, #EAF0FD 0%, transparent 60%), radial-gradient(90% 50% at 0% 100%, #F1ECFB 0%, transparent 60%), var(--bg); }
.logo { width: 76px; height: 76px; filter: drop-shadow(0 8px 20px rgba(36,87,214,.18)); }
.logo rect[style] { transform-box: fill-box; transform-origin: bottom; animation: barUp .7s var(--spring) both; animation-delay: calc(var(--i) * 90ms + .1s); }
.wtitle { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 0; }

.brand { background: #fff; border-radius: 20px; padding: 14px 18px; box-shadow: 0 10px 30px rgba(21,23,28,.06); animation: fadeUp .6s var(--ease) both; }
.brand img { display: block; width: 100%; height: auto; max-width: 300px; margin: 0 auto; }
.foot-logo { display: block; width: 150px; height: auto; margin: 8px auto 0; border-radius: 12px; mix-blend-mode: multiply; }

/* Sheet */
#sheet .bd { position: fixed; inset: 0; background: rgba(21,23,28,.4); z-index: 20; }
#sheet .sh { position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; max-height: 88dvh; overflow-y: auto; background: #fff; border-radius: 20px 20px 0 0; z-index: 21; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
#sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line3); margin: 2px auto 4px; flex-shrink: 0; }
#sheet.in .bd { animation: fade .25s var(--ease); }
#sheet.in .sh { animation: sheetUp .38s var(--ease); }
#sheet.out .bd { animation: fade .2s var(--ease) reverse forwards; }
#sheet.out .sh { animation: sheetUp .22s ease-in reverse forwards; }
.crow { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line2); }
.crow .avatar { width: 40px; height: 40px; font-size: 14px; }
.crow.on .avatar { background: var(--blue); color: #fff; }

/* Toasts */
#toasts { position: fixed; left: 0; right: 0; top: calc(10px + env(safe-area-inset-top)); z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { max-width: 440px; background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 16px; font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px rgba(21,23,28,.25); display: flex; gap: 10px; align-items: center; animation: toastIn .45s var(--spring); }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
.toast.err { background: var(--red); }
.toast.win { background: #fff; color: var(--ink); border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #B4441F, #F2B33D, #6B4BC4, #0F7C70, #2457D6) border-box; font-weight: 600; }
.toast.win svg rect[style] { transform-box: fill-box; transform-origin: bottom; animation: barUp .6s var(--spring) both; animation-delay: calc(var(--i) * 80ms + .15s); }

/* Screen transitions */
.enter-tab { animation: fadeUp .3s var(--ease); }
.enter-push { animation: pushIn .34s var(--ease); }
.leave-push { animation: pushOut .34s var(--ease) forwards; pointer-events: none; }
.enter-pop { animation: popIn .3s var(--ease); }
.leave-pop { z-index: 4; animation: popOut .3s var(--ease) forwards; pointer-events: none; }
.anim .st { animation: fadeUp .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms + 40ms); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pushIn { from { transform: translateX(100%); } }
@keyframes pushOut { to { transform: translateX(-25%); opacity: .6; } }
@keyframes popIn { from { transform: translateX(-25%); opacity: .6; } }
@keyframes popOut { to { transform: translateX(100%); } }
@keyframes pop { 0% { transform: scale(.4); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes flash { 0% { filter: brightness(1.25); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes minusIn { from { opacity: 0; transform: scaleY(.3); } }
@keyframes drawerIn { from { grid-template-rows: 0fr; opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes dotIn { from { transform: scale(0); opacity: 0; } }
@keyframes barUp { from { transform: scaleY(0); } }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(-24px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-16px) scale(.96); } }
@keyframes tabPop { 0% { transform: scale(1); } 50% { transform: scale(1.18) translateY(-2px); } 100% { transform: scale(1); } }
@keyframes knobOn { from { transform: translateX(0); } }
@keyframes knobOff { from { transform: translateX(20px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
