:root{
  /* Phase 1 delivered palette */
  --ink:#002623; --accent:#054239; --mid:#428177; --gold:#b9a77a;
  --mut:#5F6B68; --accent-soft:#E8EFEC; --rule:#d4d0c4;
  --paper:#FFFFFF; --canvas:#edebe0; --box:#FAF9F4; --bad:#8C2F1D;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{background:var(--canvas);color:var(--ink);
  font-family:"IBM Plex Sans Arabic","Noto Naskh Arabic",-apple-system,"Segoe UI",sans-serif;
  font-size:16.5px;line-height:1.85;padding:26px 16px 80px}
.sheet{max-width:940px;margin:0 auto;background:var(--paper);padding:44px 48px 56px;
  box-shadow:0 1px 3px rgba(0,0,0,.07),0 8px 28px rgba(0,0,0,.05);border-radius:3px}
.crest{font-family:"IBM Plex Mono",monospace;font-size:11.5px;letter-spacing:.18em;color:var(--mid);
  text-transform:uppercase;direction:ltr;text-align:left;padding-bottom:12px;margin-bottom:16px;
  border-bottom:2px solid var(--gold)}
h1{font-size:28px;line-height:1.35;font-weight:700;margin-bottom:6px}
.sub{font-size:17px;color:var(--accent);font-weight:600;margin-bottom:22px}
.lede{background:var(--accent-soft);border-right:4px solid var(--accent);padding:16px 18px;margin-bottom:16px;font-size:15.5px}
.lede p+p{margin-top:9px}
.howto{border:1px solid var(--rule);padding:15px 17px;margin-bottom:32px;font-size:14.5px;background:var(--box)}
.howto b{color:var(--accent)}

/* login */
.login{max-width:430px;margin:8vh auto;background:var(--paper);padding:36px 34px 30px;
  box-shadow:0 1px 3px rgba(0,0,0,.07),0 8px 28px rgba(0,0,0,.05);border-radius:3px}
.login h1{font-size:22px;margin-bottom:4px}
.login .sub{font-size:15px;margin-bottom:24px}
label{display:block;font-size:14px;font-weight:600;margin-bottom:7px}
input[type=password],input[type=text],textarea{width:100%;font:inherit;font-size:16px;
  border:1px solid var(--rule);border-radius:2px;padding:11px 13px;background:var(--box);color:var(--ink)}
input:focus,textarea:focus{outline:2px solid var(--mid);outline-offset:1px;background:#fff}
textarea{min-height:92px;resize:vertical;line-height:1.7}
button{font:inherit;font-weight:600;font-size:16px;background:var(--accent);color:#fff;border:0;
  border-radius:2px;padding:12px 26px;cursor:pointer}
button:hover{background:var(--ink)}
button[disabled]{opacity:.55;cursor:not-allowed}
.err{background:#FBEAE6;border-right:4px solid var(--bad);color:#5F1B0E;padding:12px 14px;
  margin-bottom:18px;font-size:14.5px}
.ok{background:var(--accent-soft);border-right:4px solid var(--accent);padding:12px 14px;
  margin-bottom:18px;font-size:14.5px}

/* form */
section{margin-bottom:38px}
.shead{display:flex;align-items:baseline;gap:12px;border-bottom:2px solid var(--ink);padding-bottom:9px;margin-bottom:8px}
.snum{font-family:"IBM Plex Mono",monospace;font-size:13px;font-weight:600;color:var(--mid);flex:0 0 auto}
.stitle{font-size:19px;font-weight:700}
.snote{color:var(--mut);font-size:14.5px;margin-bottom:20px}
.q{margin-bottom:26px}
.qhead{display:flex;gap:11px;align-items:baseline}
.qnum{font-family:"IBM Plex Mono",monospace;font-size:13px;color:var(--mid);font-weight:600;flex:0 0 auto;padding-top:2px}
.qtext{font-size:16.5px;font-weight:600;line-height:1.7}
.why{margin-top:5px;padding-right:34px;font-size:14.5px;color:var(--mut)}
.why span{font-family:"IBM Plex Mono",monospace;font-size:11px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--gold);font-weight:600;margin-left:7px}
.field{margin:10px 34px 0 0}
.propose{margin-top:7px;font-size:13.5px;color:var(--mut);display:flex;align-items:center;gap:7px}
.propose input{width:16px;height:16px;accent-color:var(--accent)}

