* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #19231b;
    background: #f6f2e9;
    -webkit-text-size-adjust: 100%;
}

a {
    color: #703915;
}

.admin-mode-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 14px 18px;
    border-bottom: 4px solid #8f1f13;
    background: repeating-linear-gradient(135deg, #ffdf69 0 18px, #ffd13a 18px 36px);
    color: #321409;
    text-align: center;
    font-weight: 950;
    box-shadow: 0 4px 18px rgba(60, 28, 10, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.admin-mode-links {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.admin-mode-links a {
    color: #321409;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 950;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 16px clamp(16px, 4vw, 44px);
    border-bottom: 1px solid #d8cfbe;
    background: #fffaf0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-mode-bar + .topbar {
    top: 56px;
}

.kiosk-page {
    min-height: 100vh;
    background: #f9f4ea;
}

.kiosk-page .shell {
    width: min(100% - 32px, 980px);
    min-height: 100vh;
    display: grid;
    align-content: center;
    padding: 28px 0;
}

.kiosk-admin-warning {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 14px 18px;
    border-bottom: 4px solid #8f1f13;
    background: repeating-linear-gradient(135deg, #ffdf69 0 18px, #ffd13a 18px 36px);
    color: #321409;
    text-align: center;
    font-weight: 950;
    box-shadow: 0 4px 18px rgba(60, 28, 10, .22);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.kiosk-admin-warning + .shell {
    padding-top: 84px;
}

.brand {
    font-weight: 800;
    text-decoration: none;
}

.topbar nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 60px;
}

img,
svg {
    max-width: 100%;
}

h1 {
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    line-height: 1;
    letter-spacing: 0;
}

h2 {
    margin: 0 0 18px;
}

.label {
    margin: 0 0 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #7a5b26;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 22px 0;
}

.app-home {
    display: grid;
    gap: 22px;
}

.app-hero {
    min-height: 36vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: clamp(20px, 4vw, 54px);
    align-items: end;
    padding: clamp(14px, 3vw, 24px) 0 8px;
}

.lead {
    max-width: 720px;
    margin: 0;
    color: #4d493f;
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    line-height: 1.5;
}

.current-event-card,
.home-card {
    border: 1px solid #d8cfbe;
    border-radius: 8px;
    background: #fffaf0;
    box-shadow: 0 14px 34px rgba(56, 38, 18, .08);
}

.current-event-card {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 18px;
}

.current-event-card h2,
.current-event-card p,
.home-card h2,
.home-card p {
    margin: 0;
}

.current-event-card p,
.home-card p {
    color: #5d574b;
    line-height: 1.45;
}

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

.home-card {
    display: grid;
    gap: 14px;
    align-content: start;
    padding: clamp(16px, 3vw, 22px);
}

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

.event-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid #d8cfbe;
    border-radius: 8px;
    background: #fffaf0;
}

.event-row h3 {
    margin: 4px 0;
}

.event-row p {
    margin: 0;
}

.home-card .actions {
    margin: 4px 0 0;
}

.vote-entry-card .vote-code-form {
    margin-top: 2px;
}

.event-overview h2 {
    margin-bottom: 12px;
}

.subnav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 20px 0 22px;
    padding: 10px;
    border: 1px solid #d8cfbe;
    border-radius: 8px;
    background: #fffaf0;
}

.subnav a {
    border-radius: 6px;
    padding: 9px 11px;
    background: #efe2cb;
    color: #3d2a18;
    text-decoration: none;
    font-weight: 800;
}

.subnav a.is-active {
    background: #6d3b16;
    color: #fff;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.section-heading h2 {
    margin: 0;
}

.scope-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eadfcd;
    color: #5b3b17;
    font-size: .86rem;
    font-weight: 850;
}

.event-windows {
    display: grid;
    gap: 6px;
    max-width: 760px;
    margin: 20px 0 0;
}

.event-windows p {
    margin: 0;
}

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

.export-grid article {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 16px;
    border: 1px solid #d8cfbe;
    border-radius: 8px;
    background: #fffdf8;
}

.export-grid h3,
.export-grid p {
    margin: 0;
}

.export-grid input[readonly] {
    width: 100%;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.qr-preview {
    width: 180px;
    height: 180px;
    max-width: 100%;
    border: 1px solid #d8cfbe;
    background: #fff;
    padding: 8px;
}

tr.is-selected-event td {
    background: #fff0c2;
    border-bottom-color: #d4a93e;
}

.is-current-action {
    display: inline-flex;
    width: fit-content;
    padding: 4px 9px;
    border-radius: 999px;
    background: #6d3b16;
    color: #fffaf0;
    font-weight: 850;
    text-decoration: none;
}

.status-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.status-list span {
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 750;
    font-size: .92rem;
}

.status-open {
    background: #dff1dc;
    color: #1f5a2b;
}

.status-closed {
    background: #eadfcd;
    color: #6a4b22;
}

.button {
    border: 0;
    border-radius: 6px;
    padding: 11px 16px;
    background: #6d3b16;
    color: #fff;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.button.ghost {
    background: #efe2cb;
    color: #3d2a18;
}

.button.danger {
    background: #9c2018;
}

.danger-button {
    background: #9c2018;
}

.form {
    display: grid;
    gap: 18px;
    max-width: 760px;
}

.form.compact {
    max-width: 420px;
}

.edit-form {
    max-width: none;
}

.edit-tab-nav {
    position: sticky;
    top: 76px;
    z-index: 8;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px;
    border: 1px solid #d8cfbe;
    border-radius: 8px;
    background: #fffaf0;
    box-shadow: 0 8px 22px rgba(56, 38, 18, .08);
}

.admin-mode-bar + .topbar + .shell .edit-tab-nav {
    top: 132px;
}

.edit-tab-nav button {
    border: 0;
    border-radius: 6px;
    padding: 10px 14px;
    background: #efe2cb;
    color: #3d2a18;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.edit-tab-nav button[hidden] {
    display: none;
}

.edit-tab-nav button.is-active {
    background: #6d3b16;
    color: #fff;
}

.edit-tab-panel {
    display: grid;
    gap: 16px;
    max-width: 920px;
}

.edit-tab-panel[data-edit-panel="vorschau"] {
    max-width: 760px;
}

.edit-tab-panel .preview {
    position: static;
}

.beer-add-row {
    width: min(920px, 100%);
}

.form-panel {
    display: grid;
    gap: 18px;
}

.field-hint {
    display: block;
    margin: -2px 0 0;
    color: #6a604e;
    font-size: .86rem;
    font-weight: 500;
    line-height: 1.35;
}

.edit-save-bar {
    position: sticky;
    bottom: 12px;
    z-index: 8;
    width: min(920px, 100%);
    padding: 10px;
    border: 1px solid #d8cfbe;
    border-radius: 8px;
    background: rgba(255, 250, 240, .96);
    box-shadow: 0 10px 30px rgba(56, 38, 18, .12);
}

.edit-save-bar .button {
    min-width: 180px;
}

label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.checkbox-label input {
    width: auto;
    margin-top: 4px;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #cfc4b1;
    border-radius: 6px;
    padding: 10px 12px;
    font: inherit;
    background: #fffdf8;
    color: #172017;
    min-height: 44px;
}

textarea {
    resize: vertical;
}

fieldset,
.panel,
.preview {
    border: 1px solid #d8cfbe;
    border-radius: 8px;
    padding: 18px;
    background: #fffaf0;
}

.danger-zone {
    border-color: #e8aaa4;
    background: #fff7f5;
}

.text-editor-list textarea {
    min-height: 120px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    line-height: 1.45;
}

.text-editor-list {
    display: grid;
    gap: 12px;
}

.text-editor-list h3 {
    margin: 18px 0 2px;
}

.text-editor-details,
.ad-upload-details {
    border: 1px solid #d8cfbe;
    border-radius: 8px;
    background: #fffdf8;
}

.text-editor-details summary,
.ad-upload-details summary,
.ad-admin-card summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 850;
}

.text-editor-details summary small,
.ad-admin-card summary small {
    color: #746b5d;
    font-weight: 650;
    text-align: right;
}

.text-editor-card {
    border-top: 1px solid #e3dac8;
    padding: 14px;
}

.placeholder-help {
    border: 1px solid #d8cfbe;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fffdf7;
}

.placeholder-list {
    display: grid;
    gap: 6px;
    margin-top: 4px;
    padding: 10px 12px;
    border: 1px solid #e1d7c5;
    border-radius: 6px;
    background: #fffdf7;
    color: #5e5343;
    font-size: .88rem;
    font-weight: 500;
}

.placeholder-list span {
    font-weight: 800;
}

.placeholder-list ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding-left: 18px;
}

