:root { color-scheme: light; font-family: system-ui, sans-serif; color: #18212f; background: #f6f7f9; }
body { margin: 0; }
.container { max-width: 720px; margin: 0 auto; padding: 1.5rem; }
.admin-page { max-width: 1200px; }
.admin-page form { max-width: 64rem; }
.admin-page textarea { min-height: 10rem; }
.admin-page fieldset { padding: 1rem; }
.site-footer { max-width: 720px; margin: 0 auto; padding: 0 1.5rem 1.5rem; font-size: .9rem; text-align: center; }
form { display: grid; gap: 1rem; max-width: 28rem; }
label { display: grid; gap: .4rem; font-weight: 600; }
input, select, button { font: inherit; padding: .7rem; border-radius: .4rem; }
input { border: 1px solid #a8b0bc; }
button { border: 0; background: #075985; color: white; font-weight: 700; cursor: pointer; }
.password-toggle { justify-self: start; padding: .45rem .7rem; font-size: .9rem; }
.button-link { display: inline-block; padding: .7rem; border-radius: .4rem; background: #075985; color: white; font-weight: 700; text-decoration: none; }
.button-link--inline { padding: .4rem .55rem; font-size: .85rem; }
nav { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1rem 0; }
a { color: #075985; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .5rem; text-align: left; border-bottom: 1px solid #d8dee8; vertical-align: top; }
img { max-width: 100%; height: auto; border-radius: .5rem; }
.cover, .hero { width: 100%; max-height: 24rem; object-fit: contain; background: #e8edf3; }
.thumbnail { width: 5rem; height: 5rem; object-fit: contain; background: #e8edf3; }
.admin-list-image { width: 100px !important; max-width: 100px !important; height: 100px !important; object-fit: contain; vertical-align: middle; margin-right: .75rem; }
.image-picker-widget { display: grid; gap: .5rem; min-width: 0; }
.image-picker-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.image-picker-trigger { width: 100%; text-align: left; background: white; color: #18212f; border: 1px solid #a8b0bc; font-weight: 400; }
.image-picker-panel { width: 100%; box-sizing: border-box; display: grid; gap: .5rem; padding: .5rem; background: white; border: 1px solid #a8b0bc; border-radius: .4rem; }
.image-picker-search { width: 100%; box-sizing: border-box; }
.image-picker-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .4rem; max-height: 22rem; overflow: auto; }
.image-picker-choice { display: flex; align-items: center; gap: .5rem; padding: .35rem; background: white; color: #18212f; border: 1px solid #d8dee8; font-weight: 400; text-align: left; }
.image-picker-choice[hidden] { display: none !important; }
.image-picker-choice img { width: 60px; max-width: 60px; height: 60px; object-fit: contain; background: #f6f7f9; border-radius: .25rem; }
.image-picker-choice.is-selected { border: 2px solid #075985; background: #e0f2fe; }
.image-picker-none { grid-column: 1 / -1; }
@media (max-width: 480px) { .image-picker-choices { grid-template-columns: 1fr; max-height: 18rem; } }
@media (max-width: 760px) { .admin-page { padding: 1rem; } .admin-page form { max-width: none; } }
.card { padding: 1rem 0; border-bottom: 1px solid #d8dee8; }
.stops { display: grid; gap: .75rem; padding: 0; list-style: none; }
.stop { display: flex; gap: .75rem; align-items: center; }
.stop a { display: grid; gap: .25rem; }
audio { width: 100%; margin: 1rem 0; }
.pager { justify-content: space-between; }
.breadcrumbs { align-items: center; font-size: .9rem; }
.breadcrumbs span { color: #56616f; }
.route-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.language-switch { display: inline-flex; min-width: 2.5rem; min-height: 2.5rem; align-items: center; justify-content: center; border: 1px solid #a8b0bc; border-radius: .4rem; }
.language-switch img { width: 2rem; height: 1.4rem; object-fit: contain; }
textarea { min-height: 6rem; font: inherit; padding: .7rem; }
fieldset { border: 1px solid #a8b0bc; border-radius: .4rem; }
.inline { display: inline; margin-right: .35rem; }
.inline button { padding: .4rem .55rem; font-size: .85rem; }
.backup-upload-progress { display: grid; gap: .55rem; }
.backup-upload-progress progress { width: 100%; height: 1.25rem; accent-color: #075985; }
.backup-upload-status { min-height: 1.5rem; margin: 0; font-weight: 600; }
.application-info { max-width: 52rem; margin: 1rem 0 1.5rem; background: #fff; border: 1px solid #d8dee8; }
.application-info th { width: 34%; font-weight: 700; background: #f6f7f9; }
.application-info th, .application-info td { padding: .7rem .8rem; }
.backup-restore-choice { display: grid; gap: .7rem; margin: 1rem 0; padding: 1rem 1.1rem; border: 1px solid #a8b0bc; border-radius: .55rem; background: #fff; }
.backup-restore-choice legend { padding: 0 .35rem; font-size: 1.05rem; font-weight: 800; }
.backup-restore-choice p { margin: 0; line-height: 1.5; }
.backup-restore-choice label { align-items: start; }
.backup-restore-choice input[type="checkbox"] { width: 1.3rem; height: 1.3rem; margin-top: .1rem; accent-color: #075985; }
.backup-restore-choice--warning { border-color: #b45309; background: #fff4e5; }
.backup-restore-choice--warning legend { color: #92400e; }
.backup-restore-choice--ok { border-color: #166534; background: #f0fdf4; }
.backup-restore-choice--ok h2 { margin: 0; color: #166534; font-size: 1.05rem; }
.backup-restore-choice--confirm { border-color: #075985; background: #e0f2fe; }
@media (max-width: 560px) { .application-info, .application-info tbody, .application-info tr, .application-info th, .application-info td { display: block; width: auto; } .application-info tr { border-bottom: 1px solid #d8dee8; } .application-info tr:last-child { border-bottom: 0; } .application-info th, .application-info td { border: 0; } .application-info td { padding-top: 0; } }
.notice { padding: 1rem; margin: 1rem 0; background: #e0f2fe; border-radius: .5rem; overflow-wrap: anywhere; }
.access-code { font-size: 2rem; font-weight: 800; letter-spacing: .08em; margin: .25rem 0; }
.dashboard-guest-qr { display: flex; align-items: center; gap: 1rem; margin: 1rem 0 0; }
.dashboard-guest-qr img { width: 10rem; height: 10rem; flex: 0 0 auto; image-rendering: pixelated; background: #fff; }
.dashboard-guest-qr img, .activation-qr img, .audio-qr img { border-radius: 0; }
.dashboard-guest-qr figcaption { max-width: 28rem; }
code { user-select: all; }
.welcome { text-align: center; }
.organization-logo { display: block; width: min(12rem, 70vw); max-height: 8rem; object-fit: contain; margin: 0 auto 1rem; }
.welcome-text { white-space: normal; }
.language-flag { width: 2rem; height: 1.4rem; object-fit: cover; vertical-align: middle; border-radius: .2rem; }
.language-link { display: inline-flex; align-items: center; gap: .55rem; padding: .35rem 0; }
.audio-track { margin: 1.25rem 0; padding: .9rem; border: 1px solid #d8dee8; border-radius: .5rem; }
.audio-track.is-selected { border: 2px solid #075985; background: #e0f2fe; }
.audio-track h2 { margin: 0 0 .4rem; font-size: 1.1rem; }
.translation-panel { margin: 1rem 0; border: 1px solid #a8b0bc; border-radius: .4rem; padding: .6rem; }
.translation-panel summary { cursor: pointer; font-weight: 700; }
.translation-panel fieldset { margin-top: .75rem; }
.audio-qr { display: inline-flex; flex-direction: column; gap: .35rem; margin: .75rem .75rem .25rem 0; font-size: .85rem; }
.audio-qr img { width: 9rem; height: 9rem; image-rendering: pixelated; }
.activation-qr { display: flex; align-items: flex-start; gap: 1rem; margin: 1rem 0; }
.activation-qr img { width: 12rem; height: 12rem; flex: 0 0 auto; image-rendering: pixelated; }
.activation-qr figcaption { max-width: 26rem; padding-top: .5rem; }
@media (max-width: 480px) { .activation-qr, .dashboard-guest-qr { flex-direction: column; } }
.gallery { margin: 1rem 0; }
.gallery-main { display: block; width: 100%; max-height: 28rem; object-fit: contain; background: #e8edf3; }
.gallery-thumbs { display: flex; gap: .5rem; overflow-x: auto; padding-top: .5rem; }
.gallery-thumb { flex: 0 0 5rem; padding: 0; background: transparent; border: 2px solid transparent; border-radius: .4rem; }
.gallery-thumb.is-selected { border-color: #075985; }
.gallery-thumb img { width: 100%; height: 4rem; object-fit: contain; background: #e8edf3; display: block; }

.admin-page .publish-control { margin: .5rem 0; padding: 1rem 1.1rem; border: 2px solid #075985; border-radius: .55rem; background: #e0f2fe; }
.admin-page .publish-control legend { padding: 0 .35rem; color: #075985; font-weight: 800; }
.admin-page .publish-control label { display: flex; align-items: flex-start; gap: .8rem; color: #18212f; cursor: pointer; }
.admin-page .publish-control input[type="checkbox"] { flex: 0 0 auto; width: 1.45rem; height: 1.45rem; margin-top: .15rem; accent-color: #075985; }
.admin-page .publish-control span { display: grid; gap: .25rem; }
.admin-page .publish-control strong { font-size: 1.1rem; }
.admin-page .publish-control small { color: #374151; font-weight: 400; line-height: 1.4; }
.admin-page .publish-control:has(input:checked) { border-color: #166534; background: #dcfce7; }
.admin-page .publish-control:has(input:checked) legend { color: #166534; }
.usage-chart-wrap { overflow-x: auto; padding: 1rem; margin: 1rem 0; background: #fff; border: 1px solid #d8dee8; border-radius: .5rem; }
.usage-chart { display: block; width: 100%; min-width: 42rem; max-height: 22rem; }
.usage-chart__axis { stroke: #a8b0bc; stroke-width: 1; }
.usage-chart__label { fill: #374151; font: 12px system-ui, sans-serif; }
.usage-chart__legend { display: flex; flex-wrap: wrap; gap: 1rem; margin: .5rem 0 0; }
.usage-chart__legend span { display: inline-flex; align-items: center; gap: .4rem; }
.usage-chart__legend i { width: .8rem; height: .8rem; border-radius: .15rem; }
.statistics-filter { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem 1rem; margin: 1rem 0 1.5rem; padding: 1rem; background: #f7f3ef; border: 1px solid #ddcfbf; border-radius: .6rem; }
.statistics-filter label { margin: 0; min-width: 10rem; }
.statistics-filter button { margin: 0; }
.statistics-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.statistics-kpis article, .statistics-card { background: #fff; border: 1px solid #dfd5ca; border-radius: .65rem; box-shadow: 0 2px 8px rgba(65, 45, 30, .06); }
.statistics-kpis article { display: grid; gap: .25rem; padding: 1rem 1.1rem; }
.statistics-kpis span, .statistics-kpis small { color: #5f5a54; }
.statistics-kpis strong { color: #704d32; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; }
.statistics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.statistics-card { min-height: 22rem; padding: 1rem; }
.statistics-card--wide { grid-column: span 2; min-height: 25rem; }
.statistics-card canvas { width: 100% !important; height: 100% !important; }
.statistics-table-wrap { overflow-x: auto; margin: 1rem 0; }
.statistics-empty { padding: 1rem; color: #6b421e; background: #fff4df; border-left: 4px solid #a66b22; }
@media (max-width: 720px) { .statistics-kpis, .statistics-grid { grid-template-columns: 1fr; } .statistics-card--wide { grid-column: auto; } .statistics-card, .statistics-card--wide { min-height: 19rem; } .statistics-filter label { width: 100%; } }
