.sf-dialog{width:min(1160px,calc(100vw - 32px));height:min(900px,calc(100dvh - 28px));max-height:calc(100dvh - 28px);max-width:none;padding:0;border:1px solid #aebdca;border-radius:14px;color:#142a3a;background:#fff;box-shadow:0 20px 90px #102b3b44;font:14px/1.5 system-ui,"Yu Gothic UI",Meiryo,sans-serif}
.sf-dialog[open]{display:flex;flex-direction:column}.sf-dialog::backdrop{background:#132b3e77}.sf-dialog [hidden]{display:none!important}.sf-header{display:flex;align-items:center;gap:12px;flex:none;padding:12px 18px;border-bottom:1px solid #d9e2e9}.sf-header h2{font-size:18px;margin:0 auto 0 0}.sf-body{padding:16px 20px;overflow:auto;flex:1;min-height:0}.sf-footer{flex:none;display:flex;justify-content:flex-end;gap:10px;padding:10px 18px;border-top:1px solid #d9e2e9;background:#f6f8fa}.sf-button,.sf-choice,.sf-step,.sf-text-button{font:inherit;cursor:pointer}.sf-button{border:1px solid #b5c6d3;background:#fff;color:#15374c;padding:8px 14px;border-radius:7px;min-height:36px}.sf-button:disabled{opacity:.55;cursor:wait}.sf-primary{background:#a83e08;color:#fff;border-color:#a83e08;font-weight:700}.sf-text-button{border:0;background:transparent;color:#285778;text-decoration:underline;padding:5px 8px}.sf-button:focus-visible,.sf-choice:focus-visible,.sf-step:focus-visible,.sf-text-button:focus-visible{outline:3px solid #1676b5;outline-offset:2px}.sf-steps{display:flex;gap:8px;margin-bottom:12px}.sf-step{flex:1;border:1px solid #c9d6df;border-radius:7px;background:#f3f6f8;padding:8px;color:#274c64;font-weight:650}.sf-step[aria-current=step]{background:#ffeedb;border-color:#b14c15;color:#853305}.sf-step:disabled{color:#83939f;cursor:default}.sf-target{padding:12px 14px;background:#edf5fa;border-left:4px solid #235574;border-radius:4px;margin-bottom:10px}.sf-target strong{font-size:17px;color:#102e43}.sf-target p{margin:4px 0 0;font-size:15px;font-weight:600;color:#173a52;overflow-wrap:anywhere}.sf-chosen{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:9px 12px;margin-bottom:12px;background:#e7f4ee;border:1px solid #bad8cd;border-radius:6px}.sf-chosen strong{color:#124636}.sf-chosen button{margin-left:auto}.sf-body h3{font-size:16px;margin:16px 0 10px}.sf-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px}.sf-field{display:flex;flex-direction:column;gap:5px;min-width:0}.sf-label{font-size:14px;font-weight:700;color:#203c50}.sf-field input,.sf-picker input{box-sizing:border-box;width:100%;min-height:38px;border:1px solid #a9bfce;padding:7px 10px;border-radius:6px;font:inherit;color:#142d40;background:#fff}.sf-field input:focus,.sf-picker input:focus{outline:2px solid #2f7ea9;outline-offset:1px}.sf-hint{color:#4d687a;font-size:12px}.sf-date-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sf-choices{display:flex;gap:8px;flex-wrap:wrap}.sf-choice{border:1px solid #b4c6d1;border-radius:6px;padding:8px 14px;background:#f7f9fb;color:#173c55;min-height:38px}.sf-choice[aria-pressed=true]{background:#fff0da;border:2px solid #a83e08;color:#88350b;font-weight:700;padding:7px 13px}.sf-details{margin-top:14px;border:1px solid #c9d7df;border-radius:6px;padding:8px 12px}.sf-details>summary{cursor:pointer;color:#204c68;font-weight:650}.sf-table{width:100%;border-collapse:collapse;margin:12px 0}.sf-table td,.sf-table th{padding:6px 10px;text-align:left;border-bottom:1px solid #d8e1e8;overflow-wrap:anywhere}.sf-table th{color:#214b65}.sf-check{display:flex;align-items:center;gap:8px;margin:14px 0 4px}.sf-check input{width:18px;height:18px;accent-color:#a83e08}.sf-summary{display:grid;grid-template-columns:90px 1fr;gap:6px 14px;margin:8px 0 12px}.sf-summary dt{font-weight:650;color:#3a566a}.sf-summary dd{margin:0;white-space:pre-line;overflow-wrap:anywhere}.sf-content{font:14px/1.9 system-ui,"Yu Gothic UI",Meiryo,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f7fa;border:1px solid #cbd8e1;border-radius:7px;padding:12px;margin:12px 0}.sf-lock-preview{border-left:3px solid #7295a9;padding:5px 12px}.sf-lock-preview p{margin:4px 0}.sf-safety-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:10px 0}.sf-safety-choice{display:flex;align-items:center;gap:12px;justify-content:space-between;text-align:left;font:inherit;border:1px solid #c7d5de;border-radius:5px;background:#f4f7f9;padding:7px 9px;color:#294757;cursor:pointer}.sf-safety-choice strong{flex:none;min-width:30px;text-align:center}.sf-safety-choice[data-choice=有] strong{background:#ffebc5;color:#744004;border-radius:4px;padding:2px}.sf-safety-choice[data-choice=''] strong{color:#747f87}.sf-notice{padding:8px 14px;margin:8px 18px;border-radius:6px;border:1px solid #b7d8c8;background:#e9f5ed;color:#23543e}.sf-error{color:#9b251e!important;background:#fff1ef;border-color:#dfaaa4}.sf-sheet-list{font-size:13px;color:#466477}.sf-file{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:16px;border:1px solid #b9d2c6;border-radius:7px;background:#eff8f3;margin:12px 0}.sf-file strong{overflow-wrap:anywhere}.sf-file p{margin:0;color:#4f6a60}.sf-picker{display:flex;gap:10px;margin-bottom:16px}.sf-picker input{flex:1;width:auto;min-width:0}.sf-picker-result{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px;border-bottom:1px solid #d3dfe7}.sf-picker-result strong{width:100%}.sf-picker-result span{flex:1;min-width:120px;color:#4c687a;font-size:13px}.sf-message-action{margin:10px 0}.sf-entry{font-size:12px;min-height:28px;padding:3px 10px;white-space:nowrap}.sf-decision{font-size:12px;min-height:30px;padding:4px 8px;white-space:nowrap;margin-top:4px}.sf-candidates .s-spare-answer{margin:0}.sf-dialog .s-filter-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.sf-dialog .s-answer-grid{font-size:13px}.sf-dialog .s-cell-label{font-size:11px}
@media(max-width:700px){.sf-dialog{width:calc(100vw - 8px);height:calc(100dvh - 8px);max-height:calc(100dvh - 8px);border-radius:9px}.sf-header{padding:10px;gap:5px}.sf-header h2{font-size:16px}.sf-body{padding:12px}.sf-grid{grid-template-columns:1fr;gap:12px}.sf-steps{gap:4px}.sf-step{font-size:12px;padding:8px 3px}.sf-target strong{font-size:16px}.sf-target p{font-size:14px}.sf-footer{padding:9px;gap:6px}.sf-footer .sf-button{padding:8px 10px}.sf-safety-grid{grid-template-columns:1fr}.sf-dialog .s-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sf-choices{gap:6px}.sf-choice{flex:1;padding:8px}.sf-choice[aria-pressed=true]{padding:7px}.sf-content{font-size:13px}.sf-file{padding:12px}.sf-summary{grid-template-columns:70px 1fr}.sf-entry{font-size:11px}}
@media(prefers-reduced-motion:no-preference){.sf-dialog{scroll-behavior:smooth}}
/* The form stays readable inside either light or dark chat themes. */
.sf-dialog{color-scheme:light;--ink:#142a3a;--muted:#49677a;--muted-soft:#557183;--surface:#fff;--surface-alt:#f1f6f9;--page:#fff;--line:#bfcfd9;--line-strong:#8ba7bb;--accent:#a83e08;--signal:#186147;--k-ink:#142a3a;--k-green:#285b70;--k-line:#bfcfd9}.sf-dialog .s-cell-value,.sf-dialog .s-cell-identity strong{color:#142f43}.sf-dialog .s-cell-secondary,.sf-dialog .s-cell-label,.sf-dialog .s-column-head,.sf-dialog .s-answer-small,.sf-dialog .s-live-snapshot{color:#49677a}.sf-dialog .s-spare-filters{background:#f1f6f9;color:#15384d}.sf-dialog .s-filter-chip{background:#fff;color:#15384d}.sf-dialog .s-filter-heading,.sf-dialog .s-filter-query,.sf-dialog .s-filter-text{color:#28526b}.sf-dialog .s-filter-chip.is-changed{background:#fff0d1;color:#783304}.sf-dialog .s-filter-confidence-button{background:#fff;color:#214d66}.sf-dialog .s-spare-row{color:#17364b}.sf-dialog .s-answer-grid{background:#fff}.sf-dialog .s-spare-detail{background:#f3f7fa;color:#17364b}.sf-dialog .sf-entry{margin-left:0}
.sf-dialog{--s-equal:#e1f2e8;--s-equal-line:#328263;--s-blue:#dfecfc;--s-red:#fbe3df;--s-grad-mid:#e7eddd;--s-gold:#ffedc5;--s-gray:#e8edf2;--s-good-text:#175b3b;--s-warn-text:#835000;--s-chip-bg:#f1f6f9;--r-text:#17364b;--r-muted:#49677a;--r-card:#fff;--r-line:#c3d4df;--surface-raised:#e8f1f7}.sf-dialog .s-confidence-high{background:#e1f2e8;color:#175b3b}.sf-dialog .s-confidence-check{background:#ffedc5;color:#835000}
.sf-question-guide{margin:0 0 12px;color:#274b62;font-weight:600}.sf-questions>.sf-field,.sf-questions>.sf-schedule{padding:10px 12px;border:1px solid #c9d8e2;border-radius:7px;background:#f8fafc;align-self:start}.sf-questions .sf-label{font-size:15px;color:#132f42}.sf-questions .sf-other-purpose{margin-top:5px}.sf-form-preview{margin-top:14px}.sf-form-tools{display:flex;align-items:center;gap:12px;margin:8px 0}.sf-form-viewport{overflow:auto;border:1px solid #9aabb5;background:#fff;max-width:100%;border-radius:5px}.sf-form-canvas{display:block;width:100%;height:auto;background:#fff}.sf-form-viewport.is-zoom .sf-form-canvas{min-width:1100px}.sf-form-hit{fill:transparent;stroke:transparent;stroke-width:.7}.sf-form-circle{fill:none;stroke:#111;stroke-width:1.15;visibility:hidden;pointer-events:none}.sf-form-pick{cursor:pointer;outline:none}.sf-form-pick[aria-pressed=true] .sf-form-circle{visibility:visible}.sf-form-pick:hover .sf-form-hit,.sf-form-pick:focus .sf-form-hit{fill:#1685d02b;stroke:#1673a8}.sf-form-viewport:focus-visible{outline:2px solid #1673a8;outline-offset:2px}
@media(max-width:700px){.sf-form-tools{gap:8px;align-items:flex-start}.sf-form-tools .sf-button{flex:none}.sf-questions .sf-label{font-size:14px}}
.sf-dialog{overflow:clip}
