:root {
    --text:#242426;
    --muted:#787b82;
    --brand:#7434DA;
    --brand-hover:#6127BD;
    --primary:var(--brand);
    --brand-soft:rgba(116,52,218,.09);
    --critical:#c52828;
    --bg:#F7F7FC;
    --line:rgba(98,109,124,.15);
    --glass:rgba(255,255,255,.65);
    --shadow:0 4px 14px rgba(37,46,62,.055),inset 0 1px 0 rgba(255,255,255,.92);
    --radius:20px;
    --control-radius:13px;
    --space:24px;
    --topbar-height:64px;
    --glass-blur:22px;
    --menu-opacity:.30;
    --menu-blur:16px;
    --menu-saturation:1.12;
    --small-space:12px;
    --large-space:32px;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:var(--text);
    font-synthesis:none;
    font-size:14px;
    background:var(--bg);
}
* {
    box-sizing:border-box;
}
body {
    margin:0;
}
a {
    color:inherit;
    text-decoration:none;
}
button,input,select {
    font:inherit;
    color:inherit;
}
button,a,input,select {
    -webkit-tap-highlight-color:transparent;
}
button {
    cursor:pointer;
}
button {
    border:0;
    background:none;
}
button:disabled {
    cursor:not-allowed;
    opacity:.5;
}
button,input,select,a {
    outline-offset:4px;
}
:focus-visible {
    outline:2px solid var(--brand);
}
h1,h2,h3,p {
    margin:0;
}
h1 {
    font-size:25px;
    letter-spacing:-.8px;
    font-weight:650;
}
h2 {
    font-size:21px;
    font-weight:630;
    letter-spacing:-.6px;
}
h3 {
    font-size:15px;
    font-weight:550;
}
p {
    line-height:1.55;
}
small,.small {
    font-size:12px;
}
button,a {
    touch-action:manipulation;
}
.icon {
    flex-shrink:0;
    vertical-align:middle;
}
.muted {
    color:var(--muted);
}
.danger {
    color:var(--brand);
}
.sr-only {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
}
.glass {
    background:var(--glass);
    border:1px solid var(--line);
    box-shadow:var(--shadow);
    border-radius:var(--radius);
    backdrop-filter:blur(var(--glass-blur));
    -webkit-backdrop-filter:blur(var(--glass-blur));
}
.icon-button {
    width:40px;
    height:40px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    flex-shrink:0;
}
.icon-button:hover {
    background:rgba(122,130,142,.09);
}
.app-shell {
    min-height:100dvh;
    background:radial-gradient(ellipse at 15% 34%,rgba(217,224,232,.25),transparent 55%),linear-gradient(120deg,#f6f7f9,#fafbfc);
}
#app-content {
    min-height:100dvh;
    display:flex;
    flex-direction:column;
}
.topbar {
    height:var(--topbar-height);
    flex-shrink:0;
    display:flex;
    align-items:center;
    gap:20px;
    padding:0 28px;
    border-bottom:1px solid var(--line);
    background:var(--tenant-header,rgba(235,239,244,var(--menu-opacity)));
    backdrop-filter:blur(var(--menu-blur)) saturate(var(--menu-saturation));
    -webkit-backdrop-filter:blur(var(--menu-blur)) saturate(var(--menu-saturation));
    box-shadow:0 2px 10px #24242606;
    position:sticky;
    top:0;
    z-index:5;
}
.brand {
    width:176px;
    flex-shrink:0;
    display:flex;
    align-items:center;
}
.brand :is(img,.dalkimia-wordmark),.menu-brand :is(img,.dalkimia-wordmark) {
    width:176px;
    height:auto;
    display:block;
}
.search-container {
    position:relative;
    flex:1;
    max-width:720px;
    margin:0 auto;
    min-width:130px;
}
.search-capsule {
    height:40px;
    display:flex;
    align-items:center;
    gap:12px;
    border:1px solid var(--line);
    border-radius:30px;
    padding:0 16px;
    background:linear-gradient(135deg,#ffffffbd,#f0f2f775);
    box-shadow:var(--shadow);
    backdrop-filter:blur(18px);
}
.search-capsule input {
    border:0;
    background:none;
    outline:none;
    width:100%;
    min-width:0;
    font-size:14px;
}
.search-capsule:focus-within {
    outline:2px solid #92969d;
    outline-offset:2px;
}
input::placeholder {
    color:#898c93;
}
kbd {
    white-space:nowrap;
    flex-shrink:0;
    padding:3px 9px;
    border:1px solid var(--line);
    border-radius:6px;
    background:#f0f1f5;
    font-size:12px;
    color:var(--muted);
}
.search-results {
    position:absolute;
    top:54px;
    left:0;
    right:0;
    padding:10px;
    background:#f9fafbf5;
}
.search-results a {
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px;
    border-radius:10px;
}
.search-results a:hover {
    background:#e9ecef;
}
.search-results a span {
    flex:1;
}
.search-results small {
    display:block;
    color:var(--muted);
    margin-top:4px;
}
.search-results p {
    padding:16px;
}
.search-caption {
    font-size:10px;
    letter-spacing:1px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    color:var(--muted);
    padding:0 8px;
}
.site-selector {
    display:flex;
    align-items:center;
    gap:10px;
    min-width:185px;
    max-width:230px;
}
.site-selector>.icon {
    width:27px;
    height:27px;
}
.site-selector>span {
    min-width:0;
}
.site-organization {
    font-size:12px;
    color:var(--muted);
    display:block;
    margin-bottom:3px;
}
.site-selector select {
    width:100%;
    border:0;
    background:transparent;
    font-size:13px;
    font-weight:550;
    cursor:pointer;
    padding:2px 0;
}
.alerts-button {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    color:#e1111b;
    border:1px solid #f5dfe1;
    background:linear-gradient(135deg,#fff7f8d9,#fff1f2a1);
    padding:10px 16px;
    border-radius:28px;
    box-shadow:var(--shadow);
    white-space:nowrap;
}
.alerts-button b,.count {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:var(--brand);
    color:white;
    border-radius:50%;
    font-size:12px;
    width:23px;
    height:23px;
    font-weight:550;
}
.main-content {
    width:100%;
    max-width:1800px;
    margin:0 auto;
    padding:24px 28px 36px;
    flex:1;
}
.page-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin:0 0 20px;
}
.breadcrumb {
    display:flex;
    align-items:center;
    gap:15px;
    font-size:12px;
    color:var(--muted);
}
.breadcrumb .icon {
    width:18px;
    height:18px;
    color:var(--text);
}
.breadcrumb [aria-current] {
    color:var(--text);
}
.alert-summary {
    display:flex;
    align-items:center;
    gap:15px;
    border:1px solid #f2dde0;
    border-radius:16px;
    padding:16px 20px;
    background:linear-gradient(100deg,#fff1f3d6,#fff9fa9e);
    color:#e7141e;
    box-shadow:var(--shadow);
    margin-bottom:18px;
}
.alert-summary strong {
    font-weight:550;
}
.summary-action {
    margin-left:auto;
    display:flex;
    align-items:center;
    gap:10px;
}
.dashboard-grid {
    display:grid;
    grid-template-columns:minmax(0,1.85fr) minmax(310px,1fr);
    gap:18px;
}
.operating-card,.modules-card,.pinned-card,.activity-card {
    padding:22px;
}
.card-heading {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-bottom:20px;
}
.card-heading p {
    color:var(--muted);
    font-size:13px;
    margin-top:5px;
}
.subtle-badge {
    display:inline-block;
    border:1px solid var(--line);
    background:#f0f2f587;
    padding:5px 9px;
    border-radius:7px;
    color:var(--muted);
    font-size:10px;
    white-space:nowrap;
}
.metrics {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    margin-top:10px;
}
.metric {
    padding:0 22px;
    border-right:1px solid var(--line);
}
.metric:first-child {
    padding-left:0;
}
.metric:last-child {
    border:0;
    padding-right:0;
}
.metric-label {
    display:flex;
    align-items:center;
    gap:10px;
    font-size:12px;
    color:var(--muted);
    min-height:44px;
}
.icon-tile {
    width:46px;
    height:46px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #e1e5ea;
    border-radius:13px;
    background:linear-gradient(135deg,#fff,#f0f2f680);
    box-shadow:0 3px 8px #31394a04;
    flex-shrink:0;
}
.icon-tile .icon {
    width:26px;
    height:26px;
}
.icon-tile.warm {
    background:#fff8ed;
    color:#c99132;
    border-color:#f5e9d6;
}
.metric-value {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:7px;
    font-size:36px;
    font-weight:650;
    letter-spacing:-1.4px;
    margin:16px 0 10px;
    line-height:1.1;
}
.percent {
    font-size:29px;
}
.metric-total {
    font-size:29px;
    font-weight:500;
}
.badge {
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 10px;
    border-radius:20px;
    border:1px solid #ffffffeb;
    box-shadow:0 2px 6px #30363f06;
    font-size:11px;
    font-weight:450;
    letter-spacing:0;
    white-space:nowrap;
}
.badge.success {
    color:#438565;
    background:#effaf2;
}
.badge.warning {
    background:#fff7eb;
    color:#806333;
}
.metric small {
    display:block;
    color:var(--muted);
    font-size:11px;
    margin-top:12px;
}
.sparkline {
    width:100%;
    height:33px;
    display:block;
}
.metric:first-child small {
    margin-top:3px;
}
.maintenance-caption {
    font-size:11px;
    line-height:1.8;
}
.maintenance-caption .danger {
    margin-left:5px;
}
.activity-card {
    grid-column:2;
    grid-row:1 / 3;
    display:flex;
    flex-direction:column;
}
.activity-card .card-heading {
    margin-bottom:14px;
}
.status-dot {
    display:inline-block;
    width:8px;
    height:8px;
    border-radius:50%;
    flex-shrink:0;
}
.status-dot.neutral {
    background:#8c9895;
    box-shadow:0 0 0 3px #8c98950d;
}
.status-dot.critical {
    background:var(--critical);
    box-shadow:0 0 0 3px #c5282812;
}
.status-dot.warning {
    background:#d3a04b;
}
.status-dot.success {
    background:#68a481;
}
.segmented {
    display:flex;
    align-self:flex-start;
    padding:4px;
    border:1px solid var(--line);
    border-radius:12px;
    background:#edf0f450;
    margin-bottom:18px;
}
.segmented button {
    font-size:12px;
    color:var(--muted);
    padding:7px 17px;
    border-radius:9px;
}
.segmented button.selected {
    background:#fff;
    color:var(--text);
    box-shadow:0 2px 8px #262b3b12;
}
.timeline {
    flex:1;
}
.timeline article {
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:15px 0;
    position:relative;
}
.timeline article:not(:last-child):after {
    content:"";
    position:absolute;
    left:56px;
    top:31px;
    bottom:-15px;
    border-left:1px solid var(--line);
}
.timeline time {
    font-size:12px;
    color:var(--muted);
    width:40px;
    padding-top:2px;
}
.timeline .status-dot {
    margin-top:5px;
}
.timeline article>div {
    flex:1;
    padding-bottom:13px;
    border-bottom:1px solid var(--line);
}
.timeline article:last-child>div {
    border:0;
}
.timeline p {
    font-size:12px;
    color:var(--muted);
    margin-top:6px;
}
.activity-link {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    border-top:1px solid var(--line);
    padding-top:18px;
    margin-top:10px;
    font-size:13px;
}
.activity-link .icon {
    width:18px;
    height:18px;
}
.modules-card h2 {
    margin-bottom:16px;
}
.module-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}
.module-link {
    display:flex;
    align-items:center;
    gap:14px;
    min-width:0;
    padding:14px;
    border-radius:14px;
    border:1px solid var(--line);
    background:linear-gradient(135deg,#ffffff80,#f6f8fa60);
    box-shadow:var(--shadow);
    transition:background .15s,box-shadow .15s;
}
.module-link:hover {
    background:#fff;
    box-shadow:0 5px 16px #2c35400c;
}
.module-link>span:nth-child(2) {
    min-width:0;
    flex:1;
}
.module-link strong {
    font-size:13px;
    font-weight:550;
    display:block;
}
.module-link small {
    display:block;
    margin-top:6px;
    color:var(--muted);
    line-height:1.5;
    font-size:11px;
}
.module-link>.icon {
    width:17px;
    height:17px;
}
.pinned-card {
    grid-column:1 / -1;
}
.pinned-card .card-heading {
    margin-bottom:16px;
}
.pinned-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
}
.app-footer {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:20px 30px;
    border-top:1px solid var(--line);
    font-size:11px;
    color:var(--muted);
    gap:12px;
    min-height:62px;
}
.app-footer>span:first-child {
    display:flex;
    align-items:center;
    gap:10px;
}
.footer-divider {
    margin:0 8px;
    color:#bcc0c6;
}
.overlay-backdrop {
    position:fixed;
    inset:0;
    z-index:20;
    background:transparent;
}
.side-menu {
    position:fixed;
    top:0;
    left:0;
    bottom:0;
    width:320px;
    max-width:calc(100vw - 32px);
    z-index:30;
    display:flex;
    flex-direction:column;
    background:var(--tenant-sidebar,rgba(235,239,244,var(--menu-opacity)));
    backdrop-filter:blur(var(--menu-blur)) saturate(var(--menu-saturation));
    -webkit-backdrop-filter:blur(var(--menu-blur)) saturate(var(--menu-saturation));
    border-right:1px solid #ffffffc4;
    box-shadow:6px 0 24px #2e37420b;
    animation:menu-enter .22s ease-out;
}
.menu-brand {
    height:var(--topbar-height);
    flex-shrink:0;
    padding:0 20px 0 28px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}
.menu-navigation {
    flex:1;
    overflow-y:auto;
    padding:8px 16px 18px;
    scrollbar-width:thin;
}
.section-caption {
    display:flex;
    gap:12px;
    align-items:center;
    text-transform:uppercase;
    font-size:10px;
    font-weight:650;
    letter-spacing:1.4px;
    color:var(--muted);
    padding:15px 10px 9px;
}
.section-caption i {
    height:1px;
    background:var(--line);
    flex:1;
}
.nav-item {
    display:flex;
    align-items:center;
    gap:14px;
    width:100%;
    padding:10px 12px;
    min-height:43px;
    text-align:left;
    font-size:13px;
    border:1px solid transparent;
    border-radius:12px;
}
.nav-item>.icon {
    width:22px;
    height:22px;
}
.nav-item span:nth-child(2) {
    flex:1;
}
.nav-item:hover:not(:disabled),.submenu a:hover {
    background:#ffffff50;
}
.nav-item.active,.submenu a.active {
    background:linear-gradient(110deg,#ffffffbc,#ffffff73);
    border:1px solid #ffffffdb;
    box-shadow:0 4px 12px #3e465710;
}
.nav-item.disabled {
    opacity:.55;
}
.nav-item small {
    font-size:9px;
    white-space:nowrap;
    background:#a3adbe26;
    border-radius:15px;
    padding:4px 6px;
}
.group-indicator {
    font-size:20px;
    font-weight:300;
    color:var(--muted);
    line-height:1;
}
.submenu {
    border-left:1px solid #aeb7c4;
    margin:4px 0 8px 23px;
    padding-left:23px;
}
.submenu a {
    display:block;
    border:1px solid transparent;
    padding:7px 12px;
    border-radius:9px;
    font-size:12px;
}
.profile-container {
    padding:12px 16px 16px;
    position:relative;
    flex-shrink:0;
}
.profile-button {
    width:100%;
    display:flex;
    align-items:center;
    text-align:left;
    gap:12px;
    padding:10px;
    border-radius:15px;
    background:linear-gradient(130deg,#ffffffc7,#ffffff70);
    border-color:#ffffffed;
}
.avatar {
    height:38px;
    width:38px;
    min-width:38px;
    flex:0 0 38px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    border-radius:50%;
    border:2px solid white;
    box-shadow:0 2px 6px #3334;
    background:linear-gradient(120deg,#edf0f4,#cbd1dc);
    font-size:12px;
}
.profile-button .avatar img {
    display:block;
    width:100%;
    height:100%;
    min-width:0;
    max-width:100%;
    max-height:100%;
    object-fit:cover;
    border-radius:inherit;
}
.profile-button > span:nth-child(2) {
    min-width:0;
}
.profile-button strong,
.profile-button small {
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.profile-button strong {
    font-size:12px;
    font-weight:550;
}
.profile-button small {
    display:block;
    color:var(--muted);
    font-size:10px;
    margin-top:4px;
}
.ellipsis {
    margin-left:auto;
    color:var(--muted);
    letter-spacing:2px;
}
.profile-actions {
    position:absolute;
    left:16px;
    right:16px;
    bottom:88px;
    padding:7px;
    background:#f8f9fbf5;
}
.profile-actions button {
    display:flex;
    gap:10px;
    align-items:center;
    padding:12px;
    width:100%;
    text-align:left;
    border-radius:10px;
    font-size:12px;
}
.profile-actions button:hover {
    background:#e9ecef;
}
.profile-actions .icon {
    width:18px;
    height:18px;
}
[data-menu-open="true"] .topbar .brand :is(img,.dalkimia-wordmark) {
    visibility:hidden;
}
.alerts-panel {
    position:fixed;
    right:18px;
    top:18px;
    bottom:18px;
    width:420px;
    max-width:calc(100vw - 36px);
    z-index:30;
    padding:26px;
    background:#fafbfbeF;
    overflow-y:auto;
    animation:menu-enter .2s ease-out;
}
.panel-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:12px;
}
.panel-heading h2 {
    margin-top:8px;
}
.alerts-panel>p {
    color:var(--muted);
    font-size:13px;
}
.alert-list {
    margin:22px 0;
}
.alert-list article {
    display:flex;
    gap:13px;
    padding:22px 0;
    border-bottom:1px solid var(--line);
}
.alert-list .status-dot {
    margin-top:5px;
}
.alert-list small {
    color:var(--muted);
    font-size:10px;
}
.alert-list h3 {
    margin:7px 0;
}
.alert-list p {
    color:var(--muted);
    font-size:12px;
}
.skip-link {
    position:fixed;
    top:-100px;
    left:10px;
    z-index:50;
    background:white;
    padding:12px;
}
.skip-link:focus {
    top:10px;
}
.placeholder-card {
    min-height:480px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:45px;
    gap:18px;
}
.placeholder-icon {
    display:flex;
    align-items:center;
    justify-content:center;
    width:72px;
    height:72px;
    border-radius:22px;
    background:#edf0f4;
    border:1px solid var(--line);
    margin-bottom:10px;
}
.placeholder-icon .icon {
    width:35px;
    height:35px;
}
.placeholder-card p {
    max-width:450px;
    color:var(--muted);
}
.primary-button,.secondary-button {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:16px;
    padding:14px 20px;
    border-radius:12px;
    font-weight:550;
    font-size:13px;
    min-height:46px;
}
.primary-button {
    background:var(--tenant-button,var(--brand));
    color:var(--tenant-button-text,white);
    border:1px solid var(--tenant-button,var(--brand));
    box-shadow:0 4px 10px color-mix(in srgb,var(--brand) 16%,transparent);
}
.primary-button:hover {
    background:var(--tenant-button-hover,var(--brand-hover));
}
.primary-button .icon,.secondary-button .icon {
    width:18px;
    height:18px;
}
.secondary-button {
    border:1px solid var(--line);
    background:#ffffffa3;
}
.text-button {
    color:var(--muted);
    font-size:12px;
    padding:10px;
}
.eyebrow {
    font-size:10px;
    letter-spacing:1.8px;
    font-weight:650;
    color:var(--muted);
}
.auth-shell {
    min-height:100dvh;
    display:flex;
    flex-direction:column;
    background:radial-gradient(ellipse at 78% 52%,#dfe4ec63,transparent 45%),radial-gradient(ellipse at 20% 70%,#efebe540,transparent 50%),#fafbfc;
}
.auth-brand {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:32px 48px;
    gap:20px;
}
.auth-brand :is(img,.dalkimia-wordmark) {
    width:180px;
    display:block;
}
.demo-label {
    font-size:11px;
    letter-spacing:.2px;
    border:1px solid var(--line);
    border-radius:20px;
    padding:8px 13px;
    color:var(--muted);
    background:#ffffff82;
}
.auth-main {
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:40px;
}
.auth-footer {
    display:flex;
    justify-content:space-between;
    padding:28px 48px;
    font-size:10px;
    letter-spacing:.2px;
    color:#95989f;
}
.login-composition {
    display:grid;
    grid-template-columns:1.1fr 1fr;
    align-items:center;
    gap:100px;
    max-width:1050px;
    width:100%;
}
.login-intro h1 {
    font-size:46px;
    line-height:1.2;
    letter-spacing:-2px;
    margin:22px 0;
}
.login-intro h1 span {
    color:#8c8f94;
}
.login-intro>p {
    font-size:15px;
    color:var(--muted);
    line-height:1.9;
}
.intro-line {
    height:1px;
    width:50px;
    background:#c5c8ce;
    margin:30px 0;
}
.intro-features {
    display:flex;
    flex-direction:column;
    gap:16px;
    font-size:12px;
    color:#747981;
}
.intro-features span {
    display:flex;
    align-items:center;
    gap:12px;
}
.intro-features .icon {
    width:18px;
    height:18px;
}
.intro-index {
    display:block;
    margin-top:60px;
    font-size:9px;
    letter-spacing:1.7px;
    color:#989ca4;
}
.login-card {
    padding:36px;
    width:100%;
    max-width:440px;
    background:linear-gradient(130deg,#ffffffc9,#ffffff6b);
}
.auth-symbol {
    display:inline-flex;
    width:40px;
    height:40px;
    margin-bottom:26px;
}
.auth-symbol img {
    width:40px;
}
.login-card h2 {
    font-size:25px;
}
.login-card>p {
    font-size:13px;
    color:var(--muted);
    margin:9px 0 28px;
}
.login-card form {
    display:flex;
    flex-direction:column;
}
.login-card label {
    font-size:12px;
    font-weight:550;
    margin-bottom:9px;
}
.login-card input {
    background:#ffffff8f;
    border:1px solid #dce0e6;
    border-radius:10px;
    min-height:46px;
    padding:12px;
    width:100%;
    font-size:12px;
}
.password-field {
    position:relative;
}
.password-field input {
    padding-right:46px;
}
.password-field button {
    position:absolute;
    right:3px;
    top:3px;
}
.password-field .icon {
    width:18px;
    height:18px;
}
.field-error {
    font-size:11px;
    color:#d31e29;
    min-height:24px;
    padding-top:5px;
}
.login-card .primary-button {
    margin-top:5px;
}
.demo-notice {
    display:flex;
    align-items:flex-start;
    gap:9px;
    font-size:10px;
    color:var(--muted);
    line-height:1.6;
    border-top:1px solid var(--line);
    padding-top:20px;
    margin-top:26px;
}
.demo-notice .icon {
    width:16px;
    height:16px;
    margin-top:2px;
}
.demo-notice small {
    display:block;
    font-size:10px;
    color:#95989e;
    margin-top:4px;
}
.tenant-screen {
    max-width:600px;
    width:100%;
    text-align:center;
}
.tenant-screen h1 {
    font-size:32px;
    letter-spacing:-1px;
    margin:16px 0 10px;
}
.tenant-screen>p {
    color:var(--muted);
    font-size:13px;
}
.tenant-options {
    border:0;
    padding:0;
    margin:30px 0 24px;
    display:flex;
    flex-direction:column;
    gap:12px;
}
.tenant-option {
    position:relative;
    display:flex;
    align-items:center;
    text-align:left;
    padding:22px;
    gap:18px;
    cursor:pointer;
    border-radius:16px;
}
.tenant-option.chosen {
    border-color:#939aa5;
    background:#ffffffde;
    box-shadow:0 0 0 3px #aeb6c10b;
}
.tenant-option input {
    position:absolute;
    opacity:0;
    width:1px;
    height:1px;
}
.tenant-option:focus-within {
    outline:2px solid #60646c;
    outline-offset:3px;
}
.tenant-monogram {
    width:48px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#f2f3f5,#e7e9ee);
    border:1px solid var(--line);
    border-radius:12px;
    font-weight:550;
    font-size:14px;
}
.tenant-detail {
    flex:1;
}
.tenant-detail strong {
    font-size:15px;
    font-weight:550;
    display:block;
}
.tenant-detail small {
    display:block;
    color:var(--muted);
    font-size:11px;
    margin:6px 0;
}
.tenant-detail>span {
    font-size:10px;
    color:#91959d;
}
.selection-mark {
    display:flex;
    align-items:center;
    justify-content:center;
    width:23px;
    height:23px;
    border:1px solid #cdd1d8;
    border-radius:50%;
    color:transparent;
}
.selection-mark .icon {
    width:15px;
    height:15px;
}
.chosen .selection-mark {
    background:#34373b;
    color:white;
    border-color:#34373b;
}
.tenant-screen>.primary-button {
    width:100%;
}
.tenant-screen>.text-button {
    margin:10px 0 22px;
}
.tenant-footnote {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    font-size:10px;
    color:var(--muted);
}
.tenant-footnote .icon {
    width:14px;
    height:14px;
}
@keyframes menu-enter {
    from {
        transform:translateX(-18px);
        opacity:0;
    }
    to {
        transform:translateX(0);
        opacity:1;
    }
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
    .glass,.side-menu,.topbar {
        background:#f5f6f8;
    }
    .search-capsule {
        background:#f5f6f8;
    }
}
@media(min-width:1600px) {
    .main-content {
        padding:30px 36px 42px;
    }
    .operating-card,.activity-card,.modules-card,.pinned-card {
        padding:26px;
    }
    .metric-value {
        font-size:42px;
    }
    .module-link {
        padding:19px;
    }
    .timeline article {
        padding:20px 0;
    }
    .topbar {
        gap:26px;
    }
}
@media(max-width:1150px) {
    .topbar {
        gap:12px;
        padding:0 20px;
    }
    .brand {
        width:150px;
    }
    .brand :is(img,.dalkimia-wordmark) {
        width:150px;
    }
    .site-selector {
        min-width:160px;
    }
    .alerts-button {
        padding:10px;
    }
    .dashboard-grid {
        grid-template-columns:minmax(0,1.6fr) minmax(290px,1fr);
    }
    .metric {
        padding:0 12px;
    }
    .metric-label {
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }
    .metric-value {
        font-size:30px;
    }
    .metric-value .badge {
        font-size:9px;
    }
    .module-link {
        gap:10px;
        padding:12px;
    }
    .module-link .icon-tile {
        width:37px;
        height:37px;
    }
    .module-link strong {
        font-size:12px;
    }
    .pinned-grid .module-link {
        align-items:flex-start;
    }
    .login-composition {
        gap:50px;
    }
    .login-intro h1 {
        font-size:39px;
    }
}
@media(max-width:900px) {
    .brand {
        width:137px;
    }
    .brand :is(img,.dalkimia-wordmark) {
        width:137px;
    }
    .topbar {
        flex-wrap:wrap;
        height:auto;
        min-height:104px;
        padding:8px 20px;
        gap:8px;
    }
    .search-container {
        order:5;
        flex-basis:100%;
        max-width:none;
    }
    .search-capsule {
        height:38px;
    }
    .site-selector {
        margin-left:auto;
    }
    .alerts-button {
        margin-left:0;
    }
    .dashboard-grid {
        grid-template-columns:1fr;
    }
    .activity-card {
        grid-column:auto;
        grid-row:auto;
    }
    .modules-card {
        grid-row:2;
    }
    .pinned-card {
        grid-column:auto;
    }
    .metrics {
        grid-template-columns:repeat(3,1fr);
    }
    .metric-label {
        flex-direction:row;
        align-items:center;
    }
    .activity-card .segmented {
        align-self:flex-end;
        margin-top:-47px;
    }
    .pinned-grid {
        grid-template-columns:1fr;
    }
    .page-header h1 {
        font-size:22px;
    }
    .breadcrumb {
        gap:8px;
        font-size:10px;
    }
    .login-composition {
        gap:30px;
    }
    .login-intro h1 {
        font-size:34px;
    }
    .login-card {
        padding:28px;
    }
    .auth-brand {
        padding:28px;
    }
    .auth-main {
        padding:30px;
    }
    .auth-footer {
        padding:24px 28px;
    }
}
@media(max-width:640px) {
    :root {
        --space:16px;
    }
    .topbar {
        display:grid;
        grid-template-columns:130px 32px minmax(0,1fr);
        padding:8px 16px;
        gap:8px;
    }
    .topbar .brand {
        grid-column:1;
        grid-row:1;
    }
    .topbar .menu-toggle {
        grid-column:2;
        grid-row:1;
    }
    .topbar .alerts-button {
        grid-column:3;
        grid-row:1;
        justify-self:end;
    }
    .topbar .site-selector {
        grid-column:3;
        grid-row:2;
    }
    .topbar .search-container {
        grid-column:1 / 3;
        grid-row:2;
        width:100%;
    }
    .brand {
        width:130px;
    }
    .brand :is(img,.dalkimia-wordmark) {
        width:130px;
    }
    .menu-toggle {
        width:32px;
    }
    .site-selector {
        order:4;
        min-width:0;
        flex:1;
        max-width:none;
        margin:0;
    }
    .site-selector>.icon {
        width:20px;
        height:20px;
    }
    .site-selector select {
        font-size:11px;
    }
    .site-organization {
        font-size:10px;
    }
    .search-container {
        flex-basis:auto;
        flex:1.1;
        min-width:0;
        order:5;
    }
    .search-capsule {
        padding:0 10px;
        gap:7px;
    }
    .search-capsule input {
        font-size:11px;
    }
    .search-capsule .icon {
        width:17px;
        height:17px;
    }
    .search-capsule kbd {
        display:none;
    }
    .search-results {
        position:fixed;
        left:16px;
        right:16px;
        top:112px;
    }
    .alerts-button {
        margin-left:auto;
        padding:8px 11px;
        font-size:12px;
    }
    .alerts-button>.icon {
        width:19px;
        height:19px;
    }
    .alerts-button b {
        width:20px;
        height:20px;
        font-size:10px;
    }
    .main-content {
        padding:22px 16px;
    }
    .page-header {
        display:block;
        margin-bottom:18px;
    }
    .page-header h1 {
        font-size:23px;
    }
    .breadcrumb {
        margin-top:12px;
        gap:10px;
    }
    .alert-summary {
        padding:13px;
        gap:8px;
        font-size:11px;
        flex-wrap:wrap;
    }
    .alert-summary>.icon {
        width:19px;
        height:19px;
    }
    .alert-summary-dot {
        display:none;
    }
    .summary-action {
        font-size:0;
        gap:0;
    }
    .summary-action .icon {
        width:17px;
        height:17px;
    }
    .alert-summary>span:not(.summary-action):not(.alert-summary-dot) {
        font-size:10px;
    }
    .operating-card,.modules-card,.pinned-card,.activity-card {
        padding:18px;
    }
    h2 {
        font-size:19px;
    }
    .card-heading {
        gap:8px;
    }
    .card-heading .subtle-badge {
        font-size:8px;
    }
    .metrics {
        grid-template-columns:1fr;
    }
    .metric {
        border-right:0;
        border-bottom:1px solid var(--line);
        padding:18px 0!important;
        display:grid;
        grid-template-columns:1fr 1fr;
        align-items:center;
        gap:5px;
    }
    .metric:first-child {
        padding-top:0!important;
    }
    .metric:last-child {
        padding-bottom:0!important;
    }
    .metric-label {
        gap:10px;
        font-size:11px;
    }
    .metric-value {
        justify-content:flex-end;
        margin:0;
        font-size:31px;
        flex-wrap:wrap;
    }
    .metric-value .badge {
        display:none;
    }
    .metric-total {
        font-size:24px;
    }
    .metric small {
        margin:0!important;
        font-size:10px;
        text-align:right;
    }
    .sparkline {
        height:30px;
        grid-column:1;
    }
    .metric>.badge {
        justify-self:start;
        font-size:10px;
    }
    .metric-label .icon-tile {
        width:35px;
        height:35px;
    }
    .metric-label .icon {
        width:23px;
        height:23px;
    }
    .maintenance-caption {
        font-size:10px;
    }
    .module-grid {
        grid-template-columns:1fr;
    }
    .module-link {
        padding:12px;
    }
    .module-link .icon-tile {
        width:42px;
        height:42px;
    }
    .module-link strong {
        font-size:13px;
    }
    .module-link small {
        font-size:11px;
    }
    .pinned-card .card-heading>.small {
        display:none;
    }
    .activity-card .segmented {
        align-self:flex-start;
        margin-top:0;
    }
    .timeline article {
        padding:13px 0;
    }
    .app-footer {
        padding:18px 16px;
        font-size:9px;
        flex-wrap:wrap;
    }
    .app-footer>span:last-child {
        font-size:9px;
    }
    .side-menu {
        width:310px;
    }
    .menu-brand {
        padding-left:24px;
        height:var(--topbar-height);
    }
    .menu-brand :is(img,.dalkimia-wordmark) {
        width:162px;
    }
    .auth-brand {
        padding:24px 20px;
    }
    .auth-brand :is(img,.dalkimia-wordmark) {
        width:145px;
    }
    .demo-label {
        font-size:8px;
        padding:7px 9px;
    }
    .auth-main {
        padding:25px 20px;
    }
    .login-composition {
        display:flex;
        flex-direction:column;
        gap:24px;
        max-width:420px;
    }
    .login-intro {
        width:100%;
    }
    .login-intro h1 {
        font-size:31px;
        margin:14px 0;
    }
    .login-intro>p,.intro-line,.intro-features,.intro-index {
        display:none;
    }
    .login-intro .eyebrow {
        font-size:8px;
    }
    .login-card {
        padding:26px;
    }
    .login-card .auth-symbol {
        display:none;
    }
    .login-card h2 {
        font-size:22px;
    }
    .auth-footer {
        padding:24px 20px;
        gap:12px;
        flex-wrap:wrap;
        font-size:9px;
    }
    .tenant-screen h1 {
        font-size:27px;
    }
    .tenant-screen>p {
        font-size:12px;
    }
    .tenant-option {
        padding:17px;
        gap:12px;
    }
    .tenant-detail strong {
        font-size:13px;
    }
    .tenant-monogram {
        width:40px;
        height:40px;
    }
    .placeholder-card {
        padding:28px;
        min-height:420px;
    }
    .placeholder-card h2 {
        font-size:22px;
    }
}
@media(prefers-reduced-motion:reduce) {
    *,*:before,*:after {
        animation:none!important;
        transition:none!important;
        scroll-behavior:auto!important;
    }
}

@media (max-width: 360px) {
    .topbar { grid-template-columns: 112px 30px minmax(0, 1fr); }
    .topbar .brand, .topbar .brand :is(img,.dalkimia-wordmark) { width: 112px; }
}

.demo-detail-card {
    grid-column:1 / -1;
    padding:var(--space);
}

/* Acceso por tenant: el wallpaper cambia sin abandonar el layout. */
.auth-shell.wallpaper-chedraui {
    --tenant-accent:#a63e26;
    background:radial-gradient(ellipse at 12% 95%,#d9915266,transparent 55%),linear-gradient(145deg,transparent 40%,#f6ba7524 40%,#f6ba7500 68%),radial-gradient(ellipse at 35% 30%,#aa6545,transparent 65%),linear-gradient(120deg,#492b27,#7b483b 55%,#d1b7a1);
}
.auth-shell.wallpaper-nova {
    --tenant-accent:#315d57;
    background:radial-gradient(ellipse at 6% 95%,#71ada055,transparent 50%),repeating-linear-gradient(125deg,transparent 0 140px,#d2eae00d 141px 142px,transparent 143px 240px),radial-gradient(ellipse at 35% 30%,#46766f,transparent 65%),linear-gradient(120deg,#1d3536,#406261 55%,#aebfb7);
}
.auth-shell.wallpaper-atlas {
    --tenant-accent:#465568;
    background:radial-gradient(ellipse at 5% 90%,#acb6ca55,transparent 55%),radial-gradient(ellipse at 10% 10%,transparent 35%,#c6d5e41a 35.2%,transparent 36%),radial-gradient(ellipse at 35% 30%,#5d728e,transparent 65%),linear-gradient(120deg,#253246,#4b5d73 55%,#b2bac3);
}
.auth-shell[class*="wallpaper-"] .login-intro { color:#fff; }
.auth-shell[class*="wallpaper-"] .login-intro .eyebrow,
.auth-shell[class*="wallpaper-"] .login-intro>p,
.auth-shell[class*="wallpaper-"] .intro-features,
.auth-shell[class*="wallpaper-"] .intro-index,
.auth-shell[class*="wallpaper-"] .auth-footer { color:#ffffffe0; }
.auth-shell[class*="wallpaper-"] .intro-line { background:#ffffff66; }
.auth-shell[class*="wallpaper-"] .auth-brand>a {
    padding:10px 14px;
    border-radius:14px;
    background:#fffffff0;
}
.auth-shell[class*="wallpaper-"] .demo-label { background:#fffffff0; color:var(--text); }
.auth-shell[class*="wallpaper-"] .login-card { background:rgba(255,255,255,.94); }
.tenant-login-card { min-height:510px; }
.access-progress { display:flex; align-items:center; gap:12px; font-size:10px; color:var(--muted); margin-bottom:30px; }
.access-progress .current { color:var(--text); font-weight:650; }
.access-progress .complete { color:var(--tenant-accent,var(--text)); }
.access-progress-line { flex:1; height:1px; background:var(--line); }
.access-description { color:var(--muted); font-size:13px; margin:10px 0 26px; }
.tenant-code-help { color:var(--muted); font-size:11px; line-height:1.6; margin:0 0 22px; }
.resolved-tenant { display:flex; align-items:center; gap:12px; margin-bottom:28px; }
.resolved-tenant>span:nth-child(2) { flex:1; min-width:0; }
.resolved-tenant strong { display:block; font-size:13px; font-weight:600; }
.resolved-tenant small { display:block; color:var(--muted); font-size:11px; margin-top:4px; }
.resolved-tenant .tenant-monogram { color:var(--tenant-accent,var(--text)); }
.access-fragment { animation:access-reveal .2s ease-out; }
@keyframes access-reveal { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:640px) {
    .tenant-login-card { min-height:0; }
    .access-progress { margin-bottom:24px; }
    .auth-shell[class*="wallpaper-"] .auth-brand :is(img,.dalkimia-wordmark) { width:120px; }
    .login-intro h1 { overflow-wrap:anywhere; }
    .resolved-tenant { gap:8px; }
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
    .auth-shell[class*="wallpaper-"] .login-card { background:#fafbfc; }
}

/* Cubre el arranque y la resolución de sesión hasta renderizar el destino. */
.startup-screen {
    position:fixed;
    inset:0;
    z-index:10000;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:28px;
    padding:24px;
    text-align:center;
    background:radial-gradient(ellipse at 50% 42%,#fff 0%,#f5f6f8 65%);
    opacity:1;
    visibility:visible;
    transition:opacity .24s ease,visibility 0s .24s;
}
.startup-screen.is-ready { opacity:0; visibility:hidden; pointer-events:none; }
.startup-screen p { color:var(--muted); font-size:14px; letter-spacing:.2px; }
.startup-mark { position:relative; display:grid; place-items:center; width:144px; height:144px; }
.startup-mark::before {
    content:"";
    position:absolute;
    inset:0;
    border:1px solid rgba(116,52,218,.15);
    border-radius:50%;
    animation:startup-halo 1.8s ease-out infinite;
}
.startup-mark img { animation:startup-breathe 1.8s ease-in-out infinite; }
.startup-screen.is-ready .startup-mark img,
.startup-screen.is-ready .startup-mark::before,
.startup-screen.has-error .startup-mark img,
.startup-screen.has-error .startup-mark::before { animation:none; }
#startup-retry { color:var(--brand); text-decoration:underline; }
@keyframes startup-breathe { 0%,100% { transform:scale(.94); opacity:.65; } 50% { transform:scale(1); opacity:1; } }
@keyframes startup-halo { 0% { transform:scale(.75); opacity:0; } 25% { opacity:1; } 100% { transform:scale(1.18); opacity:0; } }
@media (prefers-reduced-motion:reduce) {
    .startup-screen { transition:none; }
    .startup-mark img,.startup-mark::before { animation:none; }
}

/* Estado y permiso de push dentro del perfil. */
.browser-push-control { padding:10px 8px 12px; margin-bottom:5px; border-bottom:1px solid var(--line); }
.browser-push-control>strong { display:block; font-size:12px; font-weight:600; }
.browser-push-control>p { margin:6px 0; color:var(--muted); font-size:11px; line-height:1.5; overflow-wrap:anywhere; }
.browser-push-control button:disabled { opacity:.55; cursor:wait; }

/* Identidad Dalkimia: mismo morado y silueta del encabezado Android. */
.dalkimia-wordmark {
    display:block;
    width:176px;
    max-width:100%;
    aspect-ratio:2160 / 738;
    flex-shrink:0;
    background:var(--brand);
    -webkit-mask:url("brand/dalkimia-logo-light.png") center / contain no-repeat;
    mask:url("brand/dalkimia-logo-light.png") center / contain no-repeat;
}
.nav-item.active,.submenu a.active {
    color:var(--brand);
    background:var(--brand-soft);
    border-color:color-mix(in srgb,var(--brand) 22%,transparent);
}
.nav-item:hover:not(:disabled),.submenu a:hover { background:var(--brand-soft); }
/* La variante inversa queda vinculada al tema explícito; no cambia el tema claro. */
[data-theme="dark"] .dalkimia-wordmark {
    background:url("brand/dalkimia-logo-dark.png") center / contain no-repeat;
    -webkit-mask:none;
    mask:none;
}

.alerts-button b { background:var(--critical); }
