:root {
  color-scheme: light;
  --page: #f4f6f1;
  --paper: #fff;
  --ink: #192d27;
  --muted: #53675f;
  --light-muted: #64756f;
  --line: #dce5dd;
  --line-soft: #e9eee9;
  --brand: #21604f;
  --brand-dark: #173e35;
  --brand-soft: #e7f0e7;
  --amber-bg: #fff4e1;
  --amber: #765320;
  --red: #8c3a36;
  --shadow: 0 1px 2px rgba(34, 64, 51, .045), 0 4px 16px rgba(34, 64, 51, .025);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
[hidden] { display: none !important; }
a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #4b927a; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { line-height: 1.1; }
h2 { font-size: 1.2rem; line-height: 1.27; letter-spacing: -.025em; }
h3 { font-size: 1rem; line-height: 1.3; }
small { font-size: .83rem; color: var(--muted); }
svg { flex: none; }

.sr-only, .skip-link:not(:focus) {
  position: absolute; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%);
  width: 1px; height: 1px; white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; z-index: 10; padding: .65rem 1rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
}
.shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; min-width: 0; align-self: start;
  background: #fcfdfa; border-right: 1px solid var(--line);
  padding: 29px 17px 20px; display: flex; flex-direction: column; overflow: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 4px; color: var(--ink); }
