:root {
  --primary:#5547df;
  --primary-dark:#4435c8;
  --primary-soft:#f0edff;
  --ink:#252942;
  --muted:#798198;
  --line:#e8ebf2;
  --canvas:#f7f8fc;
  --white:#fff;
  --teal:#238d78;
  --radius:14px;
  font-family:Inter,"Noto Sans TC","PingFang TC","Microsoft JhengHei",system-ui,sans-serif;
  color:var(--ink);
  font-size:14px;
  line-height:1.6;
  background:var(--canvas)
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
button,input,select {
  font:inherit
}
button,a,input,select {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer
}
button:disabled {
  cursor:not-allowed;
  opacity:.45
}
button {
  color:inherit
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,main:focus-visible {
  outline:3px solid #aaa2ff;
  outline-offset:4px
}
button,a,input,select {
  transition:background .15s,color .15s,border-color .15s
}
a {
  color:inherit;
  text-decoration:none
}
h1,h2,h3,p {
  margin:0
}
h1 {
  font-size:29px;
  letter-spacing:.02em;
  line-height:1.5;
  font-weight:750
}
h2 {
  font-size:16px;
  font-weight:700
}
h3 {
  font-size:14px
}
small {
  font-size:12px
}
[hidden] {
  display:none!important
}
.icon-library {
  width:0;
  height:0;
  position:absolute
}
.icon {
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex:none
}
.muted {
  color:var(--muted)
}
.sr-only,.skip-link:not(:focus) {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.skip-link:focus {
  position:fixed;
  top:10px;
  left:10px;
  background:#fff;
  padding:15px;
  z-index:100
}
.sidebar {
  width:238px;
  position:fixed;
  inset:0 auto 0 0;
  background:var(--white);
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  z-index:40;
  padding:29px 18px 20px
}
.brand {
  display:flex;
  gap:12px;
  align-items:center;
  font-size:20px;
  font-weight:780;
  letter-spacing:-.5px;
  padding:0 9px
}
.brand small {
  display:block;
  font-size:10px;
  color:var(--muted);
  letter-spacing:.6px;
  font-weight:500;
  margin-top:1px
}
.brand-mark {
  position:relative;
  display:grid;
  place-items:center;
  width:42px;
  height:44px;
  flex:none;
  color:white;
  background:var(--primary);
  font-size:28px;
  font-weight:600;
  border-radius:12px;
  letter-spacing:-2px;
  box-shadow:0 5px 12px #5547df25
}
.brand-mark span {
  position:absolute;
  top:0;
  right:5px;
  font-size:15px;
  letter-spacing:0
}
.nav-caption {
  font-size:11px;
  color:#9b9fb2;
  letter-spacing:1.5px;
  margin:45px 15px 12px
}
.nav-link {
  display:flex;
  gap:12px;
  align-items:center;
  width:100%;
  background:none;
  border:0;
  border-radius:9px;
  padding:13px 14px;
  margin:5px 0;
  text-align:left;
  color:#70768e;
  font-weight:550;
  font-size:13px;
  min-height:48px
}
.nav-link:hover {
  background:#f8f7ff
}
.nav-link.active {
  color:var(--primary);
  background:var(--primary-soft);
  font-weight:700
}
.nav-count {
  margin-left:auto;
  background:#e2dcff;
  padding:0 7px;
  border-radius:5px;
  font-size:11px
}
.nav-label {
  margin-left:auto;
  font-size:9px;
  white-space:nowrap;
  color:#9297ab;
  border:1px solid var(--line);
  border-radius:4px;
  padding:1px 4px
}
.sidebar-note {
  margin:auto 8px 25px;
  padding:19px 15px 0;
  background:linear-gradient(135deg,#f5f3ff,#fafbff);
  border:1px solid #efecff;
  border-radius:12px;
  overflow:hidden
}
.mini-label {
  font-size:7px;
  letter-spacing:1.2px;
  color:#9c93c6
}
.sidebar-note strong {
  display:block;
  font-size:12px;
  margin:9px 0
}
.sidebar-note p {
  font-size:10px;
  color:#8c87a4;
  line-height:1.9
}
.mini-chart {
  height:63px;
  display:flex;
  gap:8px;
  align-items:end;
  margin-top:16px;
  opacity:.55
}
.mini-chart span {
  flex:1;
  border-radius:3px 3px 0 0;
  background:#c6bffc;
  height:30%
}
.mini-chart span:nth-child(2n) {
  height:48%;
  background:#aaa0ed
}
.mini-chart span:nth-child(3n) {
  height:68%
}
.mini-chart span:nth-child(4n) {
  height:55%
}
.mini-chart span:last-child {
  height:85%
}
.sidebar-footer {
  border-top:1px solid var(--line);
  margin:0 9px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:19px 0 0;
  font-size:12px
}
.sidebar-footer small {
  display:block;
  font-size:10px;
  color:var(--muted)
}
.status-dot {
  height:7px;
  width:7px;
  border-radius:50%;
  background:#7b73b9;
  box-shadow:0 0 0 4px #f1eff8
}
.workspace {
  margin-left:238px
}
.topbar {
  height:76px;
  padding:0 36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  background:#fff;
  gap:12px
}
.breadcrumb,.topbar-actions {
  display:flex;
  align-items:center;
  gap:18px;
  font-size:12px
}
.breadcrumb {
  color:var(--muted)
}
.breadcrumb strong {
  color:#535871;
  font-weight:500
}
.slash {
  color:#c6c9d7
}
.topbar-actions {
  gap:24px
}
.preview-badge {
  display:flex;
  align-items:center;
  gap:7px;
  border:1px solid #e9e5fb;
  background:#fcfbff;
  color:#8375ab;
  padding:4px 10px;
  border-radius:6px;
  font-size:11px;
  white-space:nowrap
}
.preview-badge span {
  background:#9b8ac6;
  width:5px;
  height:5px;
  border-radius:50%
}
.help-button {
  display:flex;
  align-items:center;
  gap:7px;
  border:0;
  background:transparent;
  color:#7d849b;
  font-size:12px;
  padding:5px
}
.help-button .icon {
  width:17px;
  height:17px
}
main {
  padding:24px 36px 0;
  max-width:1600px;
  margin:auto;
  min-height:calc(100vh - 76px);
  display:flex;
  flex-direction:column
}
.prototype-notice {
  background:#f0eefb;
  border:1px solid #e7e2f8;
  color:#7c729e;
  border-radius:8px;
  padding:9px 13px;
  display:flex;
  align-items:center;
  gap:9px;
  font-size:11px;
  margin-bottom:28px
}
.prototype-notice .icon {
  width:16px;
  height:16px
}
.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:28px
}
.eyebrow {
  font-size:9px;
  letter-spacing:2.2px;
  font-weight:650;
  color:#8d89a8;
  margin-bottom:6px
}
.subtitle {
  color:var(--muted);
  font-size:12px;
  margin-top:7px
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:10px 17px;
  border:1px solid transparent;
  border-radius:7px;
  font-size:12px;
  font-weight:600;
  line-height:1.5;
  min-height:40px;
  white-space:nowrap
}
.button .icon {
  width:16px;
  height:16px
}
.primary {
  background:var(--primary);
  color:white;
  box-shadow:0 3px 6px #5547df13
}
.primary:hover:not(:disabled) {
  background:var(--primary-dark)
}
.secondary {
  background:white;
  color:#646b84;
  border-color:#dfe2ec
}
.secondary:hover {
  border-color:#bbb2f1;
  background:#faf9ff
}
.text-button {
  border:0;
  background:none;
  color:var(--primary);
  font-size:12px;
  padding:6px 0;
  font-weight:600
}
.text-button:hover {
  color:#3423b6;
  text-decoration:underline
}
.stats-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-bottom:25px
}
.stat-card {
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:22px;
  display:flex;
  align-items:center;
  gap:17px
}
.stat-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  border-radius:12px;
  flex:none
}
.stat-icon .icon {
  width:23px;
  height:23px
}
.purple {
  background:var(--primary-soft);
  color:var(--primary)
}
.teal {
  background:#eaf7f2;
  color:#3a9b84
}
.blue {
  background:#edf3ff;
  color:#668be0
}
.stat-label {
  display:block;
  color:var(--muted);
  font-size:11px
}
.stat-card strong {
  display:block;
  font-size:25px;
  font-weight:700;
  line-height:1.55;
  letter-spacing:-.3px
}
.stat-card strong small {
  font-size:11px;
  margin-left:8px;
  font-weight:400;
  color:#a0a4b4
}
.stat-description {
  display:block;
  color:#9da2b4;
  font-size:10px
}
.stat-card .text-value {
  font-size:20px;
  line-height:1.94
}
.stat-card .timepoints-value {
  font-size:20px;
  line-height:1.94;
  white-space:nowrap
}
.timepoints-value span {
  font-size:13px;
  color:#d1d4df;
  padding:0 2px
}
.stepper {
  list-style:none;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  padding:20px 28px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:10px;
  margin:0 0 25px;
  gap:22px
}
.stepper li {
  display:flex;
  align-items:center;
  gap:11px;
  position:relative;
  color:#9ba0b2
}
.stepper li:not(:last-child):after {
  content:"";
  width:25px;
  border-top:1px solid #e5e7f0;
  position:absolute;
  right:-4px;
  top:50%
}
.stepper li>span {
  border-radius:50%;
  border:1px solid #e1e4ee;
  width:29px;
  height:29px;
  display:grid;
  place-items:center;
  font-size:11px;
  flex:none
}
.stepper strong {
  display:block;
  font-size:11px;
  font-weight:600
}
.stepper small {
  display:block;
  font-size:9px;
  color:#a3a7b8;
  margin-top:1px
}
.stepper .current {
  color:var(--primary)
}
.stepper .current>span {
  color:#fff;
  background:var(--primary);
  border-color:var(--primary);
  box-shadow:0 0 0 4px #f1efff
}
.stepper .done>span {
  background:#eeebff;
  border-color:#eeebff;
  color:var(--primary)
}
.content-columns {
  display:grid;
  grid-template-columns:minmax(0,1.85fr) minmax(265px,1fr);
  gap:23px
}
.panel {
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px;
  min-width:0
}
.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:22px
}
.panel-heading p {
  color:#969db0;
  font-size:11px;
  margin-top:4px
}
.subtle-badge {
  display:inline-block;
  color:#9694ad;
  background:#f5f5fa;
  border:1px solid #eeedf5;
  padding:3px 8px;
  border-radius:5px;
  font-size:9px;
  letter-spacing:.4px;
  font-weight:500
}
.panel h2 .subtle-badge {
  margin-left:7px;
  vertical-align:middle
}
.dropzone {
  text-align:center;
  padding:28px 15px 24px;
  border:1.5px dashed #d9d2f5;
  border-radius:10px;
  background:#fcfbff;
  position:relative
}
.dropzone.dragging {
  background:#f0ebff;
  border-color:var(--primary)
}
.upload-illustration {
  display:inline-flex;
  background:#efeaff;
  color:var(--primary);
  width:56px;
  height:56px;
  border-radius:15px;
  align-items:center;
  justify-content:center;
  position:relative;
  box-shadow:0 0 0 8px #f7f4ff;
  margin:4px 0 20px
}
.upload-illustration .icon {
  width:25px;
  height:25px
}
.dropzone h3 {
  font-size:14px;
  font-weight:650
}
.dropzone p {
  color:#9a9cb0;
  font-size:11px;
  margin:6px 0 17px
}
.dropzone small {
  display:block;
  color:#a5a5b8;
  font-size:10px;
  margin-top:15px
}
.file-select {
  position:relative;
  overflow:hidden;
  cursor:pointer
}
.file-select:focus-within {
  outline:3px solid #aaa2ff;
  outline-offset:4px
}
.file-select input {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor:pointer
}
.sample-prompt {
  margin-top:20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:1px 0
}
.sample-prompt strong {
  font-size:11px;
  color:#656d86
}
.sample-prompt p {
  font-size:10px;
  color:#a0a5b6;
  margin-top:3px
}
.sample-prompt .text-button {
  white-space:nowrap;
  font-size:11px
}
.guide-panel>p {
  color:#9299ad;
  font-size:11px;
  line-height:1.9;
  margin-top:-5px
}
.guide-block {
  display:flex;
  gap:12px;
  margin-top:22px
}
.guide-number {
  font-size:9px;
  font-weight:650;
  color:#8f83ce;
  background:#f3f0ff;
  border-radius:6px;
  width:26px;
  height:26px;
  flex:none;
  display:grid;
  place-items:center
}
.guide-block h3 {
  font-size:12px;
  color:#606781;
  margin-bottom:3px
}
.guide-block p {
  font-size:10px;
  color:#9aa0b2;
  line-height:1.9
}
.guide-footnote {
  display:flex;
  gap:8px;
  border-top:1px solid var(--line);
  padding-top:16px;
  margin-top:23px;
  color:#939aaf
}
.guide-footnote .icon {
  width:15px;
  height:15px;
  margin-top:2px
}
.guide-footnote p {
  font-size:10px;
  line-height:1.8
}
.file-status {
  font-size:11px;
  padding:12px;
  background:#f7f6fc;
  border-radius:6px;
  margin-top:12px;
  overflow-wrap:anywhere
}
.sample-data {
  margin-top:24px
}
.validation-summary {
  display:flex;
  align-items:center;
  gap:20px;
  font-size:11px;
  color:#8a91a6;
  margin-bottom:19px;
  flex-wrap:wrap
}
.success-badge {
  display:inline-block;
  padding:3px 8px;
  color:#31866f;
  background:#edf8f3;
  border:1px solid #dcf0e5;
  border-radius:5px;
  font-size:10px
}
.table-scroll {
  overflow:auto;
  width:100%
}
table {
  border-collapse:collapse;
  width:100%;
  font-size:12px;
  white-space:nowrap;
  text-align:left
}
th {
  background:#f8f8fc;
  font-weight:500;
  color:#8a91a7;
  font-size:10px;
  padding:12px 14px;
  border-bottom:1px solid var(--line)
}
td {
  padding:14px;
  border-bottom:1px solid #f0f1f7;
  color:#616b83;
  font-variant-numeric:tabular-nums
}
tbody tr:hover {
  background:#fcfbff
}
tbody tr:last-child td {
  border-bottom:0
}
td:first-child {
  font-weight:600;
  color:#514d79
}
.analysis-settings {
  padding-top:23px;
  margin-top:12px;
  border-top:1px solid var(--line);
  display:flex;
  align-items:end;
  gap:24px;
  flex-wrap:wrap
}
fieldset {
  border:0;
  padding:0;
  margin:0
}
legend,.field {
  font-size:11px;
  color:#7d859b;
  font-weight:500
}
fieldset label {
  font-size:12px;
  margin-right:12px;
  display:inline-flex;
  align-items:center;
  gap:4px;
  min-height:40px
}
input[type=checkbox] {
  accent-color:var(--primary);
  width:15px;
  height:15px
}
.field {
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1
}
input:not([type=checkbox]):not([type=file]),select {
  border:1px solid #e0e3ed;
  border-radius:7px;
  padding:9px 12px;
  color:#5b627b;
  background:#fff;
  min-height:40px;
  max-width:100%;
  font-size:12px
}
input::placeholder {
  color:#aeb2c2
}
select {
  cursor:pointer
}
.inline-message {
  font-size:11px;
  color:#aa623b;
  margin-top:12px
}
.empty-state {
  text-align:center;
  padding:70px 24px
}
.empty-state .stat-icon {
  margin-bottom:17px
}
.empty-state p {
  margin:10px 0 23px;
  color:var(--muted);
  font-size:12px
}
.results-banner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:20px 24px;
  margin-bottom:22px
}
.results-banner p {
  font-size:12px;
  color:#8891a5;
  margin-top:7px
}
.filters {
  display:flex;
  gap:12px
}
.search-field {
  display:flex;
  position:relative;
  align-items:center
}
.search-field .icon {
  position:absolute;
  left:11px;
  width:16px;
  color:#a0a5b5
}
.search-field input {
  padding-left:35px!important;
  width:200px
}
.table-footer {
  display:flex;
  justify-content:space-between;
  padding-top:15px;
  margin-top:10px;
  border-top:1px solid var(--line);
  font-size:10px;
  color:#9da3b5;
  gap:12px
}
.trend-panel {
  margin-top:24px
}
.legend {
  display:flex;
  gap:20px;
  font-size:10px;
  color:#7f879e
}
.legend span:before {
  content:"";
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--primary);
  margin-right:6px
}
.legend .legend-high:before {
  background:#5eacb9
}
#trend-chart svg {
  width:100%;
  height:auto;
  max-height:280px;
  display:block
}
.chart-caption {
  color:#989fb1;
  font-size:10px;
  margin-top:12px;
  text-align:center
}
.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px
}
.form-grid input,.form-grid select {
  width:100%
}
.form-footer {
  margin-top:30px;
  padding-top:20px;
  border-top:1px solid var(--line)
}
.form-footer p {
  font-size:11px;
  color:#9299af;
  line-height:1.8;
  margin-bottom:15px
}
.single-result {
  text-align:center;
  padding-top:40px
}
.single-result .stat-icon {
  margin-bottom:20px
}
.single-result>p {
  font-size:12px;
  color:#959bae;
  margin-top:12px;
  line-height:1.9
}
#single-demo {
  margin-top:30px;
  border-top:1px solid var(--line);
  padding-top:25px
}
#single-demo p {
  font-size:11px;
  color:#9a9fb1;
  margin:13px 0
}
#single-demo strong {
  display:block;
  font-size:27px;
  color:var(--primary)
}
#single-demo>span {
  font-size:10px;
  color:#9890b2
}
.export-panel {
  max-width:720px;
  padding:35px
}
.export-panel>h2 {
  margin-top:20px
}
.export-panel>p {
  font-size:12px;
  color:#939bb0;
  margin:10px 0 25px
}
.export-option {
  display:flex;
  align-items:center;
  gap:17px;
  border:1px solid #dcd5f4;
  background:#fcfbff;
  border-radius:10px;
  padding:20px;
  margin:25px 0
}
.export-option>.icon {
  color:var(--primary);
  width:26px;
  height:26px
}
.export-option strong {
  font-size:13px
}
.export-option p {
  font-size:10px;
  color:#959aae;
  margin-top:4px
}
.export-option>.success-badge {
  margin-left:auto
}
.export-panel>.text-button {
  margin-left:20px
}
.main-footer {
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:auto;
  padding:35px 0 24px;
  font-size:9px;
  letter-spacing:.2px;
  color:#a4a9ba
}
.icon-button {
  border:0;
  background:none;
  padding:5px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:25px;
  color:#9098ab
}
.mobile-only {
  display:none
}
.nav-backdrop {
  position:fixed;
  inset:0;
  border:0;
  background:#19152966;
  z-index:35
}
.toast {
  position:fixed;
  bottom:25px;
  left:calc(50% + 100px);
  transform:translateX(-50%);
  padding:11px 20px;
  border-radius:8px;
  background:#343149;
  color:#fff;
  box-shadow:0 5px 25px #20203a20;
  font-size:12px;
  z-index:80;
  max-width:90vw
}
dialog {
  border:1px solid var(--line);
  border-radius:16px;
  max-width:460px;
  width:calc(100% - 40px);
  padding:28px;
  color:var(--ink);
  box-shadow:0 20px 100px #25294230
}
dialog::backdrop {
  background:#26223a70
}
dialog p {
  font-size:12px;
  color:#8c93a7;
  margin:20px 0
}
.help-steps {
  padding-left:22px;
  color:#6e758c;
  font-size:13px;
  line-height:2.4
}
@media(min-width:1500px) {
  main {
    padding-top:30px
  }
  .dropzone {
    padding:45px 15px 35px
  }
  .sidebar-note {
    margin-bottom:50px
  }
}
@media(max-width:1200px) {
  .sidebar {
    width:210px;
    padding-left:12px;
    padding-right:12px
  }
  .brand {
    font-size:18px;
    gap:9px
  }
  .brand small {
    font-size:9px
  }
  .workspace {
    margin-left:210px
  }
  .topbar {
    padding:0 25px
  }
  main {
    padding:23px 25px 0
  }
  .stat-card {
    padding:18px 15px;
    gap:12px
  }
  .stat-icon {
    width:39px;
    height:39px
  }
  .stat-card .timepoints-value {
    font-size:16px;
    line-height:2.4
  }
  .stat-card .text-value {
    font-size:18px;
    line-height:2.15
  }
  .content-columns {
    grid-template-columns:minmax(0,1.6fr) minmax(245px,1fr);
    gap:18px
  }
  .panel {
    padding:20px
  }
  .stepper {
    padding:18px;
    gap:18px
  }
  .stepper li:not(:last-child):after {
    width:12px;
    right:-8px
  }
  .stepper small {
    font-size:8px
  }
  .result-tools {
    flex-wrap:wrap
  }
  .stat-description {
    font-size:9px
  }
}
@media(max-width:1000px) {
  .sidebar {
    width:190px;
    padding-left:8px;
    padding-right:8px
  }
  .brand {
    font-size:16px
  }
  .brand-mark {
    width:36px;
    height:39px
  }
  .brand small {
    font-size:8px
  }
  .workspace {
    margin-left:190px
  }
  .nav-link {
    font-size:12px;
    gap:9px;
    padding:13px 10px
  }
  .nav-label {
    font-size:8px;
    padding:1px 3px
  }
  .content-columns {
    grid-template-columns:1fr
  }
  .guide-panel {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:0 18px
  }
  .guide-panel .panel-heading,.guide-panel>p,.guide-footnote {
    grid-column:1/-1
  }
  .stats-grid {
    gap:10px
  }
  .stat-card {
    gap:9px;
    padding:16px 10px
  }
  .stat-icon {
    width:32px;
    height:32px;
    border-radius:9px
  }
  .stat-icon .icon {
    width:18px;
    height:18px
  }
  .stat-card .timepoints-value {
    font-size:14px;
    line-height:2.8
  }
  .timepoints-value span {
    padding:0
  }
  .stat-label {
    font-size:10px
  }
  .stat-description {
    font-size:8px
  }
  .stepper {
    gap:15px;
    padding:18px 13px
  }
  .stepper li {
    gap:8px
  }
  .stepper strong {
    font-size:10px
  }
  .stepper small {
    display:none
  }
  .single-result {
    padding-bottom:35px
  }
  .single-result .stat-icon {
    width:46px;
    height:46px
  }
}
@media(max-width:760px) {
  .sidebar {
    transform:translateX(-100%);
    width:235px;
    transition:transform .2s
  }
  .sidebar.open {
    transform:translateX(0)
  }
  .brand {
    font-size:20px
  }
  .brand small {
    font-size:10px
  }
  .brand-mark {
    width:42px;
    height:44px
  }
  .nav-link {
    font-size:13px;
    padding:14px
  }
  .nav-label {
    font-size:9px
  }
  .workspace {
    margin-left:0
  }
  .mobile-only {
    display:flex
  }
  .topbar {
    height:65px;
    padding:0 20px
  }
  .breadcrumb {
    gap:12px;
    font-size:11px
  }
  .topbar-actions {
    gap:10px
  }
  .help-button span {
    display:none
  }
  .preview-badge {
    font-size:9px;
    padding:4px 7px
  }
  main {
    padding:18px 20px 0;
    min-height:calc(100vh - 65px)
  }
  .prototype-notice {
    font-size:10px;
    align-items:flex-start;
    margin-bottom:23px
  }
  .prototype-notice .icon {
    margin-top:1px
  }
  .page-heading {
    gap:15px;
    margin-bottom:23px;
    align-items:flex-start
  }
  h1 {
    font-size:25px
  }
  .subtitle {
    font-size:11px;
    max-width:240px
  }
  .page-heading>.button {
    padding:8px 10px;
    min-height:35px;
    font-size:10px;
    margin-top:15px
  }
  .page-heading>.button .icon {
    width:14px
  }
  .stats-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    margin-bottom:18px
  }
  .stat-card {
    display:block;
    padding:14px 12px
  }
  .stat-card>.stat-icon {
    margin-bottom:8px
  }
  .stat-card .timepoints-value {
    font-size:12px;
    line-height:2.85
  }
  .stat-card .text-value {
    font-size:14px;
    line-height:2.45
  }
  .stat-card strong {
    font-size:22px
  }
  .stat-description {
    font-size:8px;
    min-height:25px
  }
  .stat-label {
    font-size:9px
  }
  .stat-card strong small {
    font-size:9px;
    margin-left:4px
  }
  .timepoints-value span {
    font-size:9px
  }
  .stepper {
    padding:15px 10px;
    gap:7px;
    margin-bottom:18px
  }
  .stepper li {
    flex-direction:column;
    align-items:center;
    gap:6px;
    text-align:center
  }
  .stepper li>span {
    width:25px;
    height:25px;
    font-size:10px
  }
  .stepper strong {
    font-size:9px
  }
  .stepper li:not(:last-child):after {
    width:16px;
    right:-12px;
    top:12px
  }
  .guide-panel {
    display:block
  }
  .guide-panel>.panel-heading {
    margin-bottom:15px
  }
  .guide-block {
    margin-top:20px
  }
  .panel {
    padding:20px
  }
  .dropzone {
    padding-top:25px;
    padding-bottom:23px
  }
  .sample-prompt {
    gap:8px
  }
  .sample-prompt strong {
    font-size:10px
  }
  .sample-prompt p {
    font-size:9px
  }
  .sample-prompt .text-button {
    font-size:10px
  }
  .sample-data .panel-heading {
    align-items:start
  }
  .panel h2 .subtle-badge {
    display:table;
    margin:6px 0 0
  }
  .sample-data .panel-heading .text-button {
    white-space:nowrap
  }
  .validation-summary {
    gap:10px;
    font-size:10px
  }
  .analysis-settings {
    gap:18px;
    align-items:stretch
  }
  .analysis-settings>.field {
    flex-basis:100%
  }
  .analysis-settings>.button {
    width:100%
  }
  .filters {
    width:100%;
    gap:8px
  }
  .search-field {
    min-width:0;
    flex:1
  }
  .search-field input {
    width:100%;
    min-width:0
  }
  .filters select {
    max-width:115px;
    padding-left:8px;
    padding-right:8px;
    font-size:11px
  }
  .result-tools {
    gap:17px
  }
  .results-banner {
    flex-wrap:wrap;
    padding:18px
  }
  .results-banner p {
    font-size:11px
  }
  .table-footer {
    flex-wrap:wrap
  }
  .trend-panel .panel-heading {
    align-items:start;
    flex-wrap:wrap
  }
  .legend {
    gap:14px
  }
  .chart-caption {
    font-size:9px
  }
  .form-grid {
    gap:20px 16px
  }
  .form-grid .field {
    min-width:0
  }
  .form-grid input::placeholder {
    font-size:10px
  }
  .form-footer>.button {
    width:100%
  }
  .export-panel {
    padding:25px 20px
  }
  .export-option {
    gap:12px;
    padding:15px
  }
  .export-option p {
    font-size:9px
  }
  .export-option>.success-badge {
    display:none
  }
  .export-panel>.text-button {
    display:block;
    margin:12px 0 0
  }
  .main-footer {
    font-size:8px;
    flex-direction:column;
    gap:4px;
    padding-top:25px
  }
  .toast {
    left:50%;
    width:max-content;
    font-size:11px
  }
  .single-result .stat-icon {
    width:46px;
    height:46px
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    scroll-behavior:auto!important
  }
}

/* Keep the case list compact so the trend panel is easier to reach. */
#results-content .table-scroll {
  max-height: 440px;
}
#results-content th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.template-download {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 16px;
}
