.document-style-panel{margin-top:24px}.document-style-layout{display:grid;grid-template-columns:minmax(260px,1fr) minmax(300px,1fr);gap:28px;align-items:start;margin-top:24px}.document-style-layout>div{min-width:0}.document-style-layout .card-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.document-palettes{border:1px solid #cbd5e1;border-radius:12px;padding:14px;margin:20px 0}.document-palettes legend{font-weight:700;padding:0 6px}.document-palette-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.document-palette{display:flex;gap:9px;align-items:center;text-align:left;min-height:48px;border:1px solid #cbd5e1;border-radius:8px;background:white;color:#0f172a;padding:9px}.document-palette[aria-pressed=true]{outline:2px solid #0f766e;outline-offset:1px;font-weight:700}.document-palette-dot{flex:0 0 20px;width:20px;height:20px;border-radius:50%}.document-paper{background:white;border:1px solid #b8c4d2;border-radius:4px;padding:20px;box-shadow:0 8px 24px #0f172a0d;color:#000;font-family:Georgia,serif;font-size:12px;overflow-wrap:anywhere}.document-preview-logos{display:grid;grid-template-columns:2fr 1fr 1fr 2fr;align-items:center;gap:10px;min-height:60px}.document-logo-slot{display:flex;align-items:center;justify-content:center;min-height:40px;font-family:Arial,sans-serif;color:#475569;font-size:10px;text-align:center}.document-logo-slot img{max-width:100%;width:auto;height:auto;max-height:65px;object-fit:contain}.document-legend{text-align:center;font-size:11px;min-height:15px}.document-preview-profile{border:1px solid #b8c4d2;padding:10px;margin:14px 0}.document-paper .document-preview-title{background:var(--doc-primary);color:var(--doc-on-primary);padding:10px;text-align:center;font-family:Georgia,serif;font-size:13px;margin:0}.document-preview-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 20px}.document-preview-columns>div{border:1px solid #b8c4d2;background:var(--doc-pale)}.document-preview-columns strong{display:block;background:var(--doc-soft);color:#000;padding:9px;font-size:10px}.document-preview-columns p{padding:9px;font-size:12px;line-height:1.5}.document-brand-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:22px 0}.document-brand-slot{min-width:0;padding:16px;background:#f8fafc;border:1px solid #cbd5e1;border-radius:12px}.document-brand-slot h3{font-size:15px;min-height:40px}.document-brand-slot .document-logo-slot{height:80px}.document-brand-slot input[type=file]{width:100%;font-size:12px}.document-brand-slot button{margin-top:12px}.document-version{padding:18px 0;border-bottom:1px solid #cbd5e1}.document-version-history{margin-top:24px}.document-style-status{margin-top:16px}.document-style-panel input[type=file]{max-width:100%}
@media(max-width:1100px){.document-style-layout{grid-template-columns:minmax(0,1fr)}.document-brand-slots{grid-template-columns:minmax(0,1fr)}}@media(max-width:650px){.setup-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.document-paper{padding:12px}.document-palette-grid{grid-template-columns:minmax(0,1fr)}.document-preview-columns strong{padding:6px;font-size:9px}.document-preview-columns p{padding:6px;font-size:11px}.document-style-layout{gap:20px}}

.school-edit-card{margin-top:16px}

.document-palette-grid{grid-auto-rows:56px}.document-palette{height:56px;white-space:nowrap;justify-content:flex-start}.document-paper,.document-preview-profile,.document-preview-columns>div{border-color:var(--doc-border,var(--doc-primary,#1e40af))}

.activity-example{margin:16px 0}.activity-example img{display:block;width:100%;max-width:600px;height:auto;margin:14px 0;border:1px solid #cbd5e1;border-radius:10px}.activity-example-gallery>section{margin:24px 0;padding-top:16px;border-top:1px solid #e2e8f0}

.document-preview-logos{grid-template-columns:3.35fr 1.1fr 1.45fr 4.1fr}

.document-preview-logos{grid-template-columns:minmax(0,3.35fr) minmax(44px,1.1fr) minmax(0,1.45fr) minmax(0,4.1fr);gap:8px}.document-logo-slot{overflow-wrap:normal}

/* R289-VISUAL-02 · Palette grid owns its spacing; no adjacent-button offset. */
.document-palette-grid{align-items:stretch}
.document-palette-grid>.document-palette{margin:0;width:100%;min-width:0;white-space:normal}
.document-preview-logos>.document-logo-slot:nth-child(1) img{max-height:72px}
.document-preview-logos>.document-logo-slot:nth-child(2) img{max-height:82px}
.document-preview-logos>.document-logo-slot:nth-child(3) img{max-height:48px}
.document-preview-logos>.document-logo-slot:nth-child(4) img{max-height:58px}

/* R289-ADMIN-POLISH-15: same upload language and controls as the teacher. */
.admin-logo-editors{align-items:stretch}
.admin-logo-editors>.document-brand-slot{display:flex;flex-direction:column;gap:12px;margin:0;background:#f8fbfa;border-color:#dce8e4;border-radius:14px}
.admin-logo-editors>.document-brand-slot>h3{margin:0;line-height:1.5;min-height:3em}
.admin-logo-editors>.document-brand-slot>p{margin:0;line-height:1.6}
.admin-logo-editors .school-logo-drop{flex:1;flex-direction:column;align-items:stretch;gap:14px;text-align:center}
.admin-logo-editors .school-logo-current{flex-basis:auto}
.admin-logo-editors .school-logo-current img{width:120px;height:90px}
.admin-logo-editors .school-logo-description .card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0 0}
.admin-logo-editors .school-logo-description button{width:100%;margin:0;min-height:44px;padding:10px 8px;white-space:normal;line-height:1.4}
.admin-logo-editors .school-logo-description .school-logo-pick:only-child{grid-column:1/-1}
.admin-logo-editors .school-logo-description .school-logo-pick:has(+[hidden]){grid-column:1/-1}
.admin-logo-editors .document-style-status{font-size:13px;line-height:1.5;min-height:0;overflow-wrap:anywhere}
@media(max-width:1100px){.admin-logo-editors>.document-brand-slot>h3{min-height:0}}
