
#hia-ci-app{
  --hia-primary:#173e4b;--hia-accent:#aa813b;--hia-background:#f4f5f3;
  background:var(--hia-background);color:#182d38;font:15px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  width:100%;isolation:isolate;padding:0 0 20px;
}
#hia-ci-app *,#hia-ci-app *::before,#hia-ci-app *::after{box-sizing:border-box}
#hia-ci-app .hia-ci-shell{max-width:1120px;margin:0 auto;padding:0 32px}
#hia-ci-app .hia-ci-mast{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:30px 0;border-bottom:1px solid #d9dfdc}
#hia-ci-app .hia-ci-brand{display:flex;align-items:center;gap:18px}
#hia-ci-app .hia-ci-mark{font-size:27px;font-weight:850;letter-spacing:-2px;color:var(--hia-primary)}
#hia-ci-app .hia-ci-brand-name{font-weight:650;font-size:14px;max-width:280px}
#hia-ci-app .hia-ci-logo{max-width:160px;max-height:52px;object-fit:contain}
#hia-ci-app .hia-ci-purpose{font-size:12px;letter-spacing:.04em;color:#63757b;text-align:right}
#hia-ci-app .hia-ci-steps{display:flex;gap:26px;flex-wrap:wrap;margin:36px 0 26px;font-size:12px;color:#879398}
#hia-ci-app .hia-ci-steps span.active{color:var(--hia-primary);font-weight:750}
#hia-ci-app .hia-ci-panel{background:#fff;border:1px solid #e0e5e1;border-radius:10px;padding:clamp(28px,6vw,74px);min-height:450px;box-shadow:0 15px 45px rgba(26,45,49,.035)}
#hia-ci-app .hidden{display:none!important}
#hia-ci-app h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(35px,5vw,57px);font-weight:500;line-height:1.16;letter-spacing:-.027em;max-width:790px;margin:0 0 23px;color:#182d38}
#hia-ci-app h2{font-family:Georgia,serif;font-size:26px;font-weight:500;color:#182d38;margin:0 0 14px}
#hia-ci-app p{margin:0 0 18px}
#hia-ci-app .hia-ci-lead{font-size:19px;line-height:1.6;color:#51646c;max-width:720px}
#hia-ci-app .hia-ci-lead.small{font-size:16px}
#hia-ci-app .hia-ci-facts{display:flex;flex-wrap:wrap;gap:12px;margin:30px 0}
#hia-ci-app .hia-ci-facts span{border:1px solid #d7e0db;padding:9px 13px;border-radius:30px;font-size:13px}
#hia-ci-app .hia-ci-note{max-width:750px;font-size:13px;line-height:1.65;color:#56696f;background:#f5f7f5;padding:18px;border-left:3px solid var(--hia-accent)}
#hia-ci-app .hia-ci-access{max-width:400px;margin:28px 0}
#hia-ci-app label{display:block;font-weight:650;font-size:14px;margin:0 0 10px;color:#203d48}
#hia-ci-app input:not([type=checkbox]),#hia-ci-app textarea{font:inherit;font-size:15px;border:1px solid #cbd6d2;border-radius:5px;padding:14px 16px;width:100%;color:#1b333e;background:#fff;max-width:none;box-shadow:none}
#hia-ci-app textarea{line-height:1.6;resize:vertical}
#hia-ci-app input:focus,#hia-ci-app textarea:focus,#hia-ci-app button:focus-visible{outline:3px solid var(--hia-accent);outline-offset:2px}
#hia-ci-app button{font:650 14px/1.3 Inter,system-ui,sans-serif;border-radius:5px;padding:13px 19px;cursor:pointer;border:1px solid #bfcfca;background:#fff;color:#203d48;min-height:44px;text-transform:none;letter-spacing:normal;box-shadow:none}
#hia-ci-app button:hover:not(:disabled){filter:brightness(.95)}
#hia-ci-app button:disabled{opacity:.5;cursor:wait}
#hia-ci-app button.primary{background:var(--hia-primary);color:#fff;border-color:var(--hia-primary)}
#hia-ci-app .hia-ci-actions{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0 0}
#hia-ci-app .hia-ci-overline{display:flex;justify-content:space-between;gap:18px;color:#667c82;font-size:13px;margin-bottom:14px}
#hia-ci-app .hia-ci-meter{height:4px;background:#e7ece9;margin-bottom:46px}
#hia-ci-app .hia-ci-meter div{height:100%;width:8%;background:var(--hia-accent);transition:width .2s}
#hia-ci-app #question{font-size:clamp(28px,4vw,42px);max-width:780px;margin:0 0 35px}
#hia-ci-app .hia-ci-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:30px}
#hia-ci-app .hia-ci-profile-grid textarea{min-height:128px}
#hia-ci-app .hia-ci-profile-grid .hia-ci-critical{grid-column:1/-1;border-top:1px solid #dce3df;margin-top:14px;padding-top:24px}
#hia-ci-app .hia-ci-help{font-size:13px;color:#66767c;margin:-3px 0 12px}
#hia-ci-app .hia-ci-counter{display:flex;justify-content:space-between;gap:15px;color:#61737a;font-size:13px;margin-top:8px}
#hia-ci-app .hia-ci-counter.error{color:#a3392c}
#hia-ci-app .hia-ci-revision{border-top:1px solid #e2e9e4;margin-top:32px;padding-top:28px}
#hia-ci-app .hia-ci-revision-row{display:flex;gap:12px}
#hia-ci-app .hia-ci-revision-row input{flex:1}
#hia-ci-app .hia-ci-install{margin-top:38px;background:#f5f7f5;padding:24px;border-radius:6px;color:#435961;line-height:1.6}
#hia-ci-app .hia-ci-check{display:flex;align-items:flex-start;gap:10px;font-size:14px;font-weight:400;line-height:1.5;max-width:760px;margin:14px 0}
#hia-ci-app .hia-ci-check input{width:18px;height:18px;min-width:18px;margin:2px 0 0}
#hia-ci-app .hia-ci-notice{font-size:14px;color:#315766}
#hia-ci-app .hia-ci-notice:not(:empty){padding:12px 0 3px;min-height:30px}
#hia-ci-app .hia-ci-privacy-actions{border-top:1px solid #dce3df;padding-top:18px}
#hia-ci-app .hia-ci-privacy-actions button{font-size:12px;padding:8px 12px;min-height:36px}
#hia-ci-app footer{border-top:1px solid #d9dfdc;margin-top:35px;padding:25px 0 35px;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;color:#738288;font-size:12px}
@media(max-width:680px){
 #hia-ci-app .hia-ci-shell{padding:0 16px}
 #hia-ci-app .hia-ci-mast{padding:20px 0}
 #hia-ci-app .hia-ci-brand-name{max-width:210px}
 #hia-ci-app .hia-ci-purpose{display:none}
 #hia-ci-app .hia-ci-steps{gap:12px;margin:22px 0}
 #hia-ci-app .hia-ci-panel{padding:26px 20px;min-height:0}
 #hia-ci-app .hia-ci-profile-grid{grid-template-columns:1fr}
 #hia-ci-app .hia-ci-revision-row{flex-direction:column}
}
@media(prefers-reduced-motion:reduce){#hia-ci-app *{transition:none!important;scroll-behavior:auto!important}}

/* Answer choices: a clear keyboard-accessible radio group, with a separate optional note. */
#hia-ci-app .hia-ci-choice-help{font-size:15px;color:#536b74;margin:-8px 0 20px;max-width:720px}
#hia-ci-app .hia-ci-choices{display:grid;gap:11px;margin:0 0 29px;padding:0;border:0;min-width:0;max-width:790px}
#hia-ci-app .hia-ci-option{display:flex;gap:15px;align-items:center;min-height:62px;width:100%;border:1.5px solid #d2ddd9;border-radius:8px;padding:17px 19px;margin:0;background:#fff;color:#193541;font-size:16px;font-weight:500;line-height:1.45;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}
#hia-ci-app .hia-ci-option:hover{border-color:#709197;background:#f8faf9}
#hia-ci-app .hia-ci-option:has(input:checked){background:#edf5f2;border-color:var(--hia-primary);box-shadow:inset 0 0 0 1px var(--hia-primary);font-weight:650}
#hia-ci-app .hia-ci-option:focus-within{outline:3px solid var(--hia-accent);outline-offset:2px}
#hia-ci-app .hia-ci-option input[type=radio]{flex:0 0 19px;min-width:19px;width:19px;height:19px;margin:0;padding:0;border:0;background:transparent;box-shadow:none;accent-color:var(--hia-primary);cursor:pointer}
#hia-ci-app .hia-ci-option span{min-width:0;flex:1}
#hia-ci-app .hia-ci-optional{font-weight:400;color:#6a7b80}
#hia-ci-app #answer{max-width:790px;min-height:95px}
@media(max-width:680px){#hia-ci-app .hia-ci-option{padding:14px 13px;min-height:56px;font-size:15px}#hia-ci-app .hia-ci-choices{gap:10px}}

/* Review a short, evidence-based summary before the editable preference fields. */
#hia-ci-app .hia-ci-learned-summary{background:#f3f7f4;border-left:4px solid var(--hia-primary);padding:18px 20px;line-height:1.65;border-radius:4px;max-width:900px;white-space:pre-line}
#hia-ci-app .hia-ci-review-notes{margin:22px 0 16px;max-width:900px}
#hia-ci-app .hia-ci-review-notes textarea{min-height:90px}

/* Contextual capability clarification: neutral, readable, and kept out of the question hierarchy. */
#hia-ci-app .hia-ci-capability{max-width:790px;padding:13px 16px;margin:0 0 20px;background:#f3f6f4;border-left:3px solid #6f857f;border-radius:4px;color:#36515a;font-size:14px;line-height:1.55;white-space:pre-line}
#hia-ci-app #profileCapability{margin:22px 0 18px;max-width:900px}

/* Trident-specific presentation; client-owned logo is bundled locally. */
#hia-ci-app[data-client="trident"]{border-top:4px solid var(--hia-primary)}
#hia-ci-app[data-client="trident"] .hia-ci-mark{
  font-family:Arial,Helvetica,sans-serif;font-size:17px;letter-spacing:.11em;
  line-height:1.35;font-weight:800;white-space:nowrap;
}
#hia-ci-app[data-client="trident"] .hia-ci-brand-name{
  max-width:260px;font-size:14px;font-weight:550;color:#49616e;line-height:1.35;
}
#hia-ci-app[data-client="trident"] .hia-ci-panel{box-shadow:0 8px 26px rgba(18,46,63,.035)}
#hia-ci-app[data-client="trident"] .hia-ci-steps span.active{border-bottom:2px solid var(--hia-primary);padding-bottom:5px}
#hia-ci-app[data-client="trident"] button.primary{font-weight:750}
#hia-ci-app .hia-ci-session-warning{
  margin:24px 0 0;padding:16px 0;max-width:770px;
  display:flex;gap:15px;align-items:flex-start;
  border-top:1px solid #cfdadf;border-bottom:1px solid #cfdadf;
  color:#284453;
}
#hia-ci-app .hia-ci-session-warning svg{flex:none;margin-top:2px;color:var(--hia-primary)}
#hia-ci-app .hia-ci-session-warning p{margin:0;font-size:14px;line-height:1.65}
#hia-ci-app .hia-ci-short-reminder{
  max-width:790px;color:#506a76;font-size:13px;margin:-7px 0 25px;
  border-left:2px solid var(--hia-accent);padding-left:12px;
}
#hia-ci-app .hia-ci-field-meter{
  font-size:12px;line-height:1.5;color:#506873;
  text-align:right;min-height:22px;margin:7px 0 16px;
  font-variant-numeric:tabular-nums;
}
#hia-ci-app .hia-ci-field-meter.near-limit{color:#674817;font-weight:600}
#hia-ci-app .hia-ci-field-meter.error{color:#a3392c;font-weight:700}
#hia-ci-app .hia-ci-profile-grid > div{min-width:0}
#hia-ci-app .hia-ci-install-steps{counter-reset:step;list-style:none;padding:0;margin:12px 0 18px;max-width:870px}
#hia-ci-app .hia-ci-install-steps li{
  counter-increment:step;position:relative;
  margin:0 0 13px;padding:2px 0 8px 46px;
  line-height:1.65;
}
#hia-ci-app .hia-ci-install-steps li::before{
  content:counter(step);position:absolute;top:1px;left:0;
  width:29px;height:29px;display:flex;align-items:center;justify-content:center;
  color:var(--hia-primary);background:#fff;border:1px solid #c5d1d8;
  border-radius:50%;font:700 13px/1 system-ui,sans-serif;
}
#hia-ci-app .hia-ci-install .hia-ci-help{margin:5px 0 18px}
@media(max-width:680px){
 #hia-ci-app[data-client="trident"] .hia-ci-brand{align-items:flex-start;flex-direction:column;gap:2px}
 #hia-ci-app[data-client="trident"] .hia-ci-mark{font-size:15px;white-space:normal}
 #hia-ci-app[data-client="trident"] .hia-ci-brand-name{max-width:100%;font-size:13px}
 #hia-ci-app .hia-ci-install{padding:18px}
}


