:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --border: #e2e5ea;
    --text: #1c2230;
    --text-muted: #6b7280;
    --accent: #0f6e5c;
    --accent-hover: #0b5747;
    --accent-soft: #e6f2ef;
    --danger: #b3441e;
    --radius: 10px;
    --layout-single-max-width: 1500px;
    --shadow: 0 1px 3px rgba(20, 24, 33, 0.06), 0 1px 2px rgba(20, 24, 33, 0.04);
    --shadow-hover: 0 6px 20px rgba(20, 24, 33, 0.10);

    /* Lifecycle-status colors (Phase 5) — one per entry_type "class" */
    --logo-height: 64px;
    --status-versteigerung: #2563eb;
    --status-verschiebung: #d97706;
    --status-entfall: #6b7280;
    --status-anbote: #7c3aed;
    --status-zuschlag: #16a34a;
    --status-meistbotsverteilung: #065f46;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #14171c;
        --surface: #1c2028;
        --border: #2c313b;
        --text: #e7e9ee;
        --text-muted: #9aa1ad;
        --accent: #2fbf9b;
        --accent-hover: #4fd6b3;
        --accent-soft: #16342d;
        --danger: #e2825a;
        --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.45);

        --status-versteigerung: #60a5fa;
        --status-verschiebung: #fbbf24;
        --status-entfall: #9aa1ad;
        --status-anbote: #a78bfa;
        --status-zuschlag: #4ade80;
        --status-meistbotsverteilung: #34d399;
    }
}

#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--bg);
    transition: opacity 0.6s ease;
}
#splash-screen.splash-hidden { opacity: 0; pointer-events: none; }
.splash-logo { width: min(33vmin, 220px); height: min(33vmin, 220px); object-fit: contain; }
.splash-title { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: 0.5px; }

#btn-save-alert { margin: 4px 0; }

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.45;
}

a { color: inherit; text-decoration: none; }

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header h1 {
    font-size: 18px;
    margin: 0;
    white-space: nowrap;
}

.site-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    font-size: 18px;
    font-weight: bold;
}

.site-logo {
    height: var(--logo-height, 64px);
    width: auto;
    border-radius: 6px;
    display: block;
}

.site-header-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}

@media (max-width: 600px) {
    .site-header {
        padding: 10px 14px;
        gap: 10px;
    }
    .site-logo {
        height: 44px;
    }
}

.search-box input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
}

.search-box input:focus {
    outline: 2px solid var(--accent);
    outline-offset: -1px;
}

.layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1000px);
    gap: 24px;
    margin: 24px auto;
    padding: 0 24px;
    align-items: start;
    justify-content: center;
}

@media (max-width: 800px) {
    .layout { grid-template-columns: 1fr; }
    .filters {
        position: static !important;
        top: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
    }
    .filters:hover {
        overflow-y: visible !important;
    }
}

@media (max-width: 768px) {
    .filter-box {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
        margin-bottom: 16px;
    }

    .filter-group {
        margin-bottom: 0;
    }

    .filter-row {
        flex-direction: column;
        gap: 8px;
    }

    .filter-row input,
    .filter-row select {
        width: 100%;
    }

    .filter-actions {
        gap: 10px;
    }

    .btn,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 10px 16px;
        font-size: 13px;
    }
}

.layout-single {
    grid-template-columns: 1fr;
    max-width: var(--layout-single-max-width);
}

.preset-filters {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.preset-filters-main {
    width: 100%;
}

.preset-filters-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.preset-filters .nav-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.preset-filters .nav-icon-btn:hover {
    background: var(--bg);
    border-color: var(--accent);
}

.preset-filters .nav-icon-btn.active {
    background: var(--accent);
    border-color: var(--accent);
}

/* "Abgelaufene Objekte" toggle above the results grid (Maintainer+, only ever shown
   once the 🚫 globally-hidden view is active) — same active-state convention as
   .nav-icon-btn.active above, since this button isn't in that scope. */
#btn-toggle-expired.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.list-page-title {
    font-size: 18px;
    margin: 0;
}

.legal-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 16px;
}

.filters {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    position: sticky;
    top: 96px;
    z-index: 9;
    max-height: calc(100vh - 112px);
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    transition: overflow-y 0.1s;
}
.filters:hover {
    overflow-y: auto;
}

.filters h2 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin: 0 0 14px;
}

.filter-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.filter-group {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.filter-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 0;
    cursor: pointer;
}

