:root {
  --bg: #0f0f10; --bg2: #17171a; --bg3: #222227; --line: #2c2c33;
  --text: #f1f1f3; --muted: #a0a0ab; --accent: #ff2d2d; --accent2: #ff5a3c;
  --green: #22c55e; --amber: #f59e0b; --radius: 12px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; display: flex; flex-direction: column; font-size: 15px; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
p a, .muted a, .center a { color: var(--accent2); }
img { display: block; max-width: 100%; }
h1 { font-size: 1.6rem; margin: 0 0 .4rem; }
.h2 { font-size: 1.35rem; margin: 0; }
.h3 { font-size: 1.1rem; margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.strong { font-weight: 700; }
code { background: var(--bg3); padding: 1px 6px; border-radius: 6px; }
svg { fill: currentColor; }
.ico { width: 18px; height: 18px; flex: none; }
.ico-lg { width: 40px; height: 40px; }
[hidden] { display: none !important; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px 20px;
  background: rgba(15,15,16,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; white-space: nowrap; }
.brand-icon { width: 34px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: grid; place-items: center; }
.brand-icon svg { width: 18px; height: 18px; fill: #fff; }
.search { flex: 1; max-width: 560px; margin: 0 auto; display: flex; }
.search input { flex: 1; min-width: 0; background: var(--bg2); border: 1px solid var(--line); border-right: 0; color: var(--text);
  padding: 9px 16px; border-radius: 999px 0 0 999px; font-size: .95rem; outline: none; }
.search input:focus { border-color: #4a4a55; }
.search button { width: 56px; background: var(--bg3); border: 1px solid var(--line); border-radius: 0 999px 999px 0; color: var(--text); cursor: pointer; }
.search button svg { width: 20px; height: 20px; }
.nav { display: flex; align-items: center; gap: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; white-space: nowrap; transition: filter .15s, background .15s; }
.btn:hover { filter: brightness(1.1); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-white { background: #f1f1f1; color: #0f0f0f; }
.btn-white:hover { color: #000; }
.btn-muted { background: var(--bg3); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-block { width: 100%; padding: 12px; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: .82rem; padding: 0; }
.link-btn:hover { color: var(--text); text-decoration: underline; }
.link-btn.danger:hover { color: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--bg3); border: 0; color: var(--text); padding: 8px 14px;
  border-radius: 999px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.pill:hover { background: #2e2e35; }
.pill.on { background: #fff; color: #111; }
.pill-accent { background: rgba(255,45,45,.14); color: #ff7b7b; }
.pill-accent:hover { background: rgba(255,45,45,.24); }
.inline { display: inline; }

/* Account menu */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 44px; width: 220px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.menu-head { display: flex; flex-direction: column; padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-panel a, .menu-panel button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; background: none; border: 0;
  color: var(--text); font: inherit; cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--bg3); }

/* Avatars */
.avatar { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; flex: none; text-transform: uppercase; }
.avatar-sm { width: 32px; height: 32px; font-size: .75rem; }
.avatar-md { width: 36px; height: 36px; font-size: .8rem; }
.avatar-lg { width: 44px; height: 44px; font-size: .95rem; }
.avatar-xl { width: 110px; height: 110px; font-size: 2.3rem; border: 4px solid var(--bg); }

/* Layout */
.page { flex: 1; width: 100%; max-width: 1680px; margin: 0 auto; padding: 20px 24px 40px; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 18px 24px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.footer strong { color: var(--text); }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: .92rem; border: 1px solid; }
.flash-success { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.35); color: #86efac; }
.flash-error { background: rgba(255,45,45,.1); border-color: rgba(255,45,45,.4); color: #fca5a5; }
.flash-info { background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.35); color: #93c5fd; }
.empty { text-align: center; padding: 60px 20px; }
.empty.small { padding: 24px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; background: var(--bg3); color: var(--muted); vertical-align: middle; }
.tag-green { background: rgba(34,197,94,.15); color: #4ade80; }
.tag-amber { background: rgba(245,158,11,.15); color: #fbbf24; }
.tag-red { background: rgba(255,45,45,.15); color: #ff7b7b; }

/* Feed */
.feed-head { margin-bottom: 18px; }
.chips { display: flex; gap: 8px; overflow-x: auto; }
.chip { padding: 7px 14px; border-radius: 8px; background: var(--bg3); font-size: .9rem; font-weight: 600; white-space: nowrap; }
.chip.active { background: #f1f1f1; color: #0f0f0f; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px 18px; }
.card { min-width: 0; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg3); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.card:hover .thumb img { transform: scale(1.03); }
.thumb-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #3a1d1d, #1b1b22); }
.thumb-fallback svg { width: 48px; opacity: .6; }
.duration { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.82); color: #fff; font-size: .75rem; font-weight: 600; padding: 2px 6px; border-radius: 5px; }
.card-meta { display: flex; gap: 12px; margin-top: 12px; }
.card-text { display: flex; flex-direction: column; min-width: 0; }
.card-title { font-weight: 600; font-size: 1rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-creator { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.card-creator:hover { color: var(--text); }
.card-stats { color: var(--muted); font-size: .85rem; }

/* Auth / forms */
.auth { max-width: 420px; margin: 30px auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 30px; }
.panel { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 20px; min-width: 0; }
.panel.narrow { max-width: 680px; margin: 10px auto; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.panel-head .h3 { margin: 0; }
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.form label .muted { font-weight: 400; }
input, textarea { font: inherit; }
.form input:not([type=radio]):not([type=file]), .form textarea, .comment-form textarea {
  background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 11px 13px; font-weight: 400; outline: none; }
.form input:focus, .form textarea:focus, .comment-form textarea:focus { border-color: var(--accent); }
.form input[type=file] { color: var(--muted); font-weight: 400; }
.demo-hint { text-align: center; font-size: .85rem; color: var(--muted); margin-bottom: 0; }
.drop { position: relative; border: 2px dashed #3a3a44; border-radius: 14px; padding: 28px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.drag { border-color: var(--accent); background: rgba(255,45,45,.05); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-inner { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.progress { position: relative; height: 28px; background: var(--bg3); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .2s; }
.progress-label { position: absolute; inset: 0; display: grid; place-items: center; font-size: .82rem; font-weight: 600; }

/* Watch page */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; max-width: 1600px; margin: 0 auto; }
.player-wrap { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.player-wrap video { width: 100%; height: 100%; display: block; background: #000; }
.preroll { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 16px;
  background: radial-gradient(circle at 30% 20%, rgba(255,45,45,.35), transparent 55%), linear-gradient(135deg, #1a1a1f, #0b0b0d); }
.preroll-badge { align-self: flex-start; background: #fbbf24; color: #111; font-weight: 800; font-size: .75rem; padding: 3px 9px; border-radius: 5px; text-transform: uppercase; letter-spacing: .04em; }
.preroll-body { text-align: center; max-width: 520px; margin: 0 auto; }
.preroll-body p { color: #d4d4d8; margin: 8px 0 16px; }
.preroll-title { font-size: clamp(1.4rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; }
.preroll-foot { display: flex; justify-content: space-between; align-items: center; min-height: 36px; }
.preroll-count { background: rgba(0,0,0,.6); padding: 6px 12px; border-radius: 6px; font-size: .85rem; }
.preroll-skip { background: rgba(0,0,0,.75); color: #fff; border: 1px solid #555; padding: 8px 16px; border-radius: 6px; font: inherit; font-weight: 600; cursor: pointer; margin-left: auto; }
.preroll-skip:disabled { opacity: .5; cursor: default; }
.watch-title { font-size: 1.3rem; margin: 14px 0 10px; line-height: 1.3; }
.watch-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.creator-row { display: flex; align-items: center; gap: 12px; }
.creator-name { font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.description { background: var(--bg2); border-radius: var(--radius); padding: 12px 14px; margin-top: 14px; font-size: .92rem; }
.desc-stats { margin-bottom: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.desc-body { white-space: pre-wrap; color: #d4d4d8; }
.ad-banner { margin-top: 14px; border: 1px dashed #3a3a44; border-radius: var(--radius); padding: 12px 14px; font-size: .88rem; color: var(--muted); }
.comments { margin-top: 24px; }
.comment-form { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.comment-form textarea { flex: 1; resize: vertical; min-height: 42px; }
.comment { display: flex; gap: 12px; margin-bottom: 18px; }
.comment-body p { margin: 3px 0 4px; white-space: pre-wrap; word-break: break-word; }
.watch-side .h3 { margin-top: 0; }
.side-card { display: flex; gap: 10px; margin-bottom: 12px; }
.thumb-sm { width: 168px; flex: none; border-radius: 8px; }
.side-text { display: flex; flex-direction: column; min-width: 0; }
.side-text .card-title { font-size: .92rem; }
.side-text .card-creator, .side-text .card-stats { font-size: .8rem; margin-top: 2px; }

/* Dialog */
.dialog { background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 24px; width: min(440px, 92vw); }
.dialog::backdrop { background: rgba(0,0,0,.65); }
.dialog .form { margin-top: 0; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.amount input { position: absolute; opacity: 0; }
.amount span { display: block; text-align: center; padding: 10px 0; border-radius: 10px; background: var(--bg3); font-weight: 700; cursor: pointer; border: 2px solid transparent; }
.amount input:checked + span { border-color: var(--accent); background: rgba(255,45,45,.14); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Channel */
.channel-banner { height: 170px; border-radius: 16px; background:
  radial-gradient(circle at 80% 30%, rgba(255,255,255,.12), transparent 40%),
  linear-gradient(120deg, var(--c, #e53935), #1a1a1f 75%); }
.channel-head { display: flex; align-items: flex-start; gap: 20px; padding: 0 20px; flex-wrap: wrap; }
.channel-head > .avatar-xl { margin-top: -44px; }
.channel-info { flex: 1; min-width: 220px; padding-top: 14px; }
.channel-info h1 { margin: 0 0 4px; font-size: 1.8rem; }
.channel-bio { color: #d4d4d8; max-width: 720px; margin: 8px 0 0; white-space: pre-wrap; }
.channel-actions { padding-top: 20px; }
.section-title { margin: 30px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }

/* Studio */
.studio-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.row-gap { display: flex; gap: 8px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.kpi-label { color: var(--muted); font-size: .82rem; font-weight: 600; }
.kpi-value { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.kpi-accent { background: linear-gradient(135deg, rgba(255,45,45,.22), rgba(255,90,60,.08)); border-color: rgba(255,45,45,.35); }
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.studio-grid > .panel { margin-bottom: 20px; }
.meter { margin: 12px 0; }
.meter-top { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 6px; }
.bar { height: 8px; background: var(--bg3); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 999px; }
.model { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.model > div { background: var(--bg); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: .88rem; }
.model .muted { font-size: .78rem; }
.balance { display: flex; flex-direction: column; margin-bottom: 8px; }
.balance-value { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; }
.breakdown { list-style: none; padding: 0; margin: 0 0 16px; font-size: .9rem; }
.breakdown li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); color: #d4d4d8; }
.note { font-size: .82rem; color: #fcd34d; background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.25); border-radius: 10px; padding: 10px 12px; margin: 12px 0; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tfoot td { font-weight: 700; border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.table.compact td, .table.compact th { padding: 6px 8px; }
.vid-cell { display: flex; align-items: center; gap: 12px; min-width: 260px; }
.vid-cell > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.vid-title { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thumb-xs { width: 112px; flex: none; border-radius: 8px; }
.tip-row { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.tip-row > strong { color: #4ade80; min-width: 56px; }

/* Responsive */
@media (max-width: 1100px) {
  .watch { grid-template-columns: 1fr; }
  .studio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .topbar { padding: 8px 12px; gap: 10px; flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .nav { margin-left: auto; }
  .hide-sm { display: none; }
  .page { padding: 14px 12px 30px; }
  .grid { grid-template-columns: 1fr; gap: 22px; }
  .player-wrap { margin: -14px -12px 0; border-radius: 0; }
  .thumb-sm { width: 140px; }
  .model { grid-template-columns: 1fr; }
  .channel-banner { height: 110px; }
  .avatar-xl { width: 84px; height: 84px; font-size: 1.8rem; }
  .channel-head { padding: 0 4px; gap: 12px; }
  .channel-head > .avatar-xl { margin-top: -36px; }
  .channel-info { padding-top: 0; flex-basis: 100%; }
  .channel-actions { padding-top: 0; }
  .auth { padding: 22px; margin: 10px auto; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .table td { border: 0; padding: 4px 0; }
  .table td.num { display: flex; justify-content: space-between; }
  .table td.num[data-label]::before { content: attr(data-label); color: var(--muted); }
  .table tfoot { display: none; }
}
.form input[type=file]::file-selector-button { background: var(--bg3); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; margin-right: 10px; font: inherit; font-weight: 600; cursor: pointer; }
.form input[type=file]::file-selector-button:hover { background: #2e2e35; }

/* ── Launch-readiness additions ─────────────────────────────── */
.footer { flex-direction: column; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; width: 100%; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.hint { font-weight: 400; font-size: .8rem; color: var(--muted); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row a { color: var(--accent2); font-weight: 400; }
.form label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .88rem; line-height: 1.45; }
.form label.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.form label.check a, .muted a, .hint a { color: var(--accent2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.verify-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.verify-banner .link-btn { color: #bfdbfe; font-size: .9rem; }
.big-emoji { font-size: 2.6rem; margin-bottom: 6px; }
.auth.center .form { margin-top: 12px; }
.btn-sm { padding: 6px 12px; font-size: .8rem; }
.btn-danger { background: rgba(255,45,45,.18); color: #ff8a8a; border: 1px solid rgba(255,45,45,.35); }
.btn-danger:hover { background: rgba(255,45,45,.28); color: #fff; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.pre { white-space: pre-wrap; word-break: break-all; }

/* Player states (Bunny processing / failed) */
.player-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-state { display: grid; place-items: center; text-align: center; padding: 24px; background: radial-gradient(circle at 50% 40%, #26262d, #0b0b0d); }
.player-state p { max-width: 460px; margin: 6px auto 14px; }
.spinner { width: 42px; height: 42px; margin: 0 auto 14px; border-radius: 50%; border: 4px solid #333; border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Comments + report */
.comment-actions { display: flex; gap: 14px; align-items: center; }
.reasons { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.reasons legend { margin-bottom: 8px; padding: 0; }
.reason { display: block; position: relative; cursor: pointer; }
.form label.reason { display: block; font-weight: 500; }
.reason input { position: absolute; opacity: 0; }
.reason span { display: block; padding: 8px 10px; border-radius: 10px; background: var(--bg3); border: 2px solid transparent; font-size: .85rem; }
.reason input:checked + span { border-color: var(--accent); background: rgba(255,45,45,.14); }
.reason input:focus-visible + span { outline: 2px solid #fff; }
#report-dialog { width: min(520px, 94vw); }

/* Admin */
.chip .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; text-align: center; }
.chip.active .count, .chip:hover .count { background: var(--accent); }
.admin-table td { vertical-align: top; }
.actions-cell { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; min-width: 200px; }
.actions-cell form { display: inline-flex; gap: 6px; }
.note-form input { background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 5px 8px; font-size: .8rem; width: 170px; }
.mini-search { display: flex; gap: 6px; }
.mini-search input { background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .85rem; width: 160px; }
.dmca-item { border-top: 1px solid var(--line); padding: 10px 0; }
.dmca-item summary { cursor: pointer; margin-bottom: 6px; }
.dmca-item > div { margin: 6px 0; }
.tip-row form { flex: none; }

/* Legal pages */
.legal { max-width: 820px; line-height: 1.6; }
.legal h2 { font-size: 1.1rem; margin: 26px 0 6px; }
.legal p, .legal li { color: #d4d4d8; }
.legal ul, .legal ol { padding-left: 22px; }
.legal-banner { background: rgba(245,158,11,.12); border: 2px solid rgba(245,158,11,.6); color: #fde68a; border-radius: 12px; padding: 12px 16px; margin-bottom: 20px; font-size: .88rem; line-height: 1.5; }
.legal-banner strong { display: block; color: #fbbf24; margin-bottom: 4px; letter-spacing: .02em; }
.agent { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }

/* Dev outbox */
.mail { border-top: 1px solid var(--line); padding: 14px 0; }
.mail-body { white-space: pre-wrap; word-break: break-word; background: var(--bg); border-radius: 10px; padding: 12px; font-family: inherit; font-size: .88rem; color: #d4d4d8; }

@media (max-width: 700px) {
  .form-row, .reasons { grid-template-columns: 1fr; }
  .actions-cell { min-width: 0; }
  .admin-table td { display: block; }
}
