/* Scoped to the web production page; Android keeps its existing presentation. */
html.production-ui body[data-page=production] .workspace{isolation:isolate}
html.production-ui body .production-desk{position:relative;width:100%;height:100%;min-width:0;min-height:0;padding-right:0;box-sizing:border-box}
html.production-ui body .production-desk:has(>.production-bookmarks){padding-right:38px}
html.production-ui body .production-calendar{height:100%;min-height:0;width:100%;background:#fff;border-radius:14px;overflow:clip}
html.production-ui body .production-calendar .jobs-frame{display:block;border:1px solid #d4dfe8!important;border-radius:14px!important;box-sizing:border-box;min-height:0!important;width:100%!important;height:100%!important}
html.production-ui body .production-bookmarks{position:absolute;top:12px;right:0;bottom:12px;width:38px;display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0;padding:0;z-index:3}
html.production-ui body .production-bookmark{flex:0 1 150px;min-height:70px!important;min-width:0;width:38px;padding:10px 6px!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1px solid #cbd8e3;border-left:0;border-radius:0 10px 10px 0;background:#edf3f8;color:#36536b;font-size:13px!important;font-weight:650;cursor:pointer;box-shadow:2px 2px 3px #27486106}
html.production-ui body .production-bookmark>span:last-child{writing-mode:vertical-rl;white-space:nowrap;line-height:1.1}
html.production-ui body .production-bookmark-handle{font-size:20px;line-height:12px;opacity:.65}
html.production-ui body .production-bookmark:hover,html.production-ui body .production-bookmark[aria-expanded=true]{background:#fff2ad;color:#403b22;border-color:#d8c779}
html.production-ui body .production-bookmark:focus-visible{outline:2px solid #577c9b;outline-offset:2px}
html.production-ui body .production-sheet{position:absolute;inset:0 38px 0 auto;width:min(460px,calc(100% - 38px));margin:0;padding:0;display:flex;flex-direction:column;border:1px solid #cedbe6;border-radius:14px 0 0 14px;background:#fff;box-shadow:-12px 0 30px #24415918;z-index:2;box-sizing:border-box;animation:production-sheet-in .18s ease-out}
html.production-ui body .production-sheet[hidden]{display:none!important}
html.production-ui body .production-sheet>header{padding:22px 24px;border-bottom:1px solid #e7edf3;flex:none}
html.production-ui body .production-sheet h2{margin:0;font-size:21px;line-height:1.3;color:#203e54}
html.production-ui body .production-sheet-body{flex:1;min-height:0;padding:20px 24px}
@keyframes production-sheet-in{from{opacity:.5;transform:translateX(32px)}to{opacity:1;transform:translateX(0)}}
@media(max-height:500px){html.production-ui body .production-bookmarks{top:4px;bottom:4px;gap:4px}html.production-ui body .production-bookmark{flex:1 1 0;min-height:40px!important;font-size:11px!important;padding:4px!important;gap:2px}html.production-ui body .production-sheet>header{padding:14px 18px}html.production-ui body .production-sheet h2{font-size:18px}}
@media(prefers-reduced-motion:reduce){html.production-ui body .production-sheet{animation:none}}
.production-ui .production-desk .production-sheet.production-header-sheet{width:min(920px,calc(100% - 38px))}
.production-ui .production-header-sheet .production-sheet-body{display:flex;flex-direction:column;gap:10px;min-height:0}
.production-ui .production-header-launch{flex:none;align-self:flex-start;padding:10px 16px;border:1px solid #d3ac25;border-radius:12px;background:#fff4b1;color:#18364a;font-weight:700}
.production-ui [data-header-editor]{flex:1;min-height:0}
.production-ui [data-header-editor][hidden]{display:none}
.production-ui .production-header-editor{height:100%;min-height:0;display:flex;flex-direction:column;gap:10px}
.production-ui .production-header-editor>p{margin:0;line-height:1.35;font-size:13px}
.production-ui .production-header-search{display:flex;align-items:center;gap:12px;font-size:13px;flex:none}
.production-ui .production-header-search input{flex:1;min-width:0;height:36px;border:1px solid #afc4d8;border-radius:10px;padding:6px 10px}
.production-ui .production-header-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(var(--header-columns,2),minmax(0,1fr));grid-auto-rows:58px;align-content:start;gap:8px}
.production-ui .production-header-option{display:flex;align-items:center;gap:10px;border:1px solid #c4d6e4;border-radius:12px;padding:8px 10px;background:#f6fafc;min-width:0}
.production-ui .production-header-option:has(input:checked){border:2px solid #ac8f1a;background:#fff9d9;padding:7px 9px}
.production-ui .production-header-option input{width:18px;height:18px;flex:none;accent-color:#ac8f1a}
.production-ui .production-header-option span{min-width:0;overflow-wrap:anywhere}
.production-ui .production-header-option b{display:block;font-size:13px;line-height:1.2}
.production-ui .production-header-option small{display:block;font-size:11px;color:#546f85;line-height:1.2}
.production-ui .production-header-editor footer{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:12px;flex:none}
.production-ui .production-header-editor footer button{padding:7px 10px;border:1px solid #afc4d8;border-radius:10px;background:#fff;color:#18364a}
.production-ui .production-header-editor footer [data-header-save]{background:#ffe234;font-weight:700;margin-left:auto}
.production-ui .production-header-pager{display:flex;align-items:center;gap:7px}
.production-ui .production-header-status{min-height:18px;color:#365b75}
@media(max-height:550px){.production-ui .production-header-sheet header{padding:10px 16px}.production-ui .production-header-sheet .production-sheet-body{padding:8px 16px;gap:6px}.production-ui .production-header-editor{gap:6px}.production-ui .production-header-launch{padding:6px 12px}}
.production-ui .production-desk .production-header-option{margin:0;min-height:0;height:auto}
.production-ui .production-desk .production-header-option input{min-height:18px;height:18px;min-width:18px;width:18px;margin:0;padding:0;box-sizing:border-box}
/* Every header field stays in one fitted grid; no pager or save confirmation. */
html.production-ui body .production-sheet.production-header-sheet>header{padding:10px 16px}
.production-ui .production-header-sheet .production-sheet-body{padding:8px 12px;gap:0}
.production-ui .production-header-sheet .production-header-launch{display:none}
.production-ui .production-header-editor{gap:6px}
.production-ui .production-header-editor>p{font-size:11.5px;line-height:1.2;flex:none}
.production-ui .production-header-sheet .production-header-search{margin:0;gap:8px;font-size:11px}
html.production-ui body .production-header-sheet .production-header-search input{height:28px!important;min-height:28px!important;padding:3px 8px;font-size:12px;box-sizing:border-box}
.production-ui .production-header-grid{grid-template-rows:repeat(var(--header-rows,12),minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:2px;align-content:stretch}
.production-ui .production-desk .production-header-option{gap:4px;padding:1px 4px;border-radius:8px;box-sizing:border-box;min-height:0}
.production-ui .production-desk .production-header-option:has(input:checked){padding:0 3px}
.production-ui .production-desk .production-header-option input{min-height:14px;height:14px;min-width:14px;width:14px}
.production-ui .production-header-option b{font-size:var(--header-font,12px);line-height:1.07}
.production-ui .production-header-option small{font-size:calc(var(--header-font,12px) - 1px);line-height:1.07}
.production-ui .production-header-labels-only .production-header-option small{display:none}
.production-ui .production-header-editor footer{gap:6px;font-size:11px}
.production-ui .production-header-editor footer button{min-height:26px;height:26px;padding:3px 7px;font-size:11px}
.production-ui .production-header-editor footer [data-header-retry]{background:#fff4b1}
.production-ui .production-header-status{font-size:11px!important;min-height:14px;line-height:1.15!important}
@media(max-height:550px),(max-width:550px){
 html.production-ui body .production-sheet.production-header-sheet>header{padding:5px 10px}
 html.production-ui body .production-header-sheet h2{font-size:16px}
 .production-ui .production-header-sheet .production-sheet-body{padding:4px 8px}
 .production-ui .production-header-editor{gap:3px}
 .production-ui .production-header-editor>p:not(.production-header-status){display:none}
 html.production-ui body .production-header-sheet .production-header-search input{height:24px!important;min-height:24px!important;font-size:11px}
 .production-ui .production-header-editor footer button{height:22px;min-height:22px;padding:2px 6px}
}

/* Shared web foundation, touch layout only changes presentation. */
.production-sheet>header{display:flex;align-items:center;justify-content:space-between;gap:12px}
[data-production-close]{width:36px;height:36px;min-height:36px;border:1px solid #cad8e3;border-radius:10px;background:#f4f8fb;color:#23465e;font-size:24px}
@media(max-width:700px),(pointer:coarse){
 html.production-ui body .production-desk{display:flex;flex-direction:column;padding:0;gap:6px}
 html.production-ui body .production-desk:has(>.production-bookmarks){padding-right:38px}
html.production-ui body .production-calendar{flex:1;min-height:0;order:2}
 html.production-ui body .production-bookmarks{position:static;width:100%;height:42px;flex:none;order:1;display:flex;flex-direction:row;gap:5px;margin:0}
 html.production-ui body .production-bookmark{flex:1;min-height:42px!important;width:auto;font-size:11px!important;padding:5px!important;border:1px solid #cbd8e3;border-radius:10px;gap:0}
 html.production-ui body .production-bookmark>span:last-child{writing-mode:horizontal-tb;white-space:normal}
 html.production-ui body .production-bookmark-handle{display:none}
 html.production-ui body .production-sheet,html.production-ui body .production-sheet.production-header-sheet{inset:48px 0 0;width:100%;border-radius:12px;z-index:5}
 html.production-ui body .production-sheet>header{padding:8px 12px}
 html.production-ui body .production-sheet-body{padding:10px;overflow:auto;overscroll-behavior:contain}
 html.production-ui body .production-header-grid{flex:none;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:minmax(48px,auto)}
 html.production-ui body .production-header-option b{font-size:12px;line-height:1.25}
 html.production-ui body .production-header-option input{min-height:20px;height:20px;min-width:20px;width:20px}
 html.production-ui body .production-header-editor{height:auto;min-height:100%}
 html.production-ui body .production-header-editor footer{position:sticky;bottom:0;background:#fff;padding:6px 0}
 html.production-ui body .production-header-search input{min-height:40px!important;height:40px!important;font-size:16px}
}

@media(max-width:700px),(pointer:coarse){html.production-ui body .production-desk .production-sheet.production-header-sheet{width:100%}}

@media(max-width:700px),(pointer:coarse){.production-ui .production-desk .production-header-option input{min-height:22px;height:22px;min-width:22px;width:22px}}

/* Header and interface remain separate settings tabs without losing drafts. */
.production-ui .production-settings-tabs{display:flex;flex-wrap:wrap;gap:6px;flex:none;margin-bottom:8px}
.production-ui .production-settings-tabs button{padding:8px 12px;border:1px solid #aac3d5;border-radius:10px;background:#f2f7fc;color:#23465e;font-size:13px}
.production-ui .production-settings-tabs [aria-pressed=true]{background:#fff1a6;border-color:#b99411;font-weight:700}
.production-ui [data-header-editor],.production-ui [data-interface-editor]{flex:1;min-height:0}
.production-ui [data-header-editor][hidden],.production-ui [data-interface-editor][hidden]{display:none!important}
.production-ui .production-interface-editor{display:flex;flex-direction:column;gap:14px;font-size:14px;color:#23465e}
.production-ui .production-interface-editor h3,.production-ui .production-interface-editor p{margin:0;line-height:1.4}
.production-ui .production-background-colors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.production-ui .production-background-colors button{min-height:42px;padding:8px;border:2px solid #b7cbdc;border-radius:12px;background:color-mix(in srgb,var(--swatch) 18%,white);color:#23465e}
.production-ui .production-background-colors [aria-pressed=true]{border-color:#34799f;box-shadow:inset 0 0 0 1px #34799f;font-weight:700}
.production-ui .production-background-custom{display:flex;align-items:center;gap:12px}
.production-ui .production-background-custom input{width:80px;height:42px;min-height:42px;padding:3px;border:1px solid #aac3d5;border-radius:10px}
.production-ui .production-background-sample{background:color-mix(in srgb,var(--swatch,#9ac4e5) 18%,white);border:2px solid #89a3b9;border-radius:22px;text-align:center;padding:24px 10px}
.production-ui .production-interface-editor>button{align-self:flex-start;padding:8px 12px;border:1px solid #aac3d5;border-radius:10px;background:#f2f7fc;color:#23465e}
@media(max-height:550px){.production-ui .production-interface-editor{gap:6px;font-size:12px}.production-ui .production-background-sample{padding:12px}.production-ui .production-settings-tabs button{padding:4px 8px}.production-ui .production-background-colors{gap:4px}}

.production-ui .production-interface-editor{max-width:620px;width:100%;box-sizing:border-box}
