:root {
  --bg: #eef3f6;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-soft: rgba(248, 251, 252, 0.95);
  --text: #12202c;
  --muted: #61717c;
  --line: rgba(19, 33, 43, 0.08);
  --line-strong: rgba(19, 33, 43, 0.14);
  --brand: #0f766e;
  --brand-dark: #115e59;
  --accent: #ea580c;
  --accent-soft: #fff1e8;
  --shadow: 0 26px 90px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.06);
  --radius: 26px;
  --calendar-hour-height: 84px;
}

html[data-theme="dark"] {
  --bg: #09131c;
  --surface: rgba(13, 23, 33, 0.9);
  --surface-strong: #101c28;
  --surface-soft: rgba(16, 28, 40, 0.96);
  --text: #edf5fb;
  --muted: #9fb2c3;
  --line: rgba(173, 205, 230, 0.12);
  --line-strong: rgba(173, 205, 230, 0.22);
  --brand: #1fa39a;
  --brand-dark: #147b74;
  --accent: #ff8c42;
  --accent-soft: rgba(255, 140, 66, 0.16);
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 16px 36px rgba(0, 0, 0, 0.26);
}

html {
  font-size: 16px;
  min-height: 100%;
  background-color: var(--bg);
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 26%),
    radial-gradient(circle at top right, rgba(234, 88, 12, 0.12), transparent 22%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
  font-family: "Segoe UI", "Inter", "Arial", sans-serif;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(31, 163, 154, 0.2), transparent 26%),
    radial-gradient(circle at top right, rgba(255, 140, 66, 0.16), transparent 22%),
    linear-gradient(180deg, #0b1621 0%, var(--bg) 100%);
}

.shell-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(19, 33, 43, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 33, 43, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 90%);
}

html[data-theme="dark"] .shell-bg {
  background-image:
    linear-gradient(rgba(182, 216, 237, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182, 216, 237, 0.04) 1px, transparent 1px);
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  max-width: 1180px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(248, 251, 252, 0.78);
  border-bottom: 1px solid rgba(19, 33, 43, 0.06);
}

html[data-theme="dark"] .topbar {
  background: rgba(8, 15, 23, 0.78);
  border-bottom-color: rgba(173, 205, 230, 0.1);
}

html[data-theme="dark"] .topbar-links {
  border-top-color: rgba(173, 205, 230, 0.08);
}

.navbar {
  padding: 1rem 0 1.05rem;
}

.topbar-stack {
  display: grid;
  width: 100%;
  gap: 0.75rem;
}

.topbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.topbar-links {
  width: 100%;
  border-top: 1px solid rgba(18, 32, 44, 0.06);
  padding-top: 0.2rem;
}

.topbar-links .navbar-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.7rem;
}

.topbar-links .nav-link {
  position: relative;
  padding: 0.45rem 0.1rem;
  white-space: nowrap;
}