.filter-group select,
.filter-group input:not([type="checkbox"]) {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

@media (prefers-color-scheme: dark) {
    .filter-group select:focus,
    .filter-group input:focus {
        box-shadow: 0 0 0 3px rgba(47, 191, 155, 0.15);
    }
}

.filter-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.filter-hint {
    margin: 6px 0 0;
    font-size: 11px;
    color: var(--text-muted);
}

.filter-row input,
.filter-row select {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.filter-row input:focus,
.filter-row select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

@media (prefers-color-scheme: dark) {
    .filter-row input:focus,
    .filter-row select:focus {
        box-shadow: 0 0 0 3px rgba(47, 191, 155, 0.15);
    }
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn {
    display: inline-block;
    padding: 11px 20px;
    border-radius: 8px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    width: 100%;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    width: 100%;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
}

.ai-disclaimer {
    font-size: 11px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2px 10px;
    margin-left: 8px;
}

.ai-tabs {
    display: flex;
    gap: 12px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ai-tab-btn {
    padding: 8px 14px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-tab-btn:hover { color: var(--text); }
.ai-tab-btn.active {
    border-bottom-color: var(--accent);
    color: var(--accent);
}

.ai-score-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.ai-score {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    background: var(--text-muted);
}

.ai-score-1, .ai-score-2 { background: #c0392b; }
.ai-score-3 { background: #b7860b; }
.ai-score-4, .ai-score-5 { background: var(--accent); }

.ai-begruendung {
    margin: 0;
    font-size: 14px;
}

.ai-subheading {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    margin: 16px 0 6px;
}

.ai-list {
    margin: 0;
    padding-left: 20px;
}

.ai-list li {
    margin-bottom: 4px;
    font-size: 14px;
}

.ai-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
}

.results-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 14px;
}

.per-page-select {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.per-page-select select {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 12px;
}

.bulk-ai {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
}

.bulk-ai-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.bulk-ai-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bulk-ai-progress-bar {
    width: 120px;
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    overflow: hidden;
}

.bulk-ai-progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.2s ease;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.card-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
}

.card-flags {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.card-flag-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(20, 24, 33, 0.55);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.1s ease;
}

.card-flag-btn:hover { background: rgba(20, 24, 33, 0.8); }
.card-flag-btn:active { transform: scale(0.92); }
.card-flag-btn:disabled { opacity: 0.5; cursor: default; }

.card-favorite-btn.active { background: #b7860b; color: #fff; }
.card-ignore-btn.active { background: var(--danger); color: #fff; }

.card-global-hide-btn { background: rgba(185, 28, 28, 0.7); }
.card-global-hide-btn:hover { background: rgba(185, 28, 28, 0.9); }

/* Unlinked lifecycle entries (searchUnlinkedLifecycleEntries()) have no case_id, so
   Favorit/Ignorieren/Global-ausblenden have nothing to act on — grayscale + disabled
   instead of the normal :disabled dim (which is also used for the brief in-flight
   request state and would look identical to "temporarily busy"). */
.card-flag-btn.is-unavailable,
.card-flag-btn.is-unavailable:hover {
    background: rgba(120, 128, 140, 0.35);
    filter: grayscale(1);
    opacity: 0.55;
    cursor: not-allowed;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.card-thumb {
    position: relative;
    margin: -16px -16px 0;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-score {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-thumb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: rgba(20, 24, 33, 0.6);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.1s ease;
    z-index: 4;
    user-select: none;
    padding: 0;
    line-height: 1;
}

.card-wrap:hover .card-thumb-nav,
.card-thumb:hover .card-thumb-nav {
    opacity: 1;
}

.card-thumb-nav:hover {
    background: rgba(20, 24, 33, 0.9);
}

.card-thumb-nav:active {
    transform: translateY(-50%) scale(0.92);
}

.card-thumb-prev {
    left: 6px;
}

.card-thumb-next {
    right: 6px;
}

.card-thumb-dots {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 4;
    pointer-events: none;
}

.card-thumb-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: background 0.2s ease, transform 0.2s ease;
}

.card-thumb-dot.active {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.25);
}

.card-thumb-placeholder {
    width: 34%;
    height: 34%;
    color: var(--accent);
    opacity: 0.55;
}

.badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
}

.badge.removed {
    background: #fbe7e0;
    color: var(--danger);
}

/* Lifecycle-status badge colors, entry_type -> class (see status_class() in PHP /
   statusClass() in search.js — kept in sync manually, same pattern as PLACEHOLDER_ICON) */
.badge.status-versteigerung { background: color-mix(in srgb, var(--status-versteigerung) 15%, transparent); color: var(--status-versteigerung); }
.badge.status-verschiebung { background: color-mix(in srgb, var(--status-verschiebung) 15%, transparent); color: var(--status-verschiebung); }
.badge.status-entfall { background: color-mix(in srgb, var(--status-entfall) 15%, transparent); color: var(--status-entfall); }
.badge.status-anbote { background: color-mix(in srgb, var(--status-anbote) 15%, transparent); color: var(--status-anbote); }
.badge.status-zuschlag { background: color-mix(in srgb, var(--status-zuschlag) 15%, transparent); color: var(--status-zuschlag); }
.badge.status-meistbotsverteilung { background: color-mix(in srgb, var(--status-meistbotsverteilung) 15%, transparent); color: var(--status-meistbotsverteilung); }

.card h3 {
    font-size: 15px;
    margin: 0;
}

.card .address {
    font-size: 13px;
    color: var(--text-muted);
}

.card .meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.price-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card .price {
    font-weight: 700;
    color: var(--text);
}

.card .date {
    color: var(--text-muted);
}

/* Ghost tile for a favorited/ignored case that has since become unavailable
   (terminal status, expired past the visibility window for this visitor's tier) */
.card-unavailable {
    cursor: default;
    filter: grayscale(1);
    opacity: 0.75;
}

.card-unavailable:hover {
    transform: none;
    box-shadow: var(--shadow);
}

.card-unavailable-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-18deg);
    background: rgba(20, 24, 33, 0.75);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 6px 18px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
}

.empty-state, .loading-state {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.pagination button {
    padding: 7px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-size: 13px;
}

.pagination button[disabled] {
    opacity: 0.4;
    cursor: default;
}

.pagination button.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Detail page */
.detail {
    max-width: 860px;
    margin: 24px auto;
    padding: 0 24px;
}

.detail-back {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
}

.detail-header {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 16px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.detail-header h1 {
    font-size: 22px;
    margin: 8px 0 4px;
}

.detail-header .address {
    color: var(--text-muted);
    font-size: 15px;
}

.address-login-hint {
    margin-left: 6px;
    font-size: 13px;
}

.detail-price-row {
    display: flex;
    gap: 24px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.detail-price-row div strong {
    display: block;
    font-size: 18px;
}

.detail-price-row div span {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

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

.detail-section h2 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    margin: 0 0 14px;
}

.live-iframe-hint {
    color: var(--text-muted);
    font-size: 13px;
    margin: -8px 0 14px;
}

.live-edikte-iframe {
    display: block;
    width: 100%;
    min-height: 600px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

details.detail-section > summary.section-summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    user-select: none;
}

details.detail-section > summary.section-summary::-webkit-details-marker {
    display: none;
}

details.detail-section > summary.section-summary h2 {
    margin: 0;
}

details.detail-section[open] > summary.section-summary {
    margin-bottom: 14px;
}

details.detail-section .section-toggle-icon {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    display: inline-block;
}

details.detail-section .section-toggle-icon::after {
    content: '▼';
}

details.detail-section[open] .section-toggle-icon {
    transform: rotate(180deg);
}

.attr-table {
    width: 100%;
    border-collapse: collapse;
}

.attr-table tr {
    border-bottom: 1px solid var(--border);
}

.attr-table tr:last-child { border-bottom: none; }

.attr-table th {
    text-align: left;
    padding: 8px 12px 8px 0;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    vertical-align: top;
    width: 240px;
}

.attr-table td {
    padding: 8px 0;
    font-size: 13px;
    white-space: pre-line;
}

.attr-table tr.ai-warning-row {
    background: rgba(239, 68, 68, 0.08);
}

.attr-table tr.ai-warning-row th {
    color: #dc2626;
    font-weight: 700;
    padding-left: 6px;
}

.attr-table tr.ai-warning-row td {
    color: #b91c1c;
    font-weight: 600;
    padding-right: 6px;
}

@media (max-width: 640px) {
    .attr-table,
    .attr-table tbody,
    .attr-table tr,
    .attr-table th,
    .attr-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .attr-table tr {
        padding: 8px 0;
        border-bottom: 1px solid var(--border);
    }
    .attr-table th {
        width: 100%;
        padding: 0 0 2px 0;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-muted);
        border: none;
    }
    .attr-table td {
        width: 100%;
        padding: 0 0 4px 0;
        font-size: 13px;
        color: var(--text);
        word-break: break-word;
        overflow-wrap: anywhere;
        border: none;
    }
    .attr-table tr.ai-warning-row th,
    .attr-table tr.ai-warning-row td {
        padding-left: 6px;
        padding-right: 6px;
    }
}

.table-scroll {
    overflow-x: auto;
    max-height: 550px;
    overflow-y: auto;
}

.table-scroll thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--surface);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.admin-table {
    word-break: break-word;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .table-responsive .admin-table,
    .table-responsive table {
        min-width: 600px;
    }
}

.row-edit-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 14px;
    line-height: 1;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.row-edit-toggle:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.row-edit-toggle[aria-pressed="true"] {
    background: var(--accent-soft);
    border-color: var(--accent);
}

#user-table input[readonly] {
    background: var(--bg);
    color: var(--text-muted);
    cursor: default;
}

.not-found {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.timeline {
    margin-bottom: 16px;
}

.timeline-track {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 28px;
    padding: 0 4px;
}

.timeline-line-bg,
.timeline-line-fill {
    position: absolute;
    left: 4px;
    right: 4px;
    top: 50%;
    height: 3px;
    transform: translateY(-50%);
    border-radius: 2px;
}

.timeline-line-bg {
    background: var(--border);
}

.timeline-line-fill {
    right: auto;
    background: var(--accent);
    transition: width 0.2s ease;
}

.timeline-circle {
    position: relative;
    z-index: 1;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    border: 2px solid var(--surface);
    box-shadow: 0 0 0 1px var(--border);
    cursor: pointer;
    flex: none;
}

.timeline-circle:hover { transform: scale(1.25); }

.timeline-circle.current {
    width: 16px;
    height: 16px;
    box-shadow: 0 0 0 2px var(--accent);
}

.timeline-circle.status-pending {
    background: var(--border);
    cursor: default;
    box-shadow: none;
}

.timeline-circle.status-pending:hover { transform: none; }

.timeline-circle.non-interactive {
    cursor: default;
}

.timeline-circle.non-interactive:hover { transform: none; }

.timeline-circle.status-versteigerung { background: var(--status-versteigerung); }
.timeline-circle.status-verschiebung { background: var(--status-verschiebung); }
.timeline-circle.status-entfall { background: var(--status-entfall); }
.timeline-circle.status-anbote { background: var(--status-anbote); }
.timeline-circle.status-zuschlag { background: var(--status-zuschlag); }
.timeline-circle.status-meistbotsverteilung { background: var(--status-meistbotsverteilung); }

.lifecycle-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.lifecycle-badge {
    background: var(--surface);
    color: var(--text-muted);
    border: 1px solid var(--border);
    cursor: default;
}

.lifecycle-badge-days {
    color: var(--text);
}

.carousel {
    margin-bottom: 16px;
}

.carousel-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    height: 420px;
}

.carousel-placeholder-icon {
    width: 22%;
    height: 22%;
    color: var(--accent);
    opacity: 0.4;
}

.carousel-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.25s ease, transform 0.3s ease;
}

.carousel-image.is-swapping {
    opacity: 0;
}

.carousel-image.no-transition {
    transition: none;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    z-index: 10;
}

.carousel-arrow:hover { background: var(--accent-soft); color: var(--accent); }
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }

/* Lifecycle-tier photo visibility overlay (feature added 2026-09-18) — either "this
   object's data was removed" (Basic/Pro, once the source document is pulled) or
   "log in for more" (Public/guests). Sits over .carousel-main, which is always
   position: relative, whether it's showing a real photo or the empty placeholder. */
.carousel-banner {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    background: rgba(20, 24, 33, 0.62);
}

.carousel-banner span {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    max-width: 360px;
}

.carousel-banner a {
    color: var(--accent-hover);
    text-decoration: underline;
}

.carousel-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.carousel-thumb {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    flex: none;
    opacity: 0.7;
}

.carousel-thumb:hover { opacity: 1; }

.carousel-thumb.active {
    border-color: var(--accent);
    opacity: 1;
}

.doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.doc-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

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

.doc-list a {
    color: var(--accent);
    font-weight: 600;
}

.doc-size {
    color: var(--text-muted);
    white-space: nowrap;
}

/* Footer (Impressum/AGB/Datenschutz/Löschanfrage links) */

.site-footer {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px 24px 32px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
}

.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 10px;
}

.site-footer-nav a {
    color: var(--text-muted);
    text-decoration: underline;
}

.site-footer-nav a:hover { color: var(--text); }

.site-footer-note { margin: 0; max-width: 760px; }

.site-footer-note a { color: var(--text-muted); text-decoration: underline; }

/* Legal pages (Impressum/AGB/Datenschutz/Löschanfrage) */

.legal-page {
    max-width: 760px;
    margin: 24px auto;
    padding: 0 24px 40px;
}

.legal-page h1 { margin-top: 20px; }

.legal-page h2 {
    font-size: 18px;
    margin: 32px 0 8px;
}

.legal-page h3 {
    font-size: 15px;
    margin: 20px 0 6px;
}

.legal-page p, .legal-page li {
    font-size: 14px;
    color: var(--text);
}

.legal-page ul { padding-left: 20px; }

.legal-meta {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: -8px;
}

.legal-notice {
    background: var(--accent-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 13px;
}

/* Deletion-request form (reuses .filter-group from the search sidebar) */

.legal-form {
    max-width: 480px;
    margin: 20px 0;
}

.legal-form textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
}

.deletion-result {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
}

.deletion-result-ok {
    background: var(--accent-soft);
    color: var(--accent);
}

.deletion-result-error {
    background: rgba(179, 68, 30, 0.1);
    color: var(--danger);
}

/* Consent gate (must be accepted before any listing data renders) */

.consent-gate {
    max-width: 640px;
    margin: 60px auto;
    padding: 0 24px;
}

/* Consent gate's own splash (plays before the form, always — no sessionStorage skip,
   since a visitor who hasn't accepted yet must see it every time) reuses index.php's
   #splash-screen/.splash-logo/.splash-title markup, just scaled up 2x via this more
   specific selector so index.php's own splash size is unaffected. */
.consent-gate .splash-logo {
    width: min(66vmin, 440px);
    height: min(66vmin, 440px);
}

.consent-gate-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 32px;
    transition: opacity 0.6s ease;
}

