/* Vishuals HQ — VishualsVault's black glass, electric blue light. Client accents: Artisan brown, Junk Yard rust, Prep Room purple. */
:root {
  color-scheme: dark;
  --bg: #000;
  --text: #f3f5fa;
  --text-2: rgba(235, 238, 250, 0.62);
  --text-3: rgba(235, 238, 250, 0.36);
  --glass: rgba(26, 27, 32, 0.52);
  --line: rgba(255, 255, 255, 0.085);
  --line-2: rgba(255, 255, 255, 0.14);
  --blue: #3b8bff;
  --blue-2: #1d6cf0;
  --blue-hi: #8cc0ff;
  --blue-glow: rgba(59, 139, 255, 0.36);
  --ice: #b9d6ff;
  --green: #34d399;
  --red: #ff6b5e;
  --red-soft: rgba(255, 107, 94, 0.14);
  --amber: #ffcf70;
  --r-xl: 28px; --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
  --blur: blur(26px) saturate(170%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body { color: var(--text); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; font-variant-numeric: tabular-nums; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue-hi); text-decoration: none; }
:where(svg) { width: 18px; height: 18px; }

/* ambient light */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient .orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; will-change: transform; }
.ambient .o1 { width: 52vmax; height: 52vmax; left: -18vmax; top: -22vmax; background: radial-gradient(circle, rgba(29,108,240,0.6), rgba(10,40,120,0.15) 55%, transparent 70%); animation: drift1 28s var(--ease) infinite alternate; }
.ambient .o2 { width: 46vmax; height: 46vmax; right: -16vmax; bottom: -20vmax; background: radial-gradient(circle, rgba(110,91,255,0.32), rgba(59,139,255,0.08) 55%, transparent 70%); animation: drift2 34s var(--ease) infinite alternate; }
.ambient .o3 { width: 30vmax; height: 30vmax; right: 10vmax; top: 18vh; background: radial-gradient(circle, rgba(140,192,255,0.14), transparent 70%); animation: drift3 40s var(--ease) infinite alternate; }
.ambient::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 120%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 70%); }
@keyframes drift1 { to { transform: translate(12vmax, 8vmax) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-10vmax, -6vmax) scale(1.12); } }
@keyframes drift3 { to { transform: translate(-14vmax, 10vmax) scale(0.9); } }
#app { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; }

.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015)), var(--glass);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 20px 50px -20px rgba(0,0,0,0.8);
}

/* auth */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: calc(28px + var(--sat)) 16px calc(28px + var(--sab)); }
.auth-inner { width: 100%; max-width: 400px; text-align: center; animation: rise 0.9s var(--ease) both; }
.emblem { position: relative; width: 132px; height: 132px; margin: 0 auto 26px; }
.emblem::before { content: ""; position: absolute; inset: -34px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(59,139,255,0), rgba(59,139,255,0.6), rgba(140,110,255,0.45), rgba(59,139,255,0) 70%); filter: blur(28px); animation: spin 9s linear infinite; }
.emblem img { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 32px; box-shadow: 0 0 0 1px rgba(140,192,255,0.22), 0 20px 50px -10px rgba(29,108,240,0.55); }
@keyframes spin { to { transform: rotate(360deg); } }
.brand-title { font-size: 40px; line-height: 1.05; font-weight: 750; letter-spacing: -0.035em; margin: 0; background: linear-gradient(100deg, var(--ice) 0%, #fff 45%, var(--blue) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: sheen 8s ease-in-out infinite alternate; }
@keyframes sheen { to { background-position: 100% 0; } }
.brand-sub { color: var(--text-2); margin: 8px 0 28px; font-size: 15px; }
.auth-card { padding: 22px; text-align: left; border-radius: var(--r-xl); }
.auth-card h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.01em; }
.auth-card p.hint { margin: 0 0 18px; color: var(--text-2); font-size: 14px; }
.auth-foot { margin-top: 18px; color: var(--text-3); font-size: 12px; display: flex; gap: 6px; justify-content: center; align-items: center; }
.auth-foot svg, .lock-reason svg { width: 15px; height: 15px; }
.lock-reason { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--ice); background: rgba(59,139,255,0.1); border: 1px solid rgba(59,139,255,0.25); }

