:root {
  --navy: #0d2b60;
  --navy-2: #173f7a;
  --navy-soft: #e8eef8;
  --brand: #1d5fa7;
  --orange: #1d5fa7;
  --gold: #3c7fbd;
  --green: #2a6cab;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #17243d;
  --muted: #65718a;
  --border: #dce3ed;
  --danger: #b3261e;
  --success: #1768a8;
  --warning: #365f8a;
  --shadow: 0 16px 42px rgba(13, 43, 96, .09);
  --shadow-sm: 0 7px 20px rgba(13, 43, 96, .08);
  --radius: 22px;
  --radius-sm: 14px;
  --topbar: 76px;
  --sidebar: 252px;
  --sidebar-rail: 78px;
  /* Sistema semántico compartido: evita colores y espaciados inconsistentes. */
  --color-bg-canvas: var(--bg);
  --color-bg-surface: var(--surface);
  --color-bg-subtle: var(--surface-2);
  --color-text-primary: var(--text);
  --color-text-secondary: var(--muted);
  --color-border-default: var(--border);
  --color-action-primary: var(--navy);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --motion-fast: 140ms;
  --motion-normal: 220ms;
  --motion-slow: 360ms;
  --motion-ease: cubic-bezier(.2,.8,.2,1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* User command center — operational hierarchy, compact context and responsive density */
.dashboard-attention-strip{display:flex;gap:8px;overflow-x:auto;padding:1px 1px 3px;scroll-snap-type:x proximity;scrollbar-width:none}.dashboard-attention-strip::-webkit-scrollbar{display:none}.dashboard-attention-strip>button{flex:0 0 min(82vw,330px);min-width:0;display:grid;grid-template-columns:36px minmax(0,1fr) 18px;align-items:center;gap:9px;padding:10px 11px;border:1px solid var(--border);border-radius:15px;background:var(--surface);color:var(--text);text-align:left;scroll-snap-align:start}.dashboard-attention-strip>button>span:first-child{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:var(--navy-soft);color:var(--brand)}.dashboard-attention-strip>button>span:nth-child(2){min-width:0}.dashboard-attention-strip small,.dashboard-attention-strip strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-attention-strip small{color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.06em}.dashboard-attention-strip strong{margin-top:2px;font-size:12px}.dashboard-attention-strip>button>.icon:last-child{width:16px;color:var(--muted)}

@media (min-width:901px){
  .dashboard-desktop{max-width:1500px}.dashboard-desktop>.dashboard-command-search{margin-bottom:16px}.dashboard-desktop-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(290px,.72fr);gap:18px;align-items:start}.dashboard-desktop-main,.dashboard-desktop-aside{display:grid;gap:16px}.dashboard-operations-hero{position:relative;overflow:hidden;display:flex;align-items:flex-end;justify-content:space-between;gap:28px;min-height:210px;padding:30px;border:1px solid color-mix(in srgb,var(--brand) 32%,var(--border));border-radius:24px;background:linear-gradient(135deg,var(--navy) 0%,#164b84 62%,#2670b5 100%);color:#fff;box-shadow:0 18px 46px rgba(4,29,64,.18)}.dashboard-operations-hero:after{content:"";position:absolute;right:-70px;top:-95px;width:300px;height:300px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.22),transparent 68%);pointer-events:none}.dashboard-operations-hero>div{position:relative;z-index:1}.dashboard-operations-hero .eyebrow{color:#c9e3ff}.dashboard-operations-hero h1{max-width:700px;margin:8px 0 10px;font-size:clamp(2rem,3vw,3.15rem);line-height:1.02;letter-spacing:-.045em}.dashboard-operations-hero p{max-width:620px;margin:0;color:#dcecff;font-size:1rem;line-height:1.55}.dashboard-primary-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px;max-width:390px}.dashboard-primary-actions button{white-space:nowrap}.dashboard-primary-actions .secondary-button{border-color:#ffffff48;background:#ffffff14;color:#fff;backdrop-filter:blur(10px)}
  .dashboard-snapshot{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.dashboard-snapshot>button{min-width:0;display:grid;grid-template-columns:40px minmax(0,1fr) 18px;align-items:center;gap:10px;padding:15px;border:1px solid var(--border);border-radius:17px;background:var(--surface);color:var(--text);text-align:left;box-shadow:var(--shadow-sm);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.dashboard-snapshot>button:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--brand) 55%,var(--border));box-shadow:var(--shadow)}.dashboard-snapshot>button>span{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:var(--navy-soft);color:var(--brand)}.dashboard-snapshot>button>div{min-width:0}.dashboard-snapshot small,.dashboard-snapshot strong,.dashboard-snapshot em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-snapshot small{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.06em}.dashboard-snapshot strong{margin:3px 0;font-size:13px}.dashboard-snapshot em{color:var(--muted);font-size:11px;font-style:normal}.dashboard-snapshot>button>.icon:last-child{width:16px;color:var(--muted)}
  .dashboard-section-compact{margin:4px 0 -2px}.dashboard-desktop-launcher{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.dashboard-desktop-action{min-width:0;display:grid;grid-template-columns:46px minmax(0,1fr) 18px;align-items:center;gap:12px;min-height:88px;padding:14px;border:1px solid var(--border);border-radius:18px;background:var(--surface);color:var(--text);text-align:left;box-shadow:inset 3px 0 0 var(--accent,var(--brand));transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.dashboard-desktop-action:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--accent,var(--brand)) 58%,var(--border));box-shadow:var(--shadow)}.dashboard-desktop-action>span{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:color-mix(in srgb,var(--accent,var(--brand)) 12%,transparent);color:var(--accent,var(--brand))}.dashboard-desktop-action>div{min-width:0}.dashboard-desktop-action strong,.dashboard-desktop-action small{display:block}.dashboard-desktop-action strong{font-size:14px}.dashboard-desktop-action small{margin-top:4px;overflow:hidden;color:var(--muted);font-size:11px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.dashboard-desktop-action>.icon:last-child{width:16px;color:var(--muted)}
  .dashboard-desktop-aside{position:sticky;top:calc(var(--topbar) + 16px)}.dashboard-side-card{overflow:hidden;padding:16px;border:1px solid var(--border);border-radius:20px;background:var(--surface);box-shadow:var(--shadow-sm)}.dashboard-side-heading{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:10px}.dashboard-side-heading>span{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:var(--navy-soft);color:var(--brand)}.dashboard-side-heading small,.dashboard-side-heading strong{display:block}.dashboard-side-heading small{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.06em}.dashboard-side-heading strong{margin-top:2px;font-size:14px}.dashboard-system-card dl{display:grid;gap:0;margin:13px 0 0}.dashboard-system-card dl>div{display:flex;justify-content:space-between;gap:15px;padding:10px 0;border-top:1px solid var(--border)}.dashboard-system-card dt{color:var(--muted);font-size:11px}.dashboard-system-card dd{margin:0;font-size:11px;font-weight:750;text-align:right}.dashboard-weather-list{display:grid;gap:7px;margin-top:13px}.dashboard-weather-list button{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:8px;padding:9px 10px;border:1px solid var(--border);border-radius:13px;background:var(--surface-2);color:var(--text);text-align:left}.dashboard-weather-list span{font-size:20px}.dashboard-weather-list strong{font-size:12px}.dashboard-weather-list small{color:var(--muted);font-size:11px}.dashboard-empty-action{width:100%;margin-top:13px;padding:11px;border:1px dashed var(--border);border-radius:13px;background:transparent;color:var(--brand)}.dashboard-side-links{display:grid;gap:8px;margin-top:13px}.dashboard-side-links .utility-card{min-height:58px;padding:9px;border-radius:13px}.dashboard-side-links .utility-icon{width:34px;height:34px}.dashboard-side-links .utility-card small{max-width:180px}
}

@media (max-width:900px){.dashboard-links-heading{margin-top:3px}.dashboard-feed>.dashboard-command-search{margin-bottom:0}}
@media (max-width:600px){
  .table6-panel .panel-header{padding:13px 14px}
  .table6-panel .panel-header h2{font-size:15px}
  .table6-panel .panel-header p{font-size:9px;line-height:1.35}
  .table6-heading-actions{gap:5px}
  .table6-expand{min-height:36px;padding:8px 10px}
  .table6-expand span{font-size:9px}
  .table6-panel .panel-body{padding:10px}
  .table6-region-guide{display:flex;gap:8px;overflow-x:auto;margin:0 -1px 9px;padding:1px 1px 4px;scroll-snap-type:x mandatory;scrollbar-width:none}
  .table6-region-guide::-webkit-scrollbar{display:none}
  .table6-region-guide article{flex:0 0 82%;min-height:86px;padding:10px;scroll-snap-align:start}
  .table6-region-guide strong{font-size:10px}
  .table6-region-guide span,.table6-region-guide small{font-size:8px}
  .table6-swipe-hint{display:flex}
  .table6-scroll{overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
  .table6-table{min-width:680px;table-layout:fixed}
  .table6-table th,.table6-table td{padding:9px 8px}
  .table6-table thead th{font-size:8px;line-height:1.25}
  .table6-table thead th:nth-child(1){width:82px}
  .table6-table thead th:nth-child(2){width:92px}
  .table6-table tbody th{font-size:9px}
  .table6-table tbody td{font-size:9px}
  .table6-table tbody td small{font-size:7px}
  .table6-rate{grid-template-columns:36px minmax(0,1fr)}
  .table6-rate>span{width:36px;height:36px}
  .table6-rate button{grid-column:1/-1;width:100%}
  .table6-panel.table6-fullscreen .table6-region-guide,.table6-panel:fullscreen .table6-region-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}
  .table6-panel.table6-fullscreen .table6-region-guide article,.table6-panel:fullscreen .table6-region-guide article{min-height:0}
  .table6-panel.table6-fullscreen .table6-swipe-hint,.table6-panel:fullscreen .table6-swipe-hint{display:none}
  .table6-panel.table6-fullscreen .table6-scroll,.table6-panel:fullscreen .table6-scroll{overflow:visible}
  .table6-panel.table6-fullscreen .table6-table,.table6-panel:fullscreen .table6-table{width:100%;min-width:680px}
  .per-diem-workspace{gap:12px}
  .per-diem-result-panel .panel-body{padding:10px}
  .per-diem-result-hero{min-height:118px;margin:-10px -10px 12px;padding:16px}
  .per-diem-result-hero strong{font-size:clamp(30px,11vw,42px)}
  .per-diem-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .per-diem-kpis div{min-height:58px;padding:8px}
  .per-diem-breakdown{max-height:none}
  .per-diem-breakdown header,.per-diem-breakdown section>div{gap:8px;padding:9px 10px}
  .per-diem-breakdown section>div>strong{max-width:44%;font-size:10px}
  .per-diem-total-lines{padding:10px}
  .per-diem-total-lines>div{font-size:9px}
}
@media (orientation:landscape) and (max-height:600px){
  .table6-panel.table6-fullscreen>.panel-header,.table6-panel:fullscreen>.panel-header{padding:8px 14px}
  .table6-panel.table6-fullscreen>.panel-body,.table6-panel:fullscreen>.panel-body{padding:9px 14px}
  .table6-panel.table6-fullscreen .table6-region-guide,.table6-panel:fullscreen .table6-region-guide{margin-bottom:7px}
  .table6-panel.table6-fullscreen .table6-region-guide article,.table6-panel:fullscreen .table6-region-guide article{padding:7px 9px}
  .table6-panel.table6-fullscreen .table6-table th,.table6-panel.table6-fullscreen .table6-table td,.table6-panel:fullscreen .table6-table th,.table6-panel:fullscreen .table6-table td{padding:7px 8px}
  .table6-panel.table6-fullscreen .table6-rate,.table6-panel:fullscreen .table6-rate{margin-top:7px;padding:7px}
}
@media (max-width:430px){.dashboard-attention-strip>button{flex-basis:86vw}.dashboard-quick-action{min-height:104px;padding:11px}.dashboard-quick-action strong{font-size:.86rem}.dashboard-quick-action small{font-size:.68rem}}

/* v38 · sesiones recordadas, dispositivos y centro de control */
.remember-device { display:flex!important; grid-template-columns:auto 1fr; align-items:flex-start; gap:10px!important; padding:11px 13px; border:1px solid var(--border,#dbe4f1); border-radius:14px; background:var(--surface-soft,#f5f8fc); cursor:pointer; }
.remember-device input { width:18px; height:18px; margin-top:2px; accent-color:#174783; }
.remember-device span { display:grid; gap:2px; }
.remember-device small { color:var(--text-muted,#687791); font-weight:500; line-height:1.35; }
.notification-button { position:relative; }
.notification-count { position:absolute; right:-5px; top:-6px; min-width:18px; height:18px; padding:0 4px; display:grid; place-items:center; border-radius:999px; color:#fff; background:#df4a0a; border:2px solid var(--surface,#fff); font-size:9px; font-weight:900; }
.notification-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.notification-summary article { padding:15px; border:1px solid var(--border,#dbe4f1); border-radius:16px; background:var(--surface-soft,#f5f8fc); }
.notification-summary small,.notification-summary strong { display:block; }
.notification-summary strong { margin-top:4px; font-size:25px; }
.notification-unread { border-left:4px solid #df4a0a!important; }
.admin-notifications-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px;padding:22px;border:1px solid var(--border);border-radius:22px;background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 12%,var(--surface)),var(--surface));box-shadow:0 14px 34px rgba(4,31,70,.08)}
.admin-notifications-hero h2,.admin-notifications-hero p{margin:0}.admin-notifications-hero h2{margin-top:4px;font-size:clamp(1.45rem,2vw,2rem)}.admin-notifications-hero p{margin-top:5px;max-width:760px;color:var(--muted)}
.notification-summary-rich{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px}.notification-summary article span{display:block;margin-top:3px;color:var(--muted);font-size:.75rem}.notification-category{margin-bottom:4px;color:var(--primary)!important;font-size:.67rem!important;font-weight:900;letter-spacing:.09em;text-transform:uppercase}.admin-notification-card em{display:inline-grid;place-items:center;min-width:24px;height:20px;margin-left:4px;padding:0 6px;border-radius:999px;background:color-mix(in srgb,var(--primary) 14%,transparent);font-size:.72rem;font-style:normal}.admin-notification-card.is-critical{border-color:#d83939;background:color-mix(in srgb,#d83939 7%,var(--surface))}
.device-account-list { display:grid; gap:14px; }
.device-account-card { padding:16px; border:1px solid var(--border,#dbe4f1); border-radius:18px; background:var(--surface-soft,#f7f9fc); }
.device-account-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:12px; }
.device-account-head>div:first-child { display:grid; gap:4px; }
.device-account-head small { color:var(--text-muted,#687791); }
.device-account-controls { display:flex; align-items:end; justify-content:flex-end; flex-wrap:wrap; gap:8px; }
.device-account-controls label { display:grid; gap:4px; font-size:11px; color:var(--text-muted,#687791); font-weight:800; }
.compact-control { min-width:76px; min-height:36px!important; padding:6px 30px 6px 10px!important; }
.action-button.whatsapp { color:#19b95b; background:#fff; border-color:#7de3a8; box-shadow:0 4px 13px rgba(25,185,91,.16); transition:background-color .18s ease,color .18s ease,border-color .18s ease,transform .18s ease; }
.action-button.whatsapp:hover { color:#0e9848; background:#f2fff7; border-color:#36ca77; transform:translateY(-1px); }
[data-theme="dark"] .action-button.whatsapp { color:#fff; background:#19b95b; border-color:#5ee093; box-shadow:0 0 0 1px rgba(255,255,255,.1),0 6px 18px rgba(0,0,0,.3); }
[data-theme="dark"] .action-button.whatsapp:hover { background:#12a650; color:#fff; }
.whatsapp-icon { width:21px!important; height:21px!important; display:block; overflow:visible; flex:none; }
.whatsapp-icon path { fill:currentColor; stroke:none; }
.whatsapp-link { background:#fff!important; border-color:#7de3a8!important; color:#19b95b!important; }
.whatsapp-link:hover { background:#f2fff7!important; color:#0e9848!important; }
[data-theme="dark"] .whatsapp-link { background:#19b95b!important; border-color:#5ee093!important; color:#fff!important; }
[data-theme="dark"] .whatsapp-link:hover { background:#12a650!important; color:#fff!important; }
[data-theme="dark"] .remember-device,[data-theme="dark"] .device-account-card,[data-theme="dark"] .notification-summary article { background:#102b51; border-color:#31547e; color:#f6f9ff; }
[data-theme="dark"] .remember-device small,[data-theme="dark"] .device-account-head small { color:#bdcbe0; }
@media (max-width:760px){.device-account-head{display:grid}.device-account-controls{justify-content:flex-start}.notification-summary{grid-template-columns:1fr}.device-account-card{padding:13px}}
@media (max-width:900px){.notification-summary-rich{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-notifications-hero{align-items:stretch;flex-direction:column;padding:17px}.admin-notifications-hero>button{width:100%}}

[data-theme="dark"] {
  --bg: #07152d;
  --surface: #0e2142;
  --surface-2: #12294e;
  --text: #f2f5fb;
  --muted: #a6b4ca;
  --border: #294366;
  --navy-soft: #183760;
  --brand: #6da9df;
  --warning-bg: #4a3517;
  --warning-text: #ffe0a3;
  --notice-bg: #16385e;
  --notice-text: #e7f2ff;
  --shadow: 0 18px 48px rgba(0, 0, 0, .25);
  --shadow-sm: 0 8px 22px rgba(0, 0, 0, .2);

  /* WCAG AAA Dark Mode Refinements */
  --surface-elevated: #162d50;
  --surface-hover: #1a355a;
  --text-primary: #ffffff;
  --text-secondary: #c8d4e8;
  --text-tertiary: #94a3b8;
  --focus-ring: #4f9ee3;
  --success-bg: #0d3d2b;
  --success-text: #86efac;
  --danger-bg: #4a1a1a;
  --danger-text: #fca5a5;
  --warning-bg-aaa: #4a3517;
  --warning-text-aaa: #fde047;
}

/* Accesibilidad y movimiento: mantiene la interfaz usable para todos. */
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 78%, white);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

.toast-action,
.toast-close {
  flex: none;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.toast-action { font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
.toast-close { width: 30px; height: 30px; border-radius: 999px; font-size: 21px; line-height: 1; }
.toast-close:hover { background: rgba(255,255,255,.16); }

.system-health-page { display:grid; gap:18px; }
.system-health-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.system-health-card { min-width:0; display:flex; gap:12px; padding:16px; border:1px solid var(--border); border-radius:18px; background:var(--surface-2); }
.system-health-card>span { width:38px; height:38px; flex:none; display:grid; place-items:center; border-radius:12px; }
.system-health-card.healthy>span { color:#177a51; background:#dcf7e9; }
.system-health-card.attention>span { color:#9b5b00; background:#fff0ce; }
.system-health-card small,.system-health-card strong,.system-health-card p { display:block; margin:0; }
.system-health-card small { color:var(--muted); font-weight:750; }
.system-health-card strong { margin-top:3px; font-size:18px; }
.system-health-card p { margin-top:5px; color:var(--muted); font-size:13px; line-height:1.4; }
.health-details { display:grid; gap:0; margin:0; }
.health-details>div { display:flex; justify-content:space-between; gap:16px; padding:13px 0; border-bottom:1px solid var(--border); }
.health-details>div:last-child { border-bottom:0; }
.health-details dt { color:var(--muted); }.health-details dd { margin:0; font-weight:800; text-align:right; }
.health-storage { display:grid; gap:12px; }
.health-storage>span { height:10px; overflow:hidden; border-radius:99px; background:var(--border); }
.health-storage>span i { display:block; height:100%; border-radius:inherit; background:var(--brand); }
.health-storage small { color:var(--muted); line-height:1.5; }
.system-health-skeleton { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.system-health-skeleton i { height:116px; border-radius:18px; background:linear-gradient(90deg,var(--surface-2),var(--border),var(--surface-2)); background-size:220% 100%; animation:healthShimmer 1.2s linear infinite; }
@keyframes healthShimmer { to { background-position:-220% 0; } }
[data-theme="dark"] .system-health-card.healthy>span { color:#86efac; background:#153d31; }
[data-theme="dark"] .system-health-card.attention>span { color:#fde68a; background:#4a3517; }
@media (max-width:980px) { .system-health-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px) { .system-health-grid,.system-health-skeleton { grid-template-columns:1fr; } .system-health-card { padding:14px; } }

.governance-admin{display:grid;gap:18px}.flag-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.flag-grid article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border:1px solid var(--border);border-radius:16px;background:var(--surface-2)}.flag-grid strong,.flag-grid small{display:block}.flag-grid small{margin-top:3px;color:var(--muted)}.provider-list,.incident-list{display:grid;gap:8px;margin-top:12px}.provider-list article,.incident-list article{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2)}.provider-list strong,.provider-list small,.incident-list strong,.incident-list small{display:block}.provider-list small,.incident-list small{margin-top:3px;color:var(--muted);font-size:11px}.provider-dot{width:10px;height:10px;border-radius:50%;background:#a4afbf;box-shadow:0 0 0 4px color-mix(in srgb,#a4afbf 18%,transparent)}.provider-dot.ok{background:#21a56d;box-shadow:0 0 0 4px color-mix(in srgb,#21a56d 18%,transparent)}.provider-list b{font-size:11px;color:var(--muted)}.governance-inline-form{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px}.incident-list article{border-left:4px solid #6b7b90}.incident-list .incident-medium{border-left-color:#d19a19}.incident-list .incident-high{border-left-color:#df6b25}.incident-list .incident-critical{border-left-color:#c83232}.lineage-table{min-width:620px;display:grid}.lineage-table article{display:grid;grid-template-columns:1fr 1fr 1.2fr 1fr;gap:12px;padding:11px;border-bottom:1px solid var(--border);font-size:12px}.lineage-table article:first-child{background:var(--surface-2);border-radius:12px 12px 0 0}.panel-body:has(.lineage-table){overflow-x:auto}@media(max-width:700px){.flag-grid{grid-template-columns:1fr}.governance-inline-form{grid-template-columns:1fr}.provider-list article,.incident-list article{grid-template-columns:auto minmax(0,1fr)}.provider-list article>:last-child,.incident-list article>:last-child{grid-column:2}}

[data-theme="dark"][data-contrast="more"] {
  --surface: #0a1a33;
  --surface-2: #0f2540;
  --border: #3a5a7a;
  --text: #ffffff;
  --muted: #b8c5d6;
  --text-secondary: #d6e4f0;
  --text-tertiary: #a8b8d0;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); max-width: 100vw; overflow-x: hidden; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--text); max-width: 100vw; overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
.hidden { display: none !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.skip-link { position: fixed; z-index: 300; top: 8px; left: 8px; padding: 11px 16px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 800; text-decoration: none; transform: translateY(-160%); transition: transform .18s ease; }
.skip-link:focus { transform: translateY(0); }
:where(button, a, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid #4f9ee3; outline-offset: 3px; }

#app-shell, #login-view, .app-shell, #page-container, .page {
  max-width: 100vw;
  overflow-x: hidden;
}

.login-view {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px;
  position: relative;
  overflow: hidden;
  overflow-y: auto;
  background:
    linear-gradient(135deg, rgba(13,43,96,.96), rgba(17,54,110,.9)),
    radial-gradient(circle at 80% 20%, rgba(245,163,0,.3), transparent 32%);
}
.login-view::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: linear-gradient(30deg, transparent 49.5%, rgba(255,255,255,.7) 50%, transparent 50.5%);
  background-size: 44px 44px;
}
.login-orb { position: absolute; border-radius: 999px; filter: blur(3px); opacity: .6; }
.orb-one { width: 320px; height: 320px; background: #2d6fac; right: -130px; top: -90px; }
.orb-two { width: 230px; height: 230px; background: #8db8df; left: -120px; bottom: -90px; }
.login-card {
  width: min(100%, 460px);
  position: relative;
  z-index: 1;
  border-radius: 30px;
  padding: 34px;
  background: rgba(255,255,255,.97);
  color: #17243d;
  box-shadow: 0 28px 90px rgba(1,11,32,.35);
}
.login-brand { text-align: center; }
.login-brand img { width: 154px; height: 74px; object-fit: contain; object-position: center; margin-bottom: 8px; }
.eyebrow { color: var(--orange); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.login-brand h1 { margin: 8px 0 7px; color: var(--navy); font-size: clamp(25px, 6vw, 34px); letter-spacing: -.04em; }
.login-brand h1 span { color: var(--orange); }
#login-title-copy { color: var(--navy); }
.login-brand p { margin: 0 auto 25px; max-width: 340px; color: #69758a; font-size: 14px; line-height: 1.55; }
.login-form { display: grid; gap: 16px; }
.login-form label, .field { display: grid; gap: 7px; font-size: 13px; font-weight: 700; color: #35435a; }
.input-shell { display: flex; align-items: center; gap: 10px; min-height: 50px; border: 1px solid #d8e0eb; border-radius: 14px; padding: 0 13px; background: #f8fafc; transition: .2s ease; }
.input-shell:focus-within { border-color: var(--navy-2); background: #fff; box-shadow: 0 0 0 4px rgba(23,63,122,.1); }
.input-shell > .icon { color: #8290a7; }
.input-shell input { border: 0; outline: 0; background: transparent; min-width: 0; flex: 1; color: #17243d; }
.icon-button { display: inline-grid; place-items: center; border: 0; padding: 5px; background: transparent; color: #65718a; }
.form-error { min-height: 18px; color: var(--danger); font-size: 13px; }
.field-error { display: flex; align-items: center; gap: 6px; margin: 6px 2px 0; color: var(--danger); font-size: 12px; font-weight: 700; line-height: 1.35; }
.has-error :is(input, select, textarea, .input-control, .select-control) { border-color: var(--danger) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 14%, transparent); }
.has-error :is(input, select, textarea):focus { outline-color: var(--danger); }
.primary-button, .secondary-button, .danger-button {
  min-height: 44px;
  padding: 0 17px;
  border-radius: 13px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 750;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.primary-button { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: white; box-shadow: 0 9px 20px rgba(13,43,96,.22); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-1px); }
.secondary-button { background: var(--surface); border-color: var(--border); color: var(--navy); }
[data-theme="dark"] .secondary-button { color: #eaf1ff; }
.danger-button { background: #fff0ed; color: var(--danger); border-color: #ffd1ca; }
.small-button { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 11px; }
.login-submit { width: 100%; }
.access-request-block { margin-top: 14px; padding: 13px; border: 1px solid #d8e3f0; border-radius: 14px; background: #f4f8fd; display: grid; gap: 8px; text-align: center; }
.access-request-block p { margin: 0; color: #35435a; font-size: 12px; font-weight: 800; }
.access-request-block small { color: #728096; font-size: 10px; line-height: 1.4; }
.request-access-button { width: 100%; min-height: 46px; border-color: #91b5da; color: #174b80; background: #fff; text-decoration: none; box-shadow: 0 6px 16px rgba(13,43,96,.08); }
.request-access-button:hover { background: #edf5fc; }
.demo-access { margin-top: 13px; border: 1px dashed #d4ddea; border-radius: 13px; padding: 11px 14px; color: #59667b; font-size: 12px; }
.demo-access summary { color: var(--navy); cursor: pointer; font-weight: 750; }
.demo-access p { margin: 8px 0 0; }
.security-note { display: flex; gap: 7px; margin: 16px 0 0; color: #78849a; font-size: 11px; line-height: 1.4; }
.security-note .icon { width: 17px; height: 17px; }
.copyright-notice { margin: 10px 0 0; color: color-mix(in srgb,var(--muted) 84%,var(--text)); font-size: 8px; line-height: 1.4; text-align: center; }
.content-protection-toggle { border-color: color-mix(in srgb,var(--brand) 32%,var(--border)); background: color-mix(in srgb,var(--navy-soft) 54%,var(--surface-2)); }

.app-shell { min-height: 100vh; min-height: 100dvh; }
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 26px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  transition: transform .24s ease, opacity .2s ease, background .2s ease;
}
.topbar.mobile-header-hidden { transform:translateY(calc(-100% - env(safe-area-inset-top))); opacity:0; pointer-events:none; }
.topbar-leading { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand-button { position:relative; display: flex; align-items: center; gap: 11px; background: transparent; border: 0; padding: 0; color: var(--text); text-align: left; }
.brand-button img { width: 65px; height: 50px; object-fit: contain; filter:none; transition:filter .22s ease,opacity .22s ease; }
[data-theme="dark"] .brand-button .brand-logo-base { visibility:hidden; }
.brand-button .brand-logo-color { display:none; position:absolute; left:0; top:50%; transform:translateY(-50%); pointer-events:none; }
[data-theme="dark"] .brand-button .brand-logo-color { display:block; filter:none; opacity:1; }
.brand-button span { display: grid; gap: 1px; }
.brand-button strong { color: var(--navy); font-size: 18px; letter-spacing: -.02em; }
[data-theme="dark"] .brand-button strong { color: #fff; }
.brand-button small, .profile-copy small { color: var(--muted); font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.status-pill { height: 34px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; background: #eaf8f0; color: var(--success); font-size: 12px; }
.status-pill span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(24,121,78,.12); }
.status-pill.offline { background: #fff2e2; color: var(--warning); }
.round-button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
.sidebar-toggle { flex: 0 0 auto; transition: color .2s ease, background .2s ease, transform .2s ease; }
.sidebar-toggle:hover { color: var(--navy); background: var(--navy-soft); }
.sidebar-toggle .icon { transition: transform .24s ease; }
.profile-button { display: flex; align-items: center; gap: 9px; padding: 5px 8px 5px 5px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); text-align: left; }
.profile-button > span:first-child { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--orange), var(--gold)); color: white; font-size: 12px; font-weight: 850; }
.profile-copy { display: grid; min-width: 90px; }
.profile-copy strong { font-size: 12px; }
.profile-button > .icon { width: 16px; }

.sidebar {
  position: fixed;
  z-index: 30;
  top: var(--topbar);
  left: 0;
  bottom: 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 24px 17px 20px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  transition: width .32s cubic-bezier(.22,1,.36,1), padding .32s cubic-bezier(.22,1,.36,1), background .2s ease;
}
.app-shell.sidebar-collapsed .sidebar { width:var(--sidebar-rail);padding-inline:12px;overflow-x:hidden; }
.app-shell.sidebar-collapsed .sidebar-toggle .icon { transform: rotate(180deg); }
.sidebar nav { display: grid; gap: 5px; }
.nav-section-label { margin: 14px 12px 5px; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.nav-item { width: 100%; min-height: 46px; border: 0; border-radius: 13px; padding: 0 12px; display: flex; align-items: center; gap: 12px; background: transparent; color: var(--muted); text-align: left; font-size: 13px; font-weight: 700; }
.sidebar .nav-item span{transition:width .24s ease,opacity .18s ease;white-space:nowrap}
.nav-item:hover { background: var(--surface-2); color: var(--navy); }
.nav-item.active { color: var(--navy); background: var(--navy-soft); box-shadow: inset 3px 0 var(--orange); }
[data-theme="dark"] .nav-item.active, [data-theme="dark"] .nav-item:hover { color: white; }
.nav-item .icon { width: 19px; height: 19px; }
.app-shell.sidebar-collapsed .sidebar .nav-section-label{height:1px;margin:13px 10px 8px;padding:0;background:var(--border);color:transparent;overflow:hidden}
.app-shell.sidebar-collapsed .sidebar .nav-section-label:first-child{margin-top:4px}
.app-shell.sidebar-collapsed .sidebar .nav-item{justify-content:center;gap:0;padding:0;min-height:48px;border-radius:15px}
.app-shell.sidebar-collapsed .sidebar .nav-item span{width:0;opacity:0;overflow:hidden;white-space:nowrap}
.app-shell.sidebar-collapsed .sidebar .nav-item .icon{width:22px;height:22px;flex:0 0 22px}
.app-shell.sidebar-collapsed .sidebar .nav-item.active{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--brand) 18%,transparent)}
.app-shell.sidebar-collapsed .sidebar-support{display:none}
.app-shell.sidebar-collapsed .sidebar:is(:hover,:focus-within){width:var(--sidebar);padding-inline:17px;overflow-x:hidden;box-shadow:18px 0 42px rgba(5,24,52,.16)}
.app-shell.sidebar-collapsed .sidebar:is(:hover,:focus-within) .nav-section-label{height:auto;margin:14px 12px 5px;padding:0;background:transparent;color:var(--muted);overflow:visible}
.app-shell.sidebar-collapsed .sidebar:is(:hover,:focus-within) .nav-item{justify-content:flex-start;gap:12px;padding-inline:12px;border-radius:13px}
.app-shell.sidebar-collapsed .sidebar:is(:hover,:focus-within) .nav-item span{width:auto;opacity:1;overflow:visible}
.app-shell.sidebar-collapsed .sidebar:is(:hover,:focus-within) .nav-item .icon{width:19px;height:19px;flex:0 0 19px}
.app-shell.sidebar-collapsed .sidebar:is(:hover,:focus-within) .nav-item.active{box-shadow:inset 3px 0 var(--orange)}
.app-shell.sidebar-collapsed .sidebar:is(:hover,:focus-within) .sidebar-support{display:flex}
.sidebar-support { margin-top: auto; display: flex; gap: 11px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, var(--navy), #19427f); color: white; }
.support-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.14); }
.sidebar-support div { display: grid; gap: 2px; min-width: 0; }
.sidebar-support strong { font-size: 12px; }
.sidebar-support small { font-size: 10px; opacity: .68; }
.sidebar-support a { font-size: 11px; color: #ffd477; text-decoration: none; font-weight: 750; }

/* Escritorio: rail automático estilo Instagram. No depende de una preferencia
   guardada: se abre únicamente mientras el puntero está sobre el menú. */
@media (min-width: 901px) {
  .sidebar-toggle { display: none; }
  .app-shell .sidebar {
    width: var(--sidebar-rail);
    padding-inline: 12px;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .app-shell .sidebar::-webkit-scrollbar { width: 0; height: 0; }
  .app-shell .sidebar .nav-section-label {
    height: 1px;
    margin: 13px 10px 8px;
    padding: 0;
    background: var(--border);
    color: transparent;
    overflow: hidden;
  }
  .app-shell .sidebar .nav-section-label:first-child { margin-top: 4px; }
  .app-shell .sidebar .nav-item {
    justify-content: center;
    gap: 0;
    padding: 0;
    min-height: 48px;
    border-radius: 15px;
  }
  .app-shell .sidebar .nav-item span {
    width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
  }
  .app-shell .sidebar .nav-item .icon { width: 22px; height: 22px; flex: 0 0 22px; }
  .app-shell .sidebar .nav-item.active {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 18%, transparent);
  }
  .app-shell .sidebar-support { display: none; }
  .app-shell .sidebar:hover {
    width: var(--sidebar);
    padding-inline: 17px;
    overflow-x: hidden;
    box-shadow: 18px 0 42px rgba(5,24,52,.16);
  }
  .app-shell .sidebar:hover .nav-section-label {
    height: auto;
    margin: 14px 12px 5px;
    padding: 0;
    background: transparent;
    color: var(--muted);
    overflow: visible;
  }
  .app-shell .sidebar:hover .nav-item {
    justify-content: flex-start;
    gap: 12px;
    padding-inline: 12px;
    border-radius: 13px;
  }
  .app-shell .sidebar:hover .nav-item span { width: auto; opacity: 1; overflow: visible; }
  .app-shell .sidebar:hover .nav-item .icon { width: 19px; height: 19px; flex: 0 0 19px; }
  .app-shell .sidebar:hover .nav-item.active { box-shadow: inset 3px 0 var(--orange); }
  .app-shell .sidebar:hover .sidebar-support:not(.hidden) { display: flex; }
  .app-shell .page-container,
  .app-shell.sidebar-collapsed .page-container { padding-left: calc(var(--sidebar-rail) + 30px); }
}

.page-container { min-height: 100vh; min-height: 100dvh; padding: calc(var(--topbar) + 30px) 30px 40px calc(var(--sidebar) + 30px); outline: none; transition: padding-left .24s ease; }
.app-shell.sidebar-collapsed .page-container { padding-left: calc(var(--sidebar-rail) + 30px); }
.page { width: min(100%, 1280px); margin: 0 auto; animation: pageIn .25s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(5px); } }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-header-copy { min-width: 0; }
.breadcrumb { display: flex; align-items: center; gap: 7px; color: var(--orange); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.page-header h1 { margin: 5px 0 5px; font-size: clamp(25px, 4vw, 36px); line-height: 1.1; letter-spacing: -.045em; color: var(--text); }
.page-header p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  min-height: 220px;
  padding: 34px;
  margin-bottom: 25px;
  border-radius: 28px;
  color: white;
  background: linear-gradient(120deg, var(--navy) 0%, #173f7a 68%, #20539b 100%);
  box-shadow: var(--shadow);
}
.hero::after { content: ""; position: absolute; width: 260px; height: 260px; right: -50px; top: -70px; border-radius: 50%; border: 45px solid rgba(245,163,0,.14); }
.hero-copy { position: relative; z-index: 1; align-self: center; }
.hero .eyebrow { color: #c9e4ff; }
.hero h1 { margin: 8px 0; font-size: clamp(27px, 5vw, 42px); letter-spacing: -.05em; }
.hero p { max-width: 610px; margin: 0; color: rgba(255,255,255,.74); line-height: 1.55; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 11px; }
.hero-meta .icon { width: 16px; }
.hero-mark { position: relative; z-index: 1; display: grid; place-items: center; }
.hero-mark img { width: 170px; height: 125px; object-fit: cover; filter: drop-shadow(0 15px 30px rgba(0,0,0,.2)); background: rgba(255,255,255,.93); border-radius: 24px; padding: 8px; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin: 28px 0 14px; }
.section-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.025em; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.section-heading a, .text-button { border: 0; background: transparent; color: var(--orange); font-size: 12px; font-weight: 800; text-decoration: none; }
.module-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.module-card { min-height: 196px; padding: 20px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); color: var(--text); text-align: left; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; transition: .2s ease; }
.module-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent, var(--navy)) 45%, var(--border)); box-shadow: var(--shadow); }
.module-icon { width: 49px; height: 49px; display: grid; place-items: center; border-radius: 15px; color: var(--accent, var(--navy)); background: color-mix(in srgb, var(--accent, var(--navy)) 11%, var(--surface)); }
.module-card h3 { margin: 17px 0 7px; font-size: 15px; line-height: 1.25; }
.module-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.module-card .card-arrow { position: absolute; right: 16px; bottom: 15px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.module-card .card-arrow .icon { width: 15px; }
.other-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.utility-card { display: flex; align-items: center; gap: 13px; min-height: 92px; padding: 16px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text); text-align: left; box-shadow: var(--shadow-sm); transition: .2s ease; }
.utility-card:hover { transform: translateY(-2px); }
.utility-icon { width: 45px; height: 45px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: var(--navy-soft); color: var(--navy); }
[data-theme="dark"] .utility-icon { color: #dce9ff; }
.utility-card div { min-width: 0; }
.utility-card strong { display: block; font-size: 13px; line-height: 1.3; }
.utility-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.direct-sort-guide { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 13px 15px; border: 1px dashed color-mix(in srgb,var(--brand) 42%,var(--border)); border-radius: 16px; background: color-mix(in srgb,var(--navy-soft) 70%,var(--surface)); color: var(--navy); }
.direct-sort-guide > .icon { width: 25px; height: 25px; flex: 0 0 auto; }
.direct-sort-guide div { min-width: 0; flex: 1; }
.direct-sort-guide strong, .direct-sort-guide span { display: block; }
.direct-sort-guide strong { font-size: 12px; }
.direct-sort-guide div span { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.direct-sort-guide .direct-sort-role { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; background: var(--surface); color: var(--brand); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
[data-theme="dark"] .direct-sort-guide { color: #e4efff; }
.utility-sort-shell { position: relative; min-width: 0; min-height: 92px; border-radius: 18px; transition: opacity .18s ease, transform .18s ease, filter .18s ease; }
.utility-sort-shell .utility-card { width: 100%; height: 100%; padding-right: 58px; padding-bottom: 40px; }
.utility-order-number { position: absolute; left: 16px; bottom: 12px; min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: 9px; font-weight: 900; pointer-events: none; }
.utility-drag-handle { position: absolute; z-index: 5; top: 11px; right: 11px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid color-mix(in srgb,var(--brand) 32%,var(--border)); border-radius: 12px; background: var(--brand); color: white; box-shadow: 0 9px 22px rgba(13,43,96,.22); opacity: 0; visibility: hidden; transform: scale(.72); transition: opacity .14s ease, transform .14s ease, visibility 0s linear .14s; pointer-events: none; touch-action: none; user-select: none; }
.utility-sort-shell.is-pressing .utility-drag-handle, .utility-sort-shell.is-dragging .utility-drag-handle { opacity: 1; visibility: visible; transform: scale(1); transition-delay: 0s; }
.utility-drag-handle .icon { width: 21px; height: 21px; }
.utility-step-controls { position: absolute; z-index: 3; right: 11px; bottom: 10px; display: inline-flex; gap: 4px; opacity: .64; transition: opacity .16s ease; }
.utility-sort-shell:hover .utility-step-controls, .utility-sort-shell:focus-within .utility-step-controls { opacity: 1; }
.utility-step-controls button { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); color: var(--navy); }
.utility-step-controls button:hover:not(:disabled), .utility-step-controls button:focus-visible { color: white; background: var(--brand); }
.utility-step-controls button:disabled { opacity: .58; cursor: default; }
.utility-step-controls .icon { width: 15px; height: 15px; }
[data-theme="dark"] .utility-drag-handle, [data-theme="dark"] .utility-step-controls button { color: #e5efff; }
.utility-sort-shell.is-pressing { z-index: 4; }
.utility-sort-shell.is-pressing .utility-card { border-color: color-mix(in srgb,var(--brand) 46%,var(--border)); }
.utility-sort-shell.is-dragging { z-index: 4; opacity: .86; transform: scale(.975) rotate(.2deg); filter: saturate(.85); }
.utility-sort-shell.is-dragging .utility-card { box-shadow: 0 20px 40px rgba(13,43,96,.18); }
.utility-sort-shell.is-drop-target { transform: translateY(-3px) scale(1.015); }
.utility-sort-shell.is-drop-target .utility-card { border: 2px solid var(--orange); box-shadow: 0 14px 34px rgba(223,74,10,.18); }
.utility-sort-shell.is-drop-target::after { content: "Soltar aquí"; position: absolute; z-index: 6; inset: 50% auto auto 50%; translate: -50% -50%; padding: 7px 10px; border-radius: 999px; background: var(--orange); color: white; box-shadow: 0 7px 18px rgba(106,42,7,.25); font-size: 9px; font-weight: 900; white-space: nowrap; pointer-events: none; }
.sortable-utility-grid.is-touch-sorting .utility-sort-shell:not(.is-dragging):not(.is-drop-target) { opacity: .76; }
.sort-live-status { position: fixed; z-index: 140; top: calc(var(--topbar) + 14px); left: 50%; display: flex; align-items: center; gap: 8px; max-width: min(90vw,430px); padding: 10px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: #0d2b60; color: white; box-shadow: 0 14px 34px rgba(1,10,28,.3); opacity: 0; transform: translate(-50%,-12px); transition: .16s ease; pointer-events: none; }
.sort-live-status.visible { opacity: 1; transform: translate(-50%,0); }
.sort-live-status .icon { width: 18px; height: 18px; }
.sort-live-status span { font-size: 10px; font-weight: 850; }
body.sorting-touch-active { overscroll-behavior: contain; }

.panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.panel + .panel { margin-top: 18px; }
.panel-header { min-height: 65px; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--border); }
.panel-header h2, .panel-header h3 { margin: 0; font-size: 16px; }
.panel-header p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.panel-body { padding: 20px; }
.two-column { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: 18px; align-items: start; }
.account-admin-layout { grid-template-columns: minmax(0,1.2fr) minmax(420px,.9fr); }
.three-column { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.stat-card { padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.stat-card small { color: var(--muted); font-size: 11px; }
.stat-card strong { display: block; margin-top: 6px; font-size: 24px; letter-spacing: -.04em; }
.stat-card .trend { margin-top: 5px; color: var(--success); font-size: 10px; }
.dashboard-command-search{width:100%;min-height:64px;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 14px;border:1px solid var(--border);border-radius:18px;background:color-mix(in srgb,var(--surface) 88%,transparent);color:var(--text);box-shadow:var(--shadow-sm);text-align:left;backdrop-filter:blur(14px)}
.dashboard-command-search>span:first-child{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:var(--navy-soft);color:var(--brand)}
.dashboard-command-search .icon{width:21px;height:21px}.dashboard-command-search strong,.dashboard-command-search small{display:block}.dashboard-command-search strong{font-size:.92rem}.dashboard-command-search small{margin-top:2px;color:var(--muted);font-size:.72rem}.dashboard-command-search kbd{padding:5px 8px;border:1px solid var(--border);border-radius:8px;background:var(--surface-2);color:var(--muted);font:inherit;font-size:.66rem}
.admin-command-bar{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-bottom:16px;padding:10px;border:1px solid var(--border);border-radius:18px;background:var(--surface);box-shadow:var(--shadow-sm)}
.admin-command-bar>div{display:flex;align-items:center;gap:10px;margin-right:auto;min-width:0}.admin-command-bar>div>.icon{width:22px;height:22px;color:var(--brand)}.admin-command-bar strong,.admin-command-bar small{display:block}.admin-command-bar strong{font-size:.82rem}.admin-command-bar small{margin-top:2px;color:var(--muted);font-size:.7rem}
.admin-command-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:18px;align-items:start}.admin-command-nav{position:sticky;top:calc(var(--topbar) + 16px);display:grid;gap:14px;max-height:calc(100dvh - var(--topbar) - 32px);padding:12px;overflow:auto;border:1px solid var(--border);border-radius:20px;background:var(--surface);box-shadow:var(--shadow-sm)}
.admin-command-nav section{display:grid;gap:4px}.admin-command-nav h2{margin:4px 8px 5px;color:var(--muted);font-size:.62rem;letter-spacing:.11em;text-transform:uppercase}.admin-command-nav button{position:relative;display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:44px;padding:6px 9px;border:0;border-radius:12px;background:transparent;color:var(--muted);text-align:left}.admin-command-nav button>span{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:var(--surface-2)}.admin-command-nav button .icon{width:17px;height:17px}.admin-command-nav button b{font-size:.75rem;line-height:1.25}.admin-command-nav button em{min-width:21px;height:21px;display:grid;place-items:center;border-radius:999px;background:var(--orange);color:#fff;font-size:.62rem;font-style:normal}.admin-command-nav button:hover{background:var(--surface-2);color:var(--text)}.admin-command-nav button.active{background:var(--navy);color:#fff;box-shadow:0 8px 20px #0d2b6028}.admin-command-nav button.active>span{background:#ffffff18;color:#fff}.admin-command-content{min-width:0}.admin-command-content>.stat-grid{margin-bottom:18px}
[data-theme="dark"] .dashboard-command-search,[data-theme="dark"] .admin-command-bar,[data-theme="dark"] .admin-command-nav{background:color-mix(in srgb,var(--surface-elevated) 92%,transparent)}
.info-banner { display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px; border-radius: 14px; background: var(--navy-soft); color: var(--navy); font-size: 12px; line-height: 1.5; }
[data-theme="dark"] .info-banner { color: #dfeaff; }
.warning-banner { background: #fff4df; color: #794d00; }
[data-theme="dark"] .warning-banner { background: var(--warning-bg); color: var(--warning-text); border: 1px solid #8a642b; }
[data-theme="dark"] .warning-banner .icon { color: #ffd27b; }
.login-submit:disabled { opacity: .65; cursor: wait; }
.meal-proposal-card { align-items: center; }
.proposal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.link-admin-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.link-edit-button { min-width: 86px; justify-content: center; }
.user-admin-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.ecosystem-badge { background: #e9f8f1; color: #126341; }
.feedback-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.feedback-stats > div { padding: 15px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); }
.feedback-stats strong, .feedback-stats small { display: block; }
.feedback-stats strong { font-size: 23px; }
.feedback-stats small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.feedback-admin-card.unread-feedback { border-color: color-mix(in srgb, var(--orange) 55%, var(--border)); box-shadow: inset 3px 0 0 var(--orange); }
.feedback-preview { max-width: 700px; margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.priority-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 8px; border-radius: 999px; background: var(--navy-soft); color: var(--navy); font-size: 9px; font-weight: 850; }
.priority-important { background: #fff4df; color: #794d00; }
.priority-urgent { background: #fee8e8; color: #9f2525; }
.feedback-review-message { padding: 16px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface-2); }
.feedback-review-message h3 { margin: 7px 0; }
.feedback-review-message p { margin: 0 0 10px; white-space: pre-wrap; color: var(--text); line-height: 1.55; }
.feedback-review-message small { display: block; margin-top: 4px; color: var(--muted); }
.reorder-controls { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); }
.order-position { min-width: 22px; text-align: center; color: var(--muted); font-size: 10px; font-weight: 850; }
.drag-handle { padding: 0 2px; color: var(--muted); font-size: 15px; font-weight: 900; letter-spacing: -5px; cursor: grab; user-select: none; }
.drag-handle:active { cursor: grabbing; }
.reorder-button { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: var(--navy-soft); color: var(--navy); font-size: 16px; font-weight: 900; cursor: pointer; }
.reorder-button:hover:not(:disabled) { background: var(--brand); color: white; }
.reorder-button:disabled { opacity: .58; cursor: default; }
[data-theme="dark"] .reorder-button { color: #e7f0ff; }
[data-sort-item] { cursor: grab; transition: opacity .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
[data-sort-item]:active { cursor: grabbing; }
[data-sort-item].is-dragging { opacity: .42; }
[data-sort-item].is-drop-target { border-color: var(--orange); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(13,43,96,.14); }

@media (max-width: 680px) {
  .meal-proposal-card { align-items: stretch; }
  .proposal-actions { justify-content: flex-start; padding-left: 52px; }
  .list-card { flex-wrap: wrap; }
  .link-admin-actions { width: 100%; justify-content: flex-start; padding-left: 52px; }
  .user-admin-actions { width: 100%; justify-content: flex-start; padding-left: 52px; }
  .feedback-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .catalog-managed-item { align-items: flex-start; flex-wrap: wrap; }
  .catalog-actions { width: 100%; }
}
.empty-state { padding: 42px 20px; text-align: center; color: var(--muted); }
.empty-state .empty-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 18px; background: var(--navy-soft); color: var(--navy); }
.empty-state h3 { margin: 0 0 5px; color: var(--text); }
.empty-state p { max-width: 420px; margin: 0 auto 15px; font-size: 12px; line-height: 1.5; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search-box { min-height: 44px; display: flex; align-items: center; gap: 9px; flex: 1; min-width: 220px; padding: 0 13px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-2); }
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.select-control, .input-control, .textarea-control { width: 100%; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); outline: 0; }
.select-control, .input-control { min-height: 44px; padding: 0 12px; }
.textarea-control { min-height: 88px; padding: 11px 12px; resize: vertical; }
.select-control:focus, .input-control:focus, .textarea-control:focus { border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(23,63,122,.1); }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.field { color: var(--text); }
.field small { color: var(--muted); font-weight: 500; }
.field.span-2 { grid-column: span 2; }
.field.span-all { grid-column: 1 / -1; }
.form-grid > .span-2 { grid-column: span 2; }

.contact-list { display: grid; gap: 10px; }
.support-contact-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 21px; margin-bottom: 18px; border: 1px solid #b9cde4; border-radius: 22px; background: linear-gradient(130deg, var(--surface), var(--navy-soft)); box-shadow: var(--shadow-sm); }
.directory-support-footer{margin:22px 0 0;box-shadow:none}
.directory-sync-meta{font-size:.68rem!important;line-height:1.25!important;white-space:nowrap}
.directory-auto-sync{display:inline-flex;align-items:center;gap:5px;color:var(--muted);font-size:.65rem;font-weight:750;white-space:nowrap}
.directory-auto-sync .icon{width:13px;height:13px}
.directory-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,1.35fr);gap:10px;align-items:center}
.directory-filter-strip{display:grid;grid-template-columns:minmax(150px,1fr) minmax(130px,.8fr) minmax(105px,.65fr);gap:8px;min-width:0}
.directory-filter-strip .select-control{width:100%;min-width:0;height:46px;padding-block:8px}
.directory-filter-button{display:none;width:100%;min-height:44px;align-items:center;gap:10px;padding:8px 12px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text-primary);text-align:left}
.directory-filter-button>span{display:flex;min-width:0;flex:1;flex-direction:column;gap:1px}
.directory-filter-button strong{font-size:.82rem}
.directory-filter-button small{color:var(--muted);font-size:.67rem}
.directory-filter-button>.icon{width:18px;height:18px;color:var(--blue)}
.directory-filter-form{padding-top:4px}
.support-contact-avatar { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: linear-gradient(145deg, var(--navy), #3475ae); color: white; font-size: 19px; font-weight: 900; box-shadow: 0 10px 25px rgba(13,43,96,.2); }
.support-contact-copy h2 { margin: 4px 0; font-size: 18px; }
.support-contact-copy p { margin: 0; color: var(--muted); font-size: 11px; }
.support-contact-details { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 10px; }
.support-contact-details a { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); text-decoration: none; font-size: 11px; font-weight: 750; }
[data-theme="dark"] .support-contact-details a { color: #d9e9ff; }
.support-contact-details .icon { width: 15px; height: 15px; }
.support-contact-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.contact-row { display: grid; grid-template-columns: 48px minmax(160px,1fr) minmax(125px,.45fr) minmax(120px,.4fr) auto; align-items: center; gap: 14px; padding: 13px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); }
.contact-row.inactive { opacity: .58; background: var(--surface-2); }
.contact-avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--navy-soft); color: var(--navy); font-weight: 850; }
[data-theme="dark"] .contact-avatar { color: white; }
.contact-main strong { display: block; font-size: 13px; }
.contact-main small, .contact-meta small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.contact-meta { font-size: 12px; }
.contact-actions { display: flex; gap: 7px; }
.action-button { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); color: var(--navy); }
.action-button .icon,.round-button .icon,.reorder-button .icon,.utility-step-controls button .icon { color:inherit; opacity:1; stroke-width:2; }
[data-theme="dark"] .action-button,[data-theme="dark"] .round-button,[data-theme="dark"] .reorder-button,[data-theme="dark"] .utility-step-controls button,[data-theme="dark"] .weather-city-actions button { color:#eef6ff; background:#173b67; border-color:#4d729d; }
[data-theme="light"] .action-button,[data-theme="light"] .round-button,[data-theme="light"] .reorder-button,[data-theme="light"] .utility-step-controls button,[data-theme="light"] .weather-city-actions button { color:#123f73; background:#f3f7fc; border-color:#bfd0e3; }
.action-button:disabled,.round-button:disabled,.reorder-button:disabled,.utility-step-controls button:disabled,.weather-city-actions button:disabled { opacity:.58; color:var(--muted); background:var(--surface-2); border-color:var(--border); }
#icon-action-tooltip { position:fixed; z-index:20000; max-width:min(260px,calc(100vw - 16px)); padding:7px 10px; border:1px solid color-mix(in srgb,var(--border) 72%,white); border-radius:9px; background:color-mix(in srgb,var(--navy) 94%,transparent); color:#fff; box-shadow:0 9px 26px rgba(2,16,38,.28); font-size:11px; font-weight:800; line-height:1.2; text-align:center; pointer-events:none; opacity:0; transform:translateY(3px) scale(.97); transition:opacity .12s ease,transform .12s ease; }
#icon-action-tooltip.visible { opacity:1; transform:none; }
[data-theme="dark"] #icon-action-tooltip { border-color:#6f8caf; background:rgba(4,22,48,.96); color:#f7fbff; }
.action-button.copy-contact { color:#185da2; background:#eef6ff; border-color:#b9d7f5; }
.action-button.call-contact { color:#123f73; background:#edf3fa; border-color:#b9cde4; }
.action-button.mail-contact { color:#6842a0; background:#f5efff; border-color:#d8c4f2; }
.action-button.copy-contact:hover,.action-button.call-contact:hover,.action-button.mail-contact:hover { transform:translateY(-1px); filter:brightness(.97); }
[data-theme="dark"] .action-button.copy-contact { color:#b8ddff; background:#173d67; border-color:#4e80b3; }
[data-theme="dark"] .action-button.call-contact { color:#f4f8ff; background:#24466e; border-color:#6485aa; }
[data-theme="dark"] .action-button.mail-contact { color:#e2ceff; background:#3b2d62; border-color:#8065ae; }
.contact-actions .action-button:focus-visible { outline:3px solid color-mix(in srgb,currentColor 42%,transparent); outline-offset:2px; }

.flight-strip { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px; margin-bottom: 18px; border-radius: 18px; background: linear-gradient(135deg, var(--navy), #16437f); color: white; }
.flight-strip strong { display: block; font-size: 16px; }
.flight-strip small { color: rgba(255,255,255,.7); }
.flight-strip .secondary-button { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: white; }
.seat-layout { display: grid; grid-template-columns: repeat(4, minmax(75px,1fr)); gap: 10px; }
.seat-button { min-height: 84px; padding: 11px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface-2); color: var(--text); text-align: left; transition: .15s ease; }
.seat-button:hover { border-color: var(--gold); transform: translateY(-1px); }
.seat-button.served { background: color-mix(in srgb, var(--green) 12%, var(--surface)); border-color: color-mix(in srgb, var(--green) 45%, var(--border)); }
.seat-button.pending { background: color-mix(in srgb, var(--gold) 12%, var(--surface)); border-color: color-mix(in srgb, var(--gold) 48%, var(--border)); }
.seat-button strong { display: block; color: var(--navy); font-size: 16px; }
[data-theme="dark"] .seat-button strong { color: #fff; }
.seat-button span { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.cabin-workspace { display: grid; grid-template-columns: minmax(520px,1.18fr) minmax(340px,.82fr); gap: 18px; align-items: start; }
.cabin-summary-column { display: grid; gap: 18px; position: sticky; top: calc(var(--topbar) + 18px); }
.cabin-map-panel { overflow: visible; }
.cabin-legend { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 9px; }
.cabin-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cabin-legend i { width: 9px; height: 9px; border-radius: 50%; background: #dfe6ef; }
.cabin-legend i.pending { background: #80a8cf; }
.cabin-legend i.preparing { background: #d6a329; }
.cabin-legend i.served { background: var(--navy); }
.cabin-seat-guide { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.cabin-seat-guide > span { display:inline-flex; align-items:center; gap:4px; }
.cabin-seat-guide b,.cabin-seat-guide strong { color:var(--text); }
.cabin-aircraft { position: relative; width: min(100%,760px); margin: 0 auto; padding: 0 29px 26px; border: 2px solid #c4d1e1; border-top: 0; border-radius: 46% 46% 34px 34px / 65px 65px 34px 34px; background: linear-gradient(90deg, rgba(13,43,96,.035), transparent 13%, transparent 87%, rgba(13,43,96,.035)); box-shadow: inset 13px 0 22px rgba(13,43,96,.04), inset -13px 0 22px rgba(13,43,96,.04); }
.cabin-nose { min-height: 83px; margin: 0 -31px 12px; display: grid; justify-items: center; align-content: center; gap: 2px; border-radius: 50% 50% 18px 18px / 72px 72px 18px 18px; background: linear-gradient(145deg, var(--navy), #245f9c); color: white; }
.cabin-nose .icon { width: 22px; height: 22px; transform: rotate(45deg); }
.cabin-nose strong { font-size: 10px; letter-spacing: .13em; }
.cabin-nose small { color: rgba(255,255,255,.65); font-size: 9px; }
.cabin-column-labels, .cabin-row { display: grid; grid-template-columns: minmax(72px,1fr) 22px minmax(72px,1fr) 34px minmax(72px,1fr) 22px minmax(72px,1fr); gap: 7px; align-items: stretch; }
.cabin-column-labels { align-items: center; padding: 0 4px 8px; color: var(--muted); text-align: center; font-size: 10px; font-weight: 850; }
.cabin-column-labels i { font-size: 7px; font-style: normal; font-weight: 600; text-transform: uppercase; writing-mode: vertical-rl; }
.cabin-column-labels b { height: 1px; background: var(--border); }
.cabin-rows { display: grid; gap: 11px; }
.cabin-row { min-height: 82px; position: relative; }
.business-seat.seat-button { min-width: 0; min-height: 102px; padding: 8px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto 1fr; align-content: start; align-items: center; gap: 3px 5px; border: 1px solid #c9d5e4; border-radius: 24px 8px 24px 8px; background: linear-gradient(145deg,var(--surface),var(--surface-2)); color: var(--text); box-shadow: 0 5px 11px rgba(13,43,96,.07); overflow: hidden; }
.business-seat.seat-button:nth-of-type(2), .business-seat.seat-button:nth-of-type(4) { border-radius: 8px 24px 8px 24px; }
.business-seat.seat-button:hover { transform: translateY(-2px); border-color: #4d8fc4; }
.business-seat.seat-button.pending { background: linear-gradient(145deg,#edf5fc,#dbeaf7); border-color: #75a4cd; }
.business-seat.seat-button.preparing { background: linear-gradient(145deg,#fff7df,#fbe8ad); border-color: #dcae38; }
.business-seat.seat-button.served { background: linear-gradient(145deg,#1b528a,#0d2b60); border-color: var(--navy); color: white; }
.business-seat-number { align-self: start; margin: 0 !important; color: inherit !important; font-size: 13px !important; font-weight: 900; }
.business-seat-icon { margin: 0 !important; color: #7e98b7 !important; }
.business-seat-icon .icon { width: 17px; height: 17px; }
.business-seat.served .business-seat-icon { color: #cfe3f8 !important; }
.business-seat-passenger { grid-column:1/-1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:inherit; font-size:9px; line-height:1.2; text-align:left; }
.business-seat-status { grid-column:1/-1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:7px; font-weight:750; text-align:left; }
.business-seat.served .business-seat-status { color:rgba(255,255,255,.76); }
.business-seat-services { grid-column:1/-1; align-self:end; display:flex !important; align-items:center; gap:3px; min-width:0; margin:2px 0 0 !important; overflow:hidden; }
.seat-service-chip { min-width:22px; height:19px; display:inline-flex !important; align-items:center; justify-content:center; gap:2px; margin:0 !important; padding:0 4px; border:1px solid var(--border); border-radius:7px; background:var(--surface); color:var(--text); font-size:7px; font-weight:900; line-height:1; }
.seat-service-chip b,.seat-service-chip i { font:inherit; font-style:normal; }
.seat-service-chip.delivered { border-color:#55a77d; background:#e8f7ef; color:#11633f; }
.seat-service-chip.preparing { border-color:#d6a329; background:#fff3cd; color:#765100; }
.seat-service-chip.pending { border-color:#7aa7d0; background:#eef6ff; color:#174c7d; }
.seat-service-chip.declined { border-color:#aeb9c7; background:#f3f5f8; color:#667386; }
[data-theme="dark"] .business-seat.seat-button { border-color:#46698f; background:linear-gradient(145deg,#17385f,#102d50); color:#f7fbff; box-shadow:0 7px 16px rgba(0,0,0,.22); }
[data-theme="dark"] .business-seat.seat-button.pending { border-color:#6ea5d6; background:linear-gradient(145deg,#1e4d79,#17395f); }
[data-theme="dark"] .business-seat.seat-button.preparing { border-color:#d6a329; background:linear-gradient(145deg,#5a4719,#3d321a); }
[data-theme="dark"] .business-seat.seat-button.served { border-color:#7fbae9; background:linear-gradient(145deg,#28669d,#123d6d); }
[data-theme="dark"] .business-seat-icon { color:#c7e3fb !important; }
[data-theme="dark"] .business-seat-status { color:#bfd1e5; }
[data-theme="dark"] .seat-service-chip.delivered { border-color:#4fb982; background:#123f31; color:#aef0cd; }
[data-theme="dark"] .seat-service-chip.preparing { border-color:#d6a329; background:#4c3d17; color:#ffe49b; }
[data-theme="dark"] .seat-service-chip.pending { border-color:#6ea5d6; background:#153f68; color:#d8ecff; }
[data-theme="dark"] .seat-service-chip.declined { border-color:#64778e; background:#293a50; color:#d1dbe7; }
.cabin-aisle { position: relative; min-height: 100%; }
.cabin-aisle::after { content: ""; position: absolute; top: 4px; bottom: 4px; left: 50%; border-left: 1px dashed #adc0d4; }
.cabin-center-divider { position: relative; display: grid; place-items: center; }
.cabin-center-divider::before, .cabin-center-divider::after { content: ""; position: absolute; top: 5px; bottom: 5px; width: 1px; background: #c5d2e2; }
.cabin-center-divider::before { left: 4px; }
.cabin-center-divider::after { right: 4px; }
.cabin-center-divider b { width: 22px; height: 22px; display: grid; place-items: center; position: relative; z-index: 1; border-radius: 50%; background: var(--navy-soft); color: var(--navy); font-size: 9px; }
[data-theme="dark"] .cabin-center-divider b { color: white; }
.cabin-aft { margin: 18px 7% -14px; min-height: 38px; display: grid; place-items: center; border: 1px solid #c4d1e1; border-radius: 10px 10px 22px 22px; color: var(--muted); background: var(--surface-2); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.cabin-live-summary { overflow: hidden; }
.cabin-summary-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 19px; color: white; background: linear-gradient(135deg,var(--navy),#255f99); }
.cabin-summary-top small, .cabin-summary-top span { display: block; color: rgba(255,255,255,.7); font-size: 9px; }
.cabin-summary-top strong { display: block; margin: 2px 0; font-size: 28px; }
.progress-ring { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#9cc8ec var(--progress),rgba(255,255,255,.14) 0); position: relative; }
.progress-ring::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--navy); }
.progress-ring b { position: relative; z-index: 1; color: white; font-size: 11px; }
.summary-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; padding: 13px; border-bottom: 1px solid var(--border); }
.summary-metrics div { padding: 10px 7px; border-radius: 11px; background: var(--surface-2); text-align: center; }
.summary-metrics span { display: block; color: var(--navy); }
[data-theme="dark"] .summary-metrics span { color: #dceaff; }
.summary-metrics .icon { width: 16px; height: 16px; }
.summary-metrics strong { display: block; margin: 3px 0; font-size: 16px; }
.summary-metrics small { display: block; color: var(--muted); font-size: 8px; }
.summary-order-block { padding: 13px 17px; border-bottom: 1px solid var(--border); }
.summary-order-block:last-child { border-bottom: 0; }
.summary-order-block h3 { margin: 0 0 8px; font-size: 11px; }
.summary-order-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; color: var(--muted); font-size: 10px; }
.summary-order-row b { color: var(--text); }
.summary-empty { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.summary-seat-list { display: grid; gap: 5px; max-height: 245px; overflow-y: auto; }
.summary-seat-list button { display: grid; grid-template-columns: 32px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 7px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text); text-align: left; }
.summary-seat-list button > span:nth-child(2) { min-width: 0; }
.summary-seat-list strong, .summary-seat-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.summary-seat-list strong { font-size: 9px; }
.summary-seat-list small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.summary-seat-list .icon { width: 14px; height: 14px; color: var(--muted); }
.summary-seat-code { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: var(--navy); color: white; font-size: 9px; font-weight: 850; }
.counter-list { display: grid; gap: 9px; }
.counter-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 14px; }
.counter-row strong { display: block; font-size: 12px; }
.counter-row small { display: block; color: var(--muted); font-size: 9px; margin-top: 2px; }
.counter { display: flex; align-items: center; gap: 8px; }
.counter button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #9eb4cb; border-radius: 10px; background: #edf4fb; color: #123f73; box-shadow:0 2px 5px rgba(13,43,96,.08); }
.counter button:hover:not(:disabled) { border-color:var(--primary); background:var(--primary); color:#fff; }
.counter button:focus-visible { outline:3px solid color-mix(in srgb,var(--primary) 35%,transparent); outline-offset:2px; }
.counter button .icon { width: 15px; height:15px; opacity:1; stroke:currentColor; stroke-width:2.3; }
.counter button:disabled { opacity:.55; cursor:not-allowed; }
[data-theme="dark"] .counter button { border-color:#5f82a7; background:#1a416b; color:#f3f9ff; box-shadow:0 2px 7px rgba(0,0,0,.22); }
[data-theme="dark"] .counter button:hover:not(:disabled) { border-color:#8cc8f6; background:#2b6ba3; color:#fff; }
.counter output { min-width: 25px; text-align: center; font-size: 13px; font-weight: 850; }

.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.month-nav { display: flex; align-items: center; gap: 8px; }
.month-nav h2 { min-width: 170px; margin: 0; text-align: center; font-size: 17px; text-transform: capitalize; }
.shift-palette { display: flex; gap: 7px; flex-wrap: wrap; }
.shift-chip { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border: 2px solid transparent; border-radius: 11px; background: var(--surface-2); color: var(--text); font-size: 11px; font-weight: 750; }
.shift-chip span { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 6px; background: var(--shift); color: white; font-size: 9px; }
.shift-chip.active { border-color: var(--shift); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 5px; }
.weekday { padding: 5px; color: var(--muted); text-align: center; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.calendar-day { min-height: 105px; padding: 8px; position: relative; display:flex; flex-direction:column; gap:5px; overflow:hidden; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); color: var(--text); text-align: left; }
.calendar-day.has-events { background:color-mix(in srgb,var(--surface) 92%,var(--blue)); }
.calendar-day.outside { opacity: .36; }
.calendar-day.today { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.calendar-day .day-number { align-self:flex-end; font-size: 11px; font-weight: 850; }
.calendar-events { display:grid; gap:3px; min-width:0; margin-top:auto; }
.calendar-event { --event-color:var(--blue); min-height:23px; display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:4px; overflow:hidden; padding:3px 5px; border:1px solid color-mix(in srgb,var(--event-color) 55%,var(--border)); border-left:3px solid var(--event-color); border-radius:6px; background:color-mix(in srgb,var(--event-color) 20%,var(--surface)); color:var(--text); font-size:9px; font-weight:800; line-height:1.1; }
.calendar-event b { font-size:8px; }
.calendar-event span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.calendar-plan-event { background:var(--event-color); color:#fff; border-color:var(--event-color); }
.calendar-more { padding-left:4px; color:var(--muted); font-size:8px; font-weight:800; }
.calendar-day .day-shift { position: absolute; left: 8px; right: 8px; bottom: 8px; min-height: 27px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--shift); color: white; font-size: 10px; font-weight: 850; }
.calendar-day.shift-l { background: transparent; border-color: color-mix(in srgb,var(--text) 24%,var(--border)); }
.calendar-day.shift-l .day-shift { background: color-mix(in srgb,var(--surface) 92%,var(--shift)); color: var(--text); border: 1px solid color-mix(in srgb,var(--shift) 40%,var(--border)); }
.calendar-day.shift-r { background: color-mix(in srgb,#6b7280 18%,var(--surface)); border-color: color-mix(in srgb,#6b7280 55%,var(--border)); }
.calendar-day.shift-r .day-shift { background:#6b7280; color:#fff; }
.calendar-day.shift-s { background: color-mix(in srgb,#1677c8 17%,var(--surface)); border-color: color-mix(in srgb,#1677c8 60%,var(--border)); box-shadow: inset 3px 0 0 #1677c8; }
.calendar-day.shift-s .day-shift { background:linear-gradient(135deg,#0d5fa8,#1677c8); color:#fff; }
.calendar-range-hint { display: flex; align-items: center; gap: 9px; margin: -3px 0 14px; padding: 11px 13px; border: 1px dashed var(--border); border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 11px; }
.calendar-range-hint.active { border-color: var(--blue); background: var(--navy-soft); color: var(--navy); }
[data-theme="dark"] .calendar-range-hint.active { color: #d7eaff; }
.calendar-range-hint .icon { width: 16px; flex: 0 0 auto; }
.calendar-day.range-start { border-color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.calendar-day.plan-day { background: color-mix(in srgb, var(--navy-soft) 74%, var(--surface)); }
.calendar-day.plan-day .day-shift { justify-content: flex-start; overflow: hidden; padding: 0 7px; text-overflow: ellipsis; white-space: nowrap; }
.calendar-day.plan-middle .day-shift { left: 0; right: 0; border-radius: 3px; }
.calendar-day.plan-start .day-shift { right: 0; border-radius: 8px 3px 3px 8px; }
.calendar-day.plan-end .day-shift { left: 0; border-radius: 3px 8px 8px 3px; }
.calendar-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(125px,1fr)); gap: 10px; margin-top: 14px; }
.summary-chip { padding: 13px; border:1px solid color-mix(in srgb,var(--shift) 60%,var(--border)); border-left:5px solid var(--shift); border-radius: 13px; color:var(--text); background:color-mix(in srgb,var(--shift) 18%,var(--surface)); }
.summary-chip strong { display: block; font-size: 20px; }
.summary-chip small { font-size: 10px; opacity: .86; }
.compact-select { width: auto; min-width: 88px; min-height: 38px; padding: 0 28px 0 10px; }
.per-diem-estimate { padding: 16px; margin-bottom: 13px; border-radius: 16px; color: white; background: linear-gradient(135deg,var(--navy),#245b96); }
.per-diem-estimate small,.per-diem-estimate span { display: block; color: rgba(255,255,255,.7); }
.per-diem-estimate small { font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.per-diem-estimate strong { display: block; margin: 4px 0; font-size: 24px; }
.per-diem-estimate span { font-size: 9px; }
.flight-plan-list { display: grid; gap: 9px; }
.flight-plan-card { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); color: var(--text); text-align: left; }
.flight-plan-card:hover { border-color: var(--blue); transform: translateY(-1px); }
.flight-plan-card > span:first-child { min-width: 0; }
.flight-plan-card strong,.flight-plan-card small { display: block; }
.flight-plan-card strong { font-size: 12px; }
.flight-plan-card small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.flight-plan-card-side { max-width: 150px; display: flex; align-items: center; justify-content: flex-end; gap: 7px; text-align: right; }
.flight-plan-card-side .icon { width: 15px; flex: 0 0 auto; color: var(--blue); }
.compact-empty { padding: 22px 14px; }
.compact-empty .empty-icon { width: 44px; height: 44px; }
.timezone-comparison { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--border); }
.timezone-comparison h3 { margin: 0 0 10px; font-size: 12px; }
.world-clock-grid,.plan-time-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.world-clock-grid > div,.plan-time-grid > span { padding: 10px; border-radius: 12px; background: var(--surface-2); }
.world-clock-grid small,.plan-time-grid small { display: block; color: var(--muted); font-size: 8px; }
.world-clock-grid strong,.plan-time-grid strong { display: block; margin-top: 3px; font-size: 12px; }
.plan-time-grid { margin-top: 8px; }
.flight-timeline { margin-top: 3px; padding: 12px 13px; border-left: 3px solid var(--blue); border-radius: 0 12px 12px 0; background: var(--surface-2); }
.flight-timeline h3 { margin: 0 0 3px; font-size: 12px; }
.flight-timeline p { margin: 0; color: var(--muted); font-size: 9px; }
.per-diem-admin-list { display: grid; gap: 9px; max-height: 650px; overflow: auto; }
.per-diem-destination { display: grid; grid-template-columns: 48px minmax(0,1fr) minmax(100px,.55fr) auto; align-items: center; gap: 11px; padding: 11px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.per-diem-destination.inactive { opacity: .56; }
.destination-code { width: 45px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--navy); color: white; font-size: 11px; font-weight: 900; letter-spacing: .04em; }
.per-diem-destination strong,.per-diem-destination small { display: block; }
.per-diem-destination strong { font-size: 11px; }
.per-diem-destination small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.destination-rate { text-align: right; }
.per-diem-destination .catalog-actions { flex-wrap: nowrap; }

.internal-tool-card .utility-icon { background: linear-gradient(135deg,#e9f5d7,#cfe9a1); color: #315f14; }
.internal-tools-panel { overflow: hidden; }
.internal-tool-feature { width: 100%; display: grid; grid-template-columns: 55px minmax(0,1fr) 34px; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 17px; background: linear-gradient(120deg,var(--surface-2),color-mix(in srgb,#d9edb5 42%,var(--surface))); color: var(--text); text-align: left; }
.internal-tool-feature strong,.internal-tool-feature small { display: block; }
.internal-tool-feature strong { font-size: 14px; }
.internal-tool-feature small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.internal-tool-feature .card-arrow { display: grid; place-items: center; color: var(--blue); }
.tool-hub-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.tool-hub-card { position: relative; min-height: 230px; display: grid; grid-template-columns: 74px minmax(0,1fr) 34px; align-items: center; gap: 18px; padding: 28px; overflow: hidden; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); color: var(--text); text-align: left; box-shadow: var(--shadow-sm); }
.tool-hub-card::after { content: ''; position: absolute; width: 190px; height: 190px; right: -85px; bottom: -105px; border-radius: 50%; background: color-mix(in srgb,var(--tool-accent,#2f6fa8) 13%,transparent); }
.tool-hub-card.clock-tool { --tool-accent: #f2a500; }
.tool-hub-card.invoice-tool { --tool-accent: #79a92b; }
.tool-hub-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb,var(--tool-accent,#2f6fa8) 55%,var(--border)); box-shadow: var(--shadow); }
.tool-hub-icon { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 21px; background: color-mix(in srgb,var(--tool-accent,#2f6fa8) 14%,var(--surface-2)); color: var(--tool-accent,#2f6fa8); }
.tool-hub-icon .icon { width: 34px; height: 34px; }
.tool-hub-card h2 { margin: 7px 0 6px; font-size: 21px; }
.tool-hub-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.tool-hub-card .card-arrow { position: relative; z-index: 1; color: var(--tool-accent,#2f6fa8); }

.world-clock-add-panel { margin-bottom: 18px; }
.world-clock-add-form { display: grid; grid-template-columns: minmax(260px,1fr) auto; align-items: end; gap: 12px; }
.world-clock-add-form .primary-button { min-height: 47px; }
.personal-clock-grid { grid-template-columns: repeat(3,minmax(220px,1fr)); gap: 16px; }
.world-clock-card { position: relative; min-width: 0; padding: 18px; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: linear-gradient(145deg,var(--surface),var(--surface-2)); box-shadow: var(--shadow-sm); }
.world-clock-card.bolivia-clock { border-color: color-mix(in srgb,var(--blue) 42%,var(--border)); background: linear-gradient(145deg,color-mix(in srgb,var(--navy-soft) 55%,var(--surface)),var(--surface)); }
.world-clock-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.world-clock-card-head > div { display: flex; align-items: center; gap: 8px; }
.world-clock-card-head small { color: var(--muted); font-size: 8px; }
.clock-country-code { min-width: 31px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: var(--navy); color: #fff; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.analog-clock { position: relative; width: 150px; aspect-ratio: 1; margin: 18px auto 15px; border: 8px solid color-mix(in srgb,var(--navy) 87%,#fff); border-radius: 50%; background: radial-gradient(circle at 50% 50%,var(--surface) 0 59%,color-mix(in srgb,var(--navy-soft) 58%,var(--surface)) 60% 100%); box-shadow: inset 0 0 0 2px color-mix(in srgb,var(--blue) 25%,transparent),0 12px 28px rgba(10,38,78,.18); }
.clock-mark { position: absolute; color: var(--muted); font-size: 9px; font-weight: 900; line-height: 1; }
.mark-12 { top: 9px; left: 50%; transform: translateX(-50%); }
.mark-3 { right: 9px; top: 50%; transform: translateY(-50%); }
.mark-6 { bottom: 9px; left: 50%; transform: translateX(-50%); }
.mark-9 { left: 9px; top: 50%; transform: translateY(-50%); }
.clock-hand { position: absolute; z-index: 2; bottom: 50%; border-radius: 999px; transform-origin: 50% 100%; }
.hour-hand { left: calc(50% - 3px); width: 6px; height: 38px; background: var(--navy); transform: rotate(var(--hour-angle)); }
.minute-hand { left: calc(50% - 2px); width: 4px; height: 51px; background: var(--blue); transform: rotate(var(--minute-angle)); }
.second-hand { left: calc(50% - 1px); width: 2px; height: 55px; background: #df4a0a; transform: rotate(var(--second-angle)); }
.clock-pin { position: absolute; z-index: 3; width: 12px; height: 12px; left: calc(50% - 6px); top: calc(50% - 6px); border: 3px solid var(--surface); border-radius: 50%; background: #df4a0a; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.world-clock-copy { text-align: center; }
.world-clock-copy h3 { margin: 0; min-height: 34px; font-size: 14px; line-height: 1.2; }
.world-clock-copy > strong { display: block; margin: 4px 0 2px; color: var(--navy); font-size: 28px; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
[data-theme="dark"] .world-clock-copy > strong { color: #d8eaff; }
.world-clock-copy p { margin: 0; color: var(--muted); font-size: 9px; text-transform: capitalize; }
.world-clock-copy > span { display: block; margin-top: 7px; color: var(--muted); font-size: 8px; }

.account-access-card.expired { border-color: color-mix(in srgb,#c23b32 45%,var(--border)); }
.account-access-label { width: fit-content; display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 5px 8px; border-radius: 999px; background: var(--navy-soft); color: var(--blue); font-size: 8px; font-weight: 850; }
.account-access-label .icon { width: 12px; height: 12px; }
.account-access-label.limited { background: #fff2d9; color: #8b5100; }
.account-access-label.expired { background: #fde7e5; color: #9b2c25; }
[data-theme="dark"] .account-access-label.limited { background: #463414; color: #ffdda0; }
[data-theme="dark"] .account-access-label.expired { background: #4a2321; color: #ffc0bb; }
.account-access-editor { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface-2); }
.account-access-editor > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--navy-soft); color: var(--blue); }
.account-access-editor strong,.account-access-editor small { display: block; }
.account-access-editor small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.account-access-editor.expired { border-color: color-mix(in srgb,#c23b32 50%,var(--border)); }
.account-creation-stack { min-width: 0; display: grid; align-content: start; gap: 18px; }
.account-creation-stack > .panel { margin: 0; }
.catalog-input-action { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) 48px; gap: 8px; }
.catalog-input-action .input-control { min-width: 0; }
.catalog-plus-button { width: 48px; height: 48px; border-color: color-mix(in srgb,var(--brand) 30%,var(--border)); background: var(--navy-soft); color: var(--brand); }
.catalog-plus-button:hover { border-color: var(--brand); transform: translateY(-1px); }
.demo-account-panel { border-color: color-mix(in srgb,var(--brand) 32%,var(--border)); background: linear-gradient(155deg,var(--surface) 0 68%,color-mix(in srgb,var(--navy-soft) 45%,var(--surface)) 100%); }
.demo-account-panel .panel-header { align-items: flex-start; }
.panel-eyebrow { display: block; margin-bottom: 5px; color: var(--blue); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.demo-count-badge,.demo-badge { border-color: color-mix(in srgb,#df6c00 38%,var(--border)); background: #fff2dd; color: #8b4b00; }
[data-theme="dark"] .demo-count-badge,[data-theme="dark"] .demo-badge { background: #493318; color: #ffdda3; }
.demo-count-badge { flex: 0 0 auto; padding: 6px 9px; border: 1px solid; border-radius: 999px; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.demo-account-hero { display: grid; grid-template-columns: 46px minmax(0,1fr); align-items: start; gap: 12px; }
.demo-account-hero > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--navy-soft); color: var(--blue); }
.demo-account-hero strong { display: block; font-size: 13px; }
.demo-account-hero p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.demo-feature-list { display: grid; gap: 8px; margin: 15px 0; padding: 0; list-style: none; }
.demo-feature-list li { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 10px; font-weight: 750; }
.demo-feature-list .icon { width: 15px; height: 15px; color: var(--blue); }
.demo-create-button { width: 100%; margin-top: 13px; }
.demo-credentials { display: grid; gap: 15px; }
.demo-credentials-intro { margin: 0; color: var(--muted); line-height: 1.55; text-align: center; }
.success-mark { width: 58px; height: 58px; margin: 0 auto; display: grid; place-items: center; border-radius: 19px; background: #e6f6ee; color: #19704e; }
[data-theme="dark"] .success-mark { background: #153d31; color: #9aebc8; }
.success-mark .icon { width: 28px; height: 28px; }
.demo-credentials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-credential-card { min-width: 0; padding: 13px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface-2); }
.demo-credential-card small { display: block; margin-bottom: 7px; color: var(--muted); font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.demo-credential-card code { display: block; overflow-wrap: anywhere; color: var(--navy); font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 13px; font-weight: 850; }
[data-theme="dark"] .demo-credential-card code { color: #dcecff; }
.invoice-workspace { display: grid; grid-template-columns: minmax(350px,.9fr) minmax(420px,1.1fr); gap: 18px; align-items: start; }
@media(max-width:700px){.invoice-page{padding-inline:12px}.invoice-sheet{min-width:0}.invoice-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}.invoice-input-panel,.invoice-result-panel{width:100%;min-width:0;position:static}.invoice-input-panel .panel-body,.invoice-result-panel .panel-body{padding:14px}.invoice-page .form-grid.two{grid-template-columns:minmax(0,1fr)}.invoice-page .form-grid.two>.span-2,.invoice-page .form-grid.two>.span-all{grid-column:auto}.invoice-actions{display:grid;grid-template-columns:1fr}.invoice-actions>*{width:100%}.invoice-result-hero{padding:18px 15px}.invoice-result-hero strong{overflow-wrap:anywhere}.invoice-history-card>button:first-child{grid-template-columns:minmax(0,1fr);gap:6px}.invoice-page .two-column{grid-template-columns:minmax(0,1fr)}}
.invoice-input-panel,.invoice-result-panel { min-width: 0; }
.invoice-result-panel { position: sticky; top: calc(var(--topbar) + 18px); }
.invoice-money-field .input-control { font-variant-numeric: tabular-nums; }
.invoice-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 15px; }
.invoice-assumptions { overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.invoice-assumptions summary { display: flex; align-items: center; gap: 9px; padding: 13px; color: var(--navy); cursor: pointer; font-size: 11px; font-weight: 850; list-style: none; }
[data-theme="dark"] .invoice-assumptions summary { color: #d7eaff; }
.invoice-assumptions summary::-webkit-details-marker { display: none; }
.invoice-assumptions summary .icon { width: 16px; }
.invoice-assumptions[open] summary { border-bottom: 1px solid var(--border); }
.invoice-assumptions > .form-grid { padding: 14px; }
.invoice-result-hero { padding: 22px; border-radius: 19px; color: white; background: linear-gradient(135deg,var(--navy),#235b93); box-shadow: var(--shadow-sm); }
.invoice-result-hero.requires-invoices { background: linear-gradient(135deg,#9b4d00,#df6c00); }
.invoice-result-hero.no-invoices { background: linear-gradient(135deg,#1f5b42,#2e8761); }
.invoice-result-chip { width: fit-content; display: block; margin-bottom: 12px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.12); color: white; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.invoice-result-hero .eyebrow { display: block; color: rgba(255,255,255,.86); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.invoice-result-hero > strong { display: block; margin: 7px 0 4px; font-size: clamp(30px,5vw,44px); letter-spacing: -.045em; }
.invoice-result-hero p { max-width: 650px; margin: 0; color: rgba(255,255,255,.88); font-size: 11px; line-height: 1.5; }
.invoice-retention-card { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 12px; margin-top: 12px; padding: 13px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface-2); }
.invoice-retention-card.has-retention { border-color: color-mix(in srgb,#df6c00 40%,var(--border)); background: color-mix(in srgb,#fff2df 72%,var(--surface)); }
[data-theme="dark"] .invoice-retention-card.has-retention { background: color-mix(in srgb,#4a2d13 72%,var(--surface)); }
.invoice-retention-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--navy-soft); color: var(--blue); }
.invoice-retention-card.has-retention .invoice-retention-icon { background: #ffe1b8; color: #9b4d00; }
[data-theme="dark"] .invoice-retention-card.has-retention .invoice-retention-icon { background: #6a3b12; color: #ffd29a; }
.invoice-retention-icon .icon { width: 20px; height: 20px; }
.invoice-retention-copy small,.invoice-retention-copy strong,.invoice-retention-copy p { display: block; }
.invoice-retention-copy small { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .06em; }
.invoice-retention-copy strong { margin-top: 3px; color: var(--text); font-size: 21px; letter-spacing: -.025em; }
.invoice-retention-copy p { margin: 3px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.invoice-kpis { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 13px 0; }
.invoice-kpis > div { min-width: 0; padding: 11px; border-radius: 13px; background: var(--surface-2); }
.invoice-kpis small,.invoice-kpis strong { display: block; }
.invoice-kpis small { min-height: 24px; color: var(--muted); font-size: 8px; line-height: 1.35; }
.invoice-kpis strong { margin-top: 4px; overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.invoice-breakdown { overflow: hidden; border: 1px solid var(--border); border-radius: 15px; }
.invoice-breakdown > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 10px; }
.invoice-breakdown > div:last-child { border-bottom: 0; }
.invoice-breakdown span { color: var(--muted); }
.invoice-breakdown strong { text-align: right; white-space: nowrap; }
.invoice-breakdown .invoice-total-row { background: var(--navy-soft); font-weight: 850; }
.invoice-breakdown .invoice-total-row span { color: var(--text); }
.invoice-form-status { display: flex; align-items: flex-start; gap: 10px; margin-top: 13px; padding: 12px; border-radius: 14px; }
.invoice-form-status.ok { background: #e5f6ed; color: #155b39; }
.invoice-form-status.warning { background: #fff0dc; color: #914600; }
[data-theme="dark"] .invoice-form-status.ok { background: #183c30; color: #bdebd5; }
[data-theme="dark"] .invoice-form-status.warning { background: #4a2d13; color: #ffd8a8; }
.invoice-form-status .icon { width: 18px; flex: 0 0 auto; }
.invoice-form-status strong,.invoice-form-status small { display: block; }
.invoice-form-status strong { font-size: 10px; }
.invoice-form-status small { margin-top: 3px; opacity: .8; font-size: 8px; line-height: 1.4; }
.invoice-history { display: grid; gap: 9px; }
.invoice-history-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 7px; padding: 5px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.invoice-history-card.active { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.invoice-history-card > button:first-child { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px; border: 0; background: transparent; color: var(--text); text-align: left; }
.invoice-history-card strong,.invoice-history-card small { display: block; }
.invoice-history-card strong { font-size: 10px; text-transform: capitalize; }
.invoice-history-card small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.invoice-history-card > button:first-child > span:last-child { text-align: right; }
.invoice-steps { display: grid; gap: 9px; margin: 0; padding-left: 22px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.invoice-steps li::marker { color: var(--blue); font-weight: 900; }
.source-links { display: grid; gap: 7px; margin-top: 15px; }
.source-links a { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 10px 11px; border: 1px solid var(--border); border-radius: 12px; color: var(--blue); background: var(--surface-2); font-size: 9px; font-weight: 800; }
.source-links a .icon { width: 14px; flex: 0 0 auto; }
.invoice-admin-summary { display: grid; gap: 9px; }
.invoice-admin-summary > div { padding: 14px; border-radius: 14px; background: var(--surface-2); }
.invoice-admin-summary small,.invoice-admin-summary strong { display: block; }
.invoice-admin-summary small { color: var(--muted); font-size: 9px; }
.invoice-admin-summary strong { margin-top: 4px; font-size: 19px; }

.alarm-list, .history-list, .admin-list { display: grid; gap: 10px; }
.list-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); }
.list-card-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.list-card-icon { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; background: var(--navy-soft); color: var(--navy); }
[data-theme="dark"] .list-card-icon { color: white; }
.list-card strong { display: block; font-size: 13px; }
.list-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.switch { width: 43px; height: 25px; padding: 3px; position: relative; border: 0; border-radius: 999px; background: #cbd3df; }
.switch::after { content: ""; display: block; width: 19px; height: 19px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0,0,0,.18); transition: .18s ease; }
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(18px); }

.rest-result { padding: 22px; border-radius: 20px; background: linear-gradient(135deg, var(--navy), #174784); color: white; }
.rest-result h3 { margin: 0; }
.rest-result > p { color: rgba(255,255,255,.7); font-size: 12px; }
.rest-total { font-size: 36px; font-weight: 850; letter-spacing: -.05em; }
.timeline { display: grid; grid-template-columns: 1fr 1fr; margin: 25px 0 15px; border-radius: 999px; overflow: hidden; }
.timeline span { height: 12px; }
.timeline span:first-child { background: var(--gold); }
.timeline span:last-child { background: var(--green); }
.rest-shifts { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.rest-shift { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.1); }
.rest-shift small { color: rgba(255,255,255,.65); }
.rest-shift strong { display: block; margin-top: 4px; font-size: 15px; }

.rest-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 27px;
  margin-bottom: 18px;
  border-radius: 23px;
  color: white;
  background: linear-gradient(125deg, var(--navy), #1e568f);
  box-shadow: var(--shadow-sm);
}
.rest-intro h2 { margin: 6px 0; font-size: clamp(21px, 3vw, 29px); letter-spacing: -.035em; }
.rest-intro p { max-width: 670px; margin: 0; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.55; }
.rest-intro .eyebrow { color: #c9e4ff; }
.rest-feature-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.rest-feature-pills span { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border-radius: 999px; background: rgba(255,255,255,.11); white-space: nowrap; font-size: 10px; font-weight: 750; }
.rest-feature-pills .icon { width: 15px; }
.rest-timezone-picker { padding: 13px; border: 1px solid color-mix(in srgb,var(--blue) 34%,var(--border)); border-radius: 16px; background: linear-gradient(135deg,color-mix(in srgb,var(--navy-soft) 72%,var(--surface)),var(--surface)); }
.rest-timezone-picker > label { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 850; }
.rest-timezone-control { min-width: 0; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 9px; }
.rest-timezone-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--brand); color: white; }
.rest-timezone-icon .icon { width: 19px; height: 19px; }
.rest-timezone-control .select-control { min-width: 0; background-color: var(--surface); }
.rest-zone-offset { min-height: 36px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid color-mix(in srgb,var(--blue) 30%,var(--border)); border-radius: 999px; background: var(--surface); color: var(--blue); font-size: 8px; font-weight: 900; white-space: nowrap; }
.rest-timezone-context { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.rest-timezone-context span { display: inline-flex; align-items: center; gap: 5px; }
.rest-timezone-context .icon { width: 12px; height: 12px; }
.rest-timezone-context strong { color: var(--blue); white-space: nowrap; }
.rest-workspace { display: grid; grid-template-columns: minmax(340px,.8fr) minmax(430px,1.2fr); gap: 18px; align-items: start; }
.rest-result-host { min-width: 0; }
.rest-plan-panel { overflow: hidden; }
.rest-plan-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 23px; color: white; background: linear-gradient(130deg, var(--navy), #255f99); }
.rest-plan-hero small { color: rgba(255,255,255,.65); }
.rest-plan-hero p { margin: 5px 0 0; color: rgba(255,255,255,.7); font-size: 11px; }
.rest-plan-hero .rest-total { margin-top: 4px; font-size: clamp(25px,4vw,34px); }
.rest-score { min-height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 11px; border-radius: 999px; background: rgba(255,255,255,.12); white-space: nowrap; font-size: 10px; font-weight: 750; }
.rest-score .icon { width: 15px; }
.rest-hero-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.rest-plan-zone { min-height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(1,18,47,.2); color: #fff; white-space: nowrap; font-size: 9px; font-weight: 800; }
.rest-plan-zone .icon { width: 14px; height: 14px; }
.rest-advanced-timeline { height: 18px; display: flex; gap: 2px; margin: 22px 22px 7px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.rest-segment { min-width: 3px; height: 100%; }
.rest-segment.buffer { background: #bcc9d9; }
.rest-segment.handover { background: #79a8cf; background-image: repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(255,255,255,.55) 3px, rgba(255,255,255,.55) 5px); }
.rest-timeline-labels { display: flex; justify-content: space-between; gap: 12px; margin: 0 22px 18px; color: var(--muted); font-size: 9px; }
.rest-summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; padding: 0 22px 19px; }
.rest-summary-grid div { padding: 11px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.rest-summary-grid small { display: block; color: var(--muted); font-size: 9px; }
.rest-summary-grid strong { display: block; margin-top: 4px; font-size: 12px; }
.rest-turn-list { display: grid; gap: 8px; padding: 0 22px 21px; }
.rest-turn-card { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 11px; align-items: center; padding: 12px; border: 1px solid var(--border); border-left: 4px solid var(--turn-color); border-radius: 13px; background: var(--surface); }
.rest-turn-number { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--turn-color); font-size: 12px; font-weight: 850; }
.rest-turn-card small { display: block; color: var(--muted); font-size: 9px; }
.rest-turn-card strong { display: block; margin-top: 3px; font-size: 12px; }
.rest-turn-card em { display: inline-block; margin-top: 4px; color: #3675a9; font-size: 9px; font-style: normal; font-weight: 750; }
.rest-turn-zone { display: inline-block; margin-top: 4px; color: var(--muted); font-size: 8px; font-weight: 750; }
.history-zone-label { display: inline-flex; width: fit-content; margin-top: 5px; padding: 4px 7px; border-radius: 999px; background: var(--navy-soft); color: var(--blue); font-size: 8px; font-weight: 800; }
.rest-turn-content { min-width: 0; }
.rest-turn-time { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:10px; margin-top:7px; }
.rest-turn-time > span { display:grid; gap:3px; min-width:0; }
.rest-turn-time > span:last-child { text-align:right; }
.rest-turn-time strong { margin:0; color:var(--text); font-size:1.55rem !important; line-height:1; letter-spacing:-.035em; }
.rest-turn-time small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.72rem !important; }
.rest-turn-time > b { color:var(--blue); font-size:1rem; }
.rest-turn-label { font-size:.8rem; font-weight:850; }
.rest-members { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--border); }
.rest-members-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.rest-members-heading b { font-size: 10px; }
.rest-members-heading span { display: inline-flex; align-items: center; gap: 4px; color: #287054; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.rest-members-heading .icon { width: 12px; height: 12px; }
.rest-member-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 26px; margin-bottom: 8px; }
.rest-member-tags > span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 7px 6px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-size: 9px; font-weight: 750; }
.rest-member-tags > span button { display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: rgba(13,43,96,.1); color: var(--text); cursor: pointer; font-size: 13px; line-height: 1; }
.rest-member-add { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
.rest-member-add .input-control { min-height: 38px; }
.rest-local-note { margin: 0 22px 6px; }
.rest-plan-actions { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; padding: 15px 22px 20px; border-top: 1px solid var(--border); }

.tabs { display: flex; gap: 7px; padding: 6px; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.tab { min-height: 38px; padding: 0 13px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); white-space: nowrap; font-size: 11px; font-weight: 750; }
.tab.active { background: var(--navy); color: white; }

/* Admin Mobile Tabs */
.admin-mobile .admin-tabs-sheet { display: flex; gap: 4px; padding: 4px; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-bottom: 16px; }
.admin-tab-item { min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); white-space: nowrap; font-size: 12px; font-weight: 700; }
.admin-tab-item.active { background: var(--navy); color: white; }
[data-theme="dark"] .admin-tab-item.active { background: var(--brand); color: var(--navy); }

.admin-mobile #admin-content { animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .admin-mobile .page-header { padding-bottom: 8px; }
  .admin-mobile .info-banner { margin-bottom: 12px; }
  .admin-tabs-sheet { -webkit-overflow-scrolling: touch; }
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); font-size: 11px; }
.tag button { border: 0; background: transparent; color: var(--danger); padding: 0; display: grid; place-items: center; }
.tag button .icon { width: 14px; }
.tag button.tag-edit { color: var(--navy); }
[data-theme="dark"] .tag button.tag-edit { color: #cfe0ff; }
.role-badge { padding: 4px 8px; border-radius: 999px; background: var(--navy-soft); color: var(--navy); font-size: 9px; font-weight: 800; }
[data-theme="dark"] .role-badge { color: white; }

.webview-shell { position: fixed; z-index: 100; inset: 0; display: grid; grid-template-rows: 60px 1fr; background: var(--surface); }
.webview-bar { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--border); }
.webview-title { flex: 1; min-width: 0; display: grid; gap: 2px; }
.webview-title strong, .webview-title small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.webview-title small { color: var(--muted); font-size: 10px; }
.webview-frame { width: 100%; height: 100%; border: 0; background: white; }
.webview-shell.secure-webview { grid-template-rows: 60px auto 1fr; }
.webview-secure-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 7px 10px; background: #e9f8f1; color: #126341; font-size: 10px; font-weight: 800; white-space: nowrap; }
.webview-secure-badge .icon, .webview-privacy-strip .icon { width: 15px; height: 15px; }
.webview-privacy-strip { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; background: #eff6ff; border-bottom: 1px solid #cfe0f2; color: #244a73; font-size: 11px; text-align: center; }
.webview-privacy-strip .link-button { border: 0; background: transparent; color: var(--brand); font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; white-space: nowrap; }
[data-theme="dark"] .webview-shell { background: var(--surface); }
[data-theme="dark"] .webview-secure-badge { background: #153e35; color: #bff4dc; }
[data-theme="dark"] .webview-privacy-strip { background: var(--notice-bg); border-color: #315d87; color: var(--notice-text); }
[data-theme="dark"] .webview-privacy-strip .link-button { color: #b9dcff; }

@media (max-width: 680px) {
  .webview-secure-badge { display: none; }
  .webview-privacy-strip { justify-content: flex-start; text-align: left; font-size: 9px; }
}

.modal-backdrop { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(1,10,28,.62); backdrop-filter: blur(5px); }
.submodal-backdrop { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(1,10,28,.7); backdrop-filter: blur(7px); }
.submodal { width: min(100%,500px); }
.modal { width: min(100%, 620px); max-height: min(88dvh, 840px); display: flex; flex-direction: column; border-radius: 24px; background: var(--surface); box-shadow: 0 28px 90px rgba(0,0,0,.35); overflow: hidden; animation: modalIn .2s ease; }
.modal.wide { width: min(100%, 900px); }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.modal-header h2 { margin: 0; font-size: 18px; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 20px; border-top: 1px solid var(--border); }
.close-button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 22px; }
.toast-root { position: fixed; z-index: 120; right: 20px; bottom: 24px; display: grid; gap: 9px; }
.toast { min-width: 250px; max-width: 370px; display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-radius: 14px; background: #102b54; color: white; box-shadow: 0 14px 35px rgba(0,0,0,.24); animation: toastIn .25s ease; font-size: 12px; }
.toast.success { border-left: 4px solid var(--green); }
.toast.error { border-left: 4px solid var(--orange); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* Experiencia publicada y mini CMS */
.site-announcement { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 13px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid #b8d5ef; border-radius: 16px; background: #eaf4fd; color: #174d7a; box-shadow: var(--shadow-sm); }
.site-announcement.warning { border-color: #f0cc79; background: #fff7df; color: #73521a; }
.site-announcement.success { border-color: #94d2ba; background: #eaf8f0; color: #175f47; }
.site-announcement-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.7); }
.site-announcement strong { display: block; font-size: 13px; }
.site-announcement p { margin: 3px 0 0; font-size: 12px; line-height: 1.45; }
[data-theme="dark"] .site-announcement { background: #16385e; border-color: #315d87; color: #e8f4ff; }
[data-theme="dark"] .site-announcement.warning { background: #493a18; border-color: #806c35; color: #fff1bd; }
[data-theme="dark"] .site-announcement.success { background: #153e35; border-color: #2d6b5b; color: #d8fff0; }

/* Superficies semánticas: evita texto oscuro sobre tarjetas claras en modo nocturno. */
[data-theme="dark"] .status-pill.offline,
[data-theme="dark"] .priority-important,
[data-theme="dark"] .demo-count-badge,
[data-theme="dark"] .demo-badge { border-color: #8a642b; background: var(--warning-bg); color: var(--warning-text); }
[data-theme="dark"] .priority-urgent,
[data-theme="dark"] .request-status.denied,
[data-theme="dark"] .request-status.revoked { border-color: #804945; background: #492624; color: #ffc7c1; }
[data-theme="dark"] .status-pill,
[data-theme="dark"] .ecosystem-badge,
[data-theme="dark"] .request-status.active,
[data-theme="dark"] .request-status.approved,
[data-theme="dark"] .invoice-form-status.ok,
[data-theme="dark"] .success-mark { background: #153e35; color: #bff4dc; }
[data-theme="dark"] .request-status.pending { background: #493a18; color: #fff1bd; }
[data-theme="dark"] .ssr-seat-preview.is-ready { background: #153e35; color: #bff4dc; }
[data-theme="dark"] .ssr-seat-preview.is-invalid { background: #492624; color: #ffc7c1; }

.maintenance-state { width: min(100%,680px); min-height: 560px; margin: 28px auto; padding: 60px 38px; border: 1px solid var(--border); border-radius: 30px; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.maintenance-icon { width: 76px; height: 76px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 24px; background: var(--navy-soft); color: var(--navy); }
.maintenance-icon .icon { width: 34px; height: 34px; }
.maintenance-state h1 { margin: 8px 0 10px; font-size: clamp(28px,5vw,44px); letter-spacing: -.045em; }
.maintenance-state > p { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.6; }
.maintenance-status { margin-top: 24px; min-height: 38px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 750; }
.maintenance-support { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 13px; }
.maintenance-support a { color: var(--navy-2); font-weight: 750; }

.site-publish-bar { position: sticky; z-index: 12; top: calc(var(--topbar) + 8px); display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 17px; background: color-mix(in srgb,var(--surface) 94%,transparent); box-shadow: var(--shadow-sm); backdrop-filter: blur(16px); }
.site-publish-bar > div:first-child { display: grid; gap: 2px; }
.site-publish-bar strong { font-size: 13px; }
.site-publish-bar small { color: var(--muted); font-size: 10px; }
.publication-state { width: max-content; margin-bottom: 3px; padding: 4px 8px; border-radius: 999px; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.publication-state.draft { background: #fff1cb; color: #77510b; }
.publication-state.clean { background: #e7f5ed; color: #176044; }
.site-publish-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.site-publish-actions button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.cms-workspace { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(330px,.65fr); gap: 18px; align-items: start; }
.cms-editor-stack { display: grid; gap: 18px; min-width: 0; }
.cms-preview-column { position: sticky; top: calc(var(--topbar) + 104px); display: grid; gap: 18px; min-width: 0; }
.switch-label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 750; }
.switch-label input, .check-row input { width: 20px; height: 20px; accent-color: var(--navy-2); }
.check-row { min-height: 58px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-2); display: flex; align-items: flex-start; gap: 11px; color: var(--text); cursor: pointer; }
.check-row span { display: grid; gap: 3px; }
.check-row strong { font-size: 12px; }
.check-row small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.maintenance-toggle { border-color: #e0c47b; background: #fff9e9; }
[data-theme="dark"] .maintenance-toggle { background: #382f1d; border-color: #695b36; }
.color-input { min-height: 46px; padding: 5px; cursor: pointer; }

.site-module-list { display: grid; gap: 9px; }
.site-module-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 92px; padding: 12px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); transition: opacity .2s ease,border-color .2s ease; }
.site-module-row.disabled { opacity: .6; background: var(--surface-2); }
.site-module-color { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: color-mix(in srgb,var(--module-color) 15%,var(--surface)); color: var(--module-color); }
.site-module-copy { min-width: 0; display: grid; gap: 3px; }
.site-module-copy > strong { font-size: 13px; }
.site-module-copy > small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.site-module-visibility { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.visibility-chip { min-height: 28px; padding: 0 9px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 9px; font-weight: 800; }
.visibility-chip.on { border-color: #9fc1df; background: #e9f3fc; color: #18568c; }
[data-theme="dark"] .visibility-chip.on { background: #173d64; border-color: #32648e; color: #d9edff; }
.visibility-chip:disabled { opacity: .4; cursor: not-allowed; }
.site-module-actions { display: flex; align-items: center; gap: 5px; }
.site-module-actions .action-button { width: 36px; height: 36px; }

.cms-preview-panel { overflow: hidden; }
.cms-device-toolbar { display: grid; grid-template-columns: repeat(3,1fr); padding: 9px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.cms-device-toolbar button { min-height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 800; }
.cms-device-toolbar button.active { background: var(--surface); color: var(--navy); box-shadow: var(--shadow-sm); }
.cms-preview-stage { min-height: 540px; padding: 18px 10px; overflow-x: auto; background: linear-gradient(135deg,var(--surface-2),var(--navy-soft)); }
.cms-device { margin: 0 auto; border: 8px solid #1a2638; border-radius: 28px; background: #1a2638; box-shadow: 0 18px 40px rgba(4,18,40,.22); transition: width .2s ease; }
.cms-device.mobile { width: 300px; }
.cms-device.tablet { width: 480px; }
.cms-device.desktop { width: 720px; }
.cms-device-screen { min-height: 500px; overflow: hidden; border-radius: 19px; background: #f4f7fb; color: #17243d; }
.cms-preview-topbar { height: 52px; padding: 7px 11px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #dae3ef; background: #fff; }
.cms-preview-topbar img { width: 46px; height: 34px; object-fit: cover; }
.cms-preview-topbar span { display: grid; }
.cms-preview-topbar strong { font-size: 10px; }
.cms-preview-topbar small { color: #6d7990; font-size: 7px; }
.cms-preview-announcement { margin: 9px; padding: 8px 10px; border-radius: 9px; display: grid; gap: 2px; background: #e7f2fc; color: #164e7d; }
.cms-preview-announcement.warning { background: #fff2ca; color: #72530d; }
.cms-preview-announcement.success { background: #e3f6eb; color: #175d45; }
.cms-preview-announcement strong { font-size: 8px; }
.cms-preview-announcement span { font-size: 7px; }
.cms-preview-hero { margin: 10px; padding: 16px; border-radius: 15px; background: linear-gradient(120deg,#0d2b60,#20539b); color: #fff; }
.cms-preview-hero > span { color: #bad9f7; font-size: 6px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.cms-preview-hero h3 { margin: 5px 0; font-size: 18px; letter-spacing: -.04em; }
.cms-preview-hero p { margin: 0; color: rgba(255,255,255,.75); font-size: 7px; line-height: 1.5; }
.cms-preview-heading { margin: 14px 11px 8px; display: grid; }
.cms-preview-heading strong { font-size: 10px; }
.cms-preview-heading small { color: #6d7990; font-size: 7px; }
.cms-preview-modules { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; padding: 0 10px 12px; }
.cms-preview-modules article { min-width: 0; padding: 9px; border: 1px solid #dbe4ef; border-top: 3px solid var(--accent); border-radius: 10px; background: #fff; display: flex; gap: 7px; }
.cms-preview-modules article > span { color: var(--accent); }
.cms-preview-modules .icon { width: 13px; height: 13px; }
.cms-preview-modules article div { min-width: 0; display: grid; gap: 2px; }
.cms-preview-modules strong { overflow: hidden; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.cms-preview-modules small { display: -webkit-box; overflow: hidden; color: #6d7990; font-size: 6px; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cms-device.tablet .cms-preview-modules, .cms-device.desktop .cms-preview-modules { grid-template-columns: repeat(3,minmax(0,1fr)); }
.quality-list { margin: 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.quality-list li { display: flex; align-items: flex-start; gap: 8px; color: var(--text); font-size: 11px; line-height: 1.4; }
.quality-list li .icon { width: 16px; height: 16px; color: var(--success); }
.quality-list li.pending { color: var(--muted); }
.quality-list li.pending .icon { color: var(--warning); }
.revision-list { display: grid; gap: 8px; }
.revision-list article { min-height: 60px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.revision-list article > div { display: grid; gap: 3px; }
.revision-list strong { font-size: 12px; }
.revision-list small { color: var(--muted); font-size: 9px; }

/* Dispositivo único y aprobación administrativa */
.device-security-hero { min-height: 190px; padding: 28px; border-radius: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff; background: linear-gradient(125deg,#0d2b60,#1c5792); box-shadow: var(--shadow); }
.device-security-hero h2 { margin: 7px 0 8px; font-size: clamp(25px,4vw,36px); letter-spacing: -.04em; }
.device-security-hero p { max-width: 720px; margin: 0; color: rgba(255,255,255,.75); line-height: 1.55; }
.device-security-hero .eyebrow { color: #bcdcff; }
.device-policy-badge { width: 132px; height: 132px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.25); border-radius: 38px; background: rgba(255,255,255,.11); display: grid; place-content: center; text-align: center; backdrop-filter: blur(8px); }
.device-policy-badge strong { font-size: 44px; line-height: 1; }
.device-policy-badge span { max-width: 90px; margin-top: 5px; font-size: 10px; line-height: 1.3; }
.device-stat-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.device-stat-grid article { min-height: 82px; padding: 15px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); display: grid; gap: 5px; }
.device-stat-grid small { color: var(--muted); font-size: 10px; }
.device-stat-grid strong { font-size: 20px; color: var(--navy); }
[data-theme="dark"] .device-stat-grid strong { color: #eaf3ff; }
.device-request-list, .trusted-device-list, .device-history-list { display: grid; gap: 10px; }
.device-request-card { padding: 16px; border: 1px solid #b9d3eb; border-radius: 17px; background: color-mix(in srgb,var(--surface) 94%,#dceefe); display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 14px; align-items: start; }
.device-request-icon, .trusted-device-icon { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 13px; display: grid; place-items: center; background: var(--navy-soft); color: var(--navy); }
[data-theme="dark"] .device-request-icon, [data-theme="dark"] .trusted-device-icon { color: #dcecff; }
.device-request-copy { min-width: 0; display: grid; gap: 4px; }
.device-request-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.device-request-copy > small, .trusted-device-row small { color: var(--muted); font-size: 10px; }
.device-request-copy dl { margin: 9px 0 4px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.device-request-copy dl div { padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.device-request-copy dt { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.device-request-copy dd { overflow: hidden; margin: 3px 0 0; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.device-warning { margin-top: 4px; display: flex; align-items: center; gap: 6px; color: var(--warning); font-size: 9px; font-weight: 700; }
.device-warning .icon { width: 14px; height: 14px; }
.device-request-actions { display: grid; gap: 8px; }
.request-status { width: max-content; padding: 5px 8px; border-radius: 999px; font-size: 8px; font-weight: 900; letter-spacing: .07em; }
.request-status.pending { background: #fff0c9; color: #76520c; }
.request-status.active, .request-status.approved { background: #e1f5e9; color: #176047; }
.request-status.denied, .request-status.revoked { background: #fde8e5; color: #9a332a; }
.trusted-device-row { min-height: 78px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 12px; }
.trusted-device-row.revoked { opacity: .68; background: var(--surface-2); }
.trusted-device-row > div { min-width: 0; display: grid; gap: 2px; }
.trusted-device-row .danger-button:disabled { opacity: .4; cursor: not-allowed; }
.device-history-list article { min-height: 58px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.device-history-list article > div { display: grid; gap: 3px; }
.device-history-list small { color: var(--muted); font-size: 9px; }
.profile-device-card { margin-top: 16px; padding: 12px; border: 1px solid #a9c9e5; border-radius: 14px; background: var(--surface-2); display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; text-align: left; }
.profile-device-card > div { min-width: 0; display: grid; gap: 2px; }
.profile-device-card small { color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .07em; }
.profile-device-card strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.profile-device-card span:not(.trusted-device-icon):not(.request-status) { color: var(--muted); font-size: 9px; }
.profile-device-note { margin: 8px 4px 0; color: var(--muted); font-size: 9px; line-height: 1.45; text-align: left; }

[data-density="compact"] .panel-body { padding: 14px; }
[data-density="compact"] .module-card { min-height: 150px; padding: 18px; }
[data-density="compact"] .contact-row { min-height: 68px; padding-block: 8px; }
[data-contrast="more"] { --border: #8290a3; --muted: #45536a; }
[data-theme="dark"][data-contrast="more"] { --border: #7691b4; --muted: #d1d9e6; }
[data-motion="reduced"] *, [data-motion="reduced"] *::before, [data-motion="reduced"] *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }

@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]) *, :root:not([data-motion="full"]) *::before, :root:not([data-motion="full"]) *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.rest-mode-switch { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:18px; padding:6px; border:1px solid var(--border); border-radius:18px; background:var(--surface-2); }
.rest-mode-switch button { display:grid; gap:3px; min-height:64px; padding:11px 15px; border:0; border-radius:13px; background:transparent; color:var(--muted); text-align:left; cursor:pointer; }
.rest-mode-switch button strong { color:var(--text); font-size:.9rem; }
.rest-mode-switch button span { font-size:.72rem; }
.rest-mode-switch button.active { background:var(--navy); color:#dcecff; box-shadow:0 9px 22px #0d2b6030; }
.rest-mode-switch button.active strong { color:#fff; }
.rest-duration-inputs { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.rest-duration-inputs label { display:grid; gap:4px; }
.rest-duration-inputs small { color:var(--muted); font-size:.7rem; }
.rest-countdown-field,.rest-landing-buffer { padding:13px; border:1px solid var(--border); border-radius:16px; background:var(--surface-2); }
.rest-countdown-field > label,.rest-landing-buffer > label { display:block; margin-bottom:9px; font-weight:800; }
.rest-flight-countdown-summary { display:grid; grid-template-columns:auto repeat(3,minmax(0,1fr)); align-items:center; gap:13px; margin:16px 0; padding:15px; border:1px solid color-mix(in srgb,var(--primary) 30%,var(--border)); border-radius:18px; background:color-mix(in srgb,var(--surface-2) 86%,var(--primary) 14%); }
.rest-flight-countdown-summary > span { display:grid; place-items:center; width:44px; height:44px; border-radius:14px; background:var(--primary); color:#fff; }
.rest-flight-countdown-summary small,.rest-flight-countdown-summary strong { display:block; }
.rest-flight-countdown-summary small { margin-bottom:3px; color:var(--muted); font-size:.68rem; }
.rest-flight-countdown-summary strong { font-size:.82rem; }
@media(max-width:650px){.rest-mode-switch{grid-template-columns:1fr 1fr;gap:5px;padding:4px}.rest-mode-switch button{min-width:0;padding:9px 8px;text-align:center}.rest-mode-switch button strong{font-size:.76rem}.rest-mode-switch button span{font-size:.62rem;line-height:1.25}.rest-flight-countdown-summary{grid-template-columns:auto 1fr}.rest-flight-countdown-summary>div{grid-column:2}.rest-flight-countdown-summary>span{grid-row:1/4}.rest-duration-inputs{grid-template-columns:1fr 1fr}}

.boarding-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 18px;padding:6px;border:1px solid var(--border);border-radius:20px;background:var(--surface-2)}
.boarding-mode-switch button{display:grid;gap:4px;min-height:68px;padding:12px 16px;border:0;border-radius:14px;background:transparent;color:var(--muted);text-align:left;cursor:pointer}
.boarding-mode-switch button strong{color:var(--text);font-size:.94rem}.boarding-mode-switch button span{font-size:.74rem;line-height:1.35}
.boarding-mode-switch button.active{background:linear-gradient(135deg,var(--navy),#235b93);color:#dcecff;box-shadow:0 10px 24px #0d2b6030}.boarding-mode-switch button.active strong{color:#fff}
.boarding-times-layout{display:grid;gap:18px}.boarding-milestones{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.boarding-time-control,.boarding-date-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.boarding-now-button{white-space:nowrap}
.boarding-submit-bar{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:16px;border:1px solid var(--border);border-radius:20px;background:var(--surface)}
.boarding-privacy-note{margin-top:16px}.boarding-stamped{animation:boardingStamp .55s ease}@keyframes boardingStamp{0%{box-shadow:0 0 0 0 #22a06b88}100%{box-shadow:0 0 0 12px transparent}}
.rest-help-summary{margin-top:18px}.rest-help-summary>div{display:grid;gap:3px}.rest-help-summary span{font-size:.82rem;line-height:1.45}
@media(max-width:760px){.boarding-milestones{grid-template-columns:1fr}.boarding-submit-bar>*{width:100%;justify-content:center}.boarding-mode-switch button{padding:10px 8px;text-align:center}.boarding-mode-switch button strong{font-size:.78rem}.boarding-mode-switch button span{font-size:.64rem}.boarding-time-control,.boarding-date-control{grid-template-columns:minmax(0,1fr) 92px}}
@media (prefers-contrast: more) {
  :root:not([data-contrast="system"]), :root[data-contrast="more"] { --border: #7e8da1; }
  :where(button, a, input, select, textarea, [tabindex]):focus-visible { outline-width: 4px; }
}
@media (pointer: coarse) {
  .round-button, .action-button, .reorder-button, .close-button { min-width: 44px; min-height: 44px; }
}
@media (max-width: 1120px) {
  .cms-workspace { grid-template-columns: 1fr; }
  .cms-preview-column { position: static; }
  .cms-device.desktop { width: min(720px,100%); }
}
@media (max-width: 720px) {
  .site-announcement { grid-template-columns: auto 1fr; }
  .site-announcement .secondary-button { grid-column: 1 / -1; width: 100%; }
  .site-publish-bar { position: static; align-items: stretch; flex-direction: column; }
  .site-publish-actions { display: grid; grid-template-columns: 1fr; }
  .site-module-row { grid-template-columns: auto minmax(0,1fr); }
  .site-module-actions { grid-column: 1 / -1; justify-content: flex-end; border-top: 1px solid var(--border); padding-top: 8px; }
  .cms-preview-stage { min-height: 500px; padding-inline: 4px; }
  .cms-device.mobile, .cms-device.tablet, .cms-device.desktop { width: min(300px,100%); }
  .maintenance-state { min-height: 480px; padding: 38px 22px; }
  .revision-list article { align-items: stretch; flex-direction: column; }
  .device-security-hero { padding: 22px; align-items: flex-start; }
  .device-policy-badge { width: 90px; height: 90px; border-radius: 27px; }
  .device-policy-badge strong { font-size: 32px; }
  .device-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .device-request-card { grid-template-columns: auto minmax(0,1fr); }
  .device-request-actions { grid-column: 1 / -1; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .trusted-device-row { grid-template-columns: auto minmax(0,1fr) auto; }
  .trusted-device-row .danger-button { grid-column: 1 / -1; width: 100%; }
}

.app-footer { margin-top: 30px; padding: 19px 0 5px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 10px; border-top: 1px solid var(--border); }
.app-footer a { color: var(--navy); font-weight: 750; text-decoration: none; }
[data-theme="dark"] .app-footer a { color: #cfe0ff; }
.mobile-nav { display: none; }

.admin-catalog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; align-items: start; }
.catalog-manager { display: grid; gap: 9px; max-height: 520px; overflow-y: auto; padding-right: 3px; }
.catalog-managed-item { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); transition: opacity .2s ease, border-color .2s ease; }
.catalog-managed-item.inactive { opacity: .55; }
.catalog-managed-item strong, .catalog-managed-item small { display: block; }
.catalog-managed-item strong { font-size: 12px; }
.catalog-managed-item small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.catalog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex: 0 0 auto; flex-wrap: wrap; }

@media (pointer: coarse) {
  .drag-handle { display: none; }
  [data-sort-item] { cursor: default; }
}

.service-editor-list { display: grid; gap: 11px; }
.service-editor-card { border: 1px solid var(--border); border-radius: 16px; background: var(--surface-2); overflow: hidden; }
.service-editor-card[open] { border-color: color-mix(in srgb, var(--orange) 50%, var(--border)); box-shadow: 0 8px 20px rgba(13,43,96,.06); }
.service-editor-card summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.service-editor-card summary::-webkit-details-marker { display: none; }
.service-editor-card summary span:first-child { min-width: 0; }
.service-editor-card summary strong, .service-editor-card summary small { display: block; }
.service-editor-card summary strong { font-size: 13px; }
.service-editor-card summary small { margin-top: 3px; color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.service-state { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; background: var(--navy-soft); color: var(--navy); font-size: 9px; font-weight: 800; }
[data-theme="dark"] .service-state { color: white; }
.service-editor-body { padding: 15px; border-top: 1px solid var(--border); background: var(--surface); }
.service-qty-counter { min-height: 44px; justify-content: center; }
.drink-category { margin-top: 14px; }
.drink-category > strong { display: block; margin-bottom: 8px; color: var(--navy); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
[data-theme="dark"] .drink-category > strong { color: #cfe0ff; }

.check-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.check-card { min-height: 62px; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); cursor: pointer; }
.check-card.compact { min-height: 58px; }
.check-card input { width: 18px; height: 18px; accent-color: var(--orange); flex: 0 0 auto; }
.check-card span { min-width: 0; }
.check-card strong, .check-card small { display: block; }
.check-card strong { font-size: 11px; }
.check-card small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.check-card.span-2 { grid-column: span 2; }
.form-grid.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.panel-header-tools { display: flex; align-items: center; gap: 9px; }

.cabin-module-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 18px; }
.cabin-module-card { position: relative; min-height: 260px; display: grid; grid-template-columns: 62px minmax(0,1fr) 38px; align-items: start; gap: 18px; padding: 28px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); color: var(--text); text-align: left; box-shadow: var(--shadow-sm); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.cabin-module-card:hover { transform: translateY(-3px); border-color: #8fb3d7; box-shadow: var(--shadow); }
.cabin-module-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 20px; background: var(--navy-soft); color: var(--navy); }
.cabin-module-icon .icon { width: 29px; height: 29px; }
.cabin-module-card h2 { margin: 7px 0 8px; font-size: 25px; }
.cabin-module-card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 12px; }
.cabin-module-card .card-arrow { align-self: center; }
.cabin-module-stats { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.cabin-module-stats span { padding: 7px 9px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 9px; }
.cabin-module-stats b { color: var(--text); font-size: 12px; }

.flight-inventory-list { display: grid; gap: 8px; }
.flight-inventory-row { display: grid; grid-template-columns: minmax(0,1fr) 150px 38px; align-items: center; gap: 10px; min-height: 66px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.flight-inventory-row > span strong, .flight-inventory-row > span small { display: block; }
.flight-inventory-row > span strong { font-size: 12px; }
.flight-inventory-row > span small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.flight-inventory-row label { display: grid; grid-template-columns: auto 72px; align-items: center; justify-content: end; gap: 8px; color: var(--muted); font-size: 9px; font-weight: 700; }
.custom-meal-builder { margin-top: 14px; padding: 15px; border: 1px dashed #8fb3d7; border-radius: 16px; background: color-mix(in srgb,var(--navy-soft) 45%,var(--surface)); }
.inventory-total-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-bottom: 11px; }
.inventory-total-row > span { padding: 9px; border-radius: 10px; background: var(--surface-2); text-align: center; }
.inventory-total-row small, .inventory-total-row strong { display: block; }
.inventory-total-row small { color: var(--muted); font-size: 8px; }
.inventory-total-row strong { margin-top: 3px; font-size: 16px; }
.inventory-danger { color: var(--danger); }
.inventory-live-list { display: grid; gap: 6px; }
.inventory-live-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 9px; border: 1px solid var(--border); border-radius: 10px; }
.inventory-live-row span:last-child { text-align: right; }
.inventory-live-row strong, .inventory-live-row small, .inventory-live-row b { display: block; }
.inventory-live-row small { color: var(--muted); font-size: 8px; }
.inventory-live-row b { font-size: 14px; }
.inventory-live-row.low-stock { border-color: #b8cde3; background: color-mix(in srgb,var(--navy-soft) 35%,var(--surface)); }
.inventory-live-row.overbooked { border-color: #e2a09c; background: rgba(179,38,30,.07); }

.ssr-workspace { display: grid; grid-template-columns: minmax(540px,1.2fr) minmax(330px,.8fr); gap: 18px; align-items: start; margin-top: 18px; }
.ssr-source-banner { margin-bottom: 16px; }
.ssr-seat-entry { display: grid; grid-template-columns: minmax(120px,.35fr) minmax(0,1fr); gap: 14px; align-items: start; }
.ssr-seat-composer { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 0 16px 16px; border: 1px solid color-mix(in srgb,var(--brand) 28%,var(--border)); border-radius: 18px; background: linear-gradient(145deg,color-mix(in srgb,var(--navy-soft) 54%,var(--surface)),var(--surface)); }
.ssr-seat-composer > legend { padding: 0 8px; color: var(--text); font-size: 12px; font-weight: 850; }
.ssr-seat-composer-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 3px 0 14px; }
.ssr-seat-composer-heading strong, .ssr-seat-composer-heading span { display: block; }
.ssr-seat-composer-heading strong { font-size: 13px; }
.ssr-seat-composer-heading div > span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.ssr-seat-range { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; background: var(--surface); color: var(--brand); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.ssr-seat-composer-grid { display: grid; grid-template-columns: minmax(140px,.8fr) minmax(190px,1fr) 112px; gap: 12px; align-items: stretch; }
.ssr-row-control { min-width: 0; display: flex; flex-direction: column; }
.ssr-row-control > span { margin-bottom: 6px; color: var(--text); font-size: 12px; font-weight: 750; }
.ssr-row-input-shell { min-height: 52px; display: flex; align-items: center; gap: 7px; padding: 5px 6px 5px 13px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease; }
.ssr-row-input-shell:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb,var(--brand) 16%,transparent); }
.ssr-row-input-shell input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 23px; font-weight: 900; letter-spacing: .02em; }
.ssr-row-input-shell input::placeholder { color: color-mix(in srgb,var(--muted) 58%,transparent); font-size: 14px; font-weight: 700; }
.ssr-row-input-shell b { flex: 0 0 auto; padding: 6px 7px; border-radius: 9px; background: var(--navy-soft); color: var(--navy); font-size: 8px; }
[data-theme="dark"] .ssr-row-input-shell b { color: #e5efff; }
.ssr-row-control > small { margin-top: 6px; color: var(--muted); font-size: 8px; line-height: 1.35; }
.ssr-row-control:has(input[aria-invalid="true"]) .ssr-row-input-shell { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(179,38,30,.1); }
.ssr-row-control:has(input[aria-invalid="true"]) > small { color: var(--danger); }
.ssr-letter-select-control { min-width: 0; display: flex; flex-direction: column; }
.ssr-letter-select-control > span { margin-bottom: 6px; color: var(--text); font-size: 12px; font-weight: 750; }
.ssr-letter-select-control .select-control { min-height: 52px; width: 100%; background-color: var(--surface); color: var(--text); font-size: 14px; font-weight: 800; }
.ssr-letter-select-control > small { margin-top: 6px; color: var(--muted); font-size: 8px; line-height: 1.35; }
.ssr-seat-preview { min-width: 0; min-height: 78px; display: grid; place-content: center; justify-items: center; gap: 2px; padding: 9px; border: 1px dashed color-mix(in srgb,var(--brand) 34%,var(--border)); border-radius: 15px; background: var(--surface); color: var(--muted); text-align: center; transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease; }
.ssr-seat-preview > span { font-size: 7px; font-weight: 900; letter-spacing: .14em; }
.ssr-seat-preview > strong { color: var(--navy); font-size: 24px; line-height: 1; letter-spacing: -.02em; }
.ssr-seat-preview > small { margin-top: 3px; font-size: 7px; line-height: 1.25; }
.ssr-seat-preview.is-ready { border-style: solid; border-color: var(--success); background: color-mix(in srgb,#e9f8f1 72%,var(--surface)); color: #126341; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(18,99,65,.1); }
.ssr-seat-preview.is-ready > strong { color: #126341; }
.ssr-seat-preview.is-invalid { border-style: solid; border-color: var(--danger); background: color-mix(in srgb,#fee8e8 70%,var(--surface)); color: var(--danger); }
.ssr-seat-preview.is-invalid > strong { color: var(--danger); }
#ssr-register-button:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }
.ssr-summary-total { display: grid; justify-items: center; gap: 3px; padding: 22px 16px; margin-bottom: 12px; border-radius: 16px; background: linear-gradient(145deg,var(--navy),#255f99); color: white; text-align: center; }
.ssr-summary-total strong { font-size: 34px; line-height: 1; }
.ssr-summary-total span { font-size: 12px; font-weight: 750; }
.ssr-summary-total small { color: rgba(255,255,255,.7); font-size: 9px; }
.ssr-live-list { display: grid; gap: 8px; }
.ssr-live-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-2); }
.ssr-live-item strong, .ssr-live-item small { display: block; }
.ssr-live-item strong { font-size: 11px; }
.ssr-live-item small { margin-top: 3px; color: var(--muted); font-size: 8px; }

@media (max-width: 1350px) {
  .ssr-seat-composer-grid { grid-template-columns: minmax(125px,.75fr) minmax(175px,1fr) 112px; gap: 12px; }
}
.ssr-live-item > span { min-width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--navy); color: white; font-weight: 850; }

body.panel-focus-open { overflow: hidden; }
.panel-focus-backdrop { position: fixed; z-index: 80; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: rgba(1,10,28,.64); backdrop-filter: blur(6px); cursor: default; }
.page.has-expanded-panel { animation: none !important; transform: none !important; }
.panel.is-expanded { position: fixed !important; z-index: 85; inset: max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left)); width: auto !important; height: auto !important; min-width: 0 !important; min-height: 0 !important; max-width: none !important; max-height: none !important; margin: 0 !important; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid #7fa7cf; border-radius: 22px; box-shadow: 0 28px 90px rgba(0,0,0,.45); }
.panel.is-expanded > .panel-header { flex: 0 0 auto; }
.panel.is-expanded > .panel-body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.expandable-panel-header { cursor: pointer; }
.expandable-panel-header:focus-visible { outline: 3px solid rgba(77,143,196,.35); outline-offset: -3px; }
#cabin-summary-panel.is-expanded .cabin-live-summary { min-height: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: start; }
#cabin-summary-panel.is-expanded .cabin-summary-top, #cabin-summary-panel.is-expanded .summary-metrics { grid-column: 1 / -1; }
#cabin-summary-panel.is-expanded .summary-order-block { min-width: 0; }
#cabin-summary-panel.is-expanded .summary-seat-list { max-height: none; }
.cabin-map-panel.is-expanded { overflow: hidden; }
.cabin-map-panel.is-expanded .cabin-aircraft { width: min(100%,1000px); }

@media (max-width: 1180px) {
  .module-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .other-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-catalog-grid { grid-template-columns: 1fr; }
  .ssr-workspace { grid-template-columns: 1fr; }
  .personal-clock-grid { grid-template-columns: repeat(2,minmax(220px,1fr)); }
}

@media (max-width: 900px) {
  :root { --topbar: 66px; }
  html,body,.app-shell { max-width: 100%; overflow-x: clip; }
  .sidebar { display: none; }
  .sidebar-toggle { display: none; }
  .page-container { width:100%; min-width:0; padding: calc(var(--topbar) + 18px) 16px calc(118px + env(safe-area-inset-bottom)); overflow-x:clip; }
  .app-shell.sidebar-collapsed .page-container { padding: calc(var(--topbar) + 18px) 16px calc(118px + env(safe-area-inset-bottom)); }
  .page,.page > * { min-width:0; max-width:100%; }
  .topbar { gap:8px; padding: 0 10px; }
  .topbar-leading { gap:7px; }
  .brand-button { gap:6px; min-width:0; }
  .brand-button img { width:46px; height:38px; flex:0 0 auto; }
  .brand-button strong { font-size:15px; line-height:1.05; white-space:nowrap; }
  .brand-button small, .profile-copy, .profile-button > .icon { display: none; }
  .profile-button { border: 0; padding: 0; }
  .mobile-nav { display:block; position:fixed; isolation:isolate; z-index:50; left:12px; right:12px; bottom:max(8px,env(safe-area-inset-bottom)); min-height:64px; padding:6px; overflow:visible; border:1px solid rgba(127,147,171,.35); border-top:1px solid rgba(255,255,255,.55); border-radius:24px; background:rgba(248,251,255,.58); box-shadow:0 12px 36px rgba(3,20,49,.22),inset 0 1px 0 rgba(255,255,255,.8); backdrop-filter:blur(24px) saturate(190%); -webkit-backdrop-filter:blur(24px) saturate(190%); transition:min-height .22s ease,padding .22s ease,transform .22s cubic-bezier(0.16,1,0.3,1),background .22s ease; touch-action:none; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; -webkit-tap-highlight-color:transparent; }
  .mobile-nav::before { content:""; position:absolute; z-index:-1; inset:0; pointer-events:none; border-radius:inherit; background:linear-gradient(135deg,rgba(255,255,255,.22),rgba(255,255,255,.04) 48%,rgba(104,174,238,.1)); }
  [data-theme="dark"] .mobile-nav { background:rgba(7,17,38,.62); border-color:rgba(220,235,250,.2); border-top-color:rgba(255,255,255,.32); box-shadow:0 16px 40px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.24); }
  .mobile-nav-inner { display:flex; align-items:center; justify-content:space-around; gap:2px; width:100%; }
  .mobile-nav .nav-item { position:relative; z-index:1; flex:1 1 0; width:auto; min-width:0; min-height:49px; padding:5px 1px; display:grid; justify-items:center; gap:2px; font-size:7.5px; box-shadow:none; background:transparent; border:0; color:var(--muted); text-shadow:0 1px 2px rgba(255,255,255,.2); transition:transform .12s cubic-bezier(0.2,0.9,0.3,1.2),color .16s ease,background .16s ease; }
  .mobile-nav .nav-item:active { transform:scale(0.91); }
  .mobile-nav .nav-item.active { color:var(--navy); background:rgba(255,255,255,.55); border-radius:18px; box-shadow:inset 0 0 0 1px rgba(255,255,255,.35),0 2px 8px rgba(0,0,0,.08); }
  [data-theme="dark"] .mobile-nav .nav-item { color:rgba(255,255,255,.78); text-shadow:0 1px 3px rgba(0,0,0,.55); }
  [data-theme="dark"] .mobile-nav .nav-item.active { color:#fff; background:rgba(255,255,255,.22); box-shadow:inset 0 0 0 1px rgba(255,255,255,.25),0 2px 10px rgba(0,0,0,.3); }
  .mobile-nav .nav-item .icon { width: 20px; height: 20px; transition:transform .15s ease; }
  .mobile-nav .nav-item:active .icon { transform:scale(0.94); }
  .mobile-nav .nav-item.more-trigger { color: var(--brand); }
  .mobile-nav-lens { position:absolute; z-index:8; left:var(--lens-x,50%); top:50%; width:150px; height:56px; overflow:hidden; pointer-events:none; opacity:0; border-radius:999px; background:transparent; box-shadow:0 4px 12px rgba(4,19,45,.2); transform:translate(-50%,-50%) scale(.82); transition:opacity .14s ease,transform .2s cubic-bezier(.2,.85,.22,1.12); will-change:left,transform,opacity; }
  .mobile-nav-lens::before { content:""; position:absolute; z-index:0; inset:0; padding:3px; border-radius:inherit; background:conic-gradient(from 218deg,rgba(88,221,255,.88),rgba(236,253,255,.98) 14%,rgba(255,255,255,.64) 29%,rgba(255,231,154,.72) 43%,rgba(255,255,255,.98) 58%,rgba(204,181,255,.72) 73%,rgba(235,113,255,.8) 85%,rgba(88,218,255,.88)); -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); mask-composite:exclude; opacity:.93; }
  .mobile-nav-lens::after { content:""; position:absolute; z-index:4; inset:2px; border-radius:inherit; border:1px solid rgba(255,255,255,.8); box-shadow:inset 0 0 0 1px rgba(8,28,57,.28),inset 9px 0 10px -8px rgba(63,217,255,.65),inset -9px 0 10px -8px rgba(232,109,255,.55),inset 0 7px 9px -7px rgba(255,239,174,.52),inset 0 -7px 9px -7px rgba(119,104,255,.4); }
  .mobile-nav-lens-window { position:absolute; z-index:1; inset:3px; overflow:hidden; border-radius:inherit; background:rgba(236,247,255,.28); box-shadow:inset 0 0 13px rgba(255,255,255,.36); backdrop-filter:blur(7px) saturate(175%) contrast(108%); -webkit-backdrop-filter:blur(7px) saturate(175%) contrast(108%); }
  .mobile-nav-lens-track { position:absolute; z-index:2; left:var(--lens-track-left,0); top:50%; width:var(--lens-track-width,100%); display:flex; align-items:center; justify-content:space-around; gap:2px; transform:translateY(-50%) scale(var(--lens-scale,1.18)); transform-origin:left center; color:var(--navy); }
  .mobile-nav-lens-track .nav-item { flex:1 1 0; min-width:0; color:var(--navy); opacity:1!important; transform:none!important; text-shadow:0 1px 3px rgba(255,255,255,.85); }
  .mobile-nav-lens-track .nav-item .icon { width:22px; height:22px; }
  .mobile-nav-lens-refraction { position:absolute; z-index:3; inset:0; border-radius:inherit; background:radial-gradient(ellipse at 50% -7%,rgba(255,255,255,.62),transparent 35%),radial-gradient(ellipse at -7% 50%,rgba(72,218,255,.36),transparent 23%),radial-gradient(ellipse at 107% 50%,rgba(226,102,255,.3),transparent 23%),radial-gradient(ellipse at 50% 107%,rgba(109,98,255,.24),transparent 27%); box-shadow:inset 12px 0 13px -10px rgba(66,223,255,.72),inset -12px 0 13px -10px rgba(236,103,255,.62),inset 0 11px 13px -11px rgba(255,231,134,.62),inset 0 -12px 13px -11px rgba(116,94,255,.48); }
  .mobile-nav.lens-active .mobile-nav-lens { opacity:1; transform:translate(-50%,-50%) scale(1); }
  .mobile-nav .nav-item.lens-target { opacity:.28; transform:scale(.9); }
  [data-theme="dark"] .mobile-nav-lens-window { background:rgba(13,29,53,.42); box-shadow:inset 0 0 22px rgba(125,179,233,.14); }
  [data-theme="dark"] .mobile-nav-lens-track .nav-item { color:#fff; text-shadow:0 2px 4px rgba(0,0,0,.75); }
  .mobile-nav.is-compact { min-height:50px; padding-block:3px; transform:translateY(3px); background:rgba(248,251,255,.5); }
  [data-theme="dark"] .mobile-nav.is-compact { background:rgba(5,13,28,.5); }
  .mobile-nav.is-compact .nav-item { min-height:42px; padding-block:3px; }
  .mobile-nav.is-compact .nav-item span { display:none; }
  .mobile-nav.is-compact .nav-item .icon { width:21px; height:21px; }
  .mobile-nav.is-compact .mobile-nav-lens { width:132px; height:44px; }
  .toast-root { left:12px; right:12px; bottom:calc(80px + env(safe-area-inset-bottom)); }
  .toast { width:100%; min-width:0; max-width:none; }
  .two-column { grid-template-columns: 1fr; }
  .cabin-module-grid { grid-template-columns: 1fr; }
  .cabin-workspace { grid-template-columns: 1fr; }
  .cabin-summary-column { position: static; }
  .rest-workspace { grid-template-columns: 1fr; }
  .rest-sheet { width:100%; min-width:0; }
  .rest-workspace > *, .rest-workspace .panel, .rest-result-host { width:100%; min-width:0; }
  .invoice-workspace { grid-template-columns: 1fr; }
  .invoice-result-panel { position: static; }
  .tool-hub-grid { grid-template-columns: 1fr; }
  .rest-intro { display: block; }
  .rest-feature-pills { justify-content: flex-start; margin-top: 16px; }
  .hero { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .contact-row { grid-template-columns: 46px minmax(0,1fr) auto; }
  .contact-row > .contact-meta { display: none; }
  .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-command-bar{align-items:stretch;display:grid;grid-template-columns:1fr 1fr}.admin-command-bar>div{grid-column:1/-1}.admin-command-layout{grid-template-columns:1fr;gap:12px}.admin-command-nav{position:sticky;top:var(--topbar);z-index:18;display:flex;gap:6px;max-height:none;margin-inline:-4px;padding:7px;overflow-x:auto;border-radius:15px;backdrop-filter:blur(16px)}.admin-command-nav section{display:contents}.admin-command-nav h2{display:none}.admin-command-nav button{flex:0 0 auto;grid-template-columns:28px auto;min-height:42px;padding:5px 10px}.admin-command-nav button>span{width:28px;height:28px}.admin-command-nav button em{position:absolute;right:2px;top:1px}.admin-command-content{margin-top:0}

  /* Bottom Sheet */
  .bottom-sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(1,10,28,.55); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
  .bottom-sheet-backdrop.open { opacity: 1; visibility: visible; }
  .bottom-sheet { position: fixed; z-index: 85; left: 0; right: 0; bottom: 0; max-height: 85vh; background: var(--surface); border-radius: 24px 24px 0 0; box-shadow: 0 -24px 64px rgba(1,10,28,.22); display: flex; flex-direction: column; transform: translateY(100%); transition: transform .3s cubic-bezier(.25,.46,.45,.94); }
  .bottom-sheet.open { transform: translateY(0); }
  .bottom-sheet-handle { width: 100%; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .bottom-sheet-handle span { width: 40px; height: 5px; border-radius: 3px; background: var(--border); }
  .bottom-sheet-header { display: flex; align-items: center; justify-content: space-between; padding: 4px 20px 16px; border-bottom: 1px solid var(--border); }
  .bottom-sheet-header h2 { margin: 0; font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
  .bottom-sheet-body { padding: 16px 20px 24px; overflow-y: auto; }
  .more-sheet-section { margin-bottom: 20px; }
  .more-sheet-section:last-child { margin-bottom: 0; }
  .more-sheet-section h3 { margin: 0 0 12px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
  .more-sheet-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
  .more-sheet-item { display: grid; grid-template-rows: auto auto; align-items: center; justify-items: center; gap: 8px; padding: 16px 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); transition: .18s ease; }
  .more-sheet-item:hover { border-color: var(--brand); background: var(--navy-soft); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
  .more-sheet-item .icon { width: 28px; height: 28px; color: var(--navy); }
  .more-sheet-item span { font-size: 11px; font-weight: 600; text-align: center; line-height: 1.2; }
  .more-hub-sheet{height:min(88dvh,820px);max-height:calc(100dvh - env(safe-area-inset-top) - 12px)!important;display:grid;grid-template-rows:auto auto minmax(0,1fr);overflow:hidden}.more-hub-sheet .bottom-sheet-body{min-height:0;max-height:none!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:calc(92px + env(safe-area-inset-bottom))}.more-hub-sheet .bottom-sheet-header>div small{display:block;margin-top:3px;color:var(--muted);font-size:11px}.more-hub-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px;padding:10px 12px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2);color:var(--muted);font-size:11px}.more-hub-toolbar>span,.more-hub-toolbar>div{display:flex;align-items:center;gap:7px}.personal-access-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.more-access-card{position:relative;min-width:0;border:0;background:transparent;border-radius:18px;touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;transition:transform .18s ease,filter .18s ease}.more-access-card .more-sheet-item{width:100%;min-height:102px;display:grid;grid-template-rows:48px auto;align-content:center;justify-items:center;gap:7px;padding:9px 5px;border:1px solid var(--border);border-radius:18px;background:var(--surface);text-align:center;box-shadow:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.more-access-card .more-sheet-item>.icon{width:31px;height:31px;color:var(--brand)}.more-access-card .more-sheet-item span{text-align:center}.more-access-card .more-sheet-item strong{display:-webkit-box;overflow:hidden;color:var(--text);font-size:10px;line-height:1.15;-webkit-line-clamp:2;-webkit-box-orient:vertical}.access-edit-badge{position:absolute;left:-4px;top:-4px;width:19px;height:19px;display:none;place-items:center;border-radius:50%;background:#e8edf5;color:#21344e;font-size:16px;font-style:normal;line-height:1;box-shadow:0 2px 7px #0003}.personal-access-grid.is-editing .access-edit-badge{display:grid}.personal-access-grid.is-editing .more-access-card{animation:access-jiggle .18s ease-in-out infinite alternate}.more-access-card.is-dragging{z-index:4;transform:scale(1.08);filter:drop-shadow(0 12px 16px #00152f55);animation:none!important}.more-access-card.is-dragging .more-sheet-item{border-color:var(--brand);background:var(--navy-soft)}@keyframes access-jiggle{from{transform:rotate(-.45deg)}to{transform:rotate(.45deg)}}.more-account-section{margin-top:22px}.more-account-section h3{margin:0 0 9px;color:var(--muted);font-size:10px;letter-spacing:.1em}.more-account-action{width:100%;display:grid;grid-template-columns:40px minmax(0,1fr) 20px;align-items:center;gap:11px;margin-top:8px;padding:12px;border:1px solid var(--border);border-radius:15px;background:var(--surface);color:var(--text);text-align:left}.more-account-action>svg:first-child{width:22px;height:22px;color:var(--brand)}.more-account-action span strong,.more-account-action span small{display:block}.more-account-action span small{margin-top:3px;color:var(--muted);font-size:9px}
  /* Bottom Sheet Sizes */
  .bottom-sheet.peek { max-height: 180px; border-radius: 16px 16px 0 0; }
  .bottom-sheet.half { max-height: 50vh; }
  .bottom-sheet.full { max-height: 85vh; }
  .bottom-sheet-actions { display: flex; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }
  .bottom-sheet-actions > * { flex: 1 1 auto; min-width: 120px; }

  /* Dashboard Feed */
  .dashboard-feed { display: flex; flex-direction: column; gap: 12px; padding-bottom: 100px; }
  .feed-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); transition: .2s ease; }
  .feed-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
  .feed-card.warning { border-color: var(--warning); background: var(--warning-bg, #fff8ed); }
  .feed-card.accent-card { border-left: 4px solid var(--brand); }
  .feed-card-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
  .feed-card-header .eyebrow { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
  .feed-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--navy-soft); color: var(--navy); }
  .feed-card-body { padding: 16px; }
  .feed-card-body h2 { margin: 0 0 8px; font-size: 1.1rem; letter-spacing: -.02em; }
  .feed-meta { margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.5; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
  .feed-meta.warning { color: var(--warning); }
  .feed-meta.success { color: var(--success); }
  .feed-chip { font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--navy-soft); color: var(--navy); }
  .feed-chip.rest { background: var(--brand); color: #fff; }
  .feed-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
  .feed-card-footer { display: flex; gap: 10px; padding: 12px 16px; background: var(--surface-2); border-top: 1px solid var(--border); flex-wrap: wrap; }
  .feed-card.hero-card { border-radius: 20px; }
  .feed-card.hero-card.welcome { text-align: center; }
  .feed-card.hero-card.welcome .feed-card-body h2 { font-size: 1.4rem; }
  .dashboard-launcher .feed-card-header .text-button { min-height:36px; padding:6px 9px; }
  .dashboard-quick-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:12px; }
  .dashboard-quick-action { min-width:0; min-height:112px; padding:14px; border:1px solid var(--border); border-radius:16px; background:var(--surface-2); color:var(--text); text-align:left; display:grid; grid-template-columns:38px 1fr; grid-template-rows:auto 1fr; gap:4px 10px; align-items:center; cursor:pointer; box-shadow:inset 3px 0 0 var(--accent,var(--brand)); }
  .dashboard-quick-action > span { width:38px; height:38px; border-radius:12px; display:grid; place-items:center; color:var(--accent,var(--brand)); background:color-mix(in srgb,var(--accent,var(--brand)) 12%,transparent); grid-row:1 / 3; }
  .dashboard-quick-action > span .icon { width:21px; height:21px; }
  .dashboard-quick-action strong { font-size:.92rem; line-height:1.2; overflow-wrap:normal; word-break:normal; hyphens:none; }
  .dashboard-quick-action small { color:var(--muted); font-size:.72rem; line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .dashboard-quick-action:active { transform:scale(.98); }
  .dashboard-more-action, .dashboard-links-action { --accent:var(--brand); min-height:78px; }
  .dashboard-admin-action { --accent:var(--warning); grid-column:1 / -1; min-height:78px; }
  .weather-chips-feed { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .weather-chip-feed { flex: 0 0 min(140px, 45vw); display: grid; grid-template-rows: auto auto auto; align-items: center; justify-items: center; gap: 4px; padding: 12px 8px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); scroll-snap-align: start; transition: .18s; }
  .weather-chip-feed.active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(29,95,167,.15); }
  .weather-chip-feed span { font-size: 1.5rem; }
  .weather-chip-feed strong { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .weather-chip-feed small { font-size: .7rem; color: var(--muted); }
  .weather-empty-dashboard { min-height:0; display:flex; align-items:center; gap:12px; }
  .weather-empty-dashboard > span { width:42px; height:42px; display:grid; place-items:center; flex:none; border-radius:13px; color:var(--brand); background:var(--navy-soft); }
  .weather-empty-dashboard strong,.weather-empty-dashboard small { display:block; }
  .weather-empty-dashboard small { margin-top:3px; color:var(--muted); font-size:.76rem; line-height:1.35; }
  .alarm-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .85rem; }
  .alarm-row:last-child { border-bottom: 0; }
  .alarm-row small { color: var(--muted); }
  .status-card { background: transparent; border: 0; box-shadow: none; padding: 0; }
  .status-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .status-grid > div { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; text-align: center; }
  .status-grid .eyebrow { display: block; margin-bottom: 6px; font-size: 9px; }
  .status-grid strong { font-size: 1rem; color: var(--navy); }
  .sheet-placeholder { min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); }
  .sheet-placeholder .empty-icon { width: 64px; height: 64px; margin-bottom: 16px; opacity: .5; }
  .sheet-placeholder h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--text); }
  .sheet-placeholder p { margin: 0; font-size: .9rem; }

  /* Pull to Refresh */
  .pull-to-refresh { position: fixed; top: calc(var(--topbar) + -60px); left: 0; right: 0; height: 60px; display: flex; align-items: center; justify-content: center; z-index: 60; transform: translateY(-100%); transition: transform .3s ease; pointer-events: none; }
  .pull-to-refresh.visible { transform: translateY(0); }
  .pull-to-refresh.pointer { transform: translateY(0); pointer-events: auto; }
  .pull-to-refresh-indicator { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; background: var(--surface); box-shadow: var(--shadow-sm); }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* Skeleton Loading */
  .skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
  @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
  .skeleton-text { height: 1rem; margin-bottom: .5rem; }
  .skeleton-text:last-child { width: 60%; }
  .skeleton-card { height: 120px; border-radius: 16px; }
  .skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; }
  .skeleton-button { height: 44px; width: 100%; border-radius: 12px; }

  /* Swipe hints */
  .swipe-hint { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 8px 16px; border-radius: 999px; font-size: .75rem; font-weight: 600; z-index: 70; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .swipe-hint.show { opacity: 1; }
  [data-theme="dark"] .swipe-hint { background: var(--brand); color: var(--navy); }

  /* Dark Mode Sheet Refinements (WCAG AAA) */
  [data-theme="dark"] .bottom-sheet { background: var(--surface-elevated); border: 1px solid var(--border); }
  [data-theme="dark"] .bottom-sheet-header { border-bottom-color: var(--border); }
  [data-theme="dark"] .bottom-sheet-handle span { background: var(--text-tertiary); }
  [data-theme="dark"] .bottom-sheet-body { scrollbar-color: var(--border) transparent; }
  [data-theme="dark"] .more-sheet-item { background: var(--surface-elevated); border-color: var(--border); }
  [data-theme="dark"] .more-sheet-item:hover { background: var(--surface-hover); border-color: var(--brand); }
  [data-theme="dark"] .more-sheet-item .icon { color: var(--brand); }
  [data-theme="dark"] .feed-card { background: var(--surface-elevated); border-color: var(--border); }
  [data-theme="dark"] .feed-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.3); }
  [data-theme="dark"] .feed-card-header { background: var(--surface-2); border-bottom-color: var(--border); }
  [data-theme="dark"] .feed-card-footer { background: var(--surface-2); border-top-color: var(--border); }
  [data-theme="dark"] .dashboard-quick-action { background:var(--surface-elevated); border-color:var(--border); }
  [data-theme="dark"] .feed-badge { background: var(--navy-soft); color: var(--brand); }
  [data-theme="dark"] .feed-chip { background: var(--navy-soft); color: var(--brand); }
  [data-theme="dark"] .status-grid > div { background: var(--surface-elevated); border-color: var(--border); }
  [data-theme="dark"] .status-grid strong { color: var(--text-primary); }
  [data-theme="dark"] .skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%); background-size: 200% 100%; }
  [data-theme="dark"] .sheet-placeholder { color: var(--text-tertiary); }
  [data-theme="dark"] .sheet-placeholder h3 { color: var(--text-primary); }
  [data-theme="dark"] .sheet-placeholder .empty-icon { opacity: .4; }

  /* Admin Layout Controls Mobile */
  .layout-admin-summary { grid-template-columns: 1fr; }
  .layout-page-grid article { grid-template-columns: auto 1fr; gap: 12px; padding: 12px; }
  .layout-page-grid article > div { grid-column: 1 / -1; justify-content: flex-end; }
  .layout-page-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; flex-shrink: 0; }
  .admin-control-map article { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 12px; }
  .admin-control-map .icon { width: 24px; height: 24px; color: var(--brand); }

  /* FIX 4: Bottom Sheet Mobile Fixes */
  .bottom-sheet-handle { touch-action: none; }
  .bottom-sheet-body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; max-height: calc(85vh - 120px); overflow-y: auto; }
  .bottom-sheet.full { max-height: calc(100dvh - var(--topbar, 76px) - env(safe-area-inset-bottom)); }
  .bottom-sheet-body { max-height: calc(85vh - 60px); overflow-y: auto; }
}

@media (max-width: 620px) {
  .login-view { padding: 14px; }
  .mobile-nav .nav-item { min-width: 0; padding-inline: 2px; }
  .login-card { padding: 25px 21px; border-radius: 24px; }
  .status-pill { width: 35px; padding: 0; justify-content: center; }
  .status-pill b { display: none; }
  .round-button { width: 36px; height: 36px; }
  .page-header { display: block; }
  .page-actions { margin-top: 14px; justify-content: stretch; }
  .page-actions > * { flex: 1; }
  .rest-intro { padding:18px 16px; border-radius:18px; }
  .rest-intro h2 { font-size:1.35rem; }
  .rest-feature-pills { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
  .rest-feature-pills span { justify-content:center; min-width:0; padding:0 6px; font-size:8px; }
  .rest-workspace .panel-header { align-items:flex-start; gap:10px; }
  .rest-workspace .panel-header .role-badge { white-space:normal; text-align:center; }
  .rest-mode-switch button { min-height:58px; padding:10px 12px; }
  .rest-timezone-picker { padding:11px; }
  .rest-summary-grid { grid-template-columns:1fr 1fr; padding-inline:12px; }
  .rest-mode-switch button { min-height:72px; padding:12px; }
  .rest-mode-switch button strong { font-size:.88rem; line-height:1.25; }
  .rest-mode-switch button span { font-size:.75rem; line-height:1.35; }
  .rest-plan-hero { padding:18px 15px 14px; }
  .rest-plan-hero small { font-size:.84rem; }
  .rest-plan-hero p { font-size:.82rem; line-height:1.45; }
  .rest-plan-hero .rest-total { font-size:2.2rem; line-height:1.05; }
  .rest-summary-grid small { font-size:.78rem; line-height:1.3; }
  .rest-summary-grid strong { font-size:1rem; line-height:1.3; }
  .rest-turn-card { grid-template-columns:42px minmax(0,1fr); padding:15px 13px; gap:11px; }
  .rest-turn-number { width:38px; height:38px; font-size:1rem; }
  .rest-turn-card small { font-size:.82rem; line-height:1.35; }
  .rest-turn-card strong { font-size:1.04rem; line-height:1.42; }
  .rest-turn-zone, .rest-turn-card em { font-size:.76rem; line-height:1.4; }
  .rest-members-heading b { font-size:.82rem; }
  .rest-members-heading span { font-size:.7rem; }
  .rest-member-tags > span { font-size:.78rem; }
  .rest-timeline-labels { font-size:.75rem; }
  .rest-plan-actions button { min-height:50px; font-size:.92rem; }
  .rest-turn-list { padding-inline:12px; }
  .rest-plan-hero { padding:18px 15px; }
  .rest-advanced-timeline { margin-inline:12px; }
  .rest-timeline-labels { margin-inline:12px; font-size:8px; }
  .hero { min-height: 210px; padding: 25px 22px; border-radius: 23px; }
  .hero-meta { gap: 6px; }
  .module-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .direct-sort-guide { align-items: flex-start; }
  .direct-sort-guide .direct-sort-role { display: none; }
  .utility-sort-shell { min-height: 82px; }
  .utility-sort-shell .utility-card { min-height: 82px; padding-right: 58px; padding-bottom: 38px; }
  .utility-drag-handle { width: 40px; height: 40px; top: 9px; right: 9px; }
  .utility-step-controls { opacity: 1; right: 9px; bottom: 8px; }
  .sort-live-status { top: calc(var(--topbar) + 8px); }
  .module-card { min-height: 174px; padding: 16px; border-radius: 18px; }
  .module-grid .module-card:last-child { grid-column: 1 / -1; min-height: 135px; }
  .other-grid { grid-template-columns: 1fr; gap: 9px; }
  .utility-card { min-height: 78px; }
  .panel-body { padding: 15px; }
  .panel-header { padding: 13px 15px; }
  .three-column, .form-grid, .form-grid.two { grid-template-columns: 1fr; }
  .world-clock-add-form,.personal-clock-grid { grid-template-columns: 1fr; }
  .tool-hub-card { min-height: 180px; grid-template-columns: 58px minmax(0,1fr) 26px; padding: 20px; }
  .tool-hub-icon { width: 56px; height: 56px; border-radius: 17px; }
  .ssr-seat-entry { grid-template-columns: 1fr; }
  .ssr-seat-composer { padding: 0 12px 13px; }
  .ssr-seat-composer-heading { align-items: flex-start; }
  .ssr-seat-composer-grid { grid-template-columns: minmax(96px,.75fr) minmax(0,1.25fr); gap: 10px; }
  .ssr-seat-preview { grid-column: 1 / -1; grid-row: 2; min-height: 64px; }
  .toolbar > .select-control { width: 100% !important; }
  .form-grid.four { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .field.span-2 { grid-column: auto; }
  .form-grid > .span-2 { grid-column: auto; }
  .demo-credentials-grid { grid-template-columns: 1fr; }
  .submodal-backdrop { padding: 10px; align-items: end; }
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-row { grid-template-columns: 42px minmax(0,1fr); gap: 10px; }
  .support-contact-card { grid-template-columns: auto minmax(0,1fr); padding: 16px; }
  .support-contact-avatar { width: 50px; height: 50px; border-radius: 16px; font-size: 15px; }
  .support-contact-actions { grid-column: 1 / -1; justify-content: stretch; }
  .support-contact-actions > * { flex: 1; }
  .contact-actions { grid-column: 1 / -1; }
  .contact-actions .action-button { flex: 1; width: auto; }
  .seat-layout { gap: 7px; }
  .seat-button { min-height: 76px; padding: 8px; }
  .cabin-aircraft { padding: 0 10px 22px; border-radius: 42% 42% 25px 25px / 55px 55px 25px 25px; }
  .cabin-nose { min-height: 70px; margin: 0 -12px 10px; }
  .cabin-column-labels, .cabin-row { grid-template-columns: minmax(48px,1fr) 10px minmax(48px,1fr) 19px minmax(48px,1fr) 10px minmax(48px,1fr); gap: 4px; }
  .cabin-row { min-height: 94px; }
  .business-seat.seat-button { min-height: 94px; padding: 6px 4px; border-radius: 18px 6px 18px 6px; }
  .business-seat.seat-button:nth-of-type(2), .business-seat.seat-button:nth-of-type(4) { border-radius: 6px 18px 6px 18px; }
  .business-seat-number { font-size: 11px !important; }
  .business-seat-passenger { font-size:8px; }
  .business-seat-status { font-size:6px; }
  .seat-service-chip { min-width:18px; height:17px; padding:0 2px; font-size:6px; }
  .cabin-center-divider b { width: 17px; height: 17px; font-size: 7px; }
  .cabin-center-divider::before { left: 1px; }
  .cabin-center-divider::after { right: 1px; }
  .calendar-toolbar { align-items: stretch; flex-direction: column; }
  .month-nav { justify-content: space-between; }
  .shift-palette { flex-wrap:nowrap; overflow-x:auto; padding-bottom:4px; scrollbar-width:none; }
  .shift-palette::-webkit-scrollbar { display:none; }
  .shift-chip { flex:0 0 auto; min-height:38px; padding-inline:9px; }
  .calendar-grid { gap: 2px; }
  .calendar-day { min-height: 80px; padding: 5px 3px; gap:3px; border-radius: 7px; }
  .calendar-day .day-number { padding-right:2px; font-size:10px; }
  .calendar-events { gap:2px; }
  .calendar-event { min-height:18px; padding:2px 3px; gap:2px; border-left-width:2px; border-radius:4px; font-size:.55rem; }
  .calendar-event b { display:none; }
  .calendar-more { font-size:.52rem; }
  .calendar-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .calendar-range-hint { align-items: flex-start; line-height: 1.45; }
  .flight-plan-card { align-items: flex-start; padding: 11px; }
  .flight-plan-card-side { max-width: 105px; }
  .world-clock-grid,.plan-time-grid { grid-template-columns: 1fr; }
  .per-diem-destination { grid-template-columns: 42px minmax(0,1fr) auto; }
  .destination-code { width: 39px; height: 39px; }
  .destination-rate { grid-column: 2; text-align: left; }
  .per-diem-destination .catalog-actions { grid-column: 3; grid-row: 1 / span 2; flex-direction: column; }
  .internal-tool-feature { grid-template-columns: 47px minmax(0,1fr) 25px; padding: 13px; gap: 10px; }
  .invoice-kpis { grid-template-columns: 1fr; }
  .invoice-kpis small { min-height: 0; }
  .invoice-actions { display: grid; grid-template-columns: 1fr; }
  .invoice-history-card > button:first-child { align-items: flex-start; }
  .rest-shifts { grid-template-columns: 1fr; }
  .rest-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rest-plan-actions { grid-template-columns: 1fr; }
  .rest-turn-time { gap:7px; }
  .rest-turn-time strong { font-size:1.7rem !important; }
  .rest-turn-time small { font-size:.65rem !important; }
  .rest-member-add { grid-template-columns: 1fr; }
  .rest-local-note { margin-inline: 12px; }
  .rest-timezone-control { grid-template-columns: 38px minmax(0,1fr); }
  .rest-timezone-icon { width: 38px; height: 38px; }
  .rest-zone-offset { grid-column: 1 / -1; width: fit-content; min-height: 30px; }
  .rest-timezone-context { display: grid; }
  .rest-timezone-context strong { white-space: normal; }
  .rest-plan-hero { display: grid; }
  .rest-hero-badges { align-items: flex-start; }
  .app-footer { display: block; text-align: center; line-height: 1.7; }
  .app-footer span { display: block; }
  .modal-backdrop { padding: 10px; align-items: end; }
  .modal { max-height: 92dvh; border-radius: 24px 24px 8px 8px; }
  .check-grid { grid-template-columns: 1fr; }
  .check-card.span-2 { grid-column: auto; }
  .service-editor-card summary { padding: 11px; }
  .cabin-module-card { min-height: 220px; grid-template-columns: 52px minmax(0,1fr) 30px; padding: 20px; gap: 13px; }
  .cabin-module-icon { width: 52px; height: 52px; border-radius: 17px; }
  .cabin-module-card h2 { font-size: 21px; }
  .flight-inventory-row { grid-template-columns: minmax(0,1fr) 118px 34px; }
  .flight-inventory-row label { grid-template-columns: 1fr; gap: 4px; }
  .form-grid.four { grid-template-columns: 1fr; }
  .panel.is-expanded { inset: max(4px,env(safe-area-inset-top)) max(4px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left)); border-radius: 16px; }
  #cabin-summary-panel.is-expanded .cabin-live-summary { display: block; min-height: 0; }
}

@media (orientation: landscape) and (max-height: 760px) {
  .panel.is-expanded { inset: max(4px,env(safe-area-inset-top)) max(4px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left)); }
  .cabin-map-panel.is-expanded .panel-header { padding-block: 9px; }
  .cabin-map-panel.is-expanded .panel-body { padding: 10px 18px; }
  .cabin-map-panel.is-expanded .cabin-aircraft { width: min(100%,940px); }
  .modal { max-height: 96dvh; }
}

/* Búsqueda transversal, viáticos Tabla 6 y centro cambiario */
.global-search-trigger { flex: 1; max-width: 520px; min-width: 220px; min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-2); color: var(--muted); text-align: left; }
.global-search-trigger:hover { border-color: color-mix(in srgb,var(--blue) 58%,var(--border)); background: var(--surface); color: var(--text); }
.global-search-trigger .icon { width: 18px; }
.global-search-trigger span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.global-search-trigger kbd,.global-search-dialog kbd { padding: 3px 7px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); color: var(--muted); font: 700 9px/1.2 inherit; }
.global-search-dialog { display: grid; gap: 12px; }
.global-search-input { min-height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 2px solid color-mix(in srgb,var(--blue) 64%,var(--border)); border-radius: 15px; background: var(--surface-2); }
.global-search-input .icon { color: var(--blue); }
.global-search-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; }
.global-search-results { max-height: min(58vh,520px); display: grid; gap: 6px; overflow: auto; padding-right: 4px; }
.global-search-result { width: 100%; min-height: 66px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto 18px; align-items: center; gap: 11px; padding: 10px; border: 1px solid transparent; border-radius: 13px; background: transparent; color: var(--text); text-align: left; }
.global-search-result:hover,.global-search-result:focus-visible { border-color: var(--border); background: var(--navy-soft); }
.global-search-result-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb,var(--blue) 12%,var(--surface-2)); color: var(--navy); }
[data-theme="dark"] .global-search-result-icon { color: #b9d9ff; }
.global-search-result > span:nth-child(2) { display: grid; gap: 3px; }
.global-search-result strong { font-size: 12px; }
.global-search-result small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.global-search-result em { padding: 4px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 8px; font-style: normal; font-weight: 750; }
.global-search-result > .icon { width: 15px; color: var(--muted); }
.global-search-empty { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); text-align: center; }
.global-search-empty .icon { width: 34px; height: 34px; }
.global-search-empty strong { color: var(--text); }
.global-search-empty small { max-width: 340px; }
.global-search-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 9px; }
.global-search-dialog footer span { display: flex; align-items: center; gap: 6px; }
.global-search-dialog footer .icon { width: 14px; }

.tool-hub-card.perdiem-tool { --tool-accent: #df4a0a; }
.tool-hub-card.currency-tool { --tool-accent: #16845b; }
.regulation-status,.currency-source-strip { min-height: 64px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px; margin-bottom: 16px; padding: 11px 15px; border: 1px solid color-mix(in srgb,var(--blue) 28%,var(--border)); border-radius: 16px; background: color-mix(in srgb,var(--navy-soft) 58%,var(--surface)); }
.regulation-status > span,.currency-source-strip > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: color-mix(in srgb,var(--blue) 15%,var(--surface)); color: var(--navy); }
[data-theme="dark"] .regulation-status > span,[data-theme="dark"] .currency-source-strip > span { color: #cbe2ff; }
.regulation-status div,.currency-source-strip div { display: grid; gap: 3px; }
.regulation-status strong,.currency-source-strip strong { font-size: 12px; }
.regulation-status small,.currency-source-strip small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.regulation-status > b,.currency-source-strip > b { padding: 6px 9px; border-radius: 999px; background: var(--surface); color: var(--blue); font-size: 8px; letter-spacing: .05em; }
.currency-source-strip.stale { border-color: color-mix(in srgb,var(--warning) 40%,var(--border)); background: color-mix(in srgb,#fff0d5 54%,var(--surface)); }
[data-theme="dark"] .currency-source-strip.stale { background: color-mix(in srgb,#7d510b 22%,var(--surface)); }
.per-diem-workspace { display: grid; grid-template-columns: minmax(0,.9fr) minmax(420px,1.1fr); gap: 18px; align-items: start; }
.per-diem-result-panel { position: sticky; top: calc(var(--topbar) + 18px); }
.per-diem-result-hero { min-height: 150px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: -18px -18px 16px; padding: 26px; border-radius: 0; background: linear-gradient(135deg,#0d2b60,#2467a2); color: white; }
.per-diem-result-hero .eyebrow { color: #a9d1ff; }
.per-diem-result-hero strong { display: block; margin: 9px 0 4px; font-size: clamp(31px,5vw,48px); letter-spacing: -.04em; }
.per-diem-result-hero p { margin: 0; color: rgba(255,255,255,.72); font-size: 10px; }
.per-diem-rule-chip { padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 8px; font-weight: 850; white-space: nowrap; }
.per-diem-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-bottom: 15px; }
.per-diem-kpis.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.per-diem-kpis div { min-height: 68px; display: grid; align-content: center; gap: 5px; padding: 10px; border-radius: 13px; background: var(--surface-2); text-align: center; }
.per-diem-kpis small { color: var(--muted); font-size: 8px; }
.per-diem-kpis strong { font-size: 15px; }
.field-button { justify-content: end; }
.field-button .primary-button { min-height: 48px; }
.currency-history-panel { margin-bottom: 18px; }
.currency-history-panel .currency-converter-result { margin-top: 16px; }
.currency-converter-grid { display:grid; grid-template-columns:minmax(130px,.75fr) minmax(180px,1fr) 46px minmax(180px,1fr) minmax(190px,1fr); gap:12px; align-items:end; }
.currency-swap-button { width:46px; height:48px; border:1px solid var(--border); border-radius:14px; background:var(--surface-2); color:var(--primary); font-size:24px; cursor:pointer; }
.currency-swap-button:hover { background:var(--primary); color:#fff; }
.currency-world-panel { margin-top:18px; }
.seat-period-tabs { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:9px; margin:0 0 14px; position:sticky; top:0; z-index:3; padding:8px 0; background:var(--surface); }
.seat-period-tab { min-height:64px; padding:11px 14px; border:1px solid var(--border); border-radius:15px; background:var(--surface-2); color:var(--text); display:grid; gap:4px; text-align:left; cursor:pointer; }
.seat-period-tab span { font-weight:800; }
.seat-period-tab small { color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.seat-period-tab.active { border-color:var(--primary); background:var(--primary); color:#fff; box-shadow:0 8px 22px rgb(20 74 141 / 25%); }
.seat-period-tab.active small { color:rgb(255 255 255 / 78%); }
.seat-period-panel[hidden] { display:none !important; }
.summary-block-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.summary-block-heading > span { color:var(--muted); font-size:11px; font-weight:800; }
.service-queue-list { display:grid; gap:8px; margin-top:10px; }
.service-queue-item { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; padding:10px; border:1px solid var(--border); border-radius:13px; background:var(--surface-2); }
.service-queue-item > div:nth-child(2) { min-width:0; display:grid; gap:3px; }
.service-queue-item strong,.service-queue-item small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.service-queue-item small { color:var(--muted); }
.service-queue-seat { width:42px; height:42px; border:0; border-radius:12px; color:#fff; background:var(--navy); font-weight:900; cursor:pointer; }
.service-queue-actions { display:flex; gap:6px; align-items:center; }
.service-queue-actions button { min-height:34px; padding:0 10px; border:1px solid var(--border); border-radius:10px; color:var(--text); background:var(--surface); font-weight:800; cursor:pointer; }
.service-queue-actions button.is-primary { color:#fff; background:var(--primary); border-color:var(--primary); }
.service-queue-actions span { color:var(--success); font-size:11px; font-weight:900; }
.seat-period-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:15px 17px; border-bottom:1px solid var(--border); }
.seat-period-heading > span:first-child { display:grid; gap:4px; }
.seat-period-heading small { color:var(--muted); }
.flight-team-dialog{display:grid;gap:16px}.flight-team-status{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px;border:1px solid var(--border);border-radius:16px;background:var(--surface-2)}.flight-team-status span:first-child{display:grid;gap:4px}.flight-team-status small{color:var(--muted)}.flight-member-list{display:grid;gap:8px}.flight-member-list>span{display:grid;grid-template-columns:auto 1fr;column-gap:9px;align-items:center;padding:12px 14px;border:1px solid var(--border);border-radius:13px}.flight-member-list>span .icon{grid-row:1/3}.flight-member-list small{color:var(--muted)}
.drink-accordion { display:grid; gap:10px; }
.drink-category { border:1px solid var(--border); border-radius:16px; overflow:hidden; background:var(--surface-2); }
.drink-category > summary { list-style:none; cursor:pointer; padding:14px 16px; display:flex; align-items:center; justify-content:space-between; gap:14px; }
.drink-category > summary::-webkit-details-marker { display:none; }
.drink-category > summary > span { display:grid; gap:3px; }
.drink-category > summary small { color:var(--muted); }
.drink-category > summary b { min-width:28px; height:28px; border-radius:999px; display:grid; place-items:center; background:var(--primary); color:#fff; }
.drink-category .counter-list { padding:0 12px 12px; }
.drink-order-row { display:grid; grid-template-columns:minmax(160px,1fr) minmax(155px,.75fr) auto; gap:12px; align-items:end; }
.drink-preference { display:grid; gap:5px; }
.drink-preference > span { color:var(--muted); font-size:11px; font-weight:700; }
@media(max-width:700px){.seat-period-tabs{grid-template-columns:repeat(3,minmax(0,1fr));}.seat-period-tab{padding:10px;min-height:58px}.drink-order-row{grid-template-columns:1fr auto}.drink-preference{grid-column:1/-1;grid-row:2}.seat-period-heading{align-items:flex-start}.service-queue-item{grid-template-columns:auto minmax(0,1fr)}.service-queue-actions{grid-column:1/-1;justify-content:flex-end}.service-queue-actions button{min-height:40px}.service-queue-item strong,.service-queue-item small{white-space:normal}}
.currency-world-list { display:grid; }
.currency-world-row { display:grid; grid-template-columns:minmax(220px,1.3fr) minmax(180px,1fr) minmax(180px,1fr); gap:20px; align-items:center; padding:14px 4px; border-bottom:1px solid var(--border); }
.currency-world-row:last-child { border-bottom:0; }
.currency-world-row > span:not(.currency-world-name) { display:grid; gap:4px; text-align:right; }
.currency-world-row small { color:var(--muted); }
.currency-world-name { display:flex; align-items:center; gap:12px; }
.currency-flag { width:38px; height:28px; flex:0 0 38px; display:block; object-fit:cover; border:1px solid color-mix(in srgb,var(--border) 82%,transparent); border-radius:7px; box-shadow:0 3px 9px rgba(3,24,54,.13); }
.currency-flag-fallback { display:grid; place-items:center; font-size:20px; }
.currency-world-name > span { display:grid; gap:3px; }
@media (max-width:1000px) { .currency-converter-grid { grid-template-columns:1fr 1fr; } .currency-swap-button { order:4; width:100%; } .currency-world-row { grid-template-columns:1fr 1fr; } .currency-world-name { grid-column:1/-1; } }
@media (max-width:620px) {
  .currency-converter-grid { grid-template-columns:1fr; }
  .currency-world-panel .panel-body { padding:8px 14px 12px; }
  .currency-world-row { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:7px 12px; padding:10px 2px; }
  .currency-world-name { grid-column:1/-1; gap:9px; }
  .currency-flag { width:32px; height:23px; flex-basis:32px; border-radius:5px; }
  .currency-world-name > span { display:flex; align-items:baseline; gap:7px; min-width:0; }
  .currency-world-name strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.86rem; }
  .currency-world-name small { flex:0 0 auto; font-size:.66rem; }
  .currency-world-row > span:not(.currency-world-name) { min-width:0; gap:2px; text-align:left; }
  .currency-world-row > span:not(.currency-world-name):last-child { text-align:right; }
  .currency-world-rate small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.62rem; }
  .currency-world-rate strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.78rem; }
}
.per-diem-breakdown { display: grid; gap: 9px; max-height: 380px; overflow: auto; }
.per-diem-breakdown section { overflow: hidden; border: 1px solid var(--border); border-radius: 13px; }
.per-diem-breakdown header,.per-diem-breakdown section > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; }
.per-diem-breakdown header { background: var(--surface-2); }
.per-diem-breakdown header strong { font-size: 10px; }
.per-diem-breakdown header span { color: var(--muted); font-size: 8px; }
.per-diem-breakdown section > div { border-top: 1px solid var(--border); }
.per-diem-breakdown section > div span { display: grid; gap: 2px; font-size: 10px; }
.per-diem-breakdown section > div small { color: var(--muted); font-size: 8px; }
.per-diem-breakdown section > div strong { font-size: 11px; }
.per-diem-breakdown section > div span em { color:var(--muted);font-size:7px;font-style:normal;line-height:1.35; }
.per-diem-breakdown section > div > strong { display:grid;gap:2px;text-align:right; }
.per-diem-breakdown section > div > strong small { font-weight:650; }
.per-diem-line-national { box-shadow:inset 3px 0 0 #8aa4bd; }
.per-diem-line-north,.per-diem-line-south { box-shadow:inset 3px 0 0 #1677c8; }
.table6-panel { margin-top:18px; }
.table6-heading-actions { display:flex;align-items:center;gap:8px; }
.table6-expand { white-space:nowrap; }
.table6-region-guide { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:13px; }
.table6-region-guide article { min-width:0;display:grid;gap:3px;padding:12px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2);box-shadow:inset 3px 0 0 var(--region-color,#8aa4bd); }
.table6-region-guide article.national { --region-color:#8aa4bd; }
.table6-region-guide article.north { --region-color:#1677c8; }
.table6-region-guide article.south { --region-color:#25a877; }
.table6-region-guide small { color:var(--muted);font-size:8px;font-weight:800;letter-spacing:.05em;text-transform:uppercase; }
.table6-region-guide strong { color:var(--text);font-size:10px;line-height:1.3; }
.table6-region-guide span { color:var(--muted);font-size:8px;line-height:1.35; }
.table6-region-guide b { margin-top:3px;color:var(--text);font-size:10px; }
.table6-swipe-hint { display:none;align-items:center;gap:6px;margin:0 0 8px;color:var(--muted);font-size:9px;font-weight:700; }
.table6-swipe-hint .icon { width:14px;height:14px; }
.table6-scroll { overflow:auto; border:1px solid var(--border); border-radius:15px; }
.table6-table { width:100%; min-width:720px; border-collapse:collapse; background:var(--surface); }
.table6-table th,.table6-table td { padding:13px 14px; border-right:1px solid var(--border); border-bottom:1px solid var(--border); text-align:left; vertical-align:middle; }
.table6-table th:last-child,.table6-table td:last-child { border-right:0; }
.table6-table thead th { background:var(--surface-2); color:var(--text); font-size:10px; line-height:1.35; }
.table6-table thead small { color:var(--muted);font-size:8px; }
.table6-table tbody th { font-size:11px; }
.table6-table tbody td { font-size:10px; }
.table6-table tbody td strong,.table6-table tbody td small { display:block; }
.table6-table tbody td small { margin-top:3px;color:var(--muted);font-size:8px; }
.table6-table .table6-total > * { background:color-mix(in srgb,var(--brand) 10%,var(--surface));font-weight:850; }
.table6-rate { display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:11px;margin-top:13px;padding:12px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2); }
.table6-rate > span { width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:var(--navy-soft);color:var(--brand); }
.table6-rate strong,.table6-rate small { display:block; }
.table6-rate strong { font-size:11px; }
.table6-rate small { margin-top:3px;color:var(--muted);font-size:8px;line-height:1.4; }
.table6-rate-controls { display:flex;align-items:end;justify-content:flex-end;gap:8px; }
.table6-rate-controls label { display:grid;gap:3px;color:var(--muted);font-size:8px;font-weight:750; }
.table6-rate-controls .input-control { width:142px;min-height:36px;padding:7px 9px;font-size:11px; }
html.table6-fullscreen-open { overflow:hidden; }
.table6-panel.table6-fullscreen,.table6-panel:fullscreen { position:fixed;inset:0;z-index:10000;width:100vw;height:100dvh;margin:0;overflow:auto;border:0;border-radius:0;background:var(--bg); }
.table6-panel.table6-fullscreen>.panel-header,.table6-panel:fullscreen>.panel-header { position:sticky;top:0;z-index:3;background:color-mix(in srgb,var(--surface) 94%,transparent);backdrop-filter:blur(16px); }
.table6-panel.table6-fullscreen>.panel-body,.table6-panel:fullscreen>.panel-body { width:min(1180px,100%);margin:0 auto;padding:18px; }
.table6-panel.table6-fullscreen .table6-table,.table6-panel:fullscreen .table6-table { min-width:760px; }
.table6-panel.table6-fullscreen .table6-expand span,.table6-panel:fullscreen .table6-expand span { font-size:0; }
.table6-panel.table6-fullscreen .table6-expand span::after,.table6-panel:fullscreen .table6-expand span::after { content:'Cerrar';font-size:10px; }
.per-diem-total-lines { display: grid; gap: 8px; margin: 15px 0; padding: 13px; border-radius: 13px; background: var(--surface-2); }
.per-diem-total-lines > div { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; }
.per-diem-total-lines .invoice-total-row { padding-top: 8px; border-top: 1px solid var(--border); color: var(--navy); font-size: 12px; }
[data-theme="dark"] .per-diem-total-lines .invoice-total-row { color: #fff; }
.per-diem-empty { min-height: 360px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); text-align: center; }
.per-diem-empty h3,.per-diem-empty p { margin: 0; }
.per-diem-history { margin-top: 18px; }
.per-diem-history > .panel-header > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--navy-soft); color: var(--navy); font-size: 10px; font-weight: 850; }
.table6-admin-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; }
.table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-gutter: stable; -webkit-overflow-scrolling: touch; }
.table6-admin-table th,.table6-admin-table td { padding: 9px; border-bottom: 1px solid var(--border); text-align: left; }
.table6-admin-table thead th { background: var(--surface-2); color: var(--muted); font-size: 9px; }
.table6-admin-table tbody th { max-width: 220px; font-size: 10px; }
.table6-admin-table th small { display: block; margin-top: 2px; color: var(--muted); font-size: 7px; }
.table6-admin-table .input-control { min-width: 98px; }

.currency-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; margin-bottom: 18px; }
.official-rate-card,.p2p-rate-panel { min-height: 270px; padding: 28px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-sm); }
.official-rate-card { display: flex; flex-direction: column; background: linear-gradient(145deg,color-mix(in srgb,#2e65ee 9%,var(--surface)),var(--surface)); }
.currency-card-label { width: fit-content; padding: 6px 9px; border-radius: 999px; background: #2e65ee; color: white; font-size: 8px; font-weight: 850; letter-spacing: .08em; }
.official-rate-card > strong { margin: 25px 0 5px; color: #2458d8; font-size: clamp(44px,7vw,68px); letter-spacing: -.06em; }
[data-theme="dark"] .official-rate-card > strong { color: #7fa9ff; }
.official-rate-card > p,.p2p-rate-panel > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.official-rate-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 8px; }
.official-rate-card footer a { display: inline-flex; align-items: center; gap: 5px; color: var(--blue); text-decoration: none; }
.official-rate-card footer .icon { width: 12px; }
.p2p-rate-panel header { display: flex; justify-content: space-between; gap: 12px; }
.p2p-rate-panel h2 { margin: 4px 0 0; font-size: 20px; }
.p2p-rate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 25px 0 18px; }
.p2p-rate-grid > div { min-height: 100px; display: grid; place-items: center; align-content: center; gap: 8px; border-radius: 18px; }
.p2p-rate-grid small { font-size: 8px; font-weight: 850; letter-spacing: .08em; }
.p2p-rate-grid strong { font-size: clamp(24px,4vw,34px); letter-spacing: -.04em; }
.p2p-rate-grid .buy { background: #e4f8eb; color: #087b42; }
.p2p-rate-grid .sell { background: #fff0df; color: #c84808; }
[data-theme="dark"] .p2p-rate-grid .buy { background: #123b2b; color: #79e6ad; }
[data-theme="dark"] .p2p-rate-grid .sell { background: #452613; color: #ffad77; }
.currency-lower-grid { align-items: stretch; }
.currency-converter-result { min-height: 120px; display: grid; place-items: center; align-content: center; gap: 7px; margin-top: 14px; padding: 18px; border-radius: 17px; background: linear-gradient(135deg,var(--navy),#275e98); color: white; text-align: center; }
.currency-converter-result span,.currency-converter-result small { color: rgba(255,255,255,.7); font-size: 9px; }
.currency-converter-result strong { font-size: 31px; }
.currency-explainer { display: grid; gap: 10px; }
.currency-explainer > div { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 10px; align-items: center; padding: 10px; border-radius: 13px; background: var(--surface-2); }
.currency-explainer > div > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--navy-soft); color: var(--navy); }
[data-theme="dark"] .currency-explainer > div > span { color: #cbe2ff; }
.currency-explainer p { display: grid; gap: 2px; margin: 0; }
.currency-explainer strong { font-size: 10px; }
.currency-explainer small { color: var(--muted); font-size: 8px; line-height: 1.45; }

@media (max-width: 1100px) {
  .global-search-trigger { max-width: 360px; }
  .global-search-trigger kbd { display: none; }
  .per-diem-workspace,.currency-hero-grid { grid-template-columns: 1fr; }
  .per-diem-result-panel { position: static; }
}

@media (max-width: 820px) {
  .global-search-trigger { min-width: 42px; width: 42px; max-width: 42px; height: 42px; flex: 0 0 42px; justify-content: center; padding: 0; border-radius: 50%; }
  .global-search-trigger span { display: none; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .status-pill { display: none; }
}

@media (max-width: 560px) {
  .global-search-result { grid-template-columns: 38px minmax(0,1fr) 16px; }
  .global-search-result em { display: none; }
  .regulation-status,.currency-source-strip { grid-template-columns: 34px minmax(0,1fr) auto; gap:9px; min-height:0; padding:11px 12px; }
  .regulation-status > span,.currency-source-strip > span { width:34px; height:34px; border-radius:11px; }
  .regulation-status > b,.currency-source-strip > b,.currency-source-strip > button { grid-column:3; grid-row:1; width:fit-content; align-self:center; }
  .per-diem-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .per-diem-result-hero { display: grid; padding: 20px; }
  .currency-hero-grid { gap: 12px; }
  .official-rate-card,.p2p-rate-panel { min-height:220px; padding:18px; border-radius:20px; overflow:hidden; }
  .official-rate-card > strong { margin:18px 0 7px; font-size:clamp(40px,14vw,56px); line-height:1; }
  .official-rate-card footer { align-items: flex-start; flex-direction: column; }
  .p2p-rate-panel header { align-items:flex-start; }
  .p2p-rate-panel .role-badge { flex:0 0 auto; padding:6px 8px; font-size:7px; }
  .p2p-rate-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:18px 0 14px; }
  .p2p-rate-grid > div { min-width:0; min-height:86px; padding:10px 5px; }
  .p2p-rate-grid strong { font-size:clamp(20px,7vw,28px); white-space:nowrap; }
}

.page-layout-editor{display:grid;gap:14px}.page-layout-list{display:grid;gap:8px}.page-layout-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;border:1px solid var(--border);border-radius:15px;background:var(--surface-2)}.page-layout-row.is-hidden{opacity:.68;border-style:dashed}.page-layout-handle{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--navy-soft);color:var(--navy)}[data-theme=dark] .page-layout-handle{color:#d8e8fb}.page-layout-row strong,.page-layout-row small{display:block}.page-layout-row small{margin-top:3px;color:var(--muted);font-size:.72rem}.page-layout-row>div{display:flex;align-items:center;gap:6px}.page-layout-row .visibility-chip{min-width:94px}.layout-admin-summary{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.55fr);gap:18px;align-items:start}.layout-page-grid{display:grid;gap:8px;margin-top:14px}.layout-page-grid article{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2)}.layout-page-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:color-mix(in srgb,var(--layout-accent) 14%,var(--card));color:var(--layout-accent)}.layout-page-grid strong,.layout-page-grid small{display:block}.layout-page-grid small{color:var(--muted);font-size:.73rem}.layout-page-grid article>div{display:flex;align-items:center;gap:6px}.admin-control-map{display:grid;gap:9px}.admin-control-map article{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px;padding:11px;border:1px solid var(--border);border-radius:13px;background:var(--surface-2)}.admin-control-map article>.icon{width:21px;color:var(--navy)}[data-theme=dark] .admin-control-map article>.icon{color:#9cc9f1}.admin-control-map strong,.admin-control-map small{display:block}.admin-control-map small{color:var(--muted);font-size:.72rem}.expanded-tool-hub{grid-template-columns:repeat(4,minmax(0,1fr))}.weather-tool .tool-hub-icon{background:#e3f4fd;color:#1484b8}.converter-tool .tool-hub-icon{background:#efeafd;color:#7054a8}.route-tool .tool-hub-icon{background:#e5f4f9;color:#1484b8}.checklist-tool .tool-hub-icon{background:#e5f6ed;color:#16845b}[data-theme=dark] .weather-tool .tool-hub-icon,[data-theme=dark] .converter-tool .tool-hub-icon,[data-theme=dark] .route-tool .tool-hub-icon,[data-theme=dark] .checklist-tool .tool-hub-icon{background:#173c69;color:#e8f3ff}
@media(max-width:1200px){.expanded-tool-hub{grid-template-columns:repeat(2,minmax(0,1fr))}.layout-admin-summary{grid-template-columns:1fr}}
@media(max-width:680px){.expanded-tool-hub{grid-template-columns:1fr}.page-layout-row{grid-template-columns:auto 1fr}.page-layout-row>div{grid-column:1/-1;justify-content:flex-end}.layout-page-grid article{grid-template-columns:auto 1fr}.layout-page-grid article>div{grid-column:1/-1;justify-content:flex-end}}

.security-admin-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;border-radius:24px;background:linear-gradient(135deg,var(--navy),#1f5b96);color:#fff;box-shadow:var(--shadow)}
.security-admin-hero h2{margin:5px 0 7px;font-size:clamp(1.35rem,2.4vw,2rem)}.security-admin-hero p{margin:0;max-width:760px;color:#dbeaff;line-height:1.55}.security-admin-hero .eyebrow{color:#a9d2fb}
.security-integrity{min-width:155px;padding:16px 18px;border:1px solid #ffffff42;border-radius:18px;background:#ffffff13;text-align:center}.security-integrity small,.security-integrity strong{display:block}.security-integrity small{font-size:.66rem;letter-spacing:.08em}.security-integrity strong{margin-top:6px;font-size:1.25rem}.security-integrity.ok strong{color:#9ee6bf}.security-integrity.warning strong{color:#ffd39b}
.security-check-list{display:grid;gap:10px}.security-check-list article{display:grid;grid-template-columns:auto 1fr;gap:11px;align-items:start;padding:12px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2)}.security-check-list article>.icon{width:22px;color:var(--navy)}.security-check-list strong,.security-check-list small{display:block}.security-check-list small{margin-top:3px;color:var(--muted);line-height:1.4}
[data-theme=dark] .security-check-list article>.icon{color:#9cc9f1}
@media(max-width:700px){.security-admin-hero{align-items:flex-start;flex-direction:column;padding:19px}.security-integrity{width:100%}}

@media print {
  .topbar, .sidebar, .mobile-nav, .page-actions, .app-footer { display: none !important; }
  .page-container { padding: 0; }
  .panel, .stat-card { box-shadow: none; break-inside: avoid; }
  .invoice-page .invoice-input-panel, .invoice-page > .two-column, .invoice-page > .info-banner { display: none !important; }
  .invoice-workspace { display: block; }
  .invoice-result-panel { position: static; border: 0; }
  .per-diem-page .per-diem-workspace > .panel:first-child, .per-diem-page .regulation-status, .per-diem-page .per-diem-history { display: none !important; }
  .per-diem-workspace { display: block; }
  .per-diem-result-panel { position: static; border: 0; }
}
.emergency-form-layout{display:grid;gap:18px;margin-top:18px}.emergency-crew-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.emergency-crew-card{background:var(--surface);border:1px solid var(--border);border-radius:22px;padding:20px;box-shadow:var(--shadow-sm)}.emergency-crew-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.emergency-crew-heading h3{margin:3px 0 0}.emergency-add-crew{justify-self:start}.emergency-form-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}.uppercase-input{text-transform:uppercase}.ringing-alarm-overlay{position:fixed;inset:0;z-index:10000;background:rgba(3,17,42,.88);backdrop-filter:blur(12px);display:grid;place-items:center;padding:20px}.ringing-alarm-card{width:min(520px,100%);background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:32px;padding:38px;text-align:center;box-shadow:0 30px 90px rgba(0,0,0,.45);animation:alarmPulse 1.4s ease-in-out infinite}.ringing-alarm-card h2{font-size:clamp(24px,5vw,40px);margin:10px}.ringing-alarm-card>strong{display:block;font-size:clamp(48px,10vw,82px);color:var(--primary)}.ringing-alarm-card>div{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:24px}.ringing-alarm-icon{width:74px;height:74px;margin:auto;display:grid;place-items:center;border-radius:50%;background:var(--primary);color:white}.ringing-alarm-icon svg{width:38px;height:38px}@keyframes alarmPulse{50%{transform:scale(1.015);box-shadow:0 30px 100px rgba(223,74,10,.28)}}
.emergency-usage-guide{margin-top:18px}.emergency-usage-guide ol{margin:0;padding-left:22px;display:grid;gap:12px;color:var(--muted);line-height:1.5}.emergency-usage-guide li::marker{color:var(--brand);font-weight:900}.emergency-usage-guide strong,.emergency-usage-guide b{color:var(--text)}

@media (pointer:coarse) and (orientation:landscape) and (max-height:620px){
  :root{--topbar:58px}
  html,body,.app-shell{width:100%;max-width:none;margin:0;overflow-x:hidden}
  .sidebar{display:none!important}
  .page-container,.app-shell.sidebar-collapsed .page-container{width:100%;max-width:none;margin:0;padding:calc(var(--topbar) + 10px) max(12px,env(safe-area-inset-right)) calc(82px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
  .page{width:100%;max-width:none;margin:0}
  .topbar{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
  .topbar.mobile-header-hidden ~ .page-container{padding-top:12px}
  .mobile-nav{left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));min-height:56px;padding:4px}
  .mobile-nav .nav-item{min-height:45px}
}
.emergency-file-guide{align-items:center}.emergency-file-guide>div{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:2px 12px;min-width:0}.emergency-file-guide span{color:var(--muted);font-weight:700}.emergency-file-guide strong{min-width:0;overflow-wrap:anywhere}.emergency-file-guide small{grid-column:1/-1;color:var(--muted)}
@media(max-width:760px){.emergency-crew-list{grid-template-columns:1fr}.emergency-form-actions>*{flex:1 1 100%}.ringing-alarm-card{padding:28px 18px}.emergency-form-page .page-header h1{font-size:clamp(1.75rem,8vw,2.25rem);line-height:1.08}.emergency-form-page .page-header p{font-size:.92rem}.emergency-form-page .page-actions{display:grid;grid-template-columns:1fr 1fr}.emergency-form-page .page-actions>*{width:100%;min-width:0;padding-inline:12px}.emergency-file-guide{padding:14px}.emergency-file-guide>div{grid-template-columns:1fr;gap:4px}.emergency-file-guide small{grid-column:auto;line-height:1.45}.emergency-form-layout{gap:14px;margin-top:14px}.emergency-form-page .panel-header{align-items:flex-start;padding:16px}.emergency-form-page .panel-body{padding:16px}.emergency-form-page .status-pill{font-size:.62rem}.emergency-crew-card{padding:16px;border-radius:18px}.emergency-archive-panel .list-card{padding:13px}.emergency-archive-panel .list-card-main{min-width:0}.emergency-archive-panel .list-card-main div{min-width:0}.emergency-archive-panel .list-card strong,.emergency-archive-panel .list-card small{overflow-wrap:anywhere}}
@media(max-width:390px){.emergency-form-page .page-actions{grid-template-columns:1fr}.emergency-form-page .page-header h1{font-size:1.7rem}}
/* BoA Crew v49 — capa visual y operativa consolidada */
.boa-splash { position:fixed; inset:0; z-index:4000; display:grid; place-content:center; justify-items:center; gap:9px; background:linear-gradient(155deg,#f8fbff,#fff 48%,#edf5ff); color:#0d2b60; transition:opacity .28s ease,visibility .28s ease; }
.boa-splash.is-ready { opacity:0; visibility:hidden; }
.boa-splash strong { font-size:clamp(1.55rem,4vw,2.1rem); letter-spacing:-.03em; }
.boa-splash span { color:#65718a; font-size:.84rem; }
.boa-splash-mark { position:relative; width:88px; height:76px; filter:drop-shadow(0 14px 20px #0d2b6024); animation:splash-float 1.4s ease-in-out infinite; }
.boa-splash-mark i { position:absolute; left:13px; width:64px; height:13px; border-radius:100% 0 100% 0; transform:rotate(-29deg); transform-origin:center; }
.boa-splash-mark i:nth-child(1){top:10px;background:#e3440b}.boa-splash-mark i:nth-child(2){top:29px;background:#f6a800}.boa-splash-mark i:nth-child(3){top:48px;background:#a8bf00}
[data-theme="dark"] .boa-splash { background:radial-gradient(circle at 50% 42%,#173c69,#07152d 68%); color:#fff; }
[data-theme="dark"] .boa-splash span { color:#b9c9df; }
@keyframes splash-float { 50% { transform:translateY(-5px) scale(1.02); } }
:root {
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--primary, #175aa6) 28%, transparent);
  --surface-elevated: color-mix(in srgb, var(--surface, #fff) 96%, var(--primary, #175aa6) 4%);
}

button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.module-card, .action-button, .primary-button, .secondary-button, .tab {
  transition: transform .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
@media (hover:hover) {
  .module-card:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(4,31,70,.12); }
}

.privacy-consent {
  position: fixed; z-index: 2200; left: max(16px,env(safe-area-inset-left)); right: max(16px,env(safe-area-inset-right)); bottom: max(16px,env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 980px; margin: auto;
  padding: 18px 20px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface-elevated);
  box-shadow: 0 24px 70px rgba(3,23,53,.28); color: var(--text); animation: consent-in .25s ease-out;
}
.privacy-consent strong { display:block; margin-bottom:4px; font-size:1rem; }
.privacy-consent p { margin:0; color:var(--muted); line-height:1.45; }
.privacy-consent > div:last-child { display:flex; flex:none; gap:10px; }
.privacy-brand { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:15px; min-width:0; }
.privacy-brand small { display:block; margin-bottom:3px; color:var(--primary); font-size:.67rem; font-weight:900; letter-spacing:.12em; }
.privacy-logo { position:relative; display:block; width:56px; height:56px; flex:none; overflow:hidden; border-radius:18px; background:linear-gradient(145deg,#0d2b60,#1e63a5); box-shadow:inset 0 0 0 1px #ffffff26,0 8px 22px #0d2b6030; }
.privacy-logo i { position:absolute; display:block; width:30px; height:8px; left:13px; border-radius:100% 0 100% 0; transform:rotate(-28deg); }
.privacy-logo i:nth-child(1) { top:14px; background:#e3440b; }
.privacy-logo i:nth-child(2) { top:24px; background:#f6a800; }
.privacy-logo i:nth-child(3) { top:34px; background:#a8bf00; }
.privacy-actions { align-items:center; }
.privacy-settings { display:grid; gap:12px; }
.privacy-setting-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:13px; padding:15px; border:1px solid var(--border); border-radius:17px; background:var(--surface-2); }
.privacy-setting-row > span { display:grid; place-items:center; width:42px; height:42px; border-radius:13px; background:var(--surface); color:var(--primary); }
.privacy-setting-row strong,.privacy-setting-row p { display:block; margin:0; }
.privacy-setting-row p { margin-top:3px; color:var(--muted); font-size:.8rem; line-height:1.45; }
.privacy-setting-row b { color:#16845b; font-size:.66rem; letter-spacing:.06em; }
.privacy-setting-row input { width:24px; height:24px; accent-color:var(--primary); }
@keyframes consent-in { from { opacity:0; transform:translateY(18px); } }

.analytics-admin-grid { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(300px,.8fr); gap:18px; }
.analytics-stats { margin-bottom:22px; }
.analytics-bars { display:flex; align-items:end; gap:7px; min-height:190px; padding:18px 8px 0; border-top:1px solid var(--border); overflow-x:auto; }
.analytics-bars > span { display:grid; grid-template-rows:130px auto; align-items:end; gap:7px; min-width:30px; flex:1; text-align:center; }
.analytics-bars i { display:block; width:100%; min-height:6px; border-radius:8px 8px 3px 3px; background:linear-gradient(180deg,#3d8fe3,#14529a); }
.analytics-bars small { color:var(--muted); font-size:.68rem; }
.analytics-ranking { display:grid; gap:9px; margin-bottom:18px; }
.analytics-ranking article { display:grid; grid-template-columns:32px 1fr auto; align-items:center; gap:10px; padding:12px; border:1px solid var(--border); border-radius:14px; }
.analytics-ranking article > span { display:grid; place-items:center; width:30px; height:30px; border-radius:10px; background:var(--surface-2); color:var(--primary); font-weight:800; }
.analytics-live-hero { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:16px; padding:20px 22px; border:1px solid color-mix(in srgb,#2eb67d 35%,var(--border)); border-radius:22px; background:linear-gradient(135deg,color-mix(in srgb,#2eb67d 12%,var(--surface)),var(--surface)); box-shadow:0 12px 32px rgba(4,31,70,.08); }
.analytics-live-hero > div { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:14px; }
.analytics-live-hero small,.analytics-live-hero strong,.analytics-live-hero p { display:block; margin:0; }
.analytics-live-hero small { color:#16845b; font-size:.67rem; font-weight:900; letter-spacing:.12em; }
.analytics-live-hero strong { margin-top:2px; font-size:1.55rem; letter-spacing:-.025em; }
.analytics-live-hero p { margin-top:3px; color:var(--muted); font-size:.82rem; }
.live-pulse { width:15px; height:15px; border-radius:50%; background:#21b978; box-shadow:0 0 0 7px color-mix(in srgb,#21b978 18%,transparent); animation:live-pulse 2s ease-out infinite; }
@keyframes live-pulse { 50% { box-shadow:0 0 0 12px color-mix(in srgb,#21b978 0%,transparent); } }
.analytics-period-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.analytics-period-grid article { min-width:0; padding:17px; border:1px solid var(--border); border-radius:18px; background:var(--surface); }
.analytics-period-grid small,.analytics-period-grid strong,.analytics-period-grid span { display:block; }
.analytics-period-grid small { color:var(--muted); font-weight:750; }
.analytics-period-grid strong { margin:5px 0 2px; color:var(--text); font-size:1.8rem; letter-spacing:-.04em; }
.analytics-period-grid span { color:var(--muted); font-size:.72rem; line-height:1.35; }
.analytics-live-panel { min-width:0; }
.presence-list { display:grid; gap:9px; }
.presence-list article { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; padding:13px; border:1px solid var(--border); border-radius:16px; background:var(--surface-2); }
.presence-avatar { display:grid; place-items:center; width:42px; height:42px; border-radius:14px; background:linear-gradient(145deg,#123d77,#2784c2); color:#fff; font-weight:850; }
.presence-list article div { min-width:0; }
.presence-list strong,.presence-list small,.presence-list article div > span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.presence-list small { margin:2px 0 5px; color:var(--muted); }
.presence-list article div > span { margin-top:2px; color:var(--muted); font-size:.72rem; }
.presence-list .icon { width:13px; height:13px; vertical-align:-2px; }
.presence-dot { width:10px; height:10px; border-radius:50%; background:#21b978; box-shadow:0 0 0 5px color-mix(in srgb,#21b978 15%,transparent); }
.analytics-trend-panel { margin-top:18px; }
.analytics-visual-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,.32fr); gap:20px; align-items:stretch; }
.analytics-line-chart { display:block; width:100%; height:150px; margin-bottom:-132px; opacity:.95; pointer-events:none; }
.analytics-consent-card { display:grid; justify-items:center; align-content:center; gap:8px; min-height:250px; padding:20px; border:1px solid var(--border); border-radius:20px; background:linear-gradient(145deg,var(--surface-2),var(--surface)); text-align:center; }
.analytics-consent-card h3,.analytics-consent-card p { margin:0; }
.analytics-consent-card p,.analytics-consent-card span { color:var(--muted); font-size:.75rem; line-height:1.45; }
.analytics-donut { display:grid; place-items:center; width:126px; height:126px; border-radius:50%; background:radial-gradient(circle at center,var(--surface) 56%,transparent 57%),conic-gradient(#38a6ff calc(var(--value)*1%),color-mix(in srgb,var(--border) 75%,transparent) 0); box-shadow:inset 0 0 0 1px var(--border),0 14px 30px rgba(4,31,70,.12); }
.analytics-donut strong,.analytics-donut small { grid-area:1/1; }
.analytics-donut strong { align-self:center; margin-top:-10px; font-size:1.65rem; }
.analytics-donut small { align-self:center; margin-top:32px; color:var(--muted); font-size:.65rem; }

@media (max-width: 900px) {
  .page { padding-bottom:calc(104px + env(safe-area-inset-bottom)); }
  .page-header { gap:14px; }
  .page-header-copy h1 { text-wrap:balance; }
  .tabs { position:sticky; top:var(--topbar-height,76px); z-index:18; margin-inline:-4px; padding:8px 4px; background:color-mix(in srgb,var(--bg) 92%,transparent); backdrop-filter:blur(14px); scrollbar-width:none; }
  .tabs::-webkit-scrollbar { display:none; }
  .tab { min-height:42px; white-space:nowrap; }
  .analytics-admin-grid { grid-template-columns:1fr; }
  .analytics-visual-grid { grid-template-columns:1fr; }
  .analytics-period-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .privacy-consent { align-items:stretch; flex-direction:column; bottom:calc(82px + env(safe-area-inset-bottom)); padding:16px; border-radius:18px; }
  .privacy-consent > div:last-child { display:grid; grid-template-columns:1fr 1fr; }
  .privacy-actions { grid-template-columns:1fr 1fr 1fr !important; }
}

@media (max-width: 480px) {
  .page { padding-inline:0; }
  .dashboard-feed { gap:10px; }
  .analytics-live-hero { align-items:stretch; flex-direction:column; padding:16px; border-radius:18px; }
  .analytics-live-hero > button { width:100%; }
  .analytics-period-grid { gap:8px; }
  .analytics-period-grid article { padding:13px; border-radius:15px; }
  .analytics-period-grid strong { font-size:1.45rem; }
  .presence-list article { grid-template-columns:auto minmax(0,1fr); }
  .presence-dot { position:absolute; margin:31px 0 0 31px; }
  .dashboard-feed .feed-card { border-radius:16px; }
  .dashboard-command-search{grid-template-columns:40px minmax(0,1fr);padding:9px 11px;border-radius:16px}.dashboard-command-search kbd{display:none}.dashboard-command-search small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .admin-command-bar{grid-template-columns:1fr}.admin-command-bar>button{width:100%}.admin-command-nav{margin-inline:0}.admin-command-nav button b{font-size:.7rem}
  .dashboard-quick-grid { grid-template-columns:1fr; gap:8px; padding:10px; }
  .dashboard-quick-action { min-height:76px; padding:11px 12px; grid-template-columns:42px minmax(0,1fr); grid-template-rows:auto auto; gap:2px 11px; border-radius:14px; }
  .dashboard-quick-action > span { width:42px; height:42px; grid-row:1 / 3; }
  .dashboard-quick-action strong { font-size:.94rem; line-height:1.2; }
  .dashboard-quick-action small { font-size:.73rem; -webkit-line-clamp:1; white-space:nowrap; text-overflow:ellipsis; display:block; }
  .dashboard-more-action { grid-column:auto; min-height:76px; }
  .feed-card-header { padding:12px 13px; }
  .feed-card-body { padding:13px; }
  .feed-card-footer { padding:10px 13px; }
  .panel-header, .panel-body { padding-left:16px; padding-right:16px; }
  .privacy-consent > div:last-child { grid-template-columns:1fr; }
  .privacy-actions { grid-template-columns:1fr 1fr !important; }
  .privacy-actions [data-consent-settings] { grid-column:1/-1; }
  .privacy-logo { width:50px; height:50px; border-radius:16px; }
  .privacy-logo i { left:10px; }
  .privacy-setting-row { grid-template-columns:auto 1fr; }
  .privacy-setting-row > b,.privacy-setting-row > input { grid-column:2; justify-self:start; }
  .analytics-bars > span { min-width:26px; }
}

@media (max-width: 620px) {
  .directory-page .page-header-copy h1 { font-size:clamp(1.8rem,9vw,2.35rem); line-height:1.05; }
  .directory-page .page-header-copy p { font-size:.93rem; line-height:1.5; }
  .directory-page .support-contact-card { grid-template-columns:52px minmax(0,1fr); align-items:start; gap:12px; padding:16px; }
  .directory-page .support-contact-copy { min-width:0; }
  .directory-page .support-contact-copy .eyebrow { letter-spacing:.08em; overflow-wrap:normal; word-break:normal; }
  .directory-page .support-contact-copy h2 { overflow-wrap:normal; word-break:normal; }
  .directory-page .support-contact-copy p { font-size:.78rem; line-height:1.45; }
  .directory-page .support-contact-details { display:grid; gap:8px; margin-top:12px; }
  .directory-page .support-contact-details a { min-width:0; overflow-wrap:anywhere; }
  .directory-page .support-contact-actions { grid-column:1 / -1; display:grid; grid-template-columns:1fr 1fr; width:100%; gap:8px; }
  .directory-page .support-contact-actions > * { width:100%; min-width:0; justify-content:center; padding-inline:10px; }
  .directory-page .panel-header { align-items:center; flex-direction:row; gap:8px; min-height:52px; padding-block:10px; }
  .directory-page .directory-sync-meta{white-space:normal;max-width:240px;font-size:.62rem!important}
  .directory-page .directory-auto-sync{font-size:0;width:28px;height:28px;justify-content:center;border:1px solid var(--border);border-radius:9px;flex:0 0 auto}
  .directory-page .directory-auto-sync .icon{width:14px;height:14px}
  .directory-page .directory-support-footer{margin-top:18px;padding:14px}
  .directory-page .directory-toolbar{display:grid;grid-template-columns:1fr;gap:8px}
  .directory-page .directory-toolbar .search-box{min-height:44px}
  .directory-page .directory-filter-button{display:flex}
  .directory-page .directory-filter-strip{display:none}
  .directory-page .contact-row { grid-template-columns:42px minmax(0,1fr); }
  .directory-page .contact-main,.directory-page .contact-main strong,.directory-page .contact-main small { min-width:0; overflow-wrap:normal; word-break:normal; }
  .directory-page .contact-actions { grid-column:1 / -1; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .directory-page .contact-actions .action-button { width:100%; min-height:42px; }
  .dashboard-links-heading { margin-top:4px; }
  .dashboard-links-heading h2 { font-size:1.25rem; }
  .dashboard-links-grid { display:grid; grid-template-columns:1fr; gap:9px; }
  .dashboard-links-grid .utility-card { width:100%; min-height:78px; }
  .status-grid { gap:8px; }
  .status-grid > div { min-height:86px; padding:12px 9px; }
  .status-grid strong { font-size:.88rem; overflow-wrap:normal; }
  .status-grid .status-sync-value{font-size:.78rem;white-space:nowrap;letter-spacing:-.02em}
  .welcome-status-meta { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; gap:8px; width:100%; margin-top:16px; }
  .welcome-status-meta span { min-width:0; display:grid; grid-template-columns:auto minmax(0,1fr); align-items:start; gap:5px; color:var(--muted); text-align:left; }
  .welcome-status-meta .icon { width:17px; height:17px; margin-top:1px; }
  .welcome-status-meta b { min-width:0; color:inherit; font-size:.7rem; font-weight:600; line-height:1.3; overflow-wrap:normal; word-break:normal; }
}

@media (max-width: 380px) {
  .more-sheet-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .more-sheet-grid.personal-access-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .mobile-nav .nav-item { min-height:52px; }
  .mobile-nav .nav-item span { max-width:48px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .welcome-status-meta { gap:5px; }
  .welcome-status-meta b { font-size:.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; animation-duration:.01ms !important; transition-duration:.01ms !important; }
}

@media (max-width:520px) {
  .alarm-date-row,.alarm-title-row{grid-template-columns:28px minmax(0,1fr) auto}
  .alarm-date-row span,.alarm-title-row span{min-width:0}
  .alarm-date-row small,.alarm-title-row small{display:none}
  .alarm-date-row input{width:128px;max-width:128px}
  .alarm-title-row input{width:132px;max-width:132px}
}

[data-theme="dark"] .alarm-date-row input{color-scheme:dark}
[data-theme="light"] .alarm-date-row input{color-scheme:light}

/* Movimiento natural de accesos, equivalente a la pantalla de inicio móvil. */
.more-access-card.is-dragging{opacity:.16;animation:none!important}
.access-drag-ghost{z-index:120!important;pointer-events:none!important;filter:drop-shadow(0 24px 28px #00152f88);transition:filter .16s ease!important;will-change:transform;opacity:.86!important}
.access-drag-ghost .more-sheet-item{border-color:color-mix(in srgb,var(--brand) 68%,white)!important;border-radius:24px!important;background:color-mix(in srgb,var(--surface) 82%,transparent)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.42),0 0 0 5px color-mix(in srgb,var(--brand) 10%,transparent)!important;backdrop-filter:blur(12px) saturate(170%);-webkit-backdrop-filter:blur(12px) saturate(170%);transform:scale(1.12) translateY(-8px);transform-origin:center;transition:transform .16s cubic-bezier(.2,.9,.25,1)}
.access-drag-ghost .access-edit-badge{display:grid}
.access-sortable-chosen{filter:drop-shadow(0 10px 16px #00152f44)}
.access-sortable-chosen>.more-sheet-item{transform:scale(1.035);transition:transform .14s cubic-bezier(.2,.9,.25,1)}
.access-sortable-ghost{opacity:.2!important;border:1px dashed color-mix(in srgb,var(--brand) 60%,transparent)!important;border-radius:20px!important;background:color-mix(in srgb,var(--brand) 8%,transparent)!important}
.access-sortable-drag{opacity:.88!important;filter:drop-shadow(0 20px 26px #00152f78);transition:filter .12s ease!important;will-change:transform}
.access-sortable-drag .more-sheet-item{border-color:var(--brand)!important;background:color-mix(in srgb,var(--surface) 82%,transparent)!important;transform:scale(1.12) translateY(-8px);box-shadow:0 0 0 5px color-mix(in srgb,var(--brand) 10%,transparent)!important}
.personal-access-grid.is-editing .more-access-card:not(.access-sortable-chosen):not(.access-sortable-drag){animation:access-jiggle .22s ease-in-out infinite alternate}
.more-access-card.is-shifting{transform:scale(.94);transition:transform .18s cubic-bezier(.2,.85,.25,1)!important}
.access-drag-active{cursor:grabbing!important;user-select:none!important;-webkit-user-select:none!important}
.access-confirm-layer{position:absolute;z-index:180;inset:0;display:grid;place-items:center;padding:24px;background:rgba(2,12,28,.28);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);opacity:0;transition:opacity .18s ease}.access-confirm-layer.open{opacity:1}.access-confirm-card{width:min(100%,350px);padding:24px;border:1px solid color-mix(in srgb,var(--border) 72%,white);border-radius:24px;background:color-mix(in srgb,var(--surface) 92%,transparent);box-shadow:0 24px 60px rgba(0,12,32,.32);text-align:center;transform:translateY(12px) scale(.96);transition:transform .2s cubic-bezier(.2,.85,.25,1)}.access-confirm-layer.open .access-confirm-card{transform:none}.access-confirm-icon{width:48px;height:48px;margin:0 auto 12px;display:grid;place-items:center;border-radius:16px;background:var(--navy-soft);color:var(--brand)}.access-confirm-icon .icon{width:25px;height:25px}.access-confirm-card h3{margin:0;color:var(--text);font-size:1.05rem}.access-confirm-card p{margin:9px 0 20px;color:var(--muted);font-size:.88rem;line-height:1.5}.access-confirm-card>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}.access-confirm-card button{min-height:46px}
/* Alarm clock editor · Samsung Galaxy Ultra One UI 9.0 */
.alarm-clock-editor{display:grid;gap:14px;max-width:520px;margin:auto}
.alarm-oneui-countdown{display:block;text-align:center;font-size:1.1rem;font-weight:750;letter-spacing:-.02em;color:#0c66e4;margin:2px 0 6px;padding:6px 14px;border-radius:14px;background:rgba(12,102,228,.08);transition:all .2s ease}
[data-theme="dark"] .alarm-oneui-countdown{color:#4da3ff;background:rgba(77,163,255,.12);text-shadow:0 0 16px rgba(77,163,255,.3)}
.alarm-kind-switch{display:grid;grid-template-columns:1fr 1fr;padding:4px;border:1px solid var(--border);border-radius:16px;background:var(--surface-soft)}.alarm-kind-switch input{position:absolute;opacity:0;pointer-events:none}.alarm-kind-switch span{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border-radius:12px;font-weight:800;color:var(--muted);cursor:pointer}.alarm-kind-switch input:checked+span{background:#0c66e4;color:#fff;box-shadow:0 6px 18px rgba(12,102,228,.28)}.alarm-time-face{display:grid;place-items:center;padding:18px 12px 12px;border-radius:24px;background:linear-gradient(145deg,var(--navy),var(--navy-2));color:#fff}.alarm-time-face>span{font-size:.76rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;opacity:.7}.alarm-time-face input{width:100%;border:0;background:transparent;color:inherit;text-align:center;font:800 clamp(3.4rem,15vw,5.5rem)/1 system-ui;padding:8px 0;outline:none;color-scheme:dark}.alarm-date-row,.alarm-title-row,.alarm-toggle-row{display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:10px;min-height:58px;padding:10px 14px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}.alarm-date-row svg,.alarm-title-row svg,.alarm-toggle-row svg{color:#0c66e4}.alarm-date-row span,.alarm-title-row span{display:grid;gap:2px}.alarm-date-row small,.alarm-title-row small{color:var(--muted)}.alarm-date-row input{max-width:150px;border:0;background:transparent;color:var(--text);font:inherit;font-weight:750}.alarm-title-row input{max-width:190px;border:0;background:transparent;color:var(--text);font:inherit;text-align:right;outline:none}.alarm-toggle-row{grid-template-columns:1fr auto}.alarm-toggle-row>span{display:flex;align-items:center;gap:10px}.alarm-more-options{border:1px solid var(--border);border-radius:16px;background:var(--surface)}.alarm-more-options summary{padding:14px;font-weight:800;cursor:pointer}.alarm-more-options>div{display:grid;gap:12px;padding:0 14px 14px}.alarm-native-note{margin:0;text-align:center;color:var(--muted);font-size:.82rem}.alarm-clock-editor label.switch{display:block;position:relative;flex:none;width:52px;height:30px;min-width:52px;padding:3px;border:0;border-radius:999px;background:color-mix(in srgb,var(--muted) 36%,var(--surface));cursor:pointer;box-sizing:border-box;transition:background .2s ease,box-shadow .2s ease}.alarm-clock-editor label.switch::after{content:"";position:absolute;left:3px;top:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 2px 7px rgba(0,0,0,.28);transition:transform .22s cubic-bezier(.2,.85,.25,1)}.alarm-clock-editor label.switch:has(input:checked){background:#0c66e4;box-shadow:0 0 0 3px rgba(12,102,228,.2)}.alarm-clock-editor label.switch:has(input:checked)::after{transform:translateX(22px)}.alarm-clock-editor label.switch:has(input:focus-visible){outline:3px solid #0c66e4;outline-offset:3px}.alarm-clock-editor label.switch input{position:absolute!important;inline-size:1px!important;block-size:1px!important;opacity:0!important;pointer-events:none}.alarm-clock-editor label.switch>span{display:none!important;min-width:0!important}@media(max-width:520px){.alarm-clock-editor{gap:10px}.alarm-time-face{padding:12px 8px 8px}.alarm-date-row,.alarm-title-row,.alarm-toggle-row{min-height:52px;padding:8px 12px}.alarm-title-row input{max-width:145px}.modal:has(.alarm-clock-editor){width:calc(100% - 16px);max-height:calc(100dvh - 20px);border-radius:28px}.modal:has(.alarm-clock-editor) .modal-body{padding:12px}.modal:has(.alarm-clock-editor) .modal-footer{position:sticky;bottom:0;background:color-mix(in srgb,var(--surface) 94%,transparent);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);padding:10px 12px}}
.alarm-wheel-selector{position:relative;display:grid;grid-template-columns:minmax(74px,1fr) auto minmax(74px,1fr) minmax(76px,.8fr);align-items:center;gap:7px;width:min(100%,420px);height:174px;margin:4px 0 2px;overflow:hidden}.alarm-wheel-selector>b{z-index:3;font-size:3rem;line-height:1}.alarm-wheel-focus{position:absolute;z-index:0;left:0;right:0;top:58px;height:58px;border-top:1px solid rgba(255,255,255,.22);border-bottom:1px solid rgba(255,255,255,.22);border-radius:15px;background:rgba(255,255,255,.09);box-shadow:inset 0 0 18px rgba(255,255,255,.035);pointer-events:none}.alarm-wheel-column{z-index:2;height:174px;padding-block:58px;overflow-y:auto;overflow-x:hidden;scroll-snap-type:y mandatory;overscroll-behavior:contain;scrollbar-width:none;touch-action:pan-y;outline:none;mask-image:linear-gradient(to bottom,transparent 0,#000 29%,#000 71%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 29%,#000 71%,transparent 100%)}.alarm-wheel-column::-webkit-scrollbar{display:none}.alarm-wheel-column:focus-visible{border-radius:15px;box-shadow:inset 0 0 0 2px rgba(126,186,255,.75)}.alarm-wheel-item{display:grid;place-items:center;width:100%;height:58px;margin:0;padding:0;border:0;background:transparent;color:rgba(255,255,255,.36);font:700 clamp(1.55rem,7vw,2.45rem)/1 system-ui;scroll-snap-align:center;cursor:grab;transform:scale(.78);transition:color .18s ease,transform .2s cubic-bezier(.2,.8,.2,1),opacity .18s ease;user-select:none;-webkit-user-select:none}.alarm-wheel-item:active{cursor:grabbing}.alarm-wheel-item.is-selected{color:#fff;font-weight:850;transform:scale(1);text-shadow:0 4px 18px rgba(0,0,0,.22)}.alarm-wheel-period .alarm-wheel-item{font-size:clamp(1.05rem,4.4vw,1.45rem)}.alarm-repeat-days{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;margin:0;padding:0;border:0}.alarm-repeat-days legend{margin-bottom:8px;color:var(--muted);font-size:.75rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.alarm-repeat-days input{position:absolute;opacity:0;pointer-events:none}.alarm-repeat-days span{display:grid;place-items:center;aspect-ratio:1;border:1px solid var(--border);border-radius:50%;background:var(--surface);color:var(--muted);font-weight:800;cursor:pointer;transition:.16s ease}.alarm-repeat-days input:checked+span{border-color:#0c66e4;background:#0c66e4;color:#fff;box-shadow:0 5px 14px rgba(12,102,228,.35)}.alarm-toggle-row>span>span{display:grid;gap:2px}.alarm-toggle-row small{display:block;color:var(--muted);font-size:.72rem;font-weight:600}.alarm-toggle-row:has(.alarm-compact-select){grid-template-columns:minmax(0,1fr) auto auto}.alarm-compact-select{width:auto;max-width:145px;min-height:40px;padding:8px 28px 8px 10px;font-size:.78rem}@media(max-width:520px){.alarm-wheel-selector{grid-template-columns:minmax(64px,1fr) auto minmax(64px,1fr) minmax(66px,.78fr);gap:4px}.alarm-wheel-item{font-size:2rem}.alarm-wheel-period .alarm-wheel-item{font-size:1.08rem}.alarm-toggle-row:has(.alarm-compact-select){grid-template-columns:minmax(0,1fr) auto}.alarm-toggle-row:has(.alarm-compact-select)>.switch{grid-column:2;grid-row:1}.alarm-toggle-row:has(.alarm-compact-select)>.alarm-compact-select{grid-column:1/-1;width:100%;max-width:none}.alarm-repeat-days{gap:5px}.alarm-repeat-days span{font-size:.75rem}}
.modal:has(.alarm-clock-editor),.modal:has(.alarm-clock-editor) .modal-body{overflow-x:hidden}.alarm-clock-editor,.alarm-clock-editor>*{min-width:0;box-sizing:border-box}.alarm-time-face{width:100%}.alarm-wheel-column{min-width:0;max-width:100%}
.alarm-repeat-card{display:grid;gap:12px;padding:14px;border:1px solid var(--border);border-radius:18px;background:var(--surface-soft)}.alarm-repeat-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.alarm-repeat-heading>div:first-child{display:grid;gap:2px}.alarm-repeat-heading small{color:var(--muted);font-size:.74rem}.alarm-repeat-presets{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}.alarm-repeat-presets button{min-height:32px;padding:5px 9px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text);font:700 .69rem system-ui;cursor:pointer}.alarm-repeat-presets button:active{transform:scale(.96)}.alarm-repeat-limit{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding-top:11px;border-top:1px solid var(--border)}.alarm-repeat-limit[hidden],.alarm-repeat-limit label[hidden]{display:none}.alarm-repeat-limit label{display:grid;gap:5px;color:var(--muted);font-size:.72rem;font-weight:750}.alarm-repeat-limit label:first-child{grid-column:1/-1}.alarm-repeat-limit .input-control,.alarm-repeat-limit .select-control{min-height:42px}.alarm-schedule-summary{display:block;padding:11px 13px;border-radius:14px;background:var(--primary-soft);color:var(--text);font-size:.78rem;font-weight:700;line-height:1.4;text-align:center}@media(max-width:520px){.alarm-repeat-heading{display:grid}.alarm-repeat-presets{justify-content:flex-start}.alarm-repeat-limit{grid-template-columns:1fr}.alarm-repeat-limit label:first-child{grid-column:auto}}

/* Alarmas: jerarquía de reloj nativo, lectura inmediata y controles táctiles. */
.alarm-clock-list{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}.alarm-clock-card{display:grid;gap:14px;min-width:0;padding:20px;border:1px solid var(--border);border-radius:24px;background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 96%,var(--primary-soft)),var(--surface));box-shadow:var(--elevation-1);opacity:.68;transition:transform .24s cubic-bezier(.2,.8,.2,1),opacity .2s ease,border-color .2s ease,box-shadow .2s ease}.alarm-clock-card.is-enabled{opacity:1;border-color:color-mix(in srgb,var(--brand) 34%,var(--border));box-shadow:var(--elevation-2)}.alarm-clock-card:hover{transform:translateY(-2px)}.alarm-clock-card-main{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.alarm-clock-time{display:flex;align-items:baseline;gap:8px;letter-spacing:-.045em}.alarm-clock-time strong{font:760 clamp(2.7rem,6vw,4.25rem)/.95 system-ui;color:var(--text)}.alarm-clock-time span{font-size:1rem;font-weight:750;color:var(--muted);letter-spacing:0}.alarm-clock-meta{display:grid;gap:4px}.alarm-clock-meta>strong{font-size:1.02rem}.alarm-clock-meta>span,.alarm-clock-meta>small{color:var(--muted)}.alarm-clock-meta>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.alarm-clock-features{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding-top:12px;border-top:1px solid var(--border)}.alarm-clock-features>span{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:999px;background:var(--surface-soft);color:var(--muted);font-size:.7rem;font-weight:750}.alarm-clock-features .icon{width:14px;height:14px;color:var(--brand)}.alarm-clock-features>.action-button{margin-left:auto}.alarm-time-face{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(circle at 78% 18%,rgba(84,164,255,.42),transparent 31%),radial-gradient(circle at 18% 88%,rgba(111,75,215,.35),transparent 38%),linear-gradient(145deg,#07152e,#102e5d 64%,#123c72)}.alarm-time-face::before{content:"";position:absolute;z-index:-1;inset:-45%;background:conic-gradient(from 20deg,transparent,rgba(255,255,255,.08),transparent 28%,rgba(92,178,255,.11),transparent 56%);animation:alarm-ambient 14s linear infinite}.alarm-wheel-focus{background:linear-gradient(90deg,rgba(255,255,255,.035),rgba(255,255,255,.13),rgba(255,255,255,.035));box-shadow:inset 0 1px rgba(255,255,255,.18),inset 0 -1px rgba(255,255,255,.12),0 10px 30px rgba(0,0,0,.12)}@keyframes alarm-ambient{to{transform:rotate(1turn)}}
.alarm-time-heading{position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:0 8px;color:rgba(255,255,255,.82)}.alarm-time-heading>span{font-size:.72rem;font-weight:850;letter-spacing:.12em;text-transform:uppercase}.alarm-time-heading output{max-width:58%;padding:6px 10px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(2,13,34,.2);font-size:.68rem;font-weight:700;line-height:1.2;text-align:right;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}.alarm-sky-orb,.alarm-sky-stars{position:absolute;z-index:0;pointer-events:none;transition:opacity .35s ease,transform .5s cubic-bezier(.2,.8,.2,1),background .35s ease}.alarm-sky-orb{right:22px;top:49px;width:48px;height:48px;border-radius:50%}.alarm-time-face[data-period="AM"] .alarm-sky-orb{background:linear-gradient(145deg,#fff8b1,#ffc43d 68%,#f19918);box-shadow:0 0 16px rgba(255,207,77,.7),0 0 52px rgba(255,190,54,.35);transform:translateY(0) scale(1)}.alarm-time-face[data-period="PM"] .alarm-sky-orb{background:linear-gradient(145deg,#f8fbff,#a8c9ff);box-shadow:-13px 8px 0 -3px #102e5d,0 0 22px rgba(175,210,255,.46);transform:translateY(4px) scale(.9)}.alarm-sky-stars{inset:35px 12px 16px 45%;opacity:0;background:radial-gradient(circle at 12% 24%,#fff 0 1px,transparent 2px),radial-gradient(circle at 42% 12%,#fff 0 1px,transparent 2px),radial-gradient(circle at 78% 36%,#d8e9ff 0 1px,transparent 2px),radial-gradient(circle at 61% 72%,#fff 0 1px,transparent 2px),radial-gradient(circle at 92% 78%,#d8e9ff 0 1px,transparent 2px)}.alarm-time-face[data-period="PM"] .alarm-sky-stars{opacity:.68}.alarm-wheel-selector{z-index:2}
@media(max-width:620px){.alarm-clock-list{grid-template-columns:1fr}.alarm-clock-card{padding:18px;border-radius:22px}.alarm-clock-time strong{font-size:3.35rem}.modal:has(.alarm-clock-editor){inset:0!important;width:100%!important;max-width:none!important;height:100dvh!important;max-height:none!important;border-radius:0!important}.modal:has(.alarm-clock-editor) .modal-header{padding:max(14px,env(safe-area-inset-top)) 18px 12px}.modal:has(.alarm-clock-editor) .modal-body{padding:10px 14px 120px;overscroll-behavior:contain}.modal:has(.alarm-clock-editor) .modal-footer{position:fixed;z-index:4;left:0;right:0;bottom:0;padding:10px 14px max(10px,env(safe-area-inset-bottom));border-top:1px solid var(--border);background:color-mix(in srgb,var(--surface) 80%,transparent);backdrop-filter:blur(22px) saturate(165%);-webkit-backdrop-filter:blur(22px) saturate(165%)}.modal:has(.alarm-clock-editor) .modal-footer button{min-height:50px;flex:1}.alarm-clock-editor{width:min(100%,520px)}.alarm-time-face{min-height:232px;border-radius:28px}.alarm-wheel-selector{height:194px}.alarm-wheel-column{height:194px;padding-block:68px}.alarm-wheel-focus{top:68px}.alarm-wheel-item{height:58px}.alarm-repeat-card,.alarm-date-row,.alarm-title-row,.alarm-toggle-row,.alarm-more-options{border-radius:20px}}
@media(max-width:520px){.alarm-time-heading output{max-width:55%;font-size:.62rem}.alarm-sky-orb{right:16px;top:47px;width:42px;height:42px}}
@media(prefers-reduced-motion:reduce){.alarm-time-face::before{animation:none}.alarm-clock-card,.alarm-sky-orb,.alarm-sky-stars{transition:none}}
.governance-export-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
@media(max-width:640px){.governance-export-actions{display:grid;grid-template-columns:1fr}.governance-export-actions .secondary-button{width:100%}}
.permission-editor{border:1px solid var(--border);border-radius:16px;padding:16px;margin:0;min-width:0;background:var(--surface-soft)}
.permission-editor legend{padding:0 8px;font-weight:800;color:var(--text)}
.permission-editor>p{margin:0 0 12px;color:var(--muted);font-size:.86rem}
.permission-editor>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.permission-editor label{display:flex;align-items:center;gap:9px;min-height:44px;padding:9px 11px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}
.permission-editor input{width:18px;height:18px;accent-color:var(--primary)}
@media(max-width:600px){.permission-editor>div{grid-template-columns:1fr}}
.suite-offline-badge{display:inline-flex;align-items:center;gap:8px;margin:0 0 16px;padding:8px 12px;border-radius:999px;background:var(--success-soft,#e8f6ee);color:var(--success,#16794b);font-size:.8rem;font-weight:800}
.suite-record-list{display:grid;gap:10px}
.suite-record-list>article{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:14px;border:1px solid var(--border);border-left:4px solid var(--primary);border-radius:14px;background:var(--surface-soft)}
.suite-record-list article>div{min-width:0}.suite-record-list strong,.suite-record-list small,.suite-record-list p{display:block}.suite-record-list small{margin-top:4px;color:var(--muted)}.suite-record-list p{margin:7px 0 0;color:var(--text);overflow-wrap:anywhere}
.suite-priority-high,.suite-expiry-critical,.suite-expiry-expired,.suite-risk-high{border-left-color:#d33!important}.suite-priority-medium,.suite-expiry-warning,.suite-risk-medium{border-left-color:#e2a100!important}.suite-expiry-notice{border-left-color:#3486c7!important}.suite-priority-low,.suite-expiry-ok,.suite-risk-low{border-left-color:#16845b!important}
.operational-suite-page textarea.input-control{min-height:110px;resize:vertical}
.suite-status-strip{display:flex;align-items:center;gap:10px;margin:0 0 14px;padding:9px 12px;border:1px solid var(--border);border-radius:14px;background:color-mix(in srgb,var(--surface-2) 82%,transparent);color:var(--muted);font-size:.76rem}.suite-status-strip .suite-offline-badge{margin:0;padding:5px 9px;border-radius:999px;background:color-mix(in srgb,#16845b 14%,var(--surface));color:#16845b;font-weight:800}.operational-suite-page>.two-column{align-items:start}.operational-suite-page .panel{box-shadow:0 12px 34px color-mix(in srgb,var(--navy) 7%,transparent)}
.suite-empty{min-height:210px;display:grid;place-items:center;align-content:center;gap:7px;text-align:center}.suite-empty>span{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:var(--navy-soft);color:var(--navy);font-size:1.6rem}.suite-empty>strong{font-size:.95rem}.suite-empty>p{margin:0;max-width:30ch;color:var(--muted)}
.suite-live-briefing{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;margin:0 0 16px;padding:14px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}.suite-live-briefing strong,.suite-live-briefing small{display:block}.suite-live-briefing small{color:var(--muted);margin-top:3px}.suite-live-actions{display:flex;gap:8px}.suite-live-briefing pre{grid-column:1/-1;max-height:230px;overflow:auto;margin:0;padding:12px;border-radius:12px;background:var(--surface-2);white-space:pre-wrap;font:600 .75rem/1.5 ui-monospace,monospace}.suite-defect-photo{width:72px;height:54px;object-fit:cover;border-radius:10px;border:1px solid var(--border)}
@media(max-width:620px){.suite-live-briefing{grid-template-columns:1fr}.suite-live-actions{display:grid;grid-template-columns:1fr 1fr}.suite-live-actions>*{justify-content:center}.suite-defect-photo{width:58px;height:46px}}
.bulk-import-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}.bulk-import-result{margin-top:12px;padding:12px;border:1px dashed var(--border);border-radius:12px;background:var(--surface-2);color:var(--muted)}.bulk-import-result strong,.bulk-import-result small{display:block}.bulk-import-result small{margin-top:5px}@media(max-width:620px){.bulk-import-grid{grid-template-columns:1fr}.bulk-import-grid button{width:100%}}

/* v57 · refinamiento global de experiencia y jerarquía visual */
:root{
  --content-max:1440px;
  --control-height:48px;
  --surface-glass:color-mix(in srgb,var(--surface) 88%,transparent);
  --border-strong:color-mix(in srgb,var(--border) 72%,var(--text) 12%);
  --elevation-1:0 1px 2px rgba(13,43,96,.04),0 8px 24px rgba(13,43,96,.06);
  --elevation-2:0 2px 5px rgba(13,43,96,.05),0 18px 48px rgba(13,43,96,.10);
}
[data-theme="dark"]{
  --surface-glass:color-mix(in srgb,var(--surface) 82%,transparent);
  --border-strong:color-mix(in srgb,var(--border) 78%,white 12%);
  --elevation-1:0 1px 2px rgba(0,0,0,.18),0 10px 28px rgba(0,0,0,.20);
  --elevation-2:0 3px 8px rgba(0,0,0,.22),0 22px 55px rgba(0,0,0,.28);
}
body{font-feature-settings:"kern" 1,"liga" 1;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
::selection{background:color-mix(in srgb,var(--brand) 24%,transparent);color:var(--text)}
.page{width:min(100%,var(--content-max));container-type:inline-size}
.page-header{align-items:center;margin-bottom:clamp(18px,2.4vw,30px);padding-bottom:clamp(14px,1.8vw,22px);border-bottom:1px solid color-mix(in srgb,var(--border) 72%,transparent)}
.page-header-copy{max-width:820px}
.page-header h1{font-size:clamp(1.75rem,3vw,2.65rem);line-height:1.04;letter-spacing:-.047em;text-wrap:balance}
.page-header p{max-width:72ch;font-size:clamp(.86rem,1.15vw,.98rem);line-height:1.55;text-wrap:pretty}
.breadcrumb{font-size:.69rem;letter-spacing:.115em;text-transform:uppercase}
.page-actions{align-items:center}
.panel{border-color:color-mix(in srgb,var(--border) 86%,transparent);box-shadow:var(--elevation-1)}
.panel-header{min-height:68px;padding:16px clamp(16px,2vw,24px);background:linear-gradient(180deg,color-mix(in srgb,var(--surface) 98%,white 2%),var(--surface))}
.panel-header h2,.panel-header h3{font-size:clamp(.98rem,1.35vw,1.14rem);letter-spacing:-.018em}
.panel-header p{font-size:.77rem;line-height:1.42}
.panel-body{padding:clamp(16px,2vw,24px)}
.primary-button,.secondary-button,.danger-button{min-height:var(--control-height);border-radius:14px;font-weight:780;letter-spacing:-.01em;transition:transform var(--motion-fast) var(--motion-ease),box-shadow var(--motion-normal) var(--motion-ease),background-color var(--motion-fast) ease,border-color var(--motion-fast) ease}
.primary-button{box-shadow:0 8px 22px color-mix(in srgb,var(--navy) 24%,transparent)}
.primary-button:hover{box-shadow:0 12px 28px color-mix(in srgb,var(--navy) 30%,transparent)}
.secondary-button{border-color:var(--border-strong)}
.primary-button:active,.secondary-button:active,.danger-button:active{transform:translateY(0) scale(.985)}
.action-button,.round-button{min-width:44px;min-height:44px}
.input-control,.select-control,.textarea-control{min-height:var(--control-height);border-color:var(--border-strong);border-radius:14px;background:color-mix(in srgb,var(--surface-2) 82%,var(--surface));transition:border-color var(--motion-fast) ease,box-shadow var(--motion-fast) ease,background var(--motion-fast) ease}
.input-control:hover,.select-control:hover,.textarea-control:hover{border-color:color-mix(in srgb,var(--brand) 34%,var(--border))}
.input-control:focus,.select-control:focus,.textarea-control:focus{border-color:var(--brand);background:var(--surface);box-shadow:0 0 0 4px color-mix(in srgb,var(--brand) 14%,transparent)}
.field{display:grid;gap:7px;font-size:.82rem;font-weight:730;line-height:1.3}
.field small{font-size:.72rem;line-height:1.45}
.tool-hub-card,.module-card,.dashboard-quick-action{border-color:color-mix(in srgb,var(--border) 88%,transparent);box-shadow:var(--elevation-1);transition:transform var(--motion-normal) var(--motion-ease),box-shadow var(--motion-normal) var(--motion-ease),border-color var(--motion-fast) ease}
.tool-hub-card:focus-visible,.module-card:focus-visible,.dashboard-quick-action:focus-visible{border-color:var(--brand);box-shadow:0 0 0 4px color-mix(in srgb,var(--brand) 13%,transparent),var(--elevation-2)}
.tool-hub-card h2,.module-card h3,.dashboard-quick-action strong{text-wrap:balance}
.tool-hub-card p,.module-card p,.dashboard-quick-action small{text-wrap:pretty}
.tab{min-height:42px;border-radius:12px;font-size:.75rem;transition:background var(--motion-fast) ease,color var(--motion-fast) ease,box-shadow var(--motion-fast) ease}
.tab.active{box-shadow:0 6px 16px color-mix(in srgb,var(--navy) 22%,transparent)}
.admin-tabs{scrollbar-width:none;overscroll-behavior-inline:contain;scroll-snap-type:x proximity}
.admin-tabs::-webkit-scrollbar{display:none}.admin-tabs .tab{scroll-snap-align:start}
.info-banner,.warning-banner{line-height:1.5}
.empty-state p{max-width:46ch;text-wrap:pretty}

@media (hover:hover) and (pointer:fine){
  .tool-hub-card:hover,.module-card:hover,.dashboard-quick-action:hover{transform:translateY(-3px);box-shadow:var(--elevation-2)}
}

@media(max-width:900px){
  :root{--control-height:46px}
  .page-container{padding-inline:max(16px,env(safe-area-inset-left)) max(16px,env(safe-area-inset-right))}
  .page-header{display:grid;align-items:start;gap:12px}
  .page-header-copy{width:100%}
  .page-actions{width:100%;justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding:2px 2px 5px;scrollbar-width:none;scroll-snap-type:x proximity}
  .page-actions::-webkit-scrollbar{display:none}.page-actions>*{flex:0 0 auto;scroll-snap-align:start}
  .form-grid,.form-grid.two,.form-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:620px){
  :root{--radius:19px;--radius-sm:13px}
  .page-container{padding-inline:max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right))}
  .page-header{margin-bottom:16px;padding-bottom:13px}
  .page-header h1{font-size:clamp(1.55rem,8vw,2rem)}
  .page-header p{font-size:.82rem;line-height:1.48}
  .breadcrumb{font-size:.62rem}
  .page-actions .primary-button,.page-actions .secondary-button,.page-actions .danger-button{min-height:42px;padding-inline:13px;font-size:.76rem}
  .panel-header{min-height:60px;padding:13px 14px}.panel-body{padding:14px}
  .panel-header p{font-size:.7rem}
  .form-grid,.form-grid.two,.form-grid.four{grid-template-columns:1fr;gap:12px}
  .form-grid>.span-2,.field.span-2{grid-column:auto}
  .tool-hub-card{min-height:0;grid-template-columns:52px minmax(0,1fr) 24px;gap:12px;padding:16px;border-radius:18px}
  .tool-hub-card h2{margin:2px 0 4px;font-size:1rem}.tool-hub-card p{font-size:.73rem;line-height:1.45}
  .tool-hub-icon{width:52px;height:52px;border-radius:16px}.tool-hub-icon .icon{width:24px;height:24px}
  .info-banner,.warning-banner{font-size:.76rem;padding:11px 12px;border-radius:14px}
  .modal{border-radius:24px 24px 0 0}.modal-header{padding:15px 16px}.modal-body{padding:14px}.modal-footer{padding:11px 14px}
}

@media(max-width:390px){
  .page-container{padding-inline:max(10px,env(safe-area-inset-left)) max(10px,env(safe-area-inset-right))}
  .page-header h1{font-size:1.5rem}.panel-body{padding:12px}.panel-header{padding:12px}
}
@media(max-width:700px){.suite-status-strip{justify-content:space-between}.operational-suite-page .page-header p{max-width:34ch}.operational-suite-page .panel-header,.operational-suite-page .panel-body{padding:14px}.operational-suite-page textarea.input-control{min-height:88px}}
@media(max-width:700px){.operational-suite-page .two-column{grid-template-columns:1fr}.suite-record-list>article{padding:12px}}
.crew-connect-room{margin-top:18px;border-top:1px solid var(--border);padding-top:16px}.crew-connect-messages{display:grid;gap:10px;max-height:52dvh;overflow:auto;padding:4px 2px 14px}.crew-connect-messages>article{max-width:82%;padding:11px 13px;border-radius:16px 16px 16px 5px;background:var(--surface-soft);border:1px solid var(--border)}.crew-connect-messages>article.own{margin-left:auto;border-radius:16px 16px 5px 16px;background:var(--primary-soft)}.crew-connect-messages strong,.crew-connect-messages small{display:block}.crew-connect-messages small{color:var(--muted);font-size:.72rem}.crew-connect-messages p{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.crew-connect-composer{display:grid;grid-template-columns:1fr auto;gap:10px;position:sticky;bottom:0;background:var(--surface);padding-top:10px}@media(max-width:560px){.crew-connect-composer{grid-template-columns:1fr}.crew-connect-messages>article{max-width:92%}}
.crew-room-create{margin-bottom:18px;border:1px solid var(--border);border-radius:18px;background:var(--surface-soft);overflow:hidden}.crew-room-create>summary{cursor:pointer;list-style:none;padding:14px 16px;font-weight:850;color:var(--primary)}.crew-room-create>form{padding:0 16px 16px}.crew-room-list{display:grid;gap:10px}.crew-room-card{border:1px solid var(--border);border-radius:18px;background:var(--surface);overflow:hidden}.crew-room-open{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;width:100%;padding:13px;border:0;background:transparent;color:var(--text);text-align:left;cursor:pointer}.crew-room-open:hover{background:var(--surface-soft)}.crew-room-open>span:nth-child(2){min-width:0}.crew-room-open strong,.crew-room-open small,.crew-room-open em{display:block}.crew-room-open small,.crew-room-open em{color:var(--muted);font-size:.76rem;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crew-room-avatar{display:grid;place-items:center;width:44px;height:44px;border-radius:15px;background:linear-gradient(145deg,var(--primary),var(--accent));color:#fff;font-weight:900}.crew-room-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.crew-room-toolbar>div{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center}.crew-room-toolbar strong,.crew-room-toolbar small{grid-column:2;display:block}.crew-room-toolbar small{color:var(--muted)}.crew-room-members{margin-bottom:14px;border:1px solid var(--border);border-radius:16px;padding:12px;background:var(--surface-soft)}.crew-room-members>summary{cursor:pointer;font-weight:800}.crew-room-member-form{display:grid;grid-template-columns:1fr auto;gap:8px;margin:12px 0}.crew-member-list{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}.crew-member-list>span{display:inline-flex;align-items:center;gap:5px;padding:7px 9px;border-radius:999px;background:var(--surface);border:1px solid var(--border);font-size:.78rem}.crew-member-list button{border:0;background:transparent;color:var(--danger);font-size:1.05rem;cursor:pointer}.crew-member-summary{margin-bottom:12px;color:var(--muted);font-size:.78rem}.suite-loading{padding:22px;text-align:center;color:var(--muted)}
@media(max-width:560px){.crew-room-toolbar{align-items:flex-start}.crew-room-toolbar>[data-copy-room-key]{font-size:0;width:44px;height:44px;padding:0}.crew-room-toolbar>[data-copy-room-key]::before{content:'⧉';font-size:1.2rem}.crew-room-member-form{grid-template-columns:1fr}.crew-room-open{padding:11px}.crew-room-avatar{width:40px;height:40px;border-radius:13px}}
.crew-room-avatar{background:linear-gradient(145deg,var(--navy),var(--gold))}
.checklist-signoff{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;padding:14px 18px 18px;border-top:1px solid var(--border);background:var(--surface-soft)}.checklist-signoff .field{margin:0}.checklist-archive{margin-top:18px}@media(max-width:620px){.checklist-signoff{grid-template-columns:1fr}.checklist-signoff button{width:100%}}

.per-diem-guide-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 16px;padding:0;counter-reset:per-diem-step;list-style:none}
.per-diem-guide-steps li{position:relative;min-height:112px;padding:16px 16px 16px 58px;border:1px solid var(--border);border-radius:16px;background:var(--surface-soft);counter-increment:per-diem-step}
.per-diem-guide-steps li::before{content:counter(per-diem-step);position:absolute;left:16px;top:16px;display:grid;place-items:center;width:30px;height:30px;border-radius:11px;background:var(--primary);color:#fff;font-weight:900}
.per-diem-guide-steps strong,.per-diem-guide-steps span{display:block}.per-diem-guide-steps strong{margin-bottom:5px;color:var(--text)}.per-diem-guide-steps span{color:var(--muted);font-size:.82rem;line-height:1.5}
@media(max-width:700px){.per-diem-guide-steps{grid-template-columns:1fr}.per-diem-guide-steps li{min-height:0;padding:14px 14px 14px 54px}.per-diem-guide-steps li::before{left:13px;top:13px}}

/* Tabla 6 y calculadora: la tabla conserva su semántica y usa desplazamiento horizontal en móvil. */
@media (max-width:600px){
  .table6-panel{margin-top:12px}
  .table6-panel>.panel-header{align-items:center;gap:8px;padding:12px}
  .table6-panel>.panel-header>div:first-child{min-width:0}
  .table6-panel>.panel-header h2{font-size:1rem}
  .table6-panel>.panel-header p{font-size:.68rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .table6-heading-actions{flex:0 0 auto}
  .table6-expand{min-height:38px;padding:8px 10px;border-radius:12px}
  .table6-expand span{font-size:0}
  .table6-expand span::after{content:'Ampliar';font-size:.68rem}
  .table6-panel>.panel-body{padding:10px}
  .table6-region-guide{display:flex;grid-template-columns:none;gap:8px;overflow-x:auto;margin:0 -1px 8px;padding:1px 1px 5px;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .table6-region-guide::-webkit-scrollbar{display:none}
  .table6-region-guide article{flex:0 0 min(82%,270px);min-height:82px;padding:10px;scroll-snap-align:start}
  .table6-region-guide strong{font-size:.76rem;line-height:1.35}
  .table6-region-guide span,.table6-region-guide small{font-size:.64rem;line-height:1.4}
  .table6-region-guide b{font-size:.76rem}
  .table6-swipe-hint{display:flex}
  .table6-scroll{overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
  .table6-table{width:740px;min-width:740px;table-layout:fixed}
  .table6-table th,.table6-table td{padding:10px 9px}
  .table6-table thead th{font-size:.66rem;line-height:1.3}
  .table6-table thead th:nth-child(1){width:88px}
  .table6-table thead th:nth-child(2){width:98px}
  .table6-table tbody th,.table6-table tbody td{font-size:.7rem;line-height:1.35}
  .table6-table tbody td small{font-size:.58rem;line-height:1.35}
  .table6-rate{grid-template-columns:36px minmax(0,1fr);gap:9px;padding:10px}
  .table6-rate>span{width:36px;height:36px}
  .table6-rate button{grid-column:1/-1;width:100%}
  .table6-rate-controls{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end}
  .table6-rate-controls .input-control{width:100%}
  .table6-rate-controls button{grid-column:auto;width:100%}
  .per-diem-page .page-header{gap:10px}
  .per-diem-page .page-header h1{font-size:1.55rem}
  .per-diem-page .page-header p{font-size:.74rem}
  .per-diem-workspace{display:grid;grid-template-columns:1fr;gap:12px}
  .per-diem-workspace>.panel>.panel-header,.per-diem-result-panel>.panel-header{padding:12px}
  .per-diem-workspace>.panel>.panel-body,.per-diem-result-panel>.panel-body{padding:10px}
  .per-diem-result-panel{position:static}
  .per-diem-result-hero{min-height:112px;margin:-10px -10px 10px;padding:15px}
  .per-diem-result-hero strong{font-size:clamp(2rem,11vw,2.7rem)}
  .per-diem-kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .per-diem-kpis>div{padding:9px 5px}
  .per-diem-breakdown{overflow-x:auto}
  .per-diem-total-lines{margin:10px 0;padding:10px}
}
@media (max-width:600px) and (orientation:landscape){
  .table6-panel.table6-fullscreen>.panel-header,.table6-panel:fullscreen>.panel-header{padding:8px 14px}
  .table6-panel.table6-fullscreen>.panel-body,.table6-panel:fullscreen>.panel-body{padding:8px 14px}
  .table6-panel.table6-fullscreen .table6-region-guide,.table6-panel:fullscreen .table6-region-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;margin-bottom:7px}
  .table6-panel.table6-fullscreen .table6-region-guide article,.table6-panel:fullscreen .table6-region-guide article{min-height:0;padding:7px 9px}
  .table6-panel.table6-fullscreen .table6-swipe-hint,.table6-panel:fullscreen .table6-swipe-hint{display:none}
  .table6-panel.table6-fullscreen .table6-scroll,.table6-panel:fullscreen .table6-scroll{overflow:auto}
  .table6-panel.table6-fullscreen .table6-table,.table6-panel:fullscreen .table6-table{width:100%;min-width:740px}
}
/* Registro seguro y aprobación administrativa */
.access-request-block .request-access-button{width:100%;justify-content:center;margin-top:10px}
.registration-form-intro,.registration-control-bar{display:flex;align-items:center;gap:14px;padding:16px;border:1px solid var(--border);border-radius:18px;background:var(--surface-2)}
.registration-form-intro{margin-bottom:18px}.registration-form-intro>span{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;background:var(--navy-soft);color:var(--brand);flex:0 0 auto}.registration-form-intro p,.registration-control-bar small{display:block;margin:4px 0 0;color:var(--muted)}
.registration-result{text-align:center;display:grid;justify-items:center;gap:12px;padding:12px}.registration-result>span{display:grid;place-items:center;width:66px;height:66px;border-radius:22px;background:var(--primary-soft);color:var(--primary)}.registration-result .primary-button{margin-top:6px}
.registration-control-bar{margin-bottom:16px;flex-wrap:wrap}.registration-control-bar>div{display:grid;gap:3px;min-width:240px;flex:1}.registration-control-bar label{display:grid;gap:5px;min-width:220px}.registration-pending-card{border-color:color-mix(in srgb,var(--warning) 55%,var(--border));box-shadow:inset 4px 0 0 var(--warning)}
@media(max-width:700px){.registration-control-bar{align-items:stretch}.registration-control-bar label,.registration-control-bar .secondary-button{width:100%}.registration-form-intro{align-items:flex-start}.registration-result .primary-button{width:100%}}
