.planner-surface {
  --ink: #14203a;
    --ink-2: #4f5c76;
    --muted: #75819a;
    --line: #dce4f1;
    --panel: #ffffff;
    --canvas: #f3f7fc;
    --navy: #111f5b;
    --blue: #1764ff;
    --blue-2: #4b43dc;
    --cyan: #00a9d8;
    --magenta: #d31f73;
    --green: #087b63;
    --green-bg: #e6f7f2;
    --amber: #a45b00;
    --amber-bg: #fff3db;
    --red: #b82a44;
    --red-bg: #fff0f3;
    --shadow: 0 18px 45px rgba(20, 37, 84, .09);
    --radius: 18px;
    font-family: Inter, Aptos, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--canvas);
    font-synthesis: none;
}

.planner-surface, .planner-surface * {
  box-sizing: border-box;
}

.planner-surface button, .planner-surface select, .planner-surface input {
  font: inherit;
}

.planner-surface button, .planner-surface select, .planner-surface input[type="range"], .planner-surface input[type="checkbox"] {
  cursor: pointer;
}

.planner-surface button:focus-visible, .planner-surface select:focus-visible, .planner-surface input:focus-visible, .planner-surface a:focus-visible {
  outline: 3px solid rgba(23,100,255,.25); outline-offset: 2px;
}

.planner-surface .skip-link {
  position: fixed; top: -4rem; left: 1rem; z-index: 99; background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: 8px;
}

.planner-surface .skip-link:focus {
  top: 1rem;
}

.planner-surface .icon-button {
  border: 1px solid rgba(255,255,255,.28); color: #fff; background: rgba(255,255,255,.1); min-height: 38px; border-radius: 11px; padding: 0 12px; display: flex; align-items: center; gap: 8px;
}

.planner-surface .icon-button > span:first-child {
  display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; border: 1px solid rgba(255,255,255,.72); font: 700 12px Georgia, serif;
}

.planner-surface .mode-switch {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; white-space: nowrap;
}

.planner-surface .mode-switch input {
  position: absolute; opacity: 0; pointer-events: none;
}

.planner-surface .switch-track {
  width: 40px; height: 22px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.3); transition: .2s ease;
}

.planner-surface .switch-track span {
  display: block; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: .2s ease;
}

.planner-surface .mode-switch input:checked + .switch-track {
  background: #00bfdc;
}

.planner-surface .mode-switch input:checked + .switch-track span {
  transform: translateX(18px);
}

.planner-surface .studio-main {
  min-width: 0; padding: 38px clamp(22px, 4vw, 64px) 70px;
}

.planner-surface .view {
  display: none; max-width: 1420px; margin: 0 auto;
}

.planner-surface .view.active {
  display: block; animation: reveal .24s ease both;
}

@keyframes reveal {  from { opacity: 0; transform: translateY(5px); }  }

.planner-surface .view-heading {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px;
}

.planner-surface .view-heading h1 {
  margin: 5px 0 8px; font-size: clamp(28px, 3.3vw, 46px); line-height: 1.06; letter-spacing: -.045em; color: #121d3a;
}

.planner-surface .view-heading p {
  margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 740px;
}

.planner-surface .kicker, .planner-surface .card-kicker, .planner-surface .result-eyebrow {
  color: #3859bb; font-size: 11px; font-weight: 850; letter-spacing: .14em;
}

.planner-surface .freshness {
  margin-top: 7px; color: #5f6c86; font-size: 12px; font-weight: 700; border: 1px solid var(--line); padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.72); white-space: nowrap;
}

.planner-surface .workspace-grid, .planner-surface .speed-layout, .planner-surface .cost-layout {
  display: grid; grid-template-columns: minmax(300px, 390px) minmax(0,1fr); gap: 24px; align-items: start;
}

.planner-surface .control-panel, .planner-surface .result-card, .planner-surface .stream-card, .planner-surface .cost-verdict, .planner-surface .compare-toolbar, .planner-surface .compare-table-wrap, .planner-surface .recommendation-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}

.planner-surface .control-panel {
  padding: 22px; display: grid; gap: 16px; position: sticky; top: 98px;
}

.planner-surface .step-label {
  display: flex; align-items: center; gap: 9px; margin-top: 4px; color: #17234a; font-size: 13px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase;
}

