:root {
    color-scheme: dark;
    --bg: #070a0f;
    --panel: rgba(13, 21, 32, 0.76);
    --panel-soft: rgba(255, 255, 255, 0.04);
    --panel-elevated: rgba(18, 28, 44, 0.85);
    --border: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(57, 255, 20, 0.35);
    --muted: #94a3b8;
    --text: #f1f5f9;
    --text-bright: #ffffff;
    --accent: #39ff14;
    --accent-glow: rgba(57, 255, 20, 0.35);
    --accent-dark: #1fb80d;
    --cyan-accent: #00e5ff;
    --cyan-glow: rgba(0, 229, 255, 0.3);
    --teal-accent: #00b4d8;
    --teal-glow: rgba(0, 180, 216, 0.25);
    --amber-accent: #fbbf24;
    --danger: #ff4757;
    --warning: #fbbf24;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --glass-blur: blur(16px);
    --transition-smooth: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Phases 2-6 workspace */
/* Phases 2-6 workspace */
.dashboard-overview {
    grid-column: 1 / -1;
    width: 100%;
    padding: 1.6rem;
    border: 1px solid rgba(57, 255, 20, .28);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(13, 24, 28, 0.82) 0%, rgba(7, 18, 19, 0.74) 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(57, 255, 20, 0.06);
    margin-bottom: 8px;
}

.overview-heading,
.workspace-toolbar,
.detail-heading,
.workspace-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.eyebrow {
    color: var(--accent);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.overview-heading h2,
.workspace-dialog-header h2 {
    margin: .15rem 0;
    font-family: "Teko", sans-serif;
    font-size: 1.85rem;
    letter-spacing: 0.03em;
    color: var(--text-bright);
}

.overview-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: .85rem;
    margin: 1.25rem 0;
}

.overview-metrics button {
    min-height: 96px;
    border: 1px solid rgba(57, 255, 20, .3);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(57, 255, 20, .1) 0%, rgba(0, 229, 255, 0.04) 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: #f5f7f6;
    cursor: pointer;
    padding: .9rem 1rem;
    text-align: left;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.overview-metrics button:hover {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(57, 255, 20, .18) 0%, rgba(0, 229, 255, 0.08) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(57, 255, 20, 0.2);
}

.overview-metrics strong {
    display: block;
    background: linear-gradient(90deg, #39ff14 0%, #00e5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font: 600 2.4rem/1 Teko, sans-serif;
    letter-spacing: 0.03em;
    filter: drop-shadow(0 0 10px rgba(57, 255, 20, 0.3));
}

.overview-metrics span {
    color: #cbd5e1;
    font-size: .8rem;
    font-weight: 500;
}

.overview-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1rem;
}

.overview-columns h3 {
    font-size: 1.05rem;
    margin: .5rem 0;
}

.overview-list {
    display: grid;
    gap: .5rem;
}

.overview-list button {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
    color: #fff;
    padding: .7rem;
    text-align: left;
    cursor: pointer;
}

.overview-list span,
.empty-state {
    color: #9dadb8;
}

.workspace-tabs {
    display: flex;
    gap: .5rem;
    margin: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    overflow-x: auto;
}

.workspace-tab,
.workspace-detail-tab {
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--muted);
    padding: .8rem 1.1rem;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    transition: var(--transition-smooth);
    position: relative;
}

.workspace-tab:hover,
.workspace-detail-tab:hover {
    color: #f1f5f9;
}

.workspace-tab.active,
.workspace-detail-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    text-shadow: 0 0 12px rgba(57, 255, 20, 0.4);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) repeat(5, minmax(0, 1fr));
    gap: .75rem;
    align-items: end;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius-md);
    background: rgba(6, 11, 18, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.filter-panel .form-group,
.workspace-toolbar .form-group {
    margin: 0;
    min-width: 0;
}

.filter-panel select,
.filter-panel input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.filter-reset {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.filter-reset>span {
    display: none;
}

.filter-reset .btn-back {
    min-width: 140px;
}

.workspace-list {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
}

.result-limit-note {
    margin: .35rem 0 0;
    color: #9dadb8;
    font-size: .78rem;
    text-align: center;
}

.workspace-record {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(14, 22, 34, 0.72) 0%, rgba(8, 14, 22, 0.78) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.workspace-record:hover {
    border-color: rgba(57, 255, 20, 0.4);
    background: linear-gradient(135deg, rgba(18, 28, 44, 0.8) 0%, rgba(11, 18, 28, 0.86) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.55), 0 0 18px rgba(57, 255, 20, 0.1);
}

.workspace-record p {
    margin: .35rem 0;
    color: #aebdb8;
}

.record-title,
.record-progress,
.record-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .65rem;
}

.record-title strong {
    font-size: 1.05rem;
}

.record-progress span,
.stage-badge {
    padding: .25rem .55rem;
    border-radius: 999px;
    background: rgba(57, 255, 20, .1);
    color: #bfffb3;
    font-size: .72rem;
}

.record-actions {
    flex-wrap: nowrap;
}

.record-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding: 1.2rem;
    border: 1px solid rgba(57, 255, 20, .2);
    border-radius: 14px;
}

.client-portal-invite-panel {
    display: grid;
    gap: .8rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
}

.client-portal-invite-panel[hidden] {
    display: none;
}

.client-portal-invite-panel legend {
    padding: 0 .4rem;
    color: #fff;
    font-weight: 700;
}

.client-portal-invite-panel .form-group {
    margin: 0;
}

.client-portal-invite-panel button {
    justify-self: start;
}

.client-portal-invite-panel .eyebrow {
    color: #b8ffab;
}

.client-portal-invite-panel .coordinator-lookup.known {
    color: #b8ffab;
}

.inline-field-action {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .6rem;
}

.event-workspace-dialog {
    width: min(940px, calc(100% - 2rem));
    max-height: 90vh;
    padding: 1.4rem;
    border: 1px solid rgba(57, 255, 20, .3);
    border-radius: 18px;
    background: #0b1518;
    color: #f5f7f6;
    overflow: auto;
}

.event-workspace-dialog::backdrop {
    background: rgba(0, 0, 0, .75);
    backdrop-filter: blur(4px);
}

.workspace-dialog-header p {
    margin: 0;
    color: #9dadb8;
}

.detail-panel {
    padding: .4rem;
}

.client-summary {
    display: grid;
    gap: .35rem;
    padding: 1rem;
    margin: 1rem 0;
    border-left: 3px solid #39ff14;
    background: rgba(57, 255, 20, .06);
}

.portal-access-panel {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.portal-slot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .7rem;
    margin-top: 1rem;
}

.portal-slot {
    display: grid;
    align-content: start;
    gap: .55rem;
    min-height: 190px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
}

.portal-slot.occupied {
    border-color: rgba(57, 255, 20, .35);
}

.portal-slot.pending {
    border-color: rgba(251, 191, 36, .35);
}

.portal-slot label {
    display: grid;
    gap: .3rem;
    color: #aebdb8;
    font-size: .75rem;
}

.portal-slot input,
.portal-slot textarea {
    width: 100%;
}

.event-workspace-dialog input:not([type="checkbox"]),
.event-workspace-dialog select,
.event-workspace-dialog textarea {
    min-height: 44px;
    padding: 10px 12px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 10px;
    background-color: #091219 !important;
    background-image: none;
    font: inherit;
    color-scheme: dark;
    box-shadow: none;
}

.event-workspace-dialog input[type="date"] {
    width: 190px;
    min-width: 190px;
    border-radius: 10px;
}

.event-workspace-dialog input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: .8;
    cursor: pointer;
    filter: invert(1);
}

