/* Gallery admin. Desktop-only by decision; shares the palette in tokens.css with the guest gallery. */

.admin-page {
    --gutter: 32px;
    --sidebar: 232px;
    font-family: var(--body-font);
    font-weight: 200;
    color: var(--ink);
    background: var(--page-bg);
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar) 1fr;
}

body:has(.admin-page) {
    display: block;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    background: var(--page-bg);
}

.admin-page :where(button) {
    font-family: inherit;
    font-weight: inherit;
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    cursor: pointer;
}

.admin-page :where(input) {
    font-family: inherit;
    font-weight: inherit;
}

.admin-page :focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

/* ---------------------------------------------------------------- sidebar */

.admin-sidebar {
    background: var(--surface);
    border-right: 1px solid var(--hairline);
    padding: 22px 0 18px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 22px 22px;
}

    .admin-brand img {
        height: 26px;
    }

.admin-brand-name {
    font-family: var(--display-font);
    font-size: 19px;
    color: var(--teal);
}

.admin-nav-group {
    margin-bottom: 18px;
}

.admin-nav-eyebrow {
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--muted-light);
    padding: 0 22px 8px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: calc(100% - 28px);
    margin: 0 14px;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 15px;
    color: var(--muted);
    text-align: left;
    text-decoration: none;
}

    .admin-nav-item:hover {
        background: #f7fafa;
        color: var(--ink);
    }

    .admin-nav-item.active {
        background: var(--mint-tint-2);
        color: var(--teal);
    }

.admin-nav-count {
    font-size: 12px;
    color: var(--muted-light);
}

.admin-nav-item.active .admin-nav-count {
    color: #7bb0b0;
}

.admin-sidebar-footer {
    margin-top: auto;
    padding: 0 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-lang {
    display: flex;
    gap: 10px;
}

    .admin-lang button {
        font-size: 13px;
        color: var(--muted-light);
    }

        .admin-lang button.active {
            color: var(--teal);
        }

.admin-signed-in {
    font-size: 12px;
    color: var(--muted-light);
    line-height: 1.5;
}

.admin-back {
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
}

    .admin-back:hover {
        color: var(--teal);
    }

/* ------------------------------------------------------------------- main */

.admin-main {
    min-width: 0;
    padding-bottom: 60px;
}

.admin-header {
    padding: 28px var(--gutter) 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.admin-title {
    font-family: var(--display-font);
    font-size: 34px;
    line-height: 1.1;
    color: var(--ink);
    margin: 0;
    font-weight: normal;
}

.admin-subline {
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-search {
    width: 262px;
    padding: 13px 20px;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    font-size: 14px;
    color: var(--ink);
    background: var(--surface);
    outline: none;
}

    .admin-search::placeholder {
        color: var(--muted-light);
    }

    .admin-search:focus {
        border-color: var(--teal);
    }

.admin-btn-primary {
    background: var(--teal);
    color: #fff;
    border-radius: 999px;
    padding: 11px 22px;
    font-size: 14px;
    white-space: nowrap;
}

    .admin-btn-primary:hover {
        background: var(--teal-dark);
    }

    .admin-btn-primary:disabled {
        opacity: .6;
        cursor: default;
    }

.admin-btn-outline {
    border: 1px solid var(--teal);
    color: var(--teal);
    border-radius: 999px;
    padding: 8px 15px;
    font-size: 14px;
    background: var(--surface);
    white-space: nowrap;
}

    .admin-btn-outline:hover {
        background: var(--mint-tint);
    }

    .admin-btn-outline.on {
        background: var(--teal);
        color: #fff;
    }

    .admin-btn-outline:disabled {
        border-color: var(--border);
        color: var(--muted-light);
        cursor: default;
        background: var(--surface);
    }

/* ------------------------------------------------------------ filter row */

.admin-filters {
    padding: 22px var(--gutter) 0;
    display: flex;
    align-items: center;
    gap: 18px;
}

.admin-filter-trigger {
    font-size: 14px;
    color: var(--ink);
    white-space: nowrap;
}

    .admin-filter-trigger:hover,
    .admin-filter-trigger.open {
        color: var(--teal);
    }

.admin-filter-divider {
    width: 1px;
    height: 20px;
    background: var(--hairline);
}

.admin-attention {
    font-size: 14px;
    color: var(--muted);
    white-space: nowrap;
}

    .admin-attention.on {
        color: var(--teal);
        text-decoration: underline;
    }

.admin-filters-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
}

.admin-toggle-link {
    font-size: 14px;
    color: var(--muted);
    white-space: nowrap;
}

    .admin-toggle-link:hover {
        color: var(--teal);
    }

/* --------------------------------------------------------------- popovers */

.admin-anchor {
    position: relative;
}

.admin-popover-backdrop {
    position: fixed;
    inset: 0;
    z-index: 45;
}

.admin-popover {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 46;
    min-width: 230px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 16px 44px rgba(0,0,0,.16);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    cursor: default;
}

.admin-popover--right {
    left: auto;
    right: 0;
}

.admin-popover-eyebrow {
    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--muted-light);
}

.admin-option-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 280px;
    overflow-y: auto;
}

