:root { --ink:#1d2433; --muted:#6b7280; --line:#e5e7eb; --bg:#fafaf7; --card:#fff; --accent:#2b5797; --ok:#1b7f4a; --bad:#b4232c; --warn:#b26b00; }
* { box-sizing:border-box; }
body { margin:0; font:16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color:var(--ink); background:var(--bg); }
header { background:var(--card); border-bottom:1px solid var(--line); padding:10px 16px; display:flex; gap:18px; align-items:baseline; flex-wrap:wrap; }
header .brand { font-weight:700; color:var(--accent); font-size:18px; }
header a { color:var(--ink); text-decoration:none; } header a:hover { text-decoration:underline; }
header .who { margin-left:auto; color:var(--muted); font-size:14px; }
main { max-width:1000px; margin:0 auto; padding:16px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:16px; margin-bottom:16px; }
.tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(130px,1fr)); gap:10px; }
.tile { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:12px; }
.tile .n { font-size:28px; font-weight:700; } .tile .l { color:var(--muted); font-size:13px; }
.tile.queue .n { color:var(--warn); }
table { width:100%; border-collapse:collapse; font-size:15px; } th, td { text-align:left; padding:6px 8px; border-bottom:1px solid var(--line); vertical-align:top; }
th { color:var(--muted); font-weight:600; font-size:13px; }
.he { direction:rtl; text-align:right; font-family:"Frank Ruhl Libre","Times New Roman",serif; font-size:22px; line-height:1.9; }
.ref { font-size:20px; }
.muted { color:var(--muted); } .ok { color:var(--ok); } .bad { color:var(--bad); } .warn { color:var(--warn); }
.badge { display:inline-block; padding:1px 8px; border-radius:999px; font-size:12px; border:1px solid var(--line); background:#f3f4f6; }
.badge.accepted { background:#e6f4ec; color:var(--ok); border-color:#bfe3cd; } .badge.rejected { background:#fbe9ea; color:var(--bad); border-color:#f1c3c6; }
.badge.suspicious { background:#fff4e0; color:var(--warn); border-color:#f5d9a6; }
.verdicts { display:grid; grid-template-columns:repeat(auto-fit, minmax(170px,1fr)); gap:8px; margin:12px 0; }
.verdicts button { padding:12px 10px; font-size:15px; border:1px solid var(--line); border-radius:8px; background:#fff; cursor:pointer; }
.verdicts button:hover { border-color:var(--accent); }
.verdicts button.accept { border-color:#bfe3cd; background:#f1faf5; } .verdicts button.reject { border-color:#f1c3c6; background:#fdf4f4; }
audio { width:100%; margin:8px 0; }
form.inline { display:flex; gap:8px; flex-wrap:wrap; align-items:end; }
label { display:flex; flex-direction:column; font-size:13px; color:var(--muted); gap:3px; }
input, select, textarea { font:inherit; padding:6px 8px; border:1px solid var(--line); border-radius:6px; }
textarea { width:100%; min-height:60px; }
button.primary { background:var(--accent); color:#fff; border:0; padding:8px 14px; border-radius:6px; font:inherit; cursor:pointer; }
button.danger { background:#b71c1c; color:#fff; border:0; padding:6px 12px; border-radius:6px; font:inherit; cursor:pointer; }
.empty { text-align:center; color:var(--muted); padding:40px 0; font-size:18px; }
@media (max-width:600px) { .he { font-size:20px; } main { padding:10px; } }

/* voices + studio */
.bar { height:8px; background:#eef0f3; border-radius:4px; overflow:hidden; min-width:120px; } .bar div { height:100%; background:var(--ok); }
.studio { display:grid; grid-template-columns:300px 1fr; gap:16px; align-items:start; }
.studio aside { position:sticky; top:12px; max-height:calc(100vh - 24px); overflow:auto; }
.studio .lg { font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; margin:10px 0 4px; }
.studio .li { display:block; width:100%; text-align:left; background:none; border:0; padding:4px 6px; border-radius:6px; font:inherit; font-size:14px; cursor:pointer; color:var(--ink); }
.studio .li:hover { background:#f3f4f6; } .studio .li.done { color:var(--muted); } .studio .li.cur { background:#e8eef8; color:var(--accent); font-weight:600; }
.stage .script { font-size:34px; line-height:1.3; font-weight:600; margin:6px 0 10px; }
.studio .li.stale { color:#b45309; }
.stage .textbar { margin:-4px 0 10px; display:flex; gap:10px; align-items:center; } .stage .textbar button { font-size:13px; padding:3px 8px; }
.stage .editor textarea { width:100%; box-sizing:border-box; font:inherit; font-size:22px; padding:8px; border:1px solid var(--line); border-radius:8px; }
.stage .stale { background:#fff7ed; border-left:4px solid #f59e0b; padding:8px 10px; border-radius:6px; margin-bottom:10px; }
.stage .hint { margin-bottom:10px; } .stage .hint.he { font-size:30px; text-align:left; direction:rtl; display:inline-block; }
.stage .status { font-size:18px; margin:10px 0; min-height:28px; }
.meter { height:10px; background:#eef0f3; border-radius:5px; overflow:hidden; } .meter div { height:100%; width:0; background:var(--bad); transition:width .06s; }
.controls { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0; }
.controls button { font:inherit; padding:10px 14px; border:1px solid var(--line); border-radius:8px; background:#fff; cursor:pointer; } .controls button:disabled { opacity:.45; cursor:default; }
.controls button.primary { background:var(--accent); color:#fff; border-color:var(--accent); font-size:18px; padding:12px 18px; }
.editor .controls button.primary { font-size:inherit; padding:10px 14px; }
kbd { font:12px/1 ui-monospace, monospace; background:#f3f4f6; border:1px solid var(--line); border-bottom-width:2px; border-radius:4px; padding:2px 5px; }
@media (max-width:800px) { .studio { grid-template-columns:1fr; } .studio aside { position:static; max-height:260px; } .stage .script { font-size:26px; } }
.card.auth { max-width:420px; margin:40px auto; }
.card.auth form { display:flex; flex-direction:column; gap:10px; }
.card.auth label { display:flex; flex-direction:column; gap:4px; }
a.google { display:block; text-align:center; padding:10px 14px; border:1px solid #888; border-radius:6px; text-decoration:none; color:inherit; font-weight:600; }
.or { text-align:center; margin:12px 0 4px; }
