:root {
  --login-angle: 0deg;
  --ui-angle: 0deg;
  --bg: #eef6fb;
  --surface: #ffffff;
  --surface-soft: #e9f8ff;
  --text: #111827;
  --muted: #5d6b7a;
  --line: #cfe7f3;
  --primary: #00aeef;
  --primary-strong: #008fc7;
  --primary-deep: #005f86;
  --success: #12845b;
  --warning: #a65f00;
  --danger: #b42318;
  --teal: #00a7b5;
  --ink: #05080d;
  --ink-soft: #0b1220;
  --shadow: 0 18px 44px rgba(0, 95, 134, 0.12);
  --shadow-strong: 0 28px 80px rgba(0, 20, 35, 0.26);
}

@property --login-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@property --ui-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 174, 239, 0.22), transparent 34rem),
    radial-gradient(circle at 84% 4%, rgba(0, 167, 181, 0.14), transparent 30rem),
    linear-gradient(135deg, #f7fcff, #e8f5fb 48%, #eff8ff),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  max-height: 100vh;
  background:
    radial-gradient(circle at 18% 10%, rgba(0, 174, 239, 0.36), transparent 14rem),
    radial-gradient(circle at 80% 82%, rgba(0, 95, 134, 0.34), transparent 16rem),
    linear-gradient(180deg, rgba(5, 8, 13, 0.98), rgba(3, 10, 18, 0.99));
  color: #eef6ff;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: clip;
  border-right: 1px solid rgba(141, 239, 255, 0.13);
  box-shadow: 18px 0 54px rgba(0, 31, 54, 0.28);
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(0, 245, 255, 0.72), transparent);
  filter: drop-shadow(0 0 12px rgba(0, 174, 239, 0.9));
  pointer-events: none;
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-pro {
  align-items: center;
}

.brand-logo-card {
  display: grid;
  place-items: center;
  width: 168px;
  min-height: 54px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow:
    0 0 0 1px rgba(0, 174, 239, 0.1) inset,
    0 16px 36px rgba(0, 174, 239, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.brand-logo-card:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(0, 174, 239, 0.18) inset,
    0 20px 44px rgba(0, 174, 239, 0.3);
}

.brand-logo {
  display: block;
  width: 100%;
  max-height: 38px;
  object-fit: contain;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #58d7ff, #00aeef 58%, #05080d);
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(31, 111, 235, 0.32);
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
}

.brand-identity {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.brand-connection {
  --connection-color: #40dda4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #dffdf2;
}

.brand-connection.offline {
  --connection-color: #ff766e;
  color: #ffe5e3;
}

.brand-connection-visual {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--connection-color) 52%, transparent);
  border-radius: 7px;
  color: var(--connection-color);
  background: color-mix(in srgb, var(--connection-color) 12%, rgba(5, 13, 21, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 14px color-mix(in srgb, var(--connection-color) 18%, transparent);
}

.brand-connection-visual::before {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid color-mix(in srgb, var(--connection-color) 38%, transparent);
  border-radius: 9px;
  opacity: 0;
  pointer-events: none;
}

.brand-connection-visual .lucide {
  width: 12px;
  height: 12px;
  stroke-width: 2.2;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--connection-color) 65%, transparent));
}

.brand-connection-visual > b {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 6px;
  height: 6px;
  border: 2px solid #07111b;
  border-radius: 50%;
  background: var(--connection-color);
  box-shadow: 0 0 8px color-mix(in srgb, var(--connection-color) 82%, transparent);
}

.brand-connection-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.brand-connection-copy strong,
.brand-connection-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-connection-copy strong {
  color: currentColor;
  font-size: 10px;
  font-weight: 850;
}

.brand-connection-copy small {
  color: #8fa8b9;
  font-size: 8px;
}

.brand-subtitle {
  color: #9fb0c4;
  font-size: 12px;
}

.nav {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  flex: 0 1 auto;
}

.nav button {
  --nav-accent: #58d7ff;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 10px;
  color: #c9d7e6;
  background: rgba(255, 255, 255, 0.038);
  border-radius: 8px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav button[data-view="dashboard"] { --nav-accent: #59dbff; }
.nav button[data-view="calendar"] { --nav-accent: #5ca8ff; }
.nav button[data-view="reception"] { --nav-accent: #40d6b2; }
.nav button[data-view="rooms"] { --nav-accent: #83dca7; }
.nav button[data-view="requests"] { --nav-accent: #ffc15a; }
.nav button[data-view="notifications"] { --nav-accent: #ff86a0; }
.nav button[data-view="users"] { --nav-accent: #bca0ff; }
.nav button[data-view="audit"] { --nav-accent: #77c9ff; }
.nav button[data-view="security"] { --nav-accent: #52e0c0; }

.nav button::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--nav-accent) 55%, #ffffff), var(--nav-accent));
  opacity: 0;
  box-shadow: 0 0 18px color-mix(in srgb, var(--nav-accent) 72%, transparent);
  transition: opacity 180ms ease;
}

.nav button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 32%, rgba(255, 255, 255, 0.16) 46%, transparent 60% 100%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.nav button.active,
.nav button:hover {
  color: #ffffff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--nav-accent) 23%, transparent), rgba(255, 255, 255, 0.075));
  border-color: color-mix(in srgb, var(--nav-accent) 38%, transparent);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--nav-accent) 13%, transparent);
}

.nav button:hover {
  transform: translateX(2px);
}

.nav button:active {
  transform: translateX(1px) scale(0.99);
}

.nav button.active::before,
.nav button:hover::before {
  opacity: 1;
}

.nav button:hover::after {
  transform: translateX(120%);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #dff7ff;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 700;
}

.sidebar .pill {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.sidebar .nav button[data-view="requests"] .pill {
  min-width: 31px;
  border: 1px solid rgba(130, 239, 255, 0.42);
  color: #fff;
  background: linear-gradient(135deg, #00aedc, #1768d4);
  box-shadow: 0 0 0 3px rgba(0, 174, 220, 0.09), 0 7px 16px rgba(0, 113, 173, 0.24);
}

.profile {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(0, 174, 239, 0.1));
  border: 1px solid rgba(141, 239, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(0, 31, 54, 0.22);
}

.profile strong,
.profile span {
  display: block;
  overflow-wrap: anywhere;
}

.profile span {
  color: #b9c8d8;
  font-size: 12px;
  margin-top: 4px;
}

.main {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.topbar h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
}

.topbar p {
  margin: 6px 0 0;
  color: var(--muted);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 700;
  border: 1px solid transparent;
  box-shadow: 0 8px 20px rgba(22, 32, 42, 0.06);
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease, opacity 170ms ease, border-color 170ms ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.34), transparent 35%);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 180ms ease, transform 260ms ease;
  pointer-events: none;
}

.btn:hover::after {
  opacity: 1;
  transform: scale(1.15);
}

.btn:hover,
.icon-btn:hover,
.event:hover,
.quick-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(22, 32, 42, 0.14);
}

.clicked {
  transform: translateY(1px) scale(0.99) !important;
}

.clicked::after {
  opacity: 1 !important;
  transform: scale(1.45) !important;
  transition-duration: 120ms !important;
}

.btn.primary {
  background: linear-gradient(135deg, #00aeef, #007fb5);
  color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(141, 239, 255, 0.28) inset,
    0 14px 32px rgba(0, 174, 239, 0.26);
}

.btn.light {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.26);
}

.btn.success {
  background: var(--success);
  color: #ffffff;
}

.btn.danger {
  background: #ffebe9;
  color: var(--danger);
}

.btn.logout {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 0;
  background: linear-gradient(135deg, #e10600, #9b0000);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 34px rgba(225, 6, 0, 0.34);
}

.btn.logout:hover {
  background: linear-gradient(135deg, #ff1f17, #b00000);
  box-shadow: 0 18px 42px rgba(225, 6, 0, 0.46);
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
}

.btn.wide {
  width: 100%;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.reception-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.reception-grid .panel:first-child {
  grid-row: span 2;
}

.panel {
  min-width: 0;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 255, 0.96));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 174, 239, 0.52), transparent);
  opacity: 0.8;
}

.panel::after {
  content: "";
  position: absolute;
  inset: auto 12% -70px;
  height: 110px;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.12), transparent 68%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.panel:hover {
  transform: translateY(-1px);
  border-color: #b7dff1;
  box-shadow: 0 22px 58px rgba(0, 95, 134, 0.14);
}

.panel:hover::after {
  opacity: 1;
}

.panel-gap {
  margin-top: 18px;
}

.calendar-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(247, 252, 255, 0.38));
}

.panel-header h2 {
  margin: 0;
  font-size: 17px;
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(22, 32, 42, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekdays {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.weekdays span {
  padding: 12px 10px;
}

.day {
  min-height: 118px;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.day:hover {
  background: #f7fbff;
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(0, 174, 239, 0.12);
}

.day:nth-child(7n) {
  border-right: 0;
}

.day.muted {
  background: #f7f9fc;
  color: #96a2b1;
}

.day.today {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.day-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
}

.event {
  display: block;
  width: 100%;
  margin: 5px 0;
  padding: 7px 8px;
  border-radius: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  text-align: left;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.event:hover {
  filter: saturate(1.1);
  box-shadow: 0 10px 24px rgba(0, 95, 134, 0.18);
}

.event strong,
.event span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event span {
  font-size: 11px;
  opacity: 0.9;
}

.event.red {
  background: linear-gradient(135deg, #dc2626, #991b1b);
}

.event.orange {
  background: linear-gradient(135deg, #b45309, #92400e);
}

.stack {
  display: grid;
  gap: 14px;
}

.side-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.item:hover {
  transform: translateY(-2px) scale(1.002);
  border-color: #b9dff0;
  background: linear-gradient(180deg, #ffffff, #f7fcff);
  box-shadow: 0 16px 34px rgba(0, 95, 134, 0.11);
}

.item-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 800;
}

.item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.status:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 95, 134, 0.12);
}

.status.pending {
  background: #fff4d6;
  color: var(--warning);
}

.status.free,
.status.low {
  background: #dcfce7;
  color: var(--success);
}

.status.busy,
.status.high {
  background: #fee2e2;
  color: var(--danger);
}

.status.critical {
  background: linear-gradient(135deg, #7f1d1d, #dc2626);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.22);
}

.status.cleaning,
.status.medium,
.status.expected {
  background: #fff4d6;
  color: var(--warning);
}

.status.arrived {
  background: #e7f0ff;
  color: var(--primary-strong);
}

.status.left,
.status.cancelled {
  background: #e5e7eb;
  color: #4b5563;
}

.status.approved {
  background: #dcfce7;
  color: var(--success);
}

.status.rejected,
.status.deleted {
  background: #fee2e2;
  color: var(--danger);
}

.status.role {
  background: #e7f0ff;
  color: var(--primary-strong);
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--text);
}

.field textarea {
  resize: vertical;
  min-height: 84px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.notice {
  padding: 12px;
  border-radius: 8px;
  background: #edf7f5;
  color: #115e59;
  font-size: 13px;
  line-height: 1.45;
}

.muted-text {
  color: var(--muted);
}

.guide-panel {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: -4px 0 18px;
  padding: 14px 16px;
  border: 1px solid #cfe0f4;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 245, 255, 0.96));
  box-shadow: 0 12px 28px rgba(22, 32, 42, 0.07);
}

.guide-panel strong {
  min-width: 120px;
  color: var(--primary-strong);
}

.guide-panel span {
  color: var(--muted);
  line-height: 1.45;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: center;
  position: relative;
  min-height: 250px;
  margin-bottom: 18px;
  padding: 28px;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(5, 8, 13, 0.92), rgba(0, 52, 80, 0.52)),
    radial-gradient(circle at 82% 20%, rgba(0, 174, 239, 0.32), transparent 18rem),
    url("https://images.unsplash.com/photo-1557804506-669a67965ba0?auto=format&fit=crop&w=1600&q=80") center/cover;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0 35%, rgba(141, 239, 255, 0.18) 47%, transparent 59% 100%);
  transform: translateX(-110%);
  pointer-events: none;
}

.hero-band::after {
  content: "";
  position: absolute;
  inset: auto -20% -80px 22%;
  height: 170px;
  background: rgba(0, 174, 239, 0.34);
  filter: blur(48px);
}

.hero-band h2 {
  max-width: 760px;
  margin: 8px 0 0;
  font-size: 36px;
  line-height: 1.18;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.eyebrow {
  color: #baf0ff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.office-visual {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.office-visual span {
  min-height: 70px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 -28px 0 rgba(0, 174, 239, 0.46);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric {
  position: relative;
  min-height: 132px;
  padding: 18px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.metric:hover {
  transform: translateY(-4px);
  border-color: #addff2;
  box-shadow: 0 26px 58px rgba(0, 95, 134, 0.16);
}

.metric::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: var(--primary);
  box-shadow: 0 0 22px rgba(0, 174, 239, 0.48);
}

.metric::before {
  content: "";
  position: absolute;
  inset: -60% auto auto -30%;
  width: 44%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(0, 174, 239, 0.12), transparent);
  transform: rotate(18deg) translateX(-120%);
  transition: transform 620ms ease;
}

.metric:hover::before {
  transform: rotate(18deg) translateX(420%);
}

.metric.teal::after {
  background: var(--teal);
}

.metric.orange::after {
  background: #b45309;
}

.metric.red::after {
  background: var(--danger);
}

.metric span,
.metric small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.metric strong {
  display: block;
  margin: 8px 0;
  font-size: 36px;
  line-height: 1;
}

.room-grid {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.admin-room-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.room-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.room-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 95, 134, 0.12);
}

.room-card.free {
  border-left: 5px solid var(--success);
}

.room-card.busy {
  border-left: 5px solid var(--danger);
}

.room-card.cleaning {
  border-left: 5px solid var(--warning);
}

.room-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.room-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.item.done {
  opacity: 0.62;
}

.item.done .item-title span:first-child {
  text-decoration: line-through;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.table tbody tr {
  transition: background 160ms ease, transform 160ms ease;
}

.table tbody tr:hover {
  background: rgba(0, 174, 239, 0.045);
}

.empty {
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(14, 23, 38, 0.68);
  backdrop-filter: blur(8px);
}

.modal {
  width: min(720px, 100%);
  max-height: min(720px, 92vh);
  overflow: auto;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
}

.meeting-window-host {
  position: fixed;
  inset: 0;
  z-index: 19;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: none;
}

.meeting-window-host .modal {
  pointer-events: auto;
  transform: translate3d(var(--window-x, 0px), var(--window-y, 0px), 0);
}
.meeting-window-host .modal-header {
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.meeting-window-host .modal-header:active { cursor: grabbing; }
.meeting-window-host .meeting-minimize { margin-left: auto; font-size: 20px; }
.meeting-window-dock.btn {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 19;
  box-shadow: var(--shadow-strong);
}
body:has(.modal-backdrop, .day-sheet-backdrop) .meeting-window-dock { display: none; }

.meeting-approval-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 13px 14px;
  color: #0b3550;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.11), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(8, 145, 178, 0.25);
  border-left: 3px solid #0891b2;
  border-radius: 6px;
}

.meeting-approval-note > span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: #087ca7;
  border-radius: 50%;
  box-shadow: 0 7px 18px rgba(8, 124, 167, 0.2);
}

.meeting-approval-note .lucide {
  width: 18px;
  height: 18px;
}

.meeting-approval-note strong,
.meeting-approval-note p {
  display: block;
}

.meeting-approval-note p {
  margin: 3px 0 0;
  color: #587085;
  font-size: 13px;
  line-height: 1.45;
}

.modal-header,
.modal-body,
.modal-footer {
  padding: 18px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
  font-size: 19px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.inline-footer {
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 0;
  border-top: 0;
  flex-wrap: wrap;
}

.audit {
  max-height: 560px;
  overflow: auto;
}

.action-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.98));
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.quick-action {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--text);
  background:
    linear-gradient(180deg, #ffffff, #f6f9fd);
  text-align: left;
  box-shadow: 0 10px 24px rgba(22, 32, 42, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.quick-action::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(0, 174, 239, 0.13), transparent);
  transform: translateX(-110%);
  transition: transform 560ms ease;
}

.quick-action:hover {
  border-color: #a9dff3;
  background: linear-gradient(180deg, #ffffff, #effaff);
}

.quick-action:hover::after {
  transform: translateX(110%);
}

.quick-action strong,
.quick-action span {
  display: block;
}

.quick-action strong {
  font-size: 15px;
}

.quick-action span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

/* Enterprise command dashboard */
.lucide {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.nav-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.nav-icon {
  position: relative;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 1px solid color-mix(in srgb, var(--nav-accent) 28%, rgba(255, 255, 255, 0.08));
  border-radius: 7px;
  color: var(--nav-accent);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--nav-accent) 15%, transparent), rgba(255, 255, 255, 0.025)),
    linear-gradient(90deg, transparent 48%, color-mix(in srgb, var(--nav-accent) 7%, transparent) 49% 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, color-mix(in srgb, var(--nav-accent) 6%, transparent) 49% 51%, transparent 52%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.nav-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.2) 48%, transparent 70%);
  transform: translateX(-125%);
  pointer-events: none;
}

.nav-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 4px;
  width: 11px;
  height: 2px;
  border-radius: 1px;
  background: var(--nav-accent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--nav-accent) 80%, transparent);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 180ms ease, transform 220ms ease;
}

.nav-icon .lucide {
  position: relative;
  z-index: 1;
  width: 17px;
  height: 17px;
  color: currentColor;
  stroke-width: 1.9;
  transition: color 180ms ease, filter 180ms ease, transform 180ms ease;
}

.nav-icon > .nav-icon-main {
  width: 19px;
  height: 19px;
  transform: translate(-2px, -2px);
}

.nav-icon-detail {
  position: absolute;
  z-index: 3;
  right: -4px;
  bottom: -4px;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--nav-accent) 55%, #ffffff 8%);
  border-radius: 5px;
  color: #ffffff;
  background: color-mix(in srgb, var(--nav-accent) 38%, #06111b);
  box-shadow:
    0 0 0 2px #07111b,
    0 4px 10px color-mix(in srgb, var(--nav-accent) 28%, transparent);
  opacity: 0.78;
  transform: scale(0.9);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1), background 180ms ease;
}

.nav-icon-detail .lucide {
  width: 8px;
  height: 8px;
  stroke-width: 2.5;
  color: currentColor;
  filter: none;
  transform: none;
}

.nav-text {
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
  letter-spacing: 0;
}

.nav button:hover .nav-icon,
.nav button.active .nav-icon {
  color: #ffffff;
  border-color: color-mix(in srgb, var(--nav-accent) 68%, #ffffff 8%);
  background: linear-gradient(145deg, color-mix(in srgb, var(--nav-accent) 40%, transparent), rgba(255, 255, 255, 0.075));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 7px 18px color-mix(in srgb, var(--nav-accent) 22%, transparent);
  transform: translateY(-1px);
}

.nav button:active .nav-icon {
  transform: translateY(0) scale(0.94);
}

.nav button:hover .nav-icon > .nav-icon-main,
.nav button.active .nav-icon > .nav-icon-main {
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--nav-accent) 72%, transparent));
  transform: translate(-2px, -2px) scale(1.06);
}

.nav button:hover .nav-icon-detail,
.nav button.active .nav-icon-detail {
  opacity: 1;
  background: color-mix(in srgb, var(--nav-accent) 72%, #07111b);
  transform: scale(1);
}

.nav button:hover .nav-icon-detail .lucide,
.nav button.active .nav-icon-detail .lucide {
  filter: none;
  transform: none;
}

.nav button.active .nav-icon::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav .pill {
  position: relative;
  z-index: 1;
}

.system-health {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #c9e8d9;
  border-radius: 8px;
  color: #0f6b4a;
  background: rgba(239, 252, 246, 0.88);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(18, 132, 91, 0.08);
}

.system-health > span,
.live-badge > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #18a66f;
  box-shadow: 0 0 0 4px rgba(24, 166, 111, 0.12), 0 0 12px rgba(24, 166, 111, 0.42);
}

.dashboard-view {
  --dashboard-gap: 18px;
}

.dashboard-view .hero-band {
  --tilt-x: 0px;
  --tilt-y: 0px;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.48fr);
  min-height: 228px;
  padding: 26px 28px;
  background:
    linear-gradient(90deg, rgba(4, 9, 15, 0.96) 0%, rgba(2, 24, 38, 0.88) 54%, rgba(0, 85, 119, 0.58) 100%),
    url("assets/enterprise-office.jpg") calc(50% + var(--tilt-x)) calc(50% + var(--tilt-y))/cover;
  border: 1px solid rgba(77, 216, 255, 0.22);
  box-shadow: 0 28px 72px rgba(0, 31, 54, 0.28);
  transition: background-position 180ms ease-out, box-shadow 220ms ease;
}

.dashboard-view .hero-band:hover {
  box-shadow: 0 34px 88px rgba(0, 45, 72, 0.34);
}

.dashboard-view .hero-band::before {
  background:
    linear-gradient(90deg, rgba(0, 174, 239, 0.16), transparent 22% 78%, rgba(0, 174, 239, 0.12)),
    linear-gradient(110deg, transparent 0 38%, rgba(141, 239, 255, 0.12) 48%, transparent 58% 100%);
}

.dashboard-view .hero-band::after {
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, #00aeef, #61e9ff 48%, #00a7b5);
  filter: none;
}

.hero-copy,
.command-visual {
  position: relative;
  z-index: 1;
}

.command-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: #bbd9e8;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.live-signal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9beaff;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0;
}

.live-signal .lucide {
  width: 15px;
  height: 15px;
  filter: drop-shadow(0 0 7px rgba(0, 174, 239, 0.72));
}

.dashboard-view .hero-band h2 {
  max-width: 720px;
  margin: 12px 0 8px;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: 0;
}

.hero-summary {
  max-width: 680px;
  margin: 0;
  color: #c9dce7;
  font-size: 14px;
  line-height: 1.55;
}

.hero-actions .btn .lucide {
  width: 17px;
  height: 17px;
}

.btn.icon-only {
  width: 40px;
  padding: 0;
}

.command-visual {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 170px;
  padding: 18px;
  border: 1px solid rgba(167, 237, 255, 0.24);
  border-radius: 8px;
  background: rgba(2, 18, 29, 0.68);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 46px rgba(0, 8, 15, 0.3), inset 0 1px rgba(255, 255, 255, 0.08);
  transform: translate3d(calc(var(--tilt-x) * -0.35), calc(var(--tilt-y) * -0.35), 0);
  transition: transform 180ms ease-out, border-color 180ms ease;
}

.command-visual:hover {
  border-color: rgba(141, 239, 255, 0.46);
}

.readiness-ring {
  width: 118px;
  aspect-ratio: 1;
  padding: 9px;
  border-radius: 50%;
  background: conic-gradient(#66ecff var(--readiness), rgba(255, 255, 255, 0.12) 0);
  box-shadow: 0 0 32px rgba(0, 174, 239, 0.2);
}

.readiness-ring > div {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: #061723;
  box-shadow: inset 0 0 24px rgba(0, 174, 239, 0.1);
}

.readiness-ring strong,
.readiness-ring span {
  display: block;
}

.readiness-ring strong {
  color: #ffffff;
  font-size: 25px;
  line-height: 1;
}

.readiness-ring span {
  margin-top: 5px;
  color: #8ecbdd;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.command-facts {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.command-facts > div {
  min-width: 0;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.command-facts > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.command-facts span,
.command-facts strong,
.command-facts small {
  display: block;
}

.command-facts span,
.command-facts small {
  color: #8eb4c7;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
}

.command-facts strong {
  margin-top: 3px;
  color: #ffffff;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-facts [data-live-clock] {
  color: #8defff;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.metrics .metric {
  width: 100%;
  min-height: 146px;
  padding: 16px 18px 17px;
  color: var(--text);
  text-align: left;
  --accent: #00aeef;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(245, 251, 255, 0.98));
}

.metrics .metric.blue {
  --accent: #008fd0;
}

.metrics .metric.teal {
  --accent: #008d99;
}

.metrics .metric.orange {
  --accent: #c06400;
}

.metrics .metric.red {
  --accent: #c2241b;
}

.metrics .metric::after {
  height: 4px;
  background: var(--accent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 48%, transparent);
}

.metric-head,
.metric-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.metric-head {
  margin-bottom: 10px;
}

.metric-icon {
  width: 34px;
  height: 34px;
  display: grid !important;
  place-items: center;
  border-radius: 8px;
  color: var(--accent) !important;
  background: color-mix(in srgb, var(--accent) 10%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, white);
  transition: transform 220ms ease, color 220ms ease, background 220ms ease;
}

.metric:hover .metric-icon {
  transform: rotate(-5deg) scale(1.08);
  color: #ffffff !important;
  background: var(--accent);
}

.metric-trend {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  color: #75889a !important;
  font-size: 10px;
  text-transform: uppercase;
}

.metric-trend .lucide {
  width: 12px;
  height: 12px;
}

.metric-value strong {
  margin: 5px 0;
  font-size: 34px;
}

.metric-bars {
  display: flex !important;
  align-items: flex-end;
  gap: 3px;
  width: 56px;
  height: 30px;
}

.metric-bars i {
  width: 100%;
  height: var(--bar);
  border-radius: 2px 2px 0 0;
  background: color-mix(in srgb, var(--accent) 72%, white);
  transform-origin: bottom;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--dashboard-gap);
  align-items: start;
}

.dashboard-primary,
.dashboard-secondary {
  display: grid;
  gap: var(--dashboard-gap);
}

.enterprise-header > div {
  display: grid;
  gap: 3px;
}

.panel-kicker {
  color: var(--primary-strong);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.panel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--primary-strong);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.panel-link:hover {
  color: #005f86;
  background: #e9f8ff;
  transform: translateX(2px);
}

.panel-link .lucide {
  width: 14px;
  height: 14px;
}

.day-timeline {
  position: relative;
  display: grid;
  min-height: 120px;
  padding: 12px 16px;
}

.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 62px 16px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 72px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  text-align: left;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.timeline-entry:hover {
  background: #f0faff;
  box-shadow: inset 0 0 0 1px #c9eaf6;
  transform: translateX(3px);
}

.timeline-entry:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 91px;
  top: 45px;
  bottom: -28px;
  width: 1px;
  background: #c7e6f1;
}

.timeline-time {
  color: #1e3442;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.timeline-marker {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px #cceffc, 0 0 14px rgba(0, 174, 239, 0.46);
}

.timeline-marker.critical { background: #c2241b; box-shadow: 0 0 0 3px #fee4e2, 0 0 14px rgba(194, 36, 27, 0.4); }
.timeline-marker.high { background: #c06400; box-shadow: 0 0 0 3px #ffedcc, 0 0 14px rgba(192, 100, 0, 0.38); }
.timeline-marker.low { background: #16825d; box-shadow: 0 0 0 3px #d8f5e9, 0 0 14px rgba(22, 130, 93, 0.36); }

.timeline-content {
  min-width: 0;
}

.timeline-content strong,
.timeline-content small {
  display: block;
}

.timeline-content strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-content small {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: var(--muted);
}

.timeline-content .lucide {
  width: 13px;
  height: 13px;
}

.timeline-arrow {
  width: 16px;
  height: 16px;
  color: #8aa0b0;
  transition: transform 180ms ease, color 180ms ease;
}

.timeline-entry:hover .timeline-arrow {
  color: var(--primary-strong);
  transform: translateX(3px);
}

.schedule-empty {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 118px;
  padding: 16px;
  border: 1px dashed #bdddea;
  border-radius: 8px;
  background: #f8fcfe;
}

.schedule-empty-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #0f7ea8;
  background: #def5ff;
}

.schedule-empty-icon .lucide {
  width: 24px;
  height: 24px;
}

.schedule-empty strong,
.schedule-empty p {
  display: block;
  margin: 0;
}

.schedule-empty p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.priority-overview {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(105px, 1fr));
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #f7fbfd;
}

.priority-heading span,
.priority-heading small {
  display: block;
}

.priority-heading span {
  font-size: 12px;
  font-weight: 800;
}

.priority-heading small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.priority-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 7px;
  align-items: center;
}

.priority-bar > span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.priority-bar > div {
  height: 5px;
  overflow: hidden;
  border-radius: 4px;
  background: #e3edf2;
}

.priority-bar > div i {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: #00a7b5;
  transform-origin: left;
}

.priority-bar.critical > div i { background: #c2241b; }
.priority-bar.high > div i { background: #c06400; }
.priority-bar.low > div i { background: #16825d; }

.priority-bar strong {
  color: #263b47;
  font-size: 12px;
}

.activity-feed,
.room-command-list {
  display: grid;
  padding: 6px 18px 14px;
}

.activity-entry,
.room-command-row {
  display: grid;
  align-items: center;
}

.activity-entry {
  position: relative;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;
  min-height: 60px;
  padding: 8px 0;
  border-bottom: 1px solid #e2eef4;
}

.activity-entry:last-child {
  border-bottom: 0;
}

.activity-dot {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #00a7b5;
  box-shadow: 0 0 0 4px #dff7f8;
}

.activity-entry:not(:last-child) .activity-dot::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 1px;
  height: 51px;
  background: #d5e9ef;
}

.activity-entry strong,
.activity-entry small {
  display: block;
}

.activity-entry strong {
  color: #243744;
  font-size: 13px;
  font-weight: 750;
}

.activity-entry small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #167651;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.live-badge > span {
  width: 6px;
  height: 6px;
}

.quick-grid {
  gap: 9px;
}

.quick-action {
  min-height: 114px;
  padding: 13px;
}

.quick-action .quick-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin: 0 0 11px;
  border-radius: 8px;
  color: #007eaf;
  background: #dcf4fd;
  border: 1px solid #c4e9f7;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.quick-action .quick-icon .lucide {
  width: 17px;
  height: 17px;
}

.quick-action:hover .quick-icon {
  color: #ffffff;
  background: #008fc7;
  transform: rotate(-5deg) scale(1.06);
}

.quick-arrow {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 15px;
  height: 15px;
  color: #8ba1b1;
  transition: color 180ms ease, transform 180ms ease;
}

.quick-action:hover .quick-arrow {
  color: #008fc7;
  transform: translate(2px, -2px);
}

.room-command-row {
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 63px;
  border-bottom: 1px solid #e4eef3;
}

.room-command-row:last-child {
  border-bottom: 0;
}

.room-command-row strong,
.room-command-row small {
  display: block;
}

.room-command-row strong {
  font-size: 13px;
}

.room-command-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.room-command-row .room-auto-summary {
  display: flex;
}

.room-auto-summary {
  align-items: center;
  gap: 5px;
  color: #a92d26 !important;
  font-weight: 800;
}

.room-auto-summary .lucide {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
}

.room-auto-summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-signal {
  width: 12px;
  height: 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d7eee5;
}

.room-signal i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.room-signal.busy { background: #fee2e0; }
.room-signal.busy i { background: var(--danger); }
.room-signal.cleaning { background: #ffedcc; }
.room-signal.cleaning i { background: var(--warning); }

/* Enterprise reception */
.reception-view {
  --reception-accent: #00aeef;
}

.reception-command {
  --tilt-x: 0px;
  --tilt-y: 0px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 24px;
  min-height: 218px;
  margin-bottom: 14px;
  padding: 26px 28px;
  overflow: hidden;
  border: 1px solid rgba(77, 216, 255, 0.23);
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(92deg, rgba(3, 9, 15, 0.97) 0%, rgba(3, 29, 43, 0.9) 56%, rgba(0, 92, 126, 0.62) 100%),
    url("assets/enterprise-office.jpg") calc(50% + var(--tilt-x)) calc(48% + var(--tilt-y))/cover;
  box-shadow: 0 28px 72px rgba(0, 31, 54, 0.27);
  transition: background-position 180ms ease-out, box-shadow 180ms ease;
}

.reception-command::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, #00aeef, #70edff 48%, #00a7b5);
  transform-origin: left;
}

.reception-command-copy,
.reception-liveboard {
  position: relative;
  z-index: 1;
}

.reception-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: #b6d2df;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.reception-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8defff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.reception-live .lucide {
  width: 14px;
  height: 14px;
  filter: drop-shadow(0 0 7px rgba(0, 174, 239, 0.68));
}

.reception-command h2,
.reception-command p {
  margin: 0;
}

.reception-command h2 {
  margin-top: 12px;
  font-size: 34px;
  line-height: 1.1;
}

.reception-command p {
  max-width: 680px;
  margin-top: 9px;
  color: #c4d9e3;
  font-size: 14px;
  line-height: 1.5;
}

.reception-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.reception-command-actions .lucide {
  width: 17px;
  height: 17px;
}

.reception-liveboard {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 150px;
  padding: 17px;
  border: 1px solid rgba(141, 239, 255, 0.24);
  border-radius: 8px;
  background: rgba(2, 18, 29, 0.7);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 46px rgba(0, 8, 15, 0.3), inset 0 1px rgba(255, 255, 255, 0.08);
  transform: translate3d(calc(var(--tilt-x) * -0.32), calc(var(--tilt-y) * -0.32), 0);
  transition: transform 180ms ease-out, border-color 180ms ease;
}

.reception-liveboard:hover {
  border-color: rgba(141, 239, 255, 0.48);
}

.reception-clock {
  display: grid;
  place-content: center;
  width: 106px;
  height: 106px;
  border: 1px solid rgba(141, 239, 255, 0.22);
  border-radius: 50%;
  text-align: center;
  background: #061723;
  box-shadow: 0 0 0 7px rgba(0, 174, 239, 0.09), 0 0 30px rgba(0, 174, 239, 0.18);
}

.reception-clock span,
.reception-clock small {
  display: block;
}

.reception-clock span {
  color: #8defff;
  font-size: 25px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.reception-clock small {
  margin-top: 5px;
  color: #87aabd;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.reception-flow-mini {
  display: grid;
  grid-template-columns: 1fr 12px 1fr 12px 1fr;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.reception-flow-mini > div {
  min-width: 0;
  text-align: center;
}

.reception-flow-mini strong,
.reception-flow-mini small {
  display: block;
}

.reception-flow-mini strong {
  margin-top: 6px;
  font-size: 20px;
}

.reception-flow-mini small {
  margin-top: 2px;
  overflow: hidden;
  color: #8caebe;
  font-size: 8px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.reception-flow-mini > .lucide {
  width: 11px;
  height: 11px;
  color: #507589;
}

.flow-dot {
  width: 9px;
  height: 9px;
  display: block;
  margin: 0 auto;
  border-radius: 50%;
  background: #d98b1d;
  box-shadow: 0 0 0 4px rgba(217, 139, 29, 0.14), 0 0 13px rgba(217, 139, 29, 0.32);
}

.flow-dot.arrived {
  background: #00aeef;
  box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.14), 0 0 13px rgba(0, 174, 239, 0.34);
}

.flow-dot.left {
  background: #25a573;
  box-shadow: 0 0 0 4px rgba(37, 165, 115, 0.14), 0 0 13px rgba(37, 165, 115, 0.3);
}

.reception-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.reception-stat {
  --stat-accent: #b66c07;
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 92px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 30px rgba(0, 95, 134, 0.08);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.reception-stat.arrived { --stat-accent: #008fc7; }
.reception-stat.tasks { --stat-accent: #bd3229; }
.reception-stat.rooms { --stat-accent: #16825d; }

.reception-stat::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--stat-accent);
  transform: scaleX(0.38);
  transform-origin: left;
  transition: transform 260ms ease;
}

.reception-stat:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--stat-accent) 32%, white);
  box-shadow: 0 20px 44px rgba(0, 95, 134, 0.13);
}

.reception-stat:hover::after {
  transform: scaleX(1);
}

.reception-stat-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--stat-accent);
  background: color-mix(in srgb, var(--stat-accent) 10%, white);
}

.reception-stat-icon .lucide {
  width: 19px;
  height: 19px;
}

.reception-stat > div > span,
.reception-stat strong,
.reception-stat small {
  display: block;
}

.reception-stat > div > span,
.reception-stat small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.reception-stat strong {
  margin: 2px 0;
  font-size: 24px;
  line-height: 1;
}

.reception-stat-arrow {
  width: 14px;
  height: 14px;
  color: #8ba0ae;
  transition: color 180ms ease, transform 180ms ease;
}

.reception-stat:hover .reception-stat-arrow {
  color: var(--stat-accent);
  transform: translate(2px, -2px);
}

.reception-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 14px;
  align-items: start;
}

.reception-primary,
.reception-operations {
  display: grid;
  gap: 14px;
}

.guest-flow-header {
  min-height: 70px;
}

.guest-flow-header > div:first-child {
  display: grid;
  gap: 3px;
}

.reception-filter,
.task-filter {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #d8e8ef;
  border-radius: 8px;
  background: #f2f7fa;
}

.reception-filter button,
.task-filter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 31px;
  padding: 0 9px;
  border-radius: 6px;
  color: #607482;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.reception-filter button i,
