/* Shared layout refinement: readable controls, responsive navigation and footer. */
header{position:relative;z-index:40;min-height:88px;height:auto;gap:24px;padding-block:18px}header nav{gap:6px;align-items:center}header nav a{padding:10px 12px;border-radius:10px;font-size:14px;line-height:1.3}header nav a:hover,header nav a[aria-current=page]{background:var(--soft);color:var(--ink)}header nav a[aria-current=page]:after{display:none}header .logo{flex-shrink:0}header .actions{margin-left:auto;flex-shrink:0}header .logo small{letter-spacing:.08em}
:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #bd7b21;outline-offset:4px}button,input,select,textarea{font:inherit}.toolbar button,.options select,.options input:not([type=checkbox]),.field-grid input{min-height:44px}.options label,.editors label{font-size:14px!important;line-height:1.5}.options input,.options select,.options textarea{font-size:16px!important}.options input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent)}.editors textarea{font-size:15px!important;line-height:1.65!important}.workbench{border:1px solid var(--line);box-shadow:0 10px 35px #173e2e08}.workbench-top{gap:12px;flex-wrap:wrap}.toolbar{flex-wrap:wrap;gap:10px}.toolbar button{font-size:14px!important}.toolbar .primary{background:var(--accent);color:#fff;border-color:var(--accent);box-shadow:none}.dropzone{padding:24px;border-style:dashed}.dropzone:focus-within{outline:3px solid #bd7b21;outline-offset:3px}.result-panel{border-radius:16px;padding:20px}.prose{line-height:1.8}.prose p,.prose li{max-width:78ch}.card{transition:border-color .15s ease,box-shadow .15s ease}.card:hover{border-color:var(--accent);box-shadow:0 8px 24px #173e2e0c}.card p{font-size:14px!important;line-height:1.65}.studio-options details{background:var(--panel);border:1px solid var(--line);border-radius:14px;overflow:hidden}.studio-options summary{padding:16px;cursor:pointer;font-size:15px;font-weight:650}.studio-fields{gap:16px;padding:16px}.studio-toolbar{background:var(--soft);border-color:var(--line)}.studio-toolbar h2,.studio-toolbar p{color:var(--ink)}.studio-toolbar button,.studio-recipe{background:var(--accent);color:#fff}.studio-presets button{min-height:44px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:10px 14px}.studio-presets button:hover{border-color:var(--accent)}
.site-footer{margin-top:56px;padding:56px 0 24px;background:var(--panel);border-top:1px solid var(--line)}.footer-layout{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:36px;max-width:1416px;margin:auto;padding-inline:32px}.footer-layout nav{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.footer-layout nav h2{font-size:12px;text-transform:uppercase;letter-spacing:.12em;margin:4px 0 12px;color:var(--muted)}.footer-layout nav a{font-size:14px;line-height:1.5;padding-block:5px;color:var(--ink);text-decoration:none}.footer-layout nav a:hover{text-decoration:underline;text-underline-offset:5px}.footer-brand p{line-height:1.7;color:var(--muted);max-width:25ch}.footer-start{display:inline-flex;gap:16px;padding:12px 0;font-weight:650;color:var(--ink)}.footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:1352px;margin:36px auto 0;padding:22px 0 0;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.footer-bottom a{color:var(--ink)}
@media(min-width:1151px){header nav{display:flex!important}header #menu{display:none!important}}
@media(max-width:1150px){header{flex-wrap:wrap;padding-inline:24px;gap:16px}header #menu{display:inline-flex!important;align-items:center;justify-content:center;min-width:44px;min-height:44px}header nav{display:none!important;order:3;width:100%;position:static!important;flex-wrap:wrap;background:var(--panel);padding:12px;border:1px solid var(--line);border-radius:14px;box-shadow:none}header nav.open{display:flex!important}header nav a{flex:1 0 140px;min-height:44px}.footer-bottom{margin-inline:32px}.footer-layout{gap:24px}.logo small{display:none}}
@media(max-width:700px){header{padding-inline:16px}header .logo{font-size:24px}header .actions{gap:6px}.global-search-link{font-size:0!important}.global-search-link:before{content:'Search';font-size:13px}.global-search-link kbd{display:none}.footer-layout{grid-template-columns:1fr 1fr;padding-inline:24px}.footer-brand{grid-column:1/-1}.footer-bottom{margin-inline:24px;flex-wrap:wrap}.footer-bottom span:nth-child(2){display:none}.workbench,.tool-layout .workbench{padding:16px!important}.studio-fields{grid-template-columns:minmax(0,1fr)}.toolbar .primary{flex:1 1 100%}.options{padding:12px}.editors>div+div{padding-left:0;border-left:0}.site-footer{margin-top:32px}.studio-toolbar>div{gap:8px}.studio-toolbar button{flex:1 1 120px}.studio-recipe{width:100%}}
@media(prefers-reduced-motion:reduce){.card{transition:none}html{scroll-behavior:auto}}
@media(forced-colors:active){button,.card,.workbench,.studio-options details{border:1px solid ButtonText}}

html[data-theme=dark] .toolbar .primary,html[data-theme=dark] .studio-toolbar button,html[data-theme=dark] .studio-recipe{color:#10291e}
