/* Authoring controls only. User colors and fonts are scoped to the component. */
.tb-brand{font-family:Instrument,Instrument Sans,system-ui,sans-serif;border:1px solid var(--line,var(--linea,#ffffff24));border-radius:14px;margin:14px 0 20px;background:var(--surface,var(--panel,var(--fondo,#17151f)));color:var(--text,var(--tinta,#f7f5ff));min-width:0}
.tb-brand>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:52px;padding:13px 14px;cursor:pointer;font-size:14px;font-weight:600;list-style:none}
.tb-brand>summary::-webkit-details-marker{display:none}.tb-brand>summary::after{content:'+';color:var(--violet,var(--violeta,#8b7bff));font-size:20px;font-weight:400}.tb-brand[open]>summary::after{content:'−'}
.tb-brand__badge{font-size:10px;font-weight:400;color:var(--muted,var(--suave,#b6b0c7));margin-left:auto}.tb-brand__body{padding:0 14px 14px;min-width:0}
.tb-brand__hint{font-size:11px!important;line-height:1.65!important;color:var(--muted,var(--suave,#b6b0c7));margin:0 0 14px!important}
.tb-brand__fieldset{border:0;padding:0;margin:18px 0;min-width:0}.tb-brand__fieldset>legend{font:600 12px/1.5 Instrument,Instrument Sans,system-ui,sans-serif;padding:0;margin-bottom:12px;color:inherit}
.tb-color{min-width:0;margin-bottom:13px}.tb-color>label,.tb-font>label{display:block;font-size:12px;font-weight:450;margin-bottom:7px;color:inherit}
.tb-color__controls{display:grid;grid-template-columns:42px minmax(0,1fr) 60px;align-items:center;gap:6px;min-width:0}
.tb-brand :is(input,select,button){font-family:Instrument,Instrument Sans,system-ui,sans-serif;font-size:12px;color:inherit;min-width:0;max-width:100%;min-height:44px;border:1px solid var(--line,var(--linea,#ffffff24));background:var(--page,var(--bg,var(--fondo,#111018)));border-radius:8px}
.tb-brand input[type=text]{width:100%;padding:10px 9px;font-variant-numeric:tabular-nums;font-size:11px}.tb-brand select{padding:8px 5px;width:100%;font-size:10px}
.tb-brand input[type=color]{width:42px;height:44px;min-height:44px;padding:4px;cursor:pointer}.tb-brand input[type=color]::-webkit-color-swatch-wrapper{padding:0}.tb-brand input[type=color]::-webkit-color-swatch{border:0;border-radius:5px}.tb-brand input[type=color]::-moz-color-swatch{border:0;border-radius:5px}
.tb-brand [aria-invalid=true]{outline:2px solid var(--amber,#ffb454);outline-offset:1px}.tb-brand :is(input,select,button,summary):focus-visible{outline:3px solid var(--violet,var(--violeta,#8b7bff));outline-offset:3px}
.tb-brand__advanced{border-block:1px solid var(--line,var(--linea,#ffffff24));margin-bottom:18px}.tb-brand__advanced>summary{display:list-item;cursor:pointer;font-size:12px;min-height:44px;padding:12px 0}.tb-brand__advanced>div{padding-top:8px}
.tb-font{margin-bottom:18px;min-width:0}.tb-font>select{font-size:12px;margin-bottom:8px}.tb-font>input[type=file]{width:100%;padding:5px;font-size:10px;min-height:44px;display:block}.tb-font>input[type=file]::file-selector-button{font:inherit;border:0;padding:9px;border-radius:5px;background:var(--surface2,var(--panel-hover,#292534));color:inherit;cursor:pointer;margin-right:8px}
.tb-font__name{display:block;overflow-wrap:anywhere;font-size:11px;margin-top:7px;color:var(--muted,var(--suave,#b6b0c7))}
.tb-brand .tb-brand__text-button{border:0;padding:5px 0;background:transparent;min-height:32px;font-size:11px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.tb-brand [hidden]{display:none!important}
.tb-brand__actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px;border-top:1px solid var(--line,var(--linea,#ffffff24));padding-top:14px}.tb-brand__actions>button,.tb-brand__import-label{font-size:11px!important;padding:8px 10px;cursor:pointer;min-height:44px}
.tb-brand__import-label{display:inline-flex;align-items:center;position:relative;overflow:hidden;border:1px solid var(--line,var(--linea,#ffffff24));border-radius:8px;background:var(--page,var(--bg,#111018));font-weight:400!important;margin:0!important}.tb-brand__import{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.tb-brand__import-label:focus-within{outline:3px solid var(--violet,#8b7bff);outline-offset:3px}
.tb-brand__status{font-size:12px!important;line-height:1.6!important;overflow-wrap:anywhere;color:var(--muted,var(--suave,#b6b0c7));margin:12px 0!important;min-height:0}.tb-brand__status:empty{display:none}
@media(prefers-reduced-motion:reduce){.tb-brand *{scroll-behavior:auto}}