.consent-gate-box-hidden {
    display: none !important;
}

.consent-gate-box h2 { margin-top: 0; }

.consent-gate-box p { font-size: 14px; }

/* The AGB/Datenschutz links in Consent::renderGate() were reported as "not linked".
   They are linked — but the global reset on line ~57 (a { color: inherit;
   text-decoration: none }) leaves them looking exactly like the surrounding body text,
   so nobody could tell. This is the component-level override that reset expects; the
   footer already does the same thing for the same reason.
   Maintainer decision: bold. See todo-next-phase.md section 22 for the open question of
   whether to underline as well — bold alone is emphasis, not a link convention, and
   this is a legally relevant notice where discoverability should not depend on the
   reader guessing.

   Scoped with :not(.legal-hint) deliberately. login.php, register.php and
   resend_confirmation.php reuse .consent-gate-box for their layout, and their footer
   links ("Noch kein Konto?", "Zur Anmeldung") sit in <p class="legal-hint">. A bare
   .consent-gate-box p a would have restyled all of those too — a wider visual change
   than was asked for. The consent gate's own AGB/Datenschutz paragraph carries no
   class, so this selector separates them cleanly. */
.consent-gate-box p:not(.legal-hint) a {
    font-weight: 700;
}

.consent-gate-form {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.consent-gate-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    cursor: pointer;
}