.topbar-links .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.topbar-links .nav-link:hover::after,
.topbar-links .nav-link:focus-visible::after {
  opacity: 0.75;
  transform: scaleX(1);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-logo {
  max-height: 52px;
  max-width: 220px;
  width: auto;
  object-fit: contain;
  display: block;
}

.color-swatch {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 0 1px rgba(18, 32, 44, 0.14);
}

.brand-dot {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 0 0 8px rgba(14, 116, 144, 0.12);
}

.nav-link {
  color: var(--muted);
  font-weight: 600;
}

.nav-link:hover {
  color: var(--text);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-control-cluster {
  display: inline-flex;
  align-items: stretch;
  gap: 0.7rem;
}

.topbar-control-card {
  display: grid;
  gap: 0.38rem;
  padding: 0.2rem 0.22rem 0.16rem;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 251, 0.9));
  border: 1px solid rgba(18, 32, 44, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 30px rgba(15, 23, 42, 0.08);
}

.topbar-control-label {
  padding: 0 0.7rem;
  color: rgba(83, 101, 122, 0.82);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  padding: 0.22rem;
  border-radius: 999px;
  background: rgba(233, 240, 244, 0.95);
  border: 1px solid rgba(18, 32, 44, 0.06);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  padding: 0.22rem;
  border-radius: 999px;
  background: rgba(233, 240, 244, 0.95);
  border: 1px solid rgba(18, 32, 44, 0.06);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.theme-switch-button {
  min-width: 62px;
  padding: 0.52rem 0.84rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(78, 95, 114, 0.92);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.language-switch-button {
  min-width: 44px;
  padding: 0.52rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(78, 95, 114, 0.92);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.theme-switch-button:hover,
.language-switch-button:hover,
.theme-switch-button:focus-visible,
.language-switch-button:focus-visible {
  color: var(--text);
  outline: none;
}

.theme-switch-button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #39b8b0, #15696d);
  box-shadow:
    0 14px 26px rgba(21, 105, 109, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.language-switch-button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #39b8b0, #15696d);
  box-shadow:
    0 14px 26px rgba(21, 105, 109, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.theme-switch-button.is-active:hover,
.language-switch-button.is-active:hover {
  color: #fff;
}

html[data-theme="dark"] .topbar-control-card {
  background:
    linear-gradient(180deg, rgba(16, 27, 39, 0.96), rgba(10, 19, 30, 0.94));
  border-color: rgba(118, 160, 197, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 16px 34px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .topbar-control-label {
  color: rgba(138, 176, 206, 0.82);
}

html[data-theme="dark"] .theme-switch {
  background: rgba(8, 16, 25, 0.92);
  border-color: rgba(173, 205, 230, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .language-switch {
  background: rgba(8, 16, 25, 0.92);
  border-color: rgba(173, 205, 230, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .theme-switch-button,
html[data-theme="dark"] .language-switch-button {
  color: rgba(177, 200, 219, 0.84);
}

html[data-theme="dark"] .theme-switch-button:hover,
html[data-theme="dark"] .language-switch-button:hover,
html[data-theme="dark"] .theme-switch-button:focus-visible,
html[data-theme="dark"] .language-switch-button:focus-visible {
  color: #f5fbff;
}

html[data-theme="dark"] .theme-switch-button.is-active {
  box-shadow:
    0 16px 30px rgba(12, 126, 129, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

html[data-theme="dark"] .language-switch-button.is-active {
  box-shadow:
    0 16px 30px rgba(12, 126, 129, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.user-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 82px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.08);
  color: var(--brand-dark);
  font-size: 0.92rem;
  font-weight: 600;
}

.user-control-card {
  min-width: 176px;
}

html[data-theme="dark"] .user-badge {
  background: rgba(31, 163, 154, 0.14);
  color: #d9f8f2;
}

.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 42px;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(18, 32, 44, 0.08);
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.08);
  color: var(--brand-dark);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.user-menu-trigger:hover,
.user-menu-trigger:focus-visible,
.user-control-card.show .user-menu-trigger {
  background: rgba(14, 116, 144, 0.13);
  border-color: rgba(15, 118, 110, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 10px 24px rgba(15, 23, 42, 0.08);
  outline: none;
}

.user-menu-trigger::after {
  display: none;
}

.user-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
}

.user-menu-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.user-menu-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  opacity: 0.72;
  flex-shrink: 0;
}

.user-menu-dropdown {
  min-width: 220px;
  margin-top: 0.72rem;
  padding: 0.45rem;
  border: 1px solid rgba(18, 32, 44, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.16);
}

.user-menu-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  min-height: 42px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  transition: background 180ms ease, color 180ms ease;
}

.user-menu-dropdown .dropdown-item:hover,
.user-menu-dropdown .dropdown-item:focus {
  background: rgba(15, 118, 110, 0.1);
  color: var(--brand-dark);
}

.user-menu-dropdown .dropdown-divider {
  margin: 0.4rem 0;
  border-top-color: rgba(18, 32, 44, 0.08);
}

.user-menu-form {
  margin: 0;
}

.user-menu-logout {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}

.user-menu-logout:hover,
.user-menu-logout:focus {
  color: #b91c1c !important;
  background: rgba(239, 68, 68, 0.08) !important;
}

html[data-theme="dark"] .user-menu-trigger {
  background: rgba(31, 163, 154, 0.14);
  border-color: rgba(118, 174, 219, 0.16);
  color: #d9f8f2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .user-menu-trigger:hover,
html[data-theme="dark"] .user-menu-trigger:focus-visible,
html[data-theme="dark"] .user-control-card.show .user-menu-trigger {
  background: rgba(31, 163, 154, 0.2);
  border-color: rgba(88, 197, 190, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 30px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .user-menu-dropdown {
  background: rgba(11, 20, 30, 0.98);
  border-color: rgba(118, 174, 219, 0.14);
  box-shadow: 0 28px 48px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .user-menu-dropdown .dropdown-item {
  color: #ecf5fb;
}

html[data-theme="dark"] .user-menu-dropdown .dropdown-item:hover,
html[data-theme="dark"] .user-menu-dropdown .dropdown-item:focus {
  background: rgba(31, 163, 154, 0.14);
  color: #ffffff;
}

html[data-theme="dark"] .user-menu-dropdown .dropdown-divider {
  border-top-color: rgba(173, 205, 230, 0.1);
}

html[data-theme="dark"] .user-menu-logout:hover,
html[data-theme="dark"] .user-menu-logout:focus {
  color: #fecaca !important;
  background: rgba(239, 68, 68, 0.12) !important;
}

.btn-brand {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  box-shadow: 0 18px 34px rgba(15, 118, 110, 0.24);
}

.btn-brand:hover,
.btn-brand:focus {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), #164e63);
}

.btn-light {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .btn-light {
  color: var(--text);
  background: rgba(16, 28, 40, 0.95);
  border-color: rgba(173, 205, 230, 0.16);
}

.btn-ghost {
  border-radius: 999px;
  background: rgba(18, 32, 44, 0.04);
  border: 1px solid rgba(18, 32, 44, 0.08);
}

html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .btn-outline-dark,
html[data-theme="dark"] .btn-toolbar-ghost {
  color: var(--text);
  background: rgba(14, 24, 36, 0.84);
  border-color: rgba(173, 205, 230, 0.14);
}

.hero-panel,
.panel-card,
.metric-card,
.auth-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  padding: 3rem;
  margin-top: 2rem;
}

.guest-hero,
.guest-overview-grid,
.guest-feature-grid {
  display: grid;
  gap: 1rem;
}

.guest-hero {
  grid-template-columns: 1.35fr 1fr;
  gap: 1.2rem;
  margin-top: 2rem;
}

.guest-hero-main,
.guest-hero-aside,
.guest-feature-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.guest-hero-main,
.guest-hero-aside {
  padding: 2.4rem;
}

.guest-hero-main {
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,249,250,0.92));
}

.guest-hero-main h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.guest-hero-note {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.12);
  color: var(--brand-dark);
}

.guest-hero-aside {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.guest-feature-card {
  padding: 1.5rem;
}

.guest-feature-card-primary {
  min-height: 220px;
  background:
    linear-gradient(160deg, rgba(15, 118, 110, 0.94), rgba(17, 94, 89, 0.92)),
    linear-gradient(180deg, rgba(255,255,255,0.12), transparent);
  color: #fff;
  border-color: rgba(15, 118, 110, 0.24);
  box-shadow: 0 22px 44px rgba(15, 118, 110, 0.24);
}

.guest-feature-card-primary .eyebrow,
.guest-feature-card-primary p {
  color: rgba(255, 255, 255, 0.82);
}

.guest-feature-card-primary h2 {
  margin: 0.3rem 0 0.7rem;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.guest-feature-card-primary p {
  margin: 0;
}

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

.guest-overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--brand-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.hero-panel h1 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.lead {
  max-width: 58ch;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-aside,
.dashboard-grid,
.content-grid,
.action-list {
  display: grid;
  gap: 1rem;
}

.hero-aside {
  align-content: center;
}

.dashboard-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.content-grid {
  grid-template-columns: 1.6fr 1fr;
  margin-top: 1.5rem;
}

.metric-card,
.panel-card,
.auth-card {
  padding: 1.5rem;
}

.panel-card::before,
.metric-card::before,
.hero-panel::before,
.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 24%);
  pointer-events: none;
}

.metric-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.metric-label,
.panel-header p,
.timeline-item p,
.empty-state,
.muted {
  color: var(--muted);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.panel-header h1,
.panel-header h2,
.timeline-item h3,
.room-card h2 {
  margin: 0;
}

.timeline {
  display: grid;
  gap: 0.85rem;
}

.timeline-item,
.action-tile,
.schedule-item,
.room-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid rgba(19, 33, 43, 0.05);
  box-shadow: var(--shadow-soft);
}

.action-tile,
.room-card {
  flex-direction: column;
}

.action-tile span {
  font-weight: 700;
}

.action-tile small {
  color: var(--muted);
}

.page-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin: 2rem 0 1.2rem;
}

.calendar-top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.view-mode-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(18, 32, 44, 0.07);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.presentation-view-switch {
    display: none;
}

.presentation-kiosk-badge {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 249, 0.96));
    border: 1px solid rgba(18, 32, 44, 0.10);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.presentation-kiosk-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
    flex: 0 0 auto;
}

.view-mode-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.view-mode-chip:hover,
.view-mode-chip:focus {
    color: var(--text);
    text-decoration: none;
}

.view-mode-chip.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.22);
}

.page-header h1 {
  margin: 0;
  letter-spacing: -0.04em;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.filter-bar,
.form-grid,
.room-grid,
.reservation-list,
.history-group-list {
  display: grid;
  gap: 1rem;
}

.filter-bar {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
}

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

.form-grid .full-width {
  grid-column: 1 / -1;
}

.narrow-card,
.auth-card {
  max-width: 720px;
}

.auth-card {
  margin: 2rem auto 0;
}

.room-grid,
.reservation-list {
  margin-top: 1rem;
}

.room-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-active {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}

.status-cancelled {
  background: rgba(239, 68, 68, 0.12);
  color: #991b1b;
}

.status-completed {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.status-in-progress {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
}

.footer {
  padding: 2rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
}

.field-validation-error,
.validation-summary-errors {
  color: #b91c1c;
}

.validation-summary-errors ul {
  margin-bottom: 0;
}

.btn,
.form-control,
.form-select {
  border-radius: 14px;
}

.form-control,
.form-select {
  color: var(--text);
  border-width: 2px;
  border-color: rgba(18, 32, 44, 0.24);
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 1px 2px rgba(15, 23, 42, 0.04);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(15, 118, 110, 0.72);
  background: #ffffff;
  box-shadow:
    0 0 0 0.24rem rgba(15, 118, 110, 0.18),
    0 10px 22px rgba(15, 23, 42, 0.06);
}

.form-icon-field {
  position: relative;
}

.form-icon-field .form-control {
  padding-right: 3rem;
}

.form-field-icon {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(44, 63, 84, 0.86);
  font-size: 1rem;
  line-height: 1;
}

.reservation-datetime-display {
  cursor: pointer;
}

.reservation-datetime-picker {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.reservation-datetime-button {
  position: absolute;
  top: 50%;
  right: 0.7rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(44, 63, 84, 0.9);
  cursor: pointer;
  z-index: 2;
}

.reservation-datetime-button:hover,
.reservation-datetime-button:focus-visible {
  background: rgba(15, 118, 110, 0.1);
  outline: none;
}

.reservation-native-date,
.reservation-native-datetime {
  padding-right: 4rem;
}

input[type="date"],
input[type="datetime-local"] {
  color-scheme: light;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  opacity: 0.01;
  cursor: pointer;
  position: absolute;
  right: 0.9rem;
  width: 2.4rem;
  height: 2.4rem;
}

.reservation-native-picker-button {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(18, 32, 44, 0.14);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.95);
  color: rgba(44, 63, 84, 0.96);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  z-index: 2;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.reservation-native-picker-button:hover,
.reservation-native-picker-button:focus-visible {
  background: rgba(226, 232, 240, 0.98);
  border-color: rgba(15, 118, 110, 0.42);
  color: rgba(15, 118, 110, 0.96);
  outline: none;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.3fr);
  gap: 1.5rem;
}

.support-info-card,
.support-form-card {
  min-height: 100%;
}

.support-steps {
  display: grid;
  gap: 1rem;
}

.support-step {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(18, 32, 44, 0.06);
}

.support-step strong,
.support-inbox-topline h3 {
  display: block;
  margin-bottom: 0.35rem;
}

.support-step p,
.support-note span {
  color: var(--muted);
}

.support-note {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.09), rgba(6, 95, 70, 0.05));
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.compact-note {
  padding: 0.85rem 0.95rem;
}

.support-form {
  display: grid;
  gap: 0.5rem;
}

.support-status-form {
  margin-top: 1.25rem;
}

.support-status-row {
  display: flex;
  align-items: end;
  gap: 1rem;
}

.support-status-row > div:first-child {
  flex: 1 1 auto;
}

.support-textarea {
  min-height: 220px;
  resize: vertical;
}

.support-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.support-inbox-list {
  display: grid;
  gap: 1rem;
}

.support-inbox-item {
  padding: 1.15rem 1.2rem;
  border-radius: 20px;
  border: 1px solid rgba(18, 32, 44, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.support-inbox-meta,
.support-inbox-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.support-inbox-actions,
.support-thread-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.support-inbox-topline {
  margin: 0.75rem 0 0.4rem;
}

.support-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.custom-file-picker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 48px;
  padding: 0.45rem 0.6rem;
  border-radius: 14px;
  border: 1px solid rgba(18, 32, 44, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.custom-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.custom-file-button {
  white-space: nowrap;
}

.custom-file-name {
  color: var(--muted);
  font-weight: 600;
}

.support-thread {
  display: grid;
  gap: 1rem;
}

.support-thread-item,
.support-detail-item {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 32, 44, 0.07);
}

.support-thread-item p,
.support-detail-item span {
  color: var(--muted);
}

.support-thread-item-internal {
  border-style: dashed;
}

.support-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.support-detail-item strong {
  display: block;
  margin-top: 0.3rem;
}

.btn-outline-dark {
  border-radius: 999px;
}

.calendar-hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.calendar-date-card,
.summary-chip {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(242, 248, 248, 0.92));
  border: 1px solid rgba(18, 32, 44, 0.07);
  box-shadow: var(--shadow-soft);
}

.calendar-date-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 1.5rem;
}

.calendar-date-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--brand), #0b5d5e);
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  box-shadow: 0 18px 34px rgba(15, 118, 110, 0.28);
}

.calendar-date-card h2,
.calendar-date-card p {
  margin: 0;
}

.calendar-date-card h2 {
  text-transform: capitalize;
}

.calendar-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.summary-chip {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 116px;
  padding: 1.25rem 1.35rem;
}

.summary-chip strong {
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.summary-chip span {
  color: var(--muted);
}

.summary-chip-warning {
  border: 1px solid #e11d48;
}

.summary-chip-warning strong {
  color: #991b1b;
}

html[data-theme="dark"] .summary-chip-warning strong {
  color: #fca5a5;
}

html[data-theme="dark"] .summary-chip-warning {
  border-color: #7f1d1d;
}

.calendar-shell {
  padding: 1.2rem;
}

.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1.2rem;
  padding: 1rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(244,248,249,0.96)),
    linear-gradient(90deg, rgba(15,118,110,0.05), rgba(234,88,12,0.03));
  border: 1px solid rgba(18, 32, 44, 0.06);
  box-shadow: var(--shadow-soft);
}

.calendar-toolbar-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 280px));
  gap: 1rem;
}

.calendar-toolbar-actions {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    justify-content: flex-start;
}

.calendar-toolbar-nav-row,
.calendar-toolbar-presenter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.calendar-toolbar-nav-row {
  align-items: center;
  justify-content: flex-end;
}

.calendar-toolbar-presenter-row {
  justify-content: flex-end;
}

.calendar-toolbar-presenter-date {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-right: auto;
    width: min(320px, 100%);
    min-width: 320px;
    min-height: 132px;
    padding: 1.15rem 1rem 1.1rem;
    border-radius: 20px;
    border: 1px solid rgba(18, 32, 44, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(242, 247, 249, 0.96));
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    grid-template-columns: 1fr;
    justify-content: flex-start;
    box-sizing: border-box;
}

.calendar-toolbar-presenter-kicker {
    color: var(--brand-dark);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.1;
}

.calendar-toolbar-presenter-date strong {
    display: block;
    font-size: 1.65rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

html.calendar-presentation-mode .btn-toolbar-ghost,
body.calendar-presentation-mode .btn-toolbar-ghost,
html.calendar-presentation-mode .btn-toolbar-primary,
body.calendar-presentation-mode .btn-toolbar-primary {
    min-height: 36px;
    padding: 0.55rem 0.9rem;
    border-radius: 14px;
    font-size: 0.92rem;
}

html.calendar-presentation-mode .calendar-toolbar,
body.calendar-presentation-mode .calendar-toolbar {
    display: flex !important;
    justify-content: space-between !important;
}

html.calendar-presentation-mode .calendar-toolbar-actions,
body.calendar-presentation-mode .calendar-toolbar-actions {
    width: auto !important;
    display: flex !important;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
    justify-content: flex-start;
    flex: 0 0 auto;
    margin-left: 1rem;
}

html.calendar-presentation-mode .calendar-toolbar-main,
body.calendar-presentation-mode .calendar-toolbar-main {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(240px, 280px)) !important;
    align-items: start;
    flex: 0 0 auto;
}

html.calendar-presentation-mode .calendar-toolbar-nav-row,
body.calendar-presentation-mode .calendar-toolbar-nav-row {
    width: auto;
    align-items: flex-start;
    justify-content: flex-end;
}

html.calendar-presentation-mode .calendar-toolbar-presenter-date,
body.calendar-presentation-mode .calendar-toolbar-presenter-date {
    display: none !important;
}

html.calendar-presentation-mode,
body.calendar-presentation-mode {
  overflow: hidden;
}

html.calendar-presentation-mode .topbar,
body.calendar-presentation-mode .topbar,
html.calendar-presentation-mode .page-header,
body.calendar-presentation-mode .page-header,
html.calendar-presentation-mode .calendar-hero,
body.calendar-presentation-mode .calendar-hero,
html.calendar-presentation-mode .footer,
body.calendar-presentation-mode .footer,
html.calendar-presentation-mode .alert,
body.calendar-presentation-mode .alert {
  display: none !important;
}

html.calendar-presentation-mode .container.app-shell,
body.calendar-presentation-mode .container.app-shell {
  max-width: 100vw !important;
  width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
}

html.calendar-presentation-mode main,
body.calendar-presentation-mode main {
  padding: 0 !important;
}

html.calendar-presentation-mode .calendar-shell,
body.calendar-presentation-mode .calendar-shell {
    margin: 0 !important;
    padding: 8.75rem 0.85rem 0.85rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    position: relative;
}

html.calendar-presentation-mode .calendar-shell::before,
body.calendar-presentation-mode .calendar-shell::before {
  display: none !important;
}

html.calendar-presentation-mode .calendar-toolbar,
body.calendar-presentation-mode .calendar-toolbar {
    position: absolute !important;
    top: 0.85rem !important;
    left: 0.85rem !important;
    right: 0.85rem !important;
    margin: 0 !important;
    border-radius: 20px !important;
    z-index: 40 !important;
    align-items: flex-start !important;
    min-height: 7rem !important;
}

html.calendar-presentation-mode .calendar-toolbar-presenter-row,
body.calendar-presentation-mode .calendar-toolbar-presenter-row {
    width: auto;
    margin-top: 0;
    align-self: flex-end;
    justify-content: flex-end;
}

html.calendar-presentation-mode .presentation-view-switch,
body.calendar-presentation-mode .presentation-view-switch {
    display: inline-flex;
}

html.calendar-presentation-mode .presentation-kiosk-badge,
body.calendar-presentation-mode .presentation-kiosk-badge {
    display: inline-flex;
}

html.calendar-presentation-mode .calendar-filter-group,
body.calendar-presentation-mode .calendar-filter-group {
    display: inline-flex;
    align-items: stretch;
    gap: 0.85rem;
}

html.calendar-presentation-mode .calendar-filter-group .calendar-filter-field,
body.calendar-presentation-mode .calendar-filter-group .calendar-filter-field {
    min-width: 240px;
    margin: 0;
}

html.calendar-presentation-mode .calendar-filter-group .presentation-kiosk-badge,
body.calendar-presentation-mode .calendar-filter-group .presentation-kiosk-badge {
    align-self: center;
    justify-self: start;
    margin: 0;
}

html.calendar-presentation-mode .btn-toolbar-live,
body.calendar-presentation-mode .btn-toolbar-live {
    min-width: 320px;
    min-height: 52px;
    justify-content: center;
    border-radius: 16px;
}

html.calendar-presentation-mode .calendar-frame,
body.calendar-presentation-mode .calendar-frame {
    max-height: calc(100vh - 150px) !important;
    border-radius: 20px !important;
    padding-top: 1.2rem;
    box-sizing: border-box;
    --calendar-sticky-top: 1.2rem;
}

html.calendar-presentation-mode .calendar-room-head,
body.calendar-presentation-mode .calendar-room-head {
    min-height: 92px;
    padding: 1rem 1rem 0.85rem;
}

html.calendar-presentation-mode .calendar-room-head strong,
html.calendar-presentation-mode .calendar-room-head span,
html.calendar-presentation-mode .calendar-room-head small,
body.calendar-presentation-mode .calendar-room-head strong,
body.calendar-presentation-mode .calendar-room-head span,
body.calendar-presentation-mode .calendar-room-head small {
    display: block;
    min-width: 0;
    opacity: 1;
    visibility: visible;
}

html.calendar-presentation-mode .calendar-room-head strong,
body.calendar-presentation-mode .calendar-room-head strong {
    font-size: 1.04rem;
    line-height: 1.2;
}

html.calendar-presentation-mode .calendar-room-head span,
body.calendar-presentation-mode .calendar-room-head span {
    font-size: 0.95rem;
}

html.calendar-presentation-mode .calendar-room-head small,
body.calendar-presentation-mode .calendar-room-head small {
    font-size: 0.9rem;
}

.calendar-filter-field {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 1rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(18, 32, 44, 0.06);
}

.calendar-filter-group {
  display: block;
}

.calendar-filter-kicker {
  color: var(--brand-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-filter-field .form-label {
  margin-bottom: 0;
  font-weight: 700;
  color: var(--text);
}

.calendar-filter-input {
  min-height: 48px;
  border-radius: 16px;
  background: #fff;
  border-color: rgba(18, 32, 44, 0.10);
  font-weight: 600;
}

.btn-toolbar-primary,
.btn-toolbar-ghost {
  min-height: 42px;
  padding: 0.62rem 0.95rem;
  border-radius: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.94rem;
}

.btn-toolbar-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border: 1px solid rgba(17, 94, 89, 0.35);
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.22);
}

.btn-toolbar-primary:hover,
.btn-toolbar-primary:focus {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), #0f4f4d);
}

.btn-toolbar-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(18, 32, 44, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.btn-toolbar-ghost:hover,
.btn-toolbar-ghost:focus {
  color: var(--text);
  border-color: rgba(18, 32, 44, 0.16);
  background: #fff;
}

.btn-toolbar-live {
  min-height: 42px;
  padding: 0.62rem 0.95rem;
  border-radius: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.94rem;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 247, 249, 0.96));
  border: 1px solid rgba(18, 32, 44, 0.10);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.btn-toolbar-live:hover,
.btn-toolbar-live:focus {
  color: var(--text);
  border-color: rgba(18, 32, 44, 0.18);
  background: #fff;
}

.btn-toolbar-live.is-active {
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #115e59);
  border-color: rgba(17, 94, 89, 0.46);
  box-shadow: 0 16px 30px rgba(15, 118, 110, 0.24);
}

.calendar-presenter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  font-size: 0.95rem;
  line-height: 1;
}

