:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #142b3c;
  background: transparent;
  font-synthesis: none;
  --navy: #0c2132;
  --blue: #0089b2;
  --cyan: #00a0cf;
  --muted: #63717b;
}
* { box-sizing: border-box; }
body { margin: 0; background: transparent; }
button, input, select { font: inherit; }
button, select, summary, .urgency-option { cursor: pointer; }
[hidden] { display: none !important; }
.calculator-shell { max-width: 1080px; margin: 0 auto; padding: 16px; }
.calculator-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border: 1px solid #dce3e8; border-radius: 5px; overflow: hidden; box-shadow: 0 8px 30px #10263808; }
.form-panel { padding: 30px; min-width: 0; background: #fff; }
.panel-heading { display: flex; gap: 13px; align-items: center; margin-bottom: 28px; }
.building-icon { background: #edf7fa; color: var(--blue); width: 43px; height: 43px; display: grid; place-items: center; flex-shrink: 0; border-radius: 3px; }
.building-icon svg { width: 26px; height: 26px; }
h2 { font-size: 20px; line-height: 1.35; margin: 0; }
.panel-heading p { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.field { margin-bottom: 21px; }
.field > label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 9px; }
.required { color: var(--blue); padding-left: 2px; }
select, input[type="number"] { width: 100%; min-width: 0; height: 48px; padding: 0 13px; border: 1px solid #cbd5dc; border-radius: 3px; background-color: #fff; color: #253a49; font-size: 14px; }
select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23536673' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; text-overflow: ellipsis; }
input::placeholder { color: #86929a; }
.input-with-unit { position: relative; }
.input-with-unit input { padding-right: 65px; }
.input-with-unit > span { position: absolute; right: 34px; top: 14px; color: #657682; font-size: 15px; pointer-events: none; }
.field-hint { font-size: 12px; margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.error { font-size: 12px; line-height: 1.5; margin: 7px 0 0; color: #b32d30; }
[aria-invalid="true"] { border-color: #b32d30 !important; }
:focus-visible { outline: 3px solid #00a0cf; outline-offset: 3px; }
.urgency-option { display: flex; align-items: flex-start; gap: 11px; margin: 26px 0; }
.urgency-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); flex-shrink: 0; }
.urgency-option strong { font-size: 13px; display: block; line-height: 1.45; }
.urgency-option small { display: block; font-size: 11px; color: var(--muted); line-height: 1.5; margin-top: 5px; }
button { display: flex; width: 100%; align-items: center; justify-content: center; gap: 18px; border: 0; border-radius: 3px; background: var(--blue); color: white; font-size: 14px; font-weight: 700; min-height: 49px; padding: 12px; transition: background .15s; }
button:hover { background: #007597; }
button svg { width: 21px; height: 21px; }
.required-note { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.5; }
.result-panel { min-width: 0; background: var(--navy); color: white; padding: 36px 30px 30px; display: flex; flex-direction: column; border-left: 1px solid #dce3e8; }
.result-topline { display: flex; align-items: center; gap: 10px; color: #74c9e3; font-size: 10px; letter-spacing: 1.5px; font-weight: 700; margin-bottom: 31px; }
.result-mark { display: block; width: 19px; height: 10px; border: 1.5px solid var(--cyan); border-bottom: 0; }
.result-panel h2 { font-size: 17px; font-weight: 400; color: #e5edf2; }
.result-value { font-size: clamp(33px, 4vw, 45px); font-weight: 700; letter-spacing: -1.4px; line-height: 1.25; margin: 16px 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.result-hint { color: #b6c7d2; font-size: 13px; line-height: 1.75; margin: 0 0 25px; max-width: 325px; }
.result-divider { background: #ffffff24; height: 1px; margin-bottom: 24px; }
details { margin-bottom: 27px; }
summary { display: flex; list-style: none; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; font-size: 13px; color: #f0f6fa; }
summary::-webkit-details-marker { display: none; }
summary span { color: #6ecde8; font-size: 23px; line-height: 1; }
details[open] summary span { transform: rotate(45deg); }
.breakdown { margin: 19px 0 0; font-size: 12px; line-height: 1.5; }
.breakdown > div { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.breakdown dt { color: #b6c7d2; }
.breakdown dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.breakdown-total { border-top: 1px solid #ffffff24; padding-top: 15px; font-weight: 700; }
.breakdown-total dt { color: #fff; }
.result-note { display: flex; gap: 10px; align-items: flex-start; margin-top: auto; padding: 16px; border: 1px solid #ffffff1c; background: #ffffff04; border-radius: 3px; }
.result-note svg { flex-shrink: 0; width: 19px; height: 19px; color: #66c4e0; margin-top: 1px; }
.result-note p { margin: 0; color: #b6c7d2; font-size: 11px; line-height: 1.8; }
.noscript { padding: 16px; color: #b32d30; text-align: center; }
@media (max-width: 700px) {
  .calculator-shell { padding: 12px; }
  .calculator-grid { grid-template-columns: minmax(0, 1fr); }
  .result-panel { border-left: 0; border-top: 1px solid #dce3e8; }
  .form-panel, .result-panel { padding: 25px 22px; }
  .result-topline { margin-bottom: 22px; }
  .result-value { font-size: 40px; }
  .result-hint { max-width: none; }
  select, input[type="number"] { font-size: 16px; }
}
@media (max-width: 360px) {
  .calculator-shell { padding: 8px; }
  .form-panel, .result-panel { padding: 23px 16px; }
}
