/* ASTRA · liquid glass UI */
:root {
  --bg: #03040b;
  --bg-2: rgba(255, 255, 255, 0.04);
  --text: #f4f3ff;
  --muted: #9aa0c3;
  --dim: #6b7197;
  --blue: #3d7bff;
  --indigo: #6a5cff;
  --violet: #a67cff;
  --pink: #f4a3c6;
  --peach: #ffc9a8;
  --grad: linear-gradient(120deg, #3d7bff 0%, #6a5cff 38%, #a67cff 64%, #f4a3c6 88%, #ffc9a8 100%);
  --grad-soft: linear-gradient(120deg, rgba(61,123,255,.28), rgba(166,124,255,.22) 55%, rgba(244,163,198,.2));
  --glass: linear-gradient(145deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.035) 45%, rgba(255,255,255,.06) 100%);
  --glass-2: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  --stroke: rgba(255, 255, 255, 0.12);
  --stroke-2: rgba(255, 255, 255, 0.07);
  --blur: blur(26px) saturate(170%);
  --shadow: 0 24px 60px -18px rgba(0, 0, 0, .65), 0 2px 10px rgba(0, 0, 0, .25);
  --inner: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(255,255,255,.05), inset 0 0 0 1px rgba(255,255,255,.04);

  /* semantic (kept names used by app.js) */
  --gold: #f0b76a;
  --gold-2: #ffd49a;
  --gold-soft: rgba(240, 183, 106, 0.16);
  --red: #ff5a7a;
  --red-soft: rgba(255, 90, 122, 0.16);
  --green: #3ee0a1;
  --green-soft: rgba(62, 224, 161, 0.15);
  --blue-soft: rgba(61, 123, 255, 0.18);
  --accent: #b9a6ff;

  --radius: 24px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0; color: var(--text); background: var(--bg);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 15px; line-height: 1.55; min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: #c9b8ff; }
::selection { background: rgba(166, 124, 255, .45); }

/* ---------- cosmic background ---------- */
.cosmos { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 110% -10%, rgba(61,123,255,.28), transparent 60%),
    radial-gradient(900px 600px at -20% 110%, rgba(166,124,255,.18), transparent 60%),
    radial-gradient(600px 400px at 50% 120%, rgba(244,163,198,.12), transparent 70%),
    #03040b; }
.cosmos i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .7; mix-blend-mode: screen; animation: drift 26s ease-in-out infinite alternate; }
.cosmos i:nth-child(1) { width: 420px; height: 420px; left: -120px; top: 8%; background: #2f5bff; }
.cosmos i:nth-child(2) { width: 360px; height: 360px; right: -140px; top: 38%; background: #8b5cff; animation-duration: 32s; animation-delay: -8s; }
.cosmos i:nth-child(3) { width: 300px; height: 300px; left: 20%; bottom: -120px; background: #ff8ec0; opacity: .32; animation-duration: 38s; animation-delay: -16s; }
.cosmos::after { content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 68% 12%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 82% 44%, rgba(200,210,255,.6), transparent 60%),
    radial-gradient(1px 1px at 34% 62%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1px 1px at 90% 82%, rgba(255,220,240,.5), transparent 60%),
    radial-gradient(1px 1px at 6% 88%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 52% 30%, rgba(190,180,255,.5), transparent 60%);
  animation: twinkle 7s ease-in-out infinite alternate; }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,-40px) scale(1.15); } 100% { transform: translate(-40px,50px) scale(.95); } }
@keyframes twinkle { from { opacity: .5; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cosmos i, .cosmos::after { animation: none; } }

.app { max-width: 760px; margin: 0 auto; min-height: 100vh; padding: calc(var(--safe-t) + 14px) 16px calc(118px + var(--safe-b)); position: relative; }
.boot { display: grid; place-items: center; min-height: 80vh; }
.boot .logo-img { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); filter: drop-shadow(0 0 30px rgba(120,120,255,.6)); } }

/* ---------- liquid glass primitive ---------- */
.card, .item, .alert, .nav-in, .icon-btn, .btn, .seg, .input, .rec-shell, .toast {
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.card {
  position: relative; isolation: isolate;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--inner), var(--shadow);
  overflow: hidden;
  animation: rise .5s cubic-bezier(.2,.8,.2,1) both;
}
/* specular edge: gradient hairline that catches light */
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1;
  background: linear-gradient(135deg, rgba(255,255,255,.45), rgba(255,255,255,.04) 30%, rgba(255,255,255,0) 60%, rgba(166,124,255,.35) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* liquid sheen */
.card::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: 70%; height: 120px; left: -10%; top: -60px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.14), transparent);
  filter: blur(6px);
}
.card:nth-child(2) { animation-delay: .04s; } .card:nth-child(3) { animation-delay: .08s; } .card:nth-child(4) { animation-delay: .12s; } .card:nth-child(5) { animation-delay: .16s; } .card:nth-child(6) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

.hero { background: linear-gradient(145deg, rgba(61,123,255,.24), rgba(106,92,255,.14) 40%, rgba(244,163,198,.12) 100%), var(--glass); border-color: rgba(170,160,255,.28); }
.hero::after { background: radial-gradient(closest-side, rgba(180,190,255,.28), transparent); }

.card h2 { font-size: 13px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #d9dcff; }
.card h2 svg { width: 16px; height: 16px; flex-shrink: 0; color: #fff; }
.card h2 > svg { padding: 6px; width: 30px; height: 30px; border-radius: 10px; background: var(--grad); box-shadow: 0 6px 18px -4px rgba(106,92,255,.7), inset 0 1px 0 rgba(255,255,255,.4); }
.card h2 .count { margin-left: auto; font-size: 11px; color: var(--muted); font-weight: 700; white-space: nowrap; text-transform: none; letter-spacing: 0; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid var(--stroke-2); }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.empty { color: var(--muted); font-size: 14px; padding: 4px 0; }
.card.empty { padding: 18px; }
.row { display: flex; gap: 10px; align-items: center; }
.grow { flex: 1; min-width: 0; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 2px 20px; }
.top h1 { font-size: 28px; margin: 2px 0 0; font-weight: 800; letter-spacing: -.6px; line-height: 1.15; }
.top h1 .g, .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top .sub { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.astra-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; letter-spacing: 2.5px; color: #fff; padding: 4px 9px 4px 5px; border-radius: 99px; background: rgba(255,255,255,.07); border: 1px solid var(--stroke); box-shadow: var(--inner); }
.astra-chip img { width: 16px; height: 14px; object-fit: contain; }
.icon-btn { width: 44px; height: 44px; border-radius: 15px; border: 1px solid var(--stroke); background: var(--glass); box-shadow: var(--inner), 0 8px 24px -10px rgba(0,0,0,.6); display: grid; place-items: center; cursor: pointer; position: relative; color: var(--text); transition: transform .15s; flex-shrink: 0; }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; }
.dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); }