/* v1.6.0: Trident page-specific dark treatment. All selectors are scoped to
   the MUSE shortcode; HIA's WordPress theme and other site pages are untouched. */
#hia-ci-app[data-client="trident"]{
  --hia-primary:#c8a86b;
  --hia-accent:#c8a86b;
  --hia-background:#090909;
  background:#090909;
  color:#f6f3ed;
  min-height:100vh;
  border-top:0;
  color-scheme:dark;
}
#hia-ci-app[data-client="trident"] .hia-ci-mast{border-bottom-color:#3c3932}
#hia-ci-app[data-client="trident"] .hia-ci-brand-name,
#hia-ci-app[data-client="trident"] .hia-ci-purpose{color:#d9d4c9}
#hia-ci-app[data-client="trident"] .hia-ci-mark{color:#f8f8f8;letter-spacing:.09em}
/* Supplied Trident logo is white artwork on a transparent PNG.
   Keep its natural proportions and display directly on the dark header. */
#hia-ci-app[data-client="trident"] .hia-ci-logo{
  max-width:154px;max-height:62px;width:auto;height:auto;
  padding:0;background:transparent;border-radius:0;object-fit:contain;
}
#hia-ci-app[data-client="trident"] .hia-ci-steps{color:#a8a39b}
#hia-ci-app[data-client="trident"] .hia-ci-steps span.active{color:#e6c890;border-color:var(--hia-accent)}
#hia-ci-app[data-client="trident"] .hia-ci-panel{
  background:#151515;border-color:#3a3731;color:#f6f3ed;
  box-shadow:none;
}
#hia-ci-app[data-client="trident"] h1,
#hia-ci-app[data-client="trident"] h2,
#hia-ci-app[data-client="trident"] label{color:#f8f7f4}
#hia-ci-app[data-client="trident"] .hia-ci-lead{color:#d4d0c8}
#hia-ci-app[data-client="trident"] .hia-ci-note{
  background:#24211c;border-left-color:var(--hia-accent);color:#ebe5da;
}
#hia-ci-app[data-client="trident"] .hia-ci-session-warning{border-color:#4a453b;color:#e1ddd3}
#hia-ci-app[data-client="trident"] .hia-ci-session-warning svg{color:var(--hia-accent)}
#hia-ci-app[data-client="trident"] .hia-ci-short-reminder,
#hia-ci-app[data-client="trident"] .hia-ci-choice-help,
#hia-ci-app[data-client="trident"] .hia-ci-optional,
#hia-ci-app[data-client="trident"] .hia-ci-overline,
#hia-ci-app[data-client="trident"] .hia-ci-help,
#hia-ci-app[data-client="trident"] .hia-ci-field-meter,
#hia-ci-app[data-client="trident"] .hia-ci-counter{color:#bfb9ac}
#hia-ci-app[data-client="trident"] .hia-ci-field-meter.near-limit{color:#ecc684}
#hia-ci-app[data-client="trident"] .hia-ci-field-meter.error,
#hia-ci-app[data-client="trident"] .hia-ci-counter.error{color:#ffb6a7}
#hia-ci-app[data-client="trident"] .hia-ci-facts span{border-color:#615848;color:#d8d2c7}
#hia-ci-app[data-client="trident"] .hia-ci-meter{background:#48443b}
#hia-ci-app[data-client="trident"] .hia-ci-meter div{background:var(--hia-accent)}
#hia-ci-app[data-client="trident"] button{
  color:#f4f1e9;background:#272521;border-color:#797263;
}
#hia-ci-app[data-client="trident"] button.primary{
  background:#c8a86b;color:#15130e;border-color:#c8a86b;
}
#hia-ci-app[data-client="trident"] button:focus-visible,
#hia-ci-app[data-client="trident"] input:focus,
#hia-ci-app[data-client="trident"] textarea:focus{outline-color:#e6c890}
#hia-ci-app[data-client="trident"] button:hover:not(:disabled){filter:brightness(1.13)}
#hia-ci-app[data-client="trident"] button.primary:hover:not(:disabled){filter:brightness(1.07)}
#hia-ci-app[data-client="trident"] .hia-ci-option{
  background:#202020;border-color:#5f5a50;color:#faf7f0;
}
#hia-ci-app[data-client="trident"] .hia-ci-option:hover{background:#302c25;border-color:#ceb176}
#hia-ci-app[data-client="trident"] .hia-ci-option:has(input:checked){
  background:#30291c;border-color:#d8b877;box-shadow:inset 0 0 0 1px #d8b877;
}
#hia-ci-app[data-client="trident"] .hia-ci-option input[type=radio]{accent-color:#d5b578}
#hia-ci-app[data-client="trident"] input:not([type=checkbox]),
#hia-ci-app[data-client="trident"] textarea{
  background:#111;border-color:#6d685e;color:#fff;
}
#hia-ci-app[data-client="trident"] textarea::placeholder,
#hia-ci-app[data-client="trident"] input::placeholder{color:#b2afa7;opacity:1}
#hia-ci-app[data-client="trident"] .hia-ci-profile-grid .hia-ci-critical,
#hia-ci-app[data-client="trident"] .hia-ci-revision,
#hia-ci-app[data-client="trident"] .hia-ci-privacy-actions,
#hia-ci-app[data-client="trident"] footer{border-color:#454039}
#hia-ci-app[data-client="trident"] .hia-ci-learned-summary{
  background:#26231c;border-left-color:#d2b175;color:#f6f2e8;
}
#hia-ci-app[data-client="trident"] .hia-ci-capability{
  background:#25231f;border-left-color:#aa9160;color:#e7e1d4;
}
#hia-ci-app[data-client="trident"] footer{color:#bcb6ac}
#hia-ci-app[data-client="trident"] .hia-ci-notice{color:#e6c890}
#hia-ci-app[data-client="trident"] .hia-ci-install-steps li::before{
  background:#2b271e;border:1px solid #8b744c;color:#e5c68d;
}
#hia-ci-app .hia-ci-first-question-note{margin:0 0 22px}
#hia-ci-app .hia-ci-result-note{margin:15px 0 21px}
#hia-ci-app #question{
  /* The first desktop question fits on one line when space permits;
     other questions/mobile continue to wrap naturally and evenly. */
  font-size:clamp(27px,3vw,35px);
  max-width:100%;
  text-wrap:balance;
}
#hia-ci-app .hia-ci-install-launch{border-top:1px solid #444039;padding-top:22px;margin-top:28px}
#hia-ci-app .hia-ci-install-button{font-weight:700}
#hia-ci-app dialog.hia-ci-install-dialog{
  position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);
  width:min(720px,calc(100vw - 32px));max-width:720px;max-height:min(84vh,860px);
  margin:0;padding:26px 30px;overflow:auto;
  border:1px solid #796a4e;border-radius:8px;
  background:#191919;color:#f7f3ea;box-shadow:0 20px 65px rgba(0,0,0,.65);
  color-scheme:dark;
}
#hia-ci-app dialog.hia-ci-install-dialog::backdrop{background:rgba(0,0,0,.78)}
#hia-ci-app .hia-ci-install-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}
#hia-ci-app .hia-ci-install-dialog-head h2{margin:0 0 15px;font-size:clamp(23px,3vw,29px)}
#hia-ci-app .hia-ci-install-dialog-head button{min-width:74px}
#hia-ci-app dialog.hia-ci-install-dialog p{line-height:1.6;color:#d7d0c4}
#hia-ci-app dialog.hia-ci-install-dialog .hia-ci-help{color:#c9c2b6}
#hia-ci-app dialog.hia-ci-install-dialog .hia-ci-install-steps{margin:25px 0}
#hia-ci-app dialog.hia-ci-install-dialog .hia-ci-install-steps li{color:#f2eee7}
@media(max-width:680px){
 #hia-ci-app[data-client="trident"] .hia-ci-brand{flex-direction:row;align-items:center;flex-wrap:wrap;gap:8px}
 #hia-ci-app[data-client="trident"] .hia-ci-logo{max-width:160px;max-height:50px}
 #hia-ci-app[data-client="trident"] .hia-ci-brand-name{width:100%;max-width:none}
 #hia-ci-app #question{font-size:clamp(25px,5.8vw,31px)}
 #hia-ci-app dialog.hia-ci-install-dialog{padding:20px 18px}
 #hia-ci-app .hia-ci-install-dialog-head{align-items:flex-start}
 #hia-ci-app .hia-ci-install-dialog-head button{padding:9px 12px}
}
