:root{font:16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172c3a;background:#f5f8fa}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a.button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #36a4c5;outline-offset:2px}header{height:78px;background:#fff;border-bottom:1px solid #dce5ea;padding:0 clamp(20px,4vw,64px);display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:12px;align-items:center}.mark{background:#075878;color:white;border-radius:10px;width:42px;height:42px;display:grid;place-items:center;font-size:25px;font-weight:700}.brand div{display:flex;flex-direction:column;line-height:1.2}.brand strong{font-size:18px}.brand div span{font-size:13px;color:#607583;margin-top:3px}.header-actions{display:flex;align-items:center;gap:20px;color:#607583;font-size:14px}main{max-width:1320px;margin:0 auto;padding:42px clamp(20px,4vw,64px)}h1{font-size:clamp(26px,3vw,34px);line-height:1.2;letter-spacing:-.035em;margin:0}h2{font-size:19px;letter-spacing:-.02em;margin:0}p{margin:7px 0 0;color:#637986}.title-row{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.button,.secondary{display:inline-flex;align-items:center;justify-content:center;border:1px solid #075878;border-radius:8px;padding:10px 18px;text-decoration:none;font-weight:650;white-space:nowrap}.button{background:#075878;color:#fff}.button:hover{background:#034764}.secondary{background:#fff;color:#075878}.secondary:hover{background:#eaf5f8}.quiet,.action{border:0;background:transparent;color:#075878;padding:7px;font-weight:650}.action.danger{color:#af3434}.workspace{background:#fff;border:1px solid #dce5ea;border-radius:14px;padding:24px;box-shadow:0 8px 35px #193a4a08}.drop{border:2px dashed #a9c5d2;border-radius:12px;background:#f5fafc;padding:25px 27px;display:flex;gap:18px;align-items:center}.drop.over{background:#e1f4fa;border-color:#167b9d}.drop-icon{border-radius:10px;background:#d8eef5;color:#075878;font-size:29px;line-height:1;width:44px;height:44px;text-align:center;padding-top:6px}.drop div:nth-child(2){flex:1}.drop strong{font-size:17px}.drop p{font-size:14px}.table-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:34px;margin-bottom:16px}.search{display:flex;align-items:center;border:1px solid #bdcdd5;border-radius:8px;padding:0 12px;min-width:260px;color:#637986}.search input{border:0;outline:0;width:100%;padding:10px 8px;background:transparent}.table-wrap{overflow-x:auto;border:1px solid #dce5ea;border-radius:10px}table{border-collapse:collapse;width:100%;min-width:740px}th{text-align:left;background:#f7f9fa;color:#617782;font-size:13px;font-weight:700;padding:14px 18px}td{padding:16px 18px;border-top:1px solid #e6edef;font-size:14px}td:first-child{font-weight:650;color:#143d51}td:last-child{text-align:right;white-space:nowrap}.file-sub{color:#687e89;word-break:break-all}.empty{padding:42px;text-align:center;color:#657a85}#notice{color:#ad3838;margin:10px 0}#notice:empty{display:none}#upload-list{margin-top:12px}.upload-item{padding:10px 14px;background:#eef8fb;border-radius:7px;margin-top:8px}.upload-item.failed{background:#fff0ee;color:#ad3838}.auth{max-width:540px;margin:14vh auto;padding:42px;background:#fff;border:1px solid #dce5ea;border-radius:14px}.auth .button{margin-top:26px}dialog{border:1px solid #cadbe3;border-radius:12px;padding:28px;box-shadow:0 22px 65px #1c384a42;min-width:min(400px,calc(100vw - 32px))}dialog::backdrop{background:#122b3f88}dialog form{display:grid;gap:14px}dialog label{font-weight:600}dialog input{padding:10px;border:1px solid #afc3ce;border-radius:7px}.dialog-actions{display:flex;gap:12px;justify-content:flex-end}.sr-only{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}@media(max-width:700px){header{padding:0 18px}main{padding:28px 16px}.title-row{align-items:flex-start}.drop{display:block;text-align:center}.drop-icon{margin:0 auto 10px}.drop .secondary{margin-top:14px}.table-heading{align-items:stretch;flex-direction:column}.search{min-width:0}.title-row .button{padding:9px 11px}}
.preview-note{display:inline-block;margin-top:10px;padding:5px 10px;border-radius:6px;background:#e8f3f7;color:#075878;font-size:14px;font-weight:650}

/* Kurik Instrument: the same visual language as the clinical and operations mockups. */
[hidden] { display: none !important; }
:root {
  --instrument-navy: #123a4d;
  --instrument-navy-deep: #102b3b;
  --instrument-ink: #17364b;
  --instrument-muted: #607988;
  --instrument-canvas: #f4f7f6;
  --instrument-glow: #e5eff0;
  --instrument-line: #cedbe0;
  --instrument-orange: #ed7b1a;
  --instrument-link: #1e617e;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--instrument-ink);
  background: var(--instrument-canvas);
}
body { min-height: 100vh; background: var(--instrument-canvas); }
header {
  min-height: 80px;
  height: auto;
  padding: 12px clamp(20px, 4vw, 64px);
  background: var(--instrument-navy-deep);
  color: #fff;
  border-bottom: 3px solid #f58220;
  gap: 16px;
}
.brand { color: #fff; }
.mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 41px;
  width: 41px;
  height: 41px;
  border-radius: 0;
  background: transparent;
  transform: none;
}
.mark::before, .mark::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 10px;
  border: 7px solid #f58220;
  transform: rotate(-38deg);
  border-radius: 20px 2px 20px 2px;
}
.mark::before { top: 4px; left: 1px; border-right: 0; border-bottom: 0; }
.mark::after { bottom: 4px; right: 1px; border-left: 0; border-top: 0; }
.mark i { width: 7px; height: 7px; border-radius: 50%; background: #7fb0c8; }
.brand strong {
  font: 800 22px/1 'Manrope', 'Avenir Next', Arial, sans-serif;
  letter-spacing: .08em;
}
.brand div span {
  color: #b9cdd5;
  margin-top: 6px;
  font: 600 10px/1.3 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.header-actions { color: #d6e3e8; }
.header-actions .quiet { color: #fff; border: 1px solid #72909d; border-radius: 4px; padding: 9px 13px; }
.header-actions .quiet:hover { background: #244453; }
main {
  max-width: 1320px;
  min-height: calc(100vh - 83px);
  padding: clamp(30px, 4.2vw, 58px) clamp(20px, 4vw, 64px);
  background: radial-gradient(circle at 72% 18%, var(--instrument-glow), transparent 43%),
    linear-gradient(#5b84970b 1px, transparent 1px),
    linear-gradient(90deg, #5b84970b 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
}
h1, h2 { font-family: 'Manrope', 'Avenir Next', Arial, sans-serif; color: var(--instrument-navy); }
h1 { font-size: clamp(30px, 3.5vw, 44px); line-height: 1.12; letter-spacing: -.055em; }
h2 { font-size: 21px; letter-spacing: -.04em; }
.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #a45000;
  font: 600 11px/1.4 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}
p { color: var(--instrument-muted); }
.title-row { align-items: end; margin-bottom: 30px; }
.title-row p { font-size: 15px; margin-top: 9px; }
.button, .secondary {
  min-height: 47px;
  border-radius: 4px;
  font: 800 14px/1.2 'Manrope', 'Avenir Next', Arial, sans-serif;
}
.button { color: var(--instrument-navy-deep); background: var(--instrument-orange); border-color: var(--instrument-orange); }
.button:hover { background: #f58220; border-color: #f58220; }
.secondary { color: var(--instrument-link); background: #fff; border-color: #b8cbd1; }
.secondary:hover { background: #e5eff0; }
.quiet, .action { color: var(--instrument-link); }
.quiet:hover, .action:hover { text-decoration: underline; }
.action.danger { color: #a44141; }
.workspace {
  border: 1px solid var(--instrument-line);
  border-radius: 4px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 18px 48px #17364b12;
}
.drop {
  border: 1px dashed #9dbbc5;
  border-radius: 4px;
  background: #f8fbfa;
  padding: 26px 28px;
}
.drop.over { background: #e5eff0; border-color: var(--instrument-link); }
.drop-icon {
  width: 46px;
  height: 46px;
  border-radius: 3px;
  background: var(--instrument-glow);
  color: var(--instrument-link);
}
.drop strong { color: var(--instrument-navy); }
.drop p { color: var(--instrument-muted); }
.table-heading { margin-top: 34px; }
.search { border-color: #b8cbd1; border-radius: 4px; background: #fff; }
.search:focus-within { border-color: #39749a; box-shadow: 0 0 0 3px #39749a25; }
.search input { color: var(--instrument-ink); }
.search input::placeholder { color: var(--instrument-muted); opacity: 1; }
.table-wrap { border-color: var(--instrument-line); border-radius: 4px; }
th {
  background: #f8fbfa;
  color: #527180;
  font: 600 11px/1.4 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
th:last-child { text-align: right; }
td { border-color: #e5edef; }
td:first-child { color: var(--instrument-navy); }
.file-sub, .empty { color: var(--instrument-muted); }
#notice, .upload-item.failed { color: #a44141; }
.upload-item { background: #e5eff0; border: 1px solid #cedbe0; border-radius: 3px; }
.upload-item.failed { background: #fff0ee; border-color: #eed2cc; }
.upload-item { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr) auto; align-items: end; gap: 12px 18px; padding: 16px; }
.upload-item strong { color: var(--instrument-navy); overflow-wrap: anywhere; }
.upload-item label { display: grid; gap: 5px; color: var(--instrument-muted); font: 600 12px/1.4 'Manrope', 'Avenir Next', Arial, sans-serif; }
.upload-item input { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #b8cbd1; border-radius: 4px; background: #fff; color: var(--instrument-ink); }
.upload-item input:focus-visible { outline: 3px solid #39749a25; border-color: #39749a; }
.upload-item input::placeholder { color: var(--instrument-muted); }
.upload-actions { display: flex; gap: 8px; }
.upload-actions button { min-height: 44px; padding: 9px 12px; }
.upload-status { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--instrument-muted); }
.upload-item.failed .upload-status { color: #a44141; }
@media (max-width: 820px) { .upload-item { grid-template-columns: 1fr; } .upload-status { grid-column: 1; } .upload-actions { flex-wrap: wrap; } }
.preview-note {
  background: #e5eff0;
  color: var(--instrument-link);
  border: 1px solid #cedbe0;
  border-radius: 3px;
  font: 600 11px/1.4 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.auth {
  max-width: 980px;
  min-height: 470px;
  margin: 6vh auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(410px, .9fr);
  overflow: hidden;
  border: 1px solid var(--instrument-line);
  border-radius: 4px;
  box-shadow: 0 18px 60px #1a3c4c1c;
}
.auth::before {
  content: '01';
  display: flex;
  align-items: flex-end;
  padding: 44px;
  color: #df7625;
  font: 800 clamp(72px, 12vw, 136px)/1 'Manrope', 'Avenir Next', Arial, sans-serif;
  letter-spacing: -.09em;
  background: radial-gradient(circle at 63% 48%, #e5eff0, #f4f7f6 54%),
    linear-gradient(#5b849713 1px, transparent 1px),
    linear-gradient(90deg, #5b849713 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
}
.auth-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 60px);
  background: #fff;
  border-left: 1px solid var(--instrument-line);
}
.auth h1 { font-size: clamp(32px, 3vw, 40px); }
.auth p { line-height: 1.6; }
.auth .button { align-self: flex-start; margin-top: 26px; }
dialog { color: var(--instrument-ink); border-color: #b8cbd1; border-radius: 4px; box-shadow: 0 22px 65px #102b3b55; }
dialog::backdrop { background: #102b3baa; }
dialog label { color: var(--instrument-ink); }
dialog input { color: var(--instrument-ink); border-color: #b8cbd1; border-radius: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #39749a; outline-offset: 2px; }
@media (max-width: 850px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth::before { min-height: 120px; padding: 24px; }
  .auth-content { border-left: 0; border-top: 1px solid var(--instrument-line); }
}
@media (max-width: 700px) {
  header { padding: 12px 18px; }
  main { padding: 30px 16px; }
  .title-row { align-items: flex-start; }
  .drop { display: block; text-align: center; }
  .drop-icon { margin: 0 auto 12px; }
  .drop .secondary { margin-top: 16px; }
  .table-heading { align-items: stretch; flex-direction: column; }
  .search { min-width: 0; }
  .table-wrap { overflow: visible; border: 0; }
  table { display: block; min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  tbody { display: grid; gap: 12px; }
  tbody tr { display: grid; border: 1px solid var(--instrument-line); border-radius: 4px; background: #fff; overflow: hidden; }
  td { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 5px 14px; border: 0; overflow-wrap: anywhere; }
  td:first-child { display: block; padding-top: 14px; font-size: 16px; }
  td:nth-child(2)::before, td:nth-child(3)::before, td:nth-child(4)::before {
    flex: none; color: #527180; font: 600 10px/1.5 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
    letter-spacing: .08em; text-transform: uppercase;
  }
  td:nth-child(2)::before { content: 'File'; }
  td:nth-child(3)::before { content: 'Uploaded'; }
  td:nth-child(4)::before { content: 'Size'; }
  td:last-child { justify-content: flex-start; flex-wrap: wrap; margin-top: 8px; padding: 9px 7px; border-top: 1px solid #e5edef; }
  .empty { border: 1px solid var(--instrument-line); border-radius: 4px; }
}
@media (max-width: 420px) {
  header { flex-wrap: wrap; }
  .brand div span { display: none; }
  .header-actions { gap: 8px; }
  .title-row { flex-direction: column; align-items: stretch; }
  .title-row .button { width: 100%; }
  .auth { margin: 18px auto; }
  .auth-content { padding: 28px; }
}
