@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');
:root { --bg:#f4f5f8; --card:#fff; --ink:#0f1b33; --muted:#5b6475; --line:#e3e6ec; --teal:#0d9488; --teal-soft:#d9f4f1; --gold:#b7791f; --gold-soft:#fdf1d8; --red:#c0392b; --red-soft:#fbe4e1; --pri:#0f1b33; }
* { box-sizing:border-box }
html,body { margin:0; background:var(--bg); color:var(--ink); font-family:'IBM Plex Sans Arabic',system-ui,sans-serif; -webkit-tap-highlight-color:transparent }
input,textarea,select { font:inherit; font-size:16px }
button { font:inherit; cursor:pointer }
.center { min-height:100dvh; display:grid; place-items:center; padding:20px }
.card { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:16px }
.narrow { width:100%; max-width:380px; display:grid; gap:12px; text-align:center }
.narrow label { text-align:start }
h1 { font-size:22px; margin:4px 0 }
h2 { font-size:17px; margin:0 0 10px }
.muted { color:var(--muted); font-size:14px; line-height:1.8 }
label { display:grid; gap:6px; font-weight:600; font-size:14px }
input,textarea,select { width:100%; border:1px solid var(--line); border-radius:12px; padding:11px 12px; background:#fbfcfd; color:var(--ink) }
textarea { min-height:90px; resize:vertical }
.btn { border:1px solid var(--line); background:var(--card); color:var(--ink); border-radius:12px; padding:11px 16px; font-weight:600; display:inline-flex; align-items:center; justify-content:center; gap:6px }
.btn.primary { background:var(--pri); color:#fff; border-color:var(--pri) }
.btn.ok { background:var(--teal); color:#fff; border-color:var(--teal) }
.btn.no { background:var(--red-soft); color:var(--red); border-color:transparent }
.btn.icon { width:40px; height:40px; padding:0; border-radius:50% }
.btn:disabled { opacity:.5 }
.err { color:var(--red); background:var(--red-soft); border-radius:10px; padding:10px; font-size:14px; margin:0 }
.wrap { max-width:860px; margin:0 auto; padding:max(14px, env(safe-area-inset-top)) 14px 96px }
header { display:flex; align-items:center; gap:10px; margin-bottom:14px }
header .t { font-weight:700; font-size:18px } header .s { font-size:11px; color:var(--muted); letter-spacing:.12em }
header .sp { flex:1 }
nav.tabs { position:fixed; bottom:0; inset-inline:0; background:rgba(255,255,255,.96); backdrop-filter:blur(8px); border-top:1px solid var(--line); display:grid; grid-template-columns:repeat(5,1fr); padding-bottom:env(safe-area-inset-bottom); z-index:10 }
nav.tabs button { border:0; background:none; padding:9px 0 7px; font-size:11px; color:var(--muted); display:grid; justify-items:center; gap:2px }
nav.tabs button.on { color:var(--ink); font-weight:700 }
nav.tabs .ic { font-size:19px }
.badge { background:var(--red); color:#fff; border-radius:999px; font-size:10px; padding:0 6px; margin-inline-start:4px }
.list { display:grid; gap:10px }
.row { display:flex; align-items:center; gap:10px }
.row .grow { flex:1; min-width:0 }
.chip { display:inline-block; border-radius:999px; padding:2px 9px; font-size:12px; font-weight:600; background:var(--teal-soft); color:var(--teal) }
.chip.gold { background:var(--gold-soft); color:var(--gold) } .chip.red { background:var(--red-soft); color:var(--red) } .chip.gray { background:#eef0f4; color:var(--muted) }
.mono { font-family:ui-monospace,Menlo,monospace; direction:ltr; unicode-bidi:plaintext }
.small { font-size:12px; color:var(--muted) }
.pending { border-color:var(--gold); box-shadow:0 0 0 3px var(--gold-soft) }
.actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:12px }
.note-body { white-space:pre-wrap; line-height:1.8; font-size:14px; margin:8px 0 0 }
.grid2 { display:grid; gap:10px }
@media (min-width:640px){ .grid2 { grid-template-columns:1fr 1fr } }
.toast { position:fixed; bottom:84px; inset-inline:0; margin:auto; width:fit-content; max-width:90vw; background:var(--ink); color:#fff; padding:9px 16px; border-radius:999px; font-size:14px; z-index:20 }
.empty { text-align:center; color:var(--muted); padding:30px 10px; border:1px dashed var(--line); border-radius:14px; font-size:14px; line-height:1.8 }
.steps { margin:0; padding-inline-start:20px; line-height:2; font-size:14px }
