/* Orator Browser(TM) — Copyright (c) 2026 Spark Fire Technologies. All rights reserved. */
:root {
  --bg: #060607;
  --bg-2: #0b0b0d;
  --panel: rgba(16, 16, 18, 0.86);
  --panel-solid: #101012;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #f1f1f2;
  --text-2: #c9c9cd;
  --muted: #8e8e95;
  --accent: #ff8a1a;
  --accent-2: #ffb547;
  --accent-deep: #ff5a00;
  --accent-rgb: 255, 138, 26;
  --ok: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --radius: 16px;
  --side-w: 268px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Michroma", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}
:root[data-accent="amber"] { --accent: #ffb020; --accent-2: #ffd36b; --accent-deep: #ff8a00; --accent-rgb: 255, 176, 32; }
:root[data-accent="blue"] { --accent: #3d9bff; --accent-2: #8cc8ff; --accent-deep: #2563eb; --accent-rgb: 61, 155, 255; }
:root[data-accent="green"] { --accent: #22c55e; --accent-2: #86efac; --accent-deep: #15803d; --accent-rgb: 34, 197, 94; }
:root[data-accent="purple"] { --accent: #a855f7; --accent-2: #d8b4fe; --accent-deep: #7c3aed; --accent-rgb: 168, 85, 247; }
:root[data-accent="red"] { --accent: #ff4d4d; --accent-2: #ff9a9a; --accent-deep: #d61f1f; --accent-rgb: 255, 77, 77; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: var(--text); }
[hidden] { display: none !important; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid rgba(var(--accent-rgb), 0.85); outline-offset: 2px; border-radius: 8px; }
kbd { font: 600 12px var(--font); background: #1d1d21; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }
code { font: 13px ui-monospace, "Cascadia Code", Consolas, monospace; background: #19191c; border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }

/* ======================================================================= layout */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden;
  background:
    radial-gradient(120px 260px at 0 8%, rgba(var(--accent-rgb), 0.22), transparent 70%),
    radial-gradient(220px 200px at 0 100%, rgba(var(--accent-rgb), 0.16), transparent 70%),
    linear-gradient(180deg, #0c0c0e, #08080a);
  border-right: 1px solid rgba(var(--accent-rgb), 0.16);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03), 1px 0 24px rgba(var(--accent-rgb), 0.06);
  padding: 30px 12px 18px 22px;
  display: flex; flex-direction: column; gap: 0;
  scrollbar-width: thin; scrollbar-color: #2a2a2e transparent;
  z-index: 30;
}
.sidebar::before { /* edge glow like the mockup */
  content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 210px;
  background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb), 0.9) 40%, transparent);
  filter: blur(0.5px); box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.8);
}
.brand { display: flex; align-items: center; gap: 4px; padding: 0 0 0 0; margin: 0 0 30px; }
.brand-emblem { width: 72px; height: auto; filter: drop-shadow(0 0 10px rgba(255, 120, 20, 0.45)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-orator {
  font: 400 23px/1 var(--display); letter-spacing: 0.02em; -webkit-text-stroke: 0.9px #d0d0d6;
  background: linear-gradient(180deg, #ffffff 0%, #d9d9de 38%, #8d8d94 52%, #f2f2f4 70%, #a8a8ae 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.6));
}
.brand-browser { margin-top: 7px; font: 500 11px/1 var(--font); letter-spacing: 0.62em; color: var(--accent); padding-left: 12px; }

.nav { display: flex; flex-direction: column; gap: 2px; margin-right: 0; }
.nav-item {
  display: flex; align-items: center; gap: 16px; height: 48px; padding: 0 16px 0 18px; border-radius: 12px;
  color: #e6e6e8; font-size: 15px; font-weight: 500; border: 1px solid transparent; position: relative;
  transition: background 0.15s, color 0.15s;
}
.nav-item .i { width: 22px; height: 22px; stroke-width: 1.6; color: #d8d8dc; }
.nav-item:hover { background: rgba(255, 255, 255, 0.04); }
.nav-item.active {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.24), rgba(var(--accent-rgb), 0.07) 70%, rgba(var(--accent-rgb), 0.04));
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.18), inset 0 0 18px rgba(var(--accent-rgb), 0.08);
  color: #fff;
}
.nav-item.active .i { color: var(--accent); }
.nav-item.active::before {
  content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}

.side-card {
  border-radius: 14px; border: 1px solid var(--line-2); background: rgba(20, 20, 22, 0.75);
  padding: 16px 16px 16px 18px; margin-top: 16px;
}
.focus-card { margin-top: 30px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.focus-head { display: flex; align-items: center; gap: 12px; }
.focus-leaf { color: var(--accent); width: 22px; height: 22px; }
.focus-title { font-size: 15px; font-weight: 600; flex: 1; }
.focus-desc { margin: 10px 0 0 34px; color: var(--text-2); font-size: 12.5px; line-height: 1.55; }

.toggle {
  width: 36px; height: 22px; border-radius: 22px; background: #303036; position: relative; flex: none;
  border: 1px solid rgba(255, 255, 255, 0.08); transition: background 0.2s, box-shadow 0.2s;
}
.toggle span { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #d6d6da; transition: transform 0.2s; }
.toggle[aria-checked="true"] { background: linear-gradient(90deg, var(--accent-deep), var(--accent)); box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.55); }
.toggle[aria-checked="true"] span { transform: translateX(14px); background: #fff; }

.gz-card {
  margin-top: 30px; padding: 18px 16px 16px 18px;
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.22), inset 0 0 22px rgba(var(--accent-rgb), 0.07);
  background: radial-gradient(160px 80px at 20% 0, rgba(var(--accent-rgb), 0.1), transparent), rgba(16, 16, 18, 0.9);
}
.gz-card[data-state="absent"], .gz-card[data-state="unknown"] { border-color: var(--line-2); box-shadow: none; background: rgba(18, 18, 20, 0.8); }
.gz-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.gz-logo { width: 44px; height: auto; filter: drop-shadow(0 0 8px rgba(80, 200, 80, 0.35)); }
.gz-name { font: 400 18px/1 var(--display); letter-spacing: 0.02em; color: #f3f3f3; }
.gz-name b { font-weight: 400; color: var(--accent); }
.gz-sub { margin-top: 6px; font-size: 10.5px; letter-spacing: 0.32em; color: var(--text-2); font-weight: 500; }
.gz-card[data-state="connected"] .gz-sub { color: #cfe9d6; }
.gz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gz-list li { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #e2e2e5; }
.gz-list i {
  width: 16px; height: 16px; border-radius: 50%; flex: none; position: relative; background: #2b2b30;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.gz-list i::after { content: ""; position: absolute; left: 4.5px; top: 7px; width: 6px; height: 1.6px; background: #6d6d75; }
.gz-list li[data-v="ok"] i { background: var(--ok); border-color: transparent; box-shadow: 0 0 8px rgba(34, 197, 94, 0.5); }
.gz-list li[data-v="warn"] i { background: var(--warn); border-color: transparent; }
.gz-list li[data-v="bad"] i { background: var(--bad); border-color: transparent; }
.gz-list li[data-v="ok"] i::after {
  left: 4.6px; top: 3.4px; width: 4px; height: 7px; background: none;
  border: solid #0b2814; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.gz-list li[data-v="warn"] i::after, .gz-list li[data-v="bad"] i::after { background: #2a1300; }
.gz-list li:not([data-v="ok"]) { color: var(--text-2); }
.gz-note { margin: 12px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.gz-note a, .gz-note button { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; font-size: inherit; }
.legal { margin: auto 0 0; padding-top: 18px; font-size: 10.5px; color: #66666d; line-height: 1.45; }

/* ======================================================================= main */
.main { min-width: 0; padding: 0 26px 28px 28px; position: relative; }
.mobile-bar { display: none; }
.view { animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------- hero */
.hero {
  position: relative; margin: 0 -26px 0 -28px; height: clamp(330px, 41vh, 560px);
  overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center;
}
.hero-art {
  position: absolute; inset: 0; z-index: -2;
  background: url("/img/hero.webp") center 62% / cover no-repeat, #0a0503;
}
.hero-art::after { /* fade into the page */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 6, 7, 0.0) 55%, rgba(6, 6, 7, 0.55) 85%, var(--bg) 100%),
    linear-gradient(90deg, rgba(6, 6, 7, 0.35), transparent 18%, transparent 80%, rgba(6, 6, 7, 0.15));
}
.hero-emblem {
  position: absolute; z-index: -1; right: 0.5%; top: -6%; height: 102%; width: auto; max-width: none;
  transform: perspective(760px) rotateY(-36deg) rotateZ(1deg); transform-origin: 100% 40%;
  filter: drop-shadow(0 0 24px rgba(255, 110, 10, 0.35)) drop-shadow(0 20px 30px rgba(0, 0, 0, 0.7));
  opacity: 0.97;
}
.hero-inner { width: min(860px, 70%); margin-right: 8%; margin-top: 9.5%; text-align: center; }
.wordmark {
  margin: 0 0 clamp(34px, 6.6vh, 72px); font: 400 clamp(34px, 3.75vw, 76px)/1 var(--display); letter-spacing: 0.01em;
  white-space: nowrap; position: relative; display: inline-block; transform: translateX(-9%) scaleX(0.94);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.75));
}
.wm-orator {
  background: linear-gradient(180deg, #ffffff 0%, #eeeef1 30%, #9b9ba3 50%, #5d5d64 54%, #dadade 72%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1.6px #c9c9cf; paint-order: stroke fill;
}
.wm-browser {
  background: linear-gradient(180deg, #ffe0a0 0%, #ffb340 35%, #ff7a0a 55%, #ff5a00 70%, #ffae3d 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1.6px #ff8e1f; paint-order: stroke fill;
  filter: drop-shadow(0 0 14px rgba(255, 110, 0, 0.55));
}
.wordmark sup { position: absolute; right: -0.7em; top: -0.1em; font: 500 0.22em var(--font); color: #e8e8ea; }

.searchbar {
  position: relative; display: flex; align-items: center; gap: 6px; height: 72px; padding: 0 10px 0 26px;
  border-radius: 40px; background: rgba(8, 8, 10, 0.86);
  border: 1.5px solid rgba(var(--accent-rgb), 0.85);
  box-shadow: 0 0 0 1px rgba(255, 190, 110, 0.12) inset, 0 0 22px rgba(var(--accent-rgb), 0.45), 0 0 60px rgba(var(--accent-rgb), 0.18), 0 10px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  max-width: 852px; margin: 0 auto;
}
.sb-ico { width: 24px; height: 24px; color: #e8e8ea; stroke-width: 1.9; }
.searchbar input {
  flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; padding: 0 12px 0 14px;
  font-size: 17px; color: #fff;
}
.searchbar input::placeholder { color: #b9b9bf; }
.sb-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #e2e2e6; }
.sb-btn:hover { background: rgba(255, 255, 255, 0.07); }
.sb-btn .i { width: 24px; height: 24px; }
.sb-btn.listening { color: var(--accent); background: rgba(var(--accent-rgb), 0.15); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.12); } }
.sb-go {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; margin-left: 6px; flex: none;
  background: radial-gradient(circle at 35% 30%, var(--accent-2), var(--accent) 55%, var(--accent-deep));
  color: #1a0b00; box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.65);
}
.sb-go .i { width: 24px; height: 24px; stroke-width: 2.1; }
.sb-go:hover { filter: brightness(1.08); }
.sb-mode { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; padding: 4px 9px; border-radius: 20px; background: rgba(var(--accent-rgb), 0.16); color: var(--accent-2); white-space: nowrap; }
.sb-hint { min-height: 18px; margin: 10px 0 0; font-size: 12.5px; color: #d0d0d4; text-shadow: 0 1px 4px #000; }
.sb-menu-wrap { position: relative; }

.menu {
  position: absolute; z-index: 60; right: -6px; top: 52px; min-width: 290px; padding: 6px;
  background: rgba(20, 20, 23, 0.98); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); text-align: left;
}
.menu.floating { position: fixed; min-width: 190px; right: auto; top: auto; }
.menu-label { font-size: 11px; color: var(--muted); padding: 6px 10px 4px; text-transform: uppercase; letter-spacing: 0.08em; }
.menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 9px; text-align: left; font-size: 13.5px; }
.menu button:hover, .menu button:focus-visible { background: rgba(255, 255, 255, 0.06); }
.menu button span { display: flex; flex-direction: column; }
.menu button small { color: var(--muted); font-size: 12px; }
.menu button[aria-checked="true"] { background: rgba(var(--accent-rgb), 0.14); }
.menu button[aria-checked="true"] .i { color: var(--accent); }
.menu .danger { color: #ff8b8b; }

/* ---------------------------------------------------------- tiles */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin: 18px 0 0; position: relative; z-index: 2; }
.tile {
  position: relative; height: 124px; border-radius: 14px; overflow: hidden; padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--tile-bg, radial-gradient(120% 90% at 50% 20%, rgba(70, 110, 255, 0.16), transparent 60%)), linear-gradient(180deg, #141418, #0c0c0e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 6px 18px rgba(0, 0, 0, 0.45);
  display: flex; flex-direction: column; justify-content: flex-end; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.tile::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.55), transparent); }
.tile:hover { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), 0.5); box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.18), 0 10px 24px rgba(0, 0, 0, 0.5); }
.tile .ti, .tile .tile-emblem { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); width: 52px; height: 52px; }
.tile .tile-emblem { width: 62px; height: auto; top: 10px; filter: drop-shadow(0 0 10px rgba(255, 110, 10, 0.6)); }
.tile .ti { filter: drop-shadow(0 0 8px var(--glow, rgba(80, 140, 255, 0.7))); }
.tile-label { font-size: 15px; font-weight: 600; color: #f5f5f6; display: flex; flex-direction: column; line-height: 1.25; }
.tile-label small { font-size: 12px; font-weight: 400; color: var(--text-2); margin-top: 3px; }
.tile .chev { position: absolute; right: 14px; bottom: 16px; width: 18px; height: 18px; color: #d4d4d8; }
.t-ai { --tile-bg: radial-gradient(90% 80% at 50% 25%, rgba(255, 120, 20, 0.2), transparent 60%), radial-gradient(60% 50% at 10% 100%, rgba(255, 255, 255, 0.04), transparent); }
.t-work { --tile-bg: radial-gradient(90% 80% at 50% 25%, rgba(110, 100, 255, 0.2), transparent 60%); --glow: rgba(120, 110, 255, 0.75); }
.t-drive { --tile-bg: radial-gradient(90% 80% at 50% 25%, rgba(40, 120, 255, 0.24), transparent 62%), radial-gradient(70% 60% at 85% 100%, rgba(40, 80, 160, 0.25), transparent); --glow: rgba(60, 140, 255, 0.85); }
.t-media { --tile-bg: radial-gradient(90% 80% at 50% 25%, rgba(170, 70, 255, 0.2), transparent 60%); --glow: rgba(170, 80, 255, 0.8); }
.t-translate { --tile-bg: radial-gradient(90% 80% at 50% 25%, rgba(50, 140, 255, 0.18), transparent 60%); --glow: rgba(60, 150, 255, 0.8); }
.t-tools { --tile-bg: radial-gradient(90% 80% at 50% 25%, rgba(60, 110, 255, 0.18), transparent 60%); --glow: rgba(70, 120, 255, 0.85); }

/* ---------------------------------------------------------- cards */
.cards { display: grid; grid-template-columns: 1.47fr 1.56fr 1fr; gap: 16px; margin-top: 16px; align-items: stretch; }
.card {
  border-radius: var(--radius); border: 1px solid rgba(var(--accent-rgb), 0.2);
  background: linear-gradient(180deg, rgba(20, 20, 23, 0.92), rgba(12, 12, 14, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.4);
  padding: 16px 18px;
}
.cards .card { min-height: 340px; display: flex; flex-direction: column; min-width: 0; }
.card-head { display: flex; align-items: center; gap: 12px; margin: 2px 0 12px; }
.card-head > .i { width: 21px; height: 21px; color: #e9e9ec; }
.card-head h2 { margin: 0; font-size: 15px; font-weight: 600; flex: 1; letter-spacing: 0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.see-all { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); padding: 4px 6px; border-radius: 8px; white-space: nowrap; }
.see-all .i { width: 14px; height: 14px; }
.see-all:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.plus { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); border: 1px solid rgba(var(--accent-rgb), 0.55); box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.25); }
.plus .i { width: 18px; height: 18px; stroke-width: 2.2; }
.plus:hover { background: rgba(var(--accent-rgb), 0.12); }

/* continue */
.cont-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cont-list li + li { border-top: 1px solid var(--line); }
.cont-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 10px 6px 10px 6px; border-radius: 10px; }
.cont-item:hover { background: rgba(255, 255, 255, 0.035); }
.fav { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; background: var(--fav, #333); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); text-transform: uppercase; }
.fav .i { width: 18px; height: 18px; }
.cont-t { font-size: 14px; font-weight: 500; color: #f2f2f4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cont-d { font-size: 12.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cont-time { font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.empty { color: var(--muted); font-size: 13px; line-height: 1.55; padding: 14px 6px; }
.empty b { color: var(--text-2); font-weight: 600; }
.hint { margin-top: auto; padding-top: 8px; font-size: 11.5px; color: #6e6e76; }

/* for you */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; }
.tabs button { position: relative; padding: 4px 10px 9px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.tabs button:first-child { padding-left: 4px; }
.tabs button[aria-selected="true"] { color: var(--accent); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 4px; right: 6px; bottom: -1px; height: 2px; background: var(--accent); border-radius: 2px; box-shadow: 0 0 8px var(--accent); }
.fy-body { display: flex; flex-direction: column; gap: 10px; min-height: 0; flex: 1; }
.fy-feature { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); }
.fy-img { position: relative; height: 72px; background: #15151a center 28% / cover no-repeat; }
.fy-img.ph, .fy-thumb.ph { background-image: var(--ph); }
.fy-feature-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 6px 2px 6px; }
.fy-feature-t { font-size: 15.5px; font-weight: 600; color: #fff; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.fy-meta { font-size: 12.5px; color: var(--text-2); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fy-meta .dot { margin: 0 6px; color: var(--muted); }
.fy-item { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 4px 6px 4px 0; border-radius: 10px; }
.fy-item:hover, .fy-feature:hover .fy-feature-body { background: rgba(255, 255, 255, 0.03); }
.fy-thumb { width: 62px; height: 46px; border-radius: 8px; background: #17171b center / cover no-repeat; border: 1px solid var(--line); }
.fy-t { font-size: 13px; font-weight: 500; color: #f0f0f2; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fy-item .chev, .fy-feature .chev { width: 18px; height: 18px; color: #c9c9ce; }
.fy-more { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: #6e6e76; padding-top: 4px; }
.fy-more button { color: var(--text-2); font-size: 12px; }
.fy-more button:hover { color: #fff; }
.skeleton { background: linear-gradient(90deg, #141417 0, #1d1d22 40%, #141417 80%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* spaces */
.space-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.space-row {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) 28px; gap: 12px; align-items: center;
  padding: 6px 4px 6px 6px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.02);
}
.space-row:hover { border-color: rgba(var(--accent-rgb), 0.3); }
.space-ico { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--sbg, rgba(60, 130, 255, 0.16)); color: var(--sfg, #5aa2ff); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.space-ico .i { width: 19px; height: 19px; }
.space-name { font-size: 13.5px; font-weight: 600; color: #f2f2f4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.space-count { font-size: 11.5px; color: var(--muted); }
.kebab { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #d6d6da; }
.kebab:hover { background: rgba(255, 255, 255, 0.07); }
.kebab .i { width: 18px; height: 18px; }
.c-blue { --sbg: rgba(55, 125, 255, 0.16); --sfg: #4f9bff; }
.c-sky { --sbg: rgba(80, 160, 255, 0.14); --sfg: #6db3ff; }
.c-teal { --sbg: rgba(40, 200, 220, 0.13); --sfg: #47d4e6; }
.c-purple { --sbg: rgba(150, 80, 255, 0.18); --sfg: #b47dff; }
.c-red { --sbg: rgba(255, 60, 90, 0.15); --sfg: #ff5c7a; }
.c-green { --sbg: rgba(40, 210, 160, 0.13); --sfg: #3fe0b0; }
.c-orange { --sbg: rgba(255, 138, 26, 0.15); --sfg: #ff9d3d; }
.c-pink { --sbg: rgba(255, 90, 200, 0.14); --sfg: #ff79d2; }

/* focus mode */
html.focus .card-continue, html.focus .card-foryou { display: none; }
html.focus .cards { grid-template-columns: minmax(0, 420px); justify-content: center; }
html.focus .sidebar { filter: saturate(0.6) brightness(0.82); }
html.focus .sidebar:hover, html.focus .sidebar:focus-within { filter: none; }
html.focus .tile { opacity: 0.8; }
html.focus .hero-emblem { opacity: 0.6; }

/* ======================================================================= inner pages */
.view:not(.view-home) { max-width: 1100px; margin: 0 auto; padding-top: 34px; }
.page-head { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; }
.page-head h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.page-head p { margin: 4px 0 0; color: var(--text-2); font-size: 13.5px; }
.page-head p a { color: var(--accent-2); }
.page-head > div { flex: 1; }
.ph-ico { width: 34px; height: 34px; color: var(--accent); }
.ph-ti { width: 46px; height: 46px; }
.page-head img { filter: drop-shadow(0 0 10px rgba(255, 110, 10, 0.5)); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #1c0d00; box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.3); white-space: nowrap;
}
.btn .i { width: 17px; height: 17px; stroke-width: 2; }
.btn.ghost { background: rgba(255, 255, 255, 0.05); color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.btn.ghost:hover { border-color: rgba(var(--accent-rgb), 0.45); }
.btn.danger { background: rgba(239, 68, 68, 0.14); color: #ffb4b4; border: 1px solid rgba(239, 68, 68, 0.4); box-shadow: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row-btns.end { justify-content: flex-end; }
.prose { font-size: 14.5px; line-height: 1.65; color: var(--text-2); padding: 22px 26px; }
.prose b { color: var(--text); }
.prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.muted { color: var(--muted); }
.fineprint { font-size: 12px; color: #74747c; margin: 14px 2px 0; }
.sec-title { font-size: 14px; color: var(--text-2); font-weight: 600; margin: 26px 0 10px; }
.plain-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.plain-list > li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.plain-list > li:hover { border-color: rgba(var(--accent-rgb), 0.3); }
.plain-list .row-main { min-width: 0; }
.plain-list .x { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.plain-list .x:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.plain-list .x .i { width: 16px; height: 16px; }
.plain-list .empty { display: block; border: 1px dashed var(--line-2); background: none; padding: 22px; text-align: center; }
.searchbar-page { max-width: none; height: 62px; }
.engine-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }
.chip { padding: 7px 14px; border-radius: 20px; border: 1px solid var(--line-2); font-size: 13px; color: var(--text-2); }
.chip[aria-pressed="true"] { border-color: rgba(var(--accent-rgb), 0.7); color: #fff; background: rgba(var(--accent-rgb), 0.14); }

/* spaces page */
.space-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.space-card { padding: 16px; }
.space-card header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.space-card header > div { flex: 1; min-width: 0; }
.space-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.space-card li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; }
.space-card li a { display: block; padding: 7px 8px; border-radius: 8px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.space-card li a:hover { background: rgba(255, 255, 255, 0.05); }
.space-card li small { color: var(--muted); margin-left: 6px; }
.space-card .x { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); }
.space-card .x .i { width: 14px; height: 14px; }
.space-card .empty { padding: 8px; }

/* bookmarks form */
.bm-form { display: grid; grid-template-columns: 2fr 1.4fr 1fr auto; gap: 10px; margin-bottom: 16px; padding: 12px; }
.bm-form input, .bm-form select, .settings select, .tr-bar select, .tool input, .tool select, .dlg input, .dlg select {
  height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: #0d0d10; padding: 0 12px; outline: 0; min-width: 0;
}
.bm-form input:focus, .tool input:focus, .dlg input:focus { border-color: rgba(var(--accent-rgb), 0.6); }

/* settings */
.settings { padding: 6px 22px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.set-row:last-child { border-bottom: 0; }
.set-row b { display: block; font-size: 14.5px; }
.set-row small { color: var(--muted); font-size: 12.5px; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; background: #0d0d10; padding: 4px; border-radius: 12px; border: 1px solid var(--line); }
.seg button { padding: 7px 12px; border-radius: 9px; font-size: 13px; color: var(--text-2); }
.seg button[aria-pressed="true"] { background: rgba(var(--accent-rgb), 0.18); color: #fff; box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.5); }
.swatches { display: flex; gap: 10px; }
.swatches button { width: 28px; height: 28px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.3); }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--sw), 0 0 12px var(--sw); }

/* chat */
.view-chat { display: flex; flex-direction: column; min-height: calc(100vh - 20px); }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 6px 2px 18px; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: rgba(var(--accent-rgb), 0.14); border: 1px solid rgba(var(--accent-rgb), 0.35); border-bottom-right-radius: 4px; white-space: pre-wrap; }
.msg.ai { align-self: flex-start; background: var(--panel); border: 1px solid var(--line-2); border-bottom-left-radius: 4px; }
.msg.ai p { margin: 0 0 10px; } .msg.ai p:last-child { margin-bottom: 0; }
.msg.ai pre { background: #0a0a0c; border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow-x: auto; font: 13px/1.5 ui-monospace, Consolas, monospace; }
.msg.ai pre code { background: none; border: 0; padding: 0; }
.msg.ai ul, .msg.ai ol { margin: 6px 0 10px; padding-left: 22px; }
.msg.ai a { color: var(--accent-2); text-decoration: underline; }
.msg.ai h3, .msg.ai h4 { margin: 12px 0 6px; font-size: 15px; }
.msg .meta { display: block; margin-top: 8px; font-size: 11px; color: var(--muted); }
.msg.err { border-color: rgba(239, 68, 68, 0.45); color: #ffc4c4; }
.typing::after { content: "▍"; animation: blink 1s steps(2) infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }
.chat-empty { margin: auto; text-align: center; color: var(--text-2); max-width: 560px; }
.chat-empty img { width: 92px; filter: drop-shadow(0 0 18px rgba(255, 110, 10, 0.6)); }
.chat-empty h2 { font-size: 20px; margin: 10px 0 6px; color: #fff; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.suggest button { padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 13px; color: var(--text-2); background: rgba(255, 255, 255, 0.02); }
.suggest button:hover { border-color: rgba(var(--accent-rgb), 0.5); color: #fff; }
.chat-form {
  position: sticky; bottom: 12px; display: flex; align-items: flex-end; gap: 6px; padding: 8px 8px 8px 18px; border-radius: 28px;
  background: rgba(10, 10, 12, 0.95); border: 1.5px solid rgba(var(--accent-rgb), 0.7); box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.25);
}
.chat-form textarea { flex: 1; resize: none; border: 0; outline: 0; background: transparent; font-size: 15px; line-height: 1.5; padding: 12px 0; max-height: 200px; }
.chat-form .sb-go { margin-bottom: 1px; }
.chat-form .sb-go.stop { background: #2a2a30; color: #fff; box-shadow: none; }

/* translate */
.tr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tr-pane { display: flex; flex-direction: column; gap: 10px; min-height: 340px; }
.tr-bar { display: flex; gap: 8px; align-items: center; }
.tr-bar select { flex: 1; }
.tr-pane textarea, .tr-out { flex: 1; min-height: 220px; border-radius: 12px; border: 1px solid var(--line); background: #0b0b0e; padding: 14px; font-size: 15.5px; line-height: 1.6; resize: vertical; outline: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tr-pane textarea:focus { border-color: rgba(var(--accent-rgb), 0.55); }
.tr-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }

/* tools */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.tool { display: flex; flex-direction: column; gap: 12px; }
.tool h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; }
.tool h2 .i { color: var(--accent); }
.tool input, .tool select { width: 100%; }
.calc-out { font: 600 28px/1.2 var(--font); color: #fff; min-height: 34px; overflow-wrap: anywhere; }
.conv { display: flex; flex-direction: column; gap: 10px; }
.conv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.conv-row output { display: flex; align-items: center; height: 38px; padding: 0 12px; border-radius: 10px; background: rgba(var(--accent-rgb), 0.1); border: 1px solid rgba(var(--accent-rgb), 0.3); font-weight: 600; overflow: hidden; }
.timer-face { font: 400 46px/1 var(--display); text-align: center; letter-spacing: 0.04em; padding: 10px 0; color: #fff; text-shadow: 0 0 18px rgba(var(--accent-rgb), 0.5); }
.timer-face.done { color: var(--accent); animation: blink 0.8s steps(2) 6; }
.timer-set { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--muted); }
.timer-set input { width: 76px; text-align: center; }
#qrCanvas { align-self: center; background: #fff; border-radius: 10px; width: 232px; height: 232px; image-rendering: pixelated; }

/* dialog / toast / scrim */
.dlg { border: 1px solid var(--line-2); border-radius: 16px; background: #141417; color: var(--text); padding: 20px; width: min(420px, 92vw); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); }
.dlg::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px); }
.dlg h3 { margin: 0 0 14px; font-size: 17px; }
.dlg #dlgBody { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.dlg #dlgBody p { margin: 0; color: var(--text-2); }
.dlg input, .dlg select { width: 100%; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; background: #1b1b1f; border: 1px solid rgba(var(--accent-rgb), 0.45); padding: 10px 18px; border-radius: 12px; font-size: 13.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); }
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 25; }

/* ======================================================================= responsive */
@media (min-width: 1900px) {
  :root { --side-w: 300px; }
  .main { padding-left: 40px; padding-right: 40px; }
  .hero { margin-left: -40px; margin-right: -40px; }
  .view-home > .tiles, .view-home > .cards { max-width: 1840px; margin-left: auto; margin-right: auto; }
  .tile { height: 140px; }
  .cards .card { min-height: 380px; }
  .searchbar { max-width: 940px; }
}
@media (max-width: 1360px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card-spaces { grid-column: 1 / -1; }
  .card-spaces .space-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .cards .card-spaces { min-height: 0; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-inner { margin-right: 16%; }
}
@media (max-width: 1100px) {
  :root { --side-w: 78px; }
  .sidebar { padding: 22px 10px; align-items: center; }
  .brand { margin-bottom: 22px; }
  .brand-text, .nav-item span, .side-card, .legal { display: none; }
  .brand-emblem { width: 52px; }
  .nav-item { width: 54px; padding: 0; justify-content: center; }
  .nav-item.active::before { display: none; }
  .hero-emblem { opacity: 0.55; right: -10%; }
  .hero-inner { width: 86%; margin-right: 0; }
}
@media (max-width: 760px) {
  :root { --side-w: 0px; }
  .app { display: block; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 280px; height: 100%; transform: translateX(-102%); transition: transform 0.25s ease;
    padding: 24px 12px 18px 18px; align-items: stretch;
  }
  .sidebar.open { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, 0.7); }
  .sidebar .brand-text, .sidebar .nav-item span, .sidebar .side-card, .sidebar .legal { display: revert; }
  .sidebar .brand-text { display: flex; }
  .sidebar .nav-item { width: auto; padding: 0 16px; justify-content: flex-start; }
  .sidebar .brand-emblem { width: 60px; }
  .main { padding: 0 16px 24px; }
  .mobile-bar {
    display: flex; align-items: center; justify-content: space-between; height: 56px; margin: 0 -16px; padding: 0 10px;
    position: sticky; top: 0; z-index: 20; background: rgba(6, 6, 7, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.16);
  }
  .icon-btn { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; }
  .icon-btn .i { width: 24px; height: 24px; }
  .brand-mini { margin: 0; gap: 6px; align-items: center; }
  .brand-mini img { width: 36px; height: auto; }
  .brand-mini .brand-orator { font-size: 15px; }
  .brand-browser-inline { font: 400 15px/1 var(--display); color: var(--accent); }
  .hero { margin: 0 -16px; height: auto; min-height: 0; padding: 64px 0 46px; }
  .hero-art { background-position: 40% 60%; }
  .hero-emblem { height: 70%; top: -4%; right: -18%; opacity: 0.45; }
  .hero-inner { width: 100%; padding: 0 16px; margin: 0; }
  .wordmark { font-size: clamp(20px, 6.3vw, 40px); margin-bottom: 24px; transform: none; -webkit-text-stroke: 0; }
  .wm-orator, .wm-browser { -webkit-text-stroke-width: 0.8px; }
  .wordmark sup { right: -0.9em; }
  .searchbar { height: 58px; padding-left: 16px; gap: 2px; }
  .searchbar input { font-size: 15.5px; padding: 0 6px 0 10px; }
  .sb-btn { width: 38px; height: 38px; }
  .sb-btn .i { width: 21px; height: 21px; }
  .sb-go { width: 42px; height: 42px; }
  .menu { right: -54px; min-width: 260px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
  .tile { height: 104px; padding: 10px 10px; }
  .tile .ti { width: 40px; height: 40px; top: 12px; }
  .tile .tile-emblem { width: 48px; top: 10px; }
  .tile-label { font-size: 13px; }
  .tile-label small { display: none; }
  .tile .chev { display: none; }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .card-spaces { grid-column: auto; }
  .card-spaces .space-list { display: flex; }
  .cards .card { min-height: 0; }
  .view:not(.view-home) { padding-top: 20px; }
  .page-head { flex-wrap: wrap; }
  .page-head h1 { font-size: 22px; }
  .bm-form { grid-template-columns: 1fr; }
  .tr-grid { grid-template-columns: 1fr; }
  .tool-grid, .space-grid { grid-template-columns: 1fr; }
  .msg { max-width: 92%; }
  .plain-list > li { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .plain-list > li .cont-time { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