.admin-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    border-radius: 8px;
    width: 100%;
    text-align: left;
    font-size: 14px;
    color: var(--ink);
}

    .admin-option:hover {
        background: var(--mint-tint-2);
    }

    .admin-option.selected {
        background: var(--mint-tint-2);
        color: var(--teal);
    }

.admin-option-note {
    margin-left: auto;
    font-size: 12px;
    color: var(--muted-light);
}

/* A checkbox and its label read as one control, on one line. */
.admin-inline-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
    background: transparent;
    text-align: left;
    white-space: nowrap;
}

    .admin-inline-check:hover {
        color: var(--ink);
    }

.admin-checkbox {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 4px;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-size: 11px;
}

    .admin-checkbox .gallery-icon {
        visibility: hidden;
    }

    .admin-checkbox.checked {
        background: var(--teal);
        border-color: var(--teal);
        color: #fff;
    }

        .admin-checkbox.checked .gallery-icon {
            visibility: visible;
        }

.admin-popover-footer {
    display: flex;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--row-divider);
}

    .admin-popover-footer button {
        flex: 1;
        text-align: center;
        border-radius: 999px;
        padding: 9px;
        font-size: 14px;
    }

.admin-btn-ghost {
    border: 1px solid var(--border);
    color: var(--muted);
}

    .admin-btn-ghost:hover {
        color: var(--ink);
    }

.admin-btn-solid {
    background: var(--teal);
    color: #fff;
}

    .admin-btn-solid:hover {
        background: var(--teal-dark);
    }

/* -------------------------------------------------------------- bulk bar */

.admin-bulk {
    margin: 18px var(--gutter) 0;
    background: var(--mint-tint-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-bulk-count {
    font-size: 15px;
    color: var(--teal);
    white-space: nowrap;
}

.admin-bulk-divider {
    width: 1px;
    height: 22px;
    background: var(--border);
}

.admin-bulk-clear {
    margin-left: auto;
    font-size: 13px;
    color: var(--muted);
    text-decoration: underline;
}

/* ------------------------------------------------------------------ grid */

.admin-grid {
    padding: 18px var(--gutter) 0;
    display: grid;
    gap: 18px;
}

.admin-tile-wrap {
    min-width: 0;
}

/* A square cell rather than 3:2, so a portrait frame gets real height instead of being reduced to a
   sliver. The cells stay uniform, which is what keeps the grid readable at 600 photos. */
.admin-tile {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 9px;
    overflow: hidden;
    width: 100%;
    display: block;
    background: var(--hairline);
    padding: 0;
}

    /* Contained, not cropped: this grid is for recognising one photo before deleting it, and a centre
       crop of a portrait throws away exactly what tells two frames apart. */
    .admin-tile img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .admin-tile.editing {
        outline: 3px solid var(--teal);
        outline-offset: 2px;
    }

.admin-tile-check {
    position: absolute;
    top: 9px;
    left: 9px;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(0,0,0,.08);
    display: grid;
    place-items: center;
    font-size: 11px;
    z-index: 2;
}

    .admin-tile-check .gallery-icon {
        visibility: hidden;
    }

    .admin-tile-check.checked .gallery-icon {
        visibility: visible;
    }

    .admin-tile-check.checked {
        background: var(--teal);
        border-color: var(--teal);
        color: #fff;
    }

.admin-tile-star {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,.88);
    display: grid;
    place-items: center;
    font-size: 14px;
    color: var(--muted);
    z-index: 2;
}

    .admin-tile-star.on {
        color: var(--star-gold);
    }

.admin-tile-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 10px 8px;
    background: linear-gradient(transparent, rgba(0,0,0,.5));
    display: flex;
    align-items: center;
    gap: 6px;
}

    .admin-tile-footer .admin-tagged {
        margin-left: auto;
    }

/* Amber rather than teal: the hero pool is a different judgement from the picks. */
.admin-hero-pill {
    font-size: 11px;
    color: #4b3200;
    background: #f3c96b;
    border-radius: 999px;
    padding: 4px 9px;
    white-space: nowrap;
}

.admin-phase-pill {
    font-size: 11px;
    color: #fff;
    background: rgba(3,119,121,.9);
    border-radius: 999px;
    padding: 4px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .admin-phase-pill.unset {
        background: rgba(255,255,255,.22);
        border: 1px dashed rgba(255,255,255,.7);
    }

.admin-tagged {
    font-size: 11px;
    color: rgba(255,255,255,.85);
    white-space: nowrap;
}

.admin-tile-caption {
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .admin-tile-caption .unassigned {
        color: var(--muted-light);
    }

.admin-grid-tail {
    padding: 26px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
}

.admin-spinner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--border);
    border-top-color: var(--teal);
    animation: admin-spin 800ms linear infinite;
}

