/* dripxkali — dark glass, 4-color blend (cyan / indigo / violet) + emerald & rose for meaning. */
:root {
  --bg: #07090E; --card: rgba(16,20,29,.74); --card2: rgba(255,255,255,.07); --card3: rgba(255,255,255,.12); --solid: #10141d;
  --text: #fff; --dim: #8b94a8; --faint: #475066; --hair: rgba(255,255,255,.07);
  --cyan: #06B6D4; --indigo: #6366F1; --violet: #8B5CF6; --emerald: #10B981; --rose: #F43F5E;
  --accent: #22d3ee; --red: var(--rose);
  --grad: linear-gradient(135deg, #06B6D4, #6366F1, #8B5CF6);
  --glow: 0 10px 34px rgba(99,102,241,.5);
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --tab-h: 64px;
  --ease: cubic-bezier(.22, .9, .3, 1); --spring: cubic-bezier(.32, .72, 0, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 17px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  overscroll-behavior: none; overscroll-behavior-y: none; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
input, textarea, .bub, .sel { -webkit-user-select: text; user-select: text; }
a { color: inherit; }
#app { height: 100dvh; display: flex; flex-direction: column; position: relative; z-index: 1; }

/* ---- moving ambient glow (slow, blurred, never busy) ---- */
.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ambient i { position: absolute; border-radius: 50%; filter: blur(65px); opacity: .15; will-change: transform, opacity; }
.ambient i:nth-child(1) { width: 340px; height: 340px; background: var(--cyan); left: -110px; top: -130px; animation: drift1 28s ease-in-out infinite alternate; }
.ambient i:nth-child(2) { width: 330px; height: 330px; background: var(--indigo); right: -120px; top: 20px; animation: drift2 34s ease-in-out infinite alternate; }
.ambient i:nth-child(3) { width: 300px; height: 300px; background: var(--violet); left: 18%; top: 250px; animation: drift3 40s ease-in-out infinite alternate; }
@keyframes drift1 { 0% { transform: translate3d(0,0,0) scale(1); opacity: .12; } 100% { transform: translate3d(90px,70px,0) scale(1.18); opacity: .2; } }
@keyframes drift2 { 0% { transform: translate3d(0,0,0) scale(1.1); opacity: .18; } 100% { transform: translate3d(-80px,90px,0) scale(.92); opacity: .11; } }
@keyframes drift3 { 0% { transform: translate3d(0,0,0) scale(.95); opacity: .1; } 100% { transform: translate3d(70px,-60px,0) scale(1.15); opacity: .18; } }

main { flex: 1; overflow-y: auto; overscroll-behavior-y: none; -webkit-overflow-scrolling: touch; padding-top: var(--safe-t);
  padding-bottom: calc(var(--tab-h) + var(--safe-b) + 120px); }
main.noscroll { overflow: hidden; display: flex; flex-direction: column; padding-bottom: calc(var(--tab-h) + var(--safe-b) + 22px); }
.noscroll .view { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* page head */
.head { padding: 16px 20px 6px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.head .sub { font-size: 13px; color: var(--dim); font-weight: 600; text-transform: uppercase; letter-spacing: .7px; margin-bottom: 3px; }
.head h1 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.9px; line-height: 1.1; }
.head .back { display: inline-flex; align-items: center; color: var(--accent); font-size: 17px; text-decoration: none; margin: 0 0 6px -6px; }
.head .actions { display: flex; gap: 8px; padding-bottom: 4px; }
.round-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--card2); color: #c4b5fd; display: grid; place-items: center; border: 0; text-decoration: none; transition: transform .2s var(--ease); }
.round-btn:active { transform: scale(.9); }

.pad { padding: 10px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.animate .pad > * { animation: rise .55s var(--ease) backwards; }
.animate .pad > *:nth-child(2) { animation-delay: .04s; } .animate .pad > *:nth-child(3) { animation-delay: .08s; }
.animate .pad > *:nth-child(4) { animation-delay: .12s; } .animate .pad > *:nth-child(5) { animation-delay: .16s; }
.animate .pad > *:nth-child(6) { animation-delay: .2s; } .animate .pad > *:nth-child(n+7) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }

/* floating glass tab bar */
nav#tabs { position: fixed; left: 14px; right: 14px; bottom: calc(var(--safe-b) + 10px); height: var(--tab-h); padding: 6px; display: flex;
  background: rgba(18,22,34,.62); backdrop-filter: blur(25px) saturate(180%); -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-radius: 34px; z-index: 20; box-shadow: 0 10px 40px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.05); }
.pill { position: absolute; top: 6px; bottom: 6px; left: 6px; border-radius: 28px; transition: transform .45s var(--spring);
  background: linear-gradient(135deg, rgba(6,182,212,.34), rgba(99,102,241,.34), rgba(139,92,246,.34)); box-shadow: 0 0 26px rgba(99,102,241,.4); }
.tab { flex: 1; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--dim); text-decoration: none; transition: color .25s, transform .2s var(--ease); }
.tab:active { transform: scale(.9); }
.tab small { font-size: 10px; font-weight: 600; letter-spacing: .1px; }
.tab.on { color: #fff; }

/* glass surfaces */
.card { background: var(--card); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border-radius: 22px; padding: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.hero { position: relative; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: -26px -16px; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(65px); opacity: .17;
  background: radial-gradient(60% 70% at 18% 30%, #06B6D4, transparent 72%), radial-gradient(55% 70% at 85% 55%, #8B5CF6, transparent 72%), radial-gradient(50% 60% at 55% 90%, #6366F1, transparent 75%);
  animation: heroFade 16s ease-in-out infinite alternate; }
@keyframes heroFade { from { opacity: .11; transform: scale(.96); } to { opacity: .2; transform: scale(1.06); } }
.card h3 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .7px; color: var(--dim); font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.card h3 a { color: #7dd3fc; text-decoration: none; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; }
.big { font-size: 34px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.dim { color: var(--dim); } .sm { font-size: 13px; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 14px; padding: 13px 0; box-shadow: inset 0 .5px 0 var(--hair); transition: background .2s; }
.card > .row:first-child, .card > h3 + .row, .card > .swipe:first-child .row, .card > h3 + .swipe .row { box-shadow: none; }
a.row { text-decoration: none; color: inherit; }
.row:active { opacity: .6; }
.row .t { font-weight: 600; overflow-wrap: anywhere; transition: color .3s; } .row .m { font-size: 13px; color: var(--dim); margin-top: 1px; }
.row.done .t { color: var(--dim); text-decoration: line-through; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stats > div { background: var(--card2); border-radius: 16px; padding: 12px 14px; transition: transform .2s var(--ease); }
.stats > div:active { transform: scale(.97); }
.stats b { display: block; font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.4px; }
.stats span { font-size: 12.5px; color: var(--dim); }
.pos { color: var(--emerald); } .neg { color: var(--rose); } .warn { color: var(--dim); }

/* check circle */
.chk { width: 26px; height: 26px; border-radius: 50%; border: 1.75px solid var(--faint); background: none; flex: none; display: grid; place-items: center; padding: 0; color: #fff;
  transition: background .25s var(--ease), border-color .25s, transform .35s var(--spring), box-shadow .3s; }
.chk svg { stroke-width: 3; }
.chk svg polyline { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .32s .06s var(--ease); }
.chk.on { background: var(--grad); border-color: transparent; transform: scale(1.1); box-shadow: 0 0 16px rgba(99,102,241,.55); }
.chk.on svg polyline { stroke-dashoffset: 0; }
.chk:active { transform: scale(.85); }
.chk.p1 { border-color: var(--violet); } .chk.p2 { border-color: var(--rose); }

/* controls */
.btn { background: var(--grad); color: #fff; border: 0; border-radius: 16px; padding: 14px 18px; font-weight: 700; font-size: 16px; cursor: pointer; box-shadow: 0 8px 26px rgba(99,102,241,.38); transition: transform .2s var(--ease), opacity .2s; }
.btn:active { transform: scale(.96); opacity: .88; }
.btn.accent { box-shadow: var(--glow); }
.btn.ghost { background: var(--card2); color: #fff; box-shadow: none; }
.btn.danger { background: rgba(244,63,94,.14); color: var(--rose); box-shadow: none; }
.btn.stopc { background: linear-gradient(135deg, #F43F5E, #8B5CF6); box-shadow: 0 8px 26px rgba(244,63,94,.35); }
.btn:disabled { opacity: .5; }
.btn.full { width: 100%; }
.btns { display: flex; gap: 10px; } .btns .btn { flex: 1; }
.icon-btn { background: none; border: 0; color: var(--dim); padding: 8px; border-radius: 50%; display: inline-flex; cursor: pointer; text-decoration: none; transition: transform .2s var(--ease); }
.icon-btn:active { transform: scale(.85); }

input, select, textarea { width: 100%; background: var(--card2); color: var(--text); border: 0; border-radius: 14px; padding: 13px 14px; font: inherit; font-size: 17px; outline: none; transition: box-shadow .2s; -webkit-appearance: none; appearance: none; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 2px rgba(99,102,241,.6); }
::placeholder { color: var(--faint); }
textarea { resize: none; min-height: 90px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 12px; color: var(--dim); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--indigo); }
input[type=date], input[type=time] { min-height: 48px; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.wrapchips { flex-wrap: wrap; overflow: visible; }
.chip { background: var(--card2); color: var(--dim); border: 0; border-radius: 20px; padding: 8px 16px; font: inherit; font-weight: 600; font-size: 15px; white-space: nowrap; text-decoration: none; transition: transform .2s var(--ease), background .25s, color .25s, box-shadow .25s; }
.chip:active { transform: scale(.94); }
.chip.on { background: var(--grad); color: #fff; box-shadow: 0 6px 20px rgba(99,102,241,.45); }
.seg { display: flex; background: var(--card2); border-radius: 14px; padding: 3px; margin-bottom: 14px; }
.seg button { flex: 1; border: 0; background: none; color: var(--dim); padding: 10px; border-radius: 11px; font: inherit; font-weight: 600; transition: background .25s, color .25s, box-shadow .25s; }
.seg button.on { background: var(--grad); color: #fff; box-shadow: 0 4px 16px rgba(99,102,241,.4); }
.lbl { font-size: 12px; color: var(--dim); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; margin: 2px 0 8px; }
.qa { display: flex; gap: 8px; margin-bottom: 14px; }
.qa .chip { flex: 1; text-align: center; padding: 12px 0; font-size: 17px; color: #e0e7ff; }

.fab { position: fixed; right: 20px; bottom: calc(var(--tab-h) + var(--safe-b) + 28px); width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 34px rgba(99,102,241,.55), 0 0 0 1px rgba(255,255,255,.12) inset; z-index: 15; animation: pop .55s var(--spring) .2s both; transition: transform .2s var(--ease); }
.fab:active { transform: scale(.88); }

/* sheets */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0); z-index: 50; display: flex; align-items: flex-end; transition: background .35s; }
.overlay.show { background: rgba(0,0,0,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sheet { width: 100%; max-height: 92dvh; overflow-y: auto; background: rgba(14,18,28,.94); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); border-radius: 28px 28px 0 0; padding: 8px 18px calc(var(--safe-b) + 22px); transform: translateY(105%); transition: transform .5s var(--spring); box-shadow: 0 -20px 60px rgba(99,102,241,.18); }
.sheet.tall { min-height: 72dvh; }
.overlay.show .sheet { transform: none; }
.grab { width: 38px; height: 5px; border-radius: 3px; background: var(--faint); margin: 4px auto 10px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 20px; font-weight: 700; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 90px); transform: translate(-50%, 14px) scale(.95); background: rgba(30,34,50,.96); padding: 11px 18px; border-radius: 22px; opacity: 0; transition: .35s var(--spring); z-index: 80; font-size: 15px; font-weight: 500; white-space: nowrap; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* swipe rows */
.swipe { position: relative; overflow: hidden; transition: transform .24s ease-in, opacity .24s; }
.swipe.out { transform: translateX(-110%); opacity: 0; }
.swipe-del { position: absolute; right: 0; top: 0; bottom: 0; width: 80px; background: var(--rose); color: #fff; border: 0; display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.swipe.swiping .swipe-del { opacity: 1; }
.swipe-c { background: transparent; position: relative; transition: transform .35s var(--spring); touch-action: pan-y; }

/* calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-head b { font-size: 19px; letter-spacing: -.3px; }
.grid7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 10px; }
.grid7 .dow { text-align: center; font-size: 11px; color: var(--dim); font-weight: 600; padding: 4px 0; }
.day { aspect-ratio: 1; border: 0; background: none; color: var(--text); border-radius: 50%; font: inherit; font-weight: 500; position: relative; display: grid; place-items: center; padding: 0; transition: background .3s var(--ease), color .3s, transform .3s var(--spring), box-shadow .3s; }
.day:active { transform: scale(.85); }
.day.out { color: var(--faint); }
.day.today { color: #67e8f9; font-weight: 700; }
.day.sel { background: var(--grad); color: #fff; font-weight: 700; box-shadow: 0 6px 20px rgba(99,102,241,.5); }
.day i { position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); }
.day.sel i { background: #fff; }

/* timer */
.timer { text-align: center; padding: 18px 16px 16px; }
.timer .big { font-size: 52px; letter-spacing: -2px; margin: 2px 0; }
.live-l { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--dim); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); animation: pulse 1.6s ease-in-out infinite; box-shadow: 0 0 10px var(--emerald); }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

/* money */
.bar { height: 7px; background: var(--card2); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.bar > div { height: 100%; background: var(--grad); border-radius: 4px; box-shadow: 0 0 14px rgba(99,102,241,.6); transform-origin: left; animation: grow .8s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* habits */
.week { display: flex; gap: 4px; align-items: flex-end; }
.week i { width: 7px; height: 22px; border-radius: 4px; background: var(--card3); transition: background .3s; }
.week i.on { background: linear-gradient(180deg, #06B6D4, #8B5CF6); box-shadow: 0 0 8px rgba(99,102,241,.5); }

/* launcher */
.launch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 4px; }
.launch a { background: var(--card2); border-radius: 16px; padding: 14px 4px; text-align: center; color: var(--text); text-decoration: none; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: transform .2s var(--ease); }
.launch a:active { transform: scale(.92); }

/* more hub / icon tiles */
.ico { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, rgba(6,182,212,.22), rgba(139,92,246,.22)); color: #a5b4fc; display: grid; place-items: center; flex: none; overflow: hidden; }
.ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chev { color: var(--faint); display: inline-flex; }

/* chat */
.chat { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat-top { display: flex; gap: 8px; padding: 6px 16px 10px; position: relative; z-index: 2; }
.msgs { flex: 1; overflow-y: auto; padding: 14px 16px 8px; display: flex; flex-direction: column; gap: 8px; -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px); mask-image: linear-gradient(to bottom, transparent 0, #000 22px); }
.bub { max-width: 86%; padding: 10px 14px; border-radius: 20px; overflow-wrap: anywhere; font-size: 16.5px; animation: pop .35s var(--spring) both; }
.bub.user { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 6px; transform-origin: right bottom; box-shadow: 0 8px 24px rgba(99,102,241,.3); }
.bub.assistant { align-self: flex-start; background: rgba(255,255,255,.07); border-bottom-left-radius: 6px; transform-origin: left bottom; }
.bub.err { align-self: stretch; background: rgba(244,63,94,.12); color: var(--rose); font-size: 14px; }
.bub .att { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.18); border-radius: 10px; padding: 3px 9px; font-size: 13px; margin-top: 6px; }
.bub pre { background: #000; padding: 10px; border-radius: 12px; overflow-x: auto; font-size: 13px; margin: 6px 0; }
.bub code { font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; background: rgba(255,255,255,.1); padding: 1px 5px; border-radius: 5px; }
.bub pre code { background: none; padding: 0; }
.chat-bar { display: flex; gap: 8px; padding: 8px 14px 4px; align-items: flex-end; }
.chat-bar textarea { min-height: 46px; max-height: 140px; border-radius: 23px; padding: 12px 18px; }
.chat-bar .btn { border-radius: 50%; width: 46px; height: 46px; padding: 0; display: grid; place-items: center; flex: none; box-shadow: var(--glow); }
.chat-bar .clip { width: 46px; height: 46px; border-radius: 50%; background: var(--card2); color: #c4b5fd; border: 0; display: grid; place-items: center; flex: none; }
.pending { display: flex; align-items: center; gap: 8px; margin: 0 14px; padding: 7px 12px; border-radius: 14px; background: rgba(99,102,241,.16); color: #c7d2fe; font-size: 14px; }
.pending button { margin-left: auto; background: none; border: 0; color: inherit; padding: 2px; display: inline-flex; }
.empty { text-align: center; color: var(--dim); padding: 30px 10px; font-size: 15px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 4px 8px; }

/* grouped AI actions: one compact glass card with a gradient border */
.acts, .linkcard { align-self: stretch; border: 1px solid transparent; border-radius: 18px; padding: 9px 13px;
  background: linear-gradient(rgba(14,18,28,.92), rgba(14,18,28,.92)) padding-box, var(--grad) border-box; box-shadow: 0 8px 28px rgba(99,102,241,.2); animation: pop .35s var(--spring) both; }
.acts .hd { font-size: 11px; text-transform: uppercase; letter-spacing: .7px; color: var(--dim); margin-bottom: 3px; font-weight: 600; }
.acts .a { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: #dfe6ff; padding: 2px 0; }
.acts .a svg { color: var(--emerald); stroke-width: 3; flex: none; margin-top: 3px; }
.acts .a.fail, .acts .a.fail svg { color: var(--rose); }
.linkcard .u { font-size: 13.5px; color: #c7d2fe; word-break: break-all; margin-bottom: 8px; }
.linkcard .btns .btn { padding: 9px 12px; font-size: 14px; border-radius: 12px; }

/* vault */
.badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.badge { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--card2); color: #b6bfd4; }
.badge.pub { background: rgba(16,185,129,.15); color: var(--emerald); } .badge.lock { background: rgba(139,92,246,.18); color: #c4b5fd; } .badge.warn2 { background: rgba(244,63,94,.14); color: var(--rose); }
.prog { height: 8px; border-radius: 4px; background: var(--card2); overflow: hidden; margin: 10px 0; }
.prog > div { height: 100%; width: 0; background: var(--grad); transition: width .2s; box-shadow: 0 0 12px rgba(99,102,241,.6); }
.preview { width: 100%; max-height: 38dvh; border-radius: 18px; object-fit: contain; background: #000; margin-bottom: 14px; display: block; }
.linkbox { background: var(--card2); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: #c7d2fe; word-break: break-all; margin-bottom: 10px; }

/* login */
.login { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; padding: 24px; animation: rise .6s var(--ease) both; }
.login-card { text-align: center; max-width: 320px; width: 100%; position: relative; }
.login-card .logo { width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 24px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 50px; font-weight: 800; box-shadow: 0 14px 44px rgba(99,102,241,.5); }
.login-card h2 { margin: 0 0 6px; font-size: 32px; letter-spacing: -.8px; }
.login-card .gsi { display: flex; justify-content: center; margin-top: 20px; min-height: 44px; color-scheme: light; }
.login-card .gsi iframe { color-scheme: light; border-radius: 28px; }

@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---- native-app lock: the page itself never scrolls or bounces, only the content area does ---- */
html, body { position: fixed; inset: 0; width: 100%; overflow: hidden; }
.sheet, .msgs { overscroll-behavior-y: none; }

/* ---- slide transitions between dock tabs / push + back ---- */
.view.slide-r { animation: slideR .5s var(--spring) backwards; }
.view.slide-l { animation: slideL .5s var(--spring) backwards; }
@keyframes slideR { from { opacity: 0; transform: translate3d(28px,0,0); } to { opacity: 1; transform: none; } }
@keyframes slideL { from { opacity: 0; transform: translate3d(-28px,0,0); } to { opacity: 1; transform: none; } }

/* ---- center AI hero button in the dock ---- */
.tab.hero { overflow: visible; }
.hero-orb { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad); transform: translateY(-17px);
  box-shadow: 0 0 0 5px rgba(12,15,24,.92), 0 12px 38px rgba(99,102,241,.7); animation: orb 4.5s ease-in-out infinite; transition: transform .35s var(--spring), filter .3s; }
.tab.hero:active .hero-orb { transform: translateY(-15px) scale(.92); }
.tab.hero.on .hero-orb { filter: brightness(1.18) saturate(1.2); }
@keyframes orb { 0%, 100% { box-shadow: 0 0 0 5px rgba(12,15,24,.92), 0 12px 34px rgba(99,102,241,.55); } 50% { box-shadow: 0 0 0 5px rgba(12,15,24,.92), 0 14px 52px rgba(6,182,212,.7), 0 0 28px rgba(139,92,246,.5); } }

/* ---- misc ---- */
.stats.three { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats.three > div { padding: 10px 8px; text-align: center; }
.stats.three b { font-size: 17px; }
.cardlink { position: absolute; top: 14px; right: 16px; font-size: 14px; font-weight: 500; color: #7dd3fc; text-decoration: none; }
details.more > summary { list-style: none; color: var(--dim); font-weight: 600; padding: 6px 0 12px; cursor: pointer; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: ' +'; }
details.more[open] > summary::after { content: ' \2212'; }
.toast.undo { display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 18px; }
.toast.undo button { border: 0; border-radius: 16px; padding: 7px 14px; font: inherit; font-weight: 700; color: #fff; background: var(--grad); }
.bar.thin { height: 5px; }

/* glow of selected chips must not be clipped by the scroll container */
.chips:not(.wrapchips) { padding: 8px 16px 16px; margin: -8px -16px -16px; }
