/* Progressive detail controls; scoped to the dialogs created by seo-detail.js. */
.seo-feature-dialog{color:var(--ink,#203b31);background:var(--paper,#f6f4ec);border:1px solid var(--line,#d5d8cc);padding:0;border-radius:10px;width:min(900px,calc(100% - 28px));max-height:92dvh;overflow:auto;overscroll-behavior:contain}
.seo-feature-dialog::backdrop{background:#14271fc9}
html:has(.seo-feature-dialog[open]){overflow:hidden}
.seo-feature-dialog [hidden]{display:none!important}
.seo-feature-dialog .button,.seo-feature-dialog .chip{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;background:var(--ink,#203b31);border:1px solid var(--ink,#203b31);border-radius:5px;color:var(--white,#fffef9);font:600 14px/1.4 var(--sans,system-ui);text-decoration:none;cursor:pointer}
.seo-feature-dialog .button.secondary,.seo-feature-dialog .chip{background:transparent;color:var(--ink,#203b31);border-color:var(--line,#d5d8cc)}
.seo-feature-dialog .chip[aria-pressed=true]{background:var(--ink,#203b31);color:var(--white,#fffef9)}
.seo-feature-dialog button:disabled{opacity:.55;cursor:default}
.seo-feature-dialog button:focus-visible,.seo-feature-dialog a:focus-visible,.seo-feature-dialog input:focus-visible,.seo-feature-dialog select:focus-visible,.seo-feature-dialog textarea:focus-visible,.seo-feature-dialog summary:focus-visible{outline:3px solid var(--accent,#985034);outline-offset:3px}
.seo-feature-dialog .eyebrow{margin:0 0 5px;font-size:12px;letter-spacing:.06em;color:var(--muted,#5b665c)}
.seo-feature-dialog h2{font:normal clamp(24px,4vw,34px)/1.2 var(--serif,Georgia);margin:0}
.seo-dialog-header,.seo-feature-dialog .survey-header,.seo-feature-dialog .viewer-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 22px;border-bottom:1px solid var(--line,#d5d8cc)}
.seo-dialog-header .button,.seo-feature-dialog .survey-header .button,.seo-feature-dialog .viewer-header .button{flex-shrink:0}
.seo-dialog-note{padding:16px 22px;margin:0;font-size:14px}
.seo-comparison-grid{display:grid;grid-template-columns:repeat(var(--columns),minmax(195px,1fr));gap:20px;padding:18px 22px 24px;overflow:auto}
.seo-comparison-grid article{min-width:0}
.seo-comparison-grid img{display:block;width:100%;height:260px;object-fit:contain;background:var(--soft,#e7eadf)}
.seo-comparison-grid h3{font-size:18px;line-height:1.4;min-height:2.8em;margin:8px 0 14px}
.seo-comparison-grid .eyebrow{margin-top:12px}
.seo-comparison-grid dl{font-size:14px;line-height:1.6;margin:0 0 20px}
.seo-comparison-grid dt{font-size:12px;color:var(--muted,#5b665c);margin-top:12px}
.seo-comparison-grid dd{margin:3px 0 0}
.seo-remove{display:block;min-height:44px;margin-top:10px;padding:8px 0;font:inherit;color:inherit;background:none;border:0;border-bottom:1px solid var(--line,#d5d8cc);cursor:pointer}
.seo-share-body{padding:24px}.seo-share-body label{display:block;font-size:14px;margin-bottom:10px}.seo-share-body input{font:16px/1.6 var(--sans,system-ui);padding:12px;width:100%;color:inherit;background:var(--white,#fffef9);border:1px solid var(--line,#d5d8cc);border-radius:5px}
[data-seo-sequence]{display:flex;justify-content:space-between;flex-wrap:wrap;gap:20px;margin:30px 0;padding:20px 0;border-block:1px solid var(--line,#d5d8cc)}[data-seo-sequence] a{min-height:44px;display:inline-flex;align-items:center}
/* Existing media-viewer module expects these IDs. */
.seo-feature-dialog#viewer{width:100%;height:100dvh;max-width:none;max-height:none;inset:0;margin:0;border:0;border-radius:0;overflow:hidden}
.seo-feature-dialog#viewer[open]{display:flex;flex-direction:column;padding-top:env(safe-area-inset-top)}
.seo-feature-dialog .viewer-header{flex-shrink:0}.seo-feature-dialog .viewer-header>div{min-width:0}.seo-feature-dialog .viewer-header h2{overflow-wrap:anywhere}
.seo-feature-dialog #viewer-choices{display:flex;justify-content:center;gap:8px;padding:10px 18px;border-bottom:1px solid var(--line,#d5d8cc);flex-shrink:0;flex-wrap:wrap}
.seo-feature-dialog #viewer-pan{flex:1;min-height:0;min-width:0;position:relative;overflow:auto;overscroll-behavior:contain;background:#eee8df;touch-action:pan-x pan-y pinch-zoom;scrollbar-width:thin}
.seo-feature-dialog #viewer-stage{position:relative;min-width:100%;min-height:100%;display:flex;align-items:center;justify-content:center}
.seo-feature-dialog #viewer-image{display:block;flex-shrink:0;max-width:none;margin:0;object-fit:contain;user-select:none;-webkit-user-select:none;touch-action:pan-x pan-y pinch-zoom}
.seo-feature-dialog #viewer-pan.can-drag{cursor:grab}.seo-feature-dialog #viewer-pan.dragging{cursor:grabbing}
.seo-feature-dialog #viewer-loading,.seo-feature-dialog #viewer-error{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;font-size:14px;background:#eee8df;margin:0;padding:20px}
.seo-feature-dialog #viewer-error p{margin-bottom:12px}
.seo-feature-dialog .viewer-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-shrink:0;padding:13px 22px max(13px,env(safe-area-inset-bottom));border-top:1px solid var(--line,#d5d8cc)}
.seo-feature-dialog .viewer-footer p{max-width:50ch;margin:0;font-size:13px;color:var(--muted,#5b665c)}
.seo-feature-dialog .zoom-controls{display:flex;gap:8px;align-items:center;flex-shrink:0}
.seo-feature-dialog .zoom-controls button{width:44px;min-height:44px;border:1px solid var(--line,#d5d8cc);border-radius:4px;font:22px var(--sans,system-ui);color:inherit;background:var(--white,#fffef9);cursor:pointer}
.seo-feature-dialog .zoom-controls #zoom-fit,.seo-feature-dialog .zoom-controls #zoom-native{width:auto;padding:8px 11px;font-size:14px;font-weight:550}
.seo-feature-dialog .zoom-controls output{font-size:13px;min-width:40px;text-align:center;font-variant-numeric:tabular-nums}
/* Existing survey module and its exact identity/revision protocol are reused. */
.seo-feature-dialog#survey{width:min(600px,calc(100% - 24px));scroll-padding-top:90px}
.seo-feature-dialog .survey-header{position:sticky;top:0;z-index:3;background:var(--paper,#f6f4ec);padding:12px 22px}
.seo-feature-dialog .survey-header .eyebrow{margin:0;line-height:1.5}
.seo-feature-dialog .survey-body{padding:22px 25px 26px}
.seo-feature-dialog .survey-design{display:flex;align-items:center;gap:12px;margin:0 0 20px}
.seo-feature-dialog .survey-design img{width:46px;height:56px;object-fit:contain;border-radius:3px;background:var(--soft,#e7eadf)}
.seo-feature-dialog .survey-design p{margin:0;font-size:14px;line-height:1.5}.seo-feature-dialog .survey-design small{font-size:12px;color:var(--muted,#5b665c)}
.seo-feature-dialog .survey-progress{font-size:12px;letter-spacing:.06em;color:var(--accent,#985034);font-weight:650;margin:0 0 10px}
.seo-feature-dialog #survey-title{margin-bottom:18px;scroll-margin-top:90px}.seo-feature-dialog #survey-title:focus{outline:none}
.seo-feature-dialog .survey-body p{font-size:16px;line-height:1.65}
.seo-feature-dialog .survey-body fieldset{border:0;padding:0;margin:0 0 20px;min-width:0}
.seo-feature-dialog .survey-body legend{font-size:16px;font-weight:600;line-height:1.5;margin-bottom:11px}
.seo-feature-dialog .field-required{font-size:12px;font-weight:400;color:var(--muted,#5b665c);margin-left:6px}
.seo-feature-dialog .survey-body label.choice{display:flex;align-items:center;gap:11px;border:1px solid var(--line,#d5d8cc);background:var(--white,#fffef9);padding:12px;margin-bottom:8px;font-size:15px;min-height:48px;border-radius:4px;cursor:pointer}
.seo-feature-dialog .choice:has(input:checked){border-color:var(--ink,#203b31);background:#e7eddf}.seo-feature-dialog .choice:focus-within{outline:2px solid var(--accent,#985034);outline-offset:2px}
.seo-feature-dialog .choice input{accent-color:var(--ink,#203b31);width:18px;height:18px;flex-shrink:0}
.seo-feature-dialog .survey-fields{display:grid;gap:18px}.seo-feature-dialog .survey-field{display:flex;flex-direction:column;gap:7px;font-size:14px;margin:0}.seo-feature-dialog .survey-field>span{font-weight:600}
.seo-feature-dialog .survey-field select,.seo-feature-dialog .survey-field input[type=number],.seo-feature-dialog .survey-body textarea{font:16px/1.5 var(--sans,system-ui);width:100%;min-height:48px;padding:11px 12px;border:1px solid #a7b3a3;border-radius:4px;background:var(--white,#fffef9);color:var(--ink,#203b31)}
.seo-feature-dialog .survey-field select{appearance:none;padding-right:38px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='m5 7 4 4 4-4' fill='none' stroke='%23203b31' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
.seo-feature-dialog .survey-field input[type=number]{max-width:180px}.seo-feature-dialog .survey-body textarea{min-height:100px;resize:vertical;margin-top:8px}
.seo-feature-dialog .survey-body .field-help{margin:0;font-size:13px;color:var(--muted,#5b665c);line-height:1.5}
.seo-feature-dialog .survey-extra{border-block:1px solid var(--line,#d5d8cc);margin-top:20px;padding:0 0 4px}.seo-feature-dialog .survey-extra summary{cursor:pointer;min-height:48px;padding:12px 0;font-size:14px;font-weight:600}.seo-feature-dialog .survey-extra summary span{font-weight:400;color:var(--muted,#5b665c);font-size:13px;margin-left:5px}.seo-feature-dialog .survey-extra[open]{padding-bottom:15px}.seo-feature-dialog .survey-extra .survey-field+.survey-field{margin-top:15px}.seo-feature-dialog .survey-extra fieldset{margin:12px 0 0}
.seo-feature-dialog .survey-body form>.button{width:100%;min-height:48px;margin-top:20px;font-size:15px}
.seo-feature-dialog .text-link{padding:10px 0;min-height:44px;color:inherit;border:0;border-bottom:1px solid var(--line,#d5d8cc);background:transparent;font:14px var(--sans,system-ui);cursor:pointer}
.seo-feature-dialog .survey-back{display:block;margin:14px auto 0}.seo-feature-dialog .survey-actions{display:flex;flex-direction:column;gap:12px;margin:24px 0 0}.seo-feature-dialog .survey-actions .button{width:100%;min-height:48px}.seo-feature-dialog .survey-actions .text-link{align-self:center}
.seo-feature-dialog .saved-confirmation{display:flex;align-items:center;gap:12px;margin:20px 0}.seo-feature-dialog .saved-confirmation>span{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border-radius:50%;color:var(--ink,#203b31);background:#e0e9d8;font-size:20px}.seo-feature-dialog .saved-confirmation p{margin:0}
.seo-feature-dialog .survey-summary{padding:16px 18px;background:var(--soft,#e7eadf);border-radius:4px;margin:20px 0;font-size:14px}.seo-feature-dialog .survey-summary dt{font-size:12px;color:var(--muted,#5b665c);margin-top:10px}.seo-feature-dialog .survey-summary dt:first-child{margin-top:0}.seo-feature-dialog .survey-summary dd{margin:3px 0 0}
.seo-feature-dialog .survey-finish{width:100%;margin-top:16px;min-height:48px}.seo-feature-dialog .price-card{background:var(--soft,#e7eadf);padding:20px;margin:18px 0 24px;border-radius:4px}.seo-feature-dialog .price-card strong{font:normal 36px var(--serif,Georgia);display:block;margin-bottom:10px}.seo-feature-dialog .survey-body .price-card p{font-size:14px}
.seo-feature-dialog #send-status{font-size:14px;line-height:1.6;color:#98462d;scroll-margin:90px 0 25px}.seo-feature-dialog #send-status:empty,.seo-feature-dialog #draft-status:empty{display:none}.seo-feature-dialog #draft-status{font-size:13px;line-height:1.5;color:var(--muted,#5b665c);margin:14px 0 0}.seo-feature-dialog #conflict-review{width:100%;margin-top:10px;font-size:14px}.seo-feature-dialog #survey-content[aria-busy=true]{opacity:.65}
@media(max-width:700px){.seo-feature-dialog .viewer-footer{flex-direction:column;gap:10px}.seo-feature-dialog .viewer-footer p{text-align:center;max-width:none}.seo-feature-dialog .zoom-controls{gap:6px;width:100%;justify-content:center}.seo-feature-dialog .zoom-controls #zoom-fit,.seo-feature-dialog .zoom-controls #zoom-native{font-size:12px;padding:8px}.seo-feature-dialog .viewer-header{padding:12px 14px}.seo-comparison-grid{grid-template-columns:repeat(var(--columns),minmax(165px,1fr));gap:14px;padding:16px}.seo-comparison-grid img{height:210px}.seo-feature-dialog .survey-body{padding:20px 18px 24px}.seo-feature-dialog .survey-header{padding:11px 16px}.seo-dialog-header{padding:16px}.seo-feature-dialog .survey-header .eyebrow{font-size:11px}.seo-feature-dialog .viewer-header h2{font-size:24px}}