@keyframes admin-spin {
    to { transform: rotate(360deg); }
}

/* --------------------------------------------------------- inline editor */

.admin-editor {
    margin: 18px var(--gutter) 0;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 16px;
    padding: 24px;
    display: grid;
    grid-template-columns: 340px 1fr 300px;
    gap: 32px;
}

.admin-editor-preview {
    width: 340px;
    height: 238px;
    object-fit: cover;
    border-radius: 9px;
    display: block;
    background: var(--hairline);
}

.admin-editor-filename {
    font-size: 14px;
    color: var(--ink);
    margin-top: 12px;
    word-break: break-all;
}

.admin-editor-meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.7;
}

.admin-derivative-ok {
    color: var(--teal);
}

.admin-derivative-missing {
    color: var(--muted-light);
}

.admin-editor-middle {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.admin-field-label {
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--muted-light);
    margin-bottom: 10px;
}

.admin-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-chip {
    font-size: 13px;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 14px;
    background: var(--surface);
}

    .admin-chip.selected {
        background: var(--teal);
        border-color: var(--teal);
        color: #fff;
    }

.admin-dropdown-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 16px;
    background: var(--surface);
}

    .admin-dropdown-pill .caret {
        color: var(--muted-light);
    }

.admin-field-help {
    font-size: 12px;
    color: var(--muted-light);
    max-width: 260px;
    line-height: 1.5;
}

.admin-field-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-editor-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    border-top: 1px solid var(--hairline);
    padding-top: 16px;
    margin-top: auto;
}

.admin-saved-note {
    font-size: 12px;
    color: var(--muted-light);
}

.admin-editor-danger {
    font-size: 13px;
    color: var(--muted);
    text-decoration: underline;
}

    .admin-editor-danger:hover {
        color: #c0392b;
    }

.admin-editor-close {
    font-size: 13px;
    color: var(--teal);
}

.admin-editor-people {
    border-left: 1px solid var(--hairline);
    padding-left: 28px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-inline-search {
    width: 100%;
    padding: 8px 14px;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    font-size: 13px;
    color: var(--ink);
    outline: none;
    background: var(--surface);
    margin-bottom: 8px;
}

    .admin-inline-search::placeholder {
        color: var(--muted-light);
    }

.admin-people-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 260px;
    overflow-y: auto;
}

.admin-add-person {
    font-size: 12px;
    color: var(--muted);
    margin-top: 12px;
    border-top: 1px solid var(--row-divider);
    padding-top: 12px;
    text-align: left;
}

    .admin-add-person:hover {
        color: var(--teal);
    }

/* ----------------------------------------------------- cards and tables */

.admin-card {
    margin: 18px var(--gutter) 0;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 16px;
    overflow: hidden;
}

.admin-card--narrow {
    max-width: 760px;
}

.admin-banner {
    margin: 18px var(--gutter) 0;
    background: var(--mint-tint-2);
    border-radius: 12px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 14px;
    color: var(--teal);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

    .admin-table th {
        height: 44px;
        padding: 0 20px;
        text-align: left;
        font-size: 11px;
        letter-spacing: 1.4px;
        text-transform: uppercase;
        color: var(--muted-light);
        font-weight: normal;
        border-bottom: 1px solid var(--hairline);
        white-space: nowrap;
    }

    .admin-table td {
        padding: 10px 20px;
        height: 62px;
        font-size: 15px;
        color: var(--ink);
        border-bottom: 1px solid var(--row-divider);
        vertical-align: middle;
    }

    .admin-table tr:last-child td {
        border-bottom: 0;
    }

    .admin-table tbody tr:hover {
        background: var(--row-hover);
    }

.admin-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.admin-empty-value {
    color: var(--muted-light);
}

.admin-row-actions {
    display: flex;
    gap: 18px;
    justify-content: flex-end;
}

    .admin-row-actions button {
        font-size: 13px;
        color: var(--muted);
        text-decoration: underline;
        white-space: nowrap;
    }

        .admin-row-actions button:hover {
            color: var(--teal);
        }

.admin-soon-pill {
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--teal);
    background: var(--mint-tint);
    border-radius: 999px;
    padding: 2px 8px;
    margin-left: 8px;
    white-space: nowrap;
}

.admin-author-pill {
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--teal);
    background: var(--mint-tint);
    border-radius: 999px;
    padding: 3px 10px;
    margin-left: 10px;
    white-space: nowrap;
}

.admin-status {
    display: inline-block;
    font-size: 12px;
    border-radius: 999px;
    padding: 5px 12px;
    white-space: nowrap;
}

