  :root {
    --forest: #1E3A2F;
    --forest-light: #2C4A3E;
    --moss: #4A7C59;
    --sage: #8FAF85;
    --sage-soft: #D6E3D2;
    --sage-tint: #EAF1E6;
    --mist: #F0EDE8;
    --cream: #F4EEE3;
    --cream-card: #FFFCF6;
    --stone: #C4B8A8;
    --warm: #E8E0D5;
    --butter: #F0DCB1;
    --butter-soft: #F5E6C7;
    --amber: #C17F3E;
    --red: #C0392B;
    --white: #FDFCFB;
    --text: #1A1A1A;
    --text-soft: #6B6B6B;
    --ink: #1B2A24;
    --ink-muted: #6F7568;
    --line: #E4DCC9;
    --radius: 16px;
    --radius-sm: 10px;
  }
  /* ── ONBOARDING (cream/sage) ────────────────────────────────────── */
  .so-cream { background:var(--cream); }
  .so-h1 { font-family:'DM Serif Display',serif; font-size:30px; line-height:1.15; color:var(--ink); letter-spacing:-0.01em; }
  .so-h1 em { color:var(--moss); font-style:italic; }
  .so-sub { font-size:14px; color:var(--ink-muted); line-height:1.55; }
  .so-card { background:var(--cream-card); border:1px solid var(--line); border-radius:18px; padding:18px 20px; }
  .so-card.selected { background:var(--sage-tint); border-color:var(--moss); }
  .so-card-row { display:flex; align-items:center; gap:14px; cursor:pointer; transition:background .2s, border-color .2s; }
  .so-icon-tile { width:40px; height:40px; border-radius:12px; background:var(--sage-tint); display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; color:var(--moss); }
  .so-radio { width:24px; height:24px; border-radius:50%; border:2px solid var(--line); flex-shrink:0; display:flex; align-items:center; justify-content:center; }
  .so-radio.on { background:var(--moss); border-color:var(--moss); }
  .so-radio.on::after { content:''; width:8px; height:8px; border-radius:50%; background:var(--cream-card); }
  .so-input { width:100%; box-sizing:border-box; padding:14px 16px; border:1px solid var(--line); border-radius:12px; background:var(--cream-card); font-family:'DM Sans',sans-serif; font-size:15px; color:var(--ink); outline:none; transition:border-color .2s, box-shadow .2s; }
  .so-input:focus { border-color:var(--moss); box-shadow:0 0 0 3px rgba(74,124,89,0.15); }
  .so-input-label { font-size:13px; color:var(--ink-muted); display:block; margin-bottom:6px; font-weight:500; text-transform:none; letter-spacing:0; }
  .so-btn-primary { width:100%; padding:16px; background:var(--forest); color:#fff; border:none; border-radius:14px; font-family:'DM Sans',sans-serif; font-size:15px; font-weight:600; cursor:pointer; transition:filter .15s; }
  .so-btn-primary:hover { filter:brightness(1.08); }
  .so-btn-primary:disabled { background:var(--stone); color:rgba(255,255,255,0.85); cursor:not-allowed; }
  .so-btn-ghost { width:100%; padding:14px; background:transparent; color:var(--moss); border:1.5px solid var(--moss); border-radius:14px; font-family:'DM Sans',sans-serif; font-size:14px; font-weight:600; cursor:pointer; }
  .so-btn-skip { background:none; border:none; color:var(--ink-muted); font-family:'DM Sans',sans-serif; font-size:14px; font-weight:500; cursor:pointer; padding:14px; width:100%; text-align:center; }
  .so-pill { display:inline-flex; align-items:center; padding:4px 10px; border-radius:8px; font-size:11px; font-weight:700; letter-spacing:0.6px; text-transform:uppercase; font-family:'DM Mono','SF Mono',monospace; }
  .so-pill.optional { background:var(--butter-soft); color:#7A5A1F; }
  .so-pill.required { background:var(--sage-tint); color:var(--forest); }
  .so-pill.popular { background:var(--sage-tint); color:var(--forest); border-radius:8px; padding:3px 8px; font-size:10px; }
  .so-pill.active { background:var(--sage-tint); color:var(--forest); }
  .so-back { width:40px; height:40px; border-radius:50%; background:var(--cream-card); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-size:18px; color:var(--ink); cursor:pointer; }
  .so-progress-text { font-family:'DM Mono','SF Mono',monospace; font-size:13px; color:var(--ink-muted); }
  .so-progress-bar { height:3px; border-radius:2px; background:var(--line); overflow:hidden; }
  .so-progress-bar > span { display:block; height:100%; background:var(--moss); transition:width .3s; }
  .so-info-panel { display:flex; gap:10px; padding:14px 16px; background:var(--sage-tint); border-radius:12px; font-size:13px; color:var(--ink); line-height:1.5; }
  .so-info-panel .ico { color:var(--moss); flex-shrink:0; margin-top:1px; }
  .so-stepper { display:flex; align-items:center; justify-content:space-between; background:var(--cream-card); border:1px solid var(--line); border-radius:12px; padding:6px; }
  .so-stepper button { width:36px; height:36px; border:none; background:transparent; color:var(--ink); font-size:20px; font-weight:600; cursor:pointer; border-radius:8px; }
  .so-stepper button:hover { background:var(--sage-tint); }
  .so-stepper .val { font-family:'DM Sans',sans-serif; font-size:17px; font-weight:600; color:var(--ink); }
  .so-pill-group { display:flex; gap:6px; flex-wrap:wrap; }
  .so-pill-opt { padding:10px 0; min-width:42px; text-align:center; background:var(--cream-card); border:1px solid var(--line); border-radius:10px; font-family:'DM Sans',sans-serif; font-size:14px; font-weight:600; color:var(--ink); cursor:pointer; flex:1; }
  .so-pill-opt.on { background:var(--forest); color:#fff; border-color:var(--forest); }
  .so-toggle { width:44px; height:26px; border-radius:13px; background:var(--line); position:relative; cursor:pointer; flex-shrink:0; transition:background .2s; }
  .so-toggle::after { content:''; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; transition:left .2s; }
  .so-toggle.on { background:var(--moss); }
  .so-toggle.on::after { left:21px; }
  .so-check-tile { width:36px; height:36px; border-radius:10px; background:var(--sage-tint); color:var(--moss); display:flex; align-items:center; justify-content:center; flex-shrink:0; font-weight:700; }
  .so-checkbox { width:22px; height:22px; border-radius:6px; border:1.5px solid var(--line); flex-shrink:0; display:flex; align-items:center; justify-content:center; cursor:pointer; }
  .so-checkbox.on { background:var(--moss); border-color:var(--moss); color:#fff; }
  .so-bell-illu { width:160px; height:160px; margin:0 auto; position:relative; }
  .so-toast { position:fixed; left:50%; top:20px; transform:translateX(-50%) translateY(-12px); background:var(--forest); color:#fff; padding:14px 18px 14px 16px; border-radius:14px; display:flex; align-items:center; gap:10px; box-shadow:0 10px 40px rgba(0,0,0,0.18); z-index:9997; opacity:0; transition:opacity .35s, transform .35s; max-width:90vw; font-family:'DM Sans',sans-serif; font-size:14px; font-weight:600; }
  .so-toast.show { opacity:1; transform:translateX(-50%) translateY(0); }
  .so-toast .undo { background:none; border:none; color:#fff; font-weight:700; text-decoration:underline; cursor:pointer; padding:0 0 0 12px; font-size:13px; }
  .so-confetti { position:absolute; border-radius:50%; }
  .so-confetti.c1 { width:6px; height:6px; background:var(--amber); top:-4px; right:-2px; }
  .so-confetti.c2 { width:4px; height:4px; background:var(--moss); top:14px; right:-12px; }
  .so-confetti.c3 { width:5px; height:5px; background:var(--amber); bottom:-4px; left:-6px; }
  * { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
  html { height:-webkit-fill-available; overflow-x:hidden; }
  body { font-family:'DM Sans',sans-serif; background:var(--mist); color:var(--text); min-height:100vh; min-height:-webkit-fill-available; max-width:430px; margin:0 auto; -webkit-font-smoothing:antialiased; overflow-x:hidden; }

  .header { background:var(--forest); padding:calc(env(safe-area-inset-top, 20px) + 12px) 20px 16px; position:sticky; top:0; z-index:100; }
  .header-top { display:flex; justify-content:space-between; align-items:center; gap:8px; }
  .header-top > button { flex:1 1 auto; min-width:0; overflow:hidden; }
  .header h1 { font-family:'DM Serif Display',serif; font-size:26px; color:var(--white); line-height:1.1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .header h1 span { color:var(--sage); font-style:italic; }
  .header-sub { font-size:12px; color:var(--stone); margin-top:2px; letter-spacing:0.5px; text-transform:uppercase; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .today-badge { background:var(--amber); color:white; font-size:11px; font-weight:600; padding:4px 10px; border-radius:20px; white-space:nowrap; display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; min-height:24px; }

  .nav { display:flex; background:#fff; padding:2px 2px calc(2px + env(safe-area-inset-bottom)); gap:0; border-top:1px solid #ede8e0; box-shadow:none; position:sticky; bottom:0; z-index:100; }
  .nav-btn { flex:1; background:none; border:none; color:#999; font-family:'DM Sans',sans-serif; font-size:11px; font-weight:500; padding:8px 0; cursor:pointer; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; transition:color 0.2s ease, border-color 0.2s ease; min-width:0; border-bottom:2px solid transparent; box-shadow:none; border-radius:0; }
  .nav-btn > svg { flex-shrink:0; display:block; }
  .nav-btn.active { color:#3D6B4F; border-bottom-color:#3D6B4F; box-shadow:none; }

  .content { padding:16px; padding-bottom:calc(100px + env(safe-area-inset-bottom)); }

  .card { background:var(--white); border-radius:var(--radius); padding:16px; margin-bottom:12px; box-shadow:0 1px 4px rgba(0,0,0,0.06); }
  .card-title { font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:0.8px; color:var(--text-soft); margin-bottom:12px; }

  .stats-row { display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; margin-bottom:12px; }
  .stat-card { background:var(--white); border-radius:var(--radius-sm); padding:14px 12px; text-align:center; box-shadow:0 1px 4px rgba(0,0,0,0.06); }
  .stat-val { font-family:'DM Serif Display',serif; font-size:24px; color:var(--forest); }
  .stat-label { font-size:10px; color:var(--text-soft); margin-top:2px; text-transform:uppercase; letter-spacing:0.4px; }

  .booking-item { display:flex; align-items:center; padding:14px 0; border-bottom:1px solid var(--warm); gap:12px; cursor:pointer; -webkit-user-select:none; user-select:none; }
  .booking-item:last-child { border-bottom:none; padding-bottom:0; }
  .booking-avatar { width:42px; height:42px; border-radius:50%; background:var(--forest); color:var(--sage); font-family:'DM Serif Display',serif; font-size:16px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
  .booking-info { flex:1; min-width:0; }
  .booking-name { font-weight:600; font-size:14px; }
  .booking-dates { font-size:12px; color:var(--text-soft); margin-top:2px; }
  .booking-guests { font-size:11px; color:var(--text-soft); }
  .booking-right { text-align:right; flex-shrink:0; }
  .booking-amount { font-family:'DM Serif Display',serif; font-size:17px; color:var(--forest); }
  .booking-status { display:inline-block; font-size:10px; font-weight:600; padding:2px 8px; border-radius:20px; margin-top:3px; text-transform:uppercase; }
  .status-cancelled { background:#FEE2E2; color:#DC2626; }
  .status-confirmed { background:#E8F5E9; color:#2E7D32; }
  .status-upcoming { background:#FFF8E1; color:#F57F17; }
  .status-completed { background:var(--warm); color:var(--text-soft); }

  .clean-item { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--warm); }
  .clean-item:last-child { border-bottom:none; }
  .clean-check { width:24px; height:24px; border-radius:50%; border:2px solid var(--stone); cursor:pointer; display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:all 0.2s; }
  .clean-check.done { background:var(--moss); border-color:var(--moss); color:white; font-size:13px; }
  .clean-info { flex:1; }
  .clean-name { font-weight:500; font-size:14px; }
  .clean-date { font-size:12px; color:var(--text-soft); margin-top:1px; }
  .clean-urgency { font-size:10px; font-weight:600; text-transform:uppercase; }
  .urgent { color:var(--red); }
  .soon { color:var(--amber); }
  .ok { color:var(--moss); }

  .revenue-big { text-align:center; padding:20px 0 16px; border-bottom:1px solid var(--warm); margin-bottom:16px; }
  .revenue-big .label { font-size:11px; text-transform:uppercase; letter-spacing:0.6px; color:var(--text-soft); margin-bottom:4px; }
  .revenue-big .amount { font-family:'DM Sans',sans-serif; font-size:44px; font-weight:500; color:var(--forest); }
  .revenue-big .sub { font-size:12px; color:var(--text-soft); margin-top:4px; }
  .revenue-row { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid var(--warm); }
  .revenue-row:last-child { border-bottom:none; }
  .revenue-row .rl { font-size:13px; }
  .revenue-row .rr { font-family:'DM Sans',sans-serif; font-size:16px; font-weight:500; color:var(--forest); }
  .month-bars { display:flex; align-items:flex-end; gap:6px; height:70px; margin:16px 0 8px; }
  .bar-col { flex:1; display:flex; flex-direction:column; align-items:center; gap:3px; }
  .bar { width:100%; background:var(--forest); border-radius:4px 4px 0 0; min-height:4px; }
  .bar.current { background:var(--amber); }
  .bar-month { font-size:9px; color:var(--text-soft); text-transform:uppercase; }

  .note-item { background:var(--warm); border-radius:var(--radius-sm); padding:12px; margin-bottom:10px; }
  .note-guest { font-weight:600; font-size:13px; margin-bottom:4px; }
  .note-text { font-size:13px; color:var(--text-soft); line-height:1.5; }
  .note-date { font-size:11px; color:var(--stone); margin-top:6px; }
  .note-tag { display:inline-block; font-size:10px; font-weight:600; padding:2px 8px; border-radius:20px; margin-right:4px; text-transform:uppercase; }
  .tag-info { background:#E3F2FD; color:#1565C0; }
  .tag-positive { background:#E8F5E9; color:#2E7D32; }
  .tag-alert { background:#FFF3E0; color:#E65100; }

  .btn-primary { background:var(--forest); color:var(--white); border:none; border-radius:var(--radius-sm); padding:14px 20px; font-family:'DM Sans',sans-serif; font-size:16px; font-weight:600; width:100%; cursor:pointer; margin-top:8px; min-height:44px; -webkit-tap-highlight-color:transparent; }
  .btn-secondary { background:var(--warm); color:var(--text); border:none; border-radius:var(--radius-sm); padding:12px 20px; font-family:'DM Sans',sans-serif; font-size:15px; font-weight:500; width:100%; cursor:pointer; margin-top:6px; min-height:44px; -webkit-tap-highlight-color:transparent; }

  input, textarea, select { width:100%; background:var(--mist); border:1.5px solid var(--stone); border-radius:var(--radius-sm); padding:12px; font-family:'DM Sans',sans-serif; font-size:16px; color:var(--text); margin-bottom:10px; outline:none; -webkit-appearance:none; appearance:none; }
  input:focus, textarea:focus, select:focus { border-color:var(--forest); }
  select { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B6B' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; padding-right:32px; }
  label { font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:0.4px; color:var(--text-soft); display:block; margin-bottom:4px; }
  textarea { height:80px; resize:none; }

  .form-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  .form-row .field { display:flex; flex-direction:column; }
  .form-row input, .form-row select { margin-bottom:0; }

  .modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:200; align-items:flex-end; }
  .modal-overlay.open { display:flex; }
  .modal { background:var(--white); border-radius:var(--radius) var(--radius) 0 0; padding:20px; width:100%; max-width:430px; margin:0 auto; max-height:90vh; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain;
    transition: transform 0.42s cubic-bezier(0.32,0.72,0,1); }
  .modal-overlay:not(.open) .modal { transform: translateY(100%); }
  .modal-overlay.open .modal { transform: translateY(0); }
  .modal-handle { width:36px; height:4px; background:#C7C7CC; border-radius:2px; margin:0 auto 12px; pointer-events:none; }
  .modal-drag-zone { width:100%; height:44px; margin:-20px -20px 0; padding:20px 20px 0; cursor:grab; display:flex; align-items:flex-start; justify-content:center; touch-action:none; -webkit-user-select:none; user-select:none; position:relative; z-index:2; }
  .modal-title { font-family: inherit; font-size:16px; font-weight:500; color:#1a1a1a; margin-bottom:16px; }

  /* iOS toggle */
  .ios-toggle-row { display:flex; align-items:center; justify-content:space-between; padding:12px 0; border-bottom:1px solid var(--warm); }
  .ios-toggle-row:last-child { border-bottom:none; }
  .ios-toggle-label { font-size:14px; font-weight:500; color:var(--text); }
  .ios-toggle-sub { font-size:12px; color:var(--text-soft); margin-top:2px; }
  .ios-toggle { position:relative; width:51px; height:31px; flex-shrink:0; }
  .ios-toggle input { opacity:0; width:0; height:0; position:absolute; }
  .ios-toggle-track { position:absolute; inset:0; border-radius:31px; background:#E5E5EA;
    transition: background 0.25s; cursor:pointer; }
  .ios-toggle input:checked + .ios-toggle-track { background:#34C759; }
  .ios-toggle-thumb { position:absolute; top:2px; left:2px; width:27px; height:27px; border-radius:50%;
    background:white; box-shadow:0 2px 6px rgba(0,0,0,0.3);
    transition: transform 0.25s cubic-bezier(0.32,0.72,0,1); pointer-events:none; }
  .ios-toggle input:checked ~ .ios-toggle-thumb { transform: translateX(20px); }

  /* Button press feel */
  .btn-primary, .btn-secondary { transition: transform 0.1s, opacity 0.1s; }
  .btn-press { transform: scale(0.96) !important; opacity: 0.85 !important; }

  /* Button loading state */
  .btn-loading { pointer-events: none; opacity: 0.7; position: relative; }
  .btn-loading .btn-loading-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: sp-spin-kf 0.7s linear infinite; vertical-align: middle; margin-right: 6px; }
  .btn-secondary .btn-loading-spinner { border-color: rgba(0,0,0,0.15); border-top-color: var(--forest); }

  /* List item entrance animation */
  @keyframes listSlideIn {
    from { opacity:0; transform:translateY(10px); }
    to   { opacity:1; transform:translateY(0); }
  }
  .list-animate { animation: listSlideIn 0.28s cubic-bezier(0.32,0.72,0,1) both; }

  /* Section fade transitions */
  @keyframes sectionFadeIn {
    from { opacity:0; transform:translateY(6px); }
    to   { opacity:1; transform:translateY(0); }
  }
  .section-enter { animation: sectionFadeIn 0.22s ease-out both; }

  /* Skeleton loading shimmer */
  @keyframes shimmer {
    0% { background-position:-400px 0; }
    100% { background-position:400px 0; }
  }
  .skeleton { background:linear-gradient(90deg,#f0efec 0%,#e5e3df 50%,#f0efec 100%); background-size:800px 100%; animation:shimmer 1.6s infinite linear; border-radius:8px; }
  .skeleton-text { height:14px; margin-bottom:8px; border-radius:4px; }
  .skeleton-title { height:20px; width:60%; margin-bottom:10px; border-radius:4px; }
  .skeleton-card { height:80px; margin-bottom:10px; }

  /* Empty state float animation */
  @keyframes emptyFloat {
    0%,100% { transform:translateY(0); }
    50% { transform:translateY(-6px); }
  }
  .empty-state-icon { animation:emptyFloat 3s ease-in-out infinite; display:inline-block; }

  /* Number count-up highlight */
  @keyframes numberPop {
    0% { transform:scale(0.9); opacity:0.5; }
    60% { transform:scale(1.03); }
    100% { transform:scale(1); opacity:1; }
  }
  .number-animate { animation:numberPop 0.4s ease-out both; }

  /* Action sheet */
  .action-sheet-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.4); z-index:300; align-items:flex-end; justify-content:center; }
  .action-sheet-overlay.open { display:flex; }
  .action-sheet { background:var(--white); border-radius:14px 14px 0 0; width:100%; max-width:430px; padding:8px 0 calc(8px + env(safe-area-inset-bottom));
    transform:translateY(100%); transition:transform 0.38s cubic-bezier(0.32,0.72,0,1); }
  .action-sheet-overlay.open .action-sheet { transform:translateY(0); }
  .action-sheet-title { font-size:12px; color:var(--text-soft); text-align:center; padding:10px 16px 4px; font-weight:500; }
  .action-sheet-btn { display:block; width:100%; padding:16px; font-size:17px; font-family:'DM Sans',sans-serif; background:none; border:none; border-top:1px solid var(--warm); text-align:center; cursor:pointer; color:var(--forest); font-weight:400; -webkit-tap-highlight-color:transparent; }
  .action-sheet-btn.destructive { color:var(--red); }
  .action-sheet-btn.cancel { font-weight:600; color:var(--text); }
  .action-sheet-cancel { margin-top:8px; border-radius:14px; overflow:hidden; margin:8px; }

  /* Swipe-back visual hint on sub-screens */
  .swipe-back-hint { position:fixed; left:0; top:50%; transform:translateY(-50%); width:4px; height:60px; background:var(--forest); border-radius:0 4px 4px 0; opacity:0; transition:opacity 0.2s; z-index:50; pointer-events:none; }
  .swipe-back-hint.visible { opacity:0.4; }

  .fab { position:fixed; bottom:24px; right:24px; width:54px; height:54px; background:var(--amber); border:none; border-radius:50%; color:white; font-size:26px; cursor:pointer; box-shadow:0 4px 16px rgba(0,0,0,0.2); display:flex; align-items:center; justify-content:center; z-index:99; }
  .fab-chat { right:24px; background:var(--forest) !important; }

  .cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:0; margin-top:10px; }
  .cal-day-label { text-align:center; font-size:10px; font-weight:600; color:var(--text-soft); padding:4px 0; text-transform:uppercase; }
  .cal-day { height:38px; display:flex; align-items:center; justify-content:center; font-size:13px; position:relative; cursor:default; }
  /* Airbnb-style range: middle days get full-width background */
  .cal-day.booked-mid { background:#d4e6d4; color:var(--forest); font-weight:500; }
  /* Check-in: right half filled, left half clear, circle on number */
  .cal-day.booked-start { background:linear-gradient(to right, transparent 50%, #d4e6d4 50%); }
  .cal-day.booked-start .cal-num { background:var(--forest); color:white; font-weight:700; border-radius:50%; width:28px; height:28px; display:flex; align-items:center; justify-content:center; position:relative; z-index:1; }
  /* Check-out: left half filled, right half clear, circle on number */
  .cal-day.booked-end { background:linear-gradient(to left, transparent 50%, #d4e6d4 50%); }
  .cal-day.booked-end .cal-num { background:var(--forest); color:white; font-weight:700; border-radius:50%; width:28px; height:28px; display:flex; align-items:center; justify-content:center; position:relative; z-index:1; }
  /* Single-night: both start and end */
  .cal-day.booked-start.booked-end { background:transparent; }
  .cal-day.booked-start.booked-end .cal-num { background:var(--forest); color:white; font-weight:700; border-radius:50%; width:28px; height:28px; display:flex; align-items:center; justify-content:center; }
  .cal-num { width:28px; height:28px; display:flex; align-items:center; justify-content:center; border-radius:50%; }
  .cal-day.today .cal-num { border:2px solid var(--amber); font-weight:700; }

  .import-area { border:2px dashed var(--stone); border-radius:var(--radius-sm); padding:24px; text-align:center; cursor:pointer; margin-bottom:12px; }
  .import-icon { font-size:32px; margin-bottom:8px; }
  .import-text { font-size:13px; color:var(--text-soft); }

  .tab-row { display:flex; gap:6px; margin-bottom:14px; }
  .tab { flex:1; padding:8px; text-align:center; font-size:12px; font-weight:600; border-radius:var(--radius-sm); border:none; cursor:pointer; background:var(--warm); color:var(--text-soft); }
  .tab.active { background:var(--forest); color:white; }

  .section-hidden { display:none; }

  /* Detail rows */
  .detail-row { display:flex; justify-content:space-between; align-items:center; padding:9px 0; border-bottom:1px solid var(--warm); }
  .detail-row:last-child { border-bottom:none; }
  .detail-label { font-size:12px; color:var(--text-soft); }
  .detail-val { font-size:13px; font-weight:600; color:var(--text); text-align:right; }
  .detail-val.money { font-family:'DM Serif Display',serif; font-size:15px; color:var(--forest); }

  /* Cleaner confirmed toggle */
  .toggle-wrap { display:flex; align-items:center; justify-content:space-between; padding:12px 0; }
  .toggle { width:44px; height:24px; background:var(--stone); border-radius:12px; position:relative; cursor:pointer; transition:background 0.2s; border:none; }
  .toggle.on { background:var(--moss); }
  .toggle::after { content:''; position:absolute; width:18px; height:18px; background:white; border-radius:50%; top:3px; left:3px; transition:transform 0.2s; }
  .toggle.on::after { transform:translateX(20px); }

  .finance-summary { background:#fff; border-radius:12px; padding:0; margin-bottom:0; border:0.5px solid rgba(0,0,0,0.06); }
  .finance-row { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:0.5px solid rgba(0,0,0,0.08); font-family:'DM Sans',sans-serif; }
  .finance-row:last-child { border-bottom:none; }
  .finance-label { font-size:13px; color:var(--text-soft); }
  .finance-val { font-size:13px; color:#1a1a1a; font-weight:500; }
  .finance-total { border-top:none; margin-top:0; padding-top:0; }
  .finance-total .finance-label { color:#1a1a1a; font-weight:500; }
  .finance-total .finance-val { font-family:'DM Sans',sans-serif; font-size:15px; font-weight:500; color:#1D9E75; }

  .settings-cat-item { display:flex; align-items:center; justify-content:space-between; padding:12px 0; border-bottom:1px solid var(--warm); cursor:pointer; -webkit-tap-highlight-color:transparent; }
  .settings-cat-item:active { opacity:0.7; }
  .settings-back { font-size:14px; font-weight:600; color:var(--forest); padding:8px 0 16px; cursor:pointer; display:inline-flex; align-items:center; gap:4px; }

  /* Shopping list checked state */
  .shop-checked { opacity: 0.5; }
  .shop-checked .shop-cb {
    background: var(--moss);
    border-color: var(--moss);
  }
  .shop-checked .shop-cb::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
  }
  .shop-checked .shop-label {
    text-decoration: line-through;
    color: var(--text-soft);
  }

  /* Annual Report */
  .report-table { width:100%; border-collapse:collapse; font-size:11px; margin-bottom:0; }
  .report-table th { background:var(--forest); color:white; padding:6px 8px; text-align:right; font-weight:600; font-size:10px; text-transform:uppercase; letter-spacing:0.4px; }
  .report-table th:first-child { text-align:left; }
  .report-table td { padding:6px 8px; text-align:right; border-bottom:1px solid var(--warm); font-size:12px; }
  .report-table td:first-child { text-align:left; font-weight:500; color:var(--text); }
  .report-table tr:last-child td { border-bottom:none; font-weight:700; background:var(--mist); }
  .report-table tr.highlight-row td { background:#F0F7F0; font-weight:600; }
  .report-section-title { font-family: inherit; font-size:16px; font-weight:500; margin:16px 0 8px; color:#1a1a1a; }
  .report-kpi-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:4px; }
  .report-kpi { background:var(--mist); border-radius:var(--radius-sm); padding:10px 12px; text-align:center; }
  .report-kpi-val { font-family:'DM Sans',sans-serif; font-size:22px; font-weight:500; color:var(--forest); }
  .report-kpi-label { font-size:10px; text-transform:uppercase; letter-spacing:0.5px; color:var(--text-soft); margin-top:2px; }

  /* ── CLEANER MODE ── */
  body.cleaner-mode .header,
  body.cleaner-mode .fab,
  body.cleaner-pin-active .fab { display:none !important; }
  body.cleaner-mode .nav,
  body.cleaner-mode #main-content { display:none !important; }
  #cleaner-pin-screen { display:none; position:fixed; inset:0; background:var(--forest); z-index:9999; flex-direction:column; align-items:center; justify-content:center; padding:32px 24px; }
  body.cleaner-pin-active #cleaner-pin-screen { display:flex; }
  #cleaner-app { display:none; flex-direction:column; min-height:100vh; }
  body.cleaner-mode #cleaner-app { display:flex; }
  .cleaner-header { background:var(--forest); padding:52px 20px 16px; position:sticky; top:0; z-index:100; }
  .cleaner-tab-bar { display:flex; background:#fff; border-bottom:1px solid var(--warm); position:sticky; top:0; z-index:50; }
  .cleaner-tab { flex:1; background:none; border:none; border-bottom:3px solid transparent; padding:14px 8px 11px; font-family:'DM Sans',sans-serif; font-size:13px; font-weight:600; color:var(--text-soft); cursor:pointer; transition:all 0.2s; }
  .cleaner-tab.active { color:var(--forest); border-bottom-color:var(--forest); }
  .cleaner-content { flex:1; padding:16px; padding-bottom:calc(40px + env(safe-area-inset-bottom)); background:var(--mist); }
  .clean-job-card { background:var(--white); border-radius:var(--radius); padding:16px; margin-bottom:12px; box-shadow:0 1px 4px rgba(0,0,0,0.07); border-left:4px solid var(--sage); }
  .clean-job-card.urgent { border-left-color:var(--amber); }
  .clean-job-card.done { border-left-color:var(--stone); opacity:0.6; }
  .pin-dot { width:18px; height:18px; border-radius:50%; background:rgba(255,255,255,0.25); transition:background 0.15s; }
  .pin-dot.filled { background:white; }
  .pin-key { width:72px; height:72px; border-radius:50%; background:rgba(255,255,255,0.12); border:none; color:white; font-family:'DM Sans',sans-serif; font-size:24px; font-weight:500; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background 0.1s; -webkit-tap-highlight-color:transparent; }
  .pin-key:active { background:rgba(255,255,255,0.28); }
  .pin-key.delete { font-size:18px; }
  @media print {
    body * { visibility: hidden; }
    #print-report, #print-report * { visibility: visible; }
    #print-report { position: absolute; top: 0; left: 0; width: 100%; background: white; padding: 12px; box-sizing: border-box; }
    .no-print { display: none !important; visibility: hidden !important; }
    .report-table th { background: #1E3A2F !important; color: white !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .report-table tr.highlight-row td { background: #F0F7F0 !important; -webkit-print-color-adjust: exact; }
    .card { box-shadow: none !important; border: 1px solid #e5e5e5 !important; margin-bottom: 10px; page-break-inside: avoid; }
  }

/* ── 2026 polish refresh: calmer, clearer, mobile-first hierarchy ───────── */
:root {
  --surface: #f7f4ef;
  --surface-2: #f2ece4;
  --card-border: rgba(30,58,47,0.08);
  --shadow-soft: 0 8px 24px rgba(20,35,28,0.07);
  --shadow-nav: 0 -10px 30px rgba(20,35,28,0.10);
}

body {
  background: linear-gradient(180deg, #f1ece4 0%, #f7f4ef 40%, #f8f6f2 100%);
  color: #15231c;
}

.header {
  background: linear-gradient(160deg, #1f3a2f 0%, #28473a 72%, #325746 100%);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  box-shadow: 0 6px 20px rgba(15,28,22,0.20);
}

#main-content.app-shell {
  padding: 18px 16px 120px !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-stack { display: flex; flex-direction: column; gap: 12px; }

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 0;
}
.section-heading h2 {
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.1;
  color: #1a1a1a;
  margin: 0;
}
.section-heading p {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 400;
  color: #999;
}
.section-heading-settings { padding-bottom: 6px; }

.section-cta {
  width: auto;
  margin: 0;
  font-size: 13px;
  padding: 10px 12px;
  min-height: 38px;
  border: 1px solid var(--card-border);
  background: #fff;
}

.card {
  background: rgba(255,255,255,0.90);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  border-radius: 18px;
  backdrop-filter: blur(1.5px);
}

.dashboard-hero {
  border: none;
  box-shadow: 0 14px 28px rgba(25,45,36,0.22);
}

.stats-row { gap: 12px; margin-bottom: 0; }
.stat-card {
  border: 1px solid var(--card-border);
  box-shadow: 0 6px 16px rgba(18,31,24,0.05);
  border-radius: 14px;
}
.stat-label { letter-spacing: 0.6px; }

.booking-item, .clean-item, .revenue-row { padding: 14px 2px; }
.booking-name { font-size: 15px; }
.booking-dates, .clean-date { font-size: 12px; line-height: 1.45; }

.tab-row {
  gap: 8px;
  padding: 4px;
  border-radius: 13px;
  background: var(--surface-2);
  margin-bottom: 10px;
}
.tab {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  min-height: 38px;
}
.tab.active {
  background: #fff;
  color: var(--forest);
  border-color: rgba(30,58,47,0.12);
  box-shadow: 0 4px 10px rgba(20,35,28,0.08);
}

.btn-primary {
  border-radius: 12px;
  min-height: 46px;
  font-size: 15px;
  box-shadow: 0 8px 16px rgba(30,58,47,0.22);
}
.btn-secondary {
  border-radius: 12px;
  min-height: 44px;
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--card-border);
}

.nav {
  margin: 0;
  border-radius: 0;
  border: none;
  padding: 2px 4px calc(2px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.98);
  box-shadow: none;
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-soft, #dfe8e3);
}
.nav-btn {
  font-size: 11px;
  gap: 3px;
  padding: 8px 0;
  color: #999;
  border-bottom: 2px solid transparent;
  box-shadow: none;
}
.nav-btn > svg {
  flex-shrink: 0;
  display: block;
}
.nav-btn.active {
  color: #3D6B4F;
  border-bottom-color: #3D6B4F;
  box-shadow: none;
}

.fab {
  bottom: 92px;
  right: 18px;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255,255,255,0.65);
  box-shadow: 0 12px 22px rgba(15,26,20,0.30);
}

#sync-banner {
  left: 12px !important;
  right: 12px !important;
  top: calc(env(safe-area-inset-top) + 8px) !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #f5fff8 !important;
  box-shadow: 0 10px 24px rgba(16,28,22,0.26) !important;
}

#section-cleaning #cleaning-list,
#section-property #expenses-list,
#section-bookings #bookings-list {
  border-radius: 12px;
}

#settings-cat-aitools .card {
  border: 1px solid rgba(175,82,222,0.20);
  box-shadow: 0 10px 22px rgba(175,82,222,0.10);
}
#settings-cat-aitools .settings-cat-item {
  padding: 14px 0;
}
#settings-panel-smart-pricing .card,
#settings-panel-ai-import .card,
#settings-panel-ai-ignore .card {
  border-left: 3px solid rgba(175,82,222,0.30);
}

@keyframes sp-spin-kf {
  to { transform: rotate(360deg); }
}
.sp-spin {
  display: inline-block;
  animation: sp-spin-kf 0.85s linear infinite;
}

@media (max-width: 390px) {
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-cta { width: 100%; }
  .stat-val { font-size: 21px; }
  .nav-btn { font-size: 10.5px; }
  .dashboard-stat-grid { grid-template-columns: 1fr 1fr !important; }
}

/* Ensure hidden sections stay hidden even when combined with layout classes */
.section-hidden { display:none !important; }

/* ── 2026 green dashboard redesign (visual-only, no logic changes) ───────── */
:root {
  --forest: #1f5a43;
  --forest-light: #2f7157;
  --moss: #4f9272;
  --sage: #8eb7a3;
  --mist: #f3f5f4;
  --warm: #e8eeeb;
  --stone: #c8d5cf;
  --text: #16211b;
  --text-soft: #5f7168;
  --surface-white: #ffffff;
  --surface-soft: #f7faf8;
  --line-soft: #dfe8e3;
}

body {
  background: linear-gradient(180deg, #f4f8f6 0%, #f8fbfa 100%);
  color: var(--text);
}

#main-content {
  padding-bottom: 118px !important;
}

.header {
  background: linear-gradient(160deg, #1d5a42 0%, #276c52 62%, #2e775c 100%);
  box-shadow: 0 8px 24px rgba(22, 55, 42, 0.22);
}

.today-badge {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.32);
  color: #ecfff6;
  flex: 0 0 auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.card {
  background: var(--surface-white);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 49, 38, 0.07);
  margin-bottom: 14px;
}

.card-title {
  font-size: 11px;
  letter-spacing: 0.75px;
  color: #698579;
}

.section-heading h2 {
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
}

.section-heading p {
  color: #999;
  font-size: 13px;
  font-weight: 400;
}

.stats-row {
  gap: 12px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(26, 52, 40, 0.05);
}

.stat-val {
  color: var(--forest);
}

.nav {
  border: none;
  border-top: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.97);
  box-shadow: none;
}

.nav-btn {
  color: #999;
}

.nav-btn.active {
  color: #3D6B4F;
}

.tab-row {
  background: #edf3f0;
  border-radius: 13px;
  padding: 4px;
  gap: 7px;
}

.tab {
  border-radius: 10px;
  border: 1px solid transparent;
  color: #6e8178;
  min-height: 38px;
  font-size: 12px;
}

.tab.active {
  background: #fff;
  color: var(--forest);
  border-color: #d8e4de;
  box-shadow: 0 3px 8px rgba(31, 80, 60, 0.10);
}

.btn-primary,
.btn-secondary {
  border-radius: 12px;
  min-height: 44px;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(160deg, #1f5a43 0%, #296b52 100%);
  color: #fff;
  box-shadow: 0 8px 16px rgba(29, 73, 55, 0.22);
}

.btn-primary:hover { filter: brightness(1.02); }
.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
  background: #fff;
  color: var(--forest);
  border: 1px solid #d5e2dc;
}

.btn-secondary:hover { background: #f5faf7; }

input,
select,
textarea {
  background: #fbfdfc;
  border: 1.5px solid #d4e1db;
  border-radius: 11px;
  color: var(--text);
  font-size: 14px;
  min-height: 44px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(79, 146, 114, 0.14);
}

label {
  color: #587268;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.booking-item,
.clean-item,
.revenue-row,
.detail-row {
  border-bottom-color: #e8efeb;
}

.booking-status {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.status-confirmed {
  background: #e8f5ee;
  color: #246347;
}

.status-upcoming {
  background: #eef8f3;
  color: #2f7157;
}

.status-completed {
  background: #f0f3f1;
  color: #667b71;
  border: 1px solid #d8e0dc;
}

.clean-check {
  border-color: #9ab7aa;
}

.clean-check.done {
  background: var(--forest);
  border-color: var(--forest);
}

.finance-summary {
  background: #fff;
  border-radius: 12px;
  padding: 0;
  margin: 0;
}

/* Finance reports: iOS-style segmented controls */
.fin-seg {
  display: flex;
  background: var(--warm, #e8eeeb);
  border-radius: 12px;
  padding: 3px;
  gap: 2px;
}
.fin-seg-sm {
  border-radius: 10px;
  padding: 2px;
}
.fin-seg-opt {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 8px 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fin-seg-sm .fin-seg-opt {
  padding: 6px 8px;
  font-size: 12px;
  border-radius: 8px;
}
.fin-seg-opt.active {
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.fin-section-hdr {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-soft);
  margin-bottom: 10px;
}
.fin-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
}
.fin-sum-row:last-child {
  border-bottom: none;
  font-weight: 500;
  padding-top: 12px;
}
.fin-rev-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  font-family: 'DM Sans', sans-serif;
}
.fin-rev-row:last-child {
  border-bottom: none;
}
.fin-month-hdr {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-soft);
  margin: 16px 0 8px;
}
.expcat-row-del {
  font-size: 12px;
  color: #a32d2d;
  padding: 8px 12px;
  flex-shrink: 0;
}

#sync-banner {
  background: rgba(29, 84, 62, 0.93) !important;
  color: #e8fff4 !important;
  border: 1px solid rgba(180, 226, 205, 0.34);
  box-shadow: 0 10px 24px rgba(18, 47, 35, 0.20) !important;
  border-radius: 12px !important;
  left: 10px !important;
  right: 10px !important;
}

.fab {
  background: linear-gradient(160deg, #1e5c43, #2b7357);
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255,255,255,0.75);
  box-shadow: 0 12px 24px rgba(18, 45, 34, 0.28);
}

.settings-cat-item {
  padding: 14px 0;
  border-bottom-color: #e6eeea;
}

.settings-back {
  color: var(--forest);
}

@media (max-width: 430px) {
  .card { padding: 14px; }
  .stats-row { grid-template-columns: 1fr 1fr 1fr; }
  .stat-val { font-size: 22px; }
}

/* ── 2026 phase 6: premium mobile polish (visual-only) ─────────────────── */
.section-stack {
  gap: 14px;
}

.card {
  border-radius: 20px;
}

#section-dashboard .dashboard-hero {
  padding: 18px;
}

#section-dashboard .dashboard-hero .card-title,
#section-dashboard .dashboard-next-checkin .card-title,
#section-dashboard .dashboard-next-clean .card-title {
  font-size: 10px;
  letter-spacing: 0.9px;
}

#section-bookings .section-heading,
#section-cleaning .section-heading,
#section-settings .section-heading {
  margin-top: 2px;
}

#bookings-list .card,
#cleaning-list .card {
  margin-bottom: 10px;
}

/* Bookings list — compact rhythm: tighter padding and gap */
#bookings-list .card { padding: 12px; margin-bottom: 8px; }

.attention-summary {
  position: relative;
  overflow: hidden;
}

.attention-summary::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #d18f44, #b96e25);
}

.booking-attention-summary {
  background: linear-gradient(180deg, #fffdf7 0%, #fff8ef 100%) !important;
}

.cleaning-snapshot {
  background: linear-gradient(180deg, #fbfffc 0%, #f3faf6 100%) !important;
}

#section-cleaning #clean-add-card {
  border: 1px solid #d5e6dd;
  box-shadow: 0 10px 22px rgba(28, 65, 49, 0.08);
}

#section-cleaning #clean-add-card .btn-primary {
  margin-top: 8px;
}

#settings-menu > .card,
#settings-cat-property > .card,
#settings-cat-cleaner > .card,
#settings-cat-finance > .card,
#settings-cat-google > .card {
  border-radius: 18px;
}

#conn-summary-list > div {
  border-radius: 12px !important;
}

.cleaner-content {
  background: linear-gradient(180deg, #eef5f1 0%, #f5faf7 100%);
}

#cleaner-cleans-new .clean-job-card {
  border-left-color: #d99a4a;
  background: #fffaf2;
}

#cleaner-cleans-upcoming .clean-job-card {
  border-left-color: #2b7054;
  background: #f6fcf8;
}

#cleaner-cleans-new > div[style*='text-align:center'],
#cleaner-cleans-upcoming > div[style*='text-align:center'] {
  background: #ffffff;
  border: 1px solid #dfe9e3;
  border-radius: 16px;
}

#cleaner-refresh-btn,
#cleaner-notif-btn {
  min-height: 34px;
}

/* ── 2026 phase 6b: action-first mobile hierarchy ───────────────────────── */
.quick-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quick-action-row .btn-primary,
.quick-action-row .btn-secondary {
  min-height: 42px;
  font-size: 13px;
  margin: 0;
  padding: 10px 8px;
}

#settings-quick-actions {
  border: 1px solid #d8e6df;
  background: linear-gradient(180deg, #f8fcfa 0%, #ffffff 100%);
}

.attention-summary .quick-action-row .btn-primary {
  box-shadow: 0 6px 12px rgba(30, 90, 67, 0.18);
}

.mini-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.mini-status-chip.chip-new {
  background: #fff2df;
  color: #9a5c13;
}

.mini-status-chip.chip-upcoming {
  background: #e9f7ee;
  color: #1f6a48;
}

#cleaner-quick-summary {
  border: 1px solid #dbe8e1;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfa 100%);
}

@media (max-width: 380px) {
  .quick-action-row {
    grid-template-columns: 1fr;
  }
}

/* Compact nav + hierarchy refresh */
.header { padding: calc(env(safe-area-inset-top, 20px) + 10px) 16px 12px; }
.header-top { gap: 6px; }
.header-refresh-btn { background:rgba(255,255,255,0.14); border:none; border-radius:14px; color:rgba(255,255,255,0.9); font-size:11px; font-weight:700; padding:6px 10px; cursor:pointer; white-space:nowrap; }
.nav { padding:2px 4px; box-shadow:none; }
.nav-btn { font-size:11px; gap:3px; padding:8px 0; color:#999; border-bottom:2px solid transparent; box-shadow:none; }
.nav-btn.active { color:#3D6B4F; border-bottom-color:#3D6B4F; box-shadow:none; }
#bookings-tab-row { flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
#bookings-tab-row::-webkit-scrollbar { display:none; }
#bookings-tab-row .tab { flex:0 0 auto; padding-left:14px; padding-right:14px; }
.cleaning-summary-slim { background:#F4F8F5; border:1px solid #DDE8DF; border-radius:10px; padding:8px 12px; font-size:12px; color:var(--text-soft); margin-bottom:8px; }
#clean-add-card { margin-top:8px; }

/* ── Settings & Integrations compact polish ───────────────────────────── */

/* Tighter cards in settings menu and sub-screens */
#settings-menu > .card,
#settings-cat-property > .card,
#settings-cat-cleaner > .card,
#settings-cat-finance > .card,
#settings-cat-advanced > .card,
#settings-panel-integrations > .card {
  border-radius: 14px;
  margin-bottom: 10px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* Compact settings rows: smaller icons, tighter padding */
#section-settings .settings-cat-item {
  padding: 10px 0;
}

#section-settings .settings-cat-item > div:first-child {
  gap: 10px !important;
}

/* Smaller icon circles — softened with lower opacity */
#section-settings .settings-cat-item > div:first-child > div:first-child {
  width: 30px !important;
  height: 30px !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  opacity: 0.85;
}

/* ── Visual hierarchy: labels vs descriptions ── */

/* Primary row labels — stronger weight, solid color */
#section-settings .settings-cat-item > div:first-child > div:last-child > div:first-child {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  letter-spacing: -0.1px;
}

/* Secondary descriptions — readable but clearly secondary */
#section-settings .settings-cat-item > div:first-child > div:last-child > div:last-child {
  font-size: 11px !important;
  color: #8E8E93 !important;
  font-weight: 400 !important;
  letter-spacing: 0.05px;
  margin-top: 1px;
}

/* Chevrons — much lighter, fade into background */
#section-settings .settings-cat-item > div:last-child {
  font-size: 17px !important;
  color: #D1D1D6 !important;
  font-weight: 300 !important;
}

/* Row dividers — barely-there hairline */
#section-settings .settings-cat-item {
  border-bottom-color: rgba(0,0,0,0.05) !important;
}

/* ── Section headers: clear group labels ── */
#settings-menu > div[style*="text-transform:uppercase"],
#section-settings div[style*="text-transform:uppercase"][style*="letter-spacing:0.6px"] {
  padding-bottom: 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.6px !important;
  color: #6B6B6B !important;
}

/* First section header gets less top padding (follows quick actions or preserved items) */
#settings-menu > div[style*="padding:16px 4px"] {
  padding-top: 10px !important;
}

/* ── Back buttons: cleaner ── */
#section-settings .settings-back {
  padding: 4px 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--moss);
  letter-spacing: 0;
  -webkit-tap-highlight-color: transparent;
}

#section-settings .settings-back:active {
  opacity: 0.5;
}

/* ── Panel screen titles (card-title as first child = screen header) ── */
#section-settings [id^="settings-panel-"] > .card:first-of-type > .card-title,
#section-settings [id^="settings-cat-"] > .card:first-of-type > .card-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.2px;
  color: var(--text);
  margin-bottom: 4px;
}

/* Description text directly after a screen-title card-title */
#section-settings [id^="settings-panel-"] > .card:first-of-type > .card-title + div[style*="color:var(--text-soft)"] {
  font-size: 11.5px !important;
  color: var(--stone) !important;
  margin-bottom: 10px !important;
}

/* Tighter card inner padding for settings list cards */
#settings-menu > .card[style*="padding:0 16px"],
#settings-cat-property > .card[style*="padding:0 16px"],
#settings-cat-cleaner > .card[style*="padding:0 16px"],
#settings-cat-finance > .card[style*="padding:0 16px"],
#settings-cat-advanced > .card[style*="padding:0 16px"],
#settings-panel-integrations > .card[style*="padding:0 16px"] {
  padding-left: 12px !important;
  padding-right: 12px !important;
}

/* ── Integrations panel polish ── */

#integrations-conn-list {
  gap: 6px !important;
}

#integrations-conn-list > div {
  border-radius: 10px !important;
  padding: 10px !important;
  margin-top: 0 !important;
}