.placeholder-list code {
    color: #633817;
    font-weight: 850;
}

.event-form-section {
    display: grid;
    gap: 12px;
}

.event-form-grid,
.event-time-range {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px;
    max-width: 760px;
}

.event-time-range input,
.compact-datetime input {
    max-width: 280px;
}

.compact-number input {
    max-width: 180px;
}

legend {
    font-weight: 800;
}

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

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
    gap: 24px;
    align-items: start;
}

.preview {
    position: sticky;
    top: 132px;
}

.beer-preview {
    border-top: 1px solid #d8cfbe;
    padding-top: 16px;
    margin-top: 16px;
}

dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

dt {
    font-size: .82rem;
    color: #6a604e;
}

dd {
    margin: 0;
    font-weight: 750;
}

.small {
    font-size: .92rem;
    color: #5d574b;
}

.logo-settings-form + .logo-settings-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #d8cfbe;
}

.logo-upload-card {
    display: grid;
    gap: 12px;
    border: 1px solid #d8cfbe;
    border-radius: 8px;
    padding: 14px;
    background: #fffdf8;
}

.logo-current {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin: 0;
}

.logo-current img,
.booklet-logo {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.logo-current img {
    width: 84px;
    max-height: 84px;
}

.logo-current figcaption {
    font-size: .88rem;
    color: #5d574b;
}

.ad-admin-list {
    display: grid;
    gap: 14px;
    margin: 14px 0 22px;
}

.ad-admin-card {
    border: 1px solid #d8cfbe;
    border-radius: 8px;
    background: #fffdf8;
}

.ad-admin-card form {
    display: grid;
    gap: 12px;
    border-top: 1px solid #e3dac8;
    padding: 14px;
}

.ad-upload-details > form {
    border-top: 1px solid #e3dac8;
    padding: 14px;
}

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

.permission-grid legend {
    font-weight: 850;
    margin-bottom: 6px;
}

.ad-admin-card figure {
    display: grid;
    gap: 8px;
    margin: 0;
}

.ad-admin-card img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    border: 1px solid #e3dac8;
    border-radius: 8px;
    background: #f7f0e4;
}

