/* Produktlayout auf den gemeinsamen Sharpflix Material-3-Komponenten. */
* { box-sizing: border-box; }
body { min-width: 320px; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
:focus-visible { outline: 3px solid var(--md-sys-color-secondary); outline-offset: 2px; }
.skip-link { position: fixed; top: -80px; left: 16px; padding: 12px 16px; z-index: 60; background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface); }
.skip-link:focus { top: 8px; }
.startup { min-height: 80vh; display: grid; place-items: center; }
.brand { display: flex; align-items: center; justify-content: center; width: 320px; max-width: 100%; min-width: 0; padding: 0; background: transparent; color: inherit; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-image { width: 100%; height: auto; display: block; }
.brand-image--on-dark { display: none; }
[data-theme="dark"] .brand-image--on-dark { display: block; }
[data-theme="dark"] .brand-image--on-light { display: none; }
@media (prefers-color-scheme: dark) { html:not([data-theme]) .brand-image--on-dark { display: block; } html:not([data-theme]) .brand-image--on-light { display: none; } }
.shell { display: grid; grid-template-columns: 88px minmax(0,1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--md-sys-color-surface-container-low); padding: 20px 12px; display: flex; flex-direction: column; gap: 24px; z-index: 20; }
.sidebar .brand { display: none; }
.sidebar .nav-label, .sidebar .nav-caption, .sidebar .account-text { display: none; }
.nav-group { display: flex; flex-direction: column; gap: 8px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 16px; border-radius: var(--md-sys-shape-corner-full); color: var(--md-sys-color-on-surface-variant); }
.nav-link .sfx-icon { font-size: 24px; }
.nav-link:hover { background: var(--md-sys-color-surface-container-high); text-decoration: none; }
.nav-link[aria-current="page"] { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.nav-link[aria-current="page"] .sfx-icon { font-variation-settings: 'FILL' 1; }
.nav-caption { padding: 8px 16px; color: var(--md-sys-color-on-surface-variant); font: var(--md-sys-typescale-label-medium); overflow-wrap: anywhere; }
.sidebar-account { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 12px 4px; min-width: 0; }
.account-text { min-width: 0; overflow-wrap: anywhere; }
.app-column { min-width: 0; }
.topbar { min-height: 72px; display: flex; align-items: center; gap: 16px; padding: 12px 32px; position: sticky; top: 0; z-index: 20; background: var(--md-sys-color-surface); }
.topbar-context { flex: 1; min-width: 0; }
.header-brand { width: 240px; flex-shrink: 1; }
.topbar-context p { font: var(--md-sys-typescale-label-large); color: var(--md-sys-color-on-surface-variant); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar .sfx-btn { padding: 0 12px; }
.mobile-menu { display: none; }
.main { padding: 24px 32px 48px; max-width: 1740px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; gap: 24px; justify-content: space-between; margin-bottom: 28px; }
.page-heading { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.page-heading h1 { overflow-wrap: anywhere; }
.page-head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex-shrink: 0; }
.page-primary { min-height: 48px; }
.panel { padding: 24px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.overview-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 24px; }
.event-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.event-card { color: var(--md-sys-color-on-surface); padding: 24px; display: flex; flex-direction: column; gap: 24px; background: var(--sfx-surface-card); border-radius: var(--md-sys-shape-corner-medium); }
.event-card:hover { text-decoration: none; background: var(--md-sys-color-surface-container-high); }
.event-card-meta { display: flex; flex-direction: column; gap: 8px; color: var(--md-sys-color-on-surface-variant); }
.event-card-stats { display: flex; align-items: center; gap: 24px; padding-top: 20px; border-top: 1px solid var(--md-sys-color-outline-variant); }
.event-card-stats strong { font: var(--md-sys-typescale-title-large); font-variant-numeric: tabular-nums; }
.event-card-stats span { font: var(--md-sys-typescale-body-small); color: var(--md-sys-color-on-surface-variant); }
.event-card-stats > div { display: flex; flex-direction: column; gap: 4px; }
.event-card-stats > .sfx-icon { margin-left: auto; }
.workflow { display: flex; flex-direction: column; gap: 24px; }
.workflow-item { display: flex; align-items: flex-start; gap: 12px; }
.workflow-item > span { width: 28px; height: 28px; display: grid; place-items: center; background: var(--md-sys-color-surface-container-highest); border-radius: var(--md-sys-shape-corner-full); font: var(--md-sys-typescale-label-large); flex-shrink: 0; }
.workflow-item p { margin-top: 4px; color: var(--md-sys-color-on-surface-variant); }
.context-row { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 16px 0 24px; color: var(--md-sys-color-on-surface-variant); }
.context-row strong { color: var(--md-sys-color-on-surface); }
.event-layout > .sfx-btn { align-self: flex-start; }
.event-layout > .page-head { margin-bottom: 8px; }
.event-layout > .context-row { padding: 0 0 8px; }
.event-layout > .event-tabs { margin-bottom: 8px; }
.event-tabs { display: flex; overflow-x: auto; gap: 8px; margin: 0 0 24px; padding-bottom: 8px; }
.event-tabs a { white-space: nowrap; padding: 12px 16px; border-radius: var(--md-sys-shape-corner-full); color: var(--md-sys-color-on-surface-variant); font: var(--md-sys-typescale-label-large); }
.event-tabs a[aria-current="page"] { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.event-tabs a:hover { background: var(--md-sys-color-surface-container-high); text-decoration: none; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.toolbar-search { flex: 1; min-width: min(280px,100%); max-width: 480px; }
.toolbar .sfx-textfield { min-width: 160px; width: 220px; flex: 0 0 220px; }
.toolbar .sfx-textfield__input { width: 100%; }
.search { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 20px; border-radius: var(--md-sys-shape-corner-full); background: var(--md-sys-color-surface-container-high); }
.search input { background: transparent; border: 0; width: 100%; height: 100%; outline-offset: -4px; }
.search input:focus { outline-color: var(--md-sys-color-secondary); }
.table-identity { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; min-width: 140px; }
.table-identity button { font: var(--md-sys-typescale-label-large); border: 0; padding: 0; background: transparent; color: var(--md-sys-color-primary); text-align: left; }
.table-identity small { color: var(--md-sys-color-on-surface-variant); }
.sfx-table td { white-space: normal; overflow-wrap: anywhere; }
.participant-table .sfx-table { table-layout: fixed; }
.participant-table th:nth-child(1) { width: 26%; }
.participant-table th:nth-child(2) { width: 23%; }
.participant-table th:nth-child(3) { width: 19%; }
.participant-table th:nth-child(4) { width: 16%; }
.participant-table th:nth-child(5) { width: 16%; }
.participant-table .table-identity { min-width: 0; }
.participant-table .table-identity button { overflow-wrap: anywhere; white-space: normal; }
.participant-table .sfx-table th { white-space: normal; }
.sfx-table .sfx-badge { white-space: normal; height: auto; min-height: 24px; line-height: 1.35; padding: 4px 8px; }
.table-footnote { padding: 12px 4px; font: var(--md-sys-typescale-body-small); color: var(--md-sys-color-on-surface-variant); }
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: var(--md-sys-shape-corner-medium); background: var(--md-sys-color-info-container); color: var(--md-sys-color-on-info-container); }
.notice--warning { background: var(--md-sys-color-warning-container); color: var(--md-sys-color-on-warning-container); }
.notice--danger { background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-error-container); }
.notice--success { background: var(--md-sys-color-success-container); color: var(--md-sys-color-on-success-container); }
.notice .sfx-icon { margin-top: 1px; }
.notice a { color: inherit; text-decoration: underline; }
.empty-state { text-align: center; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; white-space: normal; }
.empty-state > .sfx-icon { font-size: 40px; color: var(--md-sys-color-on-surface-variant); }
.empty-state p { max-width: 440px; }
.skeleton { height: 68px; border-radius: var(--md-sys-shape-corner-medium); background: var(--md-sys-color-surface-container-high); }
.loader { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 8px; }
.sfx-textfield { width: 100%; }
.sfx-textfield__input { min-width: 0; width: 100%; }
.sfx-textfield textarea { min-height: 112px; }
.check-option { min-height: 40px; cursor: pointer; align-items: center; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 8px; font: var(--md-sys-typescale-title-small); }
.check-grid { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.day-row { display: flex; align-items: center; gap: 8px; }
.ticket-dialog { border: 0; width: min(600px,calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border-radius: var(--md-sys-shape-corner-extra-large); color: var(--md-sys-color-on-surface); background: var(--md-sys-color-surface-container-high); box-shadow: var(--md-sys-elevation-level3); }
.ticket-dialog--wide { width: min(940px,calc(100% - 32px)); }
.ticket-dialog::backdrop { background: color-mix(in srgb,var(--md-sys-color-scrim) 48%,transparent); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 24px 16px; }
.dialog-header .sfx-btn { padding: 0 12px; flex-shrink: 0; }
.dialog-content { padding: 8px 24px 24px; }
.ticket-dialog .sfx-textfield { background: var(--md-sys-color-surface-container-highest); --_bg: var(--md-sys-color-surface-container-high); }
.detail-list { display: grid; grid-template-columns: 128px minmax(0,1fr); gap: 12px 16px; margin: 0; }
.detail-list dt { color: var(--md-sys-color-on-surface-variant); }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.dialog-separator { height: 1px; border: 0; width: 100%; margin: 8px 0; background: var(--md-sys-color-outline-variant); }
.danger-text { color: var(--md-sys-color-error); }
.upload-zone { border: 1px dashed var(--md-sys-color-outline); padding: 20px; border-radius: var(--md-sys-shape-corner-medium); display: flex; flex-direction: column; gap: 12px; }
.upload-zone input { max-width: 100%; }
.file-input-label { font: var(--md-sys-typescale-title-small); }
.preview-frame { width: 100%; min-height: 560px; border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--md-sys-shape-corner-medium); background: var(--md-sys-color-surface); }
.scanner-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 24px; }
.camera-area { width: 100%; min-height: 260px; aspect-ratio: 4/3; background: var(--md-sys-color-surface-container-highest); border-radius: var(--md-sys-shape-corner-medium); display: grid; place-items: center; overflow: hidden; position: relative; }
.camera-area video { width: 100%; height: 100%; object-fit: cover; }
.camera-placeholder { text-align: center; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.camera-placeholder .sfx-icon { font-size: 40px; }
.scan-result { min-height: 100px; }
.scan-result strong { font: var(--md-sys-typescale-title-large); display: block; margin-bottom: 4px; }
.scan-code input { font-family: var(--md-ref-typeface-mono); font-size: 13px; }
.scan-history { display: flex; flex-direction: column; gap: 12px; }
.scan-history-item { padding: 12px 0; border-bottom: 1px solid var(--md-sys-color-outline-variant); }
.scan-feedback { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; pointer-events: none; --scan-color: var(--md-sys-color-success); --scan-container: var(--md-sys-color-success-container); --scan-on-container: var(--md-sys-color-on-success-container); }
.scan-feedback--warning { --scan-color: var(--md-sys-color-warning); --scan-container: var(--md-sys-color-warning-container); --scan-on-container: var(--md-sys-color-on-warning-container); }
.scan-feedback--danger { --scan-color: var(--md-sys-color-error); --scan-container: var(--md-sys-color-error-container); --scan-on-container: var(--md-sys-color-on-error-container); }
.scan-feedback-card { width: min(440px,100%); min-width: 0; max-height: calc(100dvh - 40px); overflow-y: auto; padding: 28px; border: 2px solid var(--scan-color); border-radius: var(--md-sys-shape-corner-extra-large); background: var(--md-sys-color-surface-container-high); color: var(--md-sys-color-on-surface); box-shadow: var(--md-sys-elevation-level3); text-align: center; overflow-wrap: anywhere; animation: scan-feedback-in 220ms cubic-bezier(.2,0,0,1), scan-feedback-out 160ms ease-in 3840ms forwards; }
.scan-feedback-symbol { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: var(--md-sys-shape-corner-full); background: var(--scan-container); color: var(--scan-on-container); }
.scan-feedback-symbol .sfx-icon { font-size: 36px; }
.scan-feedback-status { font: var(--md-sys-typescale-title-medium); color: var(--scan-color); margin-bottom: 8px; }
.scan-feedback-name { font: var(--md-sys-typescale-headline-small); margin: 0 0 8px; }
.scan-feedback-company { font: var(--md-sys-typescale-body-large); margin-bottom: 12px; }
.scan-feedback-detail { font: var(--md-sys-typescale-body-medium); color: var(--md-sys-color-on-surface-variant); }
.scan-feedback-countdown { font: var(--md-sys-typescale-label-large); color: var(--md-sys-color-on-surface-variant); margin-top: 24px; font-variant-numeric: tabular-nums; }
.scan-feedback-progress { height: 4px; margin-top: 12px; border-radius: var(--md-sys-shape-corner-full); background: var(--scan-container); overflow: hidden; }
.scan-feedback-progress span { display: block; height: 100%; background: var(--scan-color); transform-origin: left; animation: scan-cooldown 4s linear forwards; }
@keyframes scan-feedback-in { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes scan-feedback-out { to { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes scan-cooldown { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; }
.resource-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--md-sys-color-outline-variant); }
.resource-item > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.public-page { min-height: 100vh; padding: 32px 24px; }
.public-header { max-width: 960px; margin: 0 auto 40px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.public-main { max-width: 960px; margin: 0 auto; }
.public-main h2 { overflow-wrap: anywhere; }
.public-footer { text-align: center; padding: 32px 16px; color: var(--md-sys-color-on-surface-variant); font: var(--md-sys-typescale-body-small); }
.auth-page { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 440px; padding: 36px; background: var(--sfx-surface-card); border-radius: var(--md-sys-shape-corner-extra-large); }
.auth-card .brand { margin-bottom: 36px; }
.auth-card h1 { margin-bottom: 12px; }
.auth-card > p { margin-bottom: 28px; }
.auth-card .sfx-btn--primary { width: 100%; margin-top: 4px; }
.auth-footer { margin-top: 24px; text-align: center; }
.ticket-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 32px; }
.ticket-paper { padding: 32px; background: var(--sfx-surface-card); border-radius: var(--md-sys-shape-corner-extra-large); }
.ticket-print-brand { display: none; }
.ticket-title { margin-top: 24px; }
.ticket-person { margin: 32px 0; padding-top: 24px; border-top: 1px solid var(--md-sys-color-outline-variant); }
.ticket-qr { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ticket-qr img { width: 252px; height: 252px; max-width: 100%; border-radius: var(--md-sys-shape-corner-medium); }
.ticket-qr p { text-align: center; max-width: 280px; }
.wallet-section .sfx-row { gap: 16px; }
/* Das offizielle Google-Badge bleibt unverändert, einschließlich Freiraum. */
.wallet-google-button { display: inline-flex; align-items: center; justify-content: center; padding: 8px; background: transparent; border: 0; max-width: 100%; cursor: pointer; }
.wallet-google-button img { display: block; width: 199px; height: 55px; max-width: 100%; object-fit: contain; }
.wallet-google-button:focus-visible { outline: 2px solid var(--md-sys-color-primary); outline-offset: 2px; }
.wallet-google-button:disabled { opacity: 0.6; cursor: wait; }
.ticket-days { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.kiosk-card { max-width: 560px; margin: 0 auto; padding: 36px; }
.kiosk-card input { font: var(--md-sys-typescale-body-large); }
.kiosk-success { padding: 40px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.kiosk-success > .sfx-icon { font-size: 48px; color: var(--md-sys-color-success); }
.bottom-nav { display: none; }
.offline-banner { margin-bottom: 20px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 60; max-width: min(520px,calc(100% - 32px)); padding: 16px 20px; display: flex; align-items: center; gap: 12px; background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface); border-radius: var(--md-sys-shape-corner-extra-small); box-shadow: var(--md-sys-elevation-level3); }
.audit-detail { max-width: 560px; white-space: normal; overflow-wrap: anywhere; }
.csv-example { white-space: pre-wrap; overflow-wrap: anywhere; font: var(--md-sys-typescale-body-small); font-family: var(--md-ref-typeface-mono); }
.mobile-nav .nav-label, .mobile-nav .nav-caption { display: block; }
@media (min-width: 1440px) {
  .shell { grid-template-columns: 256px minmax(0,1fr); }
  .sidebar { padding: 24px 16px; }
  .sidebar .brand { display: flex; }
  .header-brand { display: none; }
  .sidebar .nav-label, .sidebar .nav-caption, .sidebar .account-text { display: block; }
}
@media (max-width: 1100px) { .overview-grid { grid-template-columns: minmax(0,1fr); } .overview-aside { display: none; } .event-grid { gap: 16px; } .main { padding: 20px 24px 40px; } .topbar { padding: 12px 24px; } .page-head { flex-wrap: wrap; } .page-head-actions { justify-content: flex-start; } }
@media (max-width: 800px) { .scanner-grid, .split { grid-template-columns: minmax(0,1fr); } .ticket-layout { grid-template-columns: minmax(0,1fr); } .ticket-qr { order: -1; } .ticket-person { margin: 24px 0; } .event-grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 599px) {
  .shell { display: block; }
  .sidebar { display: none; }
  .topbar { min-height: 64px; padding: 8px 16px; gap: 8px; flex-wrap: wrap; }
  .topbar-context { display: none; }
  .topbar .header-brand { order: -1; flex: 0 0 100%; width: 100%; margin: 4px 0; }
  .topbar .header-brand .brand-image { width: 240px; max-width: 100%; }
  .mobile-menu { display: inline-flex; margin-right: auto; }
  .topbar-actions .logout-label { display: none; }
  .topbar .theme-toggle > span:not(.sfx-icon) { display: none; }
  .topbar-actions .sfx-btn { padding: 0 8px; }
  .main { padding: 20px 16px 176px; }
  .page-head { gap: 20px; margin-bottom: 24px; }
  .page-heading h1 { font: var(--md-sys-typescale-headline-small); }
  .page-head-actions { width: 100%; }
  .page-head-actions .page-primary { position: fixed; right: 16px; bottom: 96px; z-index: 20; }
  .panel, .event-card { padding: 20px; }
  .bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: space-around; background: var(--md-sys-color-surface-container); padding: 8px 8px max(8px,env(safe-area-inset-bottom)); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 12px; color: var(--md-sys-color-on-surface-variant); font: var(--md-sys-typescale-label-medium); }
  .bottom-nav a[aria-current="page"] { color: var(--md-sys-color-on-secondary-container); }
  .bottom-nav a .sfx-icon { border-radius: var(--md-sys-shape-corner-full); padding: 4px 20px; width: auto; height: auto; font-size: 24px; }
  .bottom-nav a[aria-current="page"] .sfx-icon { background: var(--md-sys-color-secondary-container); }
  .ticket-dialog { margin: auto 0 0; width: 100%; max-width: 100%; max-height: calc(100dvh - 24px); border-radius: var(--md-sys-shape-corner-extra-large) var(--md-sys-shape-corner-extra-large) 0 0; }
  .dialog-header { padding: 24px 20px 16px; }
  .dialog-content { padding: 8px 20px 24px; }
  .dialog-header .sfx-btn span:not(.sfx-icon) { display: none; }
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .detail-list { grid-template-columns: minmax(0,1fr); gap: 4px; }
  .detail-list dd { margin-bottom: 12px; }
  .public-page { padding: 24px 16px; }
  .public-header { margin-bottom: 28px; }
  .public-header .sfx-btn { padding: 0 12px; }
  .public-header .theme-toggle { flex-shrink: 0; }
  .public-header .theme-toggle > span:not(.sfx-icon) { display: none; }
  .ticket-paper, .kiosk-card { padding: 24px; }
  .auth-card { padding: 28px 24px; }
  .toast { bottom: 92px; right: 16px; }
  .toolbar { align-items: stretch; }
  .toolbar .sfx-textfield { flex: 1; width: auto; }
  .form-actions .sfx-btn { min-height: 44px; }
  .sfx-table-wrap { overflow-x: visible; }
  .sfx-table, .sfx-table tbody { display: block; }
  .sfx-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sfx-table tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--md-sys-color-outline-variant); }
  .sfx-table tr:last-child { border-bottom: 0; }
  .sfx-table td { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 8px 0; height: auto; min-height: 36px; border: 0; white-space: normal; overflow-wrap: anywhere; }
  .sfx-table td[data-label]::before { content: attr(data-label); color: var(--md-sys-color-on-surface-variant); font: var(--md-sys-typescale-label-medium); flex: 0 0 100px; padding-top: 2px; }
  .sfx-table td > * { min-width: 0; }
  .sfx-table .table-identity { padding: 0; }
  .sfx-table td .table-identity button { min-height: 44px; }
  .sfx-table .sfx-btn { min-height: 44px; }
  .sfx-table td > a { display: inline-flex; align-items: center; min-height: 44px; }
  .sfx-table td > strong, .sfx-table td .sfx-row > div > strong, .sfx-table td .sfx-row > div > :first-child { white-space: normal; }
  .sfx-table .sfx-table__empty { padding: 0; }
  .sfx-table .sfx-table__empty td { display: block; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0s; transition-duration: 0s; scroll-behavior: auto; } }
@media (prefers-reduced-motion: reduce) { .scan-feedback-card, .scan-feedback-progress span { animation: none; } }
@media print {
  .ticket-print-brand { display: block; width: 240px; height: auto; margin-bottom: 24px; }
  .public-header, .public-footer, .no-print, #toasts, .skip-link { display: none; }
  .public-page { padding: 0; --md-sys-color-surface: var(--md-ref-palette-neutral100); --sfx-surface-card: var(--md-ref-palette-neutral100); --md-sys-color-on-surface: var(--md-ref-palette-neutral0); --md-sys-color-on-surface-variant: var(--md-ref-palette-neutral30); color: var(--md-sys-color-on-surface); background: var(--md-sys-color-surface); }
  .ticket-paper { break-inside: avoid; }
  .ticket-paper .sfx-badge { background: var(--md-ref-palette-neutral100); color: var(--md-ref-palette-neutral0); }
  .ticket-layout { grid-template-columns: minmax(0,1fr) 280px; }
  .ticket-qr { order: 0; }
  body { background: var(--md-ref-palette-neutral100); }
}