#integrations-conn-list > div:first-child {
  padding: 8px 10px !important;
}

/* Integrations card title + description */
#settings-panel-integrations .card-title {
  margin-bottom: 6px;
}

#settings-panel-integrations .card > div[style*="margin-bottom:12px"] {
  margin-bottom: 8px !important;
}

/* Integrations connection block section labels */
#integrations-conn-list div[style*="font-weight:700"] {
  font-size: 11.5px !important;
  font-weight: 600 !important;
}

/* Integrations helper text — quieter */
#integrations-conn-list div[style*="font-size:11px"][style*="color:var(--text-soft)"],
#integrations-conn-list div[style*="font-size:12px"][style*="color:var(--moss)"] {
  font-size: 11px !important;
}

/* ── Mobile breathing-room patch ─────────────────────────────────────────
   Surgical visual-only overrides: header spacing, nav tappability, tab
   sizing. No colours, no layout changes, no JS. Appended last so it wins
   the cascade over all prior ungated rules and earlier media queries.
   ─────────────────────────────────────────────────────────────────────── */
@media (max-width: 430px) {

  /* Header — more room between property name, refresh button, date badge */
  .header {
    padding: calc(env(safe-area-inset-top, 20px) + 10px) 18px 14px;
  }
  .header-top {
    gap: 10px;
    align-items: center;
  }
  .header h1 {
    font-size: 22px;
  }
  .header-sub {
    margin-top: 4px;
  }
  .today-badge {
    padding: 5px 12px;
    min-height: 28px;
    font-size: 11px;
  }

  /* Bottom nav — compact bar; flush to bottom edge */
  .nav {
    padding: 2px 4px calc(2px + env(safe-area-inset-bottom));
  }
  .nav-btn {
    font-size: 11px;
    gap: 3px;
    padding: 8px 0;
  }

  /* All tabs — taller, easier to read and tap */
  .tab {
    min-height: 44px;
    font-size: 13px;
    padding: 10px 8px;
  }

  /* Bookings tab row — single-row horizontal scroll */
  #bookings-tab-row {
    gap: 6px;
  }
  #bookings-tab-row .tab {
    min-height: 44px;
    font-size: 12px;
    padding: 10px 14px;
  }
}