.planner-surface .step-label:not(:first-child) {
  border-top: 1px solid var(--line); padding-top: 18px; margin-top: 2px;
}

.planner-surface .step-label span {
  display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: linear-gradient(135deg, #226dff, #5141dc); color: #fff; font-size: 12px;
}

.planner-surface .field {
  display: grid; gap: 7px; min-width: 0;
}

.planner-surface .field > span {
  font-size: 13px; font-weight: 750; color: #33405d;
}

.planner-surface .field small, .planner-surface .check-field small {
  color: var(--muted); font-size: 12px; line-height: 1.4;
}

.planner-surface select, .planner-surface input[type="number"] {
  width: 100%; min-height: 45px; border: 1px solid #ccd6e6; border-radius: 11px; background: #fff; color: var(--ink); padding: 0 12px; font-size: 14px;
}

.planner-surface select:hover, .planner-surface input[type="number"]:hover {
  border-color: #aebbd0;
}

.planner-surface .two-fields, .planner-surface .advanced-grid, .planner-surface .custom-model-fields {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px;
}

.planner-surface .range-row {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
}

.planner-surface input[type="range"] {
  width: 100%; accent-color: var(--blue);
}

.planner-surface output {
  min-width: 66px; text-align: center; padding: 6px 8px; border-radius: 8px; background: #ebf1ff; color: #1b4fcc; font-size: 13px; font-weight: 800;
}

.planner-surface .check-field {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #f9fbff;
}

.planner-surface .check-field input {
  margin-top: 3px; width: 17px; height: 17px; accent-color: var(--blue);
}

.planner-surface .check-field b, .planner-surface .check-field small {
  display: block;
}

.planner-surface .check-field b {
  font-size: 13px; margin-bottom: 2px;
}

.planner-surface .advanced-only {
  display: none !important;
}

body.advanced .planner-surface .advanced-only {
  display: grid !important;
}

.planner-surface .force-hidden {
  display: none !important;
}

.planner-surface .results-panel, .planner-surface .speed-results, .planner-surface .cost-results {
  display: grid; gap: 18px;
}

.planner-surface .lifecycle-card {
  padding: 17px 19px; border: 1px solid #cedcf4; border-radius: var(--radius); background: linear-gradient(110deg,#f8fbff,#eef3ff); box-shadow: var(--shadow);
}

.planner-surface .lifecycle-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px;
}

.planner-surface .lifecycle-head b {
  color: #182856; font-size: 14px;
}

.planner-surface .lifecycle-path {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; position: relative;
}

.planner-surface .lifecycle-path span {
  position: relative; display: grid; gap: 2px; padding: 11px 10px; border: 1px solid #d9e2f0; border-radius: 10px; color: #64708a; background: #fff; transition: .2s ease;
}

.planner-surface .lifecycle-path span:not(:last-child)::after {
  content: "›"; position: absolute; right: -8px; top: 50%; z-index: 2; transform: translateY(-50%); color: #98a6bc; font-size: 17px; font-weight: 900;
}

.planner-surface .lifecycle-path b, .planner-surface .lifecycle-path small {
  display: block;
}

.planner-surface .lifecycle-path b {
  font-size: 13px;
}

.planner-surface .lifecycle-path small {
  font-size: 11px;
}

.planner-surface .lifecycle-path span.complete {
  border-color: #bcd8d0; color: #156e5c; background: #edf9f5;
}

.planner-surface .lifecycle-path span.active {
  border-color: #3169e8; color: #173a9a; background: #e7efff; box-shadow: inset 0 0 0 1px #3169e8;
}

.planner-surface .recommendation-card {
  position: relative; overflow: hidden; padding: 25px; color: #fff; background:
    radial-gradient(circle at 88% 5%, rgba(0,197,224,.28), transparent 16rem),
    linear-gradient(125deg, #122866 0%, #21419b 52%, #4a39bc 100%); border-color: transparent;
}

.planner-surface .recommendation-card::before {
  content: ""; position: absolute; inset: auto -70px -95px auto; width: 250px; height: 250px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 32px rgba(255,255,255,.04), 0 0 0 70px rgba(255,255,255,.025);
}

.planner-surface .recommendation-top, .planner-surface .card-title-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
}

