:root {
    color-scheme: light;
    --ink: #142642;
    --muted: #4f6474;
    --teal: #08675c;
    --teal-strong: #075147;
    --teal-pale: #e4f4ed;
    --amber: #ffc965;
    --canvas: #f3f7f9;
    --line: #d4e0e4;
    --surface: #fff;
    --radius: 1rem;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: var(--ink);
    background: var(--canvas);
    font-size: 100%;
    line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--teal-strong); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
main:focus { outline: none; }
h1, h2, h3, p, dl { margin: 0; }
h1 { font-size: clamp(1.9rem, 4vw, 2.55rem); line-height: 1.15; letter-spacing: -.035em; }
h2 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.02em; }
h3 { font-size: 1.07rem; line-height: 1.3; }
.muted { color: var(--muted); }
small { font-size: .875rem; color: var(--muted); font-weight: normal; }
.skip { position: absolute; left: 1rem; top: -8rem; background: var(--surface); padding: .75rem 1rem; z-index: 10; }
.skip:focus { top: 1rem; }

.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 96rem; min-height: 4.5rem; padding: .65rem clamp(1rem, 4vw, 3rem); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; gap: .65rem; align-items: center; color: var(--ink); text-decoration: none; font-size: 1.25rem; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.brand svg { width: 2.2rem; height: 2.2rem; padding: .3rem; color: #fff; border-radius: .7rem; background: var(--teal); }
.brand-accent { color: var(--teal); }
.session { display: flex; align-items: center; gap: 1rem; }
.session span { min-width: 0; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }

.shell { max-width: 96rem; margin: 0 auto; display: grid; grid-template-columns: 14.5rem minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 2.5rem); padding: 2rem clamp(1rem, 4vw, 3rem) 4rem; }
.sidebar { padding: .4rem .2rem .4rem 0; min-width: 0; }
.sidebar nav { display: grid; gap: .35rem; }
.sidebar-label { color: var(--muted); font-size: .875rem; font-weight: 700; margin: 0 .75rem .5rem; }
.nav-link { display: flex; gap: .65rem; align-items: center; min-height: 2.8rem; padding: .55rem .75rem; color: var(--ink); font-weight: 650; text-decoration: none; border-radius: .55rem; }
.nav-link:hover, .nav-active { background: var(--teal-pale); color: var(--teal-strong); }
.nav-link svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.main { min-width: 0; }
.page-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-heading :is(p, .badge) { margin-top: .55rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.button, input::file-selector-button { display: inline-flex; justify-content: center; align-items: center; min-height: 2.75rem; padding: .55rem .95rem; border: 1px solid transparent; border-radius: .55rem; text-decoration: none; font-size: .94rem; font-weight: 700; text-align: center; }
.button-primary { color: #fff; background: var(--teal); }
.button-primary:hover { background: var(--teal-strong); color: #fff; }
.button-quiet, input::file-selector-button { background: var(--surface); border-color: var(--line); color: var(--ink); }
.button-quiet:hover, input::file-selector-button:hover { background: var(--teal-pale); border-color: #8fbaac; }
.back { display: inline-block; margin-bottom: .8rem; font-weight: 650; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1.35rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; }
.stat dt { font-size: .9rem; color: var(--muted); }
.stat dd { margin: .2rem 0 0; font-size: 2rem; line-height: 1.2; font-weight: 750; letter-spacing: -.035em; }
.stat small { font-variant-numeric: tabular-nums; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 2.4vw, 1.7rem); }
.panel > h2 { margin-bottom: .85rem; }
.panel > h2 + p, .panel > p + * { margin-bottom: .85rem; }
.panel .stack { margin-top: .95rem; }
.stack { display: grid; gap: 1rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.span-full { grid-column: 1 / -1; }
label { display: grid; gap: .35rem; align-content: start; font-size: .9rem; font-weight: 700; }
input:not([type=hidden], [type=checkbox]), select, textarea { width: 100%; min-width: 0; padding: .62rem .7rem; min-height: 2.75rem; border: 1px solid #a9bdc4; border-radius: .5rem; color: var(--ink); background: var(--surface); font-size: 1rem; font-weight: 450; }
textarea { resize: vertical; }
input[type=file] { padding: .28rem .4rem; }
input::file-selector-button { min-height: 2.2rem; margin-inline-end: .55rem; }
select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
label.check { display: flex; align-items: center; min-height: 2.75rem; gap: .55rem; }
input[type=checkbox] { inline-size: 1.15rem; block-size: 1.15rem; accent-color: var(--teal); }
.filters { display: flex; align-items: flex-end; gap: .75rem; flex-wrap: wrap; padding-bottom: 1rem; }
.filters label:first-child { flex: 1 1 13rem; }
.filters label:not(:first-child) { flex: 0 1 9rem; }
.filters a { align-self: center; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .8rem .55rem; border-bottom: 1px solid var(--line); }
th { font-weight: 650; }
thead th { color: var(--muted); font-size: .9rem; white-space: nowrap; }
tbody th { min-width: 8rem; }
tbody th small { display: block; margin-top: .18rem; }
tbody td:last-child { white-space: nowrap; }
.badge { display: inline-flex; width: fit-content; background: var(--canvas); color: var(--ink); padding: .16rem .55rem; border-radius: 3rem; white-space: nowrap; font-size: .875rem; font-weight: 650; }
.badge-published, .badge-confirmed, .badge-completed, .badge-approved { color: var(--teal-strong); background: var(--teal-pale); }
.badge-hidden, .badge-rejected, .badge-cancelled { background: #fcebea; color: #8e3532; }
.badge-pending { color: #69460b; background: #fff0ce; }
.empty { border-top: 1px solid var(--line); padding: 2rem .7rem; text-align: center; }
.empty p { margin-top: .6rem; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .7rem; padding-top: 1rem; }
.visibility, .import-instructions, .section-gap { margin-top: 1.25rem; }
.notice { margin-bottom: 1rem; padding: 1rem 1.2rem; border-radius: .75rem; border: 1px solid currentColor; overflow-wrap: anywhere; }
.notice ul { margin: .55rem 0 0; }
.notice.success { background: var(--teal-pale); color: var(--teal-strong); }
.notice.error { background: #fcebea; color: #8e3532; }
.notice.warning { background: #fff3d8; color: #69460b; }
.auth-shell { max-width: 31rem; margin: 3.5rem auto; padding: 0 1rem; }
.auth-panel h1 { font-size: 1.85rem; }
.auth-panel > p { margin-top: .6rem; }
.public-shell { max-width: 76rem; margin: 0 auto; padding: clamp(1rem, 4vw, 2.8rem) clamp(1rem, 4vw, 3rem) 2rem; }
.public-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, .65fr); align-items: center; gap: 2rem; overflow: hidden; background: #093f3a; color: #fff; padding: clamp(1.5rem, 5vw, 5rem); border-radius: 1.35rem; }
.public-hero h1 { max-width: 31rem; font-size: clamp(2.3rem, 6vw, 4.3rem); }
.public-hero p:not(.overline) { max-width: 32rem; margin-top: 1rem; color: #d9ecea; }
.public-hero .actions { margin-top: 1.25rem; }
.public-hero .button-primary { color: #3f2904; background: var(--amber); }
.public-hero a:focus-visible { outline-color: var(--amber); }
.overline { color: var(--amber); font-size: .875rem; letter-spacing: .1em; font-weight: 750; margin-bottom: .65rem; }
.public-mark { width: 100%; aspect-ratio: 1.25; display: grid; place-items: center; border: 1px solid #51968b; border-radius: 2rem; background-color: #125c54; background-image: linear-gradient(28deg, transparent 47%, #88c7ad 48% 50%, transparent 51%), repeating-linear-gradient(0deg, transparent 0 2.5rem, #71a99a 2.5rem 2.55rem), repeating-linear-gradient(90deg, transparent 0 2.5rem, #71a99a 2.5rem 2.55rem); transform: rotate(-7deg); }
.public-mark span { width: 35%; aspect-ratio: 1; border-radius: 50% 50% 50% .4rem; background: var(--amber); transform: rotate(-38deg) translate(7%, -6%); display: grid; place-items: center; box-shadow: -6px 8px 0 #083e38; }
.public-mark span::after { content: ''; width: 34%; aspect-ratio: 1; border-radius: 50%; background: #093f3a; }
.public-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.public-footer { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.35rem; }
.subnav { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.2rem; }
.row-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .85rem; }
.row-card > div { min-width: 0; }
.row-card p { margin-top: .25rem; }
.unbroken { overflow-wrap: anywhere; }
.flow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap: .85rem; }
.qr-video:not([hidden]) { display: block; width: min(100%, 24rem); border-radius: .7rem; }
[hidden] { display: none !important; }

@media (max-width: 62rem) {
    .shell { grid-template-columns: 1fr; padding-top: .85rem; }
    .sidebar { padding: 0; }
    .sidebar nav { display: flex; flex-wrap: wrap; }
    .sidebar-label { width: 100%; margin: 0; }
}

@media (max-width: 40rem) {
    .session span { display: none; }
    .field-grid, .public-links, .public-hero { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .public-mark { display: none; }
    .filters label:not(:first-child) { flex: 1 1 7rem; }
    .filters label:first-child { flex-basis: 100%; }
    .auth-shell { margin-top: 1.75rem; }
}
