:root{
  --ds-bg:#f6f2ea;
  --ds-surface:#ffffff;
  --ds-surface-soft:#fbf8f2;
  --ds-text:#132018;
  --ds-muted:#64716a;
  --ds-line:#e5ddd1;
  --ds-line-strong:#d2c7b8;
  --ds-primary:#0b4f43;
  --ds-primary-2:#11665a;
  --ds-primary-soft:#e5f4ef;
  --ds-accent:#a46319;
  --ds-accent-soft:#f7e9d7;
  --ds-accent-2:#c57a21;
  --ds-danger:#b42318;
  --ds-danger-soft:#fde8e6;
  --ds-shadow:0 18px 50px rgba(18,32,24,.08);
  --ds-shadow-sm:0 8px 20px rgba(18,32,24,.06);
  --ds-shadow-primary:0 12px 24px rgba(11,79,67,.18);
  --ds-shadow-accent:0 12px 24px rgba(164,99,25,.18);
  --ds-radius-xl:24px;
  --ds-radius-lg:18px;
  --ds-radius-md:14px;
  --ds-radius-sm:10px;
  --ds-gap:16px;
  --ds-gap-lg:24px;
  --ds-max:1200px;
  --ds-font-body:'Hind', 'Segoe UI', sans-serif;
  --ds-font-head:'Hind', 'Segoe UI', sans-serif;
  --ds-grad-primary:linear-gradient(180deg, var(--ds-primary-2), var(--ds-primary));
  --ds-grad-accent:linear-gradient(180deg, var(--ds-accent-2), var(--ds-accent));
  --ds-grad-surface:linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,247,242,.98));
  --ds-ease:cubic-bezier(.22,1,.36,1);
  --ds-dur:.22s;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:
  radial-gradient(circle at top left, rgba(17,102,90,.08), transparent 28%),
  radial-gradient(circle at top right, rgba(164,99,25,.08), transparent 24%),
  var(--ds-bg);
  color:var(--ds-text);
  font-family:var(--ds-font-body);
}
body{min-height:100vh}
img,svg{max-width:100%;display:block}
button,input,select,textarea{font:inherit}
a{color:inherit}

.setu-viewport{
  min-height:100vh;
  background:#04070d;
  display:flex;
  justify-content:center;
}

