/* VenueOS visual system v2 — premium editorial operations, October 2026 */
:root {
  --sidebar: 268px;
  --topbar: 76px;
  --canvas: #f4f0e7;
  --surface: #fffdf8;
  --surface-muted: #ece6da;
  --ink: #181919;
  --muted: #5d625f;
  --line: rgba(24, 25, 25, .15);
  --line-strong: rgba(24, 25, 25, .28);
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 0 rgba(24,25,25,.08), 0 12px 34px rgba(24,25,25,.035);
  --shadow-lg: 0 30px 70px rgba(16,18,17,.18);
}

body {
  font-size: 16px;
  line-height: 1.55;
  background:
    linear-gradient(rgba(24,25,25,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,25,25,.018) 1px, transparent 1px),
    var(--canvas);
  background-size: 32px 32px;
}

.sidebar {
  padding: 25px 18px 18px;
  background: #161817;
  border-right-color: rgba(244,240,231,.12);
}
.brand-lockup { min-height: 44px; padding: 0 10px; gap: 13px; }
.brand-mark { width: 35px; height: 35px; border-radius: 9px; font-size: 17px; }
.brand-lockup b { font-size: 15px; }
.brand-lockup small { color: #c6cac8; font-size: 10px; }
.property-switcher { margin: 27px 0 28px; padding: 13px; min-height: 66px; border-radius: 11px; background: rgba(244,240,231,.045); }
.property-switcher b { font-size: 13px; }
.property-switcher em { font-size: 10px; }
.nav-label { margin: 0 12px 9px; color: #8e9691; font-size: 10px; }
.sidebar nav { gap: 5px; }
.sidebar nav button { min-height: 48px; padding: 0 13px; border-radius: 9px; color: #bdc3bf; font-size: 13px; }
.sidebar nav button.active { background: rgba(244,240,231,.1); box-shadow: inset 3px 0 var(--amber); }
.sidebar-insight { margin: auto 10px 17px; padding-top: 18px; }
.sidebar-insight > div, .sidebar-insight > div b { font-size: 11px; }
.sidebar-insight > small { font-size: 10px; }
.licence-link { padding-top: 13px; font-size: 10px; }
.profile { min-height: 58px; padding: 11px 10px; }
.profile b { font-size: 12px; }
.profile small { font-size: 10px; }

.topbar {
  padding: 0 38px;
  background: rgba(244,240,231,.92);
  border-color: rgba(24,25,25,.14);
  backdrop-filter: blur(22px) saturate(130%);
}
.topbar-left span { font-size: 11px; }
.topbar h1 { font-size: 21px; letter-spacing: -.035em; }
.search-button { min-width: 230px; height: 42px; padding: 0 13px; background: rgba(255,253,248,.65); font-size: 12px; }
.icon-button { width: 42px; height: 42px; background: rgba(255,253,248,.78); }
.topbar .button { min-height: 42px; padding: 0 18px; }

.page { max-width: 1640px; padding: 42px 42px 64px; }
.page-header { min-height: 112px; margin-bottom: 30px; align-items: flex-end; }
.page-header h2 { margin: 8px 0 7px; font-size: clamp(36px, 3.2vw, 52px); line-height: 1; letter-spacing: -.055em; }
.page-header p { max-width: 720px; font-size: 15px; line-height: 1.65; }
.context-label, .section-kicker { color: #676c68; font-size: 11px; letter-spacing: .13em; }
.greeting-header { min-height: 112px; align-items: flex-end; }
.greeting-header h2 { margin-top: 8px; font-size: clamp(38px, 3.8vw, 58px); line-height: .98; letter-spacing: -.06em; }
.greeting-header > div > p:last-child { margin-top: 11px; color: var(--muted); font-size: 15px; }

.button { min-height: 44px; padding: 0 18px; border-radius: 9px; font-size: 12px; }
.button.primary { color: var(--ivory, #f4f0e7); box-shadow: 0 8px 20px rgba(24,25,25,.12); }
.surface { border-color: var(--line); box-shadow: var(--shadow-sm); }
.section-header h3 { margin-top: 7px; font-size: 20px; line-height: 1.2; letter-spacing: -.035em; }

.metrics-grid, .finance-metrics {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
  overflow: visible;
  border: 0;
  background: transparent;
}
.metric-card, .finance-metrics article {
  position: relative;
  min-height: 152px;
  padding: 22px 23px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,253,248,.92);
  box-shadow: var(--shadow-sm);
}
.metric-card:last-child, .finance-metrics article:last-child { border-right: 1px solid var(--line); }
.metric-card::before, .finance-metrics article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--amber);
  opacity: .9;
}
.metric-card:nth-child(2)::before, .finance-metrics article:nth-child(2)::before { background: #8b7150; }
.metric-card:nth-child(3)::before, .finance-metrics article:nth-child(3)::before { background: #69736d; }
.metric-card:nth-child(4)::before, .finance-metrics article:nth-child(4)::before { background: var(--red); }
.metric-card span, .finance-metrics span { font-size: 12px; }
.metric-card em { font-size: 10px; }
.metric-card > b, .finance-metrics b { margin-top: 18px; font-size: 36px; line-height: .95; letter-spacing: -.06em; }
.metric-card > small, .finance-metrics small { font-size: 11px; }

.demo-command {
  position: relative;
  margin-bottom: 18px;
  padding: 28px;
  overflow: hidden;
  color: #f4f0e7;
  border: 1px solid #181919;
  border-radius: 15px;
  background:
    radial-gradient(circle at 82% 18%, rgba(244,187,98,.13), transparent 30%),
    #181919;
  box-shadow: 0 22px 48px rgba(24,25,25,.14);
}
.demo-command::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -155px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(244,187,98,.15);
  border-radius: 50%;
  pointer-events: none;
}
.demo-command .section-kicker, .demo-command .context-label { color: var(--amber); }
.demo-command h3 { margin-top: 8px; font-size: 29px; letter-spacing: -.045em; }
.demo-command header p { color: #b9bfbb; font-size: 12px; }
.demo-command #reset-demo { color: #d9ddd9; }
.demo-journey { position: relative; z-index: 1; margin-top: 24px; border-color: rgba(244,240,231,.18); background: rgba(244,240,231,.035); }
.demo-journey button { min-height: 108px; padding: 17px; color: #f4f0e7; border-color: rgba(244,240,231,.15); }
.demo-journey button:hover, .demo-journey button.complete { background: rgba(244,240,231,.08); }
.demo-journey button.current { color: #181919; background: var(--amber); box-shadow: none; }
.demo-journey i { width: 30px; height: 30px; color: #b8bdb9; border-color: rgba(244,240,231,.26); font-size: 10px; }
.demo-journey .complete i { border-color: var(--amber); background: var(--amber); color: #181919; }
.demo-journey b { font-size: 12px; }
.demo-journey small { margin-top: 6px; color: #aeb3af; font-size: 10px; }
.demo-journey .current small { color: rgba(24,25,25,.7); }
.demo-command > footer { position: relative; z-index: 1; margin-top: 19px; padding-top: 19px; border-color: rgba(244,240,231,.16); }
.demo-command > footer span { color: var(--amber); font-size: 10px; }
.demo-command > footer b { font-size: 15px; }
.demo-command > footer small { color: #aeb3af; font-size: 11px; }
.demo-command > footer .button { color: #181919; border-color: var(--amber); background: var(--amber); box-shadow: none; }

.today-grid { grid-template-columns: minmax(0, 1.5fr) minmax(380px, .82fr); gap: 18px; }
.schedule-panel, .attention-panel { min-height: 440px; padding: 25px; }
.timeline-schedule { margin-top: 19px; }
.timeline-schedule article { min-height: 98px; grid-template-columns: 56px 13px 42px 1fr 34px; gap: 13px; }
.timeline-schedule .time b { font-size: 12px; }
.timeline-schedule .time small { font-size: 9px; }
.event-icon { width: 38px; height: 38px; }
.schedule-copy b { font-size: 13px; }
.schedule-copy p { margin-top: 5px; font-size: 11px; }
.schedule-copy small { margin-top: 4px; font-size: 10px; }
.attention-list { margin-top: 17px; }
.attention-list button { min-height: 78px; gap: 13px; }
.attention-list b { font-size: 13px; }
.attention-list small { margin-top: 4px; font-size: 11px; }
.attention-list em { font-size: 10px; }
.attention-footer { min-height: 52px; font-size: 11px; }

.insight-grid { gap: 18px; margin-top: 18px; }
.pipeline-overview, .availability-overview, .collection-overview { min-height: 235px; padding: 24px; }
.pipeline-bars { margin-top: 22px; }
.pipeline-bars button b { font-size: 12px; }
.pipeline-bars button em, .pipeline-bars small { font-size: 10px; }
.availability-week { margin-top: 20px; }
.availability-week button { min-height: 100px; }
.collection-overview h3 { font-size: 22px; }

.toolbar { margin-bottom: 16px; }
.workspace-search { min-height: 44px; }
.filter-button, .view-switch button { min-height: 40px; font-size: 11px; }
.kanban { gap: 12px; }
.kanban > section { padding: 12px; border-radius: 12px; background: rgba(227,229,224,.58); }
.kanban > section > header { min-height: 40px; }
.kanban > section > header span { font-size: 12px; }
.kanban article { padding: 16px; border-radius: 10px; background: #fffdf8; box-shadow: 0 7px 18px rgba(24,25,25,.05); }
.kanban article h3 { font-size: 15px; line-height: 1.35; }
.kanban article > p { font-size: 11px; }
.kanban dt, .kanban footer { font-size: 10px; }
.kanban dd { font-size: 11px; }

.calendar-surface, .bookings-table, .booking-detail, .receivables, .collection-card, .setup-summary article, .team-panel {
  background: rgba(255,253,248,.94);
}
.calendar-surface { padding: 22px; }
.month-cell { min-height: 116px; }
.booking-metrics article { min-height: 132px; padding: 21px; }
.booking-metrics b { font-size: 30px; }
.booking-row { min-height: 78px; font-size: 12px; }
.booking-row em b { font-size: 13px; }
.booking-row small { font-size: 10px; }
.receivable-row { min-height: 70px; font-size: 12px; }
.receivable-row small { font-size: 10px; }
.booking-documents { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.booking-documents .button { text-decoration: none; }

.modal-card, .detail-drawer > aside, .pricing-drawer > aside { box-shadow: var(--shadow-lg); }
.modal-card h2, .detail-drawer h2, .pricing-drawer h2 { letter-spacing: -.045em; }

@media (min-width: 1440px) {
  .page { padding-left: 50px; padding-right: 50px; }
}

@media (max-width: 1100px) {
  :root { --sidebar: 238px; }
  .page { padding: 32px 26px 52px; }
  .metrics-grid, .finance-metrics { grid-template-columns: 1fr 1fr; }
  .today-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; background: var(--canvas); }
  .topbar { height: 64px; padding: 0 14px; }
  .topbar h1 { font-size: 19px; }
  .page { padding: 27px 14px calc(104px + env(safe-area-inset-bottom)); }
  .greeting-header, .page-header { min-height: 0; align-items: flex-start; margin-bottom: 23px; }
  .greeting-header h2, .page-header h2 { font-size: 34px; line-height: 1.02; }
  .greeting-header > div > p:last-child, .page-header p { font-size: 14px; }
  .metrics-grid, .finance-metrics { gap: 9px; }
  .metric-card, .finance-metrics article { min-height: 139px; padding: 18px 16px 16px; }
  .metric-card > b, .finance-metrics b { font-size: 31px; }
  .metric-card span, .finance-metrics span { font-size: 11px; }
  .demo-command { padding: 20px 17px; }
  .demo-command h3 { font-size: 25px; line-height: 1.08; }
  .demo-journey { margin-top: 20px; }
  .demo-journey button { flex-basis: 188px; min-height: 105px; }
  .demo-command > footer b { font-size: 14px; }
  .schedule-panel, .attention-panel { min-height: auto; padding: 20px 17px; }
  .timeline-schedule article { min-height: 98px; grid-template-columns: 50px 12px 38px 1fr 24px; gap: 9px; }
  .insight-grid { gap: 12px; }
  .pipeline-overview, .availability-overview, .collection-overview { padding: 20px 17px; }
  .kanban > section { flex-basis: 292px; }
  .kanban article { padding: 17px; }
  .mobile-nav { min-height: calc(68px + env(safe-area-inset-bottom)); background: #181919; border-color: #2b2d2c; }
  .mobile-nav button { color: #aeb3af; font-size: 10px; }
  .mobile-nav button.active { color: var(--amber); }
  .mobile-nav button.active::before { height: 3px; background: var(--amber); }
  .booking-documents { grid-template-columns: 1fr; }
}

/* Micro-typography correction — hierarchy through type voice, not size inflation */
body { font-size: 15px; }
.topbar h1 { font-size: 19px; }
.page { padding-top: 36px; }
.page-header { min-height: 98px; margin-bottom: 26px; }
.page-header h2 { font-size: clamp(34px, 2.7vw, 44px); }
.greeting-header { min-height: 98px; }
.greeting-header h2 { font-size: clamp(38px, 3.15vw, 48px); }
.greeting-header > div > p:last-child,
.page-header p {
  color: #555a56;
  font-family: "Manrope", sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: -.01em;
}

.context-label,
.section-kicker,
.nav-label,
.demo-command > footer span,
.team-head,
.calendar-weekdays,
.table-head {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.property-switcher small,
.brand-lockup small,
.profile small,
.sidebar-insight > small,
.metric-card em,
.timeline-schedule .time small,
.kanban dt,
.kanban footer,
.booking-row small,
.receivable-row small,
.status {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .015em;
}

.metric-card span,
.finance-metrics span,
.metric-card > small,
.finance-metrics small,
.demo-command header p,
.demo-journey small,
.schedule-copy p,
.schedule-copy small,
.attention-list small,
.kanban article > p,
.page-header .supporting-copy,
.booking-detail p,
.drawer-section > p {
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  letter-spacing: -.008em;
}

.metric-card, .finance-metrics article { min-height: 140px; padding: 20px 22px 18px; }
.metric-card span, .finance-metrics span { font-size: 11.5px; }
.metric-card > b, .finance-metrics b { margin-top: 16px; font-size: 32px; }
.metric-card > small, .finance-metrics small { font-size: 10.5px; line-height: 1.45; }
.section-header h3 { font-size: 18px; }
.demo-command { padding: 25px; }
.demo-command h3 { font-size: 26px; }
.demo-command header p { font-size: 11.5px; line-height: 1.55; }
.demo-journey button { min-height: 101px; padding: 15px; }
.demo-journey b { font-size: 11.5px; }
.demo-journey small { font-size: 9.5px; line-height: 1.45; }
.demo-command > footer b { font-size: 13px; }
.demo-command > footer small { font-size: 10.5px; line-height: 1.5; }
.schedule-copy b, .attention-list b { font-size: 12.5px; }
.schedule-copy p, .attention-list small { font-size: 10.5px; line-height: 1.5; }
.schedule-copy small { font-size: 9.75px; }
.kanban article h3 { font-size: 14px; }
.kanban article > p { font-size: 10.5px; line-height: 1.55; }
.kanban dd { font-size: 10.5px; }

@media (max-width: 720px) {
  body { font-size: 15px; }
  .greeting-header h2, .page-header h2 { font-size: 31px; }
  .greeting-header > div > p:last-child, .page-header p { font-size: 13px; }
  .metric-card, .finance-metrics article { min-height: 126px; padding: 16px 15px; }
  .metric-card > b, .finance-metrics b { font-size: 28px; }
  .context-label, .section-kicker { font-size: 9.5px; }
  .demo-command h3 { font-size: 22px; }
  .demo-command header p { font-size: 10.5px; }
  .demo-command > footer b { font-size: 12.5px; }
}