/* ── Depth & light patch ──────────────────────────────────────────────────
   Replaces single-layer neutral shadows with two-layer green-tinted ones
   and adds subtle inset highlights on lit surfaces. Visual-only — no
   layout, colour, or sizing changes. Appended last; wins the cascade.
   ─────────────────────────────────────────────────────────────────────── */

/* Header — layered shadow + faint top-edge specular on the green surface */
.header {
  box-shadow:
    0 4px 10px rgba(18, 46, 34, 0.18),
    0 12px 28px rgba(18, 46, 34, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

/* Cards — two-layer shadow: close contact shadow + soft ambient lift */
.card {
  box-shadow:
    0 1px 3px rgba(22, 46, 35, 0.07),
    0 6px 18px rgba(22, 46, 35, 0.07);
  border: 1px solid rgba(22, 46, 35, 0.08);
}

/* Stat cards inherit .card but override for the tighter radius context */
.stat-card {
  box-shadow:
    0 1px 3px rgba(22, 46, 35, 0.06),
    0 5px 14px rgba(22, 46, 35, 0.07);
}

/* Bottom nav — flat bar, top border only */
.nav {
  box-shadow: none;
  border-top: 1px solid rgba(22, 46, 35, 0.10);
}

/* FAB — layered drop + inset top highlight for a "raised button" feel */
.fab {
  box-shadow:
    0 3px 8px rgba(18, 46, 34, 0.22),
    0 10px 22px rgba(18, 46, 34, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Active tab — crisper two-layer lift, barely-there top border highlight */
.tab.active {
  box-shadow:
    0 1px 3px rgba(22, 46, 35, 0.08),
    0 4px 12px rgba(22, 46, 35, 0.10);
  border-color: rgba(22, 46, 35, 0.11);
}

/* ── Active & selected state refinement patch ────────────────────────────
   Improves contrast between active and inactive states for nav items,
   tabs, and the primary button press state. Visual-only — no layout,
   sizing, or logic changes. Appended last; wins the cascade.
   ─────────────────────────────────────────────────────────────────────── */

/* Active nav — underline + olive label (SVG uses currentColor) */
.nav-btn.active {
  color: #3D6B4F;
  font-weight: 600;
  border-bottom-color: #3D6B4F;
}

/* Active tab — green tint instead of plain white so it reads as selected
   even when sitting on a white card; bolder label for extra pop */
.tab.active {
  background: #eef8f3;
  color: #1a4f3a;
  font-weight: 700;
  border-color: rgba(26, 79, 58, 0.18);
  box-shadow:
    0 1px 3px rgba(22, 46, 35, 0.08),
    0 4px 12px rgba(22, 46, 35, 0.11);
}

/* btn-primary press state — brightness dip + shadow collapse makes the
   tap feel physically satisfying rather than invisible */
.btn-primary:active {
  filter: brightness(0.93);
  transform: translateY(1px);
  box-shadow:
    0 1px 3px rgba(18, 46, 34, 0.18),
    0 3px 8px rgba(18, 46, 34, 0.14);
  transition: filter 0.08s, transform 0.08s, box-shadow 0.08s;
}

/* ── Dashboard (Today) visual hierarchy patch ────────────────────────────
   Scoped entirely to #section-today. Corrects the prior dead rules that
   used #section-dashboard (wrong ID). Surgical visual-only overrides —
   no layout, logic, or sizing changes. Appended last; wins the cascade.
   ─────────────────────────────────────────────────────────────────────── */

/* Hero card — layered shadow + faint specular rim; corrects dead prior rule */
#section-today .dashboard-hero {
  padding: 20px;
  box-shadow:
    0 6px 16px rgba(18, 50, 36, 0.20),
    0 18px 36px rgba(18, 50, 36, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

/* Stats row: values bigger and tighter, labels quieter */
#section-today .stat-val {
  font-size: 26px;
  letter-spacing: -0.4px;
  line-height: 1;
}

#section-today .stat-label {
  font-size: 9px;
  letter-spacing: 0.8px;
  margin-top: 5px;
  color: #8ca49a;
}

#section-today .stat-card {
  padding: 16px 10px;
}

/* Card titles within dashboard — bolder, with a hairline rule underneath
   to create a clear shelf between title and content */
#section-today .card > .card-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.9px;
  color: #7a9b8e;
  margin-bottom: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(22, 46, 35, 0.07);
}

/* Next Check-in & Next Clean: glance cards — title a touch lighter
   so content (the actual data) commands more attention */
#section-today .dashboard-next-checkin .card-title,
#section-today .dashboard-next-clean .card-title {
  color: #92aca2;
  letter-spacing: 1px;
}

