/* Shared control geometry and weekly source alignment. */
*,*::before,*::after{box-sizing:border-box}
input,select,textarea{max-width:100%;min-width:0;box-sizing:border-box}
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select{min-height:44px}
.btn:not(.agenda-edit){min-height:44px;line-height:1.4;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.card,.manager-grid>*,.studio-toolbar .field,.form-compact>*,.weekly-layout>*{min-width:0}
.form-compact{gap:16px}.form-compact label.small{display:block;margin:0 0 8px;line-height:1.5}
.form-compact input[type=file]{width:100%;min-height:48px}
.toggle-row{gap:16px}.toggle-row .row-main{min-width:0}.toggle-row .row-main>strong,.toggle-row .row-main>small{display:block;line-height:1.5}.toggle-row .row-main>small{margin-top:4px}.toggle-row .switch{flex-shrink:0}
.asset{display:flex;flex-direction:column;gap:10px;min-width:0}.asset strong,.asset small{overflow-wrap:anywhere}.asset .asset-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:auto;padding-top:6px}.asset .asset-actions .btn{min-height:40px}
.actions{gap:12px;flex-wrap:wrap}.studio-toolbar{align-items:flex-end;gap:12px}.studio-toolbar .field label{display:block;margin:0 0 8px;line-height:20px}.studio-toolbar select,.studio-toolbar input[type=date],.studio-toolbar>.btn{height:44px;min-height:44px;margin:0}
.studio-section-head{align-items:center;gap:16px}.preview-actions{gap:12px}
#page-weekly .weekly-source:has(>.weekly-source-controls){display:grid!important;grid-template-columns:minmax(260px,1fr) auto!important;gap:16px 24px!important;align-items:end!important}
#page-weekly .weekly-source-copy{min-width:0;align-self:center}
#page-weekly .weekly-source-copy h3{margin:0;line-height:1.4;font-size:17px}
#page-weekly .weekly-source-copy p{margin:8px 0 0;line-height:1.6;font-size:13px}
#page-weekly .weekly-source-controls{display:flex;align-items:flex-end;gap:16px;min-width:0}
#page-weekly .weekly-content-mode{display:flex;flex-direction:column;gap:8px;flex:0 1 300px;min-width:220px;margin:0!important}
#page-weekly .weekly-content-mode label{display:block;margin:0!important;font-size:13px;line-height:20px}
#page-weekly .weekly-content-mode select{display:block;height:44px;min-height:44px;margin:0!important}
#page-weekly .weekly-content-mode small{display:none}
#page-weekly .weekly-source-actions{display:flex;align-self:flex-end;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:0!important}
#page-weekly .weekly-source-actions>.btn{height:44px;min-height:44px;white-space:nowrap;margin:0!important}
#page-weekly #weeklyServerStatus{grid-column:1/-1;line-height:1.5;margin:0!important;font-size:12px}
#page-weekly .weekly-controls{display:flex;flex-direction:column;gap:16px;padding:24px}
#page-weekly .weekly-controls>label{margin:0 0 -8px;line-height:20px}
#page-weekly .weekly-controls>select{height:44px}
#page-weekly .weekly-catalog-search{gap:12px}#page-weekly .weekly-catalog-search label{margin:0 0 -4px;line-height:20px}
#page-weekly .weekly-preview-toolbar{gap:16px}#page-weekly .weekly-preview-toolbar .btn{min-height:44px}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #c4b5fd;outline-offset:3px}
@media(max-width:1200px){#page-weekly .weekly-source:has(>.weekly-source-controls){grid-template-columns:minmax(0,1fr)!important}#page-weekly .weekly-source-controls{flex-wrap:wrap}#page-weekly .weekly-content-mode{flex:1 1 260px;max-width:360px}}
@media(max-width:700px){.manager-grid{grid-template-columns:minmax(0,1fr)}.form-compact{gap:16px}.asset-grid{gap:16px}.studio-toolbar .field{flex:1 1 100%;min-width:0}.studio-toolbar>.btn{flex:1 1 140px}.studio-count{width:100%;margin:4px 0 0}#page-weekly .weekly-source-controls{display:flex;flex-direction:column;align-items:stretch;gap:16px}#page-weekly .weekly-content-mode{width:100%;min-width:0;max-width:none;flex:none}#page-weekly .weekly-source-actions{width:100%;align-self:stretch}#page-weekly .weekly-source-actions>.btn{height:auto;min-height:44px;white-space:normal;flex:1 1 160px}.asset .asset-actions .btn{min-height:44px}}

#page-weekly .weekly-source-controls{flex-wrap:nowrap}#page-weekly .weekly-source-actions{flex:0 0 auto;flex-wrap:nowrap}#page-weekly .weekly-content-mode{flex:0 0 260px}@media(max-width:1200px){#page-weekly .weekly-source-controls{flex-wrap:wrap}#page-weekly .weekly-content-mode{flex:1 1 260px}}@media(max-width:700px){#page-weekly .weekly-content-mode{flex:none}#page-weekly .weekly-source-actions{flex-wrap:wrap}}
