/* EYDIT Resources: design system */

:root {
  --bg: #05060a;
  --bg-2: #0a0c12;
  --surface: #0e1118;
  --surface-2: #141823;
  --surface-3: #1a1f2c;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #eef1f7;
  --muted: #9aa3b5;
  --faint: #646c7e;

  --teal: #3fe0b5;
  --cyan: #3cc8e8;
  --blue: #4aa8f0;
  --violet: #8b7cf0;
  --pink: #e07ac6;
  --danger: #ff6b81;

  --grad: linear-gradient(120deg, #3fe0b5 0%, #3cb8f0 38%, #8b7cf0 72%, #e07ac6 100%);
  --grad-soft: linear-gradient(120deg, rgba(63,224,181,.16), rgba(60,184,240,.16) 40%, rgba(139,124,240,.16) 72%, rgba(224,122,198,.16));

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Sora", "Inter", system-ui, sans-serif;
  --max: 1280px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(60, 184, 240, 0.35); }

/* ---------- ambient background ---------- */
.aurora {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.aurora::before, .aurora::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.38;
}
.aurora::before {
  width: 720px; height: 520px; top: -260px; left: -120px;
  background: radial-gradient(circle at 30% 50%, #2bd6a6, #2a8fe0 60%, transparent 70%);
}
.aurora::after {
  width: 760px; height: 560px; top: -300px; right: -200px;
  background: radial-gradient(circle at 60% 50%, #7a5cf0, #d0559f 60%, transparent 70%);
  opacity: 0.28;
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 80%);
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(5, 6, 10, 0.66);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 14px rgba(60,184,240,.35)); }
.brand .word { font-size: 18px; }
.brand .pill {
  font: 600 11px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 999px; color: var(--text);
  background: var(--grad-soft); border: 1px solid var(--line-2);
}
.topbar .spacer { flex: 1; }
.nav { display: flex; gap: 8px; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  font-weight: 550; font-size: 14px; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--surface-3); border-color: rgba(255,255,255,.2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn.primary {
  border: 0; color: #041015; background: var(--grad); font-weight: 650;
  box-shadow: 0 8px 28px -10px rgba(60,184,240,.7);
}
.btn.primary:hover { filter: brightness(1.08); box-shadow: 0 10px 34px -10px rgba(139,124,240,.8); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: rgba(255,255,255,.05); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: rgba(255,107,129,.1); border-color: rgba(255,107,129,.35); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.icon { width: 40px; padding: 0; }
.btn.sm.icon { width: 34px; }

/* ---------- inputs ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.input, .textarea, .select {
  width: 100%; height: 42px; padding: 0 14px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line-2); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 92px; padding: 11px 14px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus {
  border-color: rgba(60,184,240,.6); box-shadow: 0 0 0 4px rgba(60,184,240,.12);
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); cursor: pointer; user-select: none; }
.check input { width: 17px; height: 17px; accent-color: var(--cyan); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 28px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.hero h1 {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.035em;
  font-size: clamp(36px, 6vw, 64px); line-height: 1.02; margin: 16px 0 14px; max-width: 860px;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { color: var(--muted); font-size: 17px; max-width: 600px; margin: 0; }

.searchbar {
  margin-top: 30px; position: relative; max-width: 680px;
}
.searchbar svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--faint); }
.searchbar input {
  width: 100%; height: 58px; padding: 0 70px 0 52px; border-radius: 16px; font-size: 16px;
  background: rgba(14,17,24,.8); border: 1px solid var(--line-2); outline: none;
  box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s;
}
.searchbar input:focus { border-color: rgba(60,184,240,.55); box-shadow: 0 0 0 5px rgba(60,184,240,.1), var(--shadow); }
.searchbar kbd {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font: 600 12px var(--font); color: var(--faint); border: 1px solid var(--line-2);
  border-radius: 7px; padding: 3px 8px; background: var(--surface);
}

.stats { display: flex; gap: 34px; margin-top: 34px; flex-wrap: wrap; }
.stat b { display: block; font-family: var(--display); font-size: 26px; font-weight: 650; letter-spacing: -0.02em; }
.stat span { font-size: 13px; color: var(--faint); }

/* ---------- filters ---------- */
.filters {
  display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 18px 0; border-top: 1px solid var(--line); margin-top: 8px;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 550; display: inline-flex; align-items: center; gap: 7px;
  transition: all .15s;
}
.chip:hover { color: var(--text); border-color: rgba(255,255,255,.22); }
.chip.on { color: var(--text); background: var(--grad-soft); border-color: rgba(60,184,240,.45); }
.chip .n { font-size: 11px; color: var(--faint); }
.chip.on .n { color: var(--muted); }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.seg button {
  height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent;
  color: var(--muted); font-size: 13px; font-weight: 550; cursor: pointer;
}
.seg button.on { background: var(--surface-3); color: var(--text); }
.view-toggle button { width: 34px; padding: 0; display: grid; place-items: center; }
.view-toggle svg { width: 16px; height: 16px; }

/* ---------- sections ---------- */
.section-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 26px 0 16px;
}
.section-title h2 { font-family: var(--display); font-size: 20px; font-weight: 650; letter-spacing: -0.02em; margin: 0; }
.section-title span { color: var(--faint); font-size: 13px; }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.grid.featured { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .25s;
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: 2; pointer-events: none;
  background: var(--grad); opacity: 0; transition: opacity .25s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(60,184,240,.35); }
.card:hover::before { opacity: .9; }

.cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.card:hover .cover img { transform: scale(1.04); }
.cover.gen { display: grid; place-items: center; }
.cover.gen .glyph {
  font-family: var(--display); font-weight: 750; font-size: 44px; letter-spacing: -0.04em;
  color: rgba(255,255,255,.92); text-shadow: 0 8px 30px rgba(0,0,0,.35); z-index: 1;
}
.cover.gen .ico { width: 54px; height: 54px; color: rgba(255,255,255,.92); z-index: 1; }
.cover.gen::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  font: 650 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 9px; border-radius: 8px; color: #fff;
  background: rgba(5,6,10,.62); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14);
}
.star {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; background: rgba(5,6,10,.62); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.14); color: #ffd36b;
}
.star svg { width: 14px; height: 14px; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-family: var(--display); font-size: 16.5px; font-weight: 620; letter-spacing: -0.015em; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 12.5px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.cat { color: var(--muted); font-weight: 550; }

/* list view */
.list { display: grid; gap: 10px; }
.row {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center;
  padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.015);
  transition: border-color .15s, background .15s;
}
.row:hover { border-color: rgba(60,184,240,.35); background: rgba(255,255,255,.03); }
.row .cover { aspect-ratio: 16/10; border-radius: 9px; }
.row .cover.gen .glyph { font-size: 18px; }
.row .cover.gen .ico { width: 24px; height: 24px; }
.row h3 { margin: 0 0 3px; font-size: 15px; font-weight: 600; }
.row p { margin: 0; color: var(--faint); font-size: 13px; }
.row .right { color: var(--faint); font-size: 12.5px; text-align: right; padding-right: 8px; }