/* Calendar card — softer border so it doesn't compete with data cards */
#section-today .dashboard-calendar {
  border-color: rgba(22, 46, 35, 0.06);
}

/* ── Quick Add overlay ───────────────────────────────────────────────────
   Strict layout pass. One parent menu, one action column, one close row.
   No arc offsets. No overlap. Equal spacing throughout.
   ─────────────────────────────────────────────────────────────────────── */

/* Full-screen blurred backdrop */
#quick-add-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(14, 32, 24, 0.48);
  backdrop-filter: blur(8px) saturate(0.82);
  -webkit-backdrop-filter: blur(8px) saturate(0.82);
}

#quick-add-overlay.open {
  display: block;
}

/* ── Menu container ──────────────────────────────────────────────────────
   Anchored to bottom-right, well inset from edges.
   Flex column: action list on top, close row below.
   Gap between them is explicit and controlled.
   ─────────────────────────────────────────────────────────────────────── */
#quick-add-menu {
  position: absolute;
  bottom: calc(162px + env(safe-area-inset-bottom));
  right: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: qa-rise 0.26s cubic-bezier(0.32, 0.72, 0, 1) both;
}

@keyframes qa-rise {
  from { opacity: 0; transform: translateY(18px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ── Action list ─────────────────────────────────────────────────────────
   Three equal bubbles, same width, equal gap, centered column.
   ─────────────────────────────────────────────────────────────────────── */
#qa-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Each bubble button */
.qa-bubble {
  width: 80px;         /* fixed width so all labels center identically */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Circle — all three the same */
.qa-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  box-shadow:
    0 2px 6px rgba(14, 34, 24, 0.16),
    0 8px 20px rgba(14, 34, 24, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.14s cubic-bezier(0.32, 0.72, 0, 1),
              box-shadow 0.14s;
}

.qa-bubble:active .qa-icon {
  transform: scale(0.90);
  box-shadow:
    0 1px 3px rgba(14, 34, 24, 0.14),
    0 3px 8px rgba(14, 34, 24, 0.12);
}

/* Label — centered under bubble, never clipped */
.qa-label {
  width: 80px;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.15px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── FAB — keep rotation as extra affordance ─────────────────────────── */
.fab {
  transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1);
}

.fab.qa-open {
  transform: rotate(45deg);
  z-index: 99;
}

/* ── Dashboard hierarchy pass ────────────────────────────────────────────
   Calendar card: utility panel weight, not headline card weight.
   Hero occupancy: de-emphasised — the stats row owns headline KPIs.
   ─────────────────────────────────────────────────────────────────────── */

/* Calendar — smaller padding, quieter shadow, secondary card-title */
#section-today .dashboard-calendar {
  box-shadow:
    0 1px 3px rgba(22, 46, 35, 0.05),
    0 4px 10px rgba(22, 46, 35, 0.05);
  border-color: rgba(22, 46, 35, 0.06);
}

#section-today .dashboard-calendar .card-title {
  font-size: 9px;
  color: #a0b8ae;
}

/* Hero occupancy: visually quieter than the three property facts
   so it doesn't compete with the stats row below */
#stat-occupancy2 {
  font-size: 20px !important;
  opacity: 1;
}

/* ── Dashboard section spacing pass ──────────────────────────────────────
   Removed "This Week" card (hidden via display:none in HTML).
   Tighten the stack gap slightly and give each card more internal
   breathing room so the reduced set of cards doesn't feel crowded.
   Scoped to #section-today only.
   ─────────────────────────────────────────────────────────────────────── */

#section-today.section-stack {
  gap: 14px;
}