.admin-status--on {
    color: var(--teal);
    background: var(--mint-tint);
}

.admin-status--neutral {
    color: var(--muted);
    background: var(--row-divider);
}

.admin-status--never {
    color: var(--muted-light);
    border: 1px dashed var(--border);
}

.admin-card-footer {
    padding: 18px 20px;
    font-size: 13px;
    color: var(--muted);
    border-top: 1px solid var(--hairline);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.admin-note {
    padding: 0 var(--gutter);
    margin-top: 14px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 760px;
}

.admin-thumb {
    width: 44px;
    height: 33px;
    border-radius: 5px;
    object-fit: cover;
    display: block;
    background: var(--hairline);
}

/* ---------------------------------------------------------------- phases */

.admin-phase-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--row-divider);
}

    .admin-phase-row:last-of-type {
        border-bottom: 0;
    }

    .admin-phase-row.dragging {
        opacity: .5;
    }

    .admin-phase-row.drop-target {
        background: var(--mint-tint-2);
    }

.admin-drag-handle {
    color: #c3cccc;
    cursor: grab;
    font-size: 16px;
    display: inline-flex;
}

.admin-phase-order {
    font-size: 12px;
    color: var(--muted-light);
    width: 14px;
}

.admin-phase-name {
    font-family: var(--display-font);
    font-size: 21px;
    color: var(--ink);
    line-height: 1.2;
}

.admin-phase-count {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.admin-phase-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-step {
    font-size: 12px;
    color: var(--muted);
}

    .admin-step:disabled {
        color: var(--border-light);
        cursor: default;
    }

.admin-phase-add {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-top: 1px solid var(--hairline);
}

.admin-name-inputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    flex: 1;
}

.admin-input {
    padding: 11px 18px;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    font-size: 14px;
    color: var(--ink);
    outline: none;
    background: var(--surface);
    width: 100%;
}

    .admin-input::placeholder {
        color: var(--muted-light);
    }

    .admin-input:focus {
        border-color: var(--teal);
    }

/* ------------------------------------------------------------ upload tray */

.admin-tray {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 300px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: 0 16px 44px rgba(0,0,0,.16);
    padding: 16px;
    z-index: 70;
}

.admin-tray-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ink);
}

.admin-tray-dismiss {
    margin-left: auto;
    color: var(--muted-light);
    font-size: 15px;
}

.admin-tray-track {
    height: 4px;
    border-radius: 2px;
    background: var(--hairline);
    margin: 12px 0;
    overflow: hidden;
}

.admin-tray-fill {
    height: 100%;
    background: var(--teal);
    transition: width 200ms ease;
}

.admin-tray-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-size: 12px;
    color: var(--ink);
}

.admin-tray-thumb {
    width: 34px;
    height: 26px;
    border-radius: 4px;
    object-fit: cover;
    background: var(--hairline);
    flex: 0 0 34px;
}

.admin-tray-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-tray-status {
    color: var(--muted);
    white-space: nowrap;
}

.admin-tray-note {
    font-size: 12px;
    color: var(--muted-light);
    line-height: 1.5;
    margin-top: 10px;
}

/* ----------------------------------------------------------- empty library */

.admin-empty {
    margin: 18px var(--gutter) 0;
    background: var(--surface);
    border: 1px dashed var(--dashed-border);
    border-radius: 16px;
    padding: 70px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

    .admin-empty.dragover {
        border-color: var(--teal);
        background: var(--mint-tint-2);
    }

.admin-empty-inner {
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.admin-empty-title {
    font-family: var(--display-font);
    font-size: 28px;
    color: var(--ink);
}

.admin-empty-text {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}

.admin-empty-actions {
    display: flex;
    gap: 12px;
}

.admin-empty-formats {
    font-size: 12px;
    color: var(--muted-light);
}

/* ---------------------------------------------------------------- loading */

.admin-skeleton-filters {
    padding: 22px var(--gutter) 0;
    display: flex;
    gap: 18px;
}

.admin-skeleton-bar {
    height: 13px;
    border-radius: 999px;
    background: var(--skeleton-bar);
    animation: admin-pulse 1.4s ease-in-out infinite;
}

@keyframes admin-pulse {
    0%, 100% { opacity: .55; }
    50% { opacity: 1; }
}

.admin-skeleton-tile {
    aspect-ratio: 3 / 2;
    border-radius: 9px;
    background-image: var(--skeleton-stripe);
}

.admin-skeleton-caption {
    height: 11px;
    width: 70%;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--skeleton-bar);
    animation: admin-pulse 1.4s ease-in-out infinite;
}

/* ------------------------------------------------------------ unlock gate */

.admin-unlock {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--page-bg);
}

.admin-unlock-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 16px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

    .admin-unlock-card img {
        height: 34px;
        margin: 0 auto;
    }

.admin-unlock-title {
    font-family: var(--display-font);
    font-size: 28px;
    color: var(--teal);
}