.inline-add-form input {
    border-radius: 10px !important;
}

.event-workspace-dialog input:not([type="checkbox"]):hover,
.event-workspace-dialog select:hover,
.event-workspace-dialog textarea:hover {
    border-color: rgba(57, 255, 20, .55);
}

.event-workspace-dialog input:not([type="checkbox"]):focus-visible,
.event-workspace-dialog select:focus-visible,
.event-workspace-dialog textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.portal-slot button {
    align-self: end;
    margin-top: auto;
}

.portal-access-warning {
    padding: .75rem;
    color: #fde68a;
    border-left: 3px solid #fbbf24;
    background: rgba(251, 191, 36, .07);
}

.coordinator-lookup {
    min-height: 1.2em;
    margin: 0;
    color: #9dadb8;
    font-size: .72rem;
    line-height: 1.35;
}

.coordinator-lookup.known {
    color: #b8ffab;
}

.coordinator-toolbar {
    margin: 1.25rem 0;
}

.coordinator-list {
    display: grid;
    gap: .75rem;
}

.coordinator-record {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.5fr);
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 14px;
    background: rgba(7, 20, 18, .55);
}

.coordinator-record h3 {
    margin: 0 0 .3rem;
}

.coordinator-record p,
.coordinator-record small {
    margin: 0;
    color: #9dadb8;
}

.coordinator-events {
    display: grid;
    gap: .45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.coordinator-events li {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding: .5rem .65rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
}

.coordinator-events time {
    color: #b8ffab;
    white-space: nowrap;
}

.checklist-list,
.questionnaire-list,
.history-list {
    display: grid;
    gap: .65rem;
    margin: 1rem 0;
}

.checklist-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: .75rem;
    align-items: center;
    padding: .8rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
}

.checklist-item small {
    display: block;
    color: #9dadb8;
    margin-top: .15rem;
}

.checklist-item.overdue {
    border-color: rgba(255, 80, 80, .65);
    background: rgba(255, 60, 60, .07);
}

.inline-add-form {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: .6rem;
}

.questionnaire-section {
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    padding: .75rem;
}

.questionnaire-section summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
}

.questionnaire-section summary span {
    color: #39ff14;
    font-size: .78rem;
}

.questionnaire-section form {
    display: grid;
    gap: .75rem;
    padding-top: 1rem;
}

.questionnaire-answer {
    padding: 1rem;
    border-left: 3px solid rgba(57, 255, 20, .55);
    border-radius: 8px;
    background: rgba(57, 255, 20, .055);
}

.questionnaire-answer>span {
    color: #9dadb8;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.questionnaire-answer p {
    margin: .4rem 0 0;
    color: #eef5f2;
    white-space: pre-wrap;
}

.questionnaire-save-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.questionnaire-save-row small {
    color: #9dadb8;
}

.history-list article {
    padding: 1rem;
    border-left: 2px solid rgba(57, 255, 20, .55);
    background: rgba(255, 255, 255, .03);
}

.history-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.history-list time {
    color: #9dadb8;
    font-size: .75rem;
}

.history-changes {
    display: grid;
    gap: .5rem;
    margin: .85rem 0 0;
    padding: 0;
    list-style: none;
}

.history-changes li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem .7rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, .035);
}

.history-changes span {
    color: #9dadb8;
}

.history-changes strong {
    text-align: right;
}

@media (max-width: 1260px) {
    .overview-metrics {
        grid-template-columns: repeat(3, 1fr);
    }

    .filter-panel {
        grid-template-columns: repeat(3, 1fr);
    }

    .filter-search {
        grid-column: span 2;
    }
}