.toolbar-arrow {
  font-size: 1rem;
  line-height: 1;
}

.calendar-frame {
  --calendar-sticky-top: 0px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  overscroll-behavior-y: contain;
  width: 100%;
  max-height: min(72vh, 980px);
  border-radius: 22px;
  border: 1px solid rgba(18, 32, 44, 0.07);
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(246,249,250,0.96));
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 118, 110, 0.42) rgba(18, 32, 44, 0.08);
}

.calendar-grid {
  display: grid;
  width: 100%;
  min-width: 0;
}

.week-grid {
  width: 100%;
  min-width: 0;
}

.calendar-corner,
.calendar-room-head {
  position: sticky;
  top: var(--calendar-sticky-top);
  z-index: 12;
  min-height: 92px;
  padding: 1rem 1rem 0.85rem;
  background: rgba(248, 251, 252, 0.96);
  border-bottom: 1px solid rgba(18, 32, 44, 0.07);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.calendar-corner {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
  z-index: 14;
}

.calendar-room-head {
  border-left: 1px solid rgba(18, 32, 44, 0.06);
  min-width: 0;
}

.week-day-head {
  min-height: 96px;
}

.week-day-today {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.12), rgba(248, 251, 252, 0.96));
}

.calendar-room-head strong,
.calendar-room-head span,
.calendar-room-head small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-room-head span,
.calendar-room-head small {
  color: var(--muted);
}