.ad-admin-card figcaption {
    color: #5d574b;
    font-size: .88rem;
}

.booklet-heading,
.print-exhibitor-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 16px;
    align-items: start;
}

.booklet-heading h2,
.print-exhibitor-header h2 {
    margin-top: 0;
}

.booklet-logo {
    justify-self: end;
    width: 92px;
    max-height: 92px;
}

.participant-progress {
    display: grid;
    gap: 6px;
    min-width: 170px;
}

.participant-progress-label {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: .88rem;
    color: #5d574b;
}

.participant-progress-label strong {
    color: #172017;
}

.participant-progress-track {
    display: block;
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7decc;
}

.participant-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #5f8d5a, #d49a38);
}

.waitlist-count {
    margin: 6px 0 0;
    color: #6a604e;
    font-size: .9rem;
    font-weight: 750;
}

.help-list {
    display: grid;
    gap: 16px;
    margin: 0;
    padding-left: 22px;
}

.help-list li::marker {
    color: #6d3b16;
    font-weight: 900;
}

.help-list p {
    margin: 5px 0 0;
    color: #4f4639;
}

.flash {
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 18px;
    background: #dff1dc;
}

.flash.error {
    background: #f7d5cf;
}

.flash.warning,
.form-warning {
    background: #fff1cc;
    border: 1px solid #deb45a;
    color: #4d3512;
}

