/* Scoped guide styles work inside the digital adviser or a standalone dialog. */
.sg-dialog{width:min(760px,calc(100vw - 28px));max-height:calc(100dvh - 36px);padding:0;border:1px solid #456774;border-radius:15px;background:#0a2634;color:#e8f3f6;box-shadow:0 24px 90px #00101880;overflow:auto}
.sg-dialog::backdrop{background:#03121cc9;backdrop-filter:blur(4px)}
.sg-shell{--sg-bg:#0a2634;--sg-border:#3c5f6f;--sg-accent:#9ce1dd;container-type:inline-size;background:linear-gradient(145deg,#113444,var(--sg-bg));color:#e8f3f6;padding:24px;font:400 15px/1.75 "Microsoft YaHei",Arial,sans-serif;overflow-wrap:anywhere;border-radius:12px;min-width:0;text-align:left}
.sg-shell *,.sg-shell *::before,.sg-shell *::after{box-sizing:border-box}
.sg-shell [hidden]{display:none!important}
.sg-shell :is(h2,h3,p,fieldset){margin:0}
.sg-shell button,.sg-shell input,.sg-shell select{font:inherit}
.sg-shell :is(button,input,select):focus-visible,.sg-shell summary:focus-visible{outline:3px solid #b7eeea;outline-offset:3px}
.sg-shell button{cursor:pointer;white-space:normal}
.sg-shell button:disabled{opacity:.45;cursor:not-allowed}
.sg-shell h2{font-size:24px;line-height:1.45;font-weight:600;color:#f4fafb}
.sg-shell h3{font-size:16px;line-height:1.6;color:#c7eeed;font-weight:600}
.sg-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.sg-shell .sg-eyebrow{color:#a2d5d8;font-size:12px;letter-spacing:.09em;margin-bottom:6px}
.sg-close{flex:0 0 40px;width:40px;height:40px;border:1px solid var(--sg-border);border-radius:7px;background:#ffffff05;color:#e6f2f5;font-size:26px!important;line-height:1}
.sg-progress{display:flex;gap:5px;margin:23px 0 26px}
.sg-progress>span{display:flex;flex:1;flex-direction:column;align-items:center;gap:5px;border-top:2px solid #3b5764;padding-top:10px;color:#9bb2be;min-width:0;text-align:center}
.sg-progress i{font-style:normal;font-size:13px;line-height:1.5}
.sg-progress small{font-size:11px;line-height:1.5}
.sg-progress>span.is-current{border-color:var(--sg-accent);color:#c3f3ef}
.sg-progress>span.is-done{border-color:#7aabad;color:#b8d7da}
.sg-shell .sg-description{color:#bed0da;font-size:14px;line-height:1.85;margin-bottom:20px}
.sg-direction{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:0;border:0;margin:0 0 22px!important;min-width:0}
.sg-direction legend{margin-bottom:10px;color:#e0eef2;font-size:15px}
.sg-direction button{min-width:0;padding:12px 10px;border:1px solid #52707c;border-radius:7px;background:#ffffff04;color:#e6f1f5;text-align:left}
.sg-direction strong{display:block;font-size:16px;font-weight:600}
.sg-direction small{display:block;margin-top:4px;color:#a8c0cd;font-size:11px;line-height:1.65}
.sg-direction button[aria-pressed=true]{border-color:var(--sg-accent);background:#a4e8df12;box-shadow:inset 0 0 0 1px var(--sg-accent)}
.sg-direction button[aria-pressed=true] small{color:#c8e4e6}
.sg-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 15px;margin-top:18px}
.sg-field{min-width:0;margin-bottom:16px}
.sg-fields .sg-field{margin-bottom:0}
.sg-field>label{display:block;font-size:14px;font-weight:500;color:#e5eff4;margin-bottom:7px}
.sg-input-row{display:flex;gap:6px;align-items:stretch;min-width:0}
.sg-field input,.sg-field select{width:100%;min-width:0;min-height:47px;padding:10px 11px;border:1px solid #7c95a0;border-radius:5px;background:#f6fafb;color:#193b4d;font-size:16px;line-height:1.6}
.sg-field input::placeholder{color:#6b7f8d;opacity:1;font-size:13px}
.sg-field input:disabled{background:#c6d3da;color:#455d6c;opacity:1}
.sg-field input[aria-invalid=true]{border-color:#ffd4b4;background:#fff4ec}
.sg-field small{display:block;color:#a9c1ce;font-size:12px;line-height:1.8;margin-top:7px}
.sg-unknown{flex:0 0 63px;padding:6px;border:1px solid #648a97;border-radius:5px;background:transparent;color:#bfe9e8;font-size:12px!important;line-height:1.6}
.sg-unknown[aria-pressed=true]{border-color:#a9d9d3;background:#a4e8df12}
.sg-shell .sg-callout{padding:15px;border:1px solid #64818c;border-left:3px solid #9ce1dd;border-radius:5px;color:#c3d9e1;background:#ffffff03;font-size:13px;line-height:1.9;grid-column:1/-1}
.sg-footer{display:flex;flex-wrap:wrap;gap:10px;margin-top:25px;padding-top:18px;border-top:1px solid #375868}
.sg-footer>p{flex-basis:100%;color:#a8c1cc;font-size:12px}
.sg-primary,.sg-secondary{min-height:46px;padding:11px 17px;border:1px solid #a3d9d6;border-radius:6px;font-size:14px!important;font-weight:600;line-height:1.6}
.sg-primary{background:#b1e5df;color:#113746}
.sg-secondary{background:transparent;color:#d1ecee;border-color:#7393a1}
.sg-primary:hover:not(:disabled){background:#c8f1eb}
.sg-secondary:hover,.sg-close:hover{background:#ffffff0b}
.sg-feedback,.sg-error{margin-top:15px;padding:11px 13px;border:1px solid #bb9374;background:#ffd8ae0b;border-radius:5px;color:#ffe1c2;font-size:13px;line-height:1.8}
.sg-feedback:empty{display:none}
.sg-review{padding:17px 0;border-top:1px solid #3d5d6a}
.sg-review dl{margin:12px 0 0}
.sg-review dl>div{display:grid;grid-template-columns:minmax(100px,.9fr) minmax(0,1.1fr);gap:16px;padding:7px 0;border-bottom:1px solid #ffffff0a}
.sg-review dt{color:#a6c2ce;font-size:13px}
.sg-review dd{margin:0;color:#edf5f7;font-size:14px;white-space:pre-wrap}
.sg-review ul,.sg-conflicts ul,.sg-retained ul{margin:10px 0 0;padding-left:20px;color:#bfdae3;font-size:13px}
.sg-conflicts{margin-top:18px;padding:15px;border:1px solid #bdad84;border-radius:7px;background:#e0c18b08}
.sg-conflicts h3{color:#f2dbb6}
.sg-confirm{display:flex;align-items:flex-start;gap:10px;margin-top:14px;font-size:13px;line-height:1.8;color:#eadfc9}
.sg-confirm input{flex:0 0 18px;width:18px;height:18px;min-height:0;margin-top:3px;accent-color:#a9dfd8}
.sg-actual-confirm{padding:14px;border:1px solid #668d95;border-radius:6px;background:#9adbd708;color:#d3eee9}
.sg-retained{margin-top:12px;font-size:13px;color:#bbd5de}
.sg-retained summary{cursor:pointer;color:#c8e9e8;padding:8px 0}
.sg-retained p{color:#a6c2ce;font-size:12px;margin-top:9px}
.sg-shell .sg-notice{color:#b2cbd6;font-size:12px;line-height:1.8;margin-top:18px}
.sg-final-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:19px}
.sg-final-actions>button{flex:1 1 220px}
.sa-page .sa-guide-entry{display:inline-flex;align-items:center;justify-content:center;margin-top:22px;min-height:48px;padding:12px 21px;border:1px solid #9cd6d4;border-radius:6px;background:#a6e0d910;color:#cff1ed;font-size:16px;font-weight:600;line-height:1.5;cursor:pointer}
.sa-page .sa-guide-entry:hover{background:#a6e0d920}
.sa-page .sa-guided-note{margin-bottom:24px;padding:18px;border:1px solid #b5d3d1;border-left:3px solid #508e91;border-radius:6px;background:#eff8f7;color:#234653}
.sa-page .sa-guided-note strong{color:#244c58;font-size:15px}
.sa-page .sa-guided-note p,.sa-page .sa-guided-note summary{font-size:13px;line-height:1.8;color:#4c6974;margin-top:7px}
.sa-page .sa-guided-note summary{cursor:pointer}
.sa-page .sa-guided-note pre{font:400 12px/1.85 "Microsoft YaHei",sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;color:#48616c;margin:10px 0}
.sa-page .sa-guided-note button{margin:12px 7px 0 0;padding:8px 11px;border:1px solid #8dafb5;background:#fff;color:#315766;border-radius:5px;font:inherit;font-size:12px;cursor:pointer;min-height:40px}
@container(max-width:500px){.sg-fields{grid-template-columns:minmax(0,1fr)}.sg-progress small{display:none}.sg-review dl>div{grid-template-columns:minmax(0,1fr);gap:2px}.sg-direction{gap:6px}.sg-direction button{padding:11px 8px}}
@media(max-width:600px){.sg-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 18px);border-radius:11px}.sg-shell{padding:18px}.sg-shell h2{font-size:21px}.sg-footer>.sg-primary,.sg-footer>.sg-secondary{flex:1 1 120px}.sg-fields{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.sg-dialog,.sg-shell *{scroll-behavior:auto!important;transition:none!important}}
