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

    :root {
      --bg:          #f0ebe0;
      --surface:     #faf7f2;
      --nav-bg:      #1a1410;
      --nav-text:    #b8a888;
      --nav-hover:   #e0cfa8;
      --nav-active:  #f5f0e8;
      --text:        #1c1410;
      --text-muted:  #5a4a38;
      --text-light:  #8a7060;
      --accent:      #8b6d3f;
      --accent-dark: #5e4825;
      --border:      #ddd0bc;
      --nav-w:       240px;
      --right-w:     280px;
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: Georgia, 'Times New Roman', serif;
      font-size: 1rem;          /* 16px body text */
      line-height: 1.6;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      display: flex;
    }

    /* ── Sidebar ──────────────────────────────────────── */

    .sidebar {
      position: fixed;
      inset: 0 auto 0 0;
      width: var(--nav-w);
      background: var(--nav-bg);
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 0 0 3rem;
      z-index: 100;
      overflow-y: auto;
      transition: transform 0.28s ease;
      box-shadow: 4px 0 20px rgba(0,0,0,0.18);
    }

    .sidebar-brand {
      text-align: center;
      padding: 2rem 1.5rem 0.65rem;
      width: 100%;
      position: sticky;
      top: 0;
      z-index: 5;
      background: var(--nav-bg);
      border-bottom: 1px solid rgba(139,109,63,0.35);
    }

    /* Search icon at top-right of sidebar brand */
    .sidebar-search-btn {
      position: absolute;
      top: 0; right: 1rem;
      background: none; border: none; cursor: pointer;
      color: var(--nav-text); opacity: 0.6;
      padding: 0.3rem;
      border-radius: 50%;
      transition: opacity 0.2s, background 0.2s;
      display: flex; align-items: center; justify-content: center;
    }
    .sidebar-search-btn:hover { opacity: 1; background: rgba(255,255,255,0.08); }

    /* POST pill button */
    .sidebar-post-wrap {
      padding: 0.9rem 1.5rem 0.4rem;
      width: 100%;
    }
    .sidebar-post-btn {
      display: block; width: 100%;
      background: var(--nav-active); color: var(--nav-bg);
      border: none; border-radius: 24px;
      padding: 0.72rem 1rem;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1rem; font-weight: 600;
      letter-spacing: 0.04em;
      cursor: pointer;
      transition: background 0.18s, opacity 0.18s;
      text-align: center;
    }
    .sidebar-post-btn:hover { background: #fff; }

    .sidebar-auth {
      display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
      padding: 0.9rem 1.8rem 0.2rem; width: 100%;
      border-top: 1px solid rgba(139,109,63,0.25); margin-top: 0.8rem;
    }
    .sidebar-auth-user {
      display: flex; align-items: center; gap: 0.55rem;
      max-width: 100%; min-width: 0;
    }
    .sidebar-auth-avatar {
      width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      color: #fff; font-size: 0.875rem; font-weight: 600;
      font-family: Georgia, serif;
    }
    .sidebar-auth-name {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.95rem; color: rgba(240,232,210,0.9);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .sidebar-auth-btn {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; letter-spacing: 0.08em;
      background: none; border: 1px solid rgba(139,109,63,0.55);
      color: rgba(184,168,136,0.95); border-radius: 18px;
      padding: 0.32rem 1.1rem; cursor: pointer;
      transition: background 0.18s, color 0.18s, border-color 0.18s;
    }
    .sidebar-auth-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
    .sidebar-auth-btn.primary {
      background: var(--accent); color: #fff; border-color: var(--accent);
    }
    .sidebar-auth-btn.primary:hover { background: #a5824c; }

    .nav-legal {
      display: flex; align-items: center; justify-content: center; gap: 0.45rem;
      padding: 0.9rem 1.8rem 1.4rem;
    }
    .nav-legal a {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-style: italic;
      color: rgba(184,168,136,0.75); text-decoration: none;
    }
    .nav-legal a:hover { color: var(--nav-active); text-decoration: underline; }
    .nav-legal span { color: rgba(184,168,136,0.5); font-size: 0.875rem; }

    .brand-lotus { display: block; width: 58px; margin: 0 auto 0.6rem; }

    .brand-title {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1.4rem; font-weight: 400;
      letter-spacing: 0.06em;
      color: var(--nav-active);
      line-height: 1.5; margin-bottom: 0.3rem;
    }

    .brand-sub {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-weight: 300; font-style: italic;
      letter-spacing: 0.12em; color: var(--nav-text);
    }

    .sidebar-rule { width: 32px; height: 1px; background: var(--accent); margin: 0 auto 1.5rem; }

    /* ── Nav levels ───────────────────────────────────── */

    .sidebar nav { width: 100%; }
    .sidebar nav ul { list-style: none; }

    /* Level 1 */
    .sidebar nav > ul > li > a {
      display: flex;
      align-items: center;
      min-height: 44px;
      padding: 0.5rem 1.8rem;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-weight: 400;
      letter-spacing: 0.12em; text-transform: uppercase;
      color: var(--nav-text); text-decoration: none;
      border-left: 2px solid transparent;
      transition: color 0.2s, border-color 0.2s, background 0.2s;
    }

    .sidebar nav > ul > li > a:hover { color: var(--nav-hover); background: rgba(255,255,255,0.03); }
    .sidebar nav > ul > li > a.active { color: var(--nav-active); border-left-color: var(--accent); background: rgba(255,255,255,0.05); }

    /* Level 2 (collection sub-nav) */
    .nav-sub {
      list-style: none;
      overflow: hidden;
      max-height: 0;
      transition: max-height 0.35s ease;
    }
    .nav-sub.open { max-height: 900px; }

    .nav-sub > li > a {
      display: flex;
      align-items: center;
      min-height: 40px;
      padding: 0.4rem 1.8rem 0.4rem 2.6rem;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-weight: 400;
      letter-spacing: 0.08em;
      color: rgba(184,168,136,0.75);
      text-decoration: none;
      border-left: 1px solid rgba(139,109,63,0.25);
      margin-left: 1.3rem;
      transition: color 0.2s, background 0.2s;
    }

    .nav-sub > li > a:hover { color: var(--nav-hover); background: rgba(255,255,255,0.02); }
    .nav-sub > li > a.active { color: var(--nav-active); border-left-color: var(--accent); }

    /* Level 3 (individual women) */
    .nav-sub2 {
      list-style: none;
      overflow: hidden;
      max-height: 0;
      transition: max-height 0.3s ease;
    }
    .nav-sub2.open { max-height: 400px; }

    .nav-sub2 > li > a {
      display: flex;
      align-items: center;
      min-height: 38px;
      padding: 0.3rem 1.8rem 0.3rem 2.2rem;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-style: italic;
      letter-spacing: 0.04em;
      color: rgba(184,168,136,0.6);
      text-decoration: none;
      border-left: 1px solid rgba(139,109,63,0.15);
      margin-left: 2.6rem;
      transition: color 0.2s;
    }

    .nav-sub2 > li > a:hover { color: var(--nav-hover); }
    .nav-sub2 > li > a.active { color: var(--nav-active); border-left-color: var(--accent); font-style: normal; }

    /* ── Social nav divider ───────────────────────────── */

    .nav-divider {
      width: calc(100% - 3.6rem);
      margin: 0.8rem 1.8rem 0.6rem;
      height: 1px;
      background: rgba(139,109,63,0.28);
    }

    /* Social nav items (icon + label) */
    .nav-social-link {
      display: flex;
      align-items: center;
      gap: 0.85rem;
      min-height: 46px;
      padding: 0.5rem 1.8rem;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-weight: 400;
      letter-spacing: 0.12em; text-transform: uppercase;
      color: var(--nav-text); text-decoration: none;
      border-left: 2px solid transparent;
      transition: color 0.2s, border-color 0.2s, background 0.2s;
      cursor: pointer;
    }
    .nav-social-link:hover { color: var(--nav-hover); background: rgba(255,255,255,0.03); }
    .nav-social-link.active { color: var(--nav-active); border-left-color: var(--accent); background: rgba(255,255,255,0.05); }

    .nav-social-link svg {
      flex-shrink: 0;
      opacity: 0.7;
      transition: opacity 0.2s;
    }
    .nav-social-link:hover svg,
    .nav-social-link.active svg { opacity: 1; }

    /* Badge for notifications count */
    .nav-badge {
      margin-left: auto;
      background: var(--accent);
      color: #fff;
      font-size: 0.875rem;
      font-weight: 600;
      letter-spacing: 0;
      min-width: 17px;
      height: 17px;
      border-radius: 9px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 4px;
      display: none; /* shown when there are unread notifications */
    }
    .nav-badge.visible { display: flex; }

    /* ── Main ─────────────────────────────────────────── */

    .main {
      margin-left: var(--nav-w);
      margin-right: var(--right-w);
      flex: 1;
      min-height: 100vh;
      transition: margin-left 0.28s ease, margin-right 0.28s ease;
    }

    /* Main sections scroll continuously — always visible */
    .page { display: none; }
    .page.main-section {
      display: block;
      scroll-margin-top: 0;
      border-bottom: 2px solid var(--border);
    }
    .page.main-section:last-of-type { border-bottom: none; }

    /* Detail/artwork pages — hidden until opened as a full-screen overlay */
    .page.detail-page { display: none; }
    .page.detail-page.active {
      display: block;
      position: fixed;
      top: 0; left: var(--nav-w); right: var(--right-w); bottom: 0;
      overflow-y: auto;
      z-index: 300;
      background: var(--bg);
      transition: left 0.28s ease, right 0.28s ease;
    }
    body.nav-collapsed .page.detail-page.active { left: 0; }

    /* ── Right Panel ───────────────────────────────────── */

    .right-panel {
      position: fixed;
      inset: 0 0 0 auto;
      width: var(--right-w);
      background: var(--nav-bg);
      display: flex;
      flex-direction: column;
      z-index: 100;
      overflow-y: auto;
      box-shadow: -4px 0 20px rgba(0,0,0,0.18);
      transition: transform 0.28s ease;
    }

    .right-panel-header {
      padding: 3.8rem 1.4rem 1rem;
      border-bottom: 1px solid rgba(139,109,63,0.35);
      flex-shrink: 0;
    }

    .right-panel-kicker {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-weight: 600;
      letter-spacing: 0.28em; text-transform: uppercase;
      color: #C9A55A; /* 7.7:1 on dark bg — passes WCAG AA */
      margin-bottom: 0.5rem;
    }

    .right-panel-title {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1rem; font-weight: 400;
      letter-spacing: 0.06em;
      color: var(--nav-active);
      line-height: 1.5;
    }

    .right-panel-body {
      flex: 1;
      padding: 1rem 0;
      overflow-y: auto;
    }

    a.news-item {
      display: block;
      padding: 1rem 1.4rem;
      border-bottom: 1px solid rgba(255,255,255,0.06);
      cursor: pointer;
      transition: background 0.18s;
      text-decoration: none;
    }
    a.news-item:last-child { border-bottom: none; }
    a.news-item:hover { background: rgba(255,255,255,0.08); }
    a.news-item:hover .news-item-headline { color: var(--nav-active); }

    .news-item-tag {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-weight: 600;
      letter-spacing: 0.24em; text-transform: uppercase;
      color: #C9A55A; /* 7.7:1 on #1a1410 — passes WCAG AA */
      margin-bottom: 0.4rem;
    }

    .news-item-headline {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.95rem; font-weight: 400;
      line-height: 1.5;
      color: #f0e8d2; /* 15:1 — passes AAA */
      margin-bottom: 0.45rem;
      transition: color 0.15s;
    }

    .news-item-snippet {
      font-size: 0.875rem; line-height: 1.65;
      color: #c8b894; /* 9:1 — passes AA */
      margin-bottom: 0.4rem;
    }

    .news-item-meta {
      font-size: 0.875rem;
      letter-spacing: 0.06em;
      color: #a89878; /* 5.5:1 — passes AA */
    }

    .right-panel-footer {
      padding: 0.9rem 1.4rem;
      border-top: 1px solid rgba(139,109,63,0.25);
      flex-shrink: 0;
    }

    .right-panel-footer p {
      font-size: 0.875rem;
      letter-spacing: 0.06em;
      color: #8a7a5e; /* 4.6:1 — passes WCAG AA */
      line-height: 1.6;
    }

    /* Right panel hidden state (for future toggle) */
    body.right-collapsed .right-panel { transform: translateX(100%); }
    body.right-collapsed .main { margin-right: 0; }
    body.right-collapsed .page.detail-page.active { right: 0; }
    body.right-collapsed .explore-overlay,
    body.right-collapsed .notif-overlay,
    body.right-collapsed .chat-overlay,
    body.right-collapsed .profile-overlay { right: 0; }

    /* ── Right panel collapse tab ── */
    .right-panel-tab {
      position: fixed;
      z-index: 400;   /* above chat/profile/notification overlays */
      right: var(--right-w);
      top: 50%;
      transform: translateY(-50%);
      width: 22px; height: 48px;
      background: var(--nav-bg);
      border-radius: 6px 0 0 6px;
      border: none;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      box-shadow: -3px 0 8px rgba(0,0,0,0.18);
      transition: background 0.18s, right 0.28s ease;
    }
    .right-panel-tab:hover { background: var(--accent); }
    .right-panel-tab svg { transition: transform 0.28s ease; color: rgba(255,255,255,0.7); transform: scaleX(-1); }
    .right-panel-tab:hover svg { color: #fff; }
    body.right-collapsed .right-panel-tab { right: 0; }
    body.right-collapsed .right-panel-tab svg { transform: scaleX(1); }
    @media (max-width: 1100px) { .right-panel-tab { display: none; } }
    /* Overlays follow the right panel when it is collapsed */
    body.right-collapsed .chat-overlay,
    body.right-collapsed .profile-overlay,
    body.right-collapsed .notif-overlay,
    body.right-collapsed .explore-overlay { right: 0; }

    /* News link active state when panel is open */
    .nav-social-link.news-active { color: var(--nav-active); border-left-color: var(--accent); background: rgba(255,255,255,0.05); }
    .nav-social-link.news-active svg { opacity: 1; }

    /* ── Conversation compose (X.com style) ────────────── */

    .thoughts-tabs {
      display: flex;
      border-bottom: 1px solid var(--border);
      background: var(--bg);
      position: sticky; top: 0; z-index: 5;
    }
    .thoughts-tab {
      flex: 1; text-align: center;
      padding: 1rem 0.5rem;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-weight: 400;
      letter-spacing: 0.1em; text-transform: uppercase;
      color: var(--text-muted);
      background: none; border: none;
      border-bottom: 2px solid transparent;
      cursor: pointer;
      transition: color 0.2s, border-color 0.2s;
    }
    .thoughts-tab:hover { color: var(--text); background: rgba(0,0,0,0.02); }
    .thoughts-tab.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 500; }

    .thoughts-compose-wrap {
      padding: 1.2rem 1.4rem 0;
      border-bottom: 1px solid var(--border);
      background: var(--bg);
    }
    .thoughts-compose-row {
      display: flex; gap: 0.9rem; align-items: flex-start;
    }
    .thoughts-compose-avatar {
      flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1rem; font-weight: 500; color: #fff;
      background: var(--nav-bg);
    }
    .thoughts-compose-right { flex: 1; min-width: 0; }
    .thoughts-compose-input {
      width: 100%; border: none; outline: none; resize: none;
      background: transparent;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1.15rem; font-weight: 300;
      color: var(--text); line-height: 1.55;
      min-height: 56px; max-height: 240px;
      overflow-y: auto;
      padding: 0.4rem 0 0.5rem;
    }
    .thoughts-compose-input::placeholder { color: var(--text-muted); }

    .thoughts-compose-divider {
      height: 1px; background: var(--border); margin: 0.5rem 0;
    }

    .thoughts-compose-footer {
      display: flex; align-items: center;
      justify-content: space-between;
      padding: 0.5rem 0 0.9rem;
    }
    .thoughts-toolbar {
      display: flex; align-items: center; gap: 0.1rem;
    }
    .thoughts-toolbar-btn {
      background: none; border: none; cursor: pointer;
      color: var(--accent); opacity: 1;
      padding: 0.5rem;
      border-radius: 50%;
      transition: background 0.15s, color 0.15s, transform 0.1s;
      display: flex; align-items: center; justify-content: center;
      stroke-width: 2;
    }
    .thoughts-toolbar-btn:hover {
      background: rgba(139,109,63,0.12);
      color: var(--accent-dark);
      transform: scale(1.12);
    }
    .thoughts-toolbar-btn:active { transform: scale(0.95); }

    /* Drag-over highlight */
    .thoughts-compose-wrap.drag-over {
      outline: 2px dashed var(--accent);
      outline-offset: -4px;
      background: rgba(139,109,63,0.05);
    }

    /* Image / GIF preview */
    .compose-image-preview {
      position: relative; margin: 0.5rem 0 0.3rem 3.3rem;
      display: inline-block;
    }
    .compose-image-preview img {
      max-height: 180px; max-width: 100%;
      border-radius: 10px; border: 1px solid var(--border);
      display: block;
    }
    .compose-image-remove {
      position: absolute; top: 5px; right: 5px;
      background: rgba(0,0,0,0.55); color: #fff;
      border: none; border-radius: 50%;
      width: 22px; height: 22px; cursor: pointer;
      font-size: 1rem; line-height: 1.5;
      display: flex; align-items: center; justify-content: center;
    }
    .compose-image-remove:hover { background: rgba(0,0,0,0.75); }

    /* Upload progress bar */
    .compose-upload-bar {
      height: 3px; background: var(--border); border-radius: 2px;
      margin: 0.3rem 0 0 3.3rem; overflow: hidden;
    }
    .compose-upload-bar-fill {
      height: 100%; background: var(--accent);
      width: 0%; transition: width 0.3s;
    }

    /* Poll builder */
    .compose-poll {
      margin: 0.5rem 0 0 3.3rem;
      border: 1px solid var(--border);
      border-radius: 12px; overflow: hidden;
      background: var(--surface);
    }
    .compose-poll-option {
      display: flex; align-items: center;
      border-bottom: 1px solid var(--border);
      padding: 0 0.8rem;
    }
    .compose-poll-option:last-of-type { border-bottom: none; }
    .compose-poll-input {
      flex: 1; border: none; outline: none; background: transparent;
      padding: 0.65rem 0;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.92rem; color: var(--text);
    }
    .compose-poll-input::placeholder { color: var(--text-muted); }
    .compose-poll-remove {
      background: none; border: none; cursor: pointer;
      color: var(--text-light); font-size: 1rem;
      padding: 0 0 0 0.5rem;
      opacity: 0.5; transition: opacity 0.15s;
    }
    .compose-poll-remove:hover { opacity: 1; color: #dc3545; }
    .compose-poll-footer {
      display: flex; align-items: center; justify-content: space-between;
      padding: 0.5rem 0.8rem;
      border-top: 1px solid var(--border);
      background: rgba(0,0,0,0.02);
    }
    .compose-poll-add {
      background: none; border: none; cursor: pointer;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; color: var(--accent);
      padding: 0; letter-spacing: 0.04em;
    }
    .compose-poll-add:hover { color: var(--accent-dark); }
    .compose-poll-duration {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; color: var(--text-muted);
      border: 1px solid var(--border); border-radius: 4px;
      padding: 0.2rem 0.5rem; background: transparent;
      outline: none; cursor: pointer;
    }

    /* Schedule + location meta badges */
    .compose-meta {
      display: flex; flex-wrap: wrap; gap: 0.4rem;
      margin: 0.3rem 0 0 3.3rem;
    }
    .compose-meta-badge {
      display: inline-flex; align-items: center; gap: 0.35rem;
      background: rgba(139,109,63,0.1); color: var(--accent);
      border: 1px solid rgba(139,109,63,0.3);
      border-radius: 12px; padding: 0.2rem 0.6rem;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; letter-spacing: 0.04em;
    }
    .compose-meta-badge-remove {
      background: none; border: none; cursor: pointer;
      color: inherit; opacity: 0.6; font-size: 0.9rem;
      padding: 0; line-height: 1.5;
    }
    .compose-meta-badge-remove:hover { opacity: 1; }

    /* Emoji picker container */
    .compose-emoji-wrap {
      position: fixed; z-index: 9999;
    }
    .compose-emoji-wrap emoji-picker {
      --background: var(--surface);
      --border-color: var(--border);
      --emoji-size: 1.3rem;
      --num-columns: 8;
      height: 300px;
      width: 320px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.18);
      border-radius: 10px;
      overflow: hidden;
    }

    /* Schedule datetime popup */
    .compose-schedule-popup {
      position: fixed; z-index: 9999;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 1rem 1.2rem;
      box-shadow: 0 8px 32px rgba(0,0,0,0.15);
      min-width: 240px;
    }
    .compose-schedule-popup label {
      display: block;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase;
      color: var(--text-muted); margin-bottom: 0.4rem;
    }
    .compose-schedule-popup input[type="datetime-local"] {
      width: 100%; border: 1px solid var(--border);
      border-radius: 6px; padding: 0.5rem 0.7rem;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.9rem; color: var(--text);
      background: var(--bg); outline: none;
    }
    .compose-schedule-popup input[type="datetime-local"]:focus { border-color: var(--accent); }
    .compose-schedule-actions { display: flex; gap: 0.5rem; margin-top: 0.7rem; }
    .compose-schedule-set {
      flex: 1; background: var(--nav-bg); color: var(--nav-active);
      border: none; border-radius: 6px; padding: 0.4rem 0.8rem;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; cursor: pointer;
    }
    .compose-schedule-set:hover { background: var(--accent); color: #fff; }
    .compose-schedule-cancel {
      background: none; border: 1px solid var(--border);
      border-radius: 6px; padding: 0.4rem 0.8rem;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; color: var(--text-muted); cursor: pointer;
    }

    /* Feed post image */
    .post-image {
      margin-top: 0.7rem;
      border-radius: 10px; overflow: hidden;
      border: 1px solid var(--border);
    }
    .post-image img { width: 100%; max-height: 520px; object-fit: contain; display: block; background: var(--bg); }

    /* Feed poll display */
    .post-poll { margin-top: 0.7rem; }
    .post-poll-question {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.95rem; font-weight: 500; color: var(--text);
      margin-bottom: 0.5rem;
    }
    .post-poll-option {
      position: relative; border: 1px solid var(--border);
      border-radius: 6px; padding: 0.45rem 0.8rem;
      margin-bottom: 0.35rem; cursor: pointer;
      overflow: hidden; transition: border-color 0.15s;
    }
    .post-poll-option:hover { border-color: var(--accent); }
    .post-poll-option.voted { border-color: var(--accent); }
    .post-poll-fill, .post-poll-bar {
      position: absolute; inset: 0; background: rgba(139,109,63,0.1);
      transform-origin: left; transition: width 0.3s;
    }
    .post-poll-label {
      position: relative; font-size: 0.88rem; color: var(--text);
    }
    .post-poll-pct {
      position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%);
      font-size: 0.875rem; color: var(--text-muted);
    }
    .post-poll-meta {
      font-size: 0.875rem; color: var(--text-muted); margin-top: 0.3rem;
    }

    /* Hide redundant conv-section header/compose inside the thoughts feed */
    .thoughts-feed .conv-title,
    .thoughts-feed .conv-section > .auth-bar,
    .thoughts-feed .cv-auth-bar,
    .thoughts-feed .conv-compose { display: none !important; }

    .thoughts-post-btn {
      background: rgba(139,109,63,0.3); color: rgba(255,255,255,0.5);
      border: none; border-radius: 20px;
      padding: 0.45rem 1.2rem;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.9rem; font-weight: 600;
      cursor: default;
      transition: background 0.2s, color 0.2s;
      pointer-events: none;
    }
    .thoughts-post-btn.ready {
      background: var(--nav-bg); color: var(--nav-active);
      cursor: pointer; pointer-events: all;
    }
    .thoughts-post-btn.ready:hover { background: var(--accent); color: #fff; }

    /* Feed section below compose */
    .thoughts-feed {
      background: var(--bg);
    }

    /* ── Follow system ─────────────────────────────────── */

    .follow-btn {
      display: inline-flex; align-items: center;
      gap: 0.35rem;
      background: var(--nav-bg); color: var(--nav-text);
      border: none; border-radius: 20px;
      padding: 0.35rem 1rem;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-weight: 500;
      cursor: pointer; flex-shrink: 0;
      transition: background 0.18s, color 0.18s;
      white-space: nowrap;
    }
    .follow-btn:hover { background: var(--accent); color: #fff; }
    .follow-btn.following {
      background: transparent;
      color: var(--text-muted);
      border: 1px solid var(--border);
    }
    .follow-btn.following:hover {
      border-color: #dc3545; color: #dc3545;
      background: rgba(220,53,69,0.06);
    }
    .follow-btn.following::before { content: 'Following'; }
    .follow-btn.following:hover::before { content: 'Unfollow'; }

    /* Following / Followers list modal */
    .followlist-modal {
      display: none;
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.45); z-index: 600;
      align-items: center; justify-content: center;
    }
    .followlist-modal.open { display: flex; }
    .followlist-box {
      background: var(--surface); border-radius: 8px;
      width: 380px; max-width: 94vw; max-height: 80vh;
      display: flex; flex-direction: column;
      box-shadow: 0 16px 56px rgba(0,0,0,0.2);
    }
    .followlist-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 0.9rem 1.2rem;
      border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }
    .followlist-title {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1rem; font-weight: 500; color: var(--text);
    }
    .followlist-close {
      background: none; border: none; cursor: pointer;
      font-size: 1.3rem; color: var(--text-muted); line-height: 1.5;
    }
    .followlist-tabs {
      display: flex; border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }
    .followlist-tab {
      flex: 1; padding: 0.7rem;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase;
      color: var(--text-muted); text-align: center;
      background: none; border: none;
      border-bottom: 2px solid transparent;
      cursor: pointer; transition: color 0.2s, border-color 0.2s;
    }
    .followlist-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
    .followlist-list { flex: 1; overflow-y: auto; }
    .followlist-item {
      display: flex; align-items: center; gap: 0.8rem;
      padding: 0.8rem 1.2rem;
      border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .followlist-item:last-child { border-bottom: none; }
    .followlist-avatar {
      width: 38px; height: 38px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.9rem; font-weight: 500; color: #fff;
      flex-shrink: 0;
    }
    .followlist-name {
      flex: 1;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.9rem; color: var(--text);
    }
    .followlist-empty {
      padding: 2rem; text-align: center;
      font-style: italic; color: var(--text-muted); font-size: 0.9rem;
    }

    /* ── Profile Overlay ───────────────────────────────── */

    .profile-overlay {
      display: none;
      position: fixed;
      top: 0; left: var(--nav-w); right: var(--right-w); bottom: 0;
      background: var(--bg);
      z-index: 300;
      flex-direction: column;
      overflow-y: auto;
      transition: left 0.28s ease, right 0.28s ease;
    }
    .profile-overlay.active { display: flex; }
    body.nav-collapsed .profile-overlay { left: 0; }
    @media (max-width: 1100px) { .profile-overlay { right: 0; } }

    /* Sticky top bar */
    .profile-topbar {
      position: sticky; top: 0; z-index: 10;
      display: flex; align-items: center; gap: 1rem;
      padding: 0.7rem 1.2rem;
      background: rgba(240,235,224,0.88);
      backdrop-filter: blur(8px);
      border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }
    .profile-back-btn {
      background: none; border: none; cursor: pointer;
      color: var(--text); display: flex; align-items: center;
      padding: 0; flex-shrink: 0;
    }
    .profile-topbar-info { flex: 1; min-width: 0; }
    .profile-topbar-name {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1rem; font-weight: 500; color: var(--text);
      line-height: 1.5;
    }
    .profile-topbar-posts {
      font-size: 0.875rem; color: var(--text-muted);
      letter-spacing: 0.04em;
    }
    .profile-topbar-actions { display: flex; gap: 0.5rem; }
    .profile-topbar-icon {
      background: none; border: none; cursor: pointer;
      color: var(--text-muted); display: flex; align-items: center;
      padding: 0.3rem; border-radius: 50%;
      transition: background 0.15s;
    }
    .profile-topbar-icon:hover { background: rgba(0,0,0,0.07); }

    /* Banner */
    .profile-banner {
      position: relative;
      height: 180px;
      flex-shrink: 0;
      overflow: hidden;
    }
    .profile-banner-img {
      width: 100%; height: 100%; object-fit: cover;
    }
    .profile-banner-gradient {
      width: 100%; height: 100%;
      background: linear-gradient(135deg, var(--nav-bg) 0%, var(--accent-dark) 50%, #8b6d3f 100%);
    }

    /* Avatar row */
    .profile-avatar-row {
      display: flex; align-items: flex-end;
      justify-content: space-between;
      padding: 0 1.4rem;
      margin-top: -44px;
      flex-shrink: 0;
      position: relative; z-index: 2;
    }
    .profile-avatar {
      width: 88px; height: 88px; border-radius: 50%;
      border: 4px solid var(--bg);
      display: flex; align-items: center; justify-content: center;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 2rem; font-weight: 400; color: #fff;
      flex-shrink: 0; overflow: hidden;
      background: var(--nav-bg);
    }
    .profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

    .profile-edit-btn {
      background: none;
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 0.42rem 1.1rem;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-weight: 500;
      color: var(--text); cursor: pointer;
      transition: background 0.18s;
      margin-bottom: 4px;
    }
    .profile-edit-btn:hover { background: rgba(0,0,0,0.06); }

    /* Info section */
    .profile-info {
      padding: 0.9rem 1.4rem 0;
      flex-shrink: 0;
    }
    .profile-display-name {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1.3rem; font-weight: 500; color: var(--text);
      line-height: 1.5; margin-bottom: 0.1rem;
    }
    .profile-handle {
      font-size: 0.875rem; color: var(--text-muted);
      margin-bottom: 0.7rem;
    }
    .profile-bio {
      font-size: 0.92rem; line-height: 1.6; color: var(--text);
      margin-bottom: 0.7rem; white-space: pre-wrap;
    }
    .profile-meta {
      display: flex; flex-wrap: wrap; gap: 0.7rem 1.2rem;
      font-size: 0.875rem; color: var(--text-muted);
      margin-bottom: 0.9rem;
    }
    .profile-meta-item {
      display: flex; align-items: center; gap: 0.3rem;
    }
    .profile-meta-item svg { flex-shrink: 0; }
    .profile-stats {
      display: flex; gap: 1.4rem;
      font-size: 0.875rem;
      padding-bottom: 0.9rem;
      border-bottom: 1px solid var(--border);
    }
    .profile-stat-btn {
      background: none; border: none; cursor: pointer; padding: 0;
      font-size: 0.875rem; color: var(--text-muted);
      transition: color 0.15s;
    }
    .profile-stat-btn:hover { color: var(--text); text-decoration: underline; }
    .profile-stat-btn strong { color: var(--text); font-weight: 600; }

    /* Tabs */
    .profile-tabs {
      display: flex;
      border-bottom: 1px solid var(--border);
      flex-shrink: 0;
      position: sticky;
      top: 53px; /* topbar height */
      background: var(--bg); z-index: 9;
    }
    .profile-tab {
      flex: 1;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; letter-spacing: 0.14em; text-transform: uppercase;
      color: var(--text-muted);
      padding: 0.9rem 0.5rem;
      border-bottom: 2px solid transparent;
      cursor: pointer; background: none;
      border-top: none; border-left: none; border-right: none;
      transition: color 0.2s, border-color 0.2s;
      text-align: center;
    }
    .profile-tab:hover { color: var(--text); background: rgba(0,0,0,0.02); }
    .profile-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

    /* Feed */
    .profile-feed { flex: 1; }
    .profile-pane { display: none; }
    .profile-pane.active { display: block; }
    .profile-feed-empty {
      padding: 3rem 1.4rem; text-align: center;
      font-family: 'Cormorant Garamond', Georgia, serif;
      color: var(--text-muted); font-style: italic;
    }

    /* Post card in profile feed */
    .profile-post-card {
      padding: 1rem 1.4rem;
      border-bottom: 1px solid var(--border);
      transition: background 0.12s;
    }
    .profile-post-card:hover { background: rgba(139,109,63,0.04); }
    .profile-post-header {
      display: flex; align-items: center; gap: 0.6rem;
      margin-bottom: 0.4rem;
    }
    .profile-post-avatar {
      width: 36px; height: 36px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-weight: 500; color: #fff;
      flex-shrink: 0;
    }
    .profile-post-meta { flex: 1; min-width: 0; }
    .profile-post-name {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.9rem; font-weight: 500; color: var(--text);
    }
    .profile-post-time {
      font-size: 0.875rem; color: var(--text-muted);
    }
    .profile-post-text {
      font-size: 1rem; line-height: 1.6; color: var(--text);
      white-space: pre-wrap; word-break: break-word;
    }
    .profile-post-stats {
      display: flex; gap: 1.4rem; margin-top: 0.6rem;
    }
    .profile-post-stat {
      font-size: 0.875rem; color: var(--text-light);
      display: flex; align-items: center; gap: 0.25rem;
    }
    .profile-reply-thread {
      font-size: 0.875rem; color: var(--accent);
      margin-bottom: 0.3rem; font-style: italic;
    }

    /* Edit Profile modal */
    .profile-edit-modal {
      display: none;
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.45); z-index: 500;
      align-items: center; justify-content: center;
    }
    .profile-edit-modal.open { display: flex; }
    .profile-edit-box {
      background: var(--surface); border-radius: 8px;
      width: 440px; max-width: 94vw; max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 16px 56px rgba(0,0,0,0.2);
    }
    .profile-edit-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 1rem 1.2rem;
      border-bottom: 1px solid var(--border);
      position: sticky; top: 0; background: var(--surface); z-index: 2;
    }
    .profile-edit-title {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1rem; font-weight: 500; color: var(--text);
    }
    .profile-edit-actions { display: flex; align-items: center; gap: 0.7rem; }
    .profile-edit-close {
      background: none; border: none; cursor: pointer;
      font-size: 1.3rem; color: var(--text-muted); line-height: 1.5;
    }
    .profile-save-btn {
      background: var(--nav-bg); color: var(--nav-text);
      border: none; border-radius: 20px;
      padding: 0.38rem 1rem;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-weight: 500; cursor: pointer;
      transition: background 0.2s;
    }
    .profile-save-btn:hover { background: var(--accent); color: #fff; }

    /* Banner edit area inside modal */
    .profile-upload-btn {
      display: block; width: 100%;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.95rem; letter-spacing: 0.04em;
      background: var(--nav-bg); color: #f0e8d2;
      border: none; border-radius: 8px;
      padding: 0.55rem 1rem; margin-bottom: 0.45rem;
      cursor: pointer; transition: background 0.18s;
    }
    .profile-upload-btn:hover { background: var(--accent); color: #fff; }
    .profile-edit-banner { cursor: pointer; }
    .profile-edit-banner {
      position: relative; height: 110px;
      overflow: hidden; cursor: pointer;
    }
    .profile-edit-banner-img {
      width: 100%; height: 100%; object-fit: cover;
    }
    .profile-edit-banner-gradient {
      width: 100%; height: 100%;
      background: linear-gradient(135deg, var(--nav-bg) 0%, var(--accent-dark) 50%, #8b6d3f 100%);
    }
    .profile-edit-banner-overlay {
      position: absolute; inset: 0;
      background: rgba(0,0,0,0.3);
      display: flex; align-items: center; justify-content: center;
      opacity: 0; transition: opacity 0.2s;
    }
    .profile-edit-banner:hover .profile-edit-banner-overlay { opacity: 1; }
    .profile-edit-banner-overlay span {
      color: #fff; font-size: 0.875rem;
      letter-spacing: 0.1em; text-transform: uppercase;
    }

    .profile-edit-avatar-row {
      position: relative;
      margin: -30px 0 0 1.2rem; display: inline-block;
    }
    .profile-edit-avatar {
      width: 60px; height: 60px; border-radius: 50%;
      border: 3px solid var(--surface);
      display: flex; align-items: center; justify-content: center;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1.3rem; color: #fff; overflow: hidden;
      cursor: pointer; position: relative;
    }
    .profile-edit-avatar img { width:100%; height:100%; object-fit:cover; }
    .profile-edit-avatar-overlay {
      position: absolute; inset: 0; border-radius: 50%;
      background: rgba(0,0,0,0.35);
      display: flex; align-items: center; justify-content: center;
      opacity: 0; transition: opacity 0.2s;
    }
    .profile-edit-avatar:hover .profile-edit-avatar-overlay { opacity: 1; }

    .profile-edit-fields { padding: 1rem 1.2rem; }
    .profile-edit-field { margin-bottom: 1rem; }
    .profile-edit-field label {
      display: block; font-size: 0.875rem;
      letter-spacing: 0.1em; text-transform: uppercase;
      color: var(--text-muted); margin-bottom: 0.3rem;
    }
    .profile-edit-field input,
    .profile-edit-field textarea {
      width: 100%; padding: 0.55rem 0.8rem;
      border: 1px solid var(--border); border-radius: 4px;
      background: var(--bg); color: var(--text);
      font-family: Georgia, serif; font-size: 0.9rem;
      outline: none; transition: border-color 0.2s;
    }
    .profile-edit-field input:focus,
    .profile-edit-field textarea:focus { border-color: var(--accent); }
    .profile-edit-field textarea { resize: vertical; min-height: 72px; }
    .profile-edit-charcount {
      font-size: 0.875rem; color: var(--text-light);
      text-align: right; margin-top: 0.2rem;
    }

    /* Sign-in prompt for profile when logged out */
    .profile-signin-prompt {
      flex: 1; display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      gap: 1rem; padding: 3rem;
    }
    .profile-signin-prompt p {
      font-family: 'Cormorant Garamond', Georgia, serif;
      color: var(--text-muted); font-size: 1.05rem; text-align: center;
    }
    .profile-signin-prompt-btn {
      background: var(--accent); color: #fff;
      border: none; border-radius: 20px; padding: 0.6rem 1.6rem;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.9rem; cursor: pointer;
    }
    .profile-signin-prompt-btn:hover { background: var(--accent-dark); }

    /* ── Chat Overlay ──────────────────────────────────── */

    .chat-overlay {
      display: none;
      position: fixed;
      top: 0; left: var(--nav-w); right: var(--right-w); bottom: 0;
      background: var(--surface);
      z-index: 300;
      flex-direction: row;
      transition: left 0.28s ease, right 0.28s ease;
    }
    .chat-overlay.active { display: flex; }
    body.nav-collapsed .chat-overlay { left: 0; }
    @media (max-width: 1100px) { .chat-overlay { right: 0; } }

    /* Hamburger inside chat header — only shown when nav is collapsed */
    .chat-nav-toggle {
      display: none; flex-direction: column; justify-content: center; gap: 4px;
      background: none; border: none; cursor: pointer; padding: 6px;
      border-radius: 6px; margin-right: 0.4rem;
    }
    .chat-nav-toggle span {
      display: block; width: 18px; height: 2px;
      background: var(--text); border-radius: 2px;
    }
    .chat-nav-toggle:hover { background: var(--border); }
    body.nav-collapsed .chat-nav-toggle { display: flex; }

    /* ─ Thread list (left column) ─ */
    .chat-threads {
      width: 300px;
      flex-shrink: 0;
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      background: var(--surface);
    }
    @media (max-width: 700px) {
      .chat-threads { width: 100%; border-right: none; }
      .chat-threads.hidden { display: none; }
      .chat-active-pane.empty { display: none; }
    }

    .chat-threads-header {
      padding: 1rem 1.2rem 0.6rem;
      border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }
    .chat-threads-title-row {
      display: flex; align-items: center;
      justify-content: space-between;
      margin-bottom: 0.8rem;
    }
    .chat-threads-title {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1.35rem; font-weight: 500; color: var(--text);
    }
    .chat-new-btn {
      background: var(--nav-bg); color: var(--nav-text);
      border: none; border-radius: 50%;
      width: 32px; height: 32px;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; transition: background 0.2s;
      flex-shrink: 0;
    }
    .chat-new-btn:hover { background: var(--accent); color: #fff; }

    .chat-search-bar {
      display: flex; align-items: center; gap: 0.5rem;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 20px; padding: 0.4rem 0.9rem;
    }
    .chat-search-bar svg { color: var(--text-light); flex-shrink: 0; }
    .chat-search-input {
      flex: 1; border: none; background: transparent;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.9rem; color: var(--text); outline: none;
    }
    .chat-search-input::placeholder { color: var(--text-light); }

    .chat-thread-list {
      flex: 1; overflow-y: auto;
    }

    .chat-thread-item {
      display: flex; align-items: center; gap: 0.8rem;
      padding: 0.85rem 1.2rem;
      border-bottom: 1px solid rgba(0,0,0,0.05);
      cursor: pointer; transition: background 0.15s;
    }
    .chat-thread-item:hover { background: rgba(139,109,63,0.05); }
    .chat-thread-item.active { background: rgba(139,109,63,0.09); }

    .chat-thread-avatar {
      flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1rem; font-weight: 500; color: #fff;
    }
    .chat-thread-body { flex: 1; min-width: 0; }
    .chat-thread-row1 { display: flex; align-items: baseline; justify-content: space-between; }
    .chat-thread-name {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.95rem; font-weight: 500; color: var(--text);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .chat-thread-time {
      font-size: 0.875rem; color: var(--text-light);
      flex-shrink: 0; margin-left: 0.4rem;
    }
    .chat-thread-preview {
      font-size: 0.875rem; color: var(--text-muted);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      margin-top: 0.15rem;
    }
    .chat-thread-dot {
      flex-shrink: 0; width: 8px; height: 8px;
      border-radius: 50%; background: var(--accent);
      display: none;
    }
    .chat-thread-item.unread .chat-thread-dot { display: block; }
    .chat-thread-item.unread .chat-thread-name { font-weight: 600; }
    .chat-thread-item.unread .chat-thread-preview { color: var(--text); }

    .chat-threads-empty {
      padding: 2rem 1.2rem; text-align: center;
      font-family: 'Cormorant Garamond', Georgia, serif;
      color: var(--text-muted); font-size: 0.9rem; font-style: italic;
    }

    /* ─ Active pane (right column) ─ */
    .chat-active-pane {
      flex: 1; display: flex; flex-direction: column;
      background: var(--bg); min-width: 0;
    }

    /* Placeholder */
    .chat-placeholder {
      flex: 1; display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      gap: 1rem; padding: 2rem;
    }
    .chat-placeholder-icon {
      width: 72px; height: 72px; border-radius: 50%;
      background: var(--surface); border: 1px solid var(--border);
      display: flex; align-items: center; justify-content: center;
      color: var(--text-muted);
    }
    .chat-placeholder-title {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1.5rem; font-weight: 400; color: var(--text);
    }
    .chat-placeholder-sub {
      font-size: 0.88rem; color: var(--text-muted); text-align: center;
      max-width: 260px; line-height: 1.55;
    }
    .chat-placeholder-btn {
      background: var(--nav-bg); color: var(--nav-text);
      border: none; border-radius: 20px;
      padding: 0.6rem 1.6rem;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.88rem; font-weight: 500; cursor: pointer;
      transition: background 0.2s;
    }
    .chat-placeholder-btn:hover { background: var(--accent); color: #fff; }

    /* Active thread */
    .chat-thread-header {
      display: flex; align-items: center; gap: 0.8rem;
      padding: 0.9rem 1.2rem;
      border-bottom: 1px solid var(--border);
      background: var(--surface); flex-shrink: 0;
    }
    .chat-back-thread {
      background: none; border: none; cursor: pointer;
      color: var(--accent); padding: 0; display: flex; align-items: center;
    }
    .chat-thread-header-name {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1rem; font-weight: 500; color: var(--text);
    }

    .chat-messages {
      flex: 1; overflow-y: auto;
      padding: 1rem 1.2rem;
      display: flex; flex-direction: column; gap: 0.5rem;
    }
    .chat-msg {
      display: flex; flex-direction: column;
      max-width: 72%;
    }
    .chat-msg.mine { align-self: flex-end; align-items: flex-end; }
    .chat-msg.theirs { align-self: flex-start; align-items: flex-start; }

    .chat-bubble {
      padding: 0.55rem 0.9rem;
      border-radius: 16px;
      font-size: 0.9rem; line-height: 1.5;
      word-break: break-word;
    }
    .chat-msg.mine .chat-bubble {
      background: var(--nav-bg); color: var(--nav-text);
      border-bottom-right-radius: 4px;
    }
    .chat-msg.theirs .chat-bubble {
      background: var(--surface); color: var(--text);
      border: 1px solid var(--border);
      border-bottom-left-radius: 4px;
    }
    .chat-msg-time {
      font-size: 0.875rem; color: var(--text-light);
      margin-top: 0.18rem; padding: 0 0.2rem;
    }

    .chat-date-sep {
      text-align: center;
      font-size: 0.875rem; color: var(--text-light);
      letter-spacing: 0.1em; text-transform: uppercase;
      margin: 0.6rem 0;
    }

    .chat-messages-loading {
      text-align: center; font-style: italic;
      color: var(--text-muted); font-size: 0.875rem; padding: 2rem;
    }

    .chat-compose {
      display: flex; align-items: flex-end; gap: 0.7rem;
      padding: 0.8rem 1.2rem;
      border-top: 1px solid var(--border);
      background: var(--surface); flex-shrink: 0;
    }
    .chat-image-btn {
      flex-shrink: 0; align-self: flex-end;
      background: none; border: none; cursor: pointer;
      color: var(--text-muted); padding: 0.55rem 0.4rem;
      display: flex; align-items: center;
      min-width: 36px; min-height: 36px; justify-content: center;
    }
    .chat-image-btn:hover { color: var(--accent); }
    .chat-attach-chip {
      position: relative; flex-shrink: 0; align-self: flex-end;
      width: 46px; height: 46px; border-radius: 8px; overflow: visible;
    }
    .chat-attach-chip img {
      width: 100%; height: 100%; object-fit: cover;
      border-radius: 8px; border: 1px solid var(--border); display: block;
    }
    .chat-attach-chip button {
      position: absolute; top: -7px; right: -7px;
      width: 20px; height: 20px; border-radius: 50%;
      background: var(--nav-bg); color: #fff; border: none;
      font-size: 0.875rem; line-height: 1; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
    }
    .chat-msg-img {
      max-width: 240px; max-height: 280px;
      border-radius: 14px; display: block;
      border: 1px solid var(--border);
      margin-bottom: 0.25rem;
    }
    .chat-compose-input {
      flex: 1; border: 1px solid var(--border);
      border-radius: 20px; padding: 0.5rem 1rem;
      font-family: Georgia, serif; font-size: 0.9rem;
      color: var(--text); background: var(--bg);
      resize: none; outline: none; min-height: 38px;
      max-height: 120px; overflow-y: auto; line-height: 1.5;
      transition: border-color 0.2s;
    }
    .chat-compose-input:focus { border-color: var(--accent); }
    .chat-send-btn {
      flex-shrink: 0; width: 36px; height: 36px;
      border-radius: 50%; background: var(--nav-bg);
      color: var(--nav-text); border: none; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: background 0.2s;
    }
    .chat-send-btn:hover:not(:disabled) { background: var(--accent); color: #fff; }
    .chat-send-btn:disabled { opacity: 0.4; cursor: default; }

    /* New-chat modal */
    .chat-newchat-modal {
      display: none;
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.45);
      z-index: 400;
      align-items: center; justify-content: center;
    }
    .chat-newchat-modal.open { display: flex; }
    .chat-newchat-box {
      background: var(--surface);
      border-radius: 8px; width: 360px; max-width: 92vw;
      box-shadow: 0 12px 48px rgba(0,0,0,0.18);
      overflow: hidden;
    }
    .chat-newchat-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 1rem 1.2rem;
      border-bottom: 1px solid var(--border);
    }
    .chat-newchat-header-title {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1rem; font-weight: 500; color: var(--text);
    }
    .chat-newchat-close {
      background: none; border: none; cursor: pointer;
      font-size: 1.3rem; color: var(--text-muted); line-height: 1.5;
    }
    .chat-newchat-search {
      display: flex; align-items: center; gap: 0.5rem;
      margin: 0.8rem 1.2rem;
      background: var(--bg); border: 1px solid var(--border);
      border-radius: 20px; padding: 0.4rem 0.9rem;
    }
    .chat-newchat-input {
      flex: 1; border: none; background: transparent;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.9rem; color: var(--text); outline: none;
    }
    .chat-newchat-input::placeholder { color: var(--text-light); }
    .chat-newchat-results { max-height: 240px; overflow-y: auto; }
    .chat-newchat-result {
      display: flex; align-items: center; gap: 0.8rem;
      padding: 0.7rem 1.2rem; cursor: pointer;
      border-bottom: 1px solid rgba(0,0,0,0.05);
      transition: background 0.15s;
    }
    .chat-newchat-result:hover { background: rgba(139,109,63,0.06); }
    .chat-newchat-result-name {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.9rem; color: var(--text);
    }
    .chat-newchat-result-email {
      font-size: 0.875rem; color: var(--text-muted);
    }
    .chat-newchat-empty {
      padding: 1.2rem; text-align: center;
      font-style: italic; color: var(--text-muted); font-size: 0.875rem;
    }

    /* ── Notifications Overlay ─────────────────────────── */

    .notif-overlay {
      display: none;
      position: fixed;
      top: 0; left: var(--nav-w); right: var(--right-w); bottom: 0;
      background: var(--bg);
      z-index: 300;
      overflow-y: auto;
      flex-direction: column;
      transition: left 0.28s ease, right 0.28s ease;
    }
    .notif-overlay.active { display: flex; }
    body.nav-collapsed .notif-overlay { left: 0; }
    @media (max-width: 1100px) { .notif-overlay { right: 0; } }

    .notif-header {
      position: sticky; top: 0;
      background: var(--bg);
      padding: 1.4rem 2rem 0;
      border-bottom: 1px solid var(--border);
      z-index: 10; flex-shrink: 0;
    }

    .notif-header-row {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 1rem;
    }

    .notif-title {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1.5rem; font-weight: 400; color: var(--text);
      letter-spacing: 0.02em;
    }

    .notif-mark-read {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; letter-spacing: 0.12em; text-transform: uppercase;
      color: var(--accent); background: none; border: none;
      cursor: pointer; padding: 0;
    }
    .notif-mark-read:hover { color: var(--accent-dark); }

    .notif-tabs {
      display: flex; gap: 0;
    }
    .notif-tab {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-weight: 400;
      letter-spacing: 0.14em; text-transform: uppercase;
      color: var(--text-muted);
      padding: 0.6rem 1.2rem 0.8rem;
      border-bottom: 2px solid transparent;
      cursor: pointer; background: none;
      border-top: none; border-left: none; border-right: none;
      transition: color 0.2s, border-color 0.2s;
    }
    .notif-tab:hover { color: var(--text); }
    .notif-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

    .notif-back-btn {
      display: flex; align-items: center; gap: 0.5rem;
      background: none; border: none; cursor: pointer;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; letter-spacing: 0.2em; text-transform: uppercase;
      color: var(--accent); padding: 0.7rem 2rem;
      border-bottom: 1px solid var(--border); width: 100%; text-align: left;
    }
    .notif-back-btn:hover { color: var(--accent-dark); }

    .notif-list { flex: 1; }

    .notif-pane { display: none; }
    .notif-pane.active { display: block; }

    .notif-item {
      display: flex; align-items: flex-start; gap: 1rem;
      padding: 1rem 2rem;
      border-bottom: 1px solid var(--border);
      transition: background 0.15s;
      cursor: default;
    }
    .notif-item { cursor: pointer; }
    .notif-item:hover { background: rgba(139,109,63,0.06); }
    .notif-reply-btn {
      align-self: center; flex-shrink: 0;
      background: none; border: 1px solid var(--border);
      border-radius: 50%; width: 36px; height: 36px;
      display: flex; align-items: center; justify-content: center;
      color: var(--text-muted); cursor: pointer;
      transition: color 0.15s, border-color 0.15s, background 0.15s;
    }
    .notif-reply-btn:hover {
      color: #fff; background: var(--accent); border-color: var(--accent);
    }
    .notif-item:last-child { border-bottom: none; }
    .notif-item:hover { background: rgba(139,109,63,0.04); }
    .notif-item.unread { background: rgba(139,109,63,0.06); }
    .notif-item.unread:hover { background: rgba(139,109,63,0.1); }

    .notif-type-icon {
      flex-shrink: 0; width: 28px; height: 28px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      margin-top: 0.15rem;
    }
    .notif-type-icon.like    { background: rgba(220,53,69,0.12); color: #dc3545; }
    .notif-type-icon.reply   { background: rgba(139,109,63,0.15); color: var(--accent); }
    .notif-type-icon.follow  { background: rgba(34,139,34,0.12); color: #228b22; }

    .notif-avatar {
      flex-shrink: 0; width: 36px; height: 36px;
      border-radius: 50%;
      background: var(--nav-bg);
      display: flex; align-items: center; justify-content: center;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.9rem; font-weight: 500;
      color: var(--nav-text);
      border: 1px solid rgba(255,255,255,0.1);
    }

    .notif-body { flex: 1; min-width: 0; }

    .notif-text {
      font-size: 0.9rem; line-height: 1.5; color: var(--text);
      margin-bottom: 0.2rem;
    }
    .notif-text strong { font-weight: 600; color: var(--text); }

    .notif-excerpt {
      font-size: 0.875rem; color: var(--text-muted);
      line-height: 1.5; font-style: italic;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }

    .notif-time {
      font-size: 0.875rem; color: var(--text-light);
      letter-spacing: 0.04em; margin-top: 0.2rem;
    }

    .notif-empty {
      padding: 4rem 2rem;
      text-align: center;
      font-family: 'Cormorant Garamond', Georgia, serif;
      color: var(--text-muted); font-size: 1rem; font-style: italic;
    }

    .notif-signin-prompt {
      padding: 3rem 2rem; text-align: center;
    }
    .notif-signin-prompt p {
      font-family: 'Cormorant Garamond', Georgia, serif;
      color: var(--text-muted); font-size: 1rem; margin-bottom: 1rem;
    }
    .notif-signin-btn {
      background: var(--accent); color: #fff;
      border: none; padding: 0.55rem 1.4rem;
      border-radius: 4px; cursor: pointer;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.88rem; letter-spacing: 0.06em;
    }
    .notif-signin-btn:hover { background: var(--accent-dark); }

    /* ── Explore Overlay ───────────────────────────────── */

    .explore-overlay {
      display: none;
      position: fixed;
      top: 0; left: var(--nav-w); right: var(--right-w); bottom: 0;
      background: var(--bg);
      z-index: 300;
      overflow-y: auto;
      flex-direction: column;
      transition: left 0.28s ease, right 0.28s ease;
    }
    .explore-overlay.active { display: flex; }
    body.nav-collapsed .explore-overlay { left: 0; }
    @media (max-width: 1100px) {
      .explore-overlay { right: 0; }
    }

    /* Search bar */
    .explore-search-wrap {
      position: sticky;
      top: 0;
      background: var(--bg);
      padding: 1.2rem 2rem 0.8rem;
      border-bottom: 1px solid var(--border);
      z-index: 10;
      flex-shrink: 0;
    }

    .explore-search-bar {
      display: flex;
      align-items: center;
      gap: 0.7rem;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 24px;
      padding: 0.55rem 1.1rem;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .explore-search-bar:focus-within {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(139,109,63,0.12);
    }
    .explore-search-bar svg { flex-shrink: 0; color: var(--text-light); }

    .explore-search-input {
      flex: 1;
      border: none;
      background: transparent;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1rem;
      color: var(--text);
      outline: none;
    }
    .explore-search-input::placeholder { color: var(--text-light); }

    .explore-search-opts {
      display: flex;
      gap: 0.5rem;
      margin-top: 0.6rem;
      padding: 0 0.2rem;
    }
    .explore-results {
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      max-height: 50vh; overflow-y: auto;
    }
    .explore-result {
      display: flex; align-items: center; gap: 0.8rem;
      padding: 0.7rem 2rem; cursor: pointer;
      border-bottom: 1px solid rgba(0,0,0,0.05);
      transition: background 0.15s;
    }
    .explore-result:hover { background: rgba(139,109,63,0.07); }
    a.explore-result { text-decoration: none; color: inherit; }
    .explore-result-thumb {
      width: 44px; height: 44px; object-fit: cover;
      border-radius: 8px; border: 1px solid var(--border); flex-shrink: 0;
    }
    .explore-result-icon { font-size: 1.3rem; width: 44px; text-align: center; flex-shrink: 0; }
    .explore-result-body { flex: 1; min-width: 0; }
    .explore-result-label { font-weight: 600; color: var(--text); font-size: 0.95rem; }
    .explore-result-sub {
      font-size: 0.875rem; color: var(--text-muted);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .explore-result-kind {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--accent); flex-shrink: 0;
    }
    .explore-results-empty {
      padding: 1rem 2rem; font-style: italic;
      color: var(--text-muted); font-size: 0.95rem;
    }
    .explore-results-empty a { color: var(--accent); }
    .explore-search-opt {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-light);
      background: none;
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 0.2rem 0.7rem;
      cursor: pointer;
      transition: border-color 0.2s, color 0.2s, background 0.2s;
    }
    .explore-search-opt:hover,
    .explore-search-opt.active {
      border-color: var(--accent);
      color: var(--accent);
      background: rgba(139,109,63,0.07);
    }

    /* Tabs */
    .explore-tabs {
      display: flex;
      border-bottom: 1px solid var(--border);
      padding: 0 2rem;
      flex-shrink: 0;
      background: var(--bg);
      position: sticky;
      top: calc(3.1rem + 2.4rem); /* approx search bar height */
      z-index: 9;
    }

    .explore-tab {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem;
      font-weight: 400;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--text-muted);
      padding: 0.9rem 1.4rem;
      border-bottom: 2px solid transparent;
      cursor: pointer;
      transition: color 0.2s, border-color 0.2s;
      background: none;
      border-top: none;
      border-left: none;
      border-right: none;
    }
    .explore-tab:hover { color: var(--text); }
    .explore-tab.active {
      color: var(--accent);
      border-bottom-color: var(--accent);
      font-weight: 500;
    }

    /* Tab panes */
    .explore-pane { display: none; padding: 1.8rem 2rem; }
    .explore-pane.active { display: block; }

    /* Explore section heading */
    .explore-art-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
      gap: 10px;
      padding: 0 2rem 1.6rem;
    }
    .explore-art-tile {
      position: relative; cursor: pointer;
      border-radius: 10px; overflow: hidden;
      aspect-ratio: 1 / 1; background: #1a1410;
    }
    .explore-art-tile img {
      width: 100%; height: 100%; object-fit: cover; display: block;
      transition: transform 0.3s ease, opacity 0.3s;
    }
    .explore-art-tile:hover img { transform: scale(1.05); opacity: 0.85; }
    .explore-art-tile-label {
      position: absolute; left: 0; right: 0; bottom: 0;
      padding: 1.1rem 0.6rem 0.45rem;
      background: linear-gradient(transparent, rgba(0,0,0,0.75));
      color: #fff;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; line-height: 1.5;
      opacity: 0; transition: opacity 0.25s;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .explore-art-tile:hover .explore-art-tile-label { opacity: 1; }
    @media (max-width: 600px) {
      .explore-art-grid { grid-template-columns: repeat(3, 1fr); padding: 0 1.2rem 1.4rem; gap: 6px; }
    }
    .explore-section-title {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1.3rem;
      font-weight: 400;
      color: var(--text);
      margin-bottom: 1.2rem;
      letter-spacing: 0.02em;
    }

    /* Story/topic cards */
    .explore-cards { display: flex; flex-direction: column; gap: 0; }

    .explore-card {
      display: flex;
      gap: 1.2rem;
      padding: 1rem 0;
      border-bottom: 1px solid var(--border);
      cursor: pointer;
      transition: background 0.15s;
      border-radius: 4px;
    }
    .explore-card:last-child { border-bottom: none; }
    .explore-card:hover { background: rgba(139,109,63,0.04); padding-left: 0.4rem; }

    .explore-card-thumb {
      flex-shrink: 0;
      width: 72px;
      height: 72px;
      object-fit: cover;
      border-radius: 4px;
      border: 1px solid var(--border);
    }
    .explore-card-thumb-placeholder {
      flex-shrink: 0;
      width: 72px;
      height: 72px;
      border-radius: 4px;
      background: var(--surface);
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-light);
      font-size: 1.5rem;
    }

    .explore-card-body { flex: 1; min-width: 0; }

    .explore-card-tag {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 0.25rem;
    }

    .explore-card-title {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1rem;
      font-weight: 500;
      color: var(--text);
      line-height: 1.5;
      margin-bottom: 0.3rem;
    }

    .explore-card-snippet {
      font-size: 0.875rem;
      line-height: 1.55;
      color: var(--text-muted);
    }

    .explore-card-meta {
      font-size: 0.875rem;
      color: var(--text-light);
      margin-top: 0.3rem;
      letter-spacing: 0.04em;
    }

    /* Art grid (3-up) */
    .explore-art-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
    }
    @media (max-width: 900px) {
      .explore-art-grid { grid-template-columns: repeat(2, 1fr); }
    }

    .explore-art-card {
      cursor: pointer;
      border-radius: 5px;
      overflow: hidden;
      border: 1px solid var(--border);
      background: var(--surface);
      transition: transform 0.18s, box-shadow 0.18s;
    }
    .explore-art-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    }
    .explore-art-card img {
      width: 100%;
      height: 140px;
      object-fit: cover;
      display: block;
    }
    .explore-art-card-label {
      padding: 0.5rem 0.7rem 0.6rem;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem;
      color: var(--text-muted);
      font-style: italic;
    }

    /* Back button in explore */
    .explore-back-btn {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      background: none;
      border: none;
      cursor: pointer;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--accent);
      padding: 0.7rem 2rem;
      border-bottom: 1px solid var(--border);
      width: 100%;
      text-align: left;
    }
    .explore-back-btn:hover { color: var(--accent-dark); }

    /* Sticky back button inside detail overlays */
    .detail-back-btn {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      width: 100%;
      padding: 0.75rem 2rem;
      background: var(--surface);
      border: none;
      border-bottom: 1px solid var(--border);
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--accent);
      cursor: pointer;
      text-align: left;
      position: sticky;
      top: 0;
      z-index: 10;
      transition: background 0.2s, color 0.2s;
    }
    .detail-back-btn:hover { background: var(--bg); color: var(--accent-dark); }
    .detail-back-btn svg { flex-shrink: 0; }

    /* ── Shared headers ───────────────────────────────── */

    .page-header {
      background: var(--bg);
      border-bottom: 1px solid var(--border);
      padding: 4.5rem max(5rem, calc((100% - 46rem) / 2)) 3.5rem;
    }

    .page-kicker {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-weight: 500;
      letter-spacing: 0.3em; text-transform: uppercase;
      color: var(--accent); margin-bottom: 0.8rem;
    }

    .page-header h1 {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 300;
      letter-spacing: 0.03em; line-height: 1.5;
      color: var(--text);
    }

    .page-rule { width: 44px; height: 1px; background: var(--accent); margin-top: 1.8rem; }

    .page-body { padding: 3.5rem max(5rem, calc((100% - 46rem) / 2)) 1rem; }

    .page-body p {
      font-size: 1.05rem; line-height: 1.9;
      color: var(--text); margin-bottom: 1.7rem;
      max-width: 72ch;       /* ~65–75 chars — optimal reading width */
    }

    .page-body p:last-child { margin-bottom: 0; }

    /* ── Lightbox ────────────────────────────────────────── */
    .lightbox-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.9);
      z-index: 9000;
      align-items: center;
      justify-content: center;
      cursor: zoom-out;
    }
    .lightbox-overlay.active { display: flex; }

    .lightbox-img {
      max-width: 90vw;
      max-height: 90vh;
      object-fit: contain;
      border-radius: 4px;
      box-shadow: 0 12px 60px rgba(0,0,0,0.7);
      cursor: default;
      animation: lb-in 0.22s ease;
    }
    @keyframes lb-in {
      from { opacity: 0; transform: scale(0.93); }
      to   { opacity: 1; transform: scale(1); }
    }
    .lightbox-close {
      position: fixed;
      top: 1.1rem; right: 1.6rem;
      font-size: 2.4rem; line-height: 1.5;
      color: #fff; opacity: 0.75;
      cursor: pointer; z-index: 9001;
      transition: opacity 0.15s;
      user-select: none;
    }
    .lightbox-close:hover { opacity: 1; }
    .statement-rotator { cursor: zoom-in; }

    /* ── Statement painting rotators ────────────────────── */
    .statement-rotator-wrap {
      overflow: hidden;
      margin-bottom: 0;
    }

    .statement-rotator {
      float: right;
      width: 190px;
      margin: 0.2rem 0 0.3rem 1.8rem;
      position: relative;
    }

    .statement-rotator.left {
      float: left;
      margin: 0.2rem 1.8rem 0.3rem 0;
    }

    /* Fixed height + cover crop keeps all panels same size
       regardless of portrait vs landscape orientation */
    .statement-rotator .rotator-front {
      width: 100%;
      height: 190px;
      object-fit: cover;
      object-position: center top;
      border-radius: 4px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.24);
      display: block;
      position: relative;
      z-index: 1;
      transition: opacity 1.2s ease-in-out;
    }

    .statement-rotator .rotator-back {
      position: absolute;
      top: 0; left: 0;
      width: 100%;
      height: 190px;
      object-fit: cover;
      object-position: center top;
      border-radius: 4px;
      opacity: 0;
      z-index: 0;
      transition: opacity 1.2s ease-in-out;
    }

    .statement-rotator-cap {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-style: italic;
      color: var(--text-light); text-align: center;
      margin: 0.4rem 0 0.6rem; padding: 0;
      clear: both;
    }

    .statement-rotator-wrap { overflow: hidden; }

    /* Tighter paragraph spacing on statement page */
    #page-statement .page-body p { margin-bottom: 0.95rem; }
    #page-statement .page-body p:last-child { margin-bottom: 0; }

    /* Two-column layout for text-heavy pages */
    #page-introduction .page-body,
    #page-biography    .page-body {
      column-count: 1;
      column-gap: 4rem;
      column-rule: 1px solid var(--border);
    }

    /* Collection intro: standard padding, same as other pages */

    /* ── Collection page showcase ─────────────────────── */
    .collection-showcase {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      height: 420px;
      border-bottom: 1px solid var(--border);
    }

    .showcase-panel {
      position: relative;
      overflow: hidden;
      cursor: pointer;
      background: #1a1410;
    }

    .showcase-panel + .showcase-panel {
      border-left: 2px solid var(--bg);
    }

    .showcase-img {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      object-fit: cover; object-position: center top;
      transition: opacity 0.9s ease-in-out, transform 0.6s ease;
    }

    .showcase-panel:hover .showcase-img { transform: scale(1.05); }

    .showcase-label {
      position: absolute; bottom: 0; left: 0; right: 0; z-index: 1;
      padding: 2rem 1.4rem 1.1rem;
      background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, transparent 100%);
      transition: background 0.3s;
    }

    .showcase-panel:hover .showcase-label {
      background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 100%);
    }

    .showcase-group-name {
      font-size: 0.875rem; letter-spacing: 0.14em;
      text-transform: uppercase; color: rgba(255,255,255,0.6);
      margin-bottom: 0.3rem;
    }

    .showcase-title {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1.1rem; font-style: italic; font-weight: 400;
      color: rgba(255,255,255,0.92);
      line-height: 1.5;
    }

    .showcase-hint {
      font-size: 0.875rem; letter-spacing: 0.08em;
      color: rgba(255,255,255,0.4); margin-top: 0.25rem;
      opacity: 0; transition: opacity 0.2s;
    }

    .showcase-panel:hover .showcase-hint { opacity: 1; }

    .page-footer {
      padding: 0.6rem max(5rem, calc((100% - 46rem) / 2)) 0.8rem;
      margin-top: 1rem;
      border-top: 1px solid var(--border);
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-style: italic;
      color: var(--text-light); letter-spacing: 0.04em;
    }

    /* ── HOME ─────────────────────────────────────────── */

    /* ── Home welcome section ─────────────────────────── */
    .home-welcome {
      background: var(--bg);
      border-bottom: 1px solid var(--border);
      padding: 3.8rem 5rem 5rem;
      text-align: center;
    }

    .home-welcome-lotus {
      margin-bottom: 2.2rem;
    }

    .home-lotus-img {
      width: 110px;
      display: inline-block;
    }

    .home-welcome-title {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: clamp(2rem, 5.5vw, 3.8rem); font-weight: 300;
      letter-spacing: 0.06em; color: var(--text);
      margin-bottom: 0.7rem;
    }

    .home-welcome-sub {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1.2rem; font-style: italic; font-weight: 300;
      letter-spacing: 0.06em; color: var(--text-muted);
      margin-bottom: 2.2rem;
    }

    .home-welcome-rule {
      width: 60px; height: 1px;
      background: var(--accent);
      margin: 0 auto 2.8rem;
    }

    .home-welcome-photos {
      display: flex;
      justify-content: center;
      align-items: flex-start;
      gap: 1.8rem;
      margin: 0 auto 3rem;
      max-width: 860px;
    }

    .home-welcome-photo {
      flex: 1;
      max-width: 380px;
      text-align: center;
    }

    .home-welcome-photo img {
      width: 100%;
      height: 260px;
      object-fit: cover;
      object-position: center top;
      border-radius: 4px;
      box-shadow: 0 4px 18px rgba(0,0,0,0.22);
      display: block;
    }

    .home-welcome-photo span {
      display: block;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-style: italic;
      color: var(--text-light); margin-top: 0.5rem;
    }

    .home-welcome-body {
      max-width: none;
      margin: 0;
      text-align: left;
    }

    .home-welcome-body::after { content: ''; display: table; clear: both; }

    .home-welcome-body p {
      font-size: 1.05rem; line-height: 1.9;
      color: var(--text); margin-bottom: 1.5rem;
    }

    .home-welcome-body p:last-child { margin-bottom: 0; }

    .welcome-painting-break {
      float: right;
      width: 300px;
      margin: 0.4rem 0 1.4rem 2.2rem;
      text-align: center;
    }

    .welcome-painting-break.left {
      float: left;
      margin: 0.4rem 2.2rem 1.4rem 0;
    }

    .welcome-painting-break img {
      width: 100%;
      height: auto;
      border-radius: 4px;
      box-shadow: 0 4px 18px rgba(0,0,0,0.22);
      display: block;
    }

    .welcome-painting-break span {
      display: block;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-style: italic;
      color: var(--text-light); margin-top: 0.45rem;
    }

    .home-welcome-closing {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1.25rem !important;
      font-style: italic;
      color: var(--accent) !important;
      column-span: all;
      text-align: center;
      padding-top: 1rem;
    }

    .collections-label {
      text-align: center; padding: 3rem 2rem 1.5rem;
    }

    .collections-label span {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-weight: 500;
      letter-spacing: 0.3em; text-transform: uppercase;
      color: var(--text-light);
    }

    .collections-grid {
      display: grid; grid-template-columns: 1fr 1fr;
      gap: 1px; background: var(--border);
      margin: 0 5rem 3rem;
      border: 1px solid var(--border);
    }

    .collection-card {
      position: relative; aspect-ratio: 4 / 3;
      overflow: hidden; cursor: pointer; background: #2a1e14;
    }

    .card-fill {
      position: absolute; inset: 0;
      transition: transform 0.6s ease;
    }

    .collection-card:hover .card-fill { transform: scale(1.06); }
    .collection-card:hover .card-thumb { transform: scale(1.06); }

    .card-women .card-fill {
      background:
        radial-gradient(ellipse at 30% 60%, rgba(180,120,150,0.9) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(220,170,190,0.6) 0%, transparent 50%),
        linear-gradient(160deg, #3a1828 0%, #8a4060 50%, #c090a0 100%);
    }

    .card-iconography .card-fill {
      background:
        radial-gradient(ellipse at 50% 40%, rgba(220,190,100,0.8) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(160,80,20,0.7) 0%, transparent 50%),
        linear-gradient(160deg, #1a0c04 0%, #603010 50%, #c09040 100%);
    }

    .card-ladies .card-fill {
      background:
        radial-gradient(ellipse at 60% 50%, rgba(200,140,100,0.8) 0%, transparent 55%),
        radial-gradient(ellipse at 25% 30%, rgba(160,60,40,0.6) 0%, transparent 45%),
        linear-gradient(150deg, #1a0808 0%, #702020 50%, #c06840 100%);
    }

    .card-nature .card-fill {
      background:
        radial-gradient(ellipse at 40% 70%, rgba(220,80,30,0.85) 0%, transparent 45%),
        radial-gradient(ellipse at 70% 30%, rgba(180,50,20,0.6) 0%, transparent 40%),
        radial-gradient(ellipse at 20% 40%, rgba(60,90,50,0.8) 0%, transparent 50%),
        linear-gradient(150deg, #0a1806 0%, #304820 50%, #903010 100%);
    }

    .card-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0) 55%);
      display: flex; align-items: flex-end;
      padding: 1.5rem 1.75rem;
      transition: background 0.3s;
    }

    .collection-card:hover .card-overlay {
      background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.1) 70%);
    }

    .card-title {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1.25rem; font-weight: 400;
      letter-spacing: 0.06em; color: #fff; line-height: 1.5;
    }

    .card-cta {
      position: absolute; top: 1.1rem; right: 1.1rem;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-weight: 500;
      letter-spacing: 0.2em; text-transform: uppercase;
      color: rgba(255,255,255,0.7);
      border: 1px solid rgba(255,255,255,0.3);
      padding: 0.3rem 0.6rem;
      opacity: 0; transition: opacity 0.3s;
    }

    .collection-card:hover .card-cta { opacity: 1; }

    /* ── Women gallery ─────────────────────────────────── */

    .women-grid {
      display: grid; grid-template-columns: repeat(4, 1fr);
      gap: 1px; background: var(--border);
      margin: 0 5rem 0; border: 1px solid var(--border);
    }

    .woman-card {
      position: relative; aspect-ratio: 3 / 4;
      overflow: hidden; cursor: pointer; background: #2a1e14;
    }

    .woman-card .wc-fill {
      position: absolute; inset: 0;
      transition: transform 0.5s ease;
    }

    .woman-card:hover .wc-fill { transform: scale(1.07); }

    /* Unique gradients for each woman */
    .wc-murasaki .wc-fill { background: radial-gradient(ellipse at 40% 40%, rgba(160,100,140,0.9) 0%, transparent 60%), linear-gradient(160deg, #1e0c18 0%, #6a3050 60%, #3a1030 100%); }
    .wc-okoi .wc-fill { background: radial-gradient(ellipse at 60% 50%, rgba(200,140,80,0.9) 0%, transparent 55%), linear-gradient(150deg, #180a04 0%, #7a4010 60%, #c87030 100%); }
    .wc-niijo .wc-fill { background: radial-gradient(ellipse at 35% 45%, rgba(140,170,180,0.8) 0%, transparent 55%), linear-gradient(160deg, #04101a 0%, #205068 60%, #406880 100%); }
    .wc-rengetsu .wc-fill { background: radial-gradient(ellipse at 50% 40%, rgba(180,210,200,0.7) 0%, transparent 55%), linear-gradient(160deg, #041410 0%, #1a5040 60%, #307060 100%); }
    .wc-gotami .wc-fill { background: radial-gradient(ellipse at 45% 45%, rgba(220,190,120,0.8) 0%, transparent 55%), linear-gradient(160deg, #140c04 0%, #6a5010 60%, #c09030 100%); }
    .wc-nukada .wc-fill { background: radial-gradient(ellipse at 55% 45%, rgba(180,140,180,0.8) 0%, transparent 55%), linear-gradient(160deg, #10081a 0%, #503070 60%, #806098 100%); }
    .wc-tibetan .wc-fill { background: radial-gradient(ellipse at 40% 50%, rgba(220,80,60,0.8) 0%, transparent 50%), linear-gradient(155deg, #180404 0%, #802020 55%, #c04030 100%); }
    .wc-siam .wc-fill { background: radial-gradient(ellipse at 55% 45%, rgba(200,170,60,0.8) 0%, transparent 55%), linear-gradient(160deg, #140c04 0%, #705010 60%, #b09020 100%); }

    .woman-card .wc-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 50%);
      display: flex; align-items: flex-end;
      padding: 0.9rem 1rem;
      transition: background 0.3s;
    }

    .woman-card:hover .wc-overlay {
      background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 65%);
    }

    .wc-name {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-weight: 400;
      letter-spacing: 0.04em; color: #fff; line-height: 1.5;
    }

    /* ── Artwork detail page ───────────────────────────── */

    .artwork-intro {
      display: flex; gap: 2.5rem; align-items: flex-start;
      padding: 3rem 5rem 0;
    }

    .artwork-frame {
      flex-shrink: 0; width: 260px;
    }

    /* Thumbnail images injected into gallery cards */
    .card-thumb,
    .card-thumb-b {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      object-fit: cover; object-position: center top;
      transition: transform 0.5s ease, opacity 1.1s ease-in-out;
    }
    .card-thumb-b { opacity: 0; z-index: 0; }
    .card-thumb   { opacity: 1; z-index: 1; }
    [data-target]:hover .card-thumb,
    [data-target]:hover .card-thumb-b { transform: scale(1.07); }

    .artwork-img {
      width: 100%; display: block;
      border: 1px solid var(--border);
      box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    }

    .artwork-placeholder {
      width: 100%; aspect-ratio: 5 / 6;
      background: linear-gradient(160deg, #1e0c12 0%, #5a2838 50%, #3a1820 100%);
      border: 1px solid var(--border);
      display: flex; align-items: center; justify-content: center;
    }

    .artwork-placeholder span {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; color: rgba(255,255,255,0.3);
      letter-spacing: 0.1em; text-transform: uppercase;
    }

    .artwork-caption {
      padding-top: 0.5rem;
    }

    .artwork-caption p {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; line-height: 1.8;
      color: var(--text-muted);
    }

    .artwork-caption .caption-title {
      font-size: 1rem; font-weight: 600; font-style: italic;
      color: var(--text); margin-bottom: 0.4rem;
    }

    /* ── Poems ────────────────────────────────────────── */

    .poem-grid {
      display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
      margin-top: 2rem; padding-top: 2rem;
      border-top: 1px solid var(--border);
    }

    .poem .poem-speaker {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-weight: 600;
      letter-spacing: 0.1em; text-transform: uppercase;
      color: var(--accent); margin-bottom: 0.8rem;
    }

    .poem .poem-lines {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1.05rem; font-style: italic;
      line-height: 2; color: var(--text-muted);
    }

    /* ── Biography ─────────────────────────────────────── */

    .bio-block { margin-bottom: 3rem; }

    .bio-block h2 {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-weight: 500;
      letter-spacing: 0.28em; text-transform: uppercase;
      color: var(--accent); margin-bottom: 1.2rem;
      padding-bottom: 0.6rem; border-bottom: 1px solid var(--border);
    }

    .bio-list { list-style: none; }

    .bio-list li {
      display: flex; gap: 1rem;
      padding: 0.55rem 0; font-size: 0.97rem;
      line-height: 1.65; border-bottom: 1px solid rgba(0,0,0,0.06);
      color: var(--text);
    }

    .bio-list li:last-child { border-bottom: none; }

    .bio-year {
      flex-shrink: 0;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-weight: 600;
      letter-spacing: 0.05em; color: var(--accent);
      padding-top: 0.15em; min-width: 64px;
    }

    /* ── Biography Narrative ───────────────────────────── */

    .bio-narrative {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 2.4rem 2.8rem;
      margin-bottom: 3rem;
    }

    .bio-narrative h2 {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 2rem; font-weight: 400;
      color: var(--text); letter-spacing: 0;
      text-transform: none; border-bottom: none;
      margin-bottom: 0.3rem; padding-bottom: 0;
    }

    .bio-dates {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.9rem; font-style: italic;
      color: var(--text-light); margin: 0 0 0.25rem;
      letter-spacing: 0.04em;
    }

    .bio-byline {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-weight: 500;
      letter-spacing: 0.18em; text-transform: uppercase;
      color: var(--accent); margin: 0 0 2rem;
    }

    .bio-narrative p {
      font-size: 0.97rem; line-height: 1.85;
      color: var(--text); margin-bottom: 1.1rem;
    }

    .bio-sub {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1.35rem; font-weight: 600; font-style: italic;
      color: var(--accent-dark); margin: 2rem 0 1rem;
      padding-top: 1.5rem; border-top: 1px solid var(--border);
      clear: both;
    }

    .bio-photo-wrap {
      float: right;
      margin: 0 0 1.2rem 1.8rem;
      text-align: center;
    }
    .bio-photo-wrap.left {
      float: left;
      margin: 0 1.8rem 1.2rem 0;
    }
    .bio-photo-wrap.center {
      float: none;
      clear: both;
      margin: 1.8rem auto;
      text-align: center;
    }
    .bio-photo-wrap img {
      display: block;
      border-radius: 4px;
      box-shadow: 0 3px 14px rgba(0,0,0,0.28);
      max-width: 100%;
    }
    .bio-photo-cap {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-style: italic;
      color: var(--text-light); margin-top: 0.45rem;
    }
    .bio-narrative::after { content: ''; display: table; clear: both; }

    /* ── Forms ────────────────────────────────────────── */

    .contact-form { display: grid; gap: 1.3rem; max-width: 540px; margin-top: 0.5rem; }

    .form-field { display: flex; flex-direction: column; gap: 0.4rem; }

    .form-field label {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-weight: 500;
      letter-spacing: 0.25em; text-transform: uppercase;
      color: var(--accent);
    }

    .form-field input,
    .form-field textarea {
      font-family: Georgia, serif; font-size: 0.95rem;
      color: var(--text); background: var(--surface);
      border: 1px solid var(--border);
      padding: 0.7rem 0.9rem; outline: none;
      border-radius: 0; transition: border-color 0.2s; width: 100%;
    }

    .form-field input:focus,
    .form-field textarea:focus { border-color: var(--accent); }

    .form-field textarea { min-height: 150px; resize: vertical; }

    .btn-submit {
      display: inline-block; padding: 0.8rem 2.8rem;
      background: var(--nav-bg); color: var(--nav-text);
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-weight: 500;
      letter-spacing: 0.28em; text-transform: uppercase;
      border: none; cursor: pointer;
      transition: background 0.2s, color 0.2s; align-self: flex-start;
    }

    .btn-submit:hover { background: var(--accent); color: #fff; }

    .text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
    .text-link:hover { color: var(--accent-dark); }

    /* ── Iconography gallery (5-col) ─────────────────── */

    .iconography-grid {
      display: grid; grid-template-columns: repeat(5, 1fr);
      gap: 1px; background: var(--border);
      margin: 0 5rem 0; border: 1px solid var(--border);
    }

    .ico-card {
      position: relative; aspect-ratio: 3 / 4;
      overflow: hidden; cursor: pointer; background: #2a1e14;
    }

    .ico-card .ic-fill {
      position: absolute; inset: 0;
      transition: transform 0.5s ease;
    }

    .ico-card:hover .ic-fill { transform: scale(1.07); }

    .ic-green  .ic-fill { background: radial-gradient(ellipse at 45% 45%, rgba(80,180,100,0.9) 0%, transparent 55%), linear-gradient(160deg, #041a08 0%, #1a6028 60%, #40a050 100%); }
    .ic-black  .ic-fill { background: radial-gradient(ellipse at 50% 40%, rgba(200,160,40,0.8) 0%, transparent 50%), linear-gradient(160deg, #08080a 0%, #1a1220 55%, #a08820 100%); }
    .ic-kuan   .ic-fill { background: radial-gradient(ellipse at 45% 45%, rgba(200,180,230,0.7) 0%, transparent 55%), linear-gradient(160deg, #0a0818 0%, #2a1848 60%, #a080c0 100%); }
    .ic-kannon .ic-fill { background: radial-gradient(ellipse at 50% 45%, rgba(220,150,60,0.8) 0%, transparent 55%), linear-gradient(160deg, #180a04 0%, #804010 60%, #d08030 100%); }
    .ic-amida  .ic-fill { background: radial-gradient(ellipse at 50% 40%, rgba(240,210,80,0.8) 0%, transparent 55%), linear-gradient(160deg, #14100a 0%, #806828 60%, #e0c060 100%); }

    .ico-card .ic-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 50%);
      display: flex; align-items: flex-end;
      padding: 0.7rem 0.8rem;
      transition: background 0.3s;
    }

    .ico-card:hover .ic-overlay {
      background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 65%);
    }

    .ic-name {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-weight: 400;
      letter-spacing: 0.04em; color: #fff; line-height: 1.5;
    }

    @media (max-width: 900px) {
      .iconography-grid { grid-template-columns: repeat(3, 1fr); margin: 0 2.5rem; }
    }

    @media (max-width: 600px) {
      .iconography-grid { grid-template-columns: repeat(2, 1fr); }
    }

    /* ── Collection intro text in body ───────────────── */

    .section-intro {
      padding: 2.5rem max(5rem, calc((100% - 46rem) / 2)) 0;
    }

    .section-intro h2 {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-weight: 500;
      letter-spacing: 0.28em; text-transform: uppercase;
      color: var(--accent); margin-bottom: 1.5rem;
      padding-bottom: 0.6rem; border-bottom: 1px solid var(--border);
    }

    .section-intro p {
      font-size: 1.05rem; line-height: 1.9;
      color: var(--text); margin-bottom: 1.6rem;
    }

    /* ── Hamburger — always visible ──────────────────────── */

    .hamburger {
      display: flex; position: fixed;
      top: 0.9rem; left: 0.9rem; z-index: 200;
      background: transparent; border: none;
      width: 42px; height: 42px; cursor: pointer;
      flex-direction: column; align-items: center;
      justify-content: center; gap: 5px;
      border-radius: 4px;
      transition: background 0.2s;
    }
    .hamburger:hover { background: rgba(255,255,255,0.07); }
    .hamburger span {
      display: block; width: 20px; height: 1.5px;
      background: var(--nav-text);
      transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s;
      transform-origin: center;
    }

    /* Nav OPEN → animate to × */
    .hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

    /* Nav collapsed state — works on all screen sizes */
    body.nav-collapsed .sidebar { transform: translateX(-100%); }
    body.nav-collapsed .main    { margin-left: 0; }

    /* Hide right panel below 1100px — not enough room for 3 columns */
    @media (max-width: 1100px) {
      .right-panel { display: none; }
      .main { margin-right: 0; }
      .page.detail-page.active { right: 0; }
    }

    /* Nav COLLAPSED → restore 3 bars, dark color over light content */
    body.nav-collapsed .hamburger span:nth-child(1) { transform: none; }
    body.nav-collapsed .hamburger span:nth-child(2) { opacity: 1; transform: none; }
    body.nav-collapsed .hamburger span:nth-child(3) { transform: none; }
    body.nav-collapsed .hamburger span { background: var(--text); }
    body.nav-collapsed .hamburger:hover { background: rgba(0,0,0,0.07); }

    /* Bio narrative should span both columns so floated photos inside it don't break */
    .bio-narrative { column-span: all; }

    /* Mobile overlay (darkens content when nav is open on small screens) */
    .nav-overlay {
      display: none; position: fixed; inset: 0;
      background: rgba(0,0,0,0.52); z-index: 90;
      cursor: pointer;
    }
    @media (max-width: 768px) {
      body:not(.nav-collapsed) .nav-overlay { display: block; }
    }

    @media (max-width: 900px) {
      :root { --nav-w: 220px; }
      .collection-showcase { grid-template-columns: repeat(2, 1fr); height: 560px; }
      .women-grid { grid-template-columns: repeat(2, 1fr); margin: 0 2.5rem; }
      .collections-grid { margin: 0 2.5rem 3rem; }
      .artwork-intro { flex-direction: column; padding: 2rem 1.5rem 0; }
      .artwork-frame { width: 100%; max-width: 300px; }
      .section-intro { padding: 2rem 2rem 0; }
    }

    @media (max-width: 768px) {
      /* ── Layout ─────────────────── */
      .page-header { padding: 5rem 1.4rem 2.5rem; }
      /* h1 scales via clamp() */
      .page-body { padding: 2rem 1.4rem; }
      .page-footer { padding: 0.6rem 1.4rem 0.8rem; margin-top: 1rem; }
      .section-intro { padding: 2rem 1.4rem 0; }

      /* ── Home welcome ─────────────── */
      .home-welcome { padding: 3.5rem 1.4rem 3rem; }
      .home-welcome-sub   { font-size: 1rem; }
      .home-welcome-photos {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
      }
      .home-welcome-photo { flex: 0 1 46%; max-width: 46%; }
      .home-welcome-photo img { height: 170px; }
      .welcome-painting-break,
      .welcome-painting-break.left {
        float: none;
        width: 100%;
        max-width: 320px;
        margin: 0.8rem auto 1.4rem;
      }

      /* ── Collections & showcase ────── */
      .collection-showcase {
        grid-template-columns: 1fr;
        height: auto;
      }
      .showcase-panel {
        height: 180px;
        border-left: none !important;
        border-top: 2px solid var(--bg);
      }
      .showcase-panel:first-child { border-top: none; }
      .collections-grid { grid-template-columns: 1fr; margin: 0 0 2rem; }

      /* ── Column layouts → single col ─ */
      #page-introduction .page-body,
      #page-statement    .page-body,
      #page-biography    .page-body { column-count: 1; }
      .poem-grid { grid-template-columns: 1fr; }

      /* ── Women & iconography grids ─── */
      .women-grid { grid-template-columns: repeat(2, 1fr); margin: 0; }
      .iconography-grid { margin: 0; }
      .collections-grid { margin: 0 0 2rem; }

      /* ── Statement rotators ─────────── */
      .statement-rotator,
      .statement-rotator.left {
        float: none;
        width: 100%;
        max-width: 260px;
        margin: 0 auto 0.6rem;
        display: block;
      }
      .statement-rotator .rotator-front,
      .statement-rotator .rotator-back { height: 210px; }
      .statement-rotator-cap { text-align: center; }

      /* ── Biography photo floats ─────── */
      .bio-photo-wrap,
      .bio-photo-wrap.left,
      .bio-photo-wrap.center {
        float: none !important;
        width: auto !important;
        max-width: 100% !important;
        margin: 1rem auto !important;
        display: block;
      }
      .bio-photo-wrap img {
        max-width: min(100%, 280px);
        width: auto !important;
        height: auto !important;
        margin: 0 auto;
      }
      .bio-narrative { padding: 1.6rem 1.2rem; }
      .bio-sub { font-size: 1.15rem; }

      /* ── Contact form ─────────────── */
      .contact-form { max-width: 100%; }

      /* ── Artwork detail ─────────────── */
      .artwork-intro { padding: 1.5rem 1.4rem 0; }
    }

    @media (max-width: 480px) {
      /* ── Home ──────────────────────── */
      .home-welcome-photos { gap: 0.8rem; }

      /* ── Page titles: handled by clamp() ─── */
      .page-kicker { letter-spacing: 0.18em; }

      /* ── Grids ───────────────────── */
      .women-grid { grid-template-columns: 1fr; }
      .iconography-grid { grid-template-columns: 1fr; }

      /* ── Bio nav ─────────────────── */
      .bio-list li { flex-direction: column; gap: 0.25rem; }
      .bio-year { min-width: unset; }

      /* ── Statement rotator: taller on small screens ── */
      .statement-rotator { max-width: 220px; }
      .statement-rotator .rotator-front,
      .statement-rotator .rotator-back { height: 180px; }
    }

    /* ══ RESPONSIVE POLISH ════════════════════════════════ */

    /* ── Drop 2-col text to single col at 1024px (too narrow on laptops/tablets) ── */
    @media (max-width: 1024px) {
      #page-introduction .page-body,
      #page-biography    .page-body {
        column-count: 1;
      }
      /* Only apply 4rem padding on screens wider than 768px to avoid overriding mobile rules */
    }
    @media (min-width: 769px) and (max-width: 1024px) {
      .page-header  { padding: 4rem 4rem 3rem; }
      .page-body    { padding: 3rem 4rem; }
      .page-footer  { padding: 0.6rem 4rem 0.8rem; margin-top: 1rem; }
      .section-intro { padding: 2rem 4rem 0; }
      .women-grid    { margin: 0 4rem; }
      .iconography-grid { margin: 0 4rem; }
      .collections-grid { margin: 0 4rem 3rem; }
    }

    /* ── Scroll margin so section headers clear the hamburger on all small screens ── */
    @media (max-width: 1024px) {
      .page.main-section { scroll-margin-top: 56px; }
    }

    /* ── Tablet home photos: keep all 3 in one row ── */
    @media (max-width: 900px) {
      .home-welcome-photos { gap: 0.8rem; }
      .home-welcome-photo  { flex: 0 1 30%; max-width: 30%; }
      .home-welcome-photo img { height: 150px; }
    }

    /* ── Mobile: horizontal-scroll strip for the 3 Bakasan photos ── */
    @media (max-width: 600px) {
      /* Constrain the welcome section so photos don't expand .main */
      .home-welcome {
        overflow: hidden;
      }
      .home-welcome-photos {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 0.6rem;
        padding-bottom: 0.4rem;
        width: 100%;
        scrollbar-width: none;
      }
      .home-welcome-photos::-webkit-scrollbar { display: none; }
      .home-welcome-photo {
        flex: 0 0 58%;
        max-width: 58%;
        scroll-snap-align: start;
      }
      .home-welcome-photo img { height: 175px; }
    }

    /* ── Prevent horizontal overflow on all screens ── */
    html, body { overflow-x: hidden; }

    /* ── Larger hamburger tap area on mobile ── */
    @media (max-width: 768px) {
      .hamburger {
        width: 48px;
        height: 48px;
        top: 0.75rem;
        left: 0.75rem;
      }
    }

    /* ══ CONVERSATION SYSTEM (Firebase) ══════════════════ */
    .conv-section {
      border-top: 1px solid var(--border);
      padding: 2.5rem 5rem 3rem;
    }
    @media (min-width: 769px) and (max-width: 1024px) { .conv-section { padding: 2rem 4rem; } }
    @media (max-width: 768px) { .conv-section { padding: 1.8rem 1.4rem; } }
    .conv-title {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1.4rem; font-weight: 500;
      color: var(--text); margin-bottom: 1.2rem; letter-spacing: 0.02em;
    }
    /* auth bar */
    .conv-auth-bar {
      display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
      margin-bottom: 1.2rem; padding: 0.7rem 1rem;
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 6px; font-size: 0.88rem;
    }
    .conv-username { font-weight: 600; color: var(--accent); }
    .conv-spacer { margin-left: auto; }
    .conv-avatar-sm {
      width: 28px; height: 28px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.875rem; font-weight: 600; color: #fff; flex-shrink: 0;
    }
    .conv-auth-btn {
      background: none; border: 1px solid var(--border); cursor: pointer;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; letter-spacing: 0.14em; text-transform: uppercase;
      color: var(--accent); padding: 0.3rem 0.8rem; border-radius: 50px;
      transition: background 0.2s, color 0.2s;
    }
    .conv-auth-btn:hover { background: var(--accent); color: #fff; }
    .conv-auth-btn.primary { background: var(--nav-bg); color: var(--nav-text); border-color: transparent; }
    .conv-auth-btn.primary:hover { background: var(--accent); }
    /* compose */
    .conv-compose { display: flex; gap: 0.8rem; margin-bottom: 1.5rem; align-items: flex-start; }
    .conv-compose-avatar {
      width: 40px; height: 40px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.875rem; font-weight: 600; color: #fff; flex-shrink: 0; margin-top: 2px;
    }
    .conv-compose-right { flex: 1; }
    .conv-compose-input {
      width: 100%; min-height: 78px; resize: vertical;
      font-family: Georgia, serif; font-size: 0.97rem;
      color: var(--text); background: var(--surface);
      border: 1px solid var(--border); border-radius: 6px;
      padding: 0.7rem 0.9rem; outline: none; transition: border-color 0.2s;
    }
    .conv-compose-input:focus { border-color: var(--accent); }
    .conv-compose-footer { display: flex; justify-content: flex-end; margin-top: 0.5rem; }
    .conv-post-btn {
      background: var(--nav-bg); color: var(--nav-text); border: none;
      cursor: pointer; padding: 0.5rem 1.5rem; border-radius: 50px;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
      transition: background 0.2s;
    }
    .conv-post-btn:hover { background: var(--accent); }
    .conv-post-btn:disabled { opacity: 0.5; cursor: not-allowed; }
    /* posts */
    .conv-posts { display: flex; flex-direction: column; }
    .conv-post {
      display: flex; gap: 0.8rem; padding: 1rem 0;
      border-bottom: 1px solid var(--border);
    }
    .conv-post:last-child { border-bottom: none; }
    .conv-post-avatar {
      width: 42px; height: 42px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.875rem; font-weight: 600; color: #fff; flex-shrink: 0; margin-top: 1px;
    }
    .conv-post-main { flex: 1; min-width: 0; }
    .conv-post-header {
      display: flex; align-items: baseline; gap: 0.5rem;
      margin-bottom: 0.3rem; flex-wrap: wrap;
    }
    .conv-post-name { font-weight: 600; font-size: 0.93rem; color: var(--text); }
    .conv-post-time { font-size: 0.875rem; color: var(--text-light); }
    .conv-post-text {
      font-size: 1rem; line-height: 1.65; color: var(--text);
      word-break: break-word; margin-bottom: 0.55rem;
    }
    /* actions row */
    .conv-actions { display: flex; gap: 0.1rem; align-items: center; flex-wrap: wrap; }
    .conv-action {
      display: flex; align-items: center; justify-content: center; gap: 0.28rem;
      background: none; border: none; cursor: pointer;
      font-size: 0.875rem; color: var(--text-muted);
      padding: 0.28rem 0.5rem; border-radius: 50px;
      min-width: 44px; min-height: 34px;
      transition: background 0.15s, color 0.15s;
    }
    .conv-action:hover { background: rgba(139,109,63,0.08); color: var(--accent); }
    .conv-action.active { color: var(--accent); }
    .conv-action.like.active { color: #e0245e; }
    .conv-action.repost.active { color: #17bf63; }
    .conv-action svg { width: 16px; height: 16px; flex-shrink: 0; }
    .conv-action-count { font-size: 0.875rem; }
    /* reply compose inline */
    .conv-reply-compose {
      margin-top: 0.6rem; padding: 0.7rem;
      background: var(--surface); border-radius: 6px; border: 1px solid var(--border);
    }
    .conv-reply-input {
      width: 100%; min-height: 58px; resize: none;
      font-family: Georgia, serif; font-size: 0.92rem;
      color: var(--text); background: transparent; border: none; outline: none; margin-bottom: 0.4rem;
    }
    .conv-reply-actions { display: flex; justify-content: flex-end; }
    /* replies indent */
    .conv-replies {
      margin-top: 0.4rem; margin-left: 1rem;
      padding-left: 0.9rem; border-left: 2px solid var(--border);
    }
    .conv-reply-post { display: flex; gap: 0.6rem; padding: 0.65rem 0; border-bottom: 1px solid rgba(0,0,0,0.04); }
    .conv-reply-post:last-child { border-bottom: none; }
    .conv-reply-avatar {
      width: 30px; height: 30px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.875rem; font-weight: 600; color: #fff; flex-shrink: 0;
    }
    .conv-reply-main { flex: 1; min-width: 0; }
    .conv-reply-header { display: flex; gap: 0.5rem; align-items: baseline; margin-bottom: 0.18rem; flex-wrap: wrap; }
    .conv-reply-text { font-size: 0.92rem; line-height: 1.58; color: var(--text); word-break: break-word; }
    /* delete btn */
    .conv-delete-btn {
      background: none; border: none; cursor: pointer; margin-left: auto;
      color: var(--text-light); padding: 0.15rem 0.35rem; border-radius: 3px;
      transition: color 0.15s, background 0.15s; display: flex; align-items: center;
    }
    .conv-delete-btn:hover { color: #c0392b; background: rgba(192,57,43,0.08); }
    /* auth modal */
    .conv-modal-overlay {
      position: fixed; inset: 0; background: rgba(0,0,0,0.6);
      display: flex; align-items: center; justify-content: center;
      z-index: 9500; opacity: 0; pointer-events: none; transition: opacity 0.2s;
    }
    .conv-modal-overlay.open { opacity: 1; pointer-events: all; }
    .conv-modal {
      background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
      padding: 2.2rem 2.5rem; width: 100%; max-width: 420px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.25); position: relative;
    }
    @media (max-width: 480px) { .conv-modal { padding: 1.6rem 1.4rem; margin: 0 1rem; } }
    .conv-modal h2 {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1.7rem; font-weight: 400; color: var(--text); margin-bottom: 1.2rem;
    }
    .conv-modal-close {
      position: absolute; top: 1rem; right: 1.2rem;
      background: none; border: none; font-size: 1.5rem;
      cursor: pointer; color: var(--text-muted); line-height: 1.5;
    }
    .conv-modal-tabs {
      display: flex; border-bottom: 1px solid var(--border); margin-bottom: 1.4rem;
    }
    .conv-modal-tab {
      background: none; border: none; cursor: pointer;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; letter-spacing: 0.15em; text-transform: uppercase;
      padding: 0.55rem 1rem; color: var(--text-light);
      border-bottom: 2px solid transparent; margin-bottom: -1px;
      transition: color 0.2s, border-color 0.2s;
    }
    .conv-modal-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
    .conv-modal-field { display: flex; flex-direction: column; gap: 0.32rem; margin-bottom: 0.95rem; }
    .conv-modal-field label {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-weight: 500;
      letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent);
    }
    .conv-modal-field input {
      font-family: Georgia, serif; font-size: 0.95rem;
      color: var(--text); background: var(--bg);
      border: 1px solid var(--border); padding: 0.58rem 0.8rem;
      outline: none; border-radius: 4px; transition: border-color 0.2s;
    }
    .conv-modal-field input:focus { border-color: var(--accent); }
    .conv-modal-submit {
      width: 100%; padding: 0.75rem; border: none; cursor: pointer; border-radius: 50px;
      background: var(--nav-bg); color: var(--nav-text);
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
      transition: background 0.2s; margin-bottom: 0.75rem;
    }
    .conv-modal-submit:hover { background: var(--accent); }
    .conv-modal-divider {
      text-align: center; font-size: 0.875rem; color: var(--text-light);
      margin: 0.7rem 0; position: relative;
    }
    .conv-modal-divider::before, .conv-modal-divider::after {
      content: ''; position: absolute; top: 50%;
      width: calc(50% - 1.5rem); height: 1px; background: var(--border);
    }
    .conv-modal-divider::before { left: 0; }
    .conv-modal-divider::after { right: 0; }
    .conv-google-btn {
      width: 100%; padding: 0.65rem; background: #fff;
      border: 1px solid var(--border); cursor: pointer; border-radius: 50px;
      font-size: 0.88rem; font-weight: 500; color: #333;
      display: flex; align-items: center; justify-content: center; gap: 0.6rem;
      transition: background 0.2s;
    }
    .conv-google-btn:hover { background: #f5f5f5; }
    .conv-modal-err {
      font-size: 0.875rem; color: #c0392b; margin-bottom: 0.7rem; display: none;
    }
    .conv-modal-err.show { display: block; }
    .conv-modal-err.ok { color: #2e7d32; }
    .pw-field-wrap { position: relative; }
    .pw-field-wrap input { width: 100%; padding-right: 2.6rem; }
    .pw-toggle {
      position: absolute; right: 0.6rem; top: 50%;
      transform: translateY(-50%);
      background: none; border: none; cursor: pointer;
      color: var(--text-light); padding: 0.3rem;
      display: flex; align-items: center;
      min-width: 32px; min-height: 32px; justify-content: center;
    }
    .pw-toggle:hover { color: var(--accent); }
    .conv-modal-forgot {
      display: block; background: none; border: none; cursor: pointer;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 0.875rem; font-style: italic;
      color: var(--accent); padding: 0.5rem 0 0;
      margin: 0 auto; text-decoration: underline;
    }
    .conv-modal-forgot:hover { color: var(--text); }
    /* empty / loading */
    .conv-empty {
      text-align: center; padding: 2rem 1rem;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1rem; font-style: italic; color: var(--text-light);
    }
    .conv-loading { text-align: center; padding: 1.5rem; color: var(--text-light); font-size: 0.875rem; }
    /* old placeholder — keep selector for any stale injected sections */
    .comment-section-title {
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1.35rem;
      font-weight: 500;
      color: var(--text);
      margin-bottom: 1.2rem;
      letter-spacing: 0.02em;
    }
    .auth-bar {
      display: flex;
      align-items: center;
      gap: 0.8rem;
      flex-wrap: wrap;
      margin-bottom: 1.2rem;
      padding: 0.7rem 1rem;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 4px;
      font-size: 0.88rem;
    }
    .auth-bar .auth-username { font-weight: 600; color: var(--accent); }
    .auth-bar-spacer { margin-left: auto; }

    /* Auth overlay / modal */
    .auth-overlay {
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.55);
      display: flex; align-items: center; justify-content: center;
      z-index: 500; opacity: 0; pointer-events: none;
      transition: opacity 0.2s;
    }
    .auth-overlay.open { opacity: 1; pointer-events: all; }
    .auth-modal {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 2rem;
      width: min(400px, 92vw);
      box-shadow: 0 12px 48px rgba(0,0,0,0.3);
    }
    .auth-tabs {
      display: flex;
      border-bottom: 1px solid var(--border);
      margin-bottom: 1.4rem;
    }
    .auth-tab {
      flex: 1; padding: 0.5rem 0;
      background: none; border: none;
      border-bottom: 2px solid transparent;
      margin-bottom: -1px;
      cursor: pointer;
      font-family: 'Cormorant Garamond', Georgia, serif;
      font-size: 1rem; color: var(--text-muted);
      transition: color 0.15s, border-color 0.15s;
    }
    .auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
    .auth-field { margin-bottom: 0.9rem; }
    .auth-field label {
      display: block; font-size: 0.875rem;
      color: var(--text-muted); margin-bottom: 0.3rem;
      letter-spacing: 0.06em; text-transform: uppercase;
    }
    .auth-field input {
      width: 100%; padding: 0.55rem 0.75rem;
      border: 1px solid var(--border); border-radius: 4px;
      background: var(--bg); color: var(--text); font-size: 0.93rem;
      font-family: Georgia, serif;
    }
    .auth-field input:focus { outline: none; border-color: var(--accent); }
    .auth-error {
      display: none; color: #a03030; font-size: 0.875rem;
      margin: -0.4rem 0 0.7rem;
    }
    .auth-error.show { display: block; }
    .auth-modal-actions {
      display: flex; gap: 0.7rem; justify-content: flex-end; margin-top: 1.1rem;
    }
    .btn-auth-submit {
      background: var(--accent); color: #fff;
      border: none; padding: 0.55rem 1.3rem;
      border-radius: 4px; cursor: pointer;
      font-size: 0.88rem; font-family: inherit;
    }
    .btn-auth-submit:hover { background: var(--accent-dark); }
    .btn-auth-cancel {
      background: none; border: 1px solid var(--border);
      padding: 0.55rem 1rem; border-radius: 4px;
      cursor: pointer; font-size: 0.88rem; color: var(--text-muted);
      font-family: inherit;
    }

    /* New comment form */
    .comment-new-form { margin-bottom: 2rem; }
    .comment-new-form textarea,
    .reply-form textarea {
      width: 100%; padding: 0.65rem 0.85rem;
      border: 1px solid var(--border); border-radius: 4px;
      background: var(--surface); color: var(--text);
      font-family: Georgia, serif; font-size: 0.93rem;
      resize: vertical; min-height: 72px;
    }
    .comment-new-form textarea:focus,
    .reply-form textarea:focus { outline: none; border-color: var(--accent); }
    .btn-post-comment {
      margin-top: 0.5rem;
      background: var(--accent); color: #fff;
      border: none; padding: 0.48rem 1.1rem;
      border-radius: 4px; cursor: pointer;
      font-size: 0.875rem; font-family: inherit;
    }
    .btn-post-comment:hover { background: var(--accent-dark); }

    /* Comment list */
    .comments-list { display: flex; flex-direction: column; gap: 1rem; }
    .comment-item {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 5px;
      padding: 0.9rem 1.1rem;
    }
    .comment-item.is-reply {
      background: var(--bg);
      border-left: 3px solid var(--accent);
      margin-left: 1.4rem;
      border-radius: 0 5px 5px 0;
    }
    .comment-meta {
      display: flex; align-items: baseline; gap: 0.6rem;
      margin-bottom: 0.45rem; font-size: 0.875rem;
    }
    .comment-author { font-weight: 600; color: var(--accent); }
    .comment-time { color: var(--text-light); }
    .comment-text {
      font-size: 0.93rem; line-height: 1.65;
      color: var(--text); white-space: pre-wrap;
    }
    .comment-actions { display: flex; gap: 0.9rem; margin-top: 0.5rem; }
    .btn-cmt {
      background: none; border: none; cursor: pointer;
      font-size: 0.875rem; color: var(--text-light);
      padding: 0; font-family: inherit;
      transition: color 0.15s;
    }
    .btn-cmt:hover { color: var(--accent); }
    .reply-form { margin-top: 0.7rem; display: none; }
    .reply-form.open { display: block; }
    .reply-form-actions { display: flex; gap: 0.5rem; margin-top: 0.4rem; }
    .btn-reply-submit {
      background: var(--accent); color: #fff;
      border: none; padding: 0.32rem 0.85rem;
      border-radius: 4px; cursor: pointer;
      font-size: 0.875rem; font-family: inherit;
    }
    .btn-reply-cancel {
      background: none; border: 1px solid var(--border);
      padding: 0.32rem 0.7rem; border-radius: 4px;
      cursor: pointer; font-size: 0.875rem;
      color: var(--text-muted); font-family: inherit;
    }
    .replies-list { margin-top: 0.8rem; display: flex; flex-direction: column; gap: 0.6rem; }
    .no-comments {
      text-align: center; color: var(--text-light);
      font-style: italic; padding: 1.5rem 0; font-size: 0.9rem;
    }