.calendar-time-column,
.calendar-room-column {
  position: relative;
  min-width: 0;
}

.calendar-room-head strong {
  font-size: 1.04rem;
  line-height: 1.2;
}

.calendar-room-head span {
  font-size: 0.95rem;
}

.calendar-room-head small {
  font-size: 0.9rem;
}

.calendar-time-column {
  background: linear-gradient(180deg, rgba(255,255,255,0.68), rgba(248,251,252,0.92));
}

.time-slot-label {
  position: absolute;
  left: 0;
  width: 100%;
  padding-top: 0.1rem;
  transform: translateY(-0.6rem);
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.calendar-room-column {
  border-left: 1px solid rgba(18, 32, 44, 0.06);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.66), rgba(247,250,251,0.96)),
    linear-gradient(90deg, rgba(15, 118, 110, 0.035), transparent 50%, rgba(234, 88, 12, 0.03));
}

.calendar-frame::-webkit-scrollbar {
  width: 12px;
}

.calendar-frame::-webkit-scrollbar-track {
  background: rgba(18, 32, 44, 0.06);
  border-radius: 999px;
}

.calendar-frame::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.62), rgba(17, 94, 89, 0.72));
  border-radius: 999px;
  border: 2px solid rgba(248, 251, 252, 0.85);
}

