:root {
  --bg: #edf3f2;
  --bg-deep: #e4eceb;
  --surface: #ffffff;
  --surface-soft: #f7faf9;
  --ink: #102a2d;
  --ink-soft: #294347;
  --muted: #6f8386;
  --muted-light: #91a1a2;
  --line: #dfe8e6;
  --line-strong: #cddbd8;
  --brand: #0c6b61;
  --brand-dark: #084d46;
  --brand-deep: #0b2f35;
  --brand-soft: #e2f3ee;
  --mint: #77e0c5;
  --accent: #e39a3b;
  --accent-soft: #fff4e4;
  --blue: #3d7bea;
  --red: #db5a56;
  --slate: #6c7f85;
  --purple: #8b6ac8;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 45, 0.04), 0 8px 22px rgba(16, 42, 45, 0.04);
  --shadow-lg: 0 2px 4px rgba(16, 42, 45, 0.06), 0 24px 60px rgba(16, 42, 45, 0.11);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 3% 6%, rgba(119, 224, 197, 0.15), transparent 27rem),
    radial-gradient(circle at 97% 20%, rgba(227, 154, 59, 0.08), transparent 24rem),
    linear-gradient(180deg, #f3f7f6 0%, var(--bg) 30%, #edf2f2 100%);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button {
  color: inherit;
}

svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.34;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 max(30px, calc((100vw - 1440px) / 2 + 32px));
  color: #effcf8;
  background: rgba(9, 43, 48, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(5, 26, 29, 0.16);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(119, 224, 197, 0.38);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(119, 224, 197, 0.2), rgba(119, 224, 197, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: var(--mint);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-copy strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-copy small {
  color: rgba(225, 249, 242, 0.54);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.save-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 6px;
  color: rgba(221, 246, 240, 0.62);
  font-size: 12px;
  transition: color 0.2s ease;
}

.save-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(119, 224, 197, 0.1);
}

.save-state.is-saving {
  color: var(--mint);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-ghost {
  color: rgba(235, 252, 247, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.11);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.button-primary {
  color: #083a35;
  background: var(--mint);
  box-shadow: 0 7px 20px rgba(70, 214, 177, 0.16);
}

.button-primary:hover {
  background: #8ae8d1;
}

.app-shell {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 0.83fr);
  gap: 44px;
  align-items: center;
  margin-top: 24px;
  padding: 38px 40px;
  overflow: hidden;
  color: #effcf8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 84% 24%, rgba(119, 224, 197, 0.18), transparent 19rem),
    radial-gradient(circle at 65% 110%, rgba(227, 154, 59, 0.12), transparent 24rem),
    linear-gradient(125deg, #0a3036 0%, #0c3b3b 54%, #0b3337 100%);
  box-shadow: var(--shadow-lg);
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(199, 243, 232, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 243, 232, 0.24) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to right, transparent 0%, #000 55%, #000 100%);
}

.hero::after {
  position: absolute;
  top: -110px;
  right: -110px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(119, 224, 197, 0.13);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 52px rgba(119, 224, 197, 0.025), 0 0 0 104px rgba(119, 224, 197, 0.018);
}

.hero-copy,
.hero-metrics {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(203, 248, 237, 0.68);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.15em;
}

.eyebrow span {
  width: 18px;
  height: 1px;
  background: var(--mint);
}

.hero h1 {
  margin: 13px 0 12px;
  font-size: clamp(32px, 3.2vw, 46px);
  font-weight: 720;
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.hero h1 span {
  color: var(--mint);
}

.hero-copy > p {
  max-width: 630px;
  margin: 0;
  color: rgba(225, 249, 243, 0.64);
  font-size: 14px;
  line-height: 1.75;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 21px;
}

.hero-tags span {
  padding: 5px 10px;
  color: rgba(227, 252, 245, 0.72);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero-metric {
  display: flex;
  min-height: 98px;
  flex-direction: column;
  justify-content: center;
  padding: 15px 17px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(10px);
}

.hero-metric-primary {
  grid-column: 1 / -1;
  min-height: 122px;
  padding: 20px 22px;
  border-color: rgba(119, 224, 197, 0.2);
  background: linear-gradient(125deg, rgba(119, 224, 197, 0.15), rgba(255, 255, 255, 0.055));
}

.metric-label {
  color: rgba(222, 248, 241, 0.56);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.hero-metric strong {
  margin-top: 5px;
  color: #f7fffc;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.hero-metric-primary strong {
  color: var(--mint);
  font-size: clamp(29px, 3vw, 38px);
}

.hero-metric strong em {
  margin-left: 3px;
  color: rgba(231, 250, 245, 0.45);
  font-family: var(--font);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
}

.hero-metric small {
  margin-top: 3px;
  color: rgba(222, 248, 241, 0.45);
  font-size: 10.5px;
}

.hero-metric-primary small {
  color: rgba(230, 252, 246, 0.65);
}

.workspace {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 24px;
}

.control-panel {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 112px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 22px;
  border: 1px solid rgba(205, 219, 216, 0.78);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  scrollbar-color: #c9d8d5 transparent;
  scrollbar-width: thin;
  backdrop-filter: blur(14px);
}

.control-panel::-webkit-scrollbar {
  width: 5px;
}

.control-panel::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #c9d8d5;
}

.panel-heading,
.results-heading,
.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.panel-heading {
  align-items: center;
  margin-bottom: 22px;
}

.section-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--brand);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.panel-heading h2,
.results-heading h2,
.card-heading h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.025em;
}

.panel-heading h2,
.results-heading h2 {
  font-size: 22px;
  font-weight: 720;
}

.card-heading h3 {
  font-size: 16px;
  font-weight: 700;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  color: var(--brand);
  font-size: 10px;
  font-weight: 650;
  border-radius: 999px;
  background: var(--brand-soft);
}

.live-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(12, 107, 97, 0.1);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(12, 107, 97, 0.08); }
  50% { box-shadow: 0 0 0 6px rgba(12, 107, 97, 0.02); }
}

.control-section {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.control-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.field-label > span {
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 680;
}

.field-label small {
  color: var(--muted-light);
  font-size: 10px;
  font-weight: 450;
}

.select-shell,
.number-shell {
  display: flex;
  align-items: center;
  height: 46px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface-soft);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.select-shell:focus-within,
.number-shell:focus-within {
  border-color: rgba(12, 107, 97, 0.55);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(12, 107, 97, 0.075);
}

.select-shell select,
.number-shell input {
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0 12px;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.select-shell select {
  padding-left: 6px;
  font-family: var(--font);
  font-size: 14px;
  appearance: none;
}

.select-shell > svg {
  width: 16px;
  height: 16px;
  margin-right: 12px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.input-prefix {
  padding: 0 2px 0 13px;
  color: var(--brand);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.number-shell > span {
  min-width: 38px;
  padding-right: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-align: right;
}

.number-shell input::-webkit-outer-spin-button,
.number-shell input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.select-shell-small,
.number-shell {
  height: 42px;
}

.select-shell-small select,
.number-shell input {
  font-size: 13.5px;
}

.quick-diameters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.quick-diameters button {
  height: 29px;
  padding: 0 5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-size: 10px;
  font-weight: 600;
  transition: all 0.18s ease;
}

.quick-diameters button:hover {
  color: var(--brand);
  border-color: rgba(12, 107, 97, 0.28);
}

.quick-diameters button.is-active {
  color: var(--brand-dark);
  border-color: rgba(12, 107, 97, 0.2);
  background: var(--brand-soft);
}

.material-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.material-option,
.method-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.material-option input,
.method-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.material-card {
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.material-option:hover .material-card {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.material-option input:checked + .material-card {
  border-color: rgba(12, 107, 97, 0.38);
  background: linear-gradient(135deg, #f3fbf8, #edf8f5);
  box-shadow: inset 0 0 0 1px rgba(12, 107, 97, 0.08);
}

.material-option input:focus-visible + .material-card,
.method-option input:focus-visible + .method-card {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.material-icon {
  position: relative;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(16, 42, 45, 0.1);
  border-radius: 50%;
  background: #e6eef0;
}

.material-icon::after {
  position: absolute;
  inset: 5px;
  border: 1.5px solid rgba(16, 42, 45, 0.3);
  border-radius: 50%;
  content: "";
}

.material-icon-hdpe {
  background: repeating-linear-gradient(45deg, #b9e9dc, #b9e9dc 3px, #d7f4ec 3px, #d7f4ec 6px);
}

.material-icon-rc {
  background: linear-gradient(145deg, #c9d1ce, #eef1ef);
}

.material-icon-ductile {
  background: linear-gradient(145deg, #75878c, #cbd4d5);
}

.material-icon-grp {
  background: repeating-linear-gradient(135deg, #f0d5a8, #f0d5a8 3px, #f9ead0 3px, #f9ead0 6px);
}

.material-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.material-copy b {
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 680;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-copy small {
  overflow: hidden;
  margin-top: 1px;
  color: var(--muted-light);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-card em {
  align-self: flex-start;
  padding: 2px 5px;
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  border-radius: 4px;
  background: #f0f4f3;
}

.material-option input:checked + .material-card em {
  color: var(--brand);
  background: rgba(12, 107, 97, 0.08);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.depth-scale {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
}

.depth-scale span {
  color: var(--muted-light);
  font-size: 9px;
  white-space: nowrap;
}

.depth-scale input[type="range"] {
  width: 100%;
  height: 4px;
  margin: 0;
  border-radius: 999px;
  outline: 0;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 21%, #d9e5e2 21%, #d9e5e2 100%);
  appearance: none;
}

.depth-scale input[type="range"]::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 1px rgba(12, 107, 97, 0.35), 0 2px 5px rgba(12, 107, 97, 0.2);
  appearance: none;
}

.depth-scale input[type="range"]::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 1px rgba(12, 107, 97, 0.35);
}

.method-list {
  display: grid;
  gap: 7px;
}

.method-card {
  display: flex;
  min-height: 60px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.method-option:hover .method-card {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.method-option input:checked + .method-card {
  border-color: rgba(12, 107, 97, 0.42);
  background: linear-gradient(100deg, #eff9f5, #f9fcfb);
  box-shadow: inset 3px 0 0 var(--brand);
}

.method-icon {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: #f0f5f4;
}

.method-option input:checked + .method-card .method-icon {
  background: #d9f0e9;
}

.method-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: var(--slate);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.method-option input:checked + .method-card .method-icon svg {
  stroke: var(--brand);
}

.method-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.method-copy b {
  font-size: 12.5px;
  font-weight: 680;
}

.method-copy small {
  margin-top: 1px;
  overflow: hidden;
  color: var(--muted-light);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.method-tag {
  flex: 0 0 auto;
  padding: 3px 6px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 600;
  border-radius: 5px;
  background: #f0f5f4;
}

.method-option input:checked + .method-card .method-tag {
  color: var(--brand);
  background: rgba(12, 107, 97, 0.09);
}

.switch-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.switch-copy {
  display: flex;
  flex-direction: column;
}

.switch-copy b {
  font-size: 12.5px;
  font-weight: 680;
}

.switch-copy small {
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 9.5px;
}

.switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d6e1df;
  transition: background 0.2s ease;
}

.switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 42, 45, 0.25);
  content: "";
  transition: transform 0.2s ease;
}

.switch input:checked + span {
  background: var(--brand);
}

.switch input:checked + span::after {
  transform: translateX(16px);
}

.switch input:focus-visible + span {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.advanced-panel {
  margin-top: 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.advanced-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
  list-style: none;
  cursor: pointer;
}

.advanced-panel summary::-webkit-details-marker {
  display: none;
}

.advanced-panel summary > span {
  display: flex;
  flex-direction: column;
}

.advanced-panel summary b {
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 680;
}

.advanced-panel summary small {
  margin-top: 1px;
  color: var(--muted-light);
  font-size: 9px;
}

.advanced-panel summary svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.advanced-panel[open] summary svg {
  transform: rotate(180deg);
}

.advanced-content {
  padding: 13px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.fee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 11px;
}

.advanced-note {
  margin: 11px 0 0;
  color: var(--muted-light);
  font-size: 9px;
  line-height: 1.6;
}

.panel-footnote {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 15px;
  padding-top: 14px;
  color: var(--muted-light);
  border-top: 1px solid var(--line);
  font-size: 9.5px;
  line-height: 1.55;
}

.panel-footnote svg {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.results {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
}

.results-heading {
  align-items: center;
  padding: 7px 2px 0;
}

.result-conditions {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.result-heading-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.updated-label {
  color: var(--muted-light);
  font-size: 10px;
}

.method-pill {
  padding: 6px 10px;
  color: var(--brand-dark);
  font-size: 10.5px;
  font-weight: 650;
  border: 1px solid rgba(12, 107, 97, 0.16);
  border-radius: 999px;
  background: var(--brand-soft);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.quick-stat {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid rgba(205, 219, 216, 0.8);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.quick-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 550;
  white-space: nowrap;
}

.stat-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.stat-dot-teal { background: var(--brand); }
.stat-dot-blue { background: var(--blue); }
.stat-dot-amber { background: var(--accent); }
.stat-dot-slate { background: var(--slate); }

.quick-stat strong {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(17px, 1.55vw, 21px);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-stat small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted-light);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card {
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(205, 219, 216, 0.8);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow-sm);
}

.card-heading {
  align-items: center;
  margin-bottom: 18px;
}

.heading-note {
  flex: 0 0 auto;
  color: var(--muted-light);
  font-size: 9.5px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(290px, 0.9fr);
  gap: 16px;
}

.composition-body {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.donut-shell {
  display: grid;
  place-items: center;
}

.donut {
  position: relative;
  display: grid;
  width: 178px;
  height: 178px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#0c6b61 0 30%, #3d7bea 30% 60%, #e39a3b 60% 100%);
  box-shadow: inset 0 0 0 1px rgba(16, 42, 45, 0.035), 0 10px 30px rgba(16, 42, 45, 0.07);
}

.donut::before {
  position: absolute;
  inset: 21px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(16, 42, 45, 0.045), 0 0 20px rgba(16, 42, 45, 0.04);
  content: "";
}

.donut-center {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.donut-center span {
  color: var(--muted);
  font-size: 9.5px;
}

.donut-center strong {
  max-width: 108px;
  margin-top: 2px;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donut-center small {
  margin-top: 2px;
  color: var(--brand);
  font-size: 9px;
  font-weight: 650;
}

.legend {
  display: grid;
  gap: 10px;
}

.legend-row {
  display: grid;
  grid-template-columns: 8px minmax(70px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.legend-swatch {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.legend-name {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legend-amount {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.legend-percent {
  width: 36px;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 9px;
  text-align: right;
}

.quantity-list {
  display: grid;
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 36px;
  border-bottom: 1px dashed var(--line);
}

.quantity-row:last-child {
  border-bottom: 0;
}

.quantity-row span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10.5px;
}

.quantity-row span::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
  content: "";
}

.quantity-row b {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.quantity-row b em {
  margin-left: 2px;
  color: var(--muted-light);
  font-family: var(--font);
  font-size: 9px;
  font-style: normal;
  font-weight: 450;
}

.card-heading-wrap {
  flex-wrap: wrap;
}

.unit-badge,
.quantity-pill {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: var(--brand);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  border: 1px solid rgba(12, 107, 97, 0.12);
  border-radius: 6px;
  background: var(--brand-soft);
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.cost-table {
  min-width: 650px;
}

th {
  padding: 9px 10px;
  color: var(--muted-light);
  font-size: 9px;
  font-weight: 600;
  text-align: left;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f7faf9;
}

th:first-child {
  border-radius: 7px 0 0 7px;
}

th:last-child {
  border-radius: 0 7px 7px 0;
}

td {
  padding: 12px 10px;
  color: var(--ink-soft);
  font-size: 10.5px;
  vertical-align: middle;
  border-bottom: 1px solid #edf2f1;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr {
  transition: background 0.16s ease;
}

tbody tr:hover {
  background: #fbfdfc;
}

.align-right {
  text-align: right;
}

.item-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.item-swatch {
  width: 3px;
  height: 27px;
  flex: 0 0 auto;
  border-radius: 3px;
}

.item-name {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.item-name b {
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 650;
}

.item-name small {
  color: var(--muted-light);
  font-size: 8.5px;
}

.quantity-cell {
  min-width: 130px;
}

.quantity-cell b {
  display: block;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.quantity-cell small {
  display: block;
  margin-top: 1px;
  color: var(--muted-light);
  font-size: 8.5px;
}

.unit-price {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.amount {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.share {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  white-space: nowrap;
}

.share-bar {
  display: block;
  width: 50px;
  height: 3px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef3f2;
}

.share-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.cost-summary {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.fee-breakdown {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 22px;
}

.fee-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.fee-item span {
  color: var(--muted-light);
  font-size: 8.5px;
}

.fee-item b {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.grand-total {
  display: flex;
  min-width: 190px;
  flex-direction: column;
  justify-content: center;
  padding: 12px 15px;
  border-radius: 12px;
  background: linear-gradient(125deg, #0b3b3e, #0b2f35);
}

.grand-total span {
  color: rgba(221, 248, 241, 0.55);
  font-size: 8.5px;
}

.grand-total strong {
  margin-top: 1px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.grand-total small {
  color: rgba(221, 248, 241, 0.5);
  font-family: var(--mono);
  font-size: 9px;
}

.machine-table {
  min-width: 520px;
}

.machine-table th,
.machine-table td {
  font-size: 10px;
}

.machine-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.machine-name i {
  width: 24px;
  height: 24px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  background: #f1f6f5;
}

.machine-name i::after {
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--slate);
  border-radius: 2px;
  content: "";
}

.machine-name b {
  font-size: 10.5px;
  font-weight: 600;
}

.machine-name small {
  display: block;
  color: var(--muted-light);
  font-size: 8px;
}

.scenario-bars {
  display: grid;
  gap: 8px;
}

.scenario-row {
  display: grid;
  grid-template-columns: 125px minmax(80px, 1fr) 128px;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: #fafcfb;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.scenario-row.is-selected {
  border-color: rgba(12, 107, 97, 0.17);
  background: #f3faf7;
}

.scenario-name {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.scenario-title {
  display: flex;
  align-items: center;
  gap: 5px;
}

.scenario-title b {
  font-size: 11.5px;
  font-weight: 650;
}

.scenario-tag {
  padding: 2px 4px;
  color: var(--brand);
  font-size: 7.5px;
  font-weight: 650;
  border-radius: 3px;
  background: var(--brand-soft);
}

.scenario-tag.best {
  color: #96601b;
  background: var(--accent-soft);
}

.scenario-name small {
  overflow: hidden;
  color: var(--muted-light);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8efed;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5f9d92, var(--brand));
  transform-origin: left;
  transition: width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scenario-row.is-selected .bar-fill {
  background: linear-gradient(90deg, #0c6b61, #26a990);
}

.scenario-row.is-best .bar-fill {
  background: linear-gradient(90deg, #c9852e, var(--accent));
}

.scenario-cost {
  text-align: right;
}

.scenario-cost strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.scenario-cost strong em {
  margin-left: 2px;
  color: var(--muted-light);
  font-family: var(--font);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 450;
}

.scenario-cost small {
  display: block;
  color: var(--muted-light);
  font-size: 8.5px;
}

.compare-footer {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 0.85fr);
  gap: 12px;
  margin-top: 15px;
}

.break-even {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid rgba(61, 123, 234, 0.13);
  border-radius: 11px;
  background: #f4f8ff;
}

.break-even-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #e6efff;
}

.break-even-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #356dcc;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.break-even > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.break-even b {
  color: #264a85;
  font-size: 10px;
}

.break-even small {
  margin-top: 2px;
  color: #6882aa;
  font-size: 9px;
  line-height: 1.5;
}

.compare-verdict {
  display: flex;
  align-items: center;
  padding: 12px 13px;
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.55;
  border: 1px solid rgba(12, 107, 97, 0.13);
  border-radius: 11px;
  background: #edf8f4;
}

.compare-note {
  margin: 11px 0 0;
  color: var(--muted-light);
  font-size: 8.5px;
  line-height: 1.6;
}

.insight-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 18px;
  border: 1px solid rgba(227, 154, 59, 0.2);
  border-radius: 15px;
  background: linear-gradient(100deg, #fff8ec, #fffdf9);
  box-shadow: var(--shadow-sm);
}

.insight-mark {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  color: #8d5816;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  background: #f7e1bd;
}

.insight-card > div {
  min-width: 0;
}

.insight-card b {
  color: #6d4917;
  font-size: 10.5px;
}

.insight-card p {
  margin: 2px 0 0;
  color: #8a6a37;
  font-size: 10px;
  line-height: 1.65;
}

.basis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.basis-item {
  padding-left: 12px;
  border-left: 2px solid #e4ece9;
}

.basis-item span {
  display: block;
  color: var(--muted-light);
  font-size: 8.5px;
}

.basis-item b {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 650;
}

.basis-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  padding: 11px 13px;
  border-radius: 9px;
  background: #f7faf9;
}

.disclaimer span {
  flex: 0 0 auto;
  padding: 2px 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
  border-radius: 4px;
  background: #e8efed;
}

.disclaimer p {
  margin: 0;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.65;
}

.site-footer {
  display: flex;
  width: min(1440px, calc(100% - 64px));
  justify-content: space-between;
  gap: 20px;
  margin: 30px auto 0;
  padding: 20px 2px 30px;
  color: var(--muted-light);
  font-size: 9.5px;
  border-top: 1px solid rgba(205, 219, 216, 0.7);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 100;
  padding: 10px 16px;
  color: #effcf8;
  font-size: 11px;
  border-radius: 9px;
  background: rgba(11, 47, 53, 0.94);
  box-shadow: 0 12px 32px rgba(5, 26, 29, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(10px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.print-header {
  display: none;
}

@media (max-width: 1220px) {
  .app-shell,
  .site-footer {
    width: min(100% - 40px, 1180px);
  }

  .topbar {
    padding: 0 20px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.85fr);
    gap: 30px;
    padding: 32px;
  }

  .workspace {
    grid-template-columns: 372px minmax(0, 1fr);
    gap: 18px;
  }

  .quick-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .quick-stat strong {
    font-size: 20px;
  }
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-metrics {
    grid-template-columns: 1.1fr 1fr 1fr;
  }

  .hero-metric-primary {
    grid-column: auto;
    min-height: 98px;
    padding: 15px 17px;
  }

  .hero-metric-primary strong {
    font-size: 26px;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .control-panel {
    position: static;
    max-height: none;
    padding: 22px;
  }

  .control-panel .control-section:first-of-type,
  .control-panel .control-section,
  .control-panel .switch-section {
    max-width: none;
  }

  .material-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .method-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .method-card {
    height: 100%;
    align-items: flex-start;
  }

  .method-copy small {
    white-space: normal;
  }

  .method-tag {
    display: none;
  }
}

@media (max-width: 760px) {
  .app-shell,
  .site-footer {
    width: min(100% - 24px, 700px);
  }

  .topbar {
    min-height: 62px;
    padding: 0 12px;
  }

  .brand-copy small,
  .save-state,
  .topbar-actions .button-ghost {
    display: none;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
    border-radius: 11px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .button-primary {
    height: 35px;
    padding: 0 11px;
    font-size: 11px;
  }

  .hero {
    margin-top: 12px;
    padding: 24px 20px;
    border-radius: 21px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .hero-copy > p {
    font-size: 12px;
  }

  .hero-tags {
    margin-top: 15px;
  }

  .hero-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .hero-metric-primary {
    grid-column: 1 / -1;
  }

  .hero-metric {
    min-height: 82px;
    padding: 12px 14px;
  }

  .hero-metric strong {
    font-size: 19px;
  }

  .hero-metric-primary strong {
    font-size: 30px;
  }

  .workspace {
    margin-top: 14px;
  }

  .control-panel,
  .card {
    padding: 16px;
    border-radius: 18px;
  }

  .control-panel .material-grid {
    grid-template-columns: 1fr 1fr;
  }

  .control-panel .method-list {
    grid-template-columns: 1fr;
  }

  .method-card {
    align-items: center;
  }

  .quick-stats {
    gap: 8px;
  }

  .quick-stat {
    padding: 12px;
    border-radius: 14px;
  }

  .quick-stat strong {
    font-size: 17px;
  }

  .results-heading h2,
  .panel-heading h2 {
    font-size: 20px;
  }

  .analysis-grid {
    gap: 12px;
  }

  .composition-body {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
  }

  .donut {
    width: 142px;
    height: 142px;
  }

  .donut::before {
    inset: 18px;
  }

  .donut-center strong {
    max-width: 88px;
    font-size: 13px;
  }

  .legend-row {
    grid-template-columns: 7px minmax(56px, 1fr) auto;
    gap: 6px;
  }

  .legend-percent {
    display: none;
  }

  .cost-summary {
    flex-direction: column;
    gap: 13px;
  }

  .grand-total {
    min-width: 0;
  }

  .scenario-row {
    grid-template-columns: 100px minmax(50px, 1fr) 104px;
    gap: 9px;
    padding: 9px;
  }

  .scenario-cost strong {
    font-size: 12px;
  }

  .compare-footer {
    grid-template-columns: 1fr;
  }

  .basis-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .site-footer {
    flex-direction: column;
    gap: 3px;
    padding-bottom: 24px;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-metric-primary {
    grid-column: auto;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .fee-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .composition-body {
    grid-template-columns: 1fr;
  }

  .donut-shell {
    padding: 3px 0 8px;
  }

  .quick-stat strong {
    font-size: 15.5px;
  }

  .scenario-row {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .scenario-cost {
    grid-column: 1 / -1;
    text-align: left;
  }

  .scenario-cost small {
    display: inline;
    margin-left: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  body {
    color: #111;
    background: #fff;
    font-size: 9pt;
  }

  .page-noise,
  .topbar,
  .site-footer,
  .control-panel,
  .hero-tags,
  .toast {
    display: none !important;
  }

  .print-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 8mm;
    padding-bottom: 3mm;
    border-bottom: 1.5px solid #0b2f35;
  }

  .print-header > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .print-header b {
    font-size: 16pt;
    letter-spacing: -0.02em;
  }

  .print-header span {
    color: #666;
    font-size: 8pt;
  }

  .print-header small {
    color: #666;
    font-size: 8pt;
  }

  .app-shell {
    width: 100%;
  }

  .hero {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 7mm;
    margin: 0 0 5mm;
    padding: 5mm;
    color: #fff;
    border-radius: 4mm;
    background: #0b2f35 !important;
    box-shadow: none;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .hero h1 {
    font-size: 20pt;
  }

  .hero-metric-primary {
    min-height: 68px;
  }

  .hero-metric {
    min-height: 58px;
    padding: 3mm;
  }

  .hero-metric-primary strong {
    font-size: 17pt;
  }

  .hero-metric strong {
    font-size: 12pt;
  }

  .workspace,
  .results {
    display: block;
    margin: 0;
  }

  .results-heading {
    margin-bottom: 3mm;
    padding: 0;
  }

  .results-heading .section-kicker,
  .result-heading-right,
  .heading-note,
  .card .section-kicker {
    display: none;
  }

  .quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2mm;
    margin-bottom: 3mm;
  }

  .quick-stat {
    padding: 3mm;
    border: 0.3mm solid #d6dfdd;
    border-radius: 2mm;
    box-shadow: none;
  }

  .quick-stat strong {
    font-size: 11pt;
  }

  .card {
    margin-bottom: 3mm;
    padding: 4mm;
    border: 0.3mm solid #d6dfdd;
    border-radius: 3mm;
    box-shadow: none;
    break-inside: avoid;
  }

  .analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3mm;
  }

  .card-heading {
    margin-bottom: 3mm;
  }

  .card-heading h3 {
    font-size: 11pt;
  }

  .donut {
    width: 36mm;
    height: 36mm;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .donut::before {
    inset: 4.5mm;
  }

  .composition-body {
    grid-template-columns: 40mm 1fr;
    gap: 4mm;
  }

  .quantity-row {
    min-height: 6mm;
  }

  .table-scroll {
    overflow: visible;
  }

  .cost-table,
  .machine-table {
    min-width: 0;
  }

  td {
    padding: 2mm;
    font-size: 8pt;
  }

  th {
    padding: 1.5mm 2mm;
    font-size: 7pt;
    background: #f3f6f5 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .cost-summary {
    margin-top: 3mm;
    padding-top: 3mm;
  }

  .grand-total {
    background: #0b2f35 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .scenario-row {
    grid-template-columns: 32mm 1fr 28mm;
    padding: 2mm;
  }

  .scenario-row.is-best,
  .scenario-row.is-selected {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .bar-fill {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .insight-card {
    break-inside: avoid;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
