:root {
    --ink: #101010;
    --paper: #f3f2ed;
    --white: #fff;
    --lime: #b9f227;
    --line: #d7d6d0;
    --muted: #71716b;
    --green: #3b8c46;
    --red: #b3261e;
}
* {
    box-sizing: border-box;
}
html {
    background: #dededb;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}
body {
    margin: 0;
}
a {
    color: inherit;
}
button,
input,
select,
textarea {
    font: inherit;
}
.public-shell {
    width: min(760px, 100%);
    min-height: 100vh;
    margin: auto;
    padding-bottom: 76px;
    background: var(--paper);
    overflow: hidden;
}
.mobile-nav {
    position: fixed;
    z-index: 50;
    bottom: 0;
    left: 50%;
    width: min(760px, 100%);
    transform: translateX(-50%);
    display: flex;
    justify-content: space-around;
    padding: 10px 12px max(10px, env(safe-area-inset-bottom));
    border-top: 1px solid #ddd;
    background: #fffffff0;
    backdrop-filter: blur(16px);
}
.mobile-nav a {
    display: grid;
    gap: 3px;
    text-decoration: none;
    text-align: center;
    font-size: 19px;
}
.mobile-nav span {
    font-size: 9px;
}
.brand-light,
.brand-dark {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.brand-light {
    color: #fff;
}
.brand-light b,
.brand-dark b {
    display: grid;
    place-content: center;
    width: 49px;
    height: 54px;
    border-radius: 25px 25px 8px 8px;
    background: #fff;
    color: #111;
    font-size: 17px;
    line-height: 0.68;
    text-align: center;
}
.brand-dark b {
    background: #111;
    color: #fff;
}
.brand-light span,
.brand-dark span {
    font-size: 17px;
    font-weight: 600;
}
.landing-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px;
    background: #111;
    color: #fff;
}
.landing-head > span {
    font-size: 10px;
    letter-spacing: 2px;
}
.landing-intro {
    padding: 78px 22px 55px;
    background: #111;
    color: #fff;
}
.landing-intro small,
.content-section > small,
.registration-panel > small,
.pass-page > small,
.messages-page > small,
.login-page small,
.admin-title small,
.section-heading small {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
}
.landing-intro h1,
.pass-page > h1,
.messages-page > h1,
.login-page h1 {
    margin: 13px 0 25px;
    font-size: clamp(62px, 16vw, 96px);
    line-height: 0.84;
    letter-spacing: -0.075em;
}
.landing-intro em {
    font-family: Georgia, serif;
    font-weight: 400;
}
.landing-intro p {
    max-width: 480px;
    color: #bbb;
    line-height: 1.6;
}
.event-list {
    display: grid;
    gap: 12px;
    padding: 18px;
}
.event-card {
    position: relative;
    min-height: 470px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(165deg, #435d61, #101010 75%);
    background-size: cover;
    background-position: center;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
}
.event-card > div {
    position: relative;
    z-index: 1;
}
.event-card small {
    font-size: 10px;
    letter-spacing: 1px;
}
.event-card h2 {
    margin: 10px 0;
    font-size: 43px;
    line-height: 0.94;
    letter-spacing: -0.06em;
}
.event-card p {
    max-width: 420px;
    color: #ddd;
    line-height: 1.5;
}
.event-card b {
    display: inline-block;
    margin-top: 13px;
    padding-bottom: 7px;
    border-bottom: 1px solid;
}
.event-date {
    position: absolute;
    top: 20px;
    right: 20px;
    display: grid;
    place-content: center;
    width: 62px;
    height: 70px;
    border-radius: 30px 30px 9px 9px;
    background: #fff;
    color: #111;
    font-size: 27px;
    text-align: center;
}
.event-date small {
    display: block;
    font-size: 9px;
}
.event-hero {
    position: relative;
    min-height: 650px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    background: linear-gradient(180deg, #31494a, #050707);
    background-size: cover;
    background-position: center;
    color: #fff;
}
.event-hero > div:last-child {
    margin-top: auto;
    padding: 90px 0 35px;
}
.event-hero h1 {
    max-width: 680px;
    margin: 12px 0 20px;
    font-size: clamp(55px, 14vw, 88px);
    line-height: 0.86;
    letter-spacing: -0.075em;
}
.event-hero p {
    line-height: 1.8;
}
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #fff;
    font-size: 11px;
    text-decoration: none;
}
.back-link.dark {
    color: #111;
}
.content-section {
    padding: 70px 22px;
    background: #fff;
}
.content-section h2,
.registration-panel h2 {
    max-width: 650px;
    margin: 12px 0 28px;
    font-size: clamp(38px, 10vw, 61px);
    line-height: 0.96;
    letter-spacing: -0.06em;
}
.rich-copy {
    max-width: 620px;
    color: #555;
    line-height: 1.7;
}
.agenda-section {
    background: var(--paper);
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 34px;
}
.section-heading h2 {
    margin-bottom: 0;
}
.section-heading > span {
    font-size: 9px;
    letter-spacing: 1px;
}
.agenda-day {
    margin: 35px 0 10px;
    font-size: 14px;
}
.agenda-row {
    display: grid;
    grid-template-columns: 65px 1fr;
    gap: 18px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
}
.agenda-row time {
    font-family: monospace;
    font-size: 13px;
}
.agenda-row time small {
    display: block;
    margin-top: 6px;
    color: #999;
}
.agenda-row > div > small {
    font-size: 9px;
    letter-spacing: 1px;
    color: #666;
}
.agenda-row h3 {
    margin: 7px 0;
    font-size: 20px;
}
.agenda-row p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}
.registration-panel {
    padding: 70px 22px;
    background: var(--lime);
}
.registration-panel > p {
    max-width: 550px;
    line-height: 1.6;
}
.stack-form {
    display: grid;
    gap: 18px;
    margin-top: 35px;
}
.stack-form label,
.admin-form label,
.album-upload label,
.scanner-card > label {
    display: grid;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.stack-form input,
.stack-form select,
.stack-form textarea,
.admin-form input,
.admin-form select,
.admin-form textarea,
.album-upload input,
.scanner-card select,
.manual-scan input,
.admin-search input {
    width: 100%;
    padding: 13px 2px;
    border: 0;
    border-bottom: 1px solid #777;
    background: transparent;
    outline: none;
}
.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.checkbox {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}
.checkbox input {
    width: 19px !important;
    height: 19px;
    margin: 0;
}
.primary,
.outline-button,
.danger-button,
.push-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}
.primary.small,
.outline-button,
.danger-button {
    min-height: 40px;
    font-size: 12px;
}
.outline-button {
    background: transparent;
    color: var(--ink);
}
.danger-button {
    border-color: var(--red);
    background: transparent;
    color: var(--red);
}
.pass-page,
.messages-page {
    min-height: 100vh;
    padding: 30px 22px 80px;
    background: #101010;
    color: #fff;
}
.ticket {
    max-width: 450px;
    margin: 35px auto;
    padding: 22px;
    border-radius: 25px;
    background: #fff;
    color: #111;
}
.ticket header,
.ticket footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ticket .brand-dark b {
    width: 44px;
    height: 48px;
    font-size: 15px;
}
.valid {
    padding: 8px 10px;
    border-radius: 15px;
    background: #e7f5df;
    color: #39763b;
    font-size: 9px;
    font-weight: 700;
}
.ticket > img {
    display: block;
    width: min(250px, 80%);
    margin: 28px auto;
}
.ticket > small,
.ticket > h2,
.ticket > p {
    text-align: center;
    display: block;
}
.ticket > h2 {
    margin: 6px 0;
    font-size: 28px;
}
.ticket > p {
    color: #777;
    font-size: 12px;
}
.ticket hr {
    margin: 25px -22px;
    border: 0;
    border-top: 1px dashed #bbb;
}
.ticket footer {
    font-size: 10px;
}
.push-button {
    width: 100%;
    max-width: 450px;
    display: flex;
    margin: 18px auto;
    border-color: #555;
    background: var(--lime);
    color: #111;
}
.hint {
    max-width: 430px;
    margin: 10px auto;
    text-align: center;
    color: #aaa;
    font-size: 11px;
    line-height: 1.5;
}
.pass-actions {
    max-width: 450px;
    margin: 25px auto;
    text-align: center;
}
.message-card {
    margin: 18px 0;
    padding: 21px;
    border-radius: 17px;
    background: #fff;
    color: #111;
}
.message-card time {
    color: #777;
    font: 10px monospace;
}
.message-card h2 {
    margin: 9px 0;
}
.message-card p {
    line-height: 1.5;
}
.message-card a {
    font-size: 12px;
    font-weight: 700;
}
.album-upload {
    margin-top: 50px;
    padding: 22px;
    border-radius: 17px;
    background: #222;
}
.album-upload form {
    display: grid;
    gap: 14px;
}
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 22px 90px;
    background: #f3f2ed;
}
.login-page > div:last-child {
    max-width: 500px;
    margin-top: 80px;
}
.login-page p {
    color: #666;
    line-height: 1.5;
}
.login-page .primary {
    width: 100%;
}
.toast {
    position: relative;
    z-index: 80;
    margin: 14px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 13px;
}
.toast.success {
    background: #e5f6da;
    color: #285d2d;
}
.toast.error {
    background: #fde4e0;
    color: #84261f;
}
.empty-state {
    padding: 35px;
    border: 1px dashed #aaa;
    text-align: center;
    color: #777;
}
.admin-body {
    min-height: 100vh;
    background: var(--paper);
}
.admin-header {
    position: sticky;
    z-index: 40;
    top: 0;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 13px 28px;
    border-bottom: 1px solid var(--line);
    background: #fffffff2;
    backdrop-filter: blur(14px);
}
.admin-header .brand-dark {
    margin-right: auto;
}
.admin-header .brand-dark b {
    width: 39px;
    height: 43px;
    font-size: 13px;
}
.admin-header nav {
    display: flex;
    gap: 22px;
}
.admin-header nav a,
.link-button {
    border: 0;
    background: none;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}
