:root {
    --speaker-accent: #2563eb;
    --speaker-ink: #111827;
    --speaker-muted: #64748b;
    --speaker-border: #dbe3ef;
    --speaker-surface: #ffffff;
    --speaker-page: #f5f7fb;
}

body {
    background: var(--speaker-page);
    color: var(--speaker-ink);
}

body.public-home-page {
    background: #1f1f1f;
    color: #f1f5f8;
}

.is-admin .app-navbar-dark,
.public-home-page .app-navbar-dark {
    border-bottom: 1px solid rgba(241, 245, 248, .14);
    background: #1f1f1f;
    color: #f1f5f8;
}

.app-navbar-dark .navbar-brand,
.app-navbar-dark .btn-outline-light,
.app-navbar-dark .btn-outline-secondary {
    color: #f1f5f8;
}

.app-navbar-dark .btn-outline-light,
.app-navbar-dark .btn-outline-secondary {
    border-color: rgba(241, 245, 248, .72);
}

.app-navbar-dark .btn-outline-light:hover,
.app-navbar-dark .btn-outline-secondary:hover {
    border-color: #f1f5f8;
    background: #f1f5f8;
    color: #1f1f1f;
}

.app-shell {
    width: min(100% - 2rem, 1360px);
    margin-inline: auto;
}

.app-shell-narrow {
    max-width: 1140px;
}

.app-navbar {
    min-height: 72px;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}

.app-navbar .app-shell {
    display: flex;
    align-items: center;
}

.app-navbar-dark {
    box-shadow: none;
}

.navbar-brand {
    letter-spacing: 0;
}

.card {
    border-radius: 8px;
    border-color: var(--speaker-border);
}

.btn {
    border-radius: 8px;
    font-weight: 600;
}

.admin-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 220px;
    border-radius: 8px;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(37, 99, 235, .86)),
        radial-gradient(circle at 88% 20%, rgba(249, 115, 22, .72), transparent 26%);
    box-shadow: 0 20px 55px rgba(30, 41, 59, .16);
}

.admin-eyebrow {
    margin-bottom: .75rem;
    color: #bfdbfe;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-hero h1 {
    margin: 0 0 .5rem;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: 0;
}

.admin-hero p {
    max-width: 680px;
    margin: 0;
    color: #dbeafe;
    font-size: 1.08rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.metric-card,
.dashboard-card,
.empty-state {
    border: 1px solid var(--speaker-border);
    border-radius: 8px;
    background: var(--speaker-surface);
    box-shadow: 0 14px 40px rgba(15, 23, 42, .06);
}

.metric-card {
    padding: 1.25rem;
}

.metric-card span {
    display: block;
    margin-bottom: .45rem;
    color: var(--speaker-muted);
    font-size: .9rem;
    font-weight: 700;
}

.metric-card strong {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2.35rem);
    line-height: 1;
}

.metric-card-accent {
    border-color: #fed7aa;
    background: #fff7ed;
}

.dashboard-card {
    overflow: hidden;
}

.dashboard-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem .75rem;
}

.dashboard-card-header h2,
.empty-state h2 {
    margin: 0 0 .25rem;
    font-size: 1.15rem;
}

.dashboard-card-header p,
.empty-state p {
    margin: 0;
    color: var(--speaker-muted);
}

.dashboard-card .table {
    margin-bottom: 0;
}

.dashboard-card .table thead th {
    border-top: 1px solid var(--speaker-border);
    color: #475569;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.table-sort-link {
    color: inherit;
    text-decoration: none;
}

.table-sort-link:hover {
    color: var(--speaker-accent);
}

.dashboard-card .table th,
.dashboard-card .table td {
    padding: 1rem 1.25rem;
}

.empty-state {
    padding: 2rem;
    text-align: center;
}

.empty-state p {
    max-width: 520px;
    margin: 0 auto 1rem;
}

.event-details-form > .row {
    align-items: stretch;
}

.event-details-card .form-control {
    background: #fff;
}

.email-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    min-height: 2.25rem;
}

.email-tag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: .35rem .45rem .35rem .7rem;
    background: #eff6ff;
    color: #1e40af;
    font-size: .9rem;
    font-weight: 700;
}

