:root {
  --desktop: #788a9d;
  --surface: #c0c0c0;
  --line-light: #ffffff;
  --line-mid: #808080;
  --line-deep: #404040;
  --ink: #111111;
  --accent: #0a2f7a;
  --accent-soft: #d9e5ff;
  --success: #1f5d2d;
  --warning: #9a6a11;
  --danger: #8a2d2d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #94a2b1 0%, #7c8a9b 48%, #6e7988 100%);
  font-family: Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
}

a { text-decoration: none; }

.desktop-shell {
  min-height: 100vh;
  padding: 24px;
  position: relative;
}

.desktop-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 30%);
  pointer-events: none;
}

.workspace-window {
  position: relative;
  max-width: 1480px;
  margin: 0 auto;
  background: var(--surface);
  border-top: 2px solid var(--line-light);
  border-left: 2px solid var(--line-light);
  border-right: 2px solid var(--line-deep);
  border-bottom: 2px solid var(--line-deep);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 10px;
  background: linear-gradient(90deg, #05205f, #456fb6);
  color: #fff;
  font-weight: 700;
}

.mobile-menu-toggle {
  display: none;
  min-height: 28px;
  padding: 4px 10px;
  font: inherit;
  color: #111;
  background: linear-gradient(#dddddd, #c7c7c7);
  border-top: 2px solid var(--line-light);
  border-left: 2px solid var(--line-light);
  border-right: 2px solid var(--line-deep);
  border-bottom: 2px solid var(--line-deep);
}

.window-controls {
  display: flex;
  gap: 4px;
}

.window-controls span {
  width: 18px;
  height: 16px;
  background: var(--surface);
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
  border-right: 1px solid var(--line-deep);
  border-bottom: 1px solid var(--line-deep);
}

.menubar {
  display: flex;
  gap: 18px;
  padding: 7px 10px 6px;
  border-bottom: 1px solid #9f9f9f;
  background: linear-gradient(#d7d7d7, #c7c7c7);
  font-size: 13px;
  align-items: center;
}

.menu-item {
  position: relative;
}

.menubar-statuses {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.has-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 6px;
}

.menu-label {
  display: inline-block;
  padding: 2px 4px;
}

.menu-link-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px;
  color: #111;
}

.menu-link-label:hover {
  background: #0a2f7a;
  color: #fff;
}

.menu-alert-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #b02424;
  border: 1px solid #6e1010;
}

.has-dropdown:hover .menu-label {
  background: #0a2f7a;
  color: #fff;
}

.menu-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  padding: 4px;
  background: var(--surface);
  border-top: 2px solid var(--line-light);
  border-left: 2px solid var(--line-light);
  border-right: 2px solid var(--line-deep);
  border-bottom: 2px solid var(--line-deep);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.18);
  z-index: 20;
}

.has-dropdown:hover .menu-dropdown {
  display: block;
}

.menu-dropdown a {
  display: block;
  padding: 7px 10px;
  color: #111;
}

.menu-dropdown a:hover {
  background: #0a2f7a;
  color: #fff;
}

.app-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.app-shell-auth {
  grid-template-columns: minmax(0, 1fr);
}

.panel-frame,
.panel,
.flash {
  background: var(--surface);
  border-top: 2px solid var(--line-light);
  border-left: 2px solid var(--line-light);
  border-right: 2px solid var(--line-mid);
  border-bottom: 2px solid var(--line-mid);
}

.sidebar {
  padding: 14px;
  align-self: start;
}

.brand {
  margin-bottom: 14px;
  padding: 14px 12px;
  color: #fff;
  background: linear-gradient(135deg, #15336e, #4f76b7);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  border-right: 1px solid rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
}

.brand-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.85;
}

.brand-name {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 700;
}

.brand-meta {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 31px;
  font-size: 13px;
  line-height: 1;
}

