/* ITSECOLOGIA 054 / shared visual system. All area-specific layout lives beside its module. */
:root,html[data-theme=dark]{color-scheme:dark;--suite-height:64px;--bg:#070909;--panel:#101413;--panel2:#1a201f;--text:#f0f2ef;--muted:#a3afac;--line:#2b3431;--line2:#495c56;--accent:#85cec3;--accent2:#68b7ad;--accent-bright:#a4dfd5;--accent-dark:#173a34;--accent-glow:#76c9ba20;--green:#a0d4ad;--green-bg:#152a20;--amber:#e6b67e;--amber-bg:#2a2117;--red:#f19a9c;--red-bg:#311d20;--blue:#a6b1d3;--blue-bg:#1c2331;--online:#a4dfd5;--offline:#89928f;--up:#afa3d5;--down:#73c7bb;--surface:#101413;--control:#1b2220;--hover:#242f2b;--active-bg:#24443d;--active-text:#d4f2eb;--field:#0b0e0d;--badge-bg:#293d36;--badge-text:#c6e3d8;--glass:#101413f5;--veil:#080b0be8;--soft:#8abdaf0b;--shadow:0 20px 80px #0005;--shadow-panel:0 8px 30px #0003;--dialog-backdrop:#000b;--danger-text:#f19a9c;--danger-line:#713c43;--danger-bg:#311d20;--danger-hover:#4b262b;--scene-background:radial-gradient(ellipse at 50% 40%,#162923,#050807 76%);--scene-vignette:none;--energy-background:linear-gradient(180deg,#101a17,#080d0b);--chart-grid:#a8c7bb15;--chart-axis:#a8c7bb44;--chart-text:#a3afac;--chart-up:#afa3d5;--chart-up-line:#c4b8e2;--chart-down:#68b7ad;--chart-down-line:#9bd9cb;--history-chart-grid:#a8c7bb20;--history-chart-text:#a3afac;--history-chart-upload:#afa3d5;--history-chart-download:#73c7bb;--history-chart-cursor:#f0f2ef;--scroll-blue:#8bcbb9;--scroll-blue-bright:#bce5d4;--font-ui:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;--radius:16px;accent-color:var(--accent)}
html[data-theme=white]{color-scheme:light;--bg:#f4f6f3;--panel:#fff;--panel2:#ebefeb;--text:#172820;--muted:#52665b;--line:#d6dfd8;--line2:#97b3a3;--accent:#246b5a;--accent2:#36796b;--accent-bright:#245d50;--accent-dark:#e1eee7;--accent-glow:#36796b14;--green:#286942;--green-bg:#e5f2e9;--amber:#875a25;--amber-bg:#fcf0dc;--red:#a33544;--red-bg:#fbe7e9;--blue:#5d5892;--blue-bg:#eeeafa;--surface:#fff;--control:#ebefeb;--hover:#e2ece4;--active-bg:#e1eee7;--active-text:#1d5d4a;--field:#f9fbf8;--badge-bg:#dce9df;--badge-text:#264936;--glass:#fffffff5;--veil:#f5f8f5eb;--online:#36796b;--offline:#67786c;--up:#7969a4;--down:#36796b;--scene-background:linear-gradient(170deg,#f7faf7,#dbe6dc);--scene-vignette:none;--energy-background:#edf3ed;--chart-text:#52665b;--chart-grid:#20482a18;--chart-axis:#20482a40;--chart-up:#8a77ad;--chart-up-line:#685384;--chart-down:#458a7a;--chart-down-line:#246b5a;--history-chart-text:#52665b;--history-chart-grid:#20482a18;--history-chart-upload:#7969a4;--history-chart-download:#36796b;--history-chart-cursor:#172820;--shadow:0 20px 80px #12351c15;--shadow-panel:0 6px 24px #12351c0c;--dialog-backdrop:#14251f88;--scroll-blue:#36796b;--scroll-blue-bright:#246b5a}
body{font-family:var(--font-ui);background:var(--bg);color:var(--text)}button,input,textarea,select{font-family:inherit}button,a,input,select,textarea{touch-action:manipulation}button{font-weight:550}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button:disabled{cursor:not-allowed}a{text-underline-offset:4px}::selection{background:var(--accent-dark);color:var(--text)}[hidden]{display:none!important}
.suite-bar{height:var(--suite-height);flex:0 0 var(--suite-height);display:flex;align-items:center;gap:28px;padding:0 22px;border-bottom:1px solid var(--line);background:var(--bg);position:relative;z-index:110;font:0.875rem var(--font-ui);box-sizing:border-box}
.suite-brand{display:flex;gap:10px;align-items:center;text-decoration:none;color:var(--text);flex-shrink:0;font-weight:700;letter-spacing:1.4px;font-size:0.9375rem}.suite-brand svg{width:27px;height:27px;fill:none;stroke:var(--accent);stroke-width:1.5;stroke-linecap:round}.suite-brand small{display:block;font-size:0.5rem;color:var(--muted);letter-spacing:2.4px;margin-top:4px}.suite-brand b{font:0.625rem ui-monospace,monospace;margin-left:8px;border:1px solid var(--line);border-radius:6px;padding:5px;color:var(--muted)}
.suite-areas{display:flex;align-items:center;gap:5px;flex:1;min-width:0;height:100%;overflow:auto;scrollbar-width:none}.suite-areas a{display:flex;gap:8px;align-items:center;padding:10px 15px;color:var(--muted);border:1px solid transparent;border-radius:22px;white-space:nowrap;text-decoration:none;font-weight:550}.suite-areas a:hover{color:var(--text);background:var(--panel2)}.suite-areas a[aria-current]{color:var(--accent-bright);background:var(--accent-dark);border-color:var(--line2)}.suite-areas svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round}.suite-account{font-size:0.75rem;color:var(--muted);text-decoration:none;white-space:nowrap}
.access-identity{font-size:0.8125rem}.access-logout{border-radius:20px!important;font-size:0.6875rem!important}.theme-toggle,.top-actions button{border-radius:20px!important}.suite-bar~.cert-shell,.suite-bar~.admin-shell{height:calc(100dvh - var(--suite-height));min-height:0}.suite-bar~.cert-shell .cert-sidebar,.suite-bar~.admin-shell .admin-sidebar{height:calc(100dvh - var(--suite-height));top:0}.suite-bar~.cert-shell .cert-workspace,.suite-bar~.admin-shell .admin-work{height:100%;min-height:0}.cert-sidebar>.back-link,.cert-sidebar>.cert-brand,.admin-sidebar>.admin-brand,.admin-sidebar>.admin-back{display:none}.cert-top,.admin-top,.audit-top{background:var(--bg);border-color:var(--line);box-shadow:none;padding:16px 28px;min-height:72px}.cert-top>div:first-child .eyebrow{font-size:0.625rem}.admin-top{position:relative;top:auto}.admin-sidebar,.cert-sidebar{background:var(--panel)}.admin-sidebar{padding-top:28px}.audit-top nav,.audit-top>.audit-brand{display:none}.audit-top:before{content:'CENTRO AUDIT';font-size:0.6875rem;font-weight:650;letter-spacing:1.8px;color:var(--muted);margin-right:auto}.account-body .admin-top{top:auto}.suite-bar~#admin-main{min-height:0;overflow:auto}.admin-body:has(.suite-bar){display:flex;flex-direction:column;height:100dvh;overflow:hidden}.admin-shell{flex:1;min-height:0}.account-body #admin-main{width:100%;flex:1}.admin-top [data-access-identity]{margin-left:auto}.admin-caption,.admin-breadcrumb{color:var(--muted)}
.admin-body .admin-heading h1{font-size:2.375rem;letter-spacing:-1.6px}.admin-body .admin-heading p{color:var(--muted)}.admin-body .admin-panel,.admin-body .admin-metric,.admin-body .user-card,.admin-body .account-panel{border-radius:16px;box-shadow:none;background:var(--panel);border-color:var(--line)}.admin-body button,.admin-body input,.admin-body select{border-radius:10px}.admin-body .primary{background:var(--accent);border-color:var(--accent);color:var(--bg)}.admin-sidebar nav button.active{background:var(--accent-dark);color:var(--accent-bright);border-color:var(--line2)}.admin-heading .heading-dot{color:var(--accent)}.admin-footer{background:var(--bg);border-color:var(--line)}.admin-body table{font-size:0.875rem}.admin-body th{color:var(--muted)}
#lcd-login{border-color:var(--line2);background:var(--panel);box-shadow:0 0 80px #4e9a8619}.login-submit{background:var(--accent)!important;color:var(--bg)!important;border-radius:24px!important}.login-body{background:#000!important}
@media(max-width:1050px){.suite-bar{gap:14px;padding:0 16px}.suite-brand b{display:none}.suite-areas a{padding:10px 11px}.suite-brand{font-size:0.8125rem}}
@media(max-width:760px){:root,html[data-theme]{--suite-height:102px}.suite-bar{height:var(--suite-height);display:grid;grid-template-columns:1fr auto;grid-template-rows:42px 49px;gap:0 10px;padding:5px 12px}.suite-brand small{display:none}.suite-brand svg{width:22px;height:22px}.suite-brand b{display:inline;font-size:0.5rem;padding:3px}.suite-account{grid-column:2;grid-row:1}.suite-areas{grid-column:1/-1;grid-row:2;gap:3px}.suite-areas a{font-size:0.75rem;padding:9px 12px}.suite-areas svg{width:16px;height:16px}.cert-top,.admin-top,.audit-top{padding:12px 16px;min-height:66px}.suite-bar~.cert-shell{display:flex;flex-direction:column}.suite-bar~.cert-shell .cert-sidebar{height:auto;position:relative;top:auto;flex:0 0 auto;max-height:none;padding:9px 12px;border-bottom:1px solid var(--line);overflow:hidden}.suite-bar~.cert-shell .cert-sidebar nav{margin:0;padding:0;max-height:none}.suite-bar~.cert-shell .cert-workspace{min-height:0;flex:1;padding:0}.suite-bar~.admin-shell .admin-sidebar{height:auto;max-height:140px}.admin-body .admin-heading h1{font-size:1.875rem}.audit-top [data-access-identity]{margin-left:0}.audit-top:before{font-size:0.625rem}.access-user>span{max-width:120px}.cert-top [data-access-identity]{margin:0}.cert-top{gap:8px}.account-body .admin-top .admin-back{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}

.admin-body,html[data-theme=white] .admin-body{--ad-bg:var(--bg);--ad-panel:var(--panel);--ad-surface:var(--panel2);--ad-line:var(--line);--ad-text:var(--text);--ad-muted:var(--muted);--ad-accent:var(--accent)}

.login-body{--gate-fg:var(--text);--gate-muted:var(--muted);--gate-line:var(--line);--gate-panel:var(--panel);--gate-accent:var(--accent);--lcd-bg:var(--accent-dark);--lcd-fg:var(--accent-bright)}
@media(max-width:760px){
 .admin-body .admin-shell{display:flex;flex-direction:column;min-height:0;flex:1}
 .admin-body .admin-sidebar{position:relative;top:auto;flex:0 0 auto;height:auto;max-height:none;padding:10px 12px;overflow:hidden}
 .admin-body .admin-sidebar nav{display:flex;flex-direction:row;gap:6px;overflow:auto;scrollbar-width:none;max-width:100%}
 .admin-body .admin-sidebar nav button{width:auto;flex:0 0 auto;flex-direction:row;white-space:nowrap;gap:8px;padding:10px 13px;font-size:0.75rem}
 .admin-body .admin-sidebar nav button>span{width:auto;font-size:1rem}
 .admin-body .admin-work{flex:1;height:auto;min-height:0;overflow:auto}
 .admin-body .admin-sidebar>.admin-caption,.admin-body .admin-side-bottom{display:none}
 .admin-body .admin-top{min-height:65px;padding:12px 16px;top:0}
}

.suite-brand .suite-panda{display:block;flex:0 0 auto;width:26px;height:24px;object-fit:contain;filter:drop-shadow(0 0 1px #9bbdb850)}
@media(prefers-reduced-motion:no-preference){.suite-panda{animation:panda-wake 12s ease-in-out infinite}@keyframes panda-wake{0%,73%,91%,100%{filter:drop-shadow(0 0 1px #9bbdb840)}81%{filter:drop-shadow(0 0 5px #a9f6dfbd) brightness(1.12)}}}
@media(max-width:760px){.suite-brand .suite-panda{width:22px;height:21px}}

/* R2: leave a visible way to reach all areas on narrow desktop and touch screens. */
.suite-areas{overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--line,#48616b) transparent}
.suite-areas>a,.suite-areas>button{flex-shrink:0}.suite-areas a:focus-visible,.suite-areas button:focus-visible{outline:2px solid var(--accent,#83dccc);outline-offset:-3px}
@media(min-width:750px) and (max-width:1480px){.suite-bar{gap:clamp(8px,1vw,20px);padding-inline:clamp(7px,1vw,17px)}.suite-areas{gap:3px}.suite-areas>a,.suite-areas>button{padding-inline:clamp(6px,.65vw,10px)}}