@media (max-width: 680px) {
    .overview-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .overview-metrics button {
        display: flex;
        align-items: center;
        gap: 16px;
        min-height: 68px;
        padding: 12px 16px;
    }

    .overview-metrics strong {
        font-size: 2.2rem;
        min-width: 48px;
    }

    .overview-metrics span {
        font-size: 0.88rem;
    }

    .overview-columns,
    .record-form {
        grid-template-columns: 1fr;
    }

    .overview-heading,
    .workspace-toolbar,
    .workspace-dialog-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .filter-panel {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .filter-search {
        grid-column: auto;
    }

    .workspace-record {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 14px;
    }

    .record-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }

    .record-actions button {
        flex: 1;
        min-height: 44px;
        padding: 10px;
    }

    .checklist-item {
        grid-template-columns: auto 1fr;
    }

    .checklist-item input[type="date"] {
        grid-column: 2;
        width: 100%;
    }

    .inline-add-form,
    .inline-field-action {
        grid-template-columns: 1fr;
    }

    .questionnaire-save-row {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .event-workspace-dialog {
        width: calc(100% - 1rem);
        max-height: 94vh;
        padding: 1rem;
        border-radius: var(--radius-md);
        margin: auto;
    }

    .portal-slot-grid {
        grid-template-columns: 1fr;
    }

    .history-heading,
    .history-changes li {
        align-items: flex-start;
        flex-direction: column;
    }

    .history-changes strong {
        text-align: left;
    }

    .reviews-admin-grid {
        grid-template-columns: 1fr;
    }
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 32px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--text);
    font-family: "Montserrat", sans-serif;
    overflow-x: hidden;
    background: radial-gradient(circle at 50% 0%, #101a28 0%, #080c14 55%, #05070a 100%);
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.032;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body::after {
    content: "";
    position: fixed;
    inset: -14%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 18%, rgba(57, 255, 20, 0.32), transparent 38%),
        radial-gradient(circle at 82% 24%, rgba(0, 229, 255, 0.24), transparent 40%),
        radial-gradient(circle at 50% 88%, rgba(0, 180, 216, 0.2), transparent 48%);
    transform: scale(0.99);
    transform-origin: center;
    animation: stage-lighting-drift 10s ease-in-out infinite alternate;
}

@keyframes stage-lighting-drift {
    0% {
        opacity: 0.78;
        transform: scale(0.98) translate(0, 0);
    }
    50% {
        opacity: 1;
        transform: scale(1.025) translate(1.5%, -1%);
    }
    100% {
        opacity: 0.84;
        transform: scale(1.01) translate(-1%, 1.2%);
    }
}

button,
input,
select {
    font: inherit;
    color-scheme: dark;
}

select option {
    background-color: #0f1723;
    color: #f8fafc;
    padding: 8px 10px;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
gmp-place-autocomplete:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.login-container,
.dashboard-wrapper,
.portal-loading {
    position: relative;
    z-index: 1;
}

.login-container {
    width: min(100%, 460px);
    margin: auto;
    padding: 36px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
    box-sizing: border-box;
}

.admin-logo {
    width: 68px;
    height: 68px;
    margin-bottom: 18px;
    object-fit: cover;
    border: 1px solid rgba(57, 255, 20, 0.45);
    border-radius: 50%;
}

h1,
h2,
h3 {
    font-family: "Teko", sans-serif;
}

.login-container h1 {
    margin: 0 0 6px;
    font-size: 1.9rem;
}

.auth-intro,
.form-help {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 28px 0 22px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
}

.auth-tab {
    padding: 10px 14px;
    color: var(--muted);
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.auth-tab.active {
    color: #081008;
    background: var(--accent);
    font-weight: 700;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.auth-form h2 {
    margin: 4px 0 -8px;
    text-align: center;
}

.form-group {
    display: flex;
    flex: 1;
    min-width: 160px;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    color: #cbd5e1;
    font: 500 0.88rem "Montserrat", sans-serif;
}

.form-group small,
.places-container+small {
    color: #7f8ca0;
    font-size: 0.76rem;
    line-height: 1.4;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-sm);
    background: rgba(6, 11, 18, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: rgba(57, 255, 20, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.2), 0 0 16px rgba(57, 255, 20, 0.15);
}

.portal-loading {
    display: grid;
    width: min(100%, 360px);
    justify-items: center;
    padding: 32px;
    color: #dfffd8;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
}

.portal-loading strong {
    font-family: "Teko", sans-serif;
    font-size: 1.25rem;
}

.form-group textarea {
    resize: vertical;
    font: inherit;
}

.roadmap-summary {
    display: grid;
    gap: 12px;
    margin: 22px 0;
    padding: 18px;
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 12px;
    background: rgba(57, 255, 20, 0.045);
}

.roadmap-summary strong,
.roadmap-summary span {
    display: block;
}

.roadmap-summary>div>span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.82rem;
}

.roadmap-progress-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
}

#roadmap-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    box-shadow: 0 0 16px rgba(57, 255, 20, 0.35);
    transition: width 250ms ease;
}

/* Client Mashup Video feature (docs/MASHUP-FEATURE-PLAN.md, Phase 8) --
   same visual shape as #roadmap-progress-fill, as a reusable class since
   this bar can appear once per mashup card, not just a single page instance. */
.mashup-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1fb80d 0%, #39ff14 70%, #00e5ff 100%);
    box-shadow: 0 0 16px rgba(57, 255, 20, 0.45);
    transition: width 250ms ease;
    position: relative;
    overflow: hidden;
}

.mashup-progress-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: laser-render-shimmer 1.8s infinite linear;
}

@keyframes laser-render-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.roadmap-list {
    display: grid;
    gap: 10px;
}

.roadmap-phase {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.roadmap-phase summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
}

.roadmap-phase summary::marker {
    color: var(--accent);
}

.roadmap-phase ul {
    margin: 0;
    padding: 0 36px 16px;
    color: var(--muted);
    line-height: 1.65;
}

.roadmap-status,
.roadmap-request-status {
    flex: 0 0 auto;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.roadmap-status.status-complete {
    color: var(--accent);
    border-color: rgba(57, 255, 20, 0.35);
    background: rgba(57, 255, 20, 0.08);
}

.roadmap-status.status-deferred {
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.08);
}

.roadmap-phase-header {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.roadmap-phase-meta {
    font-size: 0.76rem;
    color: #94a3b8;
    font-weight: 500;
}

.roadmap-milestone-callout {
    margin: 16px 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
    border: 2px solid var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
    animation: pulse-border 3s infinite ease-in-out;
}

.milestone-icon {
    font-size: 2rem;
    line-height: 1;
}

.milestone-content strong {
    display: block;
    color: var(--accent);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.milestone-content p {
    margin: 4px 0 0 0;
    color: #f1f5f9;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
}

.roadmap-valuation-card {
    margin-top: 24px;
    padding: 24px;
    background: linear-gradient(145deg, rgba(16, 32, 22, 0.95) 0%, rgba(8, 18, 12, 0.98) 100%);
    border: 1px solid rgba(57, 255, 20, 0.35);
    border-radius: 14px;
    display: grid;
    gap: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.valuation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.valuation-header h3 {
    font-size: 1.2rem;
    color: #fff;
    margin: 2px 0 0 0;
}

.valuation-badge {
    padding: 4px 12px;
    background: rgba(57, 255, 20, 0.15);
    border: 1px solid rgba(57, 255, 20, 0.4);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
}

.valuation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
}

.valuation-stat {
    padding: 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.valuation-stat strong {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    letter-spacing: 0.03em;
}

.valuation-stat.highlight-zach {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.16) 0%, rgba(16, 185, 129, 0.09) 100%);
    border: 1.5px solid var(--accent);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.25);
}

.valuation-stat span {
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.3;
}

.valuation-breakdown {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    gap: 10px;
}

.breakdown-item strong {
    color: #e2e8f0;
    font-size: 0.82rem;
    display: block;
    margin-bottom: 2px;
}

.breakdown-item p {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.45;
    margin: 0;
}

.breakdown-item p span {
    color: #6ee7b7;
    font-weight: 600;
}

.breakdown-item p strong {
    display: inline;
    color: #fff;
}