.planner-surface .status-pill {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: var(--green-bg); color: var(--green); font-size: 12px; font-weight: 850;
}

.planner-surface .status-pill.warn {
  background: var(--amber-bg); color: var(--amber);
}

.planner-surface .status-pill.bad {
  background: var(--red-bg); color: var(--red);
}

.planner-surface .confidence-label {
  color: rgba(255,255,255,.72); font-size: 10px; font-weight: 800; letter-spacing: .12em;
}

.planner-surface .recommendation-card .result-eyebrow {
  display: block; margin-top: 25px; color: #a9dffc;
}

.planner-surface .recommendation-card h2 {
  margin: 5px 0 8px; font-size: clamp(25px, 3vw, 37px); letter-spacing: -.035em;
}

.planner-surface .recommendation-card > p:not(.result-eyebrow) {
  margin: 0; color: rgba(255,255,255,.82); font-size: 15px;
}

.planner-surface .key-metrics {
  position: relative; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 24px; z-index: 1;
}

.planner-surface .key-metrics > div {
  padding: 15px; border: 1px solid rgba(255,255,255,.18); border-radius: 13px; background: rgba(255,255,255,.08); backdrop-filter: blur(8px);
}

.planner-surface .key-metrics span, .planner-surface .key-metrics b, .planner-surface .key-metrics small {
  display: block;
}

.planner-surface .key-metrics span {
  color: rgba(255,255,255,.67); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700;
}

.planner-surface .key-metrics b {
  margin: 7px 0 3px; font-size: 24px;
}

.planner-surface .key-metrics small {
  color: rgba(255,255,255,.68); font-size: 11px;
}

.planner-surface .result-card, .planner-surface .stream-card {
  padding: 21px 23px;
}

.planner-surface .stack-card {
  border-left: 4px solid #1764ff;
}

.planner-surface .stage-badge, .planner-surface .stage-chip {
  display: inline-flex; align-items: center; min-height: 27px; padding: 0 9px; border-radius: 999px; color: #174dbf; background: #e9f0ff; font-size: 11px; font-weight: 850; white-space: nowrap;
}

.planner-surface .solution-stack {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 17px;
}

.planner-surface .solution-stack > div {
  padding: 13px; border: 1px solid #e0e7f2; border-radius: 11px; background: #f9fbff;
}

.planner-surface .solution-stack span, .planner-surface .solution-stack b {
  display: block;
}

.planner-surface .solution-stack span {
  color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .065em; font-weight: 750;
}

.planner-surface .solution-stack b {
  margin-top: 5px; font-size: 13px; line-height: 1.4;
}

.planner-surface .card-title-row h3, .planner-surface .why-card h3 {
  margin: 4px 0 0; font-size: 19px; letter-spacing: -.02em;
}

.planner-surface .headroom-badge {
  padding: 6px 9px; border-radius: 8px; background: #edf7f4; color: var(--green); font-size: 12px; font-weight: 800;
}

.planner-surface .headroom-badge.bad {
  color: var(--red); background: var(--red-bg);
}

.planner-surface .memory-bar {
  display: flex; height: 19px; margin: 22px 0 15px; background: #e8edf5; border-radius: 6px; overflow: hidden;
}

.planner-surface .memory-bar span {
  min-width: 1px; transition: width .25s ease;
}

.planner-surface .memory-bar .weights {
  background: #235ee8;
}

.planner-surface .memory-bar .kv {
  background: #11a4cc;
}

.planner-surface .memory-bar .runtime {
  background: #7146cf;
}

.planner-surface .memory-bar .reserve {
  background: #c62578;
}

.planner-surface .memory-bar .free {
  background: #dfe7f1;
}

.planner-surface .memory-legend {
  display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px;
}

.planner-surface .memory-legend div {
  border-left: 3px solid var(--dot); padding-left: 8px; min-width: 0;
}

.planner-surface .memory-legend span, .planner-surface .memory-legend b {
  display: block;
}

.planner-surface .memory-legend span {
  color: var(--muted); font-size: 11px;
}

.planner-surface .memory-legend b {
  margin-top: 3px; font-size: 13px;
}

.planner-surface .plain-note {
  margin: 17px 0 0; padding-top: 15px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px; line-height: 1.55;
}

.planner-surface .why-card {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}