.calendar-frame::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.78), rgba(17, 94, 89, 0.88));
}

.week-room-column {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(247,250,251,0.98)),
    linear-gradient(90deg, rgba(15, 118, 110, 0.02), transparent 50%, rgba(234, 88, 12, 0.02));
}

.week-day-column-today {
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(247,250,251,0.98)),
    linear-gradient(90deg, rgba(15, 118, 110, 0.02), transparent 50%, rgba(234, 88, 12, 0.02));
}

.calendar-hour-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(18, 32, 44, 0.08);
}

.calendar-event-card {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  min-height: 72px;
  padding: 0.9rem 1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--event-color, var(--brand)) 92%, white 8%), color-mix(in srgb, var(--event-color, var(--brand)) 76%, black 24%));
  color: #fff;
  box-shadow: 0 18px 32px color-mix(in srgb, var(--event-color, var(--brand)) 28%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.calendar-event-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 30%);
  pointer-events: none;
}

.calendar-event-card h3,
.calendar-event-card p {
  margin: 0;
}

.calendar-event-card h3 {
  position: relative;
  z-index: 1;
  margin: 0.2rem 0 0.35rem;
  font-size: 1rem;
}

.calendar-event-time,
.calendar-event-organizer {
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  opacity: 0.92;
}

.calendar-event-card p {
  position: relative;
  z-index: 1;
  margin-top: 0.45rem;
  font-size: 0.84rem;
  opacity: 0.92;
}

.calendar-event-completed {
  filter: saturate(0.8);
  opacity: 0.88;
}

.calendar-event-status {
  display: inline-flex;
  margin-top: 0.55rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.week-event-card {
  left: 0.55rem;
  right: 0.55rem;
  padding: 0.75rem 0.8rem;
}

.week-event-card h3 {
  font-size: 0.92rem;
}

.calendar-empty-room,
.calendar-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.calendar-empty-room {
  position: absolute;
  inset: 0;
  font-weight: 600;
}

.calendar-empty-state {
  min-height: 200px;
  flex-direction: column;
  gap: 0.4rem;
}

.history-hero {
  margin-bottom: 1rem;
}

.history-filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(2, minmax(180px, 1fr)) auto;
  gap: 1rem;
  align-items: end;
}

.history-toolbar {
  margin-bottom: 0;
}

.history-toolbar-main {
  display: grid;
  gap: 1rem;
}

.history-toolbar-main-admin {
  grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(200px, 1fr));
}

.history-toolbar-main-user {
  grid-template-columns: repeat(3, minmax(200px, 1fr));
}

.user-filter-bar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 1rem;
  align-items: end;
}

.room-visibility-bar {
  display: flex;
  justify-content: flex-end;
}

.user-filter-actions {
  align-items: center;
}

.user-visibility-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.65rem 0.95rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(18, 32, 44, 0.08);
}

.user-visibility-toggle .form-check-input {
  margin: 0;
}

.user-visibility-toggle .form-check-label {
  color: var(--text);
  font-weight: 600;
}

.admin-toolbar {
  margin-bottom: 0;
}

.admin-toolbar-main {
  grid-template-columns: minmax(280px, 1fr) minmax(220px, 250px);
}

.admin-toolbar-main-single {
  grid-template-columns: minmax(220px, 250px);
}

.calendar-visibility-card {
  cursor: pointer;
}

.calendar-visibility-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.7rem 0.9rem;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(18, 32, 44, 0.08);
  font-weight: 600;
  color: var(--text);
}

.calendar-visibility-toggle .form-check-input {
  margin: 0;
}

.calendar-visibility-toggle .form-check-label {
  margin: 0;
  color: inherit;
  font-weight: inherit;
}

.user-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.branding-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 1rem;
}

.branding-preview-card {
  min-height: 100%;
}

.branding-preview-shell {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(18, 32, 44, 0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(244,248,249,0.98));
}

.branding-preview-topbar {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(18, 32, 44, 0.06);
  background: rgba(248, 251, 252, 0.92);
}

.branding-preview-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-preview {
  max-height: 40px;
  max-width: 160px;
}

.branding-preview-body {
  padding: 1.2rem;
}

.branding-preview-card {
  padding: 1.4rem;
  border-radius: 20px;
  background: var(--surface-strong);
  border: 1px solid rgba(18, 32, 44, 0.05);
  box-shadow: var(--shadow-soft);
}

.branding-preview-card h3,
.branding-preview-card p {
  margin: 0;
}

.branding-preview-card p {
  margin-top: 0.55rem;
  color: var(--muted);
}

.favicon-preview-row {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.favicon-preview-image {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(18, 32, 44, 0.08);
  background: #fff;
  padding: 0.25rem;
}

.user-admin-card {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(18, 32, 44, 0.07);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.user-admin-meta {
  display: grid;
  gap: 0.4rem;
}

.user-color-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.color-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.color-option-card {
  position: relative;
  display: grid;
  gap: 0.38rem;
  width: 100%;
  padding: 0.7rem;
  border-radius: 16px;
  border: 1px solid rgba(18, 32, 44, 0.06);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-align: left;
}

.color-option-card:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 32, 44, 0.12);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.color-option-card.selected {
  border-color: color-mix(in srgb, var(--swatch-color) 34%, rgba(18, 32, 44, 0.16) 66%);
  background: color-mix(in srgb, var(--swatch-color) 6%, rgba(255, 255, 255, 0.9) 94%);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--swatch-color) 16%, transparent),
    0 12px 24px rgba(15, 23, 42, 0.08);
}

.color-option-swatch {
  width: 100%;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--swatch-color) 76%, white 24%),
    color-mix(in srgb, var(--swatch-color) 64%, black 18%)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 6px 14px rgba(15, 23, 42, 0.08);
}

