* { box-sizing:border-box; }
body { margin:0;background:#faf9f5;color:#192538;font:16px/1.45 "Segoe UI",Arial,sans-serif; }
header { display:flex;gap:12px;align-items:center;background:#fff;border-bottom:1px solid #d5d6d9;padding:15px max(20px,calc((100vw - 850px)/2)); }
header strong { font:600 24px Georgia,serif;white-space:nowrap; } header small{display:block;font-size:.75rem; } header button{margin-left:auto;}
main { max-width:890px;margin:auto;padding:32px 20px; } .caption{font-size:.88rem;color:#4e6075;margin:0;}
h1 { font:400 clamp(2.35rem,5vw,3.4rem)/1.05 Georgia,serif;margin:8px 0 25px; }
h2 { font-size:1.15rem;margin:0 0 12px; } h3{margin:0 0 4px;font-size:1rem;} p{margin:0 0 12px;}
form,.panel,.notice { border:1px solid #d2d5d8;background:#fff;padding:18px;margin-bottom:16px;border-radius:4px; }
#login{max-width:410px;} #login label[for=area]{margin-bottom:0;} #area{margin-bottom:14px;} form label{display:block;margin-bottom:14px;font-weight:560;}
button,input,select { font:inherit; }
input,select{display:block;width:100%;padding:9px;margin-top:5px;border:1px solid #98a4b2;border-radius:3px;background:white;color:#111e38;}
button { border:1px solid #aab3c0;background:#fff;color:#111e38;min-height:44px;padding:8px 13px;border-radius:3px;cursor:pointer;}
button.primary{background:#111e38;color:#fff;border-color:#111e38;} button:disabled{opacity:.6;} :focus-visible{outline:3px solid #597da0;outline-offset:2px;}
a{color:#183d66;text-underline-offset:3px;} .notice{background:#f2f5f8;} .row{border-top:1px solid #e1e3e6;padding:12px 0;}
.counts{font-size:.9rem;color:#354a61;}

[data-priority="overdue"] { --accent:#a12d36; --tone:#861f2e; --wash:#fcebed; --edge:#e6b7bc; }
[data-priority="soon"] { --accent:#b77213; --tone:#765007; --wash:#fff3db; --edge:#e6cb91; }
[data-priority="waiting"] { --accent:#37668a; --tone:#254c6d; --wash:#ecf3f9; --edge:#c4d8e8; }
[data-priority="received"] { --accent:#3e7559; --tone:#23553d; --wash:#eaf4ed; --edge:#bdd7c6; }

.portfolio {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  background:#f1eee6;
  border-color:#d8d1c1;
}
.portfolio h2 { margin-bottom:4px; }
.portfolio p:last-child { margin-bottom:0; }

.priority-summary { margin:24px 0 28px; }
.priority-summary h2 { font-size:.95rem; margin-bottom:10px; }
.priority-summary ul {
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.priority-summary li {
  display:flex;
  flex-direction:column-reverse;
  gap:2px;
  padding:10px 12px;
  border:1px solid var(--edge);
  border-top:3px solid var(--accent);
  border-radius:4px;
  background:var(--wash);
  color:var(--tone);
  font-size:.875rem;
  font-weight:600;
}
.priority-summary li[data-empty] { background:#fff; border-color:#d8dadc; color:#4e6075; }
.priority-summary strong { font-size:1.6rem; line-height:1.2; font-variant-numeric:tabular-nums; }

.request-card { border-left:5px solid var(--accent); }
.request-card[data-priority="overdue"] { border-color:var(--edge); border-left-color:var(--accent); }
.request-heading { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:6px 12px; }
.request-heading h2 { margin:0; }
.request-badge {
  padding:3px 9px;
  border:1px solid var(--edge);
  border-radius:4px;
  background:var(--wash);
  color:var(--tone);
  font-size:.85rem;
  font-weight:650;
}
.request-time { margin:9px 0 14px; color:#46566a; font-size:.9rem; }
.request-time time { font-weight:600; }
.request-card form { margin:4px 0 0; padding:12px; background:#faf9f5; }

.delivery-results { list-style:none; display:flex; flex-wrap:wrap; gap:6px; margin:7px 0 0; padding:0; }
.delivery-results li { padding:3px 8px; border-radius:3px; background:#eef1f4; color:#33465b; font-size:.85rem; }
.delivery-results .delivery-accepted { color:#23553d; background:#eaf4ed; }
.delivery-results .delivery-failed { color:#861f2e; background:#fcebed; font-weight:650; }
.delivery-results .delivery-uncertain { color:#765007; background:#fff3db; }
@media (max-width:540px) {
  main { padding:24px 16px; }
  .priority-summary ul { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .portfolio { flex-direction:column; align-items:flex-start; }
}
[hidden]{display:none!important;} #status:not(:empty){color:#203a56;font-weight:600;}
