    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    /* ═══════════════════════════════════════════
       RESET & BASE
       ═══════════════════════════════════════════ */
    body {
      font-family: 'Segoe UI', sans-serif;
      background: #ffffff;
      overflow-x: hidden;
    }

    /* ═══════════════════════════════════════════
       SCROLL HINT
       ═══════════════════════════════════════════ */
    #scroll-hint {
      position: fixed;
      bottom: 22px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 5;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      color: rgba(0,0,0,0.3);
      font-size: 0.6rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      pointer-events: none;
      transition: opacity 0.4s;
    }
    #scroll-hint.hidden { opacity: 0; }
    #scroll-hint svg { animation: hint-bounce 2s ease-in-out infinite; }
    @keyframes hint-bounce {
      0%,100% { transform: translateY(0); }
      50%      { transform: translateY(5px); }
    }

    /* ═══════════════════════════════════════════
       RESUME
       ═══════════════════════════════════════════ */
    #resume {
      background: #f8f8f8;
      min-height: 100vh;
      padding: 80px 0 80px;
      font-family: 'Segoe UI', sans-serif;
    }
    .rv-wrap {
      max-width: 860px;
      margin: 0 auto;
      padding: 0 40px;
    }
    .rv-header {
      border-bottom: 2px solid #111;
      padding-bottom: 28px;
      margin-bottom: 48px;
    }
    .rv-name {
      font-size: clamp(2rem, 5vw, 3.2rem);
      font-weight: 200;
      letter-spacing: 0.1em;
      color: #111;
      text-transform: uppercase;
      line-height: 1;
    }
    .rv-headline {
      font-size: 0.9rem;
      color: #666;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      margin-top: 10px;
    }
    .rv-contact {
      display: flex;
      gap: 24px;
      margin-top: 16px;
      flex-wrap: wrap;
    }
    .rv-contact a, .rv-contact span {
      font-size: 0.82rem;
      color: #555;
      text-decoration: none;
      letter-spacing: 0.04em;
    }
    .rv-contact a:hover { color: #111; }

    .rv-body {
      display: grid;
      grid-template-columns: 1fr 280px;
      gap: 60px;
      align-items: start;
    }
    .rv-section { margin-bottom: 40px; }
    .rv-section-title {
      font-size: 0.65rem;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: #999;
      margin-bottom: 20px;
      padding-bottom: 8px;
      border-bottom: 1px solid #ddd;
    }
    .rv-job { margin-bottom: 30px; }
    .rv-job-header {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 2px;
    }
    .rv-job-title {
      font-size: 0.95rem;
      font-weight: 600;
      color: #111;
    }
    .rv-job-dates {
      font-size: 0.78rem;
      color: #999;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .rv-job-company {
      font-size: 0.82rem;
      color: #666;
      margin-bottom: 10px;
    }
    .rv-job-bullets {
      list-style: none;
      padding: 0;
    }
    .rv-job-bullets li {
      font-size: 0.85rem;
      color: #444;
      line-height: 1.65;
      padding-left: 14px;
      position: relative;
      margin-bottom: 4px;
    }
    .rv-job-bullets li::before {
      content: '–';
      position: absolute;
      left: 0;
      color: #bbb;
    }

    /* Sidebar */
    .rv-skill-group { margin-bottom: 24px; }
    .rv-skill-label {
      font-size: 0.7rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: #999;
      margin-bottom: 8px;
    }
    .rv-skill-list {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }
    .rv-skill-tag {
      font-size: 0.75rem;
      color: #444;
      background: #ebebeb;
      border-radius: 3px;
      padding: 4px 10px;
    }

    .rv-header-row {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
    }
    .rv-download {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      margin-top: 6px;
      padding: 8px 18px;
      background: #111;
      color: #fff;
      border: none;
      border-radius: 4px;
      font-size: 0.78rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      cursor: pointer;
      font-family: 'Segoe UI', sans-serif;
      white-space: nowrap;
      transition: background 0.2s;
      flex-shrink: 0;
    }
    .rv-download:hover { background: #333; }
    .rv-download svg { flex-shrink: 0; }

    @media (max-width: 700px) {
      .rv-wrap { padding: 0 20px; }
      #resume { padding: 60px 0; }
      .rv-body { grid-template-columns: 1fr; gap: 0; }
      .rv-contact { gap: 14px; }
      .rv-download { padding: 7px 14px; font-size: 0.72rem; }
    }

    @media print {
      @page { margin: 12mm 14mm; }

      body > *:not(#resume) { display: none !important; }
      #resume { padding: 0 !important; min-height: unset !important; background: white !important; }
      .rv-download { display: none !important; }
      .rv-wrap { padding: 0 !important; max-width: 100% !important; }

      /* Header */
      .rv-header { padding-bottom: 10px !important; margin-bottom: 16px !important; }
      .rv-name { font-size: 1.7rem !important; }
      .rv-headline { font-size: 0.72rem !important; margin-top: 4px !important; }
      .rv-contact { margin-top: 6px !important; gap: 14px !important; }
      .rv-contact a, .rv-contact span { font-size: 0.72rem !important; }

      /* All black fonts */
      .rv-headline, .rv-contact a, .rv-contact span,
      .rv-section-title, .rv-job-dates, .rv-job-company,
      .rv-job-bullets li, .rv-job-bullets li::before,
      .rv-skill-label, .rv-skill-tag { color: #111 !important; }
      .rv-section-title { border-bottom-color: #111 !important; }

      /* Single column: skills below experience */
      .rv-body { display: flex !important; flex-direction: column !important; gap: 0 !important; }
      .rv-section { margin-bottom: 8px !important; }
      .rv-section-title { font-size: 0.58rem !important; margin-bottom: 8px !important; padding-bottom: 4px !important; }

      /* Jobs */
      .rv-job { margin-bottom: 10px !important; }
      .rv-job-title { font-size: 0.78rem !important; }
      .rv-job-dates { font-size: 0.66rem !important; }
      .rv-job-company { font-size: 0.7rem !important; margin-bottom: 4px !important; }
      .rv-job-bullets li { font-size: 0.68rem !important; line-height: 1.4 !important; margin-bottom: 1px !important; padding-left: 12px !important; }

      /* Skills: categories with boxed tags at bottom */
      .rv-skill-group { display: block !important; margin-bottom: 0 !important; }
      .rv-skill-label { display: block !important; font-size: 0.58rem !important; margin-bottom: 3px !important; }
      .rv-skill-list { display: flex !important; flex-wrap: wrap !important; gap: 3px !important; }
      .rv-sidebar .rv-section { display: flex !important; flex-wrap: wrap !important; gap: 8px 16px !important; align-items: flex-start !important; }
      .rv-sidebar .rv-section-title { width: 100% !important; margin-bottom: 6px !important; }
      .rv-skill-tag { font-size: 0.6rem !important; padding: 2px 6px !important; }
    }

    /* ═══════════════════════════════════════════
       SPLASH PAGE
       ═══════════════════════════════════════════ */

    #splash {
      position: fixed;
      inset: 0;
      z-index: 200;
      background: #0a0a0a;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: opacity 0.7s ease;
    }
    #splash.fade-out { opacity: 0; pointer-events: none; }

    .splash-name {
      font-size: clamp(2rem, 6vw, 4.5rem);
      font-weight: 200;
      letter-spacing: 0.18em;
      color: #ffffff;
      text-transform: uppercase;
      opacity: 0;
      transform: translateY(18px);
      animation: splash-rise 1s ease 0.3s forwards;
    }
    .splash-rule {
      width: 60px;
      height: 1px;
      background: rgba(255,255,255,0.35);
      margin: 22px auto;
      opacity: 0;
      animation: splash-rise 1s ease 0.6s forwards;
    }
    .splash-title {
      font-size: clamp(0.75rem, 2vw, 1rem);
      font-weight: 300;
      letter-spacing: 0.35em;
      color: rgba(255,255,255,0.55);
      text-transform: uppercase;
      text-align: center;
      opacity: 0;
      transform: translateY(10px);
      animation: splash-rise 1s ease 0.8s forwards;
    }

    .splash-links {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 28px;
      margin-bottom: 14px;
      opacity: 0;
      animation: splash-rise 1s ease 1.2s forwards;
    }
    .splash-link {
      font-size: 0.65rem;
      letter-spacing: 0.15em;
      color: rgba(255,255,255,0.45);
      text-decoration: none;
      text-transform: uppercase;
      transition: color 0.2s;
    }
    .splash-link:hover { color: rgba(255,255,255,0.85); }
    .splash-link-divider { color: rgba(255,255,255,0.2); font-size: 0.6rem; }
    .splash-open {
      display: flex;
      align-items: center;
      gap: 7px;
      margin-bottom: 20px;
      font-size: 0.62rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.45);
      opacity: 0;
      animation: splash-rise 1s ease 1.25s forwards;
    }
    .splash-open-dot {
      width: 7px; height: 7px;
      border-radius: 50%;
      background: #4ade80;
      box-shadow: 0 0 6px rgba(74,222,128,0.7);
      animation: dot-pulse 2s ease-in-out infinite;
      flex-shrink: 0;
    }
    @keyframes dot-pulse {
      0%,100% { opacity: 0.7; box-shadow: 0 0 4px rgba(74,222,128,0.5); }
      50% { opacity: 1; box-shadow: 0 0 10px rgba(74,222,128,0.9); }
    }
    .splash-enter-btn {
      position: absolute;
      bottom: 40px;
      background: transparent;
      border: 1px solid rgba(255,255,255,0.35);
      color: rgba(255,255,255,0.75);
      font-size: 0.7rem;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      padding: 10px 28px;
      cursor: pointer;
      border-radius: 2px;
      opacity: 0;
      animation: splash-rise 1s ease 1.4s forwards;
      transition: background 0.2s, color 0.2s, border-color 0.2s;
    }
    .splash-enter-btn:hover {
      background: rgba(255,255,255,0.1);
      border-color: rgba(255,255,255,0.7);
      color: #fff;
    }
    .splash-about {
      max-width: 480px;
      text-align: center;
      margin-top: 28px;
      padding: 0 24px;
      opacity: 0;
      transform: translateY(10px);
      animation: splash-rise 1s ease 1.1s forwards;
    }
    .splash-about p {
      font-size: clamp(0.72rem, 1.6vw, 0.88rem);
      font-weight: 300;
      line-height: 1.75;
      color: rgba(255,255,255,0.42);
      letter-spacing: 0.04em;
      margin: 0;
    }
    .splash-about-divider {
      width: 28px; height: 1px;
      background: rgba(255,255,255,0.15);
      margin: 18px auto 18px;
    }
    .splash-stats {
      display: grid;
      grid-template-columns: repeat(4, auto);
      gap: 20px 36px;
      justify-content: center;
      margin-top: 20px;
      opacity: 0;
      transform: translateY(8px);
      animation: splash-rise 1s ease 1.3s forwards;
    }
    @media (max-width: 480px) {
      .splash-stats { grid-template-columns: repeat(2, auto); gap: 20px 40px; }
    }
    .splash-stat {
      text-align: center;
    }
    .splash-stat-num {
      font-size: clamp(1.1rem, 2.5vw, 1.5rem);
      font-weight: 200;
      color: rgba(255,255,255,0.75);
      letter-spacing: 0.06em;
    }
    .splash-stat-label {
      font-size: 0.58rem;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.3);
      margin-top: 3px;
    }
    @keyframes splash-rise {
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes splash-pulse {
      0%, 100% { opacity: 0.25; } 50% { opacity: 0.55; }
    }

    /* ═══════════════════════════════════════════
       GRID
       ═══════════════════════════════════════════ */
    #detail { display: none; }

    #grid {
      display: flex;
      flex-direction: column;
      gap: 2px;
      padding: 2px;
    }

    .tile {
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      border-radius: 4px;
      height: 260px;
      background: rgba(255, 255, 255, 0.45);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border: 1px solid rgba(0, 0, 0, 0.08);
      box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.9),
        inset 0 -1px 1px rgba(0, 0, 0, 0.04),
        0 4px 24px rgba(0, 0, 0, 0.08);
      transition: background 0.3s ease, box-shadow 0.3s ease;
    }

    .tile::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 50%;
      background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
      pointer-events: none;
      border-radius: 4px 4px 0 0;
    }

    .tile:hover {
      background: rgba(255, 255, 255, 0.65);
      box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.05),
        0 8px 32px rgba(0, 0, 0, 0.12);
    }

    .tile-inner {
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1.2rem;
    }

    .tile-logo {
      max-width: 200px;
      max-height: 130px;
      width: auto;
      height: auto;
      object-fit: contain;
      border-radius: 8px;
    }

    .tile-label {
      color: #111;
      font-size: clamp(1.1rem, 2.5vw, 2rem);
      font-weight: 300;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      text-align: center;
      padding: 0.5rem 1rem;
      transition: letter-spacing 0.3s ease;
    }

    .tile:hover .tile-label { letter-spacing: 0.2em; }

    .tile-outcome {
      color: rgba(0,0,0,0.58);
      font-size: clamp(0.68rem, 1.4vw, 0.88rem);
      font-weight: 400;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      text-align: center;
    }

    /* All tiles — warm golden glow */
    .tile {
      border: 1px solid rgba(200, 169, 110, 0.5) !important;
      animation: tile-glow 0.9s ease-in-out infinite;
    }
    .tile:hover {
      box-shadow:
        inset 0 1px 1px rgba(255,255,255,1),
        0 8px 32px rgba(0,0,0,0.12),
        0 0 28px rgba(200,169,110,0.95),
        0 0 50px rgba(200,169,110,0.5) !important;
    }
    @keyframes tile-glow {
      0%, 100% { box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.9),
        0 4px 24px rgba(0,0,0,0.08),
        0 0 4px rgba(200,169,110,0.2),
        0 0 10px rgba(200,169,110,0.08); }
      50% { box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.9),
        0 4px 24px rgba(0,0,0,0.08),
        0 0 22px rgba(200,169,110,0.95),
        0 0 40px rgba(200,169,110,0.45); }
    }

    /* Lucy launcher button — matches tile-glow pulse timing */
    #lucy-launcher {
      animation: lucy-glow 0.9s ease-in-out infinite;
    }
    @keyframes lucy-glow {
      0%, 100% { box-shadow: 0 0 4px 1px rgba(255,200,80,0.2),  0 0 10px 2px rgba(255,200,80,0.08); }
      50%       { box-shadow: 0 0 18px 6px rgba(255,200,80,0.65), 0 0 40px 10px rgba(255,200,80,0.35); }
    }

    /* ═══════════════════════════════════════════
       KEPLER POPUPS
       ═══════════════════════════════════════════ */
    .popup {
      position: fixed;
      z-index: 100;
      width: calc(100vw / 2);
      height: calc(100vh / 2);
      min-width: 320px;
      min-height: 300px;
      display: flex;
      flex-direction: column;
      background: #fff;
      border: 2px solid #000080;
      box-shadow: 4px 4px 0 #000, 6px 6px 0 rgba(0,0,0,0.2);
      border-radius: 3px;
      animation: popIn 0.18s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
      cursor: default;
      user-select: none;
      overflow: hidden;
    }

    .popup.closing {
      animation: popOut 0.15s ease-in forwards;
    }

    @keyframes popIn {
      from { transform: scale(0.7) rotate(var(--tilt)); opacity: 0; }
      to   { transform: scale(1) rotate(var(--tilt)); opacity: 1; }
    }

    @keyframes popOut {
      from { transform: scale(1) rotate(var(--tilt)); opacity: 1; }
      to   { transform: scale(0.6) rotate(var(--tilt)); opacity: 0; }
    }

    .popup-titlebar {
      background: linear-gradient(to right, #000080, #1084d0);
      padding: 7px 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: move;
      flex-shrink: 0;
    }

    .popup-title {
      color: #fff;
      font-size: 1rem;
      font-weight: bold;
      font-family: 'Segoe UI', Tahoma, sans-serif;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      flex: 1;
      margin-right: 0.5rem;
    }

    .popup-controls {
      display: flex;
      gap: 4px;
      flex-shrink: 0;
    }

    .popup-btn {
      width: 28px;
      height: 24px;
      font-size: 0.9rem;
      font-weight: bold;
      border: 1px solid rgba(255,255,255,0.4);
      border-bottom-color: rgba(0,0,0,0.4);
      border-right-color: rgba(0,0,0,0.4);
      background: #c0c0c0;
      color: #000;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
      padding-bottom: 1px;
    }

    .popup-btn:hover { background: #d8d8d8; }
    .popup-btn.close-btn:hover { background: #ff4444; color: #fff; }

    .popup-photo {
      width: 100%;
      flex: 1;
      position: relative;
      overflow: hidden;
    }

    .popup-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .popup-photo-placeholder {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.7rem;
      color: rgba(255,255,255,0.3);
      font-size: 0.75rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      border: 2px dashed rgba(255,255,255,0.15);
    }

    /* Kepler image-only popup — clean photo card */
    .popup.kimg-popup {
      border: 1px solid rgba(21, 89, 48, 0.65);
      box-shadow: none;
      overflow: visible;
      min-width: 0;
      min-height: 0;
    }
    .popup.kimg-popup .popup-photo {
      border-radius: 0;
    }

    /* Collage popup */
    .popup.popup-wide {
      width: min(94vw, 700px);
    }
    .popup-collage {
      display: grid;
      grid-template-columns: 1.3fr 1fr 1fr;
      grid-template-rows: 1fr 1fr;
      gap: 3px;
      width: 100%;
      flex: 1;
      overflow: hidden;
    }
    .popup-collage-cell {
      overflow: hidden;
      position: relative;
      background: rgba(255,255,255,0.06);
    }
    .popup-collage-cell:first-child { grid-row: 1 / -1; }
    .popup-collage-cell img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .popup-collage-ph {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: rgba(255,255,255,0.18);
      border: 1px dashed rgba(255,255,255,0.12);
      font-size: 0.65rem;
      letter-spacing: 0.1em;
      font-family: 'Segoe UI', sans-serif;
    }
    .popup-collage-caption {
      padding: 0.5rem 1rem;
      font-size: 0.7rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.5);
      text-align: center;
      flex-shrink: 0;
      border-top: 1px solid rgba(255,255,255,0.1);
    }

    .popup-body {
      padding: 0.7rem 1rem;
      border-top: 1px solid #ddd;
      overflow: hidden;
      flex-shrink: 0;
    }

    .popup-label {
      font-size: 0.8rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: #888;
      margin-bottom: 0.5rem;
    }

    .popup-text {
      font-size: 1rem;
      color: #222;
      line-height: 1.6;
    }

    .popup-footer {
      padding: 0.6rem 1.2rem;
      border-top: 1px solid #eee;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: #f5f5f5;
      flex-shrink: 0;
    }

    .popup-counter {
      font-size: 0.7rem;
      color: #999;
      letter-spacing: 0.05em;
    }

    .popup-next-btn {
      font-size: 0.72rem;
      font-weight: bold;
      color: #000080;
      background: none;
      border: none;
      cursor: pointer;
      letter-spacing: 0.05em;
      text-decoration: underline;
    }
    .popup-next-btn:hover { color: #1084d0; }

    /* ═══════════════════════════════════════════
       OVERLAY
       ═══════════════════════════════════════════ */
    #overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.08);
      z-index: 90;
      display: none;
    }
    #overlay.active { display: block; }

    /* ═══════════════════════════════════════════
       RESERVATION BOOK — Happier
       ═══════════════════════════════════════════ */
    #bookview {
      position: fixed; inset: 0; z-index: 50; display: none;
      flex-direction: column; background: #1a1008;
      font-family: 'Segoe UI', sans-serif; opacity: 0;
      transition: opacity 0.3s ease;
    }
    #bookview.visible { display: flex; opacity: 1; }

    .bk-topbar {
      background: #111; border-bottom: 2px solid #c8a96e;
      padding: 0 24px; height: 60px; display: flex;
      align-items: center; justify-content: space-between; flex-shrink: 0;
    }
    .bk-title { font-size: 1.1rem; font-weight: 700; color: #c8a96e; letter-spacing: 0.15em; text-transform: uppercase; }
    .bk-date { font-size: 0.85rem; color: #888; letter-spacing: 0.08em; }
    .bk-close { background: none; border: 1px solid #444; color: #aaa; padding: 6px 16px; border-radius: 4px; cursor: pointer; font-size: 0.82rem; letter-spacing: 0.08em; }
    .bk-close:hover { border-color: #c8a96e; color: #c8a96e; }

    .bk-tabs { background: #111; display: flex; border-bottom: 1px solid #2a2a2a; flex-shrink: 0; padding: 0 24px; }
    .bk-tab { padding: 10px 20px; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: #666; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s; }
    .bk-tab.active { color: #c8a96e; border-bottom-color: #c8a96e; }
    .bk-tab:hover:not(.active) { color: #aaa; }

    .bk-body { display: flex; flex: 1; overflow: hidden; }

    .bk-resv-panel { flex: 1; overflow-y: auto; padding: 16px 24px; }
    .bk-shift-label { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: #c8a96e; margin: 16px 0 8px; padding-bottom: 4px; border-bottom: 1px solid #2a2215; }
    .bk-resv-row {
      display: grid;
      grid-template-columns: 64px 40px 1fr 100px 80px;
      align-items: center; gap: 12px; padding: 10px 12px;
      border-radius: 6px; margin-bottom: 4px;
      transition: background 0.15s; border-left: 3px solid transparent;
    }
    .bk-resv-row.clickable { cursor: pointer; }
    .bk-resv-row.clickable:hover { background: rgba(200,169,110,0.06); }
    .bk-resv-row.seated   { border-left-color: #34A853; }
    .bk-resv-row.arrived  { border-left-color: #FBBC05; }
    .bk-resv-row.reserved { border-left-color: #4285F4; }
    .bk-resv-row.completed{ border-left-color: #555; opacity: 0.5; }
    .bk-resv-row.vip      { border-left-color: #c8a96e; }
    .bk-time { font-size: 0.88rem; color: #c8a96e; font-weight: 600; font-variant-numeric: tabular-nums; }
    .bk-pax  { font-size: 0.82rem; color: #aaa; text-align: center; }
    .bk-guest { font-size: 0.9rem; color: #e8e0d0; font-weight: 500; }
    .bk-guest .bk-note { font-size: 0.75rem; color: #888; font-weight: 400; margin-top: 2px; }
    .bk-table { font-size: 0.8rem; color: #888; text-align: center; }
    .bk-status { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 12px; text-align: center; font-weight: 600; }
    .bk-status.seated   { background: rgba(52,168,83,0.15);  color: #34A853; }
    .bk-status.arrived  { background: rgba(251,188,5,0.15);  color: #FBBC05; }
    .bk-status.reserved { background: rgba(66,133,244,0.15); color: #4285F4; }
    .bk-status.completed{ background: rgba(100,100,100,0.15);color: #666; }
    .bk-status.vip      { background: rgba(200,169,110,0.15);color: #c8a96e; }

    .bk-side-panel { width: 300px; border-left: 1px solid #2a2a2a; display: flex; flex-direction: column; overflow-y: auto; flex-shrink: 0; }
    .bk-side-toggle { display: none; width: 100%; padding: 12px 20px; background: #111; border: none; border-top: 1px solid #2a2a2a; border-bottom: 1px solid #2a2a2a; color: #c8a96e; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; text-align: left; cursor: pointer; flex-shrink: 0; }
    .bk-side-toggle span { float: right; transition: transform 0.2s; }
    .bk-side-toggle.open span { transform: rotate(180deg); }
    .bk-side-section { padding: 16px 20px; border-bottom: 1px solid #2a2a2a; }
    .bk-side-heading { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: #c8a96e; margin-bottom: 12px; }
    .bk-stat-row { display: flex; justify-content: space-between; margin-bottom: 6px; }
    .bk-stat-label { font-size: 0.8rem; color: #888; }
    .bk-stat-val   { font-size: 0.8rem; color: #e8e0d0; font-weight: 600; }
    .bk-note-text  { font-size: 0.82rem; color: #aaa; line-height: 1.6; font-style: italic; }
    .bk-checklist-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; cursor: pointer; }
    .bk-checkbox { width: 16px; height: 16px; border: 1px solid #555; border-radius: 3px; flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: #34A853; transition: all 0.15s; }
    .bk-checkbox.checked { background: rgba(52,168,83,0.15); border-color: #34A853; }
    .bk-checklist-item span { font-size: 0.82rem; color: #bbb; line-height: 1.4; }
    .bk-checklist-item.done span { text-decoration: line-through; color: #555; }

    .resv-popup { border-color: #c8a96e; box-shadow: 0 0 0 1px #2a2a2a, 6px 6px 32px rgba(0,0,0,0.6); }

    @media (max-width: 700px) {
      .bk-topbar { padding: 0 14px; height: auto; flex-wrap: wrap; gap: 6px; padding-top: 10px; padding-bottom: 10px; }
      .bk-tabs { padding: 0 8px; }
      .bk-tab { padding: 8px 10px; font-size: 0.72rem; }
      .bk-body { flex-direction: column; overflow-y: auto; }
      .bk-resv-panel { padding: 10px 12px; overflow-y: visible; }
      .bk-resv-row { grid-template-columns: 56px 30px 1fr 60px; font-size: 0.8rem; }
      .bk-status { display: none; }
      .bk-side-panel { width: 100%; border-left: none; border-top: 1px solid #2a2a2a; overflow: hidden; max-height: 0; transition: max-height 0.35s ease; }
      .bk-side-panel.expanded { max-height: 800px; }
      .bk-side-toggle { display: block; }
    }

    /* ═══════════════════════════════════════════
       BAR MENU — Lock Stock
       ═══════════════════════════════════════════ */
    /* Colors from logo: brown #0a3a1e, gold #e8a820, navy #1a4a8a, sky #4a9fd4, orange #e85a20 */
    #barmenu {
      position: fixed;
      inset: 0;
      z-index: 50;
      display: none;
      align-items: center;
      justify-content: center;
      background: rgba(20, 10, 4, 0.92);
      opacity: 0;
      transition: opacity 0.3s ease;
      font-family: Georgia, 'Times New Roman', serif;
      padding: 20px;
    }
    #barmenu.visible { display: flex; opacity: 1; }

    .bm-close-x {
      position: fixed;
      top: 18px; right: 22px;
      background: rgba(92,45,12,0.8);
      border: 1px solid #e8a820;
      color: #e8a820;
      font-size: 0.78rem;
      letter-spacing: 0.12em;
      padding: 6px 14px;
      cursor: pointer;
      font-family: 'Segoe UI', sans-serif;
      border-radius: 3px;
      z-index: 10;
      transition: all 0.15s;
    }
    .bm-close-x:hover { background: #5c2d0c; color: #fff; }

    .bm-book-wrap {
      display: flex;
      align-items: center;
      gap: 10px;
      position: relative;
      z-index: 1;
    }
    .bm-arr {
      background: rgba(10,58,30,0.9);
      border: 1px solid rgba(232,168,32,0.5);
      color: #e8a820;
      font-size: 1.7rem;
      width: 38px;
      height: 60px;
      cursor: pointer;
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.15s;
      flex-shrink: 0;
      font-family: Georgia, serif;
      line-height: 1;
    }
    .bm-arr:hover { background: #0a3a1e; border-color: #e8a820; }
    .bm-arr:disabled { opacity: 0.2; cursor: default; }
    .bm-arr:disabled:hover { background: rgba(10,58,30,0.9); border-color: rgba(232,168,32,0.5); }

    @media (max-width: 600px) {
      #barmenu { padding: 8px 6px; }
      .bm-book-wrap { flex-wrap: wrap; justify-content: center; width: 100%; }
      .bm-book-wrap > .bm-arr { flex: 1; max-width: 80px; order: 2; }
      .bm-book-wrap > .bm-book { order: 1; width: 100%; }
      .bm-book { height: min(88vh, 640px); }
      /* Stack photo on top, text below */
      .bm-ps { flex-direction: column; }
      .bm-ps-gutter { display: none; }
      .bm-ps-half, .bm-ps-col, .bm-ps-full,
      .bm-ps-photo-grid { flex: 0 0 46%; max-height: 46%; }
      .bm-spread > .bm-ps-cover { flex: 1 1 100%; max-height: 100%; width: 100%; }
      .bm-ps-photo-grid { position: relative; grid-template-columns: 1fr; grid-template-rows: 1fr; }
      .bm-ps-photo-grid .bm-ps-cell { position: absolute; inset: 0; }
      .bm-ps-photo-grid .bm-ps-cell:nth-child(1) { animation: bm-photo-cycle 4s infinite; }
      .bm-ps-photo-grid .bm-ps-cell:nth-child(2) { animation: bm-photo-cycle 4s -2s infinite; }
      .bm-text-page { flex: 1; padding: 14px 14px 10px; }
      .bm-page-item-name { font-size: 1.05rem; }
      .bm-page-item-sub { font-size: 0.82rem; }
    }
    @keyframes bm-photo-cycle {
      0%, 40%  { opacity: 1; }
      50%, 90% { opacity: 0; }
      100%     { opacity: 1; }
    }

    .bm-book {
      width: min(92vw, 1020px);
      height: min(86vh, 640px);
      display: flex;
      flex-direction: column;
      border-radius: 0;
      /* Spine on left, page stack on right */
      border-left: 7px solid #1a0800;
      border-right: 3px solid #071d10;
      border-top: 3px solid #071d10;
      border-bottom: 3px solid #071d10;
      box-shadow:
        /* Page-edge stack illusion */
        3px 0 0 #e4d5b8,
        5px 0 0 #d8c9ac,
        7px 0 0 #cbbea0,
        /* Drop shadow */
        10px 12px 50px rgba(0,0,0,0.75),
        0 6px 20px rgba(0,0,0,0.5);
      overflow: hidden;
      position: relative;
    }
    /* Spine highlight */
    .bm-book::before {
      content: '';
      position: absolute;
      left: 0; top: 0; bottom: 0;
      width: 4px;
      background: linear-gradient(to right, rgba(255,255,255,0.08), transparent);
      z-index: 10;
      pointer-events: none;
    }

    .bm-spread-wrap {
      flex: 1;
      overflow: hidden;
      position: relative;
      perspective: 1600px;
      perspective-origin: center center;
    }

    .bm-spread {
      display: flex;
      height: 100%;
    }

    /* 3D page flip animations */
    @keyframes bm-flip-out-next {
      0%   { transform: rotateY(0deg) scale(1);    opacity: 1; }
      60%  { opacity: 0.3; }
      100% { transform: rotateY(-82deg) scale(0.96); opacity: 0; }
    }
    @keyframes bm-flip-in-next {
      0%   { transform: rotateY(82deg) scale(0.96); opacity: 0; }
      40%  { opacity: 0.3; }
      100% { transform: rotateY(0deg) scale(1);    opacity: 1; }
    }
    @keyframes bm-flip-out-prev {
      0%   { transform: rotateY(0deg) scale(1);    opacity: 1; }
      60%  { opacity: 0.3; }
      100% { transform: rotateY(82deg) scale(0.96); opacity: 0; }
    }
    @keyframes bm-flip-in-prev {
      0%   { transform: rotateY(-82deg) scale(0.96); opacity: 0; }
      40%  { opacity: 0.3; }
      100% { transform: rotateY(0deg) scale(1);    opacity: 1; }
    }
    .bm-spread.fold-out-next { animation: bm-flip-out-next 0.22s ease-in  forwards; }
    .bm-spread.fold-in-next  { animation: bm-flip-in-next  0.26s ease-out forwards; }
    .bm-spread.fold-out-prev { animation: bm-flip-out-prev 0.22s ease-in  forwards; }
    .bm-spread.fold-in-prev  { animation: bm-flip-in-prev  0.26s ease-out forwards; }

    /* Cover */
    .bm-cover {
      width: 100%;
      flex-shrink: 0;
      background: linear-gradient(160deg, #5c2d0c 0%, #3a1a05 40%, #1a0a02 100%);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 40px 32px;
      text-align: center;
      position: relative;
      overflow: hidden;
      height: 100%;
      cursor: pointer;
    }
    /* Sunset stripe accent at top */
    .bm-cover::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 6px;
      background: linear-gradient(to right, #e85a20, #e8a820, #1a4a8a, #4a9fd4);
    }
    /* Inner border */
    .bm-cover::after {
      content: '';
      position: absolute;
      inset: 14px;
      border: 1px solid rgba(232,168,32,0.3);
      pointer-events: none;
    }
    .bm-cover-name {
      font-size: clamp(1.4rem, 5.5vw, 3.4rem);
      color: #e8a820;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      line-height: 1.2;
      margin-bottom: 10px;
      text-shadow: 0 2px 16px rgba(0,0,0,0.7);
      word-break: break-word;
    }
    .bm-cover-rule {
      width: 100px; height: 2px;
      background: linear-gradient(to right, transparent, #e8a820, transparent);
      margin: 14px auto;
    }
    .bm-cover-sub {
      font-size: 0.72rem;
      color: rgba(232,168,32,0.6);
      letter-spacing: 0.25em;
      text-transform: uppercase;
      font-family: 'Segoe UI', sans-serif;
      margin-bottom: 3px;
    }
    .bm-cover-tag {
      font-size: 0.88rem;
      color: rgba(255,255,255,0.5);
      font-style: italic;
      margin-top: 16px;
    }
    .bm-cover-tap {
      margin-top: 28px;
      font-size: 0.72rem;
      color: rgba(232,168,32,0.7);
      letter-spacing: 0.3em;
      text-transform: uppercase;
      font-family: 'Segoe UI', sans-serif;
      animation: pulse 2s ease-in-out infinite;
      border: 1px solid rgba(232,168,32,0.3);
      padding: 8px 20px;
      border-radius: 2px;
    }
    @keyframes pulse { 0%,100%{opacity:0.5} 50%{opacity:1} }

    /* Photo story spread types */
    .bm-ps { width: 100%; height: 100%; display: flex; }
    .bm-ps-gutter {
      width: 5px; flex-shrink: 0;
      background: linear-gradient(to bottom, rgba(232,168,32,0.6), rgba(232,168,32,0.08) 40%, rgba(232,168,32,0.08) 60%, rgba(232,168,32,0.6));
    }
    .bm-ps-half { flex: 1; overflow: hidden; position: relative; }
    .bm-ps-half img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .bm-ps-col { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
    .bm-ps-photo { flex: 1; overflow: hidden; position: relative; min-height: 0; }
    .bm-ps-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .bm-ps-photo + .bm-ps-photo { border-top: 3px solid rgba(232,168,32,0.35); }
    .bm-ps-full { position: relative; width: 100%; height: 100%; overflow: hidden; }
    .bm-ps-full img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .bm-ps-grid {
      width: 100%; height: 100%;
      display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
      gap: 3px; background: #0a0500;
    }
    .bm-ps-cell { overflow: hidden; position: relative; min-width: 0; min-height: 0; }
    .bm-ps-cell img { width: 100%; height: 100%; object-fit: cover; display: block; background: #0a0500; }
    /* Photo grid — 2 images stacked vertically */
    .bm-ps-photo-grid {
      flex: 1; min-width: 0; min-height: 0;
      display: grid; grid-template-columns: 1fr;
      grid-template-rows: 1fr 1fr;
      gap: 2px; background: #0a0500; overflow: hidden;
    }
    .bm-ps-caption {
      position: absolute; bottom: 0; left: 0; right: 0;
      padding: 22px 16px 12px;
      background: linear-gradient(transparent, rgba(0,0,0,0.72));
      color: rgba(232,168,32,0.9);
      font-size: 0.58rem; letter-spacing: 0.32em;
      text-transform: uppercase; font-family: 'Segoe UI', sans-serif;
      pointer-events: none; text-align: center;
    }
    .bm-ps-cover { position: relative; width: 100%; height: 100%; overflow: hidden; cursor: pointer; }
    .bm-ps-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .bm-ps-cover-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(5,2,1,0.55) 55%, rgba(5,2,1,0.88) 100%);
      display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
      padding: 0 28px 30px; text-align: center;
    }

    /* Black leather cover */
    .bm-leather-cover {
      background:
        repeating-linear-gradient(135deg, transparent 0px, transparent 2px, rgba(0,0,0,0.06) 2px, rgba(0,0,0,0.06) 3px),
        repeating-linear-gradient(45deg,  transparent 0px, transparent 2px, rgba(255,255,255,0.018) 2px, rgba(255,255,255,0.018) 3px),
        radial-gradient(ellipse at 38% 28%, #1a1208 0%, #0a0705 42%, #040201 100%);
    }
    .bm-leather-cover::before {
      content: '';
      position: absolute; inset: 0; z-index: 1; pointer-events: none;
      background:
        radial-gradient(ellipse at 50% 0%,   rgba(90,55,10,0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(30,15,3,0.35)  0%, transparent 50%),
        radial-gradient(ellipse at 10% 60%,  rgba(0,0,0,0.25)    0%, transparent 45%);
    }
    /* Gold stitching border */
    .bm-leather-cover::after {
      content: '';
      position: absolute; inset: 13px; z-index: 2; pointer-events: none;
      border: 1px dashed rgba(200,162,60,0.3);
      box-shadow: inset 0 0 0 1px rgba(0,0,0,0.4);
    }
    .bm-leather-cover .bm-ps-cover-overlay {
      background: none;
      justify-content: center;
      padding: 28px;
      z-index: 3;
    }
    .bm-leather-cover .bm-cover-name {
      color: #c8a050;
      text-shadow: 0 1px 0 rgba(255,200,80,0.12), 0 -1px 0 rgba(0,0,0,0.7), 0 2px 12px rgba(0,0,0,0.5);
    }
    .bm-leather-cover .bm-cover-rule {
      background: linear-gradient(to right, transparent, rgba(200,160,60,0.5), transparent);
    }
    .bm-leather-cover .bm-cover-sub { color: rgba(200,162,60,0.45); }
    .bm-leather-cover .bm-cover-tap {
      border-color: rgba(200,162,60,0.25);
      color: rgba(200,162,60,0.6);
    }

    /* Text / qualifications page — dark editorial */
    .bm-text-page {
      flex: 1; min-width: 0;
      background: linear-gradient(145deg, #1c0f05 0%, #0d0601 100%);
      display: flex; flex-direction: column;
      padding: 22px 22px 16px; overflow: hidden;
      position: relative;
    }
    .bm-text-page::before {
      content: '';
      position: absolute; inset: 9px;
      border: 1px solid rgba(232,168,32,0.1);
      pointer-events: none;
    }
    .bm-text-page-title {
      font-size: 0.6rem; letter-spacing: 0.5em; text-transform: uppercase;
      color: #e8a820; font-family: 'Segoe UI', sans-serif; font-weight: 400;
      text-align: center; margin-bottom: 4px;
    }
    .bm-text-page-orn {
      text-align: center; color: rgba(232,168,32,0.3); font-size: 0.72rem;
      margin-bottom: 10px;
    }
    .bm-page-item {
      flex: 1; display: flex; flex-direction: column; justify-content: center;
      padding: 6px 0; margin: 0;
      border: none; border-bottom: 1px solid rgba(232,168,32,0.1);
      cursor: default; background: transparent;
    }
    .bm-page-item:first-of-type { border-top: 1px solid rgba(232,168,32,0.1); }
    .bm-page-item-header { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-bottom: 3px; }
    .bm-page-item-name { font-size: 1.15rem; color: #ede0b8; font-family: Georgia, serif; font-style: italic; }
    .bm-page-item-detail { font-size: 0.65rem; color: rgba(232,168,32,0.6); font-family: 'Segoe UI', sans-serif; letter-spacing: 0.15em; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; }
    .bm-page-item-sub { font-size: 0.88rem; color: rgba(230,205,160,0.92); font-family: 'Segoe UI', sans-serif; line-height: 1.5; }

    /* Nav bar — hidden, arrows moved to sides */
    .bm-nav { display: none; }
    .bm-nav-btn {
      background: rgba(0,0,0,0.2);
      border: 1px solid rgba(232,168,32,0.4);
      color: #e8a820;
      font-size: 1.5rem;
      width: 42px; height: 36px;
      cursor: pointer;
      border-radius: 3px;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
      transition: all 0.15s;
      font-family: Georgia, serif;
    }
    .bm-nav-btn:hover { background: rgba(0,0,0,0.4); border-color: #e8a820; }
    .bm-nav-btn:disabled { opacity: 0.25; cursor: default; }
    .bm-nav-btn:disabled:hover { background: rgba(0,0,0,0.2); border-color: rgba(232,168,32,0.4); }
    .bm-page-indicator {
      font-size: 0.66rem;
      color: rgba(232,168,32,0.8);
      letter-spacing: 0.2em;
      text-transform: uppercase;
      font-family: 'Segoe UI', sans-serif;
      text-align: center;
    }
    .bm-page-dots { display: flex; gap: 6px; justify-content: center; margin-top: 5px; }
    .bm-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(232,168,32,0.25); transition: background 0.2s; }
    .bm-dot.active { background: #e8a820; }

    /* Popup */
    .bm-popup {
      border-color: #0a3a1e;
      box-shadow: 0 0 0 2px #e8a820, 6px 6px 32px rgba(0,0,0,0.7);
    }

    @media (max-width: 600px) {
      .bm-pages { grid-template-columns: 1fr; }
      .bm-page:first-child { border-bottom: 2px solid #0a3a1e; }
      .bm-page-full { grid-column: 1; }
      .bm-page-item:hover { transform: none; }
    }

    /* ═══════════════════════════════════════════
       GMAIL UI — NBI
       ═══════════════════════════════════════════ */
    #gmail {
      position: fixed;
      inset: 0;
      z-index: 50;
      display: none;
      flex-direction: column;
      background: #f6f8fc;
      font-family: 'Google Sans', 'Segoe UI', sans-serif;
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    #gmail.visible { display: flex; opacity: 1; }

    .gm-topbar {
      height: 64px;
      background: #f6f8fc;
      display: flex;
      align-items: center;
      padding: 0 16px;
      gap: 12px;
      border-bottom: 1px solid #e0e0e0;
      flex-shrink: 0;
    }
    .gm-back {
      background: none;
      border: none;
      cursor: pointer;
      font-size: 1.4rem;
      color: #444;
      padding: 6px 10px;
      border-radius: 50%;
      line-height: 1;
    }
    .gm-back:hover { background: #e8eaed; }
    .gm-logo {
      display: flex;
      align-items: center;
      gap: 4px;
      font-size: 1.5rem;
      font-weight: 400;
      color: #5f6368;
      margin-right: 8px;
    }
    .gm-logo span { color: #EA4335; }
    .gm-logo span:nth-child(2) { color: #4285F4; }
    .gm-logo span:nth-child(3) { color: #FBBC05; }
    .gm-logo span:nth-child(4) { color: #34A853; }
    .gm-logo span:nth-child(5) { color: #EA4335; }
    .gm-logo span:nth-child(6) { color: #4285F4; }
    .gm-searchbar {
      flex: 1;
      max-width: 720px;
      background: #eaf1fb;
      border: none;
      border-radius: 24px;
      padding: 10px 20px;
      font-size: 1rem;
      color: #202124;
      outline: none;
    }

    .gm-layout {
      display: flex;
      flex: 1;
      overflow: hidden;
    }

    .gm-sidebar {
      width: 220px;
      padding: 8px 0;
      flex-shrink: 0;
      overflow-y: auto;
    }
    .gm-compose {
      margin: 8px 16px 16px;
      padding: 16px 24px;
      background: #c2e7ff;
      border: none;
      border-radius: 16px;
      font-size: 0.95rem;
      font-weight: 500;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 10px;
      color: #001d35;
      width: calc(100% - 32px);
    }
    .gm-compose:hover { background: #a8d8f8; }
    .gm-nav-item {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 4px 16px;
      border-radius: 0 24px 24px 0;
      font-size: 0.88rem;
      color: #202124;
      cursor: pointer;
      margin-right: 16px;
    }
    .gm-nav-item.active { background: #d3e3fd; font-weight: 600; }
    .gm-nav-item:hover:not(.active) { background: #e8eaed; }
    .gm-nav-count { margin-left: auto; font-size: 0.8rem; font-weight: 600; }

    .gm-main {
      flex: 1;
      background: #fff;
      border-radius: 16px;
      margin: 0 8px 8px 0;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    /* Inbox list */
    #gm-inbox {
      display: flex;
      flex-direction: column;
      overflow-y: auto;
      flex: 1;
    }
    .gm-email-row {
      display: flex;
      align-items: center;
      padding: 8px 16px;
      border-bottom: 1px solid #f1f3f4;
      cursor: pointer;
      gap: 12px;
      min-height: 56px;
    }
    .gm-email-row:hover { background: #f2f6fc; box-shadow: inset 1px 0 0 #dadce0, inset -1px 0 0 #dadce0; }
    .gm-avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.95rem;
      font-weight: 600;
      color: #fff;
      flex-shrink: 0;
    }
    .gm-email-sender {
      width: 180px;
      font-size: 0.88rem;
      font-weight: 700;
      color: #202124;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      flex-shrink: 0;
    }
    .gm-email-preview {
      flex: 1;
      font-size: 0.88rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      color: #202124;
    }
    .gm-email-preview .gm-subject { font-weight: 700; }
    .gm-email-preview .gm-snippet { color: #5f6368; font-weight: 400; }
    .gm-email-time {
      font-size: 0.8rem;
      font-weight: 700;
      color: #202124;
      flex-shrink: 0;
      white-space: nowrap;
    }
    .gm-unread-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #1a73e8;
      flex-shrink: 0;
    }
    .gm-email-row.gm-spam { cursor: default; opacity: 0.75; }
    .gm-email-row.gm-spam:hover { background: #fafafa; box-shadow: none; }

    /* Email view */
    #gm-email-view {
      display: none;
      flex-direction: column;
      align-items: center;
      overflow-y: auto;
      flex: 1;
      padding: 24px 32px;
    }
    #gm-email-view > * {
      width: 100%;
      max-width: 640px;
    }
    #gm-email-view.open { display: flex; }
    .gm-ev-back {
      background: none;
      border: none;
      cursor: pointer;
      font-size: 0.88rem;
      color: #1a73e8;
      padding: 0 0 16px;
      text-align: left;
    }
    .gm-ev-back:hover { text-decoration: underline; }
    .gm-ev-subject {
      font-size: 1.5rem;
      font-weight: 400;
      color: #202124;
      margin-bottom: 16px;
    }
    .gm-ev-meta {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 20px;
      padding-bottom: 16px;
      border-bottom: 1px solid #e0e0e0;
    }
    .gm-ev-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      color: #fff;
      font-size: 1rem;
      flex-shrink: 0;
    }
    .gm-ev-from { font-size: 0.9rem; font-weight: 600; color: #202124; }
    .gm-ev-addr { font-size: 0.8rem; color: #5f6368; }
    .gm-ev-date { margin-left: auto; font-size: 0.8rem; color: #5f6368; }
    .gm-ev-photo {
      position: relative;
      width: 100%;
      height: 0;
      padding-bottom: 75%;
      padding-bottom: min(75%, 440px);
      border-radius: 12px;
      margin-bottom: 20px;
      overflow: hidden;
      background: #e8eaed;
      border: 1px solid #dadce0;
    }
    .gm-ev-photo svg,
    .gm-ev-photo img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }
    .gm-ev-body { font-size: 0.95rem; color: #202124; line-height: 1.8; max-width: 640px; }

    @media (max-width: 700px) {
      /* Topbar */
      .gm-topbar { padding: 0 10px; height: 54px; gap: 8px; }
      .gm-logo { font-size: 1.2rem; }
      .gm-searchbar { padding: 8px 14px; font-size: 0.9rem; }

      /* Hide sidebar */
      .gm-sidebar { display: none; }
      .gm-main { border-radius: 0; margin: 0; }

      /* Email rows: stack sender+time on top, subject+snippet below */
      .gm-email-row {
        flex-wrap: wrap;
        padding: 12px 14px;
        gap: 4px;
        align-items: flex-start;
      }
      .gm-unread-dot { margin-top: 6px; }
      .gm-avatar { width: 32px; height: 32px; font-size: 0.85rem; margin-top: 2px; }
      .gm-email-sender {
        width: auto;
        flex: 1;
        font-size: 0.9rem;
      }
      .gm-email-time { font-size: 0.75rem; }
      .gm-email-preview {
        width: 100%;
        padding-left: 44px; /* align under sender */
        white-space: normal;
        font-size: 0.82rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      .gm-email-preview .gm-snippet { display: block; margin-top: 2px; }

      /* Email view */
      #gm-email-view { padding: 16px; }
      .gm-ev-subject { font-size: 1.15rem; margin-bottom: 12px; }
      .gm-ev-meta { flex-wrap: wrap; gap: 8px; }
      .gm-ev-date { width: 100%; margin-left: 0; font-size: 0.75rem; }
      .gm-ev-photo { margin-bottom: 16px; }
      .gm-ev-body { font-size: 0.88rem; line-height: 1.7; }
    }

    /* ═══════════════════════════════════════════
       CONTACT FORM
       ═══════════════════════════════════════════ */
    #contact {
      background: #f8f8f8;
      padding: 80px 20px;
      text-align: center;
    }
    .cf-wrap {
      max-width: 480px;
      margin: 0 auto;
    }
    .cf-heading {
      font-family: 'Segoe UI', sans-serif;
      font-size: 1.1rem;
      font-weight: 300;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: #111;
      margin-bottom: 10px;
    }
    .cf-sub {
      color: rgba(0,0,0,0.45);
      font-size: 0.82rem;
      margin-bottom: 32px;
      font-family: 'Segoe UI', sans-serif;
    }
    .cf-form {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .cf-input {
      background: #fff;
      border: 1px solid #ddd;
      border-radius: 4px;
      padding: 12px 16px;
      color: #111;
      font-size: 0.85rem;
      font-family: 'Segoe UI', sans-serif;
      outline: none;
      transition: border-color 0.2s;
      width: 100%;
      box-sizing: border-box;
    }
    .cf-input:focus {
      border-color: #c89a28;
    }
    .cf-input::placeholder {
      color: rgba(0,0,0,0.3);
    }
    .cf-textarea {
      resize: vertical;
      min-height: 110px;
    }
    .cf-submit {
      background: transparent;
      border: 1.5px solid #111;
      color: #111;
      padding: 12px 32px;
      font-size: 0.75rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      cursor: pointer;
      border-radius: 4px;
      transition: background 0.2s, color 0.2s;
      font-family: 'Segoe UI', sans-serif;
      align-self: center;
    }
    .cf-submit:hover {
      background: #111;
      color: #fff;
    }