a.btn { color: #000; }

.nav-btn,
.action-btn,
.toolbar-btn,
.btn-compact {
  text-align: center;
}

.nav-btn {
  width: 100%;
  justify-content: flex-start;
  min-height: 34px;
  padding: 0 12px 4px;
}

.nav-btn-with-badge {
  justify-content: space-between;
}

.action-btn,
.toolbar-btn {
  padding-left: 12px;
  padding-right: 12px;
}

.btn-compact {
  min-height: 26px;
  padding-left: 8px;
  padding-right: 8px;
  font-size: 12px;
}

.btn-danger-soft { color: #6d0000; }

.is-hidden {
  display: none !important;
}

.is-active {
  box-shadow: inset -1px -1px #fff, inset 1px 1px #000;
  background: var(--accent-soft);
}

.main-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

header.topbar {
  position: static;
  min-height: 0;
  height: auto;
  width: auto;
  overflow: visible;
  background: var(--surface);
}

.topbar {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.topbar-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4f4f4f;
}

.topbar-title {
  margin-top: 2px;
  font-size: 24px;
  font-weight: 700;
}

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-meta {
  padding: 7px 10px;
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #8b8b8b;
  background: #efefef;
  color: #333;
}

.topbar-meta-static {
  min-height: 24px;
  padding: 2px 8px;
  font-size: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid #7f7f7f;
  font-weight: 700;
}

.status-pill-online {
  color: #0d3d19;
  background: linear-gradient(#dff1df, #c5e1c5);
  border-color: #6d946d;
}

.status-pill-offline {
  color: #6a1111;
  background: linear-gradient(#f2d9d9, #e5c1c1);
  border-color: #9b6b6b;
}

.version-pill,
.copyright-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
  border-right: 1px solid var(--line-mid);
  border-bottom: 1px solid var(--line-mid);
  background: linear-gradient(#e1e1e1, #cdcdcd);
  color: #222;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.version-pill {
  font-weight: 700;
  color: #0a2f7a;
}

.copyright-pill {
  color: #424242;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.footer-strip {
  margin-top: auto;
  padding: 7px 10px;
  display: flex;
  justify-content: flex-end;
  background: linear-gradient(#d7d7d7, #c7c7c7);
}

.panel {
  padding: 14px;
  background: linear-gradient(#d9d9d9, #cfcfcf);
}

.booking-editor {
  padding-top: 10px;
}

.tabbed-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tab-strip {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 0 2px;
  border-bottom: 2px solid #8d8d8d;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
}

.tab-button {
  min-height: 30px;
  padding: 6px 14px 7px;
  font: inherit;
  font-weight: 700;
  color: #111;
  background: linear-gradient(#dddddd, #c7c7c7);
  border-top: 2px solid var(--line-light);
  border-left: 2px solid var(--line-light);
  border-right: 2px solid var(--line-deep);
  border-bottom: 2px solid #8d8d8d;
  cursor: pointer;
  box-shadow: none;
}

.tab-button.is-active {
  position: relative;
  top: 2px;
  background: linear-gradient(#d9d9d9, #cfcfcf);
  border-right: 2px solid var(--line-mid);
  border-bottom-color: #cfcfcf;
  box-shadow: none;
}

.tab-panel {
  padding: 4px 2px 0;
  background: transparent;
}

.tab-panel.is-active {
  background: transparent;
}

.tab-panel.is-hidden {
  display: none;
}

.panel-title {
  margin-bottom: 10px;
  font-weight: 700;
}

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

.section-head h2,
.panel h2 {
  margin: 0;
  font-size: 18px;
}

.panel-grid {
  display: grid;
  gap: 16px;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metric {
  background: linear-gradient(#e2e2e2, #d0d0d0);
}

.metric-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
}

.metric-compare,
.metric-delta {
  margin-top: 6px;
  font-size: 12px;
  color: #444;
}

.metric-delta.positive {
  color: var(--success);
}

.metric-delta.negative {
  color: var(--danger);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: 16px;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border-top: 2px solid var(--line-mid);
  border-left: 2px solid var(--line-mid);
  border-right: 2px solid var(--line-light);
  border-bottom: 2px solid var(--line-light);
  background: #fff;
  padding: 7px 8px;
  font: inherit;
  color: #111;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.form-actions,
.actions,
.inline-form,
.view-switch {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.daily-fee-toggle {
  padding: 0;
  background: #d9d9d9;
  border: 1px solid #9b9b9b;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding: 8px 12px;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings-label {
  display: block;
  font-weight: 700;
}

.color-palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 26px);
  gap: 8px;
}

.color-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.color-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.color-choice-swatch {
  width: 24px;
  height: 24px;
  display: inline-block;
  border-top: 2px solid var(--line-light);
  border-left: 2px solid var(--line-light);
  border-right: 2px solid var(--line-deep);
  border-bottom: 2px solid var(--line-deep);
}

.color-choice input:checked + .color-choice-swatch {
  outline: 2px solid #111;
  outline-offset: 1px;
}

.customer-color-swatch {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  border: 1px solid rgba(0, 0, 0, 0.35);
}

.checkbox-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  cursor: pointer;
}

.checkbox-visual {
  width: 18px;
  height: 18px;
  display: block;
  background: #fff;
  border-top: 2px solid var(--line-mid);
  border-left: 2px solid var(--line-mid);
  border-right: 2px solid var(--line-light);
  border-bottom: 2px solid var(--line-light);
}

.checkbox-input:checked + .checkbox-visual::after {
  content: "";
  display: block;
  width: 8px;
  height: 4px;
  margin: 4px 0 0 3px;
  border-left: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: rotate(-45deg);
}

.daily-fee-actions {
  margin-bottom: 10px;
}

.daily-fee-panel {
  padding: 12px;
  background: #e3e3e3;
  border: 1px solid #9b9b9b;
}

.daily-fee-panel.is-hidden {
  display: none;
}

.helper-text {
  margin: 0 0 12px;
  font-size: 12px;
  color: #404040;
}

.subtle-text {
  margin-top: 2px;
  font-size: 12px;
  color: #4c4c4c;
}

.daily-fee-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.route-calculator {
  padding: 12px;
  background: #e7e7e7;
  border: 1px solid #a2a2a2;
}

.route-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.route-feedback {
  min-height: 18px;
}

.booking-form .tab-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-form .tab-panel.is-hidden,
.tabbed-editor > .tab-panel.is-hidden {
  display: none;
}

.daily-fee-row {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(140px, 220px);
  gap: 12px;
  align-items: end;
  padding: 10px;
  background: #f1f1f1;
  border: 1px solid #a2a2a2;
}

.daily-fee-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.daily-fee-date span {
  font-size: 12px;
  color: #4c4c4c;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #efefef;
  border: 2px solid #8e8e8e;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table th,
.data-table td {
  border-right: 1px solid #9a9a9a;
  border-bottom: 1px solid #9a9a9a;
  padding: 7px 8px;
  vertical-align: top;
  text-align: left;
  color: #111;
}

.data-table th {
  background: linear-gradient(#dadada, #bfbfbf);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dense-table td,
.dense-table th {
  padding: 5px 6px;
  font-size: 13px;
}

.status {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid #7c7c7c;
  font-weight: 700;
}

.status-booked {
  background: #dce8ff;
  color: #0a3d91;
}

.status-preliminary {
  background: #fff4cc;
  color: var(--warning);
}

.status-inquiry {
  background: #fff4cc;
  color: var(--warning);
}

.status-private {
  background: #ececec;
  color: #404040;
}

.status-canceled {
  background: #f2d4d4;
  color: var(--danger);
}

.flash-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flash {
  padding: 10px 12px;
  color: #111;
}

.flash-success { border-left: 4px solid var(--success); }
.flash-error { border-left: 4px solid var(--danger); }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.weekday {
  padding: 7px 6px;
  border: 1px solid #888;
  background: linear-gradient(#cecece, #bcbcbc);
  font-weight: 700;
}

.calendar-cell {
  min-height: 140px;
  padding: 6px;
  border: 1px solid #8d8d8d;
  background: #f6f6f6;
}

.calendar-cell.empty { background: #d6d6d6; }

.cell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.cell-date {
  font-weight: 700;
}

.cell-booking-count {
  padding: 1px 5px;
  font-size: 11px;
  font-weight: 700;
  color: #0a2f7a;
  background: #d9e5ff;
  border: 1px solid #8da6d6;
}

.calendar-item {
  margin-bottom: 5px;
  padding: 5px 6px;
  border: 1px solid #888;
  background: var(--customer-color, #dce8ff);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
  font-size: 12px;
  color: #111;
}

.booking-link {
  display: block;
  cursor: pointer;
  user-select: none;
}

.booking-link:hover {
  filter: brightness(0.98);
}

.calendar-item-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.calendar-item-index {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.calendar-item-sub {
  margin-top: 3px;
  font-size: 11px;
  color: #3f3f3f;
}

.mobile-calendar-list,
.mobile-month-list {
  display: none;
}

.mobile-day-card {
  padding: 10px;
  margin-top: 10px;
  background: #e8e8e8;
  border: 1px solid #9b9b9b;
}

.mobile-day-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.mobile-booking-card {
  padding: 8px;
  background: #f0f0f0;
  border: 1px solid #9b9b9b;
  border-right: 6px solid #7f7f7f;
}

.mobile-booking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin-top: 6px;
  font-size: 12px;
}

.booking-booked { border-right: 6px solid #0a3d91; }
.booking-preliminary { border-right: 6px solid #89620d; }
.booking-inquiry { border-right: 6px solid #89620d; }
.booking-private { border-right: 6px solid #6b6b6b; }
.booking-canceled { border-right: 6px solid #8c2f2f; }
.event { background: #e4e4e4; }

.month-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.mini-month {
  padding: 10px;
  background: #e3e3e3;
  border: 1px solid #8d8d8d;
}

.mini-weekdays,
.mini-cells {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.mini-weekdays span,
.mini-cell {
  text-align: center;
  padding: 4px;
  font-size: 12px;
  border: 1px solid #999;
  background: #f0f0f0;
  color: #111;
}

.mini-cell.empty { background: #d8d8d8; }

.mini-cell em {
  display: block;
  color: var(--accent);
  font-style: normal;
  font-weight: 700;
}

.stats-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.break-even-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.break-even-card {
  padding: 12px;
  background: #e7e7e7;
  border: 1px solid #9b9b9b;
}

.break-even-over {
  background: linear-gradient(#e6eee6, #d8e4d8);
}

.break-even-under {
  background: linear-gradient(#eee6e6, #e5dada);
}

.break-even-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.break-even-positive {
  color: var(--success);
}

.break-even-negative {
  color: var(--danger);
}

.break-even-progress {
  height: 18px;
  margin-top: 10px;
  background: #f3f3f3;
  border-top: 2px solid var(--line-mid);
  border-left: 2px solid var(--line-mid);
  border-right: 2px solid var(--line-light);
  border-bottom: 2px solid var(--line-light);
  overflow: hidden;
}

.break-even-progress-compact {
  margin-top: 8px;
  margin-bottom: 6px;
}

.break-even-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #6f95c8, #8fb0d8);
}

.stats-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.stats-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.stats-option-panel {
  padding: 12px;
  background: #e2e2e2;
  border: 1px solid #9b9b9b;
}

.stats-checkbox-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stats-checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 6px 8px;
  background: #efefef;
  border: 1px solid #a4a4a4;
}

.login-panel {
  max-width: 520px;
}

.login-form {
  max-width: 360px;
}

.inquiry-cta-panel {
  padding-top: 18px;
  padding-bottom: 18px;
}

.inquiry-cta-head {
  justify-content: center;
  text-align: center;
}

.inquiry-cta-center {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.inquiry-cta-button {
  min-width: 320px;
  min-height: 64px;
  padding: 0 26px;
  font-size: 22px;
  font-weight: 700;
}

.success-modal-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(19, 28, 41, 0.45);
  z-index: 50;
}

.success-modal {
  width: min(100%, 460px);
  padding: 18px;
  background: linear-gradient(#dfdfdf, #d1d1d1);
  text-align: center;
}

.success-modal p {
  margin: 10px 0 18px;
}

.settings-subtitle {
  margin-top: 16px;
}

.calendar-summary {
  background: linear-gradient(#dedede, #d2d2d2);
}

.calendar-income-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.income-box {
  padding: 10px 12px;
  background: #efefef;
  border: 1px solid #989898;
}

.income-box span {
  display: block;
  font-size: 12px;
  color: #4d4d4d;
  margin-bottom: 4px;
}

.income-box strong {
  font-size: 22px;
  color: var(--accent);
}

.income-box small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #4d4d4d;
}

.month-list-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #3f3f3f;
}

.preserve-lines {
  white-space: pre-line;
}

.row-count-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 5px;
  font-size: 11px;
  font-weight: 700;
  color: #0a2f7a;
  background: #d9e5ff;
  border: 1px solid #8da6d6;
}

.month-list-day-cell {
  vertical-align: top;
  background: #ececec;
}

.month-list-entry-row td {
  background: #f7f7f7;
}

.month-list-event-row td {
  background: #f1f1f1;
}

.list-booking-block,
.list-cell-block,
.list-event-block {
  margin-bottom: 5px;
  padding: 4px 5px;
  background: #f6f6f6;
  border: 1px solid #b2b2b2;
}

.list-booking-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.list-booking-index {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.export-box {
  padding: 10px 12px;
  background: #efefef;
  border: 1px solid #989898;
}

.export-url,
.export-help {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  word-break: break-word;
  color: #3f3f3f;
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .two-col,
  .form-columns {
    grid-template-columns: 1fr;
  }
}

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

  .workspace-window {
    overflow: hidden;
  }

  .window-titlebar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .window-controls {
    margin-left: auto;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .menubar {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 6px;
    align-items: stretch;
  }

  .workspace-window.mobile-menu-open .menubar {
    display: flex;
  }

  .menu-item,
  .menubar-statuses,
  .menu-label,
  .menu-dropdown,
  .menu-dropdown a {
    width: 100%;
  }

  .menubar-statuses {
    margin-left: 0;
    margin-top: 6px;
    flex-direction: column;
    align-items: stretch;
  }

  .menu-label {
    padding: 8px 10px;
  }

  .has-dropdown::after {
    display: none;
  }

  .menu-dropdown {
    display: block;
    position: static;
    min-width: 0;
    margin-top: 2px;
    box-shadow: none;
  }

  .sidebar {
    display: none;
  }

  .topbar,
  .section-head,
  .compact-head {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-meta {
    width: 100%;
    justify-content: center;
  }

  .view-switch,
  .inline-form {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .tab-button,
  .toolbar-btn {
    white-space: nowrap;
  }

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

  .weekday {
    display: none;
  }

  .calendar-cell {
    min-height: 0;
  }

  .calendar-grid-desktop,
  .month-list-desktop {
    display: none;
  }

  .mobile-calendar-list,
  .mobile-month-list {
    display: block;
  }

  .data-table {
    min-width: 720px;
  }

  .inquiry-cta-button {
    min-width: 100%;
    font-size: 19px;
  }
}