.admin-unlock-text {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.admin-unlock-error {
    font-size: 13px;
    color: #c0392b;
}

/* Desktop-only by decision: below this the admin simply says so. */
.admin-too-narrow {
    display: none;
}

@media (max-width: 1023px) {
    .admin-page {
        display: none;
    }

    .admin-too-narrow {
        display: grid;
        place-items: center;
        min-height: 100vh;
        padding: 32px;
        text-align: center;
        font-size: 15px;
        color: var(--muted);
        line-height: 1.7;
        background: var(--page-bg);
    }
}

.admin-add-person-form {
    margin-top: 12px;
    border-top: 1px solid var(--row-divider);
    padding-top: 12px;
}

.admin-add-person-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ------------------------------------------------------------ guest admin */

.admin-guest-form {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-guest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.admin-guest-toggles {
    display: flex;
    gap: 28px;
}

.admin-guest-form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-guest-companion {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-left: 18px;
    color: var(--muted);
}

.admin-guest-event {
    display: inline-block;
    margin-left: 10px;
    font-size: 11px;
    letter-spacing: 1.2px;
    color: var(--muted-light);
}

.admin-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    color: var(--ink);
    background: var(--row-divider);
    border-radius: 4px;
    padding: 2px 7px;
}

.admin-links-row td {
    padding-top: 0;
    padding-bottom: 12px;
    height: auto;
    border-bottom: 1px solid var(--row-divider);
}

.admin-inline-note {
    font-size: 12px;
    color: var(--muted);
}

.admin-status--no {
    color: #b0563f;
    background: #fbeae5;
}

.admin-passphrase-input {
    text-transform: none;
    letter-spacing: normal;
}

.admin-derivative-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-guest-branch {
    color: var(--muted-light);
    font-size: 12px;
}

/* --------------------------------------- one invitation per celebration */

.admin-status-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.admin-guest-invitations {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-guest-invitation {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 28px;
    padding: 10px 14px;
    border: 1px solid var(--hairline);
    border-radius: 12px;
}

    .admin-guest-invitation.active {
        border-color: var(--mint-tint);
        background: #fbfefe;
    }

    /* The terms only apply once the celebration is actually ticked. */
    .admin-guest-invitation .admin-guest-toggles {
        margin-left: auto;
    }

/* ------------------------------------------------------ hero image pool */

.admin-curation-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dfe6e6;
    color: #34495e;
    background: var(--surface);
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 14px;
    white-space: nowrap;
}

    .admin-hero-btn:hover {
        border-color: #f3c96b;
    }

    .admin-hero-btn.on {
        color: #4b3200;
        background: #f3c96b;
        border-color: transparent;
    }

.admin-hero-help {
    margin: 10px 0 0;
    max-width: 40ch;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

/* ------------------------------------------------- a celebration that is over */

.admin-guest-invitation.locked {
    border-style: dashed;
    background: #fbfcfc;
}

.admin-inline-check:disabled {
    cursor: default;
    opacity: 0.55;
}

    .admin-inline-check:disabled:hover {
        color: var(--muted);
    }

.admin-invitation-locked {
    flex-basis: 100%;
    font-size: 12px;
    color: var(--muted-light);
}

/* ------------------------------------------------------- long table bands */

/* Barely there on purpose: enough to follow a row across eight columns, not enough to stripe. */
.admin-table tbody tr.admin-row-alt > td {
    background: var(--row-divider);
}

.admin-input--datetime {
    max-width: 250px;
    font-family: inherit;
}

.admin-popover-search {
    width: calc(100% - 24px);
    margin: 0 12px 10px;
}

/* Gear fields in the inline editor: maker and body get room, the focal length only needs three digits. */
.admin-input--make,
.admin-input--model {
    max-width: 170px;
}

.admin-input--focal {
    max-width: 110px;
}

.admin-camera-batch {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 12px 10px;
}

.admin-camera-batch-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

    /* Ticking the box is what arms the field, so an untouched one cannot be applied by accident. */
    .admin-camera-batch-row .admin-input:disabled {
        background: var(--row-divider);
        color: var(--muted-light);
        cursor: not-allowed;
    }

.admin-camera-batch-label {
    flex: 0 0 120px;
    font-size: 13px;
    color: var(--muted);
}


/* ------------------------------------------------------------ photo statistics
   A tab row inside Photos, a rail that picks the question, and a grid that is the
   whole library answering it. */

.admin-tabs {
    display: flex;
    gap: 26px;
    border-bottom: 1px solid var(--border-light);
    margin: 0 var(--gutter) 22px;
}

.admin-tab {
    font-size: 15px;
    color: var(--muted);
    padding-bottom: 12px;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
}

    .admin-tab.active {
        color: var(--teal);
        border-bottom-color: var(--teal);
    }

.admin-stats {
    display: flex;
    align-items: flex-start;

    /* The design is drawn at 1440px. Left unbounded, a wide monitor stretches the four cards until the
       ranking reads as four unrelated columns. */
    max-width: 1440px;
    margin: 0 var(--gutter);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.admin-stats-rail {
    flex: 0 0 268px;
    align-self: stretch;
    border-right: 1px solid var(--border-light);
    padding: 22px 20px;
}

.admin-stats-eyebrow {
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--muted-light);
    margin-bottom: 10px;
}

.admin-stats-divider {
    height: 1px;
    background: var(--border-light);
    margin: 18px 0;
}

.admin-stats-metrics {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-stats-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 9px;
    font-size: 15px;
    color: var(--ink);
    text-align: left;
}

    .admin-stats-metric:hover {
        background: var(--row-divider);
    }

    .admin-stats-metric.active,
    .admin-stats-metric.active:hover {
        background: var(--teal);
        color: #fff;
    }

.admin-stats-metric-count {
    font-size: 13px;
    color: var(--muted-light);
}

    .admin-stats-metric.active .admin-stats-metric-count {
        color: #fff;
        opacity: .7;
    }

.admin-stats-filters {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-stats-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.admin-stats-filter-label {
    font-size: 15px;
    color: var(--ink);
}

.admin-stats-filter-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--muted);
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    /* Min. ratings means nothing outside the two rating metrics, so it says so rather than lying. */
    .admin-stats-filter-trigger:disabled {
        color: var(--muted-light);
        cursor: not-allowed;
    }

.admin-stats-hint {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.admin-stats-pane {
    flex: 1;
    min-width: 0;
    padding: 22px 32px 32px;
}

.admin-stats-heading {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 18px;
}

.admin-stats-metric-title {
    font-family: var(--display-font);
    font-size: 22px;
    color: var(--ink);
    margin: 0;
}

.admin-stats-summary {
    font-size: 13px;
    color: var(--muted);
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.admin-stats-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
}

    .admin-stats-card:hover {
        border-color: var(--muted-light);
    }

.admin-stats-thumb {
    position: relative;
    aspect-ratio: 3 / 2;
    background: var(--skeleton-bar);
}

    .admin-stats-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.admin-stats-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 13px;
    color: #fff;
    background: rgba(0,0,0,.55);
}

    .admin-stats-rank.first {
        background: var(--teal);
    }

.admin-stats-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-stats-value-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.admin-stats-value {
    font-family: var(--display-font);
    font-size: 22px;
    color: var(--ink);
}

    .admin-stats-value.first {
        color: var(--teal);
    }

.admin-stats-unit {
    font-size: 13px;
    color: var(--muted);
}

.admin-stats-context {
    font-size: 14px;
    color: var(--muted);
}

/* The metrics this ranking is not sorting by, kept visible so choosing one hides nothing. */
.admin-stats-secondary {
    font-size: 13px;
    color: var(--muted-light);
    min-height: 18px;
}

.admin-stats-more {
    display: flex;
    justify-content: center;
    padding-top: 22px;
}

.admin-stats-more-btn {
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid var(--border-light);
    background: var(--surface);
    font-size: 14px;
    color: var(--muted);
}

    .admin-stats-more-btn:hover:not(:disabled) {
        color: var(--ink);
        border-color: var(--muted-light);
    }

/* Two 4,3s can be twenty fours, or ten fives and ten ones. Only the shape tells them apart. */
.admin-stats-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.admin-stats-bars--tall .admin-stats-bar-box {
    height: 34px;
}

.admin-stats-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
}

.admin-stats-bar-box {
    height: 32px;
    display: flex;
    align-items: flex-end;
}

.admin-stats-bar {
    width: 100%;
    border-radius: 3px 3px 0 0;
    background: var(--bar-empty);
}

    .admin-stats-bar.full { background: var(--bar-full); }
    .admin-stats-bar.mid { background: var(--bar-mid); }

.admin-stats-bar-label {
    font-size: 10px;
    color: var(--muted-light);
    text-align: center;
}

.admin-star {
    color: var(--star-gold);
}

/* ------------------------------------------------------------- detail panel */

.admin-detail-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.28);
    z-index: 60;
}

