:root {
  color-scheme: light; --paper:#f3f5f4; --white:#fff; --text:#192d35; --muted:#4e626a;
  --line:#dbe4e0; --accent:#176353; --hover:#134b42; --soft:#e6f4ee;
  --amber:#6d4710; --amber-bg:#fff2dc; --danger:#9d312d; --radius:16px;
  font: 16px/1.53 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing:border-box; }
body { margin:0; color:var(--text); background:var(--paper); }
a { color:var(--accent); text-underline-offset:3px; }
.top { background:#17363d; color:#fff; position:relative; z-index:2; }
.top-inner, main { max-width:1370px; margin:auto; padding-inline:clamp(16px,4vw,48px); }
.top-inner { min-height:69px; display:flex; align-items:center; justify-content:space-between; gap:14px; }
.top-inner nav { min-width:0; }
.brand { display:flex; gap:12px; align-items:center; text-decoration:none; color:inherit; font-weight:690; }
.operation-menu { position:relative; }
.operation-menu summary { cursor:pointer; padding-block:6px; list-style:none; }
.operation-menu summary::-webkit-details-marker { display:none; }
.operation-menu summary::after { content:""; width:7px; height:7px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); margin:0 2px 4px; }
.operation-menu[open] summary::after { transform:rotate(225deg); margin-top:7px; }
.operation-links { position:absolute; top:calc(100% + 6px); left:0; width:min(270px,calc(100vw - 32px)); padding:6px; background:white;
  border:1px solid var(--line); border-radius:12px; box-shadow:0 15px 34px #162c3440; display:grid; }
.operation-links a { text-decoration:none; color:var(--text); padding:10px 12px; border-radius:7px; }
.operation-links a:hover { background:var(--soft); }
.mark { background:#dceee4; color:#204741; width:38px; height:38px; display:grid; place-items:center; border-radius:11px; font-size:14px; }
main { padding-block:34px 70px; }
h1,h2,h3,p { margin:0; }
h1 { font-size:clamp(30px,5vw,47px); letter-spacing:-.055em; line-height:1.04; }
h2 { font-size:23px; letter-spacing:-.035em; line-height:1.2; }
h3 { font-size:17px; line-height:1.2; }
p + p { margin-top:10px; }
small,.muted,.sub { color:var(--muted); }
.sub { margin-top:9px; }
.panel { background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:22px; min-width:0; }
.panel + .panel { margin-top:17px; }
.head, .section-head { display:flex; gap:16px; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; margin-bottom:22px; }
.section-head { margin-bottom:15px; }
.actions { display:flex; gap:9px; flex-wrap:wrap; align-items:center; }
.top .actions { justify-content:flex-end; }
button,.button {
  background:var(--accent); color:#fff; border:1px solid var(--accent); padding:8px 14px; border-radius:9px;
  font:inherit; font-weight:620; cursor:pointer; display:inline-flex; align-items:center; justify-content:center;
  text-decoration:none; min-height:42px; white-space:nowrap;
}
button:hover,.button:hover { background:var(--hover); border-color:var(--hover); }
.secondary { background:#fff; color:var(--text); border-color:#cdd9d3; }
.secondary:hover { background:var(--soft); border-color:#9bb9ac; }
.top button.secondary { background:transparent; color:white; border-color:#6f9290; }
.top button.secondary:hover { background:#285255; }
button:disabled,.button[aria-disabled=true] { opacity:.58; cursor:progress; }
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible { outline:3px solid #197cbe; outline-offset:2px; }
label { display:grid; gap:5px; font-weight:640; font-size:14px; }
input,select,textarea { font:inherit; min-width:0; width:100%; min-height:42px; padding:8px 10px; background:#fff; color:var(--text); border:1px solid #c8d6d0; border-radius:8px; }
select { appearance:none; padding-right:29px; background-image:linear-gradient(45deg,transparent 50%,#46665f 50%),linear-gradient(135deg,#46665f 50%,transparent 50%);
  background-position:calc(100% - 15px) center,calc(100% - 10px) center; background-size:5px 5px; background-repeat:no-repeat; }
textarea { min-height:150px; resize:vertical; font-family:ui-monospace,monospace; }
input[type=checkbox] { width:18px; min-height:18px; }
.checkbox { display:flex; flex-direction:row; align-items:center; gap:8px; }
input[type=file] { max-width:100%; }
.controls { display:grid; grid-template-columns: minmax(140px,2fr) minmax(140px,1fr) minmax(150px,1fr); gap:12px; align-items:end; }
.form-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,165px),1fr)); gap:11px; align-items:end; }
.archive-filters { grid-template-columns:repeat(4,minmax(0,1fr)); }
.archive-filters > :first-child { grid-column:span 2; }
.archive-filters input[type=date].empty-date:not(:focus)::-webkit-datetime-edit { opacity:0; }
.archive-results { min-width:0; }
.stack { display:grid; gap:15px; }
.crumb { display:inline-block; margin-bottom:20px; font-size:14px; }
.stat-row { display:grid; grid-template-columns:repeat(4,1fr); gap:11px; margin-block:19px; }
.stat { display:grid; gap:5px; padding:15px 19px; border:1px solid var(--line); border-radius:12px; background:white; }
.stat strong { font-size:29px; letter-spacing:-.035em; line-height:1; font-variant-numeric:tabular-nums; }
.stat span { font-size:14px; color:var(--muted); }
.tabs { display:flex; flex-wrap:wrap; gap:5px; margin:0 0 15px; padding:0; }
.tabs button { background:transparent; color:var(--text); border-color:transparent; }
.tabs button:hover { background:#e9efec; }
.tabs button[aria-current=true] { background:#e0eee8; color:#155547; border-color:#bedaCE; }
.lanes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.lane { display:grid; align-content:start; gap:10px; border:1px solid var(--line); border-radius:12px; padding:16px; }
.lane-head { margin:0; align-items:center; }
.upload-area { padding:12px; border:1px dashed #9ab8ad; border-radius:9px; background:#f7faf8; }
.upload-instruction { color:var(--text); font-size:14px; }
.upload-followup { margin:0; color:var(--muted); font-size:13px; }
.case-project,.project-cell { display:grid; gap:4px; overflow-wrap:anywhere; }
.case-project { margin-top:10px; max-width:650px; }
.project-cell { min-width:155px; max-width:360px; }
.lane small { min-height:38px; }
.lane ul { margin:0; padding:0; list-style:none; max-height:330px; overflow:auto; }
.doc { display:flex; flex-wrap:wrap; align-items:center; gap:6px; border-top:1px solid var(--line); padding:8px 0; }
.doc > span { flex:1 1 125px; overflow-wrap:anywhere; }
.doc button,.doc .button { padding:4px 8px; min-height:32px; font-size:13px; }
.tag { display:inline-flex; padding:3px 8px; min-height:23px; align-items:center; border-radius:7px; color:#22584b; background:var(--soft); font-size:12px; font-weight:650; white-space:nowrap; }
.tag.review { color:var(--amber); background:var(--amber-bg); }
.tag.other,.tag.duplicate,.tag.template { color:#43545e; background:#ecf0f3; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; text-align:left; font-size:14px; }
th,td { padding:10px 11px; border-bottom:1px solid var(--line); vertical-align:top; }
th { background:#ecf2ef; font-weight:650; white-space:nowrap; }
td { overflow-wrap:anywhere; }
td input,td select { min-width:105px; }
td .product { min-width:190px; }
.right { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.alert { border-radius:9px; background:var(--amber-bg); color:var(--amber); padding:12px 14px; }
pre { margin:0; padding:12px; max-height:300px; overflow:auto; background:#eff3f2; font-size:13px; white-space:pre-wrap; overflow-wrap:anywhere; }
dialog { width:min(940px,calc(100% - 24px)); max-height:90vh; padding:21px; border:1px solid var(--line); border-radius:16px; color:var(--text); box-shadow:0 20px 70px #162c3444; }
dialog::backdrop { background:#102a31aa; }
.login { max-width:465px; margin:35px auto; }
.how-it-works summary { font-weight:690; cursor:pointer; }
.how-it-works ol { padding-left:1.35rem; margin-bottom:0; color:var(--muted); }
.how-it-works li + li { margin-top:.5rem; }
#notice:not(:empty) { position:fixed; z-index:5; bottom:18px; right:18px; max-width:min(470px,calc(100% - 36px)); background:#183b42; color:white; border-radius:11px; padding:13px 17px; box-shadow:0 4px 22px #202f3733; }
.dialog-message:not(:empty) { padding:10px; background:var(--amber-bg); color:var(--amber); border-radius:8px; }
@media(max-width:720px) {
  main { padding-block:22px; }
  .lanes,.controls { grid-template-columns:1fr; }
  .archive-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .stat-row { grid-template-columns:repeat(2,1fr); }
  .top-inner { padding-block:9px; }
  .top .actions > span { display:none; }
  .panel { padding:15px; }
}