.valuation-personal-note {
    margin-top: 6px;
    padding: 16px 20px;
    background: rgba(57, 255, 20, 0.06);
    border: 1px solid rgba(57, 255, 20, 0.25);
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.personal-note-icon {
    font-size: 1.4rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.personal-note-content strong {
    color: #6ee7b7;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 4px;
}

.personal-note-content p {
    margin: 0;
    color: #f8fafc;
    font-size: 0.88rem;
    font-style: italic;
    line-height: 1.45;
}

.roadmap-request-panel {
    display: grid;
    gap: 16px;
}

.roadmap-request-form {
    display: grid;
    gap: 14px;
}

.roadmap-request-list {
    display: grid;
    gap: 12px;
}

.roadmap-request-item {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.roadmap-request-item>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.roadmap-request-item p {
    margin: 10px 0;
    color: #d8e0eb;
    white-space: pre-wrap;
}

.roadmap-request-item small {
    color: var(--muted);
}

.btn-danger-subtle {
    color: #ff9da8;
    border-color: rgba(255, 90, 105, 0.35);
}

.form-group .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-group .checkbox-label input {
    width: 18px;
    min-height: 18px;
    margin: 0;
    accent-color: var(--accent);
}

.btn-primary,
.btn-save,
.btn-dashboard,
.btn-back,
.btn-logout {
    border-radius: 999px;
    font-family: "Teko", sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn-primary {
    width: 100%;
    margin-top: 4px;
    padding: 12px 20px;
    color: #05070a;
    border: 1px solid var(--accent);
    background: linear-gradient(135deg, #39ff14 0%, #1fb80d 100%);
    box-shadow: 0 4px 18px rgba(57, 255, 20, 0.35);
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover,
.btn-save:hover {
    color: #05070a;
    border-color: var(--accent);
    background: linear-gradient(135deg, #4fff2c 0%, #2bdc17 100%);
    box-shadow: 0 6px 26px rgba(57, 255, 20, 0.55);
    transform: translateY(-2px);
}

.btn-dashboard:hover,
.btn-back:hover,
.btn-logout:hover {
    color: #081008;
    border-color: var(--accent);
    background: var(--accent);
    transform: translateY(-1px);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-link {
    align-self: center;
    padding: 4px;
    color: var(--muted);
    border: 0;
    background: transparent;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.btn-link:hover {
    color: var(--accent);
}

.btn-link.align-left {
    align-self: flex-start;
}

.form-message {
    display: none;
    margin: 16px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    color: #d7ffcf;
    background: rgba(57, 255, 20, 0.08);
    text-align: left;
    font-size: 0.88rem;
}

.form-message.visible {
    display: block;
}

.form-message.error {
    color: #ffd4d9;
    background: rgba(255, 71, 87, 0.11);
}

.dashboard-wrapper {
    width: min(100%, 1100px);
    margin: 0 auto;
    padding: 22px 0 44px;
}

.dashboard-header {
    position: relative;
    margin-bottom: 32px;
    padding: 0 280px 24px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.dashboard-header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.55), rgba(0, 229, 255, 0.4), transparent);
}

.dashboard-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: "Teko", sans-serif;
    font-size: 2.6rem;
    letter-spacing: 0.03em;
    color: var(--text-bright);
    text-shadow: 0 0 16px rgba(57, 255, 20, 0.25);
}

.studio-eq-icon {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 22px;
    padding: 3px 6px;
    background: rgba(57, 255, 20, 0.08);
    border: 1px solid rgba(57, 255, 20, 0.35);
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.2);
}

.eq-bar {
    width: 3.5px;
    border-radius: 2px;
    background: linear-gradient(to top, #1fb80d, #39ff14);
    animation: eq-bounce 1.2s ease-in-out infinite alternate;
}

.eq-bar.bar-1 { height: 40%; animation-delay: 0.1s; }
.eq-bar.bar-2 { height: 85%; animation-delay: 0.35s; }
.eq-bar.bar-3 { height: 60%; animation-delay: 0.2s; }
.eq-bar.bar-4 { height: 95%; animation-delay: 0.45s; }

@keyframes eq-bounce {
    0% { height: 25%; }
    50% { height: 95%; }
    100% { height: 45%; }
}

.dashboard-header p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 6px;
    padding: 3px 10px;
    border: 1px solid rgba(57, 255, 20, 0.4);
    border-radius: 999px;
    background: rgba(57, 255, 20, 0.08);
    color: var(--accent);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.15);
}

.role-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: accent-glow-pulse 2s ease-in-out infinite alternate;
}

.dashboard-header-left {
    position: absolute;
    top: 2px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 10;
}

.btn-return-site {
    position: relative;
    top: auto;
    left: auto;
    padding: 8px 18px;
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.btn-return-site:hover {
    color: var(--accent);
    border-color: rgba(57, 255, 20, 0.6);
    background: rgba(57, 255, 20, 0.1);
    box-shadow: 0 0 16px rgba(57, 255, 20, 0.2);
    transform: translateY(-1.5px);
}

.btn-header-dash {
    background: rgba(57, 255, 20, 0.09);
    border-color: rgba(57, 255, 20, 0.45);
    color: #39ff14;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.1);
}

.btn-header-dash:hover {
    background: rgba(57, 255, 20, 0.22);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.35);
}

.btn-header-site {
    border-color: rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
}

.btn-header-site:hover {
    border-color: rgba(0, 229, 255, 0.5);
    color: #00e5ff;
    background: rgba(0, 229, 255, 0.08);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
}

.btn-logout {
    position: absolute;
    top: 2px;
    right: 0;
    padding: 8px 20px;
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.btn-logout:hover {
    color: #ff4757;
    border-color: rgba(255, 71, 87, 0.6);
    background: rgba(255, 71, 87, 0.12);
    box-shadow: 0 0 16px rgba(255, 71, 87, 0.25);
    transform: translateY(-1.5px);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

#main-dashboard-grid {
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 22px;
    align-items: stretch;
}

#main-dashboard-grid>.dashboard-overview {
    grid-column: 1 / -1;
    width: 100%;
}

#main-dashboard-grid>.dashboard-card {
    grid-column: auto;
    min-height: 190px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
}

#main-dashboard-grid>.dashboard-card>p {
    margin: 8px 0 18px;
    font-size: 0.9rem;
    line-height: 1.55;
    flex: 1;
}

#main-dashboard-grid>.dashboard-card .btn-dashboard {
    margin-top: auto;
    padding-block: 10px;
}

.dashboard-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgba(16, 25, 38, 0.72) 0%, rgba(9, 15, 24, 0.8) 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
    pointer-events: none;
}

.dashboard-grid .dashboard-card {
    display: flex;
    min-height: 230px;
    flex-direction: column;
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
                border-color 220ms ease,
                box-shadow 220ms ease,
                background 220ms ease;
}

.dashboard-grid .dashboard-card>p {
    flex: 1;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.dashboard-grid .dashboard-card .btn-dashboard {
    margin-top: auto;
}

.dashboard-grid .dashboard-card:hover {
    border-color: rgba(57, 255, 20, 0.55);
    background: linear-gradient(145deg, rgba(20, 32, 48, 0.82) 0%, rgba(13, 22, 34, 0.88) 100%);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.65), 0 0 24px rgba(57, 255, 20, 0.16);
}

@media (max-width: 900px) {
    #main-dashboard-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }

    #main-dashboard-grid>.dashboard-overview {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    #main-dashboard-grid>.dashboard-card {
        grid-column: auto;
        min-height: 180px;
        padding: 20px;
    }

    .overview-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    #main-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .overview-columns {
        grid-template-columns: 1fr;
    }
}

.dashboard-card h2,
.dashboard-card h3 {
    margin: 0;
    font-family: "Teko", sans-serif;
    font-size: 1.7rem;
    letter-spacing: 0.03em;
    font-weight: 600;
    color: var(--text-bright);
}

