.smdp-calculator,
.smdp-calculator * { box-sizing: border-box !important; }
.smdp-calculator {
  --smdp-blue: #0c4c81;
  --smdp-blue-dark: #0d5a9a;
  --smdp-blue-soft: #e8f1fa;
  --smdp-blue-tint: #f4f8fd;
  --smdp-border: #e5e7eb;
  --smdp-border-strong: #b8d3ed;
  --smdp-text: #111827;
  --smdp-muted: #6b7280;
  --smdp-bg: #f9fafb;
  --smdp-surface: #ffffff;
  --smdp-success: #15803d;
  --smdp-danger: #b42318;
  --smdp-radius: 6px;
  --smdp-shadow: 0 4px 18px rgba(0,0,0,.09);
  max-width: 1120px;
  margin: 0 auto;
  padding-bottom: 32px;
  color: var(--smdp-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
}
.smdp-hero { display: flex; justify-content: space-between; gap: 24px; padding: 32px 0 28px; border-bottom: 1px solid var(--smdp-border); }
.smdp-hero-copy, .smdp-hero-note { background: linear-gradient(135deg, #fff 0%, #f4f8fd 100%); border: 1px solid var(--smdp-border); border-radius: 8px; padding: 24px; }
.smdp-hero-copy { flex: 1 1 auto; }
.smdp-hero-note { width: 320px; flex: 0 0 320px; }
.smdp-eyebrow, .smdp-note-kicker { display: inline-flex; margin-bottom: 12px; color: var(--smdp-blue); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.smdp-hero-title { margin: 0 0 10px; color: var(--smdp-blue); font-size: 2rem; font-weight: 500; line-height: 1.1; }
.smdp-hero-text, .smdp-hero-note p { margin: 0; color: var(--smdp-muted); line-height: 1.6; }
.smdp-hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.smdp-hero-badges span { display: inline-flex; padding: 7px 12px; border-radius: 999px; background: var(--smdp-blue-soft); color: var(--smdp-blue); font-size: 12px; font-weight: 600; }
.smdp-rail { display: flex; align-items: center; padding: 18px 0 28px; overflow-x: auto; }
.smdp-rail-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--smdp-blue); }
.smdp-rail-item span { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 999px; background: linear-gradient(135deg, var(--smdp-blue) 0%, var(--smdp-blue-dark) 100%); color: #fff; font-size: 12px; font-weight: 700; }
.smdp-rail-item strong { font-size: 13px; font-weight: 600; }
.smdp-rail-sep { flex: 1 0 32px; height: 1px; margin: 0 12px; background: var(--smdp-border); }
.smdp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.smdp-panel, .smdp-summary, .smdp-info-card { background: var(--smdp-surface); border: 1.5px solid var(--smdp-border); border-radius: var(--smdp-radius); overflow: hidden; box-shadow: var(--smdp-shadow); }
.smdp-panel-head, .smdp-info-head, .smdp-summary-head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 14px 20px; background: linear-gradient(135deg, var(--smdp-blue) 0%, var(--smdp-blue-dark) 100%); color: #fff !important; }
.smdp-panel-head h3, .smdp-info-head h3, .smdp-summary-head h3 { margin: 0; font-size: 14.5px; font-weight: 500; color: #fff !important; letter-spacing: -.01em; }
.smdp-panel-num, .smdp-summary-kicker { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.smdp-panel-body, .smdp-summary-body { padding: 34px 20px 20px !important; }
.smdp-ico { width: 15px; height: 15px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.smdp-panel-note { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 6px; background: var(--smdp-blue-soft); color: #374151; }
.smdp-panel-note .smdp-ico { color: var(--smdp-blue); }
.smdp-panel-body > :first-child { margin-top: 0 !important; }
.smdp-panel-intro-gap { margin-top: 14px !important; }
.smdp-field + .smdp-field, .smdp-check-grid { margin-top: 22px; }
.smdp-label { display: block; margin-bottom: 10px; color: var(--smdp-muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.smdp-format-grid, .smdp-check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.smdp-info-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.smdp-format-card input, .smdp-check-card input { position: absolute; opacity: 0; pointer-events: none; }
.smdp-format-card, .smdp-check-card { position: relative; display: block; cursor: pointer; }
.smdp-format-card-body, .smdp-check-card span { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px; border: 1.5px solid var(--smdp-border); border-radius: var(--smdp-radius); background: #fff; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.smdp-format-card input:checked + .smdp-format-card-body, .smdp-check-card input:checked + span { border-color: var(--smdp-border-strong); background: var(--smdp-blue-soft); box-shadow: 0 10px 28px rgba(12,76,129,.08); }
.smdp-format-icon, .smdp-info-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 6px; border-radius: 999px; background: var(--smdp-blue-tint); color: var(--smdp-blue); border: 1px solid var(--smdp-border-strong); }
.smdp-format-card-body strong, .smdp-check-card strong { font-size: 15px; color: var(--smdp-blue); }
.smdp-format-card-body small, .smdp-check-card small, .smdp-help { color: var(--smdp-muted); line-height: 1.5; }
.smdp-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; align-items: start; }
.smdp-two-col > .smdp-field { margin-top: 0 !important; align-self: start !important; }
.smdp-two-col-tight { margin-top: 0 !important; align-items: start !important; }
.smdp-field-no-top { margin-top: 0 !important; align-self: start !important; }
.smdp-runtime-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: start !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.smdp-runtime-item {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.smdp-runtime-label {
  display: block !important;
  margin: 0 0 10px !important;
  color: var(--smdp-muted) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}
.smdp-runtime-input {
  display: block !important;
  width: 100% !important;
  min-height: 46px !important;
  padding: 0 14px !important;
  border: 1.5px solid var(--smdp-border) !important;
  border-radius: var(--smdp-radius) !important;
  background: #fff !important;
  color: var(--smdp-text) !important;
  font: inherit !important;
  outline: 0 !important;
  box-shadow: none !important;
}
.smdp-runtime-help {
  display: block !important;
  margin-top: 8px !important;
  color: var(--smdp-muted) !important;
  line-height: 1.5 !important;
}
.smdp-input-wrap { display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1.5px solid var(--smdp-border); border-radius: var(--smdp-radius); background: #fff; }
.smdp-input-wrap span { color: var(--smdp-muted); font-size: 13px; font-weight: 600; }
.smdp-input, .smdp-calculator select { width: 100%; border: 0; outline: 0; background: transparent; min-height: 46px; color: var(--smdp-text); font: inherit; }
.smdp-date { border: 1px solid var(--smdp-border); border-radius: 8px; padding: 0 14px; background: #fff; }
.smdp-feedback { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: #f6f8fb; color: var(--smdp-muted); font-size: 13px; }
.smdp-feedback.is-success { color: var(--smdp-success); background: #edf9f0; }
.smdp-feedback.is-warning { color: #9a6700; background: #fff7e6; }
.smdp-feedback.is-error { color: var(--smdp-danger); background: #fef2f2; }
.smdp-weight-box { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1.5px solid var(--smdp-border); border-radius: var(--smdp-radius); background: var(--smdp-blue-tint); }
.smdp-range { flex: 0 1 150px; max-width: 150px; min-width: 0; }
.smdp-input-wrap-small { width: 110px; flex: 0 0 110px; }
.smdp-link-btn, .smdp-primary-btn, .smdp-modal-close { border: 0; cursor: pointer; font: inherit; }
.smdp-link-btn { margin-top: 10px; padding: 0; background: none; color: var(--smdp-blue); font-size: 13px; font-weight: 600; }
.smdp-summary { position: sticky; top: 24px; background: linear-gradient(180deg, #fff8e6 0%, #fff 100%) !important; }
.smdp-summary-head { background: linear-gradient(180deg, #fff3d9 0%, #fdfaf2 100%) !important; color: var(--smdp-blue) !important; }
.smdp-summary-head h3 { color: var(--smdp-blue) !important; }
.smdp-summary-kicker { background: #fff7e6 !important; border-color: #f0d79a !important; color: var(--smdp-blue) !important; }
.smdp-summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--smdp-border); font-size: 14px; }
.smdp-summary-row strong { text-align: right; }
.smdp-summary-row-main strong { color: var(--smdp-blue); font-size: 1.8rem; line-height: 1; }
.smdp-summary-row-total { margin-top: 12px; padding: 16px; border: 1px solid #f0d79a; border-radius: 8px; background: linear-gradient(180deg, #fff3d9 0%, #fffaf0 100%); color: var(--smdp-blue); }
.smdp-summary-row-total strong { font-size: 1.3rem; }
.smdp-summary-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.smdp-summary-meta div, .smdp-summary-notes div { padding: 12px; border-radius: var(--smdp-radius); border: 1px solid #f3e1b4; background: linear-gradient(180deg, #fffaf0 0%, #fff 100%); }
.smdp-summary-meta span { display: block; margin-bottom: 6px; color: var(--smdp-muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.smdp-summary-meta span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin-bottom: 6px !important;
  font-size: 10.5px !important;
  white-space: nowrap !important;
}
.smdp-summary-meta .smdp-ico {
  width: 13px !important;
  height: 13px !important;
}
.smdp-summary-notes { margin-top: 16px; display: grid; gap: 10px; }
.smdp-summary-notes div { color: var(--smdp-muted); font-size: 13px; }
.smdp-main .smdp-panel + .smdp-panel { margin-top: 28px; }
.smdp-info-section { margin-top: 28px; }
.smdp-info-head { margin-bottom: 16px; border-radius: 8px; }
.smdp-info-card {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100% !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 22px !important;
  float: none !important;
  clear: none !important;
  box-shadow: 0 8px 22px rgba(12,76,129,.05) !important;
}
.smdp-info-card h4 { margin: 0 0 10px; color: var(--smdp-blue); font-size: 1.05rem; font-weight: 600; }
.smdp-info-card p { margin: 0 0 16px; color: var(--smdp-muted); line-height: 1.6; }
.smdp-info-lines {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.smdp-info-line {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 10px 0 !important;
  border-top: 1px solid var(--smdp-border) !important;
  font-size: 14px !important;
}
.smdp-info-line:first-child { border-top: 0 !important; padding-top: 0 !important; }
.smdp-info-line span {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  color: var(--smdp-muted) !important;
  line-height: 1.45 !important;
}
.smdp-info-line strong {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  color: var(--smdp-text) !important;
  text-align: right !important;
  white-space: nowrap !important;
}
.smdp-info-card-accent {
  grid-column: 1 / -1 !important;
  background: linear-gradient(180deg, #fff8e6 0%, #fff 100%) !important;
  border-color: #f0d79a !important;
}
.smdp-info-card-accent .smdp-info-lines { margin-top: auto !important; }
.smdp-info-card-accent p { margin-bottom: 18px; }
.smdp-source-row { align-items: flex-start !important; }
.smdp-source-row strong {
  white-space: normal !important;
  min-width: 0 !important;
  max-width: none !important;
  line-height: 1.4 !important;
}
@media (min-width: 981px) {
  .smdp-info-card-accent .smdp-info-lines {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 24px !important;
    align-items: start !important;
  }
}
.smdp-modal[hidden] { display: none; }
.smdp-modal { position: fixed; inset: 0; z-index: 99999; }
.smdp-modal-backdrop { position: absolute; inset: 0; background: rgba(6,20,38,.45); }
.smdp-modal-dialog { position: relative; width: min(560px, calc(100vw - 32px)); margin: 8vh auto 0; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 24px 60px rgba(12,34,64,.24); }
.smdp-modal-head, .smdp-modal-foot { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--smdp-blue-tint); border-bottom: 1px solid var(--smdp-border); }
.smdp-modal-head h3 { margin: 0; color: var(--smdp-blue); font-size: 1.05rem; font-weight: 600; }
.smdp-modal-close { background: none; color: var(--smdp-blue); font-size: 28px; line-height: 1; }
.smdp-modal-body { padding: 20px; }
.smdp-modal-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.smdp-modal-tabs button, .smdp-primary-btn { padding: 10px 14px; border-radius: var(--smdp-radius); background: #edf2f7; color: var(--smdp-blue); font-size: 14px; font-weight: 600; }
.smdp-modal-tabs button.is-active, .smdp-primary-btn { background: linear-gradient(135deg, var(--smdp-blue) 0%, var(--smdp-blue-dark) 100%); color: #fff; }
.smdp-weight-panel { display: none; }
.smdp-weight-panel.is-active { display: block; }
.smdp-overlay-field {
  margin-bottom: 18px;
  padding: 14px;
  border: 1.5px solid var(--smdp-border-strong);
  border-radius: var(--smdp-radius);
  background: var(--smdp-blue-tint);
}
.smdp-overlay-field label {
  display: block;
  margin: 0 0 6px;
  color: var(--smdp-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.smdp-overlay-field small {
  display: block;
  margin-bottom: 12px;
  color: var(--smdp-muted);
  line-height: 1.45;
}
.smdp-overlay-field select {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 2px solid #9fc1e4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(12, 76, 129, 0.06);
}
.smdp-weight-panel label { display: block; margin: 14px 0 8px; color: var(--smdp-text); font-size: 14px; font-weight: 600; }
.smdp-weight-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.smdp-weight-result { margin-top: 18px; padding: 14px 16px; border-radius: 8px; background: var(--smdp-blue-soft); color: var(--smdp-blue); font-weight: 700; }
.smdp-version {
  margin-top: 12px;
  color: #7b8794;
  font-size: 11px;
  line-height: 1.3;
  text-align: right;
}
@media (max-width: 1200px) {
  .smdp-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .smdp-info-card-accent { grid-column: 1 / -1 !important; }
}
@media (max-width: 980px) {
  .smdp-layout, .smdp-two-col, .smdp-info-grid { grid-template-columns: 1fr !important; }
  .smdp-runtime-grid { grid-template-columns: 1fr !important; }
  .smdp-summary { position: static; }
  .smdp-hero { flex-direction: column; }
  .smdp-hero-note { width: auto; flex-basis: auto; }
  .smdp-info-card-accent { grid-column: auto !important; }
}
@media (max-width: 720px) {
  .smdp-format-grid, .smdp-check-grid, .smdp-summary-meta, .smdp-weight-inline { grid-template-columns: 1fr; }
  .smdp-hero-title { font-size: 1.6rem; }
}
