/* Native white-label studio: extends Nasaq's existing settings surface. */
.ns-brand-studio{max-width:920px!important}
.ns-brand-studio-tabs{display:flex;gap:4px;flex-wrap:wrap;border:1px solid var(--ns-border);border-radius:12px;padding:5px;background:var(--ns-surface-alt)}
.ns-brand-studio-tabs>button{background:none;border:0;border-radius:8px;min-height:38px;padding:8px 13px;color:var(--ns-text-secondary);font-size:11px;font-weight:600;flex:1;white-space:nowrap}
.ns-brand-studio-tabs>button.is-active{background:var(--ns-surface);color:var(--ns-accent-ink);box-shadow:0 1px 7px rgba(18,28,52,.08)}
.ns-brand-studio .ns-field{display:flex;flex-direction:column;min-width:0;gap:6px}
.ns-brand-studio .ns-field input:not([type=color]):not([type=range]),.ns-brand-studio .ns-field textarea,.ns-brand-studio .ns-field select{width:100%;min-width:0;border:1px solid var(--ns-border-strong);border-radius:9px;background:var(--ns-surface);color:var(--ns-text);font:inherit;font-size:12px;padding:10px 13px;min-height:42px}
.ns-brand-studio .ns-field textarea{min-height:94px;resize:vertical}
.ns-brand-studio .ns-field input[type=range]{width:100%;accent-color:var(--ns-accent)}
.ns-brand-identity-preview{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:19px;border:1px solid var(--ns-border);border-radius:14px;background:var(--ns-surface-alt)}
.ns-brand-identity-mark{width:52px;height:52px;flex:0 0 52px;border-radius:14px;background:var(--preview-accent,var(--ns-accent));color:#fff;display:grid;place-items:center;font-size:25px;font-weight:700;overflow:hidden}
.ns-brand-identity-mark img{width:100%;height:100%;object-fit:contain}
.ns-brand-identity-preview>span:nth-child(2){display:grid;gap:4px;min-width:0}.ns-brand-identity-preview>span:nth-child(2)>strong{font-size:19px;line-height:1.6}.ns-brand-identity-preview>span:nth-child(2)>small{color:var(--ns-muted);font-size:11px}
.ns-brand-tab-preview{margin-inline-start:auto;display:flex;align-items:center;gap:9px;max-width:100%;border:1px solid var(--ns-border);border-radius:9px;background:var(--ns-surface);padding:7px 11px;font-size:11px;color:var(--ns-muted);overflow-wrap:anywhere}
.ns-brand-tab-preview img{width:20px;height:20px;object-fit:contain}
.ns-brand-asset{display:flex;align-items:center;gap:20px;border:1px solid var(--ns-border);border-radius:13px;padding:19px;background:var(--ns-surface);min-width:0}
.ns-brand-asset-preview{width:94px;height:94px;flex:0 0 94px;border-radius:16px;overflow:hidden;background:var(--ns-surface-alt);border:1px dashed var(--ns-border-strong);display:grid;place-items:center}
.ns-brand-asset-preview img{width:100%;height:100%;object-fit:contain}.ns-brand-empty-image{font-size:32px;color:var(--ns-muted)}
.ns-brand-asset-body{flex:1;min-width:0;display:grid;gap:7px}.ns-brand-asset-body>strong{font-size:13px}.ns-brand-asset-body>p{font-size:11px;line-height:1.9;margin:0}.ns-brand-asset-body>input[type=file]{min-width:0;max-width:100%;font-size:11px}
.ns-brand-asset-body>.ns-row{margin-top:5px}.ns-brand-file-note{font-size:10px;color:var(--ns-green)}
.ns-brand-hint{font-size:11px;line-height:2;padding:12px 15px;border:1px solid var(--ns-border);border-radius:10px;background:var(--ns-surface-alt);color:var(--ns-text-secondary)}
.ns-brand-palette-presets{display:grid;gap:12px}.ns-brand-palette-presets>strong{font-size:12px}.ns-brand-preset{display:inline-flex;align-items:center;gap:7px;min-height:39px;border:1px solid var(--ns-border);border-radius:9px;background:var(--ns-surface);padding:7px 12px;font-size:11px;color:var(--ns-text)}
.ns-brand-preset>i{width:18px;height:18px;border-radius:6px;border:2px solid rgba(255,255,255,.5)}.ns-brand-preset:hover{border-color:var(--ns-accent)}
.ns-brand-color-input{display:flex;gap:12px;align-items:center}.ns-brand-color-input input[type=color]{width:62px;height:42px;border:1px solid var(--ns-border);border-radius:9px;background:var(--ns-surface);padding:3px}
.ns-brand-color-input input[dir=ltr]{max-width:150px}
.ns-brand-theme-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.ns-brand-theme-sample{padding:12px;border-radius:14px;border:1px solid var(--ns-border);min-width:0}
.ns-brand-theme-sample>div{border-radius:9px;padding:12px;font-size:12px;font-weight:700;margin-bottom:10px}
.ns-brand-theme-sample>section{border-radius:9px;padding:16px;font-size:12px}.ns-brand-theme-sample>section>p{font-size:10px;margin:6px 0 14px;color:inherit}
.ns-brand-theme-sample>section>span{display:inline-block;padding:7px 11px;border-radius:7px;font-size:10px;font-weight:600}
.ns-brand-colors-section{border-top:1px solid var(--ns-border);padding-top:18px}.ns-brand-colors-section h3{font-size:14px;margin:0 0 15px}
.ns-brand-color-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ns-brand-color-field{display:flex;align-items:center;flex-wrap:wrap;gap:7px 11px;border:1px solid var(--ns-border);border-radius:10px;padding:10px 13px;font-size:11px;min-width:0}
.ns-brand-color-field>span{flex:1;min-width:90px}.ns-brand-color-field input[type=color]{width:34px;height:34px;border:1px solid var(--ns-border);padding:2px;border-radius:8px;background:var(--ns-surface)}.ns-brand-color-field code{color:var(--ns-muted);font-size:10px}
.ns-brand-auth-color{background:var(--ns-surface-alt)}
.ns-brand-login-preview{display:grid;gap:12px;background-size:cover;background-position:center;color:#fff;padding:29px;border-radius:17px;min-height:230px}
.ns-brand-login-preview>small{color:#c8d0e7;font-size:11px}.ns-brand-login-preview>strong{font-size:25px;line-height:1.7;overflow-wrap:anywhere}.ns-brand-login-preview>p{font-size:12px;line-height:1.9;max-width:520px;color:#d4def2}
.ns-brand-login-preview>div{display:flex;gap:8px;flex-wrap:wrap}.ns-brand-login-preview>div>span{display:inline-flex;border:1px solid rgba(255,255,255,.2);border-radius:8px;padding:5px 8px;font-size:10px}
.ns-brand-copy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ns-brand-copy-grid>.ns-field{min-width:0}
.ns-brand-save{display:flex;justify-content:space-between;align-items:center;gap:17px;flex-wrap:wrap;border-top:1px solid var(--ns-border);padding-top:19px}.ns-brand-save>span{max-width:450px;font-size:11px}.ns-brand-save>.ns-btn{margin-inline-start:auto}
#nasaq-root{font-family:var(--ns-font-choice,Nasaq,Cairo,Tahoma,Arial,sans-serif)}
.ns-auth{background:var(--ns-login-bg,#10192d)}
.ns-auth-story{background-position:center;background-size:cover}
.ns-auth-points>span,.ns-brand-copy small{overflow-wrap:anywhere}
@media(max-width:700px){.ns-brand-studio-tabs>button{flex:1 0 38%;font-size:10px}.ns-brand-asset{align-items:flex-start;gap:12px}.ns-brand-asset-preview{width:67px;height:67px;flex-basis:67px;border-radius:12px}.ns-brand-theme-comparison,.ns-brand-copy-grid,.ns-brand-color-grid{grid-template-columns:1fr}.ns-brand-identity-preview{padding:12px}.ns-brand-tab-preview{margin-inline-start:0;width:100%}.ns-brand-login-preview{padding:19px}.ns-brand-login-preview>strong{font-size:20px}}
@media(max-width:390px){.ns-brand-asset{flex-wrap:wrap}.ns-brand-asset-body{flex-basis:100%}.ns-brand-save>.ns-btn{width:100%}}