/* Hero — slightly taller bottom padding so the property facts feel settled */
#section-today .dashboard-hero {
  padding-bottom: 22px;
}

/* Owner Insights and operational cards: a touch more internal padding */
#section-today .card:not(.dashboard-hero):not(.dashboard-calendar) {
  padding: 18px;
}

/* Next Check-in / Next Clean: clear title-to-content separation */
#section-today .dashboard-next-checkin,
#section-today .dashboard-next-clean {
  padding: 16px 18px;
}

/* Calendar: stays compact — less padding, no extra gap */
#section-today .dashboard-calendar {
  padding: 10px 12px;
}

/* ── Dashboard: collapse empty placeholder divs out of flex gap ──────────
   #dashboard-product-guidance and #dashboard-plan-nudges are empty by
   default; as flex children they still consume gap spacing even at zero
   height. :empty removes them from flow so no phantom gap appears between
   Owner Insights and the alerts card.
   ─────────────────────────────────────────────────────────────────────── */
#dashboard-product-guidance:empty,
#dashboard-plan-nudges:empty {
  display: none;
}

/* Collapse cleaner alert slot when empty (no actions needed) */
#dashboard-cleaner-alert:empty {
  display: none;
}

/* ── Calendar booking preview — isolated to dashboard calendar only ──────
   Compact bottom sheet with blurred backdrop. No changes to main modals.
   ─────────────────────────────────────────────────────────────────────── */

