/* Settings only: neutral studio chrome independent of customer artwork colors. */
#settingsScreen.ms {background:#fcfbf8;color:#162035;color-scheme:light;font:14px/1.5 Montserrat,system-ui,sans-serif;overflow:auto;--dark:#fcfbf8;--off:#162035;--muted:#526078;--gold:#a57927;--gold2:#926514;--panel:#fff;--line:#e0e4e8;}
#settingsScreen.ms [hidden]{display:none!important}
.ms *{box-sizing:border-box}
#settingsScreen.ms .settings-inner{width:min(1680px,100%);max-width:none;margin:auto;padding:26px 30px 36px}
#settingsScreen.ms .settings-kopf{margin:0 0 18px;padding:0 0 18px;border-color:#e5e6e8;gap:18px}
#settingsScreen.ms .settings-kopf h2{font-size:32px;letter-spacing:-.04em;color:#162035;margin:0}
#settingsScreen.ms .settings-kicker{color:#93661d;font-size:10px}
#settingsScreen.ms .ms-subtitle{margin:3px 0;color:#526078}
#settingsScreen.ms button,#settingsScreen.ms select,#settingsScreen.ms input,#settingsScreen.ms textarea{font:inherit;color:#162035}
#settingsScreen.ms button{min-height:40px;padding:9px 13px;border:1px solid #d8dee5;background:#fff;border-radius:9px;cursor:pointer;box-shadow:none}
#settingsScreen.ms .dl{background:#a57927;color:#fff;border-color:#a57927;font-weight:600}
#settingsScreen.ms button:disabled{opacity:.5;cursor:wait}
#settingsScreen.ms button:focus-visible,#settingsScreen.ms input:focus-visible,#settingsScreen.ms select:focus-visible,#settingsScreen.ms textarea:focus-visible{outline:3px solid #bc903f;outline-offset:2px}
#settingsScreen.ms .danger{color:#a2342d}
#settingsScreen.ms .settings-context{border:0;border-bottom:1px solid #e5e6e8;background:transparent;border-radius:0;padding:0 0 16px;margin:0 0 22px;gap:14px}
#settingsScreen.ms .settings-context h3{font-size:13px;margin:0}
#settingsScreen.ms .settings-context p{font-size:12px;margin:3px 0;color:#526078}
#settingsScreen.ms select,#settingsScreen.ms input:not([type=color]),#settingsScreen.ms textarea{width:100%;max-width:100%;min-width:0;border:1px solid #d8dee5;border-radius:8px;background:#fff;padding:9px 11px;min-height:40px}
#settingsScreen.ms label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#37455c;min-width:0}
#settingsScreen.ms .ms-layout{display:grid;grid-template-columns:210px minmax(360px,1fr) minmax(280px,380px);gap:24px;align-items:start}
#settingsScreen.ms .ms-nav{position:sticky;top:18px;display:grid;gap:7px;min-width:0}
#settingsScreen.ms .ms-nav button{text-align:left;border-color:transparent;background:transparent;white-space:normal;font-size:13px}
#settingsScreen.ms .ms-nav button[aria-current=page]{background:#f6edd9;color:#80591c;font-weight:700}
#settingsScreen.ms .ms-identity{padding:4px 8px 18px;display:grid;gap:6px}
#settingsScreen.ms .ms-identity strong{font-size:11px;font-weight:500;color:#526078}
#settingsScreen.ms #msTenant{font-weight:700;overflow-wrap:anywhere}
#settingsScreen.ms .ms-nav-note{font-size:12px;color:#68758a;border-top:1px solid #e5e6e8;padding:18px 8px;margin-top:20px}
#settingsScreen.ms .ms-main{min-width:0}
#settingsScreen.ms .ms-panel,#settingsScreen.ms .ms-preview{background:#fff;border:1px solid #e3e6eb;border-radius:15px;padding:24px;min-width:0;box-shadow:0 4px 16px #16203505}
#settingsScreen.ms h3{font-size:20px;letter-spacing:-.02em;margin:0 0 16px;color:#162035}
#settingsScreen.ms h4{font-size:15px;margin:22px 0 12px;color:#162035}
#settingsScreen.ms .settings-brand-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
#settingsScreen.ms .settings-brand-grid label:nth-child(3){grid-column:1/-1}
#settingsScreen.ms .settings-color-row{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:0}
#settingsScreen.ms .settings-color-row label{flex-direction:column;align-items:stretch;gap:7px;font-size:10px}
#settingsScreen.ms input[type=color]{padding:0;width:100%;height:48px;border:1px solid #d8dee5;background:transparent;border-radius:8px;cursor:pointer}
#settingsScreen.ms input[type=color]::-webkit-color-swatch-wrapper{padding:2px}
#settingsScreen.ms input[type=color]::-webkit-color-swatch{border:0;border-radius:5px}
#settingsScreen.ms .ms-hex{font-size:10px;color:#526078}
#settingsScreen.ms .ms-details{margin:16px 0;padding:12px 0;border-top:1px solid #edf0f3}
#settingsScreen.ms summary{cursor:pointer;color:#80591c;font-size:12px;font-weight:600}
#settingsScreen.ms .ms-font-roles{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
#settingsScreen.ms .ms-palette{display:grid;gap:12px;margin-top:16px}
#settingsScreen.ms .ms-color-entry{display:flex;flex-direction:row;align-items:center;gap:12px}
#settingsScreen.ms .ms-color-entry input{width:45px;flex-shrink:0}
#settingsScreen.ms .ms-color-entry small{display:block;color:#526078}
#settingsScreen.ms .settings-brand-variants{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:0 0 14px}
#settingsScreen.ms .settings-brand-variant{display:flex;flex-direction:column;gap:10px;background:#f7f8f9;border:1px dashed #d3d9e1;border-radius:10px;padding:14px 8px;text-align:center;min-width:0}
#settingsScreen.ms .settings-brand-variant:first-child{background:#263843;color:#fff}
#settingsScreen.ms .settings-brand-variant img{width:100%;height:48px;object-fit:contain}
#settingsScreen.ms .settings-brand-variant strong{font-size:10px;color:inherit;display:block}
#settingsScreen.ms .settings-brand-variant small{font-size:10px;color:inherit;opacity:.75}
#settingsScreen.ms .settings-brand-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:end}
#settingsScreen.ms .settings-file-label{background:#f9fafb;border:1px dashed #cbd2dc;border-radius:9px;padding:10px;display:block;min-width:0}
#settingsScreen.ms input[type=file]{border:0;background:transparent;padding:6px 0;font-size:11px}
#settingsScreen.ms .settings-brand-hint,#settingsScreen.ms .ms-muted{font-size:11px;color:#627087;margin-top:12px;line-height:1.6}
#settingsScreen.ms .settings-branding-card{border:0;background:transparent;padding:0;margin:0}
#settingsScreen.ms .settings-upload-grid{display:grid;grid-template-columns:1fr;gap:14px;margin:20px 0}
#settingsScreen.ms .settings-upload-card{border:1px solid #e3e6eb;background:#fafbf9;border-radius:12px;padding:18px}
#settingsScreen.ms .settings-upload-card h3{font-size:16px;margin:0 0 8px}
#settingsScreen.ms .settings-upload-card p{color:#526078;font-size:12px}
#settingsScreen.ms .settings-card-nr{display:none}
#settingsScreen.ms .settings-doc{background:#fff;gap:8px;flex-wrap:wrap}
#settingsScreen.ms .settings-doc-name{overflow-wrap:anywhere}
#settingsScreen.ms .ms-import{border-top:1px solid #e3e6eb;padding-top:18px}
#settingsScreen.ms .ms-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
#settingsScreen.ms .ms-status{color:#80591c;font-size:13px;white-space:pre-wrap}
#settingsScreen.ms progress{width:100%;accent-color:#a57927}
#settingsScreen.ms .ms-warning{border-left:3px solid #a57927;background:#fff9eb;padding:12px;font-size:12px;color:#695124}
#settingsScreen.ms .ms-success{background:#eef7ec;padding:12px;border-radius:8px;color:#345d2a}
#settingsScreen.ms .ms-review>button{margin:6px 6px 6px 0}
#settingsScreen.ms .ms-facts{max-height:400px;overflow:auto}
#settingsScreen.ms .ms-facts p{font-size:12px;border-bottom:1px solid #edf0f3;padding-bottom:12px}
#settingsScreen.ms .ms-facts strong,#settingsScreen.ms .ms-facts span{display:block}
#settingsScreen.ms .ms-facts strong{color:#80591c;margin-bottom:5px}
#settingsScreen.ms #msVoiceDraft label{margin:14px 0}
#settingsScreen.ms .settings-profil{--profil-leise:#526078;--profil-text:#35465b;background:#f7faf5;border:1px solid #dbe5d5;color:#162035;padding:18px;border-radius:12px;margin-top:20px}
#settingsScreen.ms .settings-profil-zeile{border-color:#dde3e8}
#settingsScreen.ms .settings-profil-zeile span{color:#35465b;overflow-wrap:anywhere}
#settingsScreen.ms .ms-preview{position:sticky;top:18px;padding:20px}
#settingsScreen.ms .ms-formats{display:flex;gap:4px;background:#f7f8fa;border-radius:9px;padding:4px;margin:16px 0}
#settingsScreen.ms .ms-formats button{flex:1;padding:7px;border:0;background:transparent;font-size:12px}
#settingsScreen.ms .ms-formats button[aria-pressed=true]{background:#a57927;color:#fff}
#settingsScreen.ms .ms-art{background:var(--preview-dark);color:var(--preview-text);border-radius:12px;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;padding:22px;aspect-ratio:4/5;min-height:0;border-bottom:6px solid var(--preview-accent)}
#settingsScreen.ms .ms-art>img{max-width:120px;max-height:40px;object-fit:contain;margin-bottom:6px}
#settingsScreen.ms .ms-art>span{font-size:13px;font-weight:700;color:var(--preview-text)}
#settingsScreen.ms .ms-art-visual{flex:1;align-self:stretch;min-height:50px;background:linear-gradient(145deg,#ffffff12,#ffffff03);border:1px solid #ffffff22;border-radius:9px;display:grid;place-content:center;text-align:center;margin:18px 0}
#settingsScreen.ms .ms-play{color:var(--preview-accent);font-size:50px}
#settingsScreen.ms .ms-example-label{font-size:9px;letter-spacing:.1em;opacity:.6}
#settingsScreen.ms .ms-art>strong{font-size:clamp(19px,1.8vw,32px);line-height:1.12;color:var(--preview-text)}
#settingsScreen.ms .ms-art>p{font-size:11px;line-height:1.4;color:var(--preview-text);opacity:.8}
#settingsScreen.ms .ms-art[data-format=reel]{aspect-ratio:9/16;max-width:270px;margin:auto}
#settingsScreen.ms .ms-art[data-format=youtube]{aspect-ratio:16/9;padding:14px}
#settingsScreen.ms .ms-art[data-format=youtube] .ms-art-visual{display:none}
#settingsScreen.ms .ms-art[data-format=youtube]>strong{margin:auto 0}
#settingsScreen.ms .ms-savebar{position:sticky;bottom:0;display:flex;gap:8px;align-items:center;background:#fffffff5;border:1px solid #e3e6eb;border-radius:12px;padding:12px;margin-top:12px;z-index:2;box-shadow:0 -3px 15px #16203508}
#settingsScreen.ms .ms-savebar span{flex:1;font-size:11px;color:#526078}
@media(max-width:1200px){#settingsScreen.ms .ms-layout{grid-template-columns:170px minmax(310px,1fr) 260px;gap:14px}#settingsScreen.ms .ms-panel{padding:18px}#settingsScreen.ms .settings-inner{padding:22px 18px}}
@media(max-width:960px){#settingsScreen.ms .ms-layout{grid-template-columns:160px minmax(0,1fr)}#settingsScreen.ms .ms-preview{grid-column:2;position:static}#settingsScreen.ms .ms-art{max-width:330px;margin:auto}#settingsScreen.ms .ms-main{grid-column:2}#settingsScreen.ms .ms-nav{grid-row:1/3}}
@media(max-width:600px){#settingsScreen.ms .settings-inner{padding:14px 12px}#settingsScreen.ms .settings-kopf{flex-wrap:wrap;gap:10px}#settingsScreen.ms .settings-kopf h2{font-size:23px}#settingsScreen.ms .settings-kopf>div{order:3;width:100%}#settingsScreen.ms .settings-kopf .hilfe-x{margin-left:auto}#settingsScreen.ms .settings-context{display:block}#settingsScreen.ms .settings-context-actions{display:flex;margin-top:10px;gap:8px}#settingsScreen.ms .settings-context-actions select{flex:1;width:0;font-size:12px}#settingsScreen.ms .settings-context-actions button{font-size:11px}#settingsScreen.ms .ms-layout{display:block}#settingsScreen.ms .ms-nav{position:static;display:flex;overflow-x:auto;margin:0 -2px 14px;gap:5px}#settingsScreen.ms .ms-nav button{white-space:nowrap;flex-shrink:0;min-height:44px}#settingsScreen.ms .ms-identity,#settingsScreen.ms .ms-nav-note{display:none}#settingsScreen.ms .ms-panel{padding:16px}#settingsScreen.ms .ms-preview{margin-top:16px}#settingsScreen.ms .ms-savebar{bottom:0;padding:9px;flex-wrap:wrap}#settingsScreen.ms .ms-savebar span{flex-basis:100%}#settingsScreen.ms .ms-savebar button{min-height:44px;font-size:12px}#settingsScreen.ms .settings-color-row{gap:6px}#settingsScreen.ms .settings-brand-grid,#settingsScreen.ms .ms-font-roles{gap:10px}#settingsScreen.ms input,#settingsScreen.ms select,#settingsScreen.ms textarea{font-size:16px}#settingsScreen.ms .settings-brand-actions{grid-template-columns:1fr}#settingsScreen.ms .ms-hex{font-size:9px}}

#settingsScreen.ms .settings-brand-variant{color:#162035}
#settingsScreen.ms .settings-brand-variant:first-child{color:#fff}
#settingsScreen.ms:not([data-ms-view=brand]) .ms-main{grid-column:2/-1}
#settingsScreen.ms:not([data-ms-view=brand]) .ms-panel{max-width:1120px}
#settingsScreen.ms .settings-assets-card{background:transparent;border:0;padding:0;margin:0}
#settingsScreen.ms .settings-assets-card p{color:#526078}

@media(max-width:600px){#settingsScreen.ms .settings-kopf>div{flex:0 0 100%;width:100%;order:3}#settingsScreen.ms .settings-kicker{overflow-wrap:anywhere}#settingsScreen.ms .settings-brand-variants{grid-template-columns:1fr}#settingsScreen.ms .settings-brand-variant{flex-direction:row;text-align:left;align-items:center}#settingsScreen.ms .settings-brand-variant img{width:100px}}

/* Uploaded originals need readable cards, including wide avatar sheets. */
#settingsScreen.ms .settings-brand-assets{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}
#settingsScreen.ms .settings-brand-asset{background:#f7f8fa;border-color:#d8dee5;padding:12px;gap:12px}
#settingsScreen.ms .settings-brand-asset img,#settingsScreen.ms .settings-brand-asset.portrait img{width:72px;height:72px;object-fit:contain;border-radius:7px;background:#fff}
#settingsScreen.ms .settings-brand-asset strong{color:#162035;white-space:normal;overflow-wrap:anywhere;font-size:12px}
#settingsScreen.ms .settings-brand-asset small{color:#526078}