.planner-surface .why-card p {
  margin: 6px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.5;
}

.planner-surface .text-button {
  border: 0; background: transparent; color: #2554d6; font-size: 13px; font-weight: 800; white-space: nowrap;
}

.planner-surface .compact-panel {
  position: sticky;
}

.planner-surface .speed-hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; padding: 27px; border-radius: var(--radius); color: #fff; background: linear-gradient(120deg, #111f5b, #19418e 58%, #2a6fb8); box-shadow: var(--shadow);
}

.planner-surface .speed-number {
  display: flex; align-items: flex-end; gap: 12px; margin: 7px 0 12px;
}

.planner-surface .speed-number b {
  font-size: clamp(54px, 7vw, 82px); line-height: .9; letter-spacing: -.07em;
}

.planner-surface .speed-number span {
  color: #b8c8e9; font-size: 13px; line-height: 1.2; padding-bottom: 5px;
}

.planner-surface .speed-hero .result-eyebrow {
  color: #9dcdf1;
}

.planner-surface .speed-hero .status-pill {
  background: rgba(255,255,255,.13); color: #fff; border: 1px solid rgba(255,255,255,.2);
}

.planner-surface .range-panel {
  align-self: center; padding: 19px; border: 1px solid rgba(255,255,255,.17); border-radius: 14px; background: rgba(255,255,255,.08);
}

.planner-surface .range-panel span, .planner-surface .range-panel b, .planner-surface .range-panel small {
  display: block;
}

.planner-surface .range-panel span {
  color: #bdcae7; font-size: 12px;
}

.planner-surface .range-panel b {
  margin: 8px 0 13px; font-size: 22px;
}

.planner-surface .range-panel small {
  color: #afbdd8; font-size: 11px; margin-top: 9px;
}

.planner-surface .range-track {
  height: 7px; background: rgba(255,255,255,.14); border-radius: 99px; overflow: hidden;
}

.planner-surface .range-track span {
  display: block; height: 100%; background: linear-gradient(90deg,#39d3eb,#fff); border-radius: inherit;
}

.planner-surface .metric-strip, .planner-surface .cost-cards {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); box-shadow: var(--shadow);
}

.planner-surface .metric-strip div, .planner-surface .cost-cards div {
  padding: 16px; background: #fff;
}

.planner-surface .metric-strip span, .planner-surface .metric-strip b, .planner-surface .metric-strip small, .planner-surface .cost-cards span, .planner-surface .cost-cards b, .planner-surface .cost-cards small {
  display: block;
}

.planner-surface .metric-strip span, .planner-surface .cost-cards span {
  color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .055em; font-weight: 700;
}

.planner-surface .metric-strip b, .planner-surface .cost-cards b {
  margin: 7px 0 2px; font-size: 20px;
}

.planner-surface .metric-strip small, .planner-surface .cost-cards small {
  color: var(--muted); font-size: 11px;
}

.planner-surface .secondary-button {
  min-height: 35px; border: 1px solid #ccd7e7; border-radius: 9px; color: #3154b5; background: #fff; padding: 0 12px; font-size: 12px; font-weight: 800;
}

.planner-surface .stream-window {
  min-height: 164px; margin-top: 17px; padding: 19px; color: #dce6ff; background: #0e1834; border-radius: 13px; font: 500 16px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.planner-surface .cursor {
  display: inline-block; width: 8px; height: 1.1em; margin-left: 2px; vertical-align: -.16em; background: #49e6f5; animation: blink 1s steps(2,end) infinite;
}

@keyframes blink {  50% { opacity: 0; }  }

.planner-surface .experience-scale {
  display: grid; grid-template-columns: repeat(4,1fr); margin-top: 13px; color: var(--muted); font-size: 11px; line-height: 1.35;
}

.planner-surface .experience-scale span {
  padding: 8px; border-top: 3px solid #d4dceb;
}

.planner-surface .experience-scale span:nth-child(2) {
  border-color: #e5a62c;
}

.planner-surface .experience-scale span:nth-child(3) {
  border-color: #1d9f86;
}

.planner-surface .experience-scale span:nth-child(4) {
  border-color: #1764ff;
}

.planner-surface .experience-scale b {
  color: var(--ink);
}

