/* Product styles captured from the sample planner, 22 September 2026. */

    @font-face {
      font-family: "Instrument Serif";
      src: url("../Wedding%20Planner%20Workbook/fonts/instrument-serif-400.woff2") format("woff2");
      font-display: swap;
      font-style: normal;
      font-weight: 400;
    }

    @font-face {
      font-family: "Instrument Serif";
      src: url("../Wedding%20Planner%20Workbook/fonts/instrument-serif-italic-400.woff2") format("woff2");
      font-display: swap;
      font-style: italic;
      font-weight: 400;
    }

    @font-face {
      font-family: "Manrope";
      src: url("../Wedding%20Planner%20Workbook/fonts/manrope-400.ttf") format("truetype");
      font-display: swap;
      font-style: normal;
      font-weight: 400;
    }

    @font-face {
      font-family: "Manrope";
      src: url("../Wedding%20Planner%20Workbook/fonts/manrope-600.ttf") format("truetype");
      font-display: swap;
      font-style: normal;
      font-weight: 600;
    }

    @font-face {
      font-family: "Manrope";
      src: url("../Wedding%20Planner%20Workbook/fonts/manrope-700.ttf") format("truetype");
      font-display: swap;
      font-style: normal;
      font-weight: 700;
    }

    @font-face {
      font-family: "Manrope";
      src: url("../Wedding%20Planner%20Workbook/fonts/manrope-800.ttf") format("truetype");
      font-display: swap;
      font-style: normal;
      font-weight: 800;
    }

    @font-face {
      font-family: "DM Sans Preview";
      src: url("../Wedding%20Planner%20Workbook/fonts/dm-sans-variable.ttf") format("truetype");
      font-display: swap;
      font-style: normal;
      font-weight: 100 1000;
    }

    @font-face {
      font-family: "DM Sans Preview";
      src: url("../Wedding%20Planner%20Workbook/fonts/dm-sans-italic-variable.ttf") format("truetype");
      font-display: swap;
      font-style: italic;
      font-weight: 100 1000;
    }

    @font-face {
      font-family: "Cormorant Garamond Preview";
      src: url("../Wedding%20Planner%20Workbook/fonts/cormorant-garamond-variable.ttf") format("truetype");
      font-display: swap;
      font-style: normal;
      font-weight: 300 700;
    }

    :root {
      --background: #FAF7F4;
      --surface: #FFFDFC;
      --surface-soft: #F7EFED;
      --sidebar-bg: #F6ECEA;
      --sidebar-card: #FBF6F3;
      --blush: #EAD6D7;
      --blush-soft: #F4E4E3;
      --rose: #C46773;
      --rose-dark: #AA5663;
      --sage: #A8B29C;
      --sage-dark: #7F8D76;
      --sage-soft: #E5EADF;
      --taupe: #D8CBC5;
      --border: #E2D7D2;
      --text: #403735;
      --text-secondary: #756A66;
      --white: #FFFFFF;

      --page: var(--background);
      --paper: var(--surface);
      --sheet: var(--surface);
      --sheet-soft: var(--surface-soft);
      --ink: var(--text);
      --muted: var(--text-secondary);
      --faint: #9B908B;
      --line: var(--border);
      --line-strong: var(--taupe);
      --field-border: var(--taupe);
      --field-fill: #FCF9F7;
      --success: var(--sage);
      --success-deep: var(--sage-dark);
      --success-soft: var(--sage-soft);
      --clay: var(--rose);
      --clay-hover: var(--rose-dark);
      --clay-deep: var(--text);
      --accent-strong: var(--rose-dark);
      --heading: var(--text);
      --sand: var(--taupe);
      --sand-deep: #806E66;
      --sand-soft: #F5ECE7;
      --warning: #DDCDC4;
      --warning-deep: #806E66;
      --warning-soft: #F5ECE7;
      --champagne: #BBA394;
      --sidebar: var(--sidebar-bg);
      --sidebar-text: var(--text);
      --sidebar-muted: var(--text-secondary);
      --sidebar-heading: var(--text);
      --sidebar-accent: var(--rose);
      --sidebar-hover: var(--blush-soft);
      --sidebar-active: #F0DCDD;
      --accent-text: var(--white);
      --danger: #9a4e5b;
      --danger-soft: #f2d7dc;
      --status-neutral-border: #D8CBC5;
      --status-neutral-bg: #F1EEEC;
      --status-neutral-text: #5B514D;
      --status-quote-border: #D2C2DE;
      --status-quote-bg: #ECE6F2;
      --status-quote-text: #60426E;
      --status-progress-border: #BFD1DC;
      --status-progress-bg: #E4EDF2;
      --status-progress-text: #365865;
      --status-pending-border: #E2C9B4;
      --status-pending-bg: #F5E8DC;
      --status-pending-text: #744034;
      --status-tasting-border: #E4C2C9;
      --status-tasting-bg: #F3E1E5;
      --status-tasting-text: #774451;
      --status-confirmed-border: #CBB7D8;
      --status-confirmed-bg: #EEE5F3;
      --status-confirmed-text: #625070;
      --status-shortlist-border: #BFD4D1;
      --status-shortlist-bg: #E4EFED;
      --status-shortlist-text: #41625D;
      --status-booked-border: #E4D3A5;
      --status-booked-bg: #F4EBCF;
      --status-booked-text: #654F22;
      --status-deciding-border: #D9C27D;
      --status-deciding-bg: #F4EBCF;
      --status-deciding-text: #574116;
      --status-selected-border: #C6D4DE;
      --status-selected-bg: #E4EBF0;
      --status-selected-text: #3F5D6A;
      --status-backup-border: #C8D1D7;
      --status-backup-bg: #E9EDF0;
      --status-backup-text: #4B5F68;
      --status-idea-border: #DFC1C5;
      --status-idea-bg: #F5E6E7;
      --status-idea-text: #824651;
      --status-success-text: #596650;
      --status-priority-text: #924957;
      --status-danger-text: #873947;
      --focus: rgba(196, 103, 115, 0.12);
      --shadow: 0 2px 10px rgba(70, 55, 50, 0.035);
      --radius: 10px;
      --font: "Manrope", sans-serif;
      --font-sans: var(--font);
      --font-body: var(--font);
      --font-display: "Instrument Serif", serif;
      --font-serif: var(--font-display);
    }

    * {
      box-sizing: border-box;
    }

    html {
      color: var(--ink);
      font-family: var(--font);
      line-height: 1.45;
      background: var(--page);
      font-variant-numeric: tabular-nums;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    body {
      margin: 0;
      min-width: 0;
      background: var(--page);
    }

    body::before {
      content: none;
    }

    button,
    input,
    select,
    textarea {
      font: inherit;
    }

    button {
      cursor: pointer;
    }

    button:focus-visible {
      outline: 2px solid var(--accent-strong);
      outline-offset: 2px;
    }

    input,
    select,
    textarea {
      width: 100%;
      min-height: 34px;
      border: 1px solid var(--field-border);
      border-radius: 5px;
      background: var(--field-fill);
      color: var(--ink);
      outline: none;
      padding: 7px 9px;
      transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
    }

    select {
      appearance: none;
      height: 36px;
      min-height: 36px;
      border-radius: 6px;
      padding: 5px 30px 5px 11px;
      font-weight: 500;
      line-height: 1.2;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23756A66' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 8px center;
      background-size: 16px;
    }

    select:hover {
      border-color: color-mix(in srgb, var(--text-secondary) 42%, var(--field-border));
    }

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

    input:focus,
    select:focus,
    textarea:focus {
      border-color: var(--accent-strong);
      box-shadow: 0 0 0 2px var(--focus);
    }

    input[type="number"] {
      text-align: right;
    }

    input[type="checkbox"] {
      width: 18px;
      min-height: 18px;
      accent-color: var(--clay);
    }

    .app {
      min-height: 100svh;
      display: grid;
      grid-template-rows: auto 1fr;
    }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 20;
      border-bottom: 1px solid var(--line);
      background: var(--paper);
    }

    .topbar-inner {
      width: min(1600px, calc(100% - 32px));
      min-height: 64px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 240px;
    }

    .mobile-menu-button,
    .mobile-menu-close,
    .mobile-actions-button,
    .mobile-menu-backdrop {
      display: none;
    }

    .mobile-menu-button,
    .mobile-menu-close,
    .mobile-actions-button {
      width: 44px;
      height: 44px;
      min-height: 44px;
      border: 1px solid var(--line);
      border-radius: 7px;
      place-items: center;
      color: var(--ink);
      background: var(--surface);
    }

    .mobile-menu-button svg,
    .mobile-menu-close svg,
    .mobile-actions-button svg {
      width: 20px;
      height: 20px;
    }

    .mobile-actions-settings {
      display: none;
    }

    .brand-mark {
      position: relative;
      width: 46px;
      height: 46px;
      border: 1px solid color-mix(in srgb, var(--rose) 42%, var(--border));
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: var(--sidebar-card);
      color: var(--rose-dark);
      flex: 0 0 auto;
      padding: 0;
      cursor: pointer;
      transition: border-color 140ms ease, background 140ms ease;
    }

    .brand-mark:hover {
      border-color: var(--rose);
      background: var(--blush-soft);
    }

    .brand-toast {
      width: 30px;
      height: 30px;
      overflow: visible;
    }

    .brand-toast .toast-glass,
    .brand-toast .toast-stem {
      stroke: var(--rose-dark);
      stroke-width: 1.85;
    }

    .brand-toast .toast-spark {
      stroke: var(--sage-dark);
      stroke-width: 1.65;
    }

    .brand-toast .toast-liquid {
      stroke: var(--rose);
      stroke-width: 1.45;
    }

    .brand-photo-frame {
      position: absolute;
      inset: 2px;
      border-radius: 50%;
      overflow: hidden;
      display: none;
    }

    .brand-photo-frame img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: 50% 50%;
      transform: scale(1);
      transform-origin: 50% 50%;
    }

    .brand-mark.has-photo .brand-photo-frame {
      display: block;
    }

    .brand-mark.has-photo .brand-toast {
      display: none;
    }

    .profile-camera-badge {
      position: absolute;
      z-index: 2;
      right: -3px;
      bottom: -2px;
      width: 18px;
      height: 18px;
      border: 1px solid var(--border);
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: var(--sheet);
      color: var(--rose-dark);
    }

    .profile-camera-badge svg {
      width: 10px;
      height: 10px;
    }

    .brand h1 {
      margin: 0;
      font-family: var(--font-display);
      font-size: 18px;
      line-height: 1.1;
      font-weight: 700;
      letter-spacing: 0;
      color: var(--heading);
    }

    .brand p {
      margin: 3px 0 0;
      color: var(--muted);
      font-size: 13px;
    }

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

    .button {
      min-height: 34px;
      border: 1px solid var(--line-strong);
      border-radius: 7px;
      background: var(--sheet);
      color: var(--ink);
      padding: 6px 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
    }

    .button:hover {
      border-color: var(--taupe);
      background: var(--sheet-soft);
    }

    .button.primary {
      border-color: transparent;
      background: var(--clay);
      color: var(--accent-text);
    }

    .button.primary:hover {
      border-color: transparent;
      background: var(--clay-hover);
    }

    .button.dashboard-cta {
      border-color: transparent;
      background: var(--sage);
      color: var(--white);
      font-weight: 700;
    }

    .button.dashboard-cta:hover {
      border-color: transparent;
      background: var(--sage-dark);
      color: var(--white);
    }

    .button.danger {
      color: var(--danger);
    }

    .button.danger:hover {
      border-color: color-mix(in srgb, var(--danger) 45%, var(--border));
      background: var(--danger-soft);
    }

    .button.compact {
      min-height: 30px;
      padding: 5px 9px;
      font-size: 13px;
    }

    .button:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .main {
      width: min(1600px, calc(100% - 32px));
      margin: 14px auto 42px;
    }

    .workbook {
      display: grid;
      grid-template-columns: 252px minmax(0, 1fr);
      border: 1px solid var(--border);
      overflow: visible;
      background: var(--paper);
      min-height: calc(100svh - 140px);
    }

    .sidebar {
      border-right: 1px solid var(--border);
      background: var(--sidebar-bg);
      min-width: 0;
    }

    .sidebar-cover {
      min-height: 166px;
      margin: 0;
      padding: 20px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      color: var(--sidebar-text);
      background: var(--sidebar-bg);
      overflow: hidden;
      border: 0;
      border-bottom: 1px solid var(--border);
      border-radius: 0;
      box-shadow: none;
    }

    .sidebar-cover::after {
      content: none;
    }

    .sidebar-cover h2 {
      margin: 0;
      font-family: var(--font-display);
      font-size: 26px;
      line-height: 1.08;
      font-weight: 600;
      letter-spacing: 0;
    }

    .sidebar-cover p {
      margin: 8px 0 0;
      color: var(--sidebar-muted);
      font-size: 13px;
    }

    .mini-total {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      border-top: 1px solid color-mix(in srgb, var(--sidebar-text) 18%, transparent);
      padding-top: 12px;
    }

    .mini-total span {
      display: block;
      color: var(--sidebar-muted);
      font-size: 12px;
      font-weight: 650;
    }

    .mini-total strong {
      display: block;
      margin-top: 2px;
      font-family: var(--font);
      font-size: 17px;
      line-height: 1.15;
      font-weight: 800;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .mini-total > div:first-child strong {
      color: var(--clay);
    }

    .mini-total > div:last-child strong {
      color: var(--success-deep);
    }

    .mini-total .sidebar-summary-icon,
    .mobile-sections-title,
    .mobile-nav-group-icon,
    .mobile-nav-group-copy {
      display: none;
    }

    .nav {
      padding: 12px 10px 20px;
      display: grid;
      gap: 1px;
    }

    .nav-group,
    .nav-group-items {
      display: grid;
      gap: 1px;
    }

    .nav-group-title {
      margin: 18px 10px 8px;
      padding-top: 12px;
      border-top: 1px solid color-mix(in srgb, var(--sidebar-text) 15%, transparent);
      color: var(--text);
      font-size: 15px;
      line-height: 1.2;
      font-weight: 800;
      letter-spacing: 0;
      text-transform: none;
    }

    .nav-group-title:first-child {
      margin-top: 0;
      padding-top: 0;
      border-top: 0;
    }

    .nav .nav-group-toggle {
      width: auto;
      min-height: 0;
      margin: 18px 10px 8px;
      padding: 12px 0 0;
      border: 0;
      border-top: 1px solid color-mix(in srgb, var(--sidebar-text) 15%, transparent);
      border-radius: 0;
      justify-content: space-between;
      color: var(--text);
      background: transparent;
      font-size: 15px;
      font-weight: 800;
      cursor: default;
    }

    .nav-group:first-child .nav-group-toggle {
      margin-top: 0;
      padding-top: 0;
      border-top: 0;
    }

    .nav .nav-group-toggle:hover {
      border-color: color-mix(in srgb, var(--sidebar-text) 15%, transparent);
      color: var(--text);
      background: transparent;
    }

    .nav-group:first-child .nav-group-toggle:hover {
      border-color: transparent;
    }

    .nav-group-chevron {
      display: none;
      width: 18px;
      height: 18px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .nav button {
      width: 100%;
      min-height: 38px;
      border: 0;
      border-left: 3px solid transparent;
      border-radius: 0;
      background: transparent;
      color: var(--sidebar-muted);
      padding: 8px 8px 8px 10px;
      text-align: left;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 10px;
      font-size: 13px;
      font-weight: 500;
    }

    .nav button:hover {
      background: color-mix(in srgb, var(--blush-soft) 62%, transparent);
      border-color: transparent;
      color: var(--sidebar-text);
    }

    .nav button.is-active {
      background: var(--sidebar-active);
      border-left-color: var(--rose);
      color: var(--rose-dark);
      font-weight: 700;
    }

    .nav-label {
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 9px;
      overflow: hidden;
    }

    .nav-label span:last-child {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .nav-icon {
      width: 17px;
      height: 17px;
      flex: 0 0 auto;
      stroke: currentColor;
      stroke-width: 1.7;
    }

    .nav button.is-active .nav-icon {
      color: var(--rose);
    }

    .nav-index {
      font-size: 12px;
      font-weight: 600;
    }

    .nav .nav-index {
      margin-left: auto;
      color: var(--sidebar-muted);
      opacity: 0.72;
    }

    .nav button.is-active .nav-index {
      color: var(--rose);
      opacity: 0.82;
      font-weight: 700;
    }

    .sheet-area {
      min-width: 0;
      background: var(--paper);
    }

    .sheet-tabs {
      position: sticky;
      top: 64px;
      z-index: 16;
      border-bottom: 1px solid var(--line);
      background: color-mix(in srgb, var(--paper) 96%, transparent);
      padding: 8px 12px;
      display: none;
      grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
      grid-auto-rows: minmax(38px, auto);
      gap: 4px;
      box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 70%, transparent);
    }

    .sheet-tab {
      min-width: 0;
      min-height: 38px;
      border: 1px solid var(--line);
      border-left-width: 2px;
      border-radius: 0;
      background: var(--sheet);
      color: var(--muted);
      padding: 6px 8px;
      white-space: normal;
      overflow-wrap: anywhere;
      text-align: left;
      font-size: 12px;
      line-height: 1.25;
      font-weight: 600;
    }

    .sheet-tab:hover {
      color: var(--ink);
      background: var(--blush-soft);
      border-color: var(--line);
    }

    .sheet-tab.is-active {
      color: var(--accent-strong);
      background: var(--blush-soft);
      border-color: var(--line-strong);
      border-left-color: var(--clay);
      position: relative;
      font-weight: 700;
    }

    .sheet {
      min-width: 0;
      padding: 24px 26px 30px;
      display: grid;
      gap: 16px;
    }

    .sheet-heading {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 18px;
      border-bottom: 1px solid var(--line-strong);
      padding-bottom: 12px;
    }

    .sheet-heading h2 {
      margin: 0;
      font-family: var(--font-display);
      font-size: 32px;
      line-height: 1.08;
      font-weight: 600;
      letter-spacing: 0;
      color: var(--heading);
    }

    .sheet-heading p {
      margin: 6px 0 0;
      color: var(--muted);
      font-size: 13px;
    }

    .sheet-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .panel {
      min-width: 0;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: var(--surface);
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .panel-title {
      border-bottom: 1px solid var(--border);
      background: var(--sidebar-card);
      padding: 11px 13px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .panel-title h3 {
      margin: 0;
      font-family: var(--font);
      font-size: 15px;
      line-height: 1.2;
      font-weight: 800;
      color: var(--heading);
    }

    .panel-title p {
      margin: 2px 0 0;
      color: var(--muted);
      font-size: 12px;
    }

    .panel-actions,
    .calendar-month-controls {
      display: flex;
      align-items: center;
      gap: 5px;
      flex: 0 0 auto;
    }

    .calendar-nav-button {
      width: 32px;
      height: 32px;
      min-height: 32px;
    }

    .calendar-nav-button svg {
      width: 16px;
      height: 16px;
    }

    .panel-body {
      padding: 12px;
    }

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

    .field {
      display: grid;
      gap: 6px;
    }

    .field.span-2 {
      grid-column: span 2;
    }

    .field.span-4 {
      grid-column: 1 / -1;
    }

    label {
      color: var(--muted);
      font-size: 13px;
      font-weight: 650;
    }

    .stat-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0;
      border: 1px solid var(--line);
      background: var(--paper);
    }

    .stat {
      border-right: 1px solid var(--line);
      background: transparent;
      padding: 12px 14px;
      min-width: 0;
    }

    .stat:last-child {
      border-right: 0;
    }

    .stat span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      font-weight: 650;
    }

    .stat strong {
      display: block;
      margin-top: 4px;
      font-family: var(--font);
      font-size: 20px;
      line-height: 1.12;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .stat:is(.good, .warn, .pink, .bad),
    .stat:is(.good, .warn, .pink, .bad) + .stat:is(.good, .warn, .pink, .bad) {
      background: transparent;
    }

    .stat:is(.good, .warn, .pink, .bad) strong,
    .stat:is(.good, .warn, .pink, .bad) + .stat:is(.good, .warn, .pink, .bad) strong {
      color: var(--ink);
    }

    .honeymoon-target {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(210px, 0.55fr);
      align-items: stretch;
      border: 1px solid var(--line-strong);
      background: var(--sheet);
    }

    .honeymoon-target-field {
      padding: 14px;
    }

    .honeymoon-target-field label {
      color: var(--ink);
      font-size: 14px;
      font-weight: 750;
    }

    .honeymoon-target-field input {
      max-width: 320px;
      min-height: 44px;
      font-size: 18px;
      font-weight: 700;
      text-align: left;
    }

    .honeymoon-target-field > span {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.4;
    }

    .honeymoon-target-balance {
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 14px 18px;
      border-left: 1px solid var(--line);
      background: var(--success-soft);
    }

    .honeymoon-target-balance > span {
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
    }

    .honeymoon-target-balance strong {
      margin-top: 3px;
      color: var(--success-deep);
      font-family: var(--font);
      font-size: 24px;
      line-height: 1.15;
      overflow-wrap: anywhere;
    }

    .honeymoon-target-balance.bad strong {
      color: var(--danger);
    }

    .honeymoon-target-balance .honeymoon-target-note {
      margin-top: 3px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 400;
    }

    .budget-overview {
      display: grid;
      grid-template-columns: minmax(260px, 0.56fr) minmax(0, 1.44fr);
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      background: var(--sheet);
      min-width: 0;
    }

    .budget-hero {
      min-height: 242px;
      padding: 22px 24px;
      border-right: 1px solid var(--line);
      background: var(--sheet);
      color: var(--ink);
      display: grid;
      align-content: space-between;
      gap: 18px;
      overflow: hidden;
    }

    .budget-kicker {
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
    }

    .budget-hero h3 {
      margin: 6px 0 0;
      max-width: none;
      font-family: var(--font-display);
      color: var(--accent-strong);
      font-size: clamp(36px, 3.4vw, 48px);
      font-weight: 600;
      line-height: 1;
      letter-spacing: 0;
    }

    .budget-hero-note {
      margin: 8px 0 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.35;
    }

    .budget-meter {
      height: 12px;
      border: 1px solid var(--line);
      background: var(--sheet-soft);
      overflow: hidden;
    }

    .budget-meter span {
      display: block;
      height: 100%;
      width: 0%;
      background: var(--clay);
      transition: width 180ms ease;
    }

    .budget-money {
      display: grid;
      gap: 0;
      border-top: 1px solid var(--line);
    }

    .budget-money-row {
      min-width: 0;
      border-bottom: 1px solid var(--line);
      padding: 10px 0;
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 14px;
    }

    .budget-money-row:last-child {
      border-bottom: 0;
      padding-bottom: 0;
    }

    .budget-money-row span {
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
    }

    .budget-money-row strong {
      min-width: 0;
      color: var(--ink);
      font-size: 18px;
      font-weight: 800;
      text-align: right;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .budget-money-row.good strong {
      color: var(--success-deep);
    }

    .budget-money-row.warn strong {
      color: var(--warning-deep);
    }

    .budget-money-row.bad strong {
      color: var(--danger);
    }

    .budget-breakdown {
      min-width: 0;
      padding: 20px 24px;
      display: grid;
      gap: 14px;
      align-content: start;
    }

    .budget-breakdown-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 14px;
      border-bottom: 1px solid var(--line);
      padding-bottom: 12px;
    }

    .budget-breakdown-head h3 {
      margin: 0;
      font-size: 16px;
      line-height: 1.15;
      font-weight: 800;
    }

    .budget-breakdown-head strong {
      color: var(--accent-strong);
      font-size: 14px;
      font-weight: 800;
      white-space: nowrap;
    }

    .budget-bar-list {
      display: grid;
      gap: 10px;
    }

    .budget-bar-row {
      display: grid;
      grid-template-columns: minmax(132px, 190px) minmax(0, 1fr) minmax(86px, auto);
      gap: 12px;
      align-items: center;
      min-width: 0;
    }

    .budget-bar-label {
      min-width: 0;
      display: grid;
      gap: 2px;
    }

    .budget-bar-label strong {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 14px;
      line-height: 1.18;
    }

    .budget-bar-label span {
      color: var(--muted);
      font-size: 12px;
    }

    .budget-bar-track {
      height: 10px;
      border: 1px solid var(--line);
      background: var(--sheet-soft);
      overflow: hidden;
    }

    .budget-bar-fill {
      display: block;
      min-width: 3px;
      height: 100%;
      background: var(--clay);
      transition: width 180ms ease;
    }

    .budget-bar-value {
      color: var(--accent-strong);
      font-size: 14px;
      font-weight: 800;
      text-align: right;
      white-space: nowrap;
    }

    .budget-summary-strip {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      border-top: 1px solid var(--line);
    }

    .budget-summary-strip div {
      min-width: 0;
      border-right: 1px solid var(--line);
      padding: 10px 12px;
      background: var(--paper);
    }

    .budget-summary-strip div:last-child {
      border-right: 0;
    }

    .budget-summary-strip span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
    }

    .budget-summary-strip strong {
      display: block;
      margin-top: 3px;
      color: var(--ink);
      font-size: 17px;
      line-height: 1.15;
      font-weight: 800;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .dashboard-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 340px;
      gap: 16px;
      align-items: start;
    }

    .dashboard-stack {
      display: grid;
      gap: 16px;
      align-content: start;
    }

    .dashboard-desktop-view {
      display: contents;
    }

    .dashboard-mobile-view {
      display: none;
    }

    .ledger-list {
      display: grid;
      gap: 0;
      border: 1px solid var(--line);
      background: var(--sheet);
    }

    .ledger-row {
      border-bottom: 1px solid var(--line);
      background: transparent;
      padding: 11px 12px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px 14px;
      align-items: center;
    }

    .ledger-row:last-child {
      border-bottom: 0;
    }

    .ledger-row strong {
      display: block;
      font-family: var(--font);
      font-size: 14px;
      line-height: 1.1;
    }

    .ledger-row span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      margin-top: 3px;
    }

    .ledger-row em {
      color: var(--accent-strong);
      font-style: normal;
      font-weight: 750;
      white-space: nowrap;
    }

    .ledger-bar {
      grid-column: 1 / -1;
      height: 5px;
      border: 1px solid var(--line);
      background: var(--sheet-soft);
      overflow: hidden;
    }

    .ledger-bar span {
      display: block;
      height: 100%;
      width: 0%;
      margin: 0;
      background: var(--clay);
    }

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

    .vendor-hub {
      display: grid;
      gap: 16px;
    }

    .vendor-stat-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .appointment-stat-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .vendor-category-icon {
      width: 36px;
      height: 36px;
      min-width: 36px;
      border: 1px solid var(--line);
      border-radius: 50%;
      display: inline-grid;
      place-items: center;
      color: var(--rose-dark);
      background: var(--blush-soft);
    }

    .vendor-category-icon svg {
      width: 19px;
      height: 19px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.7;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .vendor-category-icon[data-vendor-icon-tone="photo"] {
      border-color: #E7D3AD;
      color: #9A6A32;
      background: #F8EEDB;
    }

    .vendor-category-icon[data-vendor-icon-tone="florist"] {
      border-color: #E6C6D7;
      color: #9A567B;
      background: #F6E4ED;
    }

    .vendor-category-icon[data-vendor-icon-tone="catering"] {
      border-color: color-mix(in srgb, var(--sage) 30%, transparent);
      color: var(--sage-dark);
      background: var(--sage-soft);
    }

    .vendor-category-icon[data-vendor-icon-tone="music"] {
      border-color: var(--status-quote-border);
      color: var(--status-quote-text);
      background: var(--status-quote-bg);
    }

    .vendor-category-icon[data-vendor-icon-tone="transport"] {
      border-color: var(--status-shortlist-border);
      color: var(--status-shortlist-text);
      background: var(--status-shortlist-bg);
    }

    .vendor-field-with-icon {
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .vendor-field-with-icon .table-input {
      min-width: 0;
    }

    .vendor-name-input,
    .vendor-category-input {
      min-height: 38px;
      resize: none;
      overflow: hidden;
      line-height: 1.25;
    }

    .vendor-contact-fields {
      display: grid;
      gap: 5px;
    }

    .vendor-contact-field {
      display: grid;
      gap: 2px;
      min-width: 0;
    }

    .vendor-contact-field > span {
      color: var(--muted);
      font-size: 10px;
      font-weight: 650;
      line-height: 1.1;
    }

    .vendor-contact-field .table-input {
      min-width: 0;
      min-height: 29px;
      padding-block: 4px;
    }

    .vendor-question-list .table-tools [data-add="vendorQuestions"] {
      display: none;
    }

    @media (min-width: 1025px) {
      .vendors-table,
      .vendorQuestions-table {
        min-width: 0;
        table-layout: fixed;
      }

      .vendors-table th,
      .vendors-table td,
      .vendors-table .cell-wide,
      .vendors-table .cell-notes,
      .vendors-table .cell-status,
      .vendorQuestions-table th,
      .vendorQuestions-table td,
      .vendorQuestions-table .cell-notes {
        min-width: 0;
      }

      .vendors-table .vendor-name-column { width: 20%; }
      .vendors-table .vendor-category-column { width: 10%; }
      .vendors-table .vendor-quote-column { width: 11%; }
      .vendors-table .vendor-contact-column { width: 22%; }
      .vendors-table .vendor-status-column { width: 15%; }
      .vendors-table .vendor-notes-column { width: 12%; }
      .vendors-table .vendor-action-column { width: 84px; }

      .vendors-table .table-input {
        min-width: 0;
        max-width: 100%;
        padding-inline: 6px;
      }

      .vendors-table select.table-input[data-status-tone] {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding-left: 8px;
      }

      .vendorQuestions-table th:nth-child(1) { width: 15%; }
      .vendorQuestions-table th:nth-child(2) { width: 25%; }
      .vendorQuestions-table th:nth-child(3) { width: 25%; }
      .vendorQuestions-table th:nth-child(4) { width: 12%; }
      .vendorQuestions-table th:nth-child(5) { width: auto; }
      .vendorQuestions-table th:nth-child(6) { width: 94px; }

      .vendors-table .table-input:not([data-status-tone]),
      .vendors-table .note-preview-button,
      .vendorQuestions-table .table-input:not([data-select-tone]),
      .vendorQuestions-table .note-preview-button {
        border-color: transparent;
        background: transparent;
      }

      .vendors-table tr:hover .table-input:not([data-status-tone]),
      .vendors-table tr:hover .note-preview-button,
      .vendorQuestions-table tr:hover .table-input:not([data-select-tone]),
      .vendorQuestions-table tr:hover .note-preview-button,
      .vendors-table .table-input:focus,
      .vendorQuestions-table .table-input:focus {
        border-color: var(--taupe);
        background: var(--field-fill);
      }
    }

    .mini-list {
      display: grid;
      gap: 0;
      border: 1px solid var(--line);
    }

    .mini-row {
      border-bottom: 1px solid var(--line);
      background: var(--sheet);
      padding: 9px 10px;
      display: grid;
      gap: 4px;
    }

    .mini-row:last-child {
      border-bottom: 0;
    }

    .mini-row strong {
      font-size: 14px;
      line-height: 1.25;
    }

    .mini-row div {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      color: var(--muted);
      font-size: 13px;
    }

    .mini-row-origin,
    .mini-row-value {
      min-width: 0;
      overflow-wrap: anywhere;
    }

    .mini-row-type {
      color: var(--text-secondary);
      font-weight: 700;
    }

    .mini-row-value {
      text-align: right;
    }

    .task-dashboard {
      display: grid;
      grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
      border: 1px solid var(--line);
      background: var(--sheet);
    }

    .task-progress-panel,
    .task-next-panel {
      min-width: 0;
      padding: 16px 18px;
    }

    .task-progress-panel {
      border-right: 1px solid var(--line);
      display: grid;
      align-content: space-between;
      gap: 18px;
    }

    .task-progress-heading {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 16px;
    }

    .task-progress-heading h3,
    .task-next-heading h3 {
      margin: 0;
      font-family: var(--font);
      font-size: 15px;
      line-height: 1.2;
    }

    .task-progress-heading strong {
      color: var(--accent-strong);
      font-family: var(--font-display);
      font-size: 34px;
      font-weight: 600;
      line-height: 1;
      white-space: nowrap;
    }

    .task-meter {
      height: 9px;
      border: 1px solid var(--line);
      background: var(--sheet-soft);
      overflow: hidden;
    }

    .task-meter span {
      display: block;
      height: 100%;
      width: 0%;
      background: var(--clay);
    }

    .task-progress-meta {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      border-top: 1px solid var(--line);
    }

    .task-progress-meta div {
      min-width: 0;
      padding: 9px 10px 0;
      border-right: 1px solid var(--line);
    }

    .task-progress-meta div:first-child {
      padding-left: 0;
    }

    .task-progress-meta div:last-child {
      border-right: 0;
      padding-right: 0;
    }

    .task-progress-meta span,
    .task-next-heading span,
    .task-next-row span {
      color: var(--muted);
      font-size: 12px;
    }

    .task-progress-meta strong {
      display: block;
      margin-top: 3px;
      font-size: 18px;
      line-height: 1.15;
    }

    .task-next-panel {
      display: grid;
      align-content: start;
      gap: 12px;
    }

    .task-next-heading {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 12px;
    }

    .task-next-list {
      display: grid;
      border-top: 1px solid var(--line);
    }

    .task-next-row {
      min-width: 0;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      padding: 10px 0;
      border-bottom: 1px solid var(--line);
    }

    .task-next-row:last-child {
      border-bottom: 0;
    }

    .task-next-row strong {
      display: block;
      min-width: 0;
      margin-bottom: 2px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 14px;
      line-height: 1.2;
    }

    .task-next-date {
      color: var(--accent-strong);
      font-size: 13px;
      font-weight: 750;
      white-space: nowrap;
    }

    .task-mobile-panel,
    .task-mobile-progress-summary,
    .task-progress-label-mobile {
      display: none;
    }

    .summary-picker {
      border: 1px solid var(--line-strong);
      background: var(--sheet);
    }

    .summary-picker-heading {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 12px 14px;
      border-bottom: 1px solid var(--line);
      background: var(--blush-soft);
    }

    .summary-picker-heading h3 {
      margin: 0;
      font-family: var(--font);
      font-size: 15px;
      line-height: 1.25;
    }

    .summary-picker-heading p {
      margin: 3px 0 0;
      color: var(--muted);
      font-size: 12px;
    }

    .summary-picker-actions {
      display: flex;
      gap: 6px;
      flex: 0 0 auto;
    }

    .summary-options {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0;
      padding: 4px 14px 14px;
    }

    .summary-option {
      min-height: 48px;
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 10px 8px;
      border-bottom: 1px solid var(--line);
      color: var(--ink);
      cursor: pointer;
      font-size: 13px;
      font-weight: 650;
    }

    .summary-option input {
      flex: 0 0 auto;
      margin: 0;
    }

    .summary-preview,
    .summary-section-grid {
      display: grid;
      gap: 18px;
    }

    .summary-section-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .summary-section-block {
      min-width: 0;
    }

    .summary-notes {
      margin: 0;
      min-height: 76px;
      color: var(--ink);
      font-size: 14px;
      line-height: 1.55;
      white-space: pre-wrap;
      overflow-wrap: anywhere;
    }

    .summary-empty {
      border: 1px dashed var(--line-strong);
      padding: 24px;
      color: var(--muted);
      text-align: center;
    }

    .progress {
      height: 10px;
      border-radius: 0;
      border: 1px solid var(--line);
      background: var(--sheet-soft);
      overflow: hidden;
    }

    .progress > span {
      display: block;
      height: 100%;
      width: 0%;
      background: var(--clay);
    }

    .category-list {
      display: grid;
      gap: 12px;
      border: 1px solid var(--line);
      padding: 12px;
      background: var(--sheet);
    }

    .category-row {
      display: grid;
      gap: 7px;
    }

    .category-row div {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 12px;
      font-size: 14px;
    }

    .category-row strong {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .category-row span {
      color: var(--muted);
      white-space: nowrap;
    }

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

    .calendar-key {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
      color: var(--muted);
      font-size: 11px;
      line-height: 1.35;
    }

    .calendar-key-label {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      color: var(--ink);
      font-weight: 700;
    }

    .calendar-key-swatch {
      width: 13px;
      height: 13px;
      border: 1px solid var(--warning-deep);
      background: var(--warning);
    }

    .calendar-day,
    .calendar-empty {
      position: relative;
      height: 48px;
      border: 1px solid var(--line);
      border-radius: 0;
      background: var(--sheet);
      padding: 6px;
      font-size: 12px;
      color: var(--muted);
    }

    .calendar .day-name {
      min-height: 30px;
      padding: 7px 2px;
      background: var(--blush-soft);
      color: var(--rose-dark);
      border-color: var(--blush);
      text-align: center;
      font-size: 11px;
      font-weight: 700;
    }

    .calendar .has-item {
      background: var(--sage-soft);
      border-color: var(--sage);
      color: var(--ink);
      cursor: pointer;
      font: inherit;
      text-align: left;
      transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
    }

    .calendar .has-item:hover {
      border-color: var(--sage-dark);
      background: color-mix(in srgb, var(--sage-soft) 72%, var(--surface));
      color: var(--sage-dark);
    }

    .calendar .has-item.is-selected {
      border-color: var(--sage-dark);
      background: color-mix(in srgb, var(--sage-soft) 72%, var(--surface));
      color: var(--sage-dark);
    }

    .calendar .has-item.is-selected .calendar-marker {
      background: currentColor;
    }

    .calendar .has-item.is-selected .calendar-event-count {
      color: currentColor;
    }

    .calendar .has-item.is-selected .calendar-event-open {
      color: currentColor;
    }

    .calendar strong {
      display: block;
      color: inherit;
      font-size: 12px;
    }

    .calendar-marker {
      position: absolute;
      left: 6px;
      bottom: 7px;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--sage-dark);
    }

    .calendar-event-count {
      position: absolute;
      left: 50%;
      bottom: 4px;
      transform: translateX(-50%);
      color: var(--sage-dark);
      font-size: 10px;
      font-weight: 700;
    }

    .calendar-event-open {
      position: absolute;
      right: 4px;
      bottom: 3px;
      display: inline-flex;
      color: var(--sage-dark);
    }

    .calendar-event-open svg {
      width: 13px;
      height: 13px;
    }

    .calendar-detail {
      margin-top: 12px;
      border: 1px solid var(--line-strong);
      background: var(--sheet);
    }

    .calendar-detail-heading {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 10px 12px;
      background: var(--warning-soft);
      border-bottom: 1px solid var(--line);
    }

    .calendar-detail-heading time {
      color: var(--ink);
      font-size: 13px;
      font-weight: 700;
    }

    .calendar-detail-heading span {
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
    }

    .calendar-detail-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 14px;
      align-items: center;
      padding: 10px 12px;
      border-bottom: 1px solid var(--line);
    }

    .calendar-detail-row:last-child {
      border-bottom: 0;
    }

    .calendar-detail-copy {
      min-width: 0;
    }

    .calendar-detail-copy strong {
      display: block;
      color: var(--ink);
      font-size: 12px;
      line-height: 1.4;
      overflow-wrap: anywhere;
    }

    .calendar-detail-copy span,
    .calendar-detail-value {
      color: var(--muted);
      font-size: 11px;
      line-height: 1.45;
      font-variant-numeric: tabular-nums;
    }

    .calendar-detail-value {
      max-width: 110px;
      text-align: right;
      overflow-wrap: anywhere;
    }

    .calendar-detail-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      flex-wrap: wrap;
      gap: 8px;
    }

    .calendar-source-button,
    .calendar-google-button {
      white-space: nowrap;
    }

    .calendar-dialog {
      width: min(520px, calc(100% - 32px));
      max-height: min(680px, calc(100svh - 32px));
      border: 1px solid var(--line-strong);
      border-radius: 6px;
      padding: 0;
      background: var(--paper);
      color: var(--ink);
      box-shadow: 0 8px 24px rgba(64, 55, 53, 0.12);
      overflow: auto;
    }

    .calendar-dialog::backdrop {
      background: rgba(60, 52, 55, 0.42);
    }

    .calendar-dialog-header {
      position: sticky;
      top: 0;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 16px 18px;
      border-bottom: 1px solid var(--line);
      background: var(--blush-soft);
    }

    .calendar-dialog-header span {
      display: block;
      margin-bottom: 2px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
    }

    .calendar-dialog-header h3 {
      margin: 0;
      color: var(--ink);
      font-family: var(--font);
      font-size: 22px;
      line-height: 1.2;
    }

    .calendar-dialog-body {
      padding: 8px 18px 18px;
    }

    .calendar-dialog .calendar-detail-row {
      padding: 14px 0;
    }

    .note-dialog {
      width: min(620px, calc(100% - 32px));
      border: 1px solid var(--line-strong);
      border-radius: 6px;
      padding: 0;
      background: var(--paper);
      color: var(--ink);
      box-shadow: 0 8px 24px rgba(64, 55, 53, 0.12);
    }

    .note-dialog::backdrop {
      background: rgba(60, 52, 55, 0.42);
    }

    .note-dialog-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 16px 18px;
      border-bottom: 1px solid var(--line);
      background: var(--blush-soft);
    }

    .note-dialog-heading {
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .note-dialog-back {
      flex: 0 0 auto;
    }

    .note-dialog-header h3 {
      margin: 0;
      color: var(--ink);
      font-family: var(--font);
      font-size: 22px;
      line-height: 1.2;
    }

    .note-dialog-body {
      padding: 18px;
    }

    .note-dialog textarea {
      width: 100%;
      min-height: 240px;
      max-height: min(56svh, 520px);
      resize: vertical;
      background: var(--sheet);
    }

    .note-dialog-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 0 18px 18px;
    }

    .table-wrap {
      width: 100%;
      overflow-x: auto;
    }

    table {
      width: 100%;
      min-width: 1080px;
      border-collapse: collapse;
      font-size: 14px;
    }

    th,
    td {
      border-bottom: 1px solid var(--border);
      text-align: left;
      vertical-align: top;
    }

    th {
      background: var(--surface-soft);
      color: var(--text);
      padding: 9px 10px;
      font-size: 12px;
      font-weight: 650;
      white-space: nowrap;
      border-top: 1px solid var(--border);
    }

    td {
      padding: 8px 10px;
      min-width: 112px;
      background: var(--surface);
    }

    tr:nth-child(even) td {
      background: var(--surface);
    }

    tr:hover td {
      background: var(--surface-soft);
    }

    .cell-wide {
      min-width: 190px;
    }

    .cell-notes {
      min-width: 190px;
    }

    .cell-notes.is-expanded {
      min-width: 360px;
    }

    .cell-status {
      min-width: 150px;
    }

    .cell-date,
    .cell-availability {
      min-width: 168px;
    }

    .cell-category {
      min-width: 142px;
    }

    .finance-table {
      min-width: 1160px;
    }

    .finance-table .cell-category {
      min-width: 170px;
    }

    .finance-table .cell-wide {
      min-width: 210px;
    }

    th.cell-action,
    td.cell-action {
      position: sticky;
      right: 0;
      z-index: 2;
      width: 108px;
      min-width: 108px;
      max-width: 108px;
      padding-left: 10px;
      padding-right: 12px;
      text-align: right;
      background: var(--surface);
      box-shadow: -1px 0 0 var(--border);
    }

    th.cell-action {
      z-index: 3;
      background: var(--surface-soft);
    }

    tr:hover td.cell-action {
      background: var(--surface-soft);
    }

    th.cell-check,
    td.cell-check {
      width: 58px;
      min-width: 58px;
      max-width: 58px;
      padding-left: 8px;
      padding-right: 8px;
      text-align: center;
      vertical-align: middle;
    }

    td.cell-check .table-input {
      display: block;
      margin: 0 auto;
    }

    .table-input {
      min-height: 32px;
      padding: 5px 7px;
      border-color: var(--taupe);
      background-color: var(--field-fill);
    }

    select.table-input {
      min-width: 118px;
      height: 36px;
      min-height: 36px;
      padding: 5px 30px 5px 11px;
      text-overflow: clip;
    }

    select.table-input[data-field="stage"],
    select.table-input[data-field="importance"],
    select.table-input[data-field="priority"] {
      min-width: 122px;
    }

    select.table-input[data-field="status"] {
      min-width: 148px;
    }

    tr:hover .table-input {
      border-color: var(--taupe);
      background-color: var(--field-fill);
    }

    .table-input:focus {
      border-color: var(--rose);
      background-color: var(--field-fill);
    }

    input[type="date"],
    .table-input[type="date"] {
      border-color: var(--border);
      background: var(--surface);
      color: var(--text);
    }

    select.table-input[data-status-tone],
    select.table-input[data-select-tone] {
      font-weight: 500;
      box-shadow: none;
      transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
    }

    .mobile-status-trigger,
    .mobile-status-menu {
      display: none;
    }

    select.table-input[data-status-tone] {
      min-width: 132px;
      min-height: 36px;
      padding: 5px 30px 5px 11px;
      border-color: transparent;
      border-radius: 6px;
      box-shadow: none;
      font-weight: 500;
      line-height: 1.2;
      background-position: right 8px center;
    }

    select.table-input[data-status-tone="researching"],
    select.table-input[data-status-tone="not-started"],
    select.table-input[data-status-tone="maybe"],
    select.table-input[data-status-tone="draft"],
    select.table-input[data-status-tone="planning"] {
      border-color: var(--status-neutral-border);
      background-color: var(--status-neutral-bg);
      color: var(--status-neutral-text);
    }

    select.table-input[data-status-tone="quote"] {
      border-color: var(--status-quote-border);
      background-color: var(--status-quote-bg);
      color: var(--status-quote-text);
    }

    select.table-input[data-status-tone="in-progress"] {
      border-color: var(--status-progress-border);
      background-color: var(--status-progress-bg);
      color: var(--status-progress-text);
    }

    select.table-input[data-status-tone="to-confirm"] {
      border-color: var(--status-pending-border);
      background-color: var(--status-pending-bg);
      color: var(--status-pending-text);
    }

    select.table-input[data-status-tone="tasting"] {
      border-color: var(--status-tasting-border);
      background-color: var(--status-tasting-bg);
      color: var(--status-tasting-text);
    }

    select.table-input[data-status-tone="shortlisted"] {
      border-color: var(--status-shortlist-border);
      background-color: var(--status-shortlist-bg);
      color: var(--status-shortlist-text);
    }

    select.table-input[data-status-tone="booked"] {
      border-color: var(--status-booked-border);
      background-color: var(--status-booked-bg);
      color: var(--status-booked-text);
    }

    select.table-input[data-status-tone="selected"] {
      border-color: var(--status-selected-border);
      background-color: var(--status-selected-bg);
      color: var(--status-selected-text);
    }

    select.table-input[data-status-tone="backup"] {
      border-color: var(--status-backup-border);
      background-color: var(--status-backup-bg);
      color: var(--status-backup-text);
    }

    select.table-input[data-status-tone="confirmed"],
    select.table-input[data-status-tone="approved"],
    select.table-input[data-status-tone="chosen"],
    select.table-input[data-status-tone="final"],
    select.table-input[data-status-tone="paid"],
    select.table-input[data-status-tone="done"],
    select.table-input[data-status-tone="complete"] {
      border-color: color-mix(in srgb, var(--sage) 28%, transparent);
      background-color: color-mix(in srgb, var(--sage-soft) 72%, var(--surface));
      color: var(--sage-dark);
    }

    tr[data-kind="appointments"] select.table-input[data-field="status"][data-status-tone="confirmed"] {
      border-color: var(--status-confirmed-border);
      background-color: var(--status-confirmed-bg);
      color: var(--status-confirmed-text);
    }

    tr[data-kind="appointments"] select.table-input[data-field="status"] option {
      font-weight: 600;
      background: #FFFFFF;
      color: #403735;
    }

    select.table-input[data-status-tone="cancelled"],
    select.table-input[data-status-tone="canceled"],
    select.table-input[data-status-tone="declined"],
    select.table-input[data-status-tone="no"],
    select.table-input[data-status-tone="do-not-play"] {
      border-color: color-mix(in srgb, var(--danger) 22%, transparent);
      background-color: color-mix(in srgb, var(--blush-soft) 52%, var(--surface));
      color: var(--danger);
    }

    select.table-input[data-status-tone]:hover,
    select.table-input[data-select-tone]:hover {
      border-color: color-mix(in srgb, currentColor 34%, transparent);
    }

    select.table-input[data-status-tone]:focus,
    select.table-input[data-select-tone]:focus {
      border-color: currentColor;
      box-shadow: 0 0 0 2px var(--focus);
    }

    select.table-input[data-select-tone="low"] {
      border-color: color-mix(in srgb, var(--taupe) 28%, transparent);
      background-color: color-mix(in srgb, var(--taupe) 13%, var(--surface));
      color: var(--muted);
    }

    select.table-input[data-select-tone="idea"] {
      border-color: var(--status-idea-border);
      background-color: var(--status-idea-bg);
      color: var(--status-idea-text);
    }

    select.table-input[data-select-tone="normal"],
    select.table-input[data-select-tone="nice-to-have"] {
      border-color: color-mix(in srgb, #C6A95E 30%, transparent);
      background-color: #F4EBCF;
      color: #7A6531;
    }

    select.table-input[data-select-tone="deciding"] {
      border-color: var(--status-deciding-border);
      background-color: var(--status-deciding-bg);
      color: var(--status-deciding-text);
    }

    select.table-input[data-select-tone="high"],
    select.table-input[data-select-tone="must-play"] {
      border-color: color-mix(in srgb, var(--clay) 26%, transparent);
      background-color: color-mix(in srgb, var(--blush) 58%, var(--surface));
      color: var(--accent-strong);
    }

    select.table-input[data-select-tone="do-not-play"] {
      border-color: color-mix(in srgb, var(--danger) 22%, transparent);
      background-color: color-mix(in srgb, var(--blush-soft) 42%, var(--surface));
      color: var(--danger);
    }

    select.table-input[data-select-tone="decided"] {
      border-color: color-mix(in srgb, var(--success) 28%, transparent);
      background-color: color-mix(in srgb, var(--sage-soft) 72%, var(--surface));
      color: var(--success-deep);
    }

    select.table-input[data-select-tone="rsvp-yes"] {
      border-color: color-mix(in srgb, var(--sage) 28%, transparent);
      background-color: color-mix(in srgb, var(--sage-soft) 72%, var(--surface));
      color: var(--sage-dark);
    }

    select.table-input[data-select-tone="rsvp-pending"] {
      border-color: color-mix(in srgb, #C6A95E 30%, transparent);
      background-color: #F4EBCF;
      color: #7A6531;
    }

    select.table-input[data-select-tone="rsvp-no"] {
      border-color: color-mix(in srgb, var(--rose) 24%, transparent);
      background-color: color-mix(in srgb, var(--blush) 58%, var(--surface));
      color: var(--rose-dark);
    }

    select.table-input[data-select-tone="binary-yes"] {
      border-color: color-mix(in srgb, var(--sage) 28%, transparent);
      background-color: color-mix(in srgb, var(--sage-soft) 72%, var(--surface));
      color: var(--sage-dark);
    }

    select.table-input[data-select-tone="binary-no"] {
      border-color: color-mix(in srgb, var(--rose) 24%, transparent);
      background-color: color-mix(in srgb, var(--blush) 58%, var(--surface));
      color: var(--rose-dark);
    }

    tr.calendar-source-target td,
    tr.calendar-source-target:hover td {
      background-color: color-mix(in srgb, var(--blush-soft) 72%, var(--surface));
    }

    tr.calendar-source-target td:first-child {
      box-shadow: inset 3px 0 0 var(--rose);
    }

    @media (min-width: 1025px) and (max-width: 1200px) {
      .budget-table .cell-category {
        min-width: 116px;
      }

      .budget-table .cell-wide {
        min-width: 160px;
      }

      .budget-table th:nth-child(3),
      .budget-table td:nth-child(3),
      .budget-table th:nth-child(4),
      .budget-table td:nth-child(4) {
        min-width: 96px;
      }

      .budget-table th.cell-action,
      .budget-table td.cell-action {
        width: 96px;
        min-width: 96px;
        max-width: 96px;
        padding-left: 8px;
        padding-right: 8px;
      }
    }

    .budget-table th.cell-action,
    .budget-table td.cell-action {
      width: 88px;
      min-width: 88px;
      max-width: 88px;
      padding-left: 6px;
      padding-right: 6px;
    }

    @media (min-width: 1200px) {
      .priorities-table,
      .venues-table {
        width: 100%;
        min-width: 0;
      }

      .priorities-table .cell-wide {
        min-width: 175px;
      }

      .priorities-table .cell-notes {
        min-width: 170px;
      }

      .priorities-table select.table-input,
      .priorities-table select.table-input[data-field="importance"],
      .priorities-table select.table-input[data-field="stage"] {
        min-width: 112px;
      }

      .priorities-table th.cell-action,
      .priorities-table td.cell-action {
        width: 88px;
        min-width: 88px;
        max-width: 88px;
        padding-left: 6px;
        padding-right: 6px;
      }

      .venues-table .cell-wide {
        min-width: 155px;
      }

      .venues-table .cell-availability {
        min-width: 145px;
      }

      .venues-table .cell-status {
        min-width: 132px;
      }

      .venues-table .cell-notes {
        min-width: 160px;
      }

      .venues-table th:nth-child(2),
      .venues-table td:nth-child(2),
      .venues-table th:nth-child(3),
      .venues-table td:nth-child(3) {
        min-width: 88px;
      }

      .venues-table select.table-input[data-field="status"] {
        min-width: 124px;
      }

      .venues-table th.cell-action,
      .venues-table td.cell-action {
        width: 88px;
        min-width: 88px;
        max-width: 88px;
        padding-left: 6px;
        padding-right: 6px;
      }
    }

    .table-textarea {
      height: 34px;
      min-height: 34px;
      max-height: 34px;
      line-height: 1.35;
      resize: none;
      overflow: hidden;
      white-space: pre-wrap;
    }

    .notes-cell-inner {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 28px;
      gap: 6px;
      align-items: start;
    }

    .note-preview-button {
      width: 100%;
      height: 34px;
      min-height: 34px;
      border: 1px solid var(--field-border);
      border-radius: 3px;
      background: var(--field-fill);
      color: var(--ink);
      cursor: text;
      font: inherit;
      line-height: 1.35;
      padding: 5px 7px;
      text-align: left;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .note-preview-button.is-empty {
      color: var(--muted);
    }

    .note-preview-button:hover,
    .note-preview-button:focus-visible {
      border-color: var(--accent-strong);
      background: var(--sheet);
      outline: none;
    }

    .note-expand-button {
      width: 28px;
      min-width: 28px;
      height: 34px;
      border: 1px solid var(--field-border);
      border-radius: 3px;
      background: var(--sheet);
      color: var(--muted);
      cursor: pointer;
      font: inherit;
      line-height: 1;
      transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
    }

    .note-expand-button:hover,
    .note-expand-button:focus-visible {
      border-color: var(--accent-strong);
      color: var(--ink);
      background: var(--sheet-soft);
    }

    .note-expand-button span {
      display: inline-block;
      transform: rotate(90deg);
      transition: transform 160ms ease;
    }

    .cell-notes.is-expanded .note-expand-button span {
      transform: rotate(-90deg);
    }

    .cell-notes:not(.is-expanded) .table-textarea {
      display: none;
    }

    .cell-notes.is-expanded .note-preview-button {
      display: none;
    }

    .cell-notes.is-expanded .table-textarea {
      display: block;
      height: 118px;
      min-height: 118px;
      max-height: none;
      resize: vertical;
      overflow: auto;
      background: var(--sheet);
    }

    .table-input[type="number"] {
      text-align: right;
    }

    .table-tools {
      border-top: 1px solid var(--line);
      padding: 12px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    .quiet {
      color: var(--muted);
      font-size: 13px;
    }

    .empty {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
    }

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

    .seating-planner {
      border: 1px solid var(--line);
      background: var(--sheet);
      overflow: hidden;
    }

    .seating-planner-toolbar {
      min-height: 52px;
      padding: 9px 12px;
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      background: var(--surface-soft);
    }

    .seating-planner-toolbar p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
    }

    .seating-planner-actions {
      display: flex;
      gap: 8px;
    }

    .seating-assignment-guide {
      min-height: 48px;
      padding: 9px 12px;
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      color: var(--muted);
      font-size: 12px;
      background: var(--surface);
    }

    .seating-assignment-steps {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }

    .seating-assignment-step {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      white-space: nowrap;
    }

    .seating-assignment-step b {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      display: inline-grid;
      place-items: center;
      color: var(--accent-strong);
      font-size: 10px;
      background: var(--blush-soft);
    }

    .seating-assignment-guide.is-active {
      color: var(--ink);
      background: var(--sage-soft);
    }

    .seating-assignment-current {
      min-width: 0;
    }

    .seating-assignment-current strong,
    .seating-assignment-current span {
      display: block;
    }

    .seating-assignment-current strong {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .seating-assignment-current span {
      margin-top: 2px;
      color: var(--muted);
    }

    .seating-workspace {
      min-height: 550px;
    }

    .seating-guest-tray {
      padding: 12px;
      border-bottom: 1px solid var(--line);
      background: var(--sidebar-card);
    }

    .seating-guest-tray.is-drop-target {
      background: var(--sage-soft);
    }

    .seating-guest-tray-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .seating-guest-tray h3 {
      margin: 0;
      font-family: var(--font);
      font-size: 15px;
      font-weight: 700;
    }

    .seating-guest-tray-head p {
      margin: 3px 0 0;
      color: var(--muted);
      font-size: 12px;
    }

    .unseated-guest-list {
      margin-top: 10px;
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
    }

    .unseated-guest-card {
      width: min(100%, 300px);
      padding: 5px;
      border: 1px solid var(--line-strong);
      border-radius: 7px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 5px;
      background: var(--sheet);
    }

    .unseated-guest {
      width: 100%;
      min-height: 44px;
      padding: 7px 9px;
      border: 0;
      border-radius: 5px;
      display: grid;
      grid-template-columns: 30px minmax(0, 1fr);
      align-items: center;
      gap: 8px;
      color: var(--ink);
      text-align: left;
      background: var(--sheet);
      cursor: grab;
      touch-action: none;
    }

    .unseated-guest:hover,
    .unseated-guest.is-selected {
      background: var(--blush-soft);
    }

    .unseated-seat-action {
      min-height: 34px;
      padding: 6px 9px;
      border: 1px solid var(--line);
      border-radius: 5px;
      color: var(--accent-strong);
      font-size: 11px;
      font-weight: 700;
      white-space: nowrap;
      background: var(--surface);
    }

    .unseated-seat-action:hover {
      border-color: var(--clay);
      background: var(--blush-soft);
    }

    .unseated-guest-initials {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: var(--accent-strong);
      font-size: 11px;
      font-weight: 800;
      background: var(--blush-soft);
    }

    .unseated-guest strong,
    .unseated-guest > span:not(.unseated-guest-initials),
    .unseated-guest > span:not(.unseated-guest-initials) > span {
      display: block;
      min-width: 0;
    }

    .unseated-guest strong {
      overflow: hidden;
      font-size: 12px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .unseated-guest > span:not(.unseated-guest-initials) > span {
      margin-top: 1px;
      color: var(--muted);
      font-size: 10px;
    }

    .seating-floor-scroll {
      min-width: 0;
      padding: 14px;
      overflow: auto;
      background: var(--surface);
    }

    .seating-floor {
      position: relative;
      width: 100%;
      min-width: 680px;
      height: 520px;
      border: 1px solid var(--line-strong);
      background: var(--field-fill);
      overflow: hidden;
    }

    .seating-floor-label {
      position: absolute;
      top: 14px;
      left: 16px;
      margin: 0;
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
    }

    .seating-dance-floor {
      position: absolute;
      left: 50%;
      top: 50%;
      z-index: 1;
      width: 150px;
      height: 84px;
      border: 1px dashed var(--sage-dark);
      display: grid;
      place-items: center;
      color: var(--sage-dark);
      font-size: 12px;
      font-weight: 700;
      background: var(--sage-soft);
      transform: translate(-50%, -50%);
      cursor: grab;
      touch-action: none;
      user-select: none;
    }

    .seating-dance-floor:active {
      cursor: grabbing;
    }

    .seating-dance-floor:focus-visible {
      outline: 3px solid var(--focus);
      outline-offset: 2px;
    }

    .seating-dance-floor-resize {
      display: none;
    }

    .seating-table-node {
      position: absolute;
      z-index: 2;
      width: 180px;
      height: 180px;
      transform: translate(-50%, -50%);
    }

    .seating-table-core {
      position: absolute;
      inset: 43px;
      z-index: 2;
      border: 1px solid var(--sage-dark);
      border-radius: 50%;
      padding: 8px;
      display: grid;
      place-content: center;
      gap: 1px;
      color: var(--ink);
      text-align: center;
      background: var(--sage-soft);
      cursor: move;
      touch-action: none;
    }

    .seating-table-core:hover,
    .seating-table-core.is-drop-target {
      border-color: var(--clay);
      box-shadow: 0 0 0 3px var(--focus);
    }

    .seating-table-core strong {
      font-size: 12px;
    }

    .seating-table-core span {
      color: var(--muted);
      font-size: 10px;
    }

    .seating-table-move-hint,
    .seating-table-add-guest {
      display: none;
    }

    .seating-table-node.is-over-capacity .seating-table-core {
      border-color: var(--danger);
      background: var(--danger-soft);
    }

    .seating-table-remove {
      position: absolute;
      top: 5px;
      right: 5px;
      z-index: 4;
      width: 28px;
      height: 28px;
      border: 1px solid transparent;
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: var(--muted);
      font-size: 18px;
      line-height: 1;
      background: var(--surface);
      cursor: pointer;
    }

    .seating-table-remove:hover {
      border-color: var(--danger);
      color: var(--danger);
    }

    .seating-guest-seat {
      position: absolute;
      left: 50%;
      top: 50%;
      z-index: 3;
      width: 38px;
      height: 38px;
      border: 1px solid var(--line-strong);
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: var(--ink);
      font-size: 10px;
      font-weight: 800;
      background: var(--surface);
      cursor: grab;
      touch-action: none;
      transform: translate(-50%, -50%) rotate(var(--seat-angle)) translateY(-72px) rotate(var(--seat-counter-angle));
    }

    .seating-guest-seat[data-rsvp="yes"] {
      border-color: var(--sage-dark);
      background: var(--sage-soft);
    }

    .seating-guest-seat:hover,
    .seating-guest-seat.is-selected {
      border-color: var(--clay);
      box-shadow: 0 0 0 3px var(--focus);
    }

    .seating-guest-seat:active {
      cursor: grabbing;
    }

    .seating-guest-seat.is-dragging,
    .unseated-guest.is-dragging {
      opacity: 0.35;
    }

    .seating-drag-ghost {
      position: fixed;
      z-index: 9999;
      width: auto;
      max-width: 180px;
      min-height: 38px;
      padding: 8px 10px;
      border: 1px solid var(--clay);
      border-radius: 6px;
      color: var(--ink);
      font-size: 12px;
      font-weight: 700;
      background: var(--surface);
      box-shadow: 0 2px 8px rgba(64, 55, 53, 0.12);
      pointer-events: none;
      transform: translate(12px, 12px);
    }

    .seating-empty-state {
      margin: 10px 0 0;
      color: var(--muted);
      font-size: 12px;
    }

    .seating-mobile-plan,
    .mobile-manage-guests,
    .mobile-seating-instruction {
      display: none;
    }

    .mobile-seat-table {
      border: 1px solid var(--line);
      background: var(--surface);
    }

    .mobile-seat-table.is-drop-target {
      border-color: var(--clay);
      box-shadow: 0 0 0 3px var(--focus);
    }

    .mobile-seat-table-header {
      min-height: 46px;
      padding: 8px 10px;
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      background: var(--sage-soft);
    }

    .mobile-seat-table-header strong,
    .mobile-seat-table-header span {
      display: block;
    }

    .mobile-seat-table-header strong {
      font-size: 14px;
    }

    .mobile-seat-table-header span {
      margin-top: 1px;
      color: var(--muted);
      font-size: 11px;
    }

    .mobile-seat-table-remove {
      width: 34px;
      height: 34px;
      min-height: 34px;
      border: 1px solid transparent;
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: var(--muted);
      font-size: 18px;
      background: transparent;
    }

    .mobile-seat-table-remove:hover {
      border-color: var(--danger);
      color: var(--danger);
      background: var(--danger-soft);
    }

    .mobile-seat-guest-list {
      padding: 5px 10px;
      display: grid;
    }

    .mobile-seat-guest {
      min-height: 48px;
      border: 0;
      border-bottom: 1px solid var(--line);
      border-radius: 0;
      padding: 7px 0;
      display: grid;
      grid-template-columns: 32px minmax(0, 1fr);
      align-items: center;
      gap: 9px;
      color: var(--ink);
      text-align: left;
      background: transparent;
      cursor: grab;
      touch-action: none;
    }

    .mobile-seat-guest:last-child {
      border-bottom: 0;
    }

    .mobile-seat-guest.is-selected {
      color: var(--accent-strong);
      background: var(--blush-soft);
    }

    .mobile-seat-guest strong,
    .mobile-seat-guest > span:not(.unseated-guest-initials),
    .mobile-seat-guest > span:not(.unseated-guest-initials) > span {
      display: block;
      min-width: 0;
    }

    .mobile-seat-guest strong {
      font-size: 12px;
    }

    .mobile-seat-guest > span:not(.unseated-guest-initials) > span {
      margin-top: 1px;
      color: var(--muted);
      font-size: 10px;
    }

    .mobile-seat-table-empty {
      margin: 0;
      padding: 14px 10px;
      color: var(--muted);
      font-size: 12px;
    }

    .mobile-seat-table-add {
      width: calc(100% - 20px);
      margin: 7px 10px 10px;
    }

    .seating-guest-dialog {
      width: min(440px, calc(100% - 24px));
      max-height: calc(100svh - 32px);
      border: 1px solid var(--line-strong);
      border-radius: 10px;
      padding: 0;
      color: var(--ink);
      background: var(--surface);
      box-shadow: 0 8px 24px rgba(64, 55, 53, 0.16);
      overflow: hidden;
    }

    .seating-guest-dialog::backdrop {
      background: rgba(64, 55, 53, 0.42);
    }

    .seating-guest-dialog-header {
      min-height: 56px;
      padding: 10px 12px;
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      background: var(--surface-soft);
    }

    .seating-guest-dialog-header h3 {
      margin: 0;
      font-family: var(--font);
      font-size: 16px;
    }

    .seating-guest-dialog-close {
      width: 36px;
      height: 36px;
      min-height: 36px;
      border: 1px solid var(--line);
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: var(--muted);
      font-size: 18px;
      background: var(--surface);
    }

    .seating-guest-dialog-body {
      max-height: min(460px, calc(100svh - 120px));
      padding: 10px;
      overflow: auto;
    }

    .seating-picker-list {
      display: grid;
      gap: 7px;
    }

    .seating-picker-guest {
      width: 100%;
      min-height: 48px;
      border: 1px solid var(--line);
      border-radius: 6px;
      padding: 8px 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      color: var(--ink);
      text-align: left;
      background: var(--surface);
    }

    .seating-picker-guest:hover {
      border-color: var(--clay);
      background: var(--blush-soft);
    }

    .seating-picker-guest:disabled {
      opacity: 0.55;
      cursor: not-allowed;
    }

    .seating-picker-guest span {
      color: var(--muted);
      font-size: 11px;
    }

    .seat-table {
      border: 1px solid var(--line);
      background: var(--sheet);
      overflow: hidden;
    }

    .seat-table-heading,
    .seat-table > h3 {
      padding: 9px 11px;
      background: var(--sand-soft);
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      color: var(--sand-deep);
    }

    .seat-table-heading h3,
    .seat-table > h3 {
      margin: 0;
      font-family: var(--font);
      font-weight: 600;
      font-size: 15px;
    }

    .seat-table > h3 span {
      color: var(--muted);
      font-family: var(--font-sans);
      font-size: 10px;
      font-weight: 700;
    }

    .seat-capacity-control {
      display: flex;
      align-items: center;
      gap: 6px;
      color: var(--muted);
      font-family: var(--font-sans);
      font-size: 10px;
      font-weight: 700;
    }

    .seat-capacity-control input[type="number"] {
      width: 50px;
      min-height: 30px;
      padding: 4px 2px 4px 5px;
      border-color: var(--line-strong);
      text-align: center;
      background: var(--surface);
      appearance: auto;
      -webkit-appearance: auto;
    }

    .seat-capacity-control input[type="number"]::-webkit-inner-spin-button,
    .seat-capacity-control input[type="number"]::-webkit-outer-spin-button {
      margin: 0;
      opacity: 1;
      cursor: pointer;
    }

    .seat-table.is-over-capacity {
      border-color: var(--danger);
    }

    .seat-table.is-over-capacity .seat-table-heading {
      background: var(--danger-soft);
    }

    .seat-table-warning {
      margin: 0;
      padding: 7px 11px;
      border-bottom: 1px solid var(--danger);
      color: var(--danger);
      font-size: 11px;
      font-weight: 700;
      background: var(--danger-soft);
    }

    .seat-table ul {
      margin: 0;
      padding: 10px 11px 12px 26px;
      color: var(--muted);
      font-size: 13px;
    }

    .seat-table li + li {
      margin-top: 5px;
    }

    .seat-table li strong {
      color: var(--ink);
      font-weight: 700;
    }

    .seat-table-empty {
      margin: 0;
      padding: 14px 11px;
      color: var(--muted);
      font-size: 12px;
    }

    .seat-table.is-unseated h3 {
      color: var(--accent-strong);
      background: var(--blush-soft);
    }

    .interactive-seating-panel {
      scroll-margin-top: 82px;
    }

    .theme-board {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
    }

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

    .theme-presets {
      margin-bottom: 14px;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 8px;
    }

    .theme-preset-title {
      display: block;
      margin: 0 0 5px;
      color: var(--muted);
      font-size: 12px;
    }

    .theme-preset {
      width: 100%;
      justify-content: flex-start;
      gap: 8px;
      font-weight: 600;
      padding: 6px 9px;
      min-height: 34px;
      border-radius: 7px;
      background: var(--sheet-soft);
    }

    .theme-preset.is-active {
      border-color: var(--clay);
      color: var(--clay-deep);
      background: color-mix(in srgb, var(--clay) 18%, var(--sheet));
    }

    .theme-preset-dot {
      width: 15px;
      height: 15px;
      border-radius: 50%;
      border: 1px solid color-mix(in srgb, var(--clay) 24%, transparent);
      background:
        linear-gradient(135deg, var(--theme-preset-primary) 0 52%, var(--theme-preset-accent) 52% 100%);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
    }

    .swatch {
      border: 1px solid var(--line);
      background: var(--sheet);
      min-width: 0;
      min-height: 88px;
      padding: 12px;
      display: grid;
      grid-template-columns: 56px minmax(0, 1fr);
      grid-template-rows: auto auto;
      gap: 5px 12px;
      align-items: center;
    }

    .swatch-color {
      grid-row: 1 / 3;
      width: 56px;
      height: 56px;
      min-height: 56px;
      border: 1px solid var(--line-strong);
      border-radius: 4px;
      background: var(--paper);
      padding: 4px;
      cursor: pointer;
    }

    .swatch-color::-webkit-color-swatch-wrapper {
      padding: 0;
    }

    .swatch-color::-webkit-color-swatch {
      border: 0;
      border-radius: 2px;
    }

    .swatch-color::-moz-color-swatch {
      border: 0;
      border-radius: 2px;
    }

    .swatch-copy {
      min-width: 0;
      align-self: end;
    }

    .swatch-copy label {
      display: block;
      color: var(--heading);
      font-size: 13px;
      line-height: 1.25;
      font-weight: 800;
      cursor: pointer;
    }

    .swatch-copy span {
      display: block;
      margin-top: 3px;
      color: var(--muted);
      font-size: 11px;
      line-height: 1.35;
    }

    .swatch output {
      align-self: start;
      color: var(--muted);
      font-size: 11px;
      line-height: 1;
      font-weight: 750;
      font-variant-numeric: tabular-nums;
    }

    .palette-image-fields {
      display: grid;
      gap: 10px;
    }

    .profile-photo-control {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      min-height: 88px;
    }

    .profile-photo-preview {
      position: relative;
      width: 84px;
      height: 84px;
      flex: 0 0 84px;
      border: 1px solid var(--line-strong);
      border-radius: 50%;
      display: grid;
      place-items: center;
      overflow: hidden;
      background: var(--blush-soft);
      color: var(--accent-strong);
    }

    .profile-photo-preview[data-profile-positioner] {
      cursor: grab;
      touch-action: none;
      user-select: none;
    }

    .profile-photo-preview[data-profile-positioner].is-dragging {
      cursor: grabbing;
    }

    .profile-photo-preview img {
      position: absolute;
      inset: 0;
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: var(--profile-x, 50%) var(--profile-y, 50%);
      transform: scale(var(--profile-zoom, 1));
      transform-origin: var(--profile-x, 50%) var(--profile-y, 50%);
      pointer-events: none;
      user-select: none;
    }

    .profile-photo-preview svg {
      width: 26px;
      height: 26px;
    }

    .profile-photo-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .profile-photo-editor {
      flex: 1 1 360px;
      min-width: 0;
      display: grid;
      gap: 10px;
    }

    .profile-position-controls {
      max-width: 520px;
      display: grid;
      grid-template-columns: repeat(3, minmax(90px, 1fr)) 32px;
      align-items: end;
      gap: 10px;
    }

    .profile-position-control {
      display: grid;
      gap: 3px;
    }

    .profile-position-control label {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 6px;
      font-size: 11px;
    }

    .profile-position-control output {
      color: var(--faint);
      font-size: 10px;
      font-variant-numeric: tabular-nums;
    }

    .profile-position-control input[type="range"] {
      width: 100%;
      min-height: 28px;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      padding: 0;
      accent-color: var(--clay);
      cursor: ew-resize;
    }

    .profile-position-control[data-axis="y"] input[type="range"] {
      cursor: ns-resize;
    }

    .profile-position-reset {
      width: 32px;
      height: 32px;
      min-height: 32px;
    }

    .mood-photo-settings {
      margin-bottom: 12px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .mood-photo-status {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.4;
      font-variant-numeric: tabular-nums;
    }

    .mood-photo-status strong {
      color: var(--heading);
      font-weight: 800;
    }

    .mood-photo-settings .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      flex: 0 0 auto;
    }

    .mood-photo-settings .button svg {
      width: 16px;
      height: 16px;
    }

    .wedding-palette-grid {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 10px;
    }

    .wedding-palette-item {
      min-width: 0;
      border: 1px solid var(--line);
      background: var(--sheet);
      padding: 8px;
      display: grid;
      gap: 7px;
    }

    .wedding-palette-chip {
      height: 56px;
      border: 1px solid var(--line-strong);
      background: var(--wedding-color);
    }

    .wedding-palette-row {
      display: grid;
      grid-template-columns: 34px minmax(0, 1fr);
      gap: 6px;
      align-items: center;
    }

    .wedding-palette-row input[type="color"] {
      width: 34px;
      height: 34px;
      min-height: 34px;
      padding: 2px;
    }

    .wedding-palette-value {
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
      text-transform: uppercase;
    }

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

    .mood-grid[data-count="0"],
    .mood-grid[data-count="1"] {
      max-width: 520px;
      grid-template-columns: minmax(0, 1fr);
    }

    .mood-grid[data-count="2"],
    .mood-grid[data-count="4"] {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mood-tile {
      position: relative;
      min-height: 0;
      aspect-ratio: 4 / 3;
      border: 1px solid var(--line);
      background: var(--sheet-soft);
      background-size: cover;
      background-position: center;
      display: flex;
      align-items: flex-end;
      overflow: hidden;
    }

    .mood-tile-remove {
      position: absolute;
      z-index: 2;
      top: 8px;
      right: 8px;
      background: rgba(255, 253, 252, 0.94);
    }

    .mood-add {
      width: 100%;
      height: 100%;
      border: 0;
      border-radius: 0;
      background: transparent;
      color: var(--muted);
      display: grid;
      place-items: center;
      align-content: center;
      gap: 7px;
      padding: 16px;
      cursor: pointer;
    }

    .mood-add:hover {
      background: var(--blush-soft);
      color: var(--ink);
    }

    .mood-add svg {
      width: 24px;
      height: 24px;
      color: var(--accent-strong);
    }

    .mood-add strong {
      font-size: 13px;
      line-height: 1.2;
    }

    .mood-add span {
      font-size: 11px;
      line-height: 1.2;
    }

    .mood-tile-footer {
      width: 100%;
      min-height: 44px;
      padding: 6px 7px 6px 10px;
      border-top: 1px solid var(--line);
      background: rgba(255, 253, 252, 0.94);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

    .mood-caption-input {
      min-width: 0;
      width: 100%;
      height: 30px;
      min-height: 30px;
      padding: 5px 7px;
      font-size: 12px;
      font-weight: 700;
    }

    .mood-tile-actions {
      display: flex;
      gap: 4px;
      flex: 0 0 auto;
    }

    .icon-button {
      width: 30px;
      height: 30px;
      min-height: 30px;
      border: 1px solid var(--line);
      border-radius: 4px;
      background: var(--sheet);
      color: var(--muted);
      display: grid;
      place-items: center;
      padding: 0;
      cursor: pointer;
    }

    .icon-button:hover {
      border-color: var(--accent-strong);
      color: var(--accent-strong);
    }

    .icon-button.danger:hover {
      color: var(--danger);
      border-color: var(--danger);
    }

    .icon-button:disabled {
      opacity: 0.45;
      cursor: not-allowed;
    }

    .icon-button svg {
      width: 15px;
      height: 15px;
    }

    .calendar-month-controls {
      gap: 0;
      padding: 2px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--sheet);
    }

    .icon-button.calendar-nav-button {
      width: 34px;
      min-width: 34px;
      height: 34px;
      min-height: 34px;
      border: 0;
      border-radius: 6px;
      color: var(--rose-dark);
      background: transparent;
    }

    .calendar-nav-button + .calendar-nav-button {
      border-left: 1px solid var(--line);
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
    }

    .icon-button.calendar-nav-button:hover {
      border-color: transparent;
      color: var(--accent-strong);
      background: var(--blush-soft);
    }

    .icon-button.calendar-nav-button:focus-visible {
      outline: 2px solid var(--accent-strong);
      outline-offset: -2px;
    }

    .icon-button.calendar-nav-button svg {
      width: 18px;
      height: 18px;
      stroke-width: 2;
    }

    .hidden {
      display: none;
    }

    @media (max-width: 1180px) {
      .dashboard-grid,
      .dashboard-stack,
      .theme-board {
        grid-template-columns: 1fr;
      }

      .swatches {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .seating-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    @media (max-width: 1024px) {
      .button,
      .button.compact,
      .nav button,
      .sheet-tab {
        min-height: 44px;
      }

      .brand-mark {
        width: 44px;
        height: 44px;
      }

      .icon-button,
      .calendar-nav-button,
      .profile-position-reset {
        width: 44px;
        height: 44px;
        min-height: 44px;
      }

      input,
      select,
      textarea {
        min-height: 44px;
        font-size: 16px;
      }

      input[type="checkbox"] {
        width: 28px;
        min-height: 28px;
      }

      .profile-position-control input[type="range"] {
        min-height: 44px;
      }

      .mood-caption-input {
        height: 44px;
        min-height: 44px;
        font-size: 16px;
      }

      .wedding-palette-row {
        grid-template-columns: 44px minmax(0, 1fr);
      }

      .wedding-palette-row input[type="color"] {
        width: 44px;
        height: 44px;
        min-height: 44px;
      }

      .calendar div {
        min-height: 44px;
      }

      .table-wrap {
        overflow-x: visible;
      }

      table {
        min-width: 0;
        display: block;
      }

      thead {
        display: none;
      }

      tbody {
        display: grid;
        gap: 10px;
      }

      tr,
      tr:nth-child(even) {
        display: grid;
        gap: 0;
        border: 1px solid var(--line);
        border-radius: 0;
        background: var(--sheet);
        box-shadow: none;
        overflow: hidden;
      }

      td,
      tr:nth-child(even) td,
      tr:hover td {
        display: grid;
        grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
        gap: 10px;
        align-items: center;
        width: 100%;
        min-width: 0;
        border-bottom: 1px solid var(--line);
        background: var(--sheet);
      }

      td:last-child {
        border-bottom: 0;
      }

      td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 11px;
        font-weight: 700;
      }

      .cell-wide,
      .cell-category,
      .cell-date,
      .cell-availability,
      .cell-status,
      .cell-notes,
      .cell-action,
      th.cell-check,
      td.cell-check {
        width: 100%;
        min-width: 0;
        max-width: none;
      }

      th.cell-action,
      td.cell-action {
        position: static;
        width: 100%;
        min-width: 0;
        max-width: none;
        text-align: left;
        box-shadow: none;
      }

      .table-input {
        min-width: 0;
        min-height: 44px;
        border-color: var(--field-border);
        background: var(--field-fill);
      }

      .cell-notes.is-expanded {
        min-width: 0;
      }

      .table-textarea {
        height: 44px;
        min-height: 44px;
        max-height: 44px;
      }

      .note-preview-button {
        height: 44px;
        min-height: 44px;
      }

      .note-expand-button {
        height: 44px;
      }

      .cell-notes.is-expanded .table-textarea {
        height: 132px;
        min-height: 132px;
      }

      .table-input[type="number"] {
        text-align: left;
      }

      input.table-input[type="checkbox"] {
        justify-self: start;
      }

      td.cell-check .table-input {
        margin: 0;
      }
    }

    @media (max-width: 1024px) {
      .workbook {
        grid-template-columns: 1fr;
      }

      .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 70;
        width: min(304px, 86vw);
        border-right: 1px solid var(--line);
        border-bottom: 0;
        overflow-y: auto;
        transform: translateX(-102%);
        transition: transform 180ms ease;
        box-shadow: 4px 0 16px rgba(64, 55, 53, 0.12);
      }

      .sidebar.is-open {
        transform: translateX(0);
      }

      .sidebar-cover {
        min-height: 170px;
        padding-top: 58px;
      }

      .nav {
        display: grid;
      }

      .nav-group-title {
        display: block;
      }

      .nav .nav-group-toggle {
        min-height: 48px;
        margin: 4px 0 0;
        padding: 12px 10px;
        border-top: 1px solid color-mix(in srgb, var(--sidebar-text) 15%, transparent);
        cursor: pointer;
      }

      .nav-group:first-child .nav-group-toggle {
        margin-top: 0;
        padding-top: 12px;
        border-top: 0;
      }

      .nav .nav-group-toggle:hover {
        color: var(--sidebar-text);
        background: color-mix(in srgb, var(--blush-soft) 55%, transparent);
      }

      .nav-group-chevron {
        display: block;
        transition: transform 150ms ease;
      }

      .nav-group.is-open .nav-group-chevron {
        transform: rotate(180deg);
      }

      .nav-group:not(.is-open) .nav-group-items {
        display: none;
      }

      .nav button {
        width: 100%;
        min-width: 0;
      }

      .topbar {
        position: sticky;
      }

      .topbar-inner,
      .main {
        width: min(100% - 20px, 1600px);
      }

      .topbar-inner {
        min-height: 64px;
        padding: 8px 0;
      }

      .brand {
        min-width: 0;
      }

      .mobile-menu-button,
      .mobile-menu-close {
        display: grid;
      }

      .mobile-menu-close {
        position: absolute;
        z-index: 2;
        top: 10px;
        right: 10px;
      }

      .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 65;
        border: 0;
        background: rgba(64, 55, 53, 0.38);
      }

      .mobile-menu-backdrop.is-open {
        display: block;
      }

      body.mobile-menu-open {
        overflow: hidden;
      }

      .toolbar {
        justify-content: flex-end;
      }

      .sheet-tabs {
        display: none;
      }

      .sheet-tab {
        flex-basis: 124px;
        flex-shrink: 0;
        scroll-snap-align: start;
        min-height: 44px;
        padding: 7px 8px;
        font-size: 12px;
      }

      .sheet {
        padding: 14px;
      }

      .sheet-heading {
        align-items: flex-start;
        flex-direction: column;
      }

      .sheet-actions {
        width: 100%;
        justify-content: flex-start;
      }

      .sheet-heading h2 {
        font-size: 32px;
      }

      .setup-grid,
      .two-column,
      .summary-section-grid,
      .swatches,
      .wedding-palette-grid,
      .mood-grid,
      .seating-grid {
        grid-template-columns: 1fr;
      }

      .seating-workspace {
        grid-template-columns: 1fr;
      }

      .seating-guest-tray {
        border-right: 0;
        border-bottom: 1px solid var(--line);
      }

      .unseated-guest-list {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 3px;
      }

      .unseated-guest {
        width: 180px;
        min-width: 180px;
      }

      .seating-floor-scroll {
        padding: 10px;
      }

      .seating-floor {
        width: 680px;
      }

      .summary-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .task-dashboard {
        grid-template-columns: 1fr;
      }

      .task-progress-panel {
        border-right: 0;
        border-bottom: 1px solid var(--line);
      }

      .task-progress-meta {
        grid-template-columns: 1fr;
      }

      .task-progress-meta div,
      .task-progress-meta div:first-child,
      .task-progress-meta div:last-child {
        padding: 9px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
      }

      .task-progress-meta div:last-child {
        border-bottom: 0;
        padding-bottom: 0;
      }

      .task-next-row {
        grid-template-columns: 1fr;
        gap: 4px;
      }

      .task-next-date {
        justify-self: start;
      }

      .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .mood-grid[data-count] {
        max-width: none;
        grid-template-columns: 1fr;
      }

      .budget-overview {
        grid-template-columns: 1fr;
      }

      .budget-hero {
        min-height: auto;
        padding: 18px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
      }

      .budget-hero h3 {
        max-width: none;
        font-size: 38px;
      }

      .budget-breakdown {
        padding: 14px;
      }

      .budget-breakdown-head {
        align-items: flex-start;
        flex-direction: column;
      }

      .budget-bar-row {
        grid-template-columns: 1fr;
        gap: 6px;
        border-bottom: 1px solid var(--line);
        padding-bottom: 12px;
      }

      .budget-bar-row:last-child {
        border-bottom: 0;
        padding-bottom: 0;
      }

      .budget-bar-label strong {
        white-space: normal;
      }

      .budget-bar-value {
        text-align: left;
      }

      .budget-summary-strip {
        grid-template-columns: 1fr;
      }

      .budget-summary-strip div,
      .budget-summary-strip div:last-child {
        border-right: 0;
        border-bottom: 1px solid var(--line);
      }

      .budget-summary-strip div:last-child {
        border-bottom: 0;
      }

      .stat {
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
      }

      .stat:nth-child(2n) {
        border-right: 0;
      }

      .stat:nth-last-child(-n + 2) {
        border-bottom: 0;
      }

      .honeymoon-target {
        grid-template-columns: 1fr;
      }

      .honeymoon-target-field input {
        max-width: none;
      }

      .honeymoon-target-balance {
        border-top: 1px solid var(--line);
        border-left: 0;
      }

      .field.span-2,
      .field.span-4 {
        grid-column: auto;
      }

      .profile-photo-control {
        align-items: center;
      }

      .profile-position-controls {
        grid-template-columns: repeat(3, minmax(0, 1fr)) 32px;
      }

    }

    @media (max-width: 620px) {
      .topbar-inner {
        min-height: 0;
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
      }

      .brand {
        width: 100%;
      }

      .toolbar {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
      }

      .toolbar .button {
        width: 100%;
        min-width: 0;
        padding: 6px 3px;
        gap: 4px;
        font-size: 13px;
        white-space: nowrap;
      }

      .sidebar-cover {
        min-height: 0;
        padding: 58px 16px 16px;
      }

      .seating-planner-toolbar {
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
      }

      .seating-assignment-guide {
        align-items: flex-start;
      }

      .seating-assignment-steps {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
      }

      .interactive-seating-panel,
      .interactive-seating-panel .panel,
      .interactive-seating-panel .panel-body,
      .seating-planner,
      .seating-workspace,
      .seating-floor-scroll {
        width: 100%;
        min-width: 0;
        max-width: 100%;
      }

      .interactive-seating-panel {
        overflow: hidden;
      }

      .seating-planner-actions {
        width: auto;
        display: flex;
        flex: 0 0 auto;
      }

      .seating-planner-actions .button {
        width: auto;
      }

      .seating-floor-scroll {
        display: block;
        max-width: 100%;
        max-height: min(620px, 68svh);
        padding: 10px;
        overflow: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
      }

      .seating-mobile-plan {
        display: none;
      }

      .mobile-manage-guests {
        width: 100%;
        margin-top: 10px;
        display: inline-flex;
      }

      .desktop-seating-instruction {
        display: inline;
      }

      .mobile-seating-instruction {
        display: none;
      }

      .unseated-guest-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
      }

      .seating-guest-tray-head {
        align-items: center;
        flex-direction: row;
      }

      .seating-guest-tray-head .button {
        width: auto;
      }

      .unseated-guest-card {
        width: 280px;
        min-width: 280px;
        grid-template-columns: minmax(0, 1fr) auto;
      }

      .unseated-guest {
        width: 100%;
        min-width: 0;
      }

      .unseated-seat-action {
        width: auto;
      }

      .seating-table-move-hint {
        margin-top: 2px;
        display: block;
        color: var(--sage-dark);
        font-size: 8px;
        font-weight: 700;
      }

      .seating-table-add-guest {
        position: absolute;
        right: 5px;
        bottom: 5px;
        z-index: 5;
        width: 28px;
        height: 28px;
        min-height: 28px;
        border: 1px solid var(--line-strong);
        border-radius: 50%;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--accent-strong);
        font-size: 17px;
        font-weight: 750;
        background: var(--surface);
        box-shadow: 0 2px 6px rgba(64, 55, 53, 0.08);
      }
    }

    @media (max-width: 520px) {
      .topbar-inner,
      .main {
        width: calc(100% - 12px);
      }

      .brand h1 {
        font-size: 17px;
      }

      .sheet-tabs {
        padding-inline: 6px;
      }

      .sheet-tab {
        flex-basis: 112px;
      }

      .sheet {
        padding: 10px;
      }

      .sheet-heading h2 {
        font-size: 28px;
      }

      .sheet-actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
      }

      .summary-picker-heading {
        align-items: flex-start;
        flex-direction: column;
      }

      .summary-picker-actions,
      .summary-picker-actions .button {
        width: 100%;
      }

      .summary-picker-actions .button {
        flex: 1 1 0;
      }

      .summary-options {
        grid-template-columns: 1fr;
        padding-inline: 10px;
      }

      .panel-body {
        padding: 10px;
      }

      .panel-title {
        padding: 10px;
      }

      .budget-hero {
        padding: 16px;
      }

      .budget-hero h3 {
        font-size: 34px;
        overflow-wrap: anywhere;
      }

      .budget-breakdown {
        padding: 12px;
      }

      tbody {
        gap: 12px;
      }

      td,
      tr:nth-child(even) td,
      tr:hover td {
        grid-template-columns: 1fr;
        gap: 6px;
        align-items: start;
        padding: 10px;
      }

      th.cell-check,
      td.cell-check {
        grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
        align-items: center;
      }

      td.cell-action .button {
        width: 100%;
      }

      .table-tools {
        align-items: stretch;
      }

      .table-tools .button {
        width: 100%;
      }

      .profile-photo-control {
        width: 100%;
        align-items: flex-start;
        grid-template-columns: 1fr;
      }

      .profile-photo-editor,
      .profile-position-controls {
        width: 100%;
        max-width: none;
      }

      .profile-photo-editor {
        flex: 0 0 auto;
      }

      .profile-position-controls {
        grid-template-columns: 1fr;
        gap: 7px;
      }

      .profile-position-reset {
        justify-self: start;
      }

      .mood-photo-settings {
        align-items: stretch;
        flex-direction: column;
      }

      .mood-photo-settings .button {
        width: 100%;
      }

      .calendar {
        gap: 2px;
      }

      .calendar-day,
      .calendar-empty {
        height: 44px;
        padding: 4px;
      }

      .calendar .day-name {
        min-height: 32px;
        padding-inline: 1px;
        font-size: 10px;
      }

      .calendar-marker {
        left: 4px;
        bottom: 5px;
        width: 6px;
        height: 6px;
      }

      .calendar-event-count {
        left: 50%;
        bottom: 3px;
      }

      .calendar-key {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
      }

      .calendar-detail-row {
        grid-template-columns: 1fr;
        gap: 8px;
      }

      .calendar-detail-actions {
        justify-content: space-between;
      }

      .calendar-detail-value {
        max-width: none;
        text-align: left;
      }

      .calendar-dialog {
        width: calc(100% - 20px);
        max-height: calc(100svh - 20px);
      }

      .calendar-dialog-header,
      .calendar-dialog-body {
        padding-left: 14px;
        padding-right: 14px;
      }
    }

    /* Phone and tablet shell: one navigation surface, compact actions, and editable cards. */
    @media (max-width: 1024px) {
      body {
        overflow-x: hidden;
      }

      .topbar-inner {
        position: relative;
        width: 100%;
        min-height: 62px;
        padding: 8px 12px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
      }

      .brand {
        min-width: 0;
        gap: 9px;
      }

      .mobile-menu-button,
      .mobile-actions-button {
        width: 42px;
        height: 42px;
        min-height: 42px;
        border-color: var(--border);
        background: var(--surface);
      }

      .mobile-actions-button {
        display: grid;
      }

      .brand-mark {
        width: 40px;
        height: 40px;
      }

      .brand-toast {
        width: 26px;
        height: 26px;
      }

      .brand h1 {
        font-size: 17px;
      }

      .brand p {
        margin-top: 1px;
        font-size: 11px;
      }

      .toolbar {
        position: absolute;
        z-index: 90;
        top: calc(100% - 3px);
        right: 12px;
        width: 196px;
        padding: 7px;
        border: 1px solid var(--border);
        border-radius: 8px;
        display: none;
        grid-template-columns: 1fr;
        gap: 5px;
        background: var(--surface);
        box-shadow: 0 12px 30px rgba(64, 55, 53, 0.16);
      }

      .toolbar.is-open {
        display: grid;
      }

      .toolbar .button {
        width: 100%;
        min-height: 42px;
        padding: 8px 10px;
        justify-content: flex-start;
        font-size: 14px;
      }

      .main {
        width: 100%;
        margin: 0;
      }

      .workbook {
        min-height: calc(100svh - 62px);
        border: 0;
      }

      .sidebar {
        width: min(322px, 88vw);
        border-right-color: var(--border);
        box-shadow: 8px 0 28px rgba(64, 55, 53, 0.16);
      }

      .sidebar-cover {
        min-height: 160px;
        padding: 54px 18px 16px;
      }

      .sidebar-cover h2 {
        font-size: 25px;
      }

      .nav {
        padding: 10px 10px 28px;
      }

      .nav-group-title {
        margin-top: 14px;
      }

      .nav button {
        min-height: 44px;
        font-size: 14px;
      }

      .sheet {
        padding: 16px 12px 32px;
        gap: 14px;
      }

      .sheet-heading {
        gap: 12px;
        padding: 3px 2px 14px;
      }

      .sheet-heading h2 {
        font-size: 30px;
      }

      .sheet-heading p {
        max-width: 42rem;
        margin-top: 4px;
        line-height: 1.45;
      }

      .sheet-actions {
        gap: 7px;
      }

      .sheet-actions .button {
        min-height: 44px;
      }

      .panel {
        border-radius: 8px;
      }

      .panel-title {
        padding: 11px 12px;
      }

      .panel-body {
        padding: 8px;
      }

      .stat-grid {
        border-radius: 8px;
        overflow: hidden;
      }

      .stat {
        min-height: 72px;
        padding: 11px 12px;
      }

      .stat strong {
        font-size: 19px;
      }

      .table-wrap {
        overflow: visible;
      }

      tbody {
        gap: 10px;
      }

      tr,
      tr:nth-child(even) {
        border-color: var(--border);
        border-radius: 8px;
        background: var(--surface);
      }

      td,
      tr:nth-child(even) td,
      tr:hover td {
        grid-template-columns: minmax(84px, 29%) minmax(0, 1fr);
        gap: 9px;
        align-items: center;
        padding: 8px 10px;
        background: var(--surface);
      }

      td::before {
        align-self: center;
        color: var(--text-soft);
        font-size: 11px;
        line-height: 1.25;
      }

      td:first-child {
        padding-top: 10px;
      }

      td:last-child {
        padding-bottom: 10px;
      }

      .table-input,
      .note-preview-button,
      .note-expand-button {
        width: 100%;
        min-width: 0;
      }

      td.cell-action .button {
        width: auto;
        min-width: 96px;
        justify-self: start;
      }

      .table-tools {
        align-items: center;
      }

      .table-tools .button {
        width: auto;
      }
    }

    @media (max-width: 430px) {
      .topbar-inner {
        padding-inline: 8px;
      }

      .brand {
        gap: 7px;
      }

      .brand-mark {
        width: 38px;
        height: 38px;
      }

      .brand h1 {
        font-size: 16px;
      }

      .sheet {
        padding-inline: 10px;
      }

      .sheet-heading h2 {
        font-size: 28px;
      }

      .sheet-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .sheet-actions .button:only-child {
        grid-column: 1 / -1;
      }

      td,
      tr:nth-child(even) td,
      tr:hover td {
        grid-template-columns: 86px minmax(0, 1fr);
      }

      th.cell-check,
      td.cell-check {
        grid-template-columns: 86px minmax(0, 1fr);
      }
    }

    @media (min-width: 621px) and (max-width: 1024px) {
      .sheet {
        padding: 20px 18px 36px;
      }

      .sheet-heading {
        align-items: flex-end;
        flex-direction: row;
      }

      .sheet-actions {
        width: auto;
        justify-content: flex-end;
      }

      .stat-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
      }

      .stat,
      .stat:nth-child(2n),
      .stat:nth-last-child(-n + 2) {
        border-right: 1px solid var(--line);
        border-bottom: 0;
      }

      .stat:last-child {
        border-right: 0;
      }

      tbody tr,
      tbody tr:nth-child(even) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      td,
      tr:nth-child(even) td,
      tr:hover td {
        grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
        border-right: 1px solid var(--line);
      }

      td:nth-child(2n) {
        border-right: 0;
      }

      td.cell-notes,
      td.cell-action {
        grid-column: 1 / -1;
        border-right: 0;
      }

      .setup-grid,
      .two-column,
      .summary-section-grid,
      .swatches,
      .wedding-palette-grid,
      .mood-grid,
      .seating-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .field.span-2 {
        grid-column: span 2;
      }

      .field.span-4 {
        grid-column: 1 / -1;
      }
    }

    /* Keep the desktop workbook table language on touch screens. */
    @media (max-width: 1024px) {
      .table-wrap {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--taupe) transparent;
      }

      table,
      .finance-table {
        width: 100%;
        min-width: 1040px;
        display: table;
        border-collapse: collapse;
        font-size: 13px;
      }

      thead {
        display: table-header-group;
      }

      tbody {
        display: table-row-group;
      }

      tr,
      tr:nth-child(even),
      tbody tr,
      tbody tr:nth-child(even) {
        display: table-row;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
      }

      th,
      td,
      tr:nth-child(even) td,
      tr:hover td {
        display: table-cell;
        width: auto;
        min-width: 112px;
        padding: 7px 8px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
        vertical-align: middle;
        background: var(--surface);
      }

      th {
        background: var(--surface-soft);
      }

      td::before {
        content: none;
        display: none;
      }

      td:first-child,
      td:last-child {
        padding-top: 7px;
        padding-bottom: 7px;
      }

      .cell-wide {
        min-width: 190px;
      }

      .cell-category {
        min-width: 142px;
      }

      .cell-date,
      .cell-availability {
        min-width: 168px;
      }

      .cell-status {
        min-width: 150px;
      }

      .cell-notes,
      td.cell-notes,
      td.cell-action {
        grid-column: auto;
      }

      .cell-notes {
        min-width: 190px;
      }

      th.cell-action,
      td.cell-action {
        position: static;
        width: 96px;
        min-width: 96px;
        max-width: 96px;
        padding-inline: 8px;
        text-align: right;
        background: var(--surface);
        box-shadow: none;
      }

      th.cell-action {
        background: var(--surface-soft);
      }

      tr:hover td.cell-action {
        background: var(--surface-soft);
      }

      th.cell-check,
      td.cell-check {
        display: table-cell;
        width: 58px;
        min-width: 58px;
        max-width: 58px;
        text-align: center;
      }

      .table-input,
      .note-preview-button,
      .note-expand-button {
        min-height: 42px;
      }

      .table-textarea,
      .note-preview-button {
        height: 42px;
        max-height: 42px;
      }

      td.cell-action .button {
        min-width: 0;
      }
    }

    /* Unified responsive workbook layout. Desktop styles above 1180px remain unchanged. */
    @media (max-width: 1180px) {
      body {
        overflow-x: visible;
      }

      .main,
      .workbook,
      .sheet-area,
      .sheet,
      .panel,
      .panel-body,
      .table-wrap {
        min-width: 0;
        max-width: 100%;
      }

      .sheet {
        overflow: visible;
      }

      .table-wrap {
        overflow: visible;
      }

      .table-wrap table,
      .table-wrap table.finance-table,
      .table-wrap table.budget-table,
      .table-wrap table.priorities-table,
      .table-wrap table.venues-table {
        width: 100%;
        min-width: 0;
        table-layout: auto;
        display: block;
        border-collapse: separate;
        border-spacing: 0;
      }

      .table-wrap thead {
        display: none;
      }

      .table-wrap tbody {
        width: 100%;
        display: grid;
        gap: 10px;
      }

      .table-wrap tr,
      .table-wrap tr:nth-child(even) {
        width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border: 1px solid var(--line);
        border-radius: 6px;
        overflow: hidden;
        background: var(--surface);
      }

      .table-wrap td,
      .table-wrap tr:nth-child(even) td,
      .table-wrap tr:hover td,
      .table-wrap td:first-child,
      .table-wrap td:last-child,
      .table-wrap td.cell-check,
      .table-wrap td.cell-action {
        position: static;
        width: auto;
        min-width: 0;
        max-width: none;
        padding: 8px 10px;
        display: block;
        border: 0;
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        text-align: left;
        vertical-align: top;
        background: var(--surface);
        box-shadow: none;
      }

      .table-wrap td:nth-child(3n) {
        border-right: 0;
      }

      .table-wrap td::before {
        content: attr(data-label);
        min-height: 14px;
        margin: 0 0 5px;
        display: block;
        color: var(--muted);
        font-size: 10px;
        font-weight: 700;
        line-height: 1.25;
      }

      .table-wrap td.cell-action {
        grid-column: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
      }

      .table-wrap td.cell-action::before {
        align-self: stretch;
      }

      .table-wrap td.cell-check {
        text-align: left;
      }

      .table-wrap td.cell-check input[type="checkbox"] {
        width: 20px;
        height: 20px;
        min-height: 20px;
      }

      .table-wrap .table-input,
      .table-wrap input,
      .table-wrap select,
      .table-wrap textarea,
      .table-wrap .note-preview-button {
        width: 100%;
        min-width: 0;
        max-width: 100%;
      }

      .table-wrap input[type="date"],
      .table-wrap input[type="time"],
      .table-wrap input[type="number"] {
        min-width: 0;
      }

      .table-wrap td.cell-action .button {
        width: auto;
        min-width: 0;
      }

      .notes-cell-inner {
        width: 100%;
        min-width: 0;
        grid-template-columns: minmax(0, 1fr) 42px;
        align-items: stretch;
      }

      .note-preview-button,
      .note-expand-button {
        height: 42px;
        min-height: 42px;
        max-height: 42px;
      }

      .note-expand-button {
        width: 42px;
        min-width: 42px;
      }

      .setup-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .setup-grid .field.span-4 {
        grid-column: 1 / -1;
      }

      .setup-grid .field.span-2 {
        grid-column: span 1;
      }

      .swatches,
      .wedding-palette-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .stat {
        min-width: 0;
      }

      .stat strong {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere;
      }

      .calendar,
      .deadline-calendar,
      .calendar-detail,
      .calendar-dialog {
        min-width: 0;
        max-width: 100%;
      }

      .calendar-day,
      .day-name {
        min-width: 0;
      }

      .seating-floor-scroll {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow: visible;
      }

      .seating-floor {
        width: 100%;
        min-width: 0;
        max-width: 100%;
      }

      .unseated-guest-list {
        flex-wrap: wrap;
        overflow: visible;
      }

      .unseated-guest-card,
      .unseated-guest {
        min-width: 0;
      }
    }

    @media (max-width: 767px) {
      .table-wrap tr,
      .table-wrap tr:nth-child(even) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .table-wrap td,
      .table-wrap tr:nth-child(even) td,
      .table-wrap tr:hover td,
      .table-wrap td:first-child,
      .table-wrap td:last-child,
      .table-wrap td.cell-check,
      .table-wrap td.cell-action {
        border-right: 1px solid var(--line);
      }

      .table-wrap td:nth-child(3n) {
        border-right: 1px solid var(--line);
      }

      .table-wrap td:nth-child(2n) {
        border-right: 0;
      }

      .table-wrap td.cell-notes,
      .table-wrap td.cell-action {
        grid-column: 1 / -1;
        border-right: 0;
      }

      .table-wrap td.cell-action {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
      }

      .table-wrap td.cell-action::before {
        width: 100%;
        margin-bottom: 0;
      }

      .setup-grid,
      .two-column,
      .summary-section-grid,
      .mood-grid,
      .seating-grid {
        grid-template-columns: 1fr;
      }

      .setup-grid .field.span-2,
      .setup-grid .field.span-4 {
        grid-column: auto;
      }

      .swatches,
      .wedding-palette-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .seating-floor-scroll {
        padding: 8px;
        max-height: none;
        overflow: visible;
      }

      .seating-floor {
        height: clamp(430px, 126vw, 540px);
      }

      .seating-table-node {
        width: 116px;
        height: 116px;
      }

      .seating-table-core {
        inset: 29px;
        padding: 4px;
      }

      .seating-table-core strong {
        font-size: 10px;
      }

      .seating-table-core span {
        font-size: 8px;
      }

      .seating-guest-seat {
        width: 28px;
        height: 28px;
        font-size: 8px;
        transform: translate(-50%, -50%) rotate(var(--seat-angle)) translateY(-46px) rotate(var(--seat-counter-angle));
      }

      .seating-table-remove {
        top: 0;
        right: 0;
        width: 24px;
        height: 24px;
        font-size: 16px;
      }

      .seating-dance-floor {
        width: 100px;
        height: 62px;
        font-size: 10px;
      }

      .unseated-guest-card {
        width: 100%;
      }

      .unseated-guest {
        width: 100%;
      }

      .calendar {
        gap: 2px;
      }

      .calendar-day,
      .day-name {
        padding-inline: 3px;
      }
    }

    @media (min-width: 768px) and (max-width: 1180px) {
      .seating-table-node {
        width: 150px;
        height: 150px;
      }

      .seating-table-core {
        inset: 37px;
      }

      .seating-guest-seat {
        width: 34px;
        height: 34px;
        transform: translate(-50%, -50%) rotate(var(--seat-angle)) translateY(-60px) rotate(var(--seat-counter-angle));
      }
    }

    .mobile-row-toggle {
      display: none;
    }

    /* Mobile and tablet interaction layer. Desktop presentation is intentionally untouched. */
    @media (max-width: 1024px) {
      .button,
      .compact,
      .icon-button,
      .nav-item,
      .mobile-menu-button,
      .mobile-menu-close,
      .mobile-actions-button,
      .calendar-shift,
      .note-expand-button {
        min-height: 44px;
      }

      input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
      select,
      textarea {
        min-height: 44px;
        font-size: 16px;
      }

      .table-wrap .table-input,
      .table-wrap select.table-input,
      .table-wrap input.table-input,
      .table-wrap textarea.table-input {
        min-height: 44px;
      }

      .table-wrap tbody td {
        width: auto !important;
        min-width: 0 !important;
      }

      .brand-mark,
      .icon-button,
      .note-expand-button {
        min-width: 44px;
      }

      .notes-cell-inner {
        grid-template-columns: minmax(0, 1fr) 44px;
        align-items: stretch;
      }

      .note-preview-button,
      .note-expand-button {
        height: 44px;
        min-height: 44px;
        max-height: 44px;
      }

      .note-expand-button {
        width: 44px;
      }

      .topbar .brand-mark {
        width: 44px;
        height: 44px;
        min-height: 44px;
      }

      .table-wrap tr:not(.is-mobile-expanded) > td.mobile-secondary-field {
        display: none;
      }

      .table-wrap td.cell-action {
        grid-column: 1 / -1;
        min-height: 64px;
        padding: 9px 10px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        border-right: 0;
      }

      .table-wrap td.cell-action::before {
        display: none;
      }

      .table-wrap td.cell-action .button {
        min-height: 44px;
        padding: 9px 13px;
      }

      .mobile-row-toggle {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: var(--ink);
        background: var(--surface);
        border-color: var(--line-strong);
      }

      .mobile-row-toggle::after {
        content: "+";
        width: 16px;
        display: inline-block;
        font-size: 18px;
        line-height: 1;
        text-align: center;
      }

      .is-mobile-expanded .mobile-row-toggle::after {
        content: "-";
      }

      #budgetDashboard:not(.is-mobile-open) {
        display: none;
      }

      .table-wrap td.cell-check {
        min-height: 70px;
      }

      .table-wrap td.cell-check input[type="checkbox"] {
        width: 24px;
        height: 24px;
      }

      .checkbox-touch {
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
      }

      .table-tools,
      .sheet-actions {
        gap: 12px;
      }

      .table-tools .button,
      .sheet-actions .button,
      .planner-toolbar .button {
        min-height: 44px;
      }

      dialog.note-dialog,
      dialog.calendar-dialog,
      dialog.seating-guest-dialog {
        width: min(620px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
        margin: auto;
      }

      dialog .button,
      dialog button {
        min-height: 44px;
      }
    }

    @media (max-width: 767px) {
      .table-wrap tr:not(.is-mobile-expanded) > td.mobile-last-primary {
        grid-column: 1 / -1;
        border-right: 0;
      }
    }

    @media (min-width: 600px) and (max-width: 1024px) {
      .table-wrap tr,
      .table-wrap tr:nth-child(even) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .table-wrap tr:not(.is-mobile-expanded) > td.mobile-last-primary {
        grid-column: auto;
      }

      .setup-grid,
      .two-column,
      .summary-section-grid,
      .seating-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .mood-grid[data-count] {
        max-width: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .swatches,
      .wedding-palette-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    .mobile-bottom-nav {
      display: none;
    }

    /* Mobile app shell. Desktop presentation remains unchanged. */
    @media (max-width: 1024px) {
      :root {
        --mobile-nav-height: 70px;
      }

      body {
        padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
        background: var(--surface);
      }

      .topbar {
        border-bottom-color: color-mix(in srgb, var(--border) 78%, transparent);
        background: color-mix(in srgb, var(--surface) 96%, transparent);
      }

      .topbar-inner {
        min-height: 58px;
      }

      .mobile-menu-button {
        display: none;
      }

      .brand h1 {
        font-size: 16px;
        line-height: 1.15;
      }

      .brand p {
        font-size: 10px;
      }

      .topbar .brand-mark {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
      }

      .brand-toast {
        width: 24px;
        height: 24px;
      }

      .mobile-actions-button {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
      }

      .workbook {
        min-height: calc(100svh - 58px - var(--mobile-nav-height));
      }

      .sheet {
        padding-bottom: 24px;
      }

      .sheet-heading {
        padding-top: 2px;
      }

      .sheet-heading h2 {
        font-size: clamp(27px, 7.5vw, 31px);
        line-height: 1.05;
      }

      .sheet-heading p {
        font-size: 13px;
      }

      .budget-heading-add {
        display: none;
      }

      .budget-table td:has(input.table-input[type="date"]) {
        min-width: 0;
        overflow: hidden;
      }

      .budget-table input.table-input[type="date"] {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: 44px;
        min-height: 44px;
        padding: 7px 11px;
        line-height: 1.35;
        text-align: left;
      }

      .budget-table input.table-input[type="date"]::-webkit-date-and-time-value,
      .budget-table input.table-input[type="date"]::-webkit-datetime-edit {
        min-width: 0;
        margin: 0;
        padding: 0;
        text-align: left;
      }

      .budget-table input.table-input[type="date"]::-webkit-calendar-picker-indicator {
        flex: 0 0 auto;
        margin: 0 0 0 8px;
        padding: 2px;
      }

      .mobile-bottom-nav {
        position: fixed;
        z-index: 60;
        right: 0;
        bottom: 0;
        left: 0;
        height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
        padding: 6px max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left));
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: stretch;
        border-top: 1px solid var(--border);
        background: color-mix(in srgb, var(--surface) 97%, transparent);
        box-shadow: 0 -3px 12px rgba(64, 55, 53, 0.06);
      }

      .mobile-bottom-nav button {
        min-width: 0;
        min-height: 56px;
        padding: 5px 2px 4px;
        border: 0;
        border-radius: 7px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: var(--text-soft);
        background: transparent;
        font: inherit;
        font-size: 10px;
        line-height: 1;
        cursor: pointer;
      }

      .mobile-bottom-nav button.is-active {
        color: var(--rose-dark);
        background: var(--sidebar-active);
        font-weight: 700;
      }

      .mobile-bottom-nav .nav-icon,
      .mobile-bottom-nav .mobile-more-icon {
        width: 21px;
        height: 21px;
        flex: 0 0 auto;
        stroke-width: 1.8;
      }

      .mobile-bottom-nav .mobile-more-icon {
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
      }

      .mobile-bottom-nav button:focus-visible {
        outline: 2px solid var(--rose);
        outline-offset: -2px;
      }

      .sidebar {
        padding-bottom: calc(18px + env(safe-area-inset-bottom));
      }

      .mobile-menu-backdrop {
        bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
      }

      .table-wrap tr,
      .table-wrap tr:nth-child(even) {
        border-radius: 7px;
      }

      .mobile-row-toggle {
        border-color: var(--border);
        background: var(--surface-soft);
      }
    }

    @media (max-width: 599px) {
      .sheet-actions {
        width: 100%;
      }

      .sheet-actions .button {
        width: 100%;
      }

      .panel-body {
        padding: 7px;
      }

      .profile-photo-control {
        width: 100%;
        display: grid;
        grid-template-columns: 84px minmax(0, 1fr);
        align-items: start;
      }

      .profile-photo-editor {
        width: auto;
        min-width: 0;
      }

      .profile-photo-actions {
        width: 100%;
      }

      .profile-photo-actions .button {
        max-width: 100%;
      }

      .table-wrap tr,
      .table-wrap tr:nth-child(even) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .table-wrap tr:not(.is-mobile-expanded) > td.mobile-primary-field:nth-of-type(3) {
        grid-column: 1 / -1;
        border-right: 0;
      }

      .table-wrap td.cell-action {
        min-height: 56px;
      }

      .table-wrap td.cell-action .button {
        min-height: 42px;
      }

      .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .stat,
      .stat:nth-child(2n),
      .stat:nth-last-child(-n + 2) {
        min-height: 68px;
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
      }

      .stat:nth-child(2n) {
        border-right: 0;
      }

      .stat:nth-last-child(-n + 2) {
        border-bottom: 0;
      }
    }

    /* Phone records read like the compact lists in the mobile planner reference. */
    .mobile-record-summary {
      display: none;
    }

    @media (max-width: 1024px) {
      .mobile-bottom-nav {
        min-height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
      }

      .mobile-bottom-nav button {
        overflow: visible;
        white-space: nowrap;
      }

      .mobile-bottom-nav button > span:last-child {
        max-width: 100%;
        overflow: visible;
        text-overflow: clip;
      }

      .mobile-bottom-nav button[data-mobile-add] {
        position: relative;
        color: #fff;
      }

      .mobile-add-circle {
        width: 46px;
        height: 46px;
        margin-top: -13px;
        border: 4px solid var(--surface);
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: #fff;
        background: var(--rose);
        box-shadow: 0 3px 9px rgba(93, 65, 69, 0.18);
      }

      .mobile-add-circle svg {
        width: 21px;
        height: 21px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
      }

      .mobile-bottom-nav button[data-mobile-add]:active .mobile-add-circle {
        background: var(--rose-dark);
      }

      .table-wrap td,
      .table-wrap input,
      .table-wrap select,
      .table-wrap textarea,
      .table-wrap .note-preview-button {
        overflow: visible;
        text-overflow: clip;
      }

      .table-wrap input,
      .table-wrap select,
      .table-wrap textarea,
      .table-wrap .note-preview-button {
        white-space: normal;
      }

      select.table-input option {
        color: #403735;
        background: #FFFFFF;
        font-weight: 500;
      }

      select.table-input[data-field="status"],
      select[data-mobile-select-source] {
        display: none !important;
      }

      .mobile-status-trigger {
        width: 100%;
        min-height: 44px;
        padding: 9px 11px;
        border: 1px solid color-mix(in srgb, var(--taupe) 28%, transparent);
        border-radius: 7px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        color: var(--text-secondary);
        background: color-mix(in srgb, var(--taupe) 13%, var(--surface));
        font: inherit;
        font-weight: 500;
        line-height: 1.25;
        text-align: left;
        cursor: pointer;
      }

      .mobile-status-trigger svg {
        width: 17px;
        height: 17px;
        flex: 0 0 auto;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: transform 140ms ease;
      }

      .mobile-status-trigger[aria-expanded="true"] svg {
        transform: rotate(180deg);
      }

      .mobile-status-trigger:focus-visible {
        outline: 0;
        border-color: currentColor;
        box-shadow: 0 0 0 2px var(--focus);
      }

      .mobile-quick-status-trigger {
        justify-content: center;
        cursor: pointer;
      }

      .mobile-quick-status-trigger > span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .mobile-status-trigger[data-status-tone="researching"],
      .mobile-status-trigger[data-status-tone="not-started"],
      .mobile-status-trigger[data-status-tone="maybe"],
      .mobile-status-trigger[data-status-tone="draft"],
      .mobile-status-trigger[data-status-tone="planning"] {
        border-color: var(--status-neutral-border);
        color: var(--status-neutral-text);
        background: var(--status-neutral-bg);
      }

      .mobile-status-trigger[data-status-tone="in-progress"] {
        border-color: var(--status-progress-border);
        color: var(--status-progress-text);
        background: var(--status-progress-bg);
      }

      .mobile-status-trigger[data-status-tone="to-confirm"] {
        border-color: var(--status-pending-border);
        color: var(--status-pending-text);
        background: var(--status-pending-bg);
      }

      .mobile-status-trigger[data-status-tone="tasting"] {
        border-color: var(--status-tasting-border);
        color: var(--status-tasting-text);
        background: var(--status-tasting-bg);
      }

      .mobile-status-trigger[data-status-tone="shortlisted"] {
        border-color: var(--status-shortlist-border);
        color: var(--status-shortlist-text);
        background: var(--status-shortlist-bg);
      }

      .mobile-status-trigger[data-status-tone="booked"] {
        border-color: var(--status-booked-border);
        color: var(--status-booked-text);
        background: var(--status-booked-bg);
      }

      .mobile-status-trigger[data-status-tone="selected"] {
        border-color: var(--status-selected-border);
        color: var(--status-selected-text);
        background: var(--status-selected-bg);
      }

      .mobile-status-trigger[data-status-tone="quote"] {
        border-color: var(--status-quote-border);
        color: var(--status-quote-text);
        background: var(--status-quote-bg);
      }

      .mobile-status-trigger[data-status-tone="backup"] {
        border-color: var(--status-backup-border);
        color: var(--status-backup-text);
        background: var(--status-backup-bg);
      }

      .mobile-status-trigger[data-status-tone="confirmed"],
      .mobile-status-trigger[data-status-tone="approved"],
      .mobile-status-trigger[data-status-tone="chosen"],
      .mobile-status-trigger[data-status-tone="final"],
      .mobile-status-trigger[data-status-tone="paid"],
      .mobile-status-trigger[data-status-tone="done"],
      .mobile-status-trigger[data-status-tone="complete"] {
        border-color: color-mix(in srgb, var(--sage) 28%, transparent);
        color: var(--sage-dark);
        background: color-mix(in srgb, var(--sage-soft) 72%, var(--surface));
      }

      .appointment-mobile-card .mobile-status-trigger[data-status-tone="confirmed"] {
        border-color: #CBB7D8;
        color: #71527F;
        background: #EEE5F3;
      }

      .mobile-status-trigger[data-status-tone="cancelled"],
      .mobile-status-trigger[data-status-tone="canceled"],
      .mobile-status-trigger[data-status-tone="declined"],
      .mobile-status-trigger[data-status-tone="no"],
      .mobile-status-trigger[data-status-tone="do-not-play"] {
        border-color: color-mix(in srgb, var(--danger) 22%, transparent);
        color: var(--danger);
        background: color-mix(in srgb, var(--blush-soft) 52%, var(--surface));
      }

      .mobile-status-trigger[data-select-tone="low"] {
        border-color: color-mix(in srgb, var(--taupe) 28%, transparent);
        color: var(--muted);
        background: color-mix(in srgb, var(--taupe) 13%, var(--surface));
      }

      .mobile-status-trigger[data-select-tone="idea"] {
        border-color: var(--status-idea-border);
        color: var(--status-idea-text);
        background: var(--status-idea-bg);
      }

      .mobile-status-trigger[data-select-tone="normal"],
      .mobile-status-trigger[data-select-tone="nice-to-have"],
      .mobile-status-trigger[data-select-tone="rsvp-pending"] {
        border-color: color-mix(in srgb, #C6A95E 30%, transparent);
        color: #7A6531;
        background: #F4EBCF;
      }

      .mobile-status-trigger[data-select-tone="deciding"] {
        border-color: var(--status-deciding-border);
        color: var(--status-deciding-text);
        background: var(--status-deciding-bg);
      }

      .mobile-status-trigger[data-select-tone="high"],
      .mobile-status-trigger[data-select-tone="must-play"] {
        border-color: color-mix(in srgb, var(--clay) 26%, transparent);
        color: var(--accent-strong);
        background: color-mix(in srgb, var(--blush) 58%, var(--surface));
      }

      .mobile-status-trigger[data-select-tone="decided"],
      .mobile-status-trigger[data-select-tone="rsvp-yes"],
      .mobile-status-trigger[data-select-tone="binary-yes"] {
        border-color: color-mix(in srgb, var(--sage) 28%, transparent);
        color: var(--sage-dark);
        background: color-mix(in srgb, var(--sage-soft) 72%, var(--surface));
      }

      .mobile-status-trigger[data-select-tone="do-not-play"],
      .mobile-status-trigger[data-select-tone="rsvp-no"],
      .mobile-status-trigger[data-select-tone="binary-no"] {
        border-color: color-mix(in srgb, var(--rose) 24%, transparent);
        color: var(--rose-dark);
        background: color-mix(in srgb, var(--blush) 58%, var(--surface));
      }

      .mobile-status-menu {
        position: fixed;
        z-index: 10000;
        padding: 4px;
        border: 1px solid rgba(151, 132, 126, 0.32);
        border-radius: 8px;
        display: grid;
        gap: 0;
        background: rgba(255, 251, 246, 0.86);
        -webkit-backdrop-filter: blur(18px) saturate(145%);
        backdrop-filter: blur(18px) saturate(145%);
        box-shadow: 0 5px 16px rgba(64, 55, 53, 0.18);
        max-height: calc(100vh - 20px);
        overflow-y: auto;
      }

      .mobile-status-option {
        width: 100%;
        min-height: 36px;
        padding: 6px 8px 6px 6px;
        border: 0;
        border-radius: 5px;
        display: grid;
        grid-template-columns: 16px minmax(0, 1fr);
        align-items: center;
        gap: 4px;
        color: #403735;
        background: transparent;
        font: inherit;
        font-weight: 500;
        line-height: 1.2;
        text-align: left;
        cursor: pointer;
      }

      .mobile-status-option svg {
        width: 14px;
        height: 14px;
        visibility: hidden;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
      }

      .mobile-status-option[aria-selected="true"],
      .mobile-status-option:focus-visible {
        outline: 0;
        color: #FFFFFF;
        background: #4B98EF;
      }

      .mobile-status-option[aria-selected="true"] svg {
        visibility: visible;
      }

    }

    @media (max-width: 1024px) {
      :root {
        --mobile-nav-height: 74px;
      }

      .sheet {
        padding: 12px 10px 22px;
        gap: 12px;
      }

      .sheet-heading {
        padding: 2px 1px 12px;
      }

      .sheet-heading h2 {
        font-size: 27px;
        line-height: 1.1;
      }

      .sheet-heading p {
        max-width: 100%;
        line-height: 1.4;
        overflow-wrap: anywhere;
      }

      .panel-title {
        padding: 10px 11px;
      }

      .panel-title h3,
      .panel-title strong {
        overflow-wrap: anywhere;
      }

      .wedding-palette-grid {
        grid-template-columns: 1fr;
      }

      .wedding-palette-item {
        grid-template-columns: 72px minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: center;
        gap: 5px 10px;
      }

      .wedding-palette-chip {
        height: 62px;
        grid-column: 1;
        grid-row: 1 / 3;
      }

      .wedding-palette-row {
        grid-column: 2;
        grid-row: 1;
      }

      .wedding-palette-value {
        grid-column: 2;
        grid-row: 2;
      }

      .table-wrap tbody {
        gap: 8px;
      }

      .table-wrap tr,
      .table-wrap tr:nth-child(even) {
        grid-template-columns: 1fr;
      }

      .table-wrap tr:not(.is-mobile-expanded) > td.mobile-primary-field,
      .table-wrap tr:not(.is-mobile-expanded) > td.mobile-secondary-field {
        display: none;
      }

      .table-wrap tr:not(.is-mobile-expanded) > td.mobile-record-summary {
        grid-column: 1 / -1;
        min-height: 70px;
        padding: 12px 12px 10px;
        border: 0;
        border-bottom: 1px solid var(--line);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        background: var(--surface);
      }

      .mobile-record-menu-button {
        width: 42px;
        height: 42px;
        min-width: 42px;
        padding: 0;
        border: 0;
        border-radius: 6px;
        display: grid;
        place-items: center;
        color: var(--text-soft);
        background: transparent;
        cursor: pointer;
      }

      .mobile-record-menu-button:hover,
      .mobile-record-menu-button:focus-visible,
      .mobile-record-menu-button[aria-expanded="true"] {
        color: var(--rose-dark);
        background: var(--blush-soft);
      }

      .mobile-record-menu-button svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: transform 150ms ease;
      }

      .mobile-record-menu-button[aria-expanded="true"] svg {
        transform: rotate(180deg);
      }

      .table-wrap tr.is-mobile-expanded > td.mobile-record-summary {
        display: none;
      }

      .mobile-record-copy {
        min-width: 0;
        flex: 1 1 auto;
        display: grid;
        gap: 4px;
      }

      .mobile-record-avatar {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: var(--rose-dark);
        background: var(--blush);
        font-size: 11px;
        font-weight: 800;
      }

      .mobile-record-copy strong {
        color: var(--ink);
        font-size: 15px;
        font-weight: 700;
        line-height: 1.25;
        overflow-wrap: anywhere;
      }

      .mobile-record-copy span {
        color: var(--text-soft);
        font-size: 12px;
        line-height: 1.35;
        overflow-wrap: anywhere;
      }

      .mobile-record-status {
        max-width: 42%;
        padding: 5px 8px;
        border: 1px solid var(--line);
        border-radius: 6px;
        flex: 0 0 auto;
        color: var(--text-secondary);
        background: var(--surface-soft);
        font-size: 11px;
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
        overflow-wrap: anywhere;
      }

      .mobile-record-summary .mobile-record-status {
        margin-left: auto;
      }

      .mobile-record-status[data-tone="researching"],
      .mobile-record-status[data-tone="not-started"],
      .mobile-record-status[data-tone="maybe"],
      .mobile-record-status[data-tone="draft"],
      .mobile-record-status[data-tone="planning"] {
        border-color: var(--status-neutral-border);
        color: var(--status-neutral-text);
        background: var(--status-neutral-bg);
      }

      .mobile-record-status[data-tone="in-progress"] {
        border-color: var(--status-progress-border);
        color: var(--status-progress-text);
        background: var(--status-progress-bg);
      }

      .mobile-record-status[data-tone="to-confirm"] {
        border-color: var(--status-pending-border);
        color: var(--status-pending-text);
        background: var(--status-pending-bg);
      }

      .mobile-record-status[data-tone="tasting"] {
        border-color: var(--status-tasting-border);
        color: var(--status-tasting-text);
        background: var(--status-tasting-bg);
      }

      .mobile-record-status[data-tone="shortlisted"] {
        border-color: var(--status-shortlist-border);
        color: var(--status-shortlist-text);
        background: var(--status-shortlist-bg);
      }

      .mobile-record-status[data-tone="booked"] {
        border-color: var(--status-booked-border);
        color: var(--status-booked-text);
        background: var(--status-booked-bg);
      }

      .mobile-record-status[data-tone="normal"],
      .mobile-record-status[data-tone="deciding"],
      .mobile-record-status[data-tone="rsvp-pending"] {
        border-color: var(--status-booked-border);
        color: var(--status-booked-text);
        background: var(--status-booked-bg);
      }

      .mobile-record-status[data-tone="paid"],
      .mobile-record-status[data-tone="done"],
      .mobile-record-status[data-tone="complete"],
      .mobile-record-status[data-tone="confirmed"],
      .mobile-record-status[data-tone="approved"],
      .mobile-record-status[data-tone="chosen"],
      .mobile-record-status[data-tone="final"],
      .mobile-record-status[data-tone="decided"],
      .mobile-record-status[data-tone="rsvp-yes"],
      .mobile-record-status[data-tone="binary-yes"] {
        border-color: color-mix(in srgb, var(--sage) 28%, transparent);
        color: var(--sage-dark);
        background: color-mix(in srgb, var(--sage-soft) 72%, var(--surface));
      }

      .mobile-record-status[data-tone="high"],
      .mobile-record-status[data-tone="must-play"],
      .mobile-record-status[data-tone="rsvp-no"],
      .mobile-record-status[data-tone="binary-no"] {
        border-color: color-mix(in srgb, var(--rose) 28%, transparent);
        color: var(--rose-dark);
        background: var(--blush);
      }

      .mobile-record-status[data-tone="no"],
      .mobile-record-status[data-tone="cancelled"],
      .mobile-record-status[data-tone="canceled"],
      .mobile-record-status[data-tone="declined"],
      .mobile-record-status[data-tone="do-not-play"] {
        border-color: color-mix(in srgb, var(--danger) 22%, transparent);
        color: var(--danger);
        background: color-mix(in srgb, var(--blush-soft) 52%, var(--surface));
      }

      .mobile-record-status[data-tone="quote"] {
        border-color: var(--status-quote-border);
        color: var(--status-quote-text);
        background: var(--status-quote-bg);
      }

      .mobile-record-status[data-tone="selected"] {
        border-color: var(--status-selected-border);
        color: var(--status-selected-text);
        background: var(--status-selected-bg);
      }

      .mobile-record-status[data-tone="backup"] {
        border-color: var(--status-backup-border);
        color: var(--status-backup-text);
        background: var(--status-backup-bg);
      }

      .appointment-mobile-summary {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border: 1px solid var(--line);
        border-radius: 8px;
        overflow: hidden;
        background: var(--surface);
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
      }

      .appointment-mobile-stat {
        min-width: 0;
        min-height: 78px;
        padding: 12px;
        display: block;
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        text-align: left;
      }

      .appointment-mobile-stat:nth-child(2n) {
        border-right: 0;
      }

      .appointment-mobile-stat:nth-last-child(-n + 2) {
        border-bottom: 0;
      }

      .appointment-mobile-stat-copy {
        min-width: 0;
      }

      .appointment-mobile-stat span,
      .appointment-mobile-stat strong {
        display: block;
      }

      .appointment-mobile-stat span {
        color: var(--muted);
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
      }

      .appointment-mobile-stat strong {
        margin-top: 7px;
        font-size: 20px;
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .appointment-mobile-section {
        min-width: 0;
      }

      .appointment-mobile-section > h3 {
        margin: 0 0 8px;
        font-size: 16px;
        line-height: 1.25;
      }

      .appointment-mobile-list {
        display: grid;
        gap: 8px;
      }

      .appointment-mobile-card {
        min-width: 0;
        border: 1px solid var(--line);
        border-radius: 8px;
        overflow: hidden;
        background: var(--surface);
      }

      .appointment-mobile-card-summary {
        min-height: 94px;
        padding: 10px 9px 10px 12px;
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr) 82px 34px;
        align-items: center;
        gap: 8px;
      }

      .appointment-mobile-type-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border: 1px solid color-mix(in srgb, var(--rose) 28%, var(--line));
        border-radius: 50%;
        display: inline-grid;
        place-items: center;
        color: var(--rose-dark);
        background: var(--blush-soft);
      }

      .appointment-mobile-type-icon svg {
        width: 19px;
        height: 19px;
      }

      .appointment-mobile-copy {
        min-width: 0;
        padding: 0;
        border: 0;
        color: var(--text);
        background: transparent;
        text-align: left;
      }

      .appointment-mobile-copy strong,
      .appointment-mobile-copy span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .appointment-mobile-copy strong {
        font-size: 14px;
        line-height: 1.25;
      }

      .appointment-mobile-copy span {
        margin-top: 3px;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.25;
      }

      .appointment-mobile-copy .appointment-mobile-location {
        display: flex;
        align-items: center;
        gap: 4px;
      }

      .appointment-mobile-location svg {
        width: 13px;
        height: 13px;
        flex: 0 0 auto;
      }

      .appointment-mobile-status {
        min-width: 82px;
        max-width: 82px;
        min-height: 28px;
        padding: 5px 7px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--line);
        border-radius: 6px;
        font-size: 11px;
        font-weight: 650;
        line-height: 1.1;
        text-align: center;
      }

      .appointment-mobile-status[data-tone="confirmed"] {
        border-color: #CBB7D8;
        color: #71527F;
        background: #EEE5F3;
      }

      .appointment-mobile-status[data-tone="complete"] {
        border-color: color-mix(in srgb, var(--sage) 28%, transparent);
        color: var(--sage-dark);
        background: var(--sage-soft);
      }

      .appointment-mobile-status[data-tone="booked"] {
        border-color: var(--status-booked-border);
        color: var(--status-booked-text);
        background: var(--status-booked-bg);
      }

      .appointment-mobile-status[data-tone="to-confirm"] {
        border-color: var(--status-pending-border);
        color: var(--status-pending-text);
        background: var(--status-pending-bg);
      }

      .appointment-mobile-status[data-tone="cancelled"] {
        border-color: color-mix(in srgb, var(--danger) 22%, transparent);
        color: var(--danger);
        background: color-mix(in srgb, var(--blush-soft) 52%, var(--surface));
      }

      .appointment-mobile-toggle {
        width: 34px;
        height: 44px;
        padding: 0;
        display: grid;
        place-items: center;
        border: 0;
        color: var(--text);
        background: transparent;
      }

      .appointment-mobile-toggle svg {
        width: 18px;
        height: 18px;
        transition: transform 140ms ease;
      }

      .appointment-mobile-card.is-open .appointment-mobile-toggle svg {
        transform: rotate(180deg);
      }

      .appointment-mobile-editor {
        padding: 10px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        border-top: 1px solid var(--line);
        background: var(--surface);
      }

      .appointment-mobile-details {
        padding: 12px;
        display: grid;
        gap: 10px;
        border-top: 1px solid var(--line);
        background: var(--surface);
      }

      .appointment-mobile-detail-row {
        min-width: 0;
        display: grid;
        grid-template-columns: 22px 72px minmax(0, 1fr);
        align-items: start;
        gap: 7px;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.35;
      }

      .appointment-mobile-detail-row svg {
        width: 18px;
        height: 18px;
        color: var(--text);
      }

      .appointment-mobile-detail-row strong {
        min-width: 0;
        color: var(--text);
        font-weight: 500;
        overflow-wrap: anywhere;
      }

      .appointment-mobile-field {
        min-width: 0;
        display: grid;
        gap: 5px;
      }

      .appointment-mobile-field.is-wide {
        grid-column: 1 / -1;
      }

      .appointment-mobile-field > span {
        display: flex;
        align-items: center;
        gap: 5px;
        color: var(--muted);
        font-size: 11px;
        font-weight: 650;
      }

      .appointment-mobile-field > span svg {
        width: 14px;
        height: 14px;
      }

      .appointment-mobile-field .table-input,
      .appointment-mobile-field .mobile-status-trigger {
        width: 100%;
        min-width: 0;
        min-height: 44px;
      }

      .appointment-mobile-field textarea.table-input {
        min-height: 72px;
        resize: vertical;
      }

      .appointment-mobile-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }

      .appointment-mobile-actions .button {
        width: 100%;
        min-height: 44px;
      }

      .appointment-mobile-count {
        margin: 12px 4px 0;
        color: var(--muted);
        font-size: 12px;
        text-align: right;
      }

      .sheet-heading:has([data-add="appointments"]) .sheet-actions,
      .sheet-heading:has([data-add="appointments"]) .sheet-actions .button {
        width: 100%;
      }

      .appointment-table-tools [data-add="appointments"] {
        display: none;
      }

      .table-tools [data-add="venues"] {
        display: none;
      }

      .sheet-heading:has([data-add="vendors"]) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 10px;
      }

      .sheet-heading:has([data-add="vendors"]) .sheet-actions {
        width: auto;
        margin-left: auto;
      }

      .sheet-heading:has([data-add="vendors"]) .sheet-actions .button {
        width: auto;
        min-width: 0;
        min-height: 40px;
        padding: 8px 11px;
        white-space: nowrap;
      }

      .vendor-hub {
        gap: 12px;
      }

      .vendor-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .vendor-stat-grid .stat,
      .vendor-stat-grid .stat:nth-child(2n),
      .vendor-stat-grid .stat:nth-last-child(-n + 2) {
        min-height: 76px;
        border-right: 1px solid var(--line);
        border-bottom: 0;
      }

      .vendor-stat-grid .stat:last-child {
        border-right: 0;
      }

      .vendor-stat-grid .stat strong {
        font-size: 17px;
        white-space: nowrap;
        overflow: hidden;
        overflow-wrap: normal;
        text-overflow: ellipsis;
      }

      .vendor-hub .panel-body {
        padding: 7px;
      }

      .vendor-hub .table-wrap tbody {
        gap: 8px;
      }

      .vendor-hub .table-wrap tr:not(.is-mobile-expanded) > td.mobile-record-summary {
        min-height: 82px;
        padding: 11px 8px 11px 10px;
        border: 1px solid var(--line);
        border-radius: 7px;
      }

      .vendor-hub .mobile-record-copy {
        gap: 3px;
      }

      .vendor-hub .mobile-record-copy strong {
        font-size: 14px;
      }

      .vendor-hub .mobile-record-status {
        min-width: 64px;
        max-width: 76px;
      }

      .vendor-hub .mobile-record-menu-button {
        width: 36px;
        min-width: 36px;
      }

      .vendor-hub .vendor-category-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
      }

      .vendor-question-list .table-tools {
        padding-top: 10px;
        padding-bottom: 10px;
      }

      .table-wrap tr.is-mobile-expanded > td {
        grid-column: 1 / -1;
        border-right: 0;
      }

      .table-wrap tr.is-mobile-expanded > td::before {
        margin-bottom: 6px;
        font-size: 11px;
      }

      .table-wrap tr > td.cell-action,
      .table-wrap tr:nth-child(even) > td.cell-action {
        min-height: 0;
        padding: 0;
        display: none;
        grid-template-columns: 1fr;
        gap: 0;
        border-right: 0;
        background: var(--surface-soft);
      }

      .table-wrap tr.is-mobile-actions-open:not(.is-mobile-expanded) > td.cell-action,
      .table-wrap tr.is-mobile-expanded > td.cell-action {
        display: grid;
      }

      .table-wrap tr.is-mobile-actions-open:not(.is-mobile-expanded) > td.cell-action::before,
      .table-wrap tr.is-mobile-expanded > td.cell-action::before {
        display: none;
      }

      .table-wrap td.cell-action .button {
        width: 100%;
        min-height: 44px;
        padding: 10px 12px;
        border: 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        justify-content: flex-start;
        color: var(--ink);
        background: transparent;
        font-weight: 600;
        text-align: left;
      }

      .table-wrap td.cell-action .button:last-child {
        border-bottom: 0;
      }

      .table-wrap td.cell-action .button.danger {
        min-width: 0;
        color: var(--danger);
      }

      .table-wrap td.cell-action .mobile-row-toggle::after {
        display: none;
        content: none;
      }

      .table-wrap tr.is-mobile-expanded > td.cell-action {
        margin-top: 2px;
      }

      .mobile-bottom-nav button {
        min-height: 60px;
        font-size: 11px;
      }

      .task-progress-label-desktop {
        display: none;
      }

      .task-progress-label-mobile {
        display: inline;
      }

      .sheet-heading:has([data-task-progress-toggle]) .sheet-actions,
      .sheet-heading:has([data-packing-progress-toggle]) .sheet-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }

      .sheet-heading:has([data-task-progress-toggle]) .sheet-actions .button,
      .sheet-heading:has([data-packing-progress-toggle]) .sheet-actions .button {
        width: 100%;
        min-width: 0;
        padding-inline: 10px;
      }

      .task-desktop-panel {
        display: none;
      }

      .task-dashboard {
        order: 1;
        border-radius: 8px;
        overflow: hidden;
      }

      .task-dashboard > .task-progress-panel,
      .task-dashboard > .task-next-panel {
        display: none;
      }

      .task-mobile-progress-summary {
        display: grid;
        gap: 10px;
        padding: 12px;
        background: var(--sheet);
      }

      .task-mobile-progress-head,
      .task-mobile-progress-percent,
      .task-mobile-upcoming-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
      }

      .task-mobile-progress-head strong,
      .task-mobile-upcoming-head strong {
        font-size: 12px;
      }

      .task-mobile-progress-head span,
      .task-mobile-upcoming-head span {
        color: var(--muted);
        font-size: 12px;
      }

      .task-mobile-progress-percent strong {
        color: var(--accent-strong);
        font-family: var(--font-display);
        font-size: 25px;
        font-weight: 600;
        line-height: 1;
      }

      .task-mobile-progress-percent .task-meter {
        min-width: 0;
        flex: 1 1 auto;
      }

      .task-mobile-progress-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border: 1px solid var(--line);
        border-radius: 6px;
        overflow: hidden;
      }

      .task-mobile-progress-stats div {
        min-width: 0;
        padding: 7px 8px;
        border-right: 1px solid var(--line);
      }

      .task-mobile-progress-stats div:last-child {
        border-right: 0;
      }

      .task-mobile-progress-stats span {
        display: block;
        color: var(--muted);
        font-size: 11px;
        line-height: 1.25;
      }

      .task-mobile-progress-stats strong {
        display: block;
        margin-top: 2px;
        font-size: 17px;
      }

      .task-mobile-upcoming {
        padding-top: 9px;
        border-top: 1px solid var(--line);
      }

      .task-mobile-upcoming-row {
        margin-top: 6px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        align-items: center;
      }

      .task-mobile-upcoming-row strong,
      .task-mobile-upcoming-row span {
        display: block;
        overflow-wrap: anywhere;
      }

      .task-mobile-upcoming-row strong {
        font-size: 14px;
      }

      .task-mobile-upcoming-row span {
        margin-top: 3px;
        color: var(--muted);
        font-size: 12px;
      }

      .task-mobile-upcoming-row time {
        color: var(--accent-strong);
        font-size: 12px;
        font-weight: 750;
        white-space: nowrap;
      }

      .task-mobile-upcoming-row .packing-next-owner {
        margin-top: 0;
        color: var(--accent-strong);
        font-size: 12px;
        font-weight: 750;
        white-space: nowrap;
        text-align: right;
      }

      .task-mobile-panel {
        order: 2;
        display: grid;
        gap: 10px;
        min-width: 0;
      }

      .task-mobile-filters {
        display: grid;
        grid-template-columns: repeat(var(--task-filter-count, 4), minmax(0, 1fr));
        gap: 7px;
        padding: 1px 0 2px;
      }

      .task-mobile-filters[data-filter-count="5"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .task-filter-chip {
        min-height: 38px;
        padding: 7px 2px;
        border: 1px solid var(--line);
        border-radius: 999px;
        min-width: 0;
        flex: 1 1 0;
        color: var(--muted);
        background: var(--sheet);
        font: inherit;
        font-size: 11px;
        font-weight: 700;
        white-space: nowrap;
        cursor: pointer;
      }

      .task-filter-chip[aria-pressed="true"] {
        border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
        color: var(--accent-strong);
        background: var(--blush);
      }

      .task-mobile-list {
        display: grid;
        border: 1px solid var(--line);
        border-radius: 8px;
        overflow: hidden;
        background: var(--sheet);
      }

      .task-mobile-card {
        min-width: 0;
        border-bottom: 1px solid var(--line);
        background: var(--sheet);
      }

      .task-mobile-card:last-child {
        border-bottom: 0;
      }

      .task-mobile-card.is-completed {
        background: color-mix(in srgb, var(--sheet) 82%, var(--surface-soft));
      }

      .task-mobile-card.is-completed .task-mobile-card-summary {
        opacity: .72;
      }

      .task-mobile-card.is-completed .task-mobile-card-copy strong {
        text-decoration: line-through;
        text-decoration-thickness: 1px;
      }

      .task-mobile-card.is-completed .task-mobile-card-copy span {
        color: var(--faint);
      }

      .task-mobile-card.is-overdue .task-mobile-card-copy span {
        color: var(--rose-dark);
        font-weight: 700;
      }

      .task-mobile-card.is-due-soon .task-mobile-card-copy span {
        color: #80682f;
      }

      .task-mobile-card-summary {
        min-height: 76px;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) auto 42px;
        gap: 7px;
        align-items: center;
        padding: 9px 8px;
      }

      .task-mobile-check {
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
      }

      .task-mobile-check input {
        width: 22px;
        height: 22px;
        margin: 0;
        border-radius: 50%;
        accent-color: var(--accent);
      }

      .task-mobile-card-copy {
        min-width: 0;
        padding: 6px 0;
        border: 0;
        color: inherit;
        background: transparent;
        text-align: left;
        cursor: pointer;
      }

      .task-mobile-card-copy strong,
      .task-mobile-card-copy span {
        display: block;
        overflow-wrap: anywhere;
      }

      .task-mobile-card-copy strong {
        font-size: 14px;
        line-height: 1.3;
      }

      .task-mobile-card-copy span {
        margin-top: 4px;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.3;
      }

      .task-mobile-priority {
        width: 66px;
        padding: 5px 8px;
        border: 1px solid var(--line);
        border-radius: 5px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--muted);
        background: var(--surface-soft);
        font-size: 11px;
        font-weight: 700;
        white-space: nowrap;
      }

      .task-mobile-priority[data-tone="high"] {
        border-color: color-mix(in srgb, var(--rose) 28%, var(--line));
        color: var(--rose-dark);
        background: var(--blush);
      }

      .task-mobile-priority[data-tone="normal"] {
        border-color: #E4D3A5;
        color: #735F2F;
        background: #F4EBCF;
      }

      .task-mobile-priority[data-tone="low"] {
        color: var(--muted);
        background: var(--surface-soft);
      }

      .task-mobile-priority[data-tone="completed"] {
        border-color: color-mix(in srgb, var(--sage-dark) 26%, var(--line));
        color: var(--sage-dark);
        background: color-mix(in srgb, var(--sage-soft) 70%, var(--sheet));
      }

      .task-mobile-priority[data-tone="overdue"] {
        border-color: color-mix(in srgb, var(--rose) 30%, var(--line));
        color: var(--rose-dark);
        background: color-mix(in srgb, var(--blush) 72%, var(--sheet));
      }

      .task-mobile-card-toggle {
        width: 42px;
        height: 42px;
        min-width: 42px;
        padding: 0;
        border: 0;
        border-radius: 6px;
        display: grid;
        place-items: center;
        color: var(--muted);
        background: transparent;
        cursor: pointer;
      }

      .task-mobile-card-toggle svg {
        width: 18px;
        height: 18px;
        transition: transform 150ms ease;
      }

      .task-mobile-card.is-open .task-mobile-card-toggle svg {
        transform: rotate(180deg);
      }

      .task-mobile-card-editor {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
        padding: 13px 12px 14px;
        border-top: 1px solid var(--line);
        background: var(--surface-soft);
      }

      .task-mobile-field {
        min-width: 0;
        display: grid;
        gap: 6px;
      }

      .task-mobile-field.is-wide {
        grid-column: 1 / -1;
      }

      .task-mobile-field > span {
        color: var(--muted);
        font-size: 11px;
        font-weight: 700;
      }

      .task-mobile-field .table-input {
        width: 100%;
        min-width: 0;
      }

      .task-mobile-field textarea {
        min-height: 92px;
        resize: vertical;
      }

      .task-mobile-remove {
        grid-column: auto;
        justify-self: stretch;
      }

      .task-mobile-empty {
        margin: 0;
        padding: 24px 16px;
        color: var(--muted);
        text-align: center;
      }
    }

    @media (min-width: 600px) and (max-width: 1024px) {
      .sheet {
        padding: 18px 16px 30px;
      }

      .sheet-heading h2 {
        font-size: 31px;
      }

      .wedding-palette-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .seating-table-move-hint {
        margin-top: 2px;
        display: block;
        color: var(--sage-dark);
        font-size: 8px;
        font-weight: 700;
      }

      .seating-table-add-guest {
        position: absolute;
        right: 7px;
        bottom: 7px;
        z-index: 5;
        width: 30px;
        height: 30px;
        min-height: 30px;
        border: 1px solid var(--line-strong);
        border-radius: 50%;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--accent-strong);
        font-size: 18px;
        font-weight: 750;
        background: var(--surface);
        box-shadow: 0 2px 6px rgba(64, 55, 53, 0.08);
      }
    }

    /* Seating Plan: touch-first responsive layout. Desktop remains unchanged. */
    .seating-page-shell,
    .seating-responsive-layout,
    .seating-overview-panel {
      display: contents;
    }

    .seating-mobile-plan-action {
      display: none;
    }

    @media (max-width: 1024px) {
      .seating-page-shell {
        min-width: 0;
        display: grid;
        gap: 12px;
      }

      .seating-page-shell > .sheet-heading,
      .seating-page-shell > .seating-summary-grid,
      .seating-page-shell > .seating-mobile-plan-action,
      .seating-responsive-layout,
      .seating-overview-panel,
      .interactive-seating-panel,
      .seating-overview-panel > .panel,
      .interactive-seating-panel > .panel {
        width: 100%;
        min-width: 0;
        max-width: 100%;
      }

      .seating-responsive-layout,
      .seating-overview-panel {
        display: block;
      }

      .seating-responsive-layout {
        min-width: 0;
      }

      .seating-desktop-plan-toggle {
        display: none;
      }

      .seating-mobile-plan-action {
        display: block;
        scroll-margin-top: 72px;
      }

      .seating-mobile-plan-action .button {
        width: 100%;
        min-height: 54px;
        padding: 9px 14px;
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr) 24px;
        align-items: center;
        gap: 10px;
        font-family: var(--font-display);
        font-size: 19px;
        font-weight: 750;
      }

      .seating-plan-action-icon,
      .seating-plan-action-chevron {
        display: grid;
        place-items: center;
      }

      .seating-plan-action-icon svg {
        width: 27px;
        height: 27px;
      }

      .seating-plan-action-chevron svg {
        width: 20px;
        height: 20px;
      }

      .seating-summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .seating-summary-grid .stat {
        min-height: 76px;
        padding: 10px;
      }

      .seating-summary-grid .stat span {
        line-height: 1.2;
      }

      .seating-summary-grid .stat strong {
        margin-top: 7px;
        font-size: 21px;
      }

      .seating-overview-panel .seating-grid {
        grid-template-columns: 1fr;
        gap: 10px;
      }

      .seating-overview-panel .seat-table {
        min-width: 0;
        padding: 12px;
        border-radius: 7px;
      }

      .seating-overview-panel .seat-table-heading {
        gap: 10px;
      }

      .seating-overview-panel .seat-capacity-control {
        flex: 0 0 auto;
      }

      .seating-overview-panel .seat-capacity-control input {
        width: 58px;
        min-height: 40px;
      }

      .seating-overview-panel .seat-table li {
        overflow-wrap: anywhere;
      }

      .mobile-seating-overview-grid {
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
      }

      .mobile-seating-overview-card {
        min-width: 0;
        border: 1px solid var(--line);
        border-radius: 8px;
        overflow: hidden;
        background: var(--surface);
      }

      .mobile-seating-overview-card.is-over-capacity {
        border-color: color-mix(in srgb, var(--danger) 55%, var(--line));
      }

      .mobile-seating-overview-heading {
        min-width: 0;
        min-height: 66px;
        padding: 9px 8px 9px 11px;
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) auto 42px;
        align-items: center;
        gap: 10px;
        background: color-mix(in srgb, var(--blush-soft) 72%, var(--surface));
      }

      .mobile-seating-overview-heading h3 {
        min-width: 0;
        margin: 0;
        color: var(--heading);
        font-family: var(--font-display);
        font-size: 21px;
        line-height: 1.15;
        font-weight: 400;
        overflow-wrap: anywhere;
      }

      .mobile-seating-table-icon,
      .mobile-seating-guest-icon {
        display: grid;
        place-items: center;
        border-radius: 50%;
        color: var(--rose-dark);
        background: var(--blush-soft);
      }

      .mobile-seating-table-icon {
        width: 42px;
        height: 42px;
        border: 1px solid color-mix(in srgb, var(--rose) 32%, var(--line));
      }

      .mobile-seating-table-icon svg {
        width: 23px;
        height: 23px;
      }

      .mobile-seating-capacity {
        min-width: 72px;
        min-height: 38px;
        padding: 6px 9px;
        border-radius: 7px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: var(--rose-dark);
        background: color-mix(in srgb, var(--blush) 72%, var(--surface));
        font-family: var(--font-sans);
        font-size: 13px;
        font-weight: 700;
        white-space: nowrap;
      }

      .mobile-seating-capacity input {
        width: 28px;
        min-width: 28px;
        height: 26px;
        min-height: 26px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        color: inherit;
        text-align: right;
        font: inherit;
        background: transparent;
        appearance: textfield;
      }

      .mobile-seating-capacity input::-webkit-inner-spin-button,
      .mobile-seating-capacity input::-webkit-outer-spin-button {
        margin: 0;
        appearance: none;
      }

      .mobile-seating-overview-toggle,
      .mobile-seating-guest-more {
        width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: var(--ink);
        background: transparent;
      }

      .mobile-seating-overview-toggle svg {
        width: 19px;
        height: 19px;
        transition: transform 150ms ease;
      }

      .mobile-seating-overview-card:not(.is-expanded) .mobile-seating-overview-toggle svg {
        transform: rotate(-90deg);
      }

      .mobile-seating-overview-body {
        min-width: 0;
        border-top: 1px solid var(--line);
      }

      .mobile-seating-overview-guest {
        min-width: 0;
        min-height: 60px;
        padding: 8px 8px 8px 13px;
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr) 68px;
        align-items: center;
        gap: 10px;
      }

      .mobile-seating-overview-guest + .mobile-seating-overview-guest {
        border-top: 1px solid var(--line);
      }

      .mobile-seating-guest-icon {
        width: 34px;
        height: 34px;
      }

      .mobile-seating-guest-icon svg {
        width: 19px;
        height: 19px;
      }

      .mobile-seating-guest-copy {
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
      }

      .mobile-seating-guest-copy strong,
      .mobile-seating-guest-copy span {
        min-width: 0;
        overflow-wrap: anywhere;
      }

      .mobile-seating-guest-copy strong {
        color: var(--ink);
        font-size: 14px;
        line-height: 1.25;
      }

      .mobile-seating-guest-copy span {
        color: var(--muted);
        font-size: 12px;
        line-height: 1.3;
      }

      .mobile-seating-guest-more {
        width: 68px;
        height: 36px;
        min-height: 36px;
        border: 1px solid var(--line);
        border-radius: 6px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: var(--rose-dark);
        font-size: 11px;
        font-weight: 700;
        background: var(--surface);
      }

      .mobile-seating-guest-more svg {
        width: 14px;
        height: 14px;
      }

      .mobile-seating-empty {
        min-height: 66px;
        padding: 10px 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
      }

      .mobile-seating-empty em {
        min-width: 0;
        color: var(--muted);
        font-size: 13px;
      }

      .mobile-seating-empty .button {
        min-height: 42px;
        flex: 0 0 auto;
        color: var(--rose-dark);
      }

      .mobile-seating-capacity-warning {
        margin: 0;
        padding: 8px 12px;
        border-bottom: 1px solid color-mix(in srgb, var(--danger) 40%, var(--line));
        color: var(--danger);
        font-size: 12px;
        font-weight: 700;
        background: var(--danger-soft);
      }

      .mobile-seating-unseated-count {
        min-width: 34px;
        min-height: 34px;
        border-radius: 7px;
        display: grid;
        place-items: center;
        color: var(--rose-dark);
        font-size: 14px;
        font-weight: 750;
        background: var(--blush-soft);
      }

      .mobile-seating-overview-card.is-unseated .mobile-seating-overview-heading {
        grid-template-columns: 42px minmax(0, 1fr) auto;
      }

      .seating-overview-panel > .panel > .panel-title h3 {
        font-family: var(--font-display);
        font-size: 22px;
        font-weight: 400;
      }

      .seating-overview-panel > .panel > .panel-title p {
        margin-top: 3px;
        font-size: 13px;
      }

      .interactive-seating-panel {
        margin-top: 12px;
        overflow: hidden;
      }

      .interactive-seating-panel .panel-body {
        min-width: 0;
        padding: 0;
      }

      .seating-planner,
      .seating-workspace,
      .seating-floor-scroll,
      .seating-floor {
        width: 100%;
        min-width: 0;
        max-width: 100%;
      }

      .seating-planner {
        border: 0;
      }

      .seating-planner-toolbar {
        min-height: 58px;
        padding: 10px 12px;
        align-items: center;
        gap: 10px;
      }

      .seating-planner-toolbar p {
        min-width: 0;
        line-height: 1.35;
      }

      .seating-planner-actions .button,
      .seating-guest-tray-head .button {
        min-height: 42px;
      }

      .seating-auto-status {
        min-height: 66px;
        border-bottom: 1px solid var(--line);
        padding: 11px 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        background: var(--surface);
      }

      .seating-auto-status > div {
        min-width: 0;
      }

      .seating-auto-status strong,
      .seating-auto-status span {
        display: block;
      }

      .seating-auto-status strong {
        font-size: 14px;
      }

      .seating-auto-status span {
        margin-top: 3px;
        color: var(--muted);
        font-size: 11px;
        line-height: 1.4;
      }

      .seating-auto-status .button {
        min-height: 42px;
        flex: 0 0 auto;
      }

      .seating-auto-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        flex: 0 0 auto;
      }

      .seating-assignment-guide:not(.is-active) {
        display: none;
      }

      .seating-assignment-guide.is-active {
        min-height: 56px;
        padding: 10px 12px;
      }

      .seating-workspace {
        min-height: 0;
        display: grid;
        grid-template-columns: 1fr;
      }

      .seating-guest-tray {
        min-width: 0;
        padding: 12px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
      }

      .seating-guest-tray-head {
        align-items: center;
        flex-direction: row;
      }

      .unseated-guest-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        overflow: visible;
      }

      .unseated-guest-card,
      .unseated-guest {
        width: 100%;
        min-width: 0;
      }

      .unseated-guest-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
      }

      .unseated-seat-action {
        width: 100%;
        min-height: 38px;
      }

      .seating-floor-scroll {
        padding: 10px;
        overflow: hidden;
        background: var(--surface);
      }

      .seating-floor {
        height: 500px;
        overflow: hidden;
      }

      .seating-table-node {
        width: 120px;
        height: 120px;
      }

      .seating-table-core {
        inset: 30px;
        padding: 4px;
      }

      .seating-table-core strong {
        font-size: 10px;
      }

      .seating-table-core span {
        font-size: 8px;
      }

      .seating-table-core.is-static,
      .seating-guest-seat.is-static {
        cursor: default;
        touch-action: auto;
      }

      .seating-table-core.is-static:hover,
      .seating-guest-seat.is-static:hover {
        border-color: var(--sage-dark);
        box-shadow: none;
      }

      .seating-table-move-hint,
      .seating-table-add-guest {
        display: none;
      }

      .seating-guest-seat {
        width: 30px;
        height: 30px;
        font-size: 8px;
        transform: translate(-50%, -50%) rotate(var(--seat-angle)) translateY(-48px) rotate(var(--seat-counter-angle));
      }

      .seating-table-remove {
        top: 0;
        right: 0;
        width: 34px;
        height: 34px;
        font-size: 18px;
      }

      .seating-table-add-guest {
        right: 2px;
        bottom: 2px;
        width: 34px;
        height: 34px;
        min-height: 34px;
      }

      .seating-dance-floor {
        width: 106px;
        height: 66px;
        font-size: 10px;
      }

      .seating-floor-label {
        top: 10px;
        left: 12px;
      }
    }

    @media (max-width: 599px) {
      .seating-page-shell {
        gap: 11px;
      }

      .seating-page-shell .sheet-heading {
        margin-bottom: 0;
      }

      .seating-summary-grid .stat {
        min-height: 72px;
        padding: 9px 7px;
      }

      .seating-summary-grid .stat span {
        font-size: 10px;
      }

      .seating-summary-grid .stat strong {
        font-size: 20px;
      }

      .seating-responsive-layout.is-expanded .seating-overview-panel {
        display: none;
      }

      .interactive-seating-panel {
        margin-top: 0;
      }

      .interactive-seating-panel > .panel > .panel-title {
        display: none;
      }

      .seating-planner-toolbar {
        align-items: center;
        flex-direction: row;
      }

      .seating-auto-status {
        align-items: flex-start;
      }

      .seating-auto-status.is-mobile {
        min-height: 58px;
        padding: 8px 10px;
        align-items: center;
        gap: 8px;
      }

      .seating-auto-status.is-mobile strong {
        font-size: 13px;
        line-height: 1.25;
      }

      .seating-auto-status.is-mobile span {
        margin-top: 2px;
        font-size: 11px;
        line-height: 1.3;
      }

      .seating-auto-status.is-mobile .seating-auto-actions .button {
        min-height: 36px;
        padding: 6px 8px;
        font-size: 11px;
      }

      .desktop-seating-instruction {
        display: inline;
      }

      .mobile-seating-instruction {
        display: none;
      }

      .unseated-guest-list {
        grid-template-columns: 1fr;
      }

      .seating-guest-tray {
        padding: 9px 10px 10px;
      }

      .seating-guest-tray-head h3 {
        font-size: 14px;
      }

      .seating-guest-tray-head p {
        margin-top: 2px;
        font-size: 11px;
      }

      .unseated-guest-list {
        margin-top: 7px;
        gap: 6px;
      }

      .unseated-guest-card {
        min-height: 52px;
        padding: 4px;
        grid-template-columns: minmax(0, 1fr) 64px;
        gap: 4px;
      }

      .unseated-guest {
        min-height: 42px;
        padding: 5px 6px;
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 7px;
      }

      .unseated-guest-initials {
        width: 28px;
        height: 28px;
      }

      .unseated-guest strong {
        font-size: 13px;
        line-height: 1.2;
        white-space: normal;
      }

      .unseated-guest span {
        font-size: 11px;
        line-height: 1.25;
      }

      .unseated-seat-action {
        width: 64px;
        min-height: 36px;
        padding: 5px 6px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 2px;
        font-size: 11px;
      }

      .unseated-seat-action svg {
        width: 13px;
        height: 13px;
      }

      .seating-guest-seat.is-mobile-interactive {
        cursor: grab;
        touch-action: none;
      }

      .seating-guest-seat.is-mobile-interactive:active {
        cursor: grabbing;
      }

      .seating-guest-seat.is-mobile-interactive:focus-visible {
        border-color: var(--clay);
        outline: 3px solid var(--focus);
        outline-offset: 1px;
      }

      .mobile-seating-overview-guest {
        min-height: 54px;
        padding: 7px 7px 7px 10px;
        grid-template-columns: 32px minmax(0, 1fr) 62px;
        gap: 8px;
      }

      .mobile-seating-guest-icon {
        width: 32px;
        height: 32px;
      }

      .mobile-seating-guest-more {
        width: 62px;
        height: 34px;
        min-height: 34px;
      }

      .seating-floor-scroll {
        padding: 8px;
      }

      .seating-floor {
        height: clamp(430px, 122vw, 500px);
      }

      .seating-table-node {
        width: 108px;
        height: 108px;
      }

      .seating-table-core {
        inset: 27px;
      }

      .seating-guest-seat {
        width: 28px;
        height: 28px;
        transform: translate(-50%, -50%) rotate(var(--seat-angle)) translateY(-43px) rotate(var(--seat-counter-angle));
      }

      .seating-dance-floor {
        width: 92px;
        height: 58px;
      }
    }

    /* Match the desktop reception-floor drawing in the compact mobile plan. */
    @media (max-width: 1024px) {
      .seating-page-shell .seating-auto-status:not(.is-moving) {
        display: none;
      }

      .seating-page-shell .seating-floor-scroll {
        padding: 9px;
        background: color-mix(in srgb, var(--paper) 84%, var(--surface));
      }

      .seating-page-shell .seating-floor {
        height: clamp(470px, 128vw, 520px);
        border-color: color-mix(in srgb, var(--taupe) 58%, transparent);
        background: linear-gradient(135deg, color-mix(in srgb, var(--field-fill) 92%, white), color-mix(in srgb, var(--paper) 90%, white));
      }

      .seating-page-shell .seating-floor::before {
        content: "";
        position: absolute;
        inset: 6px;
        z-index: 0;
        border: 1px solid color-mix(in srgb, var(--taupe) 24%, transparent);
        pointer-events: none;
      }

      .seating-page-shell .seating-table-node {
        width: 118px;
        height: 118px;
      }

      .seating-page-shell .seating-table-node[data-table-shape="rectangle"] {
        width: 144px;
        height: 104px;
      }

      .seating-page-shell .seating-table-node[data-table-shape="long"] {
        width: 166px;
        height: 104px;
      }

      .seating-page-shell .seating-table-chairs {
        position: absolute;
        inset: 0;
        z-index: 1;
        width: 100%;
        height: 100%;
        overflow: visible;
        pointer-events: none;
      }

      .seating-page-shell .seating-table-chairs .chair-seat {
        fill: color-mix(in srgb, var(--surface) 94%, var(--blush-soft));
        stroke: color-mix(in srgb, var(--taupe) 62%, var(--border));
        stroke-width: 1;
        vector-effect: non-scaling-stroke;
      }

      .seating-page-shell .seating-table-core {
        inset: 24px;
        border-color: color-mix(in srgb, var(--taupe) 68%, var(--border));
        color: var(--heading);
        background: color-mix(in srgb, var(--surface) 92%, var(--sage-soft));
      }

      .seating-page-shell .seating-table-core::before {
        content: "";
        position: absolute;
        inset: 4px;
        border: 1px solid color-mix(in srgb, var(--taupe) 26%, transparent);
        border-radius: inherit;
        pointer-events: none;
      }

      .seating-page-shell .seating-table-core > * {
        position: relative;
        z-index: 1;
      }

      .seating-page-shell .seating-table-node[data-table-shape="square"] .seating-table-core {
        border-radius: 5px;
      }

      .seating-page-shell .seating-table-node[data-table-shape="rectangle"] .seating-table-core {
        inset: 23px 20px;
        border-radius: 5px;
      }

      .seating-page-shell .seating-table-node[data-table-shape="long"] .seating-table-core {
        inset: 23px 17px;
        border-radius: 5px;
      }

      .seating-page-shell .seating-table-centerpiece {
        width: 27px;
        height: 17px;
        margin: 0 auto 1px;
        overflow: visible;
        pointer-events: none;
      }

      .seating-page-shell .seating-table-centerpiece .centerpiece-stem {
        fill: none;
        stroke: var(--sage-dark);
        stroke-width: 1.25;
        stroke-linecap: round;
        stroke-linejoin: round;
      }

      .seating-page-shell .seating-table-centerpiece .centerpiece-leaf {
        fill: color-mix(in srgb, var(--sage-soft) 84%, var(--surface));
        stroke: var(--sage-dark);
        stroke-width: 0.9;
      }

      .seating-page-shell .seating-table-centerpiece .centerpiece-petal {
        fill: color-mix(in srgb, var(--blush-soft) 82%, var(--surface));
        stroke: color-mix(in srgb, var(--rose) 62%, var(--taupe));
        stroke-width: 0.75;
      }

      .seating-page-shell .seating-table-centerpiece .centerpiece-heart {
        fill: var(--champagne);
      }

      .seating-page-shell .seating-table-core strong {
        font-family: var(--font-display);
        font-size: 10px;
        font-weight: 400;
      }

      .seating-page-shell .seating-table-core span {
        font-size: 7px;
      }

      .seating-page-shell .seating-guest-seat {
        width: 24px;
        height: 24px;
        border-color: color-mix(in srgb, var(--taupe) 62%, transparent);
        font-size: 7px;
        background: var(--surface);
        transform: translate(-50%, -50%) rotate(var(--seat-angle)) translateY(-49px) rotate(var(--seat-counter-angle));
      }

      .seating-page-shell .seating-guest-seat[data-rsvp="yes"] {
        border-color: color-mix(in srgb, var(--sage-dark) 64%, var(--border));
        background: color-mix(in srgb, var(--sage-soft) 72%, var(--surface));
      }

      .seating-page-shell .seating-guest-seat[data-rsvp="pending"] {
        border-color: color-mix(in srgb, var(--rose) 44%, var(--border));
        background: color-mix(in srgb, var(--blush-soft) 74%, var(--surface));
      }

      .seating-page-shell .seating-dance-floor {
        width: 108px;
        height: 68px;
        border-style: solid;
        border-color: color-mix(in srgb, var(--sage-dark) 54%, var(--border));
        border-radius: 2px;
        color: color-mix(in srgb, var(--ink) 74%, var(--sage-dark));
        font-family: var(--font-display);
        font-size: 10px;
        font-weight: 400;
        background: color-mix(in srgb, var(--sage-soft) 68%, var(--surface));
      }
    }

    @media (min-width: 600px) and (max-width: 1024px) {
      .seating-responsive-layout:not(.is-expanded) .mobile-seating-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .seating-responsive-layout.is-expanded {
        display: grid;
        grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.35fr);
        align-items: start;
        gap: 12px;
      }

      .seating-responsive-layout.is-expanded .interactive-seating-panel {
        margin-top: 0;
      }

      .seating-responsive-layout.is-expanded .panel-title {
        min-height: 66px;
      }

      .seating-responsive-layout.is-expanded .seating-floor {
        height: 520px;
      }
    }

    @media print {
      body {
        background: #fff;
      }

      .topbar,
      .sidebar,
      .sheet-tabs,
      .sheet-actions,
      .summary-picker,
      .table-tools,
      .cell-action,
      .calendar-dialog {
        display: none;
      }

      .main {
        width: 100%;
        margin: 0;
      }

      .workbook {
        display: block;
        border: 0;
        box-shadow: none;
      }

      .sheet {
        padding: 0;
      }

      .summary-preview,
      .summary-section-grid {
        gap: 10px;
      }

      .summary-section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .panel {
        box-shadow: none;
        break-inside: avoid;
      }

      input,
      select,
      textarea {
        border-color: transparent;
        background: transparent;
      }
    }
    .setup-desktop-view {
      display: grid;
      gap: 16px;
    }

    .setup-mobile-view {
      display: none;
    }

    .priorities-mobile-view {
      display: none;
    }

    .priorities-desktop-view,
    .priorities-desktop-view .panel,
    .priorities-desktop-view .panel-body,
    .priorities-desktop-view .table-wrap {
      min-width: 0;
      max-width: 100%;
    }

    .priorities-desktop-view .table-wrap {
      overflow-x: auto;
      overflow-y: hidden;
    }

    @media (max-width: 1199px) {
      .priorities-desktop-view {
        display: none;
      }

      .priorities-mobile-view {
        display: grid;
        gap: 14px;
        min-width: 0;
      }

      .priorities-mobile-view > .sheet-heading {
        margin: 0;
        padding: 0 2px;
        display: block;
      }

      .priorities-mobile-view > .sheet-heading p {
        margin-top: 5px;
      }

      .priority-mobile-add {
        width: 100%;
        min-height: 50px;
        margin-top: 13px;
        justify-content: center;
        gap: 8px;
        font-size: 16px;
      }

      .priority-mobile-add .nav-icon {
        width: 19px;
        height: 19px;
      }

      .priority-mobile-summary {
        min-width: 0;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--sheet);
      }

      .priority-mobile-summary-item {
        min-width: 0;
        min-height: 106px;
        padding: 14px 6px 11px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 5px;
        border-right: 1px solid var(--line);
        text-align: center;
      }

      .priority-mobile-summary-item:last-child {
        border-right: 0;
      }

      .priority-mobile-summary-item strong {
        color: var(--heading);
        font-family: var(--font-serif);
        font-size: 27px;
        font-weight: 650;
        line-height: 1;
      }

      .priority-mobile-summary-item span {
        min-height: 30px;
        display: flex;
        align-items: center;
        color: var(--muted);
        font-size: 11px;
        font-weight: 650;
        line-height: 1.2;
      }

      .priority-mobile-summary-item .nav-icon {
        width: 17px;
        height: 17px;
        margin-top: auto;
        color: var(--accent-strong);
        stroke-width: 1.8;
      }

      .priority-mobile-panel {
        min-width: 0;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--sheet);
      }

      .priority-mobile-panel-title {
        min-height: 52px;
        padding: 0 14px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid var(--line);
        background: var(--sheet-soft);
      }

      .priority-mobile-panel-title h3 {
        margin: 0;
        color: var(--heading);
        font-family: var(--font-sans);
        font-size: 16px;
        font-weight: 800;
      }

      .priority-mobile-list {
        padding: 10px;
        display: grid;
        gap: 9px;
      }

      .priority-mobile-card {
        min-width: 0;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--sheet);
      }

      .priority-mobile-card-summary {
        width: 100%;
        min-height: 112px;
        padding: 14px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto 28px;
        grid-template-areas:
          "title status toggle"
          "meta meta meta"
          "due due due";
        align-items: center;
        gap: 8px 9px;
        border: 0;
        color: var(--ink);
        background: transparent;
        text-align: left;
        font: inherit;
        cursor: pointer;
      }

      .priority-mobile-card-summary strong {
        grid-area: title;
        min-width: 0;
        overflow-wrap: anywhere;
        color: var(--heading);
        font-size: 17px;
        line-height: 1.25;
      }

      .priority-mobile-meta {
        grid-area: meta;
        min-width: 0;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.35;
      }

      .priority-mobile-due {
        grid-area: due;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: var(--accent-strong);
        font-size: 13px;
        font-weight: 700;
      }

      .priority-mobile-due .nav-icon {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        stroke-width: 2;
      }

      .priority-mobile-stage {
        grid-area: status;
        min-width: 70px;
        padding: 6px 9px;
        border: 1px solid var(--line);
        border-radius: 7px;
        color: var(--muted);
        background: var(--surface-soft);
        text-align: center;
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
      }

      .priority-mobile-stage[data-tone="decided"] {
        border-color: color-mix(in srgb, var(--sage-dark) 34%, var(--line));
        color: var(--sage-dark);
        background: var(--sage-soft);
      }

      .priority-mobile-stage[data-tone="idea"] {
        border-color: var(--status-idea-border);
        color: var(--status-idea-text);
        background: var(--status-idea-bg);
      }

      .priority-mobile-stage[data-tone="deciding"] {
        border-color: var(--status-deciding-border);
        color: var(--status-deciding-text);
        background: var(--status-deciding-bg);
      }

      .priority-mobile-toggle-icon {
        grid-area: toggle;
        width: 28px;
        height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }

      .priority-mobile-toggle-icon svg {
        width: 19px;
        height: 19px;
        transition: transform 160ms ease;
      }

      .priority-mobile-card.is-open .priority-mobile-toggle-icon svg {
        transform: rotate(180deg);
      }

      .priority-mobile-details {
        padding: 14px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 10px;
        border-top: 1px solid var(--line);
        background: var(--surface-soft);
      }

      .priority-mobile-field {
        min-width: 0;
        display: grid;
        gap: 5px;
      }

      .priority-mobile-field.is-wide,
      .priority-mobile-remove {
        grid-column: 1 / -1;
      }

      .priority-mobile-field > span {
        color: var(--muted);
        font-size: 11px;
        font-weight: 750;
        line-height: 1.3;
        overflow: visible;
      }

      .priority-mobile-date-field > span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: var(--accent-strong);
      }

      .priority-mobile-date-field .nav-icon {
        width: 15px;
        height: 15px;
        flex: 0 0 15px;
        stroke-width: 2;
      }

      .priority-mobile-date-field {
        overflow: hidden;
      }

      .priority-mobile-date-field input[type="date"] {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: 45px;
        min-height: 45px;
        padding: 7px 11px;
        line-height: 1.35;
        text-align: left;
      }

      .priority-mobile-date-field input[type="date"]::-webkit-date-and-time-value,
      .priority-mobile-date-field input[type="date"]::-webkit-datetime-edit {
        min-width: 0;
        margin: 0;
        padding: 0;
        text-align: left;
      }

      .priority-mobile-date-field input[type="date"]::-webkit-calendar-picker-indicator {
        flex: 0 0 auto;
        margin: 0 0 0 8px;
        padding: 2px;
      }

      .priority-mobile-field .table-input {
        width: 100%;
        min-width: 0;
        min-height: 45px;
        font-size: 16px;
      }

      .priority-mobile-field :is(input, textarea).table-input {
        font-weight: 400;
      }

      .priority-mobile-field select.table-input {
        height: 48px;
        min-height: 48px;
        padding: 9px 42px 9px 12px;
        line-height: normal;
        overflow: visible;
        white-space: nowrap;
        text-overflow: ellipsis;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23756A66' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 16px;
      }

      .priority-mobile-field textarea.table-input {
        min-height: 88px;
        resize: vertical;
      }

      .priority-mobile-remove {
        min-height: 44px;
        justify-content: center;
      }

      .priority-mobile-empty {
        margin: 0;
        padding: 28px 16px;
        color: var(--muted);
        text-align: center;
      }

    }

    @media (max-width: 1024px) {

      .setup-desktop-view {
        display: none;
      }

      .setup-mobile-view {
        display: grid;
        gap: 12px;
        min-width: 0;
      }

      .setup-mobile-view > .sheet-heading {
        margin: 0;
        padding: 0 2px 5px;
      }

      .setup-mobile-section {
        min-width: 0;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--sheet);
      }

      .setup-mobile-section-title {
        min-height: 45px;
        padding: 0 13px;
        display: flex;
        align-items: center;
        gap: 5px;
        border-bottom: 1px solid var(--line);
        background: var(--sheet-soft);
      }

      .setup-mobile-section-title span,
      .setup-mobile-section-title h3 {
        margin: 0;
        color: var(--heading);
        font-family: var(--font-sans);
        font-size: 13px;
        font-weight: 800;
        line-height: 1.2;
        letter-spacing: 0;
        text-transform: uppercase;
      }

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

      .setup-mobile-form .field {
        min-width: 0;
      }

      .setup-mobile-form .field.wide {
        grid-column: 1 / -1;
      }

      .setup-mobile-date-row {
        grid-column: 1 / -1;
        min-width: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
      }

      .setup-mobile-date-row .field,
      .setup-mobile-date-row input,
      .setup-mobile-date-row select {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
      }

      .setup-mobile-date-row .field {
        width: 100%;
        overflow: hidden;
      }

      .setup-mobile-date-row input[type="date"] {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: 48px;
        min-height: 48px;
        padding: 9px 11px;
        line-height: 1.35;
        text-align: left;
      }

      .setup-mobile-date-row input[type="date"]::-webkit-date-and-time-value,
      .setup-mobile-date-row input[type="date"]::-webkit-datetime-edit {
        min-width: 0;
        margin: 0;
        padding: 0;
        text-align: left;
      }

      .setup-mobile-date-row input[type="date"]::-webkit-calendar-picker-indicator {
        flex: 0 0 auto;
        margin: 0 0 0 8px;
        padding: 2px;
      }

      .setup-mobile-form label {
        font-size: 12px;
      }

      .setup-mobile-form input,
      .setup-mobile-form select {
        width: 100%;
        min-width: 0;
        min-height: 46px;
        padding: 9px 11px;
        font-size: 16px;
      }

      .setup-mobile-photo-row {
        padding: 13px;
        display: grid;
        grid-template-columns: 98px minmax(0, 1fr);
        align-items: center;
        gap: 14px;
      }

      .setup-mobile-photo-preview {
        width: 96px;
        height: 96px;
        flex-basis: 96px;
      }

      .setup-mobile-photo-actions {
        min-width: 0;
        display: grid;
        gap: 8px;
      }

      .setup-mobile-secondary,
      .setup-mobile-reset {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        justify-content: center;
        gap: 8px;
        background: var(--sheet);
      }

      .setup-mobile-secondary svg,
      .setup-mobile-reset svg,
      .setup-mobile-disclosure svg {
        width: 18px;
        height: 18px;
        flex: 0 0 auto;
      }

      .setup-mobile-disclosure {
        width: calc(100% - 26px);
        min-height: 46px;
        margin: 0 13px 13px;
        padding: 9px 12px;
        border: 1px solid var(--line-strong);
        border-radius: 7px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        color: var(--ink);
        background: var(--sheet);
        font: inherit;
        font-size: 14px;
        font-weight: 650;
        cursor: pointer;
      }

      .setup-mobile-disclosure > span {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 9px;
      }

      .setup-mobile-disclosure > svg {
        transition: transform 160ms ease;
      }

      .setup-mobile-disclosure[aria-expanded="true"] > svg {
        transform: rotate(180deg);
      }

      .setup-mobile-adjust-panel {
        margin: -2px 13px 13px;
        padding: 13px;
        display: grid;
        gap: 14px;
        border: 1px solid var(--line);
        border-radius: 7px;
        background: var(--surface-soft);
      }

      .setup-mobile-slider {
        display: grid;
        gap: 6px;
      }

      .setup-mobile-slider label {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 700;
      }

      .setup-mobile-slider output {
        color: var(--ink);
        font-variant-numeric: tabular-nums;
      }

      .setup-mobile-slider input[type="range"] {
        width: 100%;
        min-height: 30px;
      }

      .setup-mobile-section > .setup-mobile-reset {
        width: calc(100% - 26px);
        margin: 0 13px 13px;
      }

      .setup-mobile-palette-preview {
        padding: 14px 13px 12px;
        display: grid;
        grid-template-columns: repeat(6, minmax(34px, 1fr));
        gap: 8px;
      }

      .setup-mobile-palette-preview span {
        width: min(100%, 42px);
        aspect-ratio: 1;
        justify-self: center;
        border: 1px solid color-mix(in srgb, var(--line-strong) 74%, transparent);
        border-radius: 50%;
        background: var(--setup-colour);
      }

      .setup-mobile-colour-editor {
        margin: -2px 13px 13px;
        display: grid;
        gap: 7px;
      }

      .setup-mobile-colour-field {
        min-height: 48px;
        padding: 6px 9px;
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr) auto;
        align-items: center;
        gap: 9px;
        border: 1px solid var(--line);
        border-radius: 7px;
        color: var(--ink);
        background: var(--surface-soft);
      }

      .setup-mobile-colour-field input[type="color"] {
        width: 34px;
        height: 34px;
        min-height: 34px;
        padding: 0;
        overflow: hidden;
        border: 1px solid color-mix(in srgb, var(--line-strong) 82%, transparent);
        border-radius: 50%;
        appearance: none;
        -webkit-appearance: none;
        background: transparent;
        cursor: pointer;
      }

      .setup-mobile-colour-field input[type="color"]::-webkit-color-swatch-wrapper {
        padding: 0;
      }

      .setup-mobile-colour-field input[type="color"]::-webkit-color-swatch {
        border: 0;
        border-radius: 50%;
      }

      .setup-mobile-colour-field input[type="color"]::-moz-color-swatch {
        border: 0;
        border-radius: 50%;
      }

      .setup-mobile-colour-field span {
        min-width: 0;
        overflow-wrap: anywhere;
        font-size: 13px;
      }

      .setup-mobile-colour-field output {
        color: var(--faint);
        font-size: 10px;
        font-variant-numeric: tabular-nums;
      }

      .mobile-record-status,
      .task-mobile-priority,
      .priority-mobile-stage {
        box-sizing: border-box;
        width: 88px;
        min-width: 88px;
        max-width: 88px;
        height: 30px;
        min-height: 30px;
        padding: 4px 6px;
        border-radius: 6px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        line-height: 1.15;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .task-filter-chip {
        box-sizing: border-box;
        width: 88px;
        min-width: 88px;
        max-width: 88px;
        height: 30px;
        min-height: 30px;
        padding: 4px 6px;
        border-radius: 999px;
        justify-self: center;
      }
    }

    @media (max-width: 430px) {
      .priority-mobile-details {
        grid-template-columns: minmax(0, 1fr);
      }

      .priority-mobile-field.is-wide,
      .priority-mobile-remove {
        grid-column: auto;
      }

      .setup-mobile-date-row {
        grid-template-columns: minmax(0, 1fr);
      }

      .setup-mobile-date-row input,
      .setup-mobile-date-row select {
        display: block;
        inline-size: 100%;
        max-inline-size: 100%;
      }
    }

    @media (max-width: 390px) {
      .setup-mobile-form {
        gap: 10px 8px;
      }

      .setup-mobile-photo-row {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 11px;
      }

      .setup-mobile-photo-preview {
        width: 86px;
        height: 86px;
        flex-basis: 86px;
      }

      .setup-mobile-palette-preview {
        gap: 5px;
      }

      .setup-mobile-colour-field output {
        display: none;
      }
    }

    .mobile-upcoming-icon {
      display: none;
    }

    .mini-row-content {
      display: contents;
    }

    @media (max-width: 1024px) {
      .dashboard-desktop-view {
        display: none;
      }

      .dashboard-mobile-view {
        min-width: 0;
        padding: 2px 0 14px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
      }

      .dashboard-mobile-hero,
      .dashboard-mobile-progress,
      .dashboard-mobile-upcoming,
      .dashboard-mobile-venue {
        grid-column: 1 / -1;
      }

      .dashboard-mobile-hero {
        padding: 4px 12px 10px;
        text-align: center;
      }

      .dashboard-mobile-ornament {
        min-height: 28px;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        color: var(--sage-dark);
      }

      .dashboard-mobile-ornament::before,
      .dashboard-mobile-ornament::after {
        width: 44px;
        height: 1px;
        content: "";
        background: color-mix(in srgb, var(--sage-dark) 45%, transparent);
      }

      .dashboard-mobile-ornament span {
        color: var(--rose);
        font-family: var(--font-display);
        font-size: 28px;
        line-height: 1;
      }

      .dashboard-mobile-hero h2 {
        margin: 0;
        color: var(--heading);
        font-family: var(--font-display);
        font-size: 36px;
        font-weight: 700;
        line-height: 1.02;
        letter-spacing: 0;
        text-wrap: balance;
      }

      .dashboard-mobile-hero > p {
        margin: 9px auto 0;
        max-width: 32ch;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.45;
        text-wrap: pretty;
      }

      .dashboard-mobile-couple {
        margin-top: 13px;
        display: block;
        color: var(--rose-dark);
        font-family: var(--font-display);
        font-size: 25px;
        font-weight: 700;
        font-style: italic;
        line-height: 1.15;
      }

      .dashboard-mobile-couple::after {
        width: 82px;
        margin: 9px auto 0;
        display: block;
        content: "\2665";
        color: var(--rose);
        border-bottom: 1px solid color-mix(in srgb, var(--rose) 28%, transparent);
        font-size: 11px;
        line-height: 8px;
      }

      .dashboard-mobile-card {
        width: 100%;
        min-width: 0;
        border: 1px solid var(--line);
        border-radius: 8px;
        color: var(--ink);
        background: var(--surface);
        box-shadow: 0 4px 14px color-mix(in srgb, var(--heading) 7%, transparent);
      }

      button.dashboard-mobile-card {
        font: inherit;
        text-align: left;
        cursor: pointer;
      }

      button.dashboard-mobile-card:focus-visible {
        outline: 3px solid var(--focus);
        outline-offset: 2px;
      }

      .dashboard-mobile-chevron {
        width: 24px;
        height: 24px;
        display: grid;
        place-items: center;
        color: var(--muted);
        flex: 0 0 24px;
      }

      .dashboard-mobile-chevron svg {
        width: 19px;
        height: 19px;
      }

      .dashboard-mobile-progress {
        min-height: 104px;
        padding: 12px;
        display: grid;
        grid-template-columns: 70px minmax(0, 1fr) 22px;
        align-items: center;
        gap: 12px;
      }

      .dashboard-mobile-progress-ring {
        --dashboard-progress: 0;
        position: relative;
        width: 70px;
        height: 70px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: conic-gradient(var(--rose) calc(var(--dashboard-progress) * 1%), var(--blush-soft) 0);
      }

      .dashboard-mobile-progress-ring::after {
        position: absolute;
        inset: 7px;
        border-radius: 50%;
        content: "";
        background: var(--surface);
      }

      .dashboard-mobile-progress-ring strong {
        position: relative;
        z-index: 1;
        color: var(--heading);
        font-family: var(--font-display);
        font-size: 24px;
        font-weight: 700;
        line-height: 1;
      }

      .dashboard-mobile-progress-copy {
        min-width: 0;
      }

      .dashboard-mobile-progress-copy h3,
      .dashboard-mobile-upcoming h3,
      .dashboard-mobile-venue h3 {
        margin: 0;
        color: var(--heading);
        font-family: var(--font-display);
        font-size: 19px;
        line-height: 1.15;
      }

      .dashboard-mobile-progress-copy > p {
        margin: 4px 0 0;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.35;
      }

      .dashboard-mobile-progress-copy > span {
        margin-top: 7px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: var(--sage-dark);
        font-size: 11px;
        font-weight: 750;
        line-height: 1.35;
      }

      .dashboard-mobile-progress-copy > span::before {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        content: "";
        background: var(--sage-dark);
      }

      .dashboard-mobile-metric {
        min-height: 126px;
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
      }

      .dashboard-mobile-metric-head {
        width: 100%;
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr) 20px;
        align-items: center;
        gap: 6px;
      }

      .dashboard-mobile-icon {
        width: 34px;
        height: 34px;
        border: 1px solid color-mix(in srgb, var(--rose) 25%, var(--line));
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: var(--rose-dark);
        background: var(--blush-soft);
      }

      .dashboard-mobile-icon.is-sage {
        border-color: color-mix(in srgb, var(--sage-dark) 25%, var(--line));
        color: var(--sage-dark);
        background: var(--sage-soft);
      }

      .dashboard-mobile-icon .nav-icon {
        width: 18px;
        height: 18px;
      }

      .dashboard-mobile-metric h3 {
        margin: 0;
        min-width: 0;
        color: var(--heading);
        font-family: var(--font-display);
        font-size: 13px;
        white-space: nowrap;
        line-height: 1.15;
      }

      .dashboard-mobile-metric > strong {
        max-width: 100%;
        color: var(--heading);
        font-family: var(--font-display);
        font-size: 23px;
        line-height: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .dashboard-mobile-metric > span {
        color: var(--muted);
        font-size: 11px;
        line-height: 1.35;
      }

      .dashboard-mobile-metric > span.is-positive {
        color: var(--sage-dark);
        font-weight: 700;
      }

      .dashboard-mobile-budget-track {
        width: 100%;
        height: 6px;
        margin-top: auto;
        border-radius: 999px;
        overflow: hidden;
        background: var(--blush-soft);
      }

      .dashboard-mobile-budget-track span {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: var(--sage);
      }

      .dashboard-mobile-upcoming {
        padding: 10px 12px;
      }

      .dashboard-mobile-card-heading {
        display: flex;
        align-items: center;
        gap: 11px;
      }

      .dashboard-mobile-card-heading .dashboard-mobile-chevron {
        margin-left: auto;
      }

      .dashboard-mobile-task-list {
        margin: 5px 0 0;
        display: grid;
      }

      .dashboard-mobile-task-row {
        min-width: 0;
        padding: 5px 0;
        display: grid;
        grid-template-columns: 16px minmax(0, 1fr);
        gap: 9px;
        border-top: 1px solid var(--line);
      }

      .dashboard-mobile-task-row:first-child {
        border-top: 0;
      }

      .dashboard-mobile-task-dot {
        width: 13px;
        height: 13px;
        margin-top: 3px;
        border: 1.5px solid var(--rose);
        border-radius: 50%;
      }

      .dashboard-mobile-task-row strong,
      .dashboard-mobile-task-row span {
        display: block;
        min-width: 0;
      }

      .dashboard-mobile-task-row strong {
        color: var(--heading);
        font-size: 13px;
        line-height: 1.3;
        overflow-wrap: anywhere;
      }

      .dashboard-mobile-task-row span {
        margin-top: 2px;
        color: var(--muted);
        font-size: 11px;
        line-height: 1.35;
      }

      .dashboard-mobile-empty {
        margin: 13px 0 0;
        color: var(--muted);
        font-size: 13px;
      }

      .dashboard-mobile-venue {
        min-height: 84px;
        padding: 9px;
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr) 22px;
        align-items: center;
        gap: 10px;
      }

      .dashboard-mobile-venue img {
        width: 64px;
        height: 60px;
        border-radius: 6px;
        display: block;
        object-fit: cover;
      }

      .dashboard-mobile-venue-copy {
        min-width: 0;
      }

      .dashboard-mobile-venue-copy > span {
        margin-top: 4px;
        display: flex;
        align-items: flex-start;
        gap: 6px;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.35;
      }

      .dashboard-mobile-venue-copy > span .nav-icon {
        width: 15px;
        height: 15px;
        margin-top: 1px;
        flex: 0 0 15px;
      }

      body:has(.dashboard-mobile-view) {
        padding-bottom: calc(82px + env(safe-area-inset-bottom));
      }

      body:has(.dashboard-mobile-view) .topbar-inner {
        position: relative;
        min-height: 64px;
        display: flex;
        justify-content: flex-end;
      }

      body:has(.dashboard-mobile-view) .topbar .brand {
        position: absolute;
        left: 50%;
        width: auto;
        min-width: 0;
        transform: translateX(-50%);
      }

      body:has(.dashboard-mobile-view) .mobile-actions-button {
        position: absolute;
        right: 8px;
        left: auto;
      }

      body:has(.dashboard-mobile-view) .topbar .brand-mark,
      body:has(.dashboard-mobile-view) .topbar .brand p,
      body:has(.dashboard-mobile-view) .mobile-actions-more {
        display: none;
      }

      body:has(.dashboard-mobile-view) .topbar .brand h1 {
        font-family: var(--font-display);
        font-size: 20px;
        white-space: nowrap;
      }

      body:has(.dashboard-mobile-view) .mobile-actions-settings {
        display: block;
      }

      body:has(.dashboard-mobile-view) .mobile-bottom-nav {
        right: 10px;
        bottom: 0;
        left: 10px;
        height: calc(72px + env(safe-area-inset-bottom));
        padding-inline: 10px;
        border: 1px solid var(--line);
        border-radius: 30px;
        box-shadow: 0 -2px 14px rgba(64, 55, 53, 0.12);
      }

      body:has(.dashboard-mobile-view) .mobile-bottom-nav button {
        min-height: 58px;
      }

      body:has(.dashboard-mobile-view) .mobile-add-circle {
        width: 52px;
        height: 52px;
        margin-top: -17px;
      }

      body:has(.dashboard-mobile-view) .mobile-bottom-nav button[data-mobile-add] > span:last-child {
        color: var(--ink);
        font-size: 10px;
        font-weight: 500;
      }
    }

    @media (min-width: 600px) and (max-width: 1024px) {
      .dashboard-mobile-view {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .dashboard-mobile-hero,
      .dashboard-mobile-progress {
        grid-column: 1 / -1;
      }

      .dashboard-mobile-metric {
        grid-column: span 2;
      }

      .dashboard-mobile-upcoming,
      .dashboard-mobile-venue {
        grid-column: span 2;
      }
    }

    @media (max-width: 360px) {
      .dashboard-mobile-progress {
        grid-template-columns: 68px minmax(0, 1fr) 18px;
        gap: 9px;
      }

      .dashboard-mobile-progress-ring {
        width: 68px;
        height: 68px;
      }

      .dashboard-mobile-metric {
        min-height: 132px;
        padding: 10px;
      }
    }

    /* Mobile dashboard composition based on the approved floral reference. */
    @media (max-width: 1024px) {
      .sheet:has(.dashboard-mobile-view) {
        padding: 0 14px 20px;
        gap: 0;
      }

      .dashboard-mobile-view {
        padding: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
      }

      .dashboard-mobile-hero,
      .dashboard-mobile-overview,
      .dashboard-mobile-panel,
      .dashboard-mobile-lower-grid {
        grid-column: auto;
      }

      .dashboard-mobile-hero {
        position: relative;
        min-height: 164px;
        margin-inline: -14px;
        padding: 0;
        overflow: hidden;
        border-bottom: 1px solid var(--line);
        text-align: left;
        background: var(--surface);
      }

      .dashboard-mobile-hero::after {
        position: absolute;
        inset: 0;
        z-index: 1;
        content: "";
        background: linear-gradient(90deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 98%, transparent) 44%, color-mix(in srgb, var(--surface) 58%, transparent) 68%, transparent 100%);
        pointer-events: none;
      }

      .dashboard-mobile-hero > img {
        position: absolute;
        inset: 0 0 0 auto;
        width: 62%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: 54% 46%;
      }

      .dashboard-mobile-hero-copy {
        position: relative;
        z-index: 2;
        width: 100%;
        padding: 20px 14px 17px;
      }

      .dashboard-mobile-hero h2 {
        margin: 0;
        color: var(--heading);
        font-family: var(--font-display);
        font-size: 31px;
        font-weight: 700;
        line-height: 1.03;
        letter-spacing: 0;
        white-space: nowrap;
      }

      .dashboard-mobile-hero p {
        margin: 7px 0 0;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.35;
        white-space: nowrap;
      }

      .dashboard-mobile-countdown {
        min-width: 151px;
        min-height: 50px;
        margin-top: 15px;
        padding: 6px 10px 6px 7px;
        border: 1px solid var(--line-strong);
        border-radius: 8px;
        display: inline-grid;
        grid-template-columns: 38px auto;
        align-items: center;
        gap: 8px;
        color: var(--ink);
        background: color-mix(in srgb, var(--surface) 94%, transparent);
        font: inherit;
        text-align: left;
        cursor: pointer;
      }

      .dashboard-mobile-countdown .dashboard-mobile-icon {
        width: 38px;
        height: 38px;
      }

      .dashboard-mobile-countdown small,
      .dashboard-mobile-countdown strong {
        display: block;
      }

      .dashboard-mobile-countdown small {
        color: var(--muted);
        font-size: 10px;
        line-height: 1.15;
      }

      .dashboard-mobile-countdown strong {
        margin-top: 2px;
        color: var(--heading);
        font-family: var(--font-display);
        font-size: 19px;
        line-height: 1;
      }

      .dashboard-mobile-countdown em {
        font-family: var(--font-body);
        font-size: 12px;
        font-style: normal;
        font-weight: 500;
      }

      .dashboard-mobile-overview {
        min-width: 0;
        border: 1px solid var(--line);
        border-radius: 8px;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        overflow: hidden;
        background: var(--surface);
        box-shadow: 0 3px 12px rgba(64, 55, 53, 0.06);
      }

      .dashboard-mobile-overview > button {
        min-width: 0;
        min-height: 118px;
        padding: 10px 4px 9px;
        border: 0;
        border-left: 1px solid var(--line);
        display: flex;
        flex-direction: column;
        align-items: center;
        color: var(--ink);
        background: transparent;
        font: inherit;
        text-align: center;
        cursor: pointer;
      }

      .dashboard-mobile-overview > button:first-child {
        border-left: 0;
      }

      .dashboard-mobile-overview .dashboard-mobile-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 7px;
      }

      .dashboard-mobile-overview button > span:not(.dashboard-mobile-icon) {
        min-height: 20px;
        display: flex;
        align-items: center;
        color: var(--ink);
        font-size: 9px;
        line-height: 1.15;
        white-space: nowrap;
      }

      .dashboard-mobile-overview strong {
        width: 100%;
        max-width: 100%;
        margin-top: 3px;
        color: var(--sage-dark);
        font-family: var(--font-display);
        font-size: 15px;
        font-weight: 700;
        line-height: 1.05;
        overflow: hidden;
        text-overflow: clip;
        white-space: nowrap;
      }

      .dashboard-mobile-overview small {
        margin-top: auto;
        color: var(--muted);
        font-size: 9px;
        line-height: 1.2;
      }

      .dashboard-mobile-icon,
      .dashboard-mobile-list-icon,
      .dashboard-mobile-heading-icon {
        border: 1px solid color-mix(in srgb, var(--rose) 24%, var(--line));
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: var(--rose-dark);
        background: var(--blush-soft);
        flex: 0 0 auto;
      }

      .dashboard-mobile-icon .nav-icon,
      .dashboard-mobile-list-icon .nav-icon,
      .dashboard-mobile-heading-icon .nav-icon {
        width: 19px;
        height: 19px;
      }

      .dashboard-mobile-panel {
        min-width: 0;
        border: 1px solid var(--line);
        border-radius: 8px;
        overflow: hidden;
        color: var(--ink);
        background: var(--surface);
        box-shadow: 0 3px 12px rgba(64, 55, 53, 0.05);
      }

      .dashboard-mobile-panel-heading {
        min-height: 50px;
        padding: 8px 10px;
        border-bottom: 1px solid var(--line);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
      }

      .dashboard-mobile-panel-heading > div {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .dashboard-mobile-heading-icon {
        width: 30px;
        height: 30px;
      }

      .dashboard-mobile-heading-icon .nav-icon {
        width: 16px;
        height: 16px;
      }

      .dashboard-mobile-panel-heading h3 {
        margin: 0;
        color: var(--heading);
        font-family: var(--font-display);
        font-size: 18px;
        line-height: 1.1;
        white-space: nowrap;
      }

      .dashboard-mobile-panel-heading button {
        min-height: 38px;
        padding: 0 2px 0 8px;
        border: 0;
        display: inline-flex;
        align-items: center;
        gap: 2px;
        color: var(--rose-dark);
        background: transparent;
        font: inherit;
        font-size: 12px;
        white-space: nowrap;
        cursor: pointer;
      }

      .dashboard-mobile-panel-heading button svg {
        width: 17px;
        height: 17px;
      }

      .dashboard-mobile-panel-body {
        min-width: 0;
      }

      .dashboard-mobile-category-row,
      .dashboard-mobile-upcoming-row {
        width: 100%;
        min-width: 0;
        min-height: 49px;
        padding: 6px 9px;
        border: 0;
        border-top: 1px solid var(--line);
        display: grid;
        align-items: center;
        gap: 8px;
        color: var(--ink);
        background: transparent;
        font: inherit;
        text-align: left;
        cursor: pointer;
      }

      .dashboard-mobile-panel-body > :first-child {
        border-top: 0;
      }

      .dashboard-mobile-category-row {
        grid-template-columns: 34px minmax(80px, 1fr) minmax(46px, 1.15fr) auto 16px;
        gap: 6px;
      }

      .dashboard-mobile-list-icon {
        width: 34px;
        height: 34px;
      }

      .dashboard-mobile-list-icon .nav-icon {
        width: 17px;
        height: 17px;
      }

      .dashboard-mobile-category-row > strong {
        min-width: 0;
        color: var(--heading);
        font-size: 12px;
        font-weight: 700;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .dashboard-mobile-category-track {
        height: 5px;
        border-radius: 999px;
        overflow: hidden;
        background: var(--blush-soft);
      }

      .dashboard-mobile-category-track > span {
        height: 100%;
        display: block;
        border-radius: inherit;
        background: var(--rose-dark);
      }

      .dashboard-mobile-category-value {
        color: var(--heading);
        font-size: 11px;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
      }

      .dashboard-mobile-row-chevron {
        width: 16px;
        height: 20px;
        display: grid;
        place-items: center;
        color: var(--muted);
      }

      .dashboard-mobile-row-chevron svg {
        width: 16px;
        height: 16px;
      }

      .dashboard-mobile-more-row {
        width: 100%;
        min-height: 44px;
        padding: 6px 10px;
        border: 0;
        border-top: 1px solid var(--line);
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr) 16px;
        align-items: center;
        gap: 8px;
        color: var(--muted);
        background: color-mix(in srgb, var(--sage-soft) 38%, var(--surface));
        font: inherit;
        font-size: 11px;
        text-align: left;
        cursor: pointer;
      }

      .dashboard-mobile-more-row > span:first-child {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        color: var(--sage-dark);
      }

      .dashboard-mobile-more-row .nav-icon,
      .dashboard-mobile-more-row > svg {
        width: 17px;
        height: 17px;
      }

      .dashboard-mobile-upcoming-row {
        grid-template-columns: 38px minmax(0, 1fr) auto 16px;
        min-height: 59px;
      }

      .dashboard-mobile-upcoming-copy {
        min-width: 0;
      }

      .dashboard-mobile-upcoming-copy strong,
      .dashboard-mobile-upcoming-copy span {
        display: block;
        min-width: 0;
      }

      .dashboard-mobile-upcoming-copy strong {
        color: var(--heading);
        font-size: 13px;
        line-height: 1.25;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .dashboard-mobile-upcoming-copy span {
        margin-top: 2px;
        color: var(--muted);
        font-size: 10px;
        line-height: 1.3;
      }

      .dashboard-mobile-upcoming-value {
        max-width: 82px;
        padding: 4px 8px;
        border-radius: 999px;
        overflow: hidden;
        color: var(--ink);
        background: var(--sage-soft);
        font-size: 10px;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .dashboard-mobile-lower-grid {
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
      }

      .dashboard-mobile-lower-grid > .dashboard-mobile-panel {
        min-width: 0;
      }

      .dashboard-mobile-calendar-panel .dashboard-mobile-panel-heading {
        min-height: 64px;
        padding: 10px 12px;
        align-items: center;
      }

      .dashboard-mobile-notes-panel .dashboard-mobile-panel-heading {
        min-height: 54px;
        padding: 7px;
      }

      .dashboard-mobile-calendar-panel .dashboard-mobile-panel-heading > div {
        flex: 1 1 auto;
        align-items: center;
        gap: 9px;
      }

      .dashboard-mobile-calendar-panel .dashboard-mobile-heading-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
      }

      .dashboard-mobile-calendar-panel .dashboard-mobile-panel-heading h3,
      .dashboard-mobile-notes-panel .dashboard-mobile-panel-heading h3 {
        font-size: 14px;
      }

      .dashboard-mobile-calendar-panel .dashboard-mobile-panel-heading h3 {
        font-size: 16px;
        line-height: 1.15;
      }

      .dashboard-mobile-calendar-panel .dashboard-mobile-panel-heading small {
        margin-top: 3px;
        display: block;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.25;
      }

      .dashboard-mobile-calendar-panel .dashboard-mobile-panel-heading > .calendar-month-controls {
        flex: 0 0 auto;
        width: auto;
        display: flex;
        gap: 4px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
      }

      .dashboard-mobile-calendar-panel .calendar-nav-button {
        width: 30px;
        min-width: 30px;
        height: 30px;
        min-height: 30px;
        padding: 0;
        border: 1px solid color-mix(in srgb, var(--rose) 20%, var(--line));
        border-radius: 6px;
        color: var(--accent-strong);
        background: color-mix(in srgb, var(--blush-soft) 20%, var(--surface));
        box-shadow: none;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
      }

      .dashboard-mobile-calendar-panel .calendar-nav-button + .calendar-nav-button {
        border-left: 1px solid color-mix(in srgb, var(--rose) 26%, var(--line));
        border-radius: 7px;
      }

      .dashboard-mobile-calendar-panel .calendar-nav-button:hover,
      .dashboard-mobile-calendar-panel .calendar-nav-button:active {
        border-color: color-mix(in srgb, var(--rose) 52%, var(--line));
        color: var(--rose-dark);
        background: var(--blush-soft);
      }

      .dashboard-mobile-calendar-panel .calendar-nav-button:focus-visible {
        outline: 2px solid var(--rose-dark);
        outline-offset: 2px;
      }

      .dashboard-mobile-calendar-panel .calendar-nav-button svg {
        width: 14px;
        height: 14px;
        stroke-width: 1.8;
      }

      .dashboard-mobile-calendar {
        padding: 10px 12px 12px;
      }

      .dashboard-mobile-calendar .calendar {
        column-gap: 3px;
        row-gap: 4px;
      }

      .dashboard-mobile-calendar .calendar-day,
      .dashboard-mobile-calendar .calendar-empty {
        min-width: 0;
        min-height: 38px;
        height: 38px;
        padding: 3px;
        border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
        border-radius: 6px;
        display: grid;
        place-items: center;
        background: color-mix(in srgb, var(--surface) 86%, var(--paper));
        font-size: 11px;
        text-align: center;
      }

      .dashboard-mobile-calendar .calendar-empty {
        border-color: transparent;
        background: transparent;
      }

      .dashboard-mobile-calendar .calendar > div,
      .dashboard-mobile-calendar .calendar > button {
        min-height: 38px;
        height: 38px;
      }

      .dashboard-mobile-calendar .calendar .day-name {
        min-width: 0;
        min-height: 28px;
        height: 28px;
        padding: 4px 0;
        border: 0;
        background: transparent;
        color: var(--muted);
        font-size: 10px;
        font-weight: 650;
      }

      .dashboard-mobile-calendar .calendar .has-item {
        width: 100%;
        min-width: 0;
        height: 38px;
        min-height: 38px;
        padding: 3px;
        border: 1px solid color-mix(in srgb, var(--sage-dark) 24%, var(--line));
        border-radius: 6px;
        color: var(--ink);
        background: var(--sage-soft);
      }

      .dashboard-mobile-calendar .calendar .has-item.is-selected {
        color: var(--surface);
        background: var(--sage-dark);
      }

      .dashboard-mobile-calendar .calendar strong {
        font-size: 11px;
        line-height: 1.2;
      }

      .dashboard-mobile-calendar .calendar-marker {
        display: none;
      }

      .dashboard-mobile-calendar .calendar-event-count,
      .dashboard-mobile-calendar .calendar-event-open {
        display: none;
      }

      .dashboard-mobile-calendar-panel > p {
        margin: 0;
        padding: 0 12px 12px;
        color: var(--muted);
        font-size: 10px;
        line-height: 1.3;
        text-align: center;
      }

      .dashboard-mobile-notes-open {
        width: 100%;
        min-height: 100%;
        padding: 0;
        border: 0;
        display: flex;
        flex-direction: column;
        color: var(--ink);
        background: transparent;
        font: inherit;
        text-align: left;
        cursor: pointer;
      }

      .dashboard-mobile-notes-open-heading {
        width: 100%;
        min-height: 54px;
        padding: 7px;
        border-bottom: 1px solid var(--line);
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr) 16px;
        align-items: center;
        gap: 8px;
        color: var(--heading);
        font-family: var(--font-display);
        font-size: 14px;
        line-height: 1.15;
      }

      .dashboard-mobile-notes-preview {
        width: calc(100% - 14px);
        min-height: 96px;
        margin: 7px;
        padding: 10px;
        border-radius: 7px;
        overflow: hidden;
        color: var(--ink);
        background: var(--blush-soft);
        font-size: 11px;
        line-height: 1.55;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
      }

      .dashboard-mobile-notes-preview.is-empty {
        color: var(--muted);
        font-style: italic;
      }

      .dashboard-notes-dialog-icon {
        width: 38px;
        height: 38px;
        border: 1px solid color-mix(in srgb, var(--rose) 24%, var(--line));
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: var(--rose-dark);
        background: var(--blush-soft);
        flex: 0 0 auto;
      }

      .dashboard-notes-dialog-icon .nav-icon {
        width: 20px;
        height: 20px;
      }

      .dashboard-mobile-empty {
        margin: 0;
        padding: 16px 12px;
        color: var(--muted);
        font-size: 12px;
      }

      body:has(.dashboard-mobile-view) {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
      }

      body:has(.dashboard-mobile-view) .topbar-inner {
        position: relative;
        min-height: 72px;
        padding: 9px 14px;
        display: flex;
        justify-content: flex-start;
      }

      body:has(.dashboard-mobile-view) .topbar .brand {
        position: static;
        width: auto;
        min-width: 0;
        transform: none;
      }

      body:has(.dashboard-mobile-view) .topbar .brand-mark,
      body:has(.dashboard-mobile-view) .topbar .brand p,
      body:has(.dashboard-mobile-view) .mobile-actions-more {
        display: grid;
      }

      body:has(.dashboard-mobile-view) .topbar .brand h1 {
        font-family: var(--font-display);
        font-size: 19px;
        white-space: nowrap;
      }

      body:has(.dashboard-mobile-view) .topbar .brand p {
        margin-top: 2px;
        color: var(--muted);
        font-family: var(--font-body);
        font-size: 10px;
      }

      body:has(.dashboard-mobile-view) .topbar .brand-mark {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
      }

      body:has(.dashboard-mobile-view) .brand .mobile-menu-button {
        position: absolute;
        right: 14px;
        display: grid;
      }

      body:has(.dashboard-mobile-view) .mobile-actions-button,
      body:has(.dashboard-mobile-view) .mobile-actions-settings {
        display: none;
      }

      body:has(.dashboard-mobile-view) .mobile-bottom-nav {
        right: 0;
        bottom: 0;
        left: 0;
        height: calc(70px + env(safe-area-inset-bottom));
        padding: 5px 9px env(safe-area-inset-bottom);
        border: 0;
        border-top: 1px solid var(--line);
        border-radius: 0;
        background: color-mix(in srgb, var(--surface) 98%, transparent);
        box-shadow: 0 -3px 12px rgba(64, 55, 53, 0.07);
      }

      body:has(.dashboard-mobile-view) .mobile-bottom-nav button {
        min-height: 58px;
      }

      body:has(.dashboard-mobile-view) .mobile-add-circle {
        width: 50px;
        height: 50px;
        margin-top: -13px;
      }

      body:has(.dashboard-mobile-view) .mobile-bottom-nav button[data-mobile-add] > span:last-child {
        color: var(--ink);
        font-size: 10px;
        font-weight: 500;
      }
    }

    @media (min-width: 600px) and (max-width: 1024px) {
      .dashboard-mobile-view {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .dashboard-mobile-hero,
      .dashboard-mobile-overview,
      .dashboard-mobile-lower-grid {
        grid-column: 1 / -1;
      }

      .dashboard-mobile-hero-copy {
        padding-left: 22px;
      }

      .dashboard-mobile-overview > button {
        min-height: 126px;
      }

      .dashboard-mobile-lower-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 360px) {
      .dashboard-mobile-hero h2 {
        font-size: 28px;
      }

      .dashboard-mobile-overview strong {
        font-size: 15px;
      }

      .dashboard-mobile-category-row {
        grid-template-columns: 32px minmax(58px, .8fr) minmax(42px, 1fr) auto 14px;
        gap: 6px;
      }

      .dashboard-mobile-lower-grid {
        grid-template-columns: minmax(0, 1fr);
      }
    }

    /* Shared mobile card system. Desktop rules remain unchanged. */
    @media (max-width: 1024px) {
      .sheet {
        padding-inline: 12px;
        gap: 14px;
      }

      .sheet-heading {
        padding: 4px 0 12px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
      }

      .sheet-heading:has([data-add="vendors"]) {
        display: flex;
        grid-template-columns: none;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
      }

      .sheet-heading h2 {
        font-size: 29px;
        line-height: 1.08;
        text-wrap: balance;
      }

      .sheet-heading p {
        margin-top: 6px;
        font-size: 14px;
        line-height: 1.45;
        text-wrap: pretty;
      }

      .sheet-heading .button.primary,
      .priority-mobile-add {
        width: 100%;
        min-height: 52px;
        justify-content: center;
        font-size: 16px;
      }

      .sheet-heading .button > svg {
        width: 18px;
        height: 18px;
        min-width: 18px;
        flex: 0 0 18px;
      }

      .sheet-heading .sheet-actions,
      .sheet-heading:has([data-add="vendors"]) .sheet-actions {
        width: 100%;
        margin-left: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }

      .sheet-heading .sheet-actions .button:only-child,
      .sheet-heading:has([data-add="vendors"]) .sheet-actions .button:only-child {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 52px;
        padding: 10px 14px;
        justify-content: center;
        font-size: 16px;
      }

      .budget-heading-add {
        display: inline-flex;
        order: -1;
      }

      .stat-grid,
      .priority-mobile-summary,
      .appointment-mobile-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border: 1px solid var(--line);
        border-radius: 8px;
        overflow: hidden;
        background: var(--surface);
      }

      .stat-grid .stat,
      .priority-mobile-summary-item,
      .appointment-mobile-stat {
        min-width: 0;
        min-height: 78px;
        padding: 12px;
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        text-align: left;
        background: var(--surface);
      }

      .stat-grid .stat:nth-child(2n),
      .priority-mobile-summary-item:nth-child(2n),
      .appointment-mobile-stat:nth-child(2n) {
        border-right: 0;
      }

      .stat-grid .stat:nth-last-child(-n + 2),
      .priority-mobile-summary-item:nth-last-child(-n + 2),
      .appointment-mobile-stat:nth-last-child(-n + 2) {
        border-bottom: 0;
      }

      .stat-grid .stat span,
      .priority-mobile-summary-item span,
      .appointment-mobile-stat span {
        min-height: 0;
        order: 1;
        color: var(--muted);
        font-family: var(--font-sans);
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
      }

      .stat-grid .stat strong,
      .priority-mobile-summary-item strong,
      .appointment-mobile-stat strong {
        max-width: 100%;
        margin-top: 7px;
        order: 2;
        color: var(--heading);
        font-family: var(--font-sans);
        font-size: 20px;
        font-weight: 750;
        line-height: 1.15;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .priority-mobile-summary-item .nav-icon {
        display: none;
      }

      .panel:has(.table-wrap),
      .priority-mobile-panel {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
      }

      .panel:has(.table-wrap) > .panel-title,
      .priority-mobile-panel-title {
        min-height: 0;
        padding: 0 0 8px;
        border: 0;
        background: transparent;
      }

      .panel:has(.table-wrap) > .panel-title h3,
      .priority-mobile-panel-title h3,
      .appointment-mobile-section > h3 {
        font-size: 18px;
        line-height: 1.25;
      }

      .panel:has(.table-wrap) > .panel-body,
      .priority-mobile-list {
        padding: 0;
      }

      .table-wrap,
      .table-wrap table,
      .table-wrap tbody {
        width: 100%;
        min-width: 0;
        overflow: visible;
      }

      .table-wrap tbody {
        display: grid;
        gap: 8px;
      }

      .table-wrap tbody tr[data-kind],
      .table-wrap tbody tr[data-kind]:nth-child(even) {
        width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: 1fr;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--surface);
      }

      .table-wrap tr > td.mobile-record-summary,
      .table-wrap tr:not(.is-mobile-expanded) > td.mobile-record-summary,
      .table-wrap tr.is-mobile-expanded > td.mobile-record-summary {
        grid-column: 1 / -1;
        min-height: 92px;
        padding: 11px 8px 11px 11px;
        border: 0;
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) 88px 44px;
        align-items: center;
        gap: 8px;
        background: var(--surface);
      }

      .table-wrap tr.is-mobile-expanded > td.mobile-record-summary {
        border-bottom: 1px solid var(--line);
      }

      .table-wrap td.mobile-record-summary::before {
        display: none;
        content: none;
      }

      .mobile-record-icon,
      .master-mobile-card-icon,
      .table-wrap .vendor-category-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border: 1px solid color-mix(in srgb, var(--rose) 26%, var(--line));
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: var(--rose-dark);
        background: var(--blush-soft);
      }

      .mobile-record-icon .nav-icon,
      .master-mobile-card-icon .nav-icon,
      .table-wrap .vendor-category-icon svg {
        width: 20px;
        height: 20px;
        color: inherit;
        stroke: currentColor;
      }

      .table-wrap .vendor-category-icon[data-vendor-icon-tone] {
        border-color: color-mix(in srgb, var(--rose) 26%, var(--line));
        color: var(--rose-dark);
        background: var(--blush-soft);
      }

      .mobile-record-copy {
        min-width: 0;
        gap: 3px;
      }

      .mobile-record-copy strong {
        min-width: 0;
        font-size: 14px;
        line-height: 1.25;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        white-space: normal;
      }

      .mobile-record-copy span {
        min-width: 0;
        font-size: 12px;
        line-height: 1.35;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .mobile-record-status,
      .task-mobile-priority,
      .priority-mobile-stage,
      .appointment-mobile-status {
        box-sizing: border-box;
        width: 88px;
        min-width: 88px;
        max-width: 88px;
        min-height: 30px;
        padding: 5px 7px;
        border-radius: 6px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        line-height: 1.15;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .mobile-record-status.is-empty {
        display: none;
      }

      .mobile-record-summary > .mobile-record-icon,
      .mobile-record-summary > .mobile-record-completion,
      .mobile-record-summary > .vendor-category-icon {
        grid-column: 1;
      }

      .mobile-record-completion {
        position: relative;
        width: 42px;
        height: 42px;
        min-width: 42px;
        padding: 0;
        border: 0;
        display: grid;
        place-items: center;
        color: var(--rose-dark);
        background: transparent;
        cursor: pointer;
      }

      .mobile-record-completion::before {
        box-sizing: border-box;
        width: 32px;
        height: 32px;
        border: 2px solid color-mix(in srgb, var(--rose-dark) 60%, var(--line));
        border-radius: 50%;
        content: "";
        background: var(--surface);
      }

      .mobile-record-completion svg {
        position: absolute;
        width: 17px;
        height: 17px;
        fill: none;
        stroke: #fff;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
        opacity: 0;
      }

      .mobile-record-completion.is-complete::before {
        border-color: var(--rose);
        background: var(--rose);
      }

      .mobile-record-completion.is-complete svg {
        opacity: 1;
      }

      .mobile-record-completion:focus-visible {
        outline: 3px solid var(--focus);
        outline-offset: 1px;
        border-radius: 50%;
      }

      .table-wrap tr.is-mobile-completed > td.mobile-record-summary {
        background: color-mix(in srgb, var(--surface) 82%, var(--surface-soft));
      }

      .table-wrap tr.is-mobile-completed .mobile-record-copy strong {
        color: var(--muted);
        text-decoration: line-through;
        text-decoration-thickness: 1px;
      }

      .table-wrap tr.is-mobile-completed .mobile-record-copy span {
        color: var(--faint);
      }

      .mobile-record-summary > .mobile-record-copy {
        grid-column: 2;
      }

      .mobile-record-summary > .mobile-record-status {
        grid-column: 3;
      }

      .mobile-record-summary > .mobile-record-menu-button {
        grid-column: 4;
      }

      .mobile-record-summary:has(.mobile-record-status.is-empty) > .mobile-record-copy {
        grid-column: 2 / 4;
      }

      .vendor-hub .table-wrap tr:not(.is-mobile-expanded) > td.mobile-record-summary {
        min-height: 92px;
      }

      .vendor-hub .mobile-record-status {
        width: 88px;
        min-width: 88px;
        max-width: 88px;
      }

      .vendor-hub .mobile-record-menu-button {
        width: 44px;
        min-width: 44px;
      }

      .vendor-hub .vendor-category-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
      }

      .mobile-upcoming-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border: 1px solid color-mix(in srgb, var(--rose) 26%, var(--line));
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: var(--rose-dark);
        background: var(--blush-soft);
      }

      .mobile-upcoming-icon .nav-icon {
        width: 20px;
        height: 20px;
      }

      .mini-row:has(.mobile-upcoming-icon) {
        min-height: 72px;
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
      }

      .mini-row-content {
        min-width: 0;
        display: block;
      }

      .smart-calendar-layout .mini-list {
        overflow: hidden;
        border-radius: 8px;
      }

      .smart-calendar-layout .mini-row:has(.mobile-upcoming-icon) {
        min-height: 70px;
        padding: 10px 12px;
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 11px;
        background: var(--surface);
      }

      .smart-calendar-layout .mobile-upcoming-icon {
        width: 24px;
        height: 24px;
        min-width: 24px;
        border: 0;
        border-radius: 0;
        background: transparent;
      }

      .smart-calendar-layout .mobile-upcoming-icon .nav-icon {
        width: 19px;
        height: 19px;
      }

      .smart-calendar-layout .mini-row-content {
        width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch;
        gap: 4px;
      }

      .smart-calendar-layout .mini-row-content > strong {
        min-width: 0;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 13px;
        line-height: 1.25;
        color: var(--heading);
      }

      .smart-calendar-layout .mini-row-content > .mini-row-meta {
        width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) max-content;
        align-items: baseline;
        gap: 10px;
        color: var(--muted);
        font-size: 10px;
        line-height: 1.35;
      }

      .smart-calendar-layout .mini-row-origin {
        min-width: 0;
        overflow: hidden;
        overflow-wrap: normal;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .smart-calendar-layout .mini-row-value {
        min-width: max-content;
        overflow-wrap: normal;
        word-break: normal;
        white-space: nowrap;
        color: var(--text-secondary);
        font-weight: 600;
      }

      .panel-title:has(+ .panel-body .mood-photo-settings) .button,
      .mood-photo-settings .button[data-photo-trigger] {
        display: none;
      }

      .mobile-record-menu-button {
        width: 44px;
        height: 44px;
        min-width: 44px;
        color: var(--text);
      }

      .mobile-record-menu-button[aria-expanded="true"] svg {
        transform: rotate(180deg);
      }

      .table-wrap tr.is-mobile-expanded:not(.is-mobile-editing) > td:not(.mobile-record-summary):not(.mobile-record-details):not(.cell-action) {
        display: none;
      }

      .mobile-record-details {
        grid-column: 1 / -1;
        padding: 12px;
        display: grid;
        gap: 9px;
        border: 0;
        background: var(--surface);
      }

      .mobile-record-details::before {
        display: none;
      }

      .mobile-record-detail {
        min-width: 0;
        display: grid;
        grid-template-columns: 22px 92px minmax(0, 1fr);
        align-items: start;
        gap: 7px;
        font-size: 13px;
        line-height: 1.35;
      }

      .mobile-record-detail > span:not(.mobile-detail-icon) {
        color: var(--muted);
      }

      .mobile-record-detail strong {
        min-width: 0;
        color: var(--text);
        font-weight: 500;
        overflow-wrap: anywhere;
      }

      .master-mobile-readonly-details {
        padding: 12px;
        display: grid;
        gap: 9px;
        border-top: 1px solid var(--line);
        background: var(--surface);
      }

      .master-mobile-readonly-details > div {
        min-width: 0;
        display: grid;
        grid-template-columns: 22px 92px minmax(0, 1fr);
        align-items: start;
        gap: 7px;
        font-size: 13px;
        line-height: 1.35;
      }

      .master-mobile-readonly-details > div > span:not(.mobile-detail-icon) {
        color: var(--muted);
      }

      .mobile-detail-icon {
        width: 22px;
        height: 20px;
        display: grid;
        place-items: start center;
        color: var(--text);
      }

      .mobile-detail-icon .nav-icon {
        width: 18px;
        height: 18px;
      }

      .priority-mobile-field > span,
      .task-mobile-field > span {
        display: flex;
        align-items: center;
        gap: 5px;
      }

      .priority-mobile-field > span .nav-icon,
      .task-mobile-field > span .nav-icon {
        width: 14px;
        height: 14px;
      }

      .master-mobile-readonly-details strong {
        min-width: 0;
        color: var(--text);
        font-weight: 500;
        overflow-wrap: anywhere;
      }

      .master-mobile-card-actions,
      .priority-mobile-actions,
      .task-mobile-actions {
        padding: 0 12px 12px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        background: var(--surface);
      }

      .master-mobile-card-actions .button,
      .priority-mobile-actions .button,
      .task-mobile-actions .button {
        width: 100%;
        min-height: 44px;
        justify-content: center;
      }

      .table-wrap tr.is-mobile-editing > td.mobile-primary-field,
      .table-wrap tr.is-mobile-editing > td.mobile-secondary-field {
        grid-column: 1 / -1;
        padding: 9px 12px;
        display: block;
        border: 0;
        border-bottom: 1px solid var(--line);
        background: var(--surface);
      }

      .table-wrap tr.is-mobile-completion-record.is-mobile-editing > td.mobile-record-summary {
        order: -10;
      }

      .table-wrap tr.is-mobile-completion-record.is-mobile-editing > td:has([data-field="item"]),
      .table-wrap tr.is-mobile-completion-record.is-mobile-editing > td:has([data-field="shot"]),
      .table-wrap tr.is-mobile-completion-record.is-mobile-editing > td:has([data-field="title"]) {
        order: -5;
      }

      .table-wrap tr.is-mobile-completion-record.is-mobile-editing > td:has([data-field="packed"]),
      .table-wrap tr.is-mobile-completion-record.is-mobile-editing > td:has([data-field="done"]) {
        order: 5;
      }

      .table-wrap tr.is-mobile-completion-record.is-mobile-editing.is-mobile-new > td:has([data-field="packed"]),
      .table-wrap tr.is-mobile-completion-record.is-mobile-editing.is-mobile-new > td:has([data-field="done"]) {
        display: none;
      }

      .table-wrap tr.is-mobile-completion-record.is-mobile-editing > td.cell-action {
        order: 10;
      }

      .table-wrap tr.is-mobile-expanded > td.cell-action,
      .table-wrap tr.is-mobile-actions-open:not(.is-mobile-expanded) > td.cell-action {
        grid-column: 1 / -1;
        margin: 0;
        padding: 0 12px 12px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        border: 0;
        background: var(--surface);
      }

      .table-wrap td.cell-action .button,
      .table-wrap td.cell-action .button:last-child {
        min-height: 44px;
        padding: 9px 10px;
        border: 1px solid var(--line-strong);
        border-radius: 7px;
        justify-content: center;
        color: var(--ink);
        background: var(--surface);
        text-align: center;
      }

      .table-wrap td.cell-action .mobile-row-toggle {
        border-color: var(--rose);
        color: #fff;
        background: var(--rose);
      }

      .table-wrap td.cell-action .button.danger {
        border-color: color-mix(in srgb, var(--danger) 48%, var(--line));
        color: var(--danger);
        background: var(--surface);
      }

      .table-tools {
        min-height: 38px;
        padding: 8px 4px 0;
        justify-content: flex-end;
      }

      .table-tools .button[data-add] {
        display: none;
      }

      .priority-mobile-panel-title {
        display: flex;
      }

      .priority-mobile-card,
      .task-mobile-card,
      .appointment-mobile-card {
        border: 1px solid var(--line);
        border-radius: 8px;
        overflow: hidden;
        background: var(--surface);
      }

      .priority-mobile-card-summary {
        min-height: 104px;
        padding: 11px 8px 11px 11px;
        grid-template-columns: 42px minmax(0, 1fr) 88px 44px;
        grid-template-areas:
          "icon title status toggle"
          "icon meta meta meta"
          "icon due due due";
        gap: 4px 8px;
      }

      .priority-mobile-main-icon {
        grid-area: icon;
      }

      .priority-mobile-toggle-icon {
        grid-area: toggle;
        width: 44px;
        height: 44px;
      }

      .priority-mobile-meta,
      .priority-mobile-due {
        font-size: 12px;
      }

      .priority-mobile-details,
      .task-mobile-card-editor,
      .appointment-mobile-editor {
        padding: 12px;
        border-top: 1px solid var(--line);
        background: var(--surface);
      }

      .priority-mobile-actions,
      .task-mobile-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }

      .priority-mobile-actions .button,
      .task-mobile-actions .button {
        width: 100%;
        min-height: 44px;
        justify-content: center;
      }

      .task-mobile-list {
        gap: 8px;
        overflow: visible;
        border: 0;
        background: transparent;
      }

      .task-mobile-card,
      .task-mobile-card:last-child {
        border-bottom: 1px solid var(--line);
      }

      .task-mobile-card-summary {
        min-height: 92px;
        grid-template-columns: 42px minmax(0, 1fr) 88px 44px;
        padding: 10px 8px 10px 11px;
        gap: 8px;
      }

      .task-mobile-check {
        width: 42px;
        height: 42px;
        position: relative;
        border: 0;
        border-radius: 50%;
        color: var(--rose-dark);
        background: transparent;
      }

      .task-mobile-check input {
        appearance: none;
        -webkit-appearance: none;
        width: 32px;
        height: 32px;
        border: 2px solid color-mix(in srgb, var(--rose-dark) 60%, var(--line));
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: var(--surface);
        cursor: pointer;
      }

      .task-mobile-check-icon {
        width: 14px;
        height: 14px;
        position: absolute;
        inset: 50% auto auto 50%;
        fill: none;
        stroke: #fff;
        stroke-width: 2.25;
        stroke-linecap: round;
        stroke-linejoin: round;
        pointer-events: none;
        opacity: 0;
        transform: translate(-50%, -50%) scale(.78);
        transition: opacity 120ms ease, transform 120ms ease;
      }

      .task-mobile-check input:checked {
        border-color: var(--rose);
        background: var(--rose);
      }

      .task-mobile-check input:checked + .task-mobile-check-icon {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
      }

      .task-mobile-check input:focus-visible {
        outline: 3px solid var(--focus);
        outline-offset: 2px;
      }

      .task-filter-chip {
        min-height: 44px;
      }

      .task-mobile-card-toggle {
        width: 44px;
        min-width: 44px;
      }

      .appointment-mobile-card-summary {
        min-height: 108px;
        grid-template-columns: 42px minmax(0, 1fr) 88px 44px;
        padding: 10px 8px 10px 11px;
      }

      .appointment-mobile-copy strong {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        white-space: normal;
      }

      .appointment-mobile-toggle {
        width: 44px;
        min-width: 44px;
        height: 44px;
      }

      .appointment-mobile-type-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
      }
    }

    @media (min-width: 600px) and (max-width: 1024px) {
      .table-wrap tbody,
      .priority-mobile-list,
      .task-mobile-list,
      .appointment-mobile-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
      }

      .table-wrap tbody tr.is-mobile-expanded,
      .priority-mobile-card.is-open,
      .task-mobile-card.is-open,
      .appointment-mobile-card.is-open {
        grid-column: 1 / -1;
      }
    }

    /* Home overview is a separate mobile destination from Wedding Dashboard. */
    .home-mobile-view {
      display: none;
    }

    @media (max-width: 1024px) {
      .sheet:has(.home-mobile-view) {
        padding: 2px 12px 20px;
        gap: 0;
      }

      .home-mobile-view {
        min-width: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
      }

      .home-mobile-hero,
      .home-mobile-progress,
      .home-mobile-upcoming,
      .home-mobile-venue {
        grid-column: 1 / -1;
      }

      .home-mobile-hero {
        padding: 5px 10px 11px;
        text-align: center;
      }

      .home-mobile-ornament {
        min-height: 26px;
        margin-bottom: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
      }

      .home-mobile-ornament::before,
      .home-mobile-ornament::after {
        width: 44px;
        height: 1px;
        content: "";
        background: color-mix(in srgb, var(--sage-dark) 40%, transparent);
      }

      .home-mobile-ornament .home-mobile-heart {
        width: 24px;
        height: 24px;
        color: var(--sage-dark);
        stroke-width: 1.65;
      }

      .home-mobile-hero h2 {
        margin: 0;
        color: var(--heading);
        font-family: var(--font-display);
        font-size: 34px;
        line-height: 1.04;
        letter-spacing: 0;
        text-wrap: balance;
      }

      .home-mobile-hero p {
        margin: 8px auto 0;
        max-width: 31ch;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.4;
      }

      .home-mobile-hero > strong {
        margin-top: 11px;
        display: block;
        color: var(--rose-dark);
        font-family: var(--font-display);
        font-size: 23px;
        line-height: 1.15;
      }

      .home-mobile-card {
        width: 100%;
        min-width: 0;
        border: 1px solid var(--line);
        border-radius: 8px;
        color: var(--ink);
        background: var(--surface);
        box-shadow: 0 4px 14px color-mix(in srgb, var(--heading) 7%, transparent);
        font: inherit;
        text-align: left;
        cursor: pointer;
      }

      .home-mobile-card:focus-visible {
        outline: 3px solid var(--focus);
        outline-offset: 2px;
      }

      .home-mobile-chevron {
        width: 22px;
        height: 22px;
        display: grid;
        place-items: center;
        color: var(--muted);
        flex: 0 0 22px;
      }

      .home-mobile-chevron svg {
        width: 18px;
        height: 18px;
      }

      .home-mobile-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border: 1px solid color-mix(in srgb, var(--rose) 24%, var(--line));
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: var(--rose-dark);
        background: var(--blush-soft);
      }

      .home-mobile-icon.is-sage {
        border-color: color-mix(in srgb, var(--sage-dark) 24%, var(--line));
        color: var(--sage-dark);
        background: var(--sage-soft);
      }

      .home-mobile-icon .nav-icon {
        width: 19px;
        height: 19px;
      }

      .home-mobile-progress {
        min-height: 104px;
        padding: 12px;
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr) 22px;
        align-items: center;
        gap: 12px;
      }

      .home-mobile-progress-ring {
        --home-progress: 0;
        position: relative;
        width: 72px;
        height: 72px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: conic-gradient(var(--success-deep) calc(var(--home-progress) * 1%), var(--rose) 0);
      }

      .home-mobile-progress-ring::after {
        position: absolute;
        inset: 7px;
        border-radius: 50%;
        content: "";
        background: var(--surface);
      }

      .home-mobile-progress-ring strong {
        position: relative;
        z-index: 1;
        color: var(--heading);
        font-family: var(--font-display);
        font-size: 23px;
        line-height: 1;
      }

      .home-mobile-progress-copy {
        min-width: 0;
      }

      .home-mobile-progress-copy h3,
      .home-mobile-upcoming h3,
      .home-mobile-venue h3 {
        margin: 0;
        color: var(--heading);
        font-family: var(--font-display);
        font-size: 18px;
        line-height: 1.2;
      }

      .home-mobile-progress-copy > span {
        margin-top: 4px;
        display: block;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.35;
      }

      .home-mobile-progress-copy > small {
        margin-top: 7px;
        display: block;
        color: var(--sage-dark);
        font-size: 11px;
        font-weight: 750;
        line-height: 1.3;
      }

      .home-mobile-metric {
        min-height: 136px;
        padding: 11px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
      }

      .home-mobile-card-heading {
        width: 100%;
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr) 20px;
        align-items: center;
        gap: 7px;
      }

      .home-mobile-card-heading h3 {
        margin: 0;
        min-width: 0;
        color: var(--heading);
        font-family: var(--font-display);
        font-size: 14px;
        line-height: 1.15;
      }

      .home-mobile-metric > strong {
        max-width: 100%;
        color: var(--heading);
        font-family: var(--font-display);
        font-size: 22px;
        line-height: 1.08;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .home-mobile-metric > span:not(.home-mobile-card-heading):not(.home-mobile-track),
      .home-mobile-metric > small {
        color: var(--muted);
        font-size: 11px;
        line-height: 1.3;
      }

      .home-mobile-metric[data-tab="budget"] > span:not(.home-mobile-card-heading):not(.home-mobile-track),
      .home-mobile-metric[data-tab="budget"] > small {
        font-size: 12px;
      }

      .home-mobile-metric > span.is-positive,
      .home-mobile-metric > small:last-child {
        color: var(--sage-dark);
        font-weight: 700;
      }

      .home-mobile-track {
        width: 100%;
        height: 6px;
        margin-top: auto;
        border-radius: 999px;
        overflow: hidden;
        background: var(--blush-soft);
      }

      .home-mobile-track span {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: var(--sage);
      }

      .home-mobile-upcoming {
        padding: 11px;
      }

      .home-mobile-upcoming .home-mobile-card-heading {
        grid-template-columns: 38px minmax(0, 1fr) 20px;
        gap: 7px;
      }

      .home-mobile-upcoming .home-mobile-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        justify-self: center;
      }

      .home-mobile-upcoming .home-mobile-icon .nav-icon {
        width: 19px;
        height: 19px;
      }

      .home-mobile-task-list {
        margin-top: 6px;
        display: grid;
      }

      .home-mobile-task-row {
        min-width: 0;
        padding: 7px 0;
        display: grid;
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 9px;
        border-top: 1px solid var(--line);
      }

      .home-mobile-task-row:first-child {
        border-top: 0;
      }

      .home-mobile-task-dot {
        width: 18px;
        height: 18px;
        margin-top: 1px;
        border: 2px solid var(--rose);
        border-radius: 50%;
      }

      .home-mobile-task-row strong,
      .home-mobile-task-row small {
        display: block;
        min-width: 0;
      }

      .home-mobile-task-row strong {
        color: var(--heading);
        font-size: 13px;
        line-height: 1.3;
        overflow-wrap: anywhere;
      }

      .home-mobile-task-row small,
      .home-mobile-empty {
        margin-top: 2px;
        color: var(--muted);
        font-size: 11px;
        line-height: 1.35;
      }

      .home-mobile-venue {
        min-height: 84px;
        padding: 9px;
        display: grid;
        grid-template-columns: 66px minmax(0, 1fr) 22px;
        align-items: center;
        gap: 10px;
      }

      .home-mobile-venue img {
        width: 66px;
        height: 62px;
        border-radius: 6px;
        display: block;
        object-fit: cover;
      }

      .home-mobile-venue-copy {
        min-width: 0;
      }

      .home-mobile-venue-copy > span {
        margin-top: 4px;
        display: flex;
        align-items: flex-start;
        gap: 6px;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.3;
      }

      .home-mobile-venue-copy .nav-icon {
        width: 15px;
        height: 15px;
        margin-top: 1px;
        flex: 0 0 15px;
      }

      .home-mobile-venue-copy small {
        margin-top: 3px;
        display: block;
        color: var(--muted);
        font-size: 11px;
      }

      body:has(.home-mobile-view) {
        min-height: 100dvh;
        padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 14px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scroll-padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 14px);
      }
    }

    @media (min-width: 600px) and (max-width: 1024px) {
      .home-mobile-view {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .home-mobile-hero,
      .home-mobile-progress {
        grid-column: 1 / -1;
      }

      .home-mobile-metric {
        grid-column: span 2;
      }

      .home-mobile-upcoming,
      .home-mobile-venue {
        grid-column: span 2;
      }
    }

    /* Global premium typography and semantic icon language. */
    body,
    button,
    input,
    select,
    textarea,
    output,
    table,
    nav {
      font-family: var(--font);
    }

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

    .brand h1,
    .sidebar-cover h2,
    .sheet-heading h2,
    .panel-title h3,
    .budget-breakdown-head h3,
    .task-next-heading h3,
    .summary-picker-heading h3,
    .calendar-dialog-header h3,
    .note-dialog-header h3,
    .seating-guest-tray h3,
    .seating-guest-dialog-header h3,
    .priority-mobile-panel-title h3,
    .appointment-mobile-section > h3,
    .dashboard-mobile-hero h2,
    .dashboard-mobile-panel-heading h3,
    .home-mobile-hero h2,
    .home-mobile-hero > strong {
      font-family: var(--font-display);
      font-weight: 400;
    }

    .budget-hero h3,
    .task-progress-heading strong,
    .task-mobile-progress-percent strong,
    .priority-mobile-summary-item strong,
    .dashboard-mobile-progress-ring strong,
    .dashboard-mobile-metric h3,
    .dashboard-mobile-metric > strong,
    .dashboard-mobile-countdown strong,
    .dashboard-mobile-overview strong,
    .home-mobile-progress-ring strong,
    .home-mobile-progress-copy h3,
    .home-mobile-upcoming h3,
    .home-mobile-venue h3,
    .home-mobile-card-heading h3,
    .home-mobile-metric > strong {
      font-family: var(--font);
    }

    .stat strong,
    .mini-total strong,
    .budget-hero h3,
    .ledger-row em,
    .task-progress-heading strong,
    .task-mobile-progress-percent strong,
    .priority-mobile-summary-item strong,
    .appointment-mobile-stat strong,
    .dashboard-mobile-countdown strong,
    .dashboard-mobile-overview strong,
    .dashboard-mobile-category-value,
    .home-mobile-progress-ring strong,
    .home-mobile-metric > strong {
      font-variant-numeric: tabular-nums;
    }

    .nav-icon {
      fill: none;
      stroke: currentColor;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .vendor-category-icon,
    .vendor-category-icon[data-vendor-icon-tone] {
      width: 40px;
      height: 40px;
      min-width: 40px;
      border-color: color-mix(in srgb, var(--rose) 26%, var(--line));
      color: var(--rose-dark);
      background: var(--blush-soft);
    }

    .vendor-category-icon svg {
      width: 20px;
      height: 20px;
      stroke-width: 1.8;
    }

    @media (max-width: 1024px) {
      .mobile-record-icon,
      .master-mobile-card-icon,
      .appointment-mobile-type-icon,
      .table-wrap .vendor-category-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-color: color-mix(in srgb, var(--rose) 26%, var(--line));
        color: var(--rose-dark);
        background: var(--blush-soft);
      }

      .mobile-record-icon .nav-icon,
      .master-mobile-card-icon .nav-icon,
      .appointment-mobile-type-icon .nav-icon,
      .table-wrap .vendor-category-icon .nav-icon {
        width: 20px;
        height: 20px;
      }

      .dashboard-mobile-overview .dashboard-mobile-icon,
      .home-mobile-metric .home-mobile-icon,
      .home-mobile-metric .home-mobile-icon.is-sage {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-color: color-mix(in srgb, var(--rose) 26%, var(--line));
        color: var(--rose-dark);
        background: var(--blush-soft);
      }

      .dashboard-mobile-overview .dashboard-mobile-icon .nav-icon,
      .home-mobile-metric .home-mobile-icon .nav-icon {
        width: 20px;
        height: 20px;
      }

      .guest-mobile-top {
        min-width: 0;
        display: grid;
        gap: 10px;
      }

      .guest-mobile-title-row {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
      }

      .guest-mobile-title-row h2 {
        margin: 0;
        color: var(--rose-dark);
        font-family: var(--font-display);
        font-size: 27px;
        font-weight: 400;
        line-height: 1.1;
      }

      .guest-mobile-add,
      .guest-mobile-filter {
        position: relative;
        width: 44px;
        height: 44px;
        min-width: 44px;
        padding: 0;
        border: 1px solid var(--line);
        border-radius: 8px;
        display: grid;
        place-items: center;
        color: var(--rose-dark);
        background: var(--surface);
      }

      .guest-mobile-filter {
        overflow: hidden;
      }

      .guest-mobile-add {
        cursor: pointer;
      }

      .guest-mobile-add:focus-visible,
      .guest-mobile-filter:focus-within {
        outline: 0;
        border-color: var(--rose-dark);
        box-shadow: 0 0 0 2px var(--focus);
      }

      .guest-mobile-add .nav-icon,
      .guest-mobile-filter .nav-icon {
        width: 20px;
        height: 20px;
      }

      .guest-mobile-summary {
        min-width: 0;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--surface);
      }

      .guest-mobile-summary h3 {
        margin: 0;
        padding: 10px 12px 8px;
        border-bottom: 1px solid var(--line);
        color: var(--rose-dark);
        font-family: var(--font-sans);
        font-size: 11px;
        font-weight: 750;
        line-height: 1.2;
        text-transform: uppercase;
      }

      .guest-mobile-metrics {
        min-width: 0;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        border-bottom: 1px solid var(--line);
      }

      .guest-mobile-metrics > div {
        min-width: 0;
        min-height: 58px;
        padding: 9px 5px 8px;
        border-right: 1px solid var(--line);
        display: flex;
        flex-direction: column;
        gap: 3px;
        align-items: center;
        justify-content: center;
        text-align: center;
      }

      .guest-mobile-metrics > div:last-child {
        border-right: 0;
      }

      .guest-mobile-metrics strong {
        color: var(--heading);
        font-size: 18px;
        font-weight: 750;
        line-height: 1;
        font-variant-numeric: tabular-nums;
      }

      .guest-mobile-metrics span {
        max-width: 100%;
        color: var(--muted);
        font-size: 9px;
        font-weight: 650;
        line-height: 1.15;
        white-space: nowrap;
      }

      .guest-mobile-attendance {
        min-width: 0;
        padding: 12px 14px;
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        align-items: center;
        gap: 18px;
      }

      .guest-mobile-ring {
        --guest-ring-size: 82px;
        width: var(--guest-ring-size);
        height: var(--guest-ring-size);
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: conic-gradient(
          var(--sage-dark) 0 calc(var(--guest-attending) * 1%),
          var(--rose-dark) calc(var(--guest-attending) * 1%) calc(var(--guest-not-attending-end) * 1%),
          var(--taupe) calc(var(--guest-not-attending-end) * 1%) 100%
        );
      }

      .guest-mobile-ring.is-empty {
        background: var(--blush-soft);
      }

      .guest-mobile-ring::before {
        grid-area: 1 / 1;
        width: 62px;
        height: 62px;
        border-radius: 50%;
        content: "";
        background: var(--surface);
      }

      .guest-mobile-ring span {
        z-index: 1;
        grid-area: 1 / 1;
        display: grid;
        justify-items: center;
        gap: 1px;
      }

      .guest-mobile-ring strong {
        color: var(--heading);
        font-size: 17px;
        line-height: 1;
        font-variant-numeric: tabular-nums;
      }

      .guest-mobile-ring small {
        color: var(--muted);
        font-size: 9px;
        line-height: 1.1;
      }

      .guest-mobile-legend {
        min-width: 0;
        display: grid;
        gap: 7px;
      }

      .guest-mobile-legend > div {
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.2;
      }

      .guest-mobile-legend span {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 7px;
      }

      .guest-mobile-legend span::before {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        flex: 0 0 7px;
        content: "";
        background: var(--sage-dark);
      }

      .guest-mobile-legend [data-guest-tone="no"] span::before {
        background: var(--rose-dark);
      }

      .guest-mobile-legend [data-guest-tone="pending"] span::before {
        background: var(--taupe);
      }

      .guest-mobile-legend strong {
        color: var(--heading);
        font-size: 12px;
        font-weight: 750;
        font-variant-numeric: tabular-nums;
      }

      .guest-mobile-tools {
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        align-items: center;
        gap: 8px;
      }

      .guest-mobile-search {
        min-width: 0;
        height: 44px;
        padding: 0 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 9px;
        color: var(--muted);
        background: var(--surface);
      }

      .guest-mobile-search:focus-within {
        border-color: var(--rose-dark);
        box-shadow: 0 0 0 2px var(--focus);
      }

      .guest-mobile-search .nav-icon {
        width: 17px;
        height: 17px;
        min-width: 17px;
      }

      .guest-mobile-search input {
        min-width: 0;
        width: 100%;
        height: 40px;
        padding: 0;
        border: 0;
        outline: 0;
        color: var(--ink);
        background: transparent;
        font-size: 14px;
      }

      .guest-mobile-search input::placeholder {
        color: var(--faint);
        opacity: 1;
      }

      .guest-mobile-filter select {
        position: absolute;
        inset: 0;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        -webkit-appearance: none;
        appearance: none;
        cursor: pointer;
        opacity: 0;
      }

      .table-wrap tr.is-guest-filtered-out {
        display: none !important;
      }

      .sheet:has(.budget-mobile-summary) .sheet-heading {
        padding-bottom: 0;
      }

      .sheet:has(.budget-mobile-summary) .sheet-heading .sheet-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .sheet:has(.budget-mobile-summary) .sheet-heading .sheet-actions .button {
        min-width: 0;
        width: 100%;
        min-height: 48px;
        padding: 9px 10px;
        justify-content: center;
        font-size: 14px;
      }

      .sheet:has(.budget-mobile-summary) .sheet-heading .dashboard-cta {
        border-color: transparent;
        color: var(--white);
        background: var(--sage);
      }

      .sheet:has(.budget-mobile-summary) .sheet-heading .dashboard-cta:hover,
      .sheet:has(.budget-mobile-summary) .sheet-heading .dashboard-cta:focus-visible {
        border-color: transparent;
        color: var(--white);
        background: var(--sage-dark);
      }

      .budget-mobile-summary {
        min-width: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }

      .budget-mobile-stat {
        min-width: 0;
        min-height: 68px;
        padding: 10px;
        border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
        border-radius: 8px;
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr);
        align-items: center;
        gap: 9px;
        background: var(--surface);
      }

      .budget-mobile-stat-icon {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: var(--ink-soft);
        background: #F2F2F0;
      }

      .budget-mobile-stat-icon .nav-icon {
        width: 18px;
        height: 18px;
      }

      .budget-mobile-stat > span:last-child {
        min-width: 0;
        display: grid;
        gap: 4px;
      }

      .budget-mobile-stat small,
      .budget-mobile-stat strong {
        min-width: 0;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .budget-mobile-stat small {
        color: var(--muted);
        font-size: 10px;
        font-weight: 600;
        line-height: 1.15;
      }

      .budget-mobile-stat strong {
        color: var(--heading);
        font-size: 15px;
        font-weight: 750;
        line-height: 1.15;
        font-variant-numeric: tabular-nums;
      }

      .budget-mobile-stat.is-paid .budget-mobile-stat-icon {
        color: var(--sage-dark);
        background: var(--sage-soft);
      }

      .budget-mobile-stat.is-over .budget-mobile-stat-icon {
        color: var(--danger);
        background: color-mix(in srgb, var(--blush-soft) 58%, var(--surface));
      }

      body:has(.budget-mobile-dashboard-view) .topbar {
        display: none;
      }

      body:has(.budget-mobile-dashboard-view) .workbook {
        min-height: calc(100svh - var(--mobile-nav-height));
      }

      .sheet:has(.budget-mobile-dashboard-view) {
        padding: 0 12px 24px;
        gap: 0;
      }

      .budget-mobile-dashboard-view {
        width: 100%;
        max-width: 620px;
        margin: 0 auto;
        display: grid;
        gap: 10px;
      }

      .budget-mobile-dashboard-header {
        min-height: 62px;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        align-items: center;
        gap: 8px;
        border-bottom: 1px solid var(--line);
      }

      .budget-mobile-dashboard-header button {
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 8px;
        display: grid;
        place-items: center;
        color: var(--ink);
        background: transparent;
        cursor: pointer;
      }

      .budget-mobile-dashboard-header button:last-child {
        border: 1px solid var(--line);
        background: var(--surface);
      }

      .budget-mobile-dashboard-header button:focus-visible {
        outline: 2px solid var(--rose);
        outline-offset: -2px;
      }

      .budget-mobile-dashboard-header button svg {
        width: 20px;
        height: 20px;
      }

      .budget-mobile-dashboard-header > div {
        min-width: 0;
      }

      .budget-mobile-dashboard-header h2,
      .budget-mobile-dashboard-header p {
        margin: 0;
      }

      .budget-mobile-dashboard-header h2 {
        color: var(--heading);
        font-family: var(--font-display);
        font-size: 20px;
        font-weight: 400;
        line-height: 1.15;
      }

      .budget-mobile-dashboard-header p {
        margin-top: 2px;
        color: var(--muted);
        font-size: 10px;
        line-height: 1.2;
      }

      .budget-mobile-dashboard-hero {
        min-width: 0;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 8px;
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        align-items: center;
        gap: 10px 16px;
        background: var(--surface);
      }

      .budget-mobile-dashboard-ring {
        width: 92px;
        height: 92px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: conic-gradient(
          var(--sage-dark) 0 calc(var(--budget-paid) * 1%),
          var(--rose) calc(var(--budget-paid) * 1%) calc(var(--budget-used) * 1%),
          var(--blush-soft) calc(var(--budget-used) * 1%) 100%
        );
      }

      .budget-mobile-dashboard-ring::before {
        grid-area: 1 / 1;
        width: 68px;
        height: 68px;
        border-radius: 50%;
        content: "";
        background: var(--surface);
      }

      .budget-mobile-dashboard-ring > span {
        z-index: 1;
        grid-area: 1 / 1;
        display: grid;
        justify-items: center;
        gap: 2px;
      }

      .budget-mobile-dashboard-ring strong {
        color: var(--heading);
        font-size: 23px;
        font-weight: 750;
        line-height: 1;
        font-variant-numeric: tabular-nums;
      }

      .budget-mobile-dashboard-ring small {
        color: var(--muted);
        font-size: 10px;
        line-height: 1;
      }

      .budget-mobile-dashboard-balance {
        min-width: 0;
        display: grid;
        gap: 5px;
      }

      .budget-mobile-dashboard-balance strong {
        min-width: 0;
        overflow: hidden;
        color: var(--rose-dark);
        font-family: var(--font-display);
        font-size: 25px;
        font-weight: 400;
        line-height: 1.05;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .budget-mobile-dashboard-balance span {
        color: var(--muted);
        font-size: 12px;
        line-height: 1.35;
      }

      .budget-mobile-dashboard-meter {
        grid-column: 1 / -1;
        height: 10px;
        overflow: hidden;
        border-radius: 999px;
        background: var(--blush-soft);
      }

      .budget-mobile-dashboard-meter span {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: var(--rose);
      }

      .budget-mobile-dashboard-ring-legend {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
      }

      .budget-mobile-dashboard-ring-legend > span {
        min-width: 0;
        display: grid;
        grid-template-columns: 8px minmax(0, 1fr) auto;
        align-items: center;
        gap: 4px;
        color: var(--muted);
        font-size: 9px;
        line-height: 1.2;
      }

      .budget-mobile-dashboard-ring-legend i {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--blush-soft);
      }

      .budget-mobile-dashboard-ring-legend [data-budget-segment="paid"] i {
        background: var(--sage-dark);
      }

      .budget-mobile-dashboard-ring-legend [data-budget-segment="due"] i {
        background: var(--rose);
      }

      .budget-mobile-dashboard-ring-legend b {
        min-width: 0;
        overflow: hidden;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .budget-mobile-dashboard-ring-legend small {
        color: var(--heading);
        font-size: inherit;
        font-variant-numeric: tabular-nums;
      }

      .budget-mobile-dashboard-totals {
        min-width: 0;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
      }

      .budget-mobile-dashboard-totals > div {
        min-width: 0;
        min-height: 86px;
        padding: 9px 7px;
        border: 1px solid var(--line);
        border-radius: 8px;
        display: grid;
        align-content: center;
        gap: 3px;
        background: var(--surface);
      }

      .budget-mobile-dashboard-totals > div > span {
        width: 28px;
        height: 28px;
        margin-bottom: 2px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: var(--rose-dark);
        background: var(--blush-soft);
      }

      .budget-mobile-dashboard-totals > div > span.is-paid {
        color: var(--sage-dark);
        background: var(--sage-soft);
      }

      .budget-mobile-dashboard-totals .nav-icon {
        width: 15px;
        height: 15px;
      }

      .budget-mobile-dashboard-totals strong,
      .budget-mobile-dashboard-totals small {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .budget-mobile-dashboard-totals strong {
        color: var(--heading);
        font-size: 12px;
        font-weight: 750;
        font-variant-numeric: tabular-nums;
      }

      .budget-mobile-dashboard-totals small {
        color: var(--muted);
        font-size: 9px;
      }

      .budget-mobile-dashboard-breakdown {
        min-width: 0;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--surface);
      }

      .budget-mobile-dashboard-breakdown-title {
        min-height: 48px;
        padding: 9px 12px;
        border-bottom: 1px solid var(--line);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
      }

      .budget-mobile-dashboard-breakdown-title h3 {
        margin: 0;
        color: var(--heading);
        font-family: var(--font-display);
        font-size: 18px;
        font-weight: 400;
        line-height: 1.2;
      }

      .budget-mobile-dashboard-breakdown-title button {
        min-height: 36px;
        padding: 5px 0 5px 8px;
        border: 0;
        display: inline-flex;
        align-items: center;
        gap: 3px;
        color: var(--rose-dark);
        background: transparent;
        font: inherit;
        font-size: 11px;
        cursor: pointer;
      }

      .budget-mobile-dashboard-breakdown-title button svg {
        width: 14px;
        height: 14px;
      }

      .budget-mobile-dashboard-category-list {
        padding: 6px 12px 10px;
        display: grid;
      }

      .budget-mobile-dashboard-category {
        min-width: 0;
        min-height: 44px;
        display: grid;
        grid-template-columns: 32px minmax(62px, .8fr) 32px minmax(48px, 1fr) minmax(66px, auto);
        align-items: center;
        gap: 7px;
        border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
      }

      .budget-mobile-dashboard-category:last-child {
        border-bottom: 0;
      }

      .budget-mobile-dashboard-category-icon {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: var(--rose-dark);
        background: var(--blush-soft);
      }

      .budget-mobile-dashboard-category-icon .nav-icon {
        width: 16px;
        height: 16px;
      }

      .budget-mobile-dashboard-category > strong,
      .budget-mobile-dashboard-share,
      .budget-mobile-dashboard-value {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .budget-mobile-dashboard-category > strong {
        color: var(--heading);
        font-size: 12px;
        font-weight: 650;
      }

      .budget-mobile-dashboard-share {
        color: var(--muted);
        font-size: 10px;
        text-align: right;
        font-variant-numeric: tabular-nums;
      }

      .budget-mobile-dashboard-track {
        height: 7px;
        overflow: hidden;
        border-radius: 999px;
        background: var(--surface-soft);
      }

      .budget-mobile-dashboard-track span {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: var(--rose);
      }

      .budget-mobile-dashboard-value {
        color: var(--heading);
        font-size: 11px;
        text-align: right;
        font-variant-numeric: tabular-nums;
      }
    }

    /* Task Tracker phone refinement: same behavior, calmer proportions. */
    @media (max-width: 599px) {
      body:has(.task-mobile-panel) .sheet {
        padding: 18px 16px 30px;
        gap: 18px;
      }

      body:has(.task-mobile-panel) .sheet-heading {
        padding: 4px 0 2px;
        gap: 18px;
        border-bottom: 0;
      }

      body:has(.task-mobile-panel) .sheet-heading h2 {
        font-size: 35px;
        line-height: 1.04;
      }

      body:has(.task-mobile-panel) .sheet-heading p {
        max-width: 340px;
        margin-top: 8px;
        font-size: 15px;
        line-height: 1.45;
      }

      body:has(.task-mobile-panel) .sheet-heading .sheet-actions {
        gap: 10px;
      }

      body:has(.task-mobile-panel) .sheet-heading .sheet-actions .button {
        min-height: 52px;
        border-radius: 7px;
        font-family: var(--font-display);
        font-size: 18px;
        font-weight: 400;
      }

      body:has(.task-mobile-panel) .task-mobile-panel {
        gap: 16px;
      }

      body:has(.task-mobile-panel) .task-mobile-filters {
        gap: 9px 10px;
        padding: 0;
      }

      body:has(.task-mobile-panel) .task-filter-chip {
        width: 100%;
        min-width: 0;
        max-width: none;
        min-height: 42px;
        padding: 8px 6px;
        border-color: color-mix(in srgb, var(--line) 82%, transparent);
        color: var(--ink);
        background: var(--surface);
        font-size: 12px;
        font-weight: 500;
      }

      body:has(.task-mobile-panel) .task-filter-chip[aria-pressed="true"] {
        border-color: var(--rose);
        color: var(--rose-dark);
        background: color-mix(in srgb, var(--blush-soft) 72%, var(--surface));
        font-weight: 700;
      }

      body:has(.task-mobile-panel) .task-mobile-list {
        gap: 7px;
      }

      body:has(.task-mobile-panel) .task-mobile-card,
      body:has(.task-mobile-panel) .task-mobile-card:last-child {
        border-color: color-mix(in srgb, var(--line) 84%, transparent);
        border-radius: 8px;
        background: var(--surface);
        box-shadow: 0 2px 7px rgba(64, 55, 53, 0.045);
      }

      body:has(.task-mobile-panel) .task-mobile-card.is-completed {
        background: color-mix(in srgb, var(--blush-soft) 38%, var(--surface));
      }

      body:has(.task-mobile-panel) .task-mobile-card.is-completed .task-mobile-card-summary {
        opacity: .84;
      }

      body:has(.task-mobile-panel) .task-mobile-card-summary {
        min-height: 82px;
        grid-template-columns: 36px minmax(0, 1fr) 74px 28px;
        gap: 8px;
        padding: 8px 8px 8px 10px;
      }

      body:has(.task-mobile-panel) .task-mobile-check {
        width: 36px;
        height: 36px;
      }

      body:has(.task-mobile-panel) .task-mobile-check input {
        width: 28px;
        height: 28px;
      }

      body:has(.task-mobile-panel) .task-mobile-card-copy {
        padding: 4px 0;
      }

      body:has(.task-mobile-panel) .task-mobile-card-copy strong {
        font-size: 14px;
        line-height: 1.28;
      }

      body:has(.task-mobile-panel) .task-mobile-card-copy span {
        margin-top: 5px;
        font-size: 12px;
        line-height: 1.35;
      }

      body:has(.task-mobile-panel) .task-mobile-priority {
        width: 74px;
        min-height: 30px;
        padding: 5px 7px;
        border-radius: 6px;
        font-size: 11px;
        font-weight: 500;
      }

      body:has(.task-mobile-panel) .task-mobile-card-toggle {
        width: 28px;
        min-width: 28px;
        height: 36px;
        color: var(--ink);
      }

      body:has(.task-mobile-panel) .task-mobile-card-toggle svg {
        width: 15px;
        height: 15px;
      }

      /* Shared mobile card end cap: status pill + disclosure chevron. */
      .table-wrap tr > td.mobile-record-summary,
      .table-wrap tr:not(.is-mobile-expanded) > td.mobile-record-summary,
      .table-wrap tr.is-mobile-expanded > td.mobile-record-summary,
      .appointment-mobile-card-summary,
      .priority-mobile-card-summary {
        grid-template-columns: 42px minmax(0, 1fr) 88px 28px;
        column-gap: 8px;
        padding-right: 8px;
      }

      body:has(.task-mobile-panel) .task-mobile-card-summary {
        grid-template-columns: 36px minmax(0, 1fr) 88px 28px;
        column-gap: 8px;
        padding-right: 8px;
      }

      .mobile-record-status,
      .appointment-mobile-status,
      .priority-mobile-stage,
      body:has(.task-mobile-panel) .task-mobile-priority {
        width: 88px;
        min-width: 88px;
        max-width: 88px;
      }

      .mobile-record-menu-button,
      .vendor-hub .mobile-record-menu-button,
      .appointment-mobile-toggle,
      .priority-mobile-toggle-icon,
      body:has(.task-mobile-panel) .task-mobile-card-toggle {
        width: 28px;
        min-width: 28px;
        height: 36px;
      }

      .mobile-seating-overview-heading {
        grid-template-columns: 42px minmax(0, 1fr) auto 28px;
        column-gap: 8px;
        padding-right: 8px;
      }

      .mobile-seating-overview-toggle {
        width: 28px;
        min-width: 28px;
        height: 36px;
        min-height: 36px;
      }

      .priorities-mobile-view {
        gap: 10px;
      }

      .sheet:has(.priorities-mobile-view) {
        padding-right: 16px;
        padding-left: 16px;
      }

      .priorities-mobile-view > .sheet-heading {
        padding: 2px 0 8px;
        border-bottom: 0;
      }

      .priorities-mobile-view > .sheet-heading h2 {
        font-size: 25px;
        line-height: 1.08;
      }

      .priorities-mobile-view > .sheet-heading p {
        margin-top: 3px;
        font-size: 12px;
        line-height: 1.4;
      }

      .priority-mobile-add {
        min-height: 42px;
        margin-top: 10px;
        font-size: 14px;
      }

      .priority-mobile-summary-item {
        min-height: 72px;
        padding: 8px 4px;
        align-items: center;
        justify-content: center;
        border-right: 1px solid var(--line);
        border-bottom: 0;
        text-align: center;
      }

      .priority-mobile-summary-item span {
        min-height: 0;
        margin-top: 4px;
        order: 2;
        font-size: 11px;
        font-weight: 600;
      }

      .priority-mobile-summary-item strong {
        margin-top: 0;
        order: 1;
        font-size: 20px;
        font-weight: 750;
      }

      .priority-mobile-summary {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .priority-mobile-summary-item:nth-child(2n) {
        border-right: 1px solid var(--line);
      }

      .priority-mobile-summary-item:last-child {
        border-right: 0;
      }

      .priority-mobile-panel-title {
        padding-bottom: 4px;
      }

      .priority-mobile-panel-title h3 {
        font-size: 18px;
      }

      .priority-mobile-list {
        gap: 8px;
      }

      .priority-mobile-card-summary {
        min-height: 92px;
        padding: 8px 6px 8px 10px;
        grid-template-columns: 52px minmax(0, 1fr) 70px 22px;
        grid-template-rows: repeat(3, auto);
        gap: 3px 6px;
      }

      .priority-mobile-main-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        justify-self: center;
        border-color: color-mix(in srgb, var(--rose) 18%, var(--line));
        background: color-mix(in srgb, var(--blush-soft) 82%, var(--surface));
      }

      .priority-mobile-main-icon .nav-icon {
        width: 16px;
        height: 16px;
      }

      .priority-mobile-card-summary > strong {
        font-family: var(--font-display);
        font-size: 17px;
        font-weight: 400;
        line-height: 1.15;
      }

      .priority-mobile-meta,
      .priority-mobile-due {
        font-size: 11px;
      }

      .priority-mobile-due {
        gap: 6px;
      }

      .priority-mobile-due .nav-icon {
        width: 14px;
        height: 14px;
        flex-basis: 14px;
      }

      .priority-mobile-stage {
        width: 70px;
        min-width: 70px;
        max-width: 70px;
        min-height: 26px;
        padding: 4px 6px;
        font-size: 11px;
        align-self: center;
      }

      .priority-mobile-toggle-icon {
        width: 22px;
        min-width: 22px;
        height: 28px;
        align-self: center;
      }

      .priority-mobile-importance[data-tone="high"] {
        color: var(--rose-dark);
        font-weight: 700;
      }

      .priority-mobile-importance[data-tone="normal"] {
        color: var(--rose-dark);
        font-weight: 700;
      }

      .priority-mobile-toggle-icon svg {
        width: 14px;
        height: 14px;
      }

      .priority-mobile-card.is-open .priority-mobile-toggle-icon svg {
        transform: rotate(90deg);
      }

      /* Keep every mobile disclosure card aligned with the compact Priorities card. */
      .table-wrap tr > td.mobile-record-summary,
      .table-wrap tr:not(.is-mobile-expanded) > td.mobile-record-summary,
      .table-wrap tr.is-mobile-expanded > td.mobile-record-summary,
      .vendor-hub .table-wrap tr:not(.is-mobile-expanded) > td.mobile-record-summary,
      .appointment-mobile-card-summary,
      body:has(.task-mobile-panel) .task-mobile-card-summary {
        min-height: 92px;
        padding: 8px 6px 8px 10px;
        grid-template-columns: 52px minmax(0, 1fr) 70px 22px;
        column-gap: 6px;
        row-gap: 3px;
      }

      .vendor-hub .table-wrap tr:not(.is-mobile-expanded) > td.mobile-record-summary {
        border: 0;
        border-radius: 0;
      }

      .mobile-record-icon,
      .table-wrap .vendor-category-icon,
      .vendor-hub .vendor-category-icon,
      .appointment-mobile-type-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        justify-self: center;
        border-color: color-mix(in srgb, var(--rose) 18%, var(--line));
        background: color-mix(in srgb, var(--blush-soft) 82%, var(--surface));
      }

      .mobile-record-icon .nav-icon,
      .table-wrap .vendor-category-icon svg,
      .vendor-hub .vendor-category-icon svg,
      .appointment-mobile-type-icon svg,
      .appointment-mobile-type-icon .nav-icon {
        width: 16px;
        height: 16px;
      }

      .mobile-record-summary > .mobile-record-completion {
        width: 36px;
        height: 36px;
        min-width: 36px;
        justify-self: center;
      }

      .mobile-record-completion::before {
        width: 28px;
        height: 28px;
      }

      .mobile-record-completion svg {
        width: 15px;
        height: 15px;
      }

      .mobile-record-status,
      .vendor-hub .mobile-record-status,
      .appointment-mobile-status,
      body:has(.task-mobile-panel) .task-mobile-priority {
        width: 70px;
        min-width: 70px;
        max-width: 70px;
        min-height: 26px;
        padding: 4px 6px;
        font-size: 11px;
      }

      .mobile-record-menu-button,
      .vendor-hub .mobile-record-menu-button,
      .appointment-mobile-toggle,
      body:has(.task-mobile-panel) .task-mobile-card-toggle {
        width: 22px;
        min-width: 22px;
        height: 28px;
      }

      .mobile-record-menu-button svg,
      .appointment-mobile-toggle svg,
      body:has(.task-mobile-panel) .task-mobile-card-toggle svg {
        width: 14px;
        height: 14px;
      }

      body:has(.task-mobile-panel) .task-mobile-check {
        width: 36px;
        height: 36px;
        justify-self: center;
      }

      body:has(.task-mobile-panel) .task-mobile-check input {
        width: 28px;
        height: 28px;
      }

      .mobile-seating-overview-heading {
        padding: 8px 6px 8px 10px;
        grid-template-columns: 52px minmax(0, 1fr) auto 22px;
        column-gap: 6px;
      }

      .mobile-seating-table-icon {
        width: 36px;
        height: 36px;
        justify-self: center;
      }

      .mobile-seating-table-icon svg {
        width: 18px;
        height: 18px;
      }

      .mobile-seating-overview-toggle {
        width: 22px;
        min-width: 22px;
        height: 28px;
        min-height: 28px;
      }
    }

    .note-dialog-title-icon {
      width: 32px;
      height: 32px;
      min-width: 32px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: var(--rose-dark);
      background: var(--blush-soft);
    }

    .note-dialog-title-icon .nav-icon {
      width: 17px;
      height: 17px;
    }

    .note-expand-button .nav-icon {
      width: 17px;
      height: 17px;
      margin: auto;
    }

    @media (max-width: 1024px) {
      .mobile-note-popup-field,
      .master-mobile-readonly-details > .master-mobile-note-detail {
        min-width: 0;
      }

      .mobile-note-popup-field .notes-cell-inner {
        width: 100%;
        min-width: 0;
      }

      .master-mobile-readonly-details > .master-mobile-note-detail {
        display: block;
      }

      .master-mobile-note-button,
      .mobile-record-note-button {
        width: 100%;
        min-width: 0;
        padding: 0;
        border: 0;
        color: inherit;
        background: transparent;
        font: inherit;
        text-align: left;
        cursor: pointer;
      }

      .master-mobile-note-button {
        display: grid;
        grid-template-columns: 22px 92px minmax(0, 1fr);
        align-items: start;
        gap: 7px;
        font-size: 13px;
        line-height: 1.35;
      }

      .master-mobile-note-button > span:not(.mobile-detail-icon),
      .mobile-record-note-button > span:not(.mobile-detail-icon) {
        color: var(--muted);
      }

      .master-mobile-note-button strong,
      .mobile-record-note-button strong {
        min-width: 0;
        color: var(--text);
        font-weight: 500;
        overflow-wrap: anywhere;
      }

      .master-mobile-note-button:focus-visible,
      .mobile-record-note-button:focus-visible {
        outline: 2px solid var(--rose);
        outline-offset: 3px;
      }

      .appointment-mobile-detail-row,
      .mobile-record-detail,
      .master-mobile-readonly-details > div,
      .master-mobile-note-button {
        grid-template-columns: 22px 92px minmax(0, 1fr);
        align-items: start;
        column-gap: 7px;
      }

      .appointment-mobile-detail-row > span:not(.mobile-detail-icon),
      .mobile-record-detail > span:not(.mobile-detail-icon),
      .master-mobile-readonly-details > div > span:not(.mobile-detail-icon),
      .master-mobile-note-button > span:not(.mobile-detail-icon) {
        min-width: 0;
        white-space: nowrap;
      }

      .appointment-mobile-detail-row strong,
      .mobile-record-detail strong,
      .master-mobile-readonly-details strong,
      .master-mobile-note-button strong {
        min-width: 0;
        text-align: left;
        word-break: normal;
        overflow-wrap: break-word;
      }
    }

    /* Moodboard mobile: editorial rows with the existing planner controls. */
    @media (max-width: 1024px) {
      body:has(.mood-mobile-view) .sheet {
        padding: 18px 16px 30px;
        gap: 0;
      }

      .mood-mobile-view {
        min-width: 0;
        display: grid;
        gap: 18px;
      }

      .mood-mobile-view > .sheet-heading {
        padding: 4px 0 0;
        border: 0;
      }

      .mood-mobile-view > .sheet-heading h2 {
        font-size: 35px;
        line-height: 1.04;
      }

      .mood-mobile-view > .sheet-heading p {
        max-width: 350px;
        margin-top: 8px;
        font-size: 15px;
        line-height: 1.45;
      }

      .mood-mobile-view > .sheet-heading .sheet-actions {
        width: 100%;
        margin-top: 18px;
      }

      .mood-mobile-view > .sheet-heading .sheet-actions .button {
        width: 100%;
        min-height: 52px;
        border-radius: 7px;
        justify-content: center;
        gap: 9px;
        font-size: 16px;
      }

      .mood-mobile-view > .sheet-heading .sheet-actions .button svg {
        width: 20px;
        height: 20px;
      }

      .mood-mobile-section {
        min-width: 0;
        overflow: hidden;
        border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
        border-radius: 8px;
        background: var(--surface);
        box-shadow: 0 2px 7px rgba(64, 55, 53, 0.04);
      }

      .mood-mobile-section-heading {
        min-height: 54px;
        padding: 10px 14px;
        display: flex;
        align-items: center;
        gap: 10px;
        border-bottom: 1px solid var(--line);
      }

      .mood-mobile-section-heading > svg,
      .mood-mobile-section-heading-icon svg {
        width: 20px;
        height: 20px;
        color: var(--rose-dark);
        stroke-width: 1.8;
      }

      .mood-mobile-section-heading-icon {
        width: 22px;
        min-width: 22px;
        display: grid;
        place-items: center;
      }

      .mood-mobile-section-heading-copy {
        min-width: 0;
        display: grid;
        gap: 2px;
      }

      .mood-mobile-section-heading h3 {
        margin: 0;
        color: var(--heading);
        font-family: var(--font-display);
        font-size: 20px;
        font-weight: 400;
        line-height: 1.2;
      }

      .mood-mobile-section-heading p {
        margin: 0;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.3;
      }

      .mood-mobile-style-body {
        padding: 14px;
      }

      .mood-mobile-style-body .field {
        gap: 7px;
      }

      .mood-mobile-style-body label {
        font-size: 13px;
        font-weight: 700;
      }

      .mood-mobile-style-body textarea {
        min-height: 84px;
        padding: 11px 12px;
        border-radius: 7px;
        font-size: 14px;
        line-height: 1.5;
        resize: vertical;
      }

      .mood-mobile-palette {
        padding: 0 14px 4px;
        display: grid;
      }

      .mood-mobile-palette-row {
        min-width: 0;
        min-height: 70px;
        display: grid;
        grid-template-columns: minmax(92px, 34%) 44px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        border-bottom: 1px solid var(--line);
      }

      .mood-mobile-palette-row:last-child {
        border-bottom: 0;
      }

      .mood-mobile-palette-swatch {
        width: 100%;
        height: 48px;
        border: 1px solid color-mix(in srgb, var(--line-strong) 78%, transparent);
        border-radius: 4px;
        background: var(--wedding-color);
      }

      .mood-mobile-palette-row input[type="color"] {
        width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 3px;
        border-radius: 6px;
        background: var(--surface);
      }

      .mood-mobile-palette-copy {
        min-width: 0;
        display: grid;
        gap: 2px;
      }

      .mood-mobile-palette-copy .mood-caption-input {
        width: 100%;
        height: auto;
        min-height: 24px;
        padding: 0;
        border: 0;
        border-radius: 0;
        color: var(--heading);
        background: transparent;
        box-shadow: none;
        font-size: 14px;
        font-weight: 700;
      }

      .mood-mobile-palette-copy .mood-caption-input:focus {
        outline: 0;
        box-shadow: 0 1px 0 var(--rose);
      }

      .mood-mobile-palette-copy output {
        color: var(--muted);
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0;
      }

      .mood-mobile-photo-list {
        padding: 10px 12px 12px;
        display: grid;
        gap: 7px;
      }

      .mood-mobile-photo-row {
        min-width: 0;
        min-height: 94px;
        overflow: hidden;
        display: grid;
        grid-template-columns: minmax(112px, 39%) minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        border: 1px solid var(--line);
        border-radius: 7px;
        background: var(--surface);
      }

      .mood-mobile-photo-preview {
        align-self: stretch;
        min-width: 0;
        min-height: 92px;
        border: 0;
        border-right: 1px solid var(--line);
        border-radius: 0;
        display: grid;
        place-items: center;
        color: var(--rose-dark);
        background-color: var(--surface-soft);
        background-position: center;
        background-size: cover;
      }

      button.mood-mobile-photo-preview {
        cursor: pointer;
      }

      .mood-mobile-photo-preview svg {
        width: 23px;
        height: 23px;
      }

      .mood-mobile-photo-caption {
        min-width: 0;
        height: auto;
        min-height: 38px;
        padding: 7px 2px;
        border: 0;
        border-radius: 0;
        color: var(--heading);
        background: transparent;
        box-shadow: none;
        font-family: var(--font-display);
        font-size: 16px;
        font-weight: 400;
      }

      .mood-mobile-photo-caption:focus {
        outline: 0;
        box-shadow: 0 1px 0 var(--rose);
      }

      .mood-mobile-photo-actions {
        padding-right: 8px;
        display: flex;
        gap: 6px;
      }

      .mood-mobile-photo-actions .icon-button {
        width: 40px;
        height: 44px;
        min-height: 44px;
        border-radius: 7px;
        color: var(--rose-dark);
        background: var(--surface);
      }

      .mood-mobile-photo-actions .icon-button svg {
        width: 18px;
        height: 18px;
      }
    }

    @media (max-width: 420px) {
      .mood-mobile-photo-row {
        grid-template-columns: minmax(104px, 36%) minmax(0, 1fr) auto;
        gap: 8px;
      }

      .mood-mobile-photo-actions {
        padding-right: 7px;
        gap: 5px;
      }

      .mood-mobile-photo-actions .icon-button {
        width: 36px;
        height: 42px;
        min-height: 42px;
      }
    }

    /* Desktop-only Wedding Budget polish. Keep the responsive/mobile layouts unchanged. */
    @media (min-width: 1025px) {
      .sheet:has(.budget-table) .button.dashboard-cta {
        border-color: color-mix(in srgb, var(--rose) 68%, var(--border));
        background: var(--surface);
        color: var(--rose-dark);
        font-weight: 700;
      }

      .sheet:has(.budget-table) .button.dashboard-cta:hover {
        border-color: var(--rose);
        background: color-mix(in srgb, var(--blush-soft) 66%, var(--surface));
        color: var(--rose-dark);
      }

      .sheet:has(.budget-table) [data-add="budget"].button.primary {
        min-height: 36px;
        padding: 6px 12px;
        border: 1px solid var(--rose);
        border-radius: 7px;
        background: var(--rose);
        color: var(--accent-text);
        font-weight: 700;
      }

      .sheet:has(.budget-table) [data-add="budget"].button.primary:hover {
        border-color: var(--rose-dark);
        background: var(--rose-dark);
      }

      .panel:has(.budget-table) {
        border-color: color-mix(in srgb, var(--border) 78%, transparent);
        box-shadow: none;
      }

      .panel:has(.budget-table) .panel-title {
        border-bottom-color: color-mix(in srgb, var(--border) 78%, transparent);
      }

      .budget-table th,
      .budget-table td {
        border-bottom-color: color-mix(in srgb, var(--border) 74%, transparent);
        vertical-align: middle;
      }

      .budget-table th {
        padding-block: 10px;
        border-top-color: color-mix(in srgb, var(--border) 74%, transparent);
      }

      .budget-table td {
        padding-block: 11px;
      }

      .budget-table .table-input,
      .budget-table tr:hover .table-input,
      .budget-table .note-preview-button,
      .budget-table .note-expand-button {
        border-color: color-mix(in srgb, var(--taupe) 62%, transparent);
      }

      .budget-table .table-input,
      .budget-table tr:hover .table-input,
      .budget-table .note-preview-button {
        background-color: color-mix(in srgb, var(--field-fill) 72%, var(--surface));
      }

      .budget-table .table-input:hover,
      .budget-table .note-preview-button:hover,
      .budget-table .note-expand-button:hover {
        border-color: color-mix(in srgb, var(--rose) 62%, var(--taupe));
      }

      .budget-table .table-input:focus,
      .budget-table .note-preview-button:focus-visible,
      .budget-table .note-expand-button:focus-visible {
        border-color: var(--rose);
      }

      .budget-table select.table-input[data-status-tone] {
        width: 100%;
        min-width: 0;
        height: 34px;
        min-height: 34px;
        padding: 5px 28px 5px 10px;
        line-height: 1.25;
        background-position: right 7px center;
      }

      .budget-table .notes-cell-inner {
        grid-template-columns: minmax(0, 1fr) 34px;
        gap: 4px;
        align-items: center;
      }

      .budget-table .note-preview-button {
        min-width: 0;
      }

      .budget-table .note-expand-button {
        width: 34px;
        min-width: 34px;
        height: 34px;
      }

      .budget-table th.cell-action,
      .budget-table td.cell-action {
        box-shadow: -1px 0 0 color-mix(in srgb, var(--border) 62%, transparent);
      }

      .budget-table td.cell-action .button.danger {
        min-height: 30px;
        padding: 5px 6px;
        border-color: transparent;
        background: transparent;
        color: color-mix(in srgb, var(--danger) 82%, var(--muted));
        font-weight: 600;
      }

      .budget-table td.cell-action .button.danger:hover {
        border-color: transparent;
        background: color-mix(in srgb, var(--danger-soft) 52%, transparent);
        color: var(--danger);
      }
    }

    @media (min-width: 1181px) {
      .budget-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
      }

      .budget-table th,
      .budget-table td {
        min-width: 0;
        padding-inline: 6px;
      }

      .budget-table th {
        line-height: 1.25;
        white-space: normal;
      }

      .budget-table .table-input,
      .budget-table .note-preview-button {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        font-size: 13px;
      }

      .budget-table th:nth-child(1),
      .budget-table td[data-label="Category"] {
        width: 8.5%;
      }

      .budget-table th:nth-child(2),
      .budget-table td[data-label="Item or vendor"] {
        width: 14%;
      }

      .budget-table th:nth-child(3),
      .budget-table td[data-label="Estimate"] {
        width: 9.5%;
      }

      .budget-table th:nth-child(4),
      .budget-table td[data-label="Current cost"] {
        width: 9.5%;
      }

      .budget-table th:nth-child(5),
      .budget-table td[data-label="Status"] {
        width: 12%;
      }

      .budget-table th:nth-child(6),
      .budget-table td[data-label="Due date"] {
        width: 13%;
      }

      .budget-table th:nth-child(7),
      .budget-table td[data-label="Paid"] {
        width: 9.5%;
      }

      .budget-table th:nth-child(8),
      .budget-table td[data-label="Notes"] {
        width: 15%;
      }

      .budget-table th:nth-child(9),
      .budget-table th.cell-action,
      .budget-table td.cell-action {
        width: 8%;
        min-width: 0;
        max-width: none;
      }

      .budget-table input.table-input[type="date"] {
        min-width: 0;
        padding-inline: 6px;
      }
    }

    /* Desktop-only Wedding Dashboard layout polish. */
    @media (min-width: 1181px) {
      .dashboard-desktop-view > .stat-grid {
        align-items: stretch;
        border-color: color-mix(in srgb, var(--border) 76%, transparent);
        border-radius: 8px;
        overflow: hidden;
      }

      .dashboard-desktop-view > .stat-grid .stat {
        min-height: 72px;
        padding: 14px 16px;
        border-right-color: color-mix(in srgb, var(--border) 76%, transparent);
        display: flex;
        flex-direction: column;
        justify-content: center;
      }

      .dashboard-desktop-view > .stat-grid .stat span {
        line-height: 1.25;
      }

      .dashboard-desktop-view > .stat-grid .stat strong {
        margin-top: 5px;
      }

      .dashboard-desktop-view .dashboard-grid {
        grid-template-columns: minmax(0, 7fr) minmax(360px, 3fr);
        gap: 18px;
      }

      .dashboard-desktop-view .dashboard-stack {
        gap: 18px;
      }

      .dashboard-desktop-view .panel {
        border-color: color-mix(in srgb, var(--border) 76%, transparent);
        border-radius: 8px;
        box-shadow: none;
      }

      .dashboard-desktop-view .panel-title {
        padding: 13px 15px;
        border-bottom-color: color-mix(in srgb, var(--border) 76%, transparent);
      }

      .dashboard-desktop-view .panel-body {
        padding: 14px;
      }

      .dashboard-desktop-view .ledger-list,
      .dashboard-desktop-view .category-list,
      .dashboard-desktop-view .mini-list,
      .dashboard-desktop-view .calendar-detail {
        border-color: color-mix(in srgb, var(--border) 72%, transparent);
      }

      .dashboard-desktop-view .ledger-row,
      .dashboard-desktop-view .mini-row,
      .dashboard-desktop-view .calendar-detail-row {
        border-bottom-color: color-mix(in srgb, var(--border) 72%, transparent);
      }

      .dashboard-desktop-view .ledger-row {
        padding: 12px 14px;
      }

      .dashboard-desktop-view .category-list {
        padding: 14px;
      }

      .dashboard-desktop-view .mini-row {
        min-height: 57px;
        padding: 9px 12px;
        align-content: center;
      }

      .dashboard-desktop-view .mini-row-content {
        width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
      }

      .dashboard-desktop-view .mini-row-content > strong {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .dashboard-desktop-view .mini-row .mini-row-meta {
        width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) max-content;
        gap: 12px;
        align-items: baseline;
      }

      .dashboard-desktop-view .mini-row-origin {
        min-width: 0;
        overflow: hidden;
        overflow-wrap: normal;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .dashboard-desktop-view .mini-row-value {
        min-width: max-content;
        overflow-wrap: normal;
        word-break: normal;
        white-space: nowrap;
      }

      .dashboard-desktop-view .calendar-key {
        display: grid;
        grid-template-columns: max-content minmax(0, 1fr);
        align-items: center;
      }

      .dashboard-desktop-view .calendar-key-label,
      .dashboard-desktop-view .calendar-detail-value {
        overflow-wrap: normal;
        white-space: nowrap;
      }

      .dashboard-desktop-view .calendar-detail-copy span {
        overflow-wrap: normal;
        word-break: normal;
      }
    }

    /* Desktop-only Seating Plan presentation inspired by the reception-floor reference. */
    @media (min-width: 1181px) {
      .seating-page-shell {
        min-width: 0;
        display: grid;
        gap: 14px;
      }

      .seating-page-shell > .sheet-heading {
        margin-bottom: 0;
      }

      .seating-page-shell.is-plan-view {
        gap: 0;
      }

      .seating-page-shell.is-plan-view > .sheet-heading,
      .seating-page-shell.is-plan-view > .seating-summary-grid {
        display: none;
      }

      .seating-page-shell .seating-summary-grid {
        border-color: color-mix(in srgb, var(--border) 76%, transparent);
        border-radius: 0;
        overflow: hidden;
        background: color-mix(in srgb, var(--surface) 78%, var(--paper));
      }

      .seating-page-shell .seating-summary-grid .stat {
        min-height: 72px;
        padding: 13px 15px;
        border-right-color: color-mix(in srgb, var(--border) 76%, transparent);
        display: flex;
        flex-direction: column;
        justify-content: center;
      }

      .seating-page-shell .seating-summary-grid .stat strong {
        margin-top: 5px;
        font-size: 22px;
      }

      .seating-page-shell .seating-responsive-layout,
      .seating-page-shell .interactive-seating-panel {
        min-width: 0;
        display: block;
      }

      .seating-page-shell .seating-overview-panel {
        min-width: 0;
        display: block;
      }

      .seating-page-shell .seating-responsive-layout.is-expanded .seating-overview-panel {
        display: none;
      }

      .seating-page-shell .seating-overview-panel > .panel {
        border-color: color-mix(in srgb, var(--border) 76%, transparent);
        border-radius: 10px;
        overflow: hidden;
        box-shadow: none;
      }

      .seating-page-shell .seating-overview-panel > .panel > .panel-title {
        min-height: 62px;
        padding: 12px 14px;
        border-bottom-color: color-mix(in srgb, var(--border) 76%, transparent);
        background: color-mix(in srgb, var(--sidebar-card) 72%, var(--surface));
      }

      .seating-page-shell .seating-overview-panel > .panel > .panel-title h3 {
        font-family: var(--font-display);
        font-size: 20px;
        font-weight: 400;
      }

      .seating-page-shell .seating-overview-panel > .panel > .panel-title p {
        margin-top: 3px;
      }

      .seating-page-shell .seating-overview-panel > .panel > .panel-body {
        padding: 12px;
      }

      .seating-page-shell .seating-overview-panel .seating-grid {
        gap: 10px;
      }

      .seating-page-shell .seating-overview-panel .seat-table {
        border-color: color-mix(in srgb, var(--border) 78%, transparent);
      }

      .seating-page-shell .interactive-seating-panel {
        margin-top: 0;
      }

      .seating-page-shell .interactive-seating-panel > .panel {
        border-color: color-mix(in srgb, var(--border) 76%, transparent);
        border-radius: 10px;
        box-shadow: none;
      }

      .seating-page-shell .interactive-seating-panel > .panel > .panel-title {
        position: relative;
        z-index: 8;
        min-height: 62px;
        padding: 13px 15px;
        border-bottom-color: color-mix(in srgb, var(--border) 76%, transparent);
        background: color-mix(in srgb, var(--sidebar-card) 72%, var(--surface));
      }

      .seating-page-shell .interactive-seating-panel > .panel > .panel-title h3 {
        font-family: var(--font-display);
        font-size: 22px;
        font-weight: 400;
      }

      .seating-page-shell .interactive-seating-panel > .panel > .panel-title p {
        margin-top: 4px;
      }

      .seating-page-shell .interactive-seating-panel > .panel > .panel-body {
        min-width: 0;
        padding: 0;
      }

      .seating-page-shell .panel-actions {
        gap: 7px;
        flex-wrap: nowrap;
      }

      .seating-page-shell .seating-panel-add,
      .seating-page-shell .seating-panel-guests,
      .seating-page-shell .seating-panel-overview {
        min-height: 38px;
        padding-inline: 12px;
        white-space: nowrap;
      }

      .seating-page-shell .seating-panel-add {
        gap: 7px;
      }

      .seating-page-shell .seating-panel-add > span {
        font-size: 18px;
        font-weight: 400;
        line-height: 1;
      }

      .seating-page-shell .seating-add-table-control {
        position: relative;
      }

      .seating-page-shell .seating-add-table-chevron {
        width: 6px;
        height: 6px;
        margin-left: 2px;
        border-right: 1px solid currentColor;
        border-bottom: 1px solid currentColor;
        transform: rotate(45deg) translateY(-2px);
      }

      .seating-page-shell .seating-table-shape-menu {
        position: absolute;
        top: calc(100% + 7px);
        left: 0;
        z-index: 12;
        width: 190px;
        padding: 5px;
        border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
        border-radius: 7px;
        background: var(--surface);
        box-shadow: 0 5px 14px rgba(68, 51, 48, 0.1);
      }

      .seating-page-shell .seating-table-shape-menu[hidden] {
        display: none;
      }

      .seating-page-shell .seating-table-shape-menu button {
        width: 100%;
        min-height: 40px;
        padding: 7px 9px;
        border: 0;
        border-radius: 5px;
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--ink);
        font: 600 12px/1.3 var(--font);
        text-align: left;
        background: transparent;
        cursor: pointer;
      }

      .seating-page-shell .seating-table-shape-menu button:hover,
      .seating-page-shell .seating-table-shape-menu button:focus-visible {
        color: var(--rose-dark);
        background: var(--blush-soft);
        outline: none;
      }

      .seating-page-shell .seating-table-shape-icon {
        width: 30px;
        height: 26px;
        flex: 0 0 auto;
        overflow: visible;
        color: color-mix(in srgb, var(--rose) 88%, var(--rose-dark));
      }

      .seating-page-shell .seating-table-shape-icon .table-surface {
        fill: color-mix(in srgb, var(--blush-soft) 64%, var(--surface));
        stroke: currentColor;
        stroke-width: 1.25;
      }

      .seating-page-shell .seating-table-shape-icon .table-chair {
        fill: var(--surface);
        stroke: currentColor;
        stroke-width: 1.15;
      }

      .seating-page-shell .seating-table-shape-icon .table-surface,
      .seating-page-shell .seating-table-shape-icon .table-chair {
        vector-effect: non-scaling-stroke;
      }

      .seating-page-shell .seating-table-shape-menu button:hover .seating-table-shape-icon,
      .seating-page-shell .seating-table-shape-menu button:focus-visible .seating-table-shape-icon {
        color: var(--rose-dark);
      }

      .seating-page-shell .seating-panel-guests.is-active {
        border-color: color-mix(in srgb, var(--rose) 58%, var(--border));
        color: var(--rose-dark);
        background: var(--blush-soft);
      }

      .seating-page-shell .seating-planner {
        border: 0;
        background: var(--surface);
      }

      .seating-page-shell .seating-workspace {
        min-width: 0;
        min-height: 0;
      }

      .seating-page-shell .seating-assignment-guide.is-active {
        min-height: 52px;
        padding: 8px 14px;
        border-bottom-color: color-mix(in srgb, var(--border) 72%, transparent);
      }

      .seating-page-shell .seating-mobile-plan {
        display: none;
      }

      .seating-page-shell .seating-plan-layout {
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
      }

      .seating-page-shell .seating-plan-layout.has-guest-panel {
        grid-template-columns: minmax(0, 1fr) clamp(216px, 20vw, 248px);
      }

      .seating-page-shell .seating-floor-scroll {
        min-width: 0;
        padding: 12px;
        overflow: hidden;
        background: color-mix(in srgb, var(--paper) 84%, var(--surface));
      }

      .seating-page-shell .seating-floor {
        width: 100%;
        min-width: 0;
        height: 548px;
        border-color: color-mix(in srgb, var(--taupe) 66%, transparent);
        background: linear-gradient(135deg, color-mix(in srgb, var(--field-fill) 90%, white), color-mix(in srgb, var(--paper) 88%, white));
      }

      .seating-page-shell .seating-floor::before {
        content: "";
        position: absolute;
        inset: 7px;
        z-index: 0;
        border: 1px solid color-mix(in srgb, var(--taupe) 28%, transparent);
        pointer-events: none;
      }

      .seating-page-shell .seating-floor-label {
        top: 12px;
        left: 50%;
        z-index: 1;
        color: color-mix(in srgb, var(--muted) 84%, transparent);
        font-size: 10px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        transform: translateX(-50%);
      }

      .seating-page-shell .seating-dance-floor {
        width: 32%;
        height: 34%;
        min-width: 180px;
        max-width: 55%;
        min-height: 110px;
        max-height: 60%;
        border-style: solid;
        border-color: color-mix(in srgb, var(--sage-dark) 56%, var(--border));
        border-radius: 2px;
        color: color-mix(in srgb, var(--ink) 76%, var(--sage-dark));
        font-family: var(--font-display);
        font-size: 15px;
        font-weight: 400;
        background: color-mix(in srgb, var(--sage-soft) 68%, var(--surface));
      }

      .seating-page-shell .seating-dance-floor-resize {
        position: absolute;
        right: 3px;
        bottom: 3px;
        width: 22px;
        height: 22px;
        display: block;
        color: color-mix(in srgb, var(--sage-dark) 76%, var(--muted));
        cursor: nwse-resize;
        touch-action: none;
      }

      .seating-page-shell .seating-dance-floor-resize::before,
      .seating-page-shell .seating-dance-floor-resize::after {
        content: "";
        position: absolute;
        right: 4px;
        bottom: 7px;
        width: 10px;
        height: 1px;
        background: currentColor;
        transform: rotate(-45deg);
        transform-origin: right center;
      }

      .seating-page-shell .seating-dance-floor-resize::after {
        right: 5px;
        bottom: 4px;
        width: 6px;
      }

      .seating-page-shell .seating-table-node {
        width: 178px;
        height: 178px;
      }

      .seating-page-shell .seating-table-node[data-table-shape="rectangle"] {
        width: 218px;
        height: 150px;
      }

      .seating-page-shell .seating-table-node[data-table-shape="long"] {
        width: 276px;
        height: 150px;
      }

      .seating-page-shell .seating-table-chairs {
        position: absolute;
        inset: 0;
        z-index: 1;
        width: 100%;
        height: 100%;
        overflow: visible;
        pointer-events: none;
      }

      .seating-page-shell .seating-table-chairs .chair-seat {
        fill: color-mix(in srgb, var(--surface) 92%, var(--blush-soft));
        stroke: color-mix(in srgb, var(--taupe) 72%, var(--border));
        stroke-width: 1.15;
        vector-effect: non-scaling-stroke;
      }

      .seating-page-shell .seating-table-core {
        inset: 36px;
        border-color: color-mix(in srgb, var(--taupe) 72%, var(--border));
        color: var(--heading);
        background: color-mix(in srgb, var(--surface) 92%, var(--sage-soft));
      }

      .seating-page-shell .seating-table-core::before {
        content: "";
        position: absolute;
        inset: 7px;
        border: 1px solid color-mix(in srgb, var(--taupe) 30%, transparent);
        border-radius: inherit;
        pointer-events: none;
      }

      .seating-page-shell .seating-table-core > * {
        position: relative;
        z-index: 1;
      }

      .seating-page-shell .seating-table-centerpiece {
        width: 38px;
        height: 25px;
        margin: 0 auto 1px;
        overflow: visible;
        pointer-events: none;
      }

      .seating-page-shell .seating-table-centerpiece .centerpiece-stem {
        fill: none;
        stroke: var(--sage-dark);
        stroke-width: 1.25;
        stroke-linecap: round;
        stroke-linejoin: round;
      }

      .seating-page-shell .seating-table-centerpiece .centerpiece-leaf {
        fill: color-mix(in srgb, var(--sage-soft) 84%, var(--surface));
        stroke: var(--sage-dark);
        stroke-width: 0.9;
      }

      .seating-page-shell .seating-table-centerpiece .centerpiece-petal {
        fill: color-mix(in srgb, var(--blush-soft) 82%, var(--surface));
        stroke: color-mix(in srgb, var(--rose) 62%, var(--taupe));
        stroke-width: 0.75;
      }

      .seating-page-shell .seating-table-centerpiece .centerpiece-heart {
        fill: var(--champagne);
      }

      .seating-page-shell .seating-table-node[data-table-shape="square"] .seating-table-core {
        border-radius: 6px;
      }

      .seating-page-shell .seating-table-node[data-table-shape="rectangle"] .seating-table-core {
        inset: 32px 28px;
        border-radius: 6px;
      }

      .seating-page-shell .seating-table-node[data-table-shape="long"] .seating-table-core {
        inset: 32px 24px;
        border-radius: 6px;
      }

      .seating-page-shell .seating-table-core strong {
        font-family: var(--font-display);
        font-size: 14px;
        font-weight: 400;
      }

      .seating-page-shell .seating-guest-seat {
        width: 36px;
        height: 36px;
        border-color: color-mix(in srgb, var(--taupe) 68%, transparent);
        background: var(--surface);
        transform: translate(-50%, -50%) rotate(var(--seat-angle)) translateY(-70px) rotate(var(--seat-counter-angle));
      }

      .seating-page-shell .seating-guest-seat[data-rsvp="yes"] {
        border-color: color-mix(in srgb, var(--sage-dark) 66%, var(--border));
        background: color-mix(in srgb, var(--sage-soft) 70%, var(--surface));
      }

      .seating-page-shell .seating-guest-seat[data-rsvp="pending"] {
        border-color: color-mix(in srgb, var(--rose) 46%, var(--border));
        background: color-mix(in srgb, var(--blush-soft) 72%, var(--surface));
      }

      .seating-page-shell .seating-table-remove {
        top: 3px;
        right: 3px;
        width: 26px;
        height: 26px;
        opacity: 0;
        pointer-events: none;
        font-size: 16px;
        background: color-mix(in srgb, var(--surface) 88%, transparent);
        transition: opacity 140ms ease, border-color 140ms ease, color 140ms ease;
      }

      .seating-page-shell .seating-table-node:hover .seating-table-remove,
      .seating-page-shell .seating-table-node:focus-within .seating-table-remove {
        opacity: 1;
        pointer-events: auto;
      }

      .seating-page-shell .seating-table-add-guest {
        right: 4px;
        bottom: 4px;
        width: 28px;
        height: 28px;
        min-height: 28px;
        border-color: color-mix(in srgb, var(--rose) 52%, var(--border));
        box-shadow: none;
      }

      .seating-page-shell .seating-guest-panel {
        min-width: 0;
        min-height: 548px;
        border-left: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
        display: grid;
        grid-template-rows: auto auto minmax(0, 1fr) auto;
        background: color-mix(in srgb, var(--surface) 90%, var(--sidebar-card));
      }

      .seating-page-shell .seating-guest-panel-header {
        min-height: 52px;
        padding: 9px 10px 9px 13px;
        border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
      }

      .seating-page-shell .seating-guest-panel-header h3 {
        margin: 0;
        font-family: var(--font-display);
        font-size: 19px;
        font-weight: 400;
      }

      .seating-page-shell .seating-guest-panel-close {
        width: 34px;
        height: 34px;
        min-height: 34px;
        border: 0;
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: var(--muted);
        font-size: 19px;
        line-height: 1;
        background: transparent;
      }

      .seating-page-shell .seating-guest-panel-close:hover {
        color: var(--ink);
        background: var(--blush-soft);
      }

      .seating-page-shell .seating-guest-panel-controls {
        padding: 10px;
        border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
      }

      .seating-page-shell .seating-guest-search input {
        width: 100%;
        min-height: 38px;
        border-color: color-mix(in srgb, var(--taupe) 58%, transparent);
        border-radius: 6px;
        padding: 7px 9px;
        font-size: 12px;
        background: var(--surface);
      }

      .seating-page-shell .seating-guest-filters {
        margin-top: 8px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
      }

      .seating-page-shell .seating-guest-filters button {
        min-width: 0;
        min-height: 30px;
        padding: 4px 3px;
        border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
        border-radius: 5px;
        overflow: hidden;
        color: var(--muted);
        font-size: 9px;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
        background: var(--surface);
      }

      .seating-page-shell .seating-guest-filters button[aria-pressed="true"] {
        border-color: color-mix(in srgb, var(--rose) 62%, var(--border));
        color: var(--rose-dark);
        background: var(--blush-soft);
      }

      .seating-page-shell .seating-guest-panel-list {
        min-height: 0;
        max-height: 398px;
        padding: 5px 8px;
        overflow: auto;
      }

      .seating-page-shell .seating-guest-panel-row {
        width: 100%;
        min-height: 49px;
        padding: 6px 4px;
        border: 0;
        border-bottom: 1px solid color-mix(in srgb, var(--border) 64%, transparent);
        border-radius: 0;
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr) max-content;
        align-items: center;
        gap: 8px;
        color: var(--ink);
        text-align: left;
        background: transparent;
      }

      .seating-page-shell .seating-guest-panel-row[hidden] {
        display: none;
      }

      .seating-page-shell .seating-guest-panel-row:hover,
      .seating-page-shell .seating-guest-panel-row.is-selected {
        background: color-mix(in srgb, var(--blush-soft) 72%, transparent);
      }

      .seating-page-shell .seating-guest-panel-row.is-selected {
        box-shadow: inset 2px 0 0 var(--rose);
      }

      .seating-page-shell .seating-guest-panel-initials {
        width: 30px;
        height: 30px;
        border: 1px solid color-mix(in srgb, var(--rose) 44%, var(--border));
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: var(--rose-dark);
        font-size: 9px;
        font-weight: 800;
        background: var(--blush-soft);
      }

      .seating-page-shell .seating-guest-panel-copy,
      .seating-page-shell .seating-guest-panel-copy strong,
      .seating-page-shell .seating-guest-panel-copy span {
        display: block;
        min-width: 0;
      }

      .seating-page-shell .seating-guest-panel-copy strong {
        overflow: hidden;
        font-size: 11px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .seating-page-shell .seating-guest-panel-copy span {
        margin-top: 2px;
        color: var(--muted);
        font-size: 9px;
      }

      .seating-page-shell .seating-guest-panel-table {
        color: var(--muted);
        font-size: 9px;
        font-weight: 700;
        white-space: nowrap;
      }

      .seating-page-shell .seating-guest-panel-empty {
        margin: 20px 8px;
        color: var(--muted);
        font-size: 11px;
        text-align: center;
      }

      .seating-page-shell .seating-guest-panel-manage {
        min-height: 42px;
        padding: 8px 10px;
        border: 0;
        border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
        border-radius: 0;
        color: var(--rose-dark);
        font-size: 11px;
        font-weight: 700;
        background: transparent;
      }

      .seating-page-shell .seating-guest-panel-manage:hover {
        background: var(--blush-soft);
      }
    }

    /* Mobile Sections is a full navigation view, without decorative footer artwork. */
    @media (max-width: 1024px) {
      .sidebar {
        inset: 0;
        width: 100%;
        max-width: none;
        border: 0;
        background: color-mix(in srgb, var(--surface-soft) 72%, var(--surface));
        box-shadow: none;
      }

      .mobile-menu-close {
        top: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
        border-color: color-mix(in srgb, var(--rose) 22%, var(--line));
        color: var(--rose-dark);
        background: var(--surface);
      }

      .mobile-menu-close svg {
        width: 22px;
        height: 22px;
      }

      .sidebar-cover {
        min-height: 190px;
        padding: 72px 18px 16px;
        color: var(--ink);
        background: transparent;
      }

      .sidebar-cover h2 {
        color: var(--heading);
        font-size: 30px;
        font-weight: 400;
      }

      .sidebar-cover p {
        margin-top: 7px;
        color: var(--muted);
        font-size: 12px;
      }

      .mini-total {
        margin-top: 16px;
        padding-top: 14px;
        gap: 0;
      }

      .mini-total > div {
        min-width: 0;
        padding: 0 12px 0 0;
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: center;
        gap: 9px;
      }

      .mini-total > div + div {
        padding-right: 0;
        padding-left: 12px;
        border-left: 1px solid var(--line);
      }

      .mini-total .sidebar-summary-icon {
        width: 42px;
        height: 42px;
        border: 1px solid color-mix(in srgb, var(--rose) 18%, var(--line));
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: var(--rose-dark);
        background: var(--blush-soft);
      }

      .sidebar-summary-icon.is-sage {
        border-color: color-mix(in srgb, var(--sage) 24%, var(--line));
        color: var(--sage-dark);
        background: color-mix(in srgb, var(--sage-soft) 72%, var(--surface));
      }

      .sidebar-summary-icon svg {
        width: 20px;
        height: 20px;
      }

      .mini-total span:not(.sidebar-summary-icon) {
        font-size: 11px;
      }

      .mini-total strong {
        margin-top: 3px;
        font-size: 18px;
      }

      .mobile-sections-title {
        margin: 16px 18px 10px;
        display: block;
        color: var(--heading);
        font-family: var(--font-display);
        font-size: 25px;
        font-weight: 400;
        line-height: 1.1;
      }

      .sidebar .nav {
        padding: 0 14px 24px;
        gap: 8px;
      }

      .sidebar .nav-group,
      .sidebar .nav-group-items {
        gap: 0;
      }

      .sidebar .nav .nav-group-toggle,
      .sidebar .nav-group:first-child .nav-group-toggle {
        min-height: 72px;
        margin: 0;
        padding: 9px 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr) 24px;
        align-items: center;
        gap: 12px;
        color: var(--ink);
        background: var(--surface);
        text-align: left;
        cursor: pointer;
      }

      .sidebar .nav .nav-group-toggle:hover,
      .sidebar .nav-group:first-child .nav-group-toggle:hover,
      .sidebar .nav .nav-group-toggle:focus-visible {
        border-color: color-mix(in srgb, var(--rose) 34%, var(--line));
        color: var(--ink);
        background: color-mix(in srgb, var(--blush-soft) 58%, var(--surface));
        outline: 0;
      }

      .mobile-nav-group-icon {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: var(--rose-dark);
        background: var(--blush-soft);
      }

      .mobile-nav-group-icon .nav-icon {
        width: 21px;
        height: 21px;
      }

      .mobile-nav-group-copy {
        min-width: 0;
        display: grid;
        gap: 3px;
      }

      .mobile-nav-group-copy strong {
        color: var(--heading);
        font-family: var(--font-display);
        font-size: 19px;
        font-weight: 400;
        line-height: 1.12;
      }

      .mobile-nav-group-copy > span {
        min-width: 0;
        overflow: hidden;
        color: var(--muted);
        font-size: 11px;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .sidebar .nav-group-chevron {
        width: 18px;
        height: 18px;
        justify-self: end;
        color: var(--rose-dark);
        transform: rotate(-90deg);
      }

      .sidebar .nav-group.is-open .nav-group-chevron {
        transform: rotate(0deg);
      }

      .sidebar .nav-group.is-open .nav-group-toggle {
        border-radius: 8px 8px 0 0;
        background: color-mix(in srgb, var(--blush-soft) 58%, var(--surface));
      }

      .sidebar .nav-group-items {
        padding: 3px 8px 7px;
        border: 1px solid var(--line);
        border-top: 0;
        border-radius: 0 0 8px 8px;
        background: var(--surface);
      }

      .sidebar .nav-group-items button {
        min-height: 40px;
        padding: 8px 7px;
        border: 0;
        border-bottom: 1px solid color-mix(in srgb, var(--line) 66%, transparent);
        border-radius: 0;
        color: var(--muted);
        background: transparent;
        font-size: 12px;
      }

      .sidebar .nav-group-items button:last-child {
        border-bottom: 0;
      }

      .sidebar .nav-group-items button.is-active {
        color: var(--rose-dark);
        background: var(--blush-soft);
      }

      .sidebar .nav-index {
        display: none;
      }

      .mobile-menu-backdrop.is-open {
        display: none;
      }

      .seating-page-shell > .seating-summary-grid {
        min-height: 72px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .seating-page-shell > .seating-summary-grid .stat {
        min-height: 72px;
        padding: 8px 4px;
        align-items: center;
        justify-content: center;
        border-right: 1px solid var(--line);
        border-bottom: 0;
        text-align: center;
      }

      .seating-page-shell > .seating-summary-grid .stat:nth-child(2n) {
        border-right: 1px solid var(--line);
      }

      .seating-page-shell > .seating-summary-grid .stat:last-child {
        border-right: 0;
      }

      .seating-page-shell > .seating-summary-grid .stat strong {
        margin-top: 0;
        order: 1;
        font-size: 20px;
        line-height: 1;
      }

      .seating-page-shell > .seating-summary-grid .stat span {
        margin-top: 5px;
        order: 2;
        font-size: 10px;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
      }

      .sheet:has([data-add="weddingParty"]) .stat-grid {
        min-height: 72px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .sheet:has([data-add="weddingParty"]) .stat-grid .stat {
        min-height: 72px;
        padding: 8px 4px;
        align-items: center;
        justify-content: center;
        border-right: 1px solid var(--line);
        border-bottom: 0;
        text-align: center;
      }

      .sheet:has([data-add="weddingParty"]) .stat-grid .stat:nth-child(2n) {
        border-right: 1px solid var(--line);
      }

      .sheet:has([data-add="weddingParty"]) .stat-grid .stat:last-child {
        border-right: 0;
      }

      .sheet:has([data-add="weddingParty"]) .stat-grid .stat strong {
        margin-top: 0;
        order: 1;
        font-size: 20px;
        line-height: 1;
      }

      .sheet:has([data-add="weddingParty"]) .stat-grid .stat span {
        margin-top: 5px;
        order: 2;
        font-size: 10px;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
      }

      /* Compact mobile summaries: one quiet row instead of a desktop-style 2x2 block. */
      .sheet > .stat-grid,
      .task-mobile-panel > .stat-grid,
      .appointment-mobile-summary {
        min-height: 72px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .sheet > .stat-grid .stat,
      .task-mobile-panel > .stat-grid .stat,
      .appointment-mobile-stat {
        min-height: 72px;
        padding: 7px 4px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-right: 1px solid var(--line);
        border-bottom: 0;
        text-align: center;
      }

      .sheet > .stat-grid .stat:nth-child(2n),
      .task-mobile-panel > .stat-grid .stat:nth-child(2n),
      .appointment-mobile-stat:nth-child(2n) {
        border-right: 1px solid var(--line);
      }

      .sheet > .stat-grid .stat:last-child,
      .task-mobile-panel > .stat-grid .stat:last-child,
      .appointment-mobile-stat:last-child {
        border-right: 0;
      }

      .sheet > .stat-grid .stat strong,
      .task-mobile-panel > .stat-grid .stat strong,
      .appointment-mobile-stat strong {
        margin-top: 0;
        order: 1;
        font-size: 17px;
        line-height: 1.05;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
      }

      .sheet > .stat-grid .stat span,
      .task-mobile-panel > .stat-grid .stat span,
      .appointment-mobile-stat span {
        margin-top: 5px;
        order: 2;
        color: var(--muted);
        font-size: 9px;
        font-weight: 600;
        line-height: 1.15;
        white-space: normal;
      }

      .appointment-mobile-stat:last-child strong {
        font-size: 15px;
        line-height: 18px;
        white-space: nowrap;
        overflow-wrap: normal;
        font-variant-numeric: tabular-nums;
      }

      .smart-calendar-summary,
      .smart-calendar-summary .stat {
        min-height: 68px;
      }

      .smart-calendar-summary .stat {
        padding: 7px 3px;
      }

      .sheet > .stat-grid.smart-calendar-summary .stat strong {
        margin-top: 0;
        order: 2;
        font-size: 18px;
        line-height: 1;
        white-space: nowrap;
        overflow-wrap: normal;
      }

      .sheet > .stat-grid.smart-calendar-summary .stat:nth-child(2) strong {
        font-size: 13px;
        line-height: 18px;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
      }

      .sheet > .stat-grid.smart-calendar-summary .stat span {
        margin: 0 0 5px;
        order: 1;
        font-size: 8.5px;
        line-height: 1.1;
      }

      .sheet:has(.smart-calendar-layout) .calendar-detail {
        overflow: hidden;
        border-radius: 8px;
      }

      .sheet:has(.smart-calendar-layout) .calendar-detail-row {
        padding: 8px 10px;
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
      }

      .sheet:has(.smart-calendar-layout) .calendar-detail-copy {
        display: grid;
        gap: 1px;
      }

      .sheet:has(.smart-calendar-layout) .calendar-detail-copy strong {
        overflow-wrap: normal;
      }

      .sheet:has(.smart-calendar-layout) .calendar-detail-actions {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 36px 58px;
        align-items: center;
        justify-content: normal;
        gap: 6px;
      }

      .sheet:has(.smart-calendar-layout) .calendar-detail-value {
        max-width: none;
        overflow: hidden;
        overflow-wrap: normal;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: left;
      }

      .sheet:has(.smart-calendar-layout) .calendar-google-button {
        width: 36px;
        min-width: 36px;
        height: 36px;
        min-height: 36px;
      }

      .sheet:has(.smart-calendar-layout) .calendar-source-button {
        width: 58px;
        min-height: 36px;
        padding: 0 6px;
        justify-content: center;
      }

      .sheet:has(.smart-calendar-layout) .calendar-source-button svg {
        display: none;
      }

      /* Shared native-mobile disclosure row. */
      .table-wrap tr > td.mobile-record-summary,
      .table-wrap tr:not(.is-mobile-expanded) > td.mobile-record-summary,
      .table-wrap tr.is-mobile-expanded > td.mobile-record-summary,
      .vendor-hub .table-wrap tr:not(.is-mobile-expanded) > td.mobile-record-summary {
        min-height: 72px;
        padding: 7px 6px 7px 8px;
        grid-template-columns: 34px minmax(0, 1fr) 78px 28px;
        column-gap: 6px;
        row-gap: 2px;
      }

      .table-wrap tr:has(.mobile-record-status.is-empty) > td.mobile-record-summary,
      .table-wrap tr:has(.mobile-record-status.is-empty):not(.is-mobile-expanded) > td.mobile-record-summary,
      .table-wrap tr:has(.mobile-record-status.is-empty).is-mobile-expanded > td.mobile-record-summary {
        min-height: 64px;
        grid-template-columns: 34px minmax(0, 1fr) 28px;
      }

      .table-wrap tr:has(.mobile-record-status.is-empty) .mobile-record-copy {
        grid-column: 2;
      }

      .table-wrap tr:has(.mobile-record-status.is-empty) .mobile-record-menu-button {
        grid-column: 3;
      }

      .mobile-record-icon,
      .table-wrap .vendor-category-icon,
      .vendor-hub .vendor-category-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
      }

      .mobile-record-icon .nav-icon,
      .table-wrap .vendor-category-icon svg,
      .vendor-hub .vendor-category-icon svg {
        width: 15px;
        height: 15px;
      }

      .mobile-record-summary > .mobile-record-completion {
        width: 32px;
        height: 32px;
        min-width: 32px;
      }

      .mobile-record-completion::before {
        width: 26px;
        height: 26px;
      }

      .mobile-record-copy {
        gap: 2px;
      }

      .mobile-record-copy strong {
        font-size: 13px;
        line-height: 1.2;
      }

      .mobile-record-copy span {
        font-size: 10px;
        line-height: 1.25;
      }

      .mobile-record-status,
      .vendor-hub .mobile-record-status {
        width: 78px;
        min-width: 78px;
        max-width: 78px;
        min-height: 26px;
        padding: 4px 5px;
        font-size: 10px;
      }

      .mobile-record-menu-button,
      .vendor-hub .mobile-record-menu-button {
        width: 28px;
        min-width: 28px;
        height: 32px;
        min-height: 32px;
      }

      /* Packing rows use their item SVG as the completion control. */
      .table-wrap tr[data-kind="dayPacking"] > td.mobile-record-summary,
      .table-wrap tr[data-kind="dayPacking"]:not(.is-mobile-expanded) > td.mobile-record-summary,
      .table-wrap tr[data-kind="dayPacking"].is-mobile-expanded > td.mobile-record-summary {
        min-height: 64px;
        grid-template-columns: 34px minmax(0, 1fr) 28px;
      }

      .table-wrap tr[data-kind="dayPacking"] .mobile-record-copy {
        grid-column: 2;
      }

      .table-wrap tr[data-kind="dayPacking"] .mobile-record-status {
        display: none;
      }

      .table-wrap tr[data-kind="dayPacking"] .mobile-record-menu-button {
        grid-column: 3;
      }

      .mobile-record-completion.has-item-icon::before {
        border: 1px solid color-mix(in srgb, var(--rose) 28%, var(--line));
        background: var(--blush-soft);
      }

      .mobile-record-completion-item-icon {
        position: absolute;
        display: grid;
        place-items: center;
        color: var(--rose-dark);
        opacity: 1;
      }

      .mobile-record-completion-item-icon .nav-icon {
        position: static;
        width: 15px;
        height: 15px;
        opacity: 1;
        stroke: currentColor;
        stroke-width: 1.8;
      }

      .mobile-record-completion.has-item-icon.is-complete .mobile-record-completion-item-icon {
        opacity: 0;
      }

      .mobile-record-completion.has-item-icon.is-complete::before {
        border-color: var(--rose);
        background: var(--rose);
      }

      /* Tasks keep a full touch target without carrying desktop-card proportions. */
      body:has(.task-mobile-panel) .task-mobile-card-summary {
        min-height: 72px;
        padding: 7px 6px 7px 8px;
        grid-template-columns: 34px minmax(0, 1fr) 78px 28px;
        gap: 6px;
      }

      body:has(.task-mobile-panel) .task-mobile-check {
        width: 32px;
        height: 32px;
      }

      body:has(.task-mobile-panel) .task-mobile-check input {
        width: 26px;
        height: 26px;
      }

      body:has(.task-mobile-panel) .task-mobile-card-copy {
        padding: 2px 0;
      }

      body:has(.task-mobile-panel) .task-mobile-card-copy strong {
        font-size: 13px;
        line-height: 1.2;
      }

      body:has(.task-mobile-panel) .task-mobile-card-copy span {
        margin-top: 3px;
        font-size: 10px;
        line-height: 1.25;
      }

      body:has(.task-mobile-panel) .task-mobile-priority {
        width: 78px;
        min-width: 78px;
        max-width: 78px;
        min-height: 26px;
        padding: 4px 5px;
        font-size: 10px;
      }

      body:has(.task-mobile-panel) .task-mobile-card-toggle {
        width: 28px;
        min-width: 28px;
        height: 32px;
      }

      /* Appointments need one extra text line for vendor context. */
      .appointment-mobile-card-summary {
        min-height: 78px;
        padding: 7px 6px 7px 8px;
        grid-template-columns: 34px minmax(0, 1fr) 78px 28px;
        gap: 6px;
      }

      .appointment-mobile-type-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
      }

      .appointment-mobile-type-icon svg,
      .appointment-mobile-type-icon .nav-icon {
        width: 15px;
        height: 15px;
      }

      .appointment-mobile-copy strong {
        font-size: 13px;
        line-height: 1.2;
      }

      .appointment-mobile-copy span {
        margin-top: 2px;
        font-size: 10px;
        line-height: 1.2;
      }

      .appointment-mobile-copy .appointment-mobile-location {
        display: none;
      }

      .appointment-mobile-status {
        width: 78px;
        min-width: 78px;
        max-width: 78px;
        min-height: 26px;
        padding: 4px 5px;
        font-size: 10px;
      }

      .appointment-mobile-toggle {
        width: 28px;
        min-width: 28px;
        height: 32px;
      }

      /* Priorities retain their category and due date in a tighter three-line row. */
      .priority-mobile-card-summary {
        min-height: 82px;
        padding: 7px 6px 7px 8px;
        grid-template-columns: 34px minmax(0, 1fr) 78px 28px;
        gap: 2px 6px;
      }

      .priority-mobile-main-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
      }

      .priority-mobile-main-icon .nav-icon {
        width: 15px;
        height: 15px;
      }

      .priority-mobile-card-summary > strong {
        font-size: 16px;
        line-height: 1.15;
      }

      .priority-mobile-meta,
      .priority-mobile-due {
        font-size: 10px;
        line-height: 1.2;
      }

      .priority-mobile-due {
        gap: 4px;
      }

      .priority-mobile-due .nav-icon {
        width: 12px;
        height: 12px;
        flex-basis: 12px;
      }

      .priority-mobile-stage {
        width: 78px;
        min-width: 78px;
        max-width: 78px;
        min-height: 26px;
        padding: 4px 5px;
        font-size: 10px;
      }

      .priority-mobile-toggle-icon {
        width: 28px;
        min-width: 28px;
        height: 32px;
      }

      /* Photo rows stay visual, but no longer feel like oversized desktop cards. */
      .mood-mobile-photo-row {
        min-height: 80px;
        grid-template-columns: minmax(96px, 34%) minmax(0, 1fr) auto;
        gap: 7px;
      }

      .mood-mobile-photo-preview {
        min-height: 78px;
      }

      .mood-mobile-photo-caption {
        min-height: 32px;
        padding: 5px 1px;
        font-size: 14px;
      }

      .mood-mobile-photo-actions {
        padding-right: 6px;
        gap: 4px;
      }

      .mood-mobile-photo-actions .icon-button {
        width: 32px;
        height: 38px;
        min-height: 38px;
      }

      /* Wedding Party reads as a compact mobile contact list. */
      .sheet:has([data-add="weddingParty"]) tr[data-kind="weddingParty"] > td.mobile-record-summary,
      .sheet:has([data-add="weddingParty"]) tr[data-kind="weddingParty"]:not(.is-mobile-expanded) > td.mobile-record-summary,
      .sheet:has([data-add="weddingParty"]) tr[data-kind="weddingParty"].is-mobile-expanded > td.mobile-record-summary {
        min-height: 64px;
        padding: 7px 7px 7px 9px;
        grid-template-columns: 34px minmax(0, 1fr) 28px;
        column-gap: 8px;
        row-gap: 2px;
      }

      .sheet:has([data-add="weddingParty"]) tr[data-kind="weddingParty"] .mobile-record-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
      }

      .sheet:has([data-add="weddingParty"]) tr[data-kind="weddingParty"] .mobile-record-icon .nav-icon {
        width: 15px;
        height: 15px;
      }

      .sheet:has([data-add="weddingParty"]) tr[data-kind="weddingParty"] .mobile-record-copy {
        grid-column: 2;
        gap: 2px;
      }

      .sheet:has([data-add="weddingParty"]) tr[data-kind="weddingParty"] .mobile-record-copy strong {
        font-size: 13px;
        line-height: 1.2;
      }

      .sheet:has([data-add="weddingParty"]) tr[data-kind="weddingParty"] .mobile-record-copy span {
        font-size: 10px;
        line-height: 1.25;
      }

      .sheet:has([data-add="weddingParty"]) tr[data-kind="weddingParty"] .mobile-record-status.is-empty {
        display: none;
      }

      .sheet:has([data-add="weddingParty"]) tr[data-kind="weddingParty"] .mobile-record-menu-button {
        grid-column: 3;
        width: 28px;
        min-width: 28px;
        height: 32px;
        min-height: 32px;
      }

      .mobile-seating-overview-grid {
        gap: 8px;
      }

      .mobile-seating-overview-heading {
        min-height: 52px;
        padding: 7px 6px 7px 9px;
        grid-template-columns: 32px minmax(0, 1fr) 76px 28px;
        gap: 7px;
        background: var(--surface);
      }

      .mobile-seating-overview-heading h3 {
        font-size: 17px;
      }

      .mobile-seating-table-icon {
        width: 32px;
        height: 32px;
        border-color: color-mix(in srgb, var(--rose) 24%, var(--line));
      }

      .mobile-seating-table-icon svg {
        width: 18px;
        height: 18px;
        stroke-width: 1.55;
      }

      .mobile-seating-capacity {
        width: 76px;
        min-width: 76px;
        height: 28px;
        min-height: 28px;
        padding: 0;
        border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
        border-radius: 6px;
        gap: 0;
        overflow: hidden;
        background: var(--surface);
      }

      .mobile-seating-capacity input {
        width: 28px;
        min-width: 28px;
        height: 26px;
        min-height: 26px;
        font-size: 12px;
        font-weight: 650;
        text-align: center;
      }

      .mobile-seating-capacity button {
        width: 23px;
        min-width: 23px;
        height: 26px;
        min-height: 26px;
        padding: 0;
        border: 0;
        border-radius: 0;
        display: grid;
        place-items: center;
        color: var(--rose-dark);
        background: transparent;
      }

      .mobile-seating-capacity button:first-child {
        border-right: 1px solid var(--line);
      }

      .mobile-seating-capacity button:last-child {
        border-left: 1px solid var(--line);
      }

      .mobile-seating-capacity button:active {
        background: var(--blush-soft);
      }

      .mobile-seating-capacity button svg {
        width: 12px;
        height: 12px;
      }

      .mobile-seating-overview-toggle {
        width: 28px;
        height: 30px;
        min-height: 30px;
      }

      .mobile-seating-overview-toggle svg {
        width: 16px;
        height: 16px;
      }

      /* Exact 390px Task Tracker composition. Scoped to mobile Tasks only. */
      body:has(.task-mobile-panel),
      body:has(.task-mobile-panel) * {
        box-sizing: border-box;
      }

      html:has(.task-mobile-panel),
      body:has(.task-mobile-panel) {
        --mobile-nav-height: 72px;
        overflow-x: hidden;
        scrollbar-width: none;
      }

      html:has(.task-mobile-panel)::-webkit-scrollbar,
      body:has(.task-mobile-panel)::-webkit-scrollbar {
        width: 0;
        height: 0;
      }

      body:has(.task-mobile-panel) .topbar {
        min-height: 82px;
      }

      body:has(.task-mobile-panel) .topbar-inner {
        width: 100%;
        min-height: 82px;
        padding: 0 20px;
      }

      body:has(.task-mobile-panel) .topbar .brand {
        min-width: 0;
        gap: 10px;
      }

      body:has(.task-mobile-panel) .topbar .brand-mark {
        width: 28px;
        min-width: 28px;
        height: 28px;
        min-height: 28px;
      }

      body:has(.task-mobile-panel) .topbar .brand-toast {
        width: 19px;
        height: 19px;
      }

      body:has(.task-mobile-panel) .topbar .profile-camera-badge {
        right: -4px;
        bottom: -4px;
        width: 13px;
        height: 13px;
      }

      body:has(.task-mobile-panel) .topbar .profile-camera-badge svg {
        width: 7px;
        height: 7px;
      }

      body:has(.task-mobile-panel) .topbar .brand h1 {
        font-size: 22px;
        line-height: 1.05;
        font-weight: 400;
      }

      body:has(.task-mobile-panel) .topbar .brand p {
        margin-top: 3px;
        font-size: 12px;
        line-height: 1.2;
      }

      body:has(.task-mobile-panel) .mobile-actions-button {
        width: 42px;
        min-width: 42px;
        height: 42px;
        min-height: 42px;
        border-radius: 9px;
      }

      body:has(.task-mobile-panel) .sheet {
        width: 100%;
        max-width: 100%;
        padding: 24px 20px calc(24px + var(--mobile-nav-height) + env(safe-area-inset-bottom));
        gap: 24px;
        overflow-x: hidden;
      }

      body:has(.task-mobile-panel) .sheet-heading {
        width: 100%;
        padding: 0;
        gap: 0;
        align-items: stretch;
        border-bottom: 0;
      }

      body:has(.task-mobile-panel) .sheet-heading h2 {
        margin: 0 0 8px;
        font-family: "Instrument Serif", serif;
        font-size: 42px;
        line-height: 1.05;
        font-weight: 400;
      }

      body:has(.task-mobile-panel) .sheet-heading p {
        max-width: 330px;
        margin: 0;
        color: var(--muted);
        font-family: "Manrope", sans-serif;
        font-size: 15px;
        line-height: 22px;
      }

      body:has(.task-mobile-panel) .sheet-heading .sheet-actions {
        width: 100%;
        margin-top: 20px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
      }

      body:has(.task-mobile-panel) .sheet-heading .sheet-actions .button {
        width: 100%;
        min-width: 0;
        height: 44px;
        min-height: 44px;
        padding: 0 10px;
        border-radius: 9px;
        font-family: "Manrope", sans-serif;
        font-size: 14px;
        font-weight: 600;
        box-shadow: none;
      }

      body:has(.task-mobile-panel) .sheet-heading [data-task-progress-toggle],
      body:has(.task-mobile-panel) .sheet-heading [data-packing-progress-toggle] {
        border: 1px solid var(--rose);
        color: var(--rose-dark);
        background: var(--surface);
      }

      body:has(.task-mobile-panel) .task-mobile-panel {
        width: 100%;
        min-width: 0;
        gap: 24px;
      }

      body:has(.task-mobile-panel) .task-mobile-list {
        width: 100%;
        min-width: 0;
        gap: 7px;
        border: 0;
        border-radius: 0;
        overflow: visible;
        background: transparent;
      }

      body:has(.task-mobile-panel) .task-mobile-card,
      body:has(.task-mobile-panel) .task-mobile-card:last-child {
        width: 100%;
        min-width: 0;
        min-height: 62px;
        border: 1px solid color-mix(in srgb, var(--taupe) 58%, var(--surface));
        border-radius: 9px;
        overflow: hidden;
        background: var(--surface);
        box-shadow: none;
      }

      body:has(.task-mobile-panel) .task-mobile-card.is-completed {
        background: color-mix(in srgb, var(--blush-soft) 24%, var(--surface));
      }

      body:has(.task-mobile-panel) .task-mobile-card.is-completed .task-mobile-card-summary {
        opacity: 1;
      }

      body:has(.task-mobile-panel) .task-mobile-card-summary {
        width: 100%;
        min-height: 62px;
        padding: 5px 10px;
        display: grid;
        grid-template-columns: 26px 18px minmax(0, 1fr) 70px 12px;
        column-gap: 5px;
        align-items: center;
      }

      body:has(.task-mobile-panel) .task-mobile-check {
        width: 26px;
        height: 26px;
        position: relative;
        display: grid;
        place-items: center;
        justify-self: start;
        border: 0;
        background: transparent;
      }

      body:has(.task-mobile-panel) .task-mobile-check input {
        appearance: none;
        -webkit-appearance: none;
        width: 20px;
        min-width: 20px;
        max-width: 20px;
        height: 20px;
        min-height: 20px;
        max-height: 20px;
        margin: 0;
        border: 1.5px solid var(--rose);
        border-radius: 50%;
        background: transparent;
      }

      body:has(.task-mobile-panel) .task-mobile-check input:checked {
        border-color: var(--rose);
        background: var(--rose);
      }

      body:has(.task-mobile-panel) .task-mobile-check-icon {
        width: 11px;
        height: 11px;
      }

      body:has(.task-mobile-panel) .task-mobile-item-icon {
        width: 18px;
        height: 18px;
        margin-right: 0;
        display: grid;
        place-items: center;
        color: var(--rose-dark);
        background: transparent;
      }

      body:has(.task-mobile-panel) .task-mobile-item-svg {
        width: 17px;
        height: 17px;
        display: block;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
      }

      body:has(.task-mobile-panel) .task-mobile-card-copy {
        min-width: 0;
        padding: 0;
        font-family: "Manrope", sans-serif;
      }

      body:has(.task-mobile-panel) .task-mobile-card-copy strong {
        color: var(--heading);
        font-size: 14px;
        line-height: 18px;
        font-weight: 600;
      }

      body:has(.task-mobile-panel) .task-mobile-card-copy span {
        margin-top: 2px;
        color: var(--muted);
        font-size: 11px;
        line-height: 14px;
      }

      body:has(.task-mobile-panel) .task-mobile-priority {
        width: 100%;
        min-width: 70px;
        max-width: 70px;
        height: 28px;
        min-height: 28px;
        padding: 0 8px;
        border-radius: 7px;
        font-family: "Manrope", sans-serif;
        font-size: 12px;
        font-weight: 600;
        text-align: center;
      }

      body:has(.task-mobile-panel) .task-mobile-priority > span {
        overflow: visible;
        text-overflow: clip;
      }

      body:has(.task-mobile-panel) .task-mobile-priority:is([data-tone="completed"], [data-tone="overdue"]) {
        padding-inline: 4px;
        font-size: 10px;
      }

      body:has(.task-mobile-panel) .task-mobile-card-toggle {
        width: 12px;
        min-width: 12px;
        height: 32px;
        min-height: 32px;
        padding: 0;
        border: 0;
        border-radius: 0;
        color: var(--ink);
        background: transparent;
      }

      body:has(.task-mobile-panel) .task-mobile-card-toggle svg {
        width: 12px;
        height: 12px;
      }

      body:has(.task-mobile-panel) .task-mobile-card.is-open .task-mobile-card-toggle svg {
        transform: rotate(90deg);
      }

      body:has(.task-mobile-panel) .task-mobile-filters {
        width: 100%;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 8px;
      }

      body:has(.task-mobile-panel) .task-filter-chip {
        width: auto;
        min-width: 0;
        height: 34px;
        min-height: 34px;
        padding: 0 14px;
        flex: 1 1 auto;
        border: 1px solid color-mix(in srgb, var(--taupe) 62%, var(--surface));
        border-radius: 17px;
        color: var(--muted);
        background: var(--surface);
        font-family: "Manrope", sans-serif;
        font-size: 12px;
        font-weight: 500;
      }

      body:has(.task-mobile-panel) .task-filter-chip[aria-pressed="true"] {
        border-color: color-mix(in srgb, var(--rose) 45%, var(--taupe));
        color: var(--rose-dark);
        background: var(--blush-soft);
        font-weight: 600;
      }

      body:has(.task-mobile-panel) .mobile-bottom-nav {
        height: calc(72px + env(safe-area-inset-bottom));
        padding: 7px 14px env(safe-area-inset-bottom);
        border-top: 1px solid color-mix(in srgb, var(--taupe) 55%, var(--surface));
        background: var(--surface);
        box-shadow: none;
      }

      body:has(.task-mobile-panel) .mobile-bottom-nav button {
        width: 56px;
        min-width: 0;
        height: 58px;
        min-height: 58px;
        padding: 5px 2px;
        justify-self: center;
        gap: 4px;
        border-radius: 12px;
        font-size: 11px;
        font-weight: 500;
      }

      body:has(.task-mobile-panel) .mobile-bottom-nav button.is-active {
        color: var(--rose-dark);
        background: var(--blush-soft);
        font-weight: 600;
      }

      body:has(.task-mobile-panel) .mobile-bottom-nav .nav-icon,
      body:has(.task-mobile-panel) .mobile-bottom-nav .mobile-more-icon {
        width: 22px;
        height: 22px;
      }

      /* Match Appointment Tracker to the compact mobile scale used by Tasks. */
      body:has(.appointment-mobile-section) .sheet-heading .sheet-actions {
        margin-top: 20px;
      }

      body:has(.appointment-mobile-section) .sheet-heading .sheet-actions .button {
        height: 44px;
        min-height: 44px;
        padding: 0 10px;
        border-radius: 9px;
        font-size: 14px;
        font-weight: 600;
        box-shadow: none;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-summary,
      body:has(.appointment-mobile-section) .appointment-mobile-stat {
        min-height: 76px;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-stat {
        padding: 10px 4px;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-stat-copy {
        display: flex;
        min-height: 52px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-stat strong {
        margin-top: 0;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-list {
        gap: 7px;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-card {
        min-height: 64px;
        border-radius: 9px;
        box-shadow: none;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-card-summary {
        min-height: 62px;
        padding: 5px 10px;
        grid-template-columns: 26px minmax(0, 1fr) 70px 12px;
        gap: 5px;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-type-icon {
        width: 26px;
        min-width: 26px;
        height: 26px;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-type-icon svg,
      body:has(.appointment-mobile-section) .appointment-mobile-type-icon .nav-icon {
        width: 14px;
        height: 14px;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-copy strong {
        font-size: 13px;
        line-height: 16px;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-copy strong,
      body:has(.appointment-mobile-section) .appointment-mobile-copy span {
        max-width: 100%;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-copy span {
        margin-top: 1px;
        font-size: 10px;
        line-height: 12px;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-status {
        width: 70px;
        min-width: 70px;
        max-width: 70px;
        height: 28px;
        min-height: 28px;
        max-height: 28px;
        padding: 0 4px;
        border-radius: 7px;
        font-size: 9px;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-toggle {
        width: 12px;
        min-width: 12px;
        height: 32px;
        min-height: 32px;
        padding: 0;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-toggle svg {
        width: 12px;
        height: 12px;
      }

      /* Keep Venue Options on the same compact mobile scale. */
      body:has([data-add="venues"]) .sheet-heading .sheet-actions {
        margin-top: 20px;
      }

      body:has([data-add="venues"]) .sheet-heading .sheet-actions .button {
        height: 44px;
        min-height: 44px;
        padding: 0 10px;
        border-radius: 9px;
        font-size: 14px;
        font-weight: 600;
        box-shadow: none;
      }

      body:has([data-add="venues"]) .sheet > .stat-grid,
      body:has([data-add="venues"]) .sheet > .stat-grid .stat {
        min-height: 64px;
      }

      body:has([data-add="venues"]) .sheet > .stat-grid .stat {
        padding: 6px 3px;
      }

      body:has([data-add="venues"]) .sheet > .stat-grid .stat strong {
        font-size: 15px;
        line-height: 18px;
        white-space: nowrap;
        overflow-wrap: normal;
        font-variant-numeric: tabular-nums;
      }

      body:has([data-add="venues"]) .table-wrap tr > td.mobile-record-summary,
      body:has([data-add="venues"]) .table-wrap tr:not(.is-mobile-expanded) > td.mobile-record-summary,
      body:has([data-add="venues"]) .table-wrap tr.is-mobile-expanded > td.mobile-record-summary {
        min-height: 62px;
        padding: 5px 10px;
        grid-template-columns: 26px minmax(0, 1fr) 84px 12px;
        column-gap: 5px;
      }

      body:has([data-add="venues"]) .mobile-record-icon {
        width: 26px;
        min-width: 26px;
        height: 26px;
      }

      body:has([data-add="venues"]) .mobile-record-icon .nav-icon {
        width: 14px;
        height: 14px;
      }

      body:has([data-add="venues"]) .mobile-record-copy strong {
        font-size: 13px;
        line-height: 16px;
      }

      body:has([data-add="venues"]) .mobile-record-copy span {
        margin-top: 1px;
        font-size: 9px;
        line-height: 11px;
      }

      body:has([data-add="venues"]) .mobile-record-status {
        width: 84px;
        min-width: 84px;
        max-width: 84px;
        height: 28px;
        min-height: 28px;
        max-height: 28px;
        padding: 0 6px;
        border-radius: 7px;
        font-size: 10px;
      }

      body:has([data-add="venues"]) .mobile-record-status > span {
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
      }

      body:has([data-add="venues"]) .mobile-record-menu-button {
        width: 12px;
        min-width: 12px;
        height: 32px;
        min-height: 32px;
        padding: 0;
      }

      body:has([data-add="venues"]) .mobile-record-menu-button svg {
        width: 12px;
        height: 12px;
      }

      /* Keep Vendors aligned with the approved Venue Options sizing. */
      body:has([data-add="vendors"]) .sheet-heading .sheet-actions {
        margin-top: 20px;
      }

      body:has([data-add="vendors"]) .sheet-heading .sheet-actions .button {
        height: 44px;
        min-height: 44px;
        padding: 0 10px;
        border-radius: 9px;
        font-size: 14px;
        font-weight: 600;
        box-shadow: none;
      }

      body:has([data-add="vendors"]) .sheet-heading:has([data-add="vendors"]) .sheet-actions .button:only-child {
        height: 44px;
        min-height: 44px;
        padding: 0 10px;
        border-radius: 9px;
        font-size: 14px;
      }

      body:has([data-add="vendors"]) .sheet > .stat-grid,
      body:has([data-add="vendors"]) .sheet > .stat-grid .stat {
        min-height: 64px;
      }

      body:has([data-add="vendors"]) .sheet > .stat-grid .stat {
        padding: 6px 3px;
      }

      body:has([data-add="vendors"]) .sheet > .stat-grid .stat:nth-child(3) strong {
        font-size: 13px;
        line-height: 18px;
        white-space: nowrap;
        overflow-wrap: normal;
        font-variant-numeric: tabular-nums;
      }

      body:has([data-add="vendors"]) .table-wrap tr > td.mobile-record-summary,
      body:has([data-add="vendors"]) .table-wrap tr:not(.is-mobile-expanded) > td.mobile-record-summary,
      body:has([data-add="vendors"]) .table-wrap tr.is-mobile-expanded > td.mobile-record-summary {
        min-height: 66px;
        padding: 7px 10px;
        grid-template-columns: 32px minmax(0, 1fr) 88px 18px;
        column-gap: 8px;
      }

      body:has([data-add="vendors"]) .mobile-record-icon,
      body:has([data-add="vendors"]) .vendor-category-icon {
        width: 32px;
        min-width: 32px;
        height: 32px;
      }

      body:has([data-add="vendors"]) .mobile-record-icon .nav-icon,
      body:has([data-add="vendors"]) .vendor-category-icon .nav-icon {
        width: 15px;
        height: 15px;
      }

      body:has([data-add="vendors"]) .mobile-record-copy strong {
        font-size: 13px;
        line-height: 16px;
      }

      body:has([data-add="vendors"]) .mobile-record-copy span {
        margin-top: 1px;
        font-size: 9px;
        line-height: 11px;
      }

      body:has([data-add="vendors"]) .mobile-record-status {
        width: 88px;
        min-width: 88px;
        max-width: 88px;
        height: 28px;
        min-height: 28px;
        max-height: 28px;
        padding: 0 6px;
        border-radius: 7px;
        font-size: 10px;
      }

      body:has([data-add="vendors"]) .mobile-record-status > span {
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
      }

      body:has([data-add="vendors"]) .mobile-record-menu-button {
        width: 18px;
        min-width: 18px;
        height: 32px;
        min-height: 32px;
        padding: 0;
      }

      body:has([data-add="vendors"]) .mobile-record-menu-button svg {
        width: 12px;
        height: 12px;
      }

      /* Consistent breathing room between expanded content and its actions. */
      .table-wrap tr.is-mobile-expanded > td.cell-action,
      .table-wrap tr.is-mobile-actions-open:not(.is-mobile-expanded) > td.cell-action,
      .master-mobile-card-actions {
        padding-top: 8px;
        border-top: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
      }

      .priority-mobile-actions,
      .task-mobile-actions,
      .appointment-mobile-actions {
        margin-top: 4px;
        padding-top: 8px;
        border-top: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
      }

      dialog.calendar-dialog,
      dialog.note-dialog,
      dialog.seating-guest-dialog {
        width: calc(100% - 28px);
        max-width: 430px;
        max-height: calc(100dvh - 28px);
        border-color: var(--line-strong);
        border-radius: 8px;
        background: var(--surface);
        box-shadow: 0 6px 18px rgba(64, 55, 53, 0.14);
        overflow: hidden;
      }

      dialog.calendar-dialog::backdrop,
      dialog.note-dialog::backdrop,
      dialog.seating-guest-dialog::backdrop {
        background: rgba(48, 43, 42, 0.46);
      }

      .calendar-dialog-header,
      .note-dialog-header,
      .seating-guest-dialog-header {
        min-height: 64px;
        padding: 11px 14px;
        gap: 12px;
        background: color-mix(in srgb, var(--surface-soft) 68%, var(--surface));
      }

      .calendar-dialog-header > div {
        min-width: 0;
        display: flex;
        flex-direction: column;
      }

      .calendar-dialog-header h3 {
        order: -1;
        overflow: hidden;
        font-family: var(--font-display);
        font-size: 20px;
        font-weight: 400;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .calendar-dialog-header span {
        margin: 3px 0 0;
        color: var(--muted);
        font-size: 11px;
        font-weight: 500;
        line-height: 1.2;
        text-transform: none;
      }

      .calendar-dialog-header .icon-button,
      .note-dialog-header > .icon-button,
      .seating-guest-dialog-close {
        width: 36px;
        min-width: 36px;
        height: 36px;
        min-height: 36px;
        border-radius: 7px;
        color: var(--rose-dark);
        background: var(--surface);
      }

      .calendar-dialog-header .icon-button svg,
      .note-dialog-header > .icon-button svg {
        width: 17px;
        height: 17px;
      }

      .calendar-dialog-body {
        max-height: calc(100dvh - 106px);
        padding: 0;
        overflow-y: auto;
      }

      .calendar-dialog .calendar-detail-row {
        padding: 14px;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 11px;
        align-items: stretch;
      }

      .calendar-dialog .calendar-detail-copy strong {
        font-size: 14px;
        line-height: 1.3;
      }

      .calendar-dialog .calendar-detail-copy span {
        display: block;
        margin-top: 2px;
        font-size: 11px;
      }

      .calendar-dialog .calendar-detail-actions {
        padding-top: 10px;
        border-top: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
        display: grid;
        grid-template-columns: minmax(0, 1fr) 40px auto;
        gap: 8px;
        align-items: center;
      }

      .calendar-dialog .calendar-detail-value {
        max-width: none;
        color: var(--ink);
        font-size: 12px;
        font-weight: 600;
        text-align: left;
      }

      .calendar-dialog .calendar-google-button {
        width: 40px;
        min-width: 40px;
        height: 40px;
        min-height: 40px;
        border-radius: 7px;
      }

      .calendar-dialog .calendar-source-button {
        min-width: 72px;
        min-height: 40px;
        padding: 8px 10px;
        justify-content: center;
        border-radius: 7px;
      }

      .note-dialog-heading {
        gap: 9px;
      }

      .note-dialog-back {
        display: none;
      }

      .note-dialog-title-icon,
      .dashboard-notes-dialog-icon {
        width: 30px;
        min-width: 30px;
        height: 30px;
      }

      .note-dialog-title-icon .nav-icon,
      .dashboard-notes-dialog-icon .nav-icon {
        width: 16px;
        height: 16px;
      }

      .note-dialog-header h3,
      .seating-guest-dialog-header h3 {
        min-width: 0;
        overflow: hidden;
        font-size: 16px;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .note-dialog-body {
        padding: 14px;
      }

      .note-dialog textarea {
        min-height: 190px;
        max-height: min(52dvh, 420px);
        padding: 12px;
        border-radius: 7px;
      }

      .note-dialog-footer {
        padding: 0 14px 14px;
        gap: 10px;
      }

      .note-dialog-footer .button {
        min-height: 40px;
        border-radius: 7px;
      }

      .seating-guest-dialog-body {
        max-height: calc(100dvh - 106px);
        padding: 10px;
      }

      .seating-picker-guest {
        min-height: 46px;
        border-radius: 7px;
      }

      /* Keep mobile copy readable when Safari applies its own text sizing. */
      html,
      body {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
      }

      .mobile-record-copy strong,
      .mobile-record-copy span {
        max-width: 100%;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere;
        -webkit-line-clamp: unset;
      }

      .table-wrap tr.is-mobile-editing .mobile-status-trigger > span,
      .appointment-mobile-copy strong,
      .appointment-mobile-copy span {
        max-width: 100%;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere;
      }

      .table-wrap tr.is-mobile-editing .mobile-status-trigger:not([data-status-tone]):not([data-select-tone]) {
        border-color: var(--line-strong);
        color: var(--ink);
        background: var(--surface);
      }

      .mobile-record-status[data-tone="researching"],
      .mobile-record-status[data-tone="shortlisted"],
      .mobile-record-status[data-tone="in-progress"],
      .mobile-record-status[data-tone="not-started"],
      .mobile-record-status[data-tone="to-confirm"],
      .mobile-record-status[data-tone="do-not-play"] {
        font-size: 9px;
        letter-spacing: 0;
      }

      .mobile-record-status > span {
        max-width: 100%;
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
      }

      body:has(.task-mobile-panel) .task-mobile-card-editor {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
      }

      body:has(.task-mobile-panel) .task-mobile-field,
      body:has(.task-mobile-panel) .task-mobile-field.is-wide {
        grid-column: 1 / -1;
      }

      body:has(.task-mobile-panel) .task-mobile-field input[type="date"] {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-inline-size: 0;
        max-inline-size: 100%;
      }

      /* Appointment fields stay inside the phone viewport, including iOS date/time controls. */
      body:has(.appointment-mobile-section) .appointment-mobile-editor {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-field,
      body:has(.appointment-mobile-section) .appointment-mobile-field.is-wide {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        grid-column: 1 / -1;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-field .table-input,
      body:has(.appointment-mobile-section) .appointment-mobile-field .mobile-status-trigger {
        width: 100%;
        min-width: 0;
        max-width: 100%;
      }

      /* A 16px control font prevents Safari from zooming and cropping mobile forms. */
      input.table-input,
      select.table-input,
      textarea.table-input,
      .field input,
      .field select,
      .field textarea {
        font-size: 16px;
      }

      #sheet input[type="date"],
      #sheet input[type="time"] {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-inline-size: 0;
        max-inline-size: 100%;
        box-sizing: border-box;
        -webkit-appearance: none;
        appearance: none;
      }

      #sheet label:has(> input[type="date"]),
      #sheet label:has(> input[type="time"]) {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
      }

      #sheet input[type="date"]::-webkit-date-and-time-value,
      #sheet input[type="date"]::-webkit-datetime-edit,
      #sheet input[type="time"]::-webkit-date-and-time-value,
      #sheet input[type="time"]::-webkit-datetime-edit {
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        text-align: left;
      }

      #sheet input[type="date"]::-webkit-calendar-picker-indicator,
      #sheet input[type="time"]::-webkit-calendar-picker-indicator {
        flex: 0 0 auto;
        margin: 0 0 0 8px;
        padding: 2px;
      }

      #sheet .table-input,
      #sheet .mobile-status-trigger {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
      }

      .mood-mobile-palette-row {
        grid-template-columns: minmax(80px, 30%) 44px minmax(0, 1fr);
      }

      /* One compact heading rhythm for every standard mobile section. */
      #sheet .sheet-heading {
        width: 100%;
        padding: 4px 0 12px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
      }

      #sheet .sheet-heading h2 {
        margin: 0;
        font-size: 29px;
        line-height: 1.08;
        font-weight: 400;
      }

      #sheet .sheet-heading p {
        max-width: 100%;
        margin: 6px 0 0;
        font-size: 14px;
        line-height: 1.45;
      }

      /* Priorities keeps its add button outside the shared heading. Remove the
         empty action slot so the mobile intro follows the same 16px rhythm. */
      #sheet .priorities-mobile-view > .sheet-heading {
        padding-bottom: 6px;
      }

      #sheet .priorities-mobile-view > .sheet-heading .sheet-actions:empty {
        display: none;
        margin: 0;
      }

      #sheet .sheet-heading .sheet-actions,
      #sheet .sheet-heading:has([data-add="vendors"]) .sheet-actions {
        width: 100%;
        margin: 16px 0 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
      }

      #sheet .sheet-heading .sheet-actions .button,
      #sheet .sheet-heading .sheet-actions .button:only-child,
      #sheet .sheet-heading:has([data-add="vendors"]) .sheet-actions .button:only-child {
        width: 100%;
        min-width: 0;
        height: 44px;
        min-height: 44px;
        padding: 0 10px;
        border-radius: 9px;
        justify-content: center;
        font-size: 14px;
        font-weight: 600;
        box-shadow: none;
      }

      #sheet .sheet-heading .sheet-actions .button:only-child,
      #sheet .sheet-heading:has([data-add="vendors"]) .sheet-actions .button:only-child {
        grid-column: 1 / -1;
      }

      body:has(.task-mobile-panel) .task-mobile-actions {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      body:has(.task-mobile-panel) .task-mobile-actions .button,
      body:has(.task-mobile-panel) .task-mobile-actions .task-mobile-remove {
        width: 100%;
        min-width: 0;
        grid-column: auto;
        justify-self: stretch;
      }

      /* One readable metadata scale across every mobile section. */
      .mobile-record-copy span,
      body:has(.task-mobile-panel) .task-mobile-card-copy span,
      body:has(.appointment-mobile-section) .appointment-mobile-copy span,
      .priority-mobile-meta,
      .priority-mobile-due,
      .mobile-seating-guest-copy span,
      .dashboard-mobile-upcoming-copy span,
      .dashboard-mobile-upcoming-value,
      .smart-calendar-layout .mini-row-meta,
      .calendar-detail-copy span,
      .home-mobile-progress-copy small,
      .home-mobile-task-row small,
      .home-mobile-venue-copy small,
      .home-mobile-metric > span:not(.home-mobile-card-heading):not(.home-mobile-track),
      .home-mobile-metric > small {
        font-size: 12px;
        line-height: 16px;
        letter-spacing: 0;
      }

      .sheet:has([data-add="weddingParty"]) tr[data-kind="weddingParty"] .mobile-record-copy span,
      body:has([data-add="venues"]) .mobile-record-copy span,
      body:has([data-add="vendors"]) .mobile-record-copy span,
      .smart-calendar-layout .mini-row-content > .mini-row-meta {
        font-size: 12px;
        line-height: 16px;
        letter-spacing: 0;
      }

      .priority-mobile-meta .priority-mobile-importance,
      .smart-calendar-layout .mini-row-content > .mini-row-meta > span {
        font-size: inherit;
        line-height: inherit;
      }
    }

    /* Status and priority contrast pass. Presentation and semantic colours stay
       unchanged; only text contrast is unified across desktop and mobile. */
    #sheet :is(
      select.table-input,
      .mobile-status-trigger,
      .mobile-record-status,
      .appointment-mobile-status,
      .task-mobile-priority,
      .priority-mobile-stage
    ):is(
      [data-select-tone="high"],
      [data-select-tone="must-play"],
      [data-tone="high"],
      [data-tone="must-play"]
    ) {
      color: var(--status-priority-text);
    }

    #sheet :is(
      select.table-input,
      .mobile-status-trigger,
      .mobile-record-status,
      .appointment-mobile-status,
      .task-mobile-priority,
      .priority-mobile-stage
    ):is(
      [data-status-tone="confirmed"],
      [data-tone="confirmed"]
    ) {
      color: var(--status-confirmed-text);
    }

    #sheet :is(
      select.table-input,
      .mobile-status-trigger,
      .mobile-record-status,
      .appointment-mobile-status,
      .task-mobile-priority,
      .priority-mobile-stage
    ):is(
      [data-status-tone="approved"],
      [data-status-tone="chosen"],
      [data-status-tone="final"],
      [data-status-tone="paid"],
      [data-status-tone="done"],
      [data-status-tone="complete"],
      [data-select-tone="decided"],
      [data-select-tone="rsvp-yes"],
      [data-select-tone="binary-yes"],
      [data-tone="approved"],
      [data-tone="chosen"],
      [data-tone="final"],
      [data-tone="paid"],
      [data-tone="done"],
      [data-tone="complete"],
      [data-tone="completed"],
      [data-tone="decided"],
      [data-tone="rsvp-yes"],
      [data-tone="binary-yes"]
    ) {
      color: var(--status-success-text);
    }

    #sheet :is(
      select.table-input,
      .mobile-status-trigger,
      .mobile-record-status,
      .appointment-mobile-status,
      .task-mobile-priority,
      .priority-mobile-stage
    ):is(
      [data-status-tone="cancelled"],
      [data-status-tone="canceled"],
      [data-status-tone="declined"],
      [data-status-tone="no"],
      [data-status-tone="do-not-play"],
      [data-select-tone="do-not-play"],
      [data-select-tone="rsvp-no"],
      [data-select-tone="binary-no"],
      [data-tone="cancelled"],
      [data-tone="canceled"],
      [data-tone="declined"],
      [data-tone="no"],
      [data-tone="do-not-play"],
      [data-tone="rsvp-no"],
      [data-tone="binary-no"],
      [data-tone="overdue"]
    ) {
      color: var(--status-danger-text);
    }

    /* Keep every compact mobile status pill on the same readable baseline.
       Explicit metrics prevent descenders (for example the “g” in Deciding)
       from being cropped by section-specific compact-card rules. */
    @media (max-width: 1024px) {
      #sheet .mobile-status-trigger:not(.mobile-quick-status-trigger) {
        min-height: 46px;
        padding-block: 10px;
        font-weight: 400;
        line-height: 22px;
        overflow: visible;
      }

      #sheet .mobile-status-trigger > span {
        display: block;
        min-width: 0;
        max-width: 100%;
        padding-block: 1px;
        line-height: 20px;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
      }

      #sheet :is(
        .mobile-record-status,
        .appointment-mobile-status,
        .task-mobile-priority,
        .priority-mobile-stage
      ) {
        box-sizing: border-box;
        height: 32px;
        min-height: 32px;
        max-height: 32px;
        padding-block: 4px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 20px;
        vertical-align: middle;
        overflow: visible;
      }

      #sheet :is(
        .mobile-record-status,
        .appointment-mobile-status,
        .task-mobile-priority,
        .priority-mobile-stage
      ) > span {
        min-width: 0;
        max-width: 100%;
        padding: 0;
        display: block;
        line-height: 20px;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
      }

      /* Wedding Party has no status field: keep its empty placeholder hidden so
         the disclosure arrow stays in the right-hand column on the same row. */
      #sheet:has([data-add="weddingParty"]) tr[data-kind="weddingParty"] .mobile-record-status.is-empty {
        display: none;
      }

      /* Timeline rows also have no status field; never draw a blank status box. */
      #sheet:has([data-add="dayTimeline"]) tr[data-kind="dayTimeline"] .mobile-record-status.is-empty {
        display: none;
      }

      /* Keep scrolled Timeline content from showing through the sticky header. */
      body:has(#sheet [data-add="dayTimeline"]) .topbar {
        background: var(--surface);
        backdrop-filter: none;
      }

      .mobile-status-menu .mobile-status-option {
        min-height: 42px;
        padding: 8px 10px 8px 8px;
        grid-template-columns: 18px minmax(0, 1fr);
        gap: 6px;
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
        overflow: visible;
      }

      .mobile-status-menu .mobile-status-option > span {
        min-width: 0;
        line-height: 20px;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
      }

      #sheet .priority-mobile-stage {
        font-size: 12px;
        font-weight: 600;
      }

      body:has(.task-mobile-panel) .task-mobile-card-summary {
        grid-template-columns: 26px 18px minmax(0, 1fr) 84px 12px;
      }

      body:has(.task-mobile-panel) .task-mobile-priority {
        width: 84px;
        min-width: 84px;
        max-width: 84px;
        padding-inline: 6px;
        font-size: 11px;
        font-weight: 400;
      }

      body:has(.task-mobile-panel) .task-mobile-priority:is([data-tone="completed"], [data-tone="overdue"]) {
        padding-inline: 4px;
        font-size: 11px;
      }

      body:has(.task-mobile-panel) .task-mobile-card-editor .task-mobile-field > span,
      body:has(.task-mobile-panel) .task-mobile-card-editor .table-input,
      body:has(.task-mobile-panel) .task-mobile-card-editor .mobile-status-trigger {
        font-weight: 400;
      }

      /* Keep Task Tracker and Packing List edit cards inside the real phone viewport. */
      body:has(.task-mobile-panel) .sheet {
        inline-size: 100dvw;
        max-inline-size: 100dvw;
      }

      body:has(.task-mobile-panel) .task-mobile-panel,
      body:has(.task-mobile-panel) .task-mobile-list,
      body:has(.task-mobile-panel) .task-mobile-card {
        inline-size: 100%;
        min-inline-size: 0;
        max-inline-size: calc(100dvw - 40px);
      }

      body:has(.task-mobile-panel) .task-mobile-card-editor,
      body:has(.task-mobile-panel) .task-mobile-field,
      body:has(.task-mobile-panel) .task-mobile-actions {
        inline-size: 100%;
        min-inline-size: 0;
        max-inline-size: 100%;
      }

      body:has(.task-mobile-panel) .task-mobile-field .table-input,
      body:has(.task-mobile-panel) .task-mobile-field .mobile-status-trigger,
      body:has(.task-mobile-panel) .task-mobile-field .notes-cell-inner,
      body:has(.task-mobile-panel) .task-mobile-field .note-preview-button {
        box-sizing: border-box;
        inline-size: 100%;
        min-inline-size: 0;
        max-inline-size: 100%;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-stat strong {
        font-size: 18px;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-stat:last-child strong {
        font-size: 15px;
        font-weight: 650;
        letter-spacing: -0.01em;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-stat span {
        font-size: 10px;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-card,
      body:has(.appointment-mobile-section) .appointment-mobile-card-summary {
        min-height: 68px;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-card-summary {
        padding: 7px 10px;
        grid-template-columns: 28px minmax(0, 1fr) 74px 14px;
        gap: 6px;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-type-icon {
        width: 28px;
        min-width: 28px;
        height: 28px;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-type-icon svg,
      body:has(.appointment-mobile-section) .appointment-mobile-type-icon .nav-icon {
        width: 15px;
        height: 15px;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-copy strong {
        font-size: 14px;
        line-height: 18px;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-copy span {
        margin-top: 2px;
        font-size: 11px;
        line-height: 14px;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-status {
        width: 74px;
        min-width: 74px;
        max-width: 74px;
        font-size: 10px;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-toggle {
        width: 14px;
        min-width: 14px;
        height: 34px;
        min-height: 34px;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-toggle svg {
        width: 13px;
        height: 13px;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-field > span {
        font-size: 12px;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-field > span svg {
        width: 15px;
        height: 15px;
      }

      /* Keep every mobile edit form consistent: field labels and entered values use regular weight. */
      #sheet label,
      #sheet label > span,
      #sheet td::before,
      #sheet input,
      #sheet select,
      #sheet option,
      #sheet textarea,
      #sheet .note-preview-button,
      #sheet .mobile-status-trigger {
        font-weight: 400;
      }

      /* Keep the native mobile date value aligned like the other Appointment fields. */
      body:has(.appointment-mobile-section) .appointment-mobile-field input[type="date"] {
        height: 44px;
        min-height: 44px;
        padding: 9px 11px;
        color: var(--ink);
        font-size: 16px;
        font-weight: 400;
        line-height: 24px;
        text-align: left;
      }

      body:has(.appointment-mobile-section) .appointment-mobile-field input[type="date"]::-webkit-date-and-time-value,
      body:has(.appointment-mobile-section) .appointment-mobile-field input[type="date"]::-webkit-datetime-edit {
        min-height: 24px;
        margin: 0;
        padding: 0;
        color: var(--ink);
        font: inherit;
        line-height: 24px;
        text-align: left;
      }

      /* Center priority names optically with their icon and status pill. */
      .priority-mobile-card-summary > strong {
        position: relative;
        top: 3px;
      }

      /* Match Photography Shotlist to the compact Task Tracker mobile pattern. */
      body:has(.shotlist-mobile-view) .sheet-heading [data-shotlist-progress-toggle] {
        border: 1px solid var(--rose);
        color: var(--rose-dark);
        background: var(--surface);
      }

      .shotlist-mobile-view > .panel > .panel-title {
        display: none;
      }

      .shotlist-mobile-view > .panel > .panel-body,
      .shotlist-mobile-view .table-wrap {
        padding: 0;
        border: 0;
        border-radius: 0;
        overflow: visible;
        background: transparent;
      }

      .shotlist-mobile-view .table-wrap tbody {
        gap: 7px;
      }

      .shotlist-mobile-view .table-wrap tbody tr[data-kind="shotlist"],
      .shotlist-mobile-view .table-wrap tbody tr[data-kind="shotlist"]:nth-child(even) {
        min-height: 62px;
        border-color: color-mix(in srgb, var(--line) 84%, transparent);
        border-radius: 9px;
        background: var(--surface);
        box-shadow: none;
      }

      .shotlist-mobile-view .table-wrap tr[data-kind="shotlist"] > td.mobile-record-summary,
      .shotlist-mobile-view .table-wrap tr[data-kind="shotlist"]:not(.is-mobile-expanded) > td.mobile-record-summary,
      .shotlist-mobile-view .table-wrap tr[data-kind="shotlist"].is-mobile-expanded > td.mobile-record-summary {
        min-height: 62px;
        padding: 5px 9px 5px 10px;
        grid-template-columns: 26px 18px minmax(0, 1fr) 84px 12px;
        column-gap: 5px;
      }

      .shotlist-mobile-view .mobile-record-completion {
        width: 26px;
        min-width: 26px;
        height: 26px;
        grid-column: 1;
      }

      .shotlist-mobile-view .mobile-record-completion::before {
        width: 20px;
        height: 20px;
        border-width: 1.5px;
      }

      .shotlist-mobile-view .mobile-record-completion svg {
        width: 11px;
        height: 11px;
      }

      .shotlist-mobile-view .mobile-record-summary > .mobile-record-icon {
        width: 18px;
        min-width: 18px;
        height: 18px;
        grid-column: 2;
        border: 0;
        border-radius: 0;
        color: var(--rose-dark);
        background: transparent;
      }

      .shotlist-mobile-view .mobile-record-icon .nav-icon {
        width: 17px;
        height: 17px;
      }

      .shotlist-mobile-view .mobile-record-summary > .mobile-record-copy {
        grid-column: 3;
        gap: 2px;
      }

      .shotlist-mobile-view .mobile-record-copy strong {
        font-size: 14px;
        font-weight: 600;
        line-height: 18px;
        -webkit-line-clamp: 2;
      }

      .shotlist-mobile-view .mobile-record-copy span {
        font-size: 11px;
        line-height: 14px;
      }

      .shotlist-mobile-view .mobile-record-summary > .mobile-record-status {
        width: 84px;
        min-width: 84px;
        max-width: 84px;
        height: 28px;
        min-height: 28px;
        max-height: 28px;
        padding: 4px 6px;
        grid-column: 4;
        border-radius: 7px;
        font-size: 11px;
        font-weight: 400;
        line-height: 18px;
      }

      .shotlist-mobile-view .mobile-record-summary > .mobile-record-menu-button {
        width: 12px;
        min-width: 12px;
        height: 32px;
        min-height: 32px;
        padding: 0;
        grid-column: 5;
        border-radius: 0;
        background: transparent;
      }

      .shotlist-mobile-view .mobile-record-menu-button svg {
        width: 12px;
        height: 12px;
        transform: rotate(-90deg);
      }

      .shotlist-mobile-view .mobile-record-menu-button[aria-expanded="true"] svg {
        transform: rotate(0deg);
      }

      .shotlist-mobile-view .table-tools {
        display: none;
      }

      /* Give Wedding Day Timeline the same calm mobile hierarchy as Task Tracker. */
      body:has(.day-timeline-mobile-view) .sheet-heading [data-day-timeline-overview-toggle] {
        border: 1px solid var(--rose);
        color: var(--rose-dark);
        background: var(--surface);
      }

      .day-timeline-mobile-view > .panel > .panel-title {
        display: none;
      }

      .day-timeline-mobile-view > .panel > .panel-body,
      .day-timeline-mobile-view .table-wrap {
        padding: 0;
        border: 0;
        border-radius: 0;
        overflow: visible;
        background: transparent;
      }

      .day-timeline-mobile-view .table-wrap tbody {
        gap: 7px;
      }

      .day-timeline-mobile-view .table-wrap tbody tr[data-kind="dayTimeline"],
      .day-timeline-mobile-view .table-wrap tbody tr[data-kind="dayTimeline"]:nth-child(even) {
        min-height: 62px;
        border-color: color-mix(in srgb, var(--line) 84%, transparent);
        border-radius: 9px;
        background: var(--surface);
        box-shadow: none;
      }

      .day-timeline-mobile-view .table-wrap tr[data-kind="dayTimeline"] > td.mobile-record-summary,
      .day-timeline-mobile-view .table-wrap tr[data-kind="dayTimeline"]:not(.is-mobile-expanded) > td.mobile-record-summary,
      .day-timeline-mobile-view .table-wrap tr[data-kind="dayTimeline"].is-mobile-expanded > td.mobile-record-summary {
        min-height: 62px;
        padding: 5px 9px 5px 10px;
        grid-template-columns: 30px minmax(0, 1fr) 78px 14px;
        column-gap: 7px;
      }

      .day-timeline-mobile-view .mobile-record-icon {
        width: 30px;
        min-width: 30px;
        height: 30px;
      }

      .day-timeline-mobile-view .mobile-record-icon .nav-icon {
        width: 16px;
        height: 16px;
      }

      .day-timeline-mobile-view .mobile-record-copy {
        gap: 2px;
      }

      .day-timeline-mobile-view .mobile-record-copy strong {
        font-size: 14px;
        font-weight: 600;
        line-height: 18px;
        -webkit-line-clamp: 1;
      }

      .day-timeline-mobile-view .mobile-record-copy span {
        font-size: 11px;
        line-height: 14px;
      }

      .day-timeline-mobile-view .mobile-record-status {
        width: 78px;
        min-width: 78px;
        max-width: 78px;
        height: 28px;
        min-height: 28px;
        max-height: 28px;
        padding: 4px 6px;
        border-color: color-mix(in srgb, var(--rose) 26%, var(--line));
        border-radius: 7px;
        color: var(--rose-dark);
        background: var(--blush-soft);
        font-size: 10px;
        font-weight: 400;
        line-height: 18px;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .day-timeline-mobile-view .mobile-record-menu-button {
        width: 14px;
        min-width: 14px;
        height: 32px;
        min-height: 32px;
        padding: 0;
        border-radius: 0;
        background: transparent;
      }

      .day-timeline-mobile-view .mobile-record-menu-button svg {
        width: 12px;
        height: 12px;
        transform: rotate(-90deg);
      }

      .day-timeline-mobile-view .mobile-record-menu-button[aria-expanded="true"] svg {
        transform: rotate(0deg);
      }

      .day-timeline-mobile-view .table-tools {
        display: none;
      }

    }

    /* One shared size for every four-column mobile summary strip. */
    @media (max-width: 1024px) {
      #sheet {
        --mobile-summary-height: 72px;
        --mobile-summary-padding: 7px 4px;
        --mobile-section-inline: 16px;
        --mobile-card-height: 84px;
        --mobile-card-summary-height: 82px;
        --mobile-status-width: 104px;
      }

      #sheet > .stat-grid,
      #sheet .task-mobile-panel > .stat-grid,
      #sheet .priority-mobile-summary,
      #sheet .appointment-mobile-summary,
      #sheet .seating-page-shell > .seating-summary-grid {
        height: calc(var(--mobile-summary-height) + 2px);
        min-height: calc(var(--mobile-summary-height) + 2px);
        max-height: calc(var(--mobile-summary-height) + 2px);
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      #sheet > .stat-grid > .stat,
      #sheet .task-mobile-panel > .stat-grid > .stat,
      #sheet .priority-mobile-summary > .priority-mobile-summary-item,
      #sheet .appointment-mobile-summary > .appointment-mobile-stat,
      #sheet .seating-page-shell > .seating-summary-grid > .stat {
        box-sizing: border-box;
        height: var(--mobile-summary-height);
        min-height: var(--mobile-summary-height);
        max-height: var(--mobile-summary-height);
        padding: var(--mobile-summary-padding);
        align-items: center;
        justify-content: center;
        border-right: 1px solid var(--line);
        border-bottom: 0;
        text-align: center;
      }

      #sheet > .stat-grid > .stat:nth-child(2n),
      #sheet .task-mobile-panel > .stat-grid > .stat:nth-child(2n),
      #sheet .priority-mobile-summary > .priority-mobile-summary-item:nth-child(2n),
      #sheet .appointment-mobile-summary > .appointment-mobile-stat:nth-child(2n),
      #sheet .seating-page-shell > .seating-summary-grid > .stat:nth-child(2n) {
        border-right: 1px solid var(--line);
      }

      #sheet > .stat-grid > .stat:last-child,
      #sheet .task-mobile-panel > .stat-grid > .stat:last-child,
      #sheet .priority-mobile-summary > .priority-mobile-summary-item:last-child,
      #sheet .appointment-mobile-summary > .appointment-mobile-stat:last-child,
      #sheet .seating-page-shell > .seating-summary-grid > .stat:last-child {
        border-right: 0;
      }

      body:has(#sheet .sheet-heading) #sheet {
        padding-top: 12px;
        padding-right: var(--mobile-section-inline);
        padding-left: var(--mobile-section-inline);
      }

      body:has(#sheet .guest-mobile-top) #sheet {
        padding-right: var(--mobile-section-inline);
        padding-left: var(--mobile-section-inline);
      }

      #sheet .sheet-heading,
      #sheet .priorities-mobile-view > .sheet-heading {
        padding: 4px 0 12px;
        gap: 0;
      }

      #sheet .sheet-heading h2,
      #sheet .priorities-mobile-view > .sheet-heading h2 {
        font-size: 26px;
        line-height: 1.08;
      }

      #sheet .guest-mobile-title-row h2 {
        color: var(--heading);
        font-size: 26px;
        line-height: 1.08;
      }

      #sheet .sheet-heading p,
      #sheet .priorities-mobile-view > .sheet-heading p {
        margin-top: 6px;
        font-size: 14px;
        line-height: 1.45;
      }

      #sheet .sheet-heading .sheet-actions,
      #sheet .sheet-heading:has([data-add="vendors"]) .sheet-actions {
        margin-top: 12px;
      }

      #sheet .sheet-heading .sheet-actions .button,
      #sheet .priority-mobile-add {
        height: 44px;
        min-height: 44px;
        padding: 0 10px;
        border-radius: 9px;
        font-size: 14px;
        font-weight: 600;
      }

      #sheet .priority-mobile-add {
        margin-top: 0;
      }

      body:has(.task-mobile-panel) .topbar {
        min-height: 0;
      }

      body:has(.task-mobile-panel) .topbar-inner {
        min-height: 58px;
      }

      body:has(.task-mobile-panel) #sheet {
        padding-top: 12px;
        gap: 14px;
      }

      body:has(.task-mobile-panel) #sheet .task-mobile-list {
        width: calc(100% - 8px);
        margin-inline: 4px;
      }

      body:has(.task-mobile-panel) #sheet .task-mobile-card-summary {
        padding-right: 8px;
        padding-left: 8px;
        grid-template-columns: 26px 18px minmax(0, 1fr) 76px 12px;
      }

      body:has(.task-mobile-panel) #sheet .task-mobile-priority {
        width: 76px;
        min-width: 76px;
        max-width: 76px;
      }

      body:has(.task-mobile-panel) #sheet .task-mobile-panel {
        gap: 14px;
      }

      #sheet :is(
        .setup-mobile-view,
        .mood-mobile-view,
        .priorities-mobile-view,
        .seating-page-shell
      ) {
        gap: 14px;
      }

      body:has(.task-mobile-panel) #sheet,
      body:has(.task-mobile-panel) #sheet .task-mobile-panel,
      body:has(.task-mobile-panel) #sheet .task-mobile-list,
      body:has(.task-mobile-panel) #sheet .task-mobile-card {
        max-inline-size: 100%;
      }

      #sheet .priority-mobile-card.is-open {
        height: auto;
        max-height: none;
      }

      /* Keep long Timeline owners readable without enlarging every list row. */
      #sheet .day-timeline-mobile-view .mobile-record-summary {
        grid-template-columns: 30px minmax(0, 1fr) 104px 14px;
      }

      #sheet .day-timeline-mobile-view .mobile-record-status {
        width: 104px;
        min-width: 104px;
        max-width: 104px;
        height: 28px;
        min-height: 28px;
        max-height: 28px;
        font-size: 10px;
      }

      /* Gifts uses the same compact row proportions as Tasks. */
      body:has([data-add="gifts"]) .table-wrap tr > td.mobile-record-summary,
      body:has([data-add="gifts"]) .table-wrap tr:not(.is-mobile-expanded) > td.mobile-record-summary,
      body:has([data-add="gifts"]) .table-wrap tr.is-mobile-expanded > td.mobile-record-summary {
        min-height: 62px;
        height: 62px;
        padding: 5px 10px;
        grid-template-columns: 26px minmax(0, 1fr) 70px 12px;
        column-gap: 5px;
      }

      body:has([data-add="gifts"]) .mobile-record-icon {
        width: 26px;
        min-width: 26px;
        height: 26px;
      }

      body:has([data-add="gifts"]) .mobile-record-copy strong {
        font-size: 13px;
        line-height: 16px;
      }

      body:has([data-add="gifts"]) .mobile-record-copy {
        gap: 0;
        min-height: 29px;
      }

      body:has([data-add="gifts"]) .mobile-record-copy span {
        font-size: 10px;
        line-height: 12px;
      }

      body:has([data-add="gifts"]) .mobile-record-status {
        width: 70px;
        min-width: 70px;
        max-width: 70px;
        height: 28px;
        min-height: 28px;
        max-height: 28px;
        font-size: 10px;
      }

      body:has([data-add="gifts"]) .mobile-record-menu-button {
        width: 12px;
        min-width: 12px;
        height: 32px;
        min-height: 32px;
        padding: 0;
      }

      /* Guest List is the shared mobile record pattern across every section. */
      #sheet {
        --mobile-record-row-height: 64px;
        --mobile-record-summary-height: 62px;
        --mobile-record-icon-size: 26px;
        --mobile-record-status-width: 70px;
        --mobile-record-toggle-width: 44px;
        --mobile-record-active-bg: var(--blush-soft);
        --mobile-record-active-color: var(--rose-dark);
      }

      #sheet .table-wrap tbody tr:not(.is-mobile-expanded) {
        height: var(--mobile-record-row-height);
        min-height: var(--mobile-record-row-height);
        max-height: var(--mobile-record-row-height);
      }

      #sheet .table-wrap tr > td.mobile-record-summary,
      #sheet .table-wrap tr:not(.is-mobile-expanded) > td.mobile-record-summary,
      #sheet .table-wrap tr.is-mobile-expanded > td.mobile-record-summary {
        height: var(--mobile-record-summary-height);
        min-height: var(--mobile-record-summary-height);
        padding: 5px 8px;
        grid-template-columns: var(--mobile-record-icon-size) minmax(0, 1fr) var(--mobile-record-status-width) var(--mobile-record-toggle-width);
        column-gap: 6px;
      }

      #sheet .table-wrap tr:has(.mobile-record-status.is-empty) > td.mobile-record-summary {
        grid-template-columns: var(--mobile-record-icon-size) minmax(0, 1fr) var(--mobile-record-toggle-width);
      }

      #sheet .mobile-record-icon,
      #sheet .table-wrap .vendor-category-icon {
        width: var(--mobile-record-icon-size);
        min-width: var(--mobile-record-icon-size);
        height: var(--mobile-record-icon-size);
      }

      #sheet .mobile-record-copy {
        gap: 0;
      }

      #sheet .mobile-record-copy strong {
        font-size: 13px;
        line-height: 16px;
      }

      #sheet .mobile-record-copy span {
        font-size: 10px;
        line-height: 12px;
      }

      #sheet .appointment-mobile-card:not(.is-open),
      #sheet .priority-mobile-card:not(.is-open),
      #sheet .task-mobile-card:not(.is-open),
      #sheet .mobile-seating-guest-card,
      #sheet .dashboard-mobile-upcoming-row {
        height: var(--mobile-record-row-height);
        min-height: var(--mobile-record-row-height);
        max-height: var(--mobile-record-row-height);
      }

      #sheet .appointment-mobile-card-summary,
      #sheet .priority-mobile-card-summary,
      #sheet .task-mobile-card-summary {
        height: var(--mobile-record-summary-height);
        min-height: var(--mobile-record-summary-height);
      }

      #sheet .appointment-mobile-card-summary {
        padding: 5px 8px;
        grid-template-columns: var(--mobile-record-icon-size) minmax(0, 1fr) var(--mobile-record-status-width) var(--mobile-record-toggle-width);
        column-gap: 6px;
      }

      body:has(.task-mobile-panel) #sheet .task-mobile-card-summary {
        padding: 5px 8px;
        grid-template-columns: 26px 18px minmax(0, 1fr) var(--mobile-record-status-width) var(--mobile-record-toggle-width);
        column-gap: 6px;
      }

      body:has(.task-mobile-panel) #sheet .task-mobile-check {
        width: 26px;
        min-width: 26px;
        height: 44px;
      }

      #sheet .appointment-mobile-type-icon {
        width: var(--mobile-record-icon-size);
        min-width: var(--mobile-record-icon-size);
        height: var(--mobile-record-icon-size);
      }

      #sheet .appointment-mobile-copy strong,
      #sheet .task-mobile-card-copy strong {
        font-size: 13px;
        line-height: 16px;
      }

      #sheet .appointment-mobile-copy span,
      #sheet .task-mobile-card-copy span {
        font-size: 10px;
        line-height: 12px;
      }

      #sheet .priority-mobile-card-summary {
        padding: 5px 6px 5px 8px;
        grid-template-columns: 26px minmax(0, 1fr) var(--mobile-record-status-width) 32px;
        grid-template-rows: 24px 16px;
        grid-template-areas:
          "icon title status toggle"
          "icon meta due due";
        gap: 2px 5px;
        align-content: center;
      }

      #sheet .priority-mobile-main-icon {
        width: 26px;
        min-width: 26px;
        height: 26px;
        grid-area: icon;
      }

      #sheet .priority-mobile-card-summary > strong {
        top: 0;
        grid-area: title;
        font-family: var(--font);
        font-size: 13px;
        font-weight: 700;
        line-height: 16px;
      }

      #sheet .priority-mobile-stage {
        width: 84px;
        min-width: 84px;
        max-width: 84px;
        height: 24px;
        min-height: 24px;
        max-height: 24px;
        grid-area: status;
        font-size: 10px;
      }

      #sheet .priority-mobile-toggle-icon {
        width: 32px;
        min-width: 32px;
        height: 32px;
        grid-area: toggle;
      }

      #sheet .shotlist-mobile-view .table-wrap tr[data-kind="shotlist"] > td.mobile-record-summary {
        grid-template-columns: 26px 18px minmax(0, 1fr) var(--mobile-record-status-width) var(--mobile-record-toggle-width);
      }

      #sheet .day-timeline-mobile-view .table-wrap tr[data-kind="dayTimeline"] > td.mobile-record-summary {
        grid-template-columns: var(--mobile-record-icon-size) minmax(0, 1fr) 104px var(--mobile-record-toggle-width);
      }

      #sheet .day-timeline-mobile-view .mobile-record-status {
        width: 104px;
        min-width: 104px;
        max-width: 104px;
      }

      #sheet .priority-mobile-meta,
      #sheet .priority-mobile-due {
        font-size: 10px;
        line-height: 12px;
      }

      #sheet .priority-mobile-meta {
        grid-area: meta;
        white-space: nowrap;
      }

      #sheet .priority-mobile-due {
        grid-area: due;
        justify-self: end;
        white-space: nowrap;
      }

      #sheet .mobile-record-status,
      #sheet .appointment-mobile-status,
      #sheet .priority-mobile-stage,
      #sheet .task-mobile-priority {
        width: var(--mobile-record-status-width);
        min-width: var(--mobile-record-status-width);
        max-width: var(--mobile-record-status-width);
        height: 28px;
        min-height: 28px;
        max-height: 28px;
        padding: 4px 6px;
        font-size: 10px;
      }

      #sheet .mobile-record-menu-button,
      #sheet .appointment-mobile-toggle,
      #sheet .task-mobile-card-toggle {
        width: var(--mobile-record-toggle-width);
        min-width: var(--mobile-record-toggle-width);
        height: 44px;
        min-height: 44px;
        padding: 0;
        border-radius: 7px;
      }

      #sheet .mobile-record-menu-button[aria-expanded="true"],
      #sheet .appointment-mobile-toggle[aria-expanded="true"],
      #sheet .task-mobile-card-toggle[aria-expanded="true"],
      #sheet .mobile-seating-overview-toggle[aria-expanded="true"],
      #sheet .setup-mobile-disclosure[aria-expanded="true"] {
        color: var(--mobile-record-active-color);
        background: var(--mobile-record-active-bg);
      }

      #sheet .priority-mobile-card-summary[aria-expanded="true"] .priority-mobile-toggle-icon {
        border-radius: 7px;
        color: var(--mobile-record-active-color);
        background: var(--mobile-record-active-bg);
      }

    }

    .auth-preview[hidden] {
      display: none;
    }

    body.auth-preview-open {
      overflow: hidden;
    }

    body.auth-preview-open .app {
      display: none;
    }

    .auth-preview {
      min-height: 100vh;
      min-height: 100svh;
      display: grid;
      grid-template-columns: minmax(300px, .86fr) minmax(460px, 1.14fr);
      color: var(--ink);
      background: var(--surface);
      font-family: var(--font);
    }

    .auth-preview-intro {
      min-width: 0;
      padding: clamp(30px, 5vw, 76px);
      border-right: 1px solid var(--line);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 48px;
      background: var(--sidebar);
    }

    .auth-preview-brand {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      color: var(--heading);
    }

    .auth-preview-brand-mark {
      width: 46px;
      height: 46px;
      border: 1px solid color-mix(in srgb, var(--rose) 36%, var(--line));
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: var(--rose-dark);
      background: var(--blush-soft);
    }

    .auth-preview-brand-mark svg {
      width: 27px;
      height: 27px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.7;
    }

    .auth-preview-brand strong {
      font-family: var(--font-display);
      font-size: 24px;
      font-weight: 400;
      line-height: 1;
    }

    .auth-preview-message {
      max-width: 460px;
    }

    .auth-preview-message h1 {
      margin: 0;
      color: var(--heading);
      font-family: var(--font-display);
      font-size: clamp(42px, 5vw, 68px);
      font-weight: 400;
      line-height: .98;
      letter-spacing: -.025em;
    }

    .auth-preview-message p {
      max-width: 390px;
      margin: 20px 0 0;
      color: var(--muted);
      font-size: 16px;
      line-height: 1.65;
    }

    .auth-preview-shared {
      padding-top: 22px;
      border-top: 1px solid var(--line);
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
    }

    .auth-preview-shared strong {
      display: block;
      margin-bottom: 4px;
      color: var(--heading);
      font-size: 14px;
      font-weight: 600;
    }

    .auth-preview-panel {
      min-width: 0;
      padding: 28px clamp(28px, 7vw, 110px);
      display: grid;
      grid-template-rows: auto 1fr;
      background: var(--surface);
    }

    .auth-preview-back {
      width: fit-content;
      min-height: 36px;
      padding: 6px 0;
      border: 0;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      color: var(--muted);
      background: transparent;
      font-size: 13px;
      font-weight: 600;
    }

    .auth-preview-back svg {
      width: 16px;
      height: 16px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .auth-preview-form-shell {
      width: min(100%, 420px);
      margin: auto;
      padding: 48px 0 72px;
      align-self: center;
    }

    .auth-preview-form-shell h2 {
      margin: 0;
      color: var(--heading);
      font-family: var(--font-display);
      font-size: 42px;
      font-weight: 400;
      line-height: 1.05;
    }

    .auth-preview-form-shell > p {
      margin: 10px 0 28px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.55;
    }

    .auth-preview-google {
      width: 100%;
      min-height: 48px;
      padding: 10px 14px;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      font-size: 14px;
      font-weight: 600;
    }

    .auth-preview-google {
      border: 1px solid var(--line-strong);
      color: var(--heading);
      background: var(--surface);
    }

    .auth-preview-google:hover {
      border-color: var(--rose);
      background: var(--field-fill);
    }

    .auth-preview-google svg {
      width: 19px;
      height: 19px;
      flex: 0 0 auto;
    }

    .auth-preview-google-note {
      margin: 16px 0 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.55;
      text-align: center;
    }

    .auth-preview-status {
      min-height: 38px;
      margin: 18px 0 0;
      padding: 10px 11px;
      border: 1px solid var(--line);
      border-radius: 7px;
      color: var(--muted);
      background: var(--field-fill);
      font-size: 12px;
      line-height: 1.45;
    }

    .auth-preview-terms {
      margin: 16px 0 0;
      color: var(--faint);
      font-size: 11px;
      line-height: 1.5;
      text-align: center;
    }

    @media (max-width: 760px) {
      body.auth-preview-open {
        overflow: auto;
      }

      .auth-preview {
        min-height: 100svh;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto 1fr;
      }

      .auth-preview-intro {
        padding: 18px 20px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        display: block;
      }

      .auth-preview-brand-mark {
        width: 40px;
        height: 40px;
      }

      .auth-preview-brand strong {
        font-size: 22px;
      }

      .auth-preview-message,
      .auth-preview-shared {
        display: none;
      }

      .auth-preview-panel {
        padding: 18px 20px max(30px, env(safe-area-inset-bottom));
        grid-template-rows: auto 1fr;
      }

      .auth-preview-form-shell {
        width: 100%;
        max-width: 440px;
        padding: 40px 0 72px;
      }

      .auth-preview-form-shell h2 {
        font-size: 36px;
      }

      .auth-preview-google {
        min-height: 50px;
      }
    }

    @media (max-width: 360px) {
      .auth-preview-intro,
      .auth-preview-panel {
        padding-inline: 16px;
      }

      .auth-preview-form-shell {
        padding-top: 28px;
      }

      .auth-preview-form-shell h2 {
        font-size: 33px;
      }
    }

  