/* Silver Grove Savings Calculator — styles, scoped to the .sgc wrapper so
   nothing here changes the rest of the site. Mounted on /interactive. */
.sgc{
  /* Layout: an app-style flow. Questions sit in one focused white card on a soft page.
     Results open as a dashboard: one dark feature card with the dial, then white cards.
     One sans typeface throughout, big numbers, pill buttons, soft shadows. */
  --sg-ink:#10140F;          /* text and primary buttons */
  --sg-slate:#59615A;        /* secondary text */
  --sg-mist:#8A8F84;         /* muted text, the comparison line in the chart */
  --sg-line:#E4E8E2;         /* hairlines and quiet borders */
  --sg-field:#F1F3EE;        /* input and chip fills */
  --sg-wash:#F5F6F2;         /* page background */
  --sg-paper:#FFFFFF;
  --sg-green:#5C6C13;        /* Pacifika Green: progress, sliders, chart, focus */
  --sg-green-deep:#415210;   /* Olive Leaf Green: the dark feature card */
  --sg-green-soft:#EEF2DE;   /* light tint: selected rows, the advisor card */
  --sg-green-bright:#C9DB76; /* light tint for use on the dark card */
  --sg-error:#B3261E;
  --sg-shadow:0 1px 2px rgba(16,20,15,.05),0 14px 36px rgba(16,20,15,.08);
  /* Matches the site's own body font stack (see src/styles.css --font-sans) so this
     widget reads as part of the site rather than introducing a new typeface. */
  --sg-body:"Epilogue","DM Sans",ui-sans-serif,system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;

  font-family:var(--sg-body);color:var(--sg-ink);font-size:16px;line-height:1.5;
  padding:clamp(16px,3vw,40px) 16px;-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;
  background:var(--sg-wash);border-radius:1.75rem;
}
.sgc *,.sgc *::before,.sgc *::after{box-sizing:border-box}
.sgc [hidden]{display:none !important}
.sgc h2,.sgc h3,.sgc h4,.sgc p,.sgc ol,.sgc ul,.sgc dl,.sgc dd,.sgc fieldset,.sgc legend,.sgc figure{margin:0;padding:0;border:0}
.sgc h2,.sgc h3,.sgc h4{text-wrap:balance}
.sgc button,.sgc input{font:inherit;color:inherit}
.sgc :focus-visible{outline:3px solid var(--sg-green);outline-offset:3px}
.sgc .sgc-vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- top bar (every screen) ---------- */
.sgc .sgc-top{display:flex;align-items:center;gap:12px;min-height:44px}
.sgc .sgc-logo{display:block;height:34px;width:auto;max-width:60%}
.sgc .sgc-top__right{margin-left:auto;display:flex;align-items:center;gap:8px}
.sgc .sgc-stepcount{margin-left:auto;font-size:14px;font-weight:600;color:var(--sg-slate);font-variant-numeric:tabular-nums;white-space:nowrap}
.sgc .sgc-iconbtn{flex:none;width:44px;height:44px;border-radius:50%;border:0;background:var(--sg-field);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s}
.sgc .sgc-iconbtn:hover{background:var(--sg-line)}

/* ---------- question card ---------- */
.sgc .sgc-app{max-width:640px;margin:0 auto;background:var(--sg-paper);border-radius:28px;box-shadow:var(--sg-shadow);
  padding:24px 32px 28px;display:flex;flex-direction:column;gap:20px}