/* shared visuals from the document */
.reg{margin:12px 34px 0 0;display:flex;flex-wrap:wrap;gap:4px;direction:ltr;justify-content:flex-end}
.cc{font-family:"IBM Plex Mono",monospace;font-size:11px;padding:3px 5px;border:1px solid var(--rule);
  border-radius:2px;color:var(--mut);background:#fff;line-height:1}
.cc.miss{background:var(--gold);border-color:#9c8a5e;color:#2b2410;font-weight:600}
table.gaps{margin:14px 34px 0 0;border-collapse:collapse;width:calc(100% - 34px);font-size:13.5px}
table.gaps th{background:var(--accent);color:#fff;font-weight:600;padding:7px 10px;text-align:right;font-size:12.5px}
table.gaps td{border:1px solid var(--rule);padding:7px 10px;vertical-align:middle}
table.gaps td.c{color:var(--mut)}
table.gaps td.g{text-align:center;background:#FDF8EC;white-space:nowrap;width:1%}
table.grounds td.g{width:auto}
table.grounds td{font-size:13px}
table.gaps td.g b{font-family:"IBM Plex Mono",monospace;color:#6b5a22;font-size:13px}
table.gaps td.g span{font-size:11.5px;color:var(--mut)}
p.fine{margin:10px 34px 0 0;font-size:13.5px;color:var(--mut);background:var(--box);
  border:1px solid var(--rule);padding:10px 12px}

.bar{position:sticky;bottom:0;background:var(--paper);border-top:2px solid var(--ink);
  padding:14px 0 4px;margin-top:34px;display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.bar .status{font-size:13.5px;color:var(--mut)}
.topbar{display:flex;justify-content:space-between;align-items:center;max-width:940px;margin:0 auto 12px;
  font-size:13px;color:var(--mut)}
.topbar a{color:var(--accent)}
@media (max-width:640px){
  body{padding:14px 10px 48px}
  .sheet{padding:26px 18px 34px}
  .login{margin:4vh auto;padding:28px 22px}
  h1{font-size:23px}
  .why,.field,.reg,p.fine{padding-right:0;margin-right:0}
  table.gaps{margin-right:0;width:100%;font-size:12px}
  table.gaps th,table.gaps td{padding:5px 6px}
}

/* ---- fees + acceptance ---- */
table.fees-t{width:100%;border-collapse:collapse;margin-bottom:22px;font-size:14.5px}
table.fees-t th{background:var(--accent);color:#fff;font-weight:600;padding:8px 11px;text-align:right;font-size:13px}
table.fees-t td{border:1px solid var(--rule);padding:11px;vertical-align:top}
table.fees-t td.code{font-family:"IBM Plex Mono",monospace;color:var(--mid);font-weight:600;text-align:center;width:1%}
table.fees-t td .d{color:var(--mut);font-size:13.5px;margin-top:3px}
table.fees-t td .n{color:var(--mut);font-size:12.5px;margin-top:6px;border-top:1px dotted var(--rule);padding-top:6px}
table.fees-t td.st{white-space:nowrap;width:1%;font-size:13px}
table.fees-t td.amt{white-space:nowrap;width:1%;text-align:left;direction:ltr}
table.fees-t tr.done{background:var(--box)}
table.fees-t tr.done td.st{color:var(--accent);font-weight:600}
table.fees-t td.amt .syp{display:block;font-weight:600}
table.fees-t td.amt .usd{display:block;color:var(--mut);font-size:13px}
table.fees-t td.amt .on{display:block;color:var(--mut);font-size:12px;font-family:"IBM Plex Mono",monospace}
table.fees-t td.amt .big{font-size:20px;font-weight:700;color:var(--accent)}
table.fees-t tr.due td{background:#FDF8EC}

.accept{border:2px solid var(--accent);background:#fff;padding:20px 22px}
.accept .alabel{font-family:"IBM Plex Mono",monospace;font-size:11px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--gold);font-weight:600;margin-bottom:10px}
.accept .atext{font-size:16px;font-weight:600;line-height:1.75;margin-bottom:16px}
.acheck{display:flex;align-items:flex-start;gap:9px;font-weight:600;font-size:15.5px;margin-bottom:16px;cursor:pointer}
.acheck input{width:19px;height:19px;accent-color:var(--accent);margin-top:3px;flex:0 0 auto}
.arow{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.arow label{font-weight:600;font-size:13.5px;margin-bottom:6px}
.accept .afine{margin-top:14px;font-size:12.5px;color:var(--mut);line-height:1.7;
  border-top:1px solid var(--rule);padding-top:11px}
@media (max-width:640px){ .arow{grid-template-columns:1fr} table.fees-t td.amt{text-align:right} }

table.fees-t td.tick{text-align:center;width:1%;white-space:nowrap}
table.fees-t td.tick input{width:20px;height:20px;accent-color:var(--accent);cursor:pointer}
table.fees-t td.tick label{display:block;font-size:12px;color:var(--mut);margin-top:3px;cursor:pointer}
table.fees-t td.tick .paidmark{color:var(--accent);font-size:19px;font-weight:700}
.alist{list-style:none;margin:0 0 14px;padding:0;border:1px solid var(--rule)}
.alist li{display:flex;gap:12px;align-items:baseline;padding:9px 12px;font-size:14.5px;
  border-bottom:1px solid var(--rule);color:var(--mut);opacity:.5}
.alist li:last-child{border-bottom:0}
.alist li.on{opacity:1;color:var(--ink);background:var(--accent-soft)}
.alist li .c{font-family:"IBM Plex Mono",monospace;font-weight:600;color:var(--mid);flex:0 0 auto}
.alist li .t{flex:1 1 auto}
.alist li .a{font-weight:700;direction:ltr;flex:0 0 auto}
.atotal{font-size:16px;padding:11px 13px;background:var(--box);border:1px solid var(--rule);margin-bottom:18px}
.atotal b{direction:ltr;display:inline-block;font-size:19px}
.atotal.has{background:var(--accent-soft);border-color:var(--accent)}
.atotal.has b{color:var(--accent)}