.brand img { display: block; flex: none; }
.brand span { min-width: 0; }
.brand strong { display: block; font-size: 1.035rem; letter-spacing: -.032em; line-height: 1.25; white-space: nowrap; }
.brand small { display: block; font-size: .73rem; color: var(--muted); margin-top: 3px; }
.nav-caption, .eyebrow {
  display: block; color: var(--brand); font-size: .69rem; letter-spacing: .115em; font-weight: 750;
}
.nav-caption { margin: 42px 0 11px 11px; color: var(--light-muted); }
.navigation { display: flex; flex-direction: column; gap: 4px; }
.navigation a {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px; min-height: 45px;
  border-radius: 8px; color: var(--muted); font-size: .9rem; font-weight: 600;
}
.navigation a:hover { color: var(--ink); background: #f0f4ef; }
.navigation a[aria-current="page"] { color: #164a3a; background: var(--brand-soft); font-weight: 720; }
.sidebar-bottom {
  padding: 14px 12px 13px; border: 1px solid var(--line); border-radius: 10px;
  margin-top: auto; background: #f3f6ef;
}
.sidebar-bottom .eyebrow { font-size: .61rem; }
.sidebar-bottom strong { display: block; margin: 6px 0 3px; font-size: .94rem; letter-spacing: -.02em; }
.sidebar-bottom p { font-size: .72rem; color: var(--muted); }

.work-area { min-width: 0; }
.topbar {
  min-height: 68px; padding: 12px 29px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fcfdfa;
}
.breadcrumb, .top-actions { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: .84rem; }
.breadcrumb strong { color: var(--ink); font-weight: 650; }
.mode-chip {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  color: var(--brand-dark); padding: 5px 10px; border-radius: 100px; border: 1px solid #dce9db;
  background: #edf4ea; font-size: .76rem; font-weight: 650;
}
.mode-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4d8b65; }
.mode-chip.synthetic { background: var(--amber-bg); border-color: #eedbb8; color: var(--amber); }
.mode-chip.synthetic::before { background: #b47727; }
#demo-banner:empty { display: none; }
.demo-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 9px 29px; border-bottom: 1px solid #edd8b2; color: #694d25; background: var(--amber-bg); font-size: .88rem;
}
.demo-banner .button { min-height: 32px; padding: 4px 10px; }
#content {
  width: 100%; max-width: 1430px; margin: 0 auto; padding: 28px 29px 0;
  display: flex; flex-direction: column; gap: 18px;
}
#content:focus { outline: none; }
.footer {
  display: flex; gap: 8px 16px; flex-wrap: wrap; justify-content: space-between; max-width: 1430px;
  margin: 22px auto 0; padding: 16px 29px 20px; color: var(--light-muted); font-size: .74rem;
}

.button {
  appearance: none; border: 1px solid #d5e2d9; border-radius: 8px; min-height: 38px;
  background: var(--paper); color: var(--brand-dark); display: inline-flex; justify-content: center; align-items: center;
  gap: 7px; padding: 7px 12px; line-height: 1.25; font-weight: 680; font-size: .82rem; text-align: center;
  white-space: nowrap; transition: background .13s ease, border-color .13s ease;
}
.button:hover { background: #eef4eb; border-color: #b8cfc0; }
.button-small { min-height: 34px; }
.button-small #import-icon { display: flex; align-items: center; }
.button-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.button-primary:hover { background: #174f40; border-color: #174f40; }
.button:disabled { background: #f1f3f0; color: #60716a; border-color: var(--line); opacity: .72; }
.icon-button {
  display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 7px; color: var(--brand);
}
.icon-button:hover { background: var(--brand-soft); }
.icon-button:disabled { color: #9aaca1; background: #f7f9f6; }
.text-button { border: 0; background: none; color: var(--brand); font-weight: 650; font-size: .86rem; padding: 7px 0; }
.text-button:hover { text-decoration: underline; }
.danger-text { color: var(--red); }

.hero {
  min-height: 286px; isolation: isolate; position: relative; overflow: hidden; border-radius: 17px;
  background: radial-gradient(ellipse at 81% 35%, #285546 0, #214a3e 27%, transparent 60%),
    linear-gradient(122deg, #14372f, #194437);
  color: #f7f6e9; box-shadow: 0 4px 20px #244f3821;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(235px, .85fr); align-items: center;
  padding: 30px 28px 31px 34px;
}
.hero-content { position: relative; z-index: 1; }
.hero-label {
  width: max-content; max-width: 100%; display: inline-flex; align-items: center; gap: 7px;
  background: #b8d5a915; color: #e0eccf; padding: 5px 10px; border: 1px solid #a2c28a58;
  border-radius: 100px; font-weight: 700; letter-spacing: .11em; font-size: .67rem;
}
.hero h1 {
  margin: 10px 0 11px; font: 500 clamp(2.45rem, 4.6vw, 4.45rem)/.99 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
}
.hero p { color: #dce8da; font-size: .98rem; max-width: 410px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 19px; }
.hero-actions .button:not(.button-hero) { background: #ffffff09; border-color: #a1bfac75; color: #f3f7ee; }
.hero-actions .button:not(.button-hero):hover { background: #ffffff25; }
.button-hero { background: #e8efce; border-color: #e8efce; color: #204034; }
.button-hero:hover { background: #f3f5dd; border-color: #f3f5dd; }
.scan-art { display: block; width: 100%; max-width: 440px; justify-self: end; }
.scan-art text { font-family: ui-monospace, monospace; font-size: 8px; font-weight: 650; letter-spacing: .11em; }

.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.stat-card {
  min-width: 0; border: 1px solid var(--line); border-radius: 11px; padding: 14px 12px;
  display: flex; gap: 10px; align-items: flex-start; background: var(--paper); box-shadow: var(--shadow);
}
.stat-icon {
  width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand); flex: none;
}
.stat-card p { font-size: .79rem; color: var(--muted); font-weight: 640; line-height: 1.25; margin: 1px 0 4px; }
.stat-card strong { display: block; font-size: 1.85rem; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-card strong span { color: var(--light-muted); font-size: .96rem; font-weight: 570; letter-spacing: -.02em; }
.stat-card small { display: block; margin-top: 5px; font-size: .72rem; line-height: 1.28; }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.46fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.analysis-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.panel { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.panel-head {
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px 14px;
  padding: 17px 17px 14px;
}
.panel-head .eyebrow { margin-bottom: 4px; }
.panel-head p, .page-head p { color: var(--muted); font-size: .86rem; line-height: 1.45; margin-top: 4px; }
.panel-foot {
  border-top: 1px solid var(--line-soft); display: flex; align-items: center; gap: 9px 12px;
  padding: 12px 17px; flex-wrap: wrap;
}
.panel-foot small { font-size: .78rem; }
.privacy-strip { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: .81rem; padding: 0 2px; }
.privacy-strip svg { color: var(--brand); }

.table-wrap { max-width: 100%; overflow: auto; }
.table-wrap:focus-visible { outline-offset: -3px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .84rem; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 12px; white-space: nowrap; border-bottom: 1px solid var(--line-soft); }
th:first-child, td:first-child { padding-left: 17px; }
th:last-child, td:last-child { padding-right: 17px; }
thead th {
  font-size: .74rem; font-weight: 700; color: #41594f; background: #f0f4ef; border-block: 1px solid var(--line);
}
tbody th { font-weight: 650; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:not(.table-group):hover > * { background: #f8faf6; }
.material-label { display: inline-flex; align-items: center; gap: 7px; }
.material-dot {
  display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; vertical-align: .05em;
  background: #7f948b;
}
.material-dot.enamel { background: #8765b9; }
.material-dot.lithium_disilicate { background: #177a76; }
.material-dot.zirconia { background: #bb683e; }
.overview-table th, .overview-table td { padding: 7px 8px; }
.overview-table th:first-child { padding-left: 17px; }
.overview-table th:last-child, .overview-table td:last-child { padding-right: 13px; }
.overview-table thead th:not(:first-child), .overview-table td { text-align: center; }
.overview-table th[scope="row"] { font-size: .79rem; }
.overview-table thead th { line-height: 1.35; }
.progress-cell {
  min-width: 49px; border: 1px solid #e7ebe6; background: #f7f9f5; border-radius: 7px;
  padding: 4px 5px; font-size: .78rem; color: var(--muted);
}
.progress-cell strong { color: var(--ink); }
.progress-cell.filled { background: #e9f3e8; border-color: #d7e8d9; }
.progress-cell progress {
  display: block; height: 3px; width: 100%; margin: 4px 0 2px; appearance: none; border: 0;
  border-radius: 10px; background: #dfe7df; color: #4e8560;
}
progress::-webkit-progress-bar { border-radius: 10px; background: #dfe7df; }
progress::-webkit-progress-value { border-radius: 10px; background: #4e8560; }
progress::-moz-progress-bar { border-radius: 10px; background: #4e8560; }
.objective-list { padding: 0 14px 10px; }
.objective-list a {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) 17px; gap: 9px; align-items: center;
  color: var(--ink); padding: 8px 4px;
}
.objective-list a + a { border-top: 1px solid var(--line-soft); }
.objective-list a:hover { background: #f5f8f2; }
.objective-list strong, .objective-list small { display: block; }
.objective-list strong { font-size: .87rem; }
.objective-list small { font-size: .73rem; line-height: 1.35; margin-top: 2px; }
.objective-list svg { color: var(--brand); }
.step-number {
  display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px;
  background: #e9f0e5; color: var(--brand); font-size: .71rem; font-weight: 730;
}

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 16px; flex-wrap: wrap; }
.page-head h1 { margin: 4px 0 6px; letter-spacing: -.045em; font-size: clamp(1.85rem, 4vw, 2.5rem); }
.page-head p { font-size: .94rem; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.notice, .subnotice {
  border-radius: 9px; border: 1px solid #d9e6db; color: #38564b;
  padding: 11px 14px; background: #edf4ea; font-size: .84rem; line-height: 1.4;
}
.notice p { margin-top: 4px; }
.notice.warn { background: var(--amber-bg); border-color: #ecdab8; color: #6b4f23; }
.local-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.local-note > div { flex: 1 1 250px; }
.subnotice {
  margin: 0 17px 12px; display: flex; align-items: center; gap: 8px 12px; justify-content: space-between; flex-wrap: wrap;
}
.subnotice .button { min-height: 32px; }

.filters, .model-controls {
  display: grid; grid-template-columns: minmax(105px, 1.08fr) repeat(3, minmax(124px, 1fr));
  gap: 10px; padding: 0 17px 14px; align-items: end;
}
.model-controls { grid-template-columns: minmax(180px, 340px) minmax(116px, 158px) max-content; }
.control { min-width: 0; display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.control > span:first-child { font-size: .76rem; font-weight: 680; }
.control input, .control select, .control textarea {
  display: block; width: 100%; min-width: 0; min-height: 38px; padding: 7px 9px; border: 1px solid #cddbd2;
  border-radius: 7px; background: #fff; color: var(--ink); font-size: .85rem;
}
.control select { padding-right: 22px; }
.control input:disabled, .control select:disabled, .control textarea:disabled { background: #f0f3ef; color: #596d62; }
.control input[readonly] { background: #f4f7f2; }
.control textarea { resize: vertical; }
.control input::placeholder, .control textarea::placeholder { color: #62766d; opacity: 1; }
.search-box { position: relative; }
.search-box input { padding-left: 34px; }
.search-box svg { position: absolute; top: 10px; left: 9px; color: var(--muted); pointer-events: none; }
.badge {
  display: inline-block; border-radius: 100px; padding: 3px 8px; font-size: .72rem; font-weight: 680; white-space: nowrap;
}
.badge.neutral { background: #edf1ed; color: #4e6258; }
.badge.good { background: #e5f1e5; color: #27583e; }
.badge.danger { background: #f8e9e6; color: #87413a; }
.badge.amber { background: #f9efda; color: #76571f; }
.code-id { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--brand-dark); }
.row-sub { display: block; color: var(--muted); font-size: .72rem; }
.pager {
  border-top: 1px solid var(--line-soft); padding: 10px 17px; display: flex; justify-content: space-between;
  align-items: center; color: var(--muted); font-size: .81rem; gap: 8px;
}
.pager > div { display: flex; align-items: center; gap: 8px; }

.empty { text-align: center; padding: 25px 14px 28px; color: var(--muted); }
.empty-icon {
  display: inline-grid; place-items: center; height: 42px; width: 42px; margin-bottom: 8px; border-radius: 11px;
  background: var(--brand-soft); color: var(--brand);
}
.empty h3 { color: var(--ink); }
.empty p { font-size: .85rem; max-width: 490px; margin: 5px auto 0; }
.empty-actions { margin-top: 12px; }
.chart-scroll { width: 100%; max-width: 100%; overflow-x: auto; padding: 0 8px; }
.plot { display: block; width: 100%; min-width: 452px; max-height: 360px; }
.plot .axis { fill: none; stroke: #8ea49a; stroke-width: 1; }
.plot .gridline { stroke: #e0e8e1; stroke-width: 1; }
.plot .axis-label { fill: #526760; font: 13px ui-sans-serif, system-ui, sans-serif; }
.plot .axis-title { fill: #304d42; font: 600 13px ui-sans-serif, system-ui, sans-serif; }
.plot .reference { fill: none; stroke: #77877e; stroke-width: 1.4; stroke-dasharray: 5 4; }
.legend { display: flex; gap: 8px 14px; flex-wrap: wrap; padding: 0 17px 13px; color: var(--muted); font-size: .79rem; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.diagnostics { display: flex; gap: 10px; padding: 0 17px 13px; flex-wrap: wrap; }
.diagnostics > div { display: flex; flex-direction: column; padding: 7px 10px; border-radius: 7px; border: 1px solid var(--line-soft); }
.diagnostics span { color: var(--muted); font-size: .72rem; }
.diagnostics strong { font-size: .84rem; }
.significant { color: #175c45; font-weight: 740; }
.table-subhead { padding: 13px 17px 7px; border-top: 1px solid var(--line-soft); }
.table-group th { border-block: 1px solid var(--line); color: #2c5948; background: #eaf2e8; font-size: .81rem; }
.rank {
  display: inline-block; padding: 2px 7px; border-radius: 100px; background: #eef1ee; color: #506159;
  font-weight: 700; font-size: .75rem;
}
.rank.first { background: #dceedd; color: #295d42; }
.details { padding: 12px 15px; border: 1px solid var(--line); border-radius: 9px; background: #fcfdfa; }
.details summary { color: var(--brand-dark); font-weight: 660; cursor: pointer; }
.details > div { padding-top: 7px; }
.details p { color: var(--muted); font-size: .83rem; margin-bottom: 8px; }

.dialog {
  padding: 0; width: min(665px, calc(100% - 28px)); max-height: min(90vh, 840px); margin: auto;
  color: var(--ink); background: #fff; border: 1px solid #b6cbbd; border-radius: 13px; box-shadow: 0 16px 55px #112b22a0;
}
.dialog::backdrop { background: #17382e88; }
.dialog-head, .dialog-foot {
  padding: 12px 17px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #f7f9f4; border-bottom: 1px solid var(--line);
}
.dialog-head h2 { margin-top: 3px; }
.dialog-foot { border-top: 1px solid var(--line); border-bottom: 0; }
.dialog-foot .spacer { flex: 1; }
.dialog-body { padding: 9px 17px 13px; }
fieldset { min-width: 0; margin: 4px 0 9px; padding: 9px 11px 10px; border: 1px solid var(--line); border-radius: 8px; }
legend { padding: 0 5px; color: var(--brand-dark); font-size: .82rem; font-weight: 720; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.span-two { grid-column: span 2; }
.field-hint { margin-top: 7px; color: var(--muted); font-size: .76rem; }
.form-error { border-radius: 7px; border: 1px solid #f1d9d5; padding: 8px 11px; background: #f9ebe8; color: var(--red); font-size: .83rem; }
.message-dialog { width: min(540px, calc(100% - 28px)); }
#message-body { padding: 13px 17px 17px; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; font-size: .87rem; }
.toast {
  position: fixed; z-index: 5; right: 19px; bottom: 19px; max-width: calc(100% - 38px);
  padding: 10px 15px; background: #1b4d3f; color: #fff; border: 1px solid #83a78f;
  border-radius: 9px; box-shadow: 0 5px 18px #152c2440; font-weight: 600; font-size: .86rem;
}

@media (max-width: 1080px) {
  .shell { grid-template-columns: 190px minmax(0, 1fr); }
  .sidebar { padding-inline: 13px; }
  .topbar, #content, .footer, .demo-banner { padding-inline: 20px; }
  .hero { padding-left: 24px; }
  .overview-grid { grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 900px) {
  .overview-grid, .analysis-grid { grid-template-columns: minmax(0, 1fr); }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { flex-direction: column; gap: 6px; padding: 11px; }
}
@media (max-width: 700px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; padding: 10px 12px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { margin-bottom: 8px; }
  .brand img { width: 35px; height: 35px; }
  .nav-caption, .sidebar-bottom { display: none; }
  .navigation { display: flex; flex-direction: row; gap: 4px; overflow-x: auto; padding: 2px 4px 9px; }
  .navigation a { min-height: 38px; padding: 7px 8px; gap: 5px; white-space: nowrap; font-size: .81rem; }
  .navigation svg { width: 15px; height: 15px; }
  .topbar { min-height: 47px; padding-block: 6px; }
  .breadcrumb > span { display: none; }
  .top-actions { gap: 6px; }
  .topbar, #content, .footer, .demo-banner { padding-inline: 12px; }
  #content { padding-top: 13px; gap: 12px; }
  .hero { min-height: 235px; grid-template-columns: minmax(0, 1fr) 26%; padding: 18px 15px; }
  .hero h1 { font-size: clamp(2.15rem, 7.5vw, 3.75rem); }
  .hero p { font-size: .86rem; }
  .hero-actions { margin-top: 12px; }
  .scan-art { position: relative; right: 1%; width: 215%; max-width: none; opacity: .52; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat-card { flex-direction: row; }
  .stat-card strong { font-size: 1.52rem; }
  .panel-head, .panel-foot { padding-inline: 12px; }
  .filters, .model-controls, .legend { padding-inline: 12px; }
  .model-controls { grid-template-columns: minmax(0, 1fr) minmax(90px, .53fr); }
  .model-controls > .button { justify-self: start; }
  .footer { margin-top: 11px; }
}
@media (max-width: 390px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .scan-art { position: absolute; width: 69%; right: -13%; top: 15%; opacity: .30; }
  .button { white-space: normal; }
  .mode-chip { font-size: .7rem; padding-inline: 6px; }
  .button-small { font-size: .74rem; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .span-two { grid-column: auto; }
  .dialog-foot { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