.color-option-label {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}

.color-option-code {
  color: var(--muted);
  font-size: 0.78rem;
}

.custom-color-box {
  display: grid;
  gap: 0.55rem;
}

.custom-color-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.custom-hex-input {
  max-width: 220px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.custom-color-preview {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--preview-color, #FFFFFF);
  border: 1px solid rgba(18, 32, 44, 0.08);
  box-shadow: var(--shadow-soft);
}

.room-access-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 2px solid rgba(50, 76, 98, 0.2);
  background: rgba(247, 250, 252, 0.74);
}

.room-access-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.room-access-caption {
  margin: 0.25rem 0 0;
}

.room-access-toggle {
  margin: 0;
}

.room-access-list {
  display: grid;
  gap: 0.8rem;
}

.room-access-list.disabled {
  opacity: 0.58;
}

.room-access-list-header {
  display: grid;
  gap: 0.18rem;
}

.room-access-list-header span {
  color: var(--muted);
  font-size: 0.92rem;
}

.room-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.room-access-option {
  position: relative;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 2px solid rgba(50, 76, 98, 0.18);
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.room-access-option:hover {
  border-color: rgba(33, 127, 131, 0.42);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.room-access-checkbox {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.room-access-option-body {
  display: grid;
  gap: 0.14rem;
}

.room-access-option-body strong {
  font-size: 0.96rem;
}

.room-access-option-body small,
.room-access-option-body span {
  color: var(--muted);
}

.room-access-option:has(.room-access-checkbox:checked) {
  border-color: rgba(33, 127, 131, 0.58);
  background: rgba(219, 245, 244, 0.72);
  box-shadow: 0 0 0 2px rgba(33, 127, 131, 0.12);
}

.user-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.user-admin-actions form {
  margin: 0;
}

.room-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.room-card-actions form {
  margin: 0;
}

.history-filter-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.history-group-card {
  border: 1px solid rgba(18, 32, 44, 0.07);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.history-group-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.4rem 1.1rem;
  border-bottom: 1px solid rgba(18, 32, 44, 0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(248,251,252,0.95));
}

.history-user-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.history-user-meta h2,
.history-user-meta p,
.history-reservation-item h3 {
  margin: 0;
}

.history-user-meta p {
  color: var(--muted);
  margin-top: 0.2rem;
}

.history-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(15, 118, 110, 0.22);
}

.history-group-stats {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.history-stat-box {
  min-width: 148px;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(18, 32, 44, 0.05);
}

.history-stat-box strong,
.history-stat-box span {
  display: block;
}

.history-stat-box strong {
  font-size: 1.15rem;
}

.history-stat-box span,
.history-reservation-time span {
  color: var(--muted);
}

.history-reservation-list {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.1rem 1.1rem;
}

.history-reservation-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid rgba(18, 32, 44, 0.05);
  box-shadow: var(--shadow-soft);
}

.history-reservation-time {
  min-width: 170px;
  text-align: right;
}

.history-reservation-time strong,
.history-reservation-time span {
  display: block;
}

.privacy-content {
  display: grid;
  gap: 1rem;
}

.privacy-content p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

@media (max-width: 992px) {
  .hero-panel,
  .guest-hero,
  .guest-overview-grid,
  .guest-feature-grid,
  .content-grid,
  .dashboard-grid,
  .support-layout,
  .filter-bar,
  .form-grid,
  .calendar-hero,
  .calendar-summary-strip,
  .calendar-toolbar,
  .calendar-toolbar-main,
  .history-filter-bar,
  .user-filter-bar,
  .user-card-grid,
  .branding-grid,
  .color-picker-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 2rem;
  }

  .page-header,
  .panel-header,
  .timeline-item,
  .schedule-item,
  .footer-inner,
  .room-topline,
  .calendar-toolbar,
  .history-group-header,
  .history-reservation-item,
  .support-inbox-meta,
  .support-inbox-topline,
  .support-inbox-actions,
  .support-thread-topline {
    flex-direction: column;
    align-items: stretch;
  }

  .calendar-toolbar-actions,
  .calendar-toolbar-nav-row,
  .calendar-toolbar-presenter-row {
    align-items: stretch;
    justify-content: stretch;
  }

  .history-reservation-time {
    min-width: 0;
    text-align: left;
  }

  .topbar-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-logo {
    max-height: 44px;
    max-width: 180px;
  }

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

  .topbar-control-cluster {
    flex-wrap: wrap;
  }

  .topbar-control-card {
    min-width: 0;
  }

  .topbar-links .navbar-nav {
    align-items: flex-start;
  }

  .footer-links,
  .support-form-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .support-detail-grid {
    grid-template-columns: 1fr;
  }

  .support-status-row {
    flex-direction: column;
    align-items: stretch;
  }

  .calendar-frame {
    overflow-x: auto;
    overflow-y: auto;
  }

  .calendar-grid {
    min-width: 920px;
  }

  .week-grid {
    min-width: 1180px;
  }
}

html[data-theme="dark"] .nav-link {
  color: #c6d4df;
}

html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .nav-link:focus {
  color: #ffffff;
}

html[data-theme="dark"] .brand-mark,
html[data-theme="dark"] .panel-header h2,
html[data-theme="dark"] .page-header h1,
html[data-theme="dark"] .guest-hero-main h1,
html[data-theme="dark"] .calendar-date-card h2,
html[data-theme="dark"] .summary-chip strong,
html[data-theme="dark"] .metric-value,
html[data-theme="dark"] .timeline-item h3,
html[data-theme="dark"] .action-tile span,
html[data-theme="dark"] .room-card h2,
html[data-theme="dark"] .history-user-meta h2,
html[data-theme="dark"] .history-reservation-item h3,
html[data-theme="dark"] .calendar-room-head strong,
html[data-theme="dark"] .calendar-corner,
html[data-theme="dark"] .time-slot-label,
html[data-theme="dark"] .form-label {
  color: #f3f8fc;
}

html[data-theme="dark"] .muted,
html[data-theme="dark"] .panel-header p,
html[data-theme="dark"] .timeline-item p,
html[data-theme="dark"] .action-tile small,
html[data-theme="dark"] .metric-label,
html[data-theme="dark"] .summary-chip span,
html[data-theme="dark"] .calendar-room-head span,
html[data-theme="dark"] .calendar-room-head small,
html[data-theme="dark"] .history-user-meta p,
html[data-theme="dark"] .history-stat-box span,
html[data-theme="dark"] .history-reservation-time span,
html[data-theme="dark"] .footer,
html[data-theme="dark"] .footer a {
  color: #9fb2c3;
}

html[data-theme="dark"] .hero-panel,
html[data-theme="dark"] .panel-card,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .guest-hero-main,
html[data-theme="dark"] .guest-hero-aside,
html[data-theme="dark"] .guest-feature-card,
html[data-theme="dark"] .history-group-card,
html[data-theme="dark"] .room-card,
html[data-theme="dark"] .user-admin-card {
  border-color: rgba(173, 205, 230, 0.1);
  background: linear-gradient(180deg, rgba(16, 28, 40, 0.96), rgba(9, 18, 28, 0.94));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .panel-card::before,
html[data-theme="dark"] .metric-card::before,
html[data-theme="dark"] .hero-panel::before,
html[data-theme="dark"] .auth-card::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 22%);
}