.admin-detail {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 61;
    width: min(880px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.16);
    overflow: hidden;
}

.admin-detail-header {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--hairline);
}

.admin-detail-thumb {
    width: 220px;
    height: 147px;
    object-fit: cover;
    border-radius: 10px;
    flex: 0 0 auto;
    background: var(--skeleton-bar);
}

.admin-detail-headings {
    flex: 1;
    min-width: 0;
}

.admin-detail-title-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.admin-detail-title {
    flex: 1;
    font-family: var(--display-font);
    font-size: 22px;
    color: var(--ink);
    margin: 0;
}

.admin-detail-close {
    font-size: 18px;
    color: var(--muted-light);
}

.admin-detail-meta {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

.admin-detail-stats {
    display: flex;
    gap: 26px;
    margin-top: 18px;
}

.admin-detail-stat--wide {
    flex: 1;
    min-width: 140px;
}

.admin-detail-eyebrow {
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--muted-light);
    margin-bottom: 6px;
}

.admin-detail-value {
    font-family: var(--display-font);
    font-size: 24px;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 6px;
}

    .admin-detail-value.teal {
        color: var(--teal);
    }

.admin-detail-qualifier {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.admin-detail-table {
    padding: 16px 20px 20px;
    overflow-y: auto;
}

.admin-detail-row {
    display: grid;
    grid-template-columns: 1fr 120px 90px 110px 130px;
    gap: 12px;
    align-items: center;
    padding: 9px 4px;
    border-radius: 8px;
    font-size: 15px;
    color: var(--ink);
}

    .admin-detail-row:not(.admin-detail-row--head):hover {
        background: var(--row-hover);
    }

.admin-detail-row--head {
    padding-bottom: 6px;
}

.admin-detail-th {
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--muted-light);
    text-align: left;
}

    .admin-detail-th.sorted {
        color: var(--teal);
    }

