/* D3 is a layout layer over byte-exact copies of the three original stylesheets.
   The original signature material, fonts, colors, radii and interaction styles remain active. */
.d3-preview { --d3-width:1100px; --founder-spectrum:linear-gradient(105deg,#d86c4f 0%,#b47f9c 31%,#728fe1 63%,#49bd91 100%); }
.d3-preview :where(h1,h2,p,dl) { margin-top:0; }
.d3-preview [tabindex="-1"]:focus { outline:none; box-shadow:none; }
.d3-preview .d3-skip { position:fixed; top:8px; left:20px; z-index:100; padding:12px 18px; border-radius:14px; background:#d2e4ff; color:#101d34; transform:translateY(-160%); }
.d3-preview .d3-skip:focus { transform:translateY(0); }
.d3-preview .d3-brandbar { grid-template-columns:1fr auto 1fr; }
.d3-preview .d3-method-switch { display:flex; margin:0; gap:4px; padding:4px; }
.d3-preview .d3-method-switch .system-option { min-width:130px; min-height:44px; padding:9px 17px; }
.d3-product { justify-self:end; display:flex; align-items:center; gap:10px; }
.d3-product>img { border-radius:10px; box-shadow:0 6px 18px #0004; }
.d3-product>span { display:grid; gap:3px; }
.d3-product strong { font:750 14px/1.2 var(--font-display); }
.d3-product small { font-size:10px; color:#b4c3da; }
.d3-preview .d3-workspace { width:min(var(--d3-width),calc(100% - 80px)); max-width:none; margin:0 auto; padding:16px 0 40px; }
.d3-preview-bar { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:28px; margin-bottom:20px; color:#a1b2cb; font-size:11px; }
.d3-preview-controls { position:relative; z-index:35; }
.d3-preview-controls>summary { display:flex; gap:8px; align-items:center; min-height:28px; cursor:pointer; list-style:none; color:#bbcee9; }
.d3-preview-controls>summary::-webkit-details-marker { display:none; }
.d3-preview-controls>div { position:absolute; right:0; top:34px; width:190px; display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:10px; border:1px solid #abc9ff55; border-radius:18px; background:#171f2d; box-shadow:var(--shadow-panel); }
.d3-preview-controls button { min-height:44px; border:1px solid #b1cfff30; border-radius:12px; background:#263246; color:#dfebff; font-size:12px; }
.d3-method-note { margin:0 0 22px; padding:14px 18px; border:1px solid #b1cfff30; border-radius:18px; background:#1b293b80; color:#c3d7f5; font-size:13px; }
.d3-input-heading { width:min(820px,100%); margin:0 auto 25px; }
.d3-kicker { display:flex; align-items:center; gap:10px; margin:0; color:#bdcfe9; font-size:12px; font-weight:650; letter-spacing:.035em; }
.d3-kicker .pro-diamond { width:9px; height:9px; }
.d3-kicker>span { color:#98accb; font-weight:400; }
.d3-preview .d3-input-heading h1 { margin:14px 0 9px; font-size:38px; line-height:1.35; font-weight:700; letter-spacing:-.025em; }
.d3-input-heading>p:last-child { margin:0; color:#b1bfd2; font-size:14px; line-height:1.7; }
.d3-preview .d3-question-form { width:min(820px,100%); margin:0 auto; display:grid; gap:14px; }
.d3-preview .d3-question-form .field { display:grid; gap:9px; margin:0; }
.d3-preview .d3-question-form .field>span { display:flex; justify-content:space-between; align-items:center; font-weight:650; line-height:1.4; }
.d3-question-field>span>small { font-size:11px; color:#a5b5ce; font-weight:400; }
.d3-preview .d3-question-field textarea { width:100%; height:88px; min-height:88px; padding:14px 18px; border:1px solid #b1cfff38; border-radius:14px; background:linear-gradient(145deg,#273144,#1b2536); color:#edf3ff; box-shadow:inset 0 1px 0 #ffffff08; font-size:20px; line-height:1.7; resize:none; }
.d3-preview .d3-question-field textarea:focus { border-color:#91bcff; box-shadow:0 0 0 3px #78a8fa20; background:#26374f; }
.d3-preview .d3-question-form input,.d3-preview .d3-question-form select { width:100%; padding:12px 15px; font-size:15px; opacity:1; -webkit-text-fill-color:#edf3ff; }
.d3-preview .d3-question-form select:disabled { cursor:default; }
.d3-preview .d3-question-form .d3-topic { grid-template-columns:96px minmax(0,1fr); align-items:center; gap:15px; }
.d3-field-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.d3-field-help { display:none; color:#a5b5ce; font-size:11px; line-height:1.5; }
.d3-preview .d3-calendar { margin:0; }
.d3-preview .d3-calendar>summary { display:flex; align-items:center; gap:12px; min-height:50px; padding:14px 17px; list-style:none; }
.d3-calendar>summary::-webkit-details-marker { display:none; }
.d3-calendar>summary strong { color:#d9e3f8; font-size:13px; font-weight:650; }
.d3-preview .d3-calendar>summary>span { margin-left:auto; color:#b8cbea; font-size:11px; }
.d3-calendar>summary>b { color:#b8d5ff; font-size:18px; font-weight:400; }
.d3-calendar[open]>summary>b { transform:rotate(45deg); }
.d3-calendar>div { padding:0 17px 17px; color:#b4c5df; font-size:12px; line-height:1.8; }
.d3-calendar>div>p:last-child { margin-bottom:0; }
.d3-preview .d3-primary { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:56px; margin:0; padding:14px 20px; font-size:16px; }
.d3-primary>span:last-child { font:500 23px/1 var(--font-display); }
.d3-question-form .d3-primary { margin-top:0; }
.d3-sample-note { margin:-9px 0 0; color:#a6b7cf; text-align:center; font-size:11px; line-height:1.6; }
.d3-form-status { margin:0; border-radius:14px; padding:13px 15px; border:1px solid #b1cfff38; color:#d2e4ff; background:#26375180; font-size:13px; line-height:1.6; }
.d3-form-status[role="alert"] { border-color:#ff8f9666; color:#ffc3c7; background:#311f2a; }
.d3-result-heading { margin:0 0 20px; }
.d3-result-eyebrow { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.d3-preview .d3-edit { min-height:30px; padding:0; border:0; color:#b9cff1; background:none; font-size:12px; }
.d3-preview .d3-result-heading h1 { margin:8px 0 10px; max-width:970px; font-size:30px; font-weight:650; line-height:1.45; letter-spacing:-.02em; text-wrap:pretty; }
.d3-context { display:flex; flex-wrap:wrap; gap:0; color:#adbed7; font-size:12px; line-height:1.8; }
.d3-context>span+span::before { content:"·"; padding:0 12px; color:#7186a8; }
.d3-result-layout { display:grid; grid-template-columns:minmax(0,1fr) 338px; grid-template-rows:auto 1fr; align-items:start; gap:16px 24px; }
.d3-chart-card { grid-column:1; grid-row:1 / span 2; min-width:0; padding:25px; border-radius:var(--radius-xl); }
.d3-chart-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:19px; }
.d3-chart-eyebrow { margin:0 0 5px; color:#a7bbd9; font:600 10px/1.2 var(--font-display); letter-spacing:.13em; }
.d3-chart-heading h2 { margin:0; font-size:23px; line-height:1.35; font-weight:650; }
.d3-ju-label { padding:8px 12px; border:1px solid #b1cfff38; border-radius:12px; color:#c7dcff; background:linear-gradient(140deg,#2c3a51,#1e2a40); font-size:12px; white-space:nowrap; }
.d3-pillars { display:grid; grid-template-columns:repeat(4,1fr); margin:0 0 18px; padding:13px 0; border-top:1px solid #aecaff20; border-bottom:1px solid #aecaff20; }
.d3-pillars>div { display:flex; align-items:center; justify-content:center; gap:12px; }
.d3-pillars>div+div { border-left:1px solid #aecaff20; }
.d3-pillars dt { color:#a6bad6; font-size:11px; }
.d3-pillars dd { margin:0; color:#e3edfd; font-size:16px; letter-spacing:.07em; }
.d3-palaces { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.d3-palace { display:flex; flex-direction:column; text-align:left; min-width:0; min-height:134px; padding:12px 16px; border:1px solid #aacaff30; border-radius:16px; background:linear-gradient(145deg,#263246,#192335); color:#dce9ff; box-shadow:inset 0 1px 0 #ffffff08; transition:border-color 160ms ease,background 160ms ease; }
.d3-palace:hover { border-color:#b4d4ff; background:linear-gradient(145deg,#344d70,#243854); }
.d3-palace[data-inspected] { border-color:#b4d4ff; box-shadow:inset 0 1px 0 #ffffff20,0 0 0 2px #78a8fa25; background:linear-gradient(145deg,#344d70,#243854); }
.d3-palace-heading { display:flex; justify-content:space-between; align-items:center; gap:5px; width:100%; }
.d3-palace-name { color:#bfd4f5; font-size:13px; font-weight:650; }
.d3-deity { color:#b4c8e6; font-size:12px; }
.d3-palace-core { display:flex; align-items:baseline; gap:13px; margin-top:10px; }
.d3-door { color:#f0f5ff; font-size:22px; font-weight:650; line-height:1.2; letter-spacing:.02em; }
.d3-star { font-size:13px; color:#c1d1eb; }
.d3-lodging { min-height:14px; margin-top:4px; color:#afc8ec; font-size:11px; line-height:1.5; }
.d3-stems { display:flex; justify-content:space-between; gap:10px; margin-top:auto; padding-top:6px; }
.d3-stems>span { display:flex; align-items:baseline; gap:7px; font-size:18px; color:#d6e4fb; }
.d3-stems small { color:#a6bad6; font-size:11px; }
.d3-palace-center { background:radial-gradient(ellipse at 100% 0,#6c91e71a,transparent 60%),linear-gradient(145deg,#1c293e,#172337); }
.d3-palace-center .d3-palace-core { display:block; }
.d3-palace-center .d3-star { display:block; margin-top:6px; }
.d3-chart-caption { display:flex; justify-content:space-between; gap:10px; margin-top:15px; color:#a6bad6; font-size:11px; line-height:1.5; }
.d3-chart-caption b { margin-left:7px; color:#b9d0f3; font-size:15px; font-weight:400; }
.d3-preview .d3-completion { grid-column:2; grid-row:1; display:block; padding:28px 25px 22px; margin:0; }
.d3-completion-heading { display:flex; align-items:center; gap:12px; }
.d3-ready-icon { display:grid; place-items:center; flex:0 0 auto; width:40px; height:40px; border:1px solid #b4d4ff6e; border-radius:14px; background:linear-gradient(135deg,#405b83,#2b405f); color:#dcecff; font-size:19px; box-shadow:inset 0 1px 0 #ffffff20; }
.d3-ready-kicker { margin:0 0 5px; color:#b8cceb; font-size:11px; }
.d3-completion-heading h2 { margin:0; color:#f0f6ff; font-size:26px; line-height:1.2; font-weight:650; }
.d3-completion-heading>.pro-diamond { width:10px; height:10px; margin-left:auto; }
.d3-completion-description { margin:22px 0; color:#c1d3ee; font-size:13px; line-height:1.8; }
.d3-package-contents { margin:0 0 25px; padding:0; }
.d3-package-contents>div { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid #b1cfff20; }
.d3-package-contents dt { color:#d9e7fd; font-size:12px; }
.d3-package-contents dd { margin:0; color:#b0c6e6; font-size:11px; }
.d3-preview .d3-completion .d3-primary { padding-inline:17px; font-size:15px; }
.d3-preview .d3-completion .p6-join.primary-button { border-radius:18px; background:var(--founder-spectrum); color:#101d34; }
.d3-preview .d3-completion .p6-join>span:first-child { font-size:15px; line-height:1.5; }
.d3-copy-help { margin:12px 0 0; color:#bbcfef; text-align:center; font-size:11px; }
.d3-copy-status { margin:14px 0 0; padding:12px; border:1px solid #b1cfff38; border-radius:14px; background:#172337; color:#dce9ff; font-size:12px; line-height:1.7; }
.d3-completion-note { margin:23px 0 0; padding-top:14px; border-top:1px solid #b1cfff20; color:#a6bad6; font-size:10px; text-align:center; line-height:1.6; }
.d3-result-tools { grid-column:2; grid-row:2; min-width:0; }
.d3-secondary-actions { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.d3-preview .d3-secondary-actions button { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:44px; padding:0 5px; border:0; border-bottom:1px solid #aecaff28; border-radius:0; color:#bed3f5; background:none; font-size:12px; text-align:left; }
.d3-preview .d3-chart-meta { margin-top:17px; }
.d3-preview .d3-chart-meta>summary { display:flex; justify-content:space-between; align-items:center; padding:15px; font-size:12px; list-style:none; }
.d3-chart-meta>summary::-webkit-details-marker { display:none; }
.d3-chart-meta>summary span { font-size:18px; }
.d3-chart-meta>p { margin:0; padding:0 15px 16px; color:#a6bad6; font-size:11px; line-height:1.8; }
.d3-chart-meta .d3-detail-list { padding:0 15px 15px; font-size:11px; }
.d3-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; margin:32px auto 0; padding-top:17px; border-top:1px solid #aecaff18; color:#94a7c4; font-size:11px; line-height:1.6; }
.d3-footer>span:last-child { font:500 9px/1.5 var(--font-display); letter-spacing:.1em; }
.d3-dialog { width:min(540px,calc(100% - 40px)); max-height:calc(100dvh - 48px); padding:26px; border:1px solid #b6d3ff55; border-radius:28px; background:radial-gradient(ellipse at 100% 0,#6c91e737,transparent 52%),linear-gradient(145deg,#243754,#172337); color:#dce9ff; box-shadow:var(--shadow-panel); overflow:auto; }
.d3-dialog::backdrop { background:#03070dc9; backdrop-filter:blur(8px); }
.d3-dialog-heading { display:flex; justify-content:space-between; align-items:center; gap:15px; margin-bottom:22px; padding-bottom:20px; border-bottom:1px solid #b1cfff30; }
.d3-dialog-heading h2 { margin:10px 0 0; color:#f0f6ff; font-size:27px; }
.d3-close { width:44px; height:44px; flex-shrink:0; border:1px solid #afcaff35; border-radius:15px; background:linear-gradient(145deg,#293348,#171e2d); color:#e0eaff; font:400 24px/1 var(--font-display); }
.d3-detail-list { display:grid; gap:0; margin:0; font-size:13px; line-height:1.7; }
.d3-detail-list>div { display:grid; grid-template-columns:120px minmax(0,1fr); gap:15px; padding:9px 0; border-bottom:1px solid #b1cfff1a; }
.d3-detail-list dt { color:#aebfd9; }
.d3-detail-list dd { margin:0; color:#e0ebfd; overflow-wrap:anywhere; }
.d3-dialog-note { margin:20px 0 0; color:#adbed9; font-size:12px; line-height:1.8; }
.d3-data-dialog { width:min(820px,calc(100% - 40px)); }
.d3-data-dialog .d3-dialog-note { margin:0 0 20px; }
.d3-data-dialog pre { margin:0; padding:18px; border:1px solid #b1cfff30; border-radius:17px; background:#101a29; max-height:52dvh; overflow:auto; white-space:pre-wrap; word-break:break-word; color:#d2e1f7; font:12px/1.7 ui-monospace,monospace; }
@media (max-width:1050px) {
  .d3-preview .d3-brandbar { grid-template-columns:1fr auto; gap:12px; }
  .d3-preview .d3-method-switch { grid-column:1 / -1; grid-row:2; }
  .d3-product { grid-column:2; grid-row:1; }
  .d3-result-layout { grid-template-columns:minmax(0,1fr) 310px; gap:16px; }
  .d3-palace { padding:12px; }
  .d3-palace-core { gap:7px; }
  .d3-door { font-size:21px; }
  .d3-star { font-size:12px; }
  .d3-preview .d3-completion { padding:25px 20px; }
}
@media (max-width:760px) {
  .d3-preview .d3-brandbar { width:calc(100% - 40px) !important; min-height:0 !important; padding:12px 0 8px; gap:10px; }
  .d3-preview .brand { gap:9px; }
  .d3-preview .brand-mark { width:38px; height:38px; border-radius:13px; }
  .d3-preview .brand-copy strong { font-size:14px; }
  .d3-preview .brand-copy small { font-size:8px; }
  .d3-product>img { display:none; }
  .d3-product strong { font-size:12px; }
  .d3-product small { display:none; }
  .d3-preview .d3-method-switch { width:100%; display:flex; padding:4px; gap:4px; }
  .d3-preview .d3-method-switch .system-option { flex:1; min-width:0; min-height:40px; padding:8px 13px; font-size:12px; }
  .d3-preview .d3-workspace { width:calc(100% - 40px); padding:4px 0 28px; }
  .d3-preview-bar { min-height:28px; gap:8px; margin-bottom:16px; font-size:10px; }
  .d3-preview-controls>summary { gap:4px; font-size:10px; }
  .d3-input-heading { margin-bottom:16px; }
  .d3-input-heading .d3-kicker { display:none; }
  .d3-kicker { font-size:11px; gap:8px; }
  .d3-preview .d3-input-heading h1 { font-size:30px; margin:0 0 7px; }
  .d3-input-heading>p:last-child { font-size:12px; line-height:1.7; }
  .d3-preview .d3-question-form { padding:22px 17px; border-radius:25px; gap:12px; }
  .d3-preview .d3-question-form .field { gap:8px; }
  .d3-preview .d3-question-form .field>span { font-size:13px; }
  .d3-question-field>span>small { font-size:10px; }
  .d3-preview .d3-question-field textarea { height:84px; min-height:84px; padding:13px 14px; font-size:16px; line-height:1.7; }
  .d3-preview .d3-question-form input,.d3-preview .d3-question-form select { padding:10px 13px; font-size:16px; min-height:48px; }
  .d3-preview .d3-question-form .d3-topic { grid-template-columns:78px minmax(0,1fr); gap:12px; }
  .d3-field-grid { grid-template-columns:1fr; gap:12px; }
  .d3-field-help { display:none; }
  .d3-preview .d3-calendar>summary { padding:12px; min-height:44px; gap:6px; }
  .d3-calendar>summary strong { font-size:12px; }
  .d3-preview .d3-calendar>summary>span { font-size:10px; }
  .d3-preview .d3-primary { min-height:48px; padding:11px 16px; font-size:15px; }
  .d3-sample-note { margin:-5px 0 0; font-size:10px; line-height:1.7; }
  .d3-result-heading { margin-bottom:18px; }
  .d3-preview .d3-result-heading h1 { font-size:23px; line-height:1.45; margin:8px 0 10px; }
  .d3-preview .d3-edit { min-height:28px; font-size:11px; white-space:nowrap; }
  .d3-context { font-size:11px; }
  .d3-context>span+span::before { padding:0 7px; }
  .d3-context>span:last-child { display:none; }
  .d3-result-layout { display:flex; flex-direction:column; gap:16px; }
  .d3-preview .d3-completion { order:0; width:100%; border-radius:24px; padding:16px; }
  .d3-completion-heading { gap:9px; }
  .d3-ready-icon { width:28px; height:28px; border-radius:10px; font-size:15px; }
  .d3-completion-heading>div { display:flex; align-items:baseline; gap:10px; }
  .d3-ready-kicker { order:1; margin:0; font-size:10px; }
  .d3-completion-heading h2 { font-size:18px; }
  .d3-completion-description,.d3-package-contents,.d3-copy-help,.d3-completion-note { display:none; }
  .d3-preview .d3-completion .d3-primary { margin-top:12px; min-height:48px; font-size:15px; }
  .d3-chart-card { order:1; width:100%; padding:17px; border-radius:25px; }
  .d3-chart-heading { margin-bottom:12px; gap:10px; }
  .d3-chart-heading h2 { font-size:19px; }
  .d3-chart-eyebrow { display:none; }
  .d3-ju-label { padding:6px 9px; border-radius:10px; font-size:11px; }
  .d3-pillars { padding:10px 0; margin-bottom:12px; }
  .d3-pillars>div { gap:5px; }
  .d3-pillars dt { font-size:10px; }
  .d3-pillars dd { font-size:13px; letter-spacing:0; }
  .d3-palaces { gap:6px; }
  .d3-palace { min-height:122px; padding:10px 9px; border-radius:13px; }
  .d3-palace-name { font-size:12px; }
  .d3-deity { display:none; }
  .d3-palace-core { display:block; margin-top:9px; }
  .d3-door { font-size:20px; }
  .d3-star { display:block; margin-top:4px; font-size:12px; }
  .d3-lodging { display:none; }
  .d3-palace-center .d3-lodging,.d3-palace-lodging .d3-lodging { display:block; min-height:0; font-size:11px; margin-top:4px; }
  .d3-palace-lodging .d3-stems { display:none; }
  .d3-palace-center .d3-star { font-size:11px; }
  .d3-palace-center .d3-stems { display:none; }
  .d3-stems { gap:4px; padding-top:9px; }
  .d3-stems>span { gap:4px; font-size:14px; }
  .d3-stems small { font-size:11px; }
  .d3-chart-caption { flex-wrap:wrap; gap:4px; margin-top:12px; font-size:10px; }
  .d3-result-tools { order:2; width:100%; }
  .d3-preview .d3-secondary-actions button { font-size:12px; }
  .d3-footer { margin-top:24px; font-size:10px; gap:8px; }
  .d3-footer>span:last-child { font-size:8px; }
  .d3-dialog { padding:21px; border-radius:25px; }
  .d3-dialog-heading { margin-bottom:14px; padding-bottom:17px; }
  .d3-detail-list>div { grid-template-columns:106px minmax(0,1fr); gap:12px; font-size:12px; }
}
@media (prefers-reduced-motion:reduce) {
  .d3-preview { scroll-behavior:auto; }
  .d3-preview * { transition:none !important; animation:none !important; scroll-behavior:auto !important; }
}

/* D3.1 structure follows owner's explicit instructions; exact new-reference
   pixel comparison remains pending after Library materialization HTTP 403. */
.d3-preview.d31-preview { background:radial-gradient(ellipse at 18% 17%,#315e9924,transparent 39%),radial-gradient(ellipse at 90% 60%,#728fe110,transparent 36%),#080a0f; }
.d31-preview::before,.d31-preview::after { display:none; }
.d31-preview .d3-brandbar { grid-template-columns:1fr auto; min-height:84px !important; }
.d31-preview .d3-product { grid-column:2; grid-row:1; gap:9px; }
.d31-preview .d3-product .pro-diamond { width:8px; height:8px; }
.d31-preview .d3-product strong { font-size:13px; }
.d31-preview .d3-workspace { padding-top:20px; }
.d31-preview .d3-preview-bar { margin-bottom:30px; }
.d31-heading { width:min(820px,100%); margin:0 auto 30px; }
.d31-preview.d3-result-active .d31-heading { width:100%; }
.d31-heading h1 { margin:0; font-size:44px; line-height:1.35; font-weight:650; letter-spacing:-.025em; }
.d31-heading #result-title { max-width:980px; font-size:30px; line-height:1.5; }
.d31-heading .d3-context { margin:12px 0 0; }
.d31-method-switch { display:inline-flex; align-items:center; gap:3px; margin-top:19px; padding:4px; border:1px solid #b1cfff1c; border-radius:999px; background:#101721; }
.d31-preview .d31-method-switch .system-option { min-width:126px; min-height:40px; padding:8px 17px; border:0; border-radius:999px; background:transparent; color:#a9bddb; box-shadow:none; font-size:13px; }
.d31-preview .d31-method-switch .system-option:hover { background:#d2e4ff08; color:#e0ebfd; }
.d31-preview .d31-method-switch .system-option.is-active { background:linear-gradient(135deg,#4b70a7,#2d4770); color:#f1f7ff; box-shadow:inset 0 1px 0 #ffffff26; }
.d31-heading .d3-method-note { margin:16px 0 0; }
.d31-preview .d31-main-card { position:relative; isolation:isolate; border:1px solid #aac6ff26; border-radius:32px; background:radial-gradient(ellipse at 0 0,#6898df0e,transparent 45%),linear-gradient(145deg,#151f30,#0c121c 78%); box-shadow:inset 0 1px 0 #ffffff0b,0 24px 70px #0005,-12px -5px 40px #5085ef09,12px 15px 42px #728fe108; }
.d31-preview .d31-main-card::before { content:""; display:block; position:absolute; inset:-1px; z-index:-1; padding:1px; border-radius:inherit; pointer-events:none; background:linear-gradient(120deg,#eaf2ff90 0,#aac6ff42 15%,#aac6ff0d 43%,#728fe12a 79%,#aac6ff08 100%); -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); -webkit-mask-composite:xor; mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); mask-composite:exclude; }
.d31-preview #question-form { display:grid; gap:22px; width:min(820px,100%); margin:0 auto; padding:30px 32px 27px; overflow:visible; }
.d31-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.d31-preview .d31-question { width:100%; height:148px; min-height:148px; padding:8px 0 19px; margin:0; border:0; border-bottom:1px solid #b1cfff20; border-radius:0; background:transparent; color:#edf3ff; box-shadow:none; font-size:25px; font-weight:500; line-height:1.7; resize:vertical; }
.d31-preview .d31-question:focus-visible { outline:2px solid #a9caff; outline-offset:8px; border-radius:10px; }
.d31-context-chips { display:grid; grid-template-columns:1.1fr .9fr 1.7fr; gap:10px; }
.d31-context-chip { display:flex; align-items:center; justify-content:flex-start; gap:8px; min-width:0; min-height:46px; padding:10px 12px; border:1px solid #b1cfff2b; border-radius:14px; background:linear-gradient(145deg,#27314480,#1b253680); color:#dce7fa; text-align:left; box-shadow:inset 0 1px 0 #ffffff05; }
.d31-context-chip:hover { border-color:#91bcff80; background:#26374f80; }
.d31-context-chip svg { flex:0 0 auto; width:16px; height:16px; fill:none; stroke:#afc8ec; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.d31-context-chip>span { flex:0 0 auto; color:#a9bddb; font-size:11px; }
.d31-context-chip strong { min-width:0; color:#dce7fa; font-size:13px; font-weight:550; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.d31-time-chip strong { font-size:12px; }
.d31-preview .d31-calendar { border:0; border-radius:0; background:transparent; }
.d31-preview .d31-calendar>summary { min-height:40px; padding:5px 0; }
.d31-preview .d31-calendar>summary strong { font-weight:500; color:#afc2df; }
.d31-preview .d31-calendar>summary>span { color:#93a8c8; }
.d31-preview .d31-calendar>div { padding:12px 0 0; border-top:1px solid #aecaff18; }
.d31-preview .d3-primary { min-height:52px; border-radius:18px; padding:13px 20px; }
.d31-preview .d3-sample-note { margin:-11px 0 0; font-size:11px; }
.d31-preview #form-status>p { margin:0; }
.d31-preview #reset-sample { margin-top:8px; padding:0; min-height:36px; color:#b9d0f4; font-size:12px; }
.d31-preview .d3-chart-card { padding:25px; }
.d31-preview .d3-chart-heading { margin-bottom:18px; }
.d31-preview .d3-palace { background:linear-gradient(145deg,#1e2a3e,#141e2c); border-color:#aacaff25; box-shadow:inset 0 1px 0 #ffffff05; }
.d31-preview .d3-palace:hover,.d31-preview .d3-palace[data-inspected] { border-color:#b4d4ff99; background:linear-gradient(145deg,#2b405f,#1c2c44); }
.d31-preview .d3-palace-center { background:#101a29; }
.d31-preview .d3-completion { padding:26px 24px 22px; border-radius:28px; }
.d31-preview .d3-completion-heading { gap:12px; }
.d31-preview .d3-completion-heading h2 { font-size:24px; }
.d31-preview .d3-ready-icon { width:34px; height:34px; border-radius:12px; font-size:17px; }
.d31-preview .d3-completion-description { display:block; margin:23px 0 27px; color:#bbcee9; font-size:13px; line-height:1.9; }
.d31-preview .d3-completion .d3-primary { min-height:52px; margin:0; font-size:15px; }
.d31-preview .d3-completion-note { margin:20px 0 0; padding:0; border:0; text-align:left; color:#92a8c8; font-size:10px; }
.d31-preview .d31-edit { min-height:40px; padding:0 4px; margin:0 0 4px; font-size:12px; }
.d31-preview .d3-footer { margin-top:35px; }
.d31-context-dialog .d3-dialog-heading h2 { margin:0; font-size:23px; }
.d31-context-dialog input { width:100%; padding:13px 15px; font-size:16px; }
.d31-context-notice { margin:15px 0 0; color:#b4c7e5; font-size:12px; line-height:1.8; }
.d31-dialog-actions { display:flex; justify-content:flex-end; align-items:center; gap:20px; margin-top:23px; }
.d31-dialog-actions .secondary-button { min-height:48px; padding:12px 22px; }
@media (max-width:1050px) { .d31-preview .d3-brandbar { grid-template-columns:1fr auto; } }
@media (max-width:760px) {
  .d31-preview .d3-brandbar { min-height:68px !important; padding:14px 0; }
  .d31-preview .d3-workspace { padding-top:13px; }
  .d31-preview .d3-preview-bar { margin-bottom:25px; }
  .d31-heading { margin-bottom:22px; }
  .d31-heading h1 { font-size:32px; }
  .d31-heading #result-title { font-size:23px; line-height:1.5; }
  .d31-heading .d3-context { margin-top:10px; font-size:11px; }
  .d31-method-switch { margin-top:16px; padding:3px; }
  .d31-preview .d31-method-switch .system-option { min-width:112px; min-height:38px; padding:8px 15px; font-size:12px; }
  .d31-preview .d31-main-card { border-radius:30px; }
  .d31-preview #question-form { padding:25px 20px 23px; gap:19px; }
  .d31-preview .d31-question { height:139px; min-height:139px; padding:4px 0 17px; font-size:22px; line-height:1.7; }
  .d31-context-chips { grid-template-columns:1fr 1fr; gap:8px; }
  .d31-context-chip { min-height:44px; padding:10px; gap:7px; border-radius:14px; }
  .d31-context-chip strong { font-size:12px; }
  .d31-time-chip { grid-column:1 / -1; }
  .d31-preview .d31-calendar>summary { min-height:40px; }
  .d31-preview .d3-primary { min-height:52px; padding:13px 16px; }
  .d31-preview .d3-sample-note { margin:-9px 0 0; font-size:10px; }
  .d31-preview .d3-chart-card { padding:17px; border-radius:30px; }
  .d31-preview .d3-chart-heading { margin-bottom:12px; }
  .d31-preview .d3-completion { padding:17px; border-radius:26px; }
  .d31-preview .d3-completion-heading h2 { font-size:18px; }
  .d31-preview .d3-ready-icon { width:28px; height:28px; border-radius:10px; font-size:15px; }
  .d31-preview .d3-completion-description { display:none; }
  .d31-preview .d3-completion .d3-primary { margin-top:13px; min-height:52px; }
  .d31-preview .d3-completion-note { display:none; }
  .d31-preview .d3-footer { margin-top:26px; }
}

/* D3.2: original system-option method region plus restrained surface detail.
   D3.1 page/form/chart geometry and runtime are retained. */
.d32-selector-wrapper { width:min(380px,100%); margin-top:19px; }
.d32-selector-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:10px; }
.d32-selector-heading>span { color:#cbdcf6; font-size:14px; font-weight:650; }
.d32-selector-heading .d32-return-chart { min-height:24px; padding:0; color:#91a7c8; font-size:11px; font-weight:500; cursor:not-allowed; }
.d32-material .d31-method-switch { display:flex; width:100%; margin:0; padding:0; gap:10px; border:0; border-radius:0; background:none; }
.d32-material .d31-method-switch .system-option { flex:1; min-width:105px; min-height:54px; padding:14px 10px; border:1px solid #aacaff38; border-radius:15px; background:linear-gradient(140deg,#2c3a51,#1e2a40); color:#c1d2ed; font-size:13px; }
.d32-material .d31-method-switch .system-option:hover { border-color:#b5d1ff85; background:#354b6e; }
.d32-material .d31-method-switch .system-option.is-active {
  position:relative;
  isolation:isolate;
  background:linear-gradient(180deg,rgba(8,12,20,.38),rgba(8,12,20,.48)),var(--founder-spectrum);
  color:#f3f5f8;
  border-color:#b8d7ff5e;
  box-shadow:inset 0 1px 0 #eaf2ff24,inset 0 -1px 0 #10172570,0 3px 9px #739cec16;
}
.d32-material .d31-method-switch .system-option.is-active::before {
  content:""; position:absolute; top:1px; left:15px; right:15px; height:1px;
  border-radius:999px; pointer-events:none;
  background:linear-gradient(90deg,transparent,#eaf2ff72 35%,#eaf2ff42 72%,transparent);
}
.d32-material .d31-method-switch .system-option.is-active::after {
  content:""; position:absolute; bottom:-3px; left:19px; right:19px; height:5px;
  border-radius:999px; pointer-events:none; z-index:-1; filter:blur(4px);
  background:linear-gradient(90deg,#739cec35,#728fe148 55%,#739cec20);
}
.d32-material .d31-main-card {
  box-shadow:inset 0 1px 0 #ffffff0b,inset -1px 0 0 #8ebcff0b,0 24px 70px #0005,0 9px 28px #739cec0a;
}
.d32-material .d31-main-card::before {
  background:linear-gradient(120deg,#eaf2ff80 0,#aac6ff32 15%,transparent 42%),linear-gradient(0deg,#9bdcff82 0,#739cec60 3%,#728fe123 18%,#aac6ff0b 58%,#aac6ff20 100%);
}
.d32-material .d31-main-card::after {
  content:""; display:block; position:absolute; inset:0; width:auto; height:auto;
  z-index:-1; padding:0; border-radius:inherit; pointer-events:none;
  filter:none; opacity:1; transform:none;
  background:linear-gradient(0deg,#739cec1c 0,#739cec0d 5%,#9bdcff05 10%,transparent 18%);
}
@media (max-width:760px) {
  .d32-selector-wrapper { margin-top:16px; }
  .d32-material .d31-method-switch .system-option { min-height:48px; padding:12px 10px; }
}

/* D3.3 input affordance: label and editable area share the previous footprint. */
.d33-question-field { display:grid; grid-template-rows:20px minmax(0,1fr); gap:8px; height:148px; border-bottom:1px solid #b1cfff20; }
.d33-question-label { display:flex; align-items:center; gap:8px; color:#bdcfe9; font-size:13px; line-height:20px; font-weight:550; }
.d33-question-label svg { width:16px; height:16px; flex:0 0 auto; fill:none; stroke:#afc8ec; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; pointer-events:none; }
.d33-input .d33-question-field .d31-question { height:100%; min-height:0; padding:4px 0 16px; border:0; cursor:text; caret-color:#b9d4ff; resize:none; }
.d33-input .d33-question-field .d31-question::placeholder { color:#a8bad4; opacity:1; font-size:18px; font-weight:400; }
.d33-question-field:focus-within { border-bottom-color:#91bcff; }
.d33-input .d33-question-field .d31-question:focus-visible { outline:2px solid #a9caff; outline-offset:5px; border-radius:10px; box-shadow:none; }
.d33-input .d33-question-field .d31-question[aria-invalid="true"] { border-radius:10px; }
@media (max-width:760px) {
  .d33-question-field { height:139px; }
  .d33-question-label { font-size:12px; }
  .d33-input .d33-question-field .d31-question { padding-bottom:12px; }
  .d33-input .d33-question-field .d31-question::placeholder { font-size:16px; }
}

/* Native topic dropdown: actual candidate topic IDs, full chip hit area. */
.d33-topic-field { position:relative; display:block; padding:0; cursor:pointer; }
.d33-topic-field>span { position:absolute; top:5px; left:12px; font-size:10px; line-height:13px; pointer-events:none; }
.d33-input .d33-topic-field select { position:absolute; inset:0; width:100%; height:100%; min-height:0; margin:0; padding:18px 32px 4px 12px; appearance:none; -webkit-appearance:none; border:0; border-radius:13px; background:transparent; box-shadow:none; color:#edf3ff; font-family:inherit; font-size:14px; line-height:18px; font-weight:500; cursor:pointer; color-scheme:dark; }
.d33-input .d33-topic-field select:focus { background:transparent; box-shadow:none; }
.d33-topic-field:focus-within { border-color:#91bcff; }
.d33-input .d33-topic-field select:focus-visible { outline:2px solid #a9caff; outline-offset:4px; }
.d33-topic-field>svg { position:absolute; right:12px; top:50%; width:14px; height:14px; transform:translateY(-50%); pointer-events:none; }
.d33-topic-field option { color:#edf3ff; background:#1b2536; }
@media (max-width:760px) {
  .d33-topic-field>span { left:10px; top:4px; }
  .d33-input .d33-topic-field select { padding:17px 29px 4px 10px; font-size:16px; line-height:19px; }
  .d33-topic-field>svg { right:10px; width:13px; height:13px; }
}

/* D3.4: actual radio choices, explained as methods rather than action CTAs. */
.d34-preview .d32-selector-wrapper { width:min(420px,100%); }
.d34-method-fieldset { position:relative; min-width:0; margin:0; padding:0; border:0; }
.d34-method-fieldset>legend { padding:0; margin:0 0 10px; color:#cbdcf6; font-size:14px; font-weight:650; }
.d34-method-fieldset .d34-return-chart { position:absolute; top:0; right:0; min-height:20px; padding:0; color:#91a7c8; font-size:11px; cursor:not-allowed; }
.d34-preview .d31-method-switch .system-option { display:grid; grid-template-columns:16px minmax(0,1fr); align-items:start; gap:10px; min-height:88px; padding:13px 14px; text-align:left; cursor:pointer; }
.d34-preview .d34-method-option .d34-radio { appearance:auto; -webkit-appearance:radio; width:16px; height:16px; min-width:16px; min-height:16px; padding:0; margin:3px 0 0; border:0; border-radius:50%; background:none; box-shadow:none; accent-color:#d2e4ff; }
.d34-radio:focus-visible { outline:none; }
.d34-method-option:has(.d34-radio:focus-visible) { outline:2px solid #b2ccff; outline-offset:4px; }
.d34-option-copy { display:grid; gap:6px; min-width:0; }
.d34-option-top { display:flex; align-items:center; justify-content:space-between; gap:6px; min-width:0; }
.d34-option-top strong { font-size:13px; line-height:20px; font-weight:650; white-space:nowrap; }
.d34-selected { flex:none; padding:1px 5px; border:1px solid #f3f5f83b; border-radius:6px; color:#f3f5f8; background:#ffffff0f; font-size:10px; line-height:16px; font-weight:500; white-space:nowrap; }
.d34-selected[hidden] { display:none; }
.d34-option-description { color:#b8cae6; font-size:12px; line-height:1.55; }
.is-active .d34-option-description { color:#f3f5f8; }
.d34-preview-label { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.d34-version { display:inline-block; padding:3px 6px; border:1px solid #b1cfff30; border-radius:7px; color:#d2e4ff; font-size:10px; font-weight:500; }
@media (max-width:760px) {
  .d34-preview .d31-method-switch .system-option { min-width:0; min-height:88px; padding:12px 10px; gap:8px; }
  .d34-option-top { gap:6px; }
  .d34-option-top strong { font-size:13px; }
  .d34-selected { font-size:10px; line-height:16px; padding:1px 5px; }
  .d34-option-description { font-size:12px; line-height:1.55; }
  .d34-preview-label { gap:4px 6px; }
  .d34-preview .d3-preview-bar { align-items:flex-start; font-size:10px; }
}

/* D3.5: override vendor's hidden small only for this radio status badge. */
.d34-preview .system-option .d34-selected:not([hidden]) { display:inline-flex; }
.d34-preview .system-option .d34-selected[hidden] { display:none; }

/* D3.6: two-method sliding segmented control; no global palette changes. */
.d36-preview .d32-selector-wrapper { width:min(360px,100%); }
.d36-preview .d36-method-track { --d36-circle:50px; --d36-gap:6px; --d36-step:56px; position:relative; isolation:isolate; display:flex; align-items:center; width:100%; height:64px; margin:0; padding:6px; gap:var(--d36-gap); border:1px solid #c6dcff24; border-radius:999px; background:linear-gradient(145deg,rgba(25,32,47,.82),rgba(8,12,19,.94)); -webkit-backdrop-filter:blur(18px) saturate(105%); backdrop-filter:blur(18px) saturate(105%); box-shadow:inset 0 1px 0 #f2f7ff20,inset 0 -1px 0 #04070cb3,0 7px 16px #00000033; }
.d36-active-indicator { position:absolute; z-index:0; left:6px; top:6px; width:calc(100% - var(--d36-circle) - var(--d36-gap) - 12px); height:50px; border:1px solid #eff6ff6b; border-radius:999px; background:linear-gradient(180deg,rgba(255,255,255,.23),rgba(255,255,255,.035) 60%,transparent),linear-gradient(110deg,rgba(213,232,250,.96),rgba(203,217,237,.92) 45%,rgba(212,202,235,.96)); box-shadow:inset 0 1px 0 #ffffff80,inset 0 -1px 0 #68799b30,0 2px 6px #070a1326,0 0 0 1px #dae7fb14; pointer-events:none; transform:translateX(var(--d36-step)); transition:transform 200ms cubic-bezier(.2,.8,.2,1); }
.d36-preview .d36-method-track::before { content:""; position:absolute; left:20px; right:20px; top:1px; height:1px; z-index:2; border-radius:999px; pointer-events:none; background:linear-gradient(90deg,transparent,#c8e0ff42 40%,#c8e0ff18 78%,transparent); }
.d36-active-indicator::before { content:""; position:absolute; inset:1px 1px auto; height:45%; border-radius:999px; pointer-events:none; background:linear-gradient(180deg,#ffffff1c,transparent); }
.d36-method-track:has(#kp-method:checked) .d36-active-indicator { transform:translateX(0); }
.d36-preview .d36-method-track .system-option { position:relative; z-index:1; display:flex; grid-template-columns:none; align-items:center; justify-content:center; flex:0 0 var(--d36-circle); min-width:var(--d36-circle); width:auto; height:50px; min-height:50px; margin:0; padding:0; gap:0; border:1px solid #d1def012; border-radius:999px; background:linear-gradient(145deg,#ffffff08,#ffffff02); color:#b4c3d9; box-shadow:inset 0 1px 0 #ffffff0a; cursor:pointer; overflow:hidden; transition:flex-grow 200ms cubic-bezier(.2,.8,.2,1),color 150ms,background 150ms; }
.d36-preview .d36-method-track .system-option:hover { background:#ffffff0d; border-color:#bed6fa38; }
.d36-preview .d36-method-track .system-option.is-active,.d36-preview .d36-method-track .system-option.is-active:hover { flex-grow:1; border-color:transparent; background:transparent; color:#172844; box-shadow:none; gap:10px; }
.d36-preview .d36-method-track .system-option.is-active::before,.d36-preview .d36-method-track .system-option.is-active::after { display:none; }
.d36-preview .d36-method-track .d34-radio { position:absolute; width:1px; height:1px; min-width:1px; min-height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; box-shadow:none; }
.d36-preview .d36-method-track .system-option:has(.d34-radio:focus-visible) { outline:2px solid #b2ccff; outline-offset:3px; }
.d36-method-icon { flex:0 0 22px; width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.d36-active-name { display:block; min-width:0; max-width:0; opacity:0; overflow:hidden; white-space:nowrap; font-size:14px; line-height:20px; font-weight:650; transition:max-width 200ms cubic-bezier(.2,.8,.2,1),opacity 120ms; }
.is-active .d36-active-name { max-width:160px; opacity:1; }
.d36-method-names { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:6px; height:18px; margin-top:6px; }
.d36-method-caption { display:flex; align-items:center; justify-content:center; min-width:0; gap:6px; color:#a9bddb; white-space:nowrap; }
.d36-method-caption strong { font-size:12px; line-height:18px; font-weight:500; }
.d36-method-names .d34-selected:not([hidden]) { display:inline-flex; align-items:center; height:18px; padding:0 4px; border:1px solid #b1cfff30; border-radius:5px; background:#b1cfff0a; color:#d2e4ff; font-size:10px; line-height:16px; }
.d36-method-names .d34-selected[hidden] { display:none; }
@media (prefers-reduced-motion:reduce) {
  .d36-preview .d36-active-indicator,.d36-preview .d36-method-track .system-option,.d36-preview .d36-active-name { transition:none; }
}

/* D3.7: both names inside; only the selection pane carries colored Pro glass. */
.d37-preview .d36-method-track .system-option { flex:1 1 0; min-width:0; width:50%; gap:8px; border:0; background:transparent; color:#c4d2eb; box-shadow:none; overflow:visible; transition:color 150ms,background 150ms; }
.d37-preview .d36-method-track .system-option:hover { border:0; background:#ffffff06; }
.d37-preview .d36-method-track .system-option.is-active,.d37-preview .d36-method-track .system-option.is-active:hover { flex:1 1 0; gap:8px; border:0; background:transparent; color:#f6f4ff; box-shadow:none; }
.d37-preview .d36-active-name { max-width:none; opacity:1; overflow:visible; white-space:nowrap; font-size:14px; line-height:20px; font-weight:650; transition:color 150ms; }
.d37-preview .d36-active-indicator { width:calc((100% - 18px)/2); border:1px solid #cfb5ff40; background:radial-gradient(ellipse at 20% 0%,rgba(216,123,230,.22),transparent 52%),linear-gradient(180deg,rgba(255,255,255,.05),transparent 58%),linear-gradient(110deg,rgba(105,62,180,.88),rgba(48,67,165,.88) 42%,rgba(28,97,138,.88)); box-shadow:inset 0 1px 0 #e9d6ff3d,inset 0 -1px 0 #070b1947,0 3px 12px #42388726; transform:translateX(calc(100% + 6px)); }
.d37-preview .d36-method-track:has(#kp-method:checked) .d36-active-indicator { transform:translateX(0); }
.d37-preview .d36-active-indicator::before { height:22%; background:linear-gradient(180deg,#e9d6ff0c,transparent); }
.d37-preview .d36-method-track .system-option:has(.d34-radio:focus-visible) { outline:2px solid #d2c3ff; outline-offset:3px; }
@media (prefers-reduced-motion:reduce) {
  .d37-preview .d36-active-indicator,.d37-preview .d36-method-track .system-option,.d37-preview .d36-active-name { transition:none; }
}