.task-filter button i {
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(99, 121, 135, 0.1);
  font-size: 8px;
  font-style: normal;
}

.reception-filter button.active,
.task-filter button.active {
  color: #006c95;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(0, 95, 134, 0.1), inset 0 0 0 1px #bfe4f2;
}

.guest-flow-list {
  display: grid;
  min-height: 270px;
  padding: 6px 14px 14px;
}

.reception-visit-row {
  display: grid;
  grid-template-columns: 54px 42px minmax(110px, 0.9fr) minmax(140px, 1.1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 84px;
  padding: 11px 6px;
  border-bottom: 1px solid #dfebf0;
  transition: background 180ms ease, transform 180ms ease;
}

.reception-visit-row:last-child {
  border-bottom: 0;
}

.reception-visit-row:hover {
  background: #f2faff;
  transform: translateX(3px);
}

.visit-time {
  color: #183541;
  font-size: 16px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.visit-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #bde4f2;
  border-radius: 8px;
  color: #007fab;
  background: #e1f6fd;
  font-size: 12px;
  font-weight: 900;
}

.visit-person,
.visit-destination {
  min-width: 0;
}

.visit-person strong,
.visit-person small,
.visit-destination span,
.visit-destination small {
  display: block;
}

.visit-person strong {
  overflow: hidden;
  color: #192f3a;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visit-person small,
.visit-destination span,
.visit-destination small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visit-destination span,
.visit-destination small {
  display: flex;
  align-items: center;
  gap: 5px;
}

.visit-destination .lucide {
  width: 12px;
  height: 12px;
}

.visit-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.visit-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid #cfe1e9;
  border-radius: 7px;
  color: #39505e;
  background: #ffffff;
  font-size: 10px;
  font-weight: 800;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.visit-action .lucide {
  width: 14px;
  height: 14px;
}

.visit-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 18px rgba(0, 95, 134, 0.11);
}

.visit-action.success { color: #116d4d; border-color: #bce5d3; background: #effaf5; }
.visit-action.exit { color: #006f9b; border-color: #b8dfed; background: #edf9fd; }
.visit-action.danger { width: 34px; padding: 0; color: #aa2a22; border-color: #f0c9c6; background: #fff5f4; }
.visit-action.restore { color: #84530d; border-color: #ecd5ae; background: #fff9ed; }

.visit-complete {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #56806f;
  font-size: 10px;
  font-weight: 800;
}

.visit-complete .lucide {
  width: 14px;
  height: 14px;
}

.reception-empty {
  min-height: 260px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 28px;
  text-align: center;
}

.reception-empty > span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 8px;
  color: #008fc7;
  background: #ddf5fd;
  border: 1px solid #c1e9f7;
}

.reception-empty > span .lucide {
  width: 27px;
  height: 27px;
}

.reception-empty strong {
  font-size: 16px;
}

.reception-empty p {
  margin: 6px 0 15px;
  color: var(--muted);
  font-size: 12px;
}

.reception-meeting-strip {
  display: grid;
  padding: 7px 14px 14px;
}

.reception-meeting-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 8px;
  border-bottom: 1px solid #dfebf0;
  color: var(--text);
  background: transparent;
  text-align: left;
  transition: background 180ms ease, transform 180ms ease;
}

.reception-meeting-card:hover {
  background: #f0faff;
  transform: translateX(3px);
}

.meeting-strip-time {
  color: #007fae;
  font-size: 15px;
  font-weight: 900;
}

.reception-meeting-card strong,
.reception-meeting-card small {
  display: block;
}

.reception-meeting-card strong { font-size: 13px; }
.reception-meeting-card small { display: flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--muted); font-size: 10px; }
.reception-meeting-card small .lucide { width: 12px; height: 12px; }
.reception-meeting-card > .lucide { width: 14px; height: 14px; color: #8ba0ae; }

.reception-meetings-empty {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.reception-meetings-empty > .lucide {
  color: #008fc7;
}

.reception-room-list {
  display: grid;
  padding: 4px 13px 13px;
}

.reception-room-row {
  padding: 12px 0;
  border-bottom: 1px solid #dfebf0;
}

.reception-room-row:last-child {
  border-bottom: 0;
}

.reception-room-head {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.reception-room-head strong,
.reception-room-head small {
  display: block;
}

.reception-room-head strong { font-size: 12px; }
.reception-room-head small { margin-top: 3px; color: var(--muted); font-size: 9px; }

.room-auto-occupancy {
  position: relative;
  display: grid;
  gap: 3px;
  margin-top: 9px;
  padding: 9px 10px 9px 13px;
  overflow: hidden;
  border: 1px solid #f0cbc8;
  border-left: 3px solid #bd3028;
  border-radius: 7px;
  background: #fff7f6;
}

.room-auto-occupancy::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: translateX(-70px) skewX(-12deg);
  pointer-events: none;
}

.room-auto-occupancy > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #a82c25;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.room-auto-occupancy > span .lucide {
  width: 11px;
  height: 11px;
}

.room-auto-occupancy strong {
  position: relative;
  z-index: 1;
  overflow-wrap: anywhere;
  color: #371917;
  font-size: 11px;
}

.room-auto-occupancy small {
  position: relative;
  z-index: 1;
  color: #88615e;
  font-size: 8px;
}

.room-status-segment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 10px;
  padding: 4px;
  border: 1px solid #dae8ee;
  border-radius: 8px;
  background: #f2f7f9;
}

.room-status-segment button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 5px;
  border-radius: 6px;
  color: #627482;
  background: transparent;
  font-size: 8px;
  font-weight: 800;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.room-status-segment button:hover {
  transform: translateY(-1px);
  background: #ffffff;
}

.room-status-segment button:disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

.room-status-segment button:disabled:hover {
  transform: none;
}

.room-status-segment button.active {
  color: #ffffff;
  background: #16825d;
  box-shadow: 0 6px 14px rgba(22, 130, 93, 0.2);
}

.room-status-segment button.active.busy {
  background: #b92d25;
  box-shadow: 0 6px 14px rgba(185, 45, 37, 0.2);
}

.room-status-segment button.active.cleaning {
  background: #ad6808;
  box-shadow: 0 6px 14px rgba(173, 104, 8, 0.2);
}

.room-status-segment .lucide {
  width: 12px;
  height: 12px;
}

.reception-task-header > div {
  display: grid;
  gap: 3px;
}

.task-progress {
  padding: 13px 14px 8px;
}

.task-progress > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.task-progress span,
.task-progress strong {
  color: #3d5360;
  font-size: 10px;
  font-weight: 800;
}

.task-progress > i {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 5px;
  background: #e3edf2;
}

.task-progress b {
  display: block;
  width: var(--task-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00a7b5, #00aeef);
  transform-origin: left;
}

.task-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 13px 8px;
}

.task-filter button {
  padding: 0 5px;
  font-size: 9px;
}

.reception-task-list {
  display: grid;
  padding: 2px 13px 13px;
}

.reception-task-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  min-height: 62px;
  border-bottom: 1px solid #dfebf0;
  transition: opacity 180ms ease, background 180ms ease;
}

.reception-task-row:last-child {
  border-bottom: 0;
}

.reception-task-row:hover {
  background: #f4fbfe;
}

.reception-task-row.done {
  opacity: 0.62;
}

.reception-task-row.done:hover {
  opacity: 0.86;
}

.reception-task-row.done strong {
  text-decoration: line-through;
}

.task-check {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #cce2eb;
  border-radius: 7px;
  color: #008fc7;
  background: #ffffff;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.task-check:hover {
  color: #ffffff;
  background: #008fc7;
  transform: scale(1.06);
}

.task-check .lucide {
  width: 15px;
  height: 15px;
}

.reception-task-row strong,
.reception-task-row small {
  display: block;
}

.reception-task-row strong {
  font-size: 12px;
}

.reception-task-row small {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.reception-task-row small .lucide {
  width: 11px;
  height: 11px;
}

.reception-task-copy {
  min-width: 0;
}

.reception-task-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reception-task-actions {
  display: flex;
  gap: 4px;
  opacity: 0.68;
  transition: opacity 180ms ease, transform 180ms ease;
}

.reception-task-row:hover .reception-task-actions,
.reception-task-actions:focus-within {
  opacity: 1;
  transform: translateX(-2px);
}

.task-row-action {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #d4e5eb;
  border-radius: 7px;
  color: #316476;
  background: #ffffff;
  box-shadow: 0 3px 9px rgba(0, 57, 81, 0.05);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.task-row-action:hover {
  transform: translateY(-2px);
}

.task-row-action.edit:hover {
  border-color: #62caec;
  color: #007aa7;
  background: #ebfaff;
  box-shadow: 0 7px 16px rgba(0, 152, 207, 0.15);
}

.task-row-action.delete:hover {
  border-color: #e7aaa5;
  color: #a9251e;
  background: #fff2f1;
  box-shadow: 0 7px 16px rgba(183, 45, 37, 0.13);
}

.task-row-action .lucide {
  width: 14px;
  height: 14px;
}

.task-form-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 11px;
  border-left: 3px solid #00a8d6;
  color: #426675;
  background: #edfaff;
  font-size: 11px;
}

.task-form-note .lucide {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: #008fbd;
}

.reception-task-empty {
  min-height: 94px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.reception-task-empty .lucide {
  color: #16825d;
}

@media (max-width: 560px) {
  .reception-task-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 0;
  }

  .reception-task-row > .status {
    grid-column: 2;
    justify-self: start;
  }

  .reception-task-actions {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    opacity: 1;
  }
}

/* Enterprise rooms */
.rooms-view {
  --rooms-cyan: #00aeef;
  --rooms-teal: #00a7b5;
  --rooms-ink: #07131f;
}

.rooms-command {
  --tilt-x: 0px;
  --tilt-y: 0px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: 28px;
  min-height: 228px;
  margin-bottom: 14px;
  padding: 28px 30px;
  overflow: hidden;
  border: 1px solid rgba(75, 222, 255, 0.23);
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(92deg, rgba(3, 9, 15, 0.98) 0%, rgba(2, 27, 40, 0.92) 56%, rgba(0, 95, 130, 0.62) 100%),
    url("assets/enterprise-office.jpg") calc(50% + var(--tilt-x)) calc(52% + var(--tilt-y))/cover;
  box-shadow: 0 28px 72px rgba(0, 31, 54, 0.25);
  transition: background-position 180ms ease-out, box-shadow 180ms ease;
}

.rooms-command::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--pointer-x, 75%) var(--pointer-y, 35%), rgba(91, 226, 255, 0.15), transparent 27%);
}

.rooms-command::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, #00aeef, #8df1ff 48%, #00a7b5);
  transform-origin: left;
}

.rooms-command-copy,
.rooms-readiness {
  position: relative;
  z-index: 1;
}

.rooms-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #b8d3df;
  font-size: 11px;
  font-weight: 750;
}

.rooms-kicker > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #89ecff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.rooms-kicker .lucide {
  width: 15px;
  height: 15px;
  filter: drop-shadow(0 0 7px rgba(0, 174, 239, 0.65));
}

.rooms-command h2,
.rooms-command p {
  margin: 0;
}

.rooms-command h2 {
  max-width: 720px;
  margin-top: 12px;
  font-size: 34px;
  line-height: 1.08;
}

.rooms-command p {
  max-width: 680px;
  margin-top: 10px;
  color: #c3d9e3;
  font-size: 14px;
  line-height: 1.5;
}

.rooms-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.rooms-command-actions .lucide {
  width: 17px;
  height: 17px;
}

.rooms-readiness {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 164px;
  padding: 18px;
  border: 1px solid rgba(141, 239, 255, 0.23);
  border-radius: 8px;
  background: rgba(1, 16, 26, 0.74);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 18px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.rooms-readiness-ring {
  position: relative;
  width: 116px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#64e8ff var(--rooms-readiness), rgba(138, 225, 244, 0.14) 0);
  box-shadow: 0 0 28px rgba(0, 174, 239, 0.23);
}

.rooms-readiness-ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background: #061923;
  box-shadow: inset 0 0 18px rgba(0, 174, 239, 0.12);
}

.rooms-readiness-ring > div {
  position: relative;
  display: grid;
  justify-items: center;
}

.rooms-readiness-ring strong {
  font-size: 25px;
  line-height: 1;
}

.rooms-readiness-ring span {
  margin-top: 5px;
  color: #93dced;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.rooms-readiness-facts {
  display: grid;
  gap: 8px;
}

.rooms-readiness-facts > div {
  min-width: 0;
  padding: 9px 10px;
  border-left: 2px solid rgba(86, 224, 255, 0.5);
  background: rgba(255, 255, 255, 0.035);
}

.rooms-readiness-facts span,
.rooms-readiness-facts strong,
.rooms-readiness-facts small {
  display: block;
}

.rooms-readiness-facts span,
.rooms-readiness-facts small {
  color: #94b5c2;
  font-size: 9px;
}

.rooms-readiness-facts strong,
.rooms-readiness-facts [data-live-clock] {
  margin-bottom: 3px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.rooms-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.room-resource-stat {
  --stat-color: #00aeef;
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  min-height: 98px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid #d3e3ea;
  border-radius: 8px;
  color: var(--text);
  background: #ffffff;
  text-align: left;
  box-shadow: 0 10px 26px rgba(0, 62, 92, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.room-resource-stat.green { --stat-color: #16825d; }
.room-resource-stat.red { --stat-color: #be3028; }
.room-resource-stat.amber { --stat-color: #b56b06; }

.room-resource-stat::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--stat-color);
  transform: scaleX(0.32);
  transform-origin: left;
  transition: transform 220ms ease;
}

.room-resource-stat:hover,
.room-resource-stat.active {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--stat-color) 42%, #d3e3ea);
  box-shadow: 0 18px 38px rgba(0, 67, 98, 0.13);
}

.room-resource-stat:hover::after,
.room-resource-stat.active::after {
  transform: scaleX(1);
}

.room-resource-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--stat-color) 22%, #dce9ee);
  border-radius: 8px;
  color: var(--stat-color);
  background: color-mix(in srgb, var(--stat-color) 8%, #ffffff);
}

.room-resource-icon .lucide {
  width: 20px;
  height: 20px;
}

.room-resource-stat > span:nth-child(2) {
  min-width: 0;
}

.room-resource-stat small,
.room-resource-stat strong,
.room-resource-stat em {
  display: block;
  font-style: normal;
}

.room-resource-stat small {
  color: #5d707d;
  font-size: 10px;
  font-weight: 800;
}

.room-resource-stat strong {
  margin: 3px 0;
  font-size: 25px;
  line-height: 1;
}

.room-resource-stat em {
  overflow: hidden;
  color: #82929c;
  font-size: 9px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-resource-arrow {
  width: 15px;
  height: 15px;
  color: #9babb4;
  transition: color 180ms ease, transform 180ms ease;
}

.room-resource-stat:hover .room-resource-arrow {
  color: var(--stat-color);
  transform: translate(2px, -2px);
}

.rooms-directory {
  overflow: hidden;
  margin-bottom: 14px;
}

.rooms-directory-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: center;
  gap: 20px;
  padding: 18px 20px 14px;
}

.rooms-directory-head h2,
.rooms-directory-head p {
  margin: 0;
}

.rooms-directory-head h2 {
  margin-top: 3px;
  font-size: 18px;
}

.rooms-directory-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.room-search {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 10px 0 12px;
  border: 1px solid #c9dce5;
  border-radius: 8px;
  background: #f7fafb;
  box-shadow: inset 0 1px 2px rgba(0, 40, 62, 0.04);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.room-search:focus-within {
  border-color: #00aeea;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
}

.room-search > .lucide {
  width: 17px;
  height: 17px;
  color: #66808f;
}

.room-search input {
  min-width: 0;
  height: 40px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: 11px;
}

.room-search input::-webkit-search-cancel-button {
  cursor: pointer;
}

.room-search kbd {
  padding: 3px 6px;
  border: 1px solid #d4e0e6;
  border-bottom-width: 2px;
  border-radius: 5px;
  color: #738793;
  background: #ffffff;
  font-size: 8px;
  font-family: inherit;
  font-weight: 800;
}

.rooms-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  border-top: 1px solid #e2ebef;
  border-bottom: 1px solid #dbe7ec;
  background: #f7fafb;
}

.room-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.room-filter button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #607480;
  background: transparent;
  font-size: 9px;
  font-weight: 800;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.room-filter button:hover {
  transform: translateY(-1px);
  color: #007da9;
  background: #ffffff;
}

.room-filter button.active {
  border-color: #aee1f1;
  color: #006e97;
  background: #eaf9fe;
  box-shadow: 0 5px 12px rgba(0, 128, 174, 0.08);
}

.room-filter .lucide {
  width: 13px;
  height: 13px;
}

.room-filter b {
  min-width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 10px;
  color: #647985;
  background: #e5eef2;
  font-size: 8px;
}

.room-filter button.active b {
  color: #ffffff;
  background: #008fc7;
}

.rooms-result {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  color: #778a95;
  font-size: 9px;
  font-weight: 700;
}

.rooms-result .lucide {
  width: 14px;
  height: 14px;
  color: #00a0d7;
}

.rooms-result strong {
  color: var(--text);
  font-size: 11px;
}

.resource-room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.resource-room-card {
  --room-state: #16825d;
  position: relative;
  display: grid;
  gap: 13px;
  min-width: 0;
  padding: 16px;
  overflow: hidden;
  border: 1px solid #d4e2e8;
  border-top: 3px solid var(--room-state);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 9px 24px rgba(0, 61, 89, 0.07);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.resource-room-card.busy { --room-state: #be3028; }
.resource-room-card.cleaning { --room-state: #b56b06; }
.resource-room-card[hidden] { display: none !important; }

.resource-room-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -86px;
  top: -90px;
  border: 24px solid color-mix(in srgb, var(--room-state) 8%, transparent);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 360ms ease;
}

.resource-room-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--room-state) 34%, #d4e2e8);
  box-shadow: 0 20px 42px rgba(0, 61, 89, 0.14);
}

.resource-room-card:hover::after {
  transform: scale(1.15) rotate(12deg);
}

.resource-room-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.resource-room-icon {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--room-state) 24%, #dce8ed);
  border-radius: 8px;
  color: var(--room-state);
  background: color-mix(in srgb, var(--room-state) 7%, #ffffff);
}

.resource-room-icon > .lucide {
  width: 20px;
  height: 20px;
}

.room-live-dot {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--room-state);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--room-state) 14%, transparent);
}

.room-card-kicker {
  display: block;
  color: #7b8d97;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.resource-room-head h3 {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.2;
}

.resource-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 12px;
  color: #126849;
  background: #e1f6ed;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.resource-status.busy {
  color: #9c2822;
  background: #fde9e7;
}

.resource-status.cleaning {
  color: #945a08;
  background: #fff2d9;
}

.resource-status > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 12%, transparent);
}

.room-capacity-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.room-capacity-line > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 29px;
  padding: 0 8px;
  border: 1px solid #e0eaee;
  border-radius: 6px;
  color: #617580;
  background: #f8fafb;
  font-size: 9px;
}

.room-capacity-line strong {
  color: #14222c;
  font-size: 11px;
}

.room-capacity-line .lucide {
  width: 13px;
  height: 13px;
  color: #008fc7;
}

.room-equipment {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 25px;
}

.room-equipment > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border-radius: 5px;
  color: #44606f;
  background: #edf5f8;
  font-size: 8px;
  font-weight: 750;
}

.room-equipment > span.muted {
  color: #82919a;
}

.room-equipment .lucide {
  width: 10px;
  height: 10px;
  color: #00a7b5;
}

.resource-status-control {
  padding-top: 11px;
  border-top: 1px solid #e1eaee;
}

.resource-status-control > span {
  color: #71848e;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.resource-room-card .room-status-segment {
  margin-top: 7px;
}

.resource-room-card .room-status-segment button {
  min-height: 34px;
  font-size: 9px;
}

.resource-room-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
}

.resource-room-actions .btn {
  min-height: 38px;
}

.room-edit {
  color: #006f99;
  background: #eaf8fd;
  border-color: #bde4f1;
}

.room-edit:hover {
  color: #ffffff;
  background: #008fc7;
  border-color: #008fc7;
}

.room-delete {
  width: 38px;
  height: 38px;
  color: #af2c26;
  border-color: #efd0ce;
  background: #fff6f5;
}

.room-delete:hover {
  color: #ffffff;
  border-color: #b91f18;
  background: #b91f18;
  box-shadow: 0 8px 18px rgba(185, 31, 24, 0.22);
}

.room-directory-empty,
.room-search-empty {
  grid-column: 1 / -1;
  min-height: 210px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 28px;
  color: #667d89;
  text-align: center;
}

.room-directory-empty > .lucide,
.room-search-empty > .lucide {
  width: 30px;
  height: 30px;
  color: #00a0d7;
}

.room-directory-empty strong,
.room-search-empty strong {
  color: var(--text);
  font-size: 14px;
}

.room-directory-empty span,
.room-search-empty span {
  font-size: 10px;
}

.room-directory-empty .btn {
  margin-top: 5px;
}

.room-search-empty {
  margin: 0 16px 16px;
  border: 1px dashed #bed8e3;
  border-radius: 8px;
  background: #f7fbfc;
}

.room-search-empty[hidden] {
  display: none !important;
}

.rooms-insights {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 14px;
  align-items: start;
}

.room-capacity-panel,
.room-activity-panel {
  scroll-margin-top: 20px;
  overflow: hidden;
}

.room-capacity-chart,
.room-activity-feed {
  display: grid;
  padding: 10px 16px 16px;
}

.capacity-row {
  display: grid;
  grid-template-columns: minmax(125px, 0.75fr) minmax(90px, 1.25fr) 30px;
  align-items: center;
  gap: 12px;
  min-height: 51px;
  border-bottom: 1px solid #e1ebef;
}

.capacity-row:last-child {
  border-bottom: 0;
}

.capacity-row strong,
.capacity-row span {
  display: block;
}

.capacity-row strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capacity-row span {
  margin-top: 3px;
  color: #82929a;
  font-size: 8px;
}

.capacity-row > i {
  height: 7px;
  overflow: hidden;
  border-radius: 5px;
  background: #e5eef2;
}

.capacity-row b {
  display: block;
  width: var(--capacity);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00a7b5, #00aeef);
  transform-origin: left;
}

.capacity-row em {
  color: #087ca5;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.room-activity-entry {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 55px;
  border-bottom: 1px solid #e1ebef;
}

.room-activity-entry:last-child {
  border-bottom: 0;
}

.room-activity-entry > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #cce5ee;
  border-radius: 7px;
  color: #008fc7;
  background: #eef9fc;
}

.room-activity-entry .lucide {
  width: 14px;
  height: 14px;
}

.room-activity-entry strong,
.room-activity-entry small {
  display: block;
}

.room-activity-entry strong {
  font-size: 10px;
  line-height: 1.35;
}

.room-activity-entry small {
  margin-top: 3px;
  color: #81919a;
  font-size: 8px;
}

.insight-empty {
  min-height: 120px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: #7d8f99;
  font-size: 10px;
  text-align: center;
}

.insight-empty .lucide {
  color: #00a0d7;
}

.modal-title-with-icon {
  display: flex;
  align-items: center;
  gap: 11px;
}

.modal-title-with-icon > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #bce2ef;
  border-radius: 8px;
  color: #008fc7;
  background: #eaf8fd;
}

.modal-title-with-icon .lucide {
  width: 18px;
  height: 18px;
}

.modal-title-with-icon small {
  display: block;
  margin-bottom: 2px;
  color: #008fc7;
  font-size: 8px;
  font-weight: 900;
}

.room-editor-notice {
  display: flex;
  align-items: center;
  gap: 9px;
}

.room-editor-notice .lucide {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: #16825d;
}

.modal-title-with-icon.danger > span {
  border-color: #efc4c1;
  color: #b5231d;
  background: #fff0ef;
}

.modal-title-with-icon.danger small {
  color: #b5231d;
}

.audit-delete-summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  padding: 15px;
  border: 1px solid #ead7d5;
  border-radius: 7px;
  background: linear-gradient(135deg, #fff, #fff6f5);
}

.audit-delete-summary > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: #b91d17;
  box-shadow: 0 10px 20px rgba(185, 29, 23, 0.2);
}

.audit-delete-summary > span .lucide {
  width: 22px;
  height: 22px;
}

.audit-delete-summary small,
.audit-delete-summary strong {
  display: block;
}

.audit-delete-summary small {
  color: #a45b57;
  font-size: 8px;
  font-weight: 900;
}

.audit-delete-summary strong {
  margin-top: 3px;
  color: #44110e;
  font-size: 20px;
}

.audit-delete-summary p {
  margin: 6px 0 0;
  color: #765e5b;
  font-size: 11px;
  line-height: 1.5;
}

.audit-delete-warning {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  border: 1px solid #efcfcc;
  color: #8e2823;
  background: #fff4f3;
}

.audit-delete-warning .lucide {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

@media (max-width: 1220px) {
  .rooms-command {
    grid-template-columns: minmax(0, 1fr) 350px;
  }

  .rooms-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .rooms-command {
    grid-template-columns: 1fr;
  }

  .rooms-readiness {
    max-width: 520px;
  }

  .resource-room-grid,
  .rooms-insights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .rooms-command {
    padding: 22px;
  }

  .rooms-command h2 {
    font-size: 28px;
  }

  .rooms-directory-head {
    grid-template-columns: 1fr;
  }

  .rooms-toolbar {
    align-items: flex-start;
  }

  .room-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 1;
  }

  .room-filter button {
    justify-content: flex-start;
  }

  .room-filter b {
    margin-left: auto;
  }
}

@media (max-width: 520px) {
  .rooms-command {
    padding: 19px;
  }

  .rooms-command h2 {
    font-size: 25px;
  }

  .rooms-command-actions .btn {
    width: 100%;
  }

  .rooms-readiness {
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 12px;
    padding: 13px;
  }

  .rooms-readiness-ring {
    width: 94px;
  }

  .rooms-readiness-ring strong {
    font-size: 21px;
  }

  .rooms-stats {
    gap: 8px;
  }

  .room-resource-stat {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
    min-height: 88px;
    padding: 10px;
  }

  .room-resource-icon {
    width: 36px;
    height: 36px;
  }

  .room-resource-stat em,
  .room-resource-arrow,
  .room-search kbd,
  .rooms-result {
    display: none;
  }

  .rooms-directory-head {
    padding: 15px;
  }

  .rooms-toolbar {
    padding: 9px 15px;
  }

  .resource-room-grid {
    padding: 11px;
  }

  .resource-room-head {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .resource-room-icon {
    width: 38px;
    height: 38px;
  }

  .resource-status {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .resource-room-card .room-status-segment button span {
    display: none;
  }

  .resource-room-card .room-status-segment button {
    min-height: 38px;
  }

  .capacity-row {
    grid-template-columns: minmax(92px, 0.75fr) minmax(70px, 1.25fr) 26px;
    gap: 8px;
  }
}

/* Enterprise approvals */
.approvals-view {
  --approval-cyan: #00aeef;
  --approval-green: #16825d;
  --approval-amber: #b56b06;
  --approval-red: #b92d25;
  --approval-ink: #07131f;
}

.approval-command {
  --tilt-x: 0px;
  --tilt-y: 0px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: 28px;
  min-height: 226px;
  margin-bottom: 14px;
  padding: 28px 30px;
  overflow: hidden;
  border: 1px solid rgba(87, 224, 255, 0.23);
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(94deg, rgba(3, 9, 15, 0.98), rgba(3, 28, 41, 0.93) 58%, rgba(0, 93, 126, 0.64)),
    url("assets/enterprise-office.jpg") calc(50% + var(--tilt-x)) calc(43% + var(--tilt-y))/cover;
  box-shadow: 0 28px 72px rgba(0, 31, 54, 0.25);
  transition: background-position 180ms ease-out, box-shadow 180ms ease;
}

.approval-command::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--pointer-x, 78%) var(--pointer-y, 35%), rgba(106, 231, 255, 0.16), transparent 28%);
}

.approval-command::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, #00aeef, #87edff 42%, #16825d 76%, #f1b24b);
  transform-origin: left;
}

.approval-command-copy,
.approval-readiness {
  position: relative;
  z-index: 1;
}

.approval-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #b8d2dd;
  font-size: 11px;
  font-weight: 750;
}

.approval-kicker > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8ceeff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.approval-kicker .lucide {
  width: 15px;
  height: 15px;
  filter: drop-shadow(0 0 7px rgba(0, 174, 239, 0.62));
}

.approval-command h2,
.approval-command p {
  margin: 0;
}

.approval-command h2 {
  max-width: 720px;
  margin-top: 12px;
  font-size: 34px;
  line-height: 1.08;
}

.approval-command p {
  max-width: 680px;
  margin-top: 10px;
  color: #c2d8e2;
  font-size: 14px;
  line-height: 1.5;
}

.approval-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.approval-command-actions .btn {
  min-height: 40px;
}

.approval-command-actions .lucide {
  width: 17px;
  height: 17px;
}

.approval-command-actions b {
  min-width: 21px;
  height: 21px;
  display: inline-grid;
  place-items: center;
  margin-left: 3px;
  border-radius: 11px;
  color: #006d92;
  background: #ffffff;
  font-size: 9px;
}

.approval-readiness {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 162px;
  padding: 18px;
  border: 1px solid rgba(141, 239, 255, 0.23);
  border-radius: 8px;
  background: rgba(1, 16, 26, 0.76);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 18px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.approval-readiness-ring {
  position: relative;
  width: 116px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#62e6ff var(--approval-readiness), rgba(124, 222, 242, 0.14) 0);
  box-shadow: 0 0 28px rgba(0, 174, 239, 0.22);
}

.approval-readiness-ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background: #061923;
  box-shadow: inset 0 0 18px rgba(0, 174, 239, 0.12);
}

.approval-readiness-ring > div {
  position: relative;
  display: grid;
  justify-items: center;
}

.approval-readiness-ring strong {
  font-size: 25px;
  line-height: 1;
}

.approval-readiness-ring span {
  margin-top: 5px;
  color: #94ddeb;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.approval-readiness-facts {
  display: grid;
  gap: 8px;
}

.approval-readiness-facts > div {
  min-width: 0;
  padding: 9px 10px;
  border-left: 2px solid rgba(89, 226, 255, 0.52);
  background: rgba(255, 255, 255, 0.035);
}

.approval-readiness-facts span,
.approval-readiness-facts strong {
  display: block;
}

.approval-readiness-facts span {
  color: #94b5c2;
  font-size: 9px;
}

.approval-readiness-facts strong {
  margin-top: 3px;
  color: #ffffff;
  font-size: 14px;
}

.approval-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.approval-stat {
  --approval-stat-color: #00aeef;
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  min-height: 98px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid #d3e3ea;
  border-radius: 8px;
  color: var(--text);
  background: #ffffff;
  text-align: left;
  box-shadow: 0 10px 26px rgba(0, 62, 92, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.approval-stat.green { --approval-stat-color: #16825d; }
.approval-stat.red { --approval-stat-color: #b92d25; }
.approval-stat.amber { --approval-stat-color: #b56b06; }

.approval-stat::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--approval-stat-color);
  transform: scaleX(0.32);
  transform-origin: left;
  transition: transform 220ms ease;
}

.approval-stat:hover,
.approval-stat.active {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--approval-stat-color) 42%, #d3e3ea);
  box-shadow: 0 18px 38px rgba(0, 67, 98, 0.13);
}

.approval-stat:hover::after,
.approval-stat.active::after {
  transform: scaleX(1);
}

.approval-stat-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--approval-stat-color) 22%, #dce9ee);
  border-radius: 8px;
  color: var(--approval-stat-color);
  background: color-mix(in srgb, var(--approval-stat-color) 8%, #ffffff);
}

.approval-stat-icon .lucide {
  width: 20px;
  height: 20px;
}

.approval-stat > span:nth-child(2) {
  min-width: 0;
}

.approval-stat small,
.approval-stat strong,
.approval-stat em {
  display: block;
  font-style: normal;
}

.approval-stat small {
  color: #5d707d;
  font-size: 10px;
  font-weight: 800;
}

.approval-stat strong {
  margin: 3px 0;
  font-size: 25px;
  line-height: 1;
}

.approval-stat em {
  overflow: hidden;
  color: #82929c;
  font-size: 9px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.approval-stat-arrow {
  width: 15px;
  height: 15px;
  color: #9babb4;
  transition: color 180ms ease, transform 180ms ease;
}

.approval-stat:hover .approval-stat-arrow {
  color: var(--approval-stat-color);
  transform: translate(2px, -2px);
}

.approval-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 344px;
  gap: 14px;
  align-items: start;
}

.approval-queue {
  overflow: hidden;
}

.approval-queue-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px 14px;
}

.approval-queue-head h2,
.approval-queue-head p {
  margin: 0;
}

.approval-queue-head h2 {
  margin-top: 3px;
  font-size: 18px;
}

.approval-queue-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.approval-result {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid #d4e3e9;
  border-radius: 7px;
  color: #71838e;
  background: #f7fafb;
  font-size: 9px;
  font-weight: 750;
}

.approval-result .lucide {
  width: 14px;
  height: 14px;
  color: #008fc7;
}

.approval-result strong {
  color: var(--text);
  font-size: 12px;
}

.approval-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  border-top: 1px solid #e2ebef;
  border-bottom: 1px solid #dbe7ec;
  background: #f7fafb;
}

.approval-filter,
.approval-type-filter {
  display: flex;
  align-items: center;
  gap: 5px;
}

.approval-filter button,
.approval-type-filter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #607480;
  background: transparent;
  font-size: 9px;
  font-weight: 800;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.approval-filter button:hover,
.approval-type-filter button:hover {
  transform: translateY(-1px);
  color: #007da9;
  background: #ffffff;
}

.approval-filter button.active,
.approval-type-filter button.active {
  border-color: #afe0f0;
  color: #006f97;
  background: #eaf9fe;
  box-shadow: 0 5px 12px rgba(0, 128, 174, 0.08);
}

.approval-filter b {
  min-width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 10px;
  color: #647985;
  background: #e5eef2;
  font-size: 8px;
}

.approval-filter button.active b {
  color: #ffffff;
  background: #008fc7;
}

.approval-type-filter {
  padding-left: 8px;
  border-left: 1px solid #d8e4e9;
}

.approval-type-filter .lucide {
  width: 13px;
  height: 13px;
}

.approval-request-list {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.approval-request-card {
  --request-type-color: #008fc7;
  position: relative;
  display: grid;
  gap: 13px;
  min-width: 0;
  padding: 16px;
  overflow: hidden;
  border: 1px solid #d4e2e8;
  border-left: 4px solid var(--request-type-color);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 9px 24px rgba(0, 61, 89, 0.07);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.approval-request-card.create { --request-type-color: #16825d; }
.approval-request-card.delete { --request-type-color: #b92d25; }

.approval-request-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -88px;
  top: -92px;
  border: 24px solid color-mix(in srgb, var(--request-type-color) 7%, transparent);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 360ms ease;
}

.approval-request-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--request-type-color) 32%, #d4e2e8);
  box-shadow: 0 20px 42px rgba(0, 61, 89, 0.13);
}

.approval-request-card:hover::after {
  transform: scale(1.14) rotate(12deg);
}

.approval-request-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.approval-request-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--request-type-color) 24%, #dce8ed);
  border-radius: 8px;
  color: var(--request-type-color);
  background: color-mix(in srgb, var(--request-type-color) 7%, #ffffff);
}

.approval-request-icon .lucide {
  width: 20px;
  height: 20px;
}

.approval-request-type {
  display: block;
  color: var(--request-type-color);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.approval-request-head h3 {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.2;
}

.approval-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 12px;
  color: #935a08;
  background: #fff2d8;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.approval-status.approved {
  color: #126849;
  background: #e1f6ed;
}

.approval-status.rejected {
  color: #9c2822;
  background: #fde9e7;
}

.approval-status > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 12%, transparent);
}

.approval-request-meta {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border-top: 1px solid #e1eaee;
  border-bottom: 1px solid #e1eaee;
  background: #f9fbfc;
}

.requester-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #0c759d;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  font-size: 12px;
  font-weight: 900;
}

.approval-request-meta strong,
.approval-request-meta small {
  display: block;
}

.approval-request-meta strong {
  font-size: 10px;
}

.approval-request-meta small {
  margin-top: 3px;
  color: #7c8f99;
  font-size: 8px;
}

.request-wait {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #6e818c;
  font-size: 8px;
  font-weight: 750;
}

.request-wait .lucide {
  width: 12px;
  height: 12px;
  color: #b56b06;
}

.approval-request-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.approval-request-summary > div {
  position: relative;
  min-width: 0;
  min-height: 58px;
  padding: 10px 9px 8px 30px;
  border: 1px solid #e0eaee;
  border-radius: 7px;
  background: #fbfcfd;
}

.approval-request-summary .lucide {
  position: absolute;
  left: 9px;
  top: 10px;
  width: 13px;
  height: 13px;
  color: #008fc7;
}

