/* All Download – styles (matches the All PDF look) */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --card: #ffffff;
  --text: #111827;
  --muted: #5b6472;
  --faint: #8a93a1;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --primary: #2b5bd7;
  --primary-hover: #234cb8;
  --primary-soft: #eaf0fd;
  --danger: #c4321c;
  --danger-soft: #fdeceb;
  --success: #16834a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, "Noto Sans", "Noto Sans Devanagari", "Mukta", Arial, sans-serif;
  color-scheme: light;
}
/* Theme: data-theme="light" | "dark" on <html>; no attribute = follow the system */
:root[data-theme="dark"] {
  --bg: #0f1115; --bg-soft: #151821; --card: #171a21; --text: #eef0f4; --muted: #a8b0bd; --faint: #7f8896;
  --border: #262b35; --border-strong: #343a46; --primary: #5b86f0; --primary-hover: #7097f3; --primary-soft: #1d2740;
  --danger: #f07a68; --danger-soft: #3a1d1a; --success: #4cc68a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115; --bg-soft: #151821; --card: #171a21; --text: #eef0f4; --muted: #a8b0bd; --faint: #7f8896;
    --border: #262b35; --border-strong: #343a46; --primary: #5b86f0; --primary-hover: #7097f3; --primary-soft: #1d2740;
    --danger: #f07a68; --danger-soft: #3a1d1a; --success: #4cc68a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
.sprite { position: absolute; }
svg { width: 18px; height: 18px; flex: none; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1104px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); margin: 0; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }

/* ---------- top bar ---------- */
.topbar { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.topbar-inner { height: 56px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--primary); color: #fff; display: grid; place-items: center; }
.brand-mark svg { width: 20px; height: 20px; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.link-btn { background: none; border: 0; padding: 6px 2px; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.link-btn:hover { color: var(--text); }
.link-btn svg { width: 16px; height: 16px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
.lead { color: var(--muted); font-size: 17px; margin: 18px 0 0; max-width: 520px; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; color: var(--muted); }
.hero-points li { display: flex; gap: 10px; align-items: center; }
.hero-points svg { color: var(--success); width: 17px; height: 17px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.main-card h2 { font-size: 20px; margin-top: 18px; }
.main-card .muted { margin-top: 6px; font-size: 14px; }
.main-card.dragging { outline: 2px dashed var(--primary); outline-offset: 4px; }

.tile { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.tile svg { width: 22px; height: 22px; }
.tile-blue { background: #e8effd; color: #2b5bd7; }
.tile-green { background: #e5f6ec; color: #17834a; }
.tile-pink { background: #fde8f0; color: #c2185b; }
.tile-orange { background: #fdeee4; color: #d0541f; }
.tile-purple { background: #f1e9fd; color: #7c3aed; }
.tile-teal { background: #e2f5f3; color: #0f8577; }
.tile-indigo { background: #eae9fd; color: #4f46e5; }
.tile-gray { background: #eef0f3; color: #475467; }
  :root[data-theme="dark"] .tile-blue { background: #1d2740; color: #8aa9f6; } :root[data-theme="dark"] .tile-green { background: #15301f; color: #5fd394; }
  :root[data-theme="dark"] .tile-pink { background: #3a1a28; color: #f48fb1; } :root[data-theme="dark"] .tile-orange { background: #3a2417; color: #f59e6b; }
  :root[data-theme="dark"] .tile-purple { background: #2a1d3f; color: #b794f6; } :root[data-theme="dark"] .tile-teal { background: #12302d; color: #4fd1c5; }
  :root[data-theme="dark"] .tile-indigo { background: #22213f; color: #a5b4fc; } :root[data-theme="dark"] .tile-gray { background: #22262e; color: #b6bfcc; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tile-blue { background: #1d2740; color: #8aa9f6; } :root:not([data-theme="light"]) .tile-green { background: #15301f; color: #5fd394; }
  :root:not([data-theme="light"]) .tile-pink { background: #3a1a28; color: #f48fb1; } :root:not([data-theme="light"]) .tile-orange { background: #3a2417; color: #f59e6b; }
  :root:not([data-theme="light"]) .tile-purple { background: #2a1d3f; color: #b794f6; } :root:not([data-theme="light"]) .tile-teal { background: #12302d; color: #4fd1c5; }
  :root:not([data-theme="light"]) .tile-indigo { background: #22213f; color: #a5b4fc; } :root:not([data-theme="light"]) .tile-gray { background: #22262e; color: #b6bfcc; }
}

.url-form { margin-top: 20px; display: grid; gap: 12px; }
.input-wrap { position: relative; display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.input-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.input-wrap.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.input-wrap input { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); padding: 13px 12px; font-size: 15px; }
.platform-chip { margin-left: 8px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap; }
.paste-btn { border: 0; background: var(--bg-soft); color: var(--muted); margin: 5px; padding: 7px 10px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.paste-btn:hover { color: var(--text); }
.paste-btn svg { width: 15px; height: 15px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--card); padding: 9px 14px; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--bg-soft); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-block { width: 100%; padding: 13px 16px; font-size: 15px; }
.btn-sm { padding: 6px 11px; font-size: 13px; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.icon-btn { border: 0; background: transparent; color: var(--muted); padding: 6px; border-radius: 6px; display: grid; place-items: center; }
.icon-btn:hover { background: var(--bg-soft); color: var(--text); }
.hint { text-align: center; color: var(--faint); font-size: 13px; margin: 14px 0 0; }
.hint.error { color: var(--danger); }
.turnstile:not(:empty) { margin-top: 12px; display: flex; justify-content: center; }

.spinner { width: 17px; height: 17px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- results ---------- */
.card.result-card { padding: 0; overflow: hidden; margin-bottom: 40px; }
.res-head { display: grid; grid-template-columns: 240px 1fr auto; gap: 22px; padding: 22px; align-items: start; border-bottom: 1px solid var(--border); }
.res-thumb { width: 100%; aspect-ratio: 16/9; border-radius: 10px; object-fit: cover; background: var(--bg-soft); display: block; }
.res-thumb.placeholder { display: grid; place-items: center; color: var(--faint); }
.res-thumb.placeholder svg { width: 34px; height: 34px; }
.res-meta h2 { font-size: 18px; line-height: 1.35; margin-top: 6px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.res-sub { color: var(--muted); font-size: 14px; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; color: #fff; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--border); }
.pill.hd { background: var(--primary-soft); color: var(--primary); border-color: transparent; }

.items-bar { display: flex; gap: 8px; padding: 14px 22px 0; flex-wrap: wrap; }
.chip { border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--muted); }
.chip.active { background: var(--primary-soft); color: var(--primary); border-color: transparent; font-weight: 600; }

.tabs { display: flex; gap: 4px; padding: 10px 16px 0; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { border: 0; background: none; padding: 11px 12px; display: inline-flex; gap: 7px; align-items: center; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab .count { font-size: 11px; background: var(--bg-soft); border-radius: 999px; padding: 1px 7px; color: var(--muted); }
.tab-body { padding: 18px 22px 24px; }

.rows { display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: minmax(110px, 1fr) 1.2fr 110px 190px; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border: 1px solid var(--border); border-radius: 10px; }
.row:hover { border-color: var(--border-strong); }
.row .q { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.row .info { color: var(--muted); font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row .size { color: var(--muted); font-size: 13px; text-align: right; }
.row .act { display: flex; justify-content: flex-end; }
.row .act .btn { min-width: 150px; }

.progress { width: 190px; display: grid; gap: 4px; }
.progress-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); align-items: center; }
.bar { height: 6px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; border: 1px solid var(--border); }
.bar > i { display: block; height: 100%; background: var(--primary); width: 0; transition: width .4s ease; border-radius: 99px; }
.bar.indeterminate > i { width: 35% !important; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { from { margin-left: -35%; } to { margin-left: 100%; } }
.cancel-x { border: 0; background: none; color: var(--faint); padding: 0; display: grid; }
.cancel-x svg { width: 14px; height: 14px; }

.trim { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; padding: 12px 14px; background: var(--bg-soft); border-radius: 10px; font-size: 14px; }
.trim label { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); }
.trim input[type=text] { width: 92px; padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--card); color: var(--text); font: inherit; font-size: 14px; }
.trim .switch { color: var(--text); font-weight: 600; cursor: pointer; }
.trim input:disabled { opacity: .5; }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photo { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-soft); aspect-ratio: 1; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .btn { position: absolute; right: 8px; bottom: 8px; box-shadow: var(--shadow); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .muted { font-size: 14px; }

.thumb-big { max-width: 560px; }
.thumb-big img { width: 100%; border-radius: 10px; border: 1px solid var(--border); display: block; margin-bottom: 14px; }

.playlist { display: grid; gap: 6px; max-height: 520px; overflow: auto; }
.pl-row { display: grid; grid-template-columns: 34px 1fr auto auto; gap: 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; }
.pl-row .n { color: var(--faint); font-size: 13px; text-align: right; }
.pl-row .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-row .d { color: var(--muted); font-size: 13px; }

.empty { color: var(--muted); padding: 18px; text-align: center; border: 1px dashed var(--border-strong); border-radius: 10px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--primary-soft); color: var(--text); font-size: 14px; margin-bottom: 14px; }
.notice svg { color: var(--primary); margin-top: 1px; }
.notice.warn { background: var(--danger-soft); }
.notice.warn svg { color: var(--danger); }

.loading-card { padding: 28px; display: grid; grid-template-columns: 240px 1fr; gap: 22px; }
.skel { background: linear-gradient(90deg, var(--bg-soft), var(--border), var(--bg-soft)); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: 8px; }
@keyframes sh { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.skel.thumb { aspect-ratio: 16/9; }
.skel.line { height: 14px; margin-bottom: 10px; }
.error-card { padding: 26px; display: flex; gap: 14px; align-items: flex-start; }
.error-card .tile { background: var(--danger-soft); color: var(--danger); }
.error-card h3 { font-size: 17px; }
.error-card p { margin: 6px 0 0; color: var(--muted); }
.error-card .detail { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--faint); margin-top: 10px; overflow-wrap: anywhere; }

/* ---------- transcriber ---------- */
.tr-form { display: grid; gap: 14px; }
.tr-opts { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.field select { font: inherit; font-size: 14px; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--card); color: var(--text); min-width: 180px; }
.dropzone { border: 1.5px dashed var(--border-strong); border-radius: 12px; padding: 26px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--primary); background: var(--primary-soft); }
.dropzone svg { width: 26px; height: 26px; color: var(--primary); }
.dropzone b { color: var(--text); display: block; margin-top: 6px; }
.tr-status { font-size: 14px; color: var(--muted); display: grid; gap: 8px; }
.tr-status .bar { max-width: 420px; }
.tr-out { display: grid; gap: 12px; }
.tr-out textarea { width: 100%; min-height: 220px; resize: vertical; padding: 14px; border-radius: 10px; border: 1px solid var(--border-strong); font: inherit; font-size: 15px; line-height: 1.6; background: var(--card); color: var(--text); }
.tr-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-note { font-size: 13px; color: var(--faint); margin: 0; }
.section-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.section-head > div { flex: 1; }
.section-head h2 { font-size: 19px; }

/* ---------- tools grid ---------- */
.tools { padding-top: 8px; padding-bottom: 32px; }
.section-title { font-size: 21px; font-weight: 700; margin-bottom: 18px; }
.group-label { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 0 14px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tool { display: flex; gap: 14px; align-items: flex-start; text-align: left; border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); padding: 18px; min-height: 112px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tool:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.tool b { display: block; font-size: 15px; margin-top: 1px; }
.tool small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.45; }
.tool .tile { width: 42px; height: 42px; }
.site-dot { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.site-dot svg { width: 21px; height: 21px; }

/* ---------- faq / footer ---------- */
.faq { padding-bottom: 48px; max-width: 1104px; }
.faq details { border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; background: var(--card); }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { color: var(--muted); margin: 10px 0 0; }
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); color: var(--muted); font-size: 13.5px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.foot-note { display: inline-flex; gap: 8px; align-items: center; }
.foot-note svg { width: 16px; height: 16px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #111827; color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow); z-index: 60; max-width: calc(100vw - 32px); }
.drop-overlay { position: fixed; inset: 0; background: rgba(43, 91, 215, .12); backdrop-filter: blur(2px); z-index: 50; display: grid; place-items: center; pointer-events: none; }
.drop-overlay > div { background: var(--card); padding: 28px 36px; border-radius: 14px; border: 2px dashed var(--primary); text-align: center; color: var(--primary); font-weight: 600; }
.drop-overlay svg { width: 30px; height: 30px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 34px; padding-bottom: 36px; }
  .res-head { grid-template-columns: 180px 1fr; }
  .res-head .res-close { grid-column: 2; justify-self: start; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .card { padding: 20px; }
  .grid { grid-template-columns: 1fr; }
  .tool { min-height: 0; }
  .res-head { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .paste-btn span { display: none; }
  .res-head .res-close { grid-column: 1; }
  .loading-card { grid-template-columns: 1fr; }
  .tab-body { padding: 14px 14px 18px; }
  .row { grid-template-columns: 1fr auto; grid-template-areas: "q act" "info act"; row-gap: 2px; }
  .row .q { grid-area: q; } .row .info { grid-area: info; } .row .size { display: none; } .row .act { grid-area: act; }
  .row .act .btn { min-width: 0; }
  .progress { width: 140px; }
  .photos { grid-template-columns: repeat(2, 1fr); }
  .pl-row { grid-template-columns: 1fr auto; } .pl-row .n, .pl-row .d { display: none; }
  .top-actions { gap: 10px; }
  #installBtn span, #themeBtn span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- simple pages ---------- */
.page { padding-top: 48px; padding-bottom: 64px; max-width: 760px; }
.page h1 { font-size: 32px; margin-bottom: 8px; }
.prose h2 { font-size: 19px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 20px; }
.brand-mark img { width: 32px; height: 32px; border-radius: 8px; display: block; }
.status-banner { margin: 14px 0 0; font-size: 13px; }

/* theme toggle button */
.theme-btn svg { width: 17px; height: 17px; }

/* ---------- phones & small tablets: title -> paste box -> description ---------- */
@media (max-width: 980px) {
  .hero { gap: 18px; }
  .hero-text { display: contents; }          /* lets its parts be re-ordered around the card */
  .hero h1 { order: 1; }
  .main-card { order: 2; }
  .hero .lead { order: 3; margin-top: 4px; }
  .hero-points { order: 4; margin-top: 0; }
}
@media (max-width: 640px) {
  .hero { padding-top: 22px; padding-bottom: 28px; gap: 16px; }
  .hero h1 { font-size: 28px; }
  .lead { font-size: 15.5px; }
  .hero-points { gap: 6px; font-size: 14.5px; }
  .main-card { padding: 18px; }
  .main-card > .tile, .main-card > h2 + .muted { display: none; }   /* no big icon / repeated sub-text */
  .main-card h2 { margin-top: 0; font-size: 18px; }
  .url-form { margin-top: 12px; }
  .input-wrap input { font-size: 16px; padding: 14px 10px; }        /* 16px: iPhone won't zoom the page */
  .paste-btn { padding: 9px 12px; }
  .paste-btn span { display: inline; }
  .btn-block { padding: 14px 16px; font-size: 16px; }
  .hint { margin-top: 10px; }
  .section-title { font-size: 19px; }
  /* supported sites: 2 compact columns */
  #siteGrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  #siteGrid .tool { padding: 12px; gap: 10px; align-items: center; min-height: 0; }
  #siteGrid .tool small { display: none; }
  #siteGrid .tool b { font-size: 14px; }
  #siteGrid .site-dot { width: 34px; height: 34px; }
  #siteGrid .site-dot svg { width: 18px; height: 18px; }
  .toast { bottom: calc(16px + env(safe-area-inset-bottom)); }
}
