:root {
  --stitch-ivory: #fbf8f0;
  --stitch-surface: #f6f1e5;
  --stitch-raised: #efe9da;
  --stitch-line: #cfc9ba;
  --stitch-green: #174c43;
  --stitch-muted: #3e4c46;
  --stitch-copper: #8a542b;
  --stitch-headline: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  --stitch-body: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --stitch-mono: "IBM Plex Mono", Consolas, monospace;
}

.stitch-body {
  min-height: 100vh;
  background: var(--stitch-ivory);
  color: #1a2722;
  font: 16px/1.65 var(--stitch-body);
}
.stitch-body [hidden] { display: none !important; }
.stitch-body :focus-visible { outline: 2px solid #8a542b; outline-offset: 3px; }
.stitch-body .material-symbols-outlined {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  box-sizing: content-box;
  direction: ltr;
  line-height: 1 !important;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: middle;
}
.stitch-body :where(h1,h2,h3) { font-family: var(--stitch-headline); font-weight: 700; }
.stitch-body dialog:not([open]) { display: none; }
.stitch-body dialog::backdrop { background: rgb(26 39 34 / 48%); }
.stitch-home-mobile { display: none; }
.stitch-hero-art { display:block;width:100%;height:auto;aspect-ratio:4 / 3;object-fit:cover;object-position:55% center; }
.stitch-volunteer {
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  max-width:1376px;margin:32px auto;padding:28px 32px;border-radius:16px;
  background:var(--stitch-green);color:white;scroll-margin-top:96px;
}
.stitch-volunteer h2 { font-size:clamp(22px,3vw,30px);margin-block-end:4px; }
.stitch-volunteer .stitch-button { flex:none;background:#fff;color:var(--stitch-green); }
.stitch-volunteer .stitch-button:hover { background:var(--stitch-raised); }
.stitch-home-desktop .stitch-volunteer { width:calc(100% - 64px); }
#privacy-policy-modal { max-height: min(82dvh, 42rem); margin: auto; overflow: auto; }
.stitch-appbar { position: sticky; inset-block-start: 0; z-index: 20; background: #fff; border-block-end: 1px solid var(--stitch-line); }
.stitch-appbar-inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: 10px 32px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.stitch-bar-brand, .stitch-appbar nav, .stitch-brand, .stitch-auth-head { display:flex;align-items:center;gap:12px; }
.stitch-bar-brand > span { color: var(--stitch-muted); font-size: 14px; }
.stitch-brand { color: var(--stitch-green); text-decoration: none; gap: 8px; }
.stitch-brand span { display:grid;line-height:1.2; }
.stitch-brand strong { font: 700 23px/1.15 var(--stitch-headline); }
.stitch-brand small { color: var(--stitch-copper); font-size: 12px; }
.stitch-frame { width: min(100%,1440px); padding: 24px 32px 48px; margin-inline: auto; }
.stitch-frame-narrow { max-width: 920px; }
.stitch-panel {
  background: #fff;
  border: 1px solid var(--stitch-line);
  border-radius: 12px;
  min-width: 0;
  padding: 24px;
}
.stitch-panel > h1, .stitch-panel > h2, .stitch-content > h1, .stitch-staff-head h1 {
  margin: 0 0 12px;
  font: 700 24px/1.4 var(--stitch-headline);
  color: var(--stitch-green);
}
.stitch-panel > h2 { font-size: 20px; }
.stitch-panel :where(form,label) { min-width: 0; }
.stitch-panel > :is(p,section,form,nav) + :is(p,section,form,nav) { margin-block-start: 14px; }
.stitch-panel :where(label) { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.stitch-panel label:has(input[type="checkbox"]), .stitch-panel label:has(input[type="radio"]) { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.stitch-panel :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--stitch-line);
  border-radius: 8px;
  background-color: #fff;
  color: #1a2722;
  font: 400 14px/1.6 var(--stitch-body);
}
.stitch-panel input:is([type="email"],[type="tel"],[dir="ltr"]) { direction: ltr; text-align: left; font-family: var(--stitch-mono); }
.stitch-panel form > label + label { margin-block-start: 12px; }
.stitch-panel textarea { resize: vertical; }
.stitch-panel .mw-fields, .stitch-form-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px; }
.stitch-panel dl:not(.mw-stat-grid) { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;overflow-wrap:anywhere; }
.stitch-panel dl:not(.mw-stat-grid) dt { color: var(--stitch-muted); font-size: 14px; }
.stitch-panel dl:not(.mw-stat-grid) dd { margin:0; }
.stitch-panel fieldset { min-width:0;border:1px solid var(--stitch-line);border-radius:8px;padding:8px 12px; }
.stitch-panel legend { padding-inline:4px;color:var(--stitch-green);font-size:14px; }
.stitch-body .mw-flow-link { color: var(--stitch-green); font-size: 14px; font-weight: 600; }
.stitch-button, .stitch-panel .mw-registration-actions button, .stitch-body .mw-registration-actions button {
  display: inline-flex;
  justify-content:center;
  align-items:center;
  gap: 8px;
  min-height: 44px;
  line-height: 1.45;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--stitch-green);
  color: white;
  border: 1px solid var(--stitch-green);
  text-decoration: none;
  font: 600 14px/1.45 var(--stitch-body);
  cursor: pointer;
}
.stitch-button:hover, .stitch-body .mw-registration-actions button:hover { filter:brightness(.94); }
.stitch-button:disabled, .stitch-body .mw-registration-actions button:disabled { opacity:.55;cursor:not-allowed; }
.stitch-button-outline { background:#fff;color:var(--stitch-green);border-color:var(--stitch-line); }
.stitch-body .mw-registration-actions { margin-block-start: 12px; }
.stitch-body .mw-registration-actions button[type="button"] { background:white;color:var(--stitch-green); }
.stitch-panel .mw-workflow-list { gap:10px; }
.stitch-panel .mw-workflow-list > li { border-color:var(--stitch-line);background:var(--stitch-surface); }
.stitch-code { font: 500 13px/1.5 var(--stitch-mono);color:var(--stitch-green);white-space:nowrap; }
.stitch-tag {
  display:inline-flex;align-items:center;gap:4px;
  border-radius:999px;padding:3px 9px;background:var(--stitch-raised);color:var(--stitch-muted);font-size:12px;font-weight:600;
}
.stitch-tag-green { background:#dcece8;color:#0c2e28; }
.stitch-tag-copper { background:#f7eae0;color:#4a2910; }
.stitch-tag-warning { background:#fff1d6;color:#4a2e00; }
.stitch-tag-info { background:#e1f1fa;color:#0e3447; }
.stitch-tag-error { background:#ffdad6;color:#410002; }
.stitch-auth { min-height:100vh;display:grid;place-items:center;padding:32px 16px; }
.stitch-auth-wrap { width:min(100%,576px);display:grid;gap:16px; }
.stitch-auth-head { justify-content:space-between; }
.stitch-auth .stitch-panel { padding:32px; }
.stitch-auth .stitch-panel .mw-registration-actions button { width:100%; }
.stitch-auth .stitch-panel > .mw-flow-link { margin-block-start:8px; }
.stitch-segmented { display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px;padding:4px;border-radius:12px;background:var(--stitch-raised); }
.stitch-segmented > :is(a,span) { padding:7px 5px;min-height:36px;display:grid;place-items:center;line-height:1.45;text-align:center;font-size:13px;font-weight:600;border-radius:8px;color:var(--stitch-muted); }
.stitch-segmented > [aria-current] { background:#fff;color:var(--stitch-green); }
.stitch-segmented a:hover { background:var(--stitch-surface); }
.stitch-note { display:flex;align-items:center;gap:8px;border-radius:8px;padding:9px 12px;background:#f7eae0;color:#4a2910;font-size:13px; }
.stitch-match-grid { display:grid;grid-template-columns:minmax(0,3fr) minmax(0,6fr) minmax(0,3fr);gap:16px;align-items:start; }
.stitch-match-feed, .stitch-card-stack { display:grid;gap:14px;min-width:0; }
.stitch-match-head h1 { color:var(--stitch-green);font-size:24px; }
.stitch-filter-panel {
  position:static;
  width:100%;
  max-width:none;
  margin:0;
  padding:16px;
  border:1px solid var(--stitch-line);
  border-radius:12px;
  background:#fff;
  color:inherit;
}
.stitch-filter-panel h2, .stitch-pick-box h2 { color:var(--stitch-green);font-size:20px; }
.stitch-filter-panel form { display:grid;gap:11px; }
.stitch-filter-panel label { font-size:14px; }
.stitch-filter-open, .stitch-filter-close { display:none; }
.stitch-pick-bar { display:none; }
.stitch-pick-box { position:sticky;inset-block-start:80px;padding:16px; }
.stitch-pick-box > :is(header,ol) { margin-block-end:12px; }
.stitch-card-top, .stitch-card-foot { display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px; }
.stitch-card-top { border-block-end:1px solid var(--stitch-raised);padding-block-end:10px; }
.stitch-card-foot { border-block-start:1px solid var(--stitch-raised);padding-block-start:10px;margin-block-start:12px; }
.stitch-card-foot .mw-registration-actions { margin-block-start:0; }
.stitch-result-card { padding:18px; }
.stitch-result-card[data-selected] { border-color:var(--stitch-green);outline:1px solid var(--stitch-green); }
.stitch-result-card .stitch-code { padding:3px 6px;border-radius:5px;background:#dcece8; }
.stitch-result-card dl { font-size:14px;margin-block-start:12px; }
.stitch-empty { text-align:center;padding:28px 20px; }
.stitch-empty > .material-symbols-outlined { font-size:32px;color:var(--stitch-muted); }
.stitch-assist { font-size:13px;color:var(--stitch-muted);line-height:1.7; }
.stitch-portal { display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:16px;align-items:start; }
.stitch-portal .stitch-card-stack > * { margin:0; }
.stitch-contact { width:min(100%,896px); }
.stitch-contact .mw-fields { grid-template-columns:minmax(0,1fr);margin-block:14px; }
.stitch-contact .stitch-panel .mw-registration-actions button { width:100%; }
.stitch-wizard-frame { width:min(100%,1440px); }
.stitch-wizard-frame .mw-registration { width:100%;background:transparent;border:0;padding:0;border-radius:0;font-family:var(--stitch-body); }
.stitch-wizard-frame .mw-registration > section { padding:24px;border:1px solid var(--stitch-line);border-radius:12px;background:#fff; }
.stitch-wizard-frame .mw-registration h2 { font-family:var(--stitch-headline);color:var(--stitch-green);font-size:24px; }
.stitch-wizard-steps { display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:6px;list-style:none;margin:0 0 16px;padding:4px;background:var(--stitch-raised);border-radius:12px; }
.stitch-wizard-steps li { padding:7px;text-align:center;border-radius:8px;color:var(--stitch-muted);font-size:13px; }
.stitch-wizard-steps [aria-current="step"] { color:var(--stitch-green);background:#fff;font-weight:700; }
.stitch-staff-shell { display:grid;grid-template-columns:256px minmax(0,1fr);min-height:100vh; }
.stitch-sidebar { background:var(--stitch-green);color:white;min-width:0;padding:24px; }
.stitch-sidebar .stitch-brand, .stitch-sidebar .stitch-brand small { color:white; }
.stitch-sidebar .stitch-brand { border-block-end:1px solid rgb(255 255 255 / 20%);padding-block-end:16px; }
.stitch-sidebar nav { display:grid;gap:4px;margin-block:18px; }
.stitch-staff-nav a { display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:8px;color:inherit;font-size:14px;font-weight:600;min-height:42px; }
.stitch-staff-nav a:is(:hover,[aria-current]) { background:rgb(255 255 255 / 15%); }
.stitch-sidebar > a:last-child { display:inline-block;font-size:13px;margin-block-start:20px; }
.stitch-staff-area { min-width:0; }
.stitch-staff-head { background:white;border-block-end:1px solid var(--stitch-line);padding:16px 28px;display:flex;align-items:center;justify-content:space-between;gap:12px; }
.stitch-staff-head h1 { margin:0; }
.stitch-staff-body { padding:24px 32px 48px;display:grid;gap:16px;min-width:0; }
.stitch-staff-menu { display:none; }
.stitch-staff-body > section { min-width:0; }
.stitch-admin-split { display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:16px;align-items:start; }
.stitch-team { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start; }
.stitch-admin-split [data-current] { background:#dcece8; }
#request-detail { scroll-margin-top:20px; }
#request-detail .stitch-card-top { margin-block-end:12px; }
.stitch-stat-trend { display:grid;gap:8px;margin-block:12px 16px; }
.stitch-stat-trend > div { display:grid;grid-template-columns:70px minmax(0,1fr) 32px;align-items:center;gap:8px; }
.stitch-stat-trend progress { width:100%;height:14px;accent-color:var(--stitch-green); }
.stitch-admin-tables { overflow-x:auto; scrollbar-width:thin; }
.stitch-admin-table { border-collapse:collapse;text-align:start;width:100%;font-size:14px; }
.stitch-admin-table :is(th,td) { text-align:start;padding:10px 12px;border-block-end:1px solid var(--stitch-raised);vertical-align:middle; }
.stitch-admin-table thead th { background:var(--stitch-raised);color:var(--stitch-muted);font-weight:600; }
.stitch-admin-table td { min-width:6rem; }
.stitch-admin-table tbody > tr:last-child td { border-block-end:0; }
.stitch-admin-table details { min-width:7rem; }
.stitch-admin-table summary { cursor:pointer;color:var(--stitch-green);font-weight:600; }
.stitch-admin-details { margin-block-start:12px;background:var(--stitch-surface);border:1px solid var(--stitch-line);border-radius:8px;padding:12px; }
.stitch-admin-details :is(p,dl,form) + :is(p,dl,form) { margin-block-start:10px; }
.stitch-body .mw-stat-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px; }
.stitch-body .mw-stat-grid > div { border-color:var(--stitch-line);background:#fff;padding:14px;border-radius:12px; }
.stitch-body .mw-stat-grid dt { color:var(--stitch-muted);font-size:13px; }
.stitch-body .mw-stat-grid dd { font:700 24px/1.4 var(--stitch-headline);color:var(--stitch-green);margin:4px 0 0; }
.stitch-body .mw-stat-table th { background:var(--stitch-raised); }
.stitch-body .mw-auth-key { background:#dcece8; }
.stitch-stat-mini { display:grid;gap:12px; }

@media (min-width: 1200px) {
  .stitch-body .stitch-staff-body > .mw-stat-grid { grid-template-columns:repeat(6,minmax(0,1fr)); }
}
@media (max-width:1023px) {
  .stitch-match-grid { grid-template-columns:minmax(0,1fr); }
  .stitch-pick-box { position:static;grid-row:2; }
  .stitch-pick-box .stitch-desktop-contact { display:none; }
  .stitch-pick-bar {
    display:flex;position:sticky;inset-block-end:0;z-index:20;align-items:center;justify-content:space-between;
    gap:12px;padding:10px 16px max(10px,env(safe-area-inset-bottom));background:#fff;border-block-start:1px solid var(--stitch-line);
  }
  .stitch-pick-bar strong { color:var(--stitch-green);font-size:14px; }
  .stitch-pick-bar a { flex:none; }
  .stitch-pick-codes { display:flex;flex-wrap:wrap;gap:1px 8px;font-size:11px;color:var(--stitch-muted); }
  .stitch-match-feed { grid-row:1; }
  .stitch-filter-open, .stitch-filter-close { display:inline-flex; }
  .stitch-filter-panel[open]:not(:modal) { display:none; }
  .stitch-filter-panel:modal { position:fixed;inset:auto 0 0;max-height:86dvh;overflow:auto;border-radius:16px 16px 0 0;border-block-end:0;z-index:30; }
  .stitch-staff-shell { display:block; }
  .stitch-sidebar { display:none; }
  .stitch-staff-menu { display:block;position:relative; }
  .stitch-staff-menu summary { cursor:pointer;list-style:none;display:flex;align-items:center;gap:5px;color:var(--stitch-green); }
  .stitch-staff-menu nav { position:absolute;z-index:20;inset-inline-end:0;min-width:185px;display:grid;padding:6px;background:var(--stitch-green);border-radius:8px;color:white; }
  .stitch-staff-body { padding:16px; }
  .stitch-admin-split, .stitch-team { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:767px) {
  .stitch-home-desktop { display:none; }
  .stitch-home-mobile { display:block; }
  .stitch-hero-art { aspect-ratio:6 / 5; }
  .stitch-home-mobile .stitch-volunteer { margin:24px 16px;padding:20px;align-items:stretch;flex-direction:column; }
  #privacy-policy-modal { width:calc(100% - 24px);padding:18px; }
  .stitch-frame { padding:16px 16px 32px; }
  .stitch-panel, .stitch-auth .stitch-panel { padding:16px; }
  .stitch-auth { align-items:start;padding-block-start:24px; }
  .stitch-panel > h1,.stitch-staff-head h1 { font-size:20px; }
  .stitch-match-head h1 { font-size:20px; }
  .stitch-appbar-inner { padding:8px 16px;min-height:56px; }
  .stitch-bar-brand > span { display:none; }
  .stitch-portal { grid-template-columns:minmax(0,1fr); }
  .stitch-staff-head { padding:10px 16px; }
  .stitch-body .mw-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .stitch-wizard-steps { display:none; }
  .stitch-wizard-frame .mw-registration > section { padding:16px; }
  .stitch-wizard-frame .mw-registration h2 { font-size:20px; }
}
@media (max-width:420px) {
  .stitch-auth-stages > :is(a,span) { font-size:11px; }
  .stitch-panel .mw-fields, .stitch-form-grid { grid-template-columns:minmax(0,1fr); }
}
