:root {
  --bg: #07101d;
  --bg-2: #0b1526;
  --panel: rgba(16, 28, 47, .82);
  --panel-solid: #111f34;
  --panel-hover: #172944;
  --line: rgba(148, 178, 216, .14);
  --line-strong: rgba(148, 178, 216, .25);
  --text: #f5f8ff;
  --muted: #96a8c2;
  --muted-2: #70849f;
  --cyan: #62ddff;
  --cyan-2: #2fb9ff;
  --green: #65e6a6;
  --amber: #ffc96b;
  --violet: #b595ff;
  --danger: #ff7a8c;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .28);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK", "Noto Sans TC", sans-serif;
}

* { box-sizing: border-box; }
html { width: 100%; max-width: 100%; overflow-x: hidden; background: var(--bg); -webkit-text-size-adjust: 100%; touch-action: pan-y; }
body { margin: 0; min-width: 0; width: 100%; max-width: 100vw; min-height: 100dvh; overflow-x: clip; background: radial-gradient(circle at 70% -10%, rgba(52, 147, 255, .13), transparent 34%), linear-gradient(180deg, #07101d 0%, #091425 100%); color: var(--text); touch-action: pan-y; overscroll-behavior-x: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(98, 221, 255, .42); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ambient { position: fixed; pointer-events: none; filter: blur(90px); opacity: .2; border-radius: 50%; z-index: 0; }
.ambient-a { width: 320px; height: 320px; background: #226dff; top: 10vh; right: -130px; }
.ambient-b { width: 240px; height: 240px; background: #13d4b3; bottom: 8vh; left: 16vw; opacity: .1; }

.app-shell { position: relative; z-index: 1; display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100dvh; max-width: 1800px; margin: 0 auto; }
.sidebar { position: sticky; top: 0; height: 100dvh; padding: 28px 18px 24px; border-right: 1px solid var(--line); background: rgba(6, 15, 28, .76); backdrop-filter: blur(18px); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 28px; }
.brand-mark { width: 43px; height: 43px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, #51dfff, #397bff); color: #04101e; font-weight: 900; box-shadow: 0 12px 32px rgba(50, 164, 255, .28); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; letter-spacing: .02em; }
.brand small { margin-top: 4px; color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.side-nav { display: grid; gap: 7px; }
.nav-item { min-height: 48px; padding: 0 14px; border: 1px solid transparent; border-radius: 14px; background: transparent; color: var(--muted); display: flex; align-items: center; gap: 12px; cursor: pointer; text-align: left; }
.nav-item > span:first-child { width: 22px; color: #7f9bbd; font-size: 18px; }
.nav-item:hover { background: rgba(255,255,255,.035); color: var(--text); }
.nav-item.is-active { background: linear-gradient(90deg, rgba(46, 178, 255, .16), rgba(64, 127, 255, .08)); border-color: rgba(81, 202, 255, .18); color: var(--text); }
.nav-item.is-active > span:first-child { color: var(--cyan); }
.mini-badge { margin-left: auto; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 20px; display: grid; place-items: center; background: var(--cyan); color: #04101e; font-size: 11px; font-weight: 900; }
.sidebar-foot { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.legend { display: flex; gap: 9px; align-items: center; color: var(--muted-2); font-size: 11px; line-height: 1.35; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.status-dot.live { background: var(--green); box-shadow: 0 0 10px rgba(101, 230, 166, .4); }
.status-dot.paused { background: var(--danger); }
.status-dot.verified { background: var(--green); box-shadow: 0 0 10px rgba(101, 230, 166, .4); }
.status-dot.unchecked { background: var(--amber); }
.status-dot.local { background: #70839c; }

.main { min-width: 0; padding: 0 36px 42px; }
.topbar { position: sticky; top: 0; z-index: 12; min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; background: linear-gradient(180deg, rgba(7, 16, 29, .96), rgba(7, 16, 29, .76) 75%, transparent); backdrop-filter: blur(12px); }
.search-wrap { flex: 1; max-width: 620px; height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(15, 28, 47, .76); }
.search-wrap > span { color: #7f99b8; font-size: 24px; transform: rotate(-12deg); }
.search-wrap input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.search-wrap input::placeholder { color: #657b98; }
kbd { border: 1px solid var(--line-strong); border-bottom-color: rgba(255,255,255,.3); background: #10213a; color: #8fa7c4; border-radius: 7px; padding: 2px 7px; font-size: 11px; }
.top-actions, .hero-actions, .dialog-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { width: 45px; height: 45px; border: 1px solid var(--line); border-radius: 14px; background: rgba(15, 28, 47, .86); display: grid; place-items: center; cursor: pointer; font-size: 20px; }
.icon-button:hover { background: var(--panel-hover); border-color: var(--line-strong); }
.inbox-button { position: relative; }
.notification-badge { position: absolute; right: -5px; top: -6px; min-width: 20px; height: 20px; padding: 0 5px; border: 2px solid var(--bg); border-radius: 20px; background: #ff5f78; color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 900; }
.primary-button, .secondary-button, .danger-ghost { min-height: 44px; border-radius: 13px; padding: 0 16px; border: 1px solid transparent; display: inline-flex; justify-content: center; align-items: center; gap: 8px; cursor: pointer; font-weight: 750; }
.primary-button { background: linear-gradient(135deg, #5be0ff, #4c91ff); color: #04101e; box-shadow: 0 10px 28px rgba(49, 155, 255, .2); }
.primary-button:hover { filter: brightness(1.06); }
.primary-button.compact { min-height: 45px; padding-inline: 15px; }
.secondary-button { background: rgba(255,255,255,.035); border-color: var(--line); color: #d7e4f5; }
.secondary-button:hover { background: rgba(255,255,255,.065); }
.danger-ghost { background: transparent; border-color: rgba(255,122,140,.22); color: #ff9aaa; }
.text-button { padding: 3px 4px; border: 0; background: transparent; color: var(--cyan); cursor: pointer; font-size: 12px; }

.hero { min-height: 360px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 38px; align-items: center; margin-top: 14px; padding: 46px 48px; border: 1px solid rgba(101, 196, 255, .13); border-radius: 30px; overflow: hidden; background: linear-gradient(120deg, rgba(16, 31, 52, .96), rgba(13, 28, 49, .76)), radial-gradient(circle at 78% 30%, rgba(64, 161, 255, .25), transparent 42%); box-shadow: var(--shadow); position: relative; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px); background-size: 30px 30px; mask-image: linear-gradient(90deg, transparent 15%, #000 70%); }
.hero > * { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 9px; color: var(--cyan); font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { max-width: 650px; margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: .98; letter-spacing: -.045em; text-wrap: balance; overflow-wrap: break-word; }
.hero-copy { max-width: 650px; margin: 20px 0 26px; color: #a9bad0; font-size: 15px; line-height: 1.75; }
.helper-text { margin: 12px 0 0; color: var(--muted-2); font-size: 11px; }
.account-panel { max-width: 610px; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(7, 19, 34, .46); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.account-panel[hidden] { display: none !important; }
.account-label { display: block; color: var(--muted-2); font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.account-panel strong { display: block; margin-top: 3px; font-size: 12px; color: #cfe1f4; }
.account-controls { display: flex; align-items: center; gap: 8px; min-width: 0; }
#googleLoginButton { min-height: 32px; }
.hero-orbit { height: 280px; display: grid; place-items: center; position: relative; }
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; border: 1px solid rgba(105, 203, 255, .18); border-radius: 50%; }
.hero-orbit::before { width: 250px; height: 250px; }
.hero-orbit::after { width: 178px; height: 178px; border-style: dashed; opacity: .6; }
.orbit-core { width: 130px; height: 130px; border-radius: 36px; display: grid; place-content: center; text-align: center; background: linear-gradient(145deg, rgba(66, 192, 255, .2), rgba(76, 89, 255, .15)); border: 1px solid rgba(100, 212, 255, .26); box-shadow: inset 0 0 50px rgba(65, 177, 255, .08), 0 20px 60px rgba(0,0,0,.25); backdrop-filter: blur(8px); }
.orbit-core span { color: #92a9c3; font-size: 10px; letter-spacing: .16em; font-weight: 900; }
.orbit-core strong { margin-top: 2px; font-size: 38px; letter-spacing: -.04em; }
.orbit-chip { position: absolute; min-width: 46px; height: 28px; padding: 0 10px; border: 1px solid rgba(119, 197, 255, .24); border-radius: 20px; background: #112039; color: #a8dfff; display: grid; place-items: center; font-size: 9px; font-weight: 900; letter-spacing: .1em; box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.chip-a { top: 17px; left: 48%; }
.chip-b { bottom: 45px; left: 16%; }
.chip-c { right: 9%; bottom: 82px; color: var(--green); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0 40px; }
.stat-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(15, 28, 47, .68); display: flex; align-items: center; gap: 13px; }
.stat-icon { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; font-weight: 900; }
.stat-icon.cyan { background: rgba(72, 203, 255, .11); color: var(--cyan); }
.stat-icon.green { background: rgba(72, 226, 150, .1); color: var(--green); }
.stat-icon.amber { background: rgba(255, 195, 91, .1); color: var(--amber); }
.stat-icon.violet { background: rgba(173, 137, 255, .11); color: var(--violet); }
.stat-card strong, .stat-card span { display: block; }
.stat-card strong { font-size: 21px; letter-spacing: -.02em; }
.stat-card div > span { margin-top: 2px; color: var(--muted-2); font-size: 11px; }

.directory { padding-bottom: 18px; scroll-margin-top: 90px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; margin-bottom: 18px; }
.section-head h2, .drawer-head h2, .dialog-head h2 { margin: 0; font-size: 26px; letter-spacing: -.025em; }
.directory-tools { display: flex; gap: 10px; }
.select-wrap { height: 42px; padding: 0 9px 0 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted-2); background: rgba(15, 28, 47, .76); display: flex; align-items: center; gap: 7px; font-size: 10px; }
.select-wrap select { border: 0; outline: 0; background: transparent; color: #d9e5f4; font-size: 12px; }
.select-wrap option { background: #12213a; }
.category-strip { display: flex; gap: 8px; overflow: hidden; padding-bottom: 2px; }
.category-chip { flex: 0 0 auto; min-height: 35px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); color: var(--muted); cursor: pointer; font-size: 12px; }
.category-chip:hover, .category-chip.is-active { border-color: rgba(82, 209, 255, .28); background: rgba(62, 184, 255, .1); color: #dff8ff; }
.result-line { min-height: 36px; display: flex; align-items: center; gap: 10px; color: var(--muted-2); font-size: 11px; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.app-card { min-width: 0; min-height: 245px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(18, 33, 55, .88), rgba(12, 25, 43, .84)); display: flex; flex-direction: column; position: relative; overflow: hidden; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.app-card:hover { transform: translateY(-2px); border-color: rgba(107, 193, 244, .25); background: linear-gradient(145deg, rgba(22, 41, 68, .96), rgba(14, 30, 51, .92)); }
.app-card::after { content: ""; position: absolute; width: 130px; height: 130px; top: -74px; right: -74px; background: radial-gradient(circle, rgba(73, 184, 255, .12), transparent 65%); pointer-events: none; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.app-icon { width: 48px; height: 48px; border: 1px solid rgba(102, 198, 255, .16); border-radius: 15px; background: linear-gradient(145deg, rgba(52, 156, 255, .16), rgba(116, 89, 255, .08)); color: #bfefff; display: grid; place-items: center; font-weight: 900; font-size: 17px; }
.card-menu { width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: #7890ad; cursor: pointer; font-size: 18px; }
.card-menu:hover { background: rgba(255,255,255,.05); color: var(--text); }
.app-card h3 { margin: 16px 0 7px; font-size: 17px; line-height: 1.25; letter-spacing: -.015em; }
.app-card p { margin: 0; color: #8fa2bc; font-size: 12px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.meta-pill { height: 25px; padding: 0 8px; border-radius: 8px; background: rgba(255,255,255,.035); color: #7f94af; display: inline-flex; align-items: center; font-size: 10px; }
.status-pill { height: 25px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 750; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.status-pill.verified-url { background: rgba(69, 222, 148, .09); color: #8aebba; }
.status-pill.verified-url::before { background: var(--green); }
.status-pill.live { background: rgba(69, 222, 148, .11); color: #9af0c6; }
.status-pill.live::before { background: var(--green); box-shadow: 0 0 8px rgba(101,230,166,.45); }
.status-pill.paused { background: rgba(255, 122, 140, .09); color: #ff9aaa; }
.status-pill.paused::before { background: var(--danger); }
.status-pill.unchecked-url { background: rgba(255, 195, 91, .09); color: #ffd990; }
.status-pill.unchecked-url::before { background: var(--amber); }
.status-pill.local { background: rgba(127, 148, 178, .09); color: #9eb0c8; }
.status-pill.local::before { background: #8395ad; }
.card-foot { margin-top: 14px; padding-top: 13px; border-top: 1px solid rgba(148, 178, 216, .09); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.created-date { color: #6f84a0; font-size: 10px; }
.open-link { min-height: 31px; padding: 0 10px; border-radius: 9px; border: 1px solid rgba(89, 194, 255, .17); background: rgba(65, 175, 255, .07); color: #8edfff; display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; }
.open-link.disabled { border-color: transparent; background: rgba(255,255,255,.025); color: #667a94; cursor: default; }
.empty-state { padding: 70px 20px; text-align: center; color: var(--muted-2); }
.empty-state > span { display: block; font-size: 42px; }
.empty-state strong { display: block; margin-top: 12px; color: #c8d6e8; }
.empty-state p { margin: 6px 0 0; font-size: 12px; }
.footer { min-height: 72px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 14px; color: #5f738e; font-size: 10px; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(1, 7, 14, .55); backdrop-filter: blur(3px); }
.release-drawer { position: fixed; z-index: 31; top: 0; right: 0; width: min(440px, 100vw); height: 100dvh; padding: max(22px, env(safe-area-inset-top)) 20px max(22px, env(safe-area-inset-bottom)); border-left: 1px solid var(--line); background: rgba(8, 18, 32, .98); box-shadow: -24px 0 80px rgba(0,0,0,.35); transform: translateX(105%); transition: transform .22s ease; display: flex; flex-direction: column; overflow: hidden; }
.release-drawer.is-open { transform: translateX(0); }
.drawer-head, .dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.drawer-actions { min-height: 54px; margin-top: 12px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted-2); font-size: 10px; }
.announcement-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 2px 20px; }
.announcement { padding: 16px 10px 16px 16px; border-bottom: 1px solid var(--line); position: relative; }
.announcement.is-unread::before { content: ""; position: absolute; left: 0; top: 22px; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.announcement time { color: var(--muted-2); font-size: 9px; }
.announcement h3 { margin: 6px 0 7px; font-size: 14px; }
.announcement p { margin: 0; color: #8da1bb; font-size: 11px; line-height: 1.65; }
.announcement a { display: inline-flex; margin-top: 10px; color: var(--cyan); font-size: 10px; font-weight: 800; }

.editor-dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid var(--line-strong); border-radius: 24px; background: #0d1a2d; color: var(--text); box-shadow: 0 30px 100px rgba(0,0,0,.5); overflow: auto; }
.editor-dialog::backdrop { background: rgba(2,8,16,.68); backdrop-filter: blur(4px); }
.editor-dialog form { padding: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 22px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > span { color: #9cafc7; font-size: 11px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #0a1627; color: var(--text); padding: 11px 12px; outline: 0; resize: vertical; }
.field input, .field select { min-height: 43px; }
.field select option { background: #0a1627; }
.form-note { margin: 16px 0 20px; color: var(--muted-2); font-size: 10px; line-height: 1.6; }
.form-note code { color: #a6dfff; }
.dialog-actions { padding-top: 18px; border-top: 1px solid var(--line); }
.spacer { flex: 1; }

.toast { position: fixed; z-index: 60; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: min(440px, calc(100vw - 28px)); padding: 11px 15px; border: 1px solid rgba(123, 201, 255, .22); border-radius: 13px; background: #132541; color: #dcebfa; box-shadow: 0 18px 50px rgba(0,0,0,.35); font-size: 11px; text-align: center; }
.mobile-nav { display: none; }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .main { padding-inline: 24px; }
  .hero { padding-inline: 34px; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .app-shell { display: block; min-height: auto; }
  .sidebar { display: none; }
  .main { width: 100%; max-width: 100vw; padding: 0 14px 20px; }
  .topbar { min-height: 70px; gap: 8px; padding-block: 10px; }
  .search-wrap { height: 44px; min-width: 0; }
  .desktop-only { display: none; }
  .top-actions { gap: 7px; }
  .top-actions .compact { width: 44px; padding: 0; font-size: 0; }
  .top-actions .compact span { font-size: 18px; }
  .icon-button { width: 42px; height: 42px; border-radius: 12px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 20px; padding: 28px 22px; border-radius: 24px; margin-top: 5px; }
  .hero h1 { font-size: clamp(34px, 9.4vw, 46px); line-height: 1.03; }
  .hero-copy { margin-top: 16px; font-size: 13px; }
  .hero-orbit { display: none; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .helper-text { line-height: 1.5; }
  .account-panel { align-items: flex-start; flex-direction: column; }
  .account-controls { width: 100%; flex-wrap: wrap; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 30px; }
  .stat-card { padding: 13px; border-radius: 15px; }
  .stat-icon { width: 34px; height: 34px; }
  .stat-card strong { font-size: 18px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 13px; }
  .directory-tools { width: 100%; }
  .select-wrap { flex: 1; justify-content: space-between; min-width: 0; }
  .category-strip { width: calc(100vw - 28px); overflow-x: auto; scrollbar-width: none; padding-right: 14px; }
  .category-strip::-webkit-scrollbar { display: none; }
  .app-grid { grid-template-columns: 1fr; gap: 10px; }
  .app-card { min-height: 222px; border-radius: 18px; }
  .footer { flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 20px; }
  .mobile-nav { position: fixed; z-index: 20; left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); height: 62px; padding: 6px 10px; border: 1px solid rgba(154, 194, 231, .18); border-radius: 19px; background: rgba(10, 22, 38, .94); backdrop-filter: blur(18px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; box-shadow: 0 16px 45px rgba(0,0,0,.35); }
  .mobile-nav-item { min-width: 0; border: 0; border-radius: 13px; background: transparent; color: #7187a3; display: grid; place-content: center; gap: 2px; cursor: pointer; }
  .mobile-nav-item > span { position: relative; font-size: 18px; }
  .mobile-nav-item small { font-size: 9px; white-space: nowrap; }
  .mobile-nav-item.is-active { color: var(--cyan); background: rgba(72, 189, 255, .08); }
  .mobile-inbox-icon i { position: absolute; top: -7px; right: -12px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 20px; background: #ff6078; color: white; display: grid; place-items: center; font-style: normal; font-size: 8px; }
  .release-drawer { width: 100vw; border-left: 0; }
  .editor-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 20px; }
  .editor-dialog form { padding: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .dialog-actions { flex-wrap: wrap; }
}

@media (max-width: 390px) {
  .main { padding-inline: 10px; }
  .search-wrap { padding-inline: 10px; }
  .top-actions .inbox-button { display: none; }
  .hero { padding: 24px 18px; }
  .hero h1 { font-size: 34px; line-height: 1.05; }
  .category-strip { width: calc(100vw - 20px); }
  .directory-tools { flex-direction: column; }
  .select-wrap { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
