:root {
  color-scheme: light;
  --blue-900: #06477f;
  --blue-800: #07538f;
  --blue-700: #1268a8;
  --blue-100: #e4f0fa;
  --ink: #16324b;
  --muted: #66798c;
  --canvas: #f3f7fa;
  --line: #d7e1e9;
  --green: #168267;
  --green-soft: #e4f4ee;
  --shadow: 0 2px 8px rgb(22 50 75 / 7%);
  font-family: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 14px; }
button, input, select { font: inherit; }
.topbar { height: 54px; display: flex; align-items: center; gap: 16px; padding: 0 22px; color: white; background: var(--blue-900); box-shadow: 0 2px 4px rgb(0 0 0 / 22%); }
.brand { display: flex; align-items: center; gap: 7px; color: white; font-size: 27px; letter-spacing: -1.5px; text-decoration: none; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 10px); gap: 3px; }
.brand-mark i { display: block; height: 10px; background: white; }
.divider { width: 1px; height: 25px; background: rgb(255 255 255 / 35%); }
.product-name { font-weight: 600; }
.environment { margin-left: auto; padding: 4px 11px; border: 1px solid rgb(255 255 255 / 60%); border-radius: 15px; font-size: 11px; letter-spacing: .06em; }
.app-shell { display: flex; min-height: calc(100vh - 54px); }
.sidebar { width: 230px; flex: 0 0 230px; padding: 24px 12px; background: #fff; border-right: 1px solid var(--line); }
.sidebar-label, .card-kicker, .eyebrow { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.sidebar-label { padding: 0 10px 10px; }
.sidebar-item { padding: 11px 12px; color: var(--ink); border-left: 3px solid transparent; border-radius: 0 8px 8px 0; }
.sidebar-item.active { color: var(--blue-900); background: var(--blue-100); border-left-color: var(--blue-700); font-weight: 600; }
.nav-icon { margin-right: 10px; font-size: 19px; vertical-align: -1px; }
.main-content { width: min(1160px, 100%); margin: 0 auto; padding: 34px 38px 48px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 27px; }
.eyebrow { margin-bottom: 7px; color: var(--blue-700); }
h1, h2 { margin: 0; font-weight: 600; }
h1 { color: var(--blue-900); font-size: 28px; }
h2 { font-size: 18px; }
.heading-icon { margin-right: 8px; font-size: 27px; }
.intro { margin: 9px 0 0; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.button { padding: 9px 13px; color: var(--blue-900); background: white; border: 1px solid #b9cad8; border-radius: 5px; cursor: pointer; }
.button:hover { background: var(--blue-100); border-color: var(--blue-700); }
.file-button input { display: none; }
.notice { min-height: 0; margin-bottom: 10px; color: var(--green); font-size: 13px; }
.notice:not(:empty) { padding: 9px 12px; background: var(--green-soft); border-radius: 5px; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: white; border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); }
.input-card, .result-card, .breakdown-card, .details-card { padding: 23px 25px; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.card-kicker { margin-bottom: 7px; color: var(--blue-700); }
.status-dot { width: 9px; height: 9px; margin-top: 5px; background: #32a06f; border-radius: 50%; }
.form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
input, select { width: 100%; padding: 10px 11px; color: var(--ink); background: #fff; border: 1px solid #b9cad8; border-radius: 4px; outline: none; }
input:focus, select:focus { border-color: var(--blue-700); box-shadow: 0 0 0 3px rgb(18 104 168 / 12%); }
small { color: var(--muted); font-size: 11px; font-weight: 400; }
.input-with-suffix { position: relative; }
.input-with-suffix input { padding-right: 30px; }
.input-with-suffix span { position: absolute; top: 10px; right: 11px; color: var(--muted); }
.scope-preview { margin-top: 23px; padding-top: 17px; border-top: 1px solid var(--line); }
.scope-heading { display: flex; justify-content: space-between; align-items: center; }
.scope-heading strong { color: var(--blue-900); }
.scope-preview ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 15px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.scope-preview li::before { content: "✓"; margin-right: 7px; color: var(--green); font-weight: 700; }
.price-result { padding: 5px 0 22px; }
.price-result span:first-child { display: block; color: var(--muted); font-size: 12px; }
.price-result strong { display: block; margin: 5px 0 2px; color: var(--blue-900); font-size: 39px; font-weight: 600; letter-spacing: -1px; }
.annual-price { color: var(--muted); font-size: 13px; }
.result-meta { display: grid; grid-template-columns: repeat(3, 1fr); padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-meta div { display: grid; gap: 5px; }
.result-meta div + div { padding-left: 15px; border-left: 1px solid var(--line); }
.result-meta span { color: var(--muted); font-size: 11px; }
.result-meta strong { font-size: 15px; }
.pill { padding: 5px 9px; border-radius: 14px; font-size: 11px; font-weight: 700; }
.pill.positive { color: var(--green); background: var(--green-soft); }
.pill.warning { color: #9a6410; background: #fff4db; }
.margin-panel { padding-top: 20px; }
.panel-title { display: flex; justify-content: space-between; margin-bottom: 9px; font-size: 13px; }
.panel-title strong { color: var(--green); }
.progress-track { height: 8px; overflow: hidden; background: #e7edf2; border-radius: 6px; }
.progress-track span { display: block; height: 100%; background: var(--green); border-radius: 6px; transition: width .2s ease; }
.margin-panel p { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.breakdown-card { margin-top: 20px; }
.net-label { color: var(--muted); font-size: 12px; }
.breakdown { display: grid; gap: 0; }
.breakdown-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 12px 0; border-bottom: 1px solid #edf1f4; }
.breakdown-row span:last-child { font-weight: 600; }
.breakdown-row small { display: block; margin-top: 3px; }
.breakdown-row.discount-row { color: var(--green); }
.total-row { display: flex; justify-content: space-between; align-items: center; padding-top: 19px; color: var(--blue-900); font-size: 15px; font-weight: 600; }
.total-row strong { font-size: 20px; }
.details-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.detail-item { display: flex; gap: 11px; }
.detail-icon { color: var(--blue-700); font-size: 20px; }
.detail-item div { display: grid; gap: 5px; }
.detail-item strong { font-size: 12px; }
.detail-item span:last-child { color: var(--muted); font-size: 11px; line-height: 1.45; }
.footer-note { margin: 17px 0 0; color: var(--muted); font-size: 11px; text-align: right; }
@media (max-width: 850px) {
  .sidebar { display: none; }
  .main-content { padding: 25px 18px 40px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .actions { justify-content: flex-start; }
  .content-grid, .details-card { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .topbar { padding: 0 14px; gap: 10px; }
  .product-name { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  .environment { display: none; }
  .form-fields, .scope-preview ul { grid-template-columns: 1fr; }
  .input-card, .result-card, .breakdown-card, .details-card { padding: 19px 16px; }
  .price-result strong { font-size: 32px; }
}
