.moht-shell {
  --moht-green:#087f5b; --moht-deep:#075b43; --moht-mint:#e8f5ef;
  --moht-ink:#172b25; --moht-muted:#65756e; --moht-line:#dce7e1;
  --moht-bg:#f5f8f6; --moht-danger:#b42318; --moht-warn:#fff8e6;
  color:var(--moht-ink); direction:rtl; font-family:Tahoma,"Arial",sans-serif;
  font-size:16px; line-height:1.7; max-width:1040px; margin:24px auto;
  padding:0 16px 40px; text-align:start;
}
.moht-shell[lang="en"] { direction:ltr; }
.moht-shell * { box-sizing:border-box; }
.moht-shell h1,.moht-shell h2,.moht-shell h3,.moht-shell p { margin-top:0; }
.moht-shell h1 { margin-bottom:2px; font-size:26px; }
.moht-shell h2 { margin-bottom:12px; font-size:21px; }
.moht-shell h3 { margin-bottom:4px; font-size:18px; }
.moht-header { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:22px; margin-bottom:16px; border-radius:18px; background:linear-gradient(115deg,var(--moht-deep),var(--moht-green)); color:#fff; }
.moht-header p { margin:0; color:#e1f3eb; }
.moht-brand { display:flex; align-items:center; gap:14px; }
.moht-mark { display:grid; place-items:center; width:48px; height:48px; flex:0 0 48px; border:1px solid #ffffff70; border-radius:14px; background:#ffffff18; color:#fff; font-size:27px; font-weight:700; }
.moht-language { border:1px solid #ffffff80; border-radius:10px; padding:8px 13px; color:#fff; background:transparent; font:inherit; cursor:pointer; }
.moht-language:hover { background:#ffffff18; }
.moht-disclaimer { border:1px solid #d6e9de; border-radius:12px; background:var(--moht-mint); padding:12px 15px; margin-bottom:16px; color:#244d3c; }
.moht-warning { background:var(--moht-warn); border:1px solid #efdfb4; color:#684b08; border-radius:12px; padding:12px 15px; }
.moht-tabs { display:flex; flex-wrap:wrap; gap:8px; border-bottom:1px solid var(--moht-line); margin:0 0 18px; padding-bottom:12px; }
.moht-tabs button,.moht-button { border:0; border-radius:10px; padding:10px 15px; background:var(--moht-green); color:#fff; font:inherit; font-weight:700; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; min-height:42px; }
.moht-tabs button { background:#edf3ef; color:#315344; }
.moht-tabs button.is-active { background:var(--moht-deep); color:#fff; }
.moht-button:hover,.moht-tabs button:hover { filter:brightness(.96); }
.moht-quiet { background:#edf3ef; color:#315344; }
.moht-danger { background:#fff0ef; color:var(--moht-danger); }
.moht-stack { display:grid; gap:14px; }
.moht-section-title { display:flex; align-items:center; justify-content:space-between; }
.moht-card { padding:19px; border:1px solid var(--moht-line); border-radius:15px; background:#fff; box-shadow:0 4px 16px #0b42220a; }
.moht-form { display:grid; gap:14px; }
.moht-field { display:grid; gap:6px; font-weight:700; }
.moht-field small { color:var(--moht-muted); font-weight:400; }
.moht-shell input,.moht-shell select,.moht-shell textarea { width:100%; max-width:100%; border:1px solid #cbd9d1; border-radius:9px; background:#fff; color:var(--moht-ink); padding:10px 12px; font:inherit; font-weight:400; }
.moht-shell input[type="file"] { padding:8px; }
.moht-shell textarea { resize:vertical; }
.moht-shell input:focus,.moht-shell select:focus,.moht-shell textarea:focus,.moht-shell button:focus-visible { outline:3px solid #77c8a6; outline-offset:2px; }
.moht-actions { display:flex; flex-wrap:wrap; align-items:center; gap:9px; margin-top:8px; }
.moht-card-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:10px; }
.moht-card-heading p { margin:0; }
.moht-route { border-inline-start:4px solid var(--moht-green); padding-inline-start:10px; color:#244c3b; font-weight:700; }
.moht-muted { color:var(--moht-muted); }
.moht-status { display:inline-flex; border-radius:999px; padding:4px 10px; background:#f0f2f1; color:#45534c; font-size:13px; white-space:nowrap; }
.status-approved { background:#e2f5e9; color:#12623d; }
.status-rejected { background:#fff0ef; color:#a1271d; }
.status-pending_coordinator,.status-pending_final { background:#fff6da; color:#745707; }
.moht-files { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
.moht-files a { color:var(--moht-deep); }
.moht-match-results { display:grid; gap:8px; margin-top:14px; padding-top:12px; border-top:1px solid var(--moht-line); }
.moht-match { display:grid; gap:3px; padding:12px; border-radius:10px; background:#f5f8f6; }
.moht-match small { color:var(--moht-muted); }
.moht-catalog-row { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; }
.moht-empty,.moht-loading { text-align:center; color:var(--moht-muted); }
.moht-error { color:var(--moht-danger); background:#fff4f3; border-radius:9px; padding:9px 11px; margin:0; }
.moht-error[hidden] { display:none; }
@media (max-width:640px) {
  .moht-shell { margin:12px auto; padding-inline:10px; font-size:15px; }
  .moht-header { align-items:flex-start; padding:16px; }
  .moht-header h1 { font-size:21px; }
  .moht-mark { width:40px; height:40px; flex-basis:40px; }
  .moht-language { padding:6px 9px; }
  .moht-card { padding:15px; }
  .moht-card-heading { display:grid; }
  .moht-tabs button { flex:1 1 auto; }
  .moht-actions .moht-button { flex:1 1 45%; }
}


/* Progressive transfer wizard and user-selected theme */
.moht-shell{transition:background-color .22s ease,color .22s ease}
.moht-header-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.moht-theme-toggle{border:1px solid #ffffff80;border-radius:10px;padding:8px 12px;color:#fff;background:#ffffff12;font:inherit;cursor:pointer;min-height:42px}
.moht-theme-toggle:hover{background:#ffffff24}
.moht-progress{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:4px 0 10px;padding:0;counter-reset:step}
.moht-progress li{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:9px;min-height:58px;padding:9px 12px;border:1px solid var(--moht-line);border-radius:12px;background:var(--moht-bg);color:var(--moht-muted);font-size:.88rem;line-height:1.45;transition:background-color .2s,border-color .2s,color .2s}
.moht-progress-number{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#e8eeeb;color:#52645b;font-weight:700;font-variant-numeric:tabular-nums}
.moht-progress li.is-current{border-color:var(--moht-green);background:var(--moht-mint);color:var(--moht-deep);font-weight:700}
.moht-progress li.is-current .moht-progress-number,.moht-progress li.is-complete .moht-progress-number{background:var(--moht-green);color:#fff}
.moht-progress li.is-complete{color:var(--moht-green)}
.moht-wizard-panel{display:grid;gap:14px;min-width:0;padding:4px 0}
.moht-wizard-panel h3{margin:0;font-size:1.12rem}
.moht-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.moht-review-title{margin:2px 0 0;font-size:.95rem;color:var(--moht-muted)}
.moht-review-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.moht-summary-item{display:grid;gap:3px;min-width:0;padding:11px 13px;border:1px solid var(--moht-line);border-radius:10px;background:var(--moht-bg)}
.moht-summary-item span{color:var(--moht-muted);font-size:.8rem}
.moht-summary-item strong{overflow-wrap:anywhere;font-weight:700}
.moht-wizard-actions{align-items:center;margin-top:8px}
.moht-wizard-actions [hidden]{display:none!important}
.moht-shell[data-theme="dark"]{--moht-green:#42c6a0;--moht-deep:#70dfba;--moht-mint:#18392f;--moht-ink:#e6f0eb;--moht-muted:#a7bbb1;--moht-line:#344b41;--moht-bg:#14231d;--moht-danger:#ff928a;--moht-warn:#372e19;color:var(--moht-ink);color-scheme:dark}
.moht-shell[data-theme="dark"] .moht-card{background:#172720;border-color:var(--moht-line);box-shadow:0 8px 24px #0003}
.moht-shell[data-theme="dark"] .moht-tabs button,.moht-shell[data-theme="dark"] .moht-quiet{background:#263a31;color:#dcebe3}
.moht-shell[data-theme="dark"] .moht-tabs button.is-active,.moht-shell[data-theme="dark"] .moht-button:not(.moht-quiet):not(.moht-danger){background:var(--moht-green);color:#09251c}
.moht-shell[data-theme="dark"] .moht-disclaimer{background:#18392f;border-color:#2c5848;color:#d1e8dc}
.moht-shell[data-theme="dark"] .moht-warning{background:#372e19;border-color:#665321;color:#f3dfa0}
.moht-shell[data-theme="dark"] .moht-shell input,.moht-shell[data-theme="dark"] input,.moht-shell[data-theme="dark"] select,.moht-shell[data-theme="dark"] textarea{background:#101e18;color:var(--moht-ink);border-color:#40574c;color-scheme:dark}
.moht-shell[data-theme="dark"] .moht-match{background:#1c3027}
.moht-shell[data-theme="dark"] .moht-status{background:#293b32;color:#dcebe3}
.moht-shell[data-theme="dark"] .status-approved{background:#18392b;color:#8de0ae}
.moht-shell[data-theme="dark"] .status-rejected{background:#3a201e;color:#ffaaa3}
.moht-shell[data-theme="dark"] .status-pending_coordinator,.moht-shell[data-theme="dark"] .status-pending_final{background:#3b321c;color:#f3dfa0}
@media(prefers-color-scheme:dark){.moht-shell[data-theme="auto"]{--moht-green:#42c6a0;--moht-deep:#70dfba;--moht-mint:#18392f;--moht-ink:#e6f0eb;--moht-muted:#a7bbb1;--moht-line:#344b41;--moht-bg:#14231d;--moht-danger:#ff928a;--moht-warn:#372e19;color:var(--moht-ink);color-scheme:dark}.moht-shell[data-theme="auto"] .moht-card{background:#172720;border-color:var(--moht-line)}.moht-shell[data-theme="auto"] .moht-tabs button,.moht-shell[data-theme="auto"] .moht-quiet{background:#263a31;color:#dcebe3}.moht-shell[data-theme="auto"] input,.moht-shell[data-theme="auto"] select,.moht-shell[data-theme="auto"] textarea{background:#101e18;color:var(--moht-ink);border-color:#40574c;color-scheme:dark}.moht-shell[data-theme="auto"] .moht-match{background:#1c3027}}
@media(max-width:640px){.moht-header-actions{width:100%;justify-content:flex-start}.moht-theme-toggle,.moht-language{min-height:44px}.moht-progress{gap:5px}.moht-progress li{grid-template-columns:1fr;justify-items:center;text-align:center;gap:5px;padding:7px 4px;font-size:.72rem;min-height:76px}.moht-progress-number{width:27px;height:27px}.moht-field-grid,.moht-review-summary{grid-template-columns:minmax(0,1fr)}.moht-wizard-actions .moht-button{flex:1 1 40%;min-height:46px}}
@media(prefers-reduced-motion:reduce){.moht-shell,.moht-shell *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.moht-shell[data-theme="dark"] h1,.moht-shell[data-theme="dark"] h2,.moht-shell[data-theme="dark"] h3,.moht-shell[data-theme="dark"] h4,.moht-shell[data-theme="dark"] label,.moht-shell[data-theme="dark"] .moht-card{color:var(--moht-ink)}
.moht-shell[data-theme="dark"] input,.moht-shell[data-theme="dark"] select,.moht-shell[data-theme="dark"] textarea{background:#102019;color:var(--moht-ink);border-color:var(--moht-line)}
.moht-shell[data-theme="dark"] input::placeholder,.moht-shell[data-theme="dark"] textarea::placeholder{color:var(--moht-muted)}
.moht-shell :focus-visible{outline:3px solid #64d8b3;outline-offset:2px}

.moht-shell .moht-header h1{color:#fff}