#cal-preview-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(14, 32, 24, 0.36);
  backdrop-filter: blur(4px) saturate(0.9);
  -webkit-backdrop-filter: blur(4px) saturate(0.9);
}

#cal-preview-sheet {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 151;
  max-width: 430px;
  margin: 0 auto;
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow:
    0 -4px 16px rgba(18, 46, 34, 0.12),
    0 -16px 40px rgba(18, 46, 34, 0.10);
  padding: 0 20px calc(28px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

#cal-preview-handle-row {
  display: flex;
  justify-content: center;
  padding: 14px 0 12px;
}

#cal-preview-sheet.open {
  transform: translateY(0);
}

#cal-preview-backdrop.open {
  display: block;
}

#cal-preview-content {
  padding-bottom: 4px;
}

/* Preview typography — consistent with app but compact */
.cp-name {
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 3px;
  line-height: 1.2;
}

.cp-dates {
  font-size: 13px;
  font-weight: 400;
  color: #999;
  margin-bottom: 10px;
  line-height: 1.4;
}

.cp-meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cp-chip {
  display: inline-flex;
  align-items: center;
  background: var(--mist);
  border-radius: 20px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  color: var(--forest);
  gap: 4px;
}

.cp-payout {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--forest);
  margin-bottom: 16px;
  line-height: 1;
}

.cp-payout-label {
  font-size: 11px;
  color: var(--text-soft);
  margin-bottom: 14px;
  margin-top: -10px;
}

.cp-actions {
  display: flex;
  gap: 10px;
}

.cp-btn-primary {
  flex: 1;
  background: var(--forest);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: filter 0.1s;
}

.cp-btn-primary:active { filter: brightness(0.92); }

.cp-btn-ghost {
  background: var(--mist);
  color: var(--text-soft);
  border: none;
  border-radius: 12px;
  padding: 13px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: filter 0.1s;
}

.cp-btn-ghost:active { filter: brightness(0.95); }

/* ── Dashboard calendar range refinement (v3) ────────────────────────────
   ::before strips, 26px tall in 40px cells = 7px breathing room each side.

   booked-start: fill covers right half (left:50% → right:0).
     The LEFT edge is the range terminus → rounded left: border-radius 13px 0 0 13px.
     The RIGHT edge connects to mid-days → flat.

   booked-mid: fill covers full width (left:0 → right:0). Flat both sides.

   booked-end: fill covers left half (left:0 → right:50%).
     The LEFT edge connects from mid-days → flat.
     The RIGHT edge is the range terminus → rounded right: border-radius 0 13px 13px 0.
   ─────────────────────────────────────────────────────────────────────── */

#section-today .cal-day {
  height: 40px;
}

#section-today .cal-day.booked-start,
#section-today .cal-day.booked-mid,
#section-today .cal-day.booked-end {
  background: none !important;
}

#section-today .cal-day.booked-start::before,
#section-today .cal-day.booked-mid::before,
#section-today .cal-day.booked-end::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 26px;
  background: rgba(31, 88, 62, 0.11);
  z-index: 0;
  pointer-events: none;
}

/* Check-in day: right half, round the LEFT (start terminus) end */
#section-today .cal-day.booked-start::before {
  left: 50%;
  right: 0;
  border-radius: 13px 0 0 13px;
}

/* Middle days: full width, no rounding */
#section-today .cal-day.booked-mid::before {
  left: 0;
  right: 0;
  border-radius: 0;
}

/* Check-out day: left half, round the RIGHT (end terminus) end */
#section-today .cal-day.booked-end::before {
  left: 0;
  right: 50%;
  border-radius: 0 13px 13px 0;
}

/* Single-night stay: no fill strip needed */
#section-today .cal-day.booked-start.booked-end::before {
  display: none;
}

/* Check-in / check-out circles above the strip */
#section-today .cal-day.booked-start .cal-num,
#section-today .cal-day.booked-end .cal-num,
#section-today .cal-day.booked-start.booked-end .cal-num {
  position: relative;
  z-index: 1;
  background: var(--forest);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(18, 46, 34, 0.20);
}

/* Mid-day numbers above the strip */
#section-today .cal-day.booked-mid .cal-num {
  position: relative;
  z-index: 1;
  color: #1d5a42;
  font-weight: 500;
}

#section-today .cal-day-label {
  padding: 4px 0 6px;
  font-size: 9.5px;
  color: #9ab2a8;
  letter-spacing: 0.3px;
}

/* Bookings header — polish section-cta button and heading alignment */
#section-bookings .section-heading {
  align-items: center;
}
#section-bookings .section-heading p {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 400;
  color: #999;
  line-height: 1.4;
}
#section-bookings .section-cta {
  border-radius: 99px;
  min-height: 34px;
  padding: 7px 15px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

/* ── Phase 2: motion & interaction polish (visual-only) ───────────────────────
   No layout, sizing, logic, or selector-scope changes.
   Appended last so all rules win the cascade cleanly.
   ──────────────────────────────────────────────────────────────────────────── */

/* Modal backdrop — fade instead of snap.
   JS exclusively uses .open class (never checks display), so switching to
   visibility+opacity is safe. position:fixed means display:flex has no
   layout impact on the rest of the page. */
.modal-overlay {
  display: flex !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0s linear 0.24s;
}
.modal-overlay.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.24s ease, visibility 0s linear 0s;
}

/* Action sheet backdrop — same fade treatment */
.action-sheet-overlay {
  display: flex !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}
.action-sheet-overlay.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.22s ease, visibility 0s linear 0s;
}

/* Tab switching — smooth instead of instant color snap */
.tab {
  transition: background 0.25s ease, color 0.25s ease,
              box-shadow 0.25s ease, border-color 0.25s ease;
}

/* FAB tap feedback — scale press (won't conflict with rotation on .qa-open
   because that transform wins via specificity; use filter instead) */
.fab:active {
  filter: brightness(0.88);
  transition: filter 0.08s ease;
}

