/* Local support checklist. Uses the existing FY Notes shell and button styles. */
#fy-reading-modes .page-wrap.support-tool-page,#fy-reading-modes[data-mode="workbench"] .page-wrap.support-tool-page{width:100%;max-width:920px;margin-inline:auto}
#fy-reading-modes .support-form{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;align-items:start;min-width:0;margin:24px 0 0}
#fy-reading-modes .support-section{min-width:0;min-inline-size:0;margin:0;padding:25px 27px 27px;background:var(--fy-paper);border:0;color:var(--fy-ink)}
#fy-reading-modes .support-section legend{display:block;float:left;width:100%;padding:0;margin:0 0 22px;font-size:18px;font-weight:500;line-height:1.6;letter-spacing:-.15px;color:var(--fy-ink);overflow-wrap:anywhere}
#fy-reading-modes .support-section legend .section-number,#fy-reading-modes .support-section legend[data-step]::before{display:inline-block;font:12px Consolas,"Courier New",monospace;line-height:1.7;letter-spacing:.02em;color:var(--fy-accent);min-width:23px;margin-right:9px;vertical-align:2px}
#fy-reading-modes .support-section legend[data-step]::before{content:attr(data-step)}
#fy-reading-modes .support-grid{clear:both;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 17px;min-width:0}
#fy-reading-modes .support-grid>label{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0;margin:0;font-size:13px;line-height:1.65;color:var(--fy-ink)}
#fy-reading-modes .support-grid>.span-full{grid-column:1 / -1}
#fy-reading-modes .support-grid>label>span{display:block;font-size:13px;font-weight:400;line-height:1.65;overflow-wrap:anywhere;color:#4e4e4c}
#fy-reading-modes .support-grid>label small{display:block;font-size:12px;line-height:1.75;color:var(--fy-muted,#666663);overflow-wrap:anywhere;margin-top:-2px}
#fy-reading-modes .support-grid input:not([type="checkbox"]):not([type="radio"]),#fy-reading-modes .support-grid textarea,#fy-reading-modes .support-grid select{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:42px;font-family:"Segoe UI","Microsoft YaHei",sans-serif;font-size:13px;font-weight:400;line-height:1.65;color:var(--fy-ink);background:#fcfcf9;border:1px solid #c6c6c4;border-radius:3px;padding:9px 11px;margin:0;outline-offset:2px}
#fy-reading-modes .support-grid textarea{min-height:112px;line-height:1.85;resize:vertical;white-space:pre-wrap;overflow-wrap:anywhere}
#fy-reading-modes .support-grid input::placeholder,#fy-reading-modes .support-grid textarea::placeholder{color:#73736d;opacity:1}
#fy-reading-modes .support-grid input:focus-visible,#fy-reading-modes .support-grid textarea:focus-visible,#fy-reading-modes .support-grid select:focus-visible,#fy-reading-modes .support-preview summary:focus-visible{outline:2px solid var(--fy-accent);outline-offset:3px}
#fy-reading-modes .support-grid [aria-invalid="true"]{border-color:var(--fy-accent)}
#fy-reading-modes .support-grid input[type="checkbox"],#fy-reading-modes .support-grid input[type="radio"]{accent-color:var(--fy-accent);width:16px;height:16px;margin:3px 0;flex:none}
#fy-reading-modes .support-grid .field-hint{font-size:12px;line-height:1.75;color:var(--fy-muted,#666663);margin:0}
#fy-reading-modes .support-grid .field-error{font-size:12px;line-height:1.75;color:var(--fy-accent);margin:0}
#fy-reading-modes .support-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px 12px;min-width:0;margin:24px 0 0}
#fy-reading-modes .support-actions.support-save-bar{gap:10px 16px;margin:16px 0 0}
#fy-reading-modes .support-actions.support-save-bar .quiet-button{flex:0 1 auto;min-height:44px}
#fy-reading-modes .support-save-bar+.support-conflict:not([hidden]){margin-top:18px}
#fy-reading-modes .support-section{scroll-margin-top:calc(var(--app-header-height,82px) + 24px)}
#fy-reading-modes .support-conflict{padding:18px 20px;margin:0 0 24px;border-left:2px solid var(--fy-accent);background:var(--fy-paper);font-size:13px;line-height:1.8}
#fy-reading-modes .support-conflict[hidden]{display:none}
#fy-reading-modes .support-conflict p{margin:0 0 12px}
#fy-reading-modes .support-conflict button{margin:4px 8px 4px 0;max-width:100%;white-space:normal;text-align:left}
#fy-reading-modes .support-form>.support-actions,#fy-reading-modes .support-form>.support-status,#fy-reading-modes .support-form>.support-note,#fy-reading-modes .support-form>.local-only-notice,#fy-reading-modes .support-form>.support-preview,#fy-reading-modes .support-form>.support-undo{grid-column:1 / -1}
#fy-reading-modes .support-actions .primary-button,#fy-reading-modes .support-actions .quiet-button{min-height:40px;max-width:100%;white-space:normal}
#fy-reading-modes .support-actions .action-group{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0}
#fy-reading-modes .support-actions .support-status{flex:1 1 230px;margin:0}
#fy-reading-modes .support-note,#fy-reading-modes .support-status,#fy-reading-modes .local-only-notice{font-size:12px;line-height:1.85;color:var(--fy-muted,#666663);margin:12px 0;overflow-wrap:anywhere;min-width:0}
#fy-reading-modes .local-only-notice{padding:12px 16px;background:var(--fy-warm);border-left:2px solid #9c8875;margin:18px 0 0}
#fy-reading-modes .local-only-notice strong,#fy-reading-modes .support-note strong,#fy-reading-modes .support-status strong{font-weight:500;color:#4e4e4c}
#fy-reading-modes .support-section>.support-note{clear:both;padding-top:14px;margin:0;font-size:12px}
#fy-reading-modes .support-status:empty{display:none}
#fy-reading-modes .support-status[data-state="error"],#fy-reading-modes .support-status[role="alert"]{color:var(--fy-accent)}
#fy-reading-modes .support-preview{min-width:0;margin:23px 0 0;padding:18px 21px;background:var(--fy-warm);border:0}
#fy-reading-modes .support-form>.support-preview{margin-top:0}
#fy-reading-modes .support-preview>summary{font-size:14px;font-weight:500;line-height:1.7;color:var(--fy-ink);padding:3px 0;list-style-position:inside;overflow-wrap:anywhere}
#fy-reading-modes .support-preview[open]>summary{padding-bottom:15px;border-bottom:1px solid #cbcbc9}
#fy-reading-modes .support-preview>pre{font-family:Consolas,"Microsoft YaHei",monospace;font-size:12px;line-height:1.9;font-weight:400;color:#535351;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;margin:17px 0 0;padding:0;max-width:100%;min-width:0}
#fy-reading-modes .support-preview>p{font-size:12px;line-height:1.85;color:var(--fy-muted,#666663);margin:12px 0 0}
#fy-reading-modes .support-undo{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 17px;min-width:0;margin:18px 0 0;padding:14px 17px;border-top:1px solid var(--fy-line);border-bottom:1px solid var(--fy-line);color:#5c5c5a;font-size:12px;line-height:1.85}
#fy-reading-modes .support-undo p{margin:0;min-width:0;flex:1 1 240px;font-size:12px;line-height:1.85;overflow-wrap:anywhere}
#fy-reading-modes .support-undo .quiet-button{flex:none;min-height:36px}
#fy-reading-modes[data-mode="workbench"] .support-form{gap:19px}
#fy-reading-modes[data-mode="workbench"] .support-section{padding:23px}
#fy-reading-modes[data-mode="workbench"] .support-section legend{font-size:17px;margin-bottom:19px}
#fy-reading-modes[data-mode="workbench"] .support-grid{gap:16px 14px}
@media(max-width:1120px){
  #fy-reading-modes .support-section{padding:24px}
  #fy-reading-modes .support-form{gap:20px}
  #fy-reading-modes[data-mode="workbench"] .support-section{padding:21px}
}
@media(max-width:900px){
  #fy-reading-modes .support-form,#fy-reading-modes[data-mode="workbench"] .support-form{grid-template-columns:minmax(0,1fr);gap:20px}
  #fy-reading-modes .support-section,#fy-reading-modes[data-mode="workbench"] .support-section{padding:25px}
  #fy-reading-modes .support-section legend,#fy-reading-modes[data-mode="workbench"] .support-section legend{font-size:18px;margin-bottom:20px}
}
@media(max-width:620px){
  #fy-reading-modes .support-form,#fy-reading-modes[data-mode="workbench"] .support-form{margin-top:20px;gap:18px}
  #fy-reading-modes .support-section,#fy-reading-modes[data-mode="workbench"] .support-section{padding:22px 20px}
  #fy-reading-modes .support-section legend,#fy-reading-modes[data-mode="workbench"] .support-section legend{font-size:17px;line-height:1.65;margin-bottom:19px}
  #fy-reading-modes .support-grid,#fy-reading-modes[data-mode="workbench"] .support-grid{grid-template-columns:minmax(0,1fr);gap:17px}
  #fy-reading-modes .support-grid>label{gap:8px}
  #fy-reading-modes .support-grid input:not([type="checkbox"]):not([type="radio"]),#fy-reading-modes .support-grid textarea,#fy-reading-modes .support-grid select{min-height:46px;font-size:16px;line-height:1.65;padding:10px 11px}
  #fy-reading-modes .support-grid textarea{min-height:123px;line-height:1.8}
  #fy-reading-modes .support-grid input::placeholder,#fy-reading-modes .support-grid textarea::placeholder{font-size:14px;line-height:1.8}
  #fy-reading-modes .support-actions{gap:9px;align-items:stretch}
  #fy-reading-modes .support-actions .primary-button,#fy-reading-modes .support-actions .quiet-button{min-height:44px;flex:1 1 125px;padding:10px 13px;font-size:12px}
  #fy-reading-modes .support-actions .action-group{display:contents}
  #fy-reading-modes .support-actions .support-status{flex-basis:100%;margin-top:3px}
  #fy-reading-modes .support-note,#fy-reading-modes .support-status,#fy-reading-modes .local-only-notice{font-size:12px;line-height:1.9}
  #fy-reading-modes .local-only-notice{padding:12px 14px;margin-top:16px}
  #fy-reading-modes .support-preview{padding:17px 18px;margin-top:21px}
  #fy-reading-modes .support-preview>summary{font-size:13px;min-height:34px}
  #fy-reading-modes .support-preview>pre{font-size:12px;line-height:1.9}
  #fy-reading-modes .support-undo{padding:13px 0;gap:9px 12px}
  #fy-reading-modes .support-undo .quiet-button{min-height:44px}
}
@media(max-width:360px){
  #fy-reading-modes .support-section,#fy-reading-modes[data-mode="workbench"] .support-section{padding-left:17px;padding-right:17px}
  #fy-reading-modes .support-preview{padding-left:16px;padding-right:16px}
}
@media(pointer:coarse){
  #fy-reading-modes .support-grid input:not([type="checkbox"]):not([type="radio"]),#fy-reading-modes .support-grid select,#fy-reading-modes .support-actions .quiet-button,#fy-reading-modes .support-actions .primary-button,#fy-reading-modes .support-undo .quiet-button,#fy-reading-modes .support-preview>summary{min-height:44px}
}
@media(prefers-reduced-motion:no-preference){
  #fy-reading-modes .support-grid input,#fy-reading-modes .support-grid textarea,#fy-reading-modes .support-grid select{transition:border-color 130ms ease,background-color 130ms ease}
}
@media(prefers-reduced-motion:reduce){
  #fy-reading-modes .support-form input,#fy-reading-modes .support-form textarea,#fy-reading-modes .support-form select,#fy-reading-modes .support-preview{transition:none;animation:none;scroll-behavior:auto}
}
