/* Centro de Operaciones · Executive Tech · Diseño adaptable y sin dependencias externas */
:root{color-scheme:light;--bg:#f6f8fc;--surface:#fff;--surface-2:#f8faff;--surface-3:#eff3fb;--line:#e4e9f2;--line-strong:#d3dbea;--text:#182439;--muted:#6d7a90;--subtle:#96a2b4;--primary:#4e4acb;--primary-strong:#3e3ab4;--primary-light:#eeedff;--shadow:0 14px 45px rgba(25,37,70,.045);--success:#13896f;--success-soft:#e3f7f0;--danger:#cf4a57;--danger-soft:#fff1f2;--sidebar:#101a30;--sidebar-hover:#1b2945;--sidebar-line:#2b3853;--sidebar-text:#c2cee3;--sidebar-muted:#8091ad;--radius:15px;--radius-sm:10px;--focus:0 0 0 3px rgba(84,83,209,.22)}
html[data-theme="dark"]{color-scheme:dark;--bg:#101828;--surface:#182438;--surface-2:#1d2a41;--surface-3:#26364f;--line:#31435a;--line-strong:#42536b;--text:#f0f4fd;--muted:#adbbd2;--subtle:#7f90a9;--primary:#9d9afc;--primary-strong:#c0beff;--primary-light:#322f62;--shadow:0 18px 48px rgba(0,0,0,.13);--success:#69d4b2;--success-soft:#22493f;--danger:#ff9aa3;--danger-soft:#5c303a;--sidebar:#0b1221;--sidebar-hover:#1a2840;--sidebar-line:#28354b}
html[data-theme="teal"]{--primary:#078b82;--primary-strong:#056e67;--primary-light:#ddf5f1;--bg:#f1f8f7;--surface-2:#f7fbfb;--surface-3:#e7f1f0;--sidebar:#112b32;--sidebar-hover:#1b424a;--sidebar-line:#2a545b;--sidebar-muted:#91b5b7;--sidebar-text:#d1e3e5;--line:#dceae7}
*{box-sizing:border-box}html,body{margin:0;min-height:100%}body{font:14px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{cursor:not-allowed;opacity:.37}input::placeholder{color:var(--subtle)}:focus-visible{outline:0;box-shadow:var(--focus)}.cp-icon{vertical-align:-.14em;width:18px;height:18px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.app-shell{display:flex;min-height:100vh;width:100%;min-width:0}.sidebar{width:252px;min-width:252px;background:var(--sidebar);color:var(--sidebar-text);min-height:100vh;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:29px 14px 18px;z-index:30;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#39455c transparent}.brand{display:flex;align-items:center;gap:11px;margin:0 10px 42px;min-width:0}.brand-mark{width:39px;height:39px;flex:0 0 auto;border-radius:11px;background:linear-gradient(135deg,#6a63e9,#4441b9);display:grid;place-items:center;color:#fff;box-shadow:0 8px 22px #4040b94d}.brand-mark .cp-icon{width:21px;height:21px}.brand-words{min-width:0;display:flex;flex-direction:column;line-height:1.25}.brand-words strong{color:#fff;font-size:14px;letter-spacing:-.4px;white-space:normal;overflow-wrap:anywhere}.brand-words small{font-size:9px;font-weight:800;letter-spacing:1.7px;color:#92a1c2;margin-top:5px}.side-label{margin:0 15px 10px;font-size:10px;letter-spacing:1.5px;color:var(--sidebar-muted);font-weight:800}.side-nav{display:flex;flex-direction:column;gap:3px}.side-link{font-size:13px;text-align:left;width:100%;min-height:42px;display:flex;align-items:center;gap:12px;background:transparent;border:1px solid transparent;border-radius:9px;color:var(--sidebar-text);padding:9px 13px;transition:background .18s ease,color .18s ease;line-height:1.3}.side-link:hover{background:var(--sidebar-hover);color:#fff}.side-link.active{background:linear-gradient(90deg,#39487c,#263555);border-color:#52618d;color:#fff;box-shadow:inset 3px 0 #938cff}.side-link>.cp-icon{width:17px;height:17px;flex:0 0 auto}.side-link>span:nth-child(2){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.side-system{min-height:39px;font-size:12.5px}.side-app-dot{width:25px;height:25px;display:grid;place-items:center;border-radius:8px;color:#fff;flex:0 0 auto;font-size:9px;font-weight:800}.side-external{opacity:.45;width:14px!important;height:14px!important}.systems-label{margin-top:29px}.nav-count{background:#283856;color:#afbbd5;font-size:10px;border-radius:6px;min-width:22px;padding:1px 5px;text-align:center;font-weight:700}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--sidebar-line);padding-top:14px}.side-tip{padding:10px 9px 19px;display:flex;gap:9px;font-size:10.5px;line-height:1.55;color:#a4b1c9}.tip-icon{color:#a5a9fb}.tip-icon>.cp-icon{width:16px;height:16px}.app-main{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{height:72px;flex-shrink:0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 clamp(20px,3vw,54px);background:var(--surface);position:sticky;top:0;z-index:20}.topbar-left,.topbar-actions{display:flex;align-items:center;gap:15px;min-width:0}.topbar-actions{gap:9px}.breadcrumb{display:flex;align-items:center;gap:10px;font-size:12.5px;color:var(--muted);min-width:0}.breadcrumb>span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}.breadcrumb>span:nth-child(2){color:var(--subtle)}.breadcrumb strong{color:var(--text);font-weight:700;white-space:nowrap}.icon-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;background:transparent;color:var(--muted);border-radius:9px;width:38px;height:38px;flex-shrink:0;transition:background .16s,color .16s}.icon-button:hover{background:var(--surface-3);color:var(--text)}.icon-button.smaller{width:29px;height:29px;border-radius:7px}.icon-button.smaller .cp-icon{width:15px;height:15px}.icon-button.danger-action:hover{background:var(--danger-soft);color:var(--danger)}.hamburger{display:none}.search-trigger{height:36px;display:flex;align-items:center;gap:10px;background:var(--surface-2);border:1px solid var(--line);color:var(--muted);border-radius:9px;padding:0 10px;font-size:12.5px;min-width:215px}.search-trigger .cp-icon{width:15px;height:15px}.search-trigger span{flex:1;text-align:left}.search-trigger kbd{font:10px system-ui;background:var(--surface);border:1px solid var(--line);border-radius:4px;padding:2px 4px;color:var(--muted)}.search-trigger:hover{border-color:var(--line-strong);background:var(--surface-3)}.content{width:100%;max-width:1500px;margin:0 auto;padding:36px clamp(20px,3vw,54px) 66px}.portal-content{padding-top:32px}.welcome-banner{border-radius:19px;background:radial-gradient(circle at 83% 30%,rgba(125,124,246,.24),transparent 28%),linear-gradient(110deg,#1c2a4d,#172540 72%,#293761);min-height:256px;color:#fff;display:flex;position:relative;overflow:hidden;padding:37px clamp(25px,4vw,54px);box-shadow:0 12px 35px rgba(28,38,71,.12)}.welcome-text{position:relative;z-index:2;max-width:520px}.welcome-tag{font-size:10px;letter-spacing:1.6px;font-weight:800;color:#b9c8e5;display:flex;align-items:center;gap:9px}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#60dbb7;box-shadow:0 0 0 4px rgba(96,219,183,.1)}.welcome-banner h1{font-size:clamp(27px,3.1vw,39px);line-height:1.13;letter-spacing:-1.35px;margin:19px 0 11px;font-weight:780}.welcome-banner h1 em{font-style:normal;color:#bcb9ff}.welcome-banner p{margin:0;color:#c2cee5;font-size:13px;line-height:1.75;max-width:440px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:39px;padding:9px 16px;white-space:normal;border-radius:9px;font-size:12.5px;font-weight:700;border:1px solid transparent;transition:transform .15s ease,background .17s ease,border-color .17s ease,box-shadow .17s ease}.btn:hover{transform:translateY(-1px)}.btn:active{transform:translateY(0)}.btn .cp-icon{width:16px;height:16px}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-strong)}html[data-theme="dark"] .btn-primary{color:#0b1024}.btn-secondary{background:var(--surface);border-color:var(--line-strong);color:var(--text)}.btn-secondary:hover{background:var(--surface-3)}.btn-quiet{background:transparent;color:var(--muted);border-color:var(--line)}.btn-quiet:hover{background:var(--surface);color:var(--text)}.btn-danger{background:#c94b58;color:white}.btn-danger:hover{background:#b43c4a}.btn.small{min-height:34px;padding:6px 12px}.btn-banner{background:#fff;color:#24355b;min-height:38px;padding:8px 14px;margin-top:24px}.btn-banner:hover{background:#e8e9ff}.welcome-art{position:absolute;right:4%;top:0;bottom:0;width:38%;display:grid;place-items:center;opacity:.95}.orbit{position:absolute;border:1px solid rgba(201,212,255,.18);border-radius:50%}.orbit-one{width:245px;height:245px}.orbit-two{width:170px;height:170px}.art-center{width:91px;height:91px;display:grid;place-items:center;color:#fff;background:linear-gradient(140deg,#8883f4,#5458bc);border-radius:28px;box-shadow:0 14px 50px rgba(14,18,56,.4);transform:rotate(-9deg)}.art-center .cp-icon{width:48px;height:48px}.art-satellite{position:absolute;width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:rgba(126,150,205,.23);color:#d7defe;border:1px solid rgba(200,217,255,.25);backdrop-filter:blur(8px)}.sat-one{transform:translate(-118px,-58px) rotate(-10deg)}.sat-two{transform:translate(124px,-36px) rotate(9deg)}.sat-three{transform:translate(72px,105px) rotate(-5deg)}.section-heading{margin:36px 0 19px;display:flex;align-items:end;justify-content:space-between;gap:18px}.section-heading h2,.section-heading h1{margin:4px 0 2px;font-size:24px;letter-spacing:-.7px;line-height:1.25}.section-heading h1{font-size:29px}.section-heading p,.page-heading p{font-size:12.7px;color:var(--muted);margin:4px 0 0}.eyebrow{font-size:10px;letter-spacing:1.5px;color:var(--primary);font-weight:800}.section-count{font-size:11px;display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;background:var(--primary-light);color:var(--primary);border-radius:8px;min-width:26px;height:25px;margin-left:3px;letter-spacing:0}.app-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.application-card{min-height:214px;background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:24px;display:flex;flex-direction:column;box-shadow:var(--shadow);position:relative;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}.application-card:hover{border-color:var(--line-strong);box-shadow:0 17px 42px rgba(25,36,60,.095);transform:translateY(-3px)}.card-top{display:flex;justify-content:space-between;align-items:start}.app-icon{display:grid;place-items:center;width:48px;height:48px;background:var(--accent-light,#ededff);color:var(--accent,#6259cf);border-radius:13px;font-size:15px;font-weight:850;letter-spacing:-.4px}.favorite-btn{background:transparent;border:1px solid transparent;border-radius:8px;width:32px;height:32px;color:var(--subtle);display:grid;place-items:center}.favorite-btn:hover,.favorite-btn[aria-pressed="true"]{background:var(--surface-3);color:#f2a529}.application-card h3{font-size:15.5px;letter-spacing:-.35px;margin:18px 0 3px;line-height:1.4}.application-card>p{font-size:12px;color:var(--muted);margin:0;flex:1;line-height:1.55;min-height:38px}.card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:15px;margin-top:18px}.card-launch{display:inline-flex;align-items:center;gap:7px;font-size:12.2px;font-weight:800;color:var(--primary)}.card-launch:hover{text-decoration:underline}.card-launch .cp-icon{width:15px;height:15px}.mode-tag{color:var(--subtle);font-size:10px;white-space:nowrap}.accent-indigo{--accent:#5d55cc;--accent-light:#eeedff}.accent-teal{--accent:#11917d;--accent-light:#e3f7f1}.accent-violet{--accent:#8556c5;--accent-light:#f1eafb}.accent-blue{--accent:#397bca;--accent-light:#e7f2fd}.accent-amber{--accent:#b77d27;--accent-light:#fff5da}.accent-rose{--accent:#ca5379;--accent-light:#ffe8f0}.accent-slate{--accent:#64748b;--accent-light:#eaf0f6}.side-app-dot.accent-indigo{background:#514cc5}.side-app-dot.accent-teal{background:#138b7c}.side-app-dot.accent-violet{background:#8c5ec9}.side-app-dot.accent-blue{background:#397ec5}.side-app-dot.accent-amber{background:#b8802e}.side-app-dot.accent-rose{background:#bd537a}.side-app-dot.accent-slate{background:#6e7e93}.info-strip{margin-top:28px;display:flex;align-items:center;gap:14px;padding:17px 19px;background:var(--surface);border:1px solid var(--line);border-radius:12px}.info-symbol{width:35px;height:35px;border-radius:10px;display:grid;place-items:center;background:var(--primary-light);color:var(--primary);flex:0 0 auto}.info-strip strong{font-size:12.5px}.info-strip p{margin:2px 0 0;color:var(--muted);font-size:11.7px}.catalog-view .section-heading{margin-top:0}.catalog-toolbar,.table-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:23px 0 20px}.field-search{height:41px;width:min(390px,100%);display:flex;align-items:center;gap:10px;padding:0 13px;background:var(--surface);border:1px solid var(--line);border-radius:9px;color:var(--muted)}.field-search:focus-within{box-shadow:var(--focus);border-color:var(--primary)}.field-search input{width:100%;height:100%;border:none;background:transparent;color:var(--text);outline:none;font-size:12.5px;min-width:0}.field-search .cp-icon{width:16px;height:16px;flex-shrink:0}.result-count{color:var(--muted);font-size:12px}.empty-state{text-align:center;padding:56px 20px;background:var(--surface);border-radius:14px;border:1px dashed var(--line-strong);margin-top:15px}.empty-state>.cp-icon{width:35px;height:35px;color:var(--primary)}.empty-state h3{font-size:17px;margin:11px 0 5px}.empty-state p{font-size:12px;color:var(--muted);margin:0 auto 20px;max-width:340px}.workspace-heading{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:0 0 18px}.workspace-heading h1{margin:7px 0 3px;font-size:24px}.workspace-heading p{margin:0;color:var(--muted);font-size:12px}.workspace-heading-actions{display:flex;gap:8px;align-items:center}.workspace-tabs{display:flex;align-items:center;gap:6px;overflow:auto;padding:0 0 9px}.workspace-tab{display:flex;align-items:center;gap:9px;padding:9px 12px;border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:9px;font-size:12px;white-space:nowrap}.workspace-tab.active{color:var(--primary);background:var(--primary-light);border-color:var(--line-strong)}.workspace-tab-close{border:none;background:transparent;color:inherit;display:grid;place-items:center;padding:1px}.workspace-frame-wrap{height:max(550px,calc(100vh - 283px));position:relative;background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden}.frame-holder{position:absolute;inset:0;display:none;background:#fff}.frame-holder.active{display:block}.frame-holder iframe{width:100%;height:100%;border:0;background:#fff}.frame-spinner{position:absolute;z-index:2;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:var(--surface);color:var(--muted);font-size:13px;pointer-events:none}.spinner{height:29px;width:29px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--primary);animation:rotate .7s linear infinite}@keyframes rotate{to{transform:rotate(360deg)}}.frame-note{display:flex;align-items:start;gap:9px;font-size:11.5px;color:var(--muted);margin-top:10px}.frame-note .cp-icon{width:16px;height:16px;color:#c69b51;flex-shrink:0}.frame-note strong{color:var(--text)}
/* Administracion */
.page-heading{margin:3px 0 25px}.page-heading h1{font-size:29px;letter-spacing:-.8px;line-height:1.15;margin:10px 0 9px}.page-heading p{max-width:670px;font-size:13px}.stat-row{display:grid;grid-template-columns:1fr 1fr 1.35fr;gap:16px;margin-bottom:22px}.stat-tile{border:1px solid var(--line);border-radius:13px;background:var(--surface);padding:20px 22px;display:flex;flex-direction:column;min-height:118px;box-shadow:var(--shadow)}.stat-label{color:var(--muted);font-size:11.7px}.stat-tile strong{font-size:25px;letter-spacing:-.7px;line-height:1.35;margin-top:8px}.stat-tile small{color:var(--muted);font-size:10.8px;margin-top:auto}.stat-info strong{font-size:18px;margin-top:15px;color:var(--primary)}.panel{background:var(--surface);border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);padding:23px;margin-bottom:22px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.panel-heading h2,.identity-panel h2,.backup-card h2{margin:0 0 3px;font-size:17px;letter-spacing:-.4px}.panel-heading p,.identity-panel p,.backup-card p{color:var(--muted);margin:0;font-size:12.2px;line-height:1.65}.table-controls{margin:10px 0 17px}.data-table{width:100%;border-collapse:collapse;text-align:left}.data-table thead{background:var(--surface-2)}.data-table th{padding:12px 14px;font-size:10px;font-weight:800;color:var(--muted);letter-spacing:.7px;border-block:1px solid var(--line)}.data-table td{border-bottom:1px solid var(--line);padding:14px;vertical-align:middle}.data-table tbody tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:var(--surface-2)}.data-table th:first-child{border-top-left-radius:8px}.data-table th:last-child{border-top-right-radius:8px}.table-scroll{width:100%;overflow-x:auto}.table-app{display:flex;align-items:center;gap:11px;min-width:190px}.table-avatar{width:38px;height:38px;border-radius:10px;background:var(--accent-light);color:var(--accent);font-size:12px;font-weight:800;display:grid;place-items:center;flex:0 0 auto}.table-app>span:last-child{min-width:0;display:flex;flex-direction:column}.table-app strong{font-size:12.8px;line-height:1.4}.table-app small{font-size:11px;line-height:1.3;color:var(--muted);max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-url{font-size:11.6px;color:var(--muted);max-width:190px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-url:hover{color:var(--primary);text-decoration:underline}.soft-pill{background:var(--surface-3);border-radius:7px;padding:5px 8px;font-size:10.8px;color:var(--muted);white-space:nowrap}.actions-head{text-align:right}.table-actions{display:flex;align-items:center;gap:3px;justify-content:flex-end}.inline-form{display:inline-flex;align-items:center}.toggle-pill{position:relative;border:0;border-radius:30px;width:36px;height:20px;background:#c3ccdc;transition:background .18s;padding:3px}.toggle-pill.on{background:#5f72db}.toggle-pill span{display:block;height:14px;width:14px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #0002;transition:transform .18s}.toggle-pill.on span{transform:translateX(16px)}.table-foot{border-top:1px solid var(--line);padding:16px 0 0;font-size:11.5px;color:var(--muted)}.empty-table{display:flex;align-items:center;flex-direction:column;gap:11px;padding:42px 8px;text-align:center}.empty-table>.cp-icon{width:32px;height:32px;color:var(--primary)}.empty-table h3{margin:0}.empty-table p{margin:0 0 5px;color:var(--muted);font-size:12px}.identity-panel{display:flex;align-items:center;justify-content:space-between;gap:24px}.identity-form{display:flex;gap:10px;width:min(480px,100%)}.identity-form .control{min-width:0;flex:1}.alert{display:flex;align-items:flex-start;gap:9px;padding:13px 16px;border-radius:10px;margin-bottom:17px;border:1px solid var(--line);font-size:12.8px}.alert-success{background:var(--success-soft);color:var(--success)}.alert-error{background:var(--danger-soft);color:var(--danger)}.alert .cp-icon{flex-shrink:0}.control{height:42px;width:100%;padding:9px 12px;border:1px solid var(--line-strong);background:var(--surface);border-radius:9px;outline:0;color:var(--text);font-size:12.8px;transition:border-color .16s,box-shadow .16s}.control:hover{border-color:var(--muted)}.control:focus{border-color:var(--primary);box-shadow:var(--focus)}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field label{font-size:12px;font-weight:700}.field label span{color:var(--danger)}.field small{color:var(--muted);font-size:11px;line-height:1.6}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field.full{grid-column:1/-1}.check-label{display:flex;flex-direction:row;align-items:center;gap:10px;font-weight:500!important;cursor:pointer}.check-label input{accent-color:var(--primary);width:16px;height:16px}.check-label span{color:var(--text)!important}.modal-overlay[hidden],.search-overlay[hidden],.catalog-view[hidden],.workspace-view[hidden],.empty-state[hidden]{display:none!important}.modal-overlay{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:15px}.modal-shade,.search-backdrop{position:absolute;inset:0;background:rgba(8,17,33,.67);backdrop-filter:blur(3px)}.modal-panel{position:relative;z-index:1;background:var(--surface);color:var(--text);width:min(620px,100%);max-height:min(92vh,930px);overflow:auto;border:1px solid var(--line-strong);border-radius:17px;box-shadow:0 30px 70px #07102955}.modal-small{width:min(430px,100%)}.modal-top{padding:26px 26px 20px;display:flex;align-items:start;gap:20px;justify-content:space-between;border-bottom:1px solid var(--line)}.modal-top h2{font-size:21px;letter-spacing:-.5px;margin:6px 0}.modal-top p{margin:0;color:var(--muted);font-size:12px}.modal-body{padding:23px 26px 0}.modal-footer{display:flex;justify-content:flex-end;gap:9px;padding:23px 0 25px}.modal-small .modal-footer{padding:21px 24px}.modal-small .modal-top{padding:23px 24px}.modal-open{overflow:hidden}.settings-columns{display:grid;grid-template-columns:1fr .95fr;gap:19px}.form-stack{display:flex;flex-direction:column;gap:18px;max-width:520px}.info-panel{align-self:start}.security-feature{display:flex;gap:13px;padding:16px 0;border-top:1px solid var(--line)}.security-feature>.cp-icon{color:var(--primary);flex-shrink:0}.security-feature strong{font-size:12.5px}.security-feature p{color:var(--muted);font-size:11.8px;margin:4px 0 0}.theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.theme-choice{background:var(--surface);border:1px solid var(--line-strong);border-radius:12px;padding:13px;text-align:left;color:var(--text);position:relative;display:flex;flex-direction:column;gap:3px}.theme-choice.is-active{border-color:var(--primary);box-shadow:var(--focus)}.theme-choice strong{font-size:13px;margin-top:6px}.theme-choice small{font-size:11px;color:var(--muted)}.selected-marker{display:none;position:absolute;right:15px;bottom:15px;color:var(--primary)}.theme-choice.is-active .selected-marker{display:block}.theme-preview{height:118px;display:flex;width:100%;overflow:hidden;border-radius:7px;border:1px solid #cad2de;background:#f5f7ff}.theme-preview>span{width:28%;background:#17233a}.theme-preview>i{display:flex;flex:1;flex-direction:column;gap:11px;padding:19px 12px}.theme-preview>i b{height:25px;background:#fff;border:1px solid #d9e0ec;border-radius:5px}.theme-preview>i b:last-child{height:32px}.theme-dark{background:#111a2c;border-color:#2a3a4f}.theme-dark>span{background:#090f1b}.theme-dark>i b{background:#27374f;border-color:#43536e}.theme-teal{background:#f0f8f6}.theme-teal>span{background:#18353b}.theme-teal>i b{border-color:#d8ebe8}.preference-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:19px 0;border-top:1px solid var(--line)}.preference-row>div{display:flex;gap:13px;align-items:start}.preference-row>div>.cp-icon{color:var(--primary)}.preference-row strong{display:block;font-size:12.8px}.preference-row small{display:block;color:var(--muted);font-size:11.8px;line-height:1.5;margin-top:3px}.backup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px}.backup-card{display:flex;flex-direction:column;min-height:335px;padding:26px}.backup-icon{width:46px;height:46px;background:var(--primary-light);color:var(--primary);display:grid;place-items:center;border-radius:12px;margin-bottom:15px}.backup-icon-secondary{background:var(--success-soft);color:var(--success)}.backup-card h2{font-size:18px;margin-bottom:9px}.backup-card p{min-height:55px}.check-list{display:flex;flex-direction:column;gap:12px;margin:19px 0;padding:0;list-style:none}.check-list li{display:flex;gap:9px;align-items:center;color:var(--muted);font-size:12px}.check-list .cp-icon{color:var(--success);width:15px;height:15px}.backup-action{margin-top:auto}.backup-action .btn{width:100%}.notice{display:flex;gap:14px;background:var(--primary-light);border-radius:12px;padding:19px;color:var(--text)}.notice>span{color:var(--primary)}.notice strong{font-size:13px}.notice p{font-size:11.9px;line-height:1.7;color:var(--muted);margin:6px 0 0}.notice code{font-size:11px;background:var(--surface);border-radius:4px;padding:2px 4px}
/* Busqueda */
.search-overlay{position:fixed;inset:0;z-index:100;display:flex;justify-content:center;align-items:flex-start;padding:12vh 20px 20px}.search-dialog{position:relative;z-index:2;width:min(565px,100%);background:var(--surface);border:1px solid var(--line);border-radius:15px;overflow:hidden;box-shadow:0 25px 75px rgba(0,0,0,.32)}.search-input-wrap{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line);color:var(--muted)}.search-input-wrap>input{border:0;outline:0;box-shadow:none!important;background:transparent;color:var(--text);font-size:15px;flex:1;min-width:0}.search-escape{font-size:10px;color:var(--muted);border:1px solid var(--line);padding:4px 6px;border-radius:5px;background:var(--surface-2)}.search-results{max-height:330px;overflow:auto;padding:9px}.search-option{display:flex;width:100%;align-items:center;gap:11px;padding:11px;border:0;text-align:left;background:transparent;color:var(--text);border-radius:8px}.search-option:hover,.search-option:focus{background:var(--surface-3)}.search-option strong{display:block;font-size:12.5px}.search-option small{display:block;font-size:11px;color:var(--muted)}.search-option>.cp-icon{margin-left:auto;color:var(--muted)}.search-empty{text-align:center;color:var(--muted);font-size:12px;padding:35px 12px}.search-foot{font-size:10.5px;color:var(--muted);border-top:1px solid var(--line);padding:10px 15px}
/* Autenticación e instalación */
.auth-body{background:#fff;color:#1b2840}.auth-layout{display:grid;grid-template-columns:minmax(330px,46%) 1fr;min-height:100vh}.auth-promo{background:radial-gradient(circle at 25% 75%,#394580,transparent 46%),linear-gradient(140deg,#172642,#101a30);color:#fff;display:flex;flex-direction:column;padding:42px clamp(32px,5vw,80px)}.auth-brand{margin:0}.auth-promo-content{margin:auto 0;max-width:490px}.auth-promo-content h1{font-size:clamp(35px,3.6vw,53px);letter-spacing:-1.6px;line-height:1.12;margin:25px 0 18px}.auth-promo-content p{color:#c0cce2;line-height:1.75;max-width:450px;font-size:14px}.auth-features{display:flex;flex-direction:column;gap:15px;margin-top:36px}.auth-features span{display:flex;align-items:center;gap:11px;font-size:13px;color:#e1e9fa}.auth-features .cp-icon{color:#7be4c9;width:17px;height:17px}.auth-promo-bottom{font-size:10px;letter-spacing:1.3px;color:#a9b8d0}.auth-main{display:flex;align-items:center;justify-content:center;padding:50px 24px;background:#fff}.auth-form-wrapper{width:min(430px,100%)}.auth-form-wrapper h1{font-size:30px;letter-spacing:-1px;margin:9px 0}.auth-description{font-size:13px;color:#718096;line-height:1.75;margin:0 0 28px}.auth-form{display:flex;flex-direction:column;gap:20px}.auth-form .control{background:#fff;color:#182439;border-color:#d7dfed;height:47px}.auth-form .field label{color:#172540}.auth-form .field small{color:#65758e}.auth-submit{width:100%;min-height:45px;margin-top:4px}.auth-bottom-info{margin-top:29px;padding-top:19px;border-top:1px solid #e5eaf4;display:flex;align-items:flex-start;gap:9px;font-size:11.5px;line-height:1.5;color:#7e8ba0}.auth-bottom-info>.cp-icon{color:#4b54a9}.back-link{display:inline-flex;align-items:center;gap:8px;margin-bottom:42px;font-size:12px;color:#65758e}.back-link:hover{color:#4e4acb}
.mobile-scrim{display:none}
@media(min-width:1400px){.content{padding-top:41px}.welcome-banner{min-height:275px}.app-grid{gap:21px}.application-card{min-height:222px}}
@media(max-width:1190px){.sidebar{width:232px;min-width:232px}.content{padding-left:28px;padding-right:28px}.app-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.data-table{min-width:840px}.identity-panel{align-items:flex-start;flex-direction:column}.identity-form{width:100%}}
@media(max-width:820px){.sidebar{position:fixed;left:0;top:0;bottom:0;transform:translateX(-101%);transition:transform .24s ease;box-shadow:14px 0 45px #0002;max-width:85vw;width:272px;min-width:272px}.sidebar.is-open{transform:none}.mobile-scrim.is-visible{display:block;position:fixed;inset:0;z-index:25;background:#070e1fb5}.hamburger{display:flex}.topbar{padding:0 22px;height:64px}.search-trigger{min-width:38px;width:38px;padding:0;justify-content:center}.search-trigger span,.search-trigger kbd{display:none}.welcome-art{opacity:.55;right:-6%}.welcome-text{max-width:80%}.content{padding:26px 22px 55px}.stat-row{grid-template-columns:repeat(3,1fr);gap:10px}.stat-tile{padding:16px}.stat-info strong{font-size:14px}.auth-layout{grid-template-columns:1fr}.auth-promo{min-height:210px;padding:28px 27px}.auth-promo-content{margin:25px 0 0}.auth-promo-content h1{font-size:29px;margin:13px 0}.auth-promo-content p{margin:0;font-size:12px}.auth-features,.auth-promo-bottom{display:none}.auth-main{padding:35px 22px 50px}.settings-columns{grid-template-columns:1fr}.backup-card{min-height:320px}}
@media(max-width:600px){.topbar{padding:0 15px;gap:6px}.topbar-left{gap:6px}.topbar-actions{gap:1px}.breadcrumb{font-size:11px;gap:6px}.breadcrumb>span:first-child{max-width:100px}.topbar-actions .icon-button{width:34px}.content{padding:22px 15px 60px}.welcome-banner{min-height:265px;padding:26px 24px}.welcome-banner h1{font-size:30px}.welcome-banner p{font-size:12px}.welcome-text{max-width:98%}.welcome-art{opacity:.11;right:-32%;width:74%}.section-heading{align-items:start;margin-top:30px}.section-heading h2{font-size:22px}.section-heading h1{font-size:25px}.section-heading p{font-size:11.5px}.section-heading>.btn{padding:8px;border:0;min-height:28px;font-size:11px}.section-heading>.btn .cp-icon{display:none}.app-grid,.theme-grid,.backup-grid{grid-template-columns:1fr;gap:12px}.application-card{padding:19px;min-height:190px}.application-card h3{margin-top:14px}.info-strip{align-items:start}.catalog-toolbar{flex-direction:column;align-items:start}.field-search{width:100%}.stat-row{grid-template-columns:1fr 1fr}.stat-row .stat-info{grid-column:1/-1;min-height:90px}.stat-tile{min-height:102px}.stat-tile strong{font-size:23px}.stat-info strong{margin-top:7px;font-size:16px}.panel{padding:16px;margin-bottom:14px}.panel-heading{flex-direction:column;align-items:stretch}.panel-heading .btn{align-self:stretch}.page-heading h1{font-size:25px}.page-heading p{font-size:12px}.identity-form{flex-direction:column}.form-grid{grid-template-columns:1fr}.modal-top{padding:19px}.modal-body{padding:19px 19px 0}.modal-footer{padding:20px 0}.modal-panel{max-height:95vh}.table-controls{flex-direction:column;align-items:start}.table-controls .field-search{width:100%}.workspace-heading{flex-direction:column;align-items:stretch}.workspace-heading-actions{justify-content:space-between}.workspace-heading-actions .btn{font-size:11px;padding:7px 9px}.workspace-frame-wrap{height:calc(100dvh - 310px);min-height:390px}.auth-form-wrapper h1{font-size:26px}.preference-row{align-items:start;flex-direction:column}.theme-preview{height:105px}.desktop-only{display:none}.backup-card{min-height:300px}.side-label{margin-top:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
.recent-access[hidden]{display:none!important}.recent-access{display:flex;align-items:center;gap:13px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 17px;margin-top:18px;box-shadow:var(--shadow)}.recent-symbol{width:35px;height:35px;display:grid;place-items:center;border-radius:10px;color:var(--primary);background:var(--primary-light)}.recent-access>div{min-width:0;flex:1;display:flex;flex-direction:column}.recent-access small{color:var(--muted);letter-spacing:1px;font-size:9px;font-weight:800}.recent-access strong{color:var(--text);font-size:12.5px}.recent-access>.btn{min-height:34px}.recent-access+.section-heading{margin-top:27px}
@media(max-width:600px){.recent-access{padding:12px;gap:9px}.recent-access>.btn{padding:7px 10px}.recent-access small{font-size:8px}}
/* Centro de Operaciones: acceso QR y dispositivo de confianza */
.qr-entry-panel{margin-top:1.4rem;padding:1.25rem;border:1px solid var(--border,#dfe4ef);border-radius:16px;background:var(--surface,#f6f8fc)}
.qr-entry-panel h2{font-size:1.18rem;margin:.3rem 0}.qr-entry-panel p{font-size:.86rem;line-height:1.55}
#qr-canvas{max-width:250px;margin:1rem auto}#qr-canvas svg{width:100%;display:block;border-radius:12px}
.qr-match{font-size:1.6rem;font-weight:800;letter-spacing:.1em;margin:.5rem 0;text-align:center}
.qr-mobile-wrap{width:100%;min-height:100dvh;display:grid;place-items:center;padding:20px}
.qr-mobile-card{padding:clamp(20px,4vw,36px);border-radius:20px;max-width:480px;width:100%;background:var(--surface,#fff);border:1px solid var(--border,#dee4ef)}
.qr-mobile-card h1{font-size:1.8rem;margin:.5rem 0 1rem}.qr-mobile-card p{line-height:1.6}
.qr-detail{background:var(--surface-secondary,#f0f3fa);border-radius:12px;margin:1rem 0;padding:15px;display:flex;flex-direction:column;gap:4px}
.qr-detail span{font-size:.77rem;opacity:.75}.qr-detail strong{font-size:2rem;letter-spacing:.12em}.qr-detail small{font-size:.8rem;overflow-wrap:anywhere}
.qr-confirm-form .btn{width:100%;justify-content:center}.qr-mobile-card .btn{margin:.45rem 0;display:inline-flex}
.qr-table{width:100%;border-collapse:collapse}.qr-table th,.qr-table td{text-align:left;padding:.7rem .35rem;border-bottom:1px solid var(--border,#e4e8f0)}
.qr-config-card{margin-top:20px}.qr-config-card .control{width:100%}.qr-secret{font-family:ui-monospace,monospace;word-break:break-all;font-size:.81rem}
.qr-info{font-size:.85rem;line-height:1.6;opacity:.85}