.planner-surface .model-warning {
  margin: 0; padding: 13px 15px; border: 1px solid #f0d498; border-radius: 11px; color: #7a5109; background: #fff7e7; font-size: 13px; line-height: 1.5;
}

.planner-surface .model-warning:empty {
  display: none;
}

.planner-surface .compare-toolbar {
  display: grid; grid-template-columns: 1.4fr repeat(5,minmax(100px,1fr)); gap: 12px; padding: 17px; margin-bottom: 15px;
}

.planner-surface .compare-summary {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 15px;
}

.planner-surface .compare-summary > div {
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}

.planner-surface .compare-summary span, .planner-surface .compare-summary b {
  display: block;
}

.planner-surface .compare-summary span {
  color: var(--muted); font-size: 11px; text-transform: uppercase; font-weight: 750; letter-spacing: .06em;
}

.planner-surface .compare-summary b {
  margin-top: 5px; font-size: 16px;
}

.planner-surface .compare-table-wrap {
  overflow-x: auto; box-shadow: var(--shadow);
}

.planner-surface .compare-table {
  width: 100%; border-collapse: collapse; min-width: 940px;
}

.planner-surface .compare-table th {
  padding: 13px 14px; color: #68758e; background: #f7f9fd; border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
}

.planner-surface .compare-table td {
  padding: 14px; border-bottom: 1px solid #e7edf5; font-size: 13px; vertical-align: middle;
}

.planner-surface .compare-table tr:last-child td {
  border-bottom: 0;
}

.planner-surface .compare-table tr.recommended {
  background: #f5f8ff;
}

.planner-surface .compare-table tr:hover {
  background: #f8faff;
}

.planner-surface .system-cell b, .planner-surface .system-cell small {
  display: block;
}

.planner-surface .system-cell b {
  font-size: 14px;
}

.planner-surface .system-cell small {
  margin-top: 3px; color: var(--muted); font-size: 11px;
}

.planner-surface .fit-chip {
  display: inline-flex; padding: 5px 8px; border-radius: 7px; color: var(--green); background: var(--green-bg); font-size: 11px; font-weight: 850;
}

.planner-surface .fit-chip.no {
  color: var(--red); background: var(--red-bg);
}

.planner-surface .fit-chip.tight {
  color: var(--amber); background: var(--amber-bg);
}

.planner-surface .bar-cell {
  min-width: 145px;
}

.planner-surface .mini-bar {
  height: 5px; margin-top: 6px; border-radius: 99px; background: #e5ebf3; overflow: hidden;
}

.planner-surface .mini-bar span {
  display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2667ed,#4b43d8);
}

.planner-surface .table-footnote {
  margin: 12px 3px 0; color: var(--muted); font-size: 12px;
}

.planner-surface .cost-verdict {
  padding: 24px;
}

.planner-surface .cost-verdict h2 {
  margin: 10px 0 5px; font-size: 29px; letter-spacing: -.035em;
}

.planner-surface .cost-verdict p {
  margin: 0; color: var(--ink-2); line-height: 1.5;
}

.planner-surface .cost-cards {
  grid-template-columns: repeat(3,1fr);
}

.planner-surface .cost-cards b {
  font-size: 24px;
}

.planner-surface .cost-chart {
  height: 240px; margin-top: 18px; display: grid; grid-template-columns: repeat(var(--months),1fr); align-items: end; gap: 2px; border-bottom: 1px solid #b8c4d7; background: repeating-linear-gradient(to top, transparent 0 59px, #e9eef6 60px);
}

.planner-surface .chart-column {
  position: relative; height: 100%; display: flex; align-items: flex-end; gap: 1px;
}

.planner-surface .chart-column span {
  flex: 1; min-width: 1px; border-radius: 2px 2px 0 0; opacity: .82;
}

.planner-surface .chart-column .onprem {
  background: #2c5ee7;
}

.planner-surface .chart-column .cloud {
  background: #bd2c7d;
}

.planner-surface .chart-column label {
  position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 10px;
}

.planner-surface .chart-legend {
  display: flex; gap: 18px; margin-top: 29px; color: var(--ink-2); font-size: 12px;
}

.planner-surface .chart-legend i {
  display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 2px;
}

.planner-surface .chart-legend .onprem {
  background: #2c5ee7;
}

