:root {
  --canvas: #f4f0e7;
  --surface: #fffdf8;
  --surface-muted: #eee8dd;
  --ink: #181919;
  --ink-soft: #343635;
  --muted: #646965;
  --muted-light: #858b87;
  --line: #d7d0c4;
  --line-strong: #c6cac8;
  --teal: #181919;
  --teal-hover: #2b2d2c;
  --teal-soft: #e7e4dc;
  --champagne: #8b7150;
  --champagne-soft: #eee4d6;
  --amber: #f4bb62;
  --green: #36745b;
  --green-soft: #e8f2ed;
  --red: #a54b49;
  --red-soft: #f8ebea;
  --warning: #9a6a22;
  --warning-soft: #fbf1df;
  --sidebar: 244px;
  --topbar: 68px;
  --radius-sm: 7px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(18, 36, 40, 0.04);
  --shadow-lg: 0 24px 64px rgba(20, 37, 40, 0.15);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

* { box-sizing: border-box; }
html { min-width: 320px; overflow-x: hidden; background: var(--canvas); }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--canvas); font-family: "Manrope", sans-serif; font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, [role="button"] { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(23, 61, 67, .18); outline-offset: 2px; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app-shell { min-height: 100vh; }

/* Shell */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--sidebar); display: flex; flex-direction: column; padding: 20px 14px 14px; color: #d8e1e1; background: var(--teal); border-right: 1px solid rgba(255,255,255,.05); }
.brand-lockup { display: flex; align-items: center; min-height: 38px; padding: 0 8px; gap: 11px; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; color: var(--amber); border: 1px solid rgba(244,187,98,.34); border-radius: 8px; font: 600 15px "Instrument Serif"; }
.brand-lockup > span:nth-child(2) { display: flex; flex-direction: column; }
.brand-lockup b { color: #fff; font-size: 13px; letter-spacing: .02em; }
.brand-lockup small { color: #92a7a9; font: 500 9px "IBM Plex Mono"; letter-spacing: .13em; text-transform: uppercase; }
.sidebar-close { display: none; margin-left: auto; border: 0; background: transparent; color: #fff; font-size: 24px; }
.property-switcher { width: 100%; display: grid; grid-template-columns: 32px 1fr 16px; align-items: center; gap: 10px; margin: 22px 0 24px; padding: 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; color: inherit; background: rgba(255,255,255,.04); text-align: left; cursor: pointer; }
.property-switcher:hover { background: rgba(255,255,255,.07); }
.property-monogram { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 7px; background: var(--champagne); color: #fff; font: 600 9px "IBM Plex Mono"; }
.property-switcher > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.property-switcher small { color: #88a0a2; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.property-switcher b { margin-top: 2px; overflow: hidden; color: #fff; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.property-switcher em { color: #9cafb0; font-size: 9px; font-style: normal; }
.property-switcher svg { width: 14px; }
.nav-label { margin: 0 10px 8px; color: #799294; font: 500 9px "IBM Plex Mono"; letter-spacing: .12em; text-transform: uppercase; }
.sidebar nav { display: grid; gap: 3px; }
.sidebar nav button { position: relative; width: 100%; min-height: 42px; display: grid; grid-template-columns: 21px 1fr auto; align-items: center; gap: 9px; padding: 0 11px; color: #aebfc0; border: 0; border-radius: 8px; background: transparent; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; transition: background .16s ease, color .16s ease; }
.sidebar nav button:hover { color: #fff; background: rgba(255,255,255,.045); }
.sidebar nav button.active { color: #fff; background: rgba(255,255,255,.09); box-shadow: inset 2px 0 var(--amber); }
.sidebar nav button.active svg { color: var(--amber); }
.sidebar nav button svg { width: 16px; height: 16px; }
.sidebar nav button em { min-width: 22px; padding: 3px 6px; color: #c5d2d2; background: rgba(255,255,255,.08); border-radius: 10px; font: 500 9px "IBM Plex Mono"; font-style: normal; text-align: center; }
.sidebar nav button > i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.sidebar-insight { margin: auto 8px 16px; padding: 14px 0 0; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-insight > div { display: flex; justify-content: space-between; color: #9bb0b1; font-size: 10px; }
.sidebar-insight > div b { color: #fff; font: 500 10px "IBM Plex Mono"; }
.sidebar-insight > i { height: 3px; display: block; margin: 9px 0 7px; overflow: hidden; background: rgba(255,255,255,.1); border-radius: 3px; }
.sidebar-insight > i b { width: 72%; height: 100%; display: block; background: var(--amber); }
.sidebar-insight > small { color: #82999b; font-size: 9px; }
.licence-link { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 9px 0 0; color: var(--amber); border: 0; border-top: 1px solid rgba(255,255,255,.08); background: transparent; font-size: 8px; font-weight: 700; cursor: pointer; }
.licence-link svg { width: 12px; transition: transform .16s ease; }
.licence-link:hover svg { transform: translateX(2px); }
.profile { width: 100%; display: grid; grid-template-columns: 31px 1fr 18px; align-items: center; gap: 9px; padding: 10px 8px; color: #fff; border: 0; border-top: 1px solid rgba(255,255,255,.09); background: transparent; text-align: left; cursor: pointer; }
.profile > span:first-child { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.09); font: 500 9px "IBM Plex Mono"; }
.profile > span:nth-child(2) { display: flex; flex-direction: column; }
.profile b { font-size: 10px; }
.profile small { color: #8da3a5; font-size: 9px; }
.profile svg { width: 16px; color: #7e9698; }
.sidebar-shade { display: none; }

.workspace { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 40; height: var(--topbar); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: rgba(255,255,255,.93); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-left > div { display: flex; align-items: baseline; gap: 10px; }
.topbar-left span { color: var(--muted); font-size: 10px; }
.topbar h1 { margin: 0; font-size: 15px; font-weight: 700; }
.menu-button { display: none; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.search-button { min-width: 210px; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; background: var(--surface-muted); font-size: 11px; cursor: pointer; }
.search-button svg { width: 15px; }
.search-button kbd { margin-left: auto; padding: 2px 5px; color: var(--muted-light); border: 1px solid var(--line); border-radius: 4px; background: #fff; font: 500 9px "IBM Plex Mono"; }
.icon-button { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.notification-button i { position: absolute; right: 8px; top: 7px; width: 5px; height: 5px; border: 1px solid #fff; border-radius: 50%; background: var(--red); }

/* Shared controls */
.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border: 1px solid transparent; border-radius: 8px; font-size: 11px; font-weight: 700; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-1px); }
.button svg { width: 15px; height: 15px; }
.button.primary { color: #fff; background: var(--teal); border-color: var(--teal); }
.button.primary:hover { background: var(--teal-hover); }
.button.secondary { color: var(--ink); background: #fff; border-color: var(--line-strong); }
.button.secondary:hover { background: var(--surface-muted); border-color: #c3cdce; }
.button.full { width: 100%; }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 0; color: var(--teal); border: 0; background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.text-button svg { width: 13px; transition: transform .16s ease; }
.text-button:hover svg { transform: translateX(2px); }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.page { display: none; max-width: 1536px; margin: 0 auto; padding: 28px 30px 46px; animation: page-in .22s var(--ease); }
.page.active { display: block; }
@keyframes page-in { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page-header { min-height: 86px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-header h2 { margin: 3px 0 4px; font-size: clamp(25px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -.035em; }
.page-header p { margin: 0; color: var(--muted); font-size: 12px; }
.context-label, .section-kicker { display: block; color: var(--muted); font: 600 9px "IBM Plex Mono"; letter-spacing: .1em; text-transform: uppercase; }
.header-actions { display: flex; gap: 8px; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-header h3 { margin: 4px 0 0; font-size: 15px; letter-spacing: -.015em; }

/* Today */
.greeting-header { min-height: 78px; }
.greeting-header h2 { font-size: 29px; }
.metrics-grid, .finance-metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.metric-card, .finance-metrics article { min-height: 116px; display: flex; flex-direction: column; padding: 17px 18px; border-right: 1px solid var(--line); }
.metric-card:last-child, .finance-metrics article:last-child { border-right: 0; }
.metric-card > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.metric-card span, .finance-metrics span { color: var(--muted); font-size: 10px; font-weight: 600; }
.metric-card em { color: var(--muted-light); font: 500 8px "IBM Plex Mono"; font-style: normal; }
.metric-card .trend { padding: 3px 5px; border-radius: 4px; }
.metric-card .positive { color: var(--green); background: var(--green-soft); }
.metric-card .warning { color: var(--warning); background: var(--warning-soft); }
.metric-card > b, .finance-metrics b { margin-top: 11px; font-size: 25px; letter-spacing: -.04em; }
.metric-card > small, .finance-metrics small { margin-top: auto; color: var(--muted); font-size: 9px; }
.today-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, .75fr); gap: 14px; }
.schedule-panel, .attention-panel { min-height: 385px; padding: 20px; }
.timeline-schedule { margin-top: 15px; }
.timeline-schedule article { position: relative; min-height: 86px; display: grid; grid-template-columns: 50px 12px 37px 1fr 28px; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.timeline-schedule .time { display: flex; flex-direction: column; align-items: flex-end; }
.timeline-schedule .time b { font: 600 11px "IBM Plex Mono"; }
.timeline-schedule .time small { color: var(--muted); font: 500 8px "IBM Plex Mono"; }
.schedule-line { position: relative; width: 1px; height: 100%; justify-self: center; background: var(--line); }
.schedule-line::after { content: ""; position: absolute; left: -3px; top: 50%; width: 7px; height: 7px; transform: translateY(-50%); border: 2px solid #fff; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.event-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 8px; font: 600 9px "IBM Plex Mono"; }
.event-icon.teal { color: var(--teal); background: var(--teal-soft); }
.event-icon.champagne { color: #795e37; background: var(--champagne-soft); }
.event-icon.muted { color: var(--muted); background: #eef1f1; }
.schedule-copy { min-width: 0; }
.schedule-copy > div { display: flex; align-items: center; gap: 8px; }
.schedule-copy b { font-size: 11px; }
.schedule-copy p { margin: 3px 0 1px; font-size: 10px; }
.schedule-copy small { color: var(--muted); font-size: 9px; }
.status { display: inline-flex; align-items: center; width: max-content; padding: 3px 6px; border-radius: 5px; font-size: 8px; font-weight: 700; font-style: normal; white-space: nowrap; }
.status.confirmed, .status.paid { color: var(--green); background: var(--green-soft); }
.status.ready, .status.visit { color: var(--teal); background: var(--teal-soft); }
.status.neutral, .status.upcoming { color: var(--muted); background: #eef1f1; }
.status.due, .status.quote, .status.high { color: var(--warning); background: var(--warning-soft); }
.status.overdue { color: var(--red); background: var(--red-soft); }
.status.new { color: #53697a; background: #e9eff3; }
.row-action { width: 28px; height: 28px; display: grid; place-items: center; color: var(--muted); border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.row-action:hover { background: var(--surface-muted); }
.row-action svg { width: 13px; }
.count-badge { width: 26px; height: 26px; display: grid; place-items: center; color: var(--teal); border-radius: 50%; background: var(--teal-soft); font: 600 9px "IBM Plex Mono"; }
.attention-list { margin-top: 15px; border-top: 1px solid var(--line); }
.attention-list button { width: 100%; display: grid; grid-template-columns: 33px 1fr auto; align-items: center; gap: 10px; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.attention-list button:hover { background: var(--surface-muted); }
.attention-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 7px; }
.attention-icon svg { width: 14px; }
.attention-icon.urgent { color: var(--red); background: var(--red-soft); }
.attention-icon.hold { color: var(--warning); background: var(--warning-soft); }
.attention-icon.payment { color: var(--teal); background: var(--teal-soft); }
.attention-icon.quiet { color: var(--muted); background: #eef1f1; }
.attention-list button > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.attention-list b { overflow: hidden; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.attention-list small { margin-top: 2px; color: var(--muted); font-size: 8.5px; }
.attention-list em { color: var(--muted); font: 500 8px "IBM Plex Mono"; font-style: normal; }
.attention-footer { width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; padding: 8px; color: var(--teal); border: 0; background: transparent; font-size: 9px; font-weight: 700; cursor: pointer; }
.attention-footer svg { width: 12px; }
.secondary-grid { display: grid; grid-template-columns: minmax(410px, 1.35fr) minmax(360px, 1fr) minmax(260px, .65fr); gap: 14px; margin-top: 14px; }
.pipeline-overview, .availability-overview, .collection-overview { min-height: 232px; padding: 18px; }
.pipeline-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 28px; }
.pipeline-bars button { display: flex; flex-direction: column; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.pipeline-bars button > span { display: flex; align-items: baseline; justify-content: space-between; }
.pipeline-bars button b { font-size: 9px; }
.pipeline-bars button em { color: var(--muted); font: 500 9px "IBM Plex Mono"; font-style: normal; }
.pipeline-bars button > i { height: 46px; display: flex; align-items: end; margin: 7px 0; background: #f0f2f2; }
.pipeline-bars button > i b { width: 100%; height: var(--value); min-height: 5px; background: var(--teal); opacity: .88; transition: height .25s var(--ease); }
.pipeline-bars button:hover > i b { background: var(--champagne); }
.pipeline-bars small { color: var(--muted); font: 500 8px "IBM Plex Mono"; }
.availability-week { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 21px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.availability-week button { min-height: 118px; display: flex; flex-direction: column; align-items: center; padding: 13px 5px; border: 0; border-right: 1px solid var(--line); background: #fff; cursor: pointer; }
.availability-week button:last-child { border-right: 0; }
.availability-week button:hover, .availability-week button.selected { background: var(--surface-muted); }
.availability-week small { color: var(--muted); font: 500 8px "IBM Plex Mono"; }
.availability-week b { margin-top: 7px; font-size: 17px; }
.availability-week i { width: 6px; height: 6px; margin: 11px 0 5px; border-radius: 50%; }
.availability-week i.open { background: #84a08d; }
.availability-week i.booked { background: var(--teal); }
.availability-week i.hold { background: var(--champagne); }
.availability-week em { color: var(--muted); font-size: 7.5px; font-style: normal; white-space: nowrap; }
.collection-progress { margin: 27px 0 16px; }
.collection-progress > i { height: 6px; display: block; overflow: hidden; border-radius: 6px; background: #edf0f0; }
.collection-progress > i b { width: 72%; height: 100%; display: block; background: var(--teal); }
.collection-progress > div { display: flex; justify-content: space-between; margin-top: 9px; }
.collection-progress span { display: flex; flex-direction: column; }
.collection-progress b { font: 600 10px "IBM Plex Mono"; }
.collection-progress small { color: var(--muted); font-size: 8px; }
.collection-overview > p { display: flex; justify-content: space-between; margin: 0; padding: 7px 0; border-top: 1px solid var(--line); font-size: 9px; }
.collection-overview > p span { color: var(--muted); }
.collection-overview > p b { font: 600 9px "IBM Plex Mono"; }
.overdue-text { color: var(--red) !important; }
.positive-text { color: var(--green) !important; }

/* Enquiries */
.toolbar { display: flex; align-items: center; gap: 7px; margin-bottom: 13px; }
.workspace-search { min-width: 270px; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.workspace-search svg { width: 15px; color: var(--muted); }
.workspace-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 10px; }
.filter-button { min-height: 34px; padding: 0 10px; color: var(--muted); border: 1px solid transparent; border-radius: 7px; background: transparent; font-size: 9px; font-weight: 700; cursor: pointer; }
.filter-button:hover, .filter-button.active { color: var(--teal); border-color: var(--line); background: #fff; }
.filter-button span { margin-left: 3px; padding: 2px 5px; border-radius: 8px; background: #edf1f1; font: 500 8px "IBM Plex Mono"; }
.filter-menu { min-height: 34px; margin-left: 3px; padding: 0 10px; color: var(--muted); background: transparent; border-color: var(--line); }
.view-switch { display: flex; margin-left: auto; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.view-switch button, .calendar-views button { min-height: 28px; padding: 0 11px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 700; cursor: pointer; }
.view-switch button.active, .calendar-views button.active { color: #fff; background: var(--teal); }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(205px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 10px; }
.kanban > section { min-width: 205px; min-height: 560px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #f0f3f2; }
.kanban > section > header { display: flex; align-items: center; justify-content: space-between; padding: 2px 3px 11px; }
.kanban > section > header span { display: flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 700; }
.kanban > section > header i { width: 6px; height: 6px; border-radius: 50%; background: #819399; }
.kanban > section:nth-child(2) > header i { background: #617d82; }
.kanban > section:nth-child(3) > header i { background: var(--champagne); }
.kanban > section:nth-child(4) > header i { background: var(--warning); }
.kanban > section:nth-child(5) > header i { background: var(--green); }
.kanban > section > header b { width: 21px; height: 21px; display: grid; place-items: center; color: var(--muted); border-radius: 6px; background: #fff; font: 500 8px "IBM Plex Mono"; }
.kanban article { margin-bottom: 8px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); cursor: pointer; transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.kanban article:hover { transform: translateY(-2px); border-color: #bec9ca; box-shadow: 0 7px 20px rgba(20,40,44,.06); }
.kanban article.won { border-left: 2px solid var(--green); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.avatar { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; color: var(--teal); background: var(--teal-soft); font: 600 8px "IBM Plex Mono"; }
.priority { padding: 3px 5px; color: var(--muted); border-radius: 4px; background: #f0f2f2; font-size: 7px; font-style: normal; font-weight: 700; }
.priority.high { color: var(--warning); background: var(--warning-soft); }
.priority.won-label { color: var(--green); background: var(--green-soft); }
.kanban article h3 { margin: 12px 0 3px; font-size: 11px; }
.kanban article > p { margin: 0 0 14px; color: var(--muted); font-size: 8.5px; }
.kanban dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 10px 0; border-top: 1px solid var(--line); }
.kanban dl div { display: flex; flex-direction: column; }
.kanban dt { color: var(--muted); font-size: 7px; }
.kanban dd { margin: 3px 0 0; font: 600 8px "IBM Plex Mono"; }
.kanban dd.due { color: var(--red); }
.kanban footer { display: flex; justify-content: space-between; padding-top: 9px; border-top: 1px solid var(--line); color: var(--muted); font-size: 7px; }
.enquiry-table { overflow: hidden; }
.table-row { display: grid; grid-template-columns: minmax(220px, 1.5fr) 110px 70px 120px 90px 120px; align-items: center; gap: 10px; min-height: 61px; padding: 0 16px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; font-size: 10px; }
button.table-row { width: 100%; cursor: pointer; }
button.table-row:hover { background: var(--surface-muted); }
.table-row > span:first-child { display: flex; flex-direction: column; }
.table-row small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.table-head { min-height: 37px; color: var(--muted); background: var(--surface-muted); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* Calendar */
.calendar-toolbar { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.calendar-navigation { display: flex; align-items: center; gap: 7px; }
.calendar-navigation h3 { min-width: 130px; margin: 0 5px; font-size: 14px; }
.calendar-navigation button { min-width: 30px; height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 9px; font-weight: 700; cursor: pointer; }
.calendar-views { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.legend { display: flex; align-items: center; gap: 13px; margin-left: auto; color: var(--muted); font-size: 8px; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; }
.legend-dot.available { background: #8ea494; }
.legend-dot.hold { background: var(--champagne); }
.legend-dot.confirmed { background: var(--teal); }
.legend-dot.blocked { background: #aeb6b8; }
.calendar-workspace { display: grid; grid-template-columns: minmax(640px, 1.6fr) minmax(310px, .6fr); gap: 12px; }
.calendar-surface { padding: 13px; overflow: hidden; }
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.month-cell { position: relative; min-width: 0; width: 100%; min-height: 100px; padding: 9px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; cursor: pointer; }
.month-cell:nth-child(7n) { border-right: 0; }
.month-cell.head { min-height: 31px; display: flex; align-items: center; color: var(--muted); background: var(--surface-muted); font: 600 8px "IBM Plex Mono"; cursor: default; }
.month-cell.muted { background: #fafbfb; cursor: default; }
.month-cell.selected { z-index: 1; background: var(--teal-soft); box-shadow: inset 0 0 0 2px var(--teal); }
.month-cell > b { display: block; margin-bottom: 8px; font: 600 10px "IBM Plex Mono"; }
.month-event { display: block; margin: 4px 0; padding: 4px 5px; overflow: hidden; border-left: 2px solid var(--teal); border-radius: 3px; color: var(--teal); background: var(--teal-soft); font-size: 7px; white-space: nowrap; text-overflow: ellipsis; }
.month-event.hold { color: #806039; border-color: var(--champagne); background: var(--champagne-soft); }
.date-panel { padding: 20px; }
.date-panel header { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.date-panel h3 { margin: 6px 0 2px; font-size: 18px; }
.date-panel header p { margin: 0; color: var(--muted); font-size: 9px; }
.demand-note { display: flex; flex-direction: column; margin: 15px 0; padding: 10px; border-left: 2px solid var(--champagne); background: var(--champagne-soft); }
.demand-note span { font-size: 9px; font-weight: 700; }
.demand-note small { margin-top: 2px; color: #735f45; font-size: 8px; }
.date-panel > section { padding: 14px 0; border-top: 1px solid var(--line); }
.shift-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.shift-title span { display: flex; align-items: center; gap: 7px; }
.shift-title b { font-size: 9px; }
.shift-title em { color: var(--muted); font-size: 8px; font-style: normal; }
.date-panel article { display: grid; grid-template-columns: 31px 1fr 25px; align-items: center; gap: 9px; }
.date-panel article > span { width: 31px; height: 31px; display: grid; place-items: center; color: var(--teal); border-radius: 7px; background: var(--teal-soft); font: 600 8px "IBM Plex Mono"; }
.date-panel article > div { display: flex; flex-direction: column; }
.date-panel article b { font-size: 9px; }
.date-panel article small, .date-panel article p { margin: 2px 0 0; color: var(--muted); font-size: 8px; }
.date-panel article button { width: 25px; height: 25px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; }
.date-panel article svg { width: 12px; }
.shift-board { margin-top: 12px; padding: 18px; }
.shift-board > header > span { color: var(--muted); font: 500 8px "IBM Plex Mono"; }
.shift-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 16px; }
.shift-grid article { padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.shift-grid article header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 9px; }
.shift-grid article header b { font: 600 10px "IBM Plex Mono"; }
.shift-grid article header small { color: var(--muted); font-size: 8px; }
.shift-grid article p { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 7px 0; border-top: 1px solid var(--line); font-size: 8px; }
.slot { padding: 3px 5px; border-radius: 4px; font-size: 7px; font-style: normal; font-weight: 700; }
.slot.open { color: var(--green); background: var(--green-soft); }
.slot.booked { color: #fff; background: var(--teal); }
.slot.on-hold { color: #7b5e38; background: var(--champagne-soft); }

/* Bookings */
.booking-metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.booking-metrics article { min-height: 82px; display: flex; flex-direction: column; padding: 14px 16px; border-right: 1px solid var(--line); }
.booking-metrics article:last-child { border-right: 0; }
.booking-metrics span { color: var(--muted); font-size: 9px; }
.booking-metrics b { margin-top: 6px; font-size: 20px; letter-spacing: -.03em; }
.booking-metrics small { margin-top: auto; color: var(--muted); font-size: 8px; }
.booking-workspace { display: grid; grid-template-columns: minmax(600px, 1.25fr) minmax(340px, .75fr); gap: 12px; }
.bookings-table { overflow: hidden; }
.list-toolbar { display: flex; gap: 8px; padding: 13px; border-bottom: 1px solid var(--line); }
.list-toolbar .workspace-search { min-width: 0; flex: 1; }
.booking-row { width: 100%; min-height: 76px; display: grid; grid-template-columns: minmax(220px, 1.5fr) minmax(120px, .8fr) 62px 75px 105px; align-items: center; gap: 12px; padding: 0 14px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; font-size: 9px; }
button.booking-row { cursor: pointer; }
button.booking-row:hover { background: var(--surface-muted); }
button.booking-row.active { background: #f3f7f6; box-shadow: inset 2px 0 var(--teal); }
.booking-head { min-height: 34px; color: var(--muted); background: var(--surface-muted); font-size: 7px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.booking-row > span:first-child { display: flex; align-items: center; gap: 10px; }
.date-tile { width: 36px; height: 39px; display: grid; place-items: center; align-content: center; flex: none; border: 1px solid var(--line); border-radius: 7px; font-style: normal; }
.date-tile b { font-size: 12px; line-height: 1; }
.date-tile small { margin-top: 3px; color: var(--muted); font: 500 7px "IBM Plex Mono"; }
.booking-row em:not(.status) { min-width: 0; display: flex; flex-direction: column; font-style: normal; }
.booking-row em b { font-size: 10px; }
.booking-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 7.5px; }
.booking-detail { padding: 18px; }
.booking-detail > header { display: flex; justify-content: space-between; gap: 12px; }
.booking-detail h3 { margin: 5px 0 2px; font-size: 19px; }
.booking-detail header p { margin: 0; color: var(--muted); font-size: 9px; }
.booking-detail header button { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.detail-tabs { display: flex; gap: 18px; margin-top: 17px; border-bottom: 1px solid var(--line); }
.detail-tabs button { min-height: 34px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 8px; font-weight: 700; cursor: pointer; }
.detail-tabs button.active { color: var(--teal); border-color: var(--teal); }
.booking-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin: 15px 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.booking-summary div { display: flex; flex-direction: column; padding: 10px; border-right: 1px solid var(--line); }
.booking-summary div:last-child { border-right: 0; }
.booking-summary span { color: var(--muted); font-size: 7px; }
.booking-summary b { margin-top: 4px; font: 600 10px "IBM Plex Mono"; }
.detail-section { padding: 14px 0; border-top: 1px solid var(--line); }
.detail-section h4 { margin: 0 0 10px; font-size: 9px; }
.contact-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.contact-pair article { display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 7px; }
.contact-pair article > span { width: 27px; height: 27px; display: grid; place-items: center; flex: none; border-radius: 6px; background: var(--teal-soft); color: var(--teal); font: 600 7px "IBM Plex Mono"; }
.contact-pair div { display: flex; flex-direction: column; min-width: 0; }
.contact-pair small, .contact-pair p { margin: 0; color: var(--muted); font-size: 7px; }
.contact-pair b { margin: 2px 0; font-size: 8px; }
.function-timeline article { display: grid; grid-template-columns: 36px 10px 1fr; gap: 7px; min-height: 44px; }
.function-timeline time { font: 500 8px "IBM Plex Mono"; }
.function-timeline i { position: relative; width: 1px; height: 100%; justify-self: center; background: var(--line); }
.function-timeline i::after { content: ""; position: absolute; left: -3px; top: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.function-timeline span { display: flex; flex-direction: column; }
.function-timeline b { font-size: 8px; }
.function-timeline small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.booking-detail > footer { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 8px; }

/* Payments */
.finance-metrics article > small { font-size: 8px; }
.finance-grid { display: grid; grid-template-columns: minmax(680px, 1.45fr) minmax(280px, .55fr); gap: 12px; }
.receivables { overflow: hidden; }
.receivables > header { padding: 16px; border-bottom: 1px solid var(--line); }
.receivable-row { min-height: 62px; display: grid; grid-template-columns: minmax(160px, 1.3fr) minmax(120px, 1fr) 95px 80px 95px 50px; align-items: center; gap: 10px; padding: 0 15px; border-bottom: 1px solid var(--line); font-size: 9px; }
.receivable-row > span:first-child { display: flex; flex-direction: column; }
.receivable-row small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.receivable-row > span:nth-child(4) { font: 600 9px "IBM Plex Mono"; text-align: right; }
.receivable-head { min-height: 34px; color: var(--muted); background: var(--surface-muted); font-size: 7px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.receivable-row > button { padding: 5px 0; color: var(--teal); border: 0; background: transparent; font-size: 8px; font-weight: 700; cursor: pointer; }
.collection-card { padding: 20px; }
.collection-card h3 { margin: 8px 0 15px; font-size: 24px; letter-spacing: -.04em; }
.collection-card h3 small { color: var(--muted); font-size: 11px; font-weight: 500; }
.radial-progress { width: 132px; height: 132px; display: grid; place-items: center; margin: 16px auto; border-radius: 50%; background: conic-gradient(var(--teal) 0 72%, #edf0f0 72% 100%); }
.radial-progress::before { content: ""; grid-area: 1 / 1; width: 102px; height: 102px; border-radius: 50%; background: #fff; }
.radial-progress span { z-index: 1; grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; }
.radial-progress b { font: 600 21px "IBM Plex Mono"; }
.radial-progress small { color: var(--muted); font-size: 8px; }
.collection-card dl { margin: 0 0 17px; }
.collection-card dl div { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); font-size: 9px; }
.collection-card dt { color: var(--muted); }
.collection-card dd { margin: 0; font: 600 9px "IBM Plex Mono"; }

/* Overlays */
.modal-backdrop, .detail-drawer, .pricing-drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.modal-backdrop { display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(11, 28, 31, .52); opacity: 0; backdrop-filter: blur(4px); transition: opacity .2s ease; }
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal-card { width: min(610px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 24px; border-radius: 13px; background: #fff; box-shadow: var(--shadow-lg); transform: translateY(12px) scale(.99); transition: transform .22s var(--ease); }
.modal-backdrop.open .modal-card { transform: none; }
.modal-card.compact { width: min(520px, 100%); }
.modal-card > header { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.modal-card h2 { margin: 5px 0 4px; font-size: 24px; letter-spacing: -.035em; }
.modal-card header p { margin: 0; color: var(--muted); font-size: 10px; }
.close-control { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.modal-card form { display: grid; gap: 13px; }
.modal-card label { display: flex; flex-direction: column; gap: 6px; color: var(--ink-soft); font-size: 9px; font-weight: 700; }
.modal-card input, .modal-card select, .modal-card textarea { width: 100%; min-height: 42px; padding: 10px 11px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font-size: 11px; outline: 0; transition: border-color .16s ease, box-shadow .16s ease; }
.modal-card textarea { resize: vertical; }
.modal-card input:focus, .modal-card select:focus, .modal-card textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(23,61,67,.08); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.modal-card form footer { display: flex; justify-content: flex-end; gap: 8px; padding-top: 6px; }
.drawer-shade { position: absolute; inset: 0; background: rgba(11,28,31,.56); opacity: 0; backdrop-filter: blur(3px); transition: opacity .2s ease; }
.detail-drawer.open, .pricing-drawer.open { pointer-events: auto; }
.detail-drawer.open .drawer-shade, .pricing-drawer.open .drawer-shade { opacity: 1; }
.detail-drawer > aside { position: absolute; inset: 0 0 0 auto; width: min(510px, 100%); padding: 25px; overflow: auto; background: #fff; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .28s var(--ease); }
.detail-drawer.open > aside, .pricing-drawer.open > aside { transform: none; }
.detail-drawer aside > header { display: flex; justify-content: space-between; gap: 14px; }
.detail-drawer h2 { margin: 6px 0 3px; font-size: 24px; letter-spacing: -.035em; }
.detail-drawer header p { margin: 0; color: var(--muted); font-size: 10px; }
.drawer-actions-top { display: grid; grid-template-columns: .7fr 1.3fr; gap: 8px; margin: 20px 0; }
.drawer-value { display: flex; align-items: center; justify-content: space-between; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-muted); }
.drawer-value > div { display: flex; flex-direction: column; }
.drawer-value span { color: var(--muted); font-size: 8px; }
.drawer-value b { margin-top: 3px; font: 600 17px "IBM Plex Mono"; }
.drawer-section { padding: 17px 0; border-top: 1px solid var(--line); }
.drawer-section h3 { margin: 0 0 11px; font-size: 11px; }
.drawer-section > p { margin: 11px 0 0; color: var(--muted); font-size: 9px; line-height: 1.65; }
.next-action { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; }
.next-action > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 7px; color: var(--teal); background: var(--teal-soft); }
.next-action svg { width: 14px; }
.next-action div { display: flex; flex-direction: column; }
.next-action b { font-size: 9px; }
.next-action p { margin: 2px 0 0; color: var(--muted); font-size: 8px; }
.requirement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 0; }
.requirement-grid div { padding: 9px; border: 1px solid var(--line); border-radius: 7px; }
.requirement-grid dt { color: var(--muted); font-size: 7px; }
.requirement-grid dd { margin: 3px 0 0; font-size: 8px; font-weight: 700; }
.activity-timeline article { position: relative; display: grid; grid-template-columns: 9px 1fr; gap: 10px; min-height: 45px; }
.activity-timeline i { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.activity-timeline article:not(:last-child)::before { content: ""; position: absolute; left: 3px; top: 12px; bottom: -1px; width: 1px; background: var(--line); }
.activity-timeline div { display: flex; flex-direction: column; }
.activity-timeline b { font-size: 8px; }
.activity-timeline small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.pricing-drawer > aside { position: absolute; inset: 0 0 0 auto; width: min(980px, 96vw); padding: 34px; overflow: auto; background: #f8f8f6; transform: translateX(100%); transition: transform .3s var(--ease); }
.pricing-drawer aside > header { display: flex; justify-content: space-between; gap: 20px; }
.pricing-drawer h2 { max-width: 680px; margin: 6px 0 5px; font-size: 32px; letter-spacing: -.045em; }
.pricing-drawer header p { margin: 0; color: var(--muted); font-size: 10px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.pricing-grid article { position: relative; min-height: 380px; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.pricing-grid article.recommended { color: #fff; background: var(--teal); border-color: var(--teal); }
.pricing-grid article > em { position: absolute; right: 14px; top: 14px; padding: 4px 7px; color: var(--teal); border-radius: 5px; background: var(--amber); font-size: 7px; font-style: normal; font-weight: 800; }
.pricing-grid article > span { color: var(--muted); font: 600 9px "IBM Plex Mono"; text-transform: uppercase; letter-spacing: .08em; }
.pricing-grid .recommended > span { color: #b5c5c6; }
.pricing-grid h3 { margin: 25px 0 10px; font-size: 25px; letter-spacing: -.04em; }
.pricing-grid h3 small { font-size: 9px; font-weight: 500; }
.pricing-grid p { min-height: 42px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.pricing-grid .recommended p { color: #b6c7c8; }
.pricing-grid ul { margin: 18px 0 25px; padding: 15px 0 0; border-top: 1px solid var(--line); list-style: none; }
.pricing-grid .recommended ul { border-color: rgba(255,255,255,.15); }
.pricing-grid li { padding: 5px 0; font-size: 9px; }
.pricing-grid li::before { content: "—"; margin-right: 7px; color: var(--champagne); }
.pricing-grid .button { margin-top: auto; }
.pricing-note { color: var(--muted); font: 500 8px "IBM Plex Mono"; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; min-height: 43px; display: flex; align-items: center; gap: 8px; padding: 0 15px; color: #fff; border-radius: 8px; background: var(--teal); box-shadow: 0 12px 30px rgba(14,37,41,.25); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .2s ease, transform .2s var(--ease); font-size: 9px; font-weight: 700; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 14px; color: var(--amber); }
.mobile-nav { display: none; }

/* Readability pass — VenueOS must remain comfortable during full-day operations. */
body { font-size: 15px; }
.topbar-left span { font-size: 11px; }
.topbar h1 { font-size: 16px; }
.search-button, .button { font-size: 12px; }
.context-label, .section-kicker { font-size: 10.5px; line-height: 1.5; }
.page-header h2 { font-size: clamp(28px, 2.35vw, 35px); }
.page-header p { font-size: 13px; line-height: 1.6; }
.section-header h3 { font-size: 17px; }
.metric-card span, .finance-metrics span { font-size: 12px; }
.metric-card em { font-size: 10.5px; }
.metric-card > b, .finance-metrics b { font-size: 28px; }
.metric-card > small, .finance-metrics small { font-size: 11px; }
.timeline-schedule .time b { font-size: 12px; }
.timeline-schedule .time small { font-size: 10px; }
.schedule-copy b { font-size: 12.5px; }
.schedule-copy p { font-size: 11px; }
.schedule-copy small { font-size: 10px; }
.status { font-size: 10px; }
.attention-list b { font-size: 11.5px; }
.attention-list small { font-size: 10px; }
.attention-list em, .attention-footer { font-size: 10.5px; }
.pipeline-bars button b { font-size: 10.5px; }
.pipeline-bars button em { font-size: 10px; }
.pipeline-bars small { font-size: 10.5px; }
.availability-week small { font-size: 10px; }
.availability-week em { font-size: 9.5px; }
.collection-progress b { font-size: 11px; }
.collection-progress small, .collection-overview > p { font-size: 9.5px; }
.workspace-search input { font-size: 11.5px; }
.filter-button, .filter-menu, .view-switch button, .calendar-views button { font-size: 10.5px; }
.kanban > section > header span { font-size: 10.5px; }
.kanban > section > header b { font-size: 9px; }
.avatar { font-size: 10px; }
.priority { font-size: 9.5px; }
.kanban article h3 { font-size: 13px; }
.kanban article > p { font-size: 10px; }
.kanban dt { font-size: 9.5px; }
.kanban dd { font-size: 10.5px; }
.kanban footer { font-size: 9.5px; }
.table-row { font-size: 11px; }
.table-row small { font-size: 9.5px; }
.table-head { font-size: 10px; }
.calendar-navigation h3 { font-size: 16px; }
.calendar-navigation button { font-size: 10px; }
.legend { font-size: 9.5px; }
.month-cell > b { font-size: 11px; }
.month-event { font-size: 9.5px; }
.date-panel h3 { font-size: 20px; }
.date-panel header p { font-size: 10px; }
.demand-note span { font-size: 10.5px; }
.demand-note small { font-size: 9.5px; }
.shift-title b { font-size: 10.5px; }
.shift-title em { font-size: 9.5px; }
.date-panel article b { font-size: 10.5px; }
.date-panel article small, .date-panel article p { font-size: 9.5px; }
.shift-grid article header b { font-size: 11px; }
.shift-grid article header small, .shift-grid article p { font-size: 9.5px; }
.slot { font-size: 9.5px; }
.booking-metrics span { font-size: 10.5px; }
.booking-metrics b { font-size: 22px; }
.booking-metrics small { font-size: 9.5px; }
.booking-row { font-size: 10.5px; }
.booking-head { font-size: 9.5px; }
.booking-row em b { font-size: 11.5px; }
.booking-row small { font-size: 9px; }
.booking-detail h3 { font-size: 21px; }
.booking-detail header p { font-size: 10px; }
.detail-tabs button { font-size: 9.5px; }
.booking-summary span { font-size: 9.5px; }
.booking-summary b { font-size: 11px; }
.detail-section h4 { font-size: 10.5px; }
.contact-pair small, .contact-pair p { font-size: 9.5px; }
.contact-pair b { font-size: 10px; }
.function-timeline time, .function-timeline b { font-size: 9.5px; }
.function-timeline small { font-size: 9.5px; }
.receivable-row { font-size: 10.5px; }
.receivable-row small { font-size: 9px; }
.receivable-row > span:nth-child(4) { font-size: 10px; }
.receivable-head { font-size: 9.5px; }
.receivable-row > button { font-size: 9.5px; }
.collection-card h3 small { font-size: 12px; }
.collection-card dl div { font-size: 10.5px; }
.modal-card header p, .detail-drawer header p { font-size: 11px; }
.modal-card label { font-size: 10.5px; }
.modal-card input, .modal-card select, .modal-card textarea { font-size: 13px; }
.drawer-value span { font-size: 9.5px; }
.drawer-section h3 { font-size: 12px; }
.drawer-section > p { font-size: 10.5px; }
.next-action b { font-size: 10.5px; }
.next-action p { font-size: 9.5px; }
.requirement-grid dt { font-size: 8.5px; }
.requirement-grid dd { font-size: 10px; }
.activity-timeline b { font-size: 9.5px; }
.activity-timeline small { font-size: 9.5px; }
.pricing-drawer header p, .pricing-grid p { font-size: 10.5px; }
.pricing-grid article > span { font-size: 10px; }
.pricing-grid h3 small { font-size: 10px; }
.pricing-grid li { font-size: 10.5px; }

/* Product-scale typography: readable at a glance, without dashboard micro-type. */
.brand-lockup b { font-size: 14px; }
.brand-lockup small { font-size: 10px; }
.property-switcher small { font-size: 9.5px; }
.property-switcher b { font-size: 12px; }
.property-switcher em { font-size: 10px; }
.nav-label { font-size: 10px; }
.sidebar nav button { font-size: 13px; }
.sidebar nav button em { font-size: 10px; }
.sidebar-insight > div, .sidebar-insight > div b { font-size: 11px; }
.sidebar-insight > small { font-size: 10px; }
.licence-link { font-size: 9.5px; }
.profile b { font-size: 11px; }
.profile small { font-size: 10px; }
.text-button { font-size: 11px; }
.count-badge { font-size: 10px; }
.schedule-copy b { font-size: 13px; }
.schedule-copy p { font-size: 11.5px; }
.schedule-copy small { font-size: 10.5px; }
.attention-list b { font-size: 12px; }
.attention-list small { font-size: 10.5px; }
.pipeline-bars button b { font-size: 11px; }
.pipeline-bars button em { font-size: 10.5px; }
.collection-progress small, .collection-overview > p, .collection-overview > p b { font-size: 10px; }
.filter-button { font-size: 11px; }
.filter-button span { font-size: 9.5px; }
.kanban > section > header span { font-size: 11px; }
.kanban > section > header b { font-size: 10px; }
.modal-card label { font-size: 11px; }
.pricing-note { font-size: 9.5px; }
.toast { font-size: 10.5px; }

@media (max-width: 720px) {
  .page-header p { font-size: 12px; }
  .metric-card span, .finance-metrics span { font-size: 10.5px; }
  .metric-card > small, .finance-metrics small { font-size: 9.5px; }
  .schedule-copy b { font-size: 12px; }
  .schedule-copy p { font-size: 10.5px; }
  .schedule-copy small { font-size: 9.5px; }
  .attention-list b { font-size: 11px; }
  .attention-list small { font-size: 9.5px; }
  .kanban article h3 { font-size: 12.5px; }
  .kanban article > p { font-size: 9.5px; }
  .booking-row em b { font-size: 11px; }
  .booking-row small { font-size: 8.5px; }
}

@media (max-width: 1240px) {
  :root { --sidebar: 224px; }
  .secondary-grid { grid-template-columns: 1.2fr .8fr; }
  .collection-overview { grid-column: 1 / -1; min-height: 190px; }
  .today-grid { grid-template-columns: 1.3fr .7fr; }
  .kanban { grid-template-columns: repeat(5, 225px); }
  .booking-workspace, .finance-grid { grid-template-columns: 1fr; }
  .booking-detail, .collection-card { min-height: auto; }
  .collection-card { display: grid; grid-template-columns: 1fr 150px 1fr; align-items: center; gap: 20px; }
  .collection-card > .full { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .sidebar { transform: translateX(-100%); transition: transform .24s var(--ease); }
  .sidebar.open { transform: none; }
  .sidebar.open + .sidebar-shade { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(8,24,27,.45); }
  .sidebar-close { display: block; }
  .workspace { margin-left: 0; }
  .menu-button { display: grid; }
  .today-grid, .calendar-workspace { grid-template-columns: 1fr; }
  .attention-panel { min-height: auto; }
  .secondary-grid { grid-template-columns: 1fr; }
  .collection-overview { grid-column: auto; }
  .metrics-grid, .finance-metrics { grid-template-columns: 1fr 1fr; }
  .metric-card:nth-child(2), .finance-metrics article:nth-child(2) { border-right: 0; }
  .metric-card:nth-child(-n+2), .finance-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .shift-grid { grid-template-columns: 1fr 1fr; }
  .booking-workspace { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { padding-bottom: calc(67px + env(safe-area-inset-bottom)); }
  .topbar { height: 60px; padding: 0 14px; }
  .topbar-left > div > span { display: none; }
  .topbar h1 { font-size: 14px; }
  .search-button { min-width: 36px; width: 36px; justify-content: center; padding: 0; }
  .search-button span, .search-button kbd, .top-actions > .primary span { display: none; }
  .top-actions > .primary { width: 36px; padding: 0; }
  .page { padding: 20px 14px 32px; }
  .page-header { min-height: auto; align-items: stretch; flex-direction: column; gap: 13px; margin-bottom: 19px; }
  .page-header h2 { font-size: 25px; }
  .page-header p { max-width: 260px; font-size: 10px; }
  .greeting-header h2 { font-size: 25px; }
  .page-header > .button { width: 100%; }
  .header-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .header-actions .button { width: 100%; padding: 0 10px; }
  .greeting-header .header-actions { display: none; }
  .metrics-grid, .finance-metrics { margin-left: -14px; margin-right: -14px; border-left: 0; border-right: 0; border-radius: 0; }
  .metric-card, .finance-metrics article { min-height: 105px; padding: 14px; }
  .metric-card > div { display: block; }
  .metric-card em { display: block; width: max-content; margin-top: 3px; }
  .metric-card > b, .finance-metrics b { font-size: 22px; }
  .schedule-panel, .attention-panel, .pipeline-overview, .availability-overview, .collection-overview { padding: 15px; }
  .timeline-schedule article { grid-template-columns: 42px 8px 32px 1fr; gap: 8px; }
  .timeline-schedule .row-action { display: none; }
  .event-icon { width: 32px; height: 32px; }
  .schedule-copy > div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .schedule-copy p { font-size: 9px; }
  .schedule-copy small { font-size: 8px; }
  .pipeline-bars { gap: 7px; overflow-x: auto; padding-bottom: 5px; }
  .pipeline-bars button { min-width: 70px; }
  .availability-overview { overflow: hidden; }
  .availability-week { overflow-x: auto; margin-right: -15px; border-right: 0; border-radius: 8px 0 0 8px; }
  .availability-week button { min-width: 61px; }
  .toolbar { overflow-x: auto; margin-right: -14px; padding-right: 14px; scrollbar-width: none; }
  .workspace-search { min-width: 215px; }
  .toolbar .filter-menu { display: none; }
  .view-switch { position: absolute; right: 14px; margin-top: -68px; background: #fff; }
  .kanban { margin-right: -14px; padding-right: 14px; }
  .kanban > section { min-height: 480px; }
  .table-row { grid-template-columns: minmax(180px, 1.5fr) 100px 60px 110px 80px 100px; min-width: 680px; }
  .enquiry-table { overflow-x: auto; }
  .calendar-toolbar { flex-wrap: wrap; gap: 8px; }
  .calendar-navigation { width: 100%; }
  .calendar-navigation h3 { flex: 1; }
  .legend { order: 3; width: 100%; margin-left: 0; overflow-x: auto; padding: 4px 0; }
  .calendar-surface { padding: 7px; overflow-x: auto; }
  .month-grid { min-width: 0; width: 100%; }
  .month-cell { min-height: 61px; padding: 5px; }
  .month-event { font-size: 0; width: 6px; height: 6px; display: inline-block; padding: 0; border: 0; border-radius: 50%; background: var(--teal); }
  .month-event.hold { background: var(--champagne); }
  .date-panel { padding: 16px; }
  .shift-grid { display: flex; overflow-x: auto; margin-right: -15px; padding-right: 15px; }
  .shift-grid article { flex: 0 0 180px; }
  .booking-metrics { grid-template-columns: 1fr 1fr; margin-left: -14px; margin-right: -14px; border-left: 0; border-right: 0; border-radius: 0; }
  .booking-metrics article:nth-child(2) { border-right: 0; }
  .booking-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .bookings-table { overflow: hidden; }
  .list-toolbar { min-width: 0; }
  .booking-head { display: none; }
  .booking-row:not(.booking-head) { min-width: 0; min-height: 96px; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 13px; }
  .booking-row:not(.booking-head) > span:first-child { grid-column: 1; grid-row: 1; }
  .booking-row:not(.booking-head) > span:nth-child(2) { grid-column: 1; grid-row: 2; margin-left: 46px; }
  .booking-row:not(.booking-head) > span:nth-child(3) { display: none; }
  .booking-row:not(.booking-head) > span:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right; font: 600 9px "IBM Plex Mono"; }
  .booking-row:not(.booking-head) > span:nth-child(5) { grid-column: 2; grid-row: 2; text-align: right; }
  .booking-detail { padding: 15px; }
  .contact-pair { grid-template-columns: 1fr; }
  .finance-grid { grid-template-columns: 1fr; }
  .receivables { overflow: hidden; }
  .receivables > header { min-width: 0; }
  .receivable-head { display: none; }
  .receivable-row:not(.receivable-head) { min-width: 0; min-height: 96px; grid-template-columns: 1fr auto; gap: 5px 12px; padding: 13px 15px; }
  .receivable-row:not(.receivable-head) > span:nth-child(1) { grid-column: 1; grid-row: 1; }
  .receivable-row:not(.receivable-head) > span:nth-child(2) { grid-column: 1; grid-row: 2; color: var(--muted); }
  .receivable-row:not(.receivable-head) > span:nth-child(3) { grid-column: 2; grid-row: 2; text-align: right; color: var(--muted); }
  .receivable-row:not(.receivable-head) > span:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right; }
  .receivable-row:not(.receivable-head) > span:nth-child(5) { grid-column: 1; grid-row: 3; }
  .receivable-row:not(.receivable-head) > button { grid-column: 2; grid-row: 3; text-align: right; }
  .collection-card { display: block; }
  .mobile-nav { position: fixed; inset: auto 0 0; z-index: 60; min-height: calc(61px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); }
  .mobile-nav button { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; color: var(--muted); border: 0; background: transparent; font-size: 8px; font-weight: 700; }
  .mobile-nav svg { width: 17px; height: 17px; }
  .mobile-nav button.active { color: var(--teal); }
  .mobile-nav button.active::before { content: ""; position: absolute; top: 0; width: 24px; height: 2px; background: var(--teal); }
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal-card { max-height: 94vh; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 14px 14px 0 0; }
  .form-grid { grid-template-columns: 1fr; }
  .modal-card input, .modal-card select, .modal-card textarea { font-size: 16px; }
  .detail-drawer > aside { padding: 22px 16px calc(90px + env(safe-area-inset-bottom)); }
  .pricing-drawer > aside { width: 100%; padding: 24px 16px calc(85px + env(safe-area-inset-bottom)); }
  .pricing-drawer h2 { font-size: 27px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid article { min-height: auto; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); width: calc(100% - 28px); justify-content: center; }
}

/* Final mobile type floor. Keep every operational label legible on phones. */
@media (max-width: 720px) {
  body { font-size: 15px; }
  .topbar h1 { font-size: 15px; }
  .page-header h2, .greeting-header h2 { font-size: 27px; line-height: 1.08; }
  .page-header p { max-width: 34ch; font-size: 13px; line-height: 1.55; }
  .button, .search-button { font-size: 12px; }
  .context-label, .section-kicker { font-size: 10.5px; }
  .section-header h3 { font-size: 16px; }
  .metric-card span, .finance-metrics span { font-size: 11px; }
  .metric-card em { font-size: 10px; }
  .metric-card > small, .finance-metrics small { font-size: 10px; line-height: 1.4; }
  .timeline-schedule .time b { font-size: 11.5px; }
  .timeline-schedule .time small { font-size: 9.5px; }
  .schedule-copy b { font-size: 12.5px; line-height: 1.35; }
  .schedule-copy p { font-size: 11px; line-height: 1.45; }
  .schedule-copy small { font-size: 10px; }
  .status { font-size: 9.5px; }
  .attention-list b { font-size: 11.5px; }
  .attention-list small { font-size: 10px; }
  .attention-list em, .attention-footer { font-size: 9.5px; }
  .pipeline-bars button b, .collection-progress b { font-size: 10.5px; }
  .pipeline-bars button em, .pipeline-bars small, .collection-progress small, .collection-overview > p { font-size: 9.5px; }
  .availability-week small { font-size: 9.5px; }
  .availability-week em { font-size: 9px; }
  .workspace-search input { font-size: 16px; }
  .filter-button, .view-switch button, .calendar-views button { font-size: 10.5px; }
  .kanban > section > header span { font-size: 11px; }
  .kanban article h3 { font-size: 13px; }
  .kanban article > p { font-size: 10.5px; line-height: 1.5; }
  .kanban dt, .kanban footer { font-size: 9.5px; }
  .kanban dd { font-size: 10.5px; }
  .table-row { font-size: 11px; }
  .table-row small { font-size: 9.5px; }
  .calendar-navigation h3 { font-size: 16px; }
  .legend { font-size: 9.5px; }
  .month-cell > b { font-size: 10.5px; }
  .date-panel h3 { font-size: 20px; }
  .date-panel header p, .demand-note small, .date-panel article small, .date-panel article p, .shift-grid article header small, .shift-grid article p { font-size: 9.5px; }
  .demand-note span, .shift-title b, .date-panel article b, .shift-grid article header b { font-size: 10.5px; }
  .booking-metrics span { font-size: 10.5px; }
  .booking-metrics small { font-size: 9.5px; }
  .booking-row { font-size: 10.5px; }
  .booking-row em b { font-size: 11.5px; }
  .booking-row small { font-size: 9.5px; }
  .booking-detail h3 { font-size: 21px; }
  .detail-tabs button { font-size: 10px; }
  .booking-summary span, .contact-pair small, .contact-pair p, .function-timeline small { font-size: 9.5px; }
  .booking-summary b, .contact-pair b, .function-timeline time, .function-timeline b { font-size: 10.5px; }
  .receivable-row { font-size: 10.5px; }
  .receivable-row small { font-size: 9.5px; }
  .receivable-row > span:nth-child(4) { font-size: 10.5px; }
  .receivable-row > button { font-size: 10px; }
  .mobile-nav button { font-size: 9px; }
  .modal-card header p, .detail-drawer header p, .pricing-drawer header p { font-size: 11px; }
  .modal-card label { font-size: 11px; }
  .drawer-section > p, .pricing-grid p, .pricing-grid li { font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Working demo layer — Riverside Palace end-to-end conversion flow */
body { font-size: 15px; }
.topbar h1 { font-size: 18px; }
.topbar-left span { font-size: 11px; }
.page-header p { font-size: 13px; line-height: 1.55; }
.context-label, .section-kicker { font-size: 10px; }
.sidebar nav button { font-size: 13px; }
.property-switcher b { font-size: 12px; }
.property-switcher em, .property-switcher small, .brand-lockup small { font-size: 9.5px; }
.metric-card span, .finance-metrics span { font-size: 11px; }
.metric-card > small, .finance-metrics small { font-size: 10px; }
.schedule-copy b, .attention-list b { font-size: 11.5px; }
.schedule-copy p, .schedule-copy small, .attention-list small { font-size: 10px; }
.kanban article h3 { font-size: 13px; }
.kanban article > p, .kanban dd { font-size: 10.5px; }

.demo-command { margin: 0 0 14px; padding: 20px; border-color: #c9bda9; background: linear-gradient(110deg, #fffdf8 0%, #f3ecdf 100%); }
.demo-command > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.demo-command h3 { margin: 5px 0 4px; font-size: 20px; letter-spacing: -.025em; }
.demo-command header p { margin: 0; color: var(--muted); font-size: 11px; }
.demo-journey { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.62); }
.demo-journey button { min-height: 88px; display: grid; grid-template-columns: 28px 1fr; align-content: center; gap: 9px; padding: 13px; border: 0; border-right: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.demo-journey button:last-child { border-right: 0; }
.demo-journey button:hover { background: #f0e9dc; }
.demo-journey button.complete { background: #edeee9; }
.demo-journey button.current { background: #181919; color: #f4f0e7; box-shadow: inset 0 -3px #f4bb62; }
.demo-journey i { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #bdb7ac; border-radius: 50%; color: var(--muted); font: 600 9px "IBM Plex Mono"; font-style: normal; }
.demo-journey .complete i { border-color: #181919; background: #181919; color: #f4bb62; }
.demo-journey .current i { border-color: #f4bb62; background: #f4bb62; color: #181919; }
.demo-journey span { display: flex; flex-direction: column; min-width: 0; }
.demo-journey b { font-size: 11px; line-height: 1.3; }
.demo-journey small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.demo-journey .current small { color: #c6cac8; }
.demo-command > footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.demo-command > footer > div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; }
.demo-command > footer span { color: var(--muted); font: 600 9px "IBM Plex Mono"; letter-spacing: .08em; text-transform: uppercase; }
.demo-command > footer b { font-size: 12px; }
.demo-command > footer small { grid-column: 2; margin-top: 3px; color: var(--muted); font-size: 10px; }

.hold-active { color: #6f4c18 !important; border-color: #d3a75e !important; background: #f8ead0 !important; }
.demo-booking, .demo-receivable { background: #fff8e8; box-shadow: inset 3px 0 #f4bb62; }

.drawer-workflow { border-top: 0; border-radius: 10px; background: #181919; color: #f4f0e7; padding: 16px; }
.drawer-workflow h3 { color: #f4bb62; }
.drawer-step-status { display: flex; flex-direction: column; margin: 12px 0 14px; }
.drawer-step-status span { color: #aeb3af; font: 600 9px "IBM Plex Mono"; letter-spacing: .08em; text-transform: uppercase; }
.drawer-step-status b { margin-top: 7px; font-size: 15px; }
.drawer-step-status small { margin-top: 5px; color: #c6cac8; font-size: 10.5px; line-height: 1.55; }
.drawer-workflow .button.primary { color: #181919; background: #f4bb62; border-color: #f4bb62; }

.quote-modal-card { width: min(680px, 100%); }
.quote-lines { display: grid; gap: 8px; margin-top: 18px; }
.quote-lines label { display: grid; grid-template-columns: 1fr 180px; align-items: center; gap: 14px; }
.quote-lines label span { font-size: 12px; font-weight: 650; }
.quote-lines input { text-align: right; font-family: "IBM Plex Mono"; }
.quote-total { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 15px; padding: 17px; border-radius: 9px; color: #f4f0e7; background: #181919; }
.quote-total span { display: flex; flex-direction: column; }
.quote-total small { color: #c6cac8; font-size: 10px; }
.quote-total b { margin-top: 4px; color: #f4bb62; font-size: 23px; letter-spacing: -.035em; }
.quote-total em { max-width: 240px; color: #c6cac8; font-size: 10px; line-height: 1.5; font-style: normal; text-align: right; }
.detail-drawer:not(.open), .pricing-drawer:not(.open), .modal-backdrop[aria-hidden="true"] { visibility: hidden; }
.detail-drawer.open, .pricing-drawer.open, .modal-backdrop.open { visibility: visible; }

@media (max-width: 1100px) {
  .demo-journey { grid-template-columns: repeat(3, 1fr); }
  .demo-journey button:nth-child(3n) { border-right: 0; }
  .demo-journey button:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .demo-command { padding: 16px; }
  .demo-command > header, .demo-command > footer { align-items: stretch; flex-direction: column; }
  .demo-command h3 { font-size: 19px; }
  .demo-journey { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .demo-journey button { flex: 0 0 164px; min-height: 92px; border-bottom: 0 !important; border-right: 1px solid var(--line) !important; scroll-snap-align: start; }
  .demo-command > footer > div { grid-template-columns: 1fr; }
  .demo-command > footer small { grid-column: 1; }
  .demo-command > footer .button { width: 100%; }
  .quote-lines label { grid-template-columns: 1fr; gap: 5px; }
  .quote-lines input { text-align: left; }
  .quote-total { align-items: flex-start; flex-direction: column; }
  .quote-total em { text-align: left; }
}
