@import url('data:text/css,');

: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;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[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);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); }
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; }

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  position: relative;
  overflow: 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; }
.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; }
.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);
}
.topbar-leading { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand-button { 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: cover; }
.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: transform .24s ease, opacity .2s ease;
}
.app-shell.sidebar-collapsed .sidebar { transform: translateX(-100%); opacity: 0; pointer-events: none; }
.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; }
.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; }
.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; }

.page-container { min-height: 100vh; 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: 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: .28; 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; }
.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: .32; 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); }
.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.whatsapp { color: #147a45; background: #ebf8f1; }

.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.served { background: var(--navy); }
.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: 82px; padding: 8px 7px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; align-items: center; 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.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 small { grid-column: 1 / -1; align-self: end; color: var(--muted); font-size: 8px; font-weight: 750; }
.business-seat.served small { color: rgba(255,255,255,.72); }
.business-seat em { grid-column: 1 / -1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; font-size: 8px; font-style: normal; }
.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: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); color: var(--navy); }
.counter button .icon { width: 14px; }
.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: 7px; }
.weekday { padding: 5px; color: var(--muted); text-align: center; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.calendar-day { min-height: 88px; padding: 9px; position: relative; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-2); color: var(--text); text-align: left; }
.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 { font-size: 11px; font-weight: 750; }
.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-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(3,1fr); gap: 10px; margin-top: 14px; }
.summary-chip { padding: 13px; border-radius: 13px; color: white; background: var(--shift); }
.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; }
.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-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(3,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; }
.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(88vh, 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; }
}
@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; }
  .sidebar { display: none; }
  .sidebar-toggle { display: none; }
  .page-container { padding: calc(var(--topbar) + 22px) 18px 100px; }
  .app-shell.sidebar-collapsed .page-container { padding: calc(var(--topbar) + 22px) 18px 100px; }
  .topbar { padding: 0 16px; }
  .brand-button img { width: 54px; height: 43px; }
  .brand-button small, .profile-copy, .profile-button > .icon { display: none; }
  .profile-button { border: 0; padding: 0; }
  .mobile-nav { position: fixed; z-index: 50; display: flex; align-items: center; justify-content: space-around; gap: 2px; bottom: 0; left: 0; right: 0; min-height: 69px; padding: 6px 7px max(6px, env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 96%, transparent); border-top: 1px solid var(--border); backdrop-filter: blur(16px); }
  .mobile-nav .nav-item { width: auto; min-width: 54px; min-height: 49px; padding: 5px 7px; display: grid; justify-items: center; gap: 2px; font-size: 8px; box-shadow: none; }
  .mobile-nav .nav-item.active { box-shadow: none; }
  .mobile-nav .nav-item .icon { width: 20px; height: 20px; }
  .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; }
  .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)); }
}

@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; }
  .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: 73px; }
  .business-seat.seat-button { min-height: 73px; 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 small { font-size: 7px; }
  .business-seat em { display: none; }
  .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; }
  .calendar-grid { gap: 4px; }
  .calendar-day { min-height: 65px; padding: 6px; border-radius: 10px; }
  .calendar-day .day-shift { left: 5px; right: 5px; bottom: 5px; min-height: 22px; }
  .calendar-day.plan-day .day-shift { padding-inline: 4px; font-size: 7px; }
  .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-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: 92vh; 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: 96vh; }
}

/* 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 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; }
.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-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: 38px minmax(0,1fr); }
  .regulation-status > b,.currency-source-strip > b,.currency-source-strip > button { grid-column: 2; width: fit-content; }
  .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: 240px; padding: 20px; border-radius: 20px; }
  .official-rate-card footer { align-items: flex-start; flex-direction: column; }
  .p2p-rate-grid { grid-template-columns: 1fr; }
}

.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; }
}