html[data-theme="dark"] .guest-hero-main {
  background:
    radial-gradient(circle at top left, rgba(31, 163, 154, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(14, 25, 37, 0.98), rgba(8, 17, 27, 0.96));
}

html[data-theme="dark"] .guest-feature-card-primary,
html[data-theme="dark"] .calendar-date-card,
html[data-theme="dark"] .summary-chip,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .action-tile,
html[data-theme="dark"] .timeline-item,
html[data-theme="dark"] .history-stat-box,
html[data-theme="dark"] .history-reservation-item,
html[data-theme="dark"] .color-option-card,
html[data-theme="dark"] .calendar-filter-field,
html[data-theme="dark"] .calendar-visibility-toggle,
html[data-theme="dark"] .support-step,
html[data-theme="dark"] .support-inbox-item,
html[data-theme="dark"] .support-thread-item,
html[data-theme="dark"] .support-detail-item {
  background: linear-gradient(180deg, rgba(19, 33, 47, 0.96), rgba(12, 23, 35, 0.94));
  border-color: rgba(173, 205, 230, 0.1);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .color-option-card {
  background: rgba(18, 31, 45, 0.78);
  border-color: rgba(173, 205, 230, 0.09);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

html[data-theme="dark"] .room-access-panel {
  background: rgba(18, 31, 45, 0.72);
  border-color: rgba(173, 205, 230, 0.14);
}

html[data-theme="dark"] .room-access-option {
  background: rgba(10, 20, 31, 0.76);
  border-color: rgba(173, 205, 230, 0.12);
}

html[data-theme="dark"] .room-access-option:hover {
  border-color: rgba(93, 211, 205, 0.38);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .room-access-option-body small,
html[data-theme="dark"] .room-access-option-body span,
html[data-theme="dark"] .room-access-list-header span {
  color: #9fb2c3;
}

html[data-theme="dark"] .room-access-option:has(.room-access-checkbox:checked) {
  border-color: rgba(93, 211, 205, 0.44);
  background: rgba(22, 56, 63, 0.42);
  box-shadow: 0 0 0 2px rgba(93, 211, 205, 0.12);
}

html[data-theme="dark"] .color-option-label {
  color: #eef6fb;
}

html[data-theme="dark"] .color-option-code {
  color: #9fb2c3;
}

html[data-theme="dark"] .color-option-card:hover {
  background: rgba(23, 38, 54, 0.9);
  border-color: rgba(173, 205, 230, 0.16);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .color-option-card.selected {
  border-color: color-mix(in srgb, var(--swatch-color) 38%, rgba(173, 205, 230, 0.18) 62%);
  background: color-mix(in srgb, var(--swatch-color) 10%, rgba(18, 31, 45, 0.9) 90%);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--swatch-color) 20%, transparent),
    0 16px 30px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .support-note {
  background: linear-gradient(135deg, rgba(17, 96, 92, 0.3), rgba(10, 54, 62, 0.18));
  border-color: rgba(93, 211, 205, 0.14);
}

html[data-theme="dark"] .custom-file-picker {
  background: rgba(9, 18, 28, 0.92);
  border-color: rgba(173, 205, 230, 0.12);
}

html[data-theme="dark"] .support-category-badge {
  background: rgba(31, 163, 154, 0.16);
  color: #d8fbf5;
}

html[data-theme="dark"] .panel-header,
html[data-theme="dark"] .history-group-header {
  border-bottom-color: rgba(173, 205, 230, 0.08);
  background: linear-gradient(180deg, rgba(20, 34, 48, 0.94), rgba(12, 23, 35, 0.96));
}

html[data-theme="dark"] .calendar-shell {
  background: linear-gradient(180deg, rgba(18, 30, 43, 0.96), rgba(10, 19, 29, 0.98));
  border-color: rgba(173, 205, 230, 0.08);
}

html[data-theme="dark"] .calendar-toolbar {
  background:
    linear-gradient(180deg, rgba(20, 31, 44, 0.96), rgba(11, 20, 31, 0.98)),
    linear-gradient(90deg, rgba(31, 163, 154, 0.045), transparent 55%, rgba(255, 140, 66, 0.035));
  border-color: rgba(173, 205, 230, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 36px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] .view-mode-switch {
    background: rgba(14, 24, 36, 0.84);
    border-color: rgba(173, 205, 230, 0.12);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .view-mode-chip {
    color: #9fb2c3;
}

html[data-theme="dark"] .view-mode-chip:hover,
html[data-theme="dark"] .view-mode-chip:focus {
    color: #ffffff;
}

html[data-theme="dark"] .calendar-filter-field {
  background: linear-gradient(180deg, rgba(39, 50, 64, 0.96), rgba(29, 39, 51, 0.98));
  border-color: rgba(173, 205, 230, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

html[data-theme="dark"] .calendar-filter-kicker {
  color: #73ddd4;
}

html[data-theme="dark"] .calendar-filter-field .form-label {
  color: #f4f8fb;
}

html[data-theme="dark"] .btn-toolbar-ghost {
  color: #ebf3f8;
  background: rgba(34, 45, 58, 0.96);
  border-color: rgba(173, 205, 230, 0.12);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .btn-toolbar-live {
    color: #ebf3f8;
  background: rgba(34, 45, 58, 0.96);
  border-color: rgba(173, 205, 230, 0.12);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .presentation-kiosk-badge {
    color: #ebf3f8;
    background: rgba(34, 45, 58, 0.96);
    border-color: rgba(173, 205, 230, 0.12);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .calendar-toolbar-presenter-date {
  background: linear-gradient(180deg, rgba(34, 45, 58, 0.96), rgba(20, 30, 42, 0.98));
  border-color: rgba(173, 205, 230, 0.12);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .calendar-toolbar-presenter-kicker {
  color: #73ddd4;
}

html[data-theme="dark"] .btn-toolbar-live:hover,
html[data-theme="dark"] .btn-toolbar-live:focus {
  color: #ffffff;
  background: rgba(46, 58, 72, 0.98);
  border-color: rgba(173, 205, 230, 0.18);
}

html[data-theme="dark"] .btn-toolbar-live.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #1fa39a, #147b74);
  border-color: rgba(88, 197, 190, 0.34);
  box-shadow: 0 18px 32px rgba(12, 126, 129, 0.28);
}

html[data-theme="dark"] .btn-toolbar-ghost:hover,
html[data-theme="dark"] .btn-toolbar-ghost:focus {
  color: #fff;
  background: rgba(46, 58, 72, 0.98);
  border-color: rgba(173, 205, 230, 0.18);
}

html[data-theme="dark"] .calendar-frame {
  border-color: rgba(173, 205, 230, 0.08);
  background: linear-gradient(180deg, rgba(13, 24, 36, 0.98), rgba(8, 17, 27, 0.98));
  scrollbar-color: rgba(88, 197, 190, 0.54) rgba(173, 205, 230, 0.08);
}

html[data-theme="dark"] .calendar-room-head,
html[data-theme="dark"] .calendar-corner {
  background: linear-gradient(180deg, rgba(17, 29, 41, 0.98), rgba(12, 22, 33, 0.98));
  border-bottom-color: rgba(173, 205, 230, 0.08);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] .calendar-frame::-webkit-scrollbar-track {
  background: rgba(173, 205, 230, 0.06);
}

html[data-theme="dark"] .calendar-frame::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(88, 197, 190, 0.74), rgba(31, 163, 154, 0.9));
  border-color: rgba(13, 24, 36, 0.92);
}

html[data-theme="dark"] .calendar-frame::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(111, 219, 212, 0.88), rgba(31, 163, 154, 1));
}

html[data-theme="dark"] .calendar-time-column {
  background: linear-gradient(180deg, rgba(15, 26, 38, 0.98), rgba(10, 19, 30, 0.98));
}

html[data-theme="dark"] .calendar-room-column {
  border-left-color: rgba(173, 205, 230, 0.08);
  background:
    linear-gradient(180deg, rgba(12, 22, 33, 0.97), rgba(8, 17, 27, 0.98)),
    linear-gradient(90deg, rgba(31, 163, 154, 0.035), transparent 50%, rgba(255, 140, 66, 0.03));
}

html[data-theme="dark"] .week-room-column {
  background:
    linear-gradient(180deg, rgba(13, 24, 36, 0.98), rgba(8, 17, 27, 0.99)),
    linear-gradient(90deg, rgba(31, 163, 154, 0.02), transparent 50%, rgba(255, 140, 66, 0.02));
}

html[data-theme="dark"] .calendar-hour-line {
  background: rgba(173, 205, 230, 0.1);
}

html[data-theme="dark"] .time-slot-label {
  color: #a9bdcc;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] textarea.form-control {
  color: #f3f8fc;
  background: rgba(7, 15, 24, 0.98);
  border-width: 2px;
  border-color: rgba(173, 205, 230, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 1px 2px rgba(0, 0, 0, 0.16);
}

html[data-theme="dark"] .form-control::placeholder,
html[data-theme="dark"] textarea.form-control::placeholder,
html[data-theme="dark"] input::placeholder {
  color: #8fa6b8;
  opacity: 1;
}

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus,
html[data-theme="dark"] textarea.form-control:focus {
  color: #ffffff;
  background: rgba(10, 19, 30, 1);
  border-color: rgba(88, 197, 190, 0.8);
  box-shadow:
    0 0 0 0.24rem rgba(31, 163, 154, 0.22),
    0 12px 26px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] input[type="date"],
html[data-theme="dark"] input[type="datetime-local"] {
  color-scheme: dark;
  accent-color: #58c5be;
  background: rgba(7, 15, 24, 0.98);
  border-color: rgba(121, 171, 210, 0.32);
  color: #eef6fb;
}

html[data-theme="dark"] .form-field-icon {
  color: rgba(218, 231, 242, 0.92);
}

html[data-theme="dark"] .reservation-datetime-button {
  color: rgba(218, 231, 242, 0.94);
}

html[data-theme="dark"] .reservation-datetime-button:hover,
html[data-theme="dark"] .reservation-datetime-button:focus-visible {
  background: rgba(31, 163, 154, 0.16);
}

html[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
html[data-theme="dark"] input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(95%) sepia(8%) saturate(538%) hue-rotate(171deg) brightness(114%) contrast(98%);
  opacity: 0.01;
  cursor: pointer;
  border-radius: 999px;
}

html[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator:hover,
html[data-theme="dark"] input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
  filter: invert(98%) sepia(7%) saturate(463%) hue-rotate(160deg) brightness(118%) contrast(100%);
}

html[data-theme="dark"] .reservation-native-picker-button {
  background: linear-gradient(180deg, rgba(34, 54, 78, 0.98), rgba(20, 34, 50, 0.98));
  border-color: rgba(118, 174, 219, 0.22);
  color: #dff6f4;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .reservation-native-picker-button:hover,
html[data-theme="dark"] .reservation-native-picker-button:focus-visible {
  background: linear-gradient(180deg, rgba(40, 70, 100, 1), rgba(24, 44, 64, 1));
  border-color: rgba(88, 197, 190, 0.5);
  color: #ffffff;
}

html[data-theme="dark"] .form-check-input {
  background-color: rgba(9, 18, 28, 0.92);
  border-color: rgba(173, 205, 230, 0.2);
}

html[data-theme="dark"] .form-check-input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}

html[data-theme="dark"] .btn-outline-dark {
  color: #f3f8fc;
  border-color: rgba(173, 205, 230, 0.16);
}

html[data-theme="dark"] .btn-outline-dark:hover,
html[data-theme="dark"] .btn-outline-dark:focus {
  color: #ffffff;
  background: rgba(18, 31, 45, 0.98);
  border-color: rgba(173, 205, 230, 0.26);
}

html[data-theme="dark"] .btn-toolbar-ghost:hover,
html[data-theme="dark"] .btn-toolbar-ghost:focus,
html[data-theme="dark"] .btn-ghost:hover,
html[data-theme="dark"] .btn-ghost:focus,
html[data-theme="dark"] .btn-light:hover,
html[data-theme="dark"] .btn-light:focus {
  color: #ffffff;
  background: rgba(18, 31, 45, 0.98);
  border-color: rgba(173, 205, 230, 0.24);
}

html[data-theme="dark"] .status-pill.status-completed {
  background: rgba(148, 163, 184, 0.16);
  color: #d9e3ea;
}

html[data-theme="dark"] .status-pill.status-cancelled {
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
}

html[data-theme="dark"] .status-pill.status-active {
  background: rgba(31, 163, 154, 0.18);
  color: #d7faf5;
}

html[data-theme="dark"] .status-pill.status-in-progress {
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
}

html[data-theme="dark"] .calendar-event-card {
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .calendar-event-status {
  background: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .footer {
  border-top-color: rgba(173, 205, 230, 0.08);
}

/* ===== License page ===== */

.license-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.license-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.license-tile {
    padding: 1rem;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
}

.license-tile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.license-tile-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.license-tile-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

.license-tile-id {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.85rem;
    color: var(--muted);
}

.license-tile-headline {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
}

.license-tile-divider {
    color: var(--muted);
    font-weight: 500;
    font-size: 1rem;
    margin-left: 0.25rem;
}

.license-tile-meta {
    font-size: 0.78rem;
    color: var(--muted);
}

.license-progress {
    height: 8px;
    background: var(--line);
    border-radius: 999px;
    overflow: hidden;
}

.license-progress-thin {
    height: 6px;
    margin-top: 0.5rem;
}

.license-progress-bar {
    height: 100%;
    transition: width 0.3s ease;
}

.license-tier-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.72rem;
    border: 1px solid transparent;
}

.license-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.75rem;
}

.license-status-pill.is-on {
    background: rgba(16, 185, 129, 0.16);
    color: #059669;
}

.license-status-pill.is-off {
    background: rgba(239, 68, 68, 0.14);
    color: #dc2626;
}

html[data-theme="dark"] .license-status-pill.is-on {
    color: #34d399;
}

html[data-theme="dark"] .license-status-pill.is-off {
    color: #f87171;
}

html[data-theme="dark"] .modal-content {
    background-color: var(--surface-strong);
    color: var(--text);
    border-color: var(--line-strong);
}

html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer {
    border-color: var(--line);
}

html[data-theme="dark"] .modal-title {
    color: var(--text);
}

html[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(1) brightness(1.5);
}

.license-key-input {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.45;
    word-break: break-all;
    resize: vertical;
}

@media (max-width: 720px) {
    .license-grid-two {
        grid-template-columns: 1fr;
    }
    .license-tile-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .license-tile-row .text-end {
        text-align: left !important;
    }
}
