body[data-theme="graphite"]{--ink:#263633;--canvas:#f3f5f4;--nav:#25312f;--brand:#607b70;--blue:#647b86;--violet:#7d7485}
body[data-theme="slate"]{--ink:#26333d;--canvas:#f3f5f7;--nav:#27313a;--brand:#63798a;--blue:#627b91;--violet:#77758a}
body[data-theme="sand"]{--ink:#393630;--canvas:#f6f4f0;--nav:#393631;--brand:#897965;--blue:#737d80;--violet:#817580}
body[data-theme] .logo>span{border-color:var(--brand);color:var(--brand)}body[data-theme] .logo small{color:#9aaca6}body[data-theme] .company{background:rgba(255,255,255,.07)}body[data-theme] nav button:hover{background:rgba(255,255,255,.08)}body[data-theme] nav button.active{background:rgba(255,255,255,.12);box-shadow:inset 3px 0 var(--brand)}
.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.notice{background:#eef5f2;border:1px solid #d5e4de;color:#4f6960;border-radius:9px;padding:12px 15px;margin:-7px 0 18px;font-size:12px}.primary:disabled{opacity:.6;cursor:wait}.table-action{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:7px;padding:7px 10px;font-size:11px;cursor:pointer}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}dialog label small{color:var(--muted);font-size:11px;line-height:1.4}.import-errors{max-height:260px;overflow:auto;color:#a45055;font-size:11px}
.theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.theme-card{border:2px solid var(--line);padding:18px;text-align:left;color:var(--ink);cursor:pointer;display:flex;flex-direction:column;gap:7px}.theme-card.selected{border-color:var(--brand);box-shadow:0 0 0 3px rgba(80,100,90,.13)}.theme-card>b{font-size:15px}.theme-card>small{font-size:11px;color:var(--muted)}
.theme-preview{height:100px;border-radius:9px;display:grid;grid-template-columns:30% 1fr;grid-template-rows:repeat(2,1fr);gap:7px;padding:10px;margin-bottom:6px}.theme-preview i{display:block;border-radius:5px;background:rgba(255,255,255,.8)}.theme-preview i:first-child{grid-row:1/3;background:rgba(0,0,0,.45)}.theme-preview.graphite{background:#dfe4e1}.theme-preview.slate{background:#dfe4e8}.theme-preview.sand{background:#e8e2d9}
.about-card{padding:26px;max-width:760px}.about-card>.logo{color:var(--ink);margin-bottom:25px}.about-card dl{margin:0;display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line)}.about-card dl>div{padding:16px 0;border-bottom:1px solid var(--line)}.about-card dt{font-size:11px;color:var(--muted)}.about-card dd{font-size:14px;font-weight:700;margin:5px 0 0}.about-card .logo small{font-size:11px;letter-spacing:1.7px}.about-card .logo b{font-size:20px}
@media(max-width:760px){.theme-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.actions{width:100%}.about-card dl{grid-template-columns:1fr}}

/* Identidad, sesión y cuenta — v0.5.2 */
.brand-logo{min-height:42px}.custom-logo{width:46px;height:42px;object-fit:contain;border-radius:7px;background:#fff}.login-card .custom-logo{width:58px;height:50px}.brand-logo>div{min-width:0}.brand-logo b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:145px}.login-card .brand-logo b{max-width:260px}
.sidebar nav{flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin}.channel{margin-top:10px}.logged-user{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.07);color:#fff;border-radius:10px;padding:9px;margin-top:10px;display:flex;align-items:center;gap:9px;text-align:left;cursor:pointer}.logged-user>span,.user-chip>span,.profile-avatar{display:grid;place-items:center;border-radius:50%;background:var(--brand);color:#fff;font-weight:800}.logged-user>span{width:32px;height:32px;font-size:11px;flex:0 0 auto}.logged-user>div,.user-chip>div{display:flex;min-width:0;flex-direction:column}.logged-user b{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.logged-user small{font-size:11px;color:#aebebb;margin-top:3px}.logout{margin-top:5px}
.header-actions{display:flex;align-items:center;gap:10px}.user-chip{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:10px;padding:6px 9px;display:flex;align-items:center;gap:8px;text-align:left;cursor:pointer}.user-chip>span{width:31px;height:31px;font-size:11px}.user-chip b{font-size:12px;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-chip small{font-size:11px;color:var(--muted);margin-top:2px}
.settings-card{padding:24px;max-width:720px}.settings-card>label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--muted);margin-top:18px}.settings-card input[type="text"],.settings-card input[name="name"]{height:42px;border:1px solid var(--line);border-radius:8px;padding:0 12px;background:#fff}.settings-card input[type="file"]{border:1px dashed var(--line);border-radius:8px;padding:12px;background:#fff}.settings-card label small{font-size:11px}.settings-card .remove-logo{flex-direction:row;align-items:center;color:var(--ink)}.settings-card footer{display:flex;justify-content:flex-end;border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.company-preview{min-height:110px;border:1px solid var(--line);border-radius:11px;background:#f8faf9;padding:17px;display:flex;align-items:center;gap:16px}.company-preview img,.logo-preview-fallback{width:78px;height:70px;object-fit:contain;border-radius:10px;background:#fff}.logo-preview-fallback{display:grid;place-items:center;border:2px solid var(--brand);color:var(--brand);font-size:28px;font-weight:800}.company-preview>div:last-child{display:flex;flex-direction:column}.company-preview b{font-size:20px}.company-preview small{font-size:11px;color:var(--muted);margin-top:5px}
.profile-card{max-width:760px;padding:28px;display:flex;gap:22px}.profile-avatar{width:74px;height:74px;font-size:22px;flex:0 0 auto}.profile-main{flex:1}.profile-main h3{font-size:21px;margin:2px 0 8px}.profile-main dl{margin:22px 0;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.profile-main dl>div{border-top:1px solid var(--line);padding-top:12px}.profile-main dt{font-size:11px;color:var(--muted)}.profile-main dd{font-size:13px;font-weight:700;margin:5px 0 0;overflow-wrap:anywhere}
@media(max-width:760px){.logged-user{display:none}.user-chip div{display:none}.header-actions{gap:5px}.profile-card{flex-direction:column}.profile-main dl{grid-template-columns:1fr}.brand-logo .custom-logo{width:38px}.sidebar .brand-logo img~div{display:none}}

/* Formularios, tablas y diálogos heredados de la base estable */
.easy-section{margin-top:24px}.easy-section>.panel-head{padding:0 2px 12px}.easy-help{margin-top:10px}.row-actions{display:flex;gap:6px;flex-wrap:wrap}.table-wrap code{font-size:11px;color:var(--violet);overflow-wrap:anywhere}.easy-section td:nth-child(-n+2) b,.easy-section td:nth-child(-n+2) small{display:block}.easy-section td:nth-child(-n+2) small{margin-top:4px;color:var(--muted);overflow-wrap:anywhere}dialog textarea{width:100%;resize:vertical;border:1px solid var(--line);border-radius:8px;padding:11px;background:#f7f9f8;font:11px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--ink)}.variable-mapping{border:1px solid var(--line);border-radius:9px;padding:12px;margin:14px 0}.variable-mapping legend{font-size:12px;font-weight:800;padding:0 5px}.variable-mapping>p{font-size:11px;color:var(--muted);margin:0 0 9px}.variable-map-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.variable-map-grid label{margin:0}
@media(max-width:900px){.easy-section .table-wrap{overflow-x:auto}.easy-section table{min-width:920px}}