.sgc .sgc-progress{height:6px;border-radius:3px;background:var(--sg-field);overflow:hidden}
.sgc .sgc-progress span{display:block;height:100%;width:16%;border-radius:3px;background:var(--sg-green)}
.sgc .sgc-form{display:flex;flex-direction:column;gap:28px}
.sgc .sgc-step{display:flex;flex-direction:column;gap:22px;padding-top:8px}
.sgc .sgc-step__head{display:flex;flex-direction:column;gap:8px}
.sgc .sgc-step__head h3{font-size:clamp(27px,4.4vw,34px);font-weight:800;line-height:1.1;letter-spacing:-.028em}
.sgc .sgc-step__head h3:focus{outline:none}
.sgc .sgc-step__head p{color:var(--sg-slate);font-size:17px}
.sgc .sgc-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.sgc .sgc-field{display:flex;flex-direction:column;gap:8px;min-width:0}
.sgc .sgc-field > label,.sgc .sgc-legend{font-weight:600;font-size:15px}
.sgc .sgc-hint{font-size:14px;color:var(--sg-slate)}
.sgc .sgc-err{font-size:14px;color:var(--sg-error);font-weight:600}
.sgc .sgc-err:empty{display:none}

.sgc .sgc-input{display:flex;align-items:center;gap:8px;height:64px;padding:0 18px;background:var(--sg-field);
  border:2px solid transparent;border-radius:16px;transition:background .15s,border-color .15s,box-shadow .15s}