.approval-request-summary span,
.approval-request-summary strong {
  display: block;
}

.approval-request-summary span {
  color: #84949d;
  font-size: 8px;
}

.approval-request-summary strong {
  margin-top: 4px;
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.priority-text.critical { color: #a71e18; }
.priority-text.high { color: #b92d25; }
.priority-text.medium { color: #9a5d07; }
.priority-text.low { color: #16825d; }

.approval-request-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.request-preview {
  color: #006f99;
  border-color: #bde4f1;
  background: #eaf8fd;
}

.request-preview:hover {
  color: #ffffff;
  border-color: #008fc7;
  background: #008fc7;
}

.request-decision-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.request-owner-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.request-edit-own,
.request-withdraw-own {
  min-height: 34px;
  padding: 0 12px;
  font-size: 10px;
  box-shadow: none;
}

.request-edit-own {
  color: #006f99;
  border-color: #b9dfed;
  background: #edf9fd;
}

.request-edit-own:hover {
  color: #ffffff;
  border-color: #008fc7;
  background: #008fc7;
  box-shadow: 0 8px 18px rgba(0, 143, 199, 0.2);
}

.request-withdraw-own {
  color: #a72b25;
  border-color: #efcfcd;
  background: #fff5f4;
}

.request-withdraw-own:hover {
  color: #ffffff;
  border-color: #b92d25;
  background: #b92d25;
  box-shadow: 0 8px 18px rgba(185, 45, 37, 0.2);
}

.request-owner-actions .lucide {
  width: 14px;
  height: 14px;
}

.request-final-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.request-remove {
  min-height: 32px;
  padding: 0 10px;
  border-color: #efcfcd;
  color: #ad302a;
  background: #fff4f3;
  font-size: 9px;
  box-shadow: none;
}

.request-remove:hover {
  border-color: #c43b34;
  color: #ffffff;
  background: #b92d25;
  box-shadow: 0 8px 18px rgba(185, 45, 37, 0.2);
}

.request-remove .lucide {
  width: 13px;
  height: 13px;
}

.request-reject {
  color: #a72b25;
  border-color: #efcfcd;
  background: #fff5f4;
}

.request-reject:hover {
  color: #ffffff;
  border-color: #b92d25;
  background: #b92d25;
}

.request-approve {
  color: #ffffff;
  border-color: #16825d;
  background: #16825d;
  box-shadow: 0 8px 18px rgba(22, 130, 93, 0.2);
}

.request-approve:hover {
  background: #0e6c4c;
  box-shadow: 0 12px 24px rgba(22, 130, 93, 0.28);
}

.decision-signature {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #657984;
  font-size: 9px;
  font-weight: 800;
}

.decision-signature.approved { color: #16825d; }
.decision-signature.rejected { color: #b92d25; }
.decision-signature.pending { color: #9a5d07; }

.decision-signature .lucide {
  width: 14px;
  height: 14px;
}

.request-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #dce8ed;
}

.request-comparison.single {
  grid-template-columns: 1fr;
}

.comparison-column {
  min-width: 0;
  padding: 12px;
  background: #f7fafb;
}

.comparison-column.current {
  border-left: 3px solid #8b9ba4;
}

.comparison-column.proposed {
  border-left: 3px solid #00a7b5;
  background: #f0fbfc;
}

.request-comparison.danger .comparison-column {
  border-left-color: #b92d25;
  background: #fff6f5;
}

.comparison-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.comparison-title > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #17303d;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.comparison-title .lucide {
  width: 14px;
  height: 14px;
  color: #008fc7;
}

.comparison-title em {
  color: #84949c;
  font-size: 8px;
  font-style: normal;
}

.comparison-column dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.comparison-column dl > div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #dfe9ed;
}

.comparison-column dl > div:last-child {
  border-bottom: 0;
}

.comparison-column dt,
.comparison-column dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 8px;
  line-height: 1.4;
}

.comparison-column dt {
  color: #7f9099;
  font-weight: 800;
}

.comparison-column dd {
  color: #253842;
  font-weight: 700;
}

.comparison-arrow {
  display: grid;
  place-items: center;
  color: #00a0d7;
}

.comparison-arrow .lucide {
  width: 18px;
  height: 18px;
}

.approval-empty {
  min-height: 320px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 28px;
  color: #6f828d;
  text-align: center;
}

.approval-empty > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid #bce2ef;
  border-radius: 50%;
  color: #008fc7;
  background: #eaf8fd;
}

.approval-empty > span .lucide {
  width: 23px;
  height: 23px;
}

.approval-empty strong {
  color: var(--text);
  font-size: 15px;
}

.approval-empty p {
  margin: 0;
  font-size: 10px;
}

.approval-empty .btn {
  margin-top: 5px;
}

.approval-side {
  display: grid;
  gap: 14px;
}

.approval-balance-panel,
.approval-history-panel {
  overflow: hidden;
}

.approval-balance {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  padding: 18px;
}

.approval-balance-ring {
  position: relative;
  width: 112px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#16825d 0 var(--create-share), #00a7b5 var(--create-share) var(--update-share), #b92d25 var(--update-share) 360deg);
  box-shadow: 0 12px 28px rgba(0, 69, 99, 0.14);
}

.approval-balance-ring.empty {
  background: conic-gradient(#dce8ed 0 360deg);
  box-shadow: none;
}

.approval-balance-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  background: #ffffff;
}

.approval-balance-ring > div {
  position: relative;
  display: grid;
  justify-items: center;
}

.approval-balance-ring strong {
  font-size: 23px;
  line-height: 1;
}

.approval-balance-ring span {
  margin-top: 4px;
  color: #81919a;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.approval-balance-legend {
  display: grid;
  gap: 4px;
}

.approval-balance-legend button {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 0 7px;
  border-radius: 6px;
  color: #5e727e;
  background: transparent;
  font-size: 9px;
  text-align: left;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.approval-balance-legend button:hover {
  color: #006f97;
  background: #f0f9fc;
  transform: translateX(2px);
}

.approval-balance-legend button > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00a7b5;
}

.approval-balance-legend button > i.create { background: #16825d; }
.approval-balance-legend button > i.delete { background: #b92d25; }
.approval-balance-legend strong { color: var(--text); }

.approval-history-list {
  display: grid;
  padding: 5px 13px 13px;
}

.approval-history-entry {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  border-bottom: 1px solid #e0eaee;
  color: var(--text);
  background: transparent;
  text-align: left;
  transition: background 160ms ease, transform 160ms ease;
}

.approval-history-entry:last-child {
  border-bottom: 0;
}

.approval-history-entry:hover {
  background: #f2fafe;
  transform: translateX(2px);
}

.approval-history-entry > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #bfe2d5;
  border-radius: 7px;
  color: #16825d;
  background: #eaf7f2;
}

.approval-history-entry.rejected > span {
  border-color: #efd0ce;
  color: #b92d25;
  background: #fff1f0;
}

.approval-history-entry .lucide {
  width: 13px;
  height: 13px;
}

.approval-history-entry > .lucide {
  color: #8fa0a9;
}

.approval-history-entry strong,
.approval-history-entry small {
  display: block;
}

.approval-history-entry strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.approval-history-entry small {
  margin-top: 3px;
  color: #81919a;
  font-size: 8px;
}

.approval-history-empty {
  min-height: 120px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: #81919a;
  font-size: 10px;
}

.approval-history-empty .lucide {
  color: #008fc7;
}

@media (max-width: 1220px) {
  .approval-command {
    grid-template-columns: minmax(0, 1fr) 350px;
  }

  .approval-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .approval-layout {
    grid-template-columns: 1fr;
  }

  .approval-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .approval-command {
    grid-template-columns: 1fr;
  }

  .approval-readiness {
    max-width: 520px;
  }

  .approval-toolbar {
    display: grid;
    justify-content: stretch;
  }

  .approval-type-filter {
    padding-top: 8px;
    padding-left: 0;
    border-top: 1px solid #d8e4e9;
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .approval-command {
    padding: 22px;
  }

  .approval-command h2 {
    font-size: 28px;
  }

  .approval-queue-head {
    grid-template-columns: 1fr;
  }

  .approval-result {
    justify-self: start;
  }

  .approval-filter,
  .approval-type-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .approval-filter button,
  .approval-type-filter button {
    justify-content: flex-start;
  }

  .approval-filter b {
    margin-left: auto;
  }

  .approval-request-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .approval-request-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .request-decision-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .request-owner-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .request-final-actions {
    width: 100%;
    justify-content: space-between;
  }

  .request-decision-actions .btn,
  .request-owner-actions .btn,
  .request-preview {
    justify-content: center;
  }

  .request-comparison {
    grid-template-columns: 1fr;
  }

  .comparison-arrow {
    min-height: 24px;
    transform: rotate(90deg);
  }

  .approval-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .approval-command {
    padding: 19px;
  }

  .approval-command h2 {
    font-size: 25px;
  }

  .approval-command-actions .btn {
    width: 100%;
  }

  .approval-readiness {
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 12px;
    padding: 13px;
  }

  .approval-readiness-ring {
    width: 94px;
  }

  .approval-readiness-ring strong {
    font-size: 21px;
  }

  .approval-stats {
    gap: 8px;
  }

  .approval-stat {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
    min-height: 88px;
    padding: 10px;
  }

  .approval-stat-icon {
    width: 36px;
    height: 36px;
  }

  .approval-stat em,
  .approval-stat-arrow,
  .approval-type-filter button span {
    display: none;
  }

  .approval-type-filter button {
    justify-content: center;
  }

  .approval-request-list {
    padding: 10px;
  }

  .approval-request-card {
    padding: 13px;
  }

  .approval-request-head {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .approval-request-icon {
    width: 38px;
    height: 38px;
  }

  .approval-status {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .approval-request-meta {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .request-wait {
    grid-column: 2;
  }

  .approval-balance {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
  }

  .approval-balance-ring {
    width: 98px;
  }

  .comparison-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .comparison-column dl > div {
    grid-template-columns: 68px minmax(0, 1fr);
  }
}

/* Enterprise access */
.access-view {
  --access-cyan: #00aeef;
  --access-teal: #00a7b5;
  --access-green: #16825d;
  --access-red: #b92d25;
  --access-amber: #b56b06;
}

.access-command {
  --tilt-x: 0px;
  --tilt-y: 0px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: 28px;
  min-height: 226px;
  margin-bottom: 14px;
  padding: 28px 30px;
  overflow: hidden;
  border: 1px solid rgba(87, 224, 255, 0.23);
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(94deg, rgba(3, 9, 15, 0.98), rgba(3, 29, 43, 0.93) 57%, rgba(0, 92, 126, 0.63)),
    url("assets/enterprise-office.jpg") calc(50% + var(--tilt-x)) calc(46% + var(--tilt-y))/cover;
  box-shadow: 0 28px 72px rgba(0, 31, 54, 0.25);
  transition: background-position 180ms ease-out, box-shadow 180ms ease;
}

.access-command::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--pointer-x, 78%) var(--pointer-y, 35%), rgba(106, 231, 255, 0.16), transparent 28%);
}

.access-command::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, #00aeef, #8cefff 43%, #16825d 78%, #ffffff);
  transform-origin: left;
}

.access-command-copy,
.access-security-score {
  position: relative;
  z-index: 1;
}

.access-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #b8d2dd;
  font-size: 11px;
  font-weight: 750;
}

.access-kicker > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8ceeff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.access-kicker .lucide {
  width: 15px;
  height: 15px;
  filter: drop-shadow(0 0 7px rgba(0, 174, 239, 0.62));
}

.access-command h2,
.access-command p {
  margin: 0;
}

.access-command h2 {
  max-width: 720px;
  margin-top: 12px;
  font-size: 34px;
  line-height: 1.08;
}

.access-command p {
  max-width: 680px;
  margin-top: 10px;
  color: #c2d8e2;
  font-size: 14px;
  line-height: 1.5;
}

.access-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.access-command-actions .lucide {
  width: 17px;
  height: 17px;
}

.access-security-score {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 162px;
  padding: 18px;
  border: 1px solid rgba(141, 239, 255, 0.23);
  border-radius: 8px;
  background: rgba(1, 16, 26, 0.76);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 18px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.access-score-ring {
  position: relative;
  width: 116px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#62e6ff var(--access-score), rgba(124, 222, 242, 0.14) 0);
  box-shadow: 0 0 28px rgba(0, 174, 239, 0.22);
}

.access-score-ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background: #061923;
  box-shadow: inset 0 0 18px rgba(0, 174, 239, 0.12);
}

.access-score-ring > div {
  position: relative;
  display: grid;
  justify-items: center;
}

.access-score-ring strong {
  font-size: 25px;
  line-height: 1;
}

.access-score-ring span {
  margin-top: 5px;
  color: #94ddeb;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.access-score-facts {
  display: grid;
  gap: 8px;
}

.access-score-facts > div {
  min-width: 0;
  padding: 9px 10px;
  border-left: 2px solid rgba(89, 226, 255, 0.52);
  background: rgba(255, 255, 255, 0.035);
}

.access-score-facts span,
.access-score-facts strong {
  display: block;
}

.access-score-facts span {
  color: #94b5c2;
  font-size: 9px;
}

.access-score-facts strong {
  margin-top: 3px;
  overflow: hidden;
  color: #ffffff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.access-stat {
  --access-stat-color: #00aeef;
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  min-height: 98px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid #d3e3ea;
  border-radius: 8px;
  color: var(--text);
  background: #ffffff;
  text-align: left;
  box-shadow: 0 10px 26px rgba(0, 62, 92, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.access-stat.green { --access-stat-color: #16825d; }
.access-stat.red { --access-stat-color: #b92d25; }
.access-stat.amber { --access-stat-color: #b56b06; }

.access-stat::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--access-stat-color);
  transform: scaleX(0.32);
  transform-origin: left;
  transition: transform 220ms ease;
}

.access-stat:hover,
.access-stat.active {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--access-stat-color) 42%, #d3e3ea);
  box-shadow: 0 18px 38px rgba(0, 67, 98, 0.13);
}

.access-stat:hover::after,
.access-stat.active::after {
  transform: scaleX(1);
}

.access-stat-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--access-stat-color) 22%, #dce9ee);
  border-radius: 8px;
  color: var(--access-stat-color);
  background: color-mix(in srgb, var(--access-stat-color) 8%, #ffffff);
}

.access-stat-icon .lucide {
  width: 20px;
  height: 20px;
}

.access-stat > span:nth-child(2) {
  min-width: 0;
}

.access-stat small,
.access-stat strong,
.access-stat em {
  display: block;
  font-style: normal;
}

.access-stat small {
  color: #5d707d;
  font-size: 10px;
  font-weight: 800;
}

.access-stat strong {
  margin: 3px 0;
  font-size: 25px;
  line-height: 1;
}

.access-stat em {
  overflow: hidden;
  color: #82929c;
  font-size: 9px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-stat-arrow {
  width: 15px;
  height: 15px;
  color: #9babb4;
  transition: color 180ms ease, transform 180ms ease;
}

.access-stat:hover .access-stat-arrow {
  color: var(--access-stat-color);
  transform: translate(2px, -2px);
}

.access-directory {
  overflow: hidden;
  margin-bottom: 14px;
}

.access-directory-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  align-items: center;
  gap: 20px;
  padding: 18px 20px 14px;
}

.access-directory-head h2,
.access-directory-head p {
  margin: 0;
}

.access-directory-head h2 {
  margin-top: 3px;
  font-size: 18px;
}

.access-directory-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.access-directory-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
}

.access-search {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 10px 0 12px;
  border: 1px solid #c9dce5;
  border-radius: 8px;
  background: #f7fafb;
  box-shadow: inset 0 1px 2px rgba(0, 40, 62, 0.04);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.access-search:focus-within {
  border-color: #00aeea;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
}

.access-search > .lucide {
  width: 17px;
  height: 17px;
  color: #66808f;
}

.access-search input {
  min-width: 0;
  height: 40px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: 11px;
}

.access-search kbd {
  padding: 3px 6px;
  border: 1px solid #d4e0e6;
  border-bottom-width: 2px;
  border-radius: 5px;
  color: #738793;
  background: #ffffff;
  font-size: 8px;
  font-family: inherit;
  font-weight: 800;
}

.access-add {
  width: 42px;
  height: 42px;
  color: #ffffff;
  border-color: #008fc7;
  background: #008fc7;
  box-shadow: 0 9px 20px rgba(0, 143, 199, 0.2);
}

.access-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-top: 1px solid #e2ebef;
  border-bottom: 1px solid #dbe7ec;
  background: #f7fafb;
}

.access-filter,
.access-role-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.access-role-filter {
  justify-content: flex-end;
  padding-left: 10px;
  border-left: 1px solid #d8e4e9;
}

.access-filter button,
.access-role-filter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #607480;
  background: transparent;
  font-size: 8px;
  font-weight: 800;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.access-filter button:hover,
.access-role-filter button:hover {
  transform: translateY(-1px);
  color: #007da9;
  background: #ffffff;
}

.access-filter button.active,
.access-role-filter button.active {
  border-color: #afe0f0;
  color: #006f97;
  background: #eaf9fe;
  box-shadow: 0 5px 12px rgba(0, 128, 174, 0.08);
}

.access-role-filter .lucide {
  width: 12px;
  height: 12px;
}

.access-filter b,
.access-role-filter b {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 10px;
  color: #647985;
  background: #e5eef2;
  font-size: 8px;
}

.access-filter button.active b,
.access-role-filter button.active b {
  color: #ffffff;
  background: #008fc7;
}

.access-result {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #778a95;
  font-size: 9px;
  font-weight: 700;
}

.access-result .lucide {
  width: 14px;
  height: 14px;
  color: #00a0d7;
}

.access-result strong {
  color: var(--text);
  font-size: 11px;
}

.access-list-head {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) 145px 135px minmax(140px, 0.85fr) 42px;
  gap: 12px;
  padding: 10px 17px 8px;
  color: #7d8e98;
  background: #ffffff;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.access-user-list {
  display: grid;
  padding: 0 13px 13px;
}

.access-user-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) 145px 135px minmax(140px, 0.85fr) 42px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 92px;
  padding: 12px 4px;
  border-top: 1px solid #e0eaee;
  background: #ffffff;
  transition: background 180ms ease, transform 180ms ease;
}

.access-user-row:first-child {
  border-top: 0;
}

.access-user-row:hover {
  background: #f5fbfd;
  transform: translateX(2px);
}

.access-user-row.blocked {
  opacity: 0.72;
}

.access-user-row.external {
  background: #fff9f8;
}

.access-user-row[hidden] {
  display: none !important;
}

.access-user-identity {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.access-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #147ca3;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35), 0 8px 18px rgba(0, 87, 122, 0.15);
  font-size: 12px;
  font-weight: 900;
}

.access-avatar.admin { background: #0a5d83; }
.access-avatar.moderator { background: #a05a00; }
.access-avatar.reception { background: #008b83; }
.access-avatar.employee { background: #4c6d7e; }

.access-avatar > i {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #16825d;
}

.access-user-row.blocked .access-avatar > i {
  background: #9aa8af;
}

.access-name-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.access-name-line strong,
.access-user-identity small,
.access-user-identity em {
  display: block;
}

.access-name-line strong {
  overflow-wrap: anywhere;
  font-size: 11px;
}

.access-user-identity small {
  margin-top: 4px;
  overflow: hidden;
  color: #5f7480;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-user-identity em {
  margin-top: 3px;
  color: #8b9aa2;
  font-size: 8px;
  font-style: normal;
}

.self-badge,
.domain-alert {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 5px;
  border-radius: 5px;
  color: #006f97;
  background: #e7f7fc;
  font-size: 7px;
  font-weight: 900;
  text-transform: uppercase;
}

.domain-alert {
  color: #a42c25;
  background: #fdecea;
}

.domain-alert.gmail {
  color: #006f97;
  background: #e4f8ff;
  box-shadow: inset 0 0 0 1px rgba(0, 174, 239, 0.16);
}

.domain-alert .lucide {
  width: 9px;
  height: 9px;
}

.access-role-control,
.access-status-control,
.access-activity {
  min-width: 0;
}

.access-role-control > label,
.access-status-control > label,
.access-activity > label {
  display: none;
  margin-bottom: 5px;
  color: #82929b;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.access-role-control select {
  width: 100%;
  min-height: 36px;
  padding: 0 30px 0 9px;
  border: 1px solid #cedfe6;
  border-radius: 7px;
  color: #28404d;
  background-color: #f8fbfc;
  font-size: 9px;
  font-weight: 800;
}

.access-role-control select:focus {
  border-color: #00aeea;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
}

.locked-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid #b9dce8;
  border-radius: 7px;
  color: #006f97;
  background: #edf9fd;
  font-size: 9px;
  font-weight: 850;
}

.locked-role .lucide {
  width: 14px;
  height: 14px;
}

.access-switch {
  display: inline-grid;
  grid-template-columns: 35px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 36px;
  width: 100%;
  padding: 0 7px;
  border: 1px solid #e2cfcd;
  border-radius: 7px;
  color: #9b302a;
  background: #fff7f6;
  font-size: 9px;
  font-weight: 850;
  text-align: left;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.access-switch > i {
  position: relative;
  width: 32px;
  height: 18px;
  border-radius: 10px;
  background: #d7b3b0;
  transition: background 180ms ease;
}

.access-switch b {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.access-switch.on {
  color: #146c4f;
  border-color: #b9e0d1;
  background: #f0faf6;
}

.access-switch.on > i {
  background: #16825d;
}

.access-switch.on b {
  transform: translateX(14px);
}

.access-switch:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 70, 98, 0.1);
}

.access-switch:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.access-account-actions {
  display: flex;
  align-items: center;
  justify-content: center;
}

.access-delete-account,
.access-protected {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e8cfcd;
  border-radius: 7px;
}

.access-delete-account {
  color: #ad332d;
  background: #fff5f4;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.access-delete-account:hover {
  border-color: #c63e36;
  color: #ffffff;
  background: #b92d25;
  box-shadow: 0 9px 20px rgba(185, 45, 37, 0.22);
  transform: translateY(-1px);
}

.access-delete-account:active {
  transform: scale(0.94);
}

.access-delete-account span {
  display: none;
}

.access-delete-account .lucide,
.access-protected .lucide {
  width: 15px;
  height: 15px;
}

.access-protected {
  color: #17815e;
  border-color: #c7e3d8;
  background: #edf8f4;
}

.access-activity strong,
.access-activity small {
  display: block;
}

.access-activity strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-activity small {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: #84949d;
  font-size: 8px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.access-empty,
.access-search-empty {
  min-height: 230px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 28px;
  color: #6f828d;
  text-align: center;
}

.access-empty > span,
.access-search-empty > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #bce2ef;
  border-radius: 50%;
  color: #008fc7;
  background: #eaf8fd;
}

.access-empty strong,
.access-search-empty strong {
  color: var(--text);
  font-size: 14px;
}

.access-empty p,
.access-search-empty p {
  margin: 0;
  font-size: 10px;
}

.access-search-empty {
  margin: 0 13px 13px;
  border: 1px dashed #bed8e3;
  border-radius: 8px;
  background: #f7fbfc;
}

.access-search-empty[hidden] {
  display: none !important;
}

.access-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 14px;
  align-items: start;
}

.access-invites-panel,
.access-security-panel {
  overflow: hidden;
  scroll-margin-top: 20px;
}

.access-invite-list {
  display: grid;
  padding: 5px 13px 13px;
}

.access-invite-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 9px;
  min-height: 64px;
  border-bottom: 1px solid #e0eaee;
}

.access-invite-row:last-child {
  border-bottom: 0;
}

.access-invite-row.closed {
  opacity: 0.72;
}

.invite-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #c5e3ed;
  border-radius: 7px;
  color: #008fc7;
  background: #edf9fc;
}

.invite-icon .lucide {
  width: 14px;
  height: 14px;
}

.access-invite-row strong,
.access-invite-row small {
  display: block;
}

.access-invite-row strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-invite-row small {
  margin-top: 4px;
  color: #81919a;
  font-size: 8px;
}

.invite-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 11px;
  color: #986009;
  background: #fff3da;
  font-size: 7px;
  font-weight: 900;
  text-transform: uppercase;
}

.invite-state.used {
  color: #146c4f;
  background: #e4f6ee;
}

.invite-state.revoked,
.invite-state.deleted {
  color: #9c302a;
  background: #fdecea;
}

.invite-state > i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.invite-revoke {
  width: 28px;
  height: 28px;
  color: #ac2f28;
  border-color: #efd0ce;
  background: #fff5f4;
}

.invite-closed {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #91a0a8;
}

.invite-closed .lucide {
  width: 13px;
  height: 13px;
}

.access-invite-empty {
  min-height: 140px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: #81919a;
  font-size: 10px;
}

.access-invite-empty .lucide {
  color: #008fc7;
}

.secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 12px;
  color: #146c4f;
  background: #e4f6ee;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.secure-pill .lucide {
  width: 12px;
  height: 12px;
}

.security-status-strip {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 13px 15px 0;
  padding: 10px;
  border-left: 3px solid #16825d;
  background: #f0faf6;
}

.security-status-strip > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #16825d;
  background: #dff3ea;
}

.security-status-strip .lucide {
  width: 16px;
  height: 16px;
}

.security-status-strip strong,
.security-status-strip small {
  display: block;
}

.security-status-strip strong {
  font-size: 10px;
}

.security-status-strip small {
  margin-top: 3px;
  color: #678077;
  font-size: 8px;
}

.access-password-form {
  display: grid;
  gap: 10px;
  padding: 14px 15px 15px;
}

.access-password-form .form-grid {
  gap: 10px;
}

.password-input,
.invite-email-input {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border: 1px solid #cfdee5;
  border-radius: 7px;
  background: #ffffff;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.password-input:focus-within,
.invite-email-input:focus-within {
  border-color: #00aeea;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
}

.password-input > .lucide,
.invite-email-input > .lucide {
  width: 14px;
  height: 14px;
  margin-left: 10px;
  color: #66808f;
}

.password-input input,
.invite-email-input input {
  min-width: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
}

.password-input input:focus,
.invite-email-input input:focus {
  border: 0;
  box-shadow: none;
}

.password-strength {
  padding: 9px 10px;
  border: 1px solid #e0eaee;
  border-radius: 7px;
  background: #f8fafb;
}

.password-strength > div {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.password-strength i {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 4px;
  background: #e0e8ec;
}

.password-strength b {
  display: block;
  width: var(--password-strength);
  height: 100%;
  border-radius: inherit;
  background: #b92d25;
  transition: width 220ms ease, background 220ms ease;
}

.password-strength[data-level="3"] b { background: #b56b06; }
.password-strength[data-level="4"] b,
.password-strength[data-level="5"] b { background: #16825d; }

.password-strength span {
  color: #6f818b;
  font-size: 8px;
}

.password-strength strong {
  color: var(--text);
}

.password-strength > small {
  display: block;
  margin-top: 6px;
  color: #85949c;
  font-size: 8px;
}

.access-password-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #e0eaee;
}

.access-password-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #778a94;
  font-size: 8px;
}

.access-password-footer > span .lucide {
  width: 12px;
  height: 12px;
  color: #008fc7;
}

.invite-editor-form .field-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  color: #67808d;
  font-size: 9px;
}

.invite-editor-form .field-hint .lucide {
  width: 12px;
  height: 12px;
  color: #16825d;
}

.invite-role-preview {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px;
  border-left: 3px solid #00a7b5;
  background: #eefafb;
}

.invite-role-preview > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #008fc7;
  background: #dff5f8;
}

.invite-role-preview .lucide {
  width: 18px;
  height: 18px;
}

.invite-role-preview strong,
.invite-role-preview small {
  display: block;
}

.invite-role-preview strong {
  font-size: 11px;
}

.invite-role-preview small {
  margin-top: 4px;
  color: #5f7884;
  font-size: 9px;
}

.invite-security-note {
  display: flex;
  align-items: center;
  gap: 8px;
}

.invite-security-note .lucide {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: #008fc7;
}

@media (max-width: 1220px) {
  .access-command {
    grid-template-columns: minmax(0, 1fr) 350px;
  }

  .access-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .access-toolbar {
    grid-template-columns: 1fr auto;
  }

  .access-role-filter {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 8px;
    padding-left: 0;
    border-top: 1px solid #d8e4e9;
    border-left: 0;
  }

  .access-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .access-command {
    grid-template-columns: 1fr;
  }

  .access-security-score {
    max-width: 520px;
  }

  .access-list-head {
    display: none;
  }

  .access-user-list {
    gap: 9px;
    padding: 12px;
  }

  .access-user-row {
    grid-template-columns: minmax(240px, 1.2fr) minmax(150px, 0.8fr);
    gap: 12px 18px;
    padding: 14px;
    border: 1px solid #dbe7ec;
    border-radius: 8px;
  }

  .access-user-row:first-child {
    border-top: 1px solid #dbe7ec;
  }

  .access-role-control > label,
  .access-status-control > label,
  .access-activity > label {
    display: block;
  }

  .access-account-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 9px;
    border-top: 1px solid #e1eaee;
  }

  .access-delete-account {
    width: auto;
    min-width: 118px;
    padding: 0 11px;
    gap: 7px;
  }

  .access-delete-account span {
    display: inline;
    font-size: 9px;
    font-weight: 850;
  }
}

@media (max-width: 720px) {
  .access-command {
    padding: 22px;
  }

  .access-command h2 {
    font-size: 28px;
  }

  .access-directory-head {
    grid-template-columns: 1fr;
  }

  .access-toolbar {
    grid-template-columns: 1fr;
  }

  .access-filter,
  .access-role-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .access-filter button,
  .access-role-filter button {
    justify-content: flex-start;
  }

  .access-filter b,
  .access-role-filter b {
    margin-left: auto;
  }

  .access-result {
    justify-self: start;
  }

  .access-password-form .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .access-command {
    padding: 19px;
  }

  .access-command h2 {
    font-size: 25px;
  }

  .access-command-actions .btn {
    width: 100%;
  }

  .access-security-score {
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 12px;
    padding: 13px;
  }

  .access-score-ring {
    width: 94px;
  }

  .access-score-ring strong {
    font-size: 21px;
  }

  .access-stats {
    gap: 8px;
  }

  .access-stat {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
    min-height: 88px;
    padding: 10px;
  }

  .access-stat-icon {
    width: 36px;
    height: 36px;
  }

  .access-stat em,
  .access-stat-arrow,
  .access-search kbd,
  .access-result {
    display: none;
  }

  .access-directory-head {
    padding: 15px;
  }

  .access-toolbar {
    padding: 9px 15px;
  }

  .access-role-filter button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .access-user-row {
    grid-template-columns: 1fr;
  }

  .access-invite-row {
    grid-template-columns: 34px minmax(0, 1fr) 28px;
  }

  .invite-state {
    grid-column: 2;
    justify-self: start;
  }

  .invite-revoke,
  .invite-closed {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .access-password-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .access-password-footer .btn {
    width: 100%;
  }
}

/* Enterprise calendar */
.calendar-view {
  --calendar-accent: #00aeea;
}

.calendar-commandbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  margin-bottom: 14px;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 174, 239, 0.24);
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(115deg, rgba(4, 10, 17, 0.98), rgba(3, 35, 51, 0.96) 62%, rgba(0, 106, 143, 0.92)),
    url("assets/enterprise-office.jpg") center 44%/cover;
  box-shadow: 0 20px 52px rgba(0, 31, 54, 0.22);
}

.calendar-commandbar::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6ceaff 34%, #00a7b5 70%, transparent);
  transform-origin: left;
}

.calendar-month-title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.calendar-command-visual {
  position: relative;
  width: 78px;
  height: 58px;
  flex: 0 0 78px;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(117, 231, 255, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(rgba(85, 222, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 222, 255, 0.055) 1px, transparent 1px),
    linear-gradient(145deg, rgba(0, 174, 239, 0.16), rgba(2, 18, 30, 0.76));
  background-size: 8px 8px, 8px 8px, auto;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.09), 0 0 26px rgba(0, 174, 239, 0.17);
  isolation: isolate;
}

.calendar-command-visual::before {
  content: "";
  position: absolute;
  inset: -35% -20%;
  z-index: -1;
  background: linear-gradient(112deg, transparent 35%, rgba(112, 232, 255, 0.2) 48%, transparent 61%);
}

.calendar-mini-sheet {
  position: absolute;
  left: 10px;
  top: 8px;
  width: 50px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(154, 235, 255, 0.5);
  border-radius: 5px;
  background: linear-gradient(150deg, rgba(245, 253, 255, 0.98), rgba(213, 244, 251, 0.94));
  box-shadow: 0 8px 18px rgba(0, 5, 12, 0.32), 0 0 14px rgba(83, 224, 255, 0.16);
}

.calendar-mini-sheet::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 10px;
  background: linear-gradient(90deg, #0088cf, #00b8e9);
  box-shadow: 0 1px 0 rgba(0, 80, 121, 0.16);
}

.calendar-sheet-rings {
  position: absolute;
  z-index: 2;
  top: 3px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
}

.calendar-sheet-rings i {
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: #e9fbff;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.72);
}

.calendar-sheet-date {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 6px;
  width: 11px;
  height: 11px;
  display: grid !important;
  place-items: center;
  border-radius: 3px;
  color: #007aaa !important;
  background: #d4f4fb;
  font-size: 5px !important;
  font-weight: 900 !important;
  line-height: 1;
}

.calendar-writing-lines {
  position: absolute;
  top: 14px;
  left: 21px;
  right: 5px;
  display: grid !important;
  gap: 5px;
}

.calendar-writing-lines > i {
  position: relative;
  width: 100%;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: #c4e5ec;
}

.calendar-writing-lines > i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #008ed2, #05bdd7);
  box-shadow: 0 0 5px rgba(0, 174, 239, 0.52);
}

.calendar-writing-pencil {
  position: absolute;
  z-index: 4;
  left: 29px;
  top: 4px;
  width: 19px;
  height: 19px;
  display: grid !important;
  place-items: center;
  color: #f8fdff !important;
  filter: drop-shadow(0 2px 2px rgba(0, 4, 9, 0.62)) drop-shadow(0 0 6px rgba(73, 224, 255, 0.62));
  transform-origin: 15% 85%;
}

.calendar-writing-pencil .lucide {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.calendar-writing-pencil b {
  position: absolute;
  left: 1px;
  bottom: 1px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #75eeff;
  box-shadow: 0 0 8px #3adfff;
}

.calendar-writing-glow {
  position: absolute;
  z-index: 3;
  left: 25px;
  top: 13px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(75, 225, 255, 0.26);
  filter: blur(5px);
}

.calendar-month-title > div > span,
.calendar-month-title h2 {
  display: block;
  margin: 0;
}

.calendar-month-title > div > span {
  color: #9dd7e8;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.calendar-month-title h2 {
  margin-top: 3px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.1;
}

.calendar-segment {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(2, 13, 22, 0.52);
  backdrop-filter: blur(10px);
}

.calendar-segment .icon-btn,
.calendar-segment .btn {
  min-height: 34px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: transparent;
  box-shadow: none;
}

.calendar-segment .icon-btn:hover,
.calendar-segment .btn:hover {
  background: rgba(0, 174, 239, 0.25);
}

.calendar-add {
  position: relative;
  z-index: 1;
}

.calendar-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.calendar-stat {
  --stat-accent: #008fd0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(0, 95, 134, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.calendar-stat:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--stat-accent) 34%, white);
  box-shadow: 0 20px 44px rgba(0, 95, 134, 0.13);
}

.calendar-stat.teal { --stat-accent: #008d99; }
.calendar-stat.orange { --stat-accent: #b86400; }
.calendar-stat.ink { --stat-accent: #253746; }

.calendar-stat-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--stat-accent);
  background: color-mix(in srgb, var(--stat-accent) 10%, white);
}

.calendar-stat-icon .lucide {
  width: 19px;
  height: 19px;
}

.calendar-stat > div > span,
.calendar-stat strong,
.calendar-stat small {
  display: block;
}

.calendar-stat > div > span,
.calendar-stat small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.calendar-stat strong {
  margin: 2px 0;
  color: #172430;
  font-size: 21px;
  line-height: 1.05;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
  align-items: start;
}

.calendar-board {
  box-shadow: 0 22px 58px rgba(0, 75, 109, 0.12);
}

.calendar-board-header {
  min-height: 66px;
}

.calendar-board-header > div:first-child {
  display: grid;
  gap: 3px;
}

.calendar-board-header h2 {
  font-size: 18px;
  text-transform: capitalize;
}

.calendar-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 12px;
}

.calendar-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16825d;
}

