/* Shared header and requested result behavior only; protected hero/art unchanged. */
.ci-theme-control{position:relative;justify-self:end;min-width:44px}
.ci-theme-control svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
#ci-theme-button{display:grid;place-items:center;width:44px;height:44px;padding:10px;background:var(--ci-panel,#fff);color:var(--ci-text,#183153);border:1px solid var(--ci-border,#b7c7de);border-radius:50%;cursor:pointer}
#ci-theme-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:100;width:166px;padding:6px;background:var(--ci-panel,#fff);color:var(--ci-text,#183153);border:1px solid var(--ci-border,#b7c7de);border-radius:14px;box-shadow:0 8px 24px #061c3933}
#ci-theme-menu[hidden]{display:none}
#ci-theme-menu button{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:8px 12px;border:0;border-radius:8px;background:transparent;color:inherit;font:600 1rem 'Segoe UI',sans-serif;text-align:left;cursor:pointer}
#ci-theme-menu button[aria-checked=true]{background:#dceaff;color:#123e79}
.ci-theme-control :focus-visible,.ci-back-input:focus-visible,[data-ci-result-focused]:focus-visible{outline:3px solid #e64158;outline-offset:4px}
.ci-theme-bridge{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;border:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
html[data-ci-theme=dark] #ci-theme-button,html[data-ci-theme=dark] #ci-theme-menu{background:#14263e;color:#edf5ff;border-color:#7691b2}
html[data-ci-theme=dark] #ci-theme-menu button[aria-checked=true]{background:#294c78;color:#fff}
.ci-site.ci-review .ci-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important;position:relative;align-items:center}
.ci-site.ci-review .ci-header-row{display:contents!important}
.ci-site.ci-review .ci-design-brand{grid-column:1;grid-row:1;max-width:220px}
.ci-site.ci-review .ci-theme-control{grid-column:2;grid-row:1}
.ci-site.ci-review .ci-header>.ci-nav{grid-column:1/-1;grid-row:2}
.ci-site.ci-review .ci-header>.or-menu{grid-column:1/-1;grid-row:2;justify-self:stretch;width:100%;display:flex;justify-content:space-between;align-items:center;min-height:44px;padding:10px 14px;background:var(--ci-panel,#fff);color:var(--ci-text,#183153);border:1px solid var(--ci-border,#b7c7de);border-radius:9px;font:600 1rem 'Segoe UI',sans-serif}
.ci-site.ci-review .ci-header>.or-nav{display:none!important}
.ci-site.ci-review .ci-header>.or-nav.or-open{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));position:static!important;grid-row:3;width:auto!important;padding:8px;gap:4px}
.ci-site.ci-review .ci-header .ci-nav a{min-height:44px;min-width:0;justify-content:center}
@media(min-width:700px){
 .ci-site.ci-review .ci-header>.or-menu{display:none!important}
 .ci-site.ci-review .ci-header>.or-nav,.ci-site.ci-review .ci-header>.or-nav.or-open{display:grid!important;grid-template-columns:repeat(6,auto);grid-row:2;gap:4px;padding:4px 0;border:0;box-shadow:none}
 .ci-site.ci-review .ci-header .ci-nav a{font-size:.94rem;padding:8px 4px;gap:6px;white-space:nowrap}
 .ci-site.ci-review .ci-header .ci-nav a svg{width:18px;height:18px}
}
@media(min-width:1150px){
 .ci-site.ci-review .ci-header{grid-template-columns:minmax(160px,210px) minmax(0,1fr) 44px!important;gap:16px!important}
 .ci-site.ci-review .ci-theme-control{grid-column:3}
 .ci-site.ci-review .ci-header>.ci-nav,.ci-site.ci-review .ci-header>.or-nav.or-open{grid-column:2;grid-row:1}
}
.ci-back-input{display:block;width:fit-content;margin:12px 0 0;padding:8px 12px;min-height:44px;background:transparent;color:inherit;border:1px solid currentColor;border-radius:8px;font:600 .95rem 'Segoe UI',sans-serif;cursor:pointer}
/* Navy Measurement answers need light controls in every appearance mode.
   Keep shared controls on the homepage and other light panels unchanged. */
.ci-review .ci-measure-smart .ci-back-input{color:#f5f9ff}
[data-ci-result-focused]{scroll-margin-top:20px}
/* Keep late optional equivalents from anchoring the viewport to a lower button. */
.ci-site:has([data-ci-result-focused]:focus){overflow-anchor:none}
.ci-example-notice{margin:.5rem 0;font-size:.95rem;font-weight:600;color:inherit}
.ci-review #ci-smart::placeholder{font-weight:400!important;color:#53637c;opacity:1}
html[data-ci-theme=dark] .ci-review #ci-smart::placeholder{color:#b4c5dd}
.ci-review .selected-home #ci-smart::placeholder,html[data-ci-theme=dark] .ci-review .selected-home #ci-smart::placeholder{color:#53637c}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}

/* Menu surfaces use the shared Day/Night tokens; keep geometry and behavior intact. */
html .ci-site.ci-review .ci-header>.or-menu{background:var(--d-paper,#fff);color:var(--d-ink,#183153);border-color:#637b9d}