.dashboard-card p {
    color: var(--muted);
    line-height: 1.55;
}

.btn-dashboard {
    width: 100%;
    margin-top: 8px;
    padding: 11px 18px;
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.portal-section,
.dashboard-card.portal-section,
#reports-section {
    margin-top: 24px;
    background: linear-gradient(180deg, rgba(13, 21, 32, 0.85) 0%, rgba(8, 13, 20, 0.9) 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.7);
    border-radius: var(--radius-lg);
    overflow: visible;
}

.section-header,
.daily-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.section-header h2,
.daily-header h3 {
    margin: 0;
}

.section-header p {
    margin: 5px 0 0;
}

.calendar-section-actions,
.section-actions-group {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-shrink: 0;
}

.calendar-section-actions .btn-today {
    min-width: 92px;
    padding: 9px 18px;
}

.btn-back,
.btn-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
    width: auto;
    padding: 9px 18px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: transparent;
}

.btn-save.compact {
    padding: 7px 14px;
}

.section-divider {
    margin: 28px 0;
    border: 0;
    border-top: 1px solid var(--border);
}

.calendar-overview {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.calendar-default-note {
    margin: 0 0 18px;
    color: #b8ffab;
    font-size: 0.82rem;
    text-align: center;
}

.calendar-navigation-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.calendar-navigation-row .calendar-month-header {
    grid-column: 2;
}

.calendar-navigation-row .btn-today {
    grid-column: 3;
    justify-self: end;
    min-width: 92px;
    padding: 9px 18px;
}

.calendar-month-header {
    display: grid;
    grid-template-columns: 46px minmax(170px, 240px) 46px;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 auto 10px;
    width: fit-content;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.calendar-month-trigger {
    display: grid;
    min-height: 46px;
    place-content: center;
    padding: 5px 14px;
    color: #fff;
    border: 0;
    border-inline: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
    cursor: pointer;
}

.calendar-month-trigger span {
    font-family: "Teko", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1;
}

.calendar-month-trigger small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.68rem;
}

.calendar-month-trigger:hover {
    color: #081008;
    border-color: var(--accent);
    background: var(--accent);
}

.calendar-month-trigger:hover small {
    color: #183015;
}

.btn-month {
    padding: 8px 14px;
    color: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
}

.calendar-month-header>.btn-month {
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: transparent;
}

.btn-month:hover {
    color: #081008;
    border-color: var(--accent);
    background: var(--accent);
}

.calendar-legend-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 10px 0 16px 0;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.legend-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #cbd5e1;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.legend-available .legend-dot {
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
}

.legend-booked .legend-dot {
    background: #ff7d88;
    box-shadow: 0 0 6px #ff7d88;
}

.legend-completed .legend-dot {
    background: #60a5fa;
    box-shadow: 0 0 6px #60a5fa;
}

.legend-balancedue .legend-dot {
    background: #f59e0b;
    box-shadow: 0 0 6px #f59e0b;
}

.legend-unavailable .legend-dot {
    background: #94a3b8;
}

.calendar-weekdays,
.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.calendar-weekdays {
    margin-bottom: 8px;
    color: var(--muted);
    text-align: center;
    font: 500 0.78rem "Montserrat", sans-serif;
}

.calendar-day {
    min-height: 58px;
    padding: 12px 5px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    font-family: "Teko", sans-serif;
    cursor: pointer;
    transition: transform 150ms ease, background 150ms ease;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.035);
}

.calendar-day.selected {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    box-shadow: 0 0 16px rgba(57, 255, 20, 0.55);
    transform: scale(1.06);
    z-index: 2;
}

.calendar-day.is-today {
    position: relative;
}

.calendar-day.is-today::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal-accent);
    box-shadow: 0 0 8px var(--teal-accent);
}

.calendar-day.empty {
    border: 0;
    background: transparent;
    cursor: default;
}

.calendar-day.empty:hover {
    transform: none;
}

.calendar-day.status-available {
    color: var(--accent);
    border-color: rgba(57, 255, 20, 0.7);
    background: rgba(57, 255, 20, 0.15);
}

.calendar-day.status-booked {
    color: #ff7d88;
    border-color: rgba(255, 71, 87, 0.8);
    background: rgba(255, 71, 87, 0.15);
}

.calendar-day.status-completed {
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.85);
    background: rgba(96, 165, 250, 0.2);
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.2);
}

/* Amber rather than yellow: at these low fill opacities a yellow tint over the
   dark card reads as olive and sits too close to the Available green, which is
   worse again while the day is selected and wrapped in the green accent ring. */
.calendar-day.status-balancedue {
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.95);
    background: rgba(245, 158, 11, 0.32);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.calendar-day.status-unavailable {
    color: #a9afb9;
    border-color: rgba(148, 163, 184, 0.55);
    background: rgba(148, 163, 184, 0.15);
}

.calendar-day.has-time-segments {
    background: var(--calendar-day-fill);
}

.calendar-day.has-time-segments:hover {
    background: var(--calendar-day-fill);
    filter: brightness(1.2);
}

@media (prefers-reduced-motion: reduce) {
    body::after {
        animation: none;
        opacity: 0.86;
    }
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.event-list-item,
.access-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.event-info strong,
.event-info span {
    display: block;
}

.event-info span,
.access-meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.86rem;
}

.event-actions,
.access-actions,
.form-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.event-actions button,
.access-actions button,
.access-actions select {
    padding: 7px 10px;
    color: #fff;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
    color-scheme: dark;
}

.access-actions select {
    background-color: #141c26;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.access-actions select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(57, 255, 20, 0.3);
}

.access-actions select option {
    background-color: #0d131c;
    color: #ffffff;
    padding: 10px 12px;
}

.event-actions .btn-edit:hover {
    color: #081008;
    background: var(--accent);
}

.event-actions .btn-delete:hover,
.access-actions .danger:hover {
    color: #fff;
    border-color: var(--danger);
    background: var(--danger);
}

.calendar-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
    margin-top: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.full-width {
    grid-column: 1 / -1;
    width: 100%;
}

.btn-today {
    min-width: 76px;
}