.admin-main {
    width: min(1200px, 100%);
    margin: auto;
    padding: 55px 28px 100px;
}
.admin-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 35px;
}
.admin-title h1 {
    margin: 8px 0 0;
    font-size: clamp(46px, 7vw, 76px);
    line-height: 0.9;
    letter-spacing: -0.07em;
}
.admin-title.compact h2 {
    margin: 7px 0 0;
    font-size: 39px;
}
.dashboard-events {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 14px;
}
.dashboard-events article {
    padding: 24px;
    border-radius: 20px;
    background: #fff;
}
.dashboard-events h2 {
    font-size: 27px;
    letter-spacing: -0.04em;
}
.dashboard-events p {
    color: #666;
    font-size: 12px;
}
.stats {
    display: flex;
    gap: 35px;
    margin: 32px 0;
}
.stats b {
    font-size: 35px;
}
.stats small {
    display: block;
    color: #777;
    font-size: 9px;
    font-weight: 400;
}
.card-actions {
    display: flex;
    gap: 18px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
}
.card-actions a {
    font-size: 11px;
    font-weight: 700;
}
.status {
    display: inline-block;
    padding: 6px 9px;
    border-radius: 14px;
    background: #e6e5e0;
    font-style: normal;
    font-size: 9px;
    text-transform: uppercase;
}
.status.published,
.status.checked_in,
.status.sent {
    background: #e2f1dc;
    color: #34733c;
}
.status.draft,
.status.queued,
.status.scheduled,
.status.sending {
    background: #fff3cb;
    color: #826800;
}
.status.archived,
.status.cancelled,
.status.failed {
    background: #f7ded9;
    color: #94342b;
}
.title-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.table-help {
    margin: -8px 0 18px;
    color: #777;
    font-size: 11px;
}
.table-help .link-button {
    padding: 0;
    text-decoration: underline;
}
.admin-table {
    overflow: auto;
    border-top: 1px solid var(--line);
}
.admin-table > div {
    min-width: 780px;
    display: grid;
    grid-template-columns: 2fr 1.2fr 0.8fr 0.7fr 1fr;
    align-items: center;
    gap: 15px;
    padding: 15px 8px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}