.sgc .sgc-input:focus-within{background:var(--sg-paper);border-color:var(--sg-ink);box-shadow:0 0 0 4px rgba(92,108,19,.18)}
.sgc .sgc-input.is-bad{border-color:var(--sg-error);background:#FDF3F2}
.sgc .sgc-input input{flex:1;min-width:0;width:100%;border:0;outline:0;background:transparent;font-size:24px;font-weight:700;
  letter-spacing:-.01em;padding:0;height:100%;font-variant-numeric:tabular-nums}
.sgc .sgc-input--text input{font-size:18px;font-weight:600;letter-spacing:0}
.sgc .sgc-input input::placeholder{color:#676E65;font-weight:400}
.sgc .sgc-input .sgc-pre{font-size:24px;font-weight:700;color:var(--sg-slate)}
.sgc .sgc-input .sgc-suf{color:var(--sg-slate);font-size:14px;font-weight:500;white-space:nowrap}
.sgc .sgc-input--stepper{padding:0 10px}
.sgc .sgc-input--stepper input{text-align:center}
.sgc .sgc-stepbtn{flex:none;width:44px;height:44px;border-radius:50%;border:0;background:var(--sg-paper);box-shadow:0 1px 2px rgba(16,20,15,.14);
  cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background .15s,color .15s}
.sgc .sgc-stepbtn:hover{background:var(--sg-ink);color:#fff}
.sgc .sgc-input--stepper:focus-within .sgc-stepbtn:not(:hover){background:var(--sg-field);box-shadow:none}

/* choices and the contact checkbox */
.sgc .sgc-choices{display:flex;flex-direction:column;gap:10px}
.sgc .sgc-choice,.sgc .sgc-check{display:flex;align-items:center;gap:14px;padding:16px 18px;border-radius:16px;cursor:pointer;
  box-shadow:inset 0 0 0 2px var(--sg-line);transition:box-shadow .15s,background .15s}
.sgc .sgc-choice:hover,.sgc .sgc-check:hover{box-shadow:inset 0 0 0 2px #C7CDC4}
.sgc .sgc-choice:has(input:checked),.sgc .sgc-check:has(input:checked){box-shadow:inset 0 0 0 2px var(--sg-ink);background:var(--sg-green-soft)}
.sgc .sgc-choice:has(input:focus-visible),.sgc .sgc-check:has(input:focus-visible){outline:3px solid var(--sg-green);outline-offset:3px}
.sgc .sgc-choice input{appearance:none;-webkit-appearance:none;flex:none;width:22px;height:22px;margin:0;border:2px solid #C3C9C0;border-radius:50%;background:#fff;outline:0}
.sgc .sgc-choice input:checked{border:7px solid var(--sg-ink)}
.sgc .sgc-choice__name{flex:1;font-weight:600}
.sgc .sgc-choice__amt{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--sg-slate)}
.sgc .sgc-check{font-weight:600}
.sgc .sgc-check input{appearance:none;-webkit-appearance:none;flex:none;width:24px;height:24px;margin:0;border:2px solid #C3C9C0;border-radius:8px;outline:0;
  background:#fff center/14px 14px no-repeat}
.sgc .sgc-check input:checked{border-color:var(--sg-ink);background-color:var(--sg-ink);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}

/* sliders */
.sgc .sgc-slider{display:flex;flex-direction:column;gap:2px;min-width:0}
.sgc .sgc-slider__top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.sgc .sgc-slider__top label{font-weight:600;font-size:15px}
.sgc .sgc-slider__top output{font-weight:700;font-size:15px;font-variant-numeric:tabular-nums;white-space:nowrap;background:var(--sg-field);border-radius:999px;padding:4px 12px}
.sgc .sgc-slider input[type=range]{--p:50%;appearance:none;-webkit-appearance:none;width:100%;height:44px;margin:0;background:transparent;cursor:pointer}
.sgc .sgc-slider input[type=range]::-webkit-slider-runnable-track{height:8px;border-radius:4px;background:linear-gradient(to right,var(--sg-green) var(--p),var(--sg-line) var(--p))}
.sgc .sgc-slider input[type=range]::-moz-range-track{height:8px;border-radius:4px;background:linear-gradient(to right,var(--sg-green) var(--p),var(--sg-line) var(--p))}
.sgc .sgc-slider input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:28px;height:28px;margin-top:-10px;border-radius:50%;background:#fff;border:0;
  box-shadow:0 1px 4px rgba(16,20,15,.32),0 0 0 1px rgba(16,20,15,.06)}
.sgc .sgc-slider input[type=range]::-moz-range-thumb{width:28px;height:28px;border-radius:50%;background:#fff;border:0;
  box-shadow:0 1px 4px rgba(16,20,15,.32),0 0 0 1px rgba(16,20,15,.06)}
.sgc .sgc-sliders{display:flex;flex-direction:column;gap:14px}
.sgc .sgc-slider__more{align-self:flex-start;margin:-2px 0 4px}
.sgc .sgc-risk{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:14px;background:var(--sg-field);font-size:14.5px;color:var(--sg-slate);margin-bottom:6px;transition:background .2s,color .2s}
.sgc .sgc-risk strong{color:var(--sg-ink);font-weight:700}
.sgc .sgc-risk__bars{display:inline-flex;align-items:flex-end;gap:3px;height:18px;flex:none}
.sgc .sgc-risk__bars i{width:5px;border-radius:2px;background:#C3C9C0}
.sgc .sgc-risk__bars i:nth-child(1){height:7px}
.sgc .sgc-risk__bars i:nth-child(2){height:12px}
.sgc .sgc-risk__bars i:nth-child(3){height:18px}
.sgc .sgc-risk[data-level=conservative] .sgc-risk__bars i:nth-child(1),.sgc .sgc-risk[data-level=moderate] .sgc-risk__bars i:nth-child(-n+2){background:var(--sg-green)}
.sgc .sgc-risk[data-level=moderate]{background:var(--sg-green-soft)}
.sgc .sgc-risk[data-level=aggressive]{background:var(--sg-ink);color:rgba(255,255,255,.8)}
.sgc .sgc-risk[data-level=aggressive] strong{color:#fff}
.sgc .sgc-risk[data-level=aggressive] .sgc-risk__bars i{background:var(--sg-green-bright)}
.sgc .sgc-warn{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:14px;background:#FFF3D1;color:#4A3900;font-size:14.5px;font-weight:600;margin-bottom:6px}
.sgc .sgc-warn svg{flex:none;margin-top:1px}
.sgc .sgc-info{background:var(--sg-field);border-radius:16px;padding:16px 18px;font-size:14.5px;color:var(--sg-slate);display:flex;flex-direction:column;gap:10px;margin-bottom:4px}
.sgc .sgc-info h4{font-size:16px;font-weight:700;color:var(--sg-ink)}
.sgc .sgc-info table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.sgc .sgc-info th,.sgc .sgc-info td{text-align:right;padding:8px 0;border-bottom:1px solid #DDE1DA}
.sgc .sgc-info th:first-child,.sgc .sgc-info td:first-child{text-align:left}
.sgc .sgc-info th{font-weight:600;font-size:13.5px}
.sgc .sgc-info td{color:var(--sg-ink);font-weight:600}
.sgc .sgc-info td span{color:var(--sg-slate);font-weight:500}
.sgc .sgc-info small{font-size:12.5px;color:var(--sg-slate)}
.sgc .sgc-ss{background:var(--sg-field);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px;margin-top:10px}
.sgc .sgc-ss .sgc-input{background:var(--sg-paper)}
.sgc .sgc-ss .sgc-stepbtn{background:var(--sg-field);box-shadow:none}
.sgc .sgc-ss .sgc-stepbtn:hover{background:var(--sg-ink)}
.sgc .sgc-ss .sgc-btn--sm{align-self:flex-start;background:var(--sg-paper)}
.sgc .sgc-ss .sgc-btn--sm:hover{background:var(--sg-line)}
.sgc .sgc-ss__out{background:var(--sg-paper);border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:6px;font-size:14.5px;color:var(--sg-slate)}
.sgc .sgc-ss__out strong{color:var(--sg-ink);font-size:17px;font-weight:700}
.sgc .sgc-ss__out small{font-size:12.5px;line-height:1.45}
.sgc .sgc-next__form{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-start}
.sgc .sgc-next__form .sgc-input{background:var(--sg-paper);height:58px;min-width:220px}

/* buttons */
.sgc .sgc-nav{display:flex;flex-direction:column}
.sgc .sgc-btn{display:inline-flex;align-items:center;justify-content:center;height:58px;padding:0 28px;border-radius:999px;border:0;
  background:var(--sg-ink);color:#fff;font-weight:700;font-size:17px;cursor:pointer;text-decoration:none;transition:background .15s,transform .12s}
.sgc .sgc-btn:hover{background:#000}
.sgc .sgc-btn:active{transform:scale(.985)}
.sgc .sgc-btn[disabled]{opacity:.55;cursor:default}
.sgc .sgc-btn--ghost{background:transparent;color:var(--sg-ink);box-shadow:inset 0 0 0 2px rgba(16,20,15,.16)}
.sgc .sgc-btn--ghost:hover{background:rgba(16,20,15,.06)}
.sgc .sgc-btn--sm{height:42px;padding:0 18px;font-size:15px;font-weight:600;white-space:nowrap}
.sgc .sgc-link{white-space:nowrap;min-height:44px;background:none;border:0;padding:8px 6px;color:var(--sg-ink);font-weight:600;font-size:15px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.sgc .sgc-smallprint{font-size:13px;color:var(--sg-slate);text-align:center}
.sgc .sgc-gate-fields{display:flex;flex-direction:column;gap:18px}
.sgc .sgc-note{font-size:14px;color:var(--sg-slate);background:var(--sg-field);padding:12px 16px;border-radius:14px}
.sgc .sgc-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.sgc .sgc-ready{display:flex;align-items:center;gap:16px;background:linear-gradient(135deg,#1E270D,#3A4A10);color:#fff;border-radius:20px;padding:16px 20px}
.sgc .sgc-ready svg{flex:none;width:92px;height:auto;filter:blur(2px)}
.sgc .sgc-ready strong{display:block;font-size:17px;font-weight:700}
.sgc .sgc-ready span{font-size:14px;color:rgba(255,255,255,.74)}

/* ---------- results ---------- */
.sgc .sgc-results{max-width:1080px;margin:0 auto;display:flex;flex-direction:column;gap:18px}
.sgc .sgc-results:focus{outline:none}
.sgc .sgc-top--results{padding:0 6px;flex-wrap:wrap;row-gap:8px}
.sgc .sgc-hero{background:linear-gradient(135deg,#1C240C 0%,#33420F 62%,#44560F 100%);color:#fff;border-radius:28px;padding:40px 44px;
  display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,1fr);gap:28px 44px;align-items:center}
.sgc .sgc-hero__copy{display:flex;flex-direction:column;align-items:flex-start;gap:18px}
.sgc .sgc-chip{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:700;padding:7px 14px;border-radius:999px;background:rgba(255,255,255,.13);color:#fff}
.sgc .sgc-chip::before{content:"";width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.7)}
.sgc .sgc-chip[data-state=ahead]::before,.sgc .sgc-chip[data-state=meets]::before{background:var(--sg-green-bright)}
.sgc .sgc-sentence{font-size:clamp(22px,2.5vw,30px);font-weight:500;line-height:1.36;letter-spacing:-.018em;color:rgba(255,255,255,.74)}
.sgc .sgc-fill{color:#fff;font-weight:700;white-space:nowrap}
.sgc .sgc-blank{display:inline-block;width:3em;height:.9em;border-bottom:2px solid rgba(255,255,255,.6)}
.sgc .sgc-gauge{display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px}
.sgc .sgc-gauge svg{display:block;width:100%;max-width:400px;height:auto}
.sgc .sgc-gauge text{font-family:var(--sg-body)}
.sgc .sgc-gauge__pct{font-size:13px;font-weight:700;padding:5px 12px;border-radius:999px;background:rgba(255,255,255,.14);margin:-4px 0 10px;font-variant-numeric:tabular-nums}
.sgc .sgc-gauge__label{font-size:15px;font-weight:500;color:rgba(255,255,255,.74)}
.sgc .sgc-gauge__value{font-size:clamp(40px,4.6vw,54px);font-weight:800;line-height:1.05;letter-spacing:-.03em}
.sgc .sgc-gauge__value small{font-size:17px;font-weight:600;letter-spacing:0;color:rgba(255,255,255,.74);margin-left:6px;white-space:nowrap}
.sgc .sgc-gauge__value.is-text{font-size:32px;letter-spacing:-.02em}
.sgc .sgc-gauge__sub{font-size:14.5px;color:rgba(255,255,255,.74);max-width:36ch;margin-top:4px}

.sgc .sgc-results.is-locked .sgc-lockable{display:none}
.sgc .sgc-unlock{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:26px 44px;align-items:start;padding:32px 34px}
.sgc .sgc-unlock__title{font-size:27px;font-weight:800;letter-spacing:-.024em;line-height:1.15;margin-bottom:8px}
.sgc .sgc-unlock__title:focus,.sgc .sgc-tiles:focus{outline:none}
.sgc .sgc-unlock__list{list-style:none;margin-top:16px;display:flex;flex-direction:column;gap:12px;font-weight:600;font-size:15.5px}
.sgc .sgc-unlock__list li{display:flex;gap:12px;align-items:flex-start}
.sgc .sgc-unlock__list li::before{content:"";flex:none;width:22px;height:22px;border-radius:50%;
  background:var(--sg-green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.4l2.7 2.7L11 4' fill='none' stroke='%23415210' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px 13px no-repeat}
.sgc .sgc-unlock__form{display:flex;flex-direction:column;gap:18px}
.sgc .sgc-insights{list-style:none;margin-top:18px;padding-top:16px;border-top:1px solid var(--sg-line);display:grid;grid-template-columns:1fr 1fr;gap:10px 30px;font-size:14.5px;color:var(--sg-slate)}
.sgc .sgc-insights:empty{display:none}
.sgc .sgc-insights li{display:flex;gap:10px;align-items:flex-start}
.sgc .sgc-insights li::before{content:"";flex:none;width:8px;height:8px;margin-top:7px;border-radius:50%;background:var(--sg-green)}
.sgc .sgc-about{font-size:13.5px;margin-top:10px}
.sgc .sgc-flag{display:flex;gap:12px;align-items:flex-start;padding:16px 20px;background:var(--sg-paper);border-radius:18px;box-shadow:var(--sg-shadow);font-size:15px}
.sgc .sgc-flag svg{flex:none;margin-top:2px}

.sgc .sgc-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.sgc .sgc-tile,.sgc .sgc-card{background:var(--sg-paper);border-radius:22px;box-shadow:var(--sg-shadow)}
.sgc .sgc-tile{padding:22px 24px;display:flex;flex-direction:column;gap:4px;min-width:0}
.sgc .sgc-tile__label{font-size:14px;color:var(--sg-slate);font-weight:600}
.sgc .sgc-tile__value{font-size:32px;font-weight:800;line-height:1.15;letter-spacing:-.028em}
.sgc .sgc-tile__sub{font-size:14px;color:var(--sg-slate)}
.sgc .sgc-card{padding:26px 28px}
.sgc .sgc-h4{font-size:19px;font-weight:700;letter-spacing:-.012em}
.sgc .sgc-sub{color:var(--sg-slate);font-size:14.5px}
.sgc .sgc-card__head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.sgc .sgc-adjust__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px}

.sgc .sgc-legend-row{display:flex;gap:20px;flex-wrap:wrap;font-size:14px;color:var(--sg-slate);margin:10px 0 6px}
.sgc .sgc-legend-row span{display:inline-flex;align-items:center;gap:8px}
.sgc .sgc-key{display:inline-block;width:18px;height:0;border-top:3px solid var(--sg-green);border-radius:2px}
.sgc .sgc-key--b{border-top-color:var(--sg-mist)}
.sgc .sgc-chart{position:relative;width:100%}
.sgc .sgc-chart svg{display:block;width:100%;height:auto;overflow:visible}
.sgc .sgc-chart:focus-visible{outline-offset:6px}
.sgc .sgc-chart text{font-family:var(--sg-body);fill:var(--sg-slate);font-size:13px;font-variant-numeric:tabular-nums}
.sgc .sgc-chart text.sgc-lbl{fill:var(--sg-ink);font-weight:700;font-size:13.5px;paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round}
.sgc .sgc-chart text.sgc-lbl--b{font-weight:600;fill:var(--sg-slate)}
.sgc .sgc-chart text.sgc-ret{fill:var(--sg-ink);font-weight:700}
.sgc .sgc-tip{position:absolute;top:0;left:0;pointer-events:none;background:var(--sg-ink);color:#fff;border-radius:14px;padding:12px 14px;font-size:13.5px;line-height:1.35;min-width:160px;box-shadow:0 10px 28px rgba(16,20,15,.28)}
.sgc .sgc-tip__age{color:#C5CABF;font-weight:600;margin-bottom:4px}
.sgc .sgc-tip__row{display:grid;grid-template-columns:16px auto;column-gap:8px;align-items:center;margin-top:5px}
.sgc .sgc-tip__row i{width:14px;border-top:3px solid var(--sg-green-bright);border-radius:2px}
.sgc .sgc-tip__row i.b{border-top-color:#B5B9AE}
.sgc .sgc-tip__row b{font-size:15px;font-variant-numeric:tabular-nums}
.sgc .sgc-tip__row em{grid-column:2;font-style:normal;color:#C5CABF;font-size:12.5px}
.sgc .sgc-tablewrap{max-height:340px;overflow:auto;border:1px solid var(--sg-line);border-radius:14px;margin-top:14px}
.sgc .sgc-table{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
.sgc .sgc-table th,.sgc .sgc-table td{padding:9px 14px;text-align:right;border-bottom:1px solid var(--sg-line)}
.sgc .sgc-table th:first-child,.sgc .sgc-table td:first-child{text-align:left}
.sgc .sgc-table thead th{position:sticky;top:0;background:var(--sg-field);font-weight:600;color:var(--sg-slate)}
.sgc .sgc-table tr.is-ret td{font-weight:700;background:var(--sg-green-soft)}

.sgc .sgc-rows{margin-top:6px}
.sgc .sgc-row{display:flex;justify-content:space-between;gap:20px;padding:13px 0;border-bottom:1px solid var(--sg-line)}
.sgc .sgc-row dt{color:var(--sg-slate)}
.sgc .sgc-row dt small{display:block;font-size:13.5px;color:var(--sg-slate)}
.sgc .sgc-row dd{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}
.sgc .sgc-row--total{border-bottom:0;background:var(--sg-field);border-radius:14px;padding:16px 18px;margin-top:12px;align-items:center}
.sgc .sgc-row--total dt{color:var(--sg-ink);font-weight:700}
.sgc .sgc-row--total dd{font-weight:800;font-size:22px;letter-spacing:-.02em}

.sgc .sgc-next{background:var(--sg-green-soft);border-radius:22px;padding:28px;display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}
.sgc .sgc-next__copy{max-width:56ch}
.sgc .sgc-next__copy h4{font-size:24px;font-weight:800;letter-spacing:-.022em;line-height:1.2;margin-bottom:4px}
.sgc .sgc-next__copy p{color:var(--sg-slate)}
.sgc .sgc-next__actions{display:flex;gap:10px;flex-wrap:wrap}
.sgc .sgc-fine{font-size:13.5px;color:var(--sg-slate);padding:10px 8px 0}
.sgc .sgc-fine h4{color:var(--sg-ink);font-size:15px;font-weight:700}
.sgc .sgc-fine p{margin-top:10px;max-width:96ch}
.sgc .sgc-fine ul{margin:10px 0 0;padding-left:20px;max-width:96ch;display:flex;flex-direction:column;gap:5px}

/* ---------- narrow screens ---------- */
@media (max-width:860px){
  .sgc .sgc-hero{grid-template-columns:1fr;padding:28px 22px 30px;gap:24px;border-radius:24px}
  .sgc .sgc-tiles{grid-template-columns:1fr;gap:14px}
  .sgc .sgc-adjust__grid{grid-template-columns:1fr;gap:14px}
  .sgc .sgc-unlock{grid-template-columns:1fr;padding:24px 20px}
  .sgc .sgc-insights{grid-template-columns:1fr}
  .sgc .sgc-card{padding:22px 20px}
  .sgc .sgc-next{padding:24px 20px}
}
@media (max-width:560px){
  .sgc{padding-left:10px;padding-right:10px}
  .sgc .sgc-app{padding:18px 18px 22px;border-radius:24px}
  .sgc .sgc-logo{height:28px}
  .sgc .sgc-top--results .sgc-logo{height:26px}
  .sgc .sgc-pair{grid-template-columns:1fr}
  .sgc .sgc-choice{flex-wrap:wrap}
  .sgc .sgc-row{flex-direction:column;gap:2px}
  .sgc .sgc-row dd{text-align:left}
  .sgc .sgc-row--total{align-items:flex-start}
  .sgc .sgc-next__actions,.sgc .sgc-next__actions .sgc-btn{width:100%}
  .sgc .sgc-top--results .sgc-btn--sm{padding:0 14px}
}
@media (prefers-reduced-motion:no-preference){
  .sgc .sgc-progress span{transition:width .4s cubic-bezier(.2,.8,.2,1)}
  .sgc .sgc-step{animation:sgc-in .26s cubic-bezier(.2,.8,.2,1)}
  .sgc .sgc-drop,.sgc .sgc-warn,.sgc .sgc-info,.sgc .sgc-ss__out{animation:sgc-drop .22s cubic-bezier(.2,.8,.2,1)}
  @keyframes sgc-drop{from{opacity:.2;transform:translateY(-6px)}to{opacity:1;transform:none}}
  @keyframes sgc-in{from{opacity:.2;transform:translateX(14px)}to{opacity:1;transform:none}}
}