.email-tag button {
    display: inline-grid;
    width: 1.35rem;
    height: 1.35rem;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    line-height: 1;
}

.email-tag button:hover {
    background: rgba(37, 99, 235, .12);
}

.upload-link-row {
    border-top: 1px solid var(--speaker-border);
    padding-top: 1rem;
}

.speaker-card-grid {
    display: grid;
    gap: 1rem;
}

.speaker-admin-card .table thead th,
.uploaded-files-card .table thead th {
    color: #475569;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.file-name-text {
    color: var(--speaker-ink);
    font-weight: 700;
}

.download-icon-link {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid var(--speaker-border);
    border-radius: 8px;
    color: var(--speaker-accent);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1;
}

.download-icon-link:hover {
    border-color: var(--speaker-accent);
    background: #eff6ff;
    color: var(--speaker-accent);
}

.speaker-entry,
.speaker-upload-page {
    max-width: 1160px;
    margin: 0 auto;
}

.speaker-public-page main.app-shell {
    width: min(100% - 2rem, 1160px);
    padding-top: 2rem !important;
}

.speaker-public-page .speaker-entry,
.speaker-public-page .speaker-upload-page {
    max-width: none;
}

.speaker-entry-hero,
.speaker-page-header {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1.5rem;
    border: 1px solid var(--speaker-border);
    border-radius: 8px;
    padding: clamp(1.5rem, 4vw, 3rem);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(239, 246, 255, .96)),
        radial-gradient(circle at 88% 20%, rgba(249, 115, 22, .18), transparent 28%);
    box-shadow: 0 14px 40px rgba(15, 23, 42, .06);
}

.speaker-entry-hero h1,
.speaker-page-header h1 {
    margin: 0 0 .5rem;
    font-size: clamp(2rem, 4vw, 4.25rem);
    line-height: 1;
    letter-spacing: 0;
}

.speaker-entry-hero p,
.speaker-page-header p {
    margin: 0;
    color: var(--speaker-muted);
    font-size: 1.05rem;
}

.speaker-entry-instructions {
    align-self: center;
    width: min(100%, 440px);
    background: #fff;
}

.speaker-entry-card {
    margin: 1rem auto 0;
    max-width: 100%;
}

.upload-checklist {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-content: center;
    justify-content: flex-end;
}

.check-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: 1px solid var(--speaker-border);
    border-radius: 999px;
    padding: .45rem .75rem;
    background: #fff;
    color: var(--speaker-muted);
    font-weight: 800;
}

.check-pill.is-complete {
    border-color: #86efac;
    background: #dcfce7;
    color: #166534;
}

.check-pill.is-missing {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #9a3412;
}

.check-pill-icon {
    display: inline-grid;
    width: 1.1rem;
    height: 1.1rem;
    place-items: center;
    border-radius: 999px;
    background: currentColor;
    color: #fff;
    font-size: .78rem;
    line-height: 1;
}

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

.link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    border: 1px solid var(--speaker-border);
    border-radius: 8px;
    padding: .55rem .65rem;
    background: #f8fafc;
}

.link-item a {
    min-width: 0;
    overflow: hidden;
    color: var(--speaker-accent);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-item button {
    display: inline-grid;
    width: 1.5rem;
    height: 1.5rem;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--speaker-muted);
}

.link-item button:hover {
    background: #e2e8f0;
    color: var(--speaker-ink);
}