/* ---------- empty / skeleton ---------- */
.empty {
  text-align: center; padding: 80px 20px; border: 1px dashed var(--line-2); border-radius: 20px; color: var(--muted);
}
.empty h3 { font-family: var(--display); color: var(--text); margin: 14px 0 6px; font-size: 20px; }
.empty .orb { width: 64px; height: 64px; margin: 0 auto; border-radius: 20px; background: var(--grad); opacity: .9; display: grid; place-items: center; color: #041015; }
.empty .orb svg { width: 28px; height: 28px; }
.skel { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.skel .c { aspect-ratio: 16/10; }
.skel .l { height: 12px; margin: 14px 18px 0; border-radius: 6px; }
.skel .l.s { width: 50%; margin-bottom: 18px; }
.skel .c, .skel .l {
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-3) 50%, var(--surface) 100%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- login ---------- */
.gate {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: var(--bg);
}
.gate .box {
  width: 100%; max-width: 420px; text-align: center; padding: 40px 34px 34px; border-radius: 24px;
  background: rgba(14,17,24,.75); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.gate .logo { width: 76px; height: 76px; margin: 0 auto 18px; filter: drop-shadow(0 0 28px rgba(60,184,240,.45)); }
.gate h1 { font-family: var(--display); font-size: 26px; letter-spacing: -0.025em; margin: 0 0 6px; }
.gate p { color: var(--muted); margin: 0 0 26px; font-size: 14.5px; }
.gate form { display: grid; gap: 12px; text-align: left; }
.gate .input { height: 50px; font-size: 15px; }
.gate .btn { height: 50px; font-size: 15px; }
.gate .err { color: var(--danger); font-size: 13px; min-height: 18px; text-align: center; }
.gate .foot { margin-top: 18px; font-size: 12px; color: var(--faint); }

/* ---------- toast ---------- */
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; }
.toast {
  padding: 12px 16px; border-radius: 12px; font-size: 14px; background: var(--surface-3);
  border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: up .25s ease;
  display: flex; align-items: center; gap: 10px;
}
.toast.err { border-color: rgba(255,107,129,.45); }
.toast .d { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.toast.err .d { background: var(--danger); }
@keyframes up { from { opacity: 0; transform: translateY(8px); } }

/* ---------- modal ---------- */
.modal-bg {
  position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px; animation: fade .2s ease;
}
.modal {
  width: 100%; max-width: 620px; max-height: calc(100vh - 40px); overflow: auto;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow);
}
.modal header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.modal header h3 { margin: 0; font-family: var(--display); font-size: 18px; }
.modal .content { padding: 22px; display: grid; gap: 16px; }
.modal footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); }
@keyframes fade { from { opacity: 0; } }