.consent-gate-checkbox input { margin-top: 2px; }

/* Login */

.login-field {
    margin-bottom: 16px;
}

.login-field label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.login-field input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    box-sizing: border-box;
}

.login-error {
    background: rgba(179, 68, 30, 0.1);
    color: var(--danger);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
}

.login-user {
    font-size: 13px;
}

.logout-form {
    display: inline;
}

.logout-form button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}

.logout-form button:hover {
    text-decoration: underline;
}

/* Bildmoderation (Page-Maintainer image-classification moderation queue) */

.moderation-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.moderation-item {
    display: flex;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
}

@media (max-width: 768px) {
    .table-responsive .moderation-item {
        min-width: 420px;
    }
}

.moderation-thumb {
    width: 140px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    flex: none;
    background: var(--accent-soft);
}

.moderation-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    justify-content: center;
}

.moderation-correct,
.carousel-rotate-controls,
.carousel-moderate-controls,
.carousel-pin-controls,
.classify-target-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
    box-sizing: border-box;
}

.moderation-correct {
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.moderation-select {
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
    max-width: 100%;
    box-sizing: border-box;
}

.moderation-status {
    font-size: 12px;
    color: var(--text-muted);
}

.admin-images-section .moderation-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.admin-images-section .moderation-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 8px;
}