.upload-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.upload-field {
    display: grid;
    gap: .35rem;
    min-height: 148px;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    background: #f8fafc;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.upload-field:hover,
.upload-field.has-files {
    border-color: var(--speaker-accent);
    background: #eff6ff;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .12);
}

.upload-field strong {
    font-size: 1rem;
}

.upload-field span {
    color: var(--speaker-muted);
    font-size: .92rem;
}

.upload-field input {
    align-self: end;
    width: 100%;
    font-size: .9rem;
}

.public-home {
    max-width: 1160px;
    margin: 0 auto;
}

.public-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .65fr);
    gap: 2rem;
    align-items: stretch;
    min-height: 520px;
    border-radius: 8px;
    padding: clamp(1.5rem, 4vw, 4rem);
    color: #f1f5f8;
    background:
        linear-gradient(135deg, rgba(31, 31, 31, .98), rgba(31, 31, 31, .84)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600' viewBox='0 0 900 600'%3E%3Crect width='900' height='600' fill='%230f172a'/%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.16' stroke-width='2'%3E%3Cpath d='M90 420h180l60-80 70 130 72-210 75 160h260'/%3E%3Cpath d='M120 150h240M120 205h310M120 260h190'/%3E%3Cpath d='M585 142h170v118H585zM612 290h116M612 330h160M612 370h100'/%3E%3C/g%3E%3Cg fill='%23f97316' fill-opacity='.9'%3E%3Ccircle cx='330' cy='340' r='8'/%3E%3Ccircle cx='472' cy='260' r='8'/%3E%3Ccircle cx='547' cy='420' r='8'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(241, 245, 248, .14);
}

.public-home-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 720px;
}

.public-home-kicker {
    margin-bottom: 1rem;
    color: #93c5fd;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.public-home h1 {
    max-width: 760px;
    margin-bottom: 1rem;
    font-size: clamp(2.25rem, 6vw, 5rem);
    line-height: .98;
    letter-spacing: 0;
}

.public-home-copy p {
    max-width: 650px;
    margin-bottom: 1.75rem;
    color: #dce6ed;
    font-size: 1.15rem;
}

.public-home-panel {
    align-self: center;
    display: grid;
    gap: 1rem;
}

.public-home-step {
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    padding: 1rem;
    background: rgba(15, 23, 42, .62);
    backdrop-filter: blur(10px);
}

.public-home-step span {
    display: block;
    margin-bottom: .4rem;
    color: #fb923c;
    font-weight: 800;
}

.public-home-step strong {
    display: block;
    margin-bottom: .25rem;
    font-size: 1.05rem;
}

.public-home-step p {
    margin: 0;
    color: #cbd5e1;
}

.public-home-note {
    margin-top: 1rem;
    border: 1px solid rgba(241, 245, 248, .16);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    background: rgba(241, 245, 248, .06);
    color: #f1f5f8;
}

.site-footer {
    padding: 1.5rem 0 2rem;
    color: #667085;
    font-size: 12px;
}

.site-footer .app-shell {
    display: flex;
    justify-content: center;
}

.site-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: inherit;
    font-weight: 500;
    text-decoration: none;
}

.site-footer-brand:hover {
    color: #1f2937;
}

.site-footer img {
    display: block;
    width: auto;
    height: 12px;
}

.equipment-box {
    border: 1px solid var(--speaker-border);
    border-left: 4px solid var(--speaker-accent);
    border-radius: 8px;
    padding: 1rem;
    background: #f8f9fa;
    white-space: normal;
}

.upload-zone {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 2px dashed #adb5bd;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    background: #f8f9fa;
    transition: border-color .15s ease, background .15s ease;
}

.upload-zone:hover,
.upload-zone.is-dragover {
    border-color: var(--speaker-accent);
    background: #eef5ff;
}

.upload-zone input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.upload-zone-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.upload-zone-subtitle {
    color: #6c757d;
}

.min-width-0 {
    min-width: 0;
}

.table td,
.table th {
    vertical-align: middle;
}

@media (max-width: 575.98px) {
    .upload-zone {
        min-height: 180px;
        padding: 1.25rem;
    }

    .upload-zone-title {
        font-size: 1.05rem;
    }
}

@media (max-width: 991.98px) {
    .admin-hero {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .speaker-entry-hero,
    .speaker-page-header {
        flex-direction: column;
    }

    .speaker-entry-instructions {
        width: 100%;
    }

    .upload-checklist {
        justify-content: flex-start;
    }

    .public-home-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .public-home-panel {
        align-self: stretch;
    }
}

@media (max-width: 575.98px) {
    .app-shell {
        width: min(100% - 1rem, 1360px);
    }

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

    .upload-field-grid {
        grid-template-columns: 1fr;
    }

    .speaker-entry-card {
        margin-top: 1rem;
    }
}