/* ---------- resource page ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 13px; padding: 28px 0 0; }
.crumbs a:hover { color: var(--text); }
.detail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 18px 0 24px; flex-wrap: wrap; }
.detail-head h1 { font-family: var(--display); font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.03em; line-height: 1.1; margin: 10px 0 0; max-width: 820px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; padding-bottom: 80px; }
.viewer {
  border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); background: #000;
  aspect-ratio: 16 / 10; position: relative; box-shadow: var(--shadow);
}
.viewer.tall { aspect-ratio: auto; height: min(80vh, 900px); }
.viewer iframe, .viewer video, .viewer img { width: 100%; height: 100%; border: 0; display: block; object-fit: contain; background: #0b0b0f; }
.viewer audio { width: calc(100% - 48px); margin: 24px; }
.viewer .nopreview { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; }
.viewer .nopreview .glyph { font-family: var(--display); font-size: 64px; font-weight: 750; letter-spacing: -0.04em; }
.viewer .nopreview p { color: rgba(255,255,255,.8); margin: 6px 0 18px; }
.viewer .fs { position: absolute; right: 12px; bottom: 12px; z-index: 3; }
.panel { border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.02); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel h4 { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); font-weight: 650; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; text-align: right; word-break: break-word; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.desc { color: var(--muted); white-space: pre-wrap; font-size: 15px; margin: 0; }

/* ---------- admin ---------- */
.drop {
  position: relative; border-radius: 22px; padding: 48px 24px; text-align: center; cursor: pointer;
  border: 1.5px dashed rgba(255,255,255,.18); background: rgba(14,17,24,.55);
  transition: border-color .2s, background .2s, transform .2s;
}
.drop:hover { border-color: rgba(60,184,240,.5); }
.drop.over { border-color: var(--cyan); background: rgba(60,200,232,.07); transform: scale(1.005); }
.drop .orb { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; background: var(--grad); display: grid; place-items: center; color: #041015; box-shadow: 0 14px 40px -12px rgba(60,184,240,.8); }
.drop .orb svg { width: 28px; height: 28px; }
.drop h3 { font-family: var(--display); font-size: 21px; margin: 0 0 6px; letter-spacing: -0.02em; }
.drop p { color: var(--muted); margin: 0; font-size: 14px; }
.drop .or { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

.drafts { display: grid; gap: 14px; margin-top: 18px; }
.draft {
  display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 16px; border-radius: 18px;
  border: 1px solid var(--line-2); background: var(--surface); animation: up .25s ease;
}
.draft .cover { border-radius: 12px; }
.draft .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.draft .fields .full { grid-column: 1 / -1; }
.draft .bar { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin-top: 10px; }
.draft .bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s; }
.draft .status { font-size: 12px; color: var(--faint); margin-top: 6px; }
.draft .row-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; padding: 0 12px 10px; }
.table td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: rgba(255,255,255,.02); }
.table .thumb { width: 72px; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; }
.table .thumb .star, .row .star { display: none; }
.table .thumb .cover.gen .glyph { font-size: 14px; }
.table .thumb .cover.gen .ico { width: 18px; height: 18px; }
.table .t { font-weight: 600; }
.table .s { color: var(--faint); font-size: 12.5px; }
.table .acts { display: flex; gap: 6px; justify-content: flex-end; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; padding: 16px 8px 6px; background: rgba(255,255,255,.015); }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--cyan); animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

footer.site { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--faint); font-size: 13px; margin-top: 60px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .detail { grid-template-columns: 1fr; }
  .viewer.tall { height: 70vh; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .topbar .wrap { height: 60px; }
  .brand .word { display: none; }
  .hide-sm { display: none !important; }
  .hero { padding: 40px 0 18px; }
  .searchbar kbd { display: none; }
  .searchbar input { padding-right: 18px; }
  .grid, .grid.featured { grid-template-columns: 1fr; }
  .row { grid-template-columns: 80px 1fr; }
  .row .right { display: none; }
  .draft { grid-template-columns: 1fr; }
  .draft .fields { grid-template-columns: 1fr; }
  .stats { gap: 22px; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters > * { min-width: 0; max-width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 18px; }
  .stat b { font-size: 21px; }
  .stat span { font-size: 11.5px; }
  .chip { flex: none; }
  .viewer { aspect-ratio: 4/3; }
}
