:root {
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-2: #eef3f1;
  --ink: #17211f;
  --muted: #63706c;
  --line: #d9e1de;
  --green: #1f8a5b;
  --green-dark: #156844;
  --blue: #2368a2;
  --amber: #b46a12;
  --red: #bb3d3a;
  --shadow: 0 14px 40px rgba(26, 41, 37, 0.09);
}

.legal-body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, #f7faf9 0%, #edf4f1 100%);
  color: var(--ink);
}

.legal-shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(24px, 5vw, 72px) 0;
}

.legal-card {
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
}

.legal-card h2 {
  margin: 28px 0 8px;
  font-size: clamp(1.08rem, 2.4vw, 1.35rem);
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.legal-card a {
  color: var(--blue);
  font-weight: 800;
}

.legal-kicker {
  width: fit-content;
  margin: 0 0 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e6f4ee;
  color: var(--green-dark) !important;
  font-size: 0.78rem !important;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.legal-updated {
  margin-top: 0;
}

.login-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(42, 255, 201, 0.18), transparent 32%),
    radial-gradient(circle at 82% 14%, rgba(255, 43, 214, 0.18), transparent 30%),
    linear-gradient(135deg, #070a12 0%, #111827 45%, #061b21 100%);
  color: #f7fbff;
  overflow-x: hidden;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(1040px, 100%);
  min-height: min(680px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.8fr);
  gap: 28px;
  align-items: stretch;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(22px);
}

.login-copy {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: clamp(10px, 3vw, 36px);
}

.login-kicker {
  width: fit-content;
  margin: 0 0 12px;
  padding: 7px 10px;
  border: 1px solid rgba(84, 255, 210, 0.48);
  border-radius: 999px;
  color: #7ffff0;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-copy h1 {
  max-width: 560px;
  color: #fff;
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 0.86;
  text-shadow: 0 0 28px rgba(84, 255, 210, 0.22);
}

.login-copy p:not(.login-kicker) {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(247, 251, 255, 0.78);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.5;
}

.login-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(280px, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(9, 18, 32, 0.72), rgba(10, 13, 24, 0.58)),
    radial-gradient(circle at 50% 24%, rgba(84, 255, 210, 0.16), transparent 34%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cyber-delegate {
  position: relative;
  min-height: 310px;
  overflow: hidden;
}

.delegate-head {
  position: absolute;
  top: 38px;
  left: 50%;
  width: 86px;
  height: 94px;
  transform: translateX(-50%);
  border-radius: 42% 42% 45% 45%;
  background: linear-gradient(145deg, #d7a07e, #8f584a);
  box-shadow:
    0 -18px 0 -6px #151824,
    0 0 0 5px rgba(255, 255, 255, 0.05),
    0 0 45px rgba(84, 255, 210, 0.26);
}

.delegate-head::before,
.delegate-head::after {
  content: "";
  position: absolute;
  top: 39px;
  width: 13px;
  height: 5px;
  border-radius: 999px;
  background: #1b2431;
  box-shadow: 0 0 12px rgba(84, 255, 210, 0.8);
}

.delegate-head::before {
  left: 22px;
}

.delegate-head::after {
  right: 22px;
}

.delegate-neck {
  position: absolute;
  top: 125px;
  left: 50%;
  width: 46px;
  height: 44px;
  transform: translateX(-50%);
  background: linear-gradient(145deg, #b77b64, #7d443b);
  border-radius: 0 0 16px 16px;
}

.delegate-body {
  position: absolute;
  left: 50%;
  bottom: -22px;
  width: min(320px, 84%);
  height: 190px;
  transform: translateX(-50%);
  border-radius: 48% 48% 8% 8%;
  background:
    linear-gradient(90deg, transparent 0 16%, rgba(84, 255, 210, 0.22) 17% 19%, transparent 20% 80%, rgba(255, 43, 214, 0.22) 81% 83%, transparent 84%),
    linear-gradient(145deg, #2d5c68 0 18%, #191f2f 19% 48%, #111723 49% 100%);
  box-shadow:
    inset 0 24px 38px rgba(255, 255, 255, 0.08),
    0 0 70px rgba(255, 43, 214, 0.18);
}

.tattoo {
  position: absolute;
  top: 56px;
  width: 58px;
  height: 34px;
  border: 2px solid rgba(84, 255, 210, 0.72);
  border-left: 0;
  border-bottom: 0;
  transform: rotate(-18deg);
  opacity: 0.9;
}

.tattoo-left {
  left: 48px;
}

.tattoo-right {
  right: 48px;
  transform: scaleX(-1) rotate(-18deg);
}

.neon-line {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #55ffe0, transparent);
  opacity: 0.75;
}

.line-a {
  top: 48px;
  left: 20px;
  width: 145px;
}

.line-b {
  right: 22px;
  bottom: 106px;
  width: 190px;
  background: linear-gradient(90deg, transparent, #ff5de1, transparent);
}

.login-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.login-form label {
  display: grid;
  gap: 7px;
}

.login-form span {
  color: rgba(247, 251, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.login-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background: rgba(7, 10, 18, 0.64);
  color: #fff;
  font: inherit;
}

.login-form input:focus {
  outline: 2px solid rgba(84, 255, 210, 0.48);
  border-color: rgba(84, 255, 210, 0.74);
}

.login-form button {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #57ffe1, #ff5de1);
  color: #071019;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.login-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 96, 96, 0.5);
  border-radius: 10px;
  background: rgba(120, 20, 36, 0.35);
  color: #ffd7de;
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .login-shell {
    padding: 12px;
  }

  .login-panel {
    min-height: calc(100vh - 24px);
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .login-copy {
    justify-content: start;
    padding: 12px 10px 0;
  }

  .login-copy h1 {
    font-size: clamp(2.8rem, 16vw, 4.7rem);
  }

  .login-card {
    grid-template-rows: minmax(220px, 0.75fr) auto;
  }

  .cyber-delegate {
    min-height: 240px;
  }

  .delegate-body {
    height: 150px;
  }
}

.login-panel-simple {
  width: min(460px, 100%);
  min-height: 0;
  display: block;
  padding: 0;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 18px);
}

.login-card-simple {
  display: grid;
  grid-template-rows: auto auto;
  min-height: 0;
  overflow: hidden;
  border-radius: 18px;
}

.login-copy-simple {
  padding: 28px 24px 14px;
}

.login-copy-simple h1 {
  margin: 0;
  font-size: clamp(2.6rem, 12vw, 4.8rem);
  line-height: 0.9;
}

.login-copy-simple p:not(.login-kicker) {
  margin-top: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: var(--blue);
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 14px clamp(16px, 3vw, 36px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-weight: 800;
}

.brand small,
.hotel-title small,
.day-panel small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.nav {
  display: flex;
  gap: 8px;
  width: min(860px, 100%);
  justify-content: center;
}

.nav a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--ink);
}

.nav a:hover {
  background: var(--surface-2);
}

.nav a.active,
.nav a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

.logout-form {
  margin: 0;
}

.logout-form button {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.logout-form button:hover {
  color: var(--ink);
  border-color: var(--muted);
}

.shell {
  width: min(1480px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero-band,
.page-head,
.panel,
.day-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-band {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 4vw, 42px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.02;
}

h2 {
  font-size: 1rem;
}

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

.system-strip span,
.system-strip a,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.82rem;
  white-space: nowrap;
}

.system-strip span,
.system-strip a {
  gap: 4px;
  text-decoration: none;
}

.system-strip a {
  border: 1px solid transparent;
}

.system-strip a:hover,
.system-strip a.active {
  border-color: rgba(22, 48, 42, 0.28);
  background: #e8f2ec;
}

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

.ops-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.home-modules {
  display: grid;
  gap: 16px;
}

.home-module {
  display: grid;
  gap: 12px;
}

.home-module > summary {
  cursor: pointer;
  list-style: none;
}

.home-module > summary::-webkit-details-marker {
  display: none;
}

.op-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.module-tile {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  overflow: hidden;
  padding: 26px;
  border-radius: 8px;
  color: #fff;
  box-shadow: var(--shadow);
}

.module-tile-compact {
  min-height: 158px;
}

.module-tile-compact strong {
  font-size: clamp(2.1rem, 4vw, 3.35rem);
}

.tile-arrival {
  background: linear-gradient(135deg, #14533c, #247f68 55%, #d7b56d);
}

.tile-info {
  background: linear-gradient(135deg, #281a4b, #7b3fa0 54%, #d45e8e);
}

.tile-departure {
  background: linear-gradient(135deg, #18304b, #2368a2 55%, #c36e34);
}

.module-tile strong {
  display: block;
  margin: 4px 0;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.95;
}

.module-tile em {
  display: block;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
}

.flight-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  max-width: 520px;
}

.flight-strip span {
  min-height: 24px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.15;
}

.airport-duty-strip span {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.26);
  font-weight: 800;
}

.module-tile small {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
}

.plane {
  position: absolute;
  right: 28px;
  top: 20px;
  font-size: clamp(4rem, 10vw, 8rem);
  opacity: 0.24;
}

.plane-in {
  transform: rotate(135deg);
}

.plane-out {
  transform: rotate(-35deg);
}

.plane-search {
  font-size: clamp(4.3rem, 10vw, 8.6rem);
  transform: rotate(-8deg);
}

.module-chevron {
  align-self: flex-start;
  min-height: 28px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
  font-weight: 800;
}

.home-module[open] .module-chevron {
  background: rgba(255, 255, 255, 0.24);
}

.home-module[open] .module-chevron::before {
  content: "Sbalit";
}

.home-module[open] .module-chevron {
  font-size: 0;
}

.home-module[open] .module-chevron::before {
  font-size: 0.76rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

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

.today-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 18px;
  margin: 18px 0;
}

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

.op-list-panel {
  padding: 0;
  overflow: hidden;
}

.op-list-panel .panel-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.dashboard-hotels {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.dashboard-hotel {
  background: var(--surface);
}

.dashboard-hotel summary {
  display: grid;
  grid-template-columns: 34px minmax(180px, 1fr) auto auto 20px;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.dashboard-hotel summary::-webkit-details-marker {
  display: none;
}

.dashboard-hotel summary::after {
  content: "⌄";
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
}

.dashboard-hotel[open] summary::after {
  transform: rotate(180deg);
}

.dashboard-hotel-title {
  min-width: 0;
}

.dashboard-hotel-title strong,
.dashboard-hotel-title small {
  display: block;
}

.dashboard-hotel-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-hotel-title small,
.empty-state span {
  color: var(--muted);
  font-size: 0.84rem;
}

.dashboard-bookings {
  overflow-x: auto;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.empty-state {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: var(--surface);
}

.today-hotels {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.today-hotel {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
}

.today-hotel:hover {
  border-color: var(--line);
}

.today-hotel span:not(.badge),
.muted {
  color: var(--muted);
  font-size: 0.86rem;
}

.metric-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
}

.metric-grid.compact div {
  padding: 10px;
}

.metric-grid.compact strong {
  font-size: 1.25rem;
}

.mini-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.mini-list small {
  color: var(--muted);
}

.panel,
.page-head {
  padding: 20px;
}

.panel-head,
.page-head,
.toolbar,
.hotel-main,
.hotel-row,
.hotel-status,
.day-panel summary,
.summary-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.panel-head,
.page-head,
.day-panel summary {
  justify-content: space-between;
}

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

.metric-grid div {
  padding: 14px;
  background: var(--surface-2);
  border-radius: 8px;
}

.metric-grid strong {
  display: block;
  font-size: 1.8rem;
}

.metric-grid span {
  color: var(--muted);
  font-size: 0.88rem;
}

.season-stat-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.season-stat-block {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.season-stat-block.wide {
  grid-column: 1 / -1;
}

.season-stat-block h3 {
  margin: 0 0 10px;
  font-size: 0.92rem;
}

.season-stat-list,
.season-hotel-list {
  display: grid;
  gap: 8px;
}

.season-stat-list div,
.season-hotel-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.season-stat-list span,
.season-hotel-list span,
.season-gap-list {
  color: var(--muted);
  font-size: 0.86rem;
}

.season-stat-list strong,
.season-hotel-list strong {
  text-align: right;
}

.season-hotel-list div {
  align-items: flex-start;
}

.season-hotel-list strong {
  text-align: left;
}

.season-gap-list {
  margin: 0;
  padding-left: 18px;
}

.api-cost-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.api-cost-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--surface-2);
  border-radius: 8px;
}

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

.api-cost-row strong {
  font-size: 0.98rem;
}

.api-cost-row span {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 3px;
}

.api-cost-row b {
  font-size: 1.05rem;
  white-space: nowrap;
}

.event-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.event-list li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.event-list time {
  color: var(--muted);
  font-size: 0.78rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
}

.dot.error,
.badge.failed,
.badge.error {
  background: #ffe7e5;
  color: var(--red);
}

.badge.ok,
.badge.sent,
.badge.ready {
  background: #e3f4ea;
  color: var(--green-dark);
}

.badge.queued,
.badge.scheduled,
.badge.sending,
.badge.running,
.badge.message,
.badge.departure {
  background: #e7eff8;
  color: var(--blue);
}

.badge.needs_review,
.badge.draft,
.badge.archive,
.badge.canceled,
.badge.manual_meeting {
  background: #fff1dc;
  color: var(--amber);
}

.badge.meeting {
  background: #e3f4ea;
  color: var(--green-dark);
}

.toolbar {
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 18px 0;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.toolbar label:first-child {
  flex: 1 1 360px;
}

.toolbar span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

input[type="search"] {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

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

.checkline span {
  margin: 0;
}

.day-stack {
  display: grid;
  gap: 16px;
}

.message-groups,
.message-stack {
  display: grid;
  gap: 12px;
}

.message-groups {
  gap: 18px;
}

.message-operation-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin: 16px 0;
}

.message-operation-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.message-operation-panel.is-arrival {
  border-top-color: var(--green);
}

.message-operation-panel.is-departure {
  border-top-color: var(--amber);
}

.message-operation-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.message-operation-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.message-operation-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.message-operation-details {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.message-operation-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 0 2px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.message-operation-details summary::marker {
  color: var(--muted);
}

.message-operation-details summary b {
  display: grid;
  min-width: 34px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.88rem;
}

.message-operation-list {
  margin-top: 10px;
}

.message-group {
  display: grid;
  gap: 12px;
}

.message-control-stack {
  display: grid;
  gap: 10px;
}

.message-control-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.message-control-card strong,
.message-control-card span {
  display: block;
}

.message-control-card span,
.queue-help {
  color: var(--muted);
  font-size: 0.86rem;
}

.message-control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.message-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.message-group-head .eyebrow {
  margin-bottom: 3px;
}

.message-group-head span {
  display: grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 800;
}

.message-row {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.message-head,
.message-meta,
.message-detail {
  display: flex;
  align-items: center;
  gap: 12px;
}

.message-head {
  justify-content: space-between;
}

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

.message-head small,
.message-meta,
.message-detail dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.message-detail {
  flex-wrap: wrap;
  margin: 0;
}

.message-detail div {
  min-width: 180px;
}

.message-detail dd {
  margin: 3px 0 0;
}

.message-resend {
  border: 1px solid rgba(37, 99, 235, 0.28);
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
  border-radius: 8px;
  padding: 7px 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.message-resend:hover {
  background: rgba(37, 99, 235, 0.14);
}

.message-resend:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.message-preview {
  margin: 0;
  padding: 12px;
  overflow-x: auto;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  background: var(--surface-2);
  border-radius: 8px;
  color: var(--ink);
  font: 0.9rem/1.45 "SFMono-Regular", Consolas, monospace;
}

.message-full {
  display: grid;
  gap: 8px;
}

.message-full summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 800;
}

.chatbot-actions {
  justify-content: flex-end;
}

.chatbot-control-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(22, 163, 74, 0.24);
  border-radius: 8px;
  background: rgba(22, 163, 74, 0.08);
}

.chatbot-control-panel.is-stopped {
  border-color: rgba(220, 38, 38, 0.34);
  background: rgba(220, 38, 38, 0.08);
}

.chatbot-control-panel strong,
.chatbot-control-panel small {
  display: block;
}

.chatbot-control-panel small {
  margin-top: 4px;
  color: var(--muted);
}

.chatbot-control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.chatbot-thread {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.chatbot-thread > summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 800;
}

.chatbot-thread-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 14px;
}

.chatbot-thread-grid h2 {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.chatbot-bubbles,
.chatbot-drafts {
  display: grid;
  gap: 8px;
}

.chatbot-bubble {
  max-width: 88%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.chatbot-bubble.outbound {
  justify-self: end;
  background: #e8f3ff;
  border-color: rgba(35, 104, 162, 0.22);
}

.chatbot-bubble span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.chatbot-bubble p {
  margin: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.inline-actions {
  margin-top: 0;
}

.empty-note {
  margin: 0;
  padding: 14px 16px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.booking-note {
  display: block;
  margin-top: 4px;
  color: var(--amber);
  font-size: 0.74rem;
  line-height: 1.25;
}

.inline-muted {
  display: block;
  margin-top: 2px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(17, 30, 27, 0.08);
}

.contact-actions a:first-child {
  background: #e3f4ea;
  border-color: rgba(50, 128, 87, 0.36);
  color: var(--green-dark);
}

.contact-actions a:nth-child(2) {
  background: #eef4fb;
  border-color: rgba(43, 99, 155, 0.3);
  color: #245b91;
}

.booking-message-row td {
  background: var(--surface-2);
  white-space: normal;
}

.booking-message-row {
  width: 100%;
}

.booking-message-row td,
.booking-message-preview,
.booking-message-preview pre {
  width: 100%;
  min-width: 0;
}

.booking-message-preview {
  display: grid;
  gap: 8px;
}

.booking-message-preview summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 700;
}

.booking-message-preview pre {
  max-height: 360px;
  margin: 0;
  padding: 10px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: 0.82rem/1.38 "SFMono-Regular", Consolas, monospace;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.calendar-card {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.calendar-card.disabled {
  border-left-color: var(--amber);
}

.calendar-card-head {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;
}

.calendar-marker {
  width: 12px;
  height: 12px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--green);
}

.calendar-card.disabled .calendar-marker {
  background: var(--amber);
}

.calendar-card h2 {
  margin-top: 10px;
}

.calendar-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.calendar-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.calendar-fact {
  min-width: 0;
  padding: 11px 12px;
  background: var(--surface-2);
  border-radius: 8px;
}

.calendar-fact.strong {
  background: #e3f4ea;
}

.calendar-fact.id {
  grid-column: 1 / -1;
}

.calendar-fact dt {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.calendar-fact dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.day-panel {
  overflow: hidden;
}

.day-panel summary {
  cursor: pointer;
  padding: 18px 20px;
}

.hotel-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.hotel-row {
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--surface);
}

.row-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 700;
}

.hotel-title strong {
  font-size: 1rem;
}

.switch {
  position: relative;
  display: inline-flex;
  width: 46px;
  height: 26px;
}

.switch input {
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  background: #c8d0cd;
  border-radius: 999px;
  transition: background 0.18s ease;
}

.switch span::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease;
}

.switch input:checked + span {
  background: var(--green);
}

.switch input:checked + span::after {
  transform: translateX(20px);
}

button {
  font: inherit;
}

.danger-btn,
.primary-btn,
.ghost-btn,
.mini-toggle {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.danger-btn {
  padding: 0 16px;
  background: var(--red);
  color: #fff;
}

.danger-btn:disabled,
.primary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.primary-btn {
  padding: 0 16px;
  background: var(--green);
  color: #fff;
}

.ghost-btn,
.mini-toggle {
  padding: 0 12px;
  background: var(--surface-2);
  color: var(--ink);
}

.booking-table {
  flex: 1 1 100%;
  overflow-x: auto;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

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

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

code {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.panel-foot {
  padding: 16px 20px;
  background: var(--surface);
}

.log-panel {
  overflow: hidden;
}

.log-table {
  table-layout: fixed;
  font-size: 0.92rem;
}

.log-table th:nth-child(1),
.log-table td:nth-child(1) {
  width: 180px;
}

.log-table th:nth-child(2),
.log-table td:nth-child(2) {
  width: 90px;
}

.log-table th:nth-child(3),
.log-table td:nth-child(3) {
  width: 130px;
}

.log-table td {
  overflow-wrap: anywhere;
  vertical-align: top;
  white-space: normal;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.toast.error {
  background: var(--red);
}

.info-quick-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(320px, 0.58fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.home-module .info-quick-panel {
  margin-bottom: 0;
}

.info-quick-panel h1 {
  font-size: clamp(1.65rem, 3vw, 2.55rem);
}

.info-quick-panel p {
  margin: 6px 0 0;
}

.info-search-panel {
  margin: 18px 0;
}

.info-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.info-search-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.client-results {
  display: grid;
  gap: 16px;
}

.client-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.client-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.client-card-head h2 {
  margin-top: 8px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

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

.client-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.client-facts div {
  min-width: 0;
  padding: 12px;
  background: var(--surface-2);
  border-radius: 8px;
}

.client-facts dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.client-facts dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}

.client-message-panel {
  display: grid;
  gap: 10px;
}

.compact-head {
  padding: 0;
}

.client-message-preview {
  max-height: none;
  width: 100%;
  white-space: pre-wrap;
}

.client-message-list {
  display: grid;
  gap: 8px;
}

.client-message-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.client-message-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.client-message-item summary strong,
.client-message-item summary small {
  display: block;
}

.client-message-item summary small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.client-message-item .message-preview {
  margin: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.infoschuzka-body {
  background:
    radial-gradient(circle at 20% 0%, rgba(51, 110, 180, 0.2), transparent 30%),
    linear-gradient(180deg, #061222 0%, #0b1830 100%);
  color: #f8fbff;
}

.infoschuzka-body .topbar {
  background: rgba(6, 18, 34, 0.92);
  border-bottom-color: rgba(165, 190, 220, 0.18);
}

.infoschuzka-body .nav a {
  color: rgba(248, 251, 255, 0.82);
}

.infoschuzka-body .nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.infoschuzka-body .nav a.active,
.infoschuzka-body .nav a[aria-current="page"] {
  background: #f8fbff;
  color: #071426;
}

.infoschuzka-body .shell {
  width: min(980px, calc(100vw - 24px));
  padding: 18px 0 22px;
}

.info-meeting {
  min-height: calc(100svh - 94px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 14px;
}

.info-meeting-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.info-meeting-kicker {
  width: fit-content;
  margin: 0 0 8px;
  padding: 6px 10px;
  border: 1px solid rgba(126, 188, 255, 0.34);
  border-radius: 999px;
  color: #9fd0ff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.info-meeting-header h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 7vw, 4.4rem);
  line-height: 0.95;
}

.info-meeting-counter {
  min-width: 86px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.info-meeting-counter strong {
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
}

.info-meeting-counter span {
  color: rgba(248, 251, 255, 0.65);
  font-weight: 800;
}

.info-meeting-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.info-meeting-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #58d68d, #f4c15d);
  transition: width 180ms ease;
}

.info-meeting-stage {
  min-height: 0;
}

.info-meeting-card {
  min-height: min(740px, calc(100svh - 220px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(13, 35, 62, 0.96), rgba(8, 24, 45, 0.98));
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.35);
}

.info-meeting-card[hidden] {
  display: none;
}

.info-meeting-card-head p {
  margin: 0 0 8px;
  color: #8fbfff;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.info-meeting-card-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 7.5vw, 4.6rem);
  line-height: 0.96;
}

.info-meeting-card-head span {
  display: block;
  max-width: 760px;
  margin-top: 10px;
  color: rgba(248, 251, 255, 0.76);
  font-size: clamp(1rem, 2.8vw, 1.3rem);
  line-height: 1.35;
}

.info-meeting-checks {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 10px;
}

.info-check {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 58px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}

.info-check:has(input:checked) {
  border-color: rgba(88, 214, 141, 0.54);
  background: rgba(88, 214, 141, 0.12);
}

.info-check:active {
  transform: scale(0.992);
}

.info-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.info-check-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(248, 251, 255, 0.68);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.info-check input:focus-visible + .info-check-mark {
  outline: 3px solid #f4c15d;
  outline-offset: 3px;
}

.info-check input:checked + .info-check-mark {
  border-color: #58d68d;
  background: #58d68d;
  color: #071426;
}

.info-check input:checked + .info-check-mark::after {
  content: "✓";
  font-size: 1.35rem;
  font-weight: 1000;
  line-height: 1;
}

.info-check-copy {
  min-width: 0;
}

.info-check-copy strong,
.info-check-copy small {
  display: block;
}

.info-check-copy strong {
  color: #fff;
  font-size: clamp(1.06rem, 3.1vw, 1.34rem);
  line-height: 1.24;
}

.info-check-copy small {
  margin-top: 5px;
  color: rgba(248, 251, 255, 0.7);
  font-size: clamp(0.92rem, 2.55vw, 1.04rem);
  line-height: 1.36;
}

.info-check:has(input:checked) .info-check-copy {
  opacity: 0.72;
}

.info-meeting-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  padding: 10px 0 max(10px, env(safe-area-inset-bottom));
}

.info-meeting-btn {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
}

.info-meeting-btn.primary {
  background: #f4c15d;
  color: #111827;
}

.info-meeting-btn.secondary {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.info-meeting-btn.ghost {
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(248, 251, 255, 0.74);
}

.info-meeting-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

@media (max-width: 860px) {
  .topbar,
  .hero-band,
  .page-head,
  .day-panel summary,
  .hotel-row {
    align-items: stretch;
    flex-direction: column;
  }

  .tile-grid,
  .ops-board,
  .split,
  .today-grid,
  .calendar-grid,
  .info-quick-panel,
  .client-facts {
    grid-template-columns: 1fr;
  }

  .today-hotel,
  .dashboard-hotel summary,
  .mini-list li {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .message-head,
  .message-meta,
  .client-card-head,
  .client-message-item summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .module-tile {
    min-height: 180px;
  }

  .system-strip,
  .summary-actions,
  .hotel-status {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
    line-height: 1.35;
  }

  .topbar {
    gap: 8px;
    padding: 8px 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    font-size: 0.9rem;
  }

  .brand small {
    display: none;
  }

  .nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
  }

  .nav a {
    min-width: 0;
    padding: 7px 3px;
    overflow: hidden;
    border-radius: 6px;
    font-size: 0.76rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .info-search-form {
    grid-template-columns: 1fr;
  }

  .info-search-form .primary-btn {
    width: 100%;
  }

  .shell {
    width: calc(100vw - 14px);
    padding: 10px 0 34px;
  }

  .ops-board,
  .op-column,
  .day-stack,
  .message-operation-dashboard,
  .message-groups,
  .message-stack,
  .calendar-grid {
    gap: 10px;
  }

  .message-operation-dashboard {
    grid-template-columns: 1fr;
  }

  .message-operation-panel {
    padding: 12px;
  }

  .today-grid {
    gap: 10px;
    margin: 10px 0;
  }

  .module-tile {
    min-height: 104px;
    padding: 14px;
  }

  .module-tile strong,
  .module-tile-compact strong {
    margin: 2px 0;
    font-size: 2rem;
    line-height: 0.95;
  }

  .module-tile small,
  .module-tile em {
    max-width: 250px;
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .plane {
    top: 4px;
    right: 18px;
    font-size: 3.25rem;
  }

  .panel,
  .page-head {
    padding: 12px;
  }

  .op-list-panel {
    padding: 0;
  }

  .op-list-panel .panel-head,
  .day-panel summary {
    padding: 10px 12px;
  }

  .panel-head,
  .page-head,
  .hotel-main,
  .hotel-status {
    gap: 8px;
  }

  .page-head .danger-btn {
    width: 100%;
  }

  .eyebrow {
    margin-bottom: 4px;
    font-size: 0.7rem;
  }

  .toolbar {
    gap: 10px;
    margin: 10px 0;
    padding: 10px;
  }

  .toolbar label:first-child {
    flex-basis: 100%;
  }

  .message-control-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .message-control-actions {
    justify-content: stretch;
  }

  .message-control-actions .danger-btn,
  .message-control-actions .primary-btn {
    flex: 1 1 160px;
  }

  input[type="search"] {
    height: 36px;
    font-size: 0.9rem;
  }

  .danger-btn,
  .primary-btn,
  .ghost-btn,
  .mini-toggle {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.84rem;
  }

  h1 {
    font-size: 1.7rem;
  }

  h2 {
    font-size: 0.92rem;
  }

  .badge {
    min-height: 22px;
    max-width: 100%;
    padding: 3px 7px;
    border-radius: 7px;
    font-size: 0.74rem;
    line-height: 1.2;
    white-space: normal;
  }

  .dashboard-hotel summary {
    position: relative;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 6px 8px;
    min-height: 0;
    padding: 9px 30px 9px 10px;
  }

  .dashboard-hotel summary::after {
    position: absolute;
    top: 12px;
    right: 10px;
    font-size: 1rem;
  }

  .dashboard-hotel-title strong {
    overflow: visible;
    font-size: 0.9rem;
    line-height: 1.16;
    text-overflow: clip;
    white-space: normal;
  }

  .dashboard-hotel-title small {
    font-size: 0.75rem;
  }

  .dashboard-hotel summary .badge {
    grid-column: 2;
    justify-self: start;
  }

  .row-number {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 0.78rem;
  }

  .hotel-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 12px;
  }

  .hotel-main {
    display: grid;
    width: 100%;
    grid-template-columns: 24px 42px minmax(0, 1fr);
    align-items: center;
  }

  .hotel-title {
    min-width: 0;
  }

  .hotel-title strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 0.95rem;
    line-height: 1.15;
  }

  .hotel-title small {
    font-size: 0.75rem;
  }

  .switch {
    width: 42px;
    height: 24px;
  }

  .switch span::after {
    width: 18px;
    height: 18px;
  }

  .switch input:checked + span::after {
    transform: translateX(18px);
  }

  .hotel-status {
    width: 100%;
    flex-wrap: wrap;
    padding-left: 74px;
  }

  .dashboard-bookings,
  .booking-table {
    width: 100%;
    overflow-x: visible;
  }

  .dashboard-bookings table,
  .dashboard-bookings thead,
  .dashboard-bookings tbody,
  .dashboard-bookings tr,
  .dashboard-bookings td,
  .booking-table table,
  .booking-table thead,
  .booking-table tbody,
  .booking-table tr,
  .booking-table td {
    display: block;
    width: 100%;
  }

  .dashboard-bookings thead,
  .booking-table thead {
    display: none;
  }

  .dashboard-bookings tbody,
  .booking-table tbody {
    display: grid;
    gap: 7px;
    padding: 8px;
    background: var(--surface-2);
  }

  .dashboard-bookings tr,
  .booking-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5px 9px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .booking-table tr.booking-message-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .booking-message-row td {
    grid-column: 1 / -1;
    width: 100%;
  }

  .dashboard-bookings td,
  .booking-table td {
    min-width: 0;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
    font-size: 0.82rem;
    white-space: normal;
  }

  .dashboard-bookings td::before,
  .booking-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 1px;
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
  }

  .dashboard-bookings td[data-label="Klient"],
  .booking-table td[data-label="Příjmení"] {
    grid-column: 1 / -1;
    font-weight: 800;
  }

  .dashboard-bookings td .badge,
  .booking-table td .badge {
    width: fit-content;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  .metric-grid div {
    padding: 8px;
  }

  .metric-grid strong {
    font-size: 1.25rem;
  }

  .metric-grid span,
  .muted,
  .mini-list small,
  .event-list time {
    font-size: 0.76rem;
  }

  .season-stat-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
  }

  .season-stat-list div,
  .season-hotel-list div {
    gap: 8px;
    padding: 8px 0;
  }

  .season-stat-list span,
  .season-hotel-list span,
  .season-gap-list {
    font-size: 0.76rem;
  }

  .mini-list {
    gap: 4px;
    margin-top: 10px;
  }

  .mini-list li {
    padding: 7px 0;
  }

  .event-list {
    margin-top: 8px;
  }

  .event-list li {
    grid-template-columns: 8px minmax(0, 1fr);
    gap: 7px;
    padding: 7px 0;
  }

  .event-list time {
    grid-column: 2;
  }

  .message-row,
  .calendar-card {
    padding: 12px;
  }

  .message-row {
    width: 100%;
    overflow: hidden;
  }

  .message-head,
  .message-meta,
  .message-detail {
    width: 100%;
    min-width: 0;
  }

  .message-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .message-meta {
    flex-wrap: wrap;
    gap: 5px;
  }

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

  .message-detail div {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .message-preview {
    max-width: 100%;
    padding: 9px;
    overflow-x: hidden;
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .chatbot-thread-grid {
    grid-template-columns: 1fr;
  }

  .chatbot-bubble {
    max-width: 100%;
  }

  .calendar-facts {
    grid-template-columns: 1fr;
  }

  .calendar-card-head {
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 9px;
  }

  .log-table,
  .log-table thead,
  .log-table tbody,
  .log-table tr,
  .log-table td {
    display: block;
    width: 100%;
  }

  .log-table thead {
    display: none;
  }

  .log-table tbody {
    display: grid;
    gap: 8px;
  }

  .log-table tr {
    display: grid;
    gap: 6px;
    padding: 9px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .log-table td {
    padding: 0;
    border: 0;
    font-size: 0.82rem;
  }

  .log-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 1px;
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
  }

}

.learning-reply-template {
  white-space: pre-wrap;
  background: var(--surface-2);
  padding: 10px 12px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  margin: 6px 0;
}