.admin-images-section .moderation-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
}

/* "Falsch kategorisiert?" suggestion control on public-facing image sections */

.category-suggest-slot {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
}

.carousel-top-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
}

.carousel-overlay-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(20, 24, 33, 0.65);
    color: #fff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.carousel-overlay-btn:hover {
    background: rgba(20, 24, 33, 0.9);
    transform: scale(1.08);
}

.carousel-overlay-btn.is-pinned {
    background: rgba(234, 179, 8, 0.85);
    color: #fff;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}

.carousel-overlay-btn.is-pinned:hover {
    background: rgba(234, 179, 8, 1);
    box-shadow: 0 0 14px rgba(234, 179, 8, 0.8);
}

.carousel-rotate-accept.is-pending {
    background: rgba(34, 197, 94, 0.85);
}

.carousel-rotate-accept.is-pending:hover {
    background: rgba(34, 197, 94, 1);
}

.carousel-rotate-accept.is-success {
    background: rgba(34, 197, 94, 1) !important;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.8) !important;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

.carousel-rotate-accept.is-error {
    background: rgba(239, 68, 68, 1) !important;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.8) !important;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

.category-suggest-slot .category-suggest {
    position: relative;
}

.category-suggest {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 5;
}

.category-suggest-toggle {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(20, 24, 33, 0.75);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.category-suggest-toggle:hover {
    background: rgba(20, 24, 33, 0.95);
    border-color: rgba(255, 255, 255, 0.4);
}

.category-suggest-menu {
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 150px;
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.category-suggest-menu button {
    appearance: none;
    border: none;
    background: none;
    color: var(--text);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    text-align: left;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.category-suggest-menu button:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.category-suggest-toggle:hover { background: rgba(20, 24, 33, 0.8); }

.category-suggest-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 120px;
    max-height: 220px;
    overflow-y: auto;
}

.category-suggest-menu[hidden] {
    display: none;
}

.category-suggest-menu button {
    text-align: left;
    padding: 5px 8px;
    border: none;
    background: none;
    color: var(--text);
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
}

.category-suggest-menu button:hover { background: var(--accent-soft); }

/* "Pläne & Luftbilder" section on detail.php */

.plans-section {
    margin: 24px 0;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.plans-grid figure {
    position: relative;
    margin: 0;
    border-radius: var(--radius);
    background: var(--accent-soft);
    aspect-ratio: 4 / 3;
}

.plans-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
}

/* "Alle Bilder" Page-Maintainer-only admin section on detail.php */

.admin-images-section {
    margin: 24px 0;
    border: 1px dashed var(--danger);
    border-radius: var(--radius);
    padding: 16px;
}

.admin-images-section > h2 {
    color: var(--danger);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 12px;
}

/* Analyst-tier "classify this listing's images" button on detail.php */

.classify-listing-section {
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Quick-filter Active Termine toggle button */
.btn-toggle-active {
    transition: all 0.2s ease;
    border: 1px solid var(--border);
    cursor: pointer;
}

/* Case detail modal overlay (admin_faelle.php) */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 24, 33, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
    animation: modal-fade-in 0.15s ease;
}

.modal-overlay[hidden] {
    display: none;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-dialog {
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    width: 100%;
    max-width: 820px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modal-slide-in 0.18s ease;
}

@keyframes modal-slide-in {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 16px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

.modal-close:hover {
    background: var(--accent-soft);
    color: var(--text);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

.btn-toggle-active.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft), inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.live-iframe-wrap {
    position: relative;
}

.live-iframe-spinner {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--accent, #3b82f6);
    border-radius: 50%;
    animation: live-iframe-spin 0.8s linear infinite;
}

@keyframes live-iframe-spin {
    to { transform: rotate(360deg); }
}

/* Detail header action bubbles / link pills */
.detail-header-links {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 10px 0 12px;
    flex-wrap: wrap;
}

.detail-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s ease;
    line-height: 1.4;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.detail-link-pill:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.detail-link-pill:active {
    transform: translateY(0);
}

.admin-tab-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    border-bottom: 2px solid var(--border);
    padding: 0 4px;
    background: transparent;
}
.admin-tab-link {
    padding: 12px 18px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s ease, border-color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    flex-shrink: 0;
    white-space: nowrap;
}
.admin-tab-link:hover {
    color: var(--text);
    border-bottom-color: var(--border);
}
.admin-tab-link.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 700;
}

.detail-link-pill .pill-icon {
    font-size: 13px;
    display: inline-block;
}