.calendar-jump-dialog {
    width: min(calc(100% - 32px), 480px);
    padding: 24px;
    color: var(--text);
    border: 1px solid rgba(57, 255, 20, 0.28);
    border-radius: 14px;
    background: #111821;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

.calendar-jump-dialog::backdrop {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(3px);
}

.calendar-jump-dialog h3 {
    margin: 0 0 18px;
    font-size: 1.5rem;
}

.calendar-jump-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.details-group {
    width: 100%;
}

.payment-panel {
    margin: 0;
    padding: 16px;
    border: 1px solid rgba(57, 255, 20, 0.18);
    border-radius: 10px;
    background: rgba(57, 255, 20, 0.025);
}

.payment-panel legend {
    padding: 0 8px;
    color: #dfffd8;
    font-weight: 700;
}

.payment-panel>p {
    margin: 0 0 14px;
    font-size: 0.82rem;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.currency-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.currency-input-wrap .currency-prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
    pointer-events: none;
    user-select: none;
    z-index: 2;
}

.currency-input-wrap input {
    padding-left: 28px !important;
}

.balance-summary {
    margin: 14px 0;
    padding: 10px 12px;
    color: #dfffd8;
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    background: rgba(57, 255, 20, 0.06);
    font-weight: 700;
}

.places-container {
    min-height: 48px;
}

gmp-place-autocomplete {
    width: 100%;
    color-scheme: dark;
}

.location-summary {
    padding: 12px 14px;
    color: #dbe5f2;
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    background: rgba(57, 255, 20, 0.055);
    line-height: 1.55;
}

.manual-location-grid {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    align-items: end;
    gap: 12px;
    padding: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.manual-location-grid .full-width {
    grid-column: 1 / -1;
}

.settings-form,
.invite-form {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin-top: 22px;
}

.invite-form {
    max-width: 620px;
}

.code-panel {
    display: grid;
    gap: 10px;
    margin: 22px 0;
    padding: 16px;
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 10px;
    background: rgba(251, 191, 36, 0.07);
}

.code-panel code {
    padding: 11px;
    overflow-wrap: anywhere;
    color: #fff2bd;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.35);
    user-select: all;
}

.code-panel p {
    margin: 0;
    color: #d8c88d;
    font-size: 0.85rem;
}

.code-panel .btn-back {
    justify-self: start;
}

.subsection-title {
    margin: 30px 0 12px !important;
}

.access-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.access-name {
    font-weight: 700;
}

.empty-state {
    margin: 0;
    padding: 16px;
    color: var(--muted);
    border: 1px dashed var(--border);
    border-radius: 9px;
}

@media (max-width: 1020px) {

    .calendar-form,
    .payment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .coordinator-record {
        grid-template-columns: 1fr;
    }

    .coordinator-events li {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    body {
        align-items: flex-start;
        padding: 18px 12px;
    }

    .login-container {
        padding: 28px 20px;
    }

    .dashboard-wrapper {
        padding-top: 12px;
    }

    #roadmap-section {
        width: 100%;
        min-width: 0;
        padding: 18px 14px;
    }

    #roadmap-section .section-header {
        width: 100%;
    }

    .roadmap-summary,
    .roadmap-list,
    .roadmap-request-panel,
    .roadmap-request-list {
        width: 100%;
        min-width: 0;
    }

    .roadmap-phase summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 14px;
    }

    .roadmap-phase summary strong {
        width: 100%;
        font-size: 1.05rem;
        line-height: 1.25;
    }

    .roadmap-status {
        align-self: flex-start;
    }

    .roadmap-phase ul {
        padding: 0 18px 16px 32px;
        font-size: 0.9rem;
    }

    .roadmap-request-item>div {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-header {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "nav-left logout"
            "title title"
            "user user";
        align-items: center;
        gap: 12px 8px;
        padding: 0 0 16px;
        margin-bottom: 20px;
        text-align: center;
    }

    .dashboard-header-left {
        grid-area: nav-left;
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: flex-start;
    }

    .btn-logout {
        grid-area: logout;
        position: static;
        padding: 7px 16px;
        font-size: 0.82rem;
        justify-self: end;
        transform: none;
    }

    .btn-logout:hover {
        transform: translateY(-1px);
    }

    .dashboard-title {
        grid-area: title;
        font-size: 2rem;
        margin: 4px 0 0;
        justify-content: center;
    }

    .dashboard-header p {
        grid-area: user;
        margin: 0;
        font-size: 0.85rem;
    }

    .btn-return-site {
        padding: 7px 14px;
        font-size: 0.82rem;
    }

    /* Prevent iOS Safari auto-zoom on input focus */
    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Smooth swipeable tabs on mobile */
    .workspace-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
        gap: 6px;
    }

    .workspace-tabs::-webkit-scrollbar {
        display: none;
    }

    .workspace-tab,
    .workspace-detail-tab {
        flex-shrink: 0;
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .section-header,
    .daily-header,
    .event-list-item,
    .access-item,
    .settings-form,
    .invite-form {
        align-items: stretch;
        flex-direction: column;
    }

    .section-header .btn-back,
    .daily-header .btn-save,
    .settings-form .btn-save,
    .invite-form .btn-save {
        width: 100%;
        min-height: 44px;
    }

    .calendar-section-actions,
    .section-actions-group {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .calendar-section-actions>*,
    .section-actions-group>* {
        width: 100% !important;
        min-height: 44px;
    }

    .calendar-navigation-row {
        grid-template-columns: 1fr;
    }

    .calendar-navigation-row .calendar-month-header {
        grid-column: 1;
        width: 100%;
    }

    .calendar-navigation-row .btn-today {
        grid-column: 1;
        justify-self: end;
    }

    .calendar-days-grid,
    .calendar-weekdays {
        gap: 4px;
    }

    .calendar-month-header {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
    }

    .calendar-month-trigger {
        padding-inline: 8px;
    }

    .calendar-jump-fields {
        grid-template-columns: 1fr;
    }

    .calendar-day {
        min-height: 46px;
        padding: 9px 2px;
    }

    .calendar-form {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .manual-location-grid {
        grid-template-columns: 1fr;
    }

    .payment-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

    .manual-location-grid .full-width {
        grid-column: auto;
    }

    .event-actions button,
    .access-actions button,
    .access-actions select {
        flex: 1;
        min-height: 44px;
    }

    .dashboard-card {
        padding: 20px 16px;
    }

    .btn-dashboard {
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-card {
        width: calc(100% - 1rem);
        padding: 1.25rem;
        border-radius: var(--radius-md);
    }

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

    .modal-actions button {
        width: 100%;
        min-height: 44px;
    }
}

/* ==========================================================================
   Website Content & Dynamic Gallery Management
   ========================================================================== */

.tab-disabled {
    opacity: 0.45;
    cursor: not-allowed !important;
}

.website-panel {
    display: grid;
    gap: 1.25rem;
    margin-top: 1rem;
}

.gallery-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-note {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0.25rem 0 0;
}

.gallery-layout-guide {
    padding: 1rem 1.25rem;
    border: 1px solid rgba(57, 255, 20, 0.25);
    border-radius: 14px;
    background: rgba(7, 20, 18, 0.6);
}

.guide-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background: rgba(57, 255, 20, 0.15);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    font-size: 0.84rem;
    color: #cbd5e1;
    line-height: 1.45;
}

.guide-item strong {
    display: block;
    color: #fff;
    margin-bottom: 0.2rem;
}

.gallery-form-card {
    padding: 1.25rem;
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 16px;
    background: rgba(11, 21, 24, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.form-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.form-card-header h4 {
    margin: 0;
    font-size: 1.15rem;
    color: #fff;
}

.btn-icon-close {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.25rem;
}

.btn-icon-close:hover {
    color: #fff;
}

.gallery-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr);
    gap: 1.25rem;
    align-items: start;
}

.gallery-upload-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.upload-dropzone {
    border: 2px dashed rgba(57, 255, 20, 0.35);
    border-radius: 14px;
    background: rgba(7, 20, 18, 0.4);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: var(--accent);
    background: rgba(57, 255, 20, 0.08);
}

.dropzone-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.dropzone-icon {
    width: 2.25rem;
    height: 2.25rem;
    color: var(--accent);
}

.dropzone-text {
    margin: 0;
    font-size: 0.88rem;
    color: #f1f5f9;
}

.dropzone-text strong {
    color: var(--accent);
}

.dropzone-subtext {
    font-size: 0.75rem;
    color: var(--muted);
}

.file-input-hidden {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.image-preview {
    max-width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.gallery-multi-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 0.5rem;
    width: 100%;
    max-height: 180px;
    overflow-y: auto;
    padding: 0.25rem;
}

.gallery-multi-preview-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-remove-preview {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    cursor: pointer;
    z-index: 2;
}

.btn-remove-preview:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-link-subtle {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.78rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.btn-link-subtle:hover {
    color: var(--accent);
}

.url-input-container {
    margin-top: 0.5rem;
}

.gallery-form-fields {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.field-hint {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.form-checkbox-group {
    margin-top: 0.25rem;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: #f1f5f9;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    justify-content: flex-end;
}

.btn-cancel {
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    padding: 0.65rem 1.25rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.btn-cancel:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-danger {
    border: 1px solid var(--danger);
    border-radius: 9px;
    background: rgba(255, 71, 87, 0.15);
    color: #fff;
    padding: 0.65rem 1.25rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.btn-danger:hover {
    background: var(--danger);
}

/* Albums Bar & Filter Pills */
.gallery-albums-bar {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gallery-albums-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gallery-album-pills {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.album-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.album-pill:hover {
    border-color: rgba(57, 255, 20, 0.4);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.album-pill.active {
    border-color: var(--accent);
    background: rgba(57, 255, 20, 0.15);
    color: var(--accent);
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.2);
}

.album-pill .pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.72rem;
    color: inherit;
}

.album-pill.active .pill-count {
    background: rgba(57, 255, 20, 0.25);
    color: var(--accent);
}

.album-pill .pill-edit-btn {
    border: none;
    background: transparent;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0 2px;
    margin-left: 2px;
}

.album-pill .pill-edit-btn:hover {
    opacity: 1;
    color: #fff;
}

.gallery-card-album-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 0.3rem;
}

/* Gallery Photo Cards Grid */
.gallery-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.gallery-item-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.75);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    position: relative;
}

.gallery-item-card:hover {
    border-color: rgba(57, 255, 20, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.gallery-item-card.is-featured-large {
    border-color: rgba(57, 255, 20, 0.45);
    background: rgba(7, 20, 18, 0.7);
}

.gallery-item-card.is-inactive {
    opacity: 0.6;
    border-style: dashed;
}

.gallery-card-thumb-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    background: #000;
    overflow: hidden;
}

.gallery-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-item-card:hover .gallery-card-thumb {
    transform: scale(1.04);
}

.gallery-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.gallery-order-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-span-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.badge-featured-large {
    background: rgba(57, 255, 20, 0.25);
    border: 1px solid rgba(57, 255, 20, 0.6);
    color: #39ff14;
}

.badge-featured-wide {
    background: rgba(56, 189, 248, 0.25);
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #38bdf8;
}

.badge-standard {
    background: rgba(148, 163, 184, 0.25);
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #e2e8f0;
}

.badge-hidden-status {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.85);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
}

.gallery-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.gallery-card-caption {
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
    margin: 0;
}

.gallery-card-alt {
    color: var(--muted);
    font-size: 0.78rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-card-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.gallery-order-actions {
    display: flex;
    gap: 0.25rem;
}

.btn-order {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-order:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-order:not(:disabled):hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(57, 255, 20, 0.1);
}

.gallery-manage-actions {
    display: flex;
    gap: 0.35rem;
}

.btn-card-action {
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.btn-card-action:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-card-action.btn-danger-sm:hover {
    border-color: var(--danger);
    background: rgba(255, 71, 87, 0.2);
    color: #fff;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

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

.modal-card {
    width: min(480px, 100%);
    background: #0b1518;
    border: 1px solid rgba(255, 71, 87, 0.4);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    color: #fff;
}

.modal-text {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.delete-preview-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

@media (max-width: 900px) {
    .gallery-form-grid {
        grid-template-columns: 1fr;
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }
}

/* Questionnaire Playlist Badges & Formatted Answers */
.client-playlist-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.35rem 0 0.6rem;
}

.btn-playlist-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    background: rgba(57, 255, 20, 0.08);
    border: 1px solid rgba(57, 255, 20, 0.35);
    border-radius: 10px;
    color: #39ff14;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    transition: all 160ms ease;
    max-width: 100%;
}

.btn-playlist-pill:hover {
    background: rgba(57, 255, 20, 0.18);
    border-color: #39ff14;
    color: #fff;
    transform: translateY(-1px);
}

.playlist-url-subtext {
    font-size: 0.74rem;
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}

.formatted-client-answer {
    white-space: pre-wrap;
    color: #f1f5f9;
    line-height: 1.55;
    font-size: 0.92rem;
}

.empty-answer {
    color: var(--muted);
    font-style: italic;
    margin: 0;
}

/* Document Management */
.doc-item-grid {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0;
}

.doc-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    flex-wrap: wrap;
}

.doc-item-card:hover {
    border-color: rgba(57, 255, 20, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.doc-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 220px;
    flex: 1;
}

.doc-item-info strong {
    color: #fff;
    font-size: 0.95rem;
    word-break: break-word;
}

.doc-item-meta {
    font-size: 0.78rem;
    color: #94a3b8;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.doc-category-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(57, 255, 20, 0.12);
    border: 1px solid rgba(57, 255, 20, 0.3);
    color: #8cff6b;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
}

.doc-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doc-upload-box {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border: 1px dashed rgba(57, 255, 20, 0.35);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
}

.doc-upload-box h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #fff;
}

.doc-upload-box p {
    margin: 0 0 1rem 0;
    font-size: 0.82rem;
    color: #94a3b8;
}

.doc-upload-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.badge-owner {
    color: #f59e0b;
    font-weight: 600;
}

.badge-manager {
    color: #38bdf8;
    font-weight: 600;
}

.badge-client {
    color: #39ff14;
    font-weight: 600;
}

.badge-partner {
    color: #e879f9;
    font-weight: 600;
}

.badge-planner {
    color: #a78bfa;
    font-weight: 600;
}

.event-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 999px;
    font-size: 0.8rem;
    color: #fff;
    font-weight: 600;
}

/* Reviews Admin Moderation Panel */
.review-filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.review-filters-bar .filter-pill {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.review-filters-bar .filter-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.review-filters-bar .filter-pill.active {
    background: var(--accent);
    color: #0d1119;
    border-color: var(--accent);
    font-weight: 700;
}

.reviews-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.review-admin-card {
    background: rgba(13, 17, 25, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.review-admin-card:hover {
    border-color: rgba(57, 255, 20, 0.3);
    transform: translateY(-2px);
}

.review-admin-card.is-pending {
    border-left: 4px solid #facc15;
    background: rgba(250, 204, 21, 0.03);
}

.review-admin-card.is-featured {
    border-left: 4px solid var(--accent);
    background: rgba(57, 255, 20, 0.04);
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.review-card-stars {
    color: #facc15;
    font-size: 1.15rem;
    letter-spacing: 2px;
}

.review-status-badge {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.review-status-badge.pending {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.4);
}

.review-status-badge.approved {
    background: rgba(57, 255, 20, 0.15);
    color: var(--accent);
    border: 1px solid rgba(57, 255, 20, 0.4);
}

.review-status-badge.featured {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.4);
}

.review-status-badge.rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Client Mashup Video feature (docs/MASHUP-FEATURE-PLAN.md, Phase 8/9) --
   same shape as .review-status-badge, same color language. */
.mashup-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: var(--transition-smooth);
}

.mashup-status-badge.draft,
.mashup-status-badge.queued {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.mashup-status-badge.claimed,
.mashup-status-badge.rendering {
    background: rgba(250, 204, 21, 0.16);
    color: #fde047;
    border: 1px solid rgba(250, 204, 21, 0.5);
    box-shadow: 0 0 14px rgba(250, 204, 21, 0.25);
    animation: render-pill-pulse 1.8s ease-in-out infinite alternate;
}

@keyframes render-pill-pulse {
    0% { box-shadow: 0 0 6px rgba(250, 204, 21, 0.2); }
    100% { box-shadow: 0 0 18px rgba(250, 204, 21, 0.5); }
}

.mashup-status-badge.completed {
    background: rgba(57, 255, 20, 0.16);
    color: var(--accent);
    border: 1px solid rgba(57, 255, 20, 0.45);
    box-shadow: 0 0 14px rgba(57, 255, 20, 0.2);
}

.mashup-status-badge.failed,
.mashup-status-badge.expired {
    background: rgba(239, 68, 68, 0.16);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.45);
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.2);
}

.review-client-meta {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.review-event-subtext {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.review-quote-body {
    font-style: italic;
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    flex: 1;
}

.review-moderator-note {
    font-size: 0.78rem;
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.08);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.review-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Custom Select Component (immune to Linux/Wayland popup release dismiss bug) */
.custom-select-group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.custom-select-label {
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 500;
    margin: 0;
}

.custom-select {
    position: relative;
    display: inline-block;
}

.custom-select-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    min-width: 110px;
    padding: 0.45rem 0.85rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: #f8fafc;
    background: #0f1723;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
    line-height: 1.4;
    text-align: left;
}

.custom-select.full-width {
    display: block;
    width: 100%;
}

.custom-select.full-width .custom-select-trigger {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    box-sizing: border-box;
}

.custom-select-trigger:hover:not(:disabled) {
    border-color: var(--accent);
    background: #131d2c;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
}

.custom-select.open .custom-select-trigger,
.custom-select-trigger:focus-visible {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(57, 255, 20, 0.35), 0 0 14px rgba(57, 255, 20, 0.25);
}

.custom-select-trigger:disabled {
    opacity: 0.45;
    cursor: not-allowed !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: rgba(15, 23, 35, 0.5) !important;
    box-shadow: none !important;
}

.custom-select-value {
    font-family: inherit;
    font-weight: 500;
    letter-spacing: 0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.custom-select.mono .custom-select-value,
#reportTaxYearCustomSelect .custom-select-value {
    font-family: var(--font-mono, monospace);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.custom-select-arrow {
    font-size: 0.75rem;
    color: var(--muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.custom-select.open .custom-select-arrow {
    transform: rotate(180deg);
    color: var(--accent);
}

.custom-select-menu {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    min-width: 100%;
    width: max-content;
    background: #0d1520;
    border: 1px solid rgba(57, 255, 20, 0.4);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0;
    margin: 0;
    list-style: none;
    z-index: 10050;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.75), 0 0 16px rgba(57, 255, 20, 0.15);
    max-height: 240px;
    overflow-y: auto;
}

.custom-select.full-width .custom-select-menu {
    min-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.custom-select.open .custom-select-menu {
    display: block;
    animation: selectMenuFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-select.dropup .custom-select-menu {
    top: auto;
    bottom: calc(100% + 5px);
    box-shadow: 0 -14px 32px rgba(0, 0, 0, 0.75), 0 0 16px rgba(57, 255, 20, 0.15);
}

.custom-select.dropup.open .custom-select-menu {
    animation: selectMenuFadeInUp 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-select-menu::-webkit-scrollbar {
    width: 6px;
}

.custom-select-menu::-webkit-scrollbar-track {
    background: rgba(13, 21, 32, 0.6);
}

.custom-select-menu::-webkit-scrollbar-thumb {
    background: rgba(57, 255, 20, 0.3);
    border-radius: 3px;
}

.custom-select-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(57, 255, 20, 0.6);
}

@keyframes selectMenuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes selectMenuFadeInUp {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-select-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.5rem 0.95rem;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    user-select: none;
    line-height: 1.4;
}

.custom-select.mono .custom-select-item,
#reportTaxYearCustomSelect .custom-select-item {
    font-family: var(--font-mono, monospace);
}

.custom-select-item:hover {
    background: rgba(57, 255, 20, 0.12);
    color: #ffffff;
}

.custom-select-item.selected {
    color: var(--accent);
    font-weight: 700;
    background: rgba(57, 255, 20, 0.08);
}

.custom-select-check {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 800;
}

/* Contextual integration styles */
.form-group > .custom-select {
    width: 100%;
}

.filter-panel .custom-select {
    width: 100%;
}

.filter-panel .custom-select .custom-select-trigger {
    min-height: 42px;
    padding: 8px 12px;
    background: rgba(6, 11, 18, 0.72);
}

.access-actions .custom-select {
    display: inline-block;
}

.access-actions .custom-select .custom-select-trigger {
    padding: 6px 10px;
    font-size: 0.825rem;
    min-width: 100px;
    border-radius: 7px;
    background: #141c26;
}

.event-workspace-dialog .custom-select.full-width .custom-select-trigger {
    background-color: #091219 !important;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}