    /* =================== HEADER MENU, SEARCH RESULTS, FORMS =================== */
    .home-topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }

    .wordmark {
      color: var(--ink);
    }

    .wordmark span {
      color: var(--accent);
    }

    .menu-btn {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: var(--surface);
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--ink);
      box-shadow: 0 4px 14px rgba(var(--shade-rgb), 0.18);
      cursor: pointer;
      flex-shrink: 0;
      transition: transform 0.15s ease;
    }

    .menu-btn:active {
      transform: scale(0.92);
    }

    .menu-btn.head-menu {
      margin-left: auto;
      margin-top: 4px;
    }

    .sheet-scrim {
      position: absolute;
      inset: 0;
      background: var(--scrim);
      z-index: 80;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    .sheet-scrim.on {
      opacity: 1;
      pointer-events: auto;
    }

    .sheet {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: var(--surface);
      border-radius: 32px 32px 0 0;
      padding: 14px 20px max(22px, env(safe-area-inset-bottom));
      box-shadow: 0 -8px 25px rgba(var(--shade-rgb), 0.18);
      z-index: 81;
      transform: translateY(0);
      transition: transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .sheet.sheet-hidden {
      transform: translateY(105%);
      pointer-events: none;
    }

    .sheet-handle {
      width: 40px;
      height: 4px;
      border-radius: 2px;
      background: var(--handle);
      margin: 0 auto 10px;
    }

    .sheet-title {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 1.1px;
      text-transform: uppercase;
      color: var(--ink-4);
      padding: 4px 6px 6px;
    }

    .sheet-row {
      padding: 15px 6px;
      color: var(--ink);
      border-bottom: 1px solid var(--hairline);
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .sheet-row:last-child {
      border-bottom: none;
    }

    .sheet-row:active {
      background: var(--surface-3);
    }

    .sheet-row span {
      color: var(--ink-4);
    }

    /* Search results panel */
    .search-results {
      position: absolute;
      left: 20px;
      right: 20px;
      top: calc(100% - 6px);
      background: var(--surface);
      border-radius: 22px;
      box-shadow: 0 16px 34px rgba(var(--shade-rgb), 0.24);
      padding: 8px 0;
      max-height: 54vh;
      overflow-y: auto;
      scrollbar-width: none;
      z-index: 35;
      display: none;
    }

    .search-results::-webkit-scrollbar {
      display: none;
    }

    .search-results.on {
      display: block;
    }

    .search-group {
      font-size: 10.5px;
      font-weight: 800;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: var(--ink-4);
      padding: 10px 18px 6px;
    }

    .search-row {
      padding: 9px 18px;
      cursor: pointer;
    }

    .search-row:active {
      background: var(--surface-3);
    }

    .search-row-main {
      color: var(--ink);
    }

    .search-row-meta {
      font-size: 11.5px;
      font-weight: 600;
      color: var(--ink-3);
      margin-top: 2px;
    }

    .search-empty {
      padding: 18px;
      text-align: center;
      font-size: 13px;
      font-weight: 600;
      color: var(--ink-3);
    }

    /* Text inputs: the blanket user-select:none must not apply here */
    input, textarea {
      user-select: text;
      -webkit-user-select: text;
    }

    .field {
      display: block;
      margin-bottom: 12px;
    }

    .field-input {
      width: 100%;
      height: 46px;
      border-radius: 23px;
      border: 1px solid var(--hairline);
      background: var(--surface);
      padding: 0 18px;
      font-size: 16px;
      font-weight: 500;
      color: var(--ink);
      outline: none;
      box-shadow: 0 4px 18px rgba(var(--ink-rgb), 0.06);
    }

    .field-input:focus {
      border-color: rgba(var(--accent-rgb), 0.55);
    }

    .field-input::placeholder {
      color: var(--ink-4);
    }

    .field-textarea {
      height: auto;
      min-height: 88px;
      border-radius: 20px;
      padding: 14px 18px;
      resize: none;
      line-height: 1.45;
    }

    /* Bait for bots. Off-screen rather than display:none, which some form
       fillers skip, and out of the tab order so nobody reaches it by hand. */
    .hp-field {
      position: absolute;
      left: -9999px;
      width: 1px;
      height: 1px;
      opacity: 0;
      pointer-events: none;
    }

    .form-field.invalid .chip-label {
      color: var(--accent);
    }

    .form-field.invalid .field-input {
      border-color: var(--accent);
    }

    .form-field.invalid .chip-row {
      outline: 2px solid rgba(var(--accent-rgb), 0.5);
      outline-offset: 6px;
      border-radius: 12px;
    }

    .form-progress {
      display: flex;
      gap: 6px;
      padding: 0 22px 8px;
      flex-shrink: 0;
    }

    .form-dot {
      flex: 1;
      height: 4px;
      border-radius: 2px;
      background: var(--dot-bg);
    }

    .form-dot.done { background: var(--accent); }
    .form-dot.current { background: var(--pill-bg); }
    .form-dot.skipped { background: repeating-linear-gradient(90deg, var(--dot-skip) 0 4px, transparent 4px 7px); }

    .form-footer {
      flex-shrink: 0;
      display: flex;
      gap: 10px;
      padding: 12px 20px max(14px, env(safe-area-inset-bottom));
      background: var(--app-bg);
      border-top: 1px solid rgba(var(--ink-rgb), 0.06);
    }

    .form-footer .book-btn:disabled {
      opacity: 0.6;
    }

    #form-view.kb-open .form-footer {
      display: none;
    }

    #form-view.kb-open .screen-body {
      padding-bottom: 45vh;
    }

    .book-btn.ghost {
      background: var(--surface);
      color: var(--accent);
      border: 1.5px solid rgba(var(--accent-rgb), 0.5);
      box-shadow: none;
    }

    .book-btn.ghost:active {
      background: var(--accent-soft);
    }

    .context-pill {
      display: inline-flex;
      gap: 6px;
      align-items: center;
      background: var(--accent-soft);
      color: var(--accent);
      border-radius: 16px;
      padding: 6px 12px;
      font-size: 12px;
      font-weight: 700;
      margin-bottom: 14px;
    }

    .draft-card {
      background: var(--surface);
      border: 1px solid var(--hairline);
      border-radius: 22px;
      padding: 16px;
      margin-bottom: 16px;
    }

    .draft-card .summary-line {
      margin-bottom: 12px;
    }

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

    .draft-actions .book-btn {
      height: 44px;
      font-size: 13px;
    }

    .saved-list {
      margin-top: 10px;
      font-size: 12.5px;
      color: var(--ink-2);
      font-weight: 600;
      line-height: 1.6;
    }

    .build-cta-row .book-btn {
      flex: none;
      width: auto;
      min-width: 214px;
      padding: 0 30px;
    }

    .about-text {
      font-size: 14px;
      line-height: 1.6;
      color: var(--ink-2);
      font-weight: 500;
      margin-bottom: 22px;
    }

    .empty-state {
      text-align: center;
      color: var(--ink-3);
      font-size: 13px;
      font-weight: 600;
      padding: 30px 10px;
      line-height: 1.5;
    }

    .kv {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      padding: 9px 0;
      border-bottom: 1px solid var(--hairline);
      font-size: 13px;
    }

    .kv:last-child { border-bottom: none; }

    .kv b {
      color: var(--ink);
      flex-shrink: 0;
      max-width: 48%;
      line-height: 1.35;
    }

    .kv span {
      color: var(--ink-2);
      text-align: right;
      font-weight: 600;
      line-height: 1.35;
    }

    #heroArt.hero-suppressed {
      visibility: hidden;
    }

    /* Toast */
    .toast-msg {
      position: absolute;
      top: max(24px, env(safe-area-inset-top));
      left: 50%;
      transform: translateX(-50%) translateY(-25px);
      background: var(--toast-bg);
      backdrop-filter: blur(8px);
      color: var(--toast-ink);
      padding: 10px 20px;
      border-radius: 22px;
      font-size: 12.5px;
      font-weight: 600;
      z-index: 100;
      opacity: 0;
      pointer-events: none;
      transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .toast-msg.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