.admin-detail-rows {
    max-height: 60vh;
    overflow-y: auto;
}

.admin-detail-guest {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Every guest gets five stars, lit or not, so the column reads as one scale. */
.admin-detail-stars {
    display: flex;
    gap: 2px;
    font-size: 14px;
}

    .admin-detail-stars .on { color: var(--star-gold); }
    .admin-detail-stars .off { color: var(--bar-empty); }

.admin-detail-heart {
    text-align: center;
    color: var(--bar-empty);
    font-size: 15px;
}

    .admin-detail-heart.on {
        color: var(--teal);
    }

.admin-detail-number {
    text-align: right;
}

.admin-detail-when {
    text-align: right;
    font-size: 13px;
    color: var(--muted);
}

.admin-detail-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 14px;
    margin-top: 6px;
    border-top: 1px solid var(--hairline);
    font-size: 13px;
    color: var(--muted);
}

/* --------------------------------------------------------------- guests tab */

.admin-guest-stats-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding-top: 16px;
    padding-bottom: 14px;
}

.admin-guest-stats-summary {
    font-size: 14px;
    color: var(--muted);
}

.admin-guest-stats-toggles {
    display: flex;
    gap: 18px;
}

.admin-guest-stats-toggle {
    font-size: 14px;
    color: var(--muted);
}

    .admin-guest-stats-toggle.active {
        color: var(--teal);
    }

/* Capped for the same reason as the ranking: the name column is the flexible one, so on a wide screen
   it would take every spare pixel and push the numbers away from the guest they belong to. The three
   blocks share the cap and the inset so their columns line up. */
.admin-guest-stats-head,
.admin-guest-stats-table,
.admin-guest-stats-footer {
    max-width: 1180px;
    padding-left: 20px;
    padding-right: 20px;
}

.admin-guest-stats-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px 130px 110px 120px 210px;
    gap: 14px;
    align-items: center;
    width: 100%;
    padding: 9px 4px;
    border-radius: 8px;
    font-size: 15px;
    color: var(--ink);
    text-align: left;
}

    .admin-guest-stats-row .right {
        text-align: right;
    }

    .admin-guest-stats-row:not(.admin-guest-stats-row--head):hover {
        background: var(--row-hover);
    }

.admin-guest-stats-row--head {
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--muted-light);
}

/* A guest who never opened the gallery is still a row, just a quiet one. */
.admin-guest-stats-row.inactive,
.admin-guest-stats-row.inactive .admin-guest-stats-name {
    color: var(--muted);
}