/* forms */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; color: var(--text-2); margin: 0 0 6px 4px; }
.input { width: 100%; font-size: 16px; padding: 13px 14px; border-radius: var(--r-sm); background: rgba(118,118,128,0.16); border: 1px solid transparent; outline: none; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; -webkit-appearance: none; appearance: none; }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
select.input option { background: #1c1c1e; }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.45; }
.input:focus { border-color: rgba(59,139,255,0.65); background: rgba(118,118,128,0.22); box-shadow: 0 0 0 4px rgba(59,139,255,0.14); }
.input::placeholder { color: var(--text-3); }
input[type="date"].input, input[type="time"].input { min-height: 50px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }
.row > .shrink { flex: 0 0 auto; }
.form-error { color: var(--red); font-size: 14px; min-height: 20px; margin: 2px 0 10px 4px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; border-radius: 14px; padding: 13px 18px; font-weight: 600; font-size: 16px; background: rgba(118,118,128,0.2); color: var(--text); transition: transform 0.15s var(--ease), background 0.2s, box-shadow 0.25s, opacity 0.2s; text-decoration: none; white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn.block { width: 100%; }
.btn.primary { background: linear-gradient(180deg, #5aa0ff, #1d6cf0); color: #fff; box-shadow: 0 8px 28px -8px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,0.35); }
.btn.client { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 78%, #fff 22%), var(--c)); color: #fff; box-shadow: 0 8px 26px -10px var(--c), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn.ghost { background: transparent; color: var(--blue-hi); padding: 10px 12px; }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.sm { padding: 8px 12px; font-size: 14px; border-radius: 11px; }
.btn.icon { padding: 0; width: 40px; height: 40px; border-radius: 50%; background: rgba(118,118,128,0.18); flex: 0 0 auto; }
.btn.icon svg { width: 20px; height: 20px; }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.link-btn { background: none; border: 0; color: var(--text-2); cursor: pointer; font-size: 14px; padding: 10px; }

/* shell */
.shell { display: flex; min-height: 100vh; min-height: 100dvh; }
.sidebar { display: none; }
.main { flex: 1; min-width: 0; padding: calc(10px + var(--sat)) calc(16px + var(--sar)) calc(112px + var(--sab)) calc(16px + var(--sal)); max-width: 980px; margin: 0 auto; width: 100%; }
.page.anim { animation: rise 0.55s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 6px; }
.topbar .actions { display: flex; gap: 8px; }
.eyebrow { color: var(--text-2); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.large-title { font-size: 34px; font-weight: 760; letter-spacing: -0.03em; line-height: 1.1; margin: 2px 0 14px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 4px 10px; gap: 10px; }
.section-title h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.section-title .more { color: var(--blue-hi); font-size: 15px; cursor: pointer; background: none; border: 0; padding: 0; }
.section-title .count { color: var(--text-3); font-size: 14px; font-weight: 600; }

.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + var(--sab)); z-index: 20; display: flex; align-items: center; gap: 2px; padding: 7px; border-radius: 30px; width: min(440px, calc(100% - 24px)); justify-content: space-between; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 5px; border-radius: 22px; color: var(--text-3); font-size: 10.5px; font-weight: 600; cursor: pointer; border: 0; background: none; transition: color 0.2s, background 0.25s; position: relative; }
.tab svg { width: 23px; height: 23px; }
.tab.on { color: var(--text); background: rgba(255,255,255,0.08); }
.tab.on svg { color: var(--blue); filter: drop-shadow(0 0 8px rgba(59,139,255,0.7)); }
.tab .dot { position: absolute; top: 4px; right: calc(50% - 18px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; line-height: 17px; font-weight: 700; }
.tab.add { flex: 0 0 56px; height: 50px; border-radius: 22px; background: linear-gradient(180deg, #5aa0ff, #1d6cf0); color: #fff; box-shadow: 0 6px 22px -6px var(--blue-glow); }
.tab.add svg { width: 26px; height: 26px; }
@media (min-width: 900px) {
  .tabbar { display: none; }
  .sidebar { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; width: 240px; flex: 0 0 240px; padding: 22px 14px; margin: 0; border-radius: 0; border-width: 0 1px 0 0; }
  .sidebar .logo { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; font-weight: 750; font-size: 18px; letter-spacing: -0.02em; }
  .sidebar .logo img { width: 34px; height: 34px; border-radius: 10px; }
  .nav { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 13px; color: var(--text-2); cursor: pointer; border: 0; background: none; font-size: 15px; font-weight: 550; text-align: left; width: 100%; transition: background 0.2s, color 0.2s; }
  .nav svg { width: 20px; height: 20px; }
  .nav:hover { background: rgba(255,255,255,0.05); color: var(--text); }
  .nav.on { background: linear-gradient(90deg, rgba(59,139,255,0.18), rgba(59,139,255,0.03)); color: var(--text); box-shadow: inset 0 0 0 1px rgba(59,139,255,0.22); }
  .nav.on svg { color: var(--blue); }
  .nav .badge { margin-left: auto; font-size: 12px; background: rgba(255,107,94,0.16); color: var(--red); padding: 2px 8px; border-radius: 999px; }
  .sidebar .spacer { flex: 1; }
  .main { padding: 26px 34px 60px; }
  .only-mobile { display: none !important; }
}
@media (max-width: 899px) { .only-desktop { display: none !important; } }

/* today hero */
.hero { position: relative; overflow: hidden; padding: 20px; border-radius: var(--r-xl); display: flex; gap: 18px; align-items: center; }
.hero::before { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -170px; border-radius: 50%; background: radial-gradient(circle, rgba(59,139,255,0.45), transparent 65%); filter: blur(10px); animation: pulse 6s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(1.15); opacity: 0.75; } }
.hero > * { position: relative; z-index: 1; }
.big-ring { width: 96px; height: 96px; flex: 0 0 auto; position: relative; }
.big-ring svg { width: 96px; height: 96px; transform: rotate(-90deg); }
.big-ring .lbl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-weight: 760; font-size: 24px; letter-spacing: -0.03em; line-height: 1; }
.big-ring .lbl small { display: block; font-size: 11px; font-weight: 600; color: var(--text-3); letter-spacing: 0; margin-top: 3px; }
.hero .info { min-width: 0; flex: 1; }
.hero .k { color: var(--text-2); font-size: 13px; font-weight: 600; }
.hero .next { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin: 3px 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero .when { color: var(--text-2); font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.all-done { color: var(--green); }

/* client colour helpers */
.cdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); flex: 0 0 auto; }
.cpill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 650; color: var(--ct, var(--text)); background: color-mix(in srgb, var(--c) 22%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; background: rgba(255,255,255,0.07); color: var(--text-2); white-space: nowrap; }
.pill svg { width: 13px; height: 13px; }
.pill.blue { background: rgba(59,139,255,0.16); color: var(--blue-hi); }
.pill.green { background: rgba(52,211,153,0.14); color: var(--green); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.amber { background: rgba(255,207,112,0.12); color: var(--amber); }

/* checklist */
.list { border-radius: var(--r-lg); overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 13px 14px 13px 12px; border-bottom: 1px solid var(--line); position: relative; }
.item:last-child { border-bottom: 0; }
.item::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c, transparent); box-shadow: 0 0 12px var(--c, transparent); }
.item .body { flex: 1; min-width: 0; cursor: pointer; }
.item .t { font-weight: 640; font-size: 15.5px; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .st { color: var(--text-3); font-size: 13px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.item .st .ct { color: var(--ct, var(--text-2)); font-weight: 600; }
.item.done .t { color: var(--text-3); text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.25); }
.item.overdue .st .when { color: var(--red); font-weight: 600; }
.item .side { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.check { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--c, var(--blue)) 70%, #fff 10%); background: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; transition: transform 0.2s var(--ease), background 0.25s, box-shadow 0.25s; color: transparent; }
.check svg { width: 17px; height: 17px; stroke-width: 2.6; }
.check:active { transform: scale(0.88); }
.check.on { background: var(--c, var(--blue)); border-color: var(--c, var(--blue)); color: #fff; box-shadow: 0 0 16px -2px var(--c, var(--blue)); animation: pop-check 0.35s var(--ease); }
@keyframes pop-check { 40% { transform: scale(1.18); } }
.mini-check { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.04); border-radius: 999px; padding: 4px 9px 4px 7px; font-size: 12px; font-weight: 650; color: var(--text-3); cursor: pointer; }
.mini-check svg { width: 13px; height: 13px; stroke-width: 2.6; }
.mini-check.on { color: var(--green); border-color: rgba(52,211,153,0.35); background: rgba(52,211,153,0.1); }
.thumb { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; flex: 0 0 auto; background: rgba(255,255,255,0.06); }
.empty-row { padding: 18px; color: var(--text-3); font-size: 14px; text-align: center; }
.add-row { display: flex; align-items: center; gap: 10px; padding: 13px 14px; color: var(--blue-hi); font-weight: 600; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; }

.banner { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: var(--r-md); margin: 12px 0 0; font-size: 14px; cursor: default; }
.banner svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; }
.banner.warn { background: rgba(255,207,112,0.1); border: 1px solid rgba(255,207,112,0.25); color: var(--amber); }
.banner.danger { background: var(--red-soft); border: 1px solid rgba(255,107,94,0.3); color: var(--red); }
.banner.info { background: rgba(59,139,255,0.09); border: 1px solid rgba(59,139,255,0.24); color: var(--text); }
.banner.tap { cursor: pointer; }
.banner .grow { flex: 1; }

/* chips */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid var(--line); background: rgba(255,255,255,0.04); color: var(--text-2); transition: all 0.2s var(--ease); display: inline-flex; gap: 7px; align-items: center; }
.chip.on { color: #fff; background: linear-gradient(180deg, #5aa0ff, #1d6cf0); border-color: transparent; box-shadow: 0 6px 18px -6px var(--blue-glow); }
.chip.on.cc { background: var(--c); box-shadow: 0 6px 18px -8px var(--c); }
.daypick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.daypick button { border: 1px solid var(--line); background: rgba(255,255,255,0.04); color: var(--text-2); border-radius: 12px; padding: 10px 0; font-weight: 650; font-size: 13px; cursor: pointer; }
.daypick button.on { background: var(--c, var(--blue)); color: #fff; border-color: transparent; }

/* plan */
.day-head { margin: 22px 4px 8px; display: flex; justify-content: space-between; align-items: baseline; }
.day-head b { font-size: 17px; letter-spacing: -0.01em; }
.day-head small { color: var(--text-3); font-size: 13px; font-weight: 600; }
.day-head.today b { color: var(--blue-hi); }

/* clients */
.tiles { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 20px; min-height: 178px; cursor: pointer; display: flex; flex-direction: column; transition: transform 0.25s var(--ease); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 42%, #000) 0%, color-mix(in srgb, var(--c) 14%, #0a0a0c) 60%, #070708 100%); box-shadow: 0 24px 60px -28px var(--c), 0 1px 0 rgba(255,255,255,0.08) inset; }
.tile:active { transform: scale(0.985); }
.tile::before { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -120px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 70%, #fff 10%), transparent 66%); opacity: 0.55; filter: blur(6px); }
.tile > * { position: relative; }
.tile .mono { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; color: #fff; background: color-mix(in srgb, var(--c) 80%, #fff 8%); box-shadow: 0 8px 24px -8px var(--c); }
.tile h3 { margin: 14px 0 2px; font-size: 22px; letter-spacing: -0.025em; }
.tile .handle { color: rgba(255,255,255,0.62); font-size: 14px; }
.tile .foot { margin-top: auto; padding-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tile .foot .pill { background: rgba(0,0,0,0.3); color: rgba(255,255,255,0.8); }
.tile .chev { position: absolute; right: 18px; top: 22px; color: rgba(255,255,255,0.5); }
.client-hero { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 20px; margin-bottom: 4px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 38%, #000), #08080a 75%); }
.client-hero .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 16px; }
.client-hero .stats div { background: rgba(0,0,0,0.28); border-radius: 14px; padding: 10px 12px; }
.client-hero .stats b { font-size: 20px; display: block; letter-spacing: -0.02em; }
.client-hero .stats small { color: rgba(255,255,255,0.55); font-size: 12px; }
.client-hero .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.client-hero .actions .btn { flex: 1; }

/* settings groups */
.settings { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.settings > .group { min-width: 0; }
@media (min-width: 1000px) { .settings { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.group { padding: 18px; border-radius: var(--r-xl); }
.group h4 { margin: 0 0 4px; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.group h4 svg { width: 19px; height: 19px; color: var(--blue); }
.group > p { margin: 0 0 14px; color: var(--text-2); font-size: 14px; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv .grow { flex: 1; min-width: 0; }
.kv .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv .st { color: var(--text-3); font-size: 12.5px; }
.steps { margin: 0 0 14px; padding-left: 20px; color: var(--text-2); font-size: 14px; }
.steps li { margin-bottom: 7px; }
.steps b { color: var(--text); }
.code { font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; background: rgba(0,0,0,0.45); border: 1px solid var(--line); border-radius: 12px; padding: 12px; max-height: 180px; overflow: auto; white-space: pre; color: #cfe0ff; margin-bottom: 10px; }
.usage-item { margin-bottom: 14px; }
.usage-item .top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; gap: 10px; }
.usage-item .top span:last-child { color: var(--text-2); }
.usage-bar { height: 8px; border-radius: 9px; background: rgba(255,255,255,0.07); overflow: hidden; }
.usage-bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--blue-2), var(--blue-hi)); transition: width 0.8s var(--ease); }
.usage-bar.warn i { background: linear-gradient(90deg, #e9b44c, var(--amber)); }
.usage-bar.danger i { background: linear-gradient(90deg, #e2483c, var(--red)); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.status-dot.ok { background: var(--green); box-shadow: 0 0 8px var(--green); }
.status-dot.bad { background: var(--red); box-shadow: 0 0 8px var(--red); }
.status-dot.none { background: var(--text-3); }

/* iOS switch */
.switch { position: relative; width: 51px; height: 31px; flex: 0 0 auto; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: rgba(120,120,128,0.32); transition: background 0.25s; cursor: pointer; }
.switch i::after { content: ""; position: absolute; width: 27px; height: 27px; left: 2px; top: 2px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,0.3); transition: transform 0.3s var(--ease); }
.switch input:checked + i { background: var(--c, #34c759); }
.switch input:checked + i::after { transform: translateX(20px); }
.toggle-row { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row .grow { flex: 1; min-width: 0; }
.toggle-row .t { font-weight: 600; }
.toggle-row .st { color: var(--text-3); font-size: 12.5px; }

/* sheet (modal) */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; animation: fade 0.25s ease both; }
.overlay.closing { animation: fade 0.2s ease reverse both; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 560px; max-height: 94vh; max-height: 94dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; border-radius: 30px 30px 0 0; padding: 10px 18px calc(22px + var(--sab)); background: linear-gradient(180deg, rgba(46,47,54,0.86), rgba(22,22,26,0.95)); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--line-2); border-bottom: 0; box-shadow: 0 -20px 60px rgba(0,0,0,0.6); animation: slideup 0.42s var(--ease) both; }
.overlay.closing .sheet { animation: slideup 0.22s ease reverse both; }
@keyframes slideup { from { transform: translateY(100%); } }
.grabber { width: 38px; height: 5px; border-radius: 9px; background: rgba(255,255,255,0.22); margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.sheet-head h3 { margin: 0; font-size: 20px; letter-spacing: -0.015em; min-width: 0; }
.sheet-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.sheet-actions .btn { flex: 1; }
@media (min-width: 700px) {
  .overlay { align-items: center; }
  .sheet { border-radius: 28px; border-bottom: 1px solid var(--line-2); padding-bottom: 22px; animation: pop 0.35s var(--ease) both; }
  .overlay.closing .sheet { animation: pop 0.2s ease reverse both; }
  .grabber { display: none; }
}
@keyframes pop { from { opacity: 0; transform: scale(0.94) translateY(10px); } }

/* post detail */
.post-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: -4px 0 14px; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.tickbtn { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); cursor: pointer; font-weight: 650; text-align: left; }
.tickbtn .check { width: 26px; height: 26px; pointer-events: none; }
.tickbtn small { display: block; color: var(--text-3); font-weight: 500; font-size: 12px; }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.media-grid .m { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,0.05); }
.media-grid .m img, .media-grid .m video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-grid .m .rm { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,0.6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.media-grid .m .rm svg { width: 15px; height: 15px; }
.media-grid .m .tag { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 8px; background: rgba(0,0,0,0.6); }
.media-grid .m .bar { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 5px; border-radius: 9px; background: rgba(0,0,0,0.5); overflow: hidden; }
.media-grid .m .bar i { display: block; height: 100%; background: var(--blue); transition: width 0.2s; }
.media-grid .add { display: grid; place-items: center; text-align: center; color: var(--blue-hi); font-weight: 650; font-size: 13px; border: 1.5px dashed rgba(59,139,255,0.45); cursor: pointer; }
.media-grid .add svg { width: 26px; height: 26px; display: block; margin: 0 auto 4px; }
.caption-box { border-radius: 16px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); padding: 14px; margin-bottom: 10px; white-space: pre-wrap; font-size: 15px; line-height: 1.5; word-break: break-word; }
.caption-box .tags { color: var(--blue-hi); margin-top: 10px; }
.caption-box.empty { color: var(--text-3); font-style: italic; }
.pub-box { border-radius: 16px; padding: 14px; margin: 6px 0 12px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 12%, rgba(255,255,255,0.02)); }
.pub-box h5 { margin: 0 0 10px; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.pub-line { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--text-2); margin: 6px 0; }
.pub-line b { color: var(--text); }
.platforms { display: flex; gap: 8px; margin-bottom: 12px; }
.plat { flex: 1; display: flex; align-items: center; gap: 8px; justify-content: center; padding: 11px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.04); font-weight: 650; cursor: pointer; color: var(--text-2); }
.plat.on { background: color-mix(in srgb, var(--c) 35%, transparent); border-color: color-mix(in srgb, var(--c) 70%, transparent); color: #fff; }
.plat:disabled { opacity: 0.4; }

/* toast */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + var(--sab)); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); }
@media (min-width: 900px) { .toasts { bottom: 30px; } }
.toast { pointer-events: auto; padding: 12px 18px; border-radius: 16px; font-size: 14.5px; font-weight: 600; display: flex; gap: 10px; align-items: center; animation: toastin 0.4s var(--ease) both; max-width: 100%; background: rgba(40,40,46,0.92); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0,0,0,0.6); }
.toast svg { width: 18px; height: 18px; color: var(--blue); flex: 0 0 auto; }
.toast.err svg { color: var(--red); }
.toast.out { animation: toastin 0.3s ease reverse both; }
@keyframes toastin { from { opacity: 0; transform: translateY(16px) scale(0.96); } }

.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,0.15); border-top-color: var(--blue); animation: spin 0.8s linear infinite; display: inline-block; }
.center-load { min-height: 60vh; display: grid; place-items: center; }
.muted { color: var(--text-2); }
.tiny { font-size: 12.5px; color: var(--text-3); }
.mt { margin-top: 14px; }
.hstack { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 699px) { .grid2 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; } }
body.privacy #app { filter: blur(28px) brightness(0.4); }
