/* Shared screen design for both portals. Component geometry and status colours
   remain in styles.css. All future text styles should use these tokens. */
:root {
  --font-ui: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --text-small: .875rem;
  --text-body: 1rem;
  --text-section: 1.125rem;
  --text-heading: 1.25rem;
  --text-title: 1.625rem;
  --weight-normal: 400;
  --weight-medium: 600;
  --weight-strong: 700;
  --leading-body: 1.55;
  --leading-heading: 1.3;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --ink: #293b33;
  --muted: #52645a;
  --green: #246a4d;
  --line: #cbd6cf;
  --surface: #f7f9f7;
  --surface-input: #fcfdfb;
  --surface-page: #e8eeea;
  --control-border: #82958a;
}
@media screen {
  html { font-size:100%; }
  body { font-family:var(--font-ui); font-size:var(--text-body); font-weight:var(--weight-normal); line-height:var(--leading-body); background:var(--surface-page); }
  h1,h2,h3,h4 { line-height:var(--leading-heading); font-weight:var(--weight-medium); text-wrap:balance; margin-block:0 var(--space-4); }
  h1,.hero h1 { font-size:var(--text-title); line-height:var(--leading-heading); }
  h2 { font-size:var(--text-heading); }
  h3,h4 { font-size:var(--text-section); }
  p { margin-block:0 var(--space-4); }
  p:last-child { margin-bottom:0; }
  strong,b { font-weight:var(--weight-strong); }
  small,.hint,.muted { font-size:var(--text-small); line-height:var(--leading-body); }
  .lead { font-size:var(--text-body); line-height:1.65; }
  .brand { font-size:var(--text-heading); font-weight:var(--weight-strong); }
  .card,.customer-sidebar,.staff-nav,.ticket-card,.receipt-preview-dialog { background:var(--surface); }
  .card { padding:var(--space-5); box-shadow:0 2px 6px #1b392608; }
  .item,.detail-field { padding:var(--space-4); }
  .form-grid { gap:var(--space-4); }
  label,legend { font-size:var(--text-small); font-weight:var(--weight-medium); line-height:1.5; }
  label { gap:var(--space-2); }
  input,select,textarea { font-family:var(--font-ui); font-size:var(--text-body); font-weight:var(--weight-normal); line-height:1.5; background:var(--surface-input); border-color:var(--control-border); }
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),select { min-height:44px; }
  textarea { line-height:1.6; }
  input::placeholder,textarea::placeholder { color:var(--muted); opacity:1; }
  button,.button,.link-button { font-family:var(--font-ui); font-size:var(--text-body); font-weight:var(--weight-medium); line-height:1.4; }
  .button { min-height:44px; padding:10px 16px; text-align:center; border-radius:8px; }
  .button.small,.request-detail-actions .waitlist-x-compact { font-size:var(--text-small); min-height:36px; padding:7px 12px; }
  .button.secondary { background:var(--surface-input); }
  .actions { gap:var(--space-3); margin-top:var(--space-5); }
  .staff-nav-links a,.customer-tabs a,.nav a,.legal-links a { font-weight:var(--weight-medium); }
  .staff-nav-links a { font-size:var(--text-body); }
  a { text-underline-offset:3px; }
  .record-link { font-weight:var(--weight-strong); }
  :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible { outline:3px solid var(--green); outline-offset:3px; }
  .button:disabled { opacity:.65; cursor:default; }
  .tag,.animal-badge,.ticket-status,.booking-reference,.request-pet-category,.current-animal-presence,.optimizer-status { font-size:var(--text-small); font-weight:var(--weight-medium); line-height:1.5; }
  .notice,.error,.empty { line-height:var(--leading-body); }
  .booking-save-feedback,.request-save-feedback { font-size:var(--text-body); font-weight:var(--weight-medium); }
  .settings-topic > h2 { font-size:var(--text-heading); }
  .settings-fold-toggle { font-size:var(--text-body); font-weight:var(--weight-medium); }
  .settings-fold-toggle strong,.report-toggle { font-size:var(--text-heading); font-weight:var(--weight-medium); }
  .report-toggle { flex-shrink:0; cursor:pointer; }
  table { font-size:var(--text-body); line-height:1.5; border-collapse:collapse; }
  th { font-weight:var(--weight-medium); text-align:left; }
  th,td { padding:var(--space-3); vertical-align:top; }
  .finance-summary,.booking-payment-ledger,.invoice-breakdown,.payment-report-list,table { font-variant-numeric:tabular-nums; }
  .finance-report-cards strong,.price,.ticket-summary strong { font-size:var(--text-heading); font-weight:var(--weight-medium); }
  .booking-payment-open,.invoice-breakdown-total,.payment-grand-total { font-size:var(--text-body); }
  .booking-payment-row { line-height:1.55; row-gap:var(--space-2); }
  .ticket-card { padding:var(--space-4); }
  .ticket-card-head h2,.current-animal-heading,.request-form .item-head strong { font-size:var(--text-section); line-height:1.4; }
  .ticket-card-head p,.ticket-period,.ticket-history-entry p,.ticket-facts dd { line-height:1.55; }
  .ticket-body { gap:var(--space-4); padding-top:var(--space-4); }
  .ticket-reply textarea,.ticket-comment textarea { min-height:100px; }
  .booking-change-log,.ticket-history-entry span,.ticket-history-entry small,.ticket-facts dt { color:var(--muted); }
  .receipt-print-view { font-family:var(--font-ui); line-height:var(--leading-body); }
  .legal-text { max-width:72ch; line-height:1.7; }
  /* Keep calendar column widths and scrolling maths unchanged. Give labels
     enough vertical room for the larger type and existing gender badges. */
  .room-bar { height:auto; min-height:34px; font-size:var(--text-small); line-height:24px; padding:4px 7px; font-weight:var(--weight-medium); }
  .room-label,.occupancy-label { font-size:var(--text-small); line-height:1.45; font-weight:var(--weight-medium); }
  .room-category,.occupancy-category { font-size:var(--text-body); font-weight:var(--weight-medium); }
  .room-timeline-header .occupancy-day,.occupancy-day { font-size:var(--text-small); line-height:1.4; }
  .calendar-gender-symbol { box-shadow:none; }
  .room-bar.calendar-target-booking { animation:none; }
}
@media screen and (max-width:650px) {
  .card { padding:var(--space-4); }
  .receipt-preview-overlay { padding:var(--space-3); }
  .receipt-preview-dialog,.receipt-print-view { padding:var(--space-4); }
  .receipt-columns { gap:var(--space-4); }
  .button.small { min-height:44px; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none!important; scroll-behavior:auto!important; }
}