/* btn-secondary press state — matches the btn-primary:active feel */
.btn-secondary:active {
  filter: brightness(0.96);
  transform: translateY(1px);
  transition: filter 0.08s ease, transform 0.08s ease;
}

/* Nav btn — replace expensive 'all' with specific props */
.nav-btn {
  transition: color 0.18s ease, border-color 0.18s ease;
}

/* ── Tappable card press feedback ─────────────────────────────────────────────
   Only fires on cards that have a cursor:pointer (i.e. are clickable).
   Subtle scale so it feels physical without being distracting. ── */
.card[onclick],
.card[style*="cursor:pointer"] {
  transition: transform 0.12s cubic-bezier(0.32, 0.72, 0, 1),
              box-shadow 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.card[onclick]:active,
.card[style*="cursor:pointer"]:active {
  transform: scale(0.982);
  box-shadow: 0 1px 4px rgba(18, 46, 34, 0.08);
}

/* ── Confirm dialog fade + card pop ──────────────────────────────────────────
   Overlay fades via opacity (display toggled by JS).
   Inner card scales up from 96% for a subtle "materialise" feel. ── */
#app-modal-overlay {
  transition: opacity 0.2s ease;
}
#app-modal-overlay > div {
  transform: scale(0.96);
  transition: transform 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}
#app-modal-overlay[style*="opacity: 1"] > div {
  transform: scale(1);
}

/* ── Settings panel slide-in ──────────────────────────────────────────────────
   CSS animation fires automatically when JS sets display:block on a panel.
   Slide-in only — close path has complex panel→panel→cat→section chains
   so we leave it alone. Pure CSS, no JS changes. ── */
@keyframes settingsPanelIn {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}
[id^="settings-panel-"][style*="display: block"],
[id^="settings-panel-"][style*="display:block"] {
  animation: settingsPanelIn 0.22s cubic-bezier(0.32, 0.72, 0, 1) both;
}

/* Settings panel slide-out (back navigation) */
@keyframes settingsPanelOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(18px); }
}

/* ── Settings category slide-in (same pattern as panels) ─────────────────── */
@keyframes settingsCatIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}
[id^="settings-cat-"][style*="display: block"],
[id^="settings-cat-"][style*="display:block"] {
  animation: settingsCatIn 0.2s cubic-bezier(0.32, 0.72, 0, 1) both;
}

/* Settings category slide-out (back navigation) */
@keyframes settingsCatOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(14px); }
}

/* ── Settings main menu fade-in ───────────────────────────────────────────────
   _resetSettingsToMenu sets display:'' (empty string) on #settings-menu,
   so we can't use the display:block selector trick. Instead a short
   animation is applied permanently — it only plays when the element
   transitions from hidden to visible, which is imperceptible when it's
   already showing. ── */
@keyframes settingsMenuIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
#settings-menu {
  animation: settingsMenuIn 0.22s cubic-bezier(0.32, 0.72, 0, 1) both;
}

/* ── Calendar slide animation — clip overflow so grid slides don't spill ── */
.dashboard-calendar {
  overflow: hidden;
}
#cal-grid {
  will-change: transform, opacity;
}

