/* Settings uses the shared theme while giving setup controls readable spacing. */
.settings-layout{--settings-section-gap:18px}
.settings-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;align-items:start}
.settings-nav{display:flex;flex-direction:column;gap:6px;position:sticky;top:24px}
.settings-nav button{text-align:left;background:transparent;border-color:transparent;border-radius:9px;padding:15px 14px;color:var(--ink);width:100%;white-space:normal}
.settings-nav button strong{display:block;font-size:14px;font-weight:600;margin-bottom:6px}
.settings-nav button small{display:block;font-size:12px;line-height:1.5;color:var(--muted)}
.settings-nav button.selected{background:#3563a81f;border-color:#3563a866}.settings-nav button:focus-visible{outline:2px solid #699ee7;outline-offset:2px}
.settings-content{min-width:0}.settings-panel{padding:26px;overflow:visible}.settings-panel-head{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:25px}.settings-panel-head h2{font-size:22px;margin:0}.settings-panel-head p{font-size:14px;margin:8px 0 0;color:var(--muted)}
.settings-scope{font-size:12px;border:1px solid var(--line);border-radius:20px;white-space:nowrap;padding:7px 11px;color:var(--muted)}
.settings-panel p{font-size:14px;line-height:1.7}.settings-panel .notice{font-size:13px;margin:0 0 22px}.settings-panel h3{font-size:17px;margin:27px 0 15px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.settings-grid>label,.settings-template-toolbar label,.settings-copy>label,.settings-logo-row label{display:flex;flex-direction:column;font-size:14px;line-height:1.5;gap:8px;color:var(--ink);min-width:0;font-weight:500}
.settings-panel input:not([type=checkbox]),.settings-panel select,.settings-panel textarea{width:100%;min-width:0;padding:11px 12px;border:1px solid var(--line);border-radius:7px;color:var(--ink);background:#191c20;font:inherit;font-size:14px;line-height:1.5}
.settings-panel textarea{resize:vertical;min-height:90px}.settings-panel input[type=color]{height:45px;padding:5px}.settings-panel input[type=checkbox]{width:17px;height:17px;accent-color:#3563a8;flex-shrink:0}.settings-wide{grid-column:1/-1}.settings-checks{display:flex;flex-wrap:wrap;gap:16px 24px;margin:22px 0}.settings-check{display:flex;align-items:center;gap:10px;font-size:14px;line-height:1.6}.settings-checks-vertical{flex-direction:column;align-items:start}
.settings-panel .settings-help{font-size:13px;color:var(--muted);line-height:1.6}.settings-save{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding-top:20px;margin-top:25px;border-top:1px solid var(--line);flex-wrap:wrap}.settings-save>span{margin-right:auto;font-size:13px;color:var(--muted)}.settings-panel button,.settings-link{font-size:13px;padding:10px 14px}.settings-save button.primary{font-weight:600}.settings-panel :disabled{opacity:.55}.settings-logo-row{display:flex;align-items:center;gap:24px}.settings-logo-row>div:last-child{flex:1}.settings-logo-row img{display:block;max-height:105px;max-width:180px;object-fit:contain;background:#fff;padding:8px;border-radius:7px}.settings-logo-row small{display:block;margin-top:8px;font-size:12px;color:var(--muted);max-width:180px;overflow-wrap:anywhere}.settings-default-logo{border:1px dashed var(--line);padding:25px 15px;max-width:180px;border-radius:7px;font-size:14px;color:var(--muted);text-align:center}
.settings-template-toolbar{display:grid;grid-template-columns:minmax(200px,1fr) 1fr;gap:24px;align-items:end;margin-bottom:28px}.settings-template-toolbar small{display:block;color:var(--muted);font-size:12px;margin-top:8px;line-height:1.6}.settings-template-state{font-size:14px;font-weight:600}.settings-copy{display:flex;align-items:end;flex-wrap:wrap;gap:14px;border-top:1px solid var(--line);padding-top:24px;margin-top:26px}.settings-copy label{min-width:220px;flex:1}.settings-copy small{flex-basis:100%;color:var(--muted);font-size:12px}.settings-history>div{display:flex;gap:18px;align-items:center;flex-wrap:wrap;padding:14px 0;border-bottom:1px solid var(--line)}.settings-history small{color:var(--muted);margin-right:auto;font-size:12px}.settings-history strong{font-size:14px}.settings-preview figure{margin:25px auto;max-width:750px}.settings-preview img{width:100%;height:auto;display:block;background:#fff;box-shadow:0 4px 14px #0003}.settings-preview figcaption{font-size:13px;text-align:center;margin-bottom:10px;color:var(--muted)}.settings-link{display:inline-block;text-decoration:none;border:1px solid var(--line);border-radius:7px;color:var(--ink);line-height:1.5}
.pdf-template-card{border:1px solid var(--line);border-radius:9px;padding:18px;margin:16px 0}.pdf-template-heading{display:flex;align-items:start;justify-content:space-between;gap:18px;flex-wrap:wrap}.pdf-template-heading h3{margin:0}.pdf-template-heading p{font-size:12px;margin:7px 0 16px;color:var(--muted);overflow-wrap:anywhere}.pdf-template-default{font-size:12px;color:var(--green);font-weight:600}.pdf-template-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.pdf-template-actions .settings-link{padding:9px 12px}.pdf-template-actions button{font-size:12px}.pdf-template-history,.pdf-template-guide{margin:20px 0 0;border-top:1px solid var(--line);padding-top:16px}.pdf-template-history summary,.pdf-template-guide summary{cursor:pointer;font-size:14px;font-weight:600}.pdf-template-history>div{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:14px 0;font-size:12px}.pdf-template-guide td,.pdf-template-guide th{white-space:normal}.pdf-template-guide code{overflow-wrap:anywhere;font-size:12px}.pdf-template-guide p{font-size:13px}
.pdf-template-original{background:var(--soft)}
.settings-subhead{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:24px 0 18px}.settings-subhead h3{margin:0}.settings-schedule{margin:20px 0;padding:20px;border:1px solid var(--line);border-radius:10px;min-width:0}.settings-schedule legend{font-size:15px;padding:0 8px;font-weight:600}.settings-schedule-scroll{overflow-x:auto;margin:20px 0}.settings-schedule table{min-width:640px;white-space:normal}.settings-schedule th{font-size:11px;line-height:1.5;text-align:center;padding:10px}.settings-schedule td{padding:10px 8px;font-size:13px;text-align:center}.settings-schedule th:first-child,.settings-schedule td:first-child{text-align:left}.settings-schedule input[type=number]{max-width:90px}.settings-schedule input[type=time]{padding:7px;font-size:13px;min-width:105px}
.settings-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:0 0 28px}.settings-facts dt{font-size:12px;color:var(--muted);margin-bottom:7px}.settings-facts dd{font-size:14px;margin:0;line-height:1.5;overflow-wrap:anywhere}#settingsAudit{font-size:13px;overflow-wrap:anywhere}
.recovery-heading,.recovery-checkpoint-heading{display:flex;align-items:start;justify-content:space-between;gap:18px;flex-wrap:wrap}.recovery-heading h3{margin-top:0}.recovery-heading>div:first-child{flex:1;min-width:240px}.recovery-actions{display:flex;gap:10px;flex-wrap:wrap}.recovery-overview{padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.recovery-scope{padding:16px;border:1px solid var(--line);border-radius:8px;margin:20px 0}.recovery-scope summary,.recovery-trial summary{cursor:pointer;font-size:14px;font-weight:600;line-height:1.6}.recovery-scope li,.recovery-trial li{font-size:13px;line-height:1.7;margin:7px 0}.recovery-job{padding:18px;border:1px solid #3563a866;border-radius:8px;background:#3563a812;margin:20px 0}.recovery-job.failed{border-color:#b9585866;background:#b9585812}.recovery-job p{margin:8px 0}.recovery-job small{color:var(--muted);font-size:12px}.recovery-checkpoint{padding:22px;border:1px solid var(--line);border-radius:10px;margin:18px 0}.recovery-checkpoint h4{font-size:16px;margin:0}.recovery-checkpoint-heading p{margin:7px 0 18px}.recovery-checkpoint .settings-facts{margin-bottom:18px}.recovery-stages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:0;list-style:none;margin:20px 0}.recovery-stage{padding:12px;border-radius:7px;background:#ffffff03;border:1px solid var(--line)}.recovery-stage strong{font-size:13px;line-height:1.5;display:block}.recovery-stage.complete strong{color:#83c4a1}.recovery-stage.pending strong{color:var(--muted)}.recovery-stage small{font-size:12px;color:var(--muted);line-height:1.5;display:block;margin-top:5px}.recovery-trial{padding-top:20px;margin-top:20px;border-top:1px solid var(--line)}.recovery-trial>.settings-facts{margin-top:16px}.recovery-trial>strong{font-size:14px}.recovery-trial details{margin:12px 0}.recovery-history:empty{display:none}
@media(max-width:550px){.recovery-stages{grid-template-columns:1fr}.recovery-checkpoint{padding:16px}.recovery-heading>div:first-child{min-width:0;flex-basis:100%}.recovery-actions button{flex:1}.recovery-heading .recovery-actions{width:100%}}
.recovery-source{margin-top:8px}.recovery-source summary{cursor:pointer;font-size:12px;color:var(--muted)}.recovery-source p{font-size:12px;margin:8px 0}.recovery-source code{overflow-wrap:anywhere}.recovery-trial pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;padding:12px;border:1px solid var(--line);border-radius:7px}
body[data-density='compact'] main table td{padding-top:10px;padding-bottom:10px}body[data-density='compact'] main table th{padding-top:10px;padding-bottom:10px}body[data-density='compact'] main .table-footer{padding-top:12px;padding-bottom:12px}
body[data-text-size='large'] main table td,body[data-text-size='large'] .modal-content table td{font-size:14px}body[data-text-size='large'] main table th,body[data-text-size='large'] .modal-content table th{font-size:11px}body[data-text-size='large'] .form-grid label,body[data-text-size='large'] .field{font-size:13px}body[data-text-size='large'] .form-grid input,body[data-text-size='large'] .form-grid select,body[data-text-size='large'] .field input,body[data-text-size='large'] .field select,body[data-text-size='large'] .field textarea{font-size:14px}body[data-text-size='large'] main table small{font-size:12px}
@media(max-width:1150px){.settings-layout{grid-template-columns:200px minmax(0,1fr);gap:16px}.settings-panel{padding:22px}.settings-panel-head{flex-wrap:wrap}.settings-scope{white-space:normal}}
@media(max-width:850px){.settings-layout{grid-template-columns:1fr}.settings-nav{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.settings-nav button{padding:12px}.settings-nav button small{display:none}.settings-panel{padding:20px}.settings-template-toolbar{gap:15px}}
@media(max-width:550px){.settings-grid,.settings-template-toolbar,.settings-facts{grid-template-columns:1fr}.settings-save>span{width:100%;margin-bottom:5px}.settings-logo-row{align-items:start;flex-direction:column}.settings-schedule{padding:12px}.settings-save button{flex:1}.settings-template-actions button{flex-basis:40%}.settings-subhead{align-items:start}.settings-panel-head h2{font-size:20px}.settings-nav button strong{font-size:13px}}

/* The preview background is the server-rendered PDF; only header blocks move. */
.template-visual{margin:28px 0;padding:22px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.settings-grid>label[hidden]{display:none}
.settings-layout.template-focus{grid-template-columns:minmax(0,1fr)}.settings-layout.template-focus>.settings-nav{display:none}
.template-visual-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:18px}.template-visual-heading>div{flex:1;min-width:240px}.template-visual-heading h3{margin:0 0 8px}.template-visual-heading p{margin:0}.template-visual-heading button{white-space:nowrap}
.template-workspace{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:22px;align-items:start}.template-page-column{min-width:0}.template-preview-state{font-size:12px;line-height:1.5;min-height:36px;margin-bottom:10px;color:var(--muted)}.template-preview-state[data-state=ready]{color:#92bfac}.template-preview-state[data-state=error]{color:#efaaaa}
.template-sheet{position:relative;aspect-ratio:210/297;width:100%;max-width:680px;background:#fff;color:#111;box-shadow:0 4px 18px #0004;overflow:hidden}.template-page-image{display:block;width:100%;height:100%;object-fit:contain}.template-page-image[hidden]{display:none}.template-sheet[data-preview-state=outdated] .template-page-image,.template-sheet[data-preview-state=refreshing] .template-page-image,.template-sheet[data-preview-state=error] .template-page-image{opacity:.34}
.template-header-layer{position:absolute;touch-action:none;border-bottom:1px dashed #2567be;box-sizing:border-box}.template-header-boundary{position:absolute;bottom:-19px;left:0;color:#2361ad;background:#fff;font-size:10px;padding:2px 3px;line-height:1.2;white-space:nowrap;pointer-events:none}
.template-block{position:absolute;box-sizing:border-box;border:1px dashed #5e86b7;background:#579bea09;cursor:grab;outline:none;user-select:none;touch-action:none;min-width:0;transition:background .1s;z-index:2}.template-block:hover,.template-block:focus-visible{background:#4c91eb18;border-style:solid}.template-block.selected{border:2px solid #2d76d8;z-index:3}.template-block.invalid{border-color:#c65555}.template-block[aria-disabled=true]{cursor:default;opacity:.6;pointer-events:none}.template-block-label{position:absolute;top:0;left:0;max-width:100%;padding:3px 5px;background:#eaf2feeb;color:#18497f;font:600 10px/1.25 Arial,sans-serif;overflow-wrap:anywhere;pointer-events:none;box-sizing:border-box}.template-block.selected .template-block-label{background:#2d76d8;color:#fff}.template-sheet[data-preview-state=ready] .template-block:not(.selected) .template-block-label{opacity:.75}
.template-sheet[data-preview-state=ready] .template-block-label{top:0;transform:translateY(-100%)}.template-sheet[data-preview-state=ready] .template-block:not(.selected) .template-block-label{opacity:0}.template-sheet[data-preview-state=ready] .template-block:hover .template-block-label,.template-sheet[data-preview-state=ready] .template-block:focus-visible .template-block-label{opacity:1}
.template-resize{position:absolute;right:-5px;bottom:-5px;width:12px;height:12px;border:2px solid #fff;background:#2d76d8;box-shadow:0 0 0 1px #2d76d8;cursor:nwse-resize;z-index:3;border-radius:2px}.template-block:not(.selected) .template-resize{display:none}.template-guide{position:absolute;z-index:5;pointer-events:none;background:#d55bbc}.template-guide[hidden]{display:none}.template-guide-x{height:100%;top:0;width:1px}.template-guide-y{width:100%;left:0;height:1px}
.template-inspector{padding:17px;border:1px solid var(--line);border-radius:9px;background:#ffffff03;display:flex;flex-direction:column;gap:16px}.template-inspector>label,.template-measurements label{display:flex;flex-direction:column;gap:7px;font-size:12px;line-height:1.5}.template-inspector .settings-check{flex-direction:row;align-items:center;font-size:12px}.template-measurements{display:grid;grid-template-columns:1fr 1fr;gap:14px 12px}.settings-panel .template-inspector input:not([type=checkbox]),.settings-panel .template-inspector select{font-size:12px;padding:8px 9px}.template-inspector .settings-help{margin:0;font-size:12px}.template-keyboard-help{margin-bottom:0!important;font-size:12px!important}
@media(max-width:1250px){.template-workspace{grid-template-columns:minmax(0,1fr) 210px;gap:15px}.template-inspector{padding:13px}.template-block-label{font-size:9px;padding:2px 3px}}
@media(max-width:1000px){.template-workspace{grid-template-columns:1fr}.template-inspector{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.template-inspector .settings-help{grid-column:1/-1}.template-sheet{max-width:600px;margin:auto}.template-inspector .template-measurements{grid-row:span 2}.template-visual-heading>div{flex-basis:100%}.template-block-label{font-size:10px}}
@media(max-width:550px){.template-inspector{grid-template-columns:1fr}.template-inspector .template-measurements{grid-row:auto}.template-inspector .settings-help{grid-column:auto}.template-visual-heading>div{min-width:0}.template-visual-heading button{flex:1}.template-block-label{font-size:8px}.template-header-boundary{font-size:8px}}

.access-template-tools,.role-template-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0}.role-template-card{border:1px solid var(--line);border-radius:12px;padding:18px;margin:16px 0;min-width:0}.role-template-card h3{margin:0 0 10px;overflow-wrap:anywhere}.role-template-card p{white-space:pre-wrap;overflow-wrap:anywhere}.role-template-card .badge{margin-left:8px}#roleTemplateForm>h3{margin-top:24px}#roleTemplateForm .access-editor{margin-top:22px}

/* Assistant permissions stay compact as supported capabilities grow. */
#settingsChatGPT .chatgpt-master{padding:17px;border:1px solid var(--line);border-radius:9px;margin-bottom:25px;background:#3563a80a}
#settingsChatGPT .chatgpt-access-tools{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;margin:18px 0 12px}
#settingsChatGPT .chatgpt-search-label{display:flex;flex:1;min-width:210px;flex-direction:column;gap:8px;font-size:12px}
#settingsChatGPT .chatgpt-search-label input{width:100%;box-sizing:border-box}
#settingsChatGPT .chatgpt-selected-filter{display:flex;align-items:center;gap:8px;font-size:12px;min-height:40px}
#settingsChatGPT .chatgpt-access-tools>.settings-help{margin:0 0 10px;font-size:11px}
#settingsChatGPT .chatgpt-presets{margin-bottom:20px}
#settingsChatGPT .chatgpt-area{border:1px solid var(--line);border-radius:10px;margin:12px 0;overflow:hidden}
#settingsChatGPT .chatgpt-area>summary{cursor:pointer;padding:16px;line-height:1.5;overflow-wrap:anywhere}
#settingsChatGPT .chatgpt-area>summary>strong{font-size:14px;margin-right:12px}
#settingsChatGPT .chatgpt-area-count{display:inline-block;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
#settingsChatGPT .chatgpt-area-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px;padding:0 16px 12px;border-top:1px solid var(--line)}
#settingsChatGPT .chatgpt-area-column{min-width:0}
#settingsChatGPT .chatgpt-area-column:only-child{grid-column:1/-1}
#settingsChatGPT .chatgpt-area-column h4{margin:15px 0 4px;font-size:12px;color:var(--muted)}
#settingsChatGPT .chatgpt-capability{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:start;gap:10px;padding:13px 0;margin:0;border-bottom:1px solid var(--line);line-height:1.5;overflow-wrap:anywhere}
#settingsChatGPT .chatgpt-capability:last-child{border-bottom:0}
#settingsChatGPT .chatgpt-capability input{margin-top:3px}
#settingsChatGPT .chatgpt-capability small{font-size:11px;color:var(--muted)}
#settingsChatGPT .chatgpt-operation{display:inline-block;margin-left:8px;font-size:10px;color:var(--muted);border:1px solid var(--line);border-radius:4px;padding:0 5px;vertical-align:middle}
#settingsChatGPT .chatgpt-capability[hidden],#settingsChatGPT .chatgpt-area[hidden],#settingsChatGPT #chatgptNoMatches[hidden]{display:none}
@media(max-width:850px){#settingsChatGPT .chatgpt-area-columns{grid-template-columns:1fr}}
@media(max-width:550px){#settingsChatGPT .chatgpt-search-label{min-width:0;flex-basis:100%}#settingsChatGPT .chatgpt-access-tools{gap:8px 12px}#settingsChatGPT .chatgpt-presets button{flex:1 1 45%}#settingsChatGPT .chatgpt-area>summary{padding:13px}#settingsChatGPT .chatgpt-area-columns{padding:0 13px 8px;gap:0}}

/* Compact resource bundles retain the original individual controls in Customize. */
#settingsChatGPT .chatgpt-access-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:26px 0 16px}
#settingsChatGPT .chatgpt-access-heading h3{margin:0 0 6px}
#settingsChatGPT .chatgpt-access-heading p{margin:0;font-size:12px}
#settingsChatGPT .chatgpt-presets{margin:0;display:flex;align-items:center;gap:7px;flex-wrap:wrap}
#settingsChatGPT .chatgpt-presets>button{padding:8px 11px;font-size:12px}
#settingsChatGPT .chatgpt-presets details{position:relative;font-size:12px}
#settingsChatGPT .chatgpt-presets summary{cursor:pointer;padding:9px 8px;color:var(--muted)}
#settingsChatGPT .chatgpt-presets details[open]{border:1px solid var(--line);border-radius:7px;padding:0 6px}
#settingsChatGPT .chatgpt-presets details button{display:block;margin:6px 0;font-size:11px;white-space:normal}
#settingsChatGPT .chatgpt-access-tools{margin:12px 0 17px;gap:12px}
#settingsChatGPT .chatgpt-search-label{gap:6px;font-size:11px}
#settingsChatGPT .chatgpt-search-label input{font-size:12px;padding:9px 12px}
.settings-reference-section>h3{margin-top:0}
.settings-reference-search{display:flex;flex-direction:column;gap:7px;max-width:420px;margin:22px 0 14px}
.settings-reference-scroll{max-height:410px;overflow:auto;border:1px solid var(--line);border-radius:9px}
.settings-reference-table{width:100%;table-layout:fixed;white-space:normal;margin:0}
.settings-reference-table thead th{position:sticky;top:0;z-index:1;background:var(--soft);font-size:11px;text-transform:none;letter-spacing:0;text-align:left;padding:13px 15px}
.settings-reference-table thead th:first-child{width:42%}
.settings-reference-table tbody th,.settings-reference-table td{padding:11px 15px;text-align:left;border-bottom:1px solid var(--line);vertical-align:middle}
.settings-reference-table tbody th{font-size:12px;font-weight:500;text-transform:none;letter-spacing:0;overflow-wrap:anywhere}
.settings-reference-table input{width:100%;min-width:0;font-family:Consolas,monospace;text-transform:uppercase}
.settings-reference-table output{font-family:Consolas,monospace;font-size:12px;overflow-wrap:anywhere}
.settings-reference-table tr[hidden]{display:none}
.settings-reference-table tr:last-child th,.settings-reference-table tr:last-child td{border-bottom:0}
.settings-reference-labour{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;padding:18px 0;border-top:1px solid var(--line);margin-top:20px}
.settings-reference-labour label{display:flex;flex-direction:column;gap:8px}
.settings-reference-labour small{display:block;color:var(--muted);font-size:11px;margin-top:7px}
.settings-reference-labour>div>span{display:block;font-size:12px;margin-bottom:12px;color:var(--muted)}
.settings-reference-labour output{font-family:Consolas,monospace;font-size:15px}
.settings-product-more{border-top:1px solid var(--line);padding:16px 0;margin-top:12px}
.settings-product-more>summary{cursor:pointer;font-size:13px;font-weight:600;padding:2px 0}
.settings-product-more[open]>summary{margin-bottom:18px}
/* Versioned category manager: one selected editor, separate global defaults. */
.category-manager{min-width:0;margin-bottom:24px}.category-manager *{box-sizing:border-box}
.category-manager-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px}.category-manager-heading h3{margin:0;font-size:16px}.category-manager-heading .settings-help{margin:6px 0 0}.category-manager-heading>span{font-size:11px;color:var(--muted);white-space:nowrap}
.category-manager-layout{display:grid;grid-template-columns:205px minmax(0,1fr);border:1px solid var(--line);border-radius:10px;overflow:hidden;min-height:390px}.category-manager-sidebar{padding:14px 11px;background:var(--soft);border-right:1px solid var(--line);min-width:0}.category-manager-list-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:12px}.category-manager-list-head strong{font-size:12px}.category-manager button{font-size:11px;min-height:32px;line-height:1.4;padding:6px 9px;max-width:100%;white-space:normal}.category-manager label{display:flex;flex-direction:column;gap:6px;font-size:11px;min-width:0}.category-manager input,.category-manager select{width:100%;min-width:0;max-width:100%}.category-manager-search input{font-size:12px}.category-manager-archived{flex-direction:row!important;align-items:center;margin:10px 0;color:var(--muted)}.category-manager-archived input{width:auto!important;flex:none}.category-manager-add{display:grid;gap:8px;padding:10px 0;border-bottom:1px solid var(--line);margin-bottom:10px}
.category-manager-directory{max-height:490px;overflow:auto;display:grid;align-content:start;gap:3px;min-height:100px}.category-manager-directory>button{display:flex;align-items:center;gap:8px;text-align:left;border:0;background:transparent;width:100%;padding:8px 6px;min-height:47px}.category-manager-directory>button[aria-pressed=true]{background:var(--panel);box-shadow:inset 3px 0 var(--blue);border-radius:5px}.category-manager-directory>button>span:nth-child(2){flex:1;min-width:0}.category-manager-directory strong{display:block;font-size:12px;overflow-wrap:anywhere}.category-manager-directory small{display:block;font-size:10px;color:var(--muted);margin-top:2px}.category-manager-small-art{width:30px;height:30px;flex:none;background:var(--panel);border-radius:5px;overflow:hidden}.category-manager-small-art .product-visual{width:100%;height:100%}.category-manager-count{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums;flex:none}
.category-manager-pagination{display:flex;align-items:center;justify-content:space-between;gap:7px;padding-top:12px;font-size:11px;color:var(--muted)}.category-manager-pagination button{font-size:10px;min-height:29px;padding:5px 7px}.category-manager-detail{padding:19px 20px;min-width:0}.category-manager-selected{display:flex;align-items:center;gap:10px;margin-bottom:16px}.category-manager-selected>div:nth-child(2){min-width:0;flex:1}.category-manager-selected h4{font-size:16px;margin:0;overflow-wrap:anywhere}.category-manager-selected small{display:block;margin-top:4px;color:var(--muted);font-size:11px}.category-manager-thumb{width:45px;height:45px;flex:none;border:1px solid var(--line);border-radius:7px;overflow:hidden}.category-manager-thumb .product-visual{width:100%;height:100%}.category-manager-refresh{font-size:10px!important}.category-manager-tabs{display:flex;gap:5px;border-bottom:1px solid var(--line);padding-bottom:8px;margin-bottom:18px}.category-manager-tabs button{border:0;background:transparent;min-height:30px;padding:5px 11px}.category-manager-tabs button[aria-pressed=true]{background:var(--soft);color:var(--blue);border-radius:5px}.category-manager-fields{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:15px}.category-manager label>small{color:var(--muted);font-size:10px}.category-manager .settings-help{font-size:11px;line-height:1.6}.category-manager-subhead{display:flex;justify-content:space-between;align-items:center;margin:24px 0 9px}.category-manager-subhead h4{margin:0;font-size:12px}.category-manager-subhead small{font-size:10px;color:var(--muted)}.category-manager-children{list-style:none;padding:0;margin:0 0 12px}.category-manager-children li{display:flex;justify-content:space-between;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.category-manager-children li>div:first-child{flex:1;min-width:0;overflow-wrap:anywhere}.category-manager-children strong{font-size:12px}.category-manager-children small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.category-manager-children li>div:last-child{display:flex;gap:5px;flex-wrap:wrap}.category-manager-children button{font-size:10px;min-height:28px;padding:4px 7px}.category-manager-add-child{display:flex;gap:8px}.category-manager-add-child input{flex:1}.category-manager-add-child button{flex:none}.category-manager-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);margin-top:22px;padding-top:14px}.category-manager-footer>span{font-size:10px;color:var(--muted)}.category-manager-footer>div{display:flex;gap:7px;flex-wrap:wrap}.category-manager-management{display:flex;flex-wrap:wrap;gap:7px;margin-top:19px}.category-manager-management button{font-size:10px}.category-manager-picture{display:grid;grid-template-columns:130px minmax(0,1fr);gap:20px;align-items:start}.category-manager-art{width:130px;height:130px;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--soft)}.category-manager-art .product-visual{width:100%;height:100%}.category-manager-picture>div:last-child{display:grid;gap:13px;min-width:0}.category-manager-upload input{font-size:10px}.category-manager-paste{border:1px dashed var(--line);border-radius:6px;padding:9px;color:var(--muted);font-size:11px;cursor:copy}.category-manager-paste:focus{outline:2px solid var(--blue);outline-offset:2px}.category-manager-picture button{justify-self:start}
.category-manager-items-head{display:flex;gap:8px;align-items:flex-end}.category-manager-items-head label{flex:1}.category-manager-items{margin-top:14px;max-height:400px;overflow:auto}.category-manager-items>div{padding:11px 0;border-bottom:1px solid var(--line)}.category-manager-items strong{display:block;font-size:12px;overflow-wrap:anywhere}.category-manager-items small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.category-manager-empty{padding:50px 12px;text-align:center;color:var(--muted);font-size:12px}.category-manager-review{max-width:580px}.category-manager-review h4{font-size:16px;margin:0 0 15px}.category-manager-review label{margin:15px 0}.category-manager-review dl{display:flex;gap:30px;background:var(--soft);padding:14px;border-radius:7px;margin:18px 0}.category-manager-review dt{font-size:11px;color:var(--muted)}.category-manager-review dd{font-size:20px;margin:5px 0 0}.category-manager-review-actions,.category-manager-save-review{display:flex;gap:8px;justify-content:flex-end;margin-top:18px}.category-manager-save-review{margin:0 0 15px}
.settings-product-global{border-top:1px solid var(--line);padding-top:17px}.settings-product-global>summary{font-size:14px;font-weight:600;cursor:pointer}.settings-product-global>form{margin-top:18px}.settings-product-global>.settings-help{margin-top:10px}
@media(max-width:1100px){.category-manager-layout{grid-template-columns:180px minmax(0,1fr)}.category-manager-detail{padding:17px 15px}.category-manager-refresh{max-width:75px!important}}
@media(max-width:760px){.category-manager-layout{grid-template-columns:minmax(0,1fr)}.category-manager-sidebar{border-right:0;border-bottom:1px solid var(--line);padding:13px}.category-manager-directory{max-height:210px;min-height:0}.category-manager-directory>button{min-height:43px}.category-manager-heading{flex-wrap:wrap;gap:7px}.category-manager-heading>span{margin-bottom:5px}.category-manager-picture{grid-template-columns:95px minmax(0,1fr);gap:13px}.category-manager-art{width:95px;height:95px}.category-manager-selected{flex-wrap:wrap}.category-manager-refresh{max-width:none!important}.category-manager-fields{grid-template-columns:minmax(0,1fr)}.category-manager-footer{align-items:flex-start;flex-direction:column}.category-manager-footer>div{width:100%;justify-content:flex-end}.category-manager-children li{align-items:flex-start}.category-manager-children li>div:last-child{justify-content:flex-end;max-width:130px}.category-manager-add-child{flex-wrap:wrap}.category-manager-add-child input{flex-basis:100%}.category-manager-add-child button{margin-left:auto}.category-manager-items-head{flex-wrap:wrap}.category-manager-picture input[type=file]{font-size:10px}.category-manager-review dl{gap:17px;flex-wrap:wrap}}
@media(max-width:420px){.category-manager-detail{padding:15px 12px}.category-manager-picture{grid-template-columns:minmax(0,1fr)}.category-manager-art{width:105px;height:105px}.category-manager-tabs{gap:2px}.category-manager-tabs button{padding:5px 9px}.category-manager-selected h4{font-size:14px}.category-manager-selected>div:nth-child(2){min-width:110px}.category-manager-children li{flex-direction:column}.category-manager-children li>div:last-child{max-width:none;align-self:flex-end}.category-manager-footer>div button{flex:1}.category-manager-review-actions button{flex:1}}

@media(max-width:550px){.settings-reference-table thead th,.settings-reference-table tbody th,.settings-reference-table td{padding:10px 8px}.settings-reference-table thead th:first-child{width:38%}.settings-reference-table output{font-size:11px}.settings-reference-table input{font-size:12px;padding:9px 7px}.settings-reference-labour{gap:15px}.settings-reference-search{max-width:none}}
#settingsChatGPT .chatgpt-selected-filter{font-size:11px}
#settingsChatGPT .chatgpt-permission-layout{display:grid;grid-template-columns:185px minmax(0,1fr);border:1px solid var(--line);border-radius:10px;overflow:hidden}
#settingsChatGPT .chatgpt-area-nav{padding:14px 9px;background:#808c9c08;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:4px;align-self:stretch}
#settingsChatGPT .chatgpt-area-nav>span{font-size:9px;text-transform:uppercase;letter-spacing:1px;color:var(--muted);padding:4px 10px 12px}
#settingsChatGPT .chatgpt-area-nav button{text-align:left;border-color:transparent;background:transparent;white-space:normal;color:var(--muted);font-size:12px;font-weight:500;padding:12px 10px;line-height:1.5}
#settingsChatGPT .chatgpt-area-nav button.selected{color:var(--ink);background:#3563a825;border-color:#5b83b94d;font-weight:600}
#settingsChatGPT .chatgpt-area-nav button:hover{background:#3563a818}
#settingsChatGPT .chatgpt-area-content{padding:19px 21px;min-width:0}
#settingsChatGPT .chatgpt-area{border:0;border-radius:0;margin:0;overflow:visible}
#settingsChatGPT .chatgpt-area+.chatgpt-area{border-top:1px solid var(--line);padding-top:22px;margin-top:23px}
#settingsChatGPT .chatgpt-area[hidden]+.chatgpt-area{border-top:0;padding-top:0;margin-top:0}
#settingsChatGPT .chatgpt-area-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:22px}
#settingsChatGPT .chatgpt-area-heading h4{margin:0;font-size:17px;font-weight:600}
#settingsChatGPT .chatgpt-area-count{font-size:10px;white-space:normal;line-height:1.5;text-align:right}
#settingsChatGPT .chatgpt-table-scroll{overflow-x:auto}
#settingsChatGPT .chatgpt-permission-table{table-layout:fixed;width:100%;white-space:normal;min-width:490px}
#settingsChatGPT .chatgpt-permission-table thead th{text-align:center;font-size:10px;letter-spacing:0;text-transform:none;padding:0 5px 12px;background:transparent}
#settingsChatGPT .chatgpt-permission-table thead th:first-child{width:40%;text-align:left;padding-left:0}
#settingsChatGPT .chatgpt-permission-table thead th:last-child{width:23%}
#settingsChatGPT .chatgpt-permission-table tbody th,#settingsChatGPT .chatgpt-permission-table td{padding:18px 5px;border-bottom:1px solid var(--line);background:transparent;vertical-align:middle;text-transform:none;letter-spacing:0}
#settingsChatGPT .chatgpt-permission-table tbody th{font-size:12px;text-align:left;padding-left:0;font-weight:500}
#settingsChatGPT .chatgpt-permission-table tbody th strong{font-size:12px;color:var(--ink);font-weight:600}
#settingsChatGPT .chatgpt-permission-table tbody th small{display:block;font-size:10px;color:var(--muted);line-height:1.5;margin-top:5px;font-weight:400}
#settingsChatGPT .chatgpt-permission-table td{text-align:center}
#settingsChatGPT .chatgpt-permission-table td:last-child{text-align:right;padding-right:0}
#settingsChatGPT .chatgpt-permission-table tr:last-child td,#settingsChatGPT .chatgpt-permission-table tr:last-child th{border-bottom:0}
#settingsChatGPT .chatgpt-bundle{display:inline-flex;align-items:center;justify-content:center;position:relative;padding:4px;min-height:30px;cursor:pointer}
#settingsChatGPT .chatgpt-bundle input{margin:0;cursor:pointer}
#settingsChatGPT .chatgpt-mixed{position:absolute;top:29px;font-size:9px;color:#c99c50;white-space:nowrap}
#settingsChatGPT .chatgpt-unavailable{color:var(--muted);opacity:.5}
#settingsChatGPT .chatgpt-customize-button{font-size:10px;padding:7px 9px;color:var(--green);white-space:normal}
#settingsChatGPT .chatgpt-supporting{font-size:11px;padding:10px 0;margin:8px 0}
#settingsChatGPT .chatgpt-other{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:17px}
#settingsChatGPT .chatgpt-other>summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 0;list-style:none}
#settingsChatGPT .chatgpt-other>summary:before{content:'◇';font-size:20px;color:#b59b75}
#settingsChatGPT .chatgpt-other>summary:after{content:'⌄';color:var(--muted);font-size:14px}
#settingsChatGPT .chatgpt-other[open]>summary:after{transform:rotate(180deg)}
#settingsChatGPT .chatgpt-other>summary::-webkit-details-marker{display:none}
#settingsChatGPT .chatgpt-other>summary strong{font-size:12px;margin-right:auto}
#settingsChatGPT .chatgpt-other>div{border-top:1px solid var(--line)}
#settingsChatGPT .chatgpt-other .chatgpt-capability strong{font-size:12px}
#settingsChatGPT .chatgpt-other .chatgpt-capability small{font-size:11px}
#settingsChatGPT .chatgpt-custom-dialog{padding:0;border:1px solid var(--line);border-radius:11px;background:var(--soft);color:var(--ink);width:600px;max-width:calc(100vw - 34px);max-height:calc(100vh - 40px);box-shadow:0 24px 90px #0007}
#settingsChatGPT .chatgpt-custom-dialog::backdrop{background:#070c14a8;backdrop-filter:blur(2px)}
#settingsChatGPT .chatgpt-custom-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:20px 23px;border-bottom:1px solid var(--line)}
#settingsChatGPT .chatgpt-custom-dialog>header small{font-size:10px;color:var(--muted)}
#settingsChatGPT .chatgpt-custom-dialog>header h3{font-size:21px;margin:6px 0 0}
#settingsChatGPT .chatgpt-custom-dialog>header button{border:0;padding:4px 8px;font-size:24px;background:transparent;color:var(--muted)}
#settingsChatGPT .chatgpt-custom-body{overflow-y:auto;padding:17px 23px;max-height:calc(100vh - 215px)}
#settingsChatGPT .chatgpt-custom-body>p{font-size:12px;margin:0 0 20px}
#settingsChatGPT .chatgpt-custom-column+section{margin-top:20px;padding-top:15px;border-top:1px solid var(--line)}
#settingsChatGPT .chatgpt-custom-column h4{font-size:13px;margin:0 0 6px}
#settingsChatGPT .chatgpt-custom-dialog .chatgpt-capability strong{font-size:12px}
#settingsChatGPT .chatgpt-custom-dialog .chatgpt-capability small{font-size:11px}
#settingsChatGPT .chatgpt-custom-dialog>footer{display:flex;justify-content:flex-end;padding:13px 23px;border-top:1px solid var(--line)}
#settingsChatGPT .chatgpt-custom-dialog section[hidden],#settingsChatGPT .chatgpt-permission-table tr[hidden],#settingsChatGPT .chatgpt-other[hidden]{display:none}
#settingsChatGPT .chatgpt-connection-setup{border-top:1px solid var(--line);margin-top:26px;padding-top:17px}
#settingsChatGPT .chatgpt-connection-setup>summary{cursor:pointer;font-size:13px;color:var(--muted)}
@media(max-width:1000px){#settingsChatGPT .chatgpt-permission-layout{grid-template-columns:155px minmax(0,1fr)}#settingsChatGPT .chatgpt-area-content{padding:17px 15px}#settingsChatGPT .chatgpt-area-nav button{font-size:11px;padding:10px 8px}}
@media(max-width:750px){#settingsChatGPT .chatgpt-permission-layout{display:block}#settingsChatGPT .chatgpt-area-nav{display:flex;flex-direction:row;overflow-x:auto;border-right:0;border-bottom:1px solid var(--line);padding:9px;gap:5px}#settingsChatGPT .chatgpt-area-nav>span{display:none}#settingsChatGPT .chatgpt-area-nav button{white-space:nowrap;flex-shrink:0}#settingsChatGPT .chatgpt-area-count{font-size:9px}#settingsChatGPT .chatgpt-custom-dialog{max-height:calc(100vh - 22px)}#settingsChatGPT .chatgpt-custom-dialog>header,#settingsChatGPT .chatgpt-custom-body{padding-left:17px;padding-right:17px}}
.category-manager-child-more{position:relative}.category-manager-child-more>summary{font-size:10px;list-style:none;border:1px solid var(--line);border-radius:6px;padding:5px 8px;min-height:28px;cursor:pointer}.category-manager-child-more>summary::-webkit-details-marker{display:none}.category-manager-child-more>div{position:absolute;right:0;top:calc(100% + 4px);z-index:3;display:grid;gap:4px;padding:7px;min-width:155px;border:1px solid var(--line);border-radius:7px;background:var(--panel);box-shadow:0 5px 16px #0002}.category-manager-child-more:not([open])>div{display:none}.category-manager-child-more button{text-align:left;white-space:normal;width:100%}
.category-manager button.category-manager-delete{color:var(--red,#d06666);border-color:var(--red,#a54b4b)}.category-manager-delete-list{padding-left:22px;margin:10px 0 18px}.category-manager-delete-list li{margin:7px 0;font-size:12px;overflow-wrap:anywhere}
/* Personal sidebar editor; all values are drafts until Save my preferences. */
.sidebar-layout-editor{border-top:1px solid var(--line);margin-top:26px;padding-top:20px;min-width:0}
.sidebar-layout-editor h3{margin:0 0 8px}.sidebar-editor-groups{display:grid;gap:14px;margin-top:16px}
.sidebar-editor-group{border:1px solid var(--line);border-radius:10px;padding:14px;min-width:0}
.sidebar-editor-group-head{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.sidebar-editor-group-head>label{flex:1;min-width:140px}
.sidebar-editor-group-head input{width:100%;box-sizing:border-box}.sidebar-editor-controls,.sidebar-editor-actions,.sidebar-editor-page-controls{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.sidebar-editor-controls button,.sidebar-editor-page-controls button{font-size:11px;padding:7px 9px;min-height:32px}
.sidebar-editor-group ul{list-style:none;padding:0;margin:12px 0 0}.sidebar-editor-group li{display:flex;gap:12px;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:11px 0;min-width:0}
.sidebar-editor-group li>strong{font-size:12px;overflow-wrap:anywhere;flex:1;min-width:100px}.sidebar-editor-page-controls select{max-width:190px;min-height:32px;font-size:12px}
.sidebar-editor-pin{display:flex!important;align-items:center;gap:6px;font-size:12px!important;margin:0!important}.sidebar-editor-pin input{width:auto!important;margin:0}
.sidebar-editor-actions{margin-top:16px}.sidebar-editor-status{font-size:12px;color:var(--muted);min-height:1em}.sidebar-layout-tools{flex-wrap:wrap}
.sidebar-editor-page-controls .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){.sidebar-editor-group li{align-items:flex-start;flex-direction:column;gap:8px}.sidebar-editor-page-controls{width:100%}.sidebar-editor-page-controls>label:first-child{flex:1;min-width:120px}.sidebar-editor-page-controls select{max-width:100%;width:100%}.sidebar-editor-controls{width:100%}.sidebar-editor-group{padding:12px}.sidebar-editor-group-head{gap:8px}.sidebar-editor-group-head>label{min-width:0;width:100%}}

/* Settings workspace: compact sections and draft actions that stay in reach. */
.settings-layout{grid-template-columns:205px minmax(0,1fr);gap:22px}.settings-nav{top:14px;gap:3px}.settings-nav button{padding:10px 12px}.settings-nav button strong{margin:0;font-size:13px}.settings-nav button small{font-size:11px;line-height:1.35;margin-top:4px}.settings-panel{padding:22px}.settings-panel-head{margin-bottom:20px}.settings-panel-head h2{font-size:20px}.settings-panel-head p{font-size:12px}.settings-mobile-nav{display:none}.settings-content [hidden]{display:none!important}
.settings-save{position:sticky;bottom:0;z-index:4;background:var(--panel,#20242a);padding:15px 0 3px;box-shadow:0 -8px 12px var(--panel,#20242a)}.settings-save button{min-height:40px}.settings-panel .settings-disclosure{border:1px solid var(--line);border-radius:9px;padding:15px;margin:20px 0}.settings-disclosure>summary{cursor:pointer;font-weight:600;font-size:14px;line-height:1.5}.settings-disclosure[open]>summary{margin-bottom:18px}.settings-company-columns{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(230px,.85fr);gap:24px}.settings-company-columns h3{margin-top:0}.settings-company-preview{min-width:0;padding:16px;border:1px solid var(--line);border-radius:10px;align-self:start;background:#ffffff03}.settings-company-preview>strong{font-size:13px}.settings-paper-header{display:grid;grid-template-columns:1fr .8fr;gap:20px;background:#fff;color:#182534;padding:20px 15px;min-height:200px;border-radius:4px;font-size:10px;overflow-wrap:anywhere}.settings-paper-header strong,.settings-paper-header small{display:block}.settings-paper-header p{white-space:normal;font-size:10px;line-height:1.5;margin:8px 0}.settings-paper-header img{max-width:100px;max-height:45px;object-fit:contain;margin-bottom:12px}.settings-paper-header>div:last-child{padding-top:52px}.settings-paper-header small{font-size:9px;line-height:1.5;color:#526579}
.settings-local-tabs,.settings-terminal-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:20px}.settings-local-tabs button[aria-pressed=true],.settings-terminal-tabs button[aria-selected=true]{background:#3563a83b;border-color:#699ee7}.settings-product-global>p{margin-top:0}.settings-inline-confirm{position:relative;z-index:5;border:1px solid #ae843e;background:var(--panel,#242a32);padding:16px;border-radius:9px;margin:0 0 20px;display:flex;gap:10px;flex-wrap:wrap}.settings-inline-confirm>p{flex-basis:100%;margin:0 0 5px;line-height:1.6}.settings-inline-confirm button{white-space:normal}.settings-product-more{padding:15px 0}.settings-schedule{padding:0;overflow:hidden}.settings-schedule>summary{display:flex;align-items:center;justify-content:space-between;gap:15px;cursor:pointer;padding:17px;list-style-position:inside}.settings-schedule>summary>span{font-size:11px;color:var(--muted);text-align:right;overflow-wrap:anywhere}.settings-schedule>summary strong{overflow-wrap:anywhere;font-size:14px}.settings-schedule>.settings-grid,.settings-schedule>.settings-help,.settings-schedule>.settings-schedule-copy,.settings-schedule>.settings-schedule-days{margin:18px}.settings-schedule>button{margin:0 18px 18px}.settings-schedule-copy{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.settings-schedule-copy>label{display:flex;flex-direction:column;font-size:12px;gap:7px}.settings-schedule-days{display:grid;gap:7px}.settings-schedule-day{display:grid;grid-template-columns:115px minmax(75px,1fr) minmax(75px,1fr) 90px 85px;gap:10px;align-items:end;border-top:1px solid var(--line);padding-top:10px}.settings-schedule-day>label{display:flex;flex-direction:column;gap:5px;font-size:11px;min-width:0}.settings-schedule-day>.settings-day-title,.settings-schedule-day>.settings-check{flex-direction:row;align-items:center;align-self:center}.settings-schedule-day>.settings-day-title{font-size:12px}.settings-panel .settings-schedule-day input:not([type=checkbox]){padding:8px;font-size:12px}.settings-schedule-day input[type=checkbox]{margin:0}.settings-schedule-day .settings-check{font-size:11px;gap:5px}
.role-template-search{display:flex;flex-direction:column;gap:7px;max-width:460px;margin:16px 0}.role-template-card{padding:15px;margin:10px 0}.role-template-card h3{font-size:15px;margin-bottom:6px}.role-template-summary{font-size:12px;color:var(--muted)}.role-template-card .role-template-toolbar{margin-bottom:0}.terminal-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.terminal-overview>*{min-width:0}.terminal-draft-actions{position:sticky;bottom:0;z-index:3;padding:14px 0;background:var(--panel,#20242a);display:flex;gap:10px;flex-wrap:wrap}.settings-pdf-preview{height:94vh;height:94dvh}.chatgpt-area-picker{display:none}.recovery-checkpoint>summary{cursor:pointer;display:flex;flex-wrap:wrap;align-items:center;gap:12px}.recovery-checkpoint>summary>small{margin-left:auto;color:var(--muted)}
@media(max-width:1180px){.settings-company-columns{grid-template-columns:1fr}.settings-company-preview{max-width:540px;width:100%;box-sizing:border-box}.settings-schedule-day{grid-template-columns:102px minmax(65px,1fr) minmax(65px,1fr) 70px 70px;gap:7px}}
@media(max-width:850px){.settings-layout{grid-template-columns:1fr}.settings-nav{display:none}.settings-mobile-nav{display:flex;flex-direction:column;gap:8px;font-size:12px;margin-bottom:16px}.settings-mobile-nav select{width:100%;padding:12px;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:8px}.settings-panel{padding:18px}.settings-schedule-day{grid-template-columns:115px minmax(75px,1fr) minmax(75px,1fr) 90px 80px}.settings-save{padding-bottom:max(10px,env(safe-area-inset-bottom))}.settings-nav+.settings-content{min-width:0}}
@media(max-width:650px){.settings-schedule>summary{align-items:start;flex-direction:column;gap:7px}.settings-schedule>summary>span{text-align:left}.settings-schedule-day{grid-template-columns:1fr 1fr;gap:12px;border:1px solid var(--line);border-radius:8px;padding:12px}.settings-schedule-day>.settings-day-title{grid-column:1/-1}.settings-schedule-day>.settings-check{align-self:end;min-height:38px}.settings-schedule>.settings-grid,.settings-schedule>.settings-help,.settings-schedule>.settings-schedule-copy,.settings-schedule>.settings-schedule-days{margin:13px}.settings-schedule-day>label{font-size:12px}.terminal-overview{grid-template-columns:1fr}.settings-panel-head{gap:10px}.settings-panel-head .settings-scope{font-size:10px}.settings-save{gap:8px}.settings-save>span{flex-basis:100%;margin-bottom:0}.settings-save button{padding:9px;white-space:normal}.settings-company-preview{padding:12px}.settings-paper-header{padding:15px 10px;gap:12px}.settings-inline-confirm button{flex:1}.settings-local-tabs button,.settings-terminal-tabs button{flex:1;padding:9px;font-size:11px}.chatgpt-area-picker{display:flex;flex-direction:column;gap:7px;margin:15px 0}.chatgpt-permission-table thead{display:none}.chatgpt-permission-table tbody tr{display:block;border-bottom:1px solid var(--line);padding:10px 0}.chatgpt-permission-table td{display:flex;justify-content:space-between;gap:12px;border:0;white-space:normal}.chatgpt-permission-table td[data-label]:before{content:attr(data-label);color:var(--muted);font-size:11px}}

.settings-terminal-tabs button[aria-pressed=true]{background:#3563a83b;border-color:#699ee7}.terminal-overview{display:block}.terminal-overview .settings-facts>div{padding:14px;border:1px solid var(--line);border-radius:8px}.terminal-overview .attendance-actions{margin-bottom:18px}.recovery-badges{display:flex;flex-wrap:wrap;gap:7px}.settings-status{font-size:11px;line-height:1.5;border:1px solid var(--line);border-radius:20px;padding:4px 8px}.settings-status.saved{color:#88c7a5;background:#315b4026}.settings-status.attention{color:#e7b85e;background:#6b4f2126}.settings-status.neutral{color:var(--muted)}.recovery-checkpoint{padding:16px}.recovery-checkpoint-details>summary{cursor:pointer;font-size:12px}.recovery-checkpoint-details[open]>summary{margin-bottom:20px}.recovery-technical>summary{cursor:pointer;font-size:12px}.settings-inline-confirm>h3{flex-basis:100%;margin:0}.settings-panel label{overflow-wrap:anywhere}
@media(max-width:650px){#settingsChatGPT .chatgpt-table-scroll{overflow:visible}#settingsChatGPT .chatgpt-permission-table{min-width:0;table-layout:auto}#settingsChatGPT .chatgpt-permission-table th[scope=row]{display:block;width:auto;padding:10px 0;text-align:left}#settingsChatGPT .chatgpt-permission-table td{padding:8px 0}#settingsChatGPT .chatgpt-area-content{min-width:0}.recovery-checkpoint-heading{gap:12px}.recovery-badges{width:100%}}

.pdf-template-more{position:relative;font-size:12px}.pdf-template-more>summary{padding:9px 12px;cursor:pointer;border:1px solid var(--line);border-radius:7px}.pdf-template-more>div{position:absolute;right:0;top:calc(100% + 5px);z-index:6;min-width:190px;padding:8px;display:flex;flex-direction:column;gap:8px;background:var(--panel,#242a32);border:1px solid var(--line);border-radius:8px;box-shadow:0 7px 20px #0005}.pdf-template-more button{white-space:normal;text-align:left;width:100%}.pdf-template-more:has(:focus-visible)>summary{outline:2px solid #699ee7}
@media(max-width:550px){.pdf-template-actions{gap:8px}.pdf-template-more[open]{flex:1 0 100%}.pdf-template-more>div{position:static;min-width:0;max-width:none;margin-top:8px}}