.form-warning {
    padding: 12px 14px;
    border-radius: 6px;
    font-weight: 750;
}

.form-warning ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

.kiosk-page .flash {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 90;
    width: min(620px, calc(100% - 24px));
    transform: translateX(-50%);
    box-shadow: 0 8px 28px rgba(40, 20, 8, .22);
}

.kiosk-admin-warning + .shell .flash {
    top: 94px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fffdf8;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid #ded4c2;
    text-align: left;
    vertical-align: top;
}

.table-actions {
    display: grid;
    gap: 8px;
    min-width: 150px;
    white-space: normal;
}

.danger-link {
    width: fit-content;
    border: 0;
    background: transparent;
    color: #9c2018;
    cursor: pointer;
    font: inherit;
    font-size: .9rem;
    font-weight: 750;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.danger-link:hover,
.danger-link:focus-visible {
    color: #6f1510;
}

.danger-details summary {
    color: #9c2018;
    cursor: pointer;
    font-weight: 800;
}

.danger-form {
    align-items: center;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid #e5b8b0;
    border-radius: 6px;
    background: #fff3ef;
}

.danger-form .small {
    flex-basis: 100%;
    margin: 0;
    color: #7b241d;
}

.confirm-dialog {
    width: min(520px, calc(100vw - 28px));
    max-height: min(86vh, 720px);
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
}

.confirm-dialog::backdrop {
    background: rgba(24, 18, 12, .54);
    backdrop-filter: blur(2px);
}

.confirm-dialog-card {
    display: grid;
    gap: 14px;
    padding: clamp(18px, 5vw, 26px);
    border: 1px solid #e5b8b0;
    border-radius: 8px;
    background: #fffaf0;
    box-shadow: 0 24px 60px rgba(30, 20, 10, .26);
}

.confirm-dialog-card h3,
.confirm-dialog-card p {
    margin: 0;
}

.confirm-dialog-card input[type="text"],
.confirm-dialog-card input:not([type]) {
    width: 100%;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.inline-form {
    display: flex;
    gap: 10px;
    align-items: end;
    flex-wrap: wrap;
}

.number-form {
    display: block;
    width: 92px;
}

.number-form input {
    min-width: 0;
}

.voting-exclusion-form {
    min-width: 150px;
}

.inline-form input {
    width: 160px;
}

.vote-code-form {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.vote-code-form label {
    width: min(340px, 100%);
}

.auth-layout {
    min-height: min(620px, calc(100vh - 210px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    gap: clamp(22px, 5vw, 60px);
    align-items: center;
}

.auth-copy {
    max-width: 680px;
}

.auth-copy p:not(.label) {
    max-width: 560px;
    font-size: 1.08rem;
    line-height: 1.55;
    color: #4d493f;
}

.auth-card {
    width: 100%;
    max-width: none;
    padding: clamp(18px, 4vw, 28px);
    border: 1px solid #d8cfbe;
    border-radius: 8px;
    background: #fffaf0;
    box-shadow: 0 14px 34px rgba(56, 38, 18, .08);
}

.auth-card .button,
.vote-card .button {
    min-height: 48px;
}

.vote-code-layout {
    align-items: center;
}

.vote-code-card input[name="code"] {
    min-height: 62px;
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-align: center;
    text-transform: uppercase;
}

.vote-page {
    display: grid;
    gap: 22px;
}

.vote-header {
    max-width: 860px;
}

.vote-header h1 {
    margin-bottom: 10px;
}

.vote-header p:last-child {
    margin: 0;
    color: #5d574b;
    font-weight: 700;
}

.vote-card {
    max-width: 980px;
    padding: clamp(16px, 3vw, 24px);
    border: 1px solid #d8cfbe;
    border-radius: 8px;
    background: #fffaf0;
}

.vote-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.vote-choice {
    gap: 10px;
    padding: 14px;
    border: 1px solid #ddd0bc;
    border-radius: 8px;
    background: #fffdf8;
}

.vote-choice-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.vote-choice-wide {
    grid-column: 1 / -1;
}

.vote-rank {
    display: inline-flex;
    align-items: center;
    width: max-content;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eadfcd;
    color: #4c3013;
    font-size: .9rem;
    font-weight: 900;
}

.vote-points {
    color: #6d3b16;
    font-size: .9rem;
    font-weight: 900;
    white-space: nowrap;
}

.vote-choice select {
    min-height: 52px;
    background-color: #fff;
}

.newsletter-card {
    background: #fffdf8;
}

.is-hidden {
    display: none;
}

.beer-fieldset {
    display: grid;
    gap: 16px;
}

.beer-fieldset.is-hidden {
    display: none;
}

.beer-fieldset.needs-attention {
    border-color: #b71919;
    box-shadow: 0 0 0 3px rgba(183, 25, 25, .12);
}

.fieldset-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fieldset-title-row h3 {
    margin: 0;
}

.compact-button {
    padding: 8px 10px;
    font-size: .9rem;
}

.info-tip {
    display: inline-grid;
    place-items: center;
    width: 1.25em;
    height: 1.25em;
    margin-left: .35em;
    border-radius: 50%;
    background: #efe2cb;
    color: #3d2a18;
    font-size: .82em;
    font-weight: 900;
    cursor: help;
}

.allergen-confirm {
    padding: 10px 12px;
    border: 1px solid #d8cfbe;
    border-radius: 6px;
    background: #fffdf8;
}

.kiosk-screen {
    display: grid;
    justify-items: center;
    gap: 22px;
    text-align: center;
}

.form.kiosk-code-form {
    width: min(100%, 1080px);
    max-width: 1080px;
    justify-items: stretch;
}

.kiosk-code-form input {
    font-size: 2rem;
    text-align: center;
    letter-spacing: .18em;
    font-weight: 900;
}

.virtual-keyboard {
    display: grid;
    gap: 10px;
    width: min(100%, 1080px);
}

.vk-row {
    display: grid;
    grid-template-columns: repeat(var(--vk-columns, 10), minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.vk-row-commands {
    grid-template-columns: minmax(92px, 180px) 1fr minmax(92px, 180px);
    margin-top: 2px;
}

.vk-key {
    width: 100%;
    max-width: none;
    min-height: 76px;
    border: 1px solid #cfc4b1;
    border-radius: 6px;
    background: #fffdf8;
    color: #172017;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    font-size: 1.38rem;
}

.vk-command {
    width: 100%;
    background: #efe2cb;
}

.vk-row-commands .vk-command:last-child {
    grid-column: 3;
}

.kiosk-save-button {
    min-width: 280px;
    min-height: 68px;
    justify-self: center;
    font-size: 1.15rem;
}

.privacy-timer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 54px;
    font-weight: 800;
    color: #4a3419;
}

.privacy-ring {
    --timer-degrees: 360deg;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, #fffaf0 0 58%, transparent 60%),
        conic-gradient(#b71919 0 var(--timer-degrees), #eadfcd var(--timer-degrees) 360deg);
    color: #321409;
    font-weight: 950;
}

.kiosk-vote-form .virtual-keyboard {
    width: min(100%, 760px);
}

.ebc-palette {
    display: grid;
    gap: 7px;
}

.ebc-meter {
    position: relative;
    padding-bottom: 18px;
}

.ebc-scale {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 5px;
}

.ebc-swatch {
    min-height: 28px;
    border: 1px solid rgba(25, 35, 27, .2);
    border-radius: 4px;
    display: grid;
    place-items: center;
    font-size: .72rem;
    font-weight: 800;
}

.ebc-swatch {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

.ebc-swatch-special {
    color: #fff;
}

.ebc-pointer {
    position: absolute;
    left: var(--ebc-position, 0);
    bottom: 0;
    transform: translateX(-50%);
    color: #172017;
    font-size: 1rem;
    line-height: 1;
}

.beer-preview h3 {
    margin-bottom: 6px;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.preview-header .label {
    margin: 0;
}

.beer-preview-number {
    color: #9b9488;
    font-weight: 650;
}

.beer-data-line {
    margin: 0 0 8px;
    font-size: .9rem;
    color: #5d574b;
}

.print-exhibitor {
    break-inside: avoid;
    margin-bottom: 18px;
}

@media print {
    .no-print,
    .topbar,
    .footer,
    .admin-mode-bar {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .shell {
        width: 100%;
        padding: 0;
    }

    .preview {
        border: 0;
        padding: 0;
        background: #fff;
        position: static;
    }

    .edit-form > :not([data-edit-panel="vorschau"]),
    .edit-form [data-edit-panel="vorschau"].is-hidden {
        display: none !important;
    }

    .edit-form [data-edit-panel="vorschau"] {
        display: block !important;
        max-width: none;
    }

    .edit-form {
        display: block;
        max-width: none;
    }

    body:has(.edit-form) h1,
    body:has(.edit-form) h1 + p,
    body:has(.edit-form) .flash {
        display: none !important;
    }
}

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

.metric-grid article {
    border: 1px solid #d8cfbe;
    border-radius: 8px;
    padding: 16px;
    background: #fffaf0;
}

.metric-grid strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.metric-grid span {
    display: block;
    margin-top: 8px;
    color: #5d574b;
}

.chart-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 24px;
}

.chart-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) minmax(150px, 190px);
    gap: 12px;
    align-items: center;
}

.chart-rank {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #6d3b16;
    color: #fff;
    font-weight: 800;
}

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

.chart-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.chart-label span,
.chart-value span {
    color: #6a604e;
}

.chart-track {
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #eadfcd;
}

.chart-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6d3b16, #bd7a2e);
}

.name-chart .chart-track span {
    background: linear-gradient(90deg, #476a35, #8ca552);
}

.chart-value {
    font-weight: 800;
    text-align: right;
    line-height: 1.45;
}

.footer {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 28px 16px;
    border-top: 1px solid #d8cfbe;
}

@media (max-width: 860px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .topbar nav {
        width: 100%;
        justify-content: flex-start;
    }

    h1 {
        font-size: clamp(2rem, 14vw, 3.3rem);
    }

    .split,
    .grid,
    .ebc-palette,
    .export-grid,
    .metric-grid,
    .app-hero,
    .home-grid,
    .auth-layout,
    .vote-choice-grid,
    .event-form-grid,
    .event-time-range {
        grid-template-columns: 1fr;
    }

    .app-hero {
        min-height: 0;
        align-items: start;
    }

    .auth-layout {
        min-height: 0;
        align-items: start;
    }

    .vote-choice-wide {
        grid-column: auto;
    }

    .chart-row {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .chart-value {
        grid-column: 2;
        text-align: left;
    }

    .preview {
        position: static;
    }
}

@media (max-width: 520px) {
    .shell {
        width: min(100% - 20px, 1180px);
        padding-top: 24px;
    }

    .actions,
    .copy-row,
    .subnav,
    .section-heading,
    .inline-form {
        display: grid;
        grid-template-columns: 1fr;
    }

    .button,
    .inline-form input,
    .vote-code-form input,
    .vote-code-form button,
    .vote-code-form label,
    .auth-card,
    .vote-card {
        width: 100%;
    }

    .auth-copy p:not(.label) {
        font-size: 1rem;
    }

    .vote-code-card input[name="code"] {
        min-height: 58px;
        font-size: 1.45rem;
    }

    fieldset,
    .panel,
    .preview {
        padding: 14px;
    }

    .booklet-heading,
    .print-exhibitor-header,
    .logo-current {
        grid-template-columns: 1fr;
    }

    .booklet-logo {
        justify-self: start;
    }

    .vk-row {
        gap: 5px;
    }

    .vk-key {
        width: 100%;
        min-height: 54px;
        max-width: none;
        padding: 8px 6px;
        font-size: 1.05rem;
    }

    .vk-command {
        width: 100%;
        max-width: none;
    }

    .footer {
        display: grid;
        justify-items: center;
        gap: 10px;
    }
}