.legend-dot.medium { background: #008fd0; }
.legend-dot.high { background: #c06400; }
.legend-dot.critical { background: #c2241b; }

.calendar-view .weekdays {
  background: #f4f9fc;
  border-bottom: 1px solid #cfe3ec;
}

.calendar-view .weekdays span {
  padding: 11px 12px;
  color: #647786;
  text-align: center;
  letter-spacing: 0;
}

.calendar-view .weekdays span.weekend {
  color: #9a5d12;
  background: rgba(255, 244, 214, 0.42);
}

.calendar-view .day {
  position: relative;
  min-height: 126px;
  padding: 9px;
  overflow: hidden;
  outline: 0;
  cursor: pointer;
  background: #ffffff;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.calendar-view .day::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid transparent;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.calendar-view .day:hover {
  z-index: 2;
  background: #f3fbff;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 30px rgba(0, 95, 134, 0.14);
}

.calendar-view .day:hover::after,
.calendar-view .day:focus-visible::after {
  border-color: rgba(0, 174, 239, 0.55);
  box-shadow: inset 0 0 0 1px rgba(0, 174, 239, 0.16);
}

.calendar-view .day.selected {
  z-index: 1;
  background: linear-gradient(180deg, #f3fbff, #e7f7fd);
  box-shadow: inset 0 0 0 2px #00a7df;
}

.calendar-view .day.today {
  outline: 0;
  background: linear-gradient(180deg, #ecfbff, #f7fdff);
}

.calendar-view .day.today .day-number > span:first-child {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #008fc7;
  box-shadow: 0 6px 16px rgba(0, 143, 199, 0.24);
}

.calendar-view .day.muted {
  color: #a4afba;
  background: #f6f8fa;
  filter: saturate(0.72);
}

.calendar-view .day.weekend:not(.muted) {
  background-color: #fffdf9;
}

.calendar-view .day-number {
  min-height: 26px;
  margin-bottom: 4px;
}

.day-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #0080ad;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.day-meta i {
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #007aa5;
  background: #d9f4fd;
  font-size: 9px;
  font-style: normal;
}

.day-load {
  height: 2px;
  margin: 0 0 6px;
  overflow: hidden;
  border-radius: 2px;
  background: #edf3f6;
}

.day-load i {
  display: block;
  width: var(--day-load);
  height: 100%;
  background: linear-gradient(90deg, #00a7b5, #00aeef);
  transform-origin: left;
}

.calendar-view .event {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 2px 6px;
  align-items: center;
  min-height: 34px;
  margin: 4px 0;
  padding: 5px 6px;
  border: 1px solid #c9e8f3;
  border-left: 3px solid #008fc7;
  border-radius: 6px;
  color: #15303e;
  background: #effaff;
  box-shadow: none;
}

.calendar-view .event:hover {
  filter: none;
  transform: translateX(2px);
  border-color: #9bd8ed;
  box-shadow: 0 8px 20px rgba(0, 95, 134, 0.11);
}

.calendar-view .event.priority-low { border-left-color: #16825d; background: #f0fbf6; }
.calendar-view .event.priority-high { border-left-color: #c06400; background: #fff8ec; }
.calendar-view .event.priority-critical { border-left-color: #c2241b; background: #fff2f1; }

.calendar-view .event-time {
  grid-row: span 2;
  color: #007ca9;
  font-size: 10px;
  font-weight: 900;
  opacity: 1;
}

.calendar-view .event strong {
  color: #1a2d38;
  font-size: 10px;
}

.calendar-view .event-room {
  color: #70818d;
  font-size: 9px;
  opacity: 1;
}

.day-more {
  display: block;
  margin-top: 5px;
  color: #007ca9;
  font-size: 9px;
  font-weight: 800;
}

.calendar-sidebar {
  gap: 12px;
}

.selected-day-panel {
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f7fcff);
}

.selected-day-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #06111d, #06364e 72%, #007ba6);
}

.selected-day-number {
  width: 54px;
  height: 58px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid rgba(141, 239, 255, 0.28);
  border-radius: 8px;
  background: rgba(0, 174, 239, 0.16);
}

.selected-day-number strong,
.selected-day-number span {
  display: block;
}

.selected-day-number strong {
  font-size: 24px;
  line-height: 1;
}

.selected-day-number span {
  margin-top: 4px;
  color: #9beaff;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.selected-day-head > div:nth-child(2) > span,
.selected-day-head h2 {
  display: block;
  margin: 0;
}

.selected-day-head > div:nth-child(2) > span {
  color: #9ac8da;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.selected-day-head h2 {
  margin-top: 4px;
  color: #ffffff;
  font-size: 14px;
}

.selected-day-head .icon-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.selected-day-agenda {
  display: grid;
  gap: 6px;
  padding: 12px 12px 4px;
}

.agenda-preview {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #213641;
  background: transparent;
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.agenda-preview:hover {
  background: #effaff;
  border-color: #c4e7f3;
  transform: translateX(2px);
}

.agenda-preview > span {
  color: #0080ae;
  font-size: 12px;
  font-weight: 900;
}

.agenda-preview strong,
.agenda-preview small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-preview strong { font-size: 12px; }
.agenda-preview small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.agenda-preview .lucide { width: 14px; height: 14px; color: #8ca1af; }

.agenda-empty {
  min-height: 82px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: #6a7d89;
  font-size: 12px;
}

.agenda-empty .lucide {
  width: 25px;
  height: 25px;
  color: #0b99c7;
}

.selected-day-actions {
  padding: 10px 12px 12px;
}

.month-load-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 7px;
  min-height: 142px;
  padding: 14px;
}

.month-load-chart > div {
  display: grid;
  grid-template-rows: 18px 76px 16px;
  justify-items: center;
  align-items: end;
  gap: 5px;
}

.load-value,
.month-load-chart small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.month-load-chart > div > i {
  position: relative;
  width: 11px;
  height: 76px;
  overflow: hidden;
  border-radius: 5px;
  background: #e7f0f4;
}

.month-load-chart b {
  position: absolute;
  inset: auto 0 0;
  height: var(--load);
  border-radius: inherit;
  background: linear-gradient(180deg, #62e6f5, #0097c8);
  transform-origin: bottom;
}

html.sheet-open,
body.sheet-open {
  overflow: hidden;
}

.day-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 22px;
  overflow: auto;
  background: rgba(2, 9, 15, 0.62);
  backdrop-filter: blur(14px) saturate(0.82);
}

.day-sheet-backdrop.is-closing {
  pointer-events: none;
}

.day-sheet {
  width: min(880px, 100%);
  max-height: min(820px, calc(100vh - 44px));
  overflow: auto;
  border: 1px solid rgba(141, 239, 255, 0.32);
  border-radius: 8px;
  color: var(--text);
  background: #f7fbfd;
  box-shadow: 0 40px 120px rgba(0, 8, 15, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transform-origin: center;
}

.day-sheet-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 14px;
  min-height: 116px;
  padding: 18px 20px;
  color: #ffffff;
  background:
    linear-gradient(110deg, rgba(3, 10, 17, 0.98), rgba(4, 51, 70, 0.96) 74%, rgba(0, 128, 169, 0.92)),
    url("assets/enterprise-office.jpg") center/cover;
  border-bottom: 2px solid #00aeef;
}

.day-sheet-date-mark {
  width: 60px;
  height: 68px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid rgba(141, 239, 255, 0.36);
  border-radius: 8px;
  background: rgba(0, 174, 239, 0.16);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.day-sheet-date-mark strong,
.day-sheet-date-mark span {
  display: block;
}

.day-sheet-date-mark strong { font-size: 30px; line-height: 1; }
.day-sheet-date-mark span { margin-top: 5px; color: #96e9ff; font-size: 10px; font-weight: 900; text-transform: uppercase; }

.day-sheet-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8defff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.day-sheet-kicker .lucide { width: 13px; height: 13px; }

.day-sheet-header h2,
.day-sheet-header p {
  margin: 0;
}

.day-sheet-header h2 {
  margin-top: 5px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.16;
}

.day-sheet-header p {
  margin-top: 6px;
  color: #b7d0dc;
  font-size: 12px;
}

.day-sheet-close {
  align-self: start;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.day-sheet-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.day-sheet-summary > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 12px 14px;
  background: #ffffff;
}

.sheet-summary-icon {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #008fc7;
  background: #e1f6fd;
}

.sheet-summary-icon.teal { color: #007f89; background: #e3f8f7; }
.sheet-summary-icon.orange { color: #aa5a00; background: #fff0d6; }
.sheet-summary-icon.green { color: #147452; background: #e2f7ed; }
.sheet-summary-icon .lucide { width: 17px; height: 17px; }

.day-sheet-summary strong,
.day-sheet-summary small {
  display: block;
}

.day-sheet-summary strong { font-size: 19px; line-height: 1; }
.day-sheet-summary small { color: var(--muted); font-size: 10px; }

.day-sheet-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  min-height: 310px;
}

.day-sheet-agenda,
.day-sheet-rooms {
  padding: 18px;
}

.day-sheet-rooms {
  border-left: 1px solid var(--line);
  background: #f2f8fb;
}

.sheet-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sheet-section-title span,
.sheet-section-title h3 {
  display: block;
  margin: 0;
}

.sheet-section-title > div > span {
  color: var(--primary-strong);
  font-size: 9px;
  font-weight: 900;
}

.sheet-section-title h3 {
  margin-top: 3px;
  font-size: 16px;
}

.sheet-timeline,
.sheet-room-list {
  display: grid;
}

.sheet-meeting {
  position: relative;
  display: grid;
  grid-template-columns: 48px 12px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 8px;
  border-bottom: 1px solid #dceaf0;
  color: var(--text);
  background: transparent;
  text-align: left;
  transition: background 180ms ease, transform 180ms ease;
}

.sheet-meeting:hover {
  background: #ebf8fd;
  transform: translateX(3px);
}

.sheet-meeting-time strong,
.sheet-meeting-time small,
.sheet-meeting-content strong,
.sheet-meeting-content small {
  display: block;
}

.sheet-meeting-time strong { color: #007fae; font-size: 14px; }
.sheet-meeting-time small { margin-top: 3px; color: var(--muted); font-size: 10px; }

.sheet-meeting-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #008fc7;
  box-shadow: 0 0 0 4px #dff5fc;
}

.sheet-meeting-dot.low { background: #16825d; box-shadow: 0 0 0 4px #daf3e8; }
.sheet-meeting-dot.high { background: #c06400; box-shadow: 0 0 0 4px #ffefd4; }
.sheet-meeting-dot.critical { background: #c2241b; box-shadow: 0 0 0 4px #fee5e3; }

.sheet-meeting-content {
  min-width: 0;
}

.sheet-meeting-content strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.sheet-meeting-content small {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-meeting-content .lucide { width: 12px; height: 12px; }
.sheet-meeting-arrow { width: 14px; height: 14px; color: #8ba0ae; }

.sheet-empty-agenda {
  min-height: 220px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.sheet-empty-agenda > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 8px;
  color: #008fc7;
  background: #def5fd;
}

.sheet-empty-agenda > span .lucide { width: 26px; height: 26px; }
.sheet-empty-agenda p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }

.sheet-room-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 64px;
  border-bottom: 1px solid #dceaf0;
}

.sheet-room-row:last-child { border-bottom: 0; }
.sheet-room-row strong,
.sheet-room-row small { display: block; }
.sheet-room-row strong { font-size: 12px; }
.sheet-room-row small { margin-top: 3px; color: var(--muted); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.day-sheet-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.toast-host {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
}

.toast {
  padding: 12px 14px;
  border-radius: 8px;
  color: #ffffff;
  background: #16202a;
  box-shadow: var(--shadow-strong);
  font-weight: 700;
}

.toast.success {
  background: #177245;
}

.toast.error {
  background: #b42318;
}

@media (max-width: 1050px) {
  .app-shell,
  .layout,
  .reception-grid,
  .hero-band {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    max-height: none;
    min-height: auto;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-view .hero-band {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  }

  .dashboard-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .dashboard-secondary .action-panel {
    grid-row: span 2;
  }

  .calendar-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .calendar-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reception-workspace {
    grid-template-columns: minmax(0, 1fr) 350px;
  }
}

@media (max-height: 760px) and (min-width: 1051px) {
  .sidebar {
    padding: 16px 14px;
    gap: 12px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-logo-card {
    width: 142px;
    min-height: 46px;
    padding: 6px 8px;
  }

  .brand-logo {
    max-height: 32px;
  }

  .brand-title {
    font-size: 15px;
  }

  .brand-subtitle,
  .profile span {
    font-size: 11px;
  }

  .nav {
    gap: 6px;
  }

  .nav button {
    min-height: 36px;
  }

  .profile {
    margin-top: auto;
    padding: 10px;
  }
}

@media (max-height: 560px) and (min-width: 1051px) {
  .profile {
    margin-top: 8px;
  }
}

@media (max-width: 720px) {
  .main {
    padding: 16px;
  }

  .topbar {
    display: grid;
  }

  .toolbar {
    justify-content: flex-start;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .calendar-grid,
  .weekdays {
    min-width: 880px;
  }

  .calendar-commandbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .calendar-add {
    grid-column: 1 / -1;
    width: 100%;
  }

  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .calendar-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .calendar-sidebar > .panel:last-child {
    grid-column: 1 / -1;
  }

  .day-sheet-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .day-sheet-body {
    grid-template-columns: 1fr;
  }

  .day-sheet-rooms {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .reception-command,
  .reception-workspace {
    grid-template-columns: 1fr;
  }

  .reception-liveboard {
    max-width: 480px;
  }

  .reception-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guest-flow-header {
    display: grid;
    align-items: stretch;
  }

  .reception-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reception-visit-row {
    grid-template-columns: 50px 40px minmax(110px, 1fr) auto;
  }

  .visit-destination {
    grid-column: 3 / -1;
  }

  .visit-row-actions {
    grid-column: 1 / -1;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-room-grid {
    grid-template-columns: 1fr;
  }

  .guide-panel {
    display: grid;
  }

  .guide-panel strong {
    min-width: 0;
  }

  .hero-band h2 {
    font-size: 26px;
  }

  .dashboard-view .hero-band,
  .dashboard-secondary {
    grid-template-columns: 1fr;
  }

  .dashboard-secondary .action-panel {
    grid-row: auto;
  }

  .command-visual {
    max-width: 440px;
  }

  .priority-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .priority-heading {
    grid-column: 1 / -1;
  }

  .timeline-entry {
    grid-template-columns: 54px 14px minmax(0, 1fr) 18px;
  }

  .timeline-entry > .status {
    display: none;
  }

  .timeline-entry:not(:last-child)::after {
    left: 82px;
  }

  .schedule-empty {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .schedule-empty .btn {
    grid-column: 1 / -1;
  }

  .brand-pro {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-logo-card {
    width: min(240px, 100%);
  }
}

@media (max-width: 480px) {
  .metrics {
    grid-template-columns: 1fr;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-view .hero-band {
    padding: 22px 18px;
  }

  .command-visual {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .readiness-ring {
    margin: 0 auto;
  }

  .command-facts {
    text-align: left;
  }

  .priority-overview {
    grid-template-columns: 1fr;
  }

  .timeline-entry {
    grid-template-columns: 46px 12px minmax(0, 1fr);
    gap: 8px;
  }

  .timeline-entry .timeline-arrow {
    display: none;
  }

  .timeline-entry:not(:last-child)::after {
    left: 72px;
  }

  .calendar-commandbar {
    grid-template-columns: 1fr;
  }

  .calendar-segment {
    width: 100%;
    justify-content: space-between;
  }

  .calendar-segment .btn {
    flex: 1;
  }

  .calendar-stats,
  .calendar-sidebar {
    grid-template-columns: 1fr;
  }

  .calendar-sidebar > .panel:last-child {
    grid-column: auto;
  }

  .calendar-stat {
    min-height: 74px;
  }

  .calendar-board-header {
    display: grid;
  }

  .calendar-legend {
    justify-content: flex-start;
  }

  .day-sheet-backdrop {
    padding: 0;
  }

  .day-sheet {
    width: 100%;
    min-height: 100vh;
    max-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .day-sheet-header {
    grid-template-columns: 52px minmax(0, 1fr) 36px;
    gap: 10px;
    min-height: 108px;
    padding: 14px;
  }

  .day-sheet-date-mark {
    width: 50px;
    height: 60px;
  }

  .day-sheet-date-mark strong {
    font-size: 25px;
  }

  .day-sheet-header h2 {
    font-size: 18px;
  }

  .day-sheet-header p {
    display: none;
  }

  .day-sheet-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .day-sheet-summary > div {
    min-height: 68px;
    padding: 10px;
  }

  .day-sheet-agenda,
  .day-sheet-rooms {
    padding: 14px;
  }

  .sheet-meeting {
    grid-template-columns: 44px 10px minmax(0, 1fr) 14px;
    gap: 8px;
  }

  .sheet-meeting > .status {
    display: none;
  }

  .day-sheet-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .reception-command {
    padding: 22px 18px;
  }

  .reception-command h2 {
    font-size: 28px;
  }

  .reception-liveboard {
    grid-template-columns: 94px minmax(0, 1fr);
    padding: 13px;
  }

  .reception-clock {
    width: 92px;
    height: 92px;
  }

  .reception-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reception-stat {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    min-height: 84px;
    padding: 11px;
  }

  .reception-stat-icon {
    width: 34px;
    height: 34px;
  }

  .reception-stat-arrow {
    display: none;
  }

  .reception-visit-row {
    grid-template-columns: 46px 38px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px 2px;
  }

  .visit-avatar {
    width: 36px;
    height: 36px;
  }

  .visit-destination {
    grid-column: 3 / -1;
  }

  .visit-row-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .visit-row-actions .visit-action {
    flex: 1;
  }

  .visit-row-actions .visit-action.danger {
    flex: 0 0 36px;
  }

  .reception-meeting-card {
    grid-template-columns: 46px minmax(0, 1fr) 14px;
  }

  .reception-meeting-card > .status {
    display: none;
  }
}

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

@media (max-width: 720px) {
  .sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 116px;
    gap: 12px;
    padding: 14px 16px;
  }

  .sidebar .brand-pro {
    grid-column: 1 / -1;
    align-items: center;
    flex-direction: row;
  }

  .sidebar .brand-logo-card {
    width: 132px;
    min-height: 44px;
    padding: 5px 7px;
  }

  .sidebar .brand-logo {
    max-height: 30px;
  }

  .sidebar .nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .sidebar .nav button {
    min-height: 38px;
    padding: 0 10px;
    font-size: 13px;
  }

  .sidebar .profile {
    grid-column: 1;
    margin-top: 0;
    padding: 10px;
  }

  .sidebar .profile strong {
    font-size: 13px;
  }

  .sidebar .btn.logout {
    grid-column: 2;
    align-self: stretch;
    min-height: 100%;
    margin: 0;
    padding: 8px;
  }

  .guide-dashboard {
    display: none;
  }

  .guide-calendar {
    display: none;
  }

  .guide-reception {
    display: none;
  }
}

@media (max-width: 420px) {
  .sidebar {
    grid-template-columns: minmax(0, 1fr) 104px;
  }

  .sidebar .brand-logo-card {
    width: 122px;
  }

  .sidebar .brand-title {
    font-size: 14px;
  }

  .sidebar .brand-subtitle {
    font-size: 10px;
  }
}

/* Enterprise audit history */
.audit-view {
  display: none;
  gap: 16px;
  padding-bottom: 28px;
}

.audit-view.active {
  display: grid;
}

.audit-command {
  --pointer-x: 50%;
  --pointer-y: 50%;
  position: relative;
  min-height: 258px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: stretch;
  gap: 24px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(30, 195, 237, 0.42);
  border-radius: 8px;
  color: #fff;
  background: #041421;
  box-shadow: 0 18px 42px rgba(3, 24, 38, 0.18);
}

.audit-command::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 16, 28, 0.98) 0%, rgba(3, 24, 39, 0.92) 48%, rgba(0, 93, 132, 0.48) 100%),
    url("assets/enterprise-office.jpg") center 44% / cover no-repeat;
  transform: translate3d(calc(var(--tilt-x, 0px) * -0.28), calc(var(--tilt-y, 0px) * -0.22), 0) scale(1.025);
  transition: transform 260ms ease;
}

.audit-command::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #18c8ed 22%, #2673dc 55%, #21d4b4 78%, transparent);
  transform-origin: center;
}

.audit-command-copy,
.audit-live-map {
  position: relative;
  z-index: 2;
}

.audit-command-copy {
  align-self: center;
  max-width: 720px;
}

.audit-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
  color: #bdeefd;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.audit-kicker > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.audit-kicker > span + span {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  color: #a4f0d6;
  text-transform: none;
}

.audit-kicker > span + span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2de1a7;
  box-shadow: 0 0 12px rgba(45, 225, 167, 0.82);
}

.audit-kicker .lucide {
  width: 15px;
  height: 15px;
}

.audit-command h2 {
  max-width: 660px;
  margin: 0;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: 0;
}

.audit-command-copy > p {
  max-width: 660px;
  margin: 14px 0 22px;
  color: #c0d4de;
  font-size: 14px;
  line-height: 1.55;
}

.audit-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.audit-command-actions .btn {
  min-height: 40px;
}

.audit-live-map {
  align-self: center;
  min-height: 190px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 15px;
  padding: 18px;
  border: 1px solid rgba(121, 224, 250, 0.34);
  border-radius: 7px;
  background: rgba(3, 24, 38, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  transform: translate3d(calc(var(--tilt-x, 0px) * 0.38), calc(var(--tilt-y, 0px) * 0.32), 0);
  transition: transform 260ms ease;
}

.audit-live-head,
.audit-live-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.audit-live-head > span {
  color: #8bb6c8;
  font-size: 9px;
  font-weight: 800;
}

.audit-live-head strong {
  color: #fff;
  font-size: 22px;
}

.audit-live-head small {
  margin-left: 4px;
  color: #91afbc;
  font-size: 9px;
  font-weight: 600;
}

.audit-signal-grid {
  height: 86px;
  display: grid;
  grid-template-columns: repeat(14, minmax(5px, 1fr));
  align-items: end;
  gap: 5px;
  padding: 8px 8px 0;
  border-bottom: 1px solid rgba(115, 211, 237, 0.25);
  background-image: linear-gradient(rgba(105, 189, 215, 0.08) 1px, transparent 1px);
  background-size: 100% 25%;
}

.audit-signal-grid i {
  height: var(--signal);
  min-height: 6px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #28d9f2, #1672d2);
  box-shadow: 0 0 10px rgba(35, 199, 239, 0.26);
  transform-origin: bottom;
}

.audit-signal-grid i:nth-child(4n),
.audit-signal-grid i:nth-child(7n) {
  background: linear-gradient(180deg, #42e2bb, #0c8e80);
}

.audit-live-foot {
  color: #9bbac7;
  font-size: 9px;
  font-weight: 700;
}

.audit-live-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.audit-live-foot .lucide {
  width: 12px;
  height: 12px;
  color: #29d8ef;
}

.audit-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.audit-stat {
  position: relative;
  min-height: 108px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid #d8e5eb;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 9px 22px rgba(31, 63, 79, 0.07);
}

.audit-stat > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #b9e6f2;
  border-radius: 7px;
  color: #008db6;
  background: #eaf9fd;
}

.audit-stat.blue > span { border-color: #c8dafa; color: #2167c9; background: #eef4ff; }
.audit-stat.amber > span { border-color: #f3ddb6; color: #a66306; background: #fff7e8; }
.audit-stat.green > span { border-color: #bde5d5; color: #137c5a; background: #ebf8f3; }

.audit-stat > span .lucide {
  width: 19px;
  height: 19px;
}

.audit-stat small,
.audit-stat strong,
.audit-stat em {
  display: block;
  font-style: normal;
}

.audit-stat small {
  color: #647985;
  font-size: 10px;
  font-weight: 800;
}

.audit-stat strong {
  margin-top: 3px;
  color: #0a1824;
  font-size: 27px;
  line-height: 1;
}

.audit-stat em {
  margin-top: 5px;
  color: #8496a0;
  font-size: 9px;
}

.audit-stat-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #10bde1;
}

.audit-stat.blue .audit-stat-line { background: #2674dc; }
.audit-stat.amber .audit-stat-line { background: #d99627; }
.audit-stat.green .audit-stat-line { background: #168b68; }

.audit-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 14px;
}

.audit-ledger {
  min-width: 0;
  overflow: hidden;
}

.audit-ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #dfe9ee;
}

.audit-ledger-head h2 {
  margin: 2px 0 0;
  font-size: 18px;
}

.audit-ledger-head p {
  margin: 5px 0 0;
  color: #7d8f99;
  font-size: 10px;
}

.audit-ledger-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.audit-list-toggle {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #b9dce6;
  border-radius: 6px;
  color: #087fa8;
  background: #f3fbfd;
  font-size: 9px;
  font-weight: 900;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.audit-list-toggle:hover {
  border-color: #48b6d2;
  color: #056d8d;
  background: #eaf9fc;
  box-shadow: 0 7px 16px rgba(8, 127, 168, 0.12);
  transform: translateY(-1px);
}

.audit-list-toggle .lucide {
  width: 13px;
  height: 13px;
}

.audit-list-collapsed {
  min-height: 116px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 19px 18px;
  border-top: 1px solid #edf2f4;
  background:
    linear-gradient(90deg, rgba(9, 157, 195, 0.075), transparent 46%),
    #fbfdfe;
}

.audit-list-collapsed-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #bce0ea;
  border-radius: 7px;
  color: #0784aa;
  background: #e9f8fc;
  box-shadow: 0 8px 18px rgba(7, 132, 170, 0.1);
}

.audit-list-collapsed-icon .lucide {
  width: 21px;
  height: 21px;
}

.audit-list-collapsed small,
.audit-list-collapsed strong,
.audit-list-collapsed p {
  display: block;
}

.audit-list-collapsed small {
  color: #0784aa;
  font-size: 8px;
  font-weight: 900;
}

.audit-list-collapsed strong {
  margin-top: 4px;
  color: #122b37;
  font-size: 13px;
}

.audit-list-collapsed strong b {
  color: #007da4;
  font-size: 17px;
}

.audit-list-collapsed p {
  margin: 5px 0 0;
  color: #718690;
  font-size: 9px;
  line-height: 1.45;
}

.audit-list-collapsed .btn {
  min-width: 136px;
  justify-content: center;
}

.audit-result {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #cce9f2;
  border-radius: 6px;
  color: #4c6c79;
  background: #f1fbfe;
  font-size: 9px;
}

.audit-result .lucide {
  width: 13px;
  height: 13px;
  color: #008fb8;
}

.audit-result strong {
  color: #09202d;
  font-size: 12px;
}

.audit-controls {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(210px, 0.58fr) minmax(180px, 0.44fr);
  gap: 8px;
  padding: 14px 18px 10px;
}

.audit-search,
.audit-select-control {
  position: relative;
  min-width: 0;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #cfdee5;
  border-radius: 6px;
  color: #6d828c;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.audit-search:focus-within,
.audit-select-control:focus-within {
  border-color: #14aacf;
  background: #fbfeff;
  box-shadow: 0 0 0 3px rgba(20, 170, 207, 0.12);
}

.audit-search > .lucide,
.audit-select-control > .lucide:first-child {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: #008fb9;
}

.audit-search input,
.audit-select-control select {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0;
  border: 0;
  outline: 0;
  color: #10232e;
  background: transparent;
  font: inherit;
  font-size: 10px;
}

.audit-search input::-webkit-search-cancel-button {
  cursor: pointer;
}

.audit-search kbd {
  flex: 0 0 auto;
  padding: 3px 5px;
  border: 1px solid #d8e4e9;
  border-bottom-width: 2px;
  border-radius: 4px;
  color: #7d9099;
  background: #f7fafb;
  font-family: inherit;
  font-size: 8px;
}

.audit-select-control select {
  cursor: pointer;
  appearance: none;
  padding-right: 18px;
}

.audit-select-control > .lucide:last-child {
  position: absolute;
  right: 9px;
  width: 13px;
  height: 13px;
  pointer-events: none;
}

.audit-category-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  padding: 0 18px 12px;
}

.audit-category-tabs button {
  min-width: 0;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid #d8e4e9;
  border-radius: 6px;
  color: #5f737d;
  background: #f8fbfc;
  font-size: 9px;
  font-weight: 800;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.audit-category-tabs button:hover {
  border-color: #9fd7e7;
  color: #087fa0;
  background: #f0fbfe;
  transform: translateY(-1px);
}

.audit-category-tabs button.active {
  border-color: #139fc5;
  color: #fff;
  background: #087fa8;
  box-shadow: 0 7px 16px rgba(8, 127, 168, 0.18);
}

.audit-category-tabs .lucide {
  width: 13px;
  height: 13px;
}

.audit-category-tabs b {
  min-width: 18px;
  padding: 2px 4px;
  border-radius: 4px;
  color: #5b7480;
  background: #e8f0f4;
  font-size: 8px;
}

.audit-category-tabs button.active b {
  color: #075d78;
  background: #dff7fd;
}

.audit-filter-summary {
  min-height: 37px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 18px;
  border-top: 1px solid #edf2f4;
  border-bottom: 1px solid #dfe9ee;
  color: #6e828c;
  background: #f9fbfc;
  font-size: 9px;
}

.audit-filter-summary > span,
.audit-filter-summary button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.audit-filter-summary .lucide {
  width: 12px;
  height: 12px;
}

.audit-filter-summary > span .lucide {
  color: #0d98bd;
}

.audit-filter-summary button {
  padding: 4px 0;
  border: 0;
  color: #087fa8;
  background: transparent;
  font-size: 9px;
  font-weight: 800;
}

.audit-management-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid #dfe9ee;
  background: linear-gradient(90deg, #f4fbfd, #f9fbfc 58%, #fff7f6);
}

.audit-selection-status,
.audit-management-actions,
.audit-manage-btn {
  display: flex;
  align-items: center;
}

.audit-selection-status {
  min-width: 180px;
  gap: 9px;
}

.audit-selection-status > span {
  width: 30px;
  height: 30px;
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  border: 1px solid #bfe1eb;
  border-radius: 6px;
  color: #087fa8;
  background: #e8f8fc;
}

.audit-selection-status .lucide {
  width: 14px;
  height: 14px;
}

.audit-selection-status small,
.audit-selection-status strong {
  display: block;
}

.audit-selection-status small {
  color: #80939c;
  font-size: 7px;
  font-weight: 900;
}

.audit-selection-status strong {
  margin-top: 2px;
  color: #17313d;
  font-size: 9px;
}

.audit-management-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.audit-manage-btn {
  min-height: 32px;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid #cfdee5;
  border-radius: 6px;
  color: #526d79;
  background: #fff;
  font-size: 8px;
  font-weight: 900;
  transition: transform 150ms ease, border-color 150ms ease, color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.audit-manage-btn:hover:not(:disabled) {
  border-color: #91ccdc;
  color: #087fa8;
  background: #f1fbfe;
  box-shadow: 0 6px 14px rgba(8, 127, 168, 0.1);
  transform: translateY(-1px);
}

.audit-manage-btn .lucide {
  width: 12px;
  height: 12px;
}

.audit-manage-btn.danger {
  border-color: #edc8c5;
  color: #b7352f;
  background: #fff7f6;
}

.audit-manage-btn.danger-solid {
  border-color: #aa130f;
  color: #fff;
  background: #b91d17;
  box-shadow: 0 7px 16px rgba(185, 29, 23, 0.17);
}

.audit-manage-btn.danger-solid:hover:not(:disabled) {
  border-color: #870d09;
  color: #fff;
  background: #9f130e;
}

.audit-manage-btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  box-shadow: none;
}

.audit-timeline {
  min-height: 300px;
  padding: 10px 18px 18px;
}

.audit-day-group[hidden],
.audit-event-shell[hidden],
.audit-search-empty[hidden] {
  display: none;
}

.audit-day-heading {
  height: 38px;
  display: grid;
  grid-template-columns: auto 1fr 23px;
  align-items: center;
  gap: 10px;
  color: #5c737e;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.audit-day-heading span::first-letter {
  text-transform: uppercase;
}

.audit-day-heading > i {
  height: 1px;
  background: #dfe9ed;
}

.audit-day-heading b {
  width: 23px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #55707c;
  background: #eaf1f4;
  font-size: 8px;
}

.audit-day-events {
  position: relative;
  display: grid;
  gap: 7px;
}

.audit-day-events::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 56px;
  width: 1px;
  background: linear-gradient(#8ed7e9, #dce9ee);
}

.audit-event-shell {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.audit-event-select {
  position: relative;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.audit-event-select input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.audit-event-select span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid #bfd1d9;
  border-radius: 5px;
  color: transparent;
  background: #fff;
  box-shadow: 0 3px 8px rgba(27, 69, 86, 0.07);
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.audit-event-select:hover span,
.audit-event-select input:focus-visible + span {
  border-color: #39afd0;
  box-shadow: 0 0 0 3px rgba(20, 170, 207, 0.13);
  transform: scale(1.05);
}

.audit-event-select .lucide {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.audit-event-select input:checked + span {
  border-color: #0787ad;
  color: #fff;
  background: #0787ad;
  box-shadow: 0 5px 12px rgba(7, 135, 173, 0.24);
}

.audit-event-shell.selected .audit-event {
  border-color: #54bad4;
  background: #f5fcfe;
  box-shadow: 0 9px 22px rgba(14, 126, 161, 0.11);
}

.audit-event {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 142px 18px;
  align-items: center;
  gap: 11px;
  overflow: hidden;
  min-height: 72px;
  padding: 10px 12px 10px 0;
  border: 1px solid #dce7eb;
  border-radius: 7px;
  color: #10232e;
  background: #fff;
  text-align: left;
  box-shadow: 0 4px 11px rgba(35, 67, 82, 0.035);
  transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease, background 170ms ease;
}

.audit-event:hover {
  z-index: 1;
  border-color: #a5d6e3;
  background: #fbfeff;
  box-shadow: 0 10px 24px rgba(24, 94, 120, 0.1);
  transform: translateX(2px);
}

.audit-event.expanded {
  border-color: #64c4dd;
  background: #fbfeff;
  box-shadow: 0 12px 26px rgba(24, 101, 130, 0.12);
}

.audit-event-marker {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #087fa8;
  background: #dff6fc;
  box-shadow: 0 0 0 1px #b8dfeb;
}

.audit-event-marker .lucide {
  width: 14px;
  height: 14px;
}

.audit-event.blue .audit-event-marker { color: #2368c6; background: #e9f0fd; box-shadow: 0 0 0 1px #c8daf5; }
.audit-event.amber .audit-event-marker,
.audit-event.warning .audit-event-marker { color: #a7680c; background: #fff3dc; box-shadow: 0 0 0 1px #efd5a8; }
.audit-event.green .audit-event-marker { color: #157b59; background: #e7f7f1; box-shadow: 0 0 0 1px #bce2d3; }
.audit-event.danger .audit-event-marker { color: #b83831; background: #fff0ef; box-shadow: 0 0 0 1px #edc9c7; }
.audit-event.neutral .audit-event-marker { color: #617580; background: #edf2f4; box-shadow: 0 0 0 1px #d3dfe4; }

.audit-event-main {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.48fr);
  align-items: center;
  gap: 15px;
}

.audit-event-title,
.audit-event-actor {
  min-width: 0;
}

.audit-event-title strong,
.audit-event-title em,
.audit-event-actor b,
.audit-event-actor small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-event-title strong {
  font-size: 11px;
  line-height: 1.35;
}

.audit-event-title em {
  margin-top: 4px;
  color: #66808c;
  font-size: 9px;
  font-style: normal;
}

.audit-event-actor {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.audit-event-actor > i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #cfe0e7;
  border-radius: 6px;
  color: #0a7797;
  background: #edf8fb;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}

.audit-event-actor b {
  font-size: 9px;
}

.audit-event-actor small {
  margin-top: 2px;
  color: #84969f;
  font-size: 8px;
}

.audit-event-meta {
  justify-self: end;
  display: grid;
  justify-items: end;
  gap: 6px;
}

.audit-event-meta time {
  color: #758a94;
  font-size: 8px;
  font-weight: 700;
}

.audit-category-badge {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 7px;
  border: 1px solid #cce4eb;
  border-radius: 5px;
  color: #087fa8;
  background: #edfafd;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}

.audit-category-badge.blue { border-color: #cfddf5; color: #2368c6; background: #eef3fc; }
.audit-category-badge.amber,
.audit-category-badge.warning { border-color: #efd9b7; color: #9a600d; background: #fff7e9; }
.audit-category-badge.green { border-color: #c6e5d9; color: #147857; background: #edf8f4; }
.audit-category-badge.danger { border-color: #efcfcd; color: #ad342d; background: #fff3f2; }
.audit-category-badge.neutral { border-color: #d8e2e6; color: #5c707a; background: #f1f5f6; }

.audit-event-chevron {
  width: 15px;
  height: 15px;
  color: #82969f;
  transition: transform 220ms ease, color 160ms ease;
}

.audit-event.expanded .audit-event-chevron {
  color: #0a8eb4;
  transform: rotate(180deg);
}

.audit-event-details {
  grid-column: 2 / -1;
  max-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  border-top: 1px solid transparent;
  transition: max-height 300ms cubic-bezier(0.2, 0.78, 0.2, 1), opacity 180ms ease, padding 260ms ease, border-color 180ms ease;
}

.audit-event.expanded .audit-event-details {
  max-height: 180px;
  opacity: 1;
  margin-top: 2px;
  padding: 12px 0 2px;
  border-top-color: #e1ebef;
}

.audit-event-details > span:not(.audit-detail-status) {
  min-width: 0;
  padding-right: 8px;
  border-right: 1px solid #e3ecef;
}

.audit-event-details small,
.audit-event-details strong {
  display: block;
}

.audit-event-details small {
  color: #80939c;
  font-size: 8px;
}

.audit-event-details strong {
  overflow: hidden;
  margin-top: 4px;
  color: #19313d;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-detail-status {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: #17775a;
  font-size: 8px;
  font-weight: 800;
}

.audit-detail-status .lucide {
  width: 12px;
  height: 12px;
}

.audit-side {
  display: grid;
  gap: 14px;
}

.audit-category-panel,
.audit-integrity-panel {
  overflow: hidden;
}

.audit-category-chart {
  display: grid;
  padding: 7px 13px 14px;
}

.audit-category-chart button {
  min-width: 0;
  min-height: 59px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 9px;
  padding: 8px 5px;
  border: 0;
  border-bottom: 1px solid #e4ecef;
  color: #16303c;
  background: transparent;
  text-align: left;
  transition: background 160ms ease, transform 160ms ease;
}

.audit-category-chart button:last-child {
  border-bottom: 0;
}

.audit-category-chart button:hover,
.audit-category-chart button.active {
  background: #f1fafc;
  transform: translateX(2px);
}

.audit-category-chart button > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #cfe3ea;
  border-radius: 6px;
  color: #0785a9;
  background: #ecf8fb;
}

.audit-category-chart button > span .lucide {
  width: 14px;
  height: 14px;
}

.audit-category-chart button div,
.audit-category-chart button div > i {
  min-width: 0;
}

.audit-category-chart button b {
  display: block;
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-category-chart button div > i {
  height: 4px;
  display: block;
  overflow: hidden;
  margin-top: 7px;
  border-radius: 2px;
  background: #e1eaee;
}

.audit-category-chart button div > i em {
  width: var(--audit-share);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #08a4cc, #2d78dc);
  transform-origin: left;
}

.audit-category-chart button > strong {
  justify-self: end;
  font-size: 14px;
}

.audit-integrity-body {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 17px 16px 14px;
}

.audit-integrity-ring {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#16b9da 0deg, #2672d8 var(--audit-integrity), #e1ebef var(--audit-integrity), #e1ebef 360deg);
  box-shadow: 0 9px 22px rgba(21, 120, 154, 0.13);
}

.audit-integrity-ring::before {
  content: "";
  grid-area: 1 / 1;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e1eaee;
}

.audit-integrity-ring > div {
  z-index: 1;
  grid-area: 1 / 1;
  text-align: center;
}

.audit-integrity-ring strong,
.audit-integrity-ring span {
  display: block;
}

.audit-integrity-ring strong {
  color: #09212d;
  font-size: 21px;
}

.audit-integrity-ring span {
  margin-top: 2px;
  color: #758b95;
  font-size: 8px;
}

.audit-integrity-facts {
  display: grid;
}

.audit-integrity-facts > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border-bottom: 1px solid #e5ecef;
}

.audit-integrity-facts > div:last-child {
  border-bottom: 0;
}

.audit-integrity-facts .lucide {
  width: 13px;
  height: 13px;
  color: #078db3;
}

.audit-integrity-facts span {
  overflow: hidden;
  color: #6f838d;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-integrity-facts strong {
  color: #142c37;
  font-size: 9px;
}

.audit-integrity-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #dce9ed;
  color: #53717e;
  background: #eff9fb;
  font-size: 8px;
  line-height: 1.4;
}

.audit-integrity-note .lucide {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: #0b92b8;
}

.audit-empty,
.audit-search-empty {
  min-height: 270px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: #728791;
  text-align: center;
}

.audit-empty > span,
.audit-search-empty > .lucide {
  width: 48px;
  height: 48px;
}

.audit-empty > span {
  display: grid;
  place-items: center;
  border: 1px solid #bae2ed;
  border-radius: 50%;
  color: #078db4;
  background: #edfafd;
}

.audit-empty > span .lucide {
  width: 20px;
  height: 20px;
}

.audit-empty strong,
.audit-search-empty strong {
  color: #19323d;
  font-size: 12px;
}

.audit-empty p,
.audit-search-empty span {
  margin: 0;
  font-size: 9px;
}

.audit-empty button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  padding: 7px 10px;
  border: 1px solid #b7dfe9;
  border-radius: 5px;
  color: #087fa4;
  background: #f2fbfd;
  font-size: 9px;
  font-weight: 800;
}

.audit-empty button .lucide {
  width: 12px;
  height: 12px;
}

@media (max-width: 1220px) {
  .audit-command {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .audit-workspace {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .audit-controls {
    grid-template-columns: minmax(230px, 1fr) minmax(180px, 0.58fr);
  }

  .audit-select-control.range {
    grid-column: 1 / -1;
  }

  .audit-event-main {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

@media (max-width: 1020px) {
  .audit-command {
    grid-template-columns: minmax(0, 1fr) 290px;
    padding: 24px;
  }

  .audit-command h2 {
    font-size: 27px;
  }

  .audit-workspace {
    grid-template-columns: 1fr;
  }

  .audit-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .audit-command {
    grid-template-columns: 1fr;
  }

  .audit-live-map {
    min-height: 170px;
  }

  .audit-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-category-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .audit-management-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .audit-management-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .audit-event {
    grid-template-columns: 42px minmax(0, 1fr) 120px 18px;
  }
}

@media (max-width: 640px) {
  .audit-command {
    min-height: 0;
    gap: 18px;
    padding: 21px 17px;
  }

  .audit-command h2 {
    font-size: 24px;
  }

  .audit-command-copy > p {
    font-size: 12px;
  }

  .audit-command-actions .btn {
    flex: 1 1 150px;
  }

  .audit-live-map {
    min-height: 160px;
    padding: 14px;
  }

  .audit-stats {
    gap: 8px;
  }

  .audit-stat {
    min-height: 98px;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    padding: 12px;
  }

  .audit-stat > span {
    width: 34px;
    height: 34px;
  }

  .audit-stat strong {
    font-size: 23px;
  }

  .audit-stat em {
    line-height: 1.25;
  }

  .audit-ledger-head {
    align-items: flex-start;
    padding: 15px 13px 12px;
  }

  .audit-ledger-head-actions {
    align-items: flex-end;
    flex-direction: column;
  }

  .audit-ledger-head p {
    display: none;
  }

  .audit-list-collapsed {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    padding: 16px 13px;
  }

  .audit-list-collapsed-icon {
    width: 42px;
    height: 42px;
  }

  .audit-list-collapsed .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .audit-controls {
    grid-template-columns: 1fr;
    padding: 12px 13px 9px;
  }

  .audit-select-control.range {
    grid-column: auto;
  }

  .audit-search kbd {
    display: none;
  }

  .audit-category-tabs {
    padding: 0 13px 10px;
  }

  .audit-category-tabs button {
    height: 42px;
  }

  .audit-category-tabs button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .audit-filter-summary {
    align-items: flex-start;
    padding: 8px 13px;
  }

  .audit-management-bar {
    padding: 10px 13px;
  }

  .audit-management-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-manage-btn {
    width: 100%;
    min-height: 36px;
  }

  .audit-timeline {
    padding: 9px 11px 14px;
  }

  .audit-day-events::before {
    left: 49px;
  }

  .audit-event-shell {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 5px;
  }

  .audit-event {
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    gap: 8px;
    padding-right: 9px;
  }

  .audit-event-main {
    gap: 9px;
  }

  .audit-event-meta {
    grid-column: 2;
    justify-self: start;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .audit-event-chevron {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .audit-event-details {
    grid-column: 2 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-event.expanded .audit-event-details {
    max-height: 260px;
  }

  .audit-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .audit-kicker {
    align-items: flex-start;
    flex-direction: column;
  }

  .audit-kicker > span + span {
    padding-left: 0;
    border-left: 0;
  }

  .audit-stat {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .audit-stat > span {
    display: none;
  }

  .audit-result span {
    display: none;
  }

  .audit-category-tabs button {
    gap: 4px;
    padding: 0 5px;
  }

  .audit-category-tabs button .lucide {
    display: none;
  }

  .audit-category-tabs b {
    min-width: 16px;
  }

  .audit-event-details {
    grid-template-columns: 1fr;
  }

  .audit-event-details > span:not(.audit-detail-status) {
    padding-bottom: 6px;
    border-right: 0;
    border-bottom: 1px solid #e3ecef;
  }

  .audit-event.expanded .audit-event-details {
    max-height: 420px;
  }
}

/* Mobile application shell */
.mobile-appbar,
.mobile-nav-backdrop,
.mobile-drawer-head {
  display: none;
}

@media (max-width: 1050px) {
  html {
    scroll-padding-top: 76px;
    scrollbar-gutter: auto;
  }

  html.mobile-nav-open,
  html.mobile-nav-open body {
    overflow: hidden;
    overscroll-behavior: none;
  }

  body {
    overflow-x: clip;
  }

  .app-shell {
    min-height: 100dvh;
    display: block;
  }

  .mobile-appbar {
    position: sticky;
    z-index: 80;
    top: 0;
    width: 100%;
    min-height: 66px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 11px;
    padding: max(9px, env(safe-area-inset-top)) 16px 9px;
    border-bottom: 1px solid rgba(51, 210, 241, 0.22);
    color: #fff;
    background:
      linear-gradient(90deg, rgba(0, 174, 239, 0.12), transparent 38%),
      rgba(3, 13, 23, 0.96);
    box-shadow: 0 10px 28px rgba(1, 24, 38, 0.2);
    backdrop-filter: blur(16px) saturate(130%);
  }

  .mobile-menu-toggle,
  .mobile-drawer-close {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(109, 224, 250, 0.24);
    border-radius: 7px;
    color: #dff8ff;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
  }

  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus-visible,
  .mobile-drawer-close:hover,
  .mobile-drawer-close:focus-visible {
    border-color: rgba(76, 220, 250, 0.64);
    color: #fff;
    background: rgba(0, 174, 239, 0.22);
    outline: 0;
  }

  .mobile-menu-toggle:active,
  .mobile-drawer-close:active {
    transform: scale(0.94);
  }

  .mobile-menu-toggle .lucide,
  .mobile-drawer-close .lucide {
    width: 20px;
    height: 20px;
  }

  .mobile-appbar-brand {
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
  }

  .mobile-appbar-brand > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(98, 225, 251, 0.34);
    border-radius: 7px;
    color: #dffaff;
    background: linear-gradient(145deg, rgba(31, 195, 233, 0.34), rgba(35, 108, 208, 0.24));
    box-shadow: 0 7px 16px rgba(0, 174, 239, 0.18);
  }

  .mobile-appbar-brand .lucide {
    width: 17px;
    height: 17px;
  }

  .mobile-appbar-brand strong,
  .mobile-appbar-brand small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-appbar-brand strong {
    font-size: 13px;
  }

  .mobile-appbar-brand small {
    margin-top: 2px;
    color: #a9c4d1;
    font-size: 9px;
  }

  .mobile-appbar-status {
    justify-self: end;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.05);
  }

  .mobile-appbar-status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0a128;
    box-shadow: 0 0 0 4px rgba(224, 161, 40, 0.12), 0 0 12px rgba(224, 161, 40, 0.5);
  }

  .mobile-appbar-status.online i {
    background: #28d99b;
    box-shadow: 0 0 0 4px rgba(40, 217, 155, 0.12), 0 0 12px rgba(40, 217, 155, 0.56);
  }

  .mobile-nav-backdrop {
    position: fixed;
    z-index: 90;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(0, 10, 18, 0.62);
    backdrop-filter: blur(5px);
    transition: opacity 260ms ease, visibility 0s linear 280ms;
  }

  .sidebar {
    position: fixed !important;
    z-index: 100;
    inset: 0 auto 0 0;
    width: min(342px, calc(100vw - 44px));
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: column;
    gap: 15px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: max(17px, env(safe-area-inset-top)) 17px max(17px, env(safe-area-inset-bottom));
    opacity: 0;
    visibility: hidden;
    transform: translate3d(-104%, 0, 0);
    box-shadow: 24px 0 70px rgba(0, 17, 29, 0.42);
    transition: transform 360ms cubic-bezier(0.22, 0.78, 0.2, 1), opacity 220ms ease, visibility 0s linear 380ms;
    will-change: transform;
  }

  .sidebar::-webkit-scrollbar {
    width: 5px;
  }

  .sidebar::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: rgba(77, 207, 238, 0.28);
  }

  html.mobile-nav-open .mobile-nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 260ms ease, visibility 0s;
  }

  html.mobile-nav-open .sidebar {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
    transition: transform 360ms cubic-bezier(0.22, 0.78, 0.2, 1), opacity 220ms ease, visibility 0s;
  }

  .mobile-drawer-head {
    position: relative;
    z-index: 2;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(127, 221, 244, 0.13);
  }

  .mobile-drawer-head small,
  .mobile-drawer-head strong {
    display: block;
  }

  .mobile-drawer-head small {
    color: #58d8f4;
    font-size: 8px;
    font-weight: 900;
  }

  .mobile-drawer-head strong {
    margin-top: 3px;
    color: #fff;
    font-size: 15px;
  }

  .mobile-drawer-close {
    width: 36px;
    height: 36px;
  }

  .sidebar .brand-pro {
    grid-column: auto;
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }

  .sidebar .brand-logo-card {
    width: 132px;
    min-height: 44px;
    flex: 0 0 132px;
    padding: 5px 7px;
  }

  .sidebar .brand-logo {
    max-height: 30px;
  }

  .sidebar .brand-title {
    font-size: 13px;
  }

  .sidebar .brand-subtitle {
    margin-top: 2px;
    font-size: 9px;
  }

  .sidebar .nav {
    grid-column: auto;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px;
    flex: 0 0 auto;
  }

  .sidebar .nav button {
    min-height: 43px;
    padding: 0 11px;
    font-size: 12px;
  }

  .sidebar .profile {
    grid-column: auto;
    margin-top: auto;
    padding: 12px;
  }

  .sidebar .profile strong {
    font-size: 12px;
  }

  .sidebar .profile span {
    font-size: 9px;
  }

  .sidebar .btn.logout {
    grid-column: auto;
    align-self: auto;
    min-height: 42px;
    margin: 0;
    padding: 0 12px;
  }

  .main {
    width: 100%;
    min-width: 0;
    padding: 22px;
  }

  .main > *,
  .view.active,
  .panel {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 70px;
  }

  .mobile-appbar {
    min-height: 62px;
    grid-template-columns: 40px minmax(0, 1fr) 34px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .mobile-appbar-status {
    width: 32px;
    height: 32px;
  }

  .main {
    padding: 15px;
  }

  .topbar {
    display: block;
    margin-bottom: 13px;
  }

  .topbar h1 {
    font-size: 24px;
  }

  .topbar p {
    max-width: 560px;
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.45;
  }

  .topbar .toolbar {
    display: none;
  }

  .guide-panel,
  .guide-dashboard,
  .guide-calendar,
  .guide-reception {
    display: grid;
    grid-template-columns: minmax(68px, auto) minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    margin: 0 0 14px;
    padding: 11px 12px;
  }

  .guide-panel strong {
    min-width: 0;
    font-size: 10px;
  }

  .guide-panel span {
    min-width: 0;
    font-size: 9px;
    line-height: 1.4;
  }

  .calendar-grid,
  .weekdays {
    min-width: 760px;
  }
}

@media (max-width: 480px) {
  .sidebar {
    width: min(324px, calc(100vw - 24px));
    padding-right: 14px;
    padding-left: 14px;
  }

  .sidebar .brand-logo-card {
    width: 120px;
    flex-basis: 120px;
  }

  .mobile-appbar {
    gap: 9px;
  }

  .mobile-appbar-brand {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
  }

  .mobile-appbar-brand > span {
    width: 30px;
    height: 30px;
  }

  .mobile-appbar-brand strong {
    font-size: 12px;
  }

  .mobile-appbar-brand small {
    font-size: 8px;
  }

  .main {
    padding: 12px;
  }

  .topbar h1 {
    font-size: 22px;
  }

  .guide-panel,
  .guide-dashboard,
  .guide-calendar,
  .guide-reception {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 1050px) and (max-height: 680px) {
  .sidebar {
    gap: 9px;
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .mobile-drawer-head {
    min-height: 39px;
    padding-bottom: 7px;
  }

  .mobile-drawer-head strong {
    font-size: 13px;
  }

  .mobile-drawer-close {
    width: 32px;
    height: 32px;
  }

  .sidebar .brand-logo-card {
    width: 112px;
    min-height: 38px;
    flex-basis: 112px;
    padding: 4px 6px;
  }

  .sidebar .brand-logo {
    max-height: 26px;
  }

  .sidebar .nav {
    gap: 4px;
  }

  .sidebar .nav button {
    min-height: 37px;
  }

  .sidebar .profile {
    padding: 8px 10px;
  }

  .sidebar .profile strong {
    font-size: 11px;
  }

  .sidebar .profile span {
    margin-top: 2px;
    font-size: 8px;
  }

  .sidebar .btn.logout {
    min-height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar,
  .mobile-nav-backdrop,
  .sidebar .nav button {
    transition: none;
  }
}

/* Mobile login above the fold */

/* Password onboarding and developer security center */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
}

.profile > div {
  min-width: 0;
}

.profile-password {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(92, 223, 255, 0.24);
  border-radius: 7px;
  color: #a9efff;
  background: rgba(0, 174, 239, 0.1);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.profile-password:hover {
  color: #ffffff;
  border-color: rgba(92, 223, 255, 0.56);
  background: rgba(0, 174, 239, 0.24);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(0, 174, 239, 0.22);
}

.profile-password .lucide {
  width: 16px;
  height: 16px;
}

.password-locked {
  pointer-events: none;
  user-select: none;
  filter: blur(7px) saturate(0.5);
  transform: scale(1.008);
}

.password-setup-gate {
  position: fixed;
  z-index: 5000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  overflow-y: auto;
  color: #f7fcff;
  background:
    radial-gradient(circle at 50% 36%, rgba(0, 174, 239, 0.19), transparent 38%),
    rgba(2, 12, 22, 0.88);
  backdrop-filter: blur(18px);
}

.password-setup-card {
  position: relative;
  width: min(470px, 100%);
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(92, 223, 255, 0.5);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(5, 22, 37, 0.98), rgba(3, 14, 25, 0.99));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.52), 0 0 42px rgba(0, 174, 239, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.password-setup-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, #5ce7ff 20%, #168fff 56%, transparent);
  transform: translateX(-100%);
}

.password-setup-visual {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.password-setup-visual > span {
  z-index: 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(92, 231, 255, 0.6);
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(145deg, #0078dc, #00aeea);
  box-shadow: 0 0 24px rgba(0, 174, 239, 0.38);
}

.password-setup-visual > span .lucide {
  width: 25px;
  height: 25px;
}

.password-setup-visual > i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(92, 231, 255, 0.24);
  border-radius: 50%;
}

.password-setup-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: #69eaff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.password-setup-kicker .lucide {
  width: 14px;
  height: 14px;
}

.password-setup-card h1 {
  margin: 0;
  font-size: 31px;
  letter-spacing: 0;
}

.password-setup-card > p {
  margin: 10px 0 24px;
  color: #b8cbd8;
  font-size: 13px;
  line-height: 1.6;
}

.password-setup-card > p strong {
  color: #ffffff;
  overflow-wrap: anywhere;
}

.password-setup-form {
  display: grid;
  gap: 13px;
}

.password-setup-form .field {
  margin: 0;
}

.password-setup-form .field label {
  color: #d9edf5;
}

.password-setup-form .password-input {
  border-color: rgba(138, 200, 220, 0.32);
  background: rgba(255, 255, 255, 0.96);
}

.password-setup-logout {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  color: #9fb2bf;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.password-setup-logout:hover {
  color: #ffffff;
}

.password-setup-logout .lucide {
  width: 14px;
  height: 14px;
}

.password-setup-assurance {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid rgba(160, 209, 224, 0.12);
  color: #7795a5;
  font-size: 9px;
  line-height: 1.45;
}

.password-setup-assurance .lucide {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: #2ad2f3;
}

.developer-security-view {
  --security-ink: #071827;
  padding-bottom: 24px;
}

.developer-command {
  position: relative;
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: center;
  gap: 28px;
  overflow: hidden;
  padding: 34px 38px;
  border: 1px solid rgba(0, 174, 239, 0.28);
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(0, 174, 239, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(0, 174, 239, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 78% 50%, rgba(0, 174, 239, 0.2), transparent 32%),
    linear-gradient(135deg, #071725, #04101c 74%);
  background-size: 24px 24px, 24px 24px, auto, auto;
  box-shadow: 0 22px 60px rgba(5, 31, 49, 0.17);
}

.developer-command::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--pointer-x, 35%) var(--pointer-y, 35%), rgba(84, 225, 255, 0.13), transparent 24%);
}

.developer-command-copy,
.developer-radar {
  position: relative;
  z-index: 1;
}

.developer-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #76eaff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.developer-kicker span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.developer-kicker span:last-child {
  color: #98acb8;
}

.developer-kicker span:last-child i,
.security-live-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #30d69a;
  box-shadow: 0 0 12px rgba(48, 214, 154, 0.85);
}

.developer-kicker .lucide {
  width: 15px;
  height: 15px;
}

.developer-command h2 {
  max-width: 680px;
  margin: 20px 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
}

.developer-command p {
  max-width: 730px;
  margin: 0;
  color: #a9bfcc;
  font-size: 12px;
  line-height: 1.65;
}

.developer-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.developer-radar {
  display: grid;
  justify-items: center;
}

.radar-orbit {
  position: relative;
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(77, 225, 255, 0.3);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.18), rgba(0, 174, 239, 0.015) 58%, transparent 60%);
  box-shadow: inset 0 0 34px rgba(0, 174, 239, 0.08), 0 0 35px rgba(0, 174, 239, 0.12);
}

.radar-orbit::before,
.radar-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(77, 225, 255, 0.16);
  border-radius: 50%;
}

.radar-orbit::before { inset: 23px; }
.radar-orbit::after { inset: 49px; }

.radar-orbit > i {
  position: absolute;
  inset: 50% 50% auto auto;
  width: 48%;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, #65ecff, transparent);
}

.radar-orbit > i:nth-child(2) {  opacity: 0.5; }
.radar-orbit > i:nth-child(3) {  opacity: 0.25; }

.radar-orbit > span {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
}

.radar-orbit strong {
  font-size: 38px;
}

.radar-orbit small {
  color: #72e8ff;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.radar-caption {
  width: 190px;
  display: flex;
  justify-content: space-between;
  margin-top: 13px;
  padding: 9px 12px;
  border-top: 1px solid rgba(91, 220, 247, 0.2);
  color: #9bb1be;
  font-size: 9px;
}

.radar-caption strong {
  color: #ffffff;
}

.developer-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.developer-stat {
  position: relative;
  min-height: 108px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid #d5e5eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 13px 34px rgba(30, 73, 94, 0.08);
}

.developer-stat::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--stat-color, #00aeea);
}

.developer-stat > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--stat-color, #00aeea);
  background: color-mix(in srgb, var(--stat-color, #00aeea) 11%, white);
}

.developer-stat.green { --stat-color: #16825d; }
.developer-stat.cyan { --stat-color: #00aeea; }
.developer-stat.blue { --stat-color: #246bd6; }
.developer-stat.amber { --stat-color: #c17b10; }
.developer-stat .lucide { width: 19px; height: 19px; }
.developer-stat small,
.developer-stat strong,
.developer-stat em { display: block; font-style: normal; }
.developer-stat small { color: #657885; font-size: 9px; font-weight: 800; }
.developer-stat strong { margin: 3px 0; color: #071827; font-size: 25px; }
.developer-stat em { color: #8c9aa3; font-size: 8px; }

.password-privacy-banner {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
  padding: 14px 17px;
  border: 1px solid #bce3e9;
  border-left: 4px solid #00a6c7;
  border-radius: 6px;
  color: #0a3d4b;
  background: linear-gradient(90deg, #eafafd, #f8fdfe);
}

.password-privacy-banner > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #007fa2;
  background: #d9f5fa;
}

.password-privacy-banner .lucide { width: 18px; height: 18px; }
.password-privacy-banner > .lucide { color: #16825d; }
.password-privacy-banner strong { font-size: 11px; }
.password-privacy-banner p { margin: 3px 0 0; color: #54727d; font-size: 9px; line-height: 1.45; }

.security-accounts-panel {
  overflow: hidden;
  margin-bottom: 14px;
  scroll-margin-top: 20px;
}

.security-section-head {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid #dbe8ed;
}

.security-section-head.compact { min-height: 67px; }
.security-section-head h2 { margin: 2px 0; font-size: 15px; }
.security-section-head p { margin: 0; color: #71838e; font-size: 9px; }

.security-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #167052;
  background: #e5f7ef;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.security-account-head,
.security-account-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.35fr) minmax(145px, 0.8fr) minmax(130px, 0.68fr) minmax(195px, 1fr) 116px;
  gap: 12px;
  align-items: center;
}

.security-account-head {
  padding: 10px 17px;
  color: #7e8f98;
  background: #f5fafc;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.security-account-row {
  min-height: 86px;
  padding: 12px 17px;
  border-top: 1px solid #e1ebef;
}

.security-account-row:hover {
  background: #f8fcfd;
}

.security-account-person {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.security-account-person > div { min-width: 0; }
.security-account-person strong,
.security-account-person small,
.security-account-person em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; }
.security-account-person strong { font-size: 10px; }
.security-account-person small { margin-top: 3px; color: #617684; font-size: 8px; }
.security-account-person em { margin-top: 4px; color: #008fbc; font-size: 7px; font-weight: 900; text-transform: uppercase; }

.security-password-state label,
.security-session-state label,
.security-last-events label {
  display: none;
}

.security-password-state > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 900;
}

.security-password-state > span.ready { color: #146c4f; background: #e4f6ee; }
.security-password-state > span.change { color: #95600f; background: #fff2d7; }
.security-password-state > span.missing { color: #a22e2a; background: #fdebea; }
.security-password-state .lucide { width: 12px; height: 12px; }
.security-password-state small,
.security-session-state small,
.security-last-events small { display: block; margin-top: 5px; color: #85949c; font-size: 7px; line-height: 1.35; }

.security-session-state strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6d7e87;
  font-size: 9px;
}

.security-session-state strong i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a8b4ba;
}

.security-session-state strong.online { color: #167052; }
.security-session-state strong.online i { background: #25c68b; box-shadow: 0 0 9px rgba(37, 198, 139, 0.65); }
.security-last-events strong { display: block; font-size: 8px; }
.security-account-action { display: flex; justify-content: flex-end; }
.security-account-action .btn { min-height: 34px; padding: 0 10px; font-size: 8px; }
.security-reset-unavailable { display: inline-flex; align-items: center; gap: 5px; color: #98a5ab; font-size: 7px; font-weight: 900; text-transform: uppercase; }
.security-reset-unavailable .lucide { width: 13px; height: 13px; }

.security-events-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.security-event-panel { overflow: hidden; }
.security-event-list { max-height: 510px; overflow-y: auto; }

.security-event-row {
  min-height: 59px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-top: 1px solid #e5edf0;
}

.security-event-row > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #008fbd;
  background: #e7f7fb;
}

.security-event-row.logout-event > span { color: #a8482d; background: #fff0eb; }
.security-event-row .lucide { width: 14px; height: 14px; }
.security-event-row strong { display: block; font-size: 9px; }
.security-event-row p { margin: 3px 0 0; color: #6f8089; font-size: 8px; line-height: 1.35; }
.security-event-row time { color: #8a979e; font-size: 7px; white-space: nowrap; }
.security-empty { min-height: 120px; display: grid; place-items: center; align-content: center; gap: 7px; color: #82919a; font-size: 9px; }

.password-owner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding: 11px;
  border: 1px solid #d7e7ed;
  border-radius: 7px;
  background: #f6fbfc;
}

.password-owner strong,
.password-owner small { display: block; }
.password-owner strong { font-size: 11px; }
.password-owner small { margin-top: 3px; color: #6b7e88; font-size: 8px; overflow-wrap: anywhere; }
.password-hash-note { margin-top: 12px; }
.reset-warning { color: #8c3e28; border-color: #f1cfc5; background: #fff4f1; }

.force-password-change {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-top: 13px;
  padding: 12px;
  border: 1px solid #cbe3eb;
  border-radius: 7px;
  background: #f4fbfd;
  cursor: pointer;
}

.force-password-change input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #009fd5;
}

.force-password-change > span {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 2px 7px;
}

.force-password-change .lucide { width: 15px; height: 15px; color: #0096c9; grid-row: 1 / span 2; }
.force-password-change strong { font-size: 10px; }
.force-password-change small { color: #6f828c; font-size: 8px; line-height: 1.4; }

@media (max-width: 1180px) {
  .developer-command { grid-template-columns: minmax(0, 1fr) 220px; }
  .security-account-head { display: none; }
  .security-account-row { grid-template-columns: minmax(210px, 1.25fr) repeat(2, minmax(130px, 0.75fr)) minmax(170px, 1fr) 100px; }
}

@media (max-width: 900px) {
  .developer-command { grid-template-columns: 1fr; padding: 27px; }
  .developer-radar { display: none; }
  .developer-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .security-account-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
  .security-account-person { grid-column: 1 / -1; }
  .security-account-action { justify-content: flex-start; }
  .security-password-state label,
  .security-session-state label,
  .security-last-events label { display: block; margin-bottom: 5px; color: #89979e; font-size: 7px; font-weight: 900; text-transform: uppercase; }
}

@media (max-width: 680px) {
  .password-setup-gate { align-items: start; padding: 10px; }
  .password-setup-card { margin: auto 0; padding: 24px 19px; }
  .password-setup-card h1 { font-size: 25px; }
  .password-setup-visual { width: 62px; height: 62px; margin-bottom: 17px; }
  .password-setup-visual > span { width: 47px; height: 47px; }
  .developer-command { min-height: 0; padding: 24px 20px; }
  .developer-command h2 { font-size: 30px; }
  .developer-kicker { align-items: flex-start; flex-direction: column; gap: 7px; }
  .developer-stats { grid-template-columns: 1fr; }
  .developer-stat { min-height: 86px; }
  .password-privacy-banner { grid-template-columns: 36px minmax(0, 1fr); }
  .password-privacy-banner > .lucide { display: none; }
  .password-privacy-banner > span { width: 34px; height: 34px; }
  .security-section-head { align-items: flex-start; }
  .security-account-row { grid-template-columns: 1fr; padding: 15px; }
  .security-account-person { grid-column: auto; }
  .security-events-grid { grid-template-columns: 1fr; }
  .security-event-row { grid-template-columns: 30px minmax(0, 1fr); }
  .security-event-row time { grid-column: 2; }
  .security-account-action .btn { width: 100%; justify-content: center; }
}

/* Desktop navigation dock: full-page rail with a permanently visible account footer. */
@media (min-width: 1051px) {
  .app-shell {
    position: relative;
    align-items: stretch;
    background: linear-gradient(90deg, #05090f 0, #03101b 280px, transparent 280px);
  }

  .sidebar {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    width: 280px;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    align-content: stretch;
    overflow: hidden;
  }

  .sidebar .brand-pro {
    gap: 10px;
  }

  .sidebar .brand-logo-card {
    width: 120px;
    min-height: 50px;
    flex: 0 0 120px;
    padding: 6px 8px;
  }

  .sidebar .brand-title {
    font-size: 14px;
  }

  .sidebar .nav {
    min-height: 0;
    align-content: start;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 3px;
    scrollbar-width: thin;
    scrollbar-color: rgba(74, 208, 239, 0.3) transparent;
  }

  .sidebar .nav::-webkit-scrollbar {
    width: 4px;
  }

  .sidebar .nav::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: rgba(74, 208, 239, 0.3);
  }

  .sidebar .profile {
    margin-top: 0;
  }

  .sidebar .btn.logout {
    min-height: 42px;
    flex: 0 0 auto;
  }

  .main {
    grid-column: 2;
  }
}

/* Platform v2: powiadomienia, PWA, Google Workspace i synchronizacja offline */
.sidebar .nav button[data-view="notifications"] .pill {
  min-width: 31px;
  border: 1px solid rgba(130, 239, 255, 0.42);
  color: #fff;
  background: linear-gradient(135deg, #087dc4, #00b9b2);
  box-shadow: 0 0 0 3px rgba(0, 174, 220, 0.09), 0 7px 16px rgba(0, 113, 173, 0.24);
}

.topbar-notification-button,
.mobile-notification-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid #c8dbe8;
  border-radius: 7px;
  color: #0a446c;
  background: #fff;
  cursor: pointer;
}

.topbar-notification-button svg,
.mobile-notification-button svg { width: 18px; height: 18px; }
.topbar-notification-button b,
.mobile-notification-button b {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #cf2027;
  font-size: 10px;
  line-height: 1;
}

.mobile-notification-button { display: none; }
.offline-queue-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid #e7b963;
  border-radius: 7px;
  color: #73450b;
  background: #fff7df;
  font-weight: 700;
  cursor: pointer;
}
.offline-queue-chip svg { width: 16px; height: 16px; }
.system-health.offline span { background: #d48a00; box-shadow: 0 0 0 4px rgba(212, 138, 0, 0.14); }

.google-login-shell {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 3px;
  border: 1px solid #c9dce8;
  border-radius: 7px;
  background: #fff;
}
.google-login-shell > div { width: 100%; display: grid; place-items: center; }
.google-login-loading { display: inline-flex; align-items: center; gap: 9px; min-height: 38px; color: #60758a; font-size: 13px; }
.google-login-loading i { width: 15px; height: 15px; border: 2px solid #b8d7e8; border-top-color: #00aee6; border-radius: 50%;  }
.admin-second-factor small,
.meeting-schedule-options small { display: block; margin-top: 5px; color: #667b8f; font-size: 11px; }
.auth-security-note { display: flex; align-items: flex-start; gap: 9px; color: #526b7e; font-size: 12px; line-height: 1.45; }
.auth-security-note svg { width: 17px; height: 17px; flex: 0 0 auto; color: #008f85; }

.notification-command {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  min-height: 236px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid #135a7a;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(112deg, #06131f 0%, #082b3d 58%, #086f91 100%);
  box-shadow: 0 18px 42px rgba(7, 45, 67, 0.18);
}
.notification-command::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, transparent, #000 35%, #000);
}
.notification-command-copy { position: relative; z-index: 1; align-self: center; padding: 29px 34px; }
.notification-command-copy h2 { margin: 7px 0 8px; max-width: 720px; color: #fff; font-size: clamp(25px, 3vw, 38px); letter-spacing: 0; }
.notification-command-copy p { max-width: 690px; margin: 0; color: #bed7e4; line-height: 1.55; }
.notification-command-copy .panel-kicker { color: #65e8ff; }
.notification-command-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.notification-command-actions .btn.light { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.1); }
.notification-compatibility { display: flex; gap: 8px; align-items: flex-start; max-width: 700px; margin-top: 14px; color: #ffd98f; font-size: 12px; }
.notification-compatibility svg { width: 16px; height: 16px; flex: 0 0 auto; }
.notification-signal { position: relative; z-index: 1; display: grid; place-items: center; }
.notification-signal > span { position: relative; z-index: 2; display: grid; place-items: center; width: 92px; height: 92px; border: 1px solid rgba(130,239,255,.72); border-radius: 50%; color: #fff; background: #06334b; box-shadow: 0 0 0 10px rgba(34,221,239,.08), 0 0 36px rgba(34,221,239,.35); }
.notification-signal > span svg { width: 35px; height: 35px; }
.notification-signal > span b { position: absolute; top: -5px; right: -3px; display: grid; place-items: center; min-width: 27px; height: 27px; padding: 0 6px; border: 3px solid #06334b; border-radius: 99px; background: #d02a2f; font-size: 12px; }
.notification-signal > i { position: absolute; width: 120px; height: 120px; border: 1px solid rgba(101,232,255,.24); border-radius: 50%;  }

.notification-status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.notification-status-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 11px; align-items: center; min-height: 104px; padding: 15px; border: 1px solid #d2e0e9; border-bottom: 3px solid #8298a8; border-radius: 7px; background: #fff; }
.notification-status-card > span { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 7px; color: #24536d; background: #edf5f9; }
.notification-status-card svg { width: 19px; height: 19px; }
.notification-status-card small,
.notification-status-card p { color: #66798a; }
.notification-status-card strong { display: block; margin: 2px 0; color: #102332; font-size: 18px; }
.notification-status-card p { margin: 0; font-size: 11px; line-height: 1.35; }
.notification-status-card.ready { border-bottom-color: #16815a; }
.notification-status-card.ready > span { color: #08724d; background: #e7f8ef; }
.notification-status-card.waiting { border-bottom-color: #d28a10; }
.notification-status-card.waiting > span { color: #9c6100; background: #fff4d9; }
.notification-status-card.danger { border-bottom-color: #c92e35; }
.notification-status-card.danger > span { color: #b61d28; background: #ffebed; }

.notifications-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 340px); gap: 16px; align-items: start; }
.notification-inbox { overflow: hidden; }
.notification-management { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px; border-top: 1px solid #dce7ee; border-bottom: 1px solid #cfe4ed; background: linear-gradient(90deg, #f4fbfe, #fff); }
.notification-select-all { display: inline-flex; align-items: center; gap: 8px; color: #173748; font-size: 12px; cursor: pointer; user-select: none; }
.notification-select-all input,
.notification-row-select input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.notification-select-all > span,
.notification-row-select > span { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #9fc9d9; border-radius: 5px; color: transparent; background: #fff; transition: border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.notification-select-all > span svg,
.notification-row-select > span svg { width: 14px; height: 14px; stroke-width: 3; }
.notification-select-all input:checked + span,
.notification-row-select input:checked + span { border-color: #008fca; color: #fff; background: #008fca; box-shadow: 0 0 0 3px rgba(0, 174, 230, .12); }
.notification-select-all input:indeterminate + span { border-color: #008fca; color: #008fca; background: linear-gradient(#008fca, #008fca) center / 10px 2px no-repeat #fff; }
.notification-select-all input:indeterminate + span svg { opacity: 0; }
.notification-select-all input:focus-visible + span,
.notification-row-select input:focus-visible + span { outline: 3px solid rgba(0, 174, 230, .23); outline-offset: 2px; }
.notification-selection-count { margin-left: auto; color: #648090; font-size: 11px; font-weight: 800; }
.notification-management-actions { display: flex; gap: 7px; }
.notification-management .btn.compact { min-height: 34px; padding: 7px 10px; font-size: 11px; }
.notification-management .btn.danger-outline { border: 1px solid #e5a8aa; color: #a8141d; background: #fff; }
.notification-management .btn.danger-outline:hover { border-color: #bc1721; color: #fff; background: #bc1721; }
.notification-management .btn:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; transform: none; }
.notification-list { display: grid; }
.notification-row { position: relative; display: flex; align-items: stretch; width: 100%; min-height: 84px; border-top: 1px solid #dce7ee; color: #182b39; background: #fff; transition: background .18s ease, box-shadow .18s ease; }
.notification-row:first-child { border-top: 0; }
.notification-row:hover { z-index: 1; background: #f2fbff; box-shadow: inset 3px 0 #75cfe8; }
.notification-row.unread { background: #f4fbff; }
.notification-row.selected,
.notification-row.unread.selected { z-index: 1; background: #eaf9fe; box-shadow: inset 3px 0 #008fc7, inset 0 0 0 1px rgba(0, 143, 199, .15); }
.notification-row.unread::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: #00aee6; }
.notification-row-select { position: relative; z-index: 2; display: grid; place-items: center; flex: 0 0 48px; border-right: 1px solid #e2edf2; cursor: pointer; }
.notification-row-select:hover > span { border-color: #008fca; transform: scale(1.06); }
.notification-row-main { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; flex: 1 1 auto; min-width: 0; min-height: 84px; padding: 13px 16px; border: 0; color: inherit; text-align: left; background: transparent; cursor: pointer; }
.notification-row-main:focus-visible { position: relative; z-index: 3; outline: 3px solid rgba(0, 174, 230, .25); outline-offset: -3px; }
.notification-row-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 7px; color: #08739d; background: #dff5ff; }
.notification-row-icon.approved,
.notification-row-icon.success { color: #08724d; background: #e2f7ec; }
.notification-row-icon.rejected { color: #b61d28; background: #ffe7e9; }
.notification-row-icon.reminder { color: #9c6100; background: #fff1cf; }
.notification-row-icon svg { width: 20px; height: 20px; }
.notification-row-copy { min-width: 0; display: grid; gap: 3px; }
.notification-row-copy strong,
.notification-row-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-row-copy span { color: #526b7e; font-size: 13px; }
.notification-row-copy small { color: #8193a2; font-size: 11px; }
.notification-row-main > b { padding: 4px 6px; border-radius: 4px; color: #006c9b; background: #d9f4ff; font-size: 9px; }
.notification-row-main > svg { width: 16px; color: #16815a; }
.notification-empty { display: grid; place-items: center; gap: 7px; min-height: 250px; padding: 30px; color: #728695; text-align: center; }
.notification-empty svg { width: 35px; height: 35px; color: #00aee6; }
.notification-empty strong { color: #243b4b; }
.notification-settings { display: grid; gap: 16px; }
.notification-integration-panel { padding-bottom: 15px; }
.notification-integration-panel > p { margin: 0 16px 15px; color: #5a7081; font-size: 13px; line-height: 1.5; }
.notification-integration-panel > .btn,
.integration-waiting { width: calc(100% - 32px); margin: 0 16px; }
.integration-waiting { display: flex; gap: 9px; padding: 11px; border: 1px solid #e1c680; border-radius: 7px; color: #795310; background: #fff8e8; font-size: 12px; }
.integration-waiting svg { width: 17px; height: 17px; flex: 0 0 auto; }
.email-reminder-panel .panel-header > svg { color: #008fc7; }
.email-reminder-status { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px; width: calc(100% - 32px); margin: 0 16px; padding: 10px 12px; border: 1px solid #c9dce5; border-radius: 7px; background: #f5fafc; }
.email-reminder-status > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; }
.email-reminder-status > span svg { width: 17px; height: 17px; }
.email-reminder-status > div { min-width: 0; display: grid; gap: 2px; }
.email-reminder-status small { color: #6b8491; font-size: 8px; font-weight: 900; }
.email-reminder-status strong { color: #163646; font-size: 13px; }
.email-reminder-status em { overflow: hidden; color: #67808c; font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.email-reminder-status.ready { border-color: #a8dec8; background: #effaf5; }
.email-reminder-status.ready > span { color: #08744f; background: #d9f4e8; }
.email-reminder-status.waiting { border-color: #e6ce92; background: #fff9e9; }
.email-reminder-status.waiting > span { color: #946000; background: #ffefc3; }
.offline-failures > div:not(.panel-header) { display: flex; gap: 9px; padding: 11px 15px; border-top: 1px solid #e5ebef; }
.offline-failures > div > svg { width: 17px; color: #c1242d; flex: 0 0 auto; }
.offline-failures span { display: grid; gap: 2px; }
.offline-failures small { color: #687b89; }
.notification-delete-summary { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 13px; padding: 15px; border: 1px solid #ead7d5; border-radius: 7px; background: linear-gradient(135deg, #fff, #fff6f5); }
.notification-delete-summary > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 7px; color: #fff; background: #b91d17; box-shadow: 0 10px 20px rgba(185, 29, 23, .2); }
.notification-delete-summary > span svg { width: 22px; height: 22px; }
.notification-delete-summary small,
.notification-delete-summary strong { display: block; }
.notification-delete-summary small { color: #a45b57; font-size: 8px; font-weight: 900; }
.notification-delete-summary strong { margin-top: 3px; color: #44110e; font-size: 20px; }
.notification-delete-summary p { margin: 6px 0 0; color: #765e5b; font-size: 11px; line-height: 1.5; }
.notification-delete-warning { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; border: 1px solid #efcfcc; color: #8e2823; background: #fff4f3; }
.notification-delete-warning svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; }
.meeting-schedule-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.meeting-export-actions { flex-wrap: wrap; }
.meeting-reschedule-button { border-color: #e9b75d; color: #7c4a00; background: #fff8e8; }
.meeting-reschedule-button:hover { border-color: #d99a28; color: #5f3800; background: #ffefc7; }
.meeting-reschedule-form .modal-body { background: #f7fbfd; }
.meeting-reschedule-summary { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 13px; padding: 15px; border: 1px solid #b9dce9; border-radius: 7px; background: #fff; box-shadow: 0 10px 26px rgba(12, 61, 82, .08); }
.meeting-reschedule-summary > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 7px; color: #fff; background: #087fa8; }
.meeting-reschedule-summary > span svg { width: 22px; height: 22px; }
.meeting-reschedule-summary small { display: block; color: #0783ad; font-size: 8px; font-weight: 900; }
.meeting-reschedule-summary strong { display: block; margin-top: 3px; color: #102532; font-size: 16px; }
.meeting-reschedule-summary p { margin: 4px 0 0; color: #5d7480; font-size: 11px; line-height: 1.45; }
.meeting-reschedule-arrow { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 0 2px; color: #9a650d; font-size: 10px; font-weight: 800; }
.meeting-reschedule-arrow svg { width: 15px; height: 15px;  }
.meeting-reschedule-notice { display: flex; align-items: flex-start; gap: 8px; border-color: #b9dce9; color: #28576b; background: #edfaff; }
.meeting-reschedule-notice svg { flex: 0 0 auto; width: 17px; height: 17px; color: #0783ad; }
.meeting-reschedule-submit { border-color: #d18c19; color: #fff; background: #d98c0b; box-shadow: 0 8px 18px rgba(174, 103, 0, .2); }
.meeting-reschedule-submit:hover { background: #bd7400; transform: translateY(-1px); }

.oauth-result { min-height: 100vh; display: grid; place-items: center; margin: 0; color: #fff; background: #06131f; font-family: Inter, Arial, sans-serif; }
.oauth-result main { width: min(500px, calc(100% - 32px)); padding: 32px; border: 1px solid #0d769d; border-radius: 8px; text-align: center; background: #092739; box-shadow: 0 0 35px rgba(0,174,230,.25); }
.oauth-result h1 { letter-spacing: 0; }
.oauth-result p { color: #b8d4e1; }
.oauth-result a { display: inline-flex; padding: 10px 16px; border-radius: 7px; color: #fff; background: #087fc5; text-decoration: none; font-weight: 700; }

@media (max-width: 1050px) {
  .notification-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notifications-layout { grid-template-columns: 1fr; }
  .notification-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .mobile-notification-button { display: inline-grid; margin-left: auto; }
  .topbar-notification-button { display: none; }
  .offline-queue-chip span { display: none; }
  .offline-queue-chip { width: 38px; padding: 0; justify-content: center; }
  .notification-command { grid-template-columns: 1fr; min-height: 0; }
  .notification-command-copy { padding: 23px 19px 26px; }
  .notification-command-copy h2 { font-size: 25px; }
  .notification-signal { display: none; }
  .notification-status-grid,
  .notification-settings { grid-template-columns: 1fr; }
  .notification-management { align-items: stretch; flex-wrap: wrap; padding: 10px 12px; }
  .notification-select-all { min-height: 34px; }
  .notification-selection-count { display: flex; align-items: center; margin-left: auto; }
  .notification-management-actions { flex: 1 0 100%; }
  .notification-management-actions .btn { flex: 1 1 0; justify-content: center; }
  .notification-row-select { flex-basis: 44px; }
  .notification-row-main { grid-template-columns: 40px minmax(0, 1fr); min-height: 78px; padding: 12px; }
  .notification-row-main > b,
  .notification-row-main > svg { display: none; }
  .notification-row-copy strong,
  .notification-row-copy span { white-space: normal; }
  .meeting-schedule-options { grid-template-columns: 1fr; }
  .google-login-shell { min-height: 48px; }
}

/* Selektor uczestników spotkania */
.meeting-participant-field {
  gap: 9px;
}

.meeting-participant-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.meeting-participant-heading > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid #b9deeb;
  border-radius: 6px;
  color: #096384;
  background: #eaf9fd;
  font-size: 11px;
}

.meeting-participant-heading > span svg {
  width: 14px;
  height: 14px;
}

.meeting-participant-heading > span b {
  font-weight: 800;
}

.meeting-participant-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 54px;
  padding: 8px;
  border: 1px solid #cbdce6;
  border-radius: 7px;
  background: #f6fafc;
}

.meeting-participant-chip {
  display: inline-grid;
  grid-template-columns: 30px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-height: 38px;
  padding: 3px 3px 3px 5px;
  border: 1px solid #c6d9e4;
  border-radius: 7px;
  color: #142b3a;
  background: #fff;
  box-shadow: 0 3px 10px rgba(20, 51, 70, 0.06);
}

.meeting-participant-avatar {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  color: #fff;
  background: #173c52;
  font-size: 10px;
  font-weight: 900;
}

.meeting-participant-avatar.admin {
  background: #096fa4;
}

.meeting-participant-avatar.moderator {
  background: #a05a00;
}

.meeting-participant-avatar.reception {
  background: #087f73;
}

.meeting-participant-avatar.developer {
  background: #6546a8;
}

.meeting-participant-avatar.external {
  background: #667684;
}

.meeting-participant-chip-copy,
.meeting-participant-option-copy {
  min-width: 0;
}

.meeting-participant-chip-copy strong,
.meeting-participant-chip-copy small,
.meeting-participant-option-copy strong,
.meeting-participant-option-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-participant-chip-copy strong {
  font-size: 11px;
}

.meeting-participant-chip-copy small {
  margin-top: 1px;
  color: #6b7e8c;
  font-size: 9px;
}

.meeting-participant-chip > button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  color: #718491;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.meeting-participant-chip > button:hover {
  color: #b91925;
  background: #ffecef;
  transform: scale(1.06);
}

.meeting-participant-chip > button svg {
  width: 15px;
  height: 15px;
}

.meeting-participant-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  color: #738795;
  font-size: 12px;
}

.meeting-participant-empty svg {
  width: 17px;
  height: 17px;
  color: #1592b8;
}

.meeting-participant-directory {
  overflow: hidden;
  border: 1px solid #cbdce6;
  border-radius: 7px;
  background: #fff;
}

.meeting-participant-search {
  position: relative;
  display: flex;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid #dce7ed;
  background: #f8fbfc;
}

.meeting-participant-search > svg {
  position: absolute;
  left: 20px;
  z-index: 1;
  width: 17px;
  height: 17px;
  color: #547487;
  pointer-events: none;
}

.field .meeting-participant-search input {
  min-height: 40px;
  padding-left: 38px;
  border-color: #c5d8e3;
  background: #fff;
}

.field .meeting-participant-search input:focus {
  border-color: #139cc8;
  outline: 3px solid rgba(19, 156, 200, 0.12);
}

.meeting-participant-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 226px;
  overflow: auto;
  padding: 8px;
  scrollbar-color: #9bbdcc #eef4f6;
  scrollbar-width: thin;
}

.meeting-participant-option {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 27px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 7px 8px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #183141;
  text-align: left;
  background: #f4f8fa;
  cursor: pointer;
  transition: border-color 170ms ease, background 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.meeting-participant-option:hover {
  z-index: 1;
  border-color: #afd4e2;
  background: #edf8fc;
  transform: translateY(-1px);
}

.meeting-participant-option:focus-visible,
.meeting-participant-chip > button:focus-visible {
  outline: 3px solid rgba(0, 156, 214, 0.2);
  outline-offset: 1px;
}

.meeting-participant-option.selected {
  border-color: #49a7c4;
  background: #e6f7fb;
  box-shadow: inset 3px 0 0 #078eb8, 0 4px 12px rgba(8, 111, 148, 0.08);
}

.meeting-participant-option-copy strong {
  color: #183141;
  font-size: 12px;
}

.meeting-participant-option-copy small {
  margin-top: 3px;
  color: #677c89;
  font-size: 9px;
}

.meeting-participant-check {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #cadbe4;
  border-radius: 50%;
  color: #507183;
  background: #fff;
  transition: color 170ms ease, border-color 170ms ease, background 170ms ease, transform 170ms ease;
}

.meeting-participant-check svg {
  width: 14px;
  height: 14px;
}

.meeting-participant-option.selected .meeting-participant-check {
  border-color: #078eb8;
  color: #fff;
  background: #078eb8;
  transform: rotate(360deg);
}

.meeting-participant-no-users,
.meeting-participant-no-results {
  grid-column: 1 / -1;
  padding: 18px;
  color: #718491;
  text-align: center;
  font-size: 12px;
}

.meeting-participant-no-users {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.meeting-participant-no-users svg {
  width: 17px;
  height: 17px;
}

.meeting-participant-no-results {
  border-top: 1px solid #e1e9ed;
  background: #fbfcfd;
}

.meeting-participant-no-results[hidden],
.meeting-participant-option[hidden] {
  display: none;
}

.meeting-participant-external {
  display: grid;
  grid-template-columns: 36px minmax(150px, 0.75fr) minmax(260px, 1.25fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid #dce7ed;
  background: #f3fafc;
}

.meeting-participant-external-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #98d5e7;
  border-radius: 50%;
  color: #087ea4;
  background: #fff;
}

.meeting-participant-external-icon svg {
  width: 17px;
  height: 17px;
}

.meeting-participant-external-copy {
  min-width: 0;
}

.meeting-participant-external-copy strong,
.meeting-participant-external-copy small {
  display: block;
}

.meeting-participant-external-copy strong {
  color: #183141;
  font-size: 12px;
}

.meeting-participant-external-copy small {
  margin-top: 2px;
  color: #647d8b;
  font-size: 9px;
  line-height: 1.35;
}

.meeting-participant-external-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.field .meeting-participant-external-control input {
  min-width: 0;
  min-height: 38px;
  border-color: #bcd7e2;
  background: #fff;
}

.meeting-participant-external-control .btn {
  min-height: 38px;
  padding: 7px 12px;
  color: #fff;
  background: #087fa8;
}

.meeting-participant-external-control .btn svg {
  width: 15px;
  height: 15px;
}

.meeting-participant-field > small {
  color: #617786;
  font-size: 11px;
  line-height: 1.45;
}

.meeting-information-field {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid #d9e7ed;
}

.meeting-information-guidance {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #b9dce9;
  border-radius: 7px;
  color: #28576b;
  background: #edfaff;
  font-size: 11px;
  font-weight: 700;
}

.meeting-information-guidance svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: #0783ad;
}

.meeting-information-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  border: 1px solid #c9dce5;
  border-radius: 7px;
  background: #edf4f7;
}

.meeting-information-mode button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 39px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #5c7280;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: color 170ms ease, border-color 170ms ease, background 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.meeting-information-mode button:hover {
  color: #0a617f;
  background: rgba(255, 255, 255, 0.72);
}

.meeting-information-mode button.selected {
  border-color: #9ccddd;
  color: #075f7d;
  background: #fff;
  box-shadow: 0 4px 13px rgba(18, 73, 96, 0.1);
}

.meeting-information-mode button:active {
  transform: scale(0.985);
}

.meeting-information-mode button:focus-visible {
  outline: 3px solid rgba(0, 156, 214, 0.2);
  outline-offset: 1px;
}

.meeting-information-mode svg {
  width: 16px;
  height: 16px;
}

.meeting-information-field .meeting-information-chip {
  border-color: #e3c78e;
  box-shadow: inset 3px 0 0 #ef9b20, 0 3px 10px rgba(69, 52, 22, 0.06);
}

.meeting-information-all {
  color: #365e6f;
  background: linear-gradient(90deg, rgba(5, 174, 229, 0.05), rgba(239, 155, 32, 0.06));
}

.meeting-information-all svg {
  color: #e38a13;
}

[data-information-directory][hidden] {
  display: none;
}

@media (max-width: 720px) {
  .meeting-participant-options {
    grid-template-columns: 1fr;
    max-height: 250px;
  }

  .meeting-participant-external {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .meeting-participant-external-control {
    grid-column: 1 / -1;
  }

  .meeting-participant-chip {
    width: 100%;
  }

  .meeting-participant-heading {
    align-items: flex-start;
  }

  .meeting-information-mode {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .meeting-participant-chip,
  .meeting-participant-option,
  .meeting-participant-check,
  .meeting-information-mode button {
    transition: none !important;
  }
}

/* Electron performance profile: keep entry transitions, stop costly ambient loops. */
html.desktop-app body {
  background-attachment: scroll;
}

html.desktop-app .main *,
html.desktop-app .modal-backdrop,
html.desktop-app .day-sheet-backdrop {
  backdrop-filter: none !important;
}

/* ==========================================================================
   Motion
   Calm and consistent, in the spirit of macOS: short fades with a few pixels
   of travel, one easing curve, no bounce, no light sweeps, no loops. Only
   opacity and the individual translate/scale properties animate, so motion
   stays on the compositor and never fights hover `transform` values.
   ========================================================================== */
:root {
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  /* Kept as aliases so older rules resolve to the same calm curve. */
  --ease-emph: var(--ease-out);
  --ease-settle: var(--ease-out);
  --ease-glide: var(--ease-out);
  --ease-pop: var(--ease-out);
  --dur-press: 80ms;
  --dur-hover: 150ms;
  --dur-exit: 150ms;
  --dur-enter: 300ms;
}

@keyframes m-rise { from { opacity: 0; translate: 0 var(--m-rise, 6px); } }
@keyframes m-stage { from { opacity: 0; translate: 0 6px; } }
@keyframes m-fade { from { opacity: 0; } }
@keyframes m-fade-out { to { opacity: 0; } }
@keyframes m-pop-in { from { opacity: 0; scale: 0.98; } }
@keyframes m-pop-out { to { opacity: 0; scale: 0.98; } }
@keyframes m-toast-in { from { opacity: 0; translate: 0 8px; } }
@keyframes m-toast-out { to { opacity: 0; translate: 0 4px; } }
@keyframes m-spin { to { rotate: 360deg; } }

/* --- Rendering cost ------------------------------------------------------ */
/* The page gradient lives on its own fixed layer: scrolling no longer repaints it. */
body {
  background: var(--bg);
  background-attachment: scroll;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 174, 239, 0.22), transparent 34rem),
    radial-gradient(circle at 84% 4%, rgba(0, 167, 181, 0.14), transparent 30rem),
    linear-gradient(135deg, #f7fcff, #e8f5fb 48%, #eff8ff);
}

/* Frosted glass inside the scrolling workspace re-blurs on every scroll frame. */
.main *,
.main *::before,
.main *::after {
  backdrop-filter: none !important;
}

.sidebar::after {
  opacity: 0.42;
  filter: none;
}

.metric strong {
  font-variant-numeric: tabular-nums;
}

/* --- Opening a view -------------------------------------------------------- */
/* app.js tags the visible blocks with data-m and a short positional delay. */
.main[data-motion="enter"] [data-m] {
  animation: m-rise var(--dur-enter) var(--ease-out) var(--m-d, 0ms) backwards;
}

.main[data-motion="enter"] [data-m="head"] {
  animation-name: m-fade;
  animation-duration: 220ms;
}

/* --- Navigation ---------------------------------------------------------- */
/* One highlight marks the current tab and slides to the next one. */
.nav-glider {
  --glider-accent: #58d7ff;
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: var(--glider-w, 100%);
  height: var(--glider-h, 48px);
  translate: var(--glider-x, 0px) var(--glider-y, 0px);
  border: 1px solid color-mix(in srgb, var(--glider-accent) 40%, transparent);
  border-radius: 8px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--glider-accent) 24%, transparent), rgba(255, 255, 255, 0.075));
  pointer-events: none;
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out);
}

.nav.has-glider button {
  z-index: 1;
}

.nav.has-glider button.active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.nav.has-glider button.active::before {
  opacity: 0;
}

/* --- Live status: steady, no pulsing ------------------------------------ */
.system-health > span,
.live-badge > span {
  position: relative;
}

/* --- Dialogs ------------------------------------------------------------- */
.modal-backdrop {
  animation: m-fade 180ms var(--ease-out) backwards;
}

.modal-backdrop .modal,
.meeting-window-host .modal {
  transform-origin: 50% 45%;
  animation: m-pop-in 200ms var(--ease-out) backwards;
}

.modal-backdrop.is-leaving {
  pointer-events: none;
  animation: m-fade-out var(--dur-exit) var(--ease-exit) both;
}

.modal-backdrop.is-leaving .modal {
  animation: m-pop-out var(--dur-exit) var(--ease-exit) both;
}

.day-sheet-backdrop {
  animation: m-fade 180ms var(--ease-out) backwards;
}

.day-sheet-backdrop.is-closing {
  pointer-events: none;
  animation: m-fade-out 150ms var(--ease-exit) both;
}

.meeting-participant-chip.is-new {
  animation: m-pop-in 180ms var(--ease-out) backwards;
}

/* --- Toasts -------------------------------------------------------------- */
.toast {
  position: relative;
  overflow: hidden;
  animation: m-toast-in 220ms var(--ease-out) backwards;
}

.toast.is-leaving {
  animation: m-toast-out 180ms var(--ease-exit) both;
}

.google-login-loading i {
  animation: m-spin 800ms linear infinite;
}

/* --- Calendar header illustration: drawn once, at rest ------------------ */
.calendar-writing-lines > i::after {
  width: 100%;
}

.calendar-writing-glow {
  display: none;
}

/* --- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-delay: 0ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* ==========================================================================
   Sidebar navigation v2
   Quiet outline tabs on deep navy; the current tab is a single luminous blue
   pill (the .nav-glider from the motion system) that glides between tabs.
   ========================================================================== */
.sidebar {
  background:
    radial-gradient(circle at 20% 6%, rgba(0, 150, 255, 0.22), transparent 15rem),
    linear-gradient(180deg, #061428 0%, #05112a 46%, #041026 100%);
  border-right-color: rgba(96, 178, 255, 0.12);
}

/* Network illustration resting under the tabs. */
.sidebar::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto 0 96px 0;
  height: min(420px, 54%);
  background: url("assets/sidebar-network.svg") center bottom / 100% auto no-repeat;
  opacity: 0.9;
  pointer-events: none;
}

/* Room around the tabs so the pill's glow is not clipped by the scrolling list. */
.sidebar .nav {
  gap: 4px;
  margin: -10px -12px;
  padding: 10px 12px;
}

.sidebar .nav button,
.sidebar .nav button:hover,
.sidebar .nav button.active {
  min-height: 44px;
  padding: 0 12px;
  border-color: transparent;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.sidebar .nav button {
  color: #c2d2e6;
}

.sidebar .nav button::before,
.sidebar .nav button::after {
  content: none;
}

.sidebar .nav button:hover {
  color: #ffffff;
  background: rgba(130, 190, 255, 0.07);
}

.sidebar .nav button:active {
  background: rgba(130, 190, 255, 0.11);
}

.sidebar .nav button.active,
.sidebar .nav button.active:hover {
  color: #ffffff;
}

.sidebar .nav-label {
  gap: 13px;
}

.sidebar .nav button .nav-icon,
.sidebar .nav button:hover .nav-icon,
.sidebar .nav button:active .nav-icon,
.sidebar .nav button.active .nav-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 0;
  background: none;
  box-shadow: none;
  color: currentColor;
  transform: none;
}

.sidebar .nav-icon::before,
.sidebar .nav-icon::after,
.sidebar .nav-icon-detail {
  display: none;
}

.sidebar .nav button .nav-icon > .nav-icon-main,
.sidebar .nav button:hover .nav-icon > .nav-icon-main,
.sidebar .nav button.active .nav-icon > .nav-icon-main {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
  filter: none;
  transform: none;
}

.sidebar .nav-text {
  font-size: 14px;
  font-weight: 560;
  letter-spacing: 0.005em;
}

.sidebar .nav button.active .nav-text {
  font-weight: 700;
}

/* The luminous pill. */
.sidebar .nav-glider,
.sidebar .nav:not(.has-glider) button.active {
  border: 1px solid rgba(128, 214, 255, 0.55);
  border-radius: 9px;
  background: linear-gradient(90deg, #14aaf6 0%, #1786f1 52%, #1f64e6 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 5px 16px rgba(0, 128, 255, 0.4),
    0 0 12px rgba(0, 172, 255, 0.32);
}

.sidebar .nav-glider::before {
  content: "";
  inset: 0;
  width: auto;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 58%);
  box-shadow: none;
}

.sidebar .nav button.active .nav-icon > .nav-icon-main {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.45));
}

/* Counter badge. */
.sidebar .nav button[data-view] .pill {
  min-width: 22px;
  min-height: 22px;
  height: 22px;
  padding: 0 6px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #18aefc;
  box-shadow: 0 0 0 3px rgba(24, 174, 252, 0.14), 0 0 14px rgba(24, 174, 252, 0.55);
  font-size: 11.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sidebar .nav button[data-view].active .pill {
  color: #0f62e0;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}

.sidebar .brand,
.sidebar .profile,
.sidebar .btn.logout,
.sidebar .mobile-drawer-head {
  position: relative;
  z-index: 1;
}

.sidebar .profile {
  background: linear-gradient(135deg, rgba(14, 40, 78, 0.82), rgba(8, 28, 58, 0.86));
  border-color: rgba(110, 190, 255, 0.16);
}

/* ==========================================================================
   Workspace header
   One light strip above every view: breadcrumb, title, status and the view's
   main action, with a quiet laboratory illustration behind the tools.
   ========================================================================== */
body {
  /* "clip" instead of "hidden": no scroll container, so the header can stick. */
  overflow-x: clip;
}

.app-header {
  position: relative;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
  margin: 0 0 22px;
  padding: 14px 22px;
  overflow: hidden;
  border: 1px solid #dbeaf4;
  border-radius: 14px;
  background: linear-gradient(90deg, #ffffff 0%, #fbfdff 45%, #f1f9fe 100%);
  box-shadow: 0 10px 30px rgba(0, 72, 120, 0.06);
}

.app-header-art {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  right: 18%;
  width: min(560px, 46%);
  background: url("assets/header-lab.svg") center / cover no-repeat;
  opacity: 0.9;
  pointer-events: none;
}

.app-header-main,
.app-header-tools {
  position: relative;
  z-index: 1;
}

.app-header-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.app-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #5f7387;
  font-size: 12.5px;
  font-weight: 600;
}

.app-breadcrumb .lucide {
  width: 15px;
  height: 15px;
  stroke-width: 1.9;
}

.app-breadcrumb-sep {
  color: #a9bccb;
}

.app-breadcrumb [aria-current="page"] {
  color: #0b2440;
  font-weight: 700;
}

.app-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.app-header-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  color: #0b8fe6;
  background: linear-gradient(145deg, #eaf7ff, #d6eeff);
  box-shadow: inset 0 0 0 1px rgba(11, 143, 230, 0.16);
}

.app-header-icon .lucide {
  width: 21px;
  height: 21px;
  stroke-width: 1.8;
}

.app-header-title h1 {
  margin: 0;
  color: #071a33;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.app-header-title p {
  margin: 2px 0 0;
  color: #4d6378;
  font-size: 13.5px;
  line-height: 1.35;
}

.app-header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.app-header .system-health {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  box-shadow: none;
}

.app-header .system-health:not(.offline) {
  border-color: #cfeadc;
  color: #0e6a47;
  background: rgba(236, 251, 243, 0.92);
}

.app-header .topbar-notification-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border: 0;
  border-radius: 10px;
  color: #0b2440;
  background: transparent;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out);
}

.app-header .topbar-notification-button:hover {
  color: #0b8fe6;
  background: rgba(11, 143, 230, 0.08);
}

.app-header .topbar-notification-button .lucide {
  width: 21px;
  height: 21px;
}

.app-header .topbar-notification-button .realtime-count {
  position: absolute;
  top: 5px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  background: #ef3b3b;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1;
}

.app-header-divider {
  width: 1px;
  height: 30px;
  background: #d5e4ee;
}

.app-header .app-header-action {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(90deg, #0a8fd8, #0b6fc2);
  box-shadow: 0 8px 20px rgba(10, 120, 200, 0.28);
  font-weight: 700;
}

.app-header .app-header-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(10, 120, 200, 0.34);
}

.app-header .app-header-action .lucide {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

/* Desktop: a full-width strip that stays in view while the page scrolls. */
@media (min-width: 1051px) {
  .app-header {
    position: sticky;
    top: 0;
    margin: -28px -28px 22px;
    padding: 14px 28px;
    border-width: 0 0 1px;
    border-radius: 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 24px rgba(0, 60, 110, 0.05);
  }
}

@media (max-width: 1050px) {
  .app-header {
    min-height: 0;
    padding: 14px 16px;
  }

  .app-header-art {
    right: -40px;
    width: 60%;
    opacity: 0.55;
  }

  /* The mobile app bar already carries status and notifications. */
  .app-header .system-health,
  .app-header .topbar-notification-button {
    display: none;
  }
}

@media (max-width: 720px) {
  .app-header {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
  }

  .app-header-title h1 {
    font-size: 20px;
  }

  .app-header-divider {
    display: none;
  }

  .app-header-tools,
  .app-header .app-header-action {
    width: 100%;
  }

  .app-header .app-header-action {
    justify-content: center;
  }
}

/* The header now carries "Nowe spotkanie"; the calendar toolbar keeps navigation only. */
.calendar-commandbar .calendar-add {
  display: none;
}

/* ==========================================================================
   Sign-in
   Two quiet halves. Left: the ProSuplement atom, drawn to the exact geometry
   of assets/logops.png (orbits at 90deg and +/-32.7deg, solid nucleus), on a
   calm ink-navy field. Right: a plain white sign-in form in the app's own
   type. The only motion is the orbits being drawn once on arrival.
   ========================================================================== */
.login-screen {
  --login-brand: #41b2e4;
  --login-ink: #0d1b2a;
  --login-ink-2: #0a1521;
  --login-text: #142130;
  --login-muted: #5b6b7b;
  --login-line: #d3dce5;
  --login-field: #c5d1dc;
  --login-action: #1673b0;
  --login-action-hover: #125f92;

  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  color: var(--login-text);
  background: #ffffff;
}

/* --- Brand half ---------------------------------------------------------- */
.login-stage {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
  padding: 40px 48px 32px;
  overflow: hidden;
  color: #e6edf3;
  background:
    radial-gradient(120% 70% at 50% 38%, rgba(65, 178, 228, 0.09), transparent 62%),
    linear-gradient(180deg, var(--login-ink), var(--login-ink-2));
}

.login-stage-center {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0;
  text-align: center;
}

.login-atom {
  display: block;
  width: auto;
  height: clamp(150px, 30vh, 280px);
  aspect-ratio: 66 / 74;
  overflow: visible;
}

.login-atom ellipse {
  fill: none;
  stroke: var(--login-brand);
  stroke-width: 4.19;
}

.login-atom circle {
  fill: var(--login-brand);
}

.login-welcome {
  margin: clamp(28px, 5vh, 44px) 0 0;
  color: #ffffff;
  font-size: clamp(34px, 3.4vw, 46px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.login-welcome-sub {
  max-width: 40ch;
  margin: 12px 0 0;
  color: #9fb1c2;
  font-size: 15px;
  line-height: 1.5;
}

.login-stage-foot {
  margin: 0;
  color: #6f8496;
  font-size: 12.5px;
  text-align: center;
}

/* --- Form half ----------------------------------------------------------- */
.login-panel {
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  min-width: 0;
  padding: 40px 48px 32px;
}

.login-form {
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(380px, 100%);
}

.login-logo {
  display: block;
  width: 190px;
  height: auto;
  margin: 0 0 18px;
}

.login-form h1 {
  margin: 0;
  color: var(--login-text);
  font-size: 28px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.login-form-lead {
  margin: -8px 0 6px;
  color: var(--login-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.login-form .field {
  display: grid;
  gap: 7px;
  margin: 0;
}

.login-form .field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--login-text);
  font-size: 13.5px;
  font-weight: 600;
}

.login-form .field label span {
  color: var(--login-muted);
  font-size: 12.5px;
  font-weight: 400;
}

.login-form .field small {
  color: var(--login-muted);
  font-size: 12.5px;
}

.login-input {
  position: relative;
  display: flex;
  align-items: center;
}

.login-form .login-input input {
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--login-field);
  border-radius: 8px;
  color: var(--login-text);
  background: #ffffff;
  box-shadow: none;
  font-size: 15px;
  outline: none;
  transition: border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}

.login-form .login-input input:has(+ .login-input-action),
.login-form .login-input input[type="password"] {
  padding-right: 48px;
}

.login-form .login-input input::placeholder {
  color: #8a98a6;
}

.login-form .login-input input:hover {
  border-color: #a9b8c6;
}

.login-form .login-input input:focus-visible {
  border-color: var(--login-action);
  box-shadow: 0 0 0 3px rgba(65, 178, 228, 0.28);
}

.login-input-action {
  position: absolute;
  right: 5px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  color: var(--login-muted);
  background: transparent;
  transition: color 140ms var(--ease-out), background-color 140ms var(--ease-out);
}

.login-input-action:hover {
  color: var(--login-text);
  background: #eef2f6;
}

.login-input-action:focus-visible {
  outline: 2px solid var(--login-action);
  outline-offset: 0;
}

.login-input-action .lucide {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--login-action);
  box-shadow: none;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 140ms var(--ease-out), scale 120ms var(--ease-out);
}

.login-submit:hover {
  background: var(--login-action-hover);
}

.login-submit:active {
  scale: 0.99;
  transition-duration: var(--dur-press);
}

.login-submit:focus-visible {
  outline: 2px solid var(--login-action);
  outline-offset: 3px;
}

.login-help {
  margin-top: 2px;
  padding-top: 18px;
  border-top: 1px solid var(--login-line);
  color: var(--login-muted);
  font-size: 13.5px;
}

.login-help summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  border-radius: 4px;
  color: var(--login-action);
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.login-help summary:hover {
  color: var(--login-action-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-help summary::-webkit-details-marker {
  display: none;
}

.login-help summary:focus-visible {
  outline: 2px solid var(--login-action);
  outline-offset: 3px;
}

.login-help summary .lucide {
  width: 16px;
  height: 16px;
  transition: rotate 160ms var(--ease-out);
}

.login-help[open] summary .lucide {
  rotate: 90deg;
}

.login-help ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0 0 0 18px;
  color: var(--login-muted);
  font-size: 13px;
  line-height: 1.5;
}

.login-form .notice {
  margin: 0;
  padding: 11px 14px;
  border: 1px solid #f1c4c4;
  border-radius: 8px;
  color: #8a1c1c;
  background: #fdf2f2;
  font-size: 13.5px;
  font-weight: 500;
}

.login-legal {
  margin: 28px 0 0;
  color: #7d8b98;
  font-size: 12.5px;
  text-align: center;
}

.login-form .google-login-shell {
  border-radius: 8px;
}

.login-form .auth-security-note {
  color: var(--login-muted);
}

.login-form .auth-security-note svg {
  color: var(--login-action);
}

/* The scrollbar gutter shows the page canvas: keep it white behind sign-in. */
html:has(.login-screen) {
  background: #ffffff;
  color-scheme: light;
  scrollbar-gutter: auto;
}

/* --- Arrival: the orbits are drawn once, then the words settle in -------- */
/* The dash lives only inside the keyframes, so the settled orbits have no seam. */
.login-atom ellipse {
  animation: login-orbit 1300ms cubic-bezier(0.65, 0, 0.35, 1) backwards;
}

.login-atom ellipse:nth-of-type(2) { animation-delay: 140ms; }
.login-atom ellipse:nth-of-type(3) { animation-delay: 280ms; }

.login-atom circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: login-nucleus 700ms var(--ease-out) 900ms backwards;
}

@keyframes login-orbit {
  from { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
  to { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
}

@keyframes login-nucleus {
  from { opacity: 0; scale: 0.4; }
}

.login-welcome,
.login-welcome-sub {
  --m-rise: 8px;
  animation: m-rise 700ms var(--ease-settle) 1000ms backwards;
}

.login-welcome-sub { animation-delay: 1080ms; }

.login-form {
  --m-rise: 8px;
  animation: m-rise 600ms var(--ease-settle) 120ms backwards;
}

/* A failed attempt re-renders the form: skip the arrival, nudge the message. */
.login-settled .login-atom ellipse,
.login-settled .login-atom circle,
.login-settled .login-welcome,
.login-settled .login-welcome-sub,
.login-settled .login-form {
  animation: none;
}

.login-settled .login-form .notice {
  animation: m-shake 420ms var(--ease-out);
}

@keyframes m-shake {
  0%, 100% { translate: 0 0; }
  20% { translate: -6px 0; }
  40% { translate: 5px 0; }
  60% { translate: -3px 0; }
  80% { translate: 2px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .login-atom ellipse,
  .login-atom circle,
  .login-welcome,
  .login-welcome-sub,
  .login-form,
  .login-settled .login-form .notice {
    animation: none;
  }
}

/* --- Smaller screens ----------------------------------------------------- */
@media (max-width: 1100px) {
  .login-screen {
    grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
  }

  .login-stage,
  .login-panel {
    padding-inline: 32px;
  }
}

/* Phones and narrow tablets: the atom becomes a compact header band. */
@media (max-width: 820px) {
  .login-screen {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .login-stage {
    grid-template-rows: auto;
    padding: max(20px, env(safe-area-inset-top)) 20px 20px;
  }

  .login-stage-center {
    grid-template-columns: auto 1fr;
    justify-items: start;
    column-gap: 16px;
    text-align: left;
  }

  .login-atom {
    grid-row: span 2;
    height: 60px;
  }

  .login-welcome {
    align-self: end;
    margin: 0;
    font-size: 26px;
  }

  .login-welcome-sub {
    align-self: start;
    margin-top: 4px;
    font-size: 13.5px;
  }

  .login-stage-foot {
    display: none;
  }

  .login-panel {
    padding: 28px 20px max(24px, env(safe-area-inset-bottom));
  }

  .login-form {
    align-self: start;
  }

  .login-logo {
    width: 170px;
    margin-bottom: 8px;
  }

  .login-form h1 {
    font-size: 24px;
  }
}

/* ==========================================================================
   Light workspace theme
   Every view on a light-blue canvas: white surfaces with hairline borders and
   soft layered shadows, headers turned from dark photo banners into airy
   panels. Layout, actions and status colours stay exactly as they were.
   ========================================================================== */
:root {
  --ui-canvas: #edf4fb;
  --ui-surface: #ffffff;
  --ui-surface-soft: #f6fafe;
  --ui-tint: #e8f3fd;
  --ui-tint-strong: #d6eafb;
  --ui-line: #dce8f2;
  --ui-line-strong: #c8dae8;
  --ui-ink: #0b1f36;
  --ui-ink-soft: #3d5469;
  --ui-ink-muted: #6a7f94;
  --ui-accent: #0a84e0;
  --ui-accent-bright: #1aa3f0;
  --ui-radius-lg: 16px;
  --ui-radius-md: 12px;
  --ui-radius-sm: 10px;
  --ui-shadow: 0 1px 2px rgba(16, 42, 72, 0.05), 0 8px 24px rgba(16, 62, 112, 0.07);
  --ui-shadow-raised: 0 2px 4px rgba(16, 42, 72, 0.06), 0 16px 36px rgba(16, 62, 112, 0.11);
  --ui-focus: 0 0 0 3px rgba(10, 132, 224, 0.24);
}

body {
  background: var(--ui-canvas);
}

body::before {
  background:
    radial-gradient(circle at 16% 0%, rgba(126, 196, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 94% 6%, rgba(160, 220, 255, 0.2), transparent 30rem),
    linear-gradient(180deg, #f4f9fe 0%, #ebf3fb 100%);
}

/* --- View headers: from dark banners to light panels -------------------- */
.view.active :is(.hero-band, .reception-command, .rooms-command, .approval-command, .access-command, .audit-command, .notification-command, .developer-command, .calendar-commandbar) {
  color: var(--ui-ink) !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: var(--ui-radius-lg) !important;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 251, 255, 0.97) 44%, rgba(225, 240, 253, 0.86) 100%),
    url("assets/enterprise-office.jpg") right 42% / cover !important;
  box-shadow: var(--ui-shadow) !important;
}

.view.active .calendar-commandbar {
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 251, 255, 0.97) 52%, rgba(225, 240, 253, 0.9) 100%),
    url("assets/enterprise-office.jpg") right 44% / cover !important;
}

.view.active :is(.hero-band, .reception-command, .rooms-command, .approval-command, .access-command, .audit-command, .notification-command, .developer-command, .calendar-commandbar) :is(h1, h2, h3, strong):not(.btn *) {
  color: var(--ui-ink) !important;
  text-shadow: none !important;
}

.view.active :is(.hero-band, .reception-command, .rooms-command, .approval-command, .access-command, .audit-command, .notification-command, .developer-command, .calendar-commandbar) :is(p, small, span, em, label, time, li, dt, dd):not(.btn, .btn *, .pill, [class*="status"], [class*="status"] *, .day-sheet-date-mark *) {
  color: var(--ui-ink-soft) !important;
  text-shadow: none !important;
}

.view.active :is(.hero-band, .reception-command, .rooms-command, .approval-command, .access-command, .audit-command, .notification-command, .developer-command, .calendar-commandbar) :is([class*="kicker"]) {
  color: var(--ui-accent) !important;
}

.view.active :is(.hero-band, .reception-command, .rooms-command, .approval-command, .access-command, .audit-command, .notification-command, .developer-command, .calendar-commandbar) :is([class*="kicker"]) :is(span, i, svg) {
  color: var(--ui-accent) !important;
}

.view.active :is(.hero-band, .reception-command, .rooms-command, .approval-command, .access-command, .audit-command, .notification-command, .developer-command) :is([class*="kicker"]) > span + span {
  color: var(--ui-ink-muted) !important;
}

.view.active :is(.hero-band, .reception-command, .rooms-command, .approval-command, .access-command, .audit-command, .notification-command, .developer-command, .calendar-commandbar) .btn:is(.light, .ghost) {
  color: var(--ui-ink) !important;
  border: 1px solid var(--ui-line-strong) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 1px 2px rgba(16, 42, 72, 0.06) !important;
}

.view.active :is(.hero-band, .reception-command, .rooms-command, .approval-command, .access-command, .audit-command, .notification-command, .developer-command, .calendar-commandbar) .btn:is(.light, .ghost):hover {
  border-color: #a9c9e1 !important;
  background: #ffffff !important;
}

/* Glass panels inside the headers become frosted white cards. */
.view.active :is(.command-visual, .reception-liveboard, .rooms-readiness, .approval-readiness, .access-security-score, .audit-live-map, .developer-radar) {
  color: var(--ui-ink) !important;
  border: 1px solid var(--ui-line) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: 0 1px 2px rgba(16, 42, 72, 0.04), 0 10px 26px rgba(16, 62, 112, 0.08) !important;
}

.view.active :is(.command-visual, .reception-liveboard, .rooms-readiness, .approval-readiness, .access-security-score, .audit-live-map, .developer-radar) :is(div, span, li):not([class*="ring"], [class*="ring"] *, [class*="status"], [class*="status"] *, .audit-signal-grid *, .flow-dot) {
  border-color: var(--ui-line) !important;
  background-color: transparent !important;
}

/* Progress rings: brand blue on a pale track, white centre. */
.view.active .readiness-ring { background: conic-gradient(var(--ui-accent-bright) var(--readiness), rgba(10, 120, 200, 0.12) 0) !important; }
.view.active .rooms-readiness-ring { background: conic-gradient(var(--ui-accent-bright) var(--rooms-readiness), rgba(10, 120, 200, 0.12) 0) !important; }
.view.active .approval-readiness-ring { background: conic-gradient(var(--ui-accent-bright) var(--approval-readiness), rgba(10, 120, 200, 0.12) 0) !important; }
.view.active .access-score-ring { background: conic-gradient(var(--ui-accent-bright) var(--access-score), rgba(10, 120, 200, 0.12) 0) !important; }

.view.active :is(.readiness-ring, .rooms-readiness-ring, .approval-readiness-ring, .access-score-ring) {
  box-shadow: 0 6px 18px rgba(10, 132, 224, 0.16) !important;
}

.view.active :is(.readiness-ring, .rooms-readiness-ring, .approval-readiness-ring, .access-score-ring)::before,
.view.active .readiness-ring > div {
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(10, 120, 200, 0.08) !important;
}

/* Calendar toolbar: a macOS segmented control. */
.view.active .calendar-segment {
  border: 1px solid var(--ui-line) !important;
  border-radius: 11px !important;
  background: #eef3f8 !important;
}

.view.active .calendar-segment :is(button, .btn, .icon-btn) {
  color: var(--ui-ink) !important;
  border-color: transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.view.active .calendar-segment :is(button, .btn, .icon-btn):hover {
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(16, 42, 72, 0.1) !important;
}

.view.active .calendar-segment :is(button, .btn, .icon-btn) :is(span, svg) {
  color: inherit !important;
}

/* Selected day card in the calendar sidebar. */
.view.active .selected-day-head {
  color: var(--ui-ink) !important;
  background: linear-gradient(135deg, #f1f8ff 0%, #dcedfc 100%) !important;
  border-bottom: 1px solid var(--ui-line);
}

.view.active .selected-day-head :is(strong, h2, h3, span, small, div) {
  color: var(--ui-ink) !important;
}

.view.active .selected-day-head :is(small, span) {
  color: var(--ui-ink-soft) !important;
}

.view.active .selected-day-head .icon-btn {
  color: var(--ui-accent) !important;
  border: 1px solid var(--ui-line-strong) !important;
  background: #ffffff !important;
}

/* --- Surfaces ------------------------------------------------------------ */
.view.active :is(.panel, .metric, .calendar-stat, .reception-stat, .room-resource-stat, .approval-stat, .access-stat, .audit-stat, .notification-status-card, .developer-stat) {
  border-color: var(--ui-line);
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow);
}

.view.active :is(.metric, .calendar-stat, .reception-stat, .room-resource-stat, .approval-stat, .access-stat, .audit-stat, .notification-status-card, .developer-stat):hover {
  box-shadow: var(--ui-shadow-raised);
}

.view.active :is(.resource-room-card, .approval-request-card, .quick-action, .reception-meeting-card, .access-user-row, .reception-visit-row, .reception-room-row, .reception-task-row) {
  border-radius: var(--ui-radius-md);
}

.view.active .panel-header {
  border-bottom-color: var(--ui-line);
}

/* --- Controls -------------------------------------------------------------- */
.btn,
.icon-btn {
  border-radius: var(--ui-radius-sm);
}

.btn.primary {
  background: linear-gradient(180deg, #1597ec 0%, #0a7fd8 100%);
  box-shadow: 0 1px 2px rgba(10, 80, 150, 0.2), 0 6px 16px rgba(10, 132, 224, 0.24);
}

.btn.primary:hover {
  box-shadow: 0 2px 4px rgba(10, 80, 150, 0.22), 0 10px 22px rgba(10, 132, 224, 0.3);
}

.main :is(input, select, textarea):not([type="checkbox"], [type="radio"], [type="range"]),
.modal :is(input, select, textarea):not([type="checkbox"], [type="radio"], [type="range"]),
.day-sheet :is(input, select, textarea):not([type="checkbox"], [type="radio"], [type="range"]) {
  border-radius: var(--ui-radius-sm);
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.main :is(input, select, textarea):focus-visible,
.modal :is(input, select, textarea):focus-visible,
.day-sheet :is(input, select, textarea):focus-visible {
  border-color: var(--ui-accent);
  outline: none;
  box-shadow: var(--ui-focus);
}

:is(.btn, .icon-btn, button):focus-visible {
  outline: none;
  box-shadow: var(--ui-focus);
}

/* --- Dialogs ------------------------------------------------------------- */
.modal-backdrop {
  background: rgba(14, 34, 58, 0.3);
}

.modal-backdrop .modal,
.meeting-window-host .modal {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  box-shadow: 0 0 0 0.5px rgba(16, 42, 72, 0.12), 0 24px 70px rgba(10, 30, 60, 0.28);
}

.day-sheet-backdrop {
  background: rgba(14, 34, 58, 0.34);
}

.day-sheet {
  border-color: rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  box-shadow: 0 0 0 0.5px rgba(16, 42, 72, 0.12), 0 30px 80px rgba(10, 30, 60, 0.3);
}

/* --- Sidebar logo ---------------------------------------------------------- */
.sidebar-logo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 6px 4px 18px;
}

.sidebar-logo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: linear-gradient(90deg, rgba(110, 190, 255, 0.32), rgba(110, 190, 255, 0.08) 70%, transparent);
}

.sidebar-logo img {
  display: block;
  width: 100%;
  max-width: 222px;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(40, 160, 255, 0.16));
}

.view.active .audit-command::before {
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 251, 255, 0.97) 44%, rgba(225, 240, 253, 0.86) 100%),
    url("assets/enterprise-office.jpg") right 44% / cover no-repeat !important;
  transform: none !important;
}

.view.active .notification-signal > span {
  color: var(--ui-accent) !important;
  border-color: rgba(10, 132, 224, 0.35) !important;
  background: linear-gradient(160deg, #ffffff, #e4f2fd) !important;
  box-shadow: 0 0 0 10px rgba(10, 132, 224, 0.07), 0 12px 30px rgba(10, 132, 224, 0.2) !important;
}

.view.active .notification-signal > span svg {
  color: var(--ui-accent) !important;
}

.view.active .calendar-command-visual {
  border-color: var(--ui-line-strong) !important;
  background:
    linear-gradient(rgba(10, 132, 224, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 132, 224, 0.06) 1px, transparent 1px),
    linear-gradient(145deg, #ffffff, #dcedfb) !important;
  background-size: 8px 8px, 8px 8px, auto !important;
  box-shadow: 0 6px 16px rgba(10, 132, 224, 0.14) !important;
}

.view.active :is(.command-visual, .rooms-readiness, .approval-readiness, .access-security-score) [class*="facts"] > div {
  border-left-color: rgba(10, 132, 224, 0.32) !important;
}

/* Day sheet header: light, like the view headers. */
.day-sheet-header {
  color: var(--ui-ink);
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 251, 255, 0.97) 50%, rgba(222, 239, 253, 0.9) 100%),
    url("assets/enterprise-office.jpg") right 40% / cover;
  border-bottom: 1px solid var(--ui-line);
}

.day-sheet-header h2 {
  color: var(--ui-ink);
}

.day-sheet-header p {
  color: var(--ui-ink-soft);
}

.day-sheet-kicker {
  color: var(--ui-accent);
}

.day-sheet-date-mark {
  border-color: var(--ui-line-strong);
  border-radius: 12px;
  background: linear-gradient(160deg, #ffffff, #e5f2fd);
  box-shadow: 0 6px 16px rgba(10, 132, 224, 0.14);
}

.day-sheet-date-mark :is(strong, span) {
  color: var(--ui-ink);
}

.day-sheet-date-mark span {
  color: var(--ui-accent);
}

.day-sheet-close {
  color: var(--ui-ink);
  border: 1px solid var(--ui-line-strong);
  background: #ffffff;
}

/* Dialogs dim the whole window, sidebar included. */
.modal-backdrop {
  z-index: 35;
}
/* ==========================================================================
   Interaction feedback
   Hover changes colour, border and shadow only: nothing slides sideways,
   jumps up or spins. Pressing gives a small, quick press-in, like a key.
   ========================================================================== */

.brand-logo-card:hover,
.nav button:hover,
.nav button:hover::after,
.btn:hover::after,
.btn:hover,
.icon-btn:hover,
.event:hover,
.quick-action:hover,
.panel:hover,
.day:hover,
.item:hover,
.status:hover,
.metric:hover,
.metric:hover::before,
.room-card:hover,
.quick-action:hover::after,
.nav button:hover .nav-icon,
.nav button:active .nav-icon,
.nav button:hover .nav-icon > .nav-icon-main,
.nav button:hover .nav-icon-detail,
.metric:hover .metric-icon,
.panel-link:hover,
.timeline-entry:hover,
.timeline-entry:hover .timeline-arrow,
.quick-action:hover .quick-icon,
.quick-action:hover .quick-arrow,
.reception-stat:hover,
.reception-stat:hover .reception-stat-arrow,
.reception-visit-row:hover,
.visit-action:hover,
.reception-meeting-card:hover,
.room-status-segment button:hover,
.task-check:hover,
.reception-task-row:hover .reception-task-actions,
.task-row-action:hover,
.room-resource-stat:hover,
.room-resource-stat:hover .room-resource-arrow,
.room-filter button:hover,
.resource-room-card:hover,
.resource-room-card:hover::after,
.approval-stat:hover,
.approval-stat:hover .approval-stat-arrow,
.approval-filter button:hover,
.approval-type-filter button:hover,
.approval-request-card:hover,
.approval-request-card:hover::after,
.approval-balance-legend button:hover,
.approval-history-entry:hover,
.access-stat:hover,
.access-stat:hover .access-stat-arrow,
.access-filter button:hover,
.access-role-filter button:hover,
.access-user-row:hover,
.access-switch:not(:disabled):hover,
.access-delete-account:hover,
.calendar-stat:hover,
.calendar-view .day:hover,
.calendar-view .event:hover,
.agenda-preview:hover,
.sheet-meeting:hover,
.audit-list-toggle:hover,
.audit-category-tabs button:hover,
.audit-manage-btn:hover:not(:disabled),
.audit-event-select:hover span,
.audit-event:hover,
.audit-category-chart button:hover,
.profile-password:hover,
.notification-row-select:hover > span,
.meeting-reschedule-submit:hover,
.meeting-participant-chip > button:hover,
.meeting-participant-option:hover,
.app-header .app-header-action:hover {
  transform: none;
}

/* Light sweeps and hover glows over buttons and tiles are switched off. */
.btn::after,
.metric::before,
.quick-action::after,
.nav button::after {
  content: none;
}

.nav button:active,
.access-delete-account:active,
.mobile-menu-toggle:active,
.mobile-drawer-close:active,
.meeting-information-mode button:active,
.btn:active,
.icon-btn:active,
.metric:active,
.quick-action:active,
.app-header .app-header-action:active,
.login-submit:active {
  transform: scale(0.98);
  transition-duration: var(--dur-press);
}

/* One tempo for every hover and press. */
:is(.btn, .icon-btn, .panel, .metric, .day, .item, .status, .event, .quick-action, .panel-link, .timeline-entry, .agenda-preview, .sheet-meeting, .audit-event, .room-card, .visit-action, .task-row-action, .task-check, .profile-password, .nav button, [class*="-stat"], [class*="-card"], [class*="-row"], [class*="-filter"] button, [class*="-tabs"] button, [class*="-segment"] button, .meeting-participant-option, .meeting-reschedule-submit, .access-switch, .access-delete-account, .audit-list-toggle, .audit-manage-btn) {
  transition-duration: var(--dur-hover);
  transition-timing-function: var(--ease-out);
}

/* A selected filter tile is marked by its accent bar and border, not by floating. */
.room-resource-stat.active,
.approval-stat.active,
.access-stat.active {
  transform: none;
}

/* ==========================================================================
   View switching
   The current view fades out in 130ms, then the next one rises 10px into
   place in a short reading-order cascade. Long enough to read as a move,
   short enough never to wait on it.
   ========================================================================== */
@keyframes m-view-leave { to { opacity: 0; translate: 0 -3px; } }

.main[data-motion="leave"] :is(.view.active, .app-header-title) {
  pointer-events: none;
  animation: m-view-leave 130ms var(--ease-exit) both;
}

.main[data-motion="enter"] [data-m] {
  --m-rise: 10px;
  animation-duration: 420ms;
  animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
}

.main[data-motion="enter"] [data-m="head"] {
  animation-duration: 300ms;
}

/* With "reduce motion" on, views still cross-fade: no travel, no cascade. */
@media (prefers-reduced-motion: reduce) {
  .main[data-motion="enter"] [data-m] {
    animation: m-fade 200ms ease-out both !important;
  }
}

/* ==========================================================================
   Forms and dialogs on phones
   Dialogs sit above the mobile app bar, fill the screen width, keep their
   title and save button in view while the fields scroll, and date/time
   fields stay inside their frame on iOS.
   ========================================================================== */
.field > * {
  min-width: 0;
  max-width: 100%;
}

@supports (-webkit-touch-callout: none) {
  .field input:is([type="date"], [type="time"], [type="datetime-local"], [type="month"]) {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    text-align: left;
  }

  .field input::-webkit-date-and-time-value {
    margin: 0;
    text-align: left;
  }
}

@media (max-width: 1050px) {
  .mobile-appbar {
    grid-template-columns: 40px minmax(0, 1fr) auto auto;
  }

  .modal-backdrop,
  .meeting-window-host,
  .day-sheet-backdrop {
    z-index: 110;
  }

  .meeting-window-dock.btn {
    z-index: 85;
  }

  .toast-host {
    z-index: 120;
  }
}

@media (max-width: 720px) {
  .modal-backdrop,
  .meeting-window-host {
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  }

  .modal-backdrop .modal,
  .meeting-window-host .modal {
    width: 100%;
    max-height: calc(100dvh - max(10px, env(safe-area-inset-top)) - max(10px, env(safe-area-inset-bottom)));
    border-radius: 16px;
    overscroll-behavior: contain;
  }

  /* The meeting form is long: it takes the whole screen and is not draggable. */
  .meeting-window-host .modal,
  .modal-backdrop .modal:has(> form[data-form="meeting"]) {
    height: calc(100dvh - max(10px, env(safe-area-inset-top)) - max(10px, env(safe-area-inset-bottom)));
    transform: none;
  }

  .meeting-window-host .modal-header {
    cursor: default;
    touch-action: auto;
  }

  .modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    gap: 8px;
    padding: 14px 16px;
    background: #ffffff;
  }

  .modal-header h2 {
    min-width: 0;
    font-size: 18px;
  }

  .modal-body {
    padding: 16px;
  }

  .modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding: 12px 16px;
    background: #ffffff;
  }

  .modal-footer .btn {
    flex: 1 1 auto;
    min-height: 44px;
  }

  /* One column: the fields own margin already spaces the rows. */
  .modal .form-grid {
    row-gap: 0;
  }

  /* 16px keeps iOS from zooming the page when a field is focused. */
  .field :is(input, select, textarea) {
    font-size: 16px;
  }
}

/* --- Mobile app bar: the company atom instead of a calendar icon -------- */
.mobile-appbar-brand > .mobile-appbar-mark {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.mobile-appbar-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   Security
   One status card in plain words, then figures, the accounts table and the
   two event feeds. Readable sizes (no 9px labels), status by colour and text.
   ========================================================================== */
.sec-view {
  --sec-ok: #16825d;
  --sec-ok-bg: #e7f6ef;
  --sec-warn: #a8620a;
  --sec-warn-bg: #fdf2e1;
  --sec-danger: #b92d25;
  --sec-danger-bg: #fdecea;
  display: none;
  gap: 18px;
}

.sec-view.active {
  display: grid;
}

.sec-view h2 {
  margin: 0;
  color: var(--ui-ink, #0b1f36);
  letter-spacing: -0.01em;
}

/* --- Status card --------------------------------------------------------- */
.sec-status {
  --sec-tone: var(--sec-ok);
  --sec-tone-bg: var(--sec-ok-bg);
  display: grid;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--ui-line, #dce8f2);
  border-radius: var(--ui-radius-lg, 16px);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--sec-tone-bg) 55%, transparent), transparent 38%),
    var(--ui-surface, #fff);
  box-shadow: var(--ui-shadow);
}

.sec-status.warn { --sec-tone: var(--sec-warn); --sec-tone-bg: var(--sec-warn-bg); }
.sec-status.danger { --sec-tone: var(--sec-danger); --sec-tone-bg: var(--sec-danger-bg); }

.sec-status-main {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.sec-status-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--sec-tone);
  background: var(--sec-tone-bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sec-tone) 18%, transparent);
}

.sec-status-icon .lucide {
  width: 28px;
  height: 28px;
}

.sec-status-copy h2 {
  font-size: 24px;
  line-height: 1.2;
}

.sec-status-copy p {
  margin: 4px 0 0;
  color: var(--ui-ink-soft, #3d5469);
  font-size: 15px;
}

.sec-todo {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sec-todo li {
  --sec-tone: var(--sec-warn);
  --sec-tone-bg: var(--sec-warn-bg);
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--sec-tone) 22%, transparent);
  border-radius: var(--ui-radius-md, 12px);
  background: color-mix(in srgb, var(--sec-tone-bg) 60%, #fff);
}

.sec-todo li.danger { --sec-tone: var(--sec-danger); --sec-tone-bg: var(--sec-danger-bg); }

.sec-todo-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--sec-tone);
  background: #fff;
}

.sec-todo-icon .lucide { width: 18px; height: 18px; }

.sec-todo strong {
  display: block;
  color: var(--ui-ink, #0b1f36);
  font-size: 15px;
}

.sec-todo span:not(.sec-todo-icon) {
  display: block;
  color: var(--ui-ink-soft, #3d5469);
  font-size: 14px;
}

.sec-status-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--ui-line, #dce8f2);
  color: var(--ui-ink-muted, #6a7f94);
  font-size: 13.5px;
  line-height: 1.45;
}

.sec-status-note .lucide {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

/* --- Figures ------------------------------------------------------------- */
.sec-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sec-stat {
  --sec-tone: var(--ui-accent, #0a84e0);
  --sec-tone-bg: var(--ui-tint, #e8f3fd);
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid var(--ui-line, #dce8f2);
  border-radius: var(--ui-radius-lg, 16px);
  background: var(--ui-surface, #fff);
  box-shadow: var(--ui-shadow);
}

.sec-stat::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 0;
  width: 36px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--sec-tone);
}

.sec-stat.green { --sec-tone: var(--sec-ok); --sec-tone-bg: var(--sec-ok-bg); }
.sec-stat.amber { --sec-tone: var(--sec-warn); --sec-tone-bg: var(--sec-warn-bg); }
.sec-stat.red { --sec-tone: var(--sec-danger); --sec-tone-bg: var(--sec-danger-bg); }
.sec-stat.neutral { --sec-tone: #8a9bab; --sec-tone-bg: #eef3f7; }

.sec-stat-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--sec-tone);
  background: var(--sec-tone-bg);
}

.sec-stat-icon .lucide { width: 21px; height: 21px; }

.sec-stat small,
.sec-stat em {
  display: block;
  font-style: normal;
}

.sec-stat small {
  color: var(--ui-ink-soft, #3d5469);
  font-size: 13.5px;
  font-weight: 700;
}

.sec-stat strong {
  display: block;
  margin: 2px 0;
  color: var(--ui-ink, #0b1f36);
  font-size: 28px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.sec-stat strong small {
  display: inline;
  color: var(--ui-ink-muted, #6a7f94);
  font-size: 16px;
  font-weight: 700;
}

.sec-stat em {
  color: var(--ui-ink-muted, #6a7f94);
  font-size: 13px;
}

/* --- Panels -------------------------------------------------------------- */
.sec-panel {
  padding: 0;
  overflow: hidden;
}

.sec-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--ui-line, #dce8f2);
}

.sec-panel-head h2 {
  font-size: 18px;
}

.sec-panel-head p {
  margin: 3px 0 0;
  color: var(--ui-ink-muted, #6a7f94);
  font-size: 14px;
}

.sec-panel-head.compact {
  padding: 15px 20px;
}

.sec-count {
  min-width: 28px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--ui-accent, #0a84e0);
  background: var(--ui-tint, #e8f3fd);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.sec-filter {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--ui-line, #dce8f2);
  border-radius: 11px;
  background: var(--ui-surface-soft, #f6fafe);
}

.sec-filter button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: var(--ui-ink-soft, #3d5469);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-hover, 150ms) var(--ease-out), color var(--dur-hover, 150ms) var(--ease-out), box-shadow var(--dur-hover, 150ms) var(--ease-out);
}

.sec-filter button:hover { color: var(--ui-ink, #0b1f36); }

.sec-filter button.active {
  color: var(--ui-ink, #0b1f36);
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 42, 72, 0.08), 0 0 0 1px var(--ui-line, #dce8f2);
}

.sec-filter b {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  color: var(--ui-ink-muted, #6a7f94);
  background: var(--ui-tint, #e8f3fd);
  font-size: 12px;
  text-align: center;
}

.sec-filter button.active b {
  color: #fff;
  background: var(--ui-accent, #0a84e0);
}

/* --- Accounts table ------------------------------------------------------ */
.sec-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(150px, 1fr) 150px;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ui-line, #dce8f2);
  transition: background-color var(--dur-hover, 150ms) var(--ease-out);
}

.sec-table > .sec-row:last-child { border-bottom: 0; }

.sec-row:not(.sec-row-head):hover { background: var(--ui-surface-soft, #f6fafe); }

.sec-row-head {
  padding-top: 10px;
  padding-bottom: 10px;
  color: var(--ui-ink-muted, #6a7f94);
  background: var(--ui-surface-soft, #f6fafe);
  font-size: 12.5px;
  font-weight: 700;
}

.sec-person {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.sec-person .access-avatar {
  width: 42px;
  height: 42px;
  font-size: 13px;
}

.sec-person strong {
  display: block;
  overflow: hidden;
  color: var(--ui-ink, #0b1f36);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sec-person small,
.sec-cell small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--ui-ink-muted, #6a7f94);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sec-self {
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  color: var(--ui-accent, #0a84e0);
  background: var(--ui-tint, #e8f3fd);
  font-size: 11.5px;
  font-style: normal;
  vertical-align: 2px;
}

.sec-cell {
  min-width: 0;
  display: grid;
  gap: 4px;
  justify-items: start;
}

.sec-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
}

.sec-badge .lucide { width: 14px; height: 14px; stroke-width: 2.4; }
.sec-badge.ok { color: var(--sec-ok); background: var(--sec-ok-bg); }
.sec-badge.warn { color: var(--sec-warn); background: var(--sec-warn-bg); }
.sec-badge.danger { color: var(--sec-danger); background: var(--sec-danger-bg); }

.sec-presence {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ui-ink-soft, #3d5469);
  font-size: 14.5px;
  font-weight: 700;
}

.sec-presence i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a9b7c4;
}

.sec-presence.online { color: var(--sec-ok); }
.sec-presence.online i { background: var(--sec-ok); box-shadow: 0 0 0 3px var(--sec-ok-bg); }

.sec-strong {
  color: var(--ui-ink, #0b1f36);
  font-size: 14.5px;
  font-weight: 700;
}

.sec-action {
  display: flex;
  justify-content: flex-end;
}

.sec-action .btn {
  min-height: 38px;
  gap: 7px;
  padding: 0 13px;
  font-size: 14px;
  white-space: nowrap;
}

.sec-action .btn .lucide { width: 16px; height: 16px; }

.sec-muted {
  color: var(--ui-ink-muted, #6a7f94);
  font-size: 13.5px;
}

.sec-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 20px;
  color: var(--ui-ink-muted, #6a7f94);
  font-size: 14.5px;
  list-style: none;
}

.sec-empty .lucide { width: 18px; height: 18px; }

/* --- Event feeds --------------------------------------------------------- */
.sec-feeds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.sec-feed {
  margin: 0;
  padding: 6px 0;
  list-style: none;
}

.sec-event {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 20px;
}

.sec-event + .sec-event { border-top: 1px solid color-mix(in srgb, var(--ui-line, #dce8f2) 70%, transparent); }

.sec-event-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--ui-accent, #0a84e0);
  background: var(--ui-tint, #e8f3fd);
}

.sec-event-icon .lucide { width: 16px; height: 16px; }
.sec-event-icon.green { color: var(--sec-ok); background: var(--sec-ok-bg); }
.sec-event-icon.amber,
.sec-event-icon.warning { color: var(--sec-warn); background: var(--sec-warn-bg); }
.sec-event-icon.danger { color: var(--sec-danger); background: var(--sec-danger-bg); }
.sec-event-icon.neutral { color: #5d7183; background: #eef3f7; }
.sec-event-icon.cyan { color: #00808c; background: #e2f6f8; }

.sec-event strong {
  display: block;
  overflow: hidden;
  color: var(--ui-ink, #0b1f36);
  font-size: 14.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sec-event p {
  margin: 1px 0 0;
  overflow: hidden;
  color: var(--ui-ink-soft, #3d5469);
  font-size: 13.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sec-event time {
  color: var(--ui-ink-muted, #6a7f94);
  font-size: 13px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sec-more {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  border: 0;
  border-top: 1px solid var(--ui-line, #dce8f2);
  border-radius: 0;
  color: var(--ui-accent, #0a84e0);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--dur-hover, 150ms) var(--ease-out);
}

.sec-more:hover { background: var(--ui-surface-soft, #f6fafe); }
.sec-more .lucide { width: 16px; height: 16px; }

/* --- Narrower screens ---------------------------------------------------- */
@media (max-width: 1220px) {
  .sec-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-row { grid-template-columns: minmax(200px, 1.4fr) minmax(130px, 1fr) minmax(130px, 1fr) 150px; }
  .sec-row > .sec-cell[data-label="Ostatnie logowanie"],
  .sec-row-head > span:nth-child(4) { display: none; }
}

@media (max-width: 900px) {
  .sec-feeds { grid-template-columns: 1fr; }

  /* Each account becomes a card with labelled values. */
  .sec-row-head { display: none; }

  .sec-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    padding: 16px;
  }

  .sec-person { grid-column: 1 / -1; }

  .sec-row > .sec-cell[data-label="Ostatnie logowanie"] { display: grid; }

  .sec-cell::before {
    content: attr(data-label);
    color: var(--ui-ink-muted, #6a7f94);
    font-size: 12.5px;
    font-weight: 700;
  }

  .sec-action {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .sec-action .btn {
    width: 100%;
    justify-content: center;
    min-height: 42px;
  }
}

@media (max-width: 640px) {
  .sec-view { gap: 14px; }

  .sec-status { padding: 18px 16px; }

  .sec-status-main {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .sec-status-icon { width: 48px; height: 48px; }
  .sec-status-copy h2 { font-size: 20px; }
  .sec-status-copy p { font-size: 14px; }

  .sec-status-main > .btn {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .sec-todo li { grid-template-columns: 36px minmax(0, 1fr); }

  .sec-todo li > .btn {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  .sec-stats { gap: 10px; }
  .sec-stat { grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 10px; padding: 14px 12px 16px; }
  .sec-stat-icon { width: 34px; height: 34px; border-radius: 10px; }
  .sec-stat-icon .lucide { width: 18px; height: 18px; }
  .sec-stat small { font-size: 13px; }
  .sec-stat em { font-size: 12.5px; }
  .sec-stat::after { left: 12px; }
  .sec-stat strong { font-size: 24px; }

  .sec-panel-head { padding: 16px; }
  .sec-filter { width: 100%; }

  .sec-filter button {
    flex: 1;
    justify-content: center;
    padding: 0 6px;
    font-size: 13.5px;
  }

  .sec-event {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 10px 16px;
  }

  .sec-event time {
    grid-column: 2;
    margin-top: -6px;
  }
}

/* --- Sidebar watermark ----------------------------------------------------
   The company atom as a fine engraving (guilloche rosette, three logo
   orbits with hairlines, a precision dial), resting faintly under the tabs.
   Shown whole: centred, sized to the sidebar, ending just above the profile
   card. No glow, no motion: it reads as a paper watermark. */
.sidebar::before {
  inset: auto 0 192px;
  width: min(84%, 36vh);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto;
  background: url("assets/sidebar-watermark.svg") center / contain no-repeat;
  opacity: 0.36;
}

@media (max-width: 1050px) {
  .sidebar::before {
    bottom: 160px;
  }
}

/* ==========================================================================
   Meeting windows
   Several meeting forms can be open at once. The one touched last sits on
   top; the others step back slightly. Minimized forms wait in a tray at the
   bottom right with their title and time.
   ========================================================================== */
.meeting-window-host {
  z-index: calc(19 + var(--window-layer, 0));
}

.meeting-window-host .modal {
  transition: box-shadow var(--dur-hover, 150ms) var(--ease-out);
}

.meeting-window-host:not(.is-front) .modal {
  box-shadow: 0 0 0 0.5px rgba(16, 42, 72, 0.12), 0 10px 30px rgba(10, 30, 60, 0.16);
}

.meeting-window-host:not(.is-front) .modal-header h2 {
  color: var(--ui-ink-soft, #3d5469);
}

.meeting-window-host .modal-header h2 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-window-tray {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 30;
  max-width: min(780px, calc(100vw - 32px));
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: flex-end;
  gap: 8px;
  pointer-events: none;
}

body:has(.modal-backdrop:not(.is-leaving), .day-sheet-backdrop) .meeting-window-tray {
  display: none;
}

.meeting-tray-item {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--ui-line, #dce8f2);
  border-radius: 12px;
  background: var(--ui-surface, #fff);
  box-shadow: var(--ui-shadow-raised);
  pointer-events: auto;
}

.meeting-tray-restore {
  min-width: 0;
  max-width: 250px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 7px 12px 7px 9px;
  border: 0;
  border-radius: 0;
  color: var(--ui-ink, #0b1f36);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--dur-hover, 150ms) var(--ease-out);
}

.meeting-tray-restore:hover {
  background: var(--ui-surface-soft, #f6fafe);
}

.meeting-tray-icon {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--ui-accent, #0a84e0);
  background: var(--ui-tint, #e8f3fd);
}

.meeting-tray-icon .lucide {
  width: 17px;
  height: 17px;
}

.meeting-tray-copy {
  min-width: 0;
  display: grid;
}

.meeting-tray-copy strong,
.meeting-tray-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-tray-copy strong {
  font-size: 14px;
}

.meeting-tray-copy small {
  color: var(--ui-ink-muted, #6a7f94);
  font-size: 12.5px;
}

.meeting-tray-close {
  flex: none;
  width: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--ui-line, #dce8f2);
  border-radius: 0;
  color: var(--ui-ink-muted, #6a7f94);
  background: transparent;
  cursor: pointer;
  transition: color var(--dur-hover, 150ms) var(--ease-out), background-color var(--dur-hover, 150ms) var(--ease-out);
}

.meeting-tray-close:hover {
  color: #b92d25;
  background: #fdecea;
}

.meeting-tray-close .lucide {
  width: 16px;
  height: 16px;
}

@media (max-width: 1050px) {
  .meeting-window-host {
    z-index: calc(100 + var(--window-layer, 0));
  }

  .meeting-window-tray {
    z-index: 85;
  }
}

@media (max-width: 720px) {
  /* One row that scrolls sideways, so every title stays readable. */
  .meeting-window-tray {
    right: 0;
    left: 0;
    bottom: max(10px, env(safe-area-inset-bottom));
    max-width: none;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 4px 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    pointer-events: auto;
  }

  .meeting-window-tray::-webkit-scrollbar {
    display: none;
  }

  .meeting-tray-item {
    flex: 0 0 min(76%, 290px);
    min-width: 0;
    scroll-snap-align: start;
  }

  .meeting-tray-item:only-child {
    flex-basis: 100%;
  }

  /* A window fills the phone screen; the tray waits until it is minimized. */
  body:has(.meeting-window-host:not([data-leaving])) .meeting-window-tray {
    display: none;
  }

  .meeting-tray-restore {
    flex: 1;
    max-width: none;
  }
}

/* --- Window motion (driven from app.js) ----------------------------------- */
.meeting-window-host .modal {
  /* Scale around the true centre so a minimized window lands exactly on its tray item. */
  transform-origin: 50% 50%;
  animation: none;
}

.meeting-window-host[data-leaving] .modal {
  pointer-events: none;
}

/* Saving: the button turns into a short green confirmation before the window closes. */
.meeting-window-host .modal-footer .btn.is-saved {
  border-color: #16825d;
  color: #ffffff;
  background: #16825d;
  box-shadow: 0 6px 16px rgba(22, 130, 93, 0.26);
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.meeting-window-host .modal-footer .btn.is-saved .lucide {
  animation: m-check-in 280ms var(--ease-out) both;
}

@keyframes m-check-in {
  from { opacity: 0; scale: 0.4; }
}

/* The meeting that was just saved draws one soft ring where it now appears. */
@keyframes m-saved-ring {
  0% { outline-color: rgba(10, 132, 224, 0); outline-offset: calc(var(--saved-ring-offset, 2px) + 6px); }
  22% { outline-color: rgba(10, 132, 224, 0.6); outline-offset: var(--saved-ring-offset, 2px); }
  70% { outline-color: rgba(10, 132, 224, 0.42); outline-offset: var(--saved-ring-offset, 2px); }
  100% { outline-color: rgba(10, 132, 224, 0); outline-offset: var(--saved-ring-offset, 2px); }
}

.is-just-saved {
  outline: 2px solid rgba(10, 132, 224, 0);
  animation: m-saved-ring 1700ms var(--ease-out) both;
}

.day.is-just-saved {
  --saved-ring-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
  .is-just-saved {
    animation: none !important;
  }
}

/* ==========================================================================
   Compliance (ISO 27001 / 27701 / 9001)
   Idle warning, protected log, GDPR requests, feedback, backups.
   ========================================================================== */

/* --- Idle sign-out warning ------------------------------------------------ */
.idle-warning {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 140;
  width: min(560px, calc(100vw - 24px));
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #f0d6a8;
  border-radius: 14px;
  background: #fffaf1;
  box-shadow: 0 18px 50px rgba(10, 30, 60, 0.22);
  translate: -50% 0;
  animation: m-toast-in 220ms var(--ease-out) backwards;
}

.idle-warning-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #a8620a;
  background: #fdf2e1;
}

.idle-warning-icon .lucide { width: 20px; height: 20px; }

.idle-warning strong {
  display: block;
  color: #0b1f36;
  font-size: 15px;
}

.idle-warning p {
  margin: 2px 0 0;
  color: #3d5469;
  font-size: 13.5px;
  line-height: 1.4;
}

.idle-warning b {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {
  .idle-warning { grid-template-columns: 40px minmax(0, 1fr); }
  .idle-warning > .btn { grid-column: 1 / -1; width: 100%; justify-content: center; }
}

/* --- Sidebar footer: feedback, privacy, version -------------------------- */
.sidebar-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 14px;
  margin-top: -2px;
  color: rgba(214, 232, 247, 0.62);
  font-size: 12.5px;
}

.sidebar-meta button,
.sidebar-meta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0;
  border: 0;
  color: rgba(214, 232, 247, 0.82);
  background: none;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--dur-hover, 150ms) var(--ease-out);
}

.sidebar-meta button:hover,
.sidebar-meta a:hover {
  color: #ffffff;
}

.sidebar-meta .lucide {
  width: 14px;
  height: 14px;
}

/* --- History: protected log ---------------------------------------------- */
.audit-event-shell {
  grid-template-columns: minmax(0, 1fr);
}

.audit-integrity {
  display: grid;
  grid-template-columns: 36px auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--ui-line, #dce8f2);
  background: #f3fbf7;
}

.audit-integrity.danger {
  background: #fdf1f0;
}

.audit-integrity > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #16825d;
  background: #e1f4ea;
}

.audit-integrity.danger > span {
  color: #b92d25;
  background: #fbe0de;
}

.audit-integrity .lucide { width: 18px; height: 18px; }

.audit-integrity small {
  display: block;
  color: var(--ui-ink-muted, #6a7f94);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.audit-integrity strong {
  color: var(--ui-ink, #0b1f36);
  font-size: 14.5px;
  white-space: nowrap;
}

.audit-integrity p {
  margin: 0;
  color: var(--ui-ink-soft, #3d5469);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .audit-integrity { grid-template-columns: 36px minmax(0, 1fr); }
  .audit-integrity p { grid-column: 1 / -1; }
}

/* --- Reception: guest privacy note --------------------------------------- */
.visit-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0 18px 14px;
  color: var(--ui-ink-muted, #6a7f94);
  font-size: 13px;
  line-height: 1.45;
}

.visit-privacy-note .lucide {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

/* --- GDPR request and feedback dialogs ----------------------------------- */
.privacy-intro,
.issue-meta {
  margin: 0 0 14px;
  color: var(--ui-ink-soft, #3d5469);
  font-size: 14px;
  line-height: 1.5;
}

.issue-meta {
  margin: 4px 0 0;
  color: var(--ui-ink-muted, #6a7f94);
  font-size: 13px;
}

.field-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.privacy-kind {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--ui-line, #dce8f2);
  border-radius: 11px;
  background: var(--ui-surface-soft, #f6fafe);
}

.privacy-kind label {
  position: relative;
  cursor: pointer;
}

.privacy-kind input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.privacy-kind span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--ui-ink-soft, #3d5469);
  font-size: 14px;
  font-weight: 700;
  transition: background-color var(--dur-hover, 150ms) var(--ease-out), color var(--dur-hover, 150ms) var(--ease-out);
}

.privacy-kind input:checked + span {
  color: var(--ui-ink, #0b1f36);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 42, 72, 0.08), 0 0 0 1px var(--ui-line, #dce8f2);
}

.privacy-kind input:focus-visible + span {
  box-shadow: var(--ui-focus);
}

.privacy-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 6px;
  font-size: 13.5px;
}

.privacy-warning .lucide { flex: none; width: 16px; height: 16px; margin-top: 2px; }

.privacy-actions {
  justify-content: space-between;
}

.issue-summary {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--ui-line, #dce8f2);
  border-radius: 12px;
  background: var(--ui-surface-soft, #f6fafe);
}

.issue-summary strong { font-size: 15px; }
.issue-summary p { margin: 4px 0 6px; color: var(--ui-ink-soft, #3d5469); font-size: 14px; white-space: pre-wrap; }
.issue-summary small { color: var(--ui-ink-muted, #6a7f94); font-size: 12.5px; }

/* --- Security tab: compliance evidence ----------------------------------- */
.sec-evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ui-line, #dce8f2);
}

.sec-evidence-item {
  --sec-tone: var(--sec-ok);
  --sec-tone-bg: var(--sec-ok-bg);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--sec-tone) 20%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--sec-tone-bg) 45%, #fff);
}

.sec-evidence-item.warn { --sec-tone: var(--sec-warn); --sec-tone-bg: var(--sec-warn-bg); }
.sec-evidence-item.danger { --sec-tone: var(--sec-danger); --sec-tone-bg: var(--sec-danger-bg); }

.sec-evidence-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--sec-tone);
  background: #ffffff;
}

.sec-evidence-icon .lucide { width: 18px; height: 18px; }
.sec-evidence-item strong { display: block; color: var(--ui-ink, #0b1f36); font-size: 14.5px; }
.sec-evidence-item p { margin: 2px 0 0; color: var(--ui-ink-soft, #3d5469); font-size: 13px; line-height: 1.45; }

.sec-evidence-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
  padding: 16px 20px 18px;
}

.sec-evidence-columns h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--ui-ink, #0b1f36);
  font-size: 15px;
}

.sec-inline-btn.btn {
  min-height: 32px;
  gap: 6px;
  padding: 0 11px;
  font-size: 13px;
  white-space: nowrap;
}

.sec-inline-btn .lucide { width: 15px; height: 15px; }

.sec-backups {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sec-backups li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--ui-line, #dce8f2);
  border-radius: 10px;
}

.sec-backups li > span { min-width: 0; display: grid; }
.sec-backups strong { font-size: 14px; }
.sec-backups small { overflow: hidden; color: var(--ui-ink-muted, #6a7f94); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }

.sec-retention {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px;
  margin: 0;
  font-size: 14px;
}

.sec-retention dt { color: var(--ui-ink-soft, #3d5469); }
.sec-retention dd { margin: 0; color: var(--ui-ink, #0b1f36); font-weight: 700; }

.sec-footnote {
  margin: 10px 0 0;
  color: var(--ui-ink-muted, #6a7f94);
  font-size: 12.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.sec-issues .sec-event {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

@media (max-width: 1100px) {
  .sec-evidence-grid { grid-template-columns: 1fr; }
  .sec-evidence-columns { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .sec-evidence-grid,
  .sec-evidence-columns { padding-right: 16px; padding-left: 16px; }
  .sec-issues .sec-event { grid-template-columns: 34px minmax(0, 1fr); }
  .sec-issues .sec-event > .btn { grid-column: 2; justify-self: start; }
  .privacy-actions { flex-direction: column-reverse; }
}

.field[data-privacy-user][hidden],
.field[data-privacy-guest][hidden] {
  display: none;
}

.notice.privacy-warning {
  border-color: #f0d6a8;
  color: #7a4a07;
  background: #fdf6ea;
}

/* The sidebar footer row pushes the profile card up; the watermark stays clear of it. */
.sidebar::before {
  bottom: 262px;
}

@media (max-width: 1050px) {
  .sidebar::before {
    bottom: 196px;
  }
}

/* ==========================================================================
   Contrast (WCAG 2.2 AA, ISO/IEC 25010 usability)
   Text that measured below 4.5:1 against its background in the light theme,
   each darkened only as far as needed, keeping its hue. Generated from a
   measurement of every tab and the meeting form on 20.11.2026.
   ========================================================================== */
:root {
  --ui-ink-muted: #5e7083;
}

.calendar-view .day.muted { color: #686f76; }
.app-header .topbar-notification-button .realtime-count { background-color: #d43434; }
.status.free, .status.low { color: #117c56; }
.pill { color: #0074a1; }
.calendar-view .weekdays span { color: #5e707e; }
.day-meta i { color: #00739b; }
.calendar-view .event-time { color: #0078a4; }
.calendar-view .event-room { color: #63727d; }
.calendar-view .day.today .day-number > span:first-child { background-color: #007bab; }
.room-status-segment button.active.cleaning { background-color: #a36208; }
.room-resource-stat em { color: #69767e; }
.room-search kbd { color: #63747e; }
.room-filter button.active b { background-color: #007bab; }
.room-filter b { color: #596b76; }
.room-card-kicker { color: #66757e; }
.resource-status-control > span { color: #64757e; }
.approval-stat em { color: #69767e; }
.approval-result { color: #61707a; }
.approval-filter button.active b { background-color: #007bab; }
.approval-filter b { color: #596b76; }
.notification-status-card small, .notification-status-card p { color: #637586; }
.notification-row-copy small { color: #62707b; }
.email-reminder-status small { color: #5c717d; }
.access-stat em { color: #69767e; }
.access-search kbd { color: #63747e; }
.access-filter button.active b, .access-role-filter button.active b { background-color: #007bab; }
.access-filter b, .access-role-filter b { color: #596b76; }
.access-user-identity em { color: #6a757b; }
.access-activity small { color: #67747b; }
.access-avatar.reception { background-color: #007f78; }
.security-status-strip small { color: #5e756d; }
.password-strength span { color: #62727b; }
.password-strength > small { color: #657177; }
.audit-stat em { color: #67767d; }
.audit-search kbd { color: #627178; }
.audit-category-tabs b { color: #566d78; }
.sec-stat em { color: #617487; }
.sec-stat strong small { color: #617487; }
.sec-filter button.active b { background-color: #0975c6; }
.sec-filter b { color: #5b6d7f; }
.sec-badge.ok { color: #157a58; }
.sec-badge.warn { color: #9e5c09; }
.sec-self { color: #086ebb; }
.sec-count { color: #086ebb; }
.meeting-participant-option-copy small { color: #5e717d; }
.meeting-participant-external-copy small { color: #5b727f; }
.room-status-segment button { color: #5f717e; }
.rooms-result { color: #63737c; }
.access-result { color: #63737c; }
.access-list-head { color: #68767f; }
.audit-list-toggle { color: #08779e; }
.audit-filter-summary { color: #61737c; }
.view.active .notification-signal > span b { color: #ffffff !important; }
.meeting-participant-empty { color: #5a6b77; }

/* ==========================================================================
   Simple tabs (History, Access, Notifications, Approvals, Rooms, Reception)
   One panel per job: a header with the main action, a toolbar with filters,
   then the list. Readable sizes, status by colour and text.
   ========================================================================== */
.ws-view {
  --ws-ok: #157a58;
  --ws-ok-bg: #e7f6ef;
  --ws-warn: #9e5c09;
  --ws-warn-bg: #fdf2e1;
  --ws-danger: #b42a23;
  --ws-danger-bg: #fdecea;
  --ws-info: #086ebb;
  --ws-info-bg: #e8f3fd;
  --ws-neutral: #4f6275;
  --ws-neutral-bg: #eef3f7;
  display: none;
  gap: 18px;
}

.ws-view.active {
  display: grid;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ws-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 18px;
  align-items: start;
}

.ws-main,
.ws-side {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.ws-panel {
  padding: 0;
  overflow: hidden;
}

.ws-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--ui-line, #dce8f2);
}

.ws-head.compact {
  padding: 14px 18px;
}

.ws-head h2 {
  margin: 0;
  color: var(--ui-ink, #0b1f36);
  font-size: 19px;
  letter-spacing: -0.01em;
}

.ws-head.compact h2 {
  font-size: 16.5px;
}

.ws-head p {
  margin: 3px 0 0;
  color: var(--ui-ink-soft, #3d5469);
  font-size: 14px;
}

.ws-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ws-head-actions .btn {
  min-height: 40px;
  gap: 7px;
  font-size: 14px;
}

.ws-count {
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--ws-info);
  background: var(--ws-info-bg);
  font-size: 13px;
  font-weight: 700;
}

/* --- Toolbar ------------------------------------------------------------- */
.ws-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--ui-line, #dce8f2);
  background: var(--ui-surface-soft, #f6fafe);
}

.ws-toolbar-tight {
  padding-top: 0;
}

.ws-search {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--ui-line, #dce8f2);
  border-radius: 10px;
  background: #fff;
  transition: border-color var(--dur-hover, 150ms) var(--ease-out), box-shadow var(--dur-hover, 150ms) var(--ease-out);
}

.ws-search:focus-within {
  border-color: var(--ui-accent, #0a84e0);
  box-shadow: var(--ui-focus);
}

.ws-search .lucide {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--ui-ink-muted, #5e7083);
}

.ws-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ui-ink, #0b1f36);
  background: transparent;
  font: inherit;
  font-size: 14.5px;
}

.ws-select select {
  min-height: 40px;
  max-width: 260px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--ui-line, #dce8f2);
  border-radius: 10px;
  color: var(--ui-ink, #0b1f36);
  background: #fff;
  font: inherit;
  font-size: 14px;
}

.ws-segment {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 2px;
  max-width: 100%;
  padding: 3px;
  overflow-x: auto;
  border: 1px solid var(--ui-line, #dce8f2);
  border-radius: 11px;
  background: #fff;
  scrollbar-width: none;
}

.ws-segment::-webkit-scrollbar {
  display: none;
}

.ws-segment-wrap {
  flex-wrap: wrap;
}

.ws-segment button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: var(--ui-ink-soft, #3d5469);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-hover, 150ms) var(--ease-out), color var(--dur-hover, 150ms) var(--ease-out);
}

.ws-segment button:hover {
  color: var(--ui-ink, #0b1f36);
  background: var(--ui-surface-soft, #f6fafe);
}

.ws-segment button.active {
  color: #fff;
  background: var(--ui-accent, #0a84e0);
}

.ws-segment b {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  color: var(--ui-ink-soft, #3d5469);
  background: var(--ws-neutral-bg);
  font-size: 12px;
  text-align: center;
}

.ws-segment button.active b {
  color: var(--ui-accent, #0a84e0);
  background: #fff;
}

.ws-result {
  margin-left: auto;
  color: var(--ui-ink-soft, #3d5469);
  font-size: 13.5px;
}

/* --- Lists --------------------------------------------------------------- */
.ws-list {
  display: grid;
}

.ws-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 14px;
  padding: 12px 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--ui-line, #dce8f2) 80%, transparent);
}

.ws-list > .ws-row:last-child,
.ws-list > :last-child .ws-row {
  border-bottom: 0;
}

.ws-row-button {
  width: 100%;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--dur-hover, 150ms) var(--ease-out);
}

.ws-row-button:hover {
  background: var(--ui-surface-soft, #f6fafe);
}

.ws-time {
  min-width: 46px;
  color: var(--ui-ink, #0b1f36);
  font-size: 14.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ws-cell-main {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.ws-cell-main strong {
  overflow: hidden;
  color: var(--ui-ink, #0b1f36);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-cell-main span {
  color: var(--ui-ink-soft, #3d5469);
  font-size: 14px;
}

.ws-cell-main small,
.ws-cell small {
  overflow: hidden;
  color: var(--ui-ink-muted, #5e7083);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-cell {
  min-width: 0;
  display: grid;
  gap: 1px;
  color: var(--ui-ink, #0b1f36);
  font-size: 14px;
}

.ws-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.ws-act.btn {
  min-height: 36px;
  gap: 6px;
  padding: 0 12px;
  font-size: 14px;
  white-space: nowrap;
}

.ws-act.btn.ok {
  border-color: color-mix(in srgb, var(--ws-ok) 30%, transparent);
  color: var(--ws-ok);
}

.ws-act .lucide,
.ws-act-icon .lucide {
  width: 16px;
  height: 16px;
}

.ws-act-icon.icon-btn {
  width: 36px;
  height: 36px;
}

.ws-muted {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ui-ink-muted, #5e7083);
  font-size: 13.5px;
}

.ws-muted .lucide {
  width: 16px;
  height: 16px;
}

.ws-badge {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--ws-neutral);
  background: var(--ws-neutral-bg);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.ws-badge.ok { color: var(--ws-ok); background: var(--ws-ok-bg); }
.ws-badge.warn { color: var(--ws-warn); background: var(--ws-warn-bg); }
.ws-badge.danger { color: var(--ws-danger); background: var(--ws-danger-bg); }
.ws-badge.info { color: var(--ws-info); background: var(--ws-info-bg); }

.ws-note-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--ws-neutral);
  background: var(--ws-neutral-bg);
}

.ws-note-icon .lucide { width: 16px; height: 16px; }
.ws-note-icon.ok { color: var(--ws-ok); background: var(--ws-ok-bg); }
.ws-note-icon.warn { color: var(--ws-warn); background: var(--ws-warn-bg); }
.ws-note-icon.danger { color: var(--ws-danger); background: var(--ws-danger-bg); }
.ws-note-icon.info { color: var(--ws-info); background: var(--ws-info-bg); }

.ws-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px 20px;
  color: var(--ui-ink-muted, #5e7083);
  font-size: 14.5px;
  text-align: center;
}

.ws-empty[hidden] {
  display: none;
}

.ws-empty > .lucide {
  width: 18px;
  height: 18px;
}

.ws-more {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  border: 0;
  border-top: 1px solid var(--ui-line, #dce8f2);
  border-radius: 0;
  color: var(--ui-accent, #0a84e0);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.ws-more:hover { background: var(--ui-surface-soft, #f6fafe); }
.ws-more .lucide { width: 16px; height: 16px; }

.ws-self {
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  color: var(--ws-info);
  background: var(--ws-info-bg);
  font-size: 11.5px;
  font-style: normal;
  vertical-align: 2px;
}

/* --- Reception ----------------------------------------------------------- */
.ws-day-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ws-day-nav .icon-btn {
  width: 38px;
  height: 38px;
}

.ws-day-today {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--ui-line, #dce8f2);
  border-radius: 10px;
  color: var(--ui-ink, #0b1f36);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.ws-day-today.active {
  border-color: color-mix(in srgb, var(--ui-accent, #0a84e0) 40%, transparent);
  color: var(--ui-accent, #0a84e0);
}

.ws-visit {
  grid-template-columns: 54px minmax(160px, 1.4fr) minmax(110px, 1fr) minmax(90px, 0.7fr) auto auto;
}

.ws-visit.left,
.ws-visit.cancelled {
  opacity: 0.72;
}

.ws-room-line {
  display: grid;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--ui-line, #dce8f2) 80%, transparent);
}

.ws-room-line:last-child { border-bottom: 0; }

.ws-room-line-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ws-room-line-head strong {
  color: var(--ui-ink, #0b1f36);
  font-size: 15px;
}

.ws-task {
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 10px 18px;
}

.ws-task.done .ws-cell-main strong {
  color: var(--ui-ink-muted, #5e7083);
  text-decoration: line-through;
}

/* --- Rooms --------------------------------------------------------------- */
.ws-room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  padding: 18px 20px 20px;
}

.ws-room-grid > .ws-empty {
  grid-column: 1 / -1;
}

.ws-room-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--ui-line, #dce8f2);
  border-radius: var(--ui-radius-md, 12px);
  background: #fff;
}

.ws-room-card[hidden] { display: none; }

.ws-room-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ws-room-card h3 {
  margin: 0;
  color: var(--ui-ink, #0b1f36);
  font-size: 17px;
}

.ws-room-card small {
  color: var(--ui-ink-muted, #5e7083);
  font-size: 13.5px;
}

.ws-room-today,
.ws-room-equipment {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--ui-ink-soft, #3d5469);
  font-size: 13.5px;
}

.ws-room-today .lucide { width: 15px; height: 15px; }

.ws-room-equipment {
  color: var(--ui-ink-muted, #5e7083);
}

.ws-room-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ws-room-card .room-status-segment,
.ws-room-line .room-status-segment {
  margin: 0;
}

/* --- Approvals ----------------------------------------------------------- */
.ws-request {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  padding: 14px 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--ui-line, #dce8f2) 80%, transparent);
}

.ws-request:last-child { border-bottom: 0; }

.ws-request-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.ws-request-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ws-request-title h3 {
  margin: 0;
  color: var(--ui-ink, #0b1f36);
  font-size: 16px;
}

.ws-request-when,
.ws-request-who {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--ui-ink-soft, #3d5469);
  font-size: 14px;
}

.ws-request-who {
  color: var(--ui-ink-muted, #5e7083);
  font-size: 13.5px;
}

.ws-request-when .lucide { width: 15px; height: 15px; }

.ws-request-side {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 8px;
}

.ws-request-actions,
.ws-request-actions .request-decision-actions,
.ws-request-actions .request-final-actions,
.ws-request-actions .request-owner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.ws-request-actions .btn {
  min-height: 36px;
  gap: 6px;
  padding: 0 12px;
  font-size: 14px;
}

.ws-request-actions .btn .lucide { width: 16px; height: 16px; }

.ws-request-actions .request-approve {
  border-color: var(--ws-ok);
  color: #fff;
  background: var(--ws-ok);
}

.ws-request-actions .request-reject,
.ws-request-actions .request-withdraw-own,
.ws-request-actions .request-remove {
  border-color: color-mix(in srgb, var(--ws-danger) 30%, transparent);
  color: var(--ws-danger);
  background: #fff;
}

.ws-request-actions .decision-signature {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ui-ink-muted, #5e7083);
  font-size: 13px;
}

.ws-request-actions .decision-signature .lucide { width: 15px; height: 15px; }

.ws-request .request-comparison {
  grid-column: 1 / -1;
  margin: 0;
}

/* --- Notifications ------------------------------------------------------- */
.ws-notification {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0 14px 0 0;
}

.ws-notification-open {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 0 12px 20px;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ws-notification:hover { background: var(--ui-surface-soft, #f6fafe); }
.ws-notification.unread .ws-cell-main strong { color: var(--ui-ink, #0b1f36); }
.ws-notification.read .ws-cell-main strong { font-weight: 600; color: var(--ui-ink-soft, #3d5469); }

.ws-unread-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ui-accent, #0a84e0);
}

.ws-settings {
  display: grid;
}

.ws-setting {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--ui-line, #dce8f2) 80%, transparent);
}

.ws-setting:last-child { border-bottom: 0; }

.ws-setting-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--ws-info);
  background: var(--ws-info-bg);
}

.ws-setting-icon .lucide { width: 16px; height: 16px; }
.ws-setting strong { display: block; color: var(--ui-ink, #0b1f36); font-size: 14.5px; }
.ws-setting small { display: block; color: var(--ui-ink-muted, #5e7083); font-size: 13px; line-height: 1.4; }

/* --- Access -------------------------------------------------------------- */
.ws-table-head {
  padding: 10px 20px;
  border-bottom: 1px solid var(--ui-line, #dce8f2);
  color: var(--ui-ink-muted, #5e7083);
  font-size: 12.5px;
  font-weight: 700;
}

.ws-access-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) minmax(140px, 0.9fr) minmax(130px, 0.8fr) minmax(100px, 0.6fr) 48px;
  align-items: center;
  gap: 14px;
}

.ws-access-grid[hidden] { display: none; }

.ws-access-grid.blocked .ws-person {
  opacity: 0.6;
}

.ws-person {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.ws-person .access-avatar {
  width: 40px;
  height: 40px;
  font-size: 13px;
}

.ws-person .access-avatar > i { display: none; }

.ws-access-grid select {
  min-height: 36px;
  width: 100%;
  max-width: 180px;
  padding: 0 10px;
  border: 1px solid var(--ui-line, #dce8f2);
  border-radius: 9px;
  color: var(--ui-ink, #0b1f36);
  background: #fff;
  font: inherit;
  font-size: 14px;
}

.ws-role-locked {
  color: var(--ui-ink, #0b1f36);
  font-size: 14px;
  font-weight: 600;
}

/* --- History ------------------------------------------------------------- */
.ws-integrity {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--ui-line, #dce8f2);
  color: var(--ws-ok);
  background: var(--ws-ok-bg);
  font-size: 13.5px;
  line-height: 1.45;
}

.ws-integrity.danger { color: var(--ws-danger); background: var(--ws-danger-bg); }
.ws-integrity .lucide { flex: none; width: 16px; height: 16px; margin-top: 1px; }

.ws-list-caption {
  margin: 0;
  padding: 12px 20px 0;
  color: var(--ui-ink-soft, #3d5469);
  font-size: 13.5px;
}

.ws-day-label {
  margin: 0;
  padding: 14px 20px 6px;
  color: var(--ui-ink-soft, #3d5469);
  font-size: 13px;
  font-weight: 800;
  text-transform: capitalize;
}

.ws-audit-row {
  grid-template-columns: 50px 34px minmax(0, 1fr) auto;
}

.ws-audit-row .ws-cell-main strong {
  white-space: normal;
  font-weight: 600;
}

.ws-audit-details {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
  padding: 4px 20px 14px 116px;
  border-bottom: 1px solid color-mix(in srgb, var(--ui-line, #dce8f2) 80%, transparent);
}

.ws-audit.expanded .ws-audit-details { display: grid; }
.ws-audit.expanded .ws-audit-row { border-bottom: 0; background: var(--ui-surface-soft, #f6fafe); }
.ws-audit-details dt { color: var(--ui-ink-muted, #5e7083); font-size: 12.5px; }
.ws-audit-details dd { margin: 0; color: var(--ui-ink, #0b1f36); font-size: 13.5px; overflow-wrap: anywhere; }
.ws-mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }

/* --- Narrow screens ------------------------------------------------------ */
@media (max-width: 1180px) {
  .ws-columns { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .ws-table-head { display: none; }

  .ws-access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
  }

  .ws-access-grid .ws-person { grid-column: 1 / -1; }
  .ws-access-grid .ws-actions { grid-column: 1 / -1; justify-content: flex-start; }

  .ws-access-grid .ws-cell::before {
    content: attr(data-label);
    color: var(--ui-ink-muted, #5e7083);
    font-size: 12.5px;
    font-weight: 700;
  }

  .ws-visit {
    grid-template-columns: 50px minmax(0, 1fr) auto;
  }

  .ws-visit .ws-cell { grid-column: 2 / 3; }
  .ws-visit .ws-badge { grid-column: 3; grid-row: 1; }
  .ws-visit .ws-actions { grid-column: 1 / -1; justify-content: flex-start; }

  .ws-audit-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 20px;
  }
}

@media (max-width: 640px) {
  .ws-view { gap: 14px; }
  .ws-head { padding: 16px; }
  .ws-head-actions { width: 100%; }
  .ws-head-actions > .btn { flex: 1 1 auto; justify-content: center; }
  .ws-toolbar { padding: 10px 16px; }
  .ws-search { flex-basis: 100%; }
  .ws-select { flex: 1 1 auto; }
  .ws-select select { width: 100%; max-width: none; }
  .ws-result { margin-left: 0; }
  .ws-row, .ws-request { padding-right: 16px; padding-left: 16px; }
  .ws-room-grid { grid-template-columns: 1fr; padding: 14px 16px 16px; }
  .ws-request { grid-template-columns: 1fr; }
  .ws-request-side { justify-items: start; }
  .ws-request-actions, .ws-request-actions > div { justify-content: flex-start; }
  .ws-audit-row { grid-template-columns: 44px minmax(0, 1fr); }
  .ws-audit-row .ws-note-icon, .ws-audit-row .ws-badge { display: none; }
  .ws-notification-open { padding-left: 16px; }
  .ws-day-label, .ws-list-caption { padding-right: 16px; padding-left: 16px; }
}

/* Readable controls inside the simplified tabs. */
.ws-view .room-status-segment button {
  min-height: 34px;
  gap: 5px;
  font-size: 13px;
}

.ws-view .room-status-segment .lucide {
  width: 14px;
  height: 14px;
}

.ws-view .access-switch span {
  font-size: 13px;
}

.ws-visit {
  grid-template-columns: 54px minmax(0, 1fr) auto auto;
}

@media (max-width: 900px) {
  .ws-visit {
    grid-template-columns: 50px minmax(0, 1fr) auto;
  }

  .ws-visit .ws-actions {
    grid-column: 2 / -1;
  }
}

/* On phones every filter option stays visible: the group wraps instead of scrolling. */
@media (max-width: 640px) {
  .ws-segment {
    flex-wrap: wrap;
    overflow: visible;
  }
}

/* WCAG 2.2 AA: the active filter uses a darker blue so white text reaches 5:1;
   finished visits and blocked accounts are shown with muted text, not transparency. */
.ws-view {
  --ws-accent: #0870bf;
}

.ws-segment button.active {
  background: var(--ws-accent);
}

.ws-segment button.active b,
.ws-day-today.active,
.ws-more {
  color: var(--ws-accent);
}

.ws-visit.left,
.ws-visit.cancelled,
.ws-access-grid.blocked .ws-person {
  opacity: 1;
}

.ws-visit.left .ws-cell-main strong,
.ws-visit.cancelled .ws-cell-main strong,
.ws-access-grid.blocked .ws-person strong {
  color: var(--ui-ink-muted, #5e7083);
}

/* --- Messages above the password screen (2.3.2) --------------------------- */
/* The password screen covers everything (z-index 5000); messages must stay readable above it. */
.toast-host {
  z-index: 5100;
}

.password-setup-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 138, 138, 0.55);
  border-radius: 8px;
  color: #ffd6d6;
  background: rgba(150, 30, 30, 0.35);
  font-size: 0.92rem;
  line-height: 1.4;
}

.password-setup-error[hidden] {
  display: none;
}
