﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

:root {
  --font-display: 'Outfit', -apple-system, system-ui, sans-serif;
  --font-body: 'Outfit', -apple-system, system-ui, sans-serif;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* Nameday Explorer styles (scoped) */
body.explorer-body {
            --bg: #faf9f79e;
            --surface: #ffffff;
            --surface-alt: #f5f4f2;
            --border: #e8e6e3;
            --border-focus: #c9c5be;

            --ink: #1a1816e8;
            --ink-muted: #6b6560;
            --ink-faint: #a09a94;

            --accent: #1a1816e8;
            --accent-soft: rgba(139, 111, 71, 0.08);
            --accent-hover: #4c5b40de;

            --favorite: #e53935;

            --male: #4a6fa5;
            --male-bg: #f0f4f9;
            --male-border: #d4e0ed;

            --female: #a5647a;
            --female-bg: #f9f0f4;
            --female-border: #edd4de;

            --radius: 4px;
            --radius-lg: 8px;

            --shadow-sm: 0 1px 2px rgba(26, 24, 22, 0.04);
            --shadow: 0 4px 12px rgba(26, 24, 22, 0.06);
        }

        .explorer *, .explorer *::before, .explorer *::after { box-sizing: border-box; }

        body.explorer-body {
            margin: 0;
            font-family: var(--font-body);
            background: var(--bg);
            color: var(--ink);
            line-height: 1.5;
            -webkit-font-smoothing: antialiased;
        }

        .explorer .container {
            max-width: 1080px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* Header */
        .explorer .hero {
            padding: 20px 0 30px;
            border-bottom: 1px solid var(--border);
        }

        .explorer .header-content {
            display: grid;
        }

        .explorer .

        /* About page */
        .about-page .hero {
            padding: 28px 0 18px;
            border-bottom: 1px solid var(--border);
        }

        .about-page .header-lead {
            margin: 6px 0 0;
            font-size: 0.98rem;
            color: var(--ink-muted);
            max-width: 640px;
            line-height: 1.5;
        }

        .about-section {
            margin: 24px 0 40px;
            display: grid;
            gap: 14px;
        }

        .about-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 14px;
        }

        .about-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 18px 20px;
            box-shadow: var(--shadow-sm);
        }

        .about-card-title {
            font-size: 1rem;
            font-weight: 600;
            margin: 0 0 8px;
            color: var(--ink);
        }

        .about-list {
            margin: 0;
            padding-left: 18px;
            color: var(--ink);
            line-height: 1.6;
            font-size: 0.95rem;
        }

        .about-text {
            margin: 0 0 10px;
            font-size: 0.95rem;
            color: var(--ink);
            line-height: 1.6;
        }

        .about-card .pill-btn {
            margin-top: 6px;
        }

        .about-rich {
            display: grid;
            gap: 16px;
            margin: 10px 0 48px;
        }

        .about-block {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 18px 20px;
            box-shadow: var(--shadow-sm);
        }

        .about-block h2,
        .about-block h3 {
            margin: 0 0 10px;
            color: var(--ink);
            font-weight: 700;
            letter-spacing: -0.01em;
        }

        .about-block h2 { font-size: 1.15rem; }
        .about-block h3 { font-size: 1.05rem; }

        .about-block p {
            margin: 0 0 10px;
            color: var(--ink);
            line-height: 1.6;
            font-weight: 300;
        }

        .about-block ul {
            margin: 0 0 10px 18px;
            color: var(--ink);
            line-height: 1.6;
            padding-left: 0;
        }

        .about-block li + li { margin-top: 4px; }

        .about-faq {
            margin: 0;
            display: grid;
            gap: 10px;
        }

        .about-faq dt {
            font-weight: 600;
            color: var(--ink);
        }

        .about-faq dd {
            margin: 2px 0 8px 0;
            color: var(--ink);
            line-height: 1.55;
        }

        .about-block .cta-list {
            font-weight: 600;
        }

        .explorer .group-participants {
            display: flex;
            align-items: center;
            gap: 10px;
            padding-top: 16px;
        }

        .explorer .group-participants-label {
            font-size: 0.83rem;
            color: var(--ink-muted);
            letter-spacing: 0.03em;
            text-transform: uppercase;
            font-weight: 500;
        }

        .explorer .group-participants-avatars {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
        }

        .explorer .participant-avatar {
            position: relative;
            width: 30px;
            height: 30px;
            border-radius: 5px;
            background: linear-gradient(135deg, #f5f4f2, #e8e6e3);
            color: var(--ink);
            font-weight: 700;
            font-size: 0.8rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--border);
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        }

        .explorer .participant-avatar.owner {
            background: var(--ink);
            color: var(--surface);
            border-color: var(--ink);
        }

        .explorer .participant-avatar.more {
            background: var(--surface-alt);
            color: var(--ink-muted);
            border-style: dashed;
        }

        .explorer .participant-avatar[data-tooltip]::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: -6px;
            left: 50%;
            transform: translate(-50%, 100%);
            background: #111827;
            color: #f9fafb;
            padding: 6px 9px;
            border-radius: 6px;
            font-size: 0.75rem;
            line-height: 1.35;
            white-space: nowrap;
            box-shadow: 0 8px 20px rgba(0,0,0,0.18);
            opacity: 0;
            pointer-events: none;
            transition: opacity 120ms ease;
            z-index: 20;
        }

        .explorer .participant-avatar[data-tooltip]::before {
            content: "";
            position: absolute;
            bottom: -6px;
            left: 50%;
            transform: translate(-50%, 100%);
            border: 6px solid transparent;
            border-top-color: #111827;
            opacity: 0;
            transition: opacity 120ms ease;
            z-index: 20;
        }

        .explorer .participant-avatar[data-tooltip]:hover::after,
        .explorer .participant-avatar[data-tooltip]:hover::before {
            opacity: 1;
        }

        /* Base auth links (hero section fallback) */
        .explorer .hero .auth-links {
            margin-top: 40px;
            display: flex;
            align-items: center;
            gap: 20px;
            justify-content: end;
            flex-shrink: 0;
        }

        .explorer .hero .auth-link {
            font-size: 0.875rem;
            font-weight: 400;
            color: var(--ink-muted);
            text-decoration: none;
            transition: color 0.15s ease;
            position: relative;
        }

        .explorer .hero .auth-link::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 1px;
            background: var(--ink);
            transition: width 0.2s ease;
        }

        .explorer .hero .auth-link:hover {
            color: var(--ink);
        }

        .explorer .hero .auth-link:hover::after {
            width: 100%;
        }

        .explorer .hero .auth-link.primary {
            color: var(--ink);
            font-weight: 500;
        }

        .explorer .hero .auth-link.primary::after {
            width: 100%;
            background: var(--ink);
        }

        .explorer .back-link {
            display: inline-block;
            margin-bottom: 16px;
            color: var(--ink-muted);
            text-decoration: none;
            font-weight: 400;
        }

        .explorer .back-link:hover {
            color: var(--ink);
        }

        .explorer .hero .auth-user {
            font-size: 0.875rem;
            color: var(--ink);
            font-weight: 600;
        }

        .explorer .hero .auth-logout {
            font-size: 0.875rem;
            font-weight: 400;
            color: var(--ink-muted);
            background: transparent;
            border: none;
            padding: 0;
            cursor: pointer;
            font-family: var(--font-body);
            transition: color 0.15s ease;
            position: relative;
        }

        .explorer .hero .auth-logout::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 1px;
            background: var(--ink);
            transition: width 0.2s ease;
        }

        .explorer .hero .auth-logout:hover {
            color: var(--ink);
        }

        .explorer .hero .auth-logout:hover::after {
            width: 100%;
        }

        .explorer .title {
            font-family: var(--font-display);
            font-size: clamp(2.25rem, 5vw, 3.5rem);
            font-weight: 400;
            letter-spacing: -0.03em;
            margin: 0 0 8px;
            color: var(--ink);
        }

        .explorer .subtitle {
            font-size: 1rem;
            color: var(--ink-muted);
            margin-left: 3px;
            max-width: 480px;
        }

        /* Filters */
        .explorer .filters {
            padding: 32px 0;
            display: flex;
            flex-direction: column;
            gap: 24px;
            margin-left: 20px;
        }

        .explorer .filter-row {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            gap: 32px;
        }

        .explorer .filter-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .explorer .filter-actions {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 12px;
            padding: 16px 0 8px;
            margin-top: 8px;
            border-top: 1px solid var(--border);
        }

        .explorer .filter-label {
            font-size: 0.7rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--ink-muted);
        }

        /* Chips */
        .explorer .chips {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .explorer .chip {
            padding: 6px 12px;
            font-size: 0.875rem;
            font-family: var(--font-body);
            color: var(--ink-muted);
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .explorer .chip:hover {
            border-color: var(--border-focus);
            background: var(--surface-alt);
        }

        .explorer .chip.active {
            background: var(--ink);
            color: var(--surface);
            border-color: var(--ink);
        }

        .explorer .chip.letter {
            min-width: 36px;
            text-align: center;
            padding: 6px 8px;
        }

        /* Search input */
        .explorer .search-wrap {
            position: relative;
            width: 280px;
        }

        .explorer .search-input {
            width: 100%;
            padding: 8px 14px 8px 38px;
            font-size: 0.8rem;
            font-family: var(--font-body);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: var(--surface);
            color: var(--ink);
            transition: border-color 0.15s ease, box-shadow 0.15s ease;
        }

        .explorer .search-input::placeholder {
            color: var(--ink-faint);
        }

        .explorer .search-input:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-soft);
        }

        .explorer .search-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            width: 18px;
            height: 18px;
            color: var(--ink-faint);
            pointer-events: none;
        }

        /* Alphabet row */
        .explorer .alphabet-row {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
        }

        /* Toggle */
        .explorer .toggle-group {
            display: flex;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            overflow: hidden;
        }

        .explorer .toggle-btn {
            padding: 8px 16px;
            font-size: 0.8rem;
            font-weight: 400;
            font-family: var(--font-body);
            color: var(--ink-muted);
            background: transparent;
            border: none;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .explorer .toggle-btn:not(:last-child) {
            border-right: 1px solid var(--border);
        }

        .explorer .toggle-btn:hover {
            background: var(--surface-alt);
        }

        .explorer .toggle-btn.active {
            background: var(--ink);
            color: var(--surface);
        }

        /* Grid tabs */
        .explorer .grid-tabs {
            display: flex;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            overflow: hidden;
            margin-top: 20px;
            width: fit-content;
        }

        .explorer .grid-tab {
            padding: 8px 16px;
            font-size: 0.8rem;
            font-weight: 400;
            font-family: var(--font-body);
            color: var(--ink-muted);
            background: transparent;
            border: none;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .explorer .grid-tab:not(:last-child) {
            border-right: 1px solid var(--border);
        }

        .explorer .grid-tab:hover {
            background: var(--surface-alt);
        }

        .explorer .grid-tab.active {
            background: var(--ink);
            color: var(--surface);
        }

        .explorer .tab-count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 20px;
            height: 18px;
            padding: 0 6px;
            margin-left: 6px;
            font-size: 0.6875rem;
            font-weight: 600;
            background: rgba(0, 0, 0, 0.08);
            color: var(--ink-muted);
            border-radius: 9px;
        }

        .explorer .grid-tab:hover .tab-count {
            background: rgba(0, 0, 0, 0.12);
        }

        /* Empty state panel for unauthenticated users */
        .explorer .empty-state-panel {
            margin: 32px 0 80px;
            padding: 56px 32px 64px;
            background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .explorer .empty-state-decor {
            margin-bottom: 28px;
            position: relative;
        }

        .explorer .mosaic-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 4px;
            opacity: 0.6;
        }

        .explorer .mosaic-grid span {
            width: 28px;
            height: 28px;
            background: var(--ink);
            border-radius: 3px;
            animation: mosaicFade 3s ease-in-out infinite;
        }

        .explorer .mosaic-grid span:nth-child(1) { animation-delay: 0s; }
        .explorer .mosaic-grid span:nth-child(2) { animation-delay: 0.15s; }
        .explorer .mosaic-grid span:nth-child(3) { animation-delay: 0.3s; }
        .explorer .mosaic-grid span:nth-child(4) { animation-delay: 0.45s; }
        .explorer .mosaic-grid span:nth-child(5) { animation-delay: 0.6s; }
        .explorer .mosaic-grid span:nth-child(6) { animation-delay: 0.1s; }
        .explorer .mosaic-grid span:nth-child(7) { animation-delay: 0.25s; }
        .explorer .mosaic-grid span:nth-child(8) { animation-delay: 0.4s; }
        .explorer .mosaic-grid span:nth-child(9) { animation-delay: 0.55s; }
        .explorer .mosaic-grid span:nth-child(10) { animation-delay: 0.7s; }
        .explorer .mosaic-grid span:nth-child(11) { animation-delay: 0.2s; }
        .explorer .mosaic-grid span:nth-child(12) { animation-delay: 0.35s; }
        .explorer .mosaic-grid span:nth-child(13) { animation-delay: 0.5s; }
        .explorer .mosaic-grid span:nth-child(14) { animation-delay: 0.65s; }
        .explorer .mosaic-grid span:nth-child(15) { animation-delay: 0.8s; }

        @keyframes mosaicFade {
            0%, 100% { opacity: 0.15; transform: scale(0.92); }
            50% { opacity: 0.5; transform: scale(1); }
        }

        .explorer .empty-state-content {
            max-width: 380px;
        }

        .explorer .empty-state-text {
            margin: 0 0 24px;
            color: var(--ink-muted);
            font-size: 1rem;
            line-height: 1.6;
        }

        .explorer .empty-state-actions {
            display: flex;
            gap: 12px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .explorer .btn-primary-soft {
            display: inline-flex;
            align-items: center;
            padding: 10px 22px;
            background: var(--ink);
            color: var(--surface);
            font-family: var(--font-body);
            font-size: 0.9rem;
            font-weight: 500;
            text-decoration: none;
            border-radius: var(--radius);
            border: none;
            cursor: pointer;
            transition: background 0.15s ease, transform 0.1s ease;
        }

        .explorer .btn-primary-soft:hover {
            background: var(--accent-hover);
            transform: translateY(-1px);
        }

        .explorer .btn-ghost {
            display: inline-flex;
            align-items: center;
            padding: 10px 22px;
            background: transparent;
            color: var(--ink);
            font-family: var(--font-body);
            font-size: 0.9rem;
            font-weight: 500;
            text-decoration: none;
            border-radius: var(--radius);
            border: 1px solid var(--border);
            cursor: pointer;
            transition: border-color 0.15s ease, background 0.15s ease;
        }

        .explorer .btn-ghost:hover {
            border-color: var(--border-focus);
            background: var(--surface);
        }

        /* Decorative corner accents */
        .explorer .empty-state-panel::before,
        .explorer .empty-state-panel::after {
            content: '';
            position: absolute;
            width: 120px;
            height: 120px;
            opacity: 0.03;
            pointer-events: none;
        }

        .explorer .empty-state-panel::before {
            top: -40px;
            left: -40px;
            background: radial-gradient(circle, var(--ink) 0%, transparent 70%);
        }

        .explorer .empty-state-panel::after {
            bottom: -40px;
            right: -40px;
            background: radial-gradient(circle, var(--ink) 0%, transparent 70%);
        }

        .explorer .grid-tab.active .tab-count {
            background: rgba(255, 255, 255, 0.2);
            color: var(--surface);
        }

        /* Shared Actions Panel - CTA for creating groups */
        .explorer .shared-actions-panel {
            display: none;
            align-items: center;
            gap: 20px;
            margin: 20px 0 24px;
            padding: 15px 20px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            overflow: hidden;
        }

        .explorer .shared-actions-panel::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 200px;
            height: 100%;
            background: radial-gradient(ellipse at top right, rgba(26, 24, 22, 0.03) 0%, transparent 70%);
            pointer-events: none;
        }

        .explorer .shared-actions-visual {
            flex-shrink: 0;
        }

        .explorer .collab-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 48px;
            background: var(--ink);
            border-radius: 12px;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .explorer .collab-icon svg {
            width: 24px;
            height: 24px;
            color: var(--surface);
        }

        .explorer .shared-actions-content {
            flex: 1;
            min-width: 0;
        }

        .explorer .shared-actions-title {
            margin: 0 0 4px;
            font-size: 1rem;
            font-weight: 600;
            color: var(--ink);
            letter-spacing: -0.01em;
        }

        .explorer .shared-actions-text {
            margin: 0;
            font-size: 0.875rem;
            color: var(--ink-muted);
            line-height: 1.4;
        }

        .explorer .create-group-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 18px;
            background: var(--ink);
            color: var(--surface);
            font-family: var(--font-body);
            font-size: 0.875rem;
            font-weight: 500;
            border: none;
            border-radius: var(--radius);
            cursor: pointer;
            transition: all 0.15s ease;
            white-space: nowrap;
        }

        .explorer .create-group-btn:hover {
            background: var(--accent-hover);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(26, 24, 22, 0.12);
        }

        .explorer .create-group-btn .btn-icon {
            width: 16px;
            height: 16px;
            transition: transform 0.2s ease;
        }

        .explorer .create-group-btn:hover .btn-icon {
            transform: rotate(90deg);
        }

        /* Groups Section */
        .explorer .groups-section {
            margin: 16px 0 32px;
            padding: 20px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
        }

        .explorer .groups-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border);
            flex-wrap: wrap;
        }

        .explorer .groups-header-content {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .explorer .groups-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: var(--surface-alt);
            border: 1px solid var(--border);
            border-radius: 10px;
        }

        .explorer .groups-icon svg {
            width: 20px;
            height: 20px;
            color: var(--ink-muted);
        }

        .explorer .groups-title {
            margin: 0;
            font-size: 1rem;
            font-weight: 600;
            color: var(--ink);
            letter-spacing: -0.01em;
        }

        .explorer .groups-subtitle {
            margin: 2px 0 0;
            font-size: 0.8125rem;
            color: var(--ink-muted);
        }

        .explorer .groups-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* Group Grid */
        .explorer .group-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 14px;
            margin-top: 16px;
        }

        .explorer .group-grid:empty {
            display: none;
        }

        /* Group Card */
        .explorer .group-card {
            display: flex;
            flex-direction: column;
            padding: 0;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            overflow: hidden;
            transition: all 0.2s ease;
        }

        .explorer .group-card:hover {
            border-color: var(--border-focus);
            box-shadow: var(--shadow);
            transform: translateY(-2px);
        }

        .explorer .group-card-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 16px 0;
        }

        .explorer .group-badge {
            display: inline-flex;
            align-items: center;
            padding: 4px 10px;
            background: var(--surface-alt);
            border: 1px solid var(--border);
            border-radius: 4px;
            color: var(--ink-muted);
            font-size: 0.6875rem;
            font-weight: 600;
            letter-spacing: 0.05em;
            text-transform: uppercase;
        }

        .explorer .group-badge.owner {
            background: var(--ink);
            border-color: var(--ink);
            color: var(--surface);
        }

        .explorer .group-card .group-name {
            margin: 10px 16px 0;
            font-size: 1.1rem;
            font-weight: 600;
            letter-spacing: -0.01em;
            color: var(--ink);
            line-height: 1.3;
        }

        .explorer .group-stats {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 12px 16px;
        }

        .explorer .group-stat {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.8125rem;
            color: var(--ink-muted);
        }

        .explorer .group-stat svg {
            width: 16px;
            height: 16px;
            opacity: 0.5;
        }
        .explorer .group-invites {
            margin-top: 16px;
            padding: 14px 16px;
            background: var(--surface-alt);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
        }

        .explorer .group-invites-header {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .explorer .group-invites-title {
            margin: 0;
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--ink);
        }

        .explorer .group-invites-subtitle {
            margin: 0;
            font-size: 0.8125rem;
            color: var(--ink-muted);
        }

        .explorer .group-invites-list {
            display: grid;
            gap: 10px;
            margin-top: 12px;
        }

        .explorer .invite-card {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            padding: 12px 14px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
        }

        .explorer .invite-content {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .explorer .invite-label {
            margin: 0;
            font-size: 0.7rem;
            color: var(--ink-muted);
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .explorer .invite-group {
            margin: 0;
            font-size: 1rem;
            font-weight: 600;
            color: var(--ink);
        }

        .explorer .invite-meta {
            margin: 0;
            font-size: 0.8rem;
            color: var(--ink-muted);
        }

        .explorer .invite-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .explorer .invite-btn {
            padding: 6px 12px;
            border-radius: var(--radius);
            border: 1px solid var(--border);
            background: var(--surface);
            color: var(--ink);
            font-size: 0.8rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .explorer .invite-btn:hover {
            border-color: var(--border-focus);
            background: var(--surface-alt);
        }

        .explorer .invite-btn.primary {
            background: var(--ink);
            color: var(--surface);
            border-color: var(--ink);
        }

        .explorer .invite-btn.primary:hover {
            filter: brightness(0.95);
        }

        .explorer .invite-loading {
            font-size: 0.85rem;
            color: var(--ink-muted);
        }

        .explorer .group-actions {
            display: flex;
            align-items: stretch;
            gap: 1px;
            background: var(--border);
            border-top: 1px solid var(--border);
            margin-top: auto;
        }

        .explorer .group-action-btn {
            flex: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 11px 8px;
            background: var(--surface);
            color: var(--ink-muted);
            font-family: var(--font-body);
            font-size: 0.8125rem;
            font-weight: 500;
            text-decoration: none;
            border: none;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .explorer .group-action-btn:first-child {
            border-radius: 0 0 0 calc(var(--radius-lg) - 1px);
        }

        .explorer .group-action-btn:last-child {
            border-radius: 0 0 calc(var(--radius-lg) - 1px) 0;
        }

        .explorer .group-action-btn:only-child {
            border-radius: 0 0 calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px);
        }

        .explorer .group-action-btn:hover {
            color: var(--ink);
            background: var(--surface-alt);
        }

        .explorer .group-action-btn.primary {
            background: var(--ink);
            color: var(--surface);
        }

        .explorer .group-action-btn.primary:hover {
            background: var(--accent-hover);
        }

        .explorer .group-action-btn.danger {
            color: var(--favorite);
        }

        .explorer .group-action-btn.danger:hover {
            background: rgba(229, 57, 53, 0.06);
        }

        .explorer .group-action-btn svg {
            width: 15px;
            height: 15px;
            flex-shrink: 0;
        }

        /* Empty groups state */
        .explorer .groups-empty {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 32px 16px;
            text-align: center;
        }

        .explorer .groups-empty-icon {
            width: 48px;
            height: 48px;
            margin-bottom: 12px;
            color: var(--ink-faint);
        }

        .explorer .groups-empty-text {
            margin: 0;
            font-size: 0.9rem;
            color: var(--ink-muted);
        }

        /* Mobile responsive */
        @media (max-width: 640px) {
            .explorer .shared-actions-panel {
                flex-direction: column;
                align-items: stretch;
                text-align: center;
                padding: 20px;
            }

            .explorer .shared-actions-visual {
                display: flex;
                justify-content: center;
            }

            .explorer .create-group-btn {
                width: 100%;
                justify-content: center;
            }

            .explorer .groups-header {
                flex-direction: column;
                align-items: stretch;
                gap: 12px;
            }

            .explorer .groups-header-content {
                justify-content: center;
                text-align: center;
                flex-direction: column;
                gap: 10px;
            }

            .explorer .groups-actions {
                justify-content: center;
            }

            .explorer .group-grid {
                grid-template-columns: 1fr;
            }
        }

        .explorer .pill-btn,
        .shared-list .pill-btn {
            padding: 8px 14px;
            font-size: 0.85rem;
            font-weight: 500;
            font-family: var(--font-body);
            border-radius: 5px;
            border: 1px solid var(--border);
            background: var(--surface-alt);
            color: var(--ink);
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .explorer .pill-btn:hover,
        .shared-list .pill-btn:hover {
            background: var(--accent-soft);
            color: var(--accent-hover);
            border-color: var(--border-focus);
        }

        .explorer .pill-btn.primary,
        .shared-list .pill-btn.primary {
            background: var(--ink);
            color: var(--surface);
            border-color: var(--ink);
        }

        .explorer .pill-btn.primary:hover,
        .shared-list .pill-btn.primary:hover {
            filter: brightness(0.95);
            color: var(--surface);
            border-color: var(--ink);
        }

        .explorer .pill-btn.ghost,
        .shared-list .pill-btn.ghost {
            background: transparent;
            color: var(--ink-muted);
        }

        .explorer .pill-btn.ghost:hover,
        .shared-list .pill-btn.ghost:hover {
            color: var(--ink);
            border-color: var(--border-focus);
            background: var(--surface-alt);
        }

        /* Dialog-specific pill buttons (outside .explorer wrapper) */
        body.explorer-body .dialog-card .pill-btn {
            padding: 5px 5px;
            font-size: 0.9rem;
            font-weight: 600;
            font-family: var(--font-body);
            border-radius: 5px;
            border: 1px solid var(--border);
            background: var(--surface-alt);
            color: var(--ink);
            cursor: pointer;
            transition: all 0.15s ease;
        }

        body.explorer-body .dialog-card .pill-btn:hover {
            background: var(--accent-soft);
            color: var(--accent-hover);
            border-color: var(--border-focus);
        }

        body.explorer-body .dialog-card .pill-btn.primary {
            background: var(--ink);
            color: var(--surface);
            border-color: var(--ink);
        }

        body.explorer-body .dialog-card .pill-btn.primary:hover {
            filter: brightness(0.95);
            color: var(--surface);
            border-color: var(--ink);
        }

        body.explorer-body .dialog-card .pill-btn.danger {
            color: var(--favorite);
            border-color: rgba(229, 57, 53, 0.25);
            background: rgba(229, 57, 53, 0.05);
        }

        body.explorer-body .dialog-card .pill-btn.danger:hover {
            background: rgba(229, 57, 53, 0.08);
            border-color: rgba(229, 57, 53, 0.4);
            color: var(--favorite);
        }

        body.explorer-body .dialog-card .pill-btn.ghost {
            background: transparent;
            color: var(--ink-muted);
            padding:
        }

        body.explorer-body .dialog-card .pill-btn.ghost:hover {
            color: var(--ink);
            border-color: var(--border-focus);
            background: var(--surface-alt);
        }

        .explorer .pill-btn.danger {
            color: var(--favorite);
            border-color: rgba(229, 57, 53, 0.25);
        }

        .explorer .pill-btn.danger:hover {
            background: rgba(229, 57, 53, 0.08);
            border-color: rgba(229, 57, 53, 0.4);
        }


        /* Results header */
        .explorer .results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 0;
            border-bottom: 1px solid var(--border);
        }

        .explorer .results-count {
            font-size: 0.875rem;
            color: var(--ink-muted);
        }

        .explorer .results-count strong {
            color: var(--ink);
            font-weight: 600;
        }

        .explorer .controls {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
        }

        .explorer .sort-group {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .explorer .sort-label {
            font-size: 0.8125rem;
            color: var(--ink-muted);
        }

        .explorer .per-page {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .explorer .per-page-label {
            font-size: 0.8125rem;
            color: var(--ink-muted);
        }

        .explorer .select-sm {
            padding: 6px 28px 6px 10px;
            font-size: 0.875rem;
            font-family: var(--font-body);
            color: var(--ink-muted);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b6560'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center;
            appearance: none;
            cursor: pointer;
        }

        .explorer .sort-dir-btn {
            display: inline-flex;
            align-items: center;
            padding: 6px 10px;
            font-size: 0.8125rem;
            font-family: var(--font-body);
            color: var(--ink);
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .explorer .sort-dir-btn:hover {
            border-color: var(--border-focus);
            background: var(--surface-alt);
        }

        .explorer .sort-dir-icon {
            display: inline-flex;
            width: 18px;
            height: 18px;
        }

        .explorer .sort-dir-icon .arrow {
            opacity: 0.35;
            transition: opacity 0.15s ease;
        }

        .sort-dir-btn:not(.desc) .arrow-up,
        .explorer .sort-dir-btn.desc .arrow-down {
            opacity: 1;
        }

        .explorer .reset-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            font-size: 0.8125rem;
            font-weight: 500;
            font-family: var(--font-body);
            color: var(--ink-muted);
            background: var(--surface-alt);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .explorer .reset-btn::before {
            content: '';
            width: 14px;
            height: 14px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6560' stroke-width='2'%3E%3Cpath d='M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E");
            background-size: contain;
            background-repeat: no-repeat;
            opacity: 0.8;
        }

        .explorer .reset-btn:hover {
            color: var(--ink);
            background: var(--surface);
            border-color: var(--border-focus);
        }

        .explorer .reset-btn:hover::before {
            opacity: 1;
        }

        /* Name grid */
        .explorer .names-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 16px;
            padding: 24px 0;
        }

        .explorer .name-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 20px;
            transition: box-shadow 0.2s ease, border-color 0.2s ease;
            position: relative;
            z-index: 0;
        }

        .explorer .name-card:hover {
            box-shadow: var(--shadow);
            border-color: var(--border-focus);
            z-index: 2;
        }

        .explorer .name-card.male {
            background: var(--male-bg);
            border-color: var(--male-border);
        }

        .explorer .name-card.female {
            background: var(--female-bg);
            border-color: var(--female-border);
        }

        .explorer .card-header {
            background: transparent;
            border: 0;
            padding: 0;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }

        .explorer .name-leading {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .explorer .name-value {
            font-family: var(--font-display);
            font-size: 1.875rem;
            font-weight: 300;
            letter-spacing: -0.02em;
            color: var(--ink);
            line-height: 1.15;
        }

        .explorer .name-link {
            text-decoration: none;
            color: inherit;
            display: inline-block;
            transform-origin: right center;
            transition: transform 0.15s ease;
        }

        .explorer .name-link:hover {
            text-decoration: none;
            transform: scale(1.06);
        }

        .explorer .meaning-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            color: var(--ink-muted);
            cursor: pointer;
        }

        .explorer .meaning-icon svg {
            width: 16px;
            height: 16px;
            fill: currentColor;
            stroke: none;
        }

        .explorer .name-card.male .name-value { color: var(--male); }
        .explorer .name-card.female .name-value { color: var(--female); }

        .explorer .fav-btn {
            padding: 4px;
            background: transparent;
            border: none;
            cursor: pointer;
            color: var(--ink-faint);
            transition: color 0.15s ease, transform 0.15s ease;
            position: absolute;
            top: 10px;
            right: 12px;
        }

        .explorer .fav-btn.is-disabled {
            opacity: 0.85;
        }

        .explorer .fav-btn.is-disabled:hover {
            color: var(--ink-faint);
            transform: none;
        }

        .explorer .fav-btn.fav-pulse {
            animation: favPulse 0.25s ease;
        }

        @keyframes favPulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.18); }
            100% { transform: scale(1); }
        }

        .explorer .fav-btn:hover {
            color: var(--favorite);
            transform: scale(1.1);
        }

        .explorer .fav-btn.active {
            color: var(--favorite);
        }

        .explorer .fav-btn svg {
            width: 20px;
            height: 20px;
            fill: none;
            stroke: currentColor;
        }

        .explorer .fav-btn.active svg {
            fill: currentColor;
        }

        .explorer .card-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            margin-top: 10px;
            font-size: 0.8rem;
            color: var(--ink-muted);
        }

        .explorer .card-date {
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .explorer .registered-count {
            text-align: right;
        }

        .explorer .registered-count strong {
            color: var(--ink);
            font-weight: 500;
        }

        .explorer .card-desc {
            font-size: 0.875rem;
            color: var(--ink-muted);
            line-height: 1.6;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .explorer .card-footer {
            background: transparent;
            margin-top: 12px;
            padding-top: 12px;
            padding-left: initial;
            padding-right: initial;
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .explorer .card-footer .badge {
            text-align: justify;
            margin-right: auto;
        }

        .explorer .name-card.male .card-footer { border-color: var(--male-border); }
        .explorer .name-card.female .card-footer { border-color: var(--female-border); }

        .explorer .badge {
            font-size: 0.7rem;
            font-weight: 300;
            padding: 3px 8px;
            border-radius: 3px;
            background: var(--accent-soft);
            color: var(--ink);
        }

        .explorer .badge.calendar-badge,
        .shared-list .badge.calendar-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 0;
            font-weight: 500;
            background: transparent;
            color: var(--ink);
        }

        .explorer .badge.calendar-badge .icon,
        .shared-list .badge.calendar-badge .icon {
            width: 14px;
            height: 14px;
            fill: none;
            stroke-width: 1.6;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .explorer .badge.calendar-badge .calendar-icon,
        .shared-list .badge.calendar-badge .calendar-icon {
            stroke: var(--ink);
        }

        .explorer .badge.calendar-badge.official .status-icon,
        .shared-list .badge.calendar-badge.official .status-icon {
            stroke: #2f855a;
        }

        .explorer .badge.calendar-badge.not-official .status-icon,
        .shared-list .badge.calendar-badge.not-official .status-icon {
            stroke: #c53030;
        }

        .explorer .badge.official {
            background: rgba(74, 111, 165, 0.1);
            color: var(--male);
        }

        .explorer .registered {
            align-self: normal;
            font-size: 0.8125rem;
            color: var(--ink-faint);
            margin-left: auto;
        }

        /* Pagination */
        .explorer .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            padding: 32px 0 48px;
        }

        .explorer .page-btn {
            min-width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: 400;
            font-family: var(--font-body);
            color: var(--ink-muted);
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .explorer .page-btn:hover:not(:disabled) {
            border-color: var(--border-focus);
            background: var(--surface-alt);
        }

        .explorer .page-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .explorer .page-btn.active {
            background: var(--ink);
            color: var(--surface);
            border-color: var(--ink);
        }

        .explorer .page-btn svg {
            width: 16px;
            height: 16px;
        }

        .explorer .page-info {
            font-size: 0.875rem;
            color: var(--ink-muted);
            padding: 0 8px;
        }

        /* Empty state */
        .explorer .empty-state {
            text-align: center;
            padding: 80px 24px;
        }

        .explorer .empty-icon {
            width: 64px;
            height: 64px;
            margin: 0 auto 16px;
            color: var(--ink-faint);
        }

        .explorer .empty-title {
            font-family: var(--font-display);
            font-size: 1.625rem;
            font-weight: 300;
            letter-spacing: -0.02em;
            color: var(--ink);
            margin: 0 0 8px;
        }

        .explorer .empty-desc {
            font-size: 0.9375rem;
            color: var(--ink-muted);
            margin: 0;
        }

        .explorer .empty-actions {
            margin-top: 16px;
            display: flex;
            justify-content: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        /* Responsive */
        @media (max-width: 640px) {
            .explorer .hero { padding: 32px 0; }

            .explorer .filter-row { gap: 20px; }

            .explorer .search-wrap { width: 100%; }

            .explorer .names-grid {
                grid-template-columns: 1fr;
                gap: 12px;
            }

            .explorer .results-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }

            .explorer .filter-actions {
                justify-content: center;
                padding: 14px 0 8px;
            }

            .explorer .append-group {
                flex-wrap: wrap;
                padding: 12px;
            }

            .explorer .append-input-wrap {
                width: 100%;
                max-width: none;
                margin-top: 4px;
            }
        }

        /* Append toggle */
        .explorer .append-group {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 10px 14px;
            border-radius: var(--radius);
        }

        .explorer .toggle-switch {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            user-select: none;
            flex-shrink: 0;
        }

        .explorer .toggle-switch input {
            display: none;
        }

        .explorer .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        .explorer .toggle-track {
            width: 40px;
            height: 22px;
            background: var(--border);
            border-radius: 11px;
            position: relative;
            transition: background 0.2s ease;
        }

        .explorer .toggle-track::after {
            content: '';
            position: absolute;
            width: 18px;
            height: 18px;
            background: var(--surface);
            border-radius: 50%;
            top: 2px;
            left: 2px;
            transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow: 0 1px 3px rgba(0,0,0,0.15);
        }

        .explorer .toggle-switch input:checked + .toggle-track {
            background: var(--ink);
        }

        .explorer .toggle-switch input:checked + .toggle-track::after {
            transform: translateX(18px);
        }

        .explorer .append-input-wrap {
            display: none;
            flex: 1;
            max-width: 280px;
        }

        .explorer .append-input-wrap.visible {
            display: block;
        }

        .explorer .append-input {
            width: 100%;
            padding: 8px 12px;
            font-size: 0.85rem;
            font-family: var(--font-body);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: var(--surface);
            color: var(--ink);
            transition: border-color 0.15s ease, box-shadow 0.15s ease;
        }

        .explorer .append-input:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-soft);
        }

        .explorer .append-input::placeholder {
            color: var(--ink-faint);
        }

        /* Shared list page */
        .shared-list {
            background: var(--bg);
            min-height: 100vh;
            padding: 32px 0 64px;
        }

        .shared-list .container {
            max-width: 960px;
            margin: 0 auto;
            padding: 0 24px;
        }

        .shared-list .back-link {
            display: inline-block;
            margin-bottom: 12px;
            color: var(--ink-muted);
            text-decoration: none;
            font-weight: 400;
        }

        .shared-list .back-link:hover {
            color: var(--ink);
        }

        .shared-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 16px;
            padding: 20px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-sm);
            flex-wrap: wrap;
            margin-bottom: 16px;
        }

        .shared-title {
            margin: 4px 0;
            font-size: 2.25rem;
            font-family: var(--font-display);
            font-weight: 300;
            letter-spacing: -0.025em;
        }

        .shared-meta {
            margin: 0;
            color: var(--ink-muted);
        }

        .eyebrow {
            font-size: 0.75rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--ink-muted);
            margin: 0;
        }

        .share-panel {
            display: flex;
            flex-direction: column;
            gap: 8px;
            min-width: 260px;
        }

        .share-label {
            font-size: 0.85rem;
            color: var(--ink-muted);
        }

        .share-inline {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .share-inline input {
            flex: 1;
            min-width: 220px;
            padding: 8px 12px;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background: var(--surface-alt);
            color: var(--ink);
        }

        .share-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .badge.subtle {
            background: var(--surface-alt);
            color: var(--ink);
            border: 1px solid var(--border);
        }

        .hint {
            margin: 0;
            color: var(--ink-muted);
            font-size: 0.85rem;
        }

        .alert.muted {
            padding: 10px 12px;
            border-radius: var(--radius);
            background: var(--surface-alt);
            border: 1px solid var(--border);
            color: var(--ink-muted);
            margin-bottom: 8px;
        }

        .shared-list .names-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 16px;
            padding: 12px 0;
        }

        .shared-list .name-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 20px;
            box-shadow: var(--shadow-sm);
        }

        .shared-list .name-card.male {
            background: var(--male-bg);
            border-color: var(--male-border);
        }

        .shared-list .name-card.female {
            background: var(--female-bg);
            border-color: var(--female-border);
        }

        .shared-list .card-header {
            background: transparent;
            border: 0;
            padding: 0;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 8px;
        }

        .shared-list .name-leading {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .shared-list .name-value {
            font-family: var(--font-display);
            font-size: 1.875rem;
            font-weight: 300;
            letter-spacing: -0.02em;
            color: var(--ink);
            line-height: 1.15;
        }

        .shared-list .meaning-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            color: var(--ink);
            cursor: pointer;
        }

        .shared-list .meaning-icon svg {
            width: 18px;
            height: 18px;
            fill: currentColor;
            stroke: none;
        }

        /* Tooltip for explorer name + disabled actions */
        .explorer .name-link[data-tooltip] {
            position: relative;
        }

        .explorer .fav-btn[data-tooltip] {
            position: absolute;
        }

        .explorer .name-link[data-tooltip]::after,
        .explorer .name-link[data-tooltip]::before,
        .explorer .fav-btn[data-tooltip]::after,
        .explorer .fav-btn[data-tooltip]::before {
            opacity: 0;
            pointer-events: none;
            transition: opacity 120ms ease;
        }

        .explorer .name-link[data-tooltip]:hover::after,
        .explorer .name-link[data-tooltip]:hover::before,
        .explorer .name-link[data-tooltip]:focus-visible::after,
        .explorer .name-link[data-tooltip]:focus-visible::before,
        .explorer .fav-btn[data-tooltip]:hover::after,
        .explorer .fav-btn[data-tooltip]:hover::before,
        .explorer .fav-btn[data-tooltip]:focus-visible::after,
        .explorer .fav-btn[data-tooltip]:focus-visible::before {
            opacity: 1;
        }

        .explorer .name-link[data-tooltip]::after,
        .explorer .fav-btn[data-tooltip]::after {
            content: attr(data-tooltip);
            position: absolute;
            top: 130%;
            left: 50%;
            transform: translateX(-50%);
            background: #111827;
            color: #f9fafb;
            padding: 6px 9px;
            border-radius: 6px;
            font-size: 0.75rem;
            line-height: 1.35;
            white-space: normal;
            min-width: 260px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.18);
            z-index: 10;
        }

        .explorer .name-link[data-tooltip]::before,
        .explorer .fav-btn[data-tooltip]::before {
            content: "";
            position: absolute;
            top: 120%;
            left: 50%;
            transform: translateX(-50%);
            border: 6px solid transparent;
            border-bottom-color: #111827;
            z-index: 10;
        }

        /* Dialog overlay (shared) */
        body.explorer-body .dialog-overlay {
            position: fixed;
            inset: 0;
            background: rgba(17, 24, 39, 0.65);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 16px;
            z-index: 1300;
        }

        body.explorer-body .dialog-overlay.open {
            display: flex;
        }

        body.explorer-body .dialog-card {
            position: relative;
            width: min(92vw, 520px);
            background: #ffffff;
            color: var(--ink);
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
            padding: 20px 22px 20px;
        }

        body.explorer-body .dialog-close {
            position: absolute;
            top: 10px;
            right: 12px;
            border: none;
            background: transparent;
            font-size: 1.4rem;
            color: var(--ink-muted);
            cursor: pointer;
        }

        body.explorer-body .dialog-close:hover {
            color: var(--ink);
        }

        body.explorer-body .dialog-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
        }

        body.explorer-body .dialog-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 42px;
            height: 42px;
            border-radius: 10px;
            background: var(--surface-alt);
            border: 1px solid var(--border);
            color: var(--ink);
        }

        body.explorer-body .dialog-icon svg {
            width: 22px;
            height: 22px;
        }

        body.explorer-body .dialog-title {
            margin: 0;
            font-size: 1.1rem;
            font-weight: 600;
        }

        body.explorer-body .dialog-subtitle {
            margin: 2px 0 0;
            font-size: 0.92rem;
            color: var(--ink-muted);
        }

        body.explorer-body .dialog-form {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        body.explorer-body .dialog-label {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--ink);
        }

        body.explorer-body .dialog-input {
            width: 100%;
            padding: 10px 12px;
            border-radius: 8px;
            border: 1px solid var(--border);
            background: var(--surface-alt);
            font-size: 0.95rem;
            color: var(--ink);
            transition: all 0.15s ease;
        }

        body.explorer-body .dialog-input:focus {
            outline: none;
            border-color: var(--border-focus);
            background: #ffffff;
            box-shadow: 0 0 0 4px rgba(76, 91, 64, 0.08);
        }

        body.explorer-body .dialog-help {
            margin: 0;
            font-size: 0.85rem;
            color: var(--ink-muted);
        }

        body.explorer-body .dialog-help.danger {
            color: var(--favorite);
            font-weight: 600;
            margin-top: 30px;
            margin-bottom: 30px;
        }

        body.explorer-body .dialog-feedback {
            margin: 2px 0 0;
            font-size: 0.9rem;
        }

        body.explorer-body .dialog-feedback.error {
            color: var(--favorite);
        }

        body.explorer-body .dialog-feedback.success {
            color: var(--accent-hover);
        }

        body.explorer-body .dialog-actions {
            margin-top: 6px;
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            flex-wrap: wrap;
        }

        body.explorer-body .dialog-actions .pill-btn {
            min-width: 100px;
            justify-content: center;
        }

        body.explorer-body .dialog-submit[disabled] {
            opacity: 0.7;
            cursor: not-allowed;
        }

        /* Meaning overlay */
        .meaning-overlay {
            position: fixed;
            inset: 0;
            background: rgba(17, 24, 39, 0.65);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 16px;
            z-index: 1300;
        }

        .meaning-overlay.open {
            display: flex;
        }

        .meaning-dialog {
            position: relative;
            width: min(90vw, 640px);
            background: #ffffff;
            color: var(--ink);
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
            padding: 18px 22px 22px;
        }

        .meaning-title {
            margin: 0 0 8px;
            font-size: 1.1rem;
            font-weight: 600;
        }

        .meaning-body {
            margin: 0;
            line-height: 1.6;
            color: var(--ink);
            font-size: 0.98rem;
            white-space: pre-line;
        }

        .meaning-close {
            position: absolute;
            top: 10px;
            right: 12px;
            border: none;
            background: transparent;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--ink-muted);
        }

        .meaning-close:hover {
            color: var(--ink);
        }

        .title-row {
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
        }

        .heart-title {
            display: inline-flex;
        }

        .heart-title .fav-btn,
        a.heart-title.fav-btn {
            position: static;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: auto;
            height: auto;
            padding: 4px;
            background: transparent;
            border: none;
            border-radius: 0;
            box-shadow: none;
            cursor: pointer;
            color: var(--ink-faint);
            transition: color 0.15s ease, transform 0.15s ease;
            text-decoration: none;
        }

        .heart-title .fav-btn:hover,
        a.heart-title.fav-btn:hover {
            color: var(--favorite);
            transform: scale(1.1);
        }

        .heart-title .fav-btn.active {
            color: var(--favorite);
        }

        .heart-title .fav-btn svg,
        a.heart-title.fav-btn svg {
            width: 26px;
            height: 26px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2.2;
            display: block;
        }

        .heart-title .fav-btn.active svg {
            fill: currentColor;
        }

        .shared-list .name-card.male .name-value { color: var(--male); }
        .shared-list .name-card.female .name-value { color: var(--female); }

        .shared-list .card-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            margin-top: 6px;
            font-size: 0.875rem;
            color: var(--ink-muted);
        }

        .shared-list .card-date {
            font-weight: 500;
            color: var(--ink);
            display: inline-flex;
            align-items: center;
            gap: 6px;
            white-space: nowrap;
        }

        .shared-list .registered-count {
            text-align: right;
        }

        .shared-list .registered-count strong {
            color: var(--ink);
            font-weight: 600;
        }

        .shared-list .card-desc {
            font-size: 0.875rem;
            color: var(--ink-muted);
            line-height: 1.6;
            margin: 6px 0 0;
            white-space: pre-line;
        }

        .shared-list .card-footer {
            background: transparent;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .shared-list .badge {
            font-size: 0.75rem;
            font-weight: 500;
            padding: 3px 8px;
            border-radius: 3px;
            background: var(--accent-soft);
            color: var(--accent);
        }

        .shared-list .registered {
            font-size: 0.8125rem;
            color: var(--ink-faint);
            margin-left: auto;
        }

        /* Smooth page load */
        .explorer .fade-in {
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Name detail page */
        .explorer .hero.slim {
            padding: 10px 0 30px;
        }

        .explorer .name-detail-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            padding: 32px 0 48px;
        }

        @media (max-width: 768px) {
            .explorer .name-detail-grid {
                grid-template-columns: 1fr;
            }
        }

        .explorer .card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 20px 24px;
            box-shadow: var(--shadow-sm);
        }

        .explorer .card h2 {
            font-family: var(--font-display);
            font-size: 1.125rem;
            font-weight: 500;
            letter-spacing: -0.01em;
            color: var(--ink);
            margin: 0 0 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--border);
        }

        .explorer .card .muted {
            color: var(--ink-muted);
            font-size: 0.9rem;
        }

        .explorer .meaning-block {
            padding: 14px 0;
            border-bottom: 1px solid var(--border);
        }

        .explorer .meaning-block:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .explorer .meaning-block:first-child {
            padding-top: 0;
        }

        .explorer .meaning-block p {
            margin: 0;
            color: var(--ink);
            line-height: 1.6;
            font-size: 0.95rem;
            white-space: pre-line;
        }

        .explorer .fact-list {
            margin: 0;
        }

        .explorer .fact-list > div {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid var(--border);
        }

        .explorer .fact-list > div:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .explorer .fact-list > div:first-child {
            padding-top: 0;
        }

        .explorer .fact-list dt {
            color: var(--ink-muted);
            font-size: 0.875rem;
            font-weight: 400;
        }

        .explorer .fact-list dd {
            margin: 0;
            color: var(--ink);
            font-size: 0.875rem;
            font-weight: 500;
            text-align: right;
        }

        .explorer .name-history-chart {
            grid-column: 1 / -1;
        }

        .explorer .chart-container {
            position: relative;
            height: 250px;
            width: 100%;
        }

        /* Site header */
        .explorer .site-header,
        .shared-list .site-header {
            padding: 16px 0 20px;
            margin-bottom: 8px;
        }

        .explorer .header-inner,
        .shared-list .header-inner {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border);
        }

        .explorer .site-brand,
        .shared-list .site-brand {
            display: flex;
            align-items: center;
            gap: 28px;
        }

        .explorer .site-logo,
        .shared-list .site-logo {
            display: inline-flex;
            text-decoration: none;
            position: relative;
        }

        /* CSS-based logo mosaic */
        .explorer .logo-mosaic,
        .shared-list .logo-mosaic {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .explorer .mosaic-row,
        .shared-list .mosaic-row {
            display: flex;
            gap: 2px;
        }

        .explorer .tile,
        .shared-list .tile {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 16px;
            height: 16px;
            background: var(--ink);
            color: var(--surface);
            font-family: var(--font-display);
            font-size: 10px;
            font-weight: 400;
            border-radius: 2px;
            transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                        background 0.15s ease;
        }

        .explorer .tile.empty,
        .shared-list .tile.empty {
            background: transparent;
        }

        .explorer .site-logo:hover .tile,
        .shared-list .site-logo:hover .tile {
            background: var(--accent-hover);
        }

        .explorer .site-logo:hover .tile:nth-child(1),
        .shared-list .site-logo:hover .tile:nth-child(1) { transition-delay: 0ms; }
        .explorer .site-logo:hover .tile:nth-child(2),
        .shared-list .site-logo:hover .tile:nth-child(2) { transition-delay: 15ms; }
        .explorer .site-logo:hover .tile:nth-child(3),
        .shared-list .site-logo:hover .tile:nth-child(3) { transition-delay: 30ms; }
        .explorer .site-logo:hover .tile:nth-child(4),
        .shared-list .site-logo:hover .tile:nth-child(4) { transition-delay: 45ms; }
        .explorer .site-logo:hover .tile:nth-child(5),
        .shared-list .site-logo:hover .tile:nth-child(5) { transition-delay: 60ms; }
        .explorer .site-logo:hover .tile:nth-child(6),
        .shared-list .site-logo:hover .tile:nth-child(6) { transition-delay: 75ms; }
        .explorer .site-logo:hover .tile:nth-child(7),
        .shared-list .site-logo:hover .tile:nth-child(7) { transition-delay: 90ms; }
        .explorer .site-logo:hover .tile:nth-child(8),
        .shared-list .site-logo:hover .tile:nth-child(8) { transition-delay: 105ms; }
        .explorer .site-logo:hover .tile:nth-child(9),
        .shared-list .site-logo:hover .tile:nth-child(9) { transition-delay: 120ms; }
        .explorer .site-logo:hover .tile:nth-child(10),
        .shared-list .site-logo:hover .tile:nth-child(10) { transition-delay: 135ms; }
        .explorer .site-logo:hover .tile:nth-child(11),
        .shared-list .site-logo:hover .tile:nth-child(11) { transition-delay: 150ms; }

        .explorer .site-logo:hover .mosaic-row:first-child .tile,
        .shared-list .site-logo:hover .mosaic-row:first-child .tile {
            transform: translateY(-1px);
        }

        .explorer .site-logo:hover .mosaic-row:last-child .tile,
        .shared-list .site-logo:hover .mosaic-row:last-child .tile {
            transform: translateY(1px);
        }

        /* Site navigation */
        .explorer .site-nav,
        .shared-list .site-nav {
            display: flex;
            align-items: center;
            gap: 8px;
            padding-left: 20px;
            border-left: 1px solid var(--border);
        }

        .explorer .site-nav-link,
        .shared-list .site-nav-link {
            display: inline-flex;
            align-items: center;
            padding: 6px 12px;
            font-size: 0.8125rem;
            font-weight: 400;
            color: var(--ink-muted);
            text-decoration: none;
            border-radius: var(--radius);
            transition: color 0.15s ease, background 0.15s ease;
        }

        .explorer .site-nav-link:hover,
        .shared-list .site-nav-link:hover {
            color: var(--ink);
            background: var(--surface-alt);
        }

        .explorer .site-nav-link .nav-text,
        .shared-list .site-nav-link .nav-text {
            position: relative;
        }

        /* Auth section */
        .explorer .auth-section,
        .shared-list .auth-section {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .explorer .site-header .auth-links,
        .shared-list .site-header .auth-links {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 0;
        }

        /* User badge link for logged in users */
        .explorer .user-badge-link,
        .shared-list .user-badge-link {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 4px 10px 4px 4px;
            border-radius: var(--radius);
            text-decoration: none;
            transition: all 0.15s ease;
        }

        .explorer .user-badge-link:hover,
        .shared-list .user-badge-link:hover {
            border-color: var(--border-focus);
            box-shadow: var(--shadow-sm);
        }

        .explorer .user-avatar,
        .shared-list .user-avatar {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            background: var(--ink);
            color: var(--surface);
            font-size: 0.75rem;
            font-weight: 600;
            border-radius: 6px;
            text-transform: uppercase;
            transition: transform 0.15s ease;
        }

        .explorer .user-badge-link:hover .user-avatar,
        .shared-list .user-badge-link:hover .user-avatar {
            transform: scale(1.05);
        }

        .explorer .user-name,
        .shared-list .user-name {
            font-size: 0.8125rem;
            font-weight: 500;
            color: var(--ink);
            max-width: 100px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .explorer .user-badge-icon,
        .shared-list .user-badge-icon {
            width: 14px;
            height: 14px;
            color: var(--ink-muted);
            transition: transform 0.15s ease;
        }

        .explorer .user-badge-link:hover .user-badge-icon,
        .shared-list .user-badge-link:hover .user-badge-icon {
            transform: translateY(2px);
            color: var(--ink);
        }

        /* Auth links */
        .explorer .site-header .auth-link,
        .shared-list .site-header .auth-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            font-size: 0.8125rem;
            font-weight: 400;
            color: var(--ink-muted);
            text-decoration: none;
            border-radius: var(--radius);
            transition: all 0.15s ease;
        }

        .explorer .site-header .auth-link::after,
        .shared-list .site-header .auth-link::after {
            display: none;
        }

        .explorer .site-header .auth-link:hover,
        .shared-list .site-header .auth-link:hover {
            color: var(--ink);
            background: var(--surface-alt);
        }

        .explorer .site-header .auth-link.subtle,
        .shared-list .site-header .auth-link.subtle {
            color: var(--ink-muted);
        }

        .explorer .site-header .auth-link.subtle:hover,
        .shared-list .site-header .auth-link.subtle:hover {
            color: var(--ink);
        }

        .explorer .site-header .auth-link.primary,
        .shared-list .site-header .auth-link.primary {
            background: var(--ink);
            color: var(--surface);
            font-weight: 500;
            padding: 8px 16px;
        }

        .explorer .site-header .auth-link.primary:hover,
        .shared-list .site-header .auth-link.primary:hover {
            background: var(--accent-hover);
        }

        .explorer .auth-arrow,
        .shared-list .auth-arrow {
            width: 14px;
            height: 14px;
            transition: transform 0.2s ease;
        }

        .explorer .site-header .auth-link.primary:hover .auth-arrow,
        .shared-list .site-header .auth-link.primary:hover .auth-arrow {
            transform: translateX(2px);
        }

        .explorer .auth-icon,
        .shared-list .auth-icon {
            width: 15px;
            height: 15px;
            opacity: 0.7;
        }

        .explorer .site-header .auth-link:hover .auth-icon,
        .shared-list .site-header .auth-link:hover .auth-icon {
            opacity: 1;
        }

        /* Logout button */
        .explorer .auth-logout-btn,
        .shared-list .auth-logout-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            font-family: var(--font-body);
            font-size: 0.8125rem;
            font-weight: 400;
            color: var(--ink-muted);
            background: transparent;
            border: none;
            border-radius: var(--radius);
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .explorer .auth-logout-btn:hover,
        .shared-list .auth-logout-btn:hover {
            color: var(--ink);
            background: var(--surface-alt);
        }

        .explorer .auth-logout-btn .auth-icon,
        .shared-list .auth-logout-btn .auth-icon {
            opacity: 0.7;
            transition: opacity 0.15s ease;
        }

        .explorer .auth-logout-btn:hover .auth-icon,
        .shared-list .auth-logout-btn:hover .auth-icon {
            opacity: 1;
        }

        /* Tablet responsive header */
        @media (max-width: 768px) {
            .explorer .site-brand,
            .shared-list .site-brand {
                gap: 20px;
            }

            .explorer .site-nav,
            .shared-list .site-nav {
                gap: 4px;
                padding-left: 14px;
            }

            .explorer .site-nav-link,
            .shared-list .site-nav-link {
                padding: 5px 8px;
                font-size: 0.75rem;
            }

            .explorer .site-header .auth-link,
            .shared-list .site-header .auth-link {
                padding: 6px 10px;
                font-size: 0.75rem;
            }

            .explorer .auth-logout-btn,
            .shared-list .auth-logout-btn {
                padding: 6px 10px;
                font-size: 0.75rem;
            }

            .explorer .user-name,
            .shared-list .user-name {
                max-width: 80px;
            }

            .explorer .auth-section,
            .shared-list .auth-section {
                gap: 10px;
            }
        }

        /* Mobile responsive header */
        @media (max-width: 540px) {
            .explorer .site-header,
            .shared-list .site-header {
                padding: 10px 0 12px;
            }

            .explorer .header-inner,
            .shared-list .header-inner {
                padding-bottom: 10px;
            }

            .explorer .site-brand,
            .shared-list .site-brand {
                gap: 10px;
            }

            /* Compact nav on mobile */
            .explorer .site-nav,
            .shared-list .site-nav {
                padding-left: 8px;
                border-left: 1px solid var(--border);
                gap: 0;
            }

            /* Hide "Sākums" on mobile - logo already links home */
            .explorer .site-nav-link:first-child,
            .shared-list .site-nav-link:first-child {
                display: none;
            }

            .explorer .site-nav-link,
            .shared-list .site-nav-link {
                padding: 4px 8px;
                font-size: 0.7rem;
            }

            /* Smaller logo */
            .explorer .tile,
            .shared-list .tile {
                width: 14px;
                height: 14px;
                font-size: 9px;
            }

            .explorer .mosaic-row,
            .shared-list .mosaic-row {
                gap: 1px;
            }

            .explorer .logo-mosaic,
            .shared-list .logo-mosaic {
                gap: 1px;
            }

            /* Compact auth */
            .explorer .auth-section,
            .shared-list .auth-section {
                gap: 8px;
            }

            .explorer .user-badge-link,
            .shared-list .user-badge-link {
                padding: 3px;
                gap: 0;
                background: transparent;
                border: 1px solid var(--border);
            }

            .explorer .user-badge-link:hover,
            .shared-list .user-badge-link:hover {
                background: var(--surface-alt);
            }

            .explorer .user-avatar,
            .shared-list .user-avatar {
                width: 26px;
                height: 26px;
                font-size: 0.7rem;
            }

            .explorer .user-name,
            .shared-list .user-name {
                display: none;
            }

            .explorer .user-badge-icon,
            .shared-list .user-badge-icon {
                display: none;
            }

            /* Icon-only buttons */
            .explorer .site-header .auth-link,
            .shared-list .site-header .auth-link {
                padding: 6px;
                gap: 0;
            }

            .explorer .site-header .auth-link span,
            .shared-list .site-header .auth-link span {
                display: none;
            }

            .explorer .site-header .auth-link .auth-icon,
            .shared-list .site-header .auth-link .auth-icon {
                width: 18px;
                height: 18px;
                opacity: 1;
            }

            .explorer .site-header .auth-link.subtle,
            .shared-list .site-header .auth-link.subtle {
                display: none;
            }

            .explorer .site-header .auth-link.primary,
            .shared-list .site-header .auth-link.primary {
                padding: 7px 12px;
            }

            .explorer .site-header .auth-link.primary span,
            .shared-list .site-header .auth-link.primary span {
                display: inline;
                font-size: 0.8125rem;
            }

            .explorer .auth-arrow,
            .shared-list .auth-arrow {
                display: none;
            }

            .explorer .auth-logout-btn,
            .shared-list .auth-logout-btn {
                padding: 6px;
                gap: 0;
            }

            .explorer .auth-logout-btn span,
            .shared-list .auth-logout-btn span {
                display: none;
            }

            .explorer .auth-logout-btn .auth-icon,
            .shared-list .auth-logout-btn .auth-icon {
                width: 18px;
                height: 18px;
                opacity: 1;
            }
        }

        /* Very small screens */
        @media (max-width: 380px) {
            .explorer .container,
            .shared-list .container {
                padding: 0 16px;
            }

            .explorer .tile,
            .shared-list .tile {
                width: 12px;
                height: 12px;
                font-size: 8px;
            }

            .explorer .user-badge-link,
            .shared-list .user-badge-link {
                padding: 2px;
            }

            .explorer .user-avatar,
            .shared-list .user-avatar {
                width: 24px;
                height: 24px;
                font-size: 0.65rem;
            }

            /* Hide nav on very small screens */
            .explorer .site-nav,
            .shared-list .site-nav {
                display: none;
            }

            .explorer .site-header .auth-link.primary,
            .shared-list .site-header .auth-link.primary {
                padding: 6px 10px;
            }

            .explorer .site-header .auth-link.primary span,
            .shared-list .site-header .auth-link.primary span {
                font-size: 0.75rem;
            }
        }