/* ---------- stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { padding: 14px 12px; border-radius: 20px; background: var(--glass-2); border: 1px solid var(--stroke-2); box-shadow: var(--inner); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); animation: rise .5s both; }
.stat b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.stat span { font-size: 11px; color: var(--muted); font-weight: 600; }
.stat:nth-child(1) b { color: #8fb2ff; } .stat:nth-child(2) b { color: #c7b1ff; } .stat:nth-child(3) b { color: #ffb8d4; }

/* ---------- agenda ---------- */
.agenda-item { display: flex; gap: 14px; padding: 11px 0; border-top: 1px solid var(--stroke-2); position: relative; }
.agenda-item:first-of-type { border-top: 0; padding-top: 2px; }
.agenda-time { min-width: 58px; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 14px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.agenda-time span { display: block; color: var(--dim); -webkit-text-fill-color: var(--dim); font-weight: 600; font-size: 12px; }
.agenda-title { font-weight: 600; }
.agenda-loc { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- list items ---------- */
.item { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; background: var(--glass-2); border: 1px solid var(--stroke-2); box-shadow: var(--inner); cursor: pointer; text-decoration: none; color: inherit; transition: transform .18s, border-color .18s, background .18s; }
.item + .item { margin-top: 8px; }
.item:hover { border-color: rgba(170,160,255,.35); background: linear-gradient(145deg, rgba(120,110,255,.12), rgba(255,255,255,.03)); }
.item:active { transform: scale(.985); }
.item .title { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .meta { color: var(--muted); font-size: 12px; }
.card > .item, .card .item { background: rgba(255,255,255,.035); }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.b-done { background: var(--green-soft); color: #7ff0c3; border-color: rgba(62,224,161,.25); }
.b-proc { background: rgba(166,124,255,.16); color: #cdb8ff; border-color: rgba(166,124,255,.3); }
.b-proc::before { animation: pulse-dot 1.2s infinite; }
.b-err { background: var(--red-soft); color: #ff9cb0; border-color: rgba(255,90,122,.3); }
@keyframes pulse-dot { 50% { opacity: .25; } }
.ctx-ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.08); }
.ctx-ico svg { width: 19px; height: 19px; }

/* ---------- checks ---------- */
.check { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--stroke-2); }
.check:first-of-type { border-top: 0; padding-top: 2px; }
.check input { appearance: none; width: 22px; height: 22px; border-radius: 8px; border: 1.5px solid rgba(255,255,255,.28); background: rgba(255,255,255,.04); flex-shrink: 0; margin: 1px 0 0; cursor: pointer; display: grid; place-items: center; transition: all .2s; }
.check input:checked { background: var(--grad); border-color: transparent; box-shadow: 0 4px 14px -2px rgba(106,92,255,.7); }
.check input:checked::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check.done .task { text-decoration: line-through; color: var(--dim); }
.task { font-weight: 550; }
.prio-tinggi { color: #ff9cb0; font-weight: 700; }
.prio-sedang { color: var(--gold-2); }
.prio-rendah { color: var(--dim); }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--stroke); background: var(--glass); box-shadow: var(--inner); border-radius: 16px; padding: 12px 18px; font-weight: 700; cursor: pointer; text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .2s, filter .2s; overflow: hidden; }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn.primary { background: var(--grad); background-size: 160% 100%; border: 0; color: #fff; text-shadow: 0 1px 8px rgba(40,20,120,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -8px 16px rgba(60,30,160,.25), 0 14px 34px -10px rgba(106,92,255,.85); animation: flow 6s ease-in-out infinite alternate; }
.btn.primary::after { content: ''; position: absolute; inset: 0 0 50% 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0)); pointer-events: none; }
.btn.primary:hover { filter: brightness(1.08); }
@keyframes flow { to { background-position: 100% 0; } }
.btn.danger { background: var(--red-soft); color: #ff9cb0; border-color: rgba(255,90,122,.25); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 12px; }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 7px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.input, textarea.input, select.input { width: 100%; background: rgba(255,255,255,.045); border: 1px solid var(--stroke); border-radius: 16px; padding: 13px 15px; outline: none; box-shadow: inset 0 2px 8px rgba(0,0,0,.25); transition: border-color .2s, box-shadow .2s; }
.input::placeholder { color: var(--dim); }
.input:focus { border-color: rgba(166,124,255,.7); box-shadow: inset 0 2px 8px rgba(0,0,0,.25), 0 0 0 4px rgba(106,92,255,.18); }
textarea.input { min-height: 96px; resize: vertical; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255,255,255,.04); border: 1px solid var(--stroke-2); border-radius: 16px; padding: 4px; gap: 4px; box-shadow: inset 0 2px 8px rgba(0,0,0,.25); }
.seg button { border: 0; background: transparent; padding: 10px 4px; border-radius: 12px; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--muted); transition: all .2s; }
.seg button.on { color: #fff; background: linear-gradient(145deg, rgba(120,110,255,.45), rgba(166,124,255,.2)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 16px -6px rgba(106,92,255,.8); }
.toggle { display: flex; align-items: center; gap: 14px; padding: 12px 0; cursor: pointer; }
.toggle input { appearance: none; width: 50px; height: 30px; border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid var(--stroke); position: relative; flex-shrink: 0; cursor: pointer; transition: background .25s; box-shadow: inset 0 2px 6px rgba(0,0,0,.35); }
.toggle input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(180deg, #fff, #d9dcff); box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: transform .25s cubic-bezier(.3,1.4,.5,1); }
.toggle input:checked { background: var(--grad); border-color: transparent; }
.toggle input:checked::after { transform: translateX(20px); }

/* ---------- recorder (liquid orb) ---------- */
.rec-wrap { text-align: center; padding: 18px 8px 6px; }
.rec-btn { position: relative; width: 150px; height: 150px; border-radius: 50%; border: 0; cursor: pointer; margin: 8px auto 18px; display: grid; place-items: center; color: #fff; transition: transform .2s;
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.65), rgba(255,255,255,0) 26%), radial-gradient(circle at 50% 60%, #6a5cff 0%, #3d7bff 45%, #1b2a8f 100%);
  box-shadow: inset 0 -14px 30px rgba(20,10,80,.55), inset 0 4px 12px rgba(255,255,255,.35), 0 0 0 10px rgba(106,92,255,.12), 0 0 0 22px rgba(106,92,255,.05), 0 24px 60px -10px rgba(80,90,255,.8); }
.rec-btn::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; background: conic-gradient(from 0deg, #3d7bff, #a67cff, #f4a3c6, #ffc9a8, #3d7bff); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); opacity: .9; animation: spin 6s linear infinite; }
.rec-btn:active { transform: scale(.95); }
.rec-btn svg { width: 50px; height: 50px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
.rec-btn.live { background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.55), rgba(255,255,255,0) 26%), radial-gradient(circle at 50% 60%, #ff7aa8 0%, #d64a8a 45%, #5a1a6e 100%);
  box-shadow: inset 0 -14px 30px rgba(80,10,60,.55), inset 0 4px 12px rgba(255,255,255,.35), 0 24px 60px -10px rgba(255,90,150,.8); animation: live 1.8s ease-in-out infinite; }
.rec-btn.live::before { animation-duration: 1.6s; }
.rec-btn.live .sq { width: 40px; height: 40px; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes live { 0%,100% { box-shadow: inset 0 -14px 30px rgba(80,10,60,.55), inset 0 4px 12px rgba(255,255,255,.35), 0 0 0 10px rgba(255,90,150,.14), 0 24px 60px -10px rgba(255,90,150,.8); } 50% { box-shadow: inset 0 -14px 30px rgba(80,10,60,.55), inset 0 4px 12px rgba(255,255,255,.35), 0 0 0 26px rgba(255,90,150,.04), 0 24px 70px -10px rgba(255,90,150,.95); } }
.timer { font-size: 46px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 1px; background: linear-gradient(180deg, #fff, #b9c1ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.meter { height: 6px; background: rgba(255,255,255,.07); border-radius: 99px; overflow: hidden; margin: 14px auto 4px; max-width: 280px; box-shadow: inset 0 1px 3px rgba(0,0,0,.4); }
.meter i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 99px; box-shadow: 0 0 12px rgba(166,124,255,.8); transition: width .08s; }
.live-text { text-align: left; background: rgba(0,0,0,.25); border: 1px solid var(--stroke-2); border-radius: 16px; padding: 12px 14px; font-size: 13px; color: #cfd3f5; max-height: 180px; overflow: auto; margin-top: 14px; white-space: pre-wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.chip { font-size: 11px; padding: 4px 9px; border-radius: 99px; background: rgba(255,255,255,.06); color: var(--muted); font-weight: 700; border: 1px solid var(--stroke-2); }
.chip.ok { background: var(--green-soft); color: #7ff0c3; }
.chip.err { background: var(--red-soft); color: #ff9cb0; }
.chip.up { background: rgba(166,124,255,.16); color: #cdb8ff; }

/* ---------- detail ---------- */
.sec { margin-top: 16px; }
.sec h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; margin: 0 0 8px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.sec ul { margin: 0; padding-left: 18px; }
.sec li { margin: 5px 0; }
.sec li::marker { color: #a67cff; }
.draft { background: rgba(0,0,0,.25); border: 1px solid var(--stroke-2); border-radius: 16px; padding: 14px; white-space: pre-wrap; font-size: 14px; }
details.tx summary { cursor: pointer; font-weight: 700; padding: 6px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
details.tx summary::before { content: '›'; font-size: 20px; line-height: 1; color: #a67cff; transition: transform .2s; }
details.tx[open] summary::before { transform: rotate(90deg); }
details.tx pre { white-space: pre-wrap; font-family: inherit; font-size: 13px; color: #cfd3f5; background: rgba(0,0,0,.25); border: 1px solid var(--stroke-2); padding: 14px; border-radius: 16px; max-height: 420px; overflow: auto; }
.md h1, .md h2, .md h3 { font-size: 12px; margin: 14px 0 6px; text-transform: uppercase; letter-spacing: 1px; color: #cdb8ff; }
.md h3:first-child { margin-top: 0; }
.md p { margin: 6px 0; }
.md ul { margin: 4px 0; padding-left: 18px; }
.md li::marker { color: #a67cff; }
.title-input { min-height: 0 !important; resize: none !important; overflow: hidden; line-height: 1.3; font-weight: 800 !important; font-size: 19px !important; background: transparent !important; box-shadow: none !important; border-color: transparent !important; padding-left: 0 !important; }
.title-input:focus { border-color: var(--stroke) !important; padding-left: 12px !important; background: rgba(255,255,255,.04) !important; }

/* ---------- alerts ---------- */
.alert { display: flex; gap: 12px; padding: 13px; border-radius: 18px; background: var(--glass-2); border: 1px solid var(--stroke-2); box-shadow: var(--inner); margin-bottom: 8px; cursor: pointer; transition: opacity .2s, transform .15s; animation: rise .4s both; }
.alert:active { transform: scale(.985); }
.alert.read { opacity: .5; }
.alert .lvl { width: 4px; border-radius: 99px; flex-shrink: 0; }
.lvl-info { background: linear-gradient(#3d7bff, #6a5cff); box-shadow: 0 0 10px #3d7bff; }
.lvl-action { background: linear-gradient(#a67cff, #f4a3c6); box-shadow: 0 0 10px #a67cff; }
.lvl-warning { background: linear-gradient(#ffc9a8, #f0b76a); box-shadow: 0 0 10px #f0b76a; }
.lvl-urgent { background: linear-gradient(#ff5a7a, #ff2d6b); box-shadow: 0 0 12px #ff5a7a; }

/* ---------- floating glass nav ---------- */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 0 14px calc(12px + var(--safe-b)); pointer-events: none; }
.nav-in { pointer-events: auto; max-width: 440px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 7px; border-radius: 28px;
  background: linear-gradient(145deg, rgba(40,44,80,.55), rgba(20,22,45,.5)); border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -1px 0 rgba(255,255,255,.05), 0 18px 50px -10px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.3); }
.nav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 7px; border-radius: 21px; color: var(--muted); text-decoration: none; font-size: 10.5px; font-weight: 700; letter-spacing: .2px; transition: color .2s, background .25s; }
.nav a svg { width: 22px; height: 22px; transition: transform .25s cubic-bezier(.3,1.5,.5,1); }
.nav a.on { color: #fff; background: linear-gradient(145deg, rgba(106,92,255,.55), rgba(61,123,255,.25) 60%, rgba(244,163,198,.25)); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 8px 20px -8px rgba(106,92,255,.9); }
.nav a.on svg { transform: translateY(-1px) scale(1.08); filter: drop-shadow(0 0 6px rgba(200,190,255,.8)); }
.nav a.rec-tab svg { color: #ff8fb5; }
.nav a.on.rec-tab svg { color: #fff; }

/* ---------- login ---------- */
.login { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; max-width: 380px; margin: 0 auto; text-align: center; }
.login-symbol { width: 230px; max-width: 70%; margin: 0 auto -6px; filter: drop-shadow(0 0 40px rgba(90,110,255,.55)); animation: float 6s ease-in-out infinite; }
.login-word { width: 210px; max-width: 64%; margin: 8px auto 12px; opacity: .95; }
.tag { font-size: 10px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--muted); font-weight: 600; line-height: 1.8; }
.glow-line { width: 120px; height: 1px; margin: 14px auto; background: linear-gradient(90deg, transparent, #a67cff, #3d7bff, transparent); box-shadow: 0 0 12px #6a5cff; }
.login .input { text-align: center; font-size: 22px; letter-spacing: 8px; margin: 26px 0 14px; padding: 16px; }
@keyframes float { 50% { transform: translateY(-10px); } }
.logo-img { width: 84px; height: 84px; border-radius: 24px; display: block; box-shadow: 0 16px 50px rgba(80,90,255,.45); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(108px + var(--safe-b)); transform: translateX(-50%) translateY(20px); background: linear-gradient(145deg, rgba(50,54,95,.8), rgba(25,27,55,.8)); border: 1px solid var(--stroke); color: var(--text); padding: 11px 18px; border-radius: 16px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: all .3s cubic-bezier(.2,.8,.2,1); z-index: 50; max-width: calc(100% - 32px); box-shadow: var(--inner), 0 16px 40px rgba(0,0,0,.5); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.15); border-top-color: #a67cff; border-right-color: #3d7bff; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
.drop { display: block; border: 1.5px dashed rgba(166,124,255,.4); border-radius: 18px; padding: 20px; text-align: center; cursor: pointer; background: rgba(106,92,255,.06); font-weight: 600; transition: all .2s; }
.drop:hover { border-color: #a67cff; background: rgba(106,92,255,.12); }

@media (min-width: 720px) {
  .app { padding-top: 32px; }
  .top h1 { font-size: 34px; }
}

/* ================= v2: tasks, chat, nav ================= */
.nav-in { grid-template-columns: repeat(5, 1fr); max-width: 480px; }
.nav a { font-size: 10px; }
.nav a.rec-tab { color: #fff; }
.rec-dot { width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.6), rgba(255,255,255,0) 30%), radial-gradient(circle at 50% 60%, #6a5cff, #3d7bff 55%, #1b2a8f); box-shadow: inset 0 -6px 12px rgba(20,10,80,.5), 0 8px 22px -4px rgba(80,90,255,.9), 0 0 0 4px rgba(10,12,30,.9); }
.rec-dot svg { width: 20px !important; height: 20px !important; color: #fff !important; }
.nav a.rec-tab.on { background: none; box-shadow: none; }
.nav a.rec-tab.on .rec-dot { background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.6), rgba(255,255,255,0) 30%), radial-gradient(circle at 50% 60%, #ff7aa8, #d64a8a 55%, #5a1a6e); }

a.stat { text-decoration: none; color: inherit; display: block; }
.stat.hot { border-color: rgba(255,90,122,.45); background: linear-gradient(145deg, rgba(255,90,122,.2), rgba(255,255,255,.03)); }
.stat.hot b { color: #ff9cb0 !important; }
.stats .stat:nth-child(3) b { color: #ffb8d4; }

.ask-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; margin-bottom: 14px; border-radius: 22px; text-decoration: none; color: var(--muted);
  background: linear-gradient(145deg, rgba(61,123,255,.18), rgba(166,124,255,.12) 60%, rgba(244,163,198,.1)); border: 1px solid rgba(170,160,255,.3);
  box-shadow: var(--inner), 0 10px 30px -12px rgba(106,92,255,.6); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); animation: rise .5s both; }
.ask-bar img { width: 34px; height: 28px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(120,130,255,.7)); }
.ask-bar span { flex: 1; font-weight: 600; }
.ask-bar svg { width: 20px; height: 20px; color: #fff; padding: 8px; box-sizing: content-box; border-radius: 12px; background: var(--grad); }

/* tasks */
.task-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--stroke-2); }
.task-row:first-of-type, h2 + .task-row { border-top: 0; }
.task-main { cursor: pointer; }
.tick input { appearance: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); background: rgba(255,255,255,.04); margin: 0; cursor: pointer; display: grid; place-items: center; transition: all .25s cubic-bezier(.3,1.4,.5,1); }
.tick input:checked { background: var(--grad); border-color: transparent; box-shadow: 0 4px 14px -2px rgba(106,92,255,.8); transform: scale(1.08); }
.tick input:checked::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.task-row.done .task { text-decoration: line-through; color: var(--dim); }
.task-row .task { font-weight: 600; line-height: 1.4; }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 8px; background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--stroke-2); text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill svg { width: 12px; height: 12px; flex-shrink: 0; }
.pill.link { color: #c9b8ff; }
.pill.p-hi { color: #ff9cb0; background: var(--red-soft); border-color: rgba(255,90,122,.25); }
.ctx-telkomsel { color: #ffb0c0; } .ctx-vapertize { color: #ffd49a; } .ctx-pribadi { color: #b9ccff; }
.due { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 8px; background: rgba(255,255,255,.06); color: #cfd3f5; }
.due-late { background: rgba(255,90,122,.2); color: #ffb0c0; box-shadow: 0 0 12px -2px rgba(255,90,122,.5); }
.due-today { background: rgba(166,124,255,.22); color: #e0d4ff; }
.due-soon { background: rgba(61,123,255,.18); color: #b9ccff; }
.card h2.grp { margin-bottom: 4px; }
.card h2.grp.late { color: #ffb0c0; }
.card h2.grp.today { color: #e0d4ff; }
.quick-add { padding: 12px; }
.qa-row { display: flex; gap: 8px; }
.qa-row .input { flex: 1; }
.qa-btn { padding: 0 14px; border-radius: 14px; }
.qa-opts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; max-height: 0; overflow: hidden; transition: max-height .3s, margin .3s; }
.qa-opts.open { max-height: 80px; margin-top: 8px; }
.sm-input { padding: 9px 10px; font-size: 13px; border-radius: 12px; min-width: 0; }
select.input { appearance: none; -webkit-appearance: none; }
input[type=date].input { color-scheme: dark; }
.seg-4 { grid-template-columns: repeat(3, 1fr); }
.seg button b { font-weight: 800; color: #c9b8ff; }
.empty-state { text-align: center; padding: 30px 18px; color: var(--muted); }
.empty-state .big svg { width: 42px; height: 42px; color: #a67cff; margin-bottom: 8px; filter: drop-shadow(0 0 12px rgba(166,124,255,.7)); }

/* bottom sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(2,3,10,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .25s; }
.sheet-wrap.open { opacity: 1; }
.sheet { width: 100%; max-width: 560px; margin: 0; border-radius: 28px 28px 0 0; padding: 12px 18px calc(18px + var(--safe-b)); transform: translateY(40px); transition: transform .3s cubic-bezier(.2,.9,.3,1); background: linear-gradient(160deg, rgba(40,44,90,.92), rgba(14,16,36,.96)); animation: none; max-height: 90vh; overflow: auto; }
.sheet-wrap.open .sheet { transform: none; }
.sheet-grip { width: 42px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.25); margin: 0 auto 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* chat */
.thread { padding-bottom: 90px; }
.msg { display: flex; gap: 10px; margin: 12px 0; animation: rise .35s both; }
.msg.user { justify-content: flex-end; }
.msg .bubble { max-width: 86%; padding: 12px 15px; border-radius: 20px; line-height: 1.55; }
.msg.user .bubble { background: var(--grad); color: #fff; border-bottom-right-radius: 6px; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 26px -10px rgba(106,92,255,.9); }
.msg.bot .bubble { background: var(--glass); border: 1px solid var(--stroke); border-bottom-left-radius: 6px; box-shadow: var(--inner), 0 12px 30px -16px rgba(0,0,0,.7); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.msg .bubble.err { color: #ffb0c0; border-color: rgba(255,90,122,.35); }
.msg .avatar { width: 30px; height: 26px; object-fit: contain; flex-shrink: 0; margin-top: 6px; filter: drop-shadow(0 0 8px rgba(120,130,255,.7)); }
.spin-slow { animation: breathe 1.6s ease-in-out infinite; }
.bubble.md p { margin: 4px 0; } .bubble.md ul, .bubble.md ol { margin: 6px 0; padding-left: 20px; }
.bubble.md h3 { margin: 10px 0 4px; }
.bubble code, .md code { background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.srcs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--stroke-2); }
.typing { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #a67cff; animation: bounce 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; background: #6a5cff; } .typing i:nth-child(3) { animation-delay: .3s; background: #f4a3c6; }
.typing span { margin-left: 6px; }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }
.composer { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + var(--safe-b)); width: calc(100% - 28px); max-width: 732px; z-index: 25; display: flex; align-items: flex-end; gap: 8px; padding: 7px 7px 7px 16px; border-radius: 26px;
  background: linear-gradient(145deg, rgba(40,44,85,.75), rgba(18,20,42,.8)); border: 1px solid rgba(170,160,255,.3); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 16px 40px -12px rgba(0,0,0,.8); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.composer textarea { flex: 1; background: transparent; border: 0; outline: none; resize: none; padding: 9px 0; max-height: 140px; line-height: 1.4; }
.composer textarea::placeholder { color: var(--dim); }
.send { width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; background: var(--grad); color: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 18px -4px rgba(106,92,255,.9); }
.send svg { width: 20px; height: 20px; }
.ask-hero { text-align: center; padding: 20px 6px; animation: rise .5s both; }
.ask-hero img { width: 120px; filter: drop-shadow(0 0 30px rgba(90,110,255,.6)); animation: float 6s ease-in-out infinite; }
.ask-hero h3 { font-size: 20px; margin: 10px 0 4px; }
.suggest { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.chip-btn { text-align: left; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--stroke); background: var(--glass-2); box-shadow: var(--inner); color: var(--text); font-weight: 600; cursor: pointer; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.chip-btn:active { transform: scale(.98); }
.tbl { overflow-x: auto; margin: 10px 0; border-radius: 14px; border: 1px solid var(--stroke); box-shadow: var(--inner); }
.tbl table { border-collapse: collapse; width: 100%; font-size: 13px; }
.tbl th { text-align: left; padding: 9px 12px; background: linear-gradient(120deg, rgba(61,123,255,.35), rgba(166,124,255,.3)); color: #fff; font-weight: 700; white-space: nowrap; }
.tbl td { padding: 9px 12px; border-top: 1px solid var(--stroke-2); vertical-align: top; }
.tbl tr:nth-child(even) td { background: rgba(255,255,255,.035); }
.meter-card { padding: 12px 14px; margin-bottom: 14px; border-radius: 18px; background: var(--glass-2); border: 1px solid var(--stroke-2); box-shadow: var(--inner); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); animation: rise .5s both; }
.meter-card .meter { margin: 8px 0 6px; max-width: none; }
.meter-card.warn .meter i { background: linear-gradient(90deg, #f0b76a, #ff5a7a); }
.tiny { font-size: 11px; }
.deep { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; font-weight: 700; color: #e0d4ff; text-decoration: none; padding: 6px 10px; border-radius: 10px; background: linear-gradient(120deg, rgba(61,123,255,.2), rgba(244,163,198,.15)); border: 1px solid rgba(170,160,255,.3); }
.deep svg { width: 14px; height: 14px; }
.claude-btn svg { color: #ffc9a8; }

/* ================= v3: mobile-app home, calmer system ================= */
:root {
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-snap: cubic-bezier(.2,0,0,1);
  --ease-pop: cubic-bezier(.34,1.56,.64,1);
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
}
/* calmer section headers everywhere: sentence case, no gradient squares */
.card h2 { font-size: 15px; text-transform: none; letter-spacing: -.1px; color: #eceeff; font-weight: 700; }
.card h2 > svg { width: 18px; height: 18px; padding: 0; background: none; box-shadow: none; color: #b9a8ff; border-radius: 0; }
.card { box-shadow: var(--inner), 0 18px 40px -24px rgba(0,0,0,.7); }
.card::after { opacity: .6; }
.card { animation-duration: .35s; }

/* page transitions (direction follows tab order) */
.app.pg-l > :not(.nav) { animation: pgL .32s var(--ease-out) both; }
.app.pg-r > :not(.nav) { animation: pgR .32s var(--ease-out) both; }
.app.pg-up > :not(.nav) { animation: pgU .32s var(--ease-out) both; }
@keyframes pgL { from { opacity: 0; transform: translateX(18px); } }
@keyframes pgR { from { opacity: 0; transform: translateX(-18px); } }
@keyframes pgU { from { opacity: 0; transform: translateY(12px); } }

/* nav: lighter active state */
.nav-in { background: linear-gradient(145deg, rgba(30,33,64,.72), rgba(14,16,36,.72)); }
.nav a.on { background: none; box-shadow: none; }
.nav a.on:not(.rec-tab)::after { content: ''; position: absolute; bottom: 2px; width: 18px; height: 3px; border-radius: 99px; background: var(--grad); box-shadow: 0 0 10px rgba(166,124,255,.9); animation: navdot .3s var(--ease-pop); }
@keyframes navdot { from { transform: scaleX(0); } }
.nav a.on svg { filter: drop-shadow(0 0 8px rgba(166,124,255,.8)); color: #fff; }
.nav a:active svg { transform: scale(.88); }
.ndot { position: absolute; top: 6px; right: calc(50% - 16px); width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.rec-dot { animation: recglow 3s ease-in-out infinite; }
@keyframes recglow { 50% { box-shadow: inset 0 -6px 12px rgba(20,10,80,.5), 0 10px 30px -2px rgba(120,110,255,1), 0 0 0 4px rgba(10,12,30,.9); } }

/* top bar */
.h-top { display: flex; align-items: center; gap: 12px; margin: 2px 0 10px; }
.avatar-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--stroke); background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), rgba(255,255,255,.03)); display: grid; place-items: center; cursor: pointer; padding: 0; transition: transform .15s var(--ease-out); }
.avatar-btn img { width: 26px; height: 22px; object-fit: contain; }
.avatar-btn:active { transform: scale(.94); }
.h-date { font-size: 12px; color: var(--muted); font-weight: 600; }
.h-brand { font-size: 11px; font-weight: 800; letter-spacing: 3px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.icon-btn.ghost { background: rgba(255,255,255,.05); box-shadow: none; border-radius: 50%; }
.nbadge { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #ff5a7a; color: #fff; font-size: 10px; font-style: normal; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px #03040b; animation: pop .4s var(--ease-pop); }
@keyframes pop { from { transform: scale(0); } }

/* hero */
.h-hero { position: relative; border-radius: 30px; padding: 22px 18px 16px; margin-bottom: 18px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 100% 0%, rgba(106,92,255,.45), transparent 55%), radial-gradient(90% 80% at 0% 100%, rgba(244,163,198,.18), transparent 60%), linear-gradient(160deg, rgba(40,48,110,.55), rgba(12,14,34,.6));
  border: 1px solid rgba(170,160,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 30px 60px -30px rgba(80,70,255,.6); }
.h-hero::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; z-index: -1; background: conic-gradient(from 180deg, rgba(61,123,255,.0), rgba(166,124,255,.35), rgba(244,163,198,.25), rgba(61,123,255,0)); filter: blur(40px); animation: aurora 14s linear infinite; }
@keyframes aurora { to { transform: rotate(360deg); } }
.h-hero-txt { position: relative; z-index: 1; max-width: 62%; }
.h-greet { margin: 0; color: #c9cdf2; font-size: 15px; font-weight: 600; }
.h-hero h1 { margin: 0; font-size: 40px; line-height: 1.05; font-weight: 800; letter-spacing: -1.2px; background: linear-gradient(100deg, #fff 30%, #d9ccff 60%, #ffc9e0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-line { margin: 8px 0 0; font-size: 13.5px; color: #bfc4ea; line-height: 1.45; }
.h-orb { position: absolute; right: 6px; top: 8px; width: 132px; height: 132px; display: grid; place-items: center; }
.h-orb img { width: 92px; filter: drop-shadow(0 10px 30px rgba(90,110,255,.8)); animation: hfloat 5s ease-in-out infinite; }
.h-orb .orbit { position: absolute; inset: 8px; border-radius: 50%; border: 1px solid rgba(190,180,255,.28); transform: rotateX(70deg) rotateZ(0deg); animation: orbit 9s linear infinite; }
.h-orb .orbit::after { content: ''; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: #ffc9e0; box-shadow: 0 0 12px #f4a3c6; }
.h-orb .o2 { inset: -2px; border-color: rgba(120,160,255,.18); animation-duration: 14s; animation-direction: reverse; }
.h-orb .o2::after { background: #8fb2ff; box-shadow: 0 0 12px #3d7bff; width: 6px; height: 6px; }
@keyframes hfloat { 50% { transform: translateY(-8px) rotate(-3deg); } }
@keyframes orbit { to { transform: rotateX(70deg) rotateZ(360deg); } }
.h-stats { display: grid; grid-template-columns: auto 1fr 1fr; gap: 10px; align-items: center; margin-top: 18px; }
.ring { position: relative; width: 76px; height: 76px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring-bg { stroke: rgba(255,255,255,.08); }
.ring-fg { stroke: url(#rg); stroke-linecap: round; stroke-dasharray: var(--c); stroke-dashoffset: var(--off); filter: drop-shadow(0 0 6px rgba(166,124,255,.7)); }
.intro .ring-fg { animation: ringdraw 1s var(--ease-out) both .2s; }
@keyframes ringdraw { from { stroke-dashoffset: var(--c); } }
.ring-txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.05; }
.ring-txt b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ring-txt span { font-size: 9.5px; color: var(--muted); font-weight: 600; }
.h-stat { display: block; text-decoration: none; color: inherit; padding: 10px 12px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); transition: transform .15s var(--ease-out); }
.h-stat:active { transform: scale(.96); }
.h-stat b { display: block; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.h-stat span { font-size: 11px; color: var(--muted); font-weight: 600; }
.h-stat.hot { background: rgba(255,90,122,.14); border-color: rgba(255,90,122,.35); }
.h-stat.hot b { color: #ffb0c0; }
.h-ask { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 6px 6px 6px 14px; min-height: 48px; border-radius: 99px; background: rgba(5,6,20,.45); border: 1px solid rgba(255,255,255,.12); color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: border-color .2s, transform .15s var(--ease-out); }
.h-ask:active { transform: scale(.98); }
.h-ask > svg { width: 18px; height: 18px; color: #b9a8ff; }
.h-ask span { flex: 1; }
.h-ask i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; }
.h-ask i svg { width: 18px; height: 18px; }

/* banner */
.banner { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 20px; margin-bottom: 18px; background: rgba(255,255,255,.05); border: 1px solid var(--stroke-2); transition: opacity .2s, transform .2s; }
.banner.bye { opacity: 0; transform: scale(.97); }
.banner img { flex-shrink: 0; }
.banner b { display: block; font-size: 14px; }
.banner span { display: block; font-size: 12px; color: var(--muted); }
.banner .x { width: 32px; height: 44px; border: 0; background: none; color: var(--dim); font-size: 22px; cursor: pointer; }

/* quick actions (clay) */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 24px; }
.q { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: #dfe2ff; font-size: 12px; font-weight: 600; }
.q-ic { width: 68px; height: 68px; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.09); box-shadow: inset 0 1px 0 rgba(255,255,255,.15); transition: transform .2s var(--ease-out); }
.q-ic img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(70,50,200,.45)); animation: qbob 4s ease-in-out infinite; animation-delay: calc(var(--i) * -1s); }
@keyframes qbob { 50% { transform: translateY(-3px) rotate(-2deg); } }
.q:active .q-ic { transform: scale(.9); }
@media (hover: hover) and (pointer: fine) { .q:hover .q-ic { transform: translateY(-2px); } .q:hover img { animation-play-state: paused; transform: scale(1.06) rotate(-4deg); transition: transform .25s var(--ease-out); } }

/* sections */
.sec2 { margin-bottom: 26px; }
.sec-h { display: flex; align-items: baseline; gap: 8px; margin: 0 2px 10px; }
.sec-h h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.3px; }
.sec-sub { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; }
.sec-link { margin-left: auto; font-size: 13px; font-weight: 700; color: #c9b8ff; text-decoration: none; padding: 10px 0 10px 10px; margin-top: -10px; margin-bottom: -10px; }

/* slider */
.slider { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; margin: 0 -16px; padding: 4px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.slider::-webkit-scrollbar { display: none; }
.slider > * { scroll-snap-align: start; flex-shrink: 0; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.2); transition: width .3s var(--ease-out), background .3s; }
.dots i.on { width: 18px; background: var(--grad); }

.ag { width: 78%; max-width: 300px; min-height: 150px; padding: 16px; border-radius: 24px; display: flex; flex-direction: column; background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid var(--stroke-2); position: relative; overflow: hidden; }
.ag.is-next, .ag.now { background: linear-gradient(150deg, rgba(61,123,255,.35), rgba(106,92,255,.25) 50%, rgba(244,163,198,.18)); border-color: rgba(170,160,255,.35); box-shadow: 0 20px 40px -24px rgba(90,80,255,.9); }
.ag.past { opacity: .55; }
.ag-top { display: flex; align-items: center; gap: 8px; }
.ag-time { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.ag-time em { font-style: normal; font-size: 13px; color: var(--muted); font-weight: 600; }
.ag h3 { margin: 8px 0 2px; font-size: 16px; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ag p { margin: 0; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-foot { margin-top: auto; padding-top: 10px; display: flex; }
.ag-rec { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #fff; text-decoration: none; padding: 8px 12px; min-height: 36px; border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); }
.ag-rec svg { width: 14px; height: 14px; }
.live, .nextc, .donec { margin-left: auto; font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 99px; }
.live { background: rgba(255,90,122,.22); color: #ffc0cd; display: inline-flex; align-items: center; gap: 5px; }
.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ff5a7a; animation: pulse-dot 1.2s infinite; }
.nextc { background: rgba(255,255,255,.14); color: #fff; }
.donec { background: rgba(62,224,161,.14); color: #7ff0c3; }

/* brief */
.brief2 { position: relative; padding: 16px 16px 8px 16px; border-radius: 24px; background: linear-gradient(160deg, rgba(166,124,255,.14), rgba(255,255,255,.02)); border: 1px solid var(--stroke-2); }
.brief-ic { position: absolute; right: 12px; top: 12px; filter: drop-shadow(0 8px 12px rgba(70,50,200,.5)); animation: qbob 5s ease-in-out infinite; }
.brief-pts { margin: 0; padding: 0 44px 0 0; list-style: none; }
.brief-pts li { position: relative; padding-left: 18px; margin: 0 0 8px; font-size: 14px; line-height: 1.45; }
.brief-pts li::before { content: ''; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease-out); }
.collapse > div { overflow: hidden; }
.brief2.open .collapse { grid-template-rows: 1fr; }
.brief2.open .brief-pts { display: none; }
.link-btn { border: 0; background: none; color: #c9b8ff; font-weight: 700; font-size: 13px; padding: 10px 0; min-height: 44px; cursor: pointer; }

/* task list on home */
.list2 { border-radius: 24px; padding: 2px 14px; background: rgba(255,255,255,.035); border: 1px solid var(--stroke-2); }
.list2 .task-row { padding: 14px 0; }
.list2 .task-row .task { font-size: 14.5px; }
.task-row.done .task { transition: color .3s; }
.tick input:checked { animation: tickpop .35s var(--ease-pop); }
@keyframes tickpop { 40% { transform: scale(1.25); } }

/* meeting slider cards */
.mcard { width: 64%; max-width: 250px; padding: 14px; border-radius: 22px; text-decoration: none; color: inherit; background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid var(--stroke-2); transition: transform .15s var(--ease-out); }
.mcard:active { transform: scale(.97); }
.mcard .row { justify-content: space-between; }
.mcard .ctx-ico { width: 38px; height: 38px; border-radius: 12px; }
.mcard h3 { margin: 12px 0 4px; font-size: 14.5px; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.mcard p { margin: 0; font-size: 12px; color: var(--muted); }
.ctxb-telkomsel { box-shadow: inset 0 3px 0 -1px rgba(255,120,150,.55); }
.ctxb-vapertize { box-shadow: inset 0 3px 0 -1px rgba(240,183,106,.6); }
.ctxb-pribadi { box-shadow: inset 0 3px 0 -1px rgba(120,160,255,.6); }

.empty-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 22px; background: rgba(255,255,255,.035); border: 1px dashed rgba(255,255,255,.12); }
.empty-card b { display: block; }
.empty-card span { font-size: 13px; color: var(--muted); }

/* profile sheet */
.prof { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.prof img { width: 48px; height: 42px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(120,130,255,.7)); }
.prof b { display: block; font-size: 18px; }
.prof span { font-size: 12px; color: var(--muted); }
.sheet-row { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 4px; border: 0; border-top: 1px solid var(--stroke-2); background: none; color: var(--text); text-decoration: none; font-weight: 600; cursor: pointer; text-align: left; }
.sheet-row svg { width: 20px; height: 20px; color: #b9a8ff; }
.sheet-row em { font-style: normal; font-size: 13px; color: var(--muted); }
.danger-row, .danger-row svg { color: #ff9cb0; }

/* skeleton */
.sk { border-radius: 18px; background: linear-gradient(100deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.1) 50%, rgba(255,255,255,.04) 70%); background-size: 300% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.sk-hero { min-height: 250px; }
.sk-l { height: 44px; width: 55%; margin-top: 10px; }
.sk-m { height: 16px; width: 70%; margin-top: 12px; }
.sk-row { display: flex; gap: 12px; margin-bottom: 18px; overflow: hidden; }
.sk-card { height: 150px; flex: 0 0 78%; border-radius: 24px; }
.sk-q { height: 68px; border-radius: 24px; }
.sk-block { height: 160px; border-radius: 24px; }

/* first-visit stagger (only once per session) */
.intro > * { animation: rise .5s var(--ease-out) both; }
.intro > *:nth-child(2) { animation-delay: .06s; } .intro > *:nth-child(3) { animation-delay: .12s; } .intro > *:nth-child(4) { animation-delay: .18s; } .intro > *:nth-child(5) { animation-delay: .24s; } .intro > *:nth-child(6) { animation-delay: .3s; } .intro > *:nth-child(7) { animation-delay: .36s; }
.intro .q { animation: rise .45s var(--ease-out) both; animation-delay: calc(.15s + var(--i) * 50ms); }

@media (min-width: 720px) {
  .h-hero { padding: 28px; }
  .h-hero h1 { font-size: 52px; }
  .h-orb { width: 170px; height: 170px; right: 24px; }
  .h-orb img { width: 120px; }
  .ag { width: 300px; }
  .quick { gap: 16px; }
}
@media (max-width: 360px) {
  .h-hero h1 { font-size: 34px; }
  .h-orb { width: 110px; height: 110px; }
  .h-orb img { width: 74px; }
  .h-stats { grid-template-columns: auto 1fr; }
  .h-stats .h-stat.hot { grid-column: 2; }
  .q-ic { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .h-hero::before, .h-orb img, .h-orb .orbit, .q-ic img, .brief-ic, .rec-dot, .sk, .intro > *, .intro .q, .app[class*="pg-"] > *, .ring-fg { animation: none !important; }
  .collapse { transition: none; }
}

/* ================= v4: consistent mobile-app pages ================= */
/* page header */
.ph { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; min-height: 52px; }
.ph-txt { min-width: 0; }
.ph h1 { margin: 0; font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -.8px; }
.ph h1:empty { display: none; }
.ph-sub { margin: 0 0 2px; font-size: 13px; color: var(--muted); font-weight: 600; }
.ph-clay { width: 60px; height: 60px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 10px 14px rgba(70,50,200,.5)); animation: qbob 4.5s ease-in-out infinite; }
.ph-act { display: flex; gap: 6px; align-items: center; }
.ph-act .icon-btn { width: 44px; height: 44px; }
.ph-back svg { width: 22px; height: 22px; }

/* animated segmented tabs */
.tabs { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); padding: 4px; margin-bottom: 20px; border-radius: 99px; background: rgba(255,255,255,.05); border: 1px solid var(--stroke-2); }
.tabs::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n)); border-radius: 99px; background: linear-gradient(135deg, rgba(106,92,255,.7), rgba(61,123,255,.45) 60%, rgba(244,163,198,.4)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 18px -6px rgba(106,92,255,.9); transform: translateX(calc(var(--i) * 100%)); transition: transform .35s var(--ease-out); }
.tabs button { position: relative; z-index: 1; border: 0; background: none; min-height: 40px; border-radius: 99px; font-weight: 700; font-size: 13.5px; color: var(--muted); cursor: pointer; transition: color .2s; }
.tabs button.on { color: #fff; }
.tabs button b { font-weight: 800; color: #d9ccff; }
.tabs button:active { transform: scale(.97); }

/* filter chips */
.fchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 18px; padding: 2px 16px; }
.fchips::-webkit-scrollbar { display: none; }
.fchip { flex-shrink: 0; border: 1px solid var(--stroke); background: rgba(255,255,255,.04); color: var(--muted); border-radius: 99px; padding: 0 16px; min-height: 38px; font-weight: 700; font-size: 13px; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .12s var(--ease-out); }
.fchip.on { color: #fff; border-color: rgba(170,160,255,.55); background: rgba(106,92,255,.3); }
.fchip:active { transform: scale(.95); }
.fchip:disabled { opacity: .5; }
.m-hero .fchips, .form-surface .fchips { margin: 10px 0 0; padding: 0; }

/* search pill */
.search { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; margin-bottom: 12px; border-radius: 99px; background: rgba(255,255,255,.05); border: 1px solid var(--stroke); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: rgba(166,124,255,.7); box-shadow: 0 0 0 4px rgba(106,92,255,.15); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.search input { flex: 1; border: 0; background: none; outline: none; font-size: 15px; min-width: 0; }
.search input::placeholder { color: var(--dim); }

/* list rows */
.row2 { display: flex; align-items: center; gap: 12px; padding: 12px 0; min-height: 60px; text-decoration: none; color: inherit; border-top: 1px solid var(--stroke-2); transition: opacity .15s; }
.row2:first-child { border-top: 0; }
.row2:active { opacity: .6; }
.row2 .t { font-weight: 650; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row2 .m { font-size: 12px; color: var(--muted); }
.row2 .ctx-ico { width: 40px; height: 40px; border-radius: 13px; }
.chev svg { width: 16px; height: 16px; color: var(--dim); transform: rotate(180deg); }
.sec-h .h3 { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0; display: flex; align-items: center; gap: 6px; }
.sec-h .h3.late { color: #ffb0c0; }
.sec-h .h3.today { color: #e0d4ff; }
.dotr { width: 7px; height: 7px; border-radius: 50%; background: #ff5a7a; box-shadow: 0 0 8px #ff5a7a; animation: pulse-dot 1.4s infinite; }
.grp-in { animation: rise .4s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms); }
#tl { transition: opacity .15s; }
#tl.fading { opacity: .5; }
.list2 .check { padding: 13px 0; }
.list2 .check:first-child { border-top: 0; }

/* quick add */
.qa2 { margin-bottom: 14px; }
.qa2 .qa-row { align-items: center; gap: 8px; padding: 5px 5px 5px 4px; border-radius: 99px; background: rgba(255,255,255,.05); border: 1px solid var(--stroke); }
.qa2 .qa-row:focus-within { border-color: rgba(166,124,255,.7); }
.qa2 .input { background: none; border: 0; box-shadow: none; padding: 10px 12px; }
.qa2 .input:focus { box-shadow: none; }
.qa2 .send svg { width: 20px; height: 20px; }

/* skeleton list */
.sk-list { padding: 6px 14px; }
.sk-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.sk-dot { width: 40px; height: 40px; border-radius: 13px; flex-shrink: 0; }
.sk-t { display: block; height: 13px; width: 70%; border-radius: 8px; }
.sk-s { display: block; height: 10px; width: 40%; border-radius: 8px; margin-top: 8px; }
.empty-card.big { padding: 20px 18px; border-style: solid; background: linear-gradient(160deg, rgba(106,92,255,.12), rgba(255,255,255,.02)); animation: rise .4s var(--ease-out) both; }
.empty-card.big img { animation: qbob 4s ease-in-out infinite; filter: drop-shadow(0 8px 12px rgba(70,50,200,.5)); }

/* accordions */
.acc { border-radius: 20px; background: rgba(255,255,255,.035); border: 1px solid var(--stroke-2); padding: 0 16px; margin-bottom: 10px; }
.acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 52px; font-weight: 700; font-size: 14.5px; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); }
.acc > summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid #a67cff; border-bottom: 2px solid #a67cff; transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease-out); flex-shrink: 0; }
.acc[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
.acc[open] { padding-bottom: 14px; }
.acc[open] > :not(summary) { animation: rise .3s var(--ease-out) both; }
.acc.tx summary::before { display: none; }
.acc pre { white-space: pre-wrap; font-family: inherit; font-size: 13px; color: #cfd3f5; max-height: 420px; overflow: auto; margin: 0; }
.up-acc > summary { min-height: 64px; }
.up-acc > summary b { display: block; font-size: 14.5px; }
.up-acc > summary .small { display: block; font-weight: 500; }

/* surfaces */
.surface { border-radius: 22px; padding: 16px; background: rgba(255,255,255,.035); border: 1px solid var(--stroke-2); }
.lead-p { margin: 0; font-size: 15px; line-height: 1.6; color: #e6e8ff; }
.blist { margin: 0; padding-left: 18px; }
.blist li { margin: 6px 0; line-height: 1.5; }
.blist li::marker { color: #a67cff; }
.people { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--stroke-2); }
.pp { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--grad); color: #fff; margin-right: -12px; box-shadow: 0 0 0 2px #0b0c1c; }
.pp:nth-last-child(2) { margin-right: 6px; }
.prog { height: 6px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; margin: 0 2px 10px; }
.prog i { display: block; height: 100%; border-radius: 99px; background: var(--grad); transition: width .4s var(--ease-out); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.btn-row.end { margin: 4px 0 10px; }
.proc { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(166,124,255,.12); color: #d9ccff; font-size: 13px; }

/* meeting hero */
.m-hero { position: relative; overflow: hidden; border-radius: 28px; padding: 18px; margin-bottom: 24px; border: 1px solid rgba(170,160,255,.22);
  background: radial-gradient(100% 80% at 100% 0%, rgba(106,92,255,.35), transparent 60%), linear-gradient(160deg, rgba(40,48,110,.45), rgba(12,14,34,.5)); }
.ctxh-telkomsel { background: radial-gradient(100% 80% at 100% 0%, rgba(255,90,122,.25), transparent 60%), linear-gradient(160deg, rgba(40,48,110,.45), rgba(12,14,34,.5)); }
.ctxh-vapertize { background: radial-gradient(100% 80% at 100% 0%, rgba(240,183,106,.25), transparent 60%), linear-gradient(160deg, rgba(40,48,110,.45), rgba(12,14,34,.5)); }
.m-hero .title-input { margin-top: 10px; font-size: 22px !important; letter-spacing: -.3px; }

/* record */
.rec-stage { position: relative; text-align: center; padding: 18px 8px 16px; margin-bottom: 20px; border-radius: 32px; overflow: hidden; isolation: isolate;
  background: radial-gradient(80% 60% at 50% 30%, rgba(106,92,255,.3), transparent 70%), linear-gradient(180deg, rgba(20,24,60,.5), rgba(8,9,24,.3)); border: 1px solid rgba(170,160,255,.18); }
.rec-halo { position: absolute; left: 50%; top: 96px; width: 0; height: 0; z-index: -1; }
.rec-halo i { position: absolute; left: -90px; top: -90px; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(166,124,255,.35); opacity: 0; animation: halo 3.6s var(--ease-out) infinite; }
.rec-halo i:nth-child(2) { animation-delay: 1.2s; } .rec-halo i:nth-child(3) { animation-delay: 2.4s; }
@keyframes halo { 0% { transform: scale(.8); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
.is-live .rec-halo i { border-color: rgba(255,110,160,.5); animation-duration: 1.8s; }
.rec-stage .rec-btn { margin: 14px auto 14px; }
.rec-stage .timer { font-size: 52px; line-height: 1.1; }
.rec-status { font-size: 13px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 22px; }
.rec-status .live { margin: 0; }
.rec-stage .meter { max-width: 220px; }
.form-surface { border-radius: 24px; padding: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--stroke-2); }
.form-surface .toggle { padding: 14px 0 4px; }
.form-surface .acc { margin: 12px 0 0; background: rgba(0,0,0,.15); }
.pill-field { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 99px; background: rgba(255,255,255,.05); border: 1px solid var(--stroke); }
.pill-field:focus-within { border-color: rgba(166,124,255,.7); }
.pill-field svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.pill-field input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 15px; }
.pill-field input::placeholder { color: var(--dim); }
.field-row { margin-top: 12px; }
.fl { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.hint { margin: 10px 4px 0; font-size: 12px; color: var(--dim); text-align: center; }
.drop { display: flex; align-items: center; justify-content: center; gap: 8px; }
.drop svg { width: 18px; height: 18px; }

/* ask */
.ask-orb { position: relative; right: auto; top: auto; margin: 0 auto; width: 150px; height: 150px; }
.ask-orb img { width: 100px; }
.ask-hero h3 { font-size: 22px; letter-spacing: -.3px; margin-top: 4px; }
.chip-btn { display: flex; align-items: center; gap: 12px; min-height: 56px; border-radius: 20px; background: rgba(255,255,255,.04); animation: rise .4s var(--ease-out) both; animation-delay: calc(.1s + var(--i) * 50ms); transition: border-color .2s, transform .12s var(--ease-out); }
.chip-btn img { flex-shrink: 0; filter: drop-shadow(0 4px 6px rgba(70,50,200,.4)); }
.chip-btn:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .chip-btn:hover { border-color: rgba(166,124,255,.5); } }

/* alerts */
.alert { border-radius: 20px; background: rgba(255,255,255,.035); }

@media (prefers-reduced-motion: reduce) {
  .ph-clay, .rec-halo i, .grp-in, .acc[open] > :not(summary), .empty-card.big, .empty-card.big img, .chip-btn, .dotr { animation: none !important; }
  .tabs::before { transition: none; }
}
.ask-hero p svg { width: 14px; height: 14px; vertical-align: -2px; color: #ffc9a8; }
.ask-hero .suggest { text-align: left; }
.ask-hero .chip-btn img { width: 32px; height: 32px; object-fit: contain; animation: none; }

/* ================= v5: personal avatar ================= */
.avatar-btn.me { padding: 0; overflow: hidden; border: 2px solid transparent; background: linear-gradient(#0b0c1c, #0b0c1c) padding-box, var(--grad) border-box; }
.avatar-btn.me img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.h-brand { display: flex; align-items: center; gap: 5px; }
.h-brand img { width: 14px; height: 12px; object-fit: contain; }
.h-me { position: absolute; right: -6px; top: 0; width: 150px; height: 150px; }
.h-me img { position: relative; width: 150px; height: 150px; object-fit: cover; border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 52%, transparent 71%); mask-image: radial-gradient(circle at 50% 45%, #000 52%, transparent 71%);
  transform-origin: 50% 90%; animation: hello 5s var(--ease-out) infinite; }
@keyframes hello { 0%, 60%, 100% { transform: rotate(0) translateY(0); } 66% { transform: rotate(-4deg) translateY(-3px); } 72% { transform: rotate(3deg) translateY(-3px); } 78% { transform: rotate(-2deg); } 84% { transform: rotate(0); } }
.h-me .orbit { position: absolute; inset: 14px; border-radius: 50%; border: 1px solid rgba(190,180,255,.3); transform: rotateX(72deg); animation: orbit 9s linear infinite; z-index: 1; pointer-events: none; }
.h-me .orbit::after { content: ''; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: #ffc9e0; box-shadow: 0 0 12px #f4a3c6; }
.h-me .o2 { inset: 4px; border-color: rgba(120,160,255,.2); animation-duration: 14s; animation-direction: reverse; }
.h-me .o2::after { background: #8fb2ff; box-shadow: 0 0 12px #3d7bff; width: 6px; height: 6px; }
@keyframes orbit { from { transform: rotateX(72deg) rotateZ(0); } to { transform: rotateX(72deg) rotateZ(360deg); } }
.hi { position: absolute; left: -2px; top: 26px; z-index: 2; padding: 4px 10px; border-radius: 14px 14px 14px 4px; font-size: 12px; font-weight: 800; color: #1a1440; background: linear-gradient(120deg, #fff, #ffe3ef); box-shadow: 0 8px 20px -8px rgba(0,0,0,.6); animation: hipop 5s var(--ease-pop) infinite; transform-origin: 0 100%; }
@keyframes hipop { 0%, 58% { transform: scale(0); opacity: 0; } 64%, 92% { transform: scale(1); opacity: 1; } 100% { transform: scale(0); opacity: 0; } }
.intro .hi { animation-delay: .6s; }
.prof img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; filter: none; border: 2px solid transparent; background: linear-gradient(#0b0c1c, #0b0c1c) padding-box, var(--grad) border-box; }
.msg .me-av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; filter: none; margin-top: 4px; }
@media (min-width: 720px) { .h-me { right: 20px; width: 180px; height: 180px; } .h-me img { width: 180px; height: 180px; } }
@media (max-width: 360px) { .h-me { width: 120px; height: 120px; } .h-me img { width: 120px; height: 120px; } }
@media (prefers-reduced-motion: reduce) { .h-me img, .h-me .orbit, .hi { animation: none !important; } .hi { transform: none; opacity: 1; } }

/* ================= v6: avatar polish, profile sheet, notifications ================= */
/* hero avatar: transparent cutout, soft glow, fades into the card */
.h-me { position: absolute; right: 0; top: 2px; width: 140px; height: 186px; }
.h-me img { position: relative; z-index: 1; width: 140px; height: 186px; object-fit: contain; border-radius: 0; filter: drop-shadow(0 14px 18px rgba(20,10,80,.55));
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 96%); mask-image: linear-gradient(to bottom, #000 62%, transparent 96%);
  transform-origin: 50% 100%; animation: meFloat 6s ease-in-out infinite; }
@keyframes meFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-1.2deg); } }
.me-glow { position: absolute; left: 50%; top: 42%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; background: radial-gradient(closest-side, rgba(166,124,255,.75), rgba(106,92,255,.35) 55%, transparent); filter: blur(6px); animation: glowPulse 6s ease-in-out infinite; }
@keyframes glowPulse { 50% { transform: scale(1.08); opacity: .85; } }
.me-ring { position: absolute; left: 50%; top: 40%; width: 128px; height: 128px; margin: -64px 0 0 -64px; border-radius: 50%; border: 1px solid rgba(210,200,255,.28); }
.me-ring.r2 { width: 158px; height: 158px; margin: -79px 0 0 -79px; border-color: rgba(210,200,255,.12); }
.me-ring::after { content: ''; position: absolute; top: 50%; left: -3px; width: 6px; height: 6px; border-radius: 50%; background: #ffc9e0; box-shadow: 0 0 10px #f4a3c6; }
.me-ring.r2::after { left: auto; right: 12px; top: 10px; background: #8fb2ff; box-shadow: 0 0 10px #3d7bff; }
.me-ring { animation: spin 18s linear infinite; } .me-ring.r2 { animation-duration: 26s; animation-direction: reverse; }
.h-me .hi { left: -18px; top: 44px; z-index: 2; }
.h-me .orbit { display: none; }
@media (min-width: 720px) { .h-me { right: 24px; width: 170px; height: 226px; } .h-me img { width: 170px; height: 226px; } }
@media (max-width: 360px) { .h-me { width: 116px; height: 154px; } .h-me img { width: 116px; height: 154px; } }
.avatar-btn.me { box-shadow: 0 6px 16px -6px rgba(106,92,255,.8); }

/* profile sheet */
.prof-sheet { padding-bottom: calc(22px + var(--safe-b)); }
.prof2 { text-align: center; padding: 4px 0 16px; }
.prof-av { position: relative; width: 92px; height: 92px; margin: 0 auto 10px; border-radius: 50%; padding: 3px; background: var(--grad); box-shadow: 0 14px 30px -12px rgba(106,92,255,.9); }
.prof-av > img { width: 86px; height: 86px; border-radius: 50%; display: block; }
.prof-badge { position: absolute; right: -2px; bottom: 2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #0e1030; border: 2px solid #1c1f48; }
.prof-badge img { width: 18px; height: 15px; object-fit: contain; }
.prof2 h3 { margin: 0; font-size: 20px; letter-spacing: -.3px; }
.prof2 p { margin: 2px 0 10px; color: var(--muted); font-size: 13px; }
.prof-tags { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.prof-tags span { font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.07); border: 1px solid var(--stroke-2); color: #d9dcff; }
.prof-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 4px 0 14px; border-radius: 20px; background: rgba(255,255,255,.05); border: 1px solid var(--stroke-2); }
.prof-stats div { text-align: center; padding: 12px 4px; }
.prof-stats div + div { border-left: 1px solid var(--stroke-2); }
.prof-stats b { display: block; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.prof-stats span { font-size: 11px; color: var(--muted); font-weight: 600; }
.set-group { border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid var(--stroke-2); padding: 0 12px; margin-bottom: 12px; }
.set-row { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 54px; border: 0; background: none; color: var(--text); text-decoration: none; font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.set-row + .set-row { border-top: 1px solid var(--stroke-2); }
.set-row:active { opacity: .6; }
.set-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(106,92,255,.2); color: #c9b8ff; flex-shrink: 0; }
.set-ic svg { width: 18px; height: 18px; }
.set-row em { font-style: normal; font-size: 12.5px; font-weight: 700; color: #c9b8ff; }
.set-row em.on { color: #7ff0c3; }
.set-row em.cnt { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: #ff5a7a; color: #fff; display: grid; place-items: center; font-size: 11px; }
.set-note { font-size: 12px; color: var(--dim); margin: -4px 6px 12px; }
.danger-row .set-ic { background: rgba(255,90,122,.15); color: #ff9cb0; }

/* notifications */
.a-list { display: flex; flex-direction: column; gap: 10px; }
.a-card { position: relative; width: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 14px 14px 14px 12px; border-radius: 22px; border: 1px solid var(--stroke-2); background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); color: var(--text); font: inherit; cursor: pointer; overflow: hidden; transition: transform .15s var(--ease-out), opacity .25s; }
.a-card::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--lv, #6a5cff); }
.a-card:active { transform: scale(.98); }
.lv-urgent { --lv: #ff5a7a; background: linear-gradient(160deg, rgba(255,90,122,.16), rgba(255,255,255,.02)); border-color: rgba(255,90,122,.3); }
.lv-action { --lv: #a67cff; }
.lv-warning { --lv: #f0b76a; }
.lv-info { --lv: #3d7bff; }
.a-card.read { opacity: .55; background: rgba(255,255,255,.025); }
.a-card.read::before { opacity: .3; }
.a-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; flex-shrink: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.a-ic img { width: 36px; height: 36px; object-fit: contain; }
.a-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-right: 10px; }
.a-top { display: flex; align-items: center; gap: 8px; }
.a-lv { font-size: 10.5px; font-weight: 800; letter-spacing: .3px; color: var(--lv); }
.a-time { margin-left: auto; font-size: 11.5px; color: var(--dim); font-weight: 600; white-space: nowrap; }
.a-title { font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.a-text { font-size: 13px; color: var(--muted); line-height: 1.45; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.a-go { align-self: flex-start; margin-top: 6px; font-size: 12px; font-weight: 700; color: #d9ccff; padding: 5px 12px; border-radius: 99px; background: rgba(166,124,255,.16); border: 1px solid rgba(166,124,255,.3); }
.a-dot { position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--lv); box-shadow: 0 0 10px var(--lv); }
.a-card:not(.read) .a-time { color: #c9cdf2; }
.a-empty { text-align: center; padding: 26px 20px; border-radius: 28px; background: radial-gradient(70% 60% at 50% 30%, rgba(106,92,255,.25), transparent 70%); animation: rise .4s var(--ease-out) both; }
.a-empty img { display: block; margin: 0 auto 10px; object-fit: contain; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); animation: meFloat 6s ease-in-out infinite; }
.a-empty b { display: block; font-size: 17px; }
.a-empty span { display: block; font-size: 13px; color: var(--muted); max-width: 260px; margin: 4px auto 0; }
#apush .banner { margin-bottom: 14px; }

@media (prefers-reduced-motion: reduce) {
  .h-me img, .me-glow, .me-ring, .a-empty, .a-empty img { animation: none !important; }
}
.h-me { top: 12px; }
.h-hero-txt { max-width: 56%; }
.set-row { padding: 0; }
.h-stats, .h-ask { position: relative; z-index: 2; }
.h-stat { background: rgba(22,24,58,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.h-stat.hot { background: rgba(70,22,48,.72); }

/* ================= v7: detail polish ================= */
:root {
  --r-pill: 999px; --r-card: 22px; --r-sm: 14px;
  --accent-grad: linear-gradient(135deg, #5d6bff 0%, #7b61ff 50%, #9d7bff 100%);
  --pad-surface: 18px;
}
/* no backdrop blur on form controls: it showed as a lighter box over glows */
.input, textarea.input, select.input, .seg, .btn { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* one checkbox for every task-like item */
.tick { display: inline-grid; flex-shrink: 0; }
.tick input, .check .tick input {
  -webkit-appearance: none; appearance: none; margin: 0; width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
  border: 0; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1.75px rgba(255,255,255,.3);
  transition: background-color .2s var(--ease-out), box-shadow .2s var(--ease-out), transform .2s var(--ease-pop);
}
.tick input::after, .check .tick input::after { content: none !important; }
.tick input:checked, .check .tick input:checked {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px 14px no-repeat, var(--accent-grad);
  box-shadow: 0 4px 12px -3px rgba(110,90,255,.8);
}
.tick input:focus-visible { outline: 2px solid #a67cff; outline-offset: 2px; }
.tick::before { content: ''; position: absolute; }
.check { gap: 14px; }
.check .tick { padding-top: 1px; }
.task-row .tick { padding-top: 0; }
.task-row.done .task, .check.done .task { color: var(--dim); text-decoration-color: rgba(255,255,255,.35); }

/* progress bar uses the same accent */
.prog { height: 5px; margin: 0 0 12px; }
.prog i { background: var(--accent-grad); }

/* tabs and chips: cleaner accent (no muddy peach end) */
.tabs::before { background: var(--accent-grad); }
.fchip.on { background: rgba(123,97,255,.28); border-color: rgba(157,123,255,.6); }

/* quick add: fully pill, nothing inside draws its own box */
.qa2 .qa-row { padding: 4px 4px 4px 6px; border-radius: var(--r-pill); }
.qa2 .input { border-radius: var(--r-pill); padding: 11px 14px; min-height: 44px; }
.qa2 .send { width: 44px; height: 44px; }
.qa-opts .input { border-radius: var(--r-sm); }

/* meeting title: text never touches an edge */
.m-hero .title-input, .title-input {
  display: block; width: calc(100% + 24px); margin: 12px -12px 0 !important; padding: 8px 12px !important;
  border-radius: var(--r-sm); border: 1px solid transparent !important; background: transparent !important; box-shadow: none !important;
  transition: background-color .2s, border-color .2s;
}
.m-hero .title-input:focus, .title-input:focus { background: rgba(255,255,255,.06) !important; border-color: rgba(166,124,255,.5) !important; padding-left: 12px !important; }
@media (hover: hover) and (pointer: fine) { .m-hero .title-input:hover:not(:focus) { background: rgba(255,255,255,.03) !important; } }
.m-hero { padding: 20px; }
.m-hero .fchips { margin-top: 12px; }

/* comfortable inner spacing for every surface */
.surface { padding: var(--pad-surface); }
.list2 { padding: 4px var(--pad-surface); }
.acc { padding: 0 var(--pad-surface); }
.draft { padding: 14px 16px; border-radius: var(--r-sm); line-height: 1.6; }
.lead-p { line-height: 1.65; }

/* pills and chips: consistent height and alignment */
.task-meta { gap: 6px; }
.pill, .due { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 8px; line-height: 1; }
.badge { min-height: 24px; }

/* consistent focus ring */
.input:focus-visible, .fchip:focus-visible, .tabs button:focus-visible, .row2:focus-visible, .a-card:focus-visible, .set-row:focus-visible, .q:focus-visible { outline: 2px solid #a67cff; outline-offset: 2px; }

/* desktop: keep content comfortable, not stretched */
@media (min-width: 900px) {
  .app { max-width: 720px; }
  .ph h1 { font-size: 36px; }
}

/* ================= v8: one page width everywhere (fit to screen) ================= */
:root { --page-max: 720px; --gutter: 16px; }
.app { max-width: calc(var(--page-max) + var(--gutter) * 2) !important; padding-left: var(--gutter); padding-right: var(--gutter); }
.nav { padding: 0 var(--gutter) calc(12px + var(--safe-b)); }
.nav-in { max-width: var(--page-max) !important; }
.composer { width: calc(100% - var(--gutter) * 2); max-width: var(--page-max); }
.toast { max-width: min(calc(100% - var(--gutter) * 2), var(--page-max)); }
.sheet { max-width: calc(var(--page-max) + var(--gutter) * 2); }
.slider, .fchips { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding: 0 var(--gutter); }
@media (min-width: 768px) {
  /* inside the centered column, sliders stay within the column edges */
  .slider, .fchips { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; scroll-padding: 0; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
  .app { padding-top: 24px; }
}

/* ================= v9: bottom nav (capsule + separate Rekam) ================= */
.nav-bar { pointer-events: auto; max-width: var(--page-max); margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.nav-pill { flex: 1; min-width: 0; height: 64px; padding: 6px; border-radius: 999px; display: flex; align-items: center; justify-content: space-between; gap: 2px;
  background: linear-gradient(160deg, rgba(40,44,82,.82), rgba(16,18,40,.86)); border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 18px 40px -14px rgba(0,0,0,.85);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); }
.nav .nt { --nt-on-bg: #eceaff; position: relative; flex: 0 0 auto; height: 52px; min-width: 52px; padding: 0 14px; border-radius: 999px; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 0;
  color: #9aa0c8; text-decoration: none; font-size: 14px; font-weight: 700; letter-spacing: 0; background: transparent; box-shadow: none;
  transition: background-color .35s var(--ease-out), color .25s, padding .35s var(--ease-out), flex-grow .35s var(--ease-out); }
.nav .nt::after, .nav a.nav-rec::after { content: none !important; }
.nav .nt .nt-ic { display: grid; place-items: center; width: 24px; height: 24px; }
.nav .nt svg { width: 24px; height: 24px; filter: none !important; transform: none; transition: transform .3s var(--ease-pop); }
.nav .nt .nt-lb { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .35s var(--ease-out), opacity .2s, margin .35s var(--ease-out); }
.nav .nt.on { color: #14123a; background: var(--nt-on-bg); padding: 0 18px 0 14px; box-shadow: 0 6px 18px -8px rgba(160,150,255,.7), inset 0 -2px 0 rgba(20,18,58,.06); }
.nav .nt.on .nt-lb { max-width: 90px; opacity: 1; margin-left: 8px; }
.nav .nt.on svg { animation: ntPop .35s var(--ease-pop); }
@keyframes ntPop { 0% { transform: scale(.7); } 100% { transform: scale(1); } }
.nav .nt:not(.on):active svg { transform: scale(.86); }
@media (hover: hover) and (pointer: fine) { .nav .nt:not(.on):hover { color: #fff; background: rgba(255,255,255,.06); } }
.nav .nt:focus-visible, .nav .nav-rec:focus-visible { outline: 2px solid #a67cff; outline-offset: 2px; }

.nav a.nav-rec { flex: none; width: 64px; height: 64px; padding: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none;
  background: radial-gradient(circle at 30% 24%, rgba(255,255,255,.45), transparent 36%), linear-gradient(140deg, #4f5bff, #6a4dff 55%, #8f6bff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -6px 14px rgba(40,20,140,.35), 0 14px 30px -10px rgba(90,80,255,.95);
  transition: transform .2s var(--ease-pop), box-shadow .3s; }
.nav a.nav-rec svg { width: 26px; height: 26px; color: #fff; filter: none; }
.nav a.nav-rec:active { transform: scale(.9); }
.nav a.nav-rec.on { background: radial-gradient(circle at 30% 24%, rgba(255,255,255,.45), transparent 36%), linear-gradient(140deg, #4f5bff, #6a4dff 55%, #8f6bff); box-shadow: 0 0 0 3px rgba(3,4,11,.9), 0 0 0 5px rgba(166,124,255,.8), 0 14px 30px -10px rgba(90,80,255,.95); }
.nav a.nav-rec.live { background: radial-gradient(circle at 30% 24%, rgba(255,255,255,.4), transparent 36%), linear-gradient(140deg, #ff5a8a, #d6428a); animation: recLive 1.6s ease-in-out infinite; }
.nr-sq { width: 20px; height: 20px; border-radius: 6px; background: #fff; }
@keyframes recLive { 50% { box-shadow: 0 0 0 8px rgba(255,90,138,.15), 0 14px 30px -10px rgba(255,90,138,.9); } }
@media (max-width: 360px) { .nav .nt { padding: 0 11px; min-width: 46px; } .nav .nt.on { padding: 0 14px 0 11px; } .nav a.nav-rec { width: 58px; height: 58px; } .nav-pill { height: 58px; } }
@media (min-width: 560px) { .nav-pill { padding: 6px 10px; } }
@media (prefers-reduced-motion: reduce) { .nav .nt, .nav .nt .nt-lb, .nav .nt svg { transition: none; animation: none; } .nav a.nav-rec.live { animation: none; } }

/* ================= v10: nav fit + contrast fix ================= */
.nav-pill { overflow: hidden; gap: 0; padding: 5px; }
.nav a.nt { flex: 1 1 0; min-width: 40px; padding: 0; }
.nav a.nt.on { flex: 0 0 auto; padding: 0 16px 0 12px; }
.nav a.nt .nt-lb { font-size: 13.5px; }
.nav a.nt.on .nt-lb { max-width: 76px; margin-left: 7px; }
/* old ".nav a.on svg { color:#fff }" made the filled icon white on the light chip */
.nav a.nt svg, .nav a.nt.on svg { color: inherit; }
.nav a.nt { color: #b7bce3; }
.nav a.nt.on { color: #17144a; }
@media (max-width: 340px) {
  .nav a.nt.on .nt-lb { display: none; }
  .nav a.nt.on { padding: 0 14px; }
}
/* v11: stable page height, no scroll clamp jump */
html { scroll-behavior: auto; overscroll-behavior-y: auto; }
html.standalone, html.standalone body { overscroll-behavior-y: none; }
.app { min-height: 100vh; min-height: 100dvh; }
/* v12: page transitions must never widen the page (Meeting's full-bleed chips slid 18px past the edge,
   Chrome Android then grew the layout viewport and the bottom menu dropped for a moment) */
html, body { overflow-x: clip; }
.app { overflow-x: clip; }
@keyframes pgL { from { opacity: 0; transform: translateX(10px); } }
@keyframes pgR { from { opacity: 0; transform: translateX(-10px); } }

/* ================= v13: quick add options, composer ================= */
.qa-opts { display: grid; grid-template-rows: 0fr; max-height: none; overflow: visible; margin: 0; gap: 0; grid-template-columns: 1fr; transition: grid-template-rows .3s var(--ease-out), margin .3s var(--ease-out); }
.qa-opts.open { grid-template-rows: 1fr; max-height: none; margin-top: 12px; }
.qa-inner { overflow: hidden; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.qa-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.qa-line .fl { flex: 0 0 64px; font-size: 12px; font-weight: 700; color: var(--muted); }
.qa-line .fchips { flex: 1; min-width: 0; margin: 0; padding: 2px 0; }
.qa-line .fchip { min-height: 36px; padding: 0 14px; font-size: 13px; }
.date-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.date-chip svg { width: 15px; height: 15px; }
.date-chip input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; margin: 0; color-scheme: dark; }
.date-chip input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; cursor: pointer; opacity: 0; }
.qa2 .send:disabled { opacity: .5; }

/* chat composer: one tidy line like the home ask bar */
.composer { bottom: calc(76px + 12px + var(--safe-b)); min-height: 54px; padding: 6px 6px 6px 18px; align-items: center; border-radius: 999px; }
.composer textarea { padding: 8px 0; font-size: 15px; line-height: 1.4; max-height: 110px; min-height: 22px; }
.composer textarea::placeholder { color: #8e93bd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer .send { width: 42px; height: 42px; }
.thread { padding-bottom: calc(76px + 12px + 54px + 28px + var(--safe-b)); }
/* v13b: sheets and form labels in the same calm style */
.field > span { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 700; color: #b7bce3; }
.sheet-title { margin: 0 0 14px; font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.sheet .fchips { margin: 0; padding: 2px 0; }
.sheet textarea#et { min-height: 48px; resize: none; overflow: hidden; line-height: 1.45; }
.sheet .input { border-radius: 16px; }
.sheet-actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.sheet-actions .btn { min-height: 46px; }
input[type=date].input { min-height: 48px; }
/* v13c: toast at the top (never covers the composer, list or menu), tidy headers */
.toast { top: calc(var(--safe-t) + 14px); bottom: auto; transform: translateX(-50%) translateY(-16px); width: max-content; min-width: 180px; max-width: min(calc(100% - var(--gutter) * 2), 420px); text-align: center; border-radius: 999px; padding: 12px 20px; line-height: 1.35; z-index: 80;
  background: linear-gradient(145deg, rgba(48,52,98,.96), rgba(24,26,56,.96)); }
.toast.show { transform: translateX(-50%) translateY(0); }
.qa2 .input:focus, .qa2 .input:focus-visible { outline: none; box-shadow: none; border: 0; }
.ph h1 { font-size: clamp(26px, 8.2vw, 32px); }
@media (max-width: 380px) { .ph-act { gap: 4px; } .ph-act .icon-btn { width: 40px; height: 40px; } .ph-act .icon-btn svg { width: 18px; height: 18px; } }
.acc > summary em { white-space: nowrap; }
@media (max-width: 400px) { .form-surface .acc > summary em { display: none; } }
/* v14: quick-add detail card (tiles) */
.qa2 { position: relative; }
.qa2:has(.qa-opts.open) .qa-row { border-color: rgba(166,124,255,.6); box-shadow: 0 0 0 4px rgba(124,97,255,.12); }
.qa-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 16px; border-radius: 24px; background: linear-gradient(160deg, rgba(123,97,255,.12), rgba(255,255,255,.035) 40%, rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.09); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 40px -24px rgba(0,0,0,.8); }
.qa-grp { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.qa-gh { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px; }
.qa-gh span { font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.qa-gh em { font-style: normal; font-size: 12px; color: var(--dim); padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.05); transition: color .15s, background .15s; }
.qa-gh em.on { color: #d9d0ff; background: rgba(124,97,255,.22); }
.qa-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.qa-tile { --tc: #9d7bff; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; min-height: 44px; padding: 10px; border-radius: 16px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.035); color: var(--text); font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; transition: transform .12s var(--ease-out, ease-out), background .15s, border-color .15s, box-shadow .15s; }
.qa-tile:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .qa-tile:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); } }
.qa-tile:focus-visible, .qa-tile:has(input:focus-visible) { outline: 2px solid var(--tc); outline-offset: 2px; }
.qa-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px; color: var(--tc); background: color-mix(in srgb, var(--tc) 16%, transparent); flex-shrink: 0; transition: background .15s, color .15s; }
.qa-ic svg { width: 17px; height: 17px; }
.qa-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; width: 100%; }
.qa-tx b { font-size: 13.5px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qa-tx small { font-size: 11.5px; color: var(--dim); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qa-ok { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--tc); color: #0b0a1f; opacity: 0; transform: scale(.4); transition: opacity .15s, transform .25s cubic-bezier(.34,1.56,.64,1); }
.qa-ok svg { width: 11px; height: 11px; }
.qa-tile.on { background: color-mix(in srgb, var(--tc) 14%, rgba(255,255,255,.02)); border-color: color-mix(in srgb, var(--tc) 60%, transparent); box-shadow: 0 8px 22px -14px var(--tc), inset 0 1px 0 rgba(255,255,255,.08); }
.qa-tile.on .qa-ic { background: var(--tc); color: #0b0a1f; }
.qa-tile.on .qa-tx small { color: color-mix(in srgb, var(--tc) 55%, #fff); }
.qa-tile.on .qa-ok { opacity: 1; transform: scale(1); }
.qa-tile.date-chip { display: flex; }
.qa-tile.date-chip svg { width: 17px; height: 17px; }
.qa-tile.date-chip .qa-ok svg { width: 11px; height: 11px; }
.qa-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.06); }
.qa-foot .btn { min-height: 40px; padding: 0 16px; border-radius: 99px; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: rgba(255,255,255,.05); }
.qa-go svg { width: 16px; height: 16px; }
.qa-go:disabled { opacity: .55; }
@media (min-width: 560px) {
  .qa-card { padding: 20px; gap: 18px; }
  .qa-tile { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; min-height: 60px; }
  .qa-ic { width: 36px; height: 36px; border-radius: 12px; }
  .qa-ok { top: 50%; right: 12px; margin-top: -9px; }
  .qa-tile .qa-tx { padding-right: 20px; }
  .qa-tx b { font-size: 14px; }
}
@media (max-width: 340px) { .qa-tile { padding: 8px; } .qa-tx small { display: none; } }
@media (prefers-reduced-motion: reduce) { .qa-tile, .qa-ok { transition: none; } }

/* v14: install banner + sheet */
.inst-ic { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 13px; overflow: hidden; background: linear-gradient(145deg, rgba(123,97,255,.35), rgba(61,123,255,.15)); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.inst-ic img { width: 100%; height: 100%; object-fit: cover; }
.inst-ic.big { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 12px 30px -12px rgba(123,97,255,.8), inset 0 1px 0 rgba(255,255,255,.2); }
.inst-ban { background: linear-gradient(120deg, rgba(123,97,255,.16), rgba(255,255,255,.04) 60%); border-color: rgba(157,123,255,.28); }
.inst-sheet { padding-bottom: calc(20px + var(--safe-b)); }
.inst-head { display: flex; align-items: center; gap: 14px; padding: 10px 4px 18px; }
.inst-head h3 { margin: 0 0 4px; font-size: 20px; }
.inst-head p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.inst-steps { list-style: none; margin: 0 0 16px; padding: 6px 14px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
.inst-steps li { display: flex; gap: 12px; padding: 12px 0; animation: pgU .3s var(--ease-out) both; animation-delay: calc(var(--i) * 50ms); }
.inst-steps li + li { border-top: 1px solid rgba(255,255,255,.06); }
.inst-n { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-grad); color: #fff; font-size: 13px; font-weight: 800; }
.inst-steps .st { display: block; font-size: 14px; font-weight: 500; line-height: 1.35; }
.inst-steps .st b { font-weight: 800; }
.inst-steps small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.inst-sheet .sheet-actions .btn { flex: 1; }
/* v14: pull to refresh (installed app only) */
.ptr { position: fixed; z-index: 70; left: 50%; top: calc(var(--safe-t) - 40px); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #cfc6ff; background: rgba(28,30,62,.95); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 10px 24px -10px rgba(0,0,0,.8); opacity: 0; transform: translate(-50%, 0); pointer-events: none; }
.ptr svg { width: 18px; height: 18px; }
.ptr.ready { color: #fff; background: #5d4fe0; }
.ptr.back { transition: transform .25s var(--ease-out), opacity .2s; }
.ptr.spin { transition: transform .2s var(--ease-out); opacity: 1; }
.ptr.spin svg { animation: ptrspin .7s linear infinite; }
@keyframes ptrspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ptr.spin svg { animation: none; } .inst-steps li { animation: none; } }
/* v15: email */
.m-list { padding: 0 14px; }
.m-row { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 14px 0; border: 0; border-top: 1px solid var(--stroke-2); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; transition: opacity .15s, transform .12s; }
.m-list .m-row:first-child { border-top: 0; }
.m-row:active { transform: scale(.985); }
.m-row.is-done { opacity: .6; }
.m-av { --h: 250; flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; font-size: 14px; font-weight: 800; letter-spacing: .02em; color: hsl(var(--h) 90% 86%); background: linear-gradient(145deg, hsl(var(--h) 70% 50% / .38), hsl(var(--h) 70% 40% / .14)); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.m-av.big { width: 48px; height: 48px; border-radius: 16px; font-size: 16px; }
.m-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.m-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.m-top b { font-size: 13px; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-top time { margin-left: auto; flex-shrink: 0; font-size: 12px; color: var(--dim); }
.m-ext { flex-shrink: 0; font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; color: #ffd49a; background: rgba(240,183,106,.14); }
.m-sub { font-size: 14.5px; font-weight: 650; line-height: 1.35; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-dot { display: inline-block; width: 7px; height: 7px; margin: 0 6px 1px 0; border-radius: 50%; background: var(--accent-grad); vertical-align: middle; }
.m-row.unread .m-top b { color: var(--text); }
.m-sum { font-size: 12.5px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-act { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; max-width: 100%; margin-top: 4px; padding: 4px 10px 4px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; color: #d9d0ff; background: rgba(124,97,255,.18); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-act svg { width: 13px; height: 13px; flex-shrink: 0; }
.m-empty-ic { display: grid; place-items: center; width: 56px; height: 56px; flex-shrink: 0; border-radius: 18px; color: #b9ccff; background: linear-gradient(145deg, rgba(61,123,255,.3), rgba(166,124,255,.1)); }
.m-empty-ic svg { width: 26px; height: 26px; }
.mail-sheet { padding-bottom: calc(16px + var(--safe-b)); }
.ms-head { display: flex; align-items: center; gap: 12px; padding: 10px 2px 14px; }
.ms-head b { display: block; font-size: 15px; }
.ms-head small { display: block; font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-head .grow { min-width: 0; }
.mlv { flex-shrink: 0; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.mlv-hi { color: #ffb0c0; background: rgba(255,90,122,.16); }
.mlv-info { color: #b9ccff; background: rgba(61,123,255,.16); }
.mlv-low { color: var(--dim); background: rgba(255,255,255,.06); }
.ms-subj { margin: 0 2px 4px; font-size: 19px; line-height: 1.35; }
.ms-when { margin: 0 2px 14px; font-size: 12.5px; color: var(--dim); }
.ms-ai { padding: 14px 16px; border-radius: 20px; margin-bottom: 12px; background: linear-gradient(150deg, rgba(123,97,255,.18), rgba(61,123,255,.06)); border: 1px solid rgba(157,123,255,.22); }
.ms-ai-h { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #cfc6ff; }
.ms-ai-h svg { width: 14px; height: 14px; }
.ms-ai p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; }
.ms-ai .ms-do b { color: #d9d0ff; }
.ms-ai small { display: block; margin-top: 8px; font-size: 11.5px; color: var(--dim); }
.ms-prev { padding: 12px 16px; border-radius: 18px; margin-bottom: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--stroke-2); }
.ms-prev span { font-size: 12px; font-weight: 700; color: var(--muted); }
.ms-prev p { margin: 6px 0 0; font-size: 13px; line-height: 1.55; color: #c9cbe6; overflow-wrap: anywhere; }
.ms-att { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ms-att span { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 10px; border-radius: 12px; font-size: 12px; background: rgba(255,255,255,.05); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-att svg { width: 14px; height: 14px; flex-shrink: 0; }
.ms-actions .btn { flex: 1; }
.ms-open { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.ms-open svg { width: 15px; height: 15px; }