.admin-guest-stats-top {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.admin-guest-stats-thumb {
    width: 54px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    flex: 0 0 auto;
    background: var(--skeleton-bar);
}

.admin-guest-stats-caption {
    font-size: 14px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-guest-stats-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 14px;
    margin-top: 6px;
    border-top: 1px solid var(--hairline);
    font-size: 13px;
    color: var(--muted);
}

.admin-guest-stats-all {
    font-size: 13px;
    color: var(--teal);
}

@media (max-width: 1280px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-stats-rail {
        flex-basis: 220px;
    }
}


/* The reset lives at the foot of the rail, quiet until armed. It deletes what the guests did, so it
   looks like nothing you would press on the way to something else. */
.admin-stats-danger {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-stats-danger-btn {
    align-self: flex-start;
    font-size: 13px;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

    .admin-stats-danger-btn:hover {
        color: #c0392b;
    }

.admin-stats-danger-hint {
    font-size: 12px;
    color: var(--muted-light);
    line-height: 1.5;
    margin: 0;
}

.admin-stats-danger-warn {
    font-size: 13px;
    color: #c0392b;
    line-height: 1.5;
    margin: 0;
}

.admin-stats-danger-done {
    font-size: 13px;
    color: var(--teal);
    line-height: 1.5;
    margin: 0;
}

.admin-stats-danger-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-stats-danger-go {
    padding: 8px 14px;
    border-radius: 999px;
    background: #c0392b;
    color: #fff;
    font-size: 13px;
}

    .admin-stats-danger-go:hover:not(:disabled) {
        background: #a5342a;
    }

    .admin-stats-danger-go:disabled {
        opacity: .6;
        cursor: not-allowed;
    }


/* The app-wide focus ring is teal with a blue glow, which lands teal-on-teal on an active metric and
   reads as a broken double border. These two keep the ring but put it where it can be seen. */
.admin-stats-metric:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
    box-shadow: none;
}

.admin-stats-metric.active:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -5px;
}


/* Bulk delete sits in the selection bar but reads differently from the rest of it: it is the one
   action there that cannot be undone. */
.admin-bulk-delete {
    font-size: 13px;
    color: var(--muted);
}

    .admin-bulk-delete:hover {
        color: #c0392b;
    }

.admin-bulk-delete-go {
    padding: 8px 14px;
    border-radius: 999px;
    background: #c0392b;
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
}

    .admin-bulk-delete-go:hover:not(:disabled) {
        background: #a5342a;
    }

    .admin-bulk-delete-go:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

.admin-status--visitor {
    color: #8a6d3b;
    background: #fdf3cf;
}

/* Enough to pick the row out while scanning, not enough to shout over the RSVPs. */
.admin-row-visitor > td:first-child {
    box-shadow: inset 3px 0 0 #e3c266;
}

.admin-row-visitor > td {
    background: #fffdf5;
}

.admin-guest-visitor {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
}

    .admin-guest-visitor.active {
        border-color: #e3c266;
        background: #fffdf5;
    }

    .admin-guest-visitor .admin-field-help {
        margin-left: 26px;
    }

.admin-visitor-code {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 10px 0 0 26px;
}

.admin-input--code {
    max-width: 200px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-inline-error {
    font-size: 12px;
    color: #b0563f;
}

/* ------------------------------------------------------------- invitations */

/* The celebration switcher. A pill group rather than the underline tabs elsewhere: this picks which
   set of answers is on screen, it does not move between screens. */
.admin-segment {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 999px;
}

.admin-segment-item {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--muted);
    white-space: nowrap;
}

    .admin-segment-item.active {
        background: var(--teal);
        color: #fff;
    }

.admin-invite-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 22px var(--gutter) 0;
}

.admin-invite-tile {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
}

.admin-invite-tile-label {
    font-size: 14px;
    color: var(--muted);
}

/* The tile numbers borrow only the colour from the status classes, never the pill treatment. */
.admin-invite-tile-count {
    font-size: 26px;
    font-variant-numeric: tabular-nums;
    background: none;
    border: 0;
    padding: 0;
}

/* A section header is a row of the same table, so the four columns stay in line down the whole card. */
.admin-invite-section > td {
    height: 42px;
    padding: 0 20px;
    background: #f8fafa;
    border-bottom: 1px solid var(--hairline);
}

.admin-invite-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 10px;
    background: currentColor;
    vertical-align: middle;
}

    /* Unread is drawn as an outline everywhere else; as a dot it just takes the muted fill. */
    .admin-invite-dot.admin-status--never {
        border: 0;
        background: var(--muted-light);
    }

.admin-invite-section-label {
    font-size: 14px;
    color: var(--ink);
}

.admin-invite-section-count {
    margin-left: 10px;
    font-size: 13px;
    color: var(--muted);
}

.admin-invite-table td {
    height: 54px;
}

.admin-invite-row--companion td {
    height: 46px;
    font-size: 14px;
}

.admin-invite-chip {
    margin-left: 10px;
    font-size: 11px;
    padding: 2px 8px;
    vertical-align: middle;
}

.admin-invite-date {
    font-size: 13px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.admin-invite-answer {
    display: flex;
    gap: 6px;
}

.admin-invite-btn {
    flex: 1;
    padding: 6px 0;
    border-radius: 7px;
    font-size: 12px;
    border: 1px solid var(--border-light);
    background: var(--surface);
    color: var(--muted);
    white-space: nowrap;
}

    /* The answer that stands is filled and inert - there is no way back to Unread or Read. */
    .admin-invite-btn:disabled {
        cursor: default;
    }

    .admin-invite-btn.yes {
        background: var(--teal);
        border-color: var(--teal);
        color: #fff;
    }

    .admin-invite-btn.no {
        background: #b0563f;
        border-color: #b0563f;
        color: #fff;
    }

    .admin-invite-btn:not(:disabled):hover {
        border-color: var(--teal);
        color: var(--teal);
    }
