/* تعاميم ميكرون: واجهة للجوال أولًا، بألوان هوية ميكرون */
:root {
  --bg: #f4f7fa; --surface: #fff; --soft: #f8fafc; --line: #e0e7ef; --line2: #c9d4e0;
  --text: #0b1f33; --text2: #4a5b70; --navy: #0b1f33; --on-navy: #fff; --teal: #0b7c8f; --teal2: #08697a; --tealbg: #ecfafc;
  --ok: #157a3f; --okbg: #e7f6ed; --warn: #a35a00; --warnbg: #fff3e0; --bad: #c0322b; --badbg: #fdeceb;
  --font: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1622; --surface: #122232; --soft: #17293b; --line: #24384c; --line2: #35506a;
    --text: #e8eef4; --text2: #a9b8c7; --navy: #42cce2; --on-navy: #0b1f33; --teal: #42cce2; --teal2: #7fdded; --tealbg: #10303a;
    --ok: #6fd69b; --okbg: #123427; --warn: #f2b866; --warnbg: #38280f; --bad: #f49a94; --badbg: #3c1a19; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.7 var(--font); }
a { color: var(--teal2); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { max-width: 720px; margin: auto; padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.top img { width: 36px; height: 36px; }
.top b { flex: 1; font-size: 17px; font-weight: 800; min-width: 0; }
.top form { margin: 0; }
main { max-width: 720px; margin: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.hero { text-align: center; padding: 32px 8px; }
.hero h1 { font-size: 30px; margin: 8px 0 4px; font-weight: 800; }
.hero p { color: var(--text2); margin: 0 0 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 14px; }
.card h2 { font-size: 16px; margin: 0 0 6px; font-weight: 800; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.stat b { display: block; font-size: 24px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat span, .muted { color: var(--text2); font-size: 14px; }
.btn { display: block; border: 0; border-radius: 11px; padding: 11px 16px; min-height: 46px; font: 700 16px var(--font); background: var(--navy); color: var(--on-navy); text-align: center; text-decoration: none; width: 100%; cursor: pointer; }
.btn.small { width: auto; min-height: 38px; padding: 5px 12px; font-size: 14px; background: var(--soft); color: var(--text); border: 1px solid var(--line2); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.note { border-radius: 11px; padding: 10px 12px; font-size: 15px; }
.note.info { background: var(--tealbg); color: var(--teal2); }
.note.warn { background: var(--warnbg); color: var(--warn); }
.note.bad { background: var(--badbg); color: var(--bad); }
.note.ok { background: var(--okbg); color: var(--ok); }
.tabs { display: flex; gap: 4px; background: var(--soft); padding: 4px; border-radius: 11px; }
.tabs a { flex: 1; text-align: center; padding: 8px 4px; border-radius: 8px; text-decoration: none; color: var(--text2); font-size: 14.5px; min-height: 38px; }
.tabs a.on { background: var(--surface); color: var(--text); font-weight: 700; }
.search { display: flex; gap: 8px; }
.input { border: 1px solid var(--line2); border-radius: 9px; padding: 9px 11px; background: var(--surface); color: var(--text); width: 100%; min-height: 44px; font: 400 16px var(--font); }
.input.ltr { direction: ltr; text-align: left; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: var(--text2); }
.form label.check { flex-direction: row; align-items: center; gap: 9px; color: var(--text); font-size: 15px; min-height: 40px; }
.check input { width: 20px; height: 20px; accent-color: var(--teal); }
fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 0; padding: 8px 12px; }
legend { color: var(--text2); font-size: 14px; padding: 0 4px; }
.btn.danger { background: var(--badbg); color: var(--bad); }
.pill { font-size: 12px; font-weight: 700; padding: 1px 9px; border-radius: 99px; white-space: nowrap; }
.pill.warn { background: var(--warnbg); color: var(--warn); }
.list .row-link, .list .static { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.list li:last-child .row-link, .list li:last-child.static { border-bottom: 0; }
.list small { display: block; color: var(--text2); font-size: 13px; }
.list .empty { color: var(--text2); padding: 10px 0; }
[hidden] { display: none !important; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.big { font-size: 26px; font-weight: 800; }
.doc { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.sigpad { display: block; width: 100%; height: 160px; background: #fff; border: 1.5px dashed var(--line2); border-radius: 11px; touch-action: none; }
.check small { display: block; color: var(--text2); font-size: 13px; }
details summary { cursor: pointer; color: var(--text2); min-height: 32px; }
.pill.info { background: var(--tealbg); color: var(--teal2); }
.title { font-size: 20px; margin: 0; font-weight: 800; }
p.muted { margin: 0; }
.who { color: var(--text2); font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40%; }
.meter { display: block; width: 100%; height: 7px; margin-top: 6px; border: 0; border-radius: 9px; overflow: hidden; background: var(--line); accent-color: var(--teal); }
.meter::-webkit-progress-bar { background: var(--line); }
.meter::-webkit-progress-value { background: var(--teal); }
.meter::-moz-progress-bar { background: var(--teal); }
.list { list-style: none; margin: 0; padding: 0; }
.list a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 700; text-decoration: none; color: var(--text); }
.list li:last-child a { border-bottom: 0; }