.participants-table > div {
    grid-template-columns: 28px 1.6fr 1.2fr 1.4fr 0.7fr 1fr;
}
.participant-check {
    width: 18px;
    height: 18px;
}
.admin-table .table-head {
    color: #777;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}
.admin-table b,
.admin-table small {
    display: block;
}
.admin-table small {
    margin-top: 4px;
    color: #777;
}
.admin-form.card {
    padding: 28px;
    border-radius: 20px;
    background: #fff;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 19px;
}
.form-grid .span-2 {
    grid-column: 1/-1;
}
.admin-form input,
.admin-form select,
.admin-form textarea {
    border-color: #bbb;
}
.admin-form label > small {
    color: #888;
    font-weight: 400;
}
.switches {
    display: flex;
    gap: 25px;
    margin: 24px 0;
    font-size: 12px;
}
.admin-section {
    margin-top: 70px;
}
.compact-form {
    margin: 15px 0;
}
.schedule-admin details {
    border-top: 1px solid var(--line);
}
.schedule-admin summary {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 18px 4px;
    cursor: pointer;
}
.schedule-admin summary time {
    font: 12px monospace;
}
.schedule-admin summary b,
.schedule-admin summary small {
    display: block;
}
.schedule-admin summary small {
    margin-top: 4px;
    color: #777;
    font-size: 10px;
}
.schedule-admin summary > span {
    font-size: 10px;
    font-weight: 700;
}
.delete-form {
    padding: 0 28px 28px;
    background: #fff;
}
.form-actions {
    margin: 20px 0;
}
.admin-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin: 55px 0;
}
.admin-shortcuts a {
    display: grid;
    gap: 8px;
    padding: 22px;
    border-radius: 15px;
    background: #111;
    color: #fff;
    text-decoration: none;
}
.admin-shortcuts span {
    color: #bbb;
    font-size: 11px;
}
.danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 70px;
    padding: 25px;
    border: 1px solid #e0aaa4;
    border-radius: 15px;
}
.danger-zone p {
    margin: 5px 0;
    color: #777;
    font-size: 11px;
}
.admin-search {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px 15px;
    border-radius: 12px;
    background: #fff;
}
.admin-search input {
    border: 0;
}
.admin-search button,
.manual-scan button {
    padding: 9px 16px;
    border: 0;
    background: #111;
    color: #fff;
}
.scanner-card {
    max-width: 700px;
    margin: auto;
    padding: 25px;
    border-radius: 22px;
    background: #fff;
}
.scanner-card > label {
    margin-bottom: 20px;
}
.scanner-card .primary {
    width: 100%;
    margin-top: 15px;
}
#qr-reader {
    position: relative;
    aspect-ratio: 4/3;
    display: grid;
    place-content: center;
    border-radius: 16px;
    background: #151a18;
    color: #fff;
    overflow: hidden;
}
#qr-reader video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.scan-frame {
    position: absolute;
    inset: 18%;
    border: 3px solid var(--lime);
    border-radius: 20px;
}
.scan-frame i {
    position: absolute;
    left: 5%;
    right: 5%;
    top: 50%;
    height: 2px;
    background: var(--lime);
    box-shadow: 0 0 12px var(--lime);
}
#qr-reader p {
    position: relative;
    z-index: 1;
}
.manual-scan {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}
.scan-result {
    margin-top: 15px;
    padding: 20px;
    border-radius: 14px;
    background: #e3f4da;
    color: #275e2c;
}
.scan-result.error {
    background: #f8dedb;
    color: #81271f;
}
.notification-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}
.notification-layout h2 {
    font-size: 29px;
}
.notification-layout .admin-form > p {
    color: #777;
    font-size: 12px;
    line-height: 1.5;
}
.notification-history article {
    margin-bottom: 10px;
    padding: 19px;
    border-radius: 15px;
    background: #fff;
}
.notification-history header {
    display: flex;
    justify-content: space-between;
}
.notification-history time {
    font: 10px monospace;
    color: #777;
}
.notification-history h3 {
    margin: 14px 0 7px;
}
.notification-history p {
    color: #555;
    line-height: 1.5;
}
.notification-history footer {
    padding-top: 13px;
    border-top: 1px solid var(--line);
    color: #888;
    font-size: 9px;
}
@media (max-width: 720px) {
    .admin-header {
        padding: 11px 15px;
    }
    .admin-header nav {
        display: none;
    }
    .admin-main {
        padding: 40px 15px 80px;
    }
    .admin-title {
        align-items: flex-start;
        flex-direction: column;
    }
    .admin-title .primary,
    .admin-title .outline-button {
        width: 100%;
    }
    .title-actions {
        display: grid;
        width: 100%;
    }
    .form-grid,
    .notification-layout {
        grid-template-columns: 1fr;
    }
    .form-grid .span-2 {
        grid-column: auto;
    }
    .admin-shortcuts {
        grid-template-columns: 1fr;
    }
    .danger-zone {
        align-items: flex-start;
        flex-direction: column;
    }
    .participants-table > div {
        grid-template-columns: 28px 1.4fr 1fr 1.5fr 1fr 1fr;
    }
    .switches {
        align-items: flex-start;
        flex-direction: column;
    }
    .schedule-admin summary {
        grid-template-columns: 95px 1fr;
    }
    .schedule-admin summary > span {
        display: none;
    }
}
@media (min-width: 761px) {
    .public-shell {
        margin: 22px auto;
        border-radius: 28px;
        box-shadow: 0 20px 70px #0002;
    }
    .mobile-nav {
        bottom: 22px;
        border-radius: 0 0 28px 28px;
    }
    .event-hero,
    .content-section,
    .registration-panel,
    .landing-head,
    .landing-intro,
    .pass-page,
    .messages-page,
    .login-page {
        padding-left: 40px;
        padding-right: 40px;
    }
}