/* ── Host header — slim bar (solid #2D5A3D, no heavy pills / gradients) ─────── */
.header {
  background: #2d5a3d !important;
  background-image: none !important;
  border-radius: 0 !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  box-sizing: border-box !important;
  min-height: calc(56px + env(safe-area-inset-top, 0px)) !important;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

.header-top {
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
}

.header-property-tap {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  text-align: left !important;
  cursor: pointer !important;
  color: inherit !important;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  font-family: inherit !important;
}

.header-property-line {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.header h1#header-property-name,
.header .header-property-line h1 {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  color: #fff !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.header-dropdown-chevron {
  flex-shrink: 0 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  color: rgba(255, 255, 255, 0.7) !important;
  opacity: 0.7 !important;
}

.header-sub {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.6) !important;
  letter-spacing: 0.3px !important;
  text-transform: none !important;
  margin-top: 2px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.header-right {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 4px !important;
}

.header-refresh-btn {
  flex: 0 0 auto !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  overflow: hidden !important;
}

.header-refresh-btn::before {
  content: '↻' !important;
  font-size: 17px !important;
  line-height: 1 !important;
  color: rgba(255, 255, 255, 0.8) !important;
  display: block !important;
}

.header-refresh-btn:disabled {
  opacity: 0.55 !important;
  cursor: default !important;
}

.header-today-date {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.7) !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  box-shadow: none !important;
}

/* Header date is plain text — do not apply legacy pill .today-badge rules */
.header .header-today-date {
  display: block !important;
}

@media (max-width: 430px) {
  .header {
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TABLET BREAKPOINT (768px – 1023px)
   Wider content, centered modals, but still bottom-tab navigation.
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1023px) {
  body { max-width: 768px; }
  .modal-overlay { align-items: center !important; justify-content: center; }
  .modal { border-radius: 16px !important; max-width: 560px !important; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
  .modal-overlay:not(.open) .modal { transform: scale(0.95) !important; opacity: 0; }
  .modal-overlay.open .modal { transform: scale(1) !important; opacity: 1; }
  .modal-handle, .modal-drag-zone { display: none !important; }
  .action-sheet-overlay { align-items: center !important; justify-content: center; }
  .action-sheet { border-radius: 16px !important; max-width: 420px !important; }
  .card { padding: 18px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DESKTOP BREAKPOINT (≥ 1024px)
   Sidebar navigation, wide content, multi-column layouts.
   All rules are additive — mobile CSS is never modified.
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {

  /* ── Phase 1: Foundation — Layout Shell ─────────────────────────────── */
  :root {
    --sidebar-width: 240px;
    --content-max: 1280px;
  }

  body {
    max-width: none !important;
    display: grid;
    grid-template-areas:
      "sidebar header"
      "sidebar content";
    grid-template-columns: var(--sidebar-width) 1fr;
    grid-template-rows: auto 1fr;
    min-height: 100vh;
  }

  /* ── Sidebar Navigation ──────────────────────────────────────────────── */
  .nav {
    grid-area: sidebar;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    flex-direction: column;
    align-items: stretch;
    gap: 0 !important;
    padding: 0 !important;
    border-top: none !important;
    border-right: 1px solid #e8e0d5;
    background: #fff;
    z-index: 101;
    overflow-y: auto;
    box-shadow: 1px 0 8px rgba(0,0,0,0.04);
  }

  #sidebar-brand {
    padding: 24px 20px 20px;
    border-bottom: 1px solid #e8e0d5;
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    color: var(--forest);
    letter-spacing: -0.3px;
  }
  #sidebar-brand span {
    color: var(--sage);
    font-style: italic;
  }

  .nav-btn {
    flex: 0 0 auto !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center;
    padding: 14px 20px !important;
    gap: 12px !important;
    font-size: 14px !important;
    font-weight: 500;
    color: var(--text-soft);
    border-bottom: none !important;
    border-left: 3px solid transparent;
    border-radius: 0 !important;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }
  .nav-btn:hover {
    background: rgba(31, 90, 67, 0.04);
    color: var(--text);
  }
  .nav-btn.active {
    color: var(--forest) !important;
    border-bottom: none !important;
    border-left-color: var(--forest) !important;
    background: rgba(31, 90, 67, 0.06);
    font-weight: 600;
  }
  .nav-btn > svg {
    width: 20px;
    height: 20px;
  }

  /* ── Header ──────────────────────────────────────────────────────────── */
  .header {
    grid-area: header;
    border-radius: 0 !important;
    padding: 16px 32px !important;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  /* ── Main Content ────────────────────────────────────────────────────── */
  #main-content,
  #main-content.app-shell {
    grid-area: content;
    max-width: var(--content-max) !important;
    width: 100%;
    margin: 0 auto;
    padding: 24px 32px 48px !important;
  }

  .section-stack {
    max-width: var(--content-max);
  }

  /* ── Phase 2: Modals — Centered Dialogs ────────────────────────────── */
  .modal-overlay {
    align-items: center !important;
    justify-content: center;
    padding-left: var(--sidebar-width);
  }
  .modal {
    max-width: 580px !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    max-height: 85vh;
  }
  .modal-overlay:not(.open) .modal {
    transform: scale(0.95) !important;
    opacity: 0;
  }
  .modal-overlay.open .modal {
    transform: scale(1) !important;
    opacity: 1;
  }
  .modal-handle,
  .modal-drag-zone {
    display: none !important;
  }

  .action-sheet-overlay {
    align-items: center !important;
    justify-content: center;
    padding-left: var(--sidebar-width);
  }
  .action-sheet {
    border-radius: 16px !important;
    max-width: 420px !important;
  }

  #app-modal-overlay {
    padding-left: var(--sidebar-width);
  }

  #property-switcher-sheet {
    padding-left: var(--sidebar-width);
  }

  #cal-preview-sheet {
    max-width: none !important;
    padding-left: var(--sidebar-width);
  }
  #cal-preview-sheet > div {
    max-width: 560px;
    margin: auto;
    border-radius: 16px !important;
  }

  /* ── Phase 3: Dashboard — JS handles desktop layout directly ─────── */
  /* Remove any inherited grid on the mount — the JS renders its own grid */
  #dashboard-today-mount,
  #portfolio-dashboard > div {
    display: block !important;
  }
  .stats-row {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
  }

  /* ── Phase 4: Bookings side-by-side ────────────────────────────────── */
  #section-bookings .section-stack {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
  }
  #section-bookings .section-stack > .section-heading,
  #section-bookings .section-stack > #bookings-tab-row,
  #section-bookings .section-stack > .tab-row {
    grid-column: 1 / -1;
  }
  #desktop-detail-panel {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }
  #desktop-detail-panel:empty {
    display: none;
  }

  /* ── Phase 5: Section-specific layouts ─────────────────────────────── */
  /* Cleaning */
  #section-cleaning .section-stack {
    max-width: none;
  }

  /* Finance */
  #section-finance {
    max-width: none;
  }
  #finance-hub {
    max-width: 600px;
  }
  #expenses-main-block,
  .expenses-main-block {
    max-width: none !important;
  }

  /* Property */
  #section-property {
    max-width: 900px;
  }

  /* Settings */
  #section-settings {
    max-width: 700px;
  }

  /* ── Desktop Polish — overflow, wrapping, spacing ────────────────── */
  .card {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  /* Ensure the 2-col dashboard right sidebar doesn't shrink below readable width */
  #dashboard-today-mount,
  #portfolio-dashboard {
    min-width: 0;
  }
  /* Needs attention text wrapping */
  [style*="Needs attention"] div,
  [onclick*="showDetail"] {
    overflow-wrap: break-word;
    word-break: break-word;
  }
  /* Desktop table — keep rows tight but allow key columns to breathe */
  .desktop-table { table-layout: auto; }
  .desktop-table td { white-space: nowrap; }
  .desktop-table td:first-child { white-space: nowrap; min-width: 80px; }
  /* Description/merchant column — wrap but cap width so other cols show */
  .desktop-table td:nth-child(2) {
    white-space: normal;
    min-width: 120px;
    max-width: 220px;
  }

  /* ── Phase 6: Typography & Spacing Polish ──────────────────────────── */
  .section-heading h2,
  .section-heading-text {
    font-size: 20px;
  }
  .card {
    padding: 20px;
    overflow-wrap: break-word;
  }
  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="date"],
  input[type="password"],
  select,
  textarea {
    max-width: 420px;
  }
  .booking-name {
    font-size: 15px;
  }
  .cal-day {
    min-height: 42px;
    font-size: 13px;
  }
  .fab {
    bottom: 32px !important;
    right: 32px !important;
  }
  .fab-chat {
    right: 32px !important;
  }
  #quick-add-overlay,
  #quick-add-menu {
    padding-left: var(--sidebar-width);
  }
  #quick-add-menu {
    right: 40px !important;
    bottom: calc(100px + env(safe-area-inset-bottom)) !important;
  }

  /* ── Phase 7: Login & Onboarding ───────────────────────────────────── */
  #stayops-login-screen {
    padding-left: 0 !important;
  }
  #stayops-login-screen > div {
    max-width: 420px !important;
  }
  #stayops-onboarding > div {
    max-width: 560px !important;
    margin: 0 auto;
  }

  /* ── Desktop Tables ─────────────────────────────────────────────────── */
  .desktop-table { width:100%; border-collapse:collapse; font-size:13px; }
  .desktop-table th { text-align:left; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:0.5px; color:var(--text-soft); padding:10px 14px; border-bottom:1px solid var(--warm); background:var(--mist); }
  .desktop-table td { padding:12px 14px; border-bottom:1px solid #f0ede8; vertical-align:middle; }
  .desktop-table tr:hover td { background:rgba(31,90,67,0.03); }
  .desktop-table tr:last-child td { border-bottom:none; }

  /* Desktop badges */
  .dt-badge { display:inline-flex; align-items:center; font-size:11px; font-weight:600; padding:3px 10px; border-radius:20px; white-space:nowrap; }
  .dt-badge-green { background:#EAF3DE; color:#3B6D11; }
  .dt-badge-amber { background:#FAEEDA; color:#854F0B; }
  .dt-badge-red { background:#FDECEA; color:#A32D2D; }
  .dt-badge-gray { background:#F1EFE8; color:#5F5E5A; }
  .dt-badge-blue { background:#E8F0FE; color:#185FA5; }

  /* Platform pills */
  .dt-platform { font-size:11px; font-weight:500; padding:2px 8px; border-radius:6px; }
  .platform-airbnb { background:#FF585D20; color:#FF385C; }
  .platform-vrbo { background:#1B5FFE20; color:#1B5FFE; }
  .platform-booking { background:#003B9520; color:#003B95; }
  .platform-direct { background:#6B6B6B15; color:#6B6B6B; }

  /* ── Cleaner mode: exclude from desktop layout ─────────────────────── */
  body.cleaner-mode {
    display: block !important;
    max-width: 430px !important;
    margin: 0 auto;
  }
  body.cleaner-mode .nav {
    position: sticky !important;
    width: 100% !important;
    flex-direction: row !important;
    border-right: none !important;
    border-top: 1px solid #ede8e0 !important;
    bottom: 0 !important;
    top: auto !important;
    left: auto !important;
  }
}

/* ── ADMIN PAGE ─────────────────────────────────────────────────────────── */
#section-admin { padding: 0 !important; }
.admin-header { background: var(--forest); padding: 52px 20px 20px; position: sticky; top: 0; z-index: 50; }
.admin-back-link { font-size: 14px; color: var(--sage); text-decoration: none; display: flex; align-items: center; gap: 4px; margin-bottom: 12px; cursor: pointer; }
.admin-title { font-family: 'DM Serif Display', serif; font-size: 26px; color: white; font-weight: 400; }
.admin-subtitle { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 4px; letter-spacing: 0.5px; }
.admin-tab-bar { display: flex; background: white; border-bottom: 1px solid var(--warm); position: sticky; top: 110px; z-index: 40; }
.admin-tab-bar button { flex: 1; padding: 14px 8px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; color: var(--text-soft); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; transition: all 0.2s; }
.admin-tab-bar button.active { color: var(--forest); border-bottom-color: var(--forest); }
.admin-tab-content { padding: 16px; }

.admin-info-banner { background: linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 100%); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.admin-info-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.15); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.admin-info-text { font-size: 12px; color: rgba(255,255,255,0.85); line-height: 1.5; }
.admin-info-text strong { color: white; }

.admin-section-header { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-soft); margin-bottom: 10px; margin-top: 8px; }

.admin-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--mist); }
.admin-toggle-row:last-child { border-bottom: none; }
.admin-toggle-info { flex: 1; padding-right: 12px; }
.admin-toggle-label { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.admin-toggle-desc { font-size: 11px; color: var(--text-soft); line-height: 1.4; }

.admin-pill { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 20px; margin-left: 8px; vertical-align: middle; }
.admin-pill-on { background: #e8f5e9; color: #2e7d32; }
.admin-pill-off { background: #fce4ec; color: #c62828; }

.ios-toggle { position: relative; width: 51px; height: 31px; flex-shrink: 0; display: inline-block; }
.ios-toggle input { opacity: 0; width: 0; height: 0; }
.ios-toggle .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #E5E5EA; border-radius: 31px; transition: background 0.25s; }
.ios-toggle .slider::before { content: ''; position: absolute; height: 27px; width: 27px; left: 2px; bottom: 2px; background: white; border-radius: 50%; transition: transform 0.25s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.ios-toggle input:checked + .slider { background: #34C759; }
.ios-toggle input:checked + .slider::before { transform: translateX(20px); }

.admin-schedule-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-sm); background: var(--mist); margin-bottom: 8px; }
.admin-schedule-card:last-child { margin-bottom: 0; }
.admin-schedule-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.admin-schedule-info { flex: 1; }
.admin-schedule-name { font-size: 13px; font-weight: 600; }
.admin-schedule-time { font-size: 11px; color: var(--text-soft); margin-top: 2px; }

.admin-template-list { display: flex; flex-direction: column; gap: 10px; }
.admin-template-card { border: 1.5px solid var(--warm); border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; transition: all 0.2s; }
.admin-template-card:hover, .admin-template-card.expanded { border-color: var(--sage); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.admin-template-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--mist); }
.admin-type-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.admin-type-name { font-size: 13px; font-weight: 600; color: var(--text); }
.admin-type-subject { font-size: 11px; color: var(--text-soft); margin-top: 2px; }
.admin-chevron { font-size: 16px; color: var(--stone); transition: transform 0.2s; }
.admin-template-card.expanded .admin-chevron { transform: rotate(90deg); }
.admin-template-preview { display: none; padding: 14px; background: white; border-top: 1px solid var(--warm); }
.admin-template-card.expanded .admin-template-preview { display: block; }
.admin-template-actions { display: flex; gap: 8px; margin-top: 12px; }
.admin-template-actions button { flex: 1; padding: 10px; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s; border: none; }
.admin-btn-edit { background: var(--forest); color: white; }
.admin-btn-edit:active { opacity: 0.85; transform: scale(0.97); }
.admin-btn-test { background: var(--warm); color: var(--text); }
.admin-btn-test:active { opacity: 0.85; transform: scale(0.97); }

.admin-ep-frame { background: #f9f9f9; border: 1px solid #eee; border-radius: 8px; padding: 16px; font-size: 12px; line-height: 1.6; color: #333; max-height: 300px; overflow-y: auto; }
.admin-ep-header { text-align: center; padding: 12px; border-radius: 6px; color: white; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.admin-ep-pill { display: inline-block; background: rgba(255,255,255,0.25); padding: 2px 10px; border-radius: 20px; font-size: 10px; font-weight: 600; margin-top: 6px; }
.admin-ep-body { padding: 8px 0; }
.admin-ep-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f0f0f0; font-size: 11px; }
.admin-ep-label { color: #999; }
.admin-ep-value { font-weight: 600; }
.admin-ep-cta { display: block; text-align: center; padding: 10px; border-radius: 8px; color: white; font-weight: 700; font-size: 13px; margin-top: 12px; text-decoration: none; }
.admin-ep-footer { text-align: center; font-size: 10px; color: #aaa; margin-top: 12px; padding-top: 10px; border-top: 1px solid #f0f0f0; }

.admin-log-entry { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--mist); font-size: 12px; }
.admin-log-entry:last-child { border-bottom: none; }
.admin-log-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.admin-log-text { flex: 1; line-height: 1.5; }
.admin-log-time { color: var(--text-soft); font-size: 10px; white-space: nowrap; }

/* ── Bookings calendar view ────────────────────────────────────────────────── */
.bookings-view-tab { color: var(--text-soft); transition: background 0.15s, color 0.15s; }
.bookings-view-tab.active { background: #fff; color: var(--forest); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

#bookings-calendar .bk-cal-card {
  background: #fff;
  border-radius: 12px;
  border: 0.5px solid rgba(0,0,0,0.1);
  padding: 14px;
  margin-bottom: 14px;
}
#bookings-calendar .bk-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
#bookings-calendar .bk-cal-nav {
  background: var(--warm, #E8E0D5);
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 16px;
  cursor: pointer;
  color: var(--text);
}
#bookings-calendar .bk-cal-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
#bookings-calendar .bk-cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}
#bookings-calendar .bk-cal-dow div {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-soft);
  padding: 4px 0;
}
#bookings-calendar .bk-cal-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 78px;
  gap: 2px;
}
#bookings-calendar .bk-cal-cell {
  position: relative;
  padding: 4px 3px 0;
  border-radius: 6px;
  background: transparent;
}
#bookings-calendar .bk-cal-cell .bk-daynum {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 500;
}
#bookings-calendar .bk-cal-cell.bk-dim .bk-daynum { opacity: 0.35; }
#bookings-calendar .bk-cal-cell.bk-today .bk-daynum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-weight: 600;
}
#bookings-calendar .bk-cal-bar {
  position: absolute;
  height: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  cursor: pointer;
  z-index: 2;
  overflow: hidden;
  border: 1px solid transparent;
}
#bookings-calendar .bk-cal-bar .bk-bar-initial {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#bookings-calendar .bk-cal-bar .bk-bar-name {
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#bookings-calendar .bk-cal-more {
  position: absolute;
  height: 18px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-soft);
  padding: 0 4px;
  z-index: 2;
}
#bookings-calendar .bk-cal-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 0.5px solid rgba(0,0,0,0.08);
}
#bookings-calendar .bk-cal-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--text-soft);
}
#bookings-calendar .bk-cal-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
#bookings-calendar .bk-cal-empty {
  text-align: center;
  font-size: 13px;
  color: var(--text-soft);
  padding: 24px 12px;
}

/* ── Mobile nav: fixed bottom bar ──────────────────────────────────────────── */
@media (max-width: 1023px) {
  .nav {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: #fff !important;
    /* Respect the home-indicator safe area at about half intensity so the
       tappable items don't float too far above the home bar. */
    padding-top: 4px !important;
    padding-bottom: calc(env(safe-area-inset-bottom) + 4px) !important;
    box-shadow: 0 -1px 4px rgba(0,0,0,0.06);
  }
  /* Ensure the iOS home-indicator region matches the nav colour so there's
     no visible white gap below the nav. */
  html { background: #fff; }
}

/* ── Dashboard whitespace fix ──────────────────────────────────────────────── */
#dashboard-today-mount {
  min-height: 0 !important;
}
