:root { --bg:#F5F2ED; --surface:#FBF9F5; --nested:#F0ECE6; --border:#E2DCD3; --text:#1F1D1A; --muted:#625C54; --accent:#C8102E; --accent-soft:#F8E3E6; --ok:#1E8A55; --danger:#C8102E; }
:root[data-theme="dark"] { --bg:#0B0C0E; --surface:#121418; --nested:#181B21; --border:#262A33; --text:#F4F5F7; --muted:#A2A8B4; --accent:#E0213D; --accent-soft:#2E141A; --ok:#22C55E; --danger:#EF4444; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] { --bg:#0B0C0E; --surface:#121418; --nested:#181B21; --border:#262A33; --text:#F4F5F7; --muted:#A2A8B4; --accent:#E0213D; --accent-soft:#2E141A; --ok:#22C55E; --danger:#EF4444; } }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--text); font: 17px/1.6 -apple-system, "SF Arabic", "Noto Sans Arabic", system-ui, sans-serif; }
.top { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:16px; flex-wrap:wrap; }
h1 { font-size:22px; margin:0; } h2 { font-size:18px; margin:0 0 12px; }
main { max-width:760px; margin:0 auto; padding:0 16px 40px; display:grid; gap:16px; }
.card { background:var(--surface); border:1px solid var(--border); border-radius:20px; padding:16px; }
input, select { width:100%; font:inherit; color:var(--text); background:var(--nested); border:1px solid var(--border); border-radius:10px; padding:10px 12px; min-height:44px; }
input[dir="ltr"], code, .ltr { direction:ltr; unicode-bidi:isolate; font-family: ui-monospace, Menlo, monospace; }
label { display:grid; gap:4px; flex:1; min-width:140px; font-size:13px; color:var(--muted); }
button { font:inherit; font-size:15px; font-weight:600; min-height:44px; padding:0 14px; border-radius:14px; border:1px solid var(--border); background:var(--nested); color:var(--text); cursor:pointer; }
button.primary { background:var(--accent); color:#fff; border-color:var(--accent); width:100%; margin-top:12px; }
.row { display:flex; gap:12px; flex-wrap:wrap; margin-top:12px; }
.chips { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:8px; }
.chips button { border-radius:999px; min-height:36px; }
.chips button.on, .theme button.on { background:var(--accent-soft); color:var(--accent); border-color:var(--accent); }
.theme { display:flex; gap:6px; } .theme button { min-height:36px; border-radius:999px; }
.head { display:flex; justify-content:space-between; align-items:center; }
.pill { font-size:12px; padding:2px 10px; border-radius:999px; background:var(--nested); color:var(--muted); }
.pill.on { background:var(--accent-soft); color:var(--accent); }
.list { list-style:none; margin:8px 0 0; padding:0; display:grid; gap:8px; }
.item { border:1px solid var(--border); border-radius:14px; padding:12px; background:var(--bg); }
.item summary { cursor:pointer; list-style:none; } .item summary::-webkit-details-marker { display:none; }
.title { font-weight:600; overflow-wrap:anywhere; } .muted { color:var(--muted); font-size:13px; }
.bar { height:6px; border-radius:999px; background:var(--nested); overflow:hidden; margin-top:6px; } .bar > i { display:block; height:100%; background:var(--accent); }
.err { color:var(--danger); font-size:13px; } .ok { color:var(--ok); }
.actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
a { color:var(--accent); }
