#settings{padding:38px 42px;max-width:1700px;margin:auto}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}#settings label{margin:15px 0;font-size:12px}#settings h2{font-size:16px}#settings .field-note{font-size:12px;line-height:1.7}.actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:15px 0}.catalog-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:12px 0}.catalog-row span{flex:1}textarea{font:inherit;border:1px solid #dce3d7;border-radius:5px;padding:10px;width:100%}.history-tools{display:grid;grid-template-columns:2fr 1fr 1fr .6fr;gap:15px;margin:20px 0}.preview-tools{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:12px;border-bottom:1px solid var(--line)}.preview-tools select{width:125px}.preview-tools button{padding:7px 10px}#canvas-stage{overflow:auto;max-height:75vh;display:block;text-align:center}#pdf-canvas{max-width:none;display:block;margin:auto}.preview-card:fullscreen{background:#fff;overflow:auto}.preview-card:fullscreen #canvas-stage{height:calc(100vh - 180px);max-height:none}.drive-output{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}.drive-output label{margin:10px 0}.drive-output p{line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}#job-drive-status a{text-decoration:underline}#upload-progress{width:100%;margin:12px 0}@media(max-width:850px){.settings-grid{grid-template-columns:1fr}.history-tools{grid-template-columns:1fr 1fr}#settings{padding:20px 16px}.catalog-row{flex-wrap:wrap}}
.drive-loading{display:flex;align-items:center;gap:10px;color:var(--green,#315b42);font-size:13px}.drive-loading::before,.is-loading::before{content:"";display:inline-block;width:15px;height:15px;flex-shrink:0;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:drive-spin .8s linear infinite}.is-loading::before{margin-right:8px;vertical-align:middle}.drive-loading.hidden{display:none}@keyframes drive-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.drive-loading::before,.is-loading::before{animation:none}}
.mirror-check{display:flex!important;align-items:center;gap:10px;margin:18px 0 10px!important;line-height:1.5}.mirror-check input[type=checkbox]{width:16px!important;height:16px;flex:0 0 16px;margin:0}.mirror-result{border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:16px}
.sample-output-choice{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:16px;background:var(--bg,#f5f7f2);border-radius:6px;margin-bottom:16px}.sample-output-choice label{flex:1;min-width:180px;margin:0}.sample-output-choice a{white-space:nowrap;text-decoration:none}.sample-output-choice .field-note{flex-basis:100%;margin:0;line-height:1.6}.sample-output-choice.hidden{display:none}.preview-tabs{flex-wrap:wrap}
.history-actions{min-width:200px;white-space:nowrap}.history-actions button{padding:6px 0}#job-status .actions{margin-bottom:0}
.history-sources{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:6px}.history-sources a{white-space:nowrap;padding:4px 0}

/* Workspace settings share the studio's paper, ink and forest-green palette. */
#settings{max-width:1420px}
#settings .page-heading{margin-bottom:20px}
.settings-switch,.editor-nav{display:flex;gap:4px;flex-wrap:wrap}
.settings-switch{width:fit-content;padding:4px;background:#e9eee5;border:1px solid #d9e1d5;border-radius:9px;margin:0 0 24px}
.settings-switch button,.editor-nav button,.machine-choice{font:inherit;cursor:pointer}
.settings-switch button{border:0;background:transparent;border-radius:6px;padding:9px 18px;font-size:13px;color:#475849}
.settings-switch button[aria-pressed=true]{background:white;color:#173e32;box-shadow:0 1px 4px #20372020;font-weight:650}
.machine-layout{display:grid;grid-template-columns:minmax(224px,300px) minmax(0,1fr);gap:20px;align-items:start}
.machine-library.card,.machine-editor.card{padding:0;min-width:0;overflow:hidden}
.library-heading,.editor-heading,.editor-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
.library-heading{padding:16px 18px;border-bottom:1px solid var(--line)}
#settings .library-heading h2,#settings .editor-heading h2{margin:0}
#settings .library-heading button{padding:7px 11px;white-space:nowrap}
#preset-catalog{padding:4px 10px 14px}
#preset-catalog h3{font-size:12px;font-weight:600;color:#647360;margin:16px 9px 6px}
.machine-choice{display:grid;width:100%;grid-template-columns:1fr auto;gap:3px 10px;text-align:left;align-items:center;border:1px solid transparent;background:transparent;border-radius:6px;padding:9px;color:#273d32}
.machine-choice:hover{background:#f4f6f1}
.machine-choice[aria-pressed=true]{background:#eaf2e7;border-color:#bfd1b9}
.machine-choice strong{font-size:13px;overflow-wrap:anywhere}
.machine-choice small{grid-column:1;font-size:11px;color:#637365}
.machine-tag{grid-column:2;grid-row:1 / 3;font-size:10px;white-space:nowrap;border:1px solid #d4dfcf;padding:3px 7px;border-radius:20px;background:#f8faf6}
.machine-defaults{padding:14px 18px;margin:0;border-top:1px solid var(--line)}
#settings .machine-defaults summary,#oauth-settings summary{cursor:pointer;font-weight:600}
.editor-heading{padding:20px 24px;background:#173c33;color:#fff}
#settings .editor-heading h2{font-size:24px;color:white;letter-spacing:-.03em;overflow-wrap:anywhere}
.editor-heading p{font-size:12px;color:#ccdecf;margin:0 0 4px}
.editor-actions{display:flex;gap:14px}
.editor-actions .text-button{color:#f2f5ed}
.editor-nav{padding:0 20px;border-bottom:1px solid var(--line)}
.editor-nav button{padding:13px 9px;border:0;border-bottom:2px solid transparent;background:transparent;font-size:13px;color:#54685a}
.editor-nav button[aria-pressed=true]{color:#214d38;border-color:#376747;font-weight:650}
.editor-pane{padding:20px 24px 24px}
.editor-pane h3{font-size:14px;margin:22px 0 12px;color:#233c32}
.editor-pane .field-grid{column-gap:16px;row-gap:12px}
#settings .editor-pane .field-grid>label{margin:0}
#settings .editor-pane .field-grid+.field-grid{margin-top:12px}
#settings .editor-pane>label:first-child{margin-top:0}
.machine-editor.card{overflow:clip}
.editor-footer{position:sticky;bottom:0;z-index:1;padding:14px 24px;border-top:1px solid var(--line);background:#f8faf6}
#machine-save-status{font-size:12px;color:#4e6655}
.machine-editor.is-dirty #machine-save-status{color:#795318}
#settings .field-note{color:#657367;line-height:1.5}
#settings-drive{align-items:start}
.ink-preview{display:flex;border:1px solid var(--line);height:20px;margin-top:12px;border-radius:3px;overflow:hidden}
.ink-preview span{flex:1;min-width:0}
.logo-preview{max-width:180px;max-height:60px}
#machine-mobile-picker{display:none}
.machine-editor .palette-row input:not([type=checkbox]){height:34px;font-size:12px}
#machine-editor [hidden]{display:none}
@media(max-width:900px){
 .machine-layout{grid-template-columns:215px minmax(0,1fr);gap:12px}
 .editor-heading,.editor-pane,.editor-footer{padding-left:16px;padding-right:16px}
}
@media(max-width:720px){
 .machine-layout{grid-template-columns:minmax(0,1fr)}
 #preset-catalog{display:none}
 #settings #machine-mobile-picker{display:flex;margin:14px 18px}
 #settings .machine-library.card{margin-bottom:0}
 .editor-heading{align-items:flex-start}
 .editor-nav{padding:0 8px;gap:0}
 .editor-nav button{font-size:12px;padding:12px 7px}
 .editor-pane .field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .editor-footer{flex-wrap:wrap}
}

.register-options{border:0;margin:12px 0 0;padding:0;min-width:0}
.register-options:disabled{opacity:.56}
#machine-marks-panel>.field-note{margin:0 0 16px}
.ink-palette{margin-top:16px}