.ds-shell{max-width:var(--ds-max);margin:0 auto;padding:16px}
.ds-page{
  position:relative;
}
.setu-screen{display:flex;flex-direction:column;height:100dvh;max-height:100dvh;overflow:hidden;width:min(100vw,390px);background:#ecf1f5;box-shadow:0 0 80px rgba(0,0,0,.45)}
.setu-header{flex:0 0 auto;min-height:56px;display:flex;align-items:center;background:linear-gradient(160deg,#0d5a4c,#0b3f36 60%,#082f28);color:#e8f3ef;border-bottom:1px solid rgba(255,255,255,.08);box-shadow:0 2px 12px rgba(0,0,0,.18)}
.setu-header--intro{background:linear-gradient(180deg,#06193f,#0e2a67)}
.setu-header-inner{display:flex;align-items:center;justify-content:space-between;width:100%;padding:0 8px;gap:6px}
.setu-header__left,.setu-header__right{flex:0 0 40px;display:flex;align-items:center;justify-content:center}
.setu-header__trust{width:30px;height:30px;flex:0 0 30px;border:1.5px solid rgba(255,255,255,.55);background:rgba(255,255,255,.08);color:#e8f3ef;border-radius:50%;padding:0;display:grid;place-items:center;font-size:.92rem;font-weight:800;line-height:1;cursor:pointer;transition:background var(--ds-dur) var(--ds-ease), transform var(--ds-dur) var(--ds-ease);font-style:italic;font-family:Georgia,'Times New Roman',serif}
.setu-header__trust:hover{background:rgba(255,255,255,.16);transform:translateY(-1px)}
.setu-header__brand{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;min-width:0}
.setu-header__brand-name{font-size:clamp(.6rem,3.4vw,.74rem);letter-spacing:.015em;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.setu-header__brand-tagline{font-size:.68rem;color:rgba(232,243,239,.78)}
.setu-header__mark{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#fff;box-shadow:0 4px 12px rgba(0,0,0,.25);overflow:hidden;object-fit:cover;padding:2px}

.setu-appbar{flex:0 0 auto;min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:linear-gradient(180deg,#136f5f,#0e5c4e);color:#e8f3ef;padding:6px 10px 8px;border-bottom:1px solid rgba(255,255,255,.08);position:relative}
.setu-appbar--intro{background:#1f3d79}
.setu-appbar__row{position:relative;display:flex;align-items:center;justify-content:center;width:100%}
.setu-appbar__title{font-size:1.04rem;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;max-width:calc(100% - 110px)}
.setu-appbar__icon-btn{position:absolute;top:50%;transform:translateY(-50%);width:26px;height:26px;flex:0 0 26px;border-radius:50%;border:1.5px solid rgba(255,255,255,.55);background:rgba(255,255,255,.1);color:#e8f3ef;font-weight:800;font-size:.82rem;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0}
.setu-appbar__icon-btn:hover{background:rgba(255,255,255,.2)}
.setu-appbar__icon-btn--left{left:0}
.setu-appbar__icon-btn--right{right:0}
.setu-appbar__context{font-size:.72rem;font-weight:700;color:rgba(232,243,239,.88);letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.setu-appbar__track{width:100%;max-width:280px;height:5px;border-radius:999px;background:rgba(255,255,255,.16);overflow:hidden}
.setu-appbar__fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#ffd829,var(--ds-accent-2));transition:width .5s var(--ds-ease)}

.setu-stage{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;background:transparent;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
.setu-stage--intro{display:flex;align-items:stretch}
.setu-stage--fixed{display:flex;flex-direction:column;overflow-y:hidden}

.setu-footer{flex:0 0 auto;min-height:56px;display:flex;align-items:center;justify-content:center;padding:0 10px;background:linear-gradient(0deg,#082f28,#0b3f36);color:#e8f3ef;border-top:1px solid rgba(255,255,255,.08);position:sticky;bottom:0;z-index:30;box-shadow:0 -2px 12px rgba(0,0,0,.16)}
.setu-footer--intro{background:#c8a734;border-top:none}
.setu-action-group{display:flex;align-items:center;justify-content:center;width:100%;text-align:center}
.setu-footer__hint{font-size:.72rem;color:rgba(232,243,239,.82)}
.setu-footer__actions{
  display:flex;
  justify-content:space-evenly;
  gap:10px;
  width:100%;
  height:100%;
  align-items:center;
  text-align:center;
}
.setu-footer__actions .ds-button{
  flex:0 0 40%;
  max-width:40%;
  height:80%;
  text-align:center;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:normal;
}
.setu-footer__actions .ds-button:only-child{
  flex-basis:80%;
  max-width:80%;
  height:80%;
}

.setu-intro{
  width:100%;
  padding:22px 14px 16px;
  display:grid;
  align-content:start;
  gap:20px;
}
.setu-intro__head{display:grid;gap:6px}
.setu-intro__icon{font-size:2rem;line-height:1}
.setu-intro__title{margin:0;color:#172a51;font-size:2rem;line-height:1.05;letter-spacing:-.03em}
.setu-intro__sub{margin:0;color:#5f7396;font-size:.9rem}
.setu-intro__card{
  background:#f8fbff;
  border:1px solid #bfd0ea;
  border-radius:10px;
  padding:16px 12px;
  text-align:center;
  display:grid;
  gap:6px;
}
.setu-intro__value{font-size:2.4rem;line-height:1;color:#162f5d;letter-spacing:-.03em}
.setu-intro__label{font-size:.8rem;color:#5b75a2}
.setu-intro__hint{margin:0;font-size:.86rem;color:#7c8faa}
.setu-intro__actions{display:grid;gap:10px}
.setu-intro__btn{
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border-radius:8px;
  padding:12px 10px;
  font-weight:700;
}
.setu-intro__btn--primary{background:#0f2350;color:#fff;border:1px solid #0f2350}
.setu-intro__btn--ghost{background:transparent;color:#0f2350;border:1px solid #2b426b}
.setu-intro__footer{margin:0;text-align:center;font-size:.72rem;color:#7f90a9}

.setu-trust-modal{position:fixed;inset:0;z-index:200;display:grid;place-items:center}
.setu-trust-modal[hidden]{display:none}
.setu-trust-modal__backdrop{position:absolute;inset:0;background:rgba(4,7,13,.72);backdrop-filter:blur(2px)}
.setu-trust-modal__panel{position:relative;width:90vw;height:90vh;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 24px 60px rgba(0,0,0,.35)}
.setu-trust-modal__frame{position:absolute;inset:0;width:100%;height:100%;border:0}
.setu-trust-modal__close{position:absolute;top:10px;right:10px;z-index:1;width:34px;height:34px;border-radius:999px;border:1px solid rgba(0,0,0,.12);background:#fff;color:#132018;font-size:1.3rem;line-height:1;cursor:pointer;display:grid;place-items:center}

/* Focus modal — a bottom sheet, not a full takeover: opt-in, quick, reopenable
   as often as the user wants without cost, and scoped to whichever <script
   data-focus-counts> JSON payload sits inside the currently active stage 18 view. */
.ds-focus-modal{position:fixed;inset:0;z-index:210;display:flex;align-items:flex-end;justify-content:center}
.ds-focus-modal[hidden]{display:none}
.ds-focus-modal__backdrop{position:absolute;inset:0;background:rgba(4,7,13,.6);backdrop-filter:blur(2px)}
.ds-focus-modal__panel{position:relative;width:100%;max-width:390px;max-height:85vh;overflow-y:auto;background:var(--ds-surface);border-radius:20px 20px 0 0;padding:20px 18px 18px;box-shadow:0 -10px 40px rgba(0,0,0,.3);animation:dsSlideUp .25s var(--ds-ease) both}
.ds-focus-modal__close{position:absolute;top:10px;right:10px;width:32px;height:32px;border-radius:999px;border:1px solid var(--ds-line);background:var(--ds-surface-soft);color:var(--ds-text);font-size:1.2rem;line-height:1;cursor:pointer;display:grid;place-items:center}
.ds-focus-modal__title{margin:0 30px 16px 0;font-size:1.12rem;font-weight:900;letter-spacing:-.01em}
.ds-focus-modal__section{margin-bottom:14px}
.ds-focus-modal__label{font-size:.76rem;font-weight:700;color:var(--ds-muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:7px}
.ds-focus-modal__total{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-radius:12px;background:var(--ds-accent-soft);border:1px solid rgba(164,99,25,.25);margin:16px 0}
.ds-focus-modal__total-label{font-size:.82rem;font-weight:700;color:var(--ds-text)}
.ds-focus-modal__total-value{font-size:1.5rem;font-weight:900;color:var(--ds-accent);transition:transform .15s var(--ds-ease)}
.ds-focus-modal__total-value.is-pulsing{transform:scale(1.12)}
.ds-focus-modal__apply{width:100%}

@keyframes dsSlideUp{from{transform:translateY(28px);opacity:0}to{transform:translateY(0);opacity:1}}

/* Journey Map — the mid-journey reopen sheet (rail only, no per-act detail;
   tapping a node opens the act-detail modal below on top of this one). */
.ds-flow-modal{position:fixed;inset:0;z-index:205;display:flex;align-items:flex-end;justify-content:center}
.ds-flow-modal[hidden]{display:none}
.ds-flow-modal__backdrop{position:absolute;inset:0;background:rgba(4,7,13,.6);backdrop-filter:blur(2px)}
.ds-flow-modal__panel{position:relative;width:100%;max-width:390px;max-height:85vh;overflow-y:auto;background:var(--ds-surface);border-radius:20px 20px 0 0;padding:20px 18px 18px;box-shadow:0 -10px 40px rgba(0,0,0,.3);animation:dsSlideUp .25s var(--ds-ease) both}
.ds-flow-modal__close{position:absolute;top:10px;right:10px;width:32px;height:32px;border-radius:999px;border:1px solid var(--ds-line);background:var(--ds-surface-soft);color:var(--ds-text);font-size:1.2rem;line-height:1;cursor:pointer;display:grid;place-items:center}
.ds-flow-modal__title{margin:0 30px 4px 0;font-size:1.12rem;font-weight:900;letter-spacing:-.01em}

/* Journey Map — the per-act detail popup. One modal instance, 6 hidden
   [data-flow-detail-page] children; JS reveals the one that was tapped. */
.ds-act-modal{position:fixed;inset:0;z-index:215;display:flex;align-items:flex-end;justify-content:center}
.ds-act-modal[hidden]{display:none}
.ds-act-modal__backdrop{position:absolute;inset:0;background:rgba(4,7,13,.6);backdrop-filter:blur(2px)}
.ds-act-modal__panel{position:relative;width:100%;max-width:390px;max-height:85vh;overflow-y:auto;background:var(--ds-surface);border-radius:20px 20px 0 0;padding:20px 18px 18px;box-shadow:0 -10px 40px rgba(0,0,0,.3);animation:dsSlideUp .25s var(--ds-ease) both}
.ds-act-modal__close{position:absolute;top:10px;right:10px;width:32px;height:32px;border-radius:999px;border:1px solid var(--ds-line);background:var(--ds-surface-soft);color:var(--ds-text);font-size:1.2rem;line-height:1;cursor:pointer;display:grid;place-items:center;z-index:1}
.ds-act-modal__eyebrow{font-size:.72rem;font-weight:800;color:var(--ds-accent);text-transform:uppercase;letter-spacing:.1em;margin:0 30px 6px 0}
.ds-act-modal__title{margin:0 30px 8px 0;font-size:1.18rem;font-weight:900;letter-spacing:-.01em}
.ds-act-modal__desc{margin:0 0 16px;color:var(--ds-muted);font-size:.92rem;line-height:1.5}
.ds-act-modal__stages-label{font-size:.76rem;font-weight:700;color:var(--ds-muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:8px}
.ds-act-modal__stages{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ds-act-modal__stage-row{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:12px;background:var(--ds-surface-soft);border:1px solid var(--ds-line)}
.ds-act-modal__stage-row strong{font-size:.9rem;color:var(--ds-text)}
.ds-act-modal__stage-row span{font-size:.82rem;color:var(--ds-muted);line-height:1.4}

.ds-onboard{width:100%;min-height:100%;padding:20px 12px;display:grid;justify-items:center;align-content:center;gap:14px;text-align:center;animation:dsFadeIn .4s var(--ds-ease) both}
.ds-onboard__mark{width:72px;height:72px;border-radius:20px;display:grid;place-items:center;background:#fff;box-shadow:var(--ds-shadow-primary);object-fit:cover;padding:8px}
.ds-onboard__title{margin:0;font-size:1.3rem;font-weight:900;letter-spacing:-.02em;color:var(--ds-text)}
.ds-onboard__note{margin:0;color:var(--ds-muted);font-size:.92rem;line-height:1.5;max-width:42ch}
.ds-onboard__note--bold{color:var(--ds-text);font-weight:800;font-size:1rem}

.ds-onboard--landing{
  position:relative;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:18px;
  overflow:hidden;
}
.ds-onboard__glow{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 50% 35%, rgba(11,79,67,.16), transparent 55%),
    radial-gradient(circle at 80% 75%, rgba(164,99,25,.14), transparent 45%);
  pointer-events:none;
}
.ds-onboard__cta{
  position:relative;
  width:50%;
  min-width:190px;
  margin:0 auto;
  border-radius:22px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  text-align:center;
  text-decoration:none;
  padding:26px 18px;
  background:var(--ds-grad-accent);
  color:#fff;
  font-weight:900;
  line-height:1.25;
  letter-spacing:-.02em;
  box-shadow:0 20px 46px rgba(164,99,25,.4), 0 0 0 8px rgba(164,99,25,.08);
  animation:dsPulse 2.8s ease-in-out infinite;
  transition:transform var(--ds-dur) var(--ds-ease), box-shadow var(--ds-dur) var(--ds-ease);
}
.ds-onboard__cta-line{font-size:clamp(1rem,4.2vw,1.35rem);display:block}
.ds-onboard__cta:hover{transform:scale(1.03);box-shadow:0 24px 54px rgba(164,99,25,.48), 0 0 0 10px rgba(164,99,25,.1)}
.ds-onboard__cta:active{transform:scale(.98)}

.ds-onboard--consent{justify-items:stretch;text-align:left;padding:16px 12px}
.ds-onboard--consent .ds-onboard__title{text-align:center;margin-bottom:4px}
.ds-consent-text{margin:0 0 16px;font-size:1.08rem;font-weight:800;line-height:1.55;color:var(--ds-text)}
.ds-consent-row{display:flex;align-items:flex-start;gap:12px;padding:14px;border:2px solid var(--ds-line);border-radius:14px;background:var(--ds-surface-soft);cursor:pointer;transition:border-color var(--ds-dur) var(--ds-ease), background var(--ds-dur) var(--ds-ease)}
.ds-consent-row:has(input:checked){border-color:var(--ds-primary);background:var(--ds-primary-soft)}
.ds-consent-row input{width:24px;height:24px;flex:0 0 24px;margin-top:1px;accent-color:var(--ds-primary)}
.ds-consent-row span{font-size:.95rem;line-height:1.4;font-weight:700}
.ds-consent-terms-link{
  display:block;
  width:100%;
  margin-top:14px;
  background:none;
  border:0;
  padding:8px;
  color:var(--ds-primary);
  font-size:.82rem;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:2px;
  text-align:center;
  cursor:pointer;
}

.ds-onboard--flowchart{align-content:start;padding-top:18px;text-align:left}
.ds-onboard--flowchart .ds-onboard__title,
.ds-onboard--flowchart .ds-onboard__note{text-align:center}

.ds-flow-rail{position:relative;width:100%;margin-top:10px;display:flex;flex-direction:column}
.ds-flow-rail::before{content:'';position:absolute;left:23px;top:14px;bottom:14px;width:2px;background:var(--ds-line-strong);z-index:0}
.ds-flow-node{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  padding:9px 6px;
  background:none;
  border:0;
  text-align:left;
  cursor:pointer;
  font:inherit;
  color:inherit;
}
.ds-flow-node__dot{
  flex:0 0 38px;
  width:38px;
  height:38px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--ds-grad-primary, linear-gradient(180deg, var(--ds-primary-2), var(--ds-primary)));
  color:#fff;
  font-weight:800;
  font-size:.95rem;
  box-shadow:var(--ds-shadow-primary);
}
.ds-flow-node__label{flex:1;font-weight:700;font-size:.94rem;color:var(--ds-text)}
.ds-flow-node__chevron{flex:0 0 auto;color:var(--ds-muted);font-size:1.2rem;line-height:1}
.ds-flow-node:active .ds-flow-node__dot{transform:scale(.94)}

.ds-language-grid{
  width:100%;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(120px, 1fr));
  gap:12px;
  margin-top:6px;
}
.ds-language-option{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  text-decoration:none;
  padding:20px 14px;
  border-radius:16px;
  border:2px solid var(--ds-line);
  background:var(--ds-surface);
  color:var(--ds-text);
  font-size:1.15rem;
  font-weight:800;
  box-shadow:var(--ds-shadow-sm);
  transition:transform var(--ds-dur) var(--ds-ease), border-color var(--ds-dur) var(--ds-ease), box-shadow var(--ds-dur) var(--ds-ease), background var(--ds-dur) var(--ds-ease);
}
.ds-language-option:hover{
  transform:translateY(-2px);
  border-color:var(--ds-primary);
  background:var(--ds-primary-soft);
  box-shadow:var(--ds-shadow-primary);
}
.ds-language-option:active{transform:translateY(0) scale(.98)}

@keyframes dsPulse{
  0%,100%{box-shadow:0 20px 46px rgba(164,99,25,.4), 0 0 0 8px rgba(164,99,25,.08)}
  50%{box-shadow:0 20px 46px rgba(164,99,25,.4), 0 0 0 14px rgba(164,99,25,.02)}
}

.ds-page::before{
  content:'';
  position:fixed;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg, rgba(255,255,255,.35), transparent 20%);
}

.ds-frame,
.ds-card,
.ds-metric,
.ds-table-wrap,
.ds-form,
.ds-panel{
  background:var(--ds-grad-surface);
  border:1px solid var(--ds-line);
  border-radius:var(--ds-radius-xl);
  box-shadow:var(--ds-shadow);
  animation:dsFadeIn .35s var(--ds-ease) both;
}

.ds-frame{padding:14px}
.ds-frame__header{margin-bottom:14px}
.ds-frame__title{margin:0;font-family:var(--ds-font-head);font-size:1.2rem;letter-spacing:-.02em}
.ds-frame__subtitle{margin:6px 0 0;color:var(--ds-muted);font-size:.95rem;line-height:1.5}
.ds-frame__body{display:block}

.ds-divider,
.ds-divider hr{border:0;height:1px;background:linear-gradient(90deg, transparent, var(--ds-line-strong), transparent);margin:20px 0}
.ds-divider{display:flex;align-items:center;gap:12px;color:var(--ds-muted);font-size:.85rem;text-transform:uppercase;letter-spacing:.12em}
.ds-divider span{white-space:nowrap}

.ds-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.ds-card{padding:12px;min-height:116px;display:flex;flex-direction:column;gap:8px;justify-content:space-between}
.ds-card__eyebrow{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--ds-muted)}
.ds-card__title{font-size:.95rem;line-height:1.3}
.ds-card__value{font-size:1.6rem;font-weight:800;letter-spacing:-.03em}
.ds-card__note{margin:0;color:var(--ds-muted);font-size:.86rem;line-height:1.45}

.ds-metric{padding:12px;display:flex;flex-direction:column;gap:6px;min-height:96px}
.ds-metric__label{color:var(--ds-muted);font-size:.78rem;text-transform:uppercase;letter-spacing:.12em}
.ds-metric__value{font-size:1.45rem;line-height:1.1;letter-spacing:-.03em}
.ds-metric__hint{color:var(--ds-muted);font-size:.85rem}

.ds-table-wrap{overflow:hidden}
.ds-table{width:100%;border-collapse:separate;border-spacing:0}
.ds-table th,
.ds-table td{padding:10px 10px;text-align:left;border-bottom:1px solid var(--ds-line)}
.ds-table th{position:sticky;top:0;background:linear-gradient(180deg, var(--ds-primary), #09453b);color:#fff;font-size:.82rem;letter-spacing:.08em;text-transform:uppercase;z-index:1}
.ds-table tr:last-child td{border-bottom:none}
.ds-table tbody tr:hover{background:rgba(11,79,67,.03)}
.ds-table__empty{text-align:center;color:var(--ds-muted);padding:24px 14px}

.ds-field{display:flex;flex-direction:column;gap:8px}
.ds-field__label{font-size:.82rem;color:var(--ds-muted);text-transform:uppercase;letter-spacing:.1em}
.ds-field__control{
  width:100%;
  border:1px solid var(--ds-line-strong);
  background:var(--ds-surface);
  color:var(--ds-text);
  border-radius:14px;
  padding:13px 14px;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ds-field__control:focus{
  border-color:var(--ds-primary);
  box-shadow:0 0 0 4px rgba(11,79,67,.12);
}
.ds-form{padding:14px;display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;align-items:end}
.ds-form--single{grid-template-columns:1fr}
.ds-form__actions{display:flex;align-items:flex-end}
.ds-form__note{grid-column:1/-1;margin:0;color:var(--ds-muted);font-size:.9rem;line-height:1.5}

.ds-form-optional{
  border:1px solid var(--ds-line);
  border-radius:14px;
  background:rgba(11,79,67,.03);
  padding:8px 10px;
}
.ds-form-optional__summary{
  cursor:pointer;
  font-weight:700;
  font-size:.86rem;
  color:var(--ds-primary);
  list-style:none;
}
.ds-form-optional__summary::-webkit-details-marker{display:none}
.ds-form-optional__content{
  margin-top:10px;
  display:grid;
  gap:10px;
}
.ds-form-optional__note{
  margin:0;
  color:var(--ds-muted);
  font-size:.82rem;
  line-height:1.35;
}

.ds-field--hero .ds-field__label{font-size:.86rem}
.ds-field__control--hero{
  min-height:78px;
  font-size:2.7rem;
  font-weight:800;
  text-align:center;
  letter-spacing:-.03em;
}

.ds-range-input-grid{display:grid;gap:12px}
.ds-range-input{
  display:grid;
  gap:8px;
  border:1px solid var(--ds-line);
  border-radius:16px;
  padding:12px;
  background:linear-gradient(180deg, rgba(11,79,67,.04), rgba(255,255,255,.95));
}
.ds-range-input__label{
  font-size:.76rem;
  text-transform:uppercase;
  letter-spacing:.1em;
  color:var(--ds-muted);
  font-weight:700;
}
.ds-range-input__control{
  width:100%;
  border:1px solid var(--ds-line-strong);
  border-radius:12px;
  min-height:66px;
  font-size:2.35rem;
  font-weight:800;
  text-align:center;
  color:var(--ds-primary);
  letter-spacing:-.03em;
  background:var(--ds-surface);
}
.ds-range-input__control:focus{
  outline:none;
  border-color:var(--ds-primary);
  box-shadow:0 0 0 4px rgba(11,79,67,.12);
}

.ds-summary-card{
  border:1px solid var(--ds-line);
  border-radius:16px;
  background:linear-gradient(180deg, rgba(11,79,67,.03), rgba(255,255,255,.96));
  overflow:hidden;
  animation:dsFadeIn .4s var(--ds-ease) both;
}
.ds-summary-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 10px;
  border-bottom:1px solid var(--ds-line);
}
.ds-summary-row:last-child{border-bottom:none}
.ds-summary-row__label{
  font-size:.78rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--ds-muted);
  font-weight:700;
}
.ds-summary-row__value{
  font-size:1rem;
  color:var(--ds-text);
  text-align:right;
}
.ds-summary-row--stack{
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
}
.ds-summary-row--stack .ds-summary-row__value{
  text-align:left;
  font-size:.95rem;
  line-height:1.45;
}
.ds-summary-card--nested{
  margin-top:8px;
  box-shadow:none;
}

.ds-button{
  appearance:none;
  border:0;
  cursor:pointer;
  border-radius:14px;
  padding:13px 16px;
  font-weight:800;
  letter-spacing:-.01em;
  transition:transform var(--ds-dur) var(--ds-ease), box-shadow var(--ds-dur) var(--ds-ease), background var(--ds-dur) var(--ds-ease);
}
.ds-button:hover{transform:translateY(-2px)}
.ds-button:active{transform:translateY(0) scale(.98)}
.ds-button--primary{background:var(--ds-grad-primary);color:#fff;box-shadow:var(--ds-shadow-primary)}
.ds-button--ghost{background:var(--ds-surface-soft);color:var(--ds-text);border:1px solid var(--ds-line)}
.ds-button--ghost:hover{border-color:var(--ds-primary);color:var(--ds-primary)}
.ds-button--accent{background:var(--ds-grad-accent);color:#fff;box-shadow:var(--ds-shadow-accent)}
.ds-button[disabled]{opacity:.45;cursor:not-allowed;box-shadow:none;transform:none}

.ds-chip{display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:7px 11px;font-size:.78rem;font-weight:700;letter-spacing:.02em}
.ds-chip--neutral{background:var(--ds-surface-soft);color:var(--ds-text)}
.ds-chip--success{background:var(--ds-primary-soft);color:var(--ds-primary)}
.ds-chip--accent{background:var(--ds-accent-soft);color:var(--ds-accent)}
.ds-chip--danger{background:var(--ds-danger-soft);color:var(--ds-danger)}

.ds-tabs{display:flex;flex-wrap:wrap;gap:6px}
.ds-tab{appearance:none;font:inherit;display:inline-flex;align-items:center;justify-content:center;padding:8px 10px;border-radius:9px;background:var(--ds-surface);border:1px solid var(--ds-line);text-decoration:none;font-weight:700;font-size:.88rem;box-shadow:var(--ds-shadow-sm);cursor:pointer;transition:transform var(--ds-dur) var(--ds-ease), box-shadow var(--ds-dur) var(--ds-ease), background var(--ds-dur) var(--ds-ease), color var(--ds-dur) var(--ds-ease)}
.ds-tab:hover{border-color:var(--ds-primary);color:var(--ds-primary)}
.ds-tab--active{background:var(--ds-grad-primary);color:#fff;border-color:transparent;box-shadow:0 8px 18px rgba(11,79,67,.24)}

/* Stage 14's tab row scrolls with the page (unlike stage 18's fixed-flex explorer),
   so it just needs a plain sticky offset to stay visible while content scrolls under it. */
.ds-tabs--sticky{position:sticky;top:0;z-index:5;background:var(--ds-surface);padding:4px 2px}

/* Equal-width segmented control (fixed 2-3 option groups: source, round) —
   full-width, no wasted pill-curve space, quick to scan under stress. */
.ds-tabs--segmented{display:flex;flex-wrap:nowrap;gap:2px;padding:2px;background:var(--ds-surface-soft);border:1px solid var(--ds-line);border-radius:10px}
.ds-tabs--segmented .ds-tab{flex:1 1 0;min-width:0;padding:7px 4px;border:0;border-radius:8px;box-shadow:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ds-tabs--segmented .ds-tab--active{box-shadow:0 4px 10px rgba(11,79,67,.22)}
.ds-tab[data-source-tab="MS"]:not(.ds-tab--active){color:#0b4f43}
.ds-tab[data-source-tab="MCC"]:not(.ds-tab--active){color:#1d4ed8}
.ds-tab[data-source-tab="AACCC"]:not(.ds-tab--active){color:#a46319}

[data-source-panel]{display:none}
[data-source-panel].is-active{display:block}
[data-course-panel]{display:none}
[data-course-panel].is-active{display:block}
[data-round-panel]{display:none}
[data-round-panel].is-active{display:block}

.ds-tabs--sub{margin:7px 0 6px;gap:5px;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.ds-tabs--sub .ds-tab--sub{flex:0 0 auto}
.ds-tab--sub{padding:5px 9px;font-size:.76rem;box-shadow:none}
.ds-tab--sub.ds-tab--active{box-shadow:0 6px 16px rgba(11,79,67,.2)}
.ds-tabs--round{margin:6px 0 6px}
.ds-tab--round{font-size:.72rem;padding:6px 4px}

.ds-colleges-explorer{padding:12px}
.ds-colleges-source{animation:dsFadeIn .3s var(--ds-ease) both}
.ds-colleges-course{animation:dsFadeIn .25s var(--ds-ease) both}
.ds-colleges-table-wrap{animation:dsFadeIn .2s var(--ds-ease) both}

/* Fixed-header explorer (stage 18): tabs stay put, only the table body scrolls.
   Cascades a flex column down through source -> course -> round so whichever
   leaf is active fills the remaining height; min-height:0 at every level is
   required for the innermost overflow to actually take effect. */
.ds-colleges-explorer--fixed{display:flex;flex-direction:column;height:100%;min-height:0;padding:8px}
.ds-colleges-explorer--fixed > .ds-summary-card__lead{flex:0 0 auto}
.ds-colleges-explorer--fixed > .ds-tabs{flex:0 0 auto}
.ds-colleges-explorer--fixed [data-source-panel].is-active{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
.ds-colleges-explorer--fixed [data-course-panel].is-active{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
.ds-colleges-explorer--fixed [data-round-panel].is-active{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
/* Every non-table row nested inside the active chain must be pinned to its
   content height explicitly — without this, flex's default flex-shrink:1
   lets these rows get squeezed toward zero height by the table wanting to
   grow, which is exactly the "course tabs vanished" bug. */
.ds-colleges-explorer--fixed [data-course-tabs],
.ds-colleges-explorer--fixed [data-round-tabs],
.ds-colleges-explorer--fixed .ds-toast{flex:0 0 auto}

.ds-table--compact th,
.ds-table--compact td{padding:7px 9px;font-size:.83rem}

.ds-table--sortable{table-layout:fixed}
.ds-table--sortable th:first-child,
.ds-table--sortable td:first-child{width:66px}
.ds-td-truncate{max-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:help}

.ds-table--sortable th{cursor:pointer;user-select:none;white-space:nowrap}
.ds-table--sortable th::after{content:'⇅';margin-left:6px;opacity:.55;font-size:.78em}
.ds-table--sortable th[data-sort-dir="asc"]::after{content:'↑';opacity:1}

/* Frozen header: thead stays fixed, only tbody scrolls within the panel's
   remaining height. Table display is overridden to flex so thead/tbody can
   size independently; th/td widths mirror each other via matching flex-basis. */
.ds-table--frozen{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;width:100%;border-collapse:collapse}
.ds-table--frozen thead{display:block;flex:0 0 auto}
.ds-table--frozen thead tr{display:flex;width:100%}
.ds-table--frozen thead th{display:block;flex:1 1 0;min-width:0}
.ds-table--frozen thead th:first-child{flex:0 0 66px}
.ds-table--frozen tbody{display:block;flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}
.ds-table--frozen tbody tr{display:flex;width:100%}
.ds-table--frozen tbody td{display:block;flex:1 1 0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ds-table--frozen tbody td:first-child{flex:0 0 66px}
/* .ds-td-truncate's max-width:0 is a native-table-layout:fixed trick — inside a
   frozen flex table it would clamp the column to near-zero width instead of
   letting it grow, which is the college-name-truncated-to-1-char bug. */
.ds-table--frozen .ds-td-truncate{max-width:none}
.ds-table--sortable th[data-sort-dir="desc"]::after{content:'↓';opacity:1}

.ds-summary-card--compact .ds-summary-row{padding:7px 9px}
.ds-summary-card--compact .ds-summary-row__label{font-size:.72rem}
.ds-summary-card--compact .ds-summary-row__value{font-size:.92rem}

.ds-toast--pop{
  position:fixed;
  left:50%;
  bottom:calc(10% + 20px);
  transform:translate(-50%, 12px);
  z-index:250;
  max-width:min(320px, 86vw);
  text-align:center;
  opacity:0;
  transition:opacity var(--ds-dur) var(--ds-ease), transform var(--ds-dur) var(--ds-ease);
  box-shadow:var(--ds-shadow);
}
.ds-toast--pop.is-visible{opacity:1;transform:translate(-50%, 0)}

.ds-stack{display:grid;gap:16px}
.ds-stack--tight{gap:10px}

.ds-page-title{margin:0 0 6px;font-size:clamp(1.7rem, 3vw, 2.4rem);letter-spacing:-.03em}
.ds-page-lead{margin:0;color:var(--ds-muted);font-size:1rem;line-height:1.6;max-width:72ch}

.ds-section{display:grid;gap:12px;margin-bottom:16px}
.ds-section__heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.ds-section__title{margin:0;font-size:1.05rem;letter-spacing:-.02em}
.ds-section__meta{color:var(--ds-muted);font-size:.9rem}

.ds-toast{padding:12px 14px;border-radius:14px;border:1px solid var(--ds-line);background:var(--ds-surface-soft);color:var(--ds-text)}
.ds-toast--info{border-color:rgba(11,79,67,.2);background:rgba(11,79,67,.06)}

.ds-micro-insight{display:flex;gap:10px;align-items:flex-start;padding:12px;border-radius:14px;background:var(--ds-primary-soft);border:1px solid rgba(11,79,67,.16);border-left:4px solid var(--ds-primary);color:var(--ds-text);font-size:.88rem;line-height:1.5}
.ds-micro-insight__icon{flex:0 0 auto;font-size:1.05rem;line-height:1.4}
.ds-micro-insight__label{display:block;font-weight:800;color:var(--ds-primary);font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;margin-bottom:2px}
.ds-toast--warn{border-color:rgba(180,35,24,.2);background:rgba(180,35,24,.06)}

.ds-journey-hero{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(17,102,90,.16);
  border-radius:calc(var(--ds-radius-xl) + 4px);
  background:linear-gradient(130deg, rgba(255,255,255,.95), rgba(229,244,239,.85), rgba(247,233,215,.75));
  box-shadow:0 26px 60px rgba(15,42,34,.14);
  margin-bottom:16px;
}
.ds-journey-hero__bg{
  position:absolute;
  inset:-40% -10% auto auto;
  width:420px;
  height:420px;
  background:radial-gradient(circle, rgba(11,79,67,.18), transparent 64%);
  transform:translate(20px,-80px);
}
.ds-journey-hero__content{position:relative;padding:24px;display:grid;gap:10px}
.ds-journey-stage{display:inline-flex;align-items:center;width:max-content;padding:6px 10px;border-radius:999px;background:rgba(19,32,24,.08);font-weight:700;font-size:.8rem;letter-spacing:.05em}

.ds-journey-rail{margin:0 0 16px}

.ds-journey-step{
  border:1px solid var(--ds-line);
  border-radius:var(--ds-radius-xl);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,247,242,.98));
  box-shadow:var(--ds-shadow);
  padding:14px;
  display:grid;
  gap:14px;
  animation:dsFadeIn .35s ease;
}
.ds-journey-step__header h2{margin:0;font-size:1.28rem;letter-spacing:-.02em}

.ds-page--focus{padding-top:12px}
/* Dense screens (stage 14/18): skip ds-shell's 24px + ds-journey-step's 18px
   padding+card chrome entirely — reclaims ~28% of a 390px viewport's width
   that was going to nested container padding instead of actual data. */
.ds-page--dense{padding:6px}
.ds-page--dense.ds-page--fill{display:flex;flex-direction:column;height:100%;min-height:0}
.ds-focus-purpose{
  margin:0;
  font-size:.92rem;
  color:var(--ds-muted);
  line-height:1.45;
}
.ds-focus-question{
  font-size:1.05rem;
  font-weight:700;
  line-height:1.45;
  color:var(--ds-text);
  text-align:center;
  padding:12px;
  border:1px solid var(--ds-line);
  border-radius:12px;
  background:rgba(11,79,67,.04);
}
.ds-journey-step__message{
  margin:0;
  font-size:.9rem;
  color:var(--ds-muted);
  line-height:1.5;
  text-align:center;
  padding:10px 12px;
  border:1px solid var(--ds-line);
  border-radius:12px;
  background:var(--ds-surface-soft);
}

.ds-journey-story{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.ds-story-block{
  border:1px solid var(--ds-line);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.95), rgba(251,248,242,.95));
  padding:10px;
  transition:box-shadow var(--ds-dur) var(--ds-ease), transform var(--ds-dur) var(--ds-ease);
}
.ds-story-block:hover{box-shadow:var(--ds-shadow-sm);transform:translateY(-1px)}
.ds-story-block h3{margin:0 0 6px;font-size:.78rem;text-transform:uppercase;letter-spacing:.11em;color:var(--ds-muted)}
.ds-story-block p{margin:0;font-size:.93rem;line-height:1.5}

.ds-hero-number{
  display:grid;
  justify-items:center;
  text-align:center;
  gap:6px;
  margin:4px 0 10px;
  padding:16px 12px;
  border:1px solid var(--ds-line);
  border-radius:16px;
  background:linear-gradient(180deg, rgba(11,79,67,.06), rgba(255,255,255,.95));
  animation:dsFadeIn .4s var(--ds-ease) both;
}
.ds-hero-number__label{
  font-size:.74rem;
  letter-spacing:.11em;
  text-transform:uppercase;
  color:var(--ds-muted);
  font-weight:700;
}
.ds-hero-number__value{
  font-size:clamp(2rem, 6vw, 3.4rem);
  line-height:1;
  letter-spacing:-.04em;
  color:var(--ds-primary);
}
.ds-hero-number__note{
  margin:0;
  font-size:.85rem;
  color:var(--ds-muted);
  max-width:56ch;
}
.ds-hero-number--total{
  border-color:rgba(164,99,25,.35);
  background:linear-gradient(180deg, rgba(164,99,25,.1), rgba(255,255,255,.96));
}
.ds-hero-number--total .ds-hero-number__value{
  color:var(--ds-accent);
}

.ds-journey-step__analytics{display:grid;gap:12px}
.ds-journey-grid{display:grid;grid-template-columns:1fr;gap:12px}

.ds-journey-pager{display:flex;justify-content:space-between;align-items:center;margin-top:16px;gap:10px}

@keyframes dsFadeIn{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:translateY(0)}
}

@media (max-width: 720px){
  .ds-shell{padding:14px}
  .ds-form{grid-template-columns:1fr}
  .ds-card-grid{grid-template-columns:1fr 1fr}
  .ds-journey-story{grid-template-columns:1fr}
  .ds-page-title{font-size:1.5rem}
  .setu-footer__actions{gap:8px}
  .setu-footer__actions .ds-button{min-height:38px;padding:10px 12px}
  .ds-focus-question{font-size:1rem;padding:10px}
}