.planner-surface .chart-legend .cloud {
  background: #bd2c7d;
}

.planner-surface .assumption-callout {
  display: flex; gap: 9px; padding: 13px 15px; border-left: 3px solid var(--blue); color: var(--ink-2); background: #edf3ff; border-radius: 8px; font-size: 12px;
}

.planner-surface dialog {
  width: min(720px,calc(100vw - 28px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 19px; color: var(--ink); box-shadow: 0 30px 100px rgba(13,26,69,.34);
}

.planner-surface dialog::backdrop {
  background: rgba(10,19,48,.56); backdrop-filter: blur(3px);
}

.planner-surface .dialog-head {
  display: flex; justify-content: space-between; align-items: flex-start; padding: 23px 25px; color: #fff; background: linear-gradient(120deg,#13235f,#4b42cf);
}

.planner-surface .dialog-head h2 {
  margin: 4px 0 0; font-size: 26px;
}

.planner-surface .dialog-head .kicker {
  color: #b3dbff;
}

.planner-surface .dialog-close {
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff; width: 34px; height: 34px; border-radius: 9px; font-size: 22px;
}

.planner-surface .dialog-body {
  padding: 24px 26px 28px; overflow-y: auto;
}

.planner-surface .dialog-body section + section {
  margin-top: 22px;
}

.planner-surface .dialog-body h3 {
  margin: 0 0 7px; font-size: 16px;
}

.planner-surface .dialog-body p, .planner-surface .dialog-body li {
  color: var(--ink-2); font-size: 14px; line-height: 1.55;
}

.planner-surface .dialog-body ul {
  margin: 8px 0 0; padding-left: 20px;
}

.planner-surface .source-links {
  display: grid; gap: 8px;
}

.planner-surface .source-links a {
  color: #2157d1; font-size: 13px; text-decoration: none;
}

.planner-surface .source-links a:hover {
  text-decoration: underline;
}

.planner-surface .dialog-disclaimer {
  padding: 13px; border-radius: 9px; background: #f0f4fb;
}

@media (max-width: 1100px) {
  .planner-surface .compare-toolbar { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 820px) {
  .planner-surface .desktop-only, .planner-surface #mode-label { display: none; }
  .planner-surface .workspace-grid, .planner-surface .speed-layout, .planner-surface .cost-layout { grid-template-columns: 1fr; }
  .planner-surface .control-panel, .planner-surface .compact-panel { position: static; }
  .planner-surface .key-metrics, .planner-surface .metric-strip { grid-template-columns: repeat(2,1fr); }
  .planner-surface .memory-legend { grid-template-columns: repeat(3,1fr); }
  .planner-surface .speed-hero { grid-template-columns: 1fr; }
  .planner-surface .compare-toolbar { grid-template-columns: repeat(2,1fr); }
  .planner-surface .view-heading { display: block; }
  .planner-surface .freshness { display: inline-flex; margin-top: 12px; }
}

@media (max-width: 540px) {
  .planner-surface .mode-switch { font-size: 11px; }
  .planner-surface .view-heading h1 { font-size: 30px; }
  .planner-surface .two-fields, .planner-surface .advanced-grid, .planner-surface .custom-model-fields, .planner-surface .compare-toolbar, .planner-surface .compare-summary, .planner-surface .cost-cards, .planner-surface .solution-stack { grid-template-columns: 1fr; }
  .planner-surface .key-metrics { grid-template-columns: 1fr; }
  .planner-surface .recommendation-card, .planner-surface .result-card, .planner-surface .stream-card, .planner-surface .control-panel { padding: 18px; }
  .planner-surface .why-card { align-items: flex-start; flex-direction: column; }
  .planner-surface .memory-legend { grid-template-columns: repeat(2,1fr); }
  .planner-surface .speed-number b { font-size: 58px; }
  .planner-surface .experience-scale { grid-template-columns: repeat(2,1fr); }
  .planner-surface .metric-strip { grid-template-columns: 1fr 1fr; }
  .planner-surface .desktop-only { display: none; }
  .planner-surface .lifecycle-path { grid-template-columns: repeat(2,1fr); }
  .planner-surface .lifecycle-path span::after { display: none; }
  .planner-surface .lifecycle-head { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .planner-surface, .planner-surface * { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
