:root {
    --op-blue: #294094;
    --op-blue-dark: #1d2f70;
    --op-blue-soft: #e9ecf6;
    --op-red: #e0261c;
    --op-red-dark: #b91e16;
    --op-red-soft: #fde9e7;
    --op-gold: #fda302;
    --op-gold-dark: #a96800;
    --op-gold-soft: #fff3d6;
    --op-bg: #f3f5f9;
    --op-surface: #fff;
    --op-border: #dfe3eb;
    --op-text: #1c2230;
    --op-muted: #687386;
    --op-success: #278354;
    --op-success-soft: #e4f4eb;
    --sidebar-width: 254px;
    --topbar-height: 72px;
    --shadow-sm: 0 1px 2px rgba(24, 37, 69, .04), 0 6px 18px rgba(24, 37, 69, .05);
}

.payment-box { margin-top: 1.5rem; padding: 1.25rem; border-radius: 16px; background: #f5f7ff; border: 1px solid #dfe4f5; }
.payment-box h2 { margin-top: 0; }
.payment-sync-note { display: flex; align-items: flex-start; justify-content: center; gap: .55rem; margin: 1rem 0 0; color: var(--op-muted); font-size: .9rem; }
.payment-sync-note i { flex: 0 0 auto; color: var(--op-blue); font-size: 1rem; }
.payment-qr { width: 220px; max-width: 100%; margin: 1rem auto 0; padding: .5rem; background: #fff; }
.payment-qr img, .payment-qr canvas { display: block; width: 100%; height: auto; }
.ticket-downloads { display: flex; flex-wrap: wrap; gap: .75rem; }
.ticket-price-total { margin: .65rem 0 0; font-size: 1rem; }
.ticket-price-total strong { color: var(--op-blue); }

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; background: var(--op-bg); }
body { margin: 0; color: var(--op-text); background: var(--op-bg); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(253, 163, 2, .7); outline-offset: 2px; }
.visually-hidden { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 14px; color: #fff; background: var(--op-blue-dark); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; width: var(--sidebar-width); flex-direction: column; color: #fff; background: var(--op-blue); box-shadow: 10px 0 30px rgba(29, 47, 112, .08); }
.sidebar::after { position: absolute; inset: 0 0 0 auto; width: 1px; background: rgba(255,255,255,.13); content: ""; }
.sidebar-brand { display: flex; min-height: var(--topbar-height); align-items: center; justify-content: space-between; padding: 11px 16px 11px 18px; border-bottom: 1px solid rgba(255,255,255,.14); }
.sidebar-brand > a { display: flex; min-width: 0; align-items: center; gap: 11px; color: #fff; text-decoration: none; }
.brand-mark { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; background: #fff; border-radius: 12px; box-shadow: 0 5px 18px rgba(17,32,87,.2); overflow: hidden; }
.brand-mark img { display: block; max-width: 36px; max-height: 36px; object-fit: contain; }
.brand-copy { display: flex; min-width: 0; flex-direction: column; }
.brand-copy strong { font-size: 15px; line-height: 1.2; letter-spacing: .01em; }
.brand-copy small { margin-top: 3px; color: rgba(255,255,255,.68); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.sidebar-nav { flex: 1; padding: 22px 14px; overflow-y: auto; }
.nav-label { margin: 0 12px 8px; color: rgba(255,255,255,.48); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.nav-label--spaced { margin-top: 28px; }
.nav-item { position: relative; display: flex; min-height: 44px; align-items: center; gap: 12px; margin: 3px 0; padding: 9px 12px; color: rgba(255,255,255,.76); border-radius: 9px; font-size: 14px; font-weight: 650; text-decoration: none; transition: color .16s ease, background .16s ease, transform .16s ease; }
.nav-item > i { width: 20px; font-size: 17px; text-align: center; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.09); }
.nav-item.is-active { color: var(--op-blue-dark); background: #fff; box-shadow: 0 7px 18px rgba(20,35,95,.2); }
.nav-item[aria-disabled="true"] { cursor: default; }
.nav-badge { display: inline-grid; min-width: 22px; height: 22px; margin-left: auto; padding: 0 6px; place-items: center; color: #fff; background: var(--op-red); border-radius: 999px; font-size: 11px; font-weight: 800; }
.sidebar-footer { display: flex; align-items: center; gap: 10px; margin: 14px; padding: 13px; color: rgba(255,255,255,.8); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; }
.sidebar-footer > span:not(.environment-dot) { display: flex; flex-direction: column; }
.sidebar-footer strong { font-size: 12px; }
.sidebar-footer small { color: rgba(255,255,255,.56); font-size: 10px; }
.environment-dot { width: 8px; height: 8px; background: var(--op-gold); border-radius: 50%; box-shadow: 0 0 0 4px rgba(253,163,2,.15); }
.sidebar-close { display: none; color: #fff; }
.sidebar-backdrop { display: none; }

.app-main { display: flex; min-height: 100vh; margin-left: var(--sidebar-width); flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; height: var(--topbar-height); align-items: center; justify-content: space-between; padding: 0 32px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--op-border); backdrop-filter: blur(10px); }
.topbar-start, .topbar-actions { display: flex; align-items: center; gap: 12px; }
.icon-button { display: inline-grid; width: 40px; height: 40px; padding: 0; place-items: center; color: var(--op-muted); background: transparent; border: 0; border-radius: 9px; cursor: pointer; }
.icon-button:hover { color: var(--op-blue); background: var(--op-blue-soft); }
.menu-toggle { display: none; }
.app-switcher, .user-menu { position: relative; }
.app-switcher-button, .user-button { display: flex; align-items: center; gap: 10px; padding: 6px 8px; color: var(--op-text); background: transparent; border: 0; border-radius: 10px; cursor: pointer; text-align: left; }
.app-switcher-button:hover, .user-button:hover { background: #f4f6f9; }
.app-switcher-mark { display: none; width: 34px; height: 34px; place-items: center; color: #fff; background: var(--op-blue); border-radius: 9px; font-size: 12px; font-weight: 850; }
.app-switcher-button > span:not(.app-switcher-mark), .user-copy { display: flex; flex-direction: column; }
.app-switcher-button strong, .user-button strong { font-size: 13px; line-height: 1.2; }
.app-switcher-button small, .user-button small { color: var(--op-muted); font-size: 10px; }
.app-switcher-button > i, .user-button > i { margin-left: 3px; color: #98a0af; font-size: 11px; }
.notification-button { position: relative; font-size: 18px; }
.notification-button span { position: absolute; top: 5px; right: 5px; width: 10px; height: 10px; background: var(--op-success); border: 2px solid #fff; border-radius: 50%; }
.notification-dialog { width: min(92vw, 470px); padding: 32px; color: var(--op-text); background: #fff; border: 0; border-radius: 18px; box-shadow: 0 22px 70px rgba(17, 27, 54, .28); }
.notification-dialog::backdrop { background: rgba(20, 29, 50, .56); backdrop-filter: blur(2px); }
.notification-dialog__close { position: absolute; top: 12px; right: 12px; }
.notification-dialog__icon { display: grid; width: 54px; height: 54px; margin-bottom: 20px; place-items: center; color: var(--op-blue); background: var(--op-blue-soft); border-radius: 15px; font-size: 23px; }
.notification-dialog h2 { margin: 0 0 10px; font-size: 25px; }
.notification-dialog > p:not(.eyebrow) { margin: 0; color: var(--op-muted); font-size: 13px; line-height: 1.6; }
.notification-status { display: flex; margin: 22px 0; padding: 13px 14px; align-items: center; gap: 10px; color: var(--op-muted); background: #f5f6f8; border-radius: 10px; font-size: 12px; }
.notification-status > span { width: 9px; height: 9px; flex: 0 0 auto; background: #9aa2af; border-radius: 50%; }
.notification-status.is-enabled { color: #176943; background: #edf8f2; }
.notification-status.is-enabled > span { background: var(--op-success); }
.notification-dialog__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.notification-dialog__actions .button { justify-content: center; padding-inline: 12px; }
.install-help { margin-top: 16px; padding: 14px; color: #5c4a12; background: #fff8df; border: 1px solid #f1df9b; border-radius: 10px; font-size: 12px; }
.install-help strong { display: block; margin-bottom: 5px; }
.install-help p { margin: 0; line-height: 1.5; }
.user-avatar { display: grid; width: 36px; height: 36px; place-items: center; color: #fff; background: var(--op-blue); border-radius: 50%; font-size: 12px; font-weight: 800; }
.popover-menu { position: absolute; top: calc(100% + 9px); right: 0; z-index: 60; width: 220px; padding: 7px; background: #fff; border: 1px solid var(--op-border); border-radius: 12px; box-shadow: 0 16px 45px rgba(27,39,76,.16); }
.app-menu { right: auto; left: 0; width: 280px; }
.popover-menu[hidden] { display: none; }
.popover-menu a { display: flex; min-height: 42px; align-items: center; gap: 10px; padding: 8px 10px; color: var(--op-text); border-radius: 8px; font-size: 13px; text-decoration: none; }
.popover-menu a:hover { background: var(--op-blue-soft); }
.popover-menu a > i:first-child { width: 20px; color: var(--op-blue); text-align: center; }
.popover-menu a > i:last-child { margin-left: auto; color: var(--op-success); }
.popover-menu a > span { display: flex; flex-direction: column; }
.popover-menu a small { color: var(--op-muted); font-size: 10px; }
.popover-menu hr { margin: 6px; border: 0; border-top: 1px solid var(--op-border); }
.popover-menu .is-current { background: #f6f7fb; }
.popover-menu form { margin: 0; }
.popover-menu form button { display: flex; width: 100%; min-height: 42px; align-items: center; gap: 10px; padding: 8px 10px; color: var(--op-text); background: transparent; border: 0; border-radius: 8px; font-size: 13px; cursor: pointer; text-align: left; }
.popover-menu form button:hover { background: var(--op-red-soft); color: var(--op-red-dark); }
.popover-menu form button i { width: 20px; text-align: center; }

.content { width: min(1500px, 100%); margin: 0 auto; padding: 36px 36px 60px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.eyebrow, .panel-kicker { margin: 0 0 5px; color: var(--op-blue); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.page-heading h1 { margin: 0; color: var(--op-text); font-size: clamp(26px, 3vw, 36px); line-height: 1.16; letter-spacing: -.035em; }
.page-heading > div > p:last-child { margin: 8px 0 0; color: var(--op-muted); }
.heading-actions { display: flex; flex: 0 0 auto; gap: 9px; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button--primary { color: #fff; background: var(--op-red); box-shadow: 0 7px 16px rgba(224,38,28,.18); }
.button--primary:hover { background: var(--op-red-dark); }
.button--secondary { color: var(--op-blue); background: #fff; border-color: var(--op-border); }
.button--secondary:hover { background: var(--op-blue-soft); border-color: #cbd2e3; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat-card { position: relative; display: grid; min-width: 0; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 20px; background: #fff; border: 1px solid var(--op-border); border-radius: 14px; box-shadow: var(--shadow-sm); }
.stat-icon { display: grid; width: 43px; height: 43px; place-items: center; color: var(--op-blue); background: var(--op-blue-soft); border-radius: 11px; font-size: 19px; }
.stat-icon--red { color: var(--op-red); background: var(--op-red-soft); }
.stat-icon--gold { color: var(--op-gold-dark); background: var(--op-gold-soft); }
.stat-icon--neutral { color: #596275; background: #edf0f4; }
.stat-copy { display: flex; min-width: 0; flex-direction: column; }
.stat-copy span { overflow: hidden; color: var(--op-muted); font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.stat-copy strong { margin: 1px 0 -2px; font-size: 26px; line-height: 1.2; letter-spacing: -.03em; }
.stat-copy small { overflow: hidden; color: #8b93a1; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.stat-card > a { align-self: flex-start; color: #a0a7b3; font-size: 13px; }
.stat-card > a:hover { color: var(--op-blue); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(310px, .75fr); gap: 18px; }
.panel { min-width: 0; background: #fff; border: 1px solid var(--op-border); border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-heading { display: flex; min-height: 75px; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; border-bottom: 1px solid var(--op-border); }
.panel-heading h2, .attention-heading h2 { margin: 0; font-size: 17px; line-height: 1.2; letter-spacing: -.01em; }
.panel-heading-tools { display: flex; flex: none; align-items: center; gap: 14px; }
.search-field { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; color: var(--op-text); background: #fff; border: 1px solid #ccd2dd; border-radius: 9px; }
.search-field:focus-within { border-color: var(--op-blue); box-shadow: 0 0 0 3px rgba(41,64,148,.12); }
.search-field i.bi-search { color: var(--op-muted); font-size: 13px; }
.search-field input { width: 220px; min-height: auto; padding: 0; color: inherit; background: transparent; border: 0; outline: 0; font-size: 12px; }
.search-field a { display: flex; color: var(--op-muted); }
.search-field a:hover { color: var(--op-red); }
@media (max-width: 640px) {
    .panel-heading { flex-wrap: wrap; height: auto; }
    .panel-heading-tools { flex-wrap: wrap; width: 100%; }
    .search-field { flex: 1 1 auto; }
}
.text-link, .panel-footer-link { display: inline-flex; align-items: center; gap: 7px; color: var(--op-blue); font-size: 12px; font-weight: 750; text-decoration: none; }
.text-link:hover, .panel-footer-link:hover { color: var(--op-red); }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { padding: 11px 14px; color: #808999; background: #f8f9fb; border-bottom: 1px solid var(--op-border); font-size: 9px; font-weight: 850; letter-spacing: .09em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child { padding-left: 20px; }
.data-table td { min-width: 105px; padding: 15px 14px; border-bottom: 1px solid #edf0f4; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfcfd; }
.data-table td:first-child { min-width: 245px; }
.data-table td:nth-child(4) { min-width: 155px; }
.data-table td > strong, .data-table td > small { display: block; }
.data-table td > strong { font-size: 12px; }
.data-table td > small { margin-top: 3px; color: var(--op-muted); font-size: 10px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; color: #525c6f; background: #edf0f4; border-radius: 999px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.status-badge > span { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.status-badge--success { color: #1f7147; background: var(--op-success-soft); }
.status-badge--warning { color: #936000; background: var(--op-gold-soft); }
.status-badge--danger { color: #b42318; background: var(--op-red-soft); }
.status-badge--info { color: var(--op-blue); background: var(--op-blue-soft); }
.progress-copy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; color: var(--op-muted); font-size: 10px; }
.progress-copy strong { color: var(--op-text); font-size: 10px; }
.progress { height: 5px; background: #e9edf3; border-radius: 10px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--op-blue); border-radius: inherit; }
.ticket-upload-progress { margin: 18px 0; }
.ticket-upload-progress .progress { height: 9px; }
.ticket-file-list { margin-top: 18px; }
.ticket-files-table td:first-child { min-width: 260px; }
.ticket-files-table th:first-child, .ticket-files-table td:first-child { width: 44px; min-width: 44px; padding-inline: 14px; text-align: center; }
.ticket-files-table td:nth-child(3) { min-width: 240px; }
.ticket-files-table td:nth-child(5) { min-width: 210px; }
.ticket-move-bar { display: flex; align-items: end; justify-content: flex-end; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--op-border); }
.ticket-move-bar .field { width: min(100%, 420px); }
.row-action { display: grid; width: 30px; height: 30px; place-items: center; color: var(--op-muted); border-radius: 7px; text-decoration: none; }
.row-action:hover { color: var(--op-blue); background: var(--op-blue-soft); }
.row-actions { display: flex; align-items: center; gap: 3px; }
.row-action[data-tooltip] { position: relative; }
.row-action[data-tooltip]::after { position: absolute; right: 0; bottom: calc(100% + 7px); z-index: 20; width: max-content; max-width: 180px; padding: 5px 8px; color: #fff; background: var(--op-text); border-radius: 6px; content: attr(data-tooltip); font-size: 9px; font-weight: 700; line-height: 1.3; opacity: 0; pointer-events: none; transform: translateY(3px); transition: opacity .14s ease, transform .14s ease; }
.row-action[data-tooltip]:hover::after, .row-action[data-tooltip]:focus-visible::after { opacity: 1; transform: translateY(0); }

.activity-list { margin: 0; padding: 8px 20px; list-style: none; }
.activity-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px solid #edf0f4; }
.activity-icon { display: grid; width: 34px; height: 34px; place-items: center; color: var(--op-blue); background: var(--op-blue-soft); border-radius: 9px; font-size: 14px; }
.activity-icon--green { color: var(--op-success); background: var(--op-success-soft); }
.activity-icon--gold { color: var(--op-gold-dark); background: var(--op-gold-soft); }
.activity-icon--red { color: var(--op-red); background: var(--op-red-soft); }
.activity-copy { display: flex; min-width: 0; flex-direction: column; }
.activity-copy strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.activity-copy small { overflow: hidden; margin-top: 2px; color: var(--op-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.activity-list time { color: #969eaa; font-size: 9px; white-space: nowrap; }
.panel-footer-link { display: flex; justify-content: center; padding: 13px; border-top: 1px solid var(--op-border); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 16px; border-top: 1px solid var(--op-border); color: var(--op-muted); font-size: 11px; }
.fio-payments-table td:nth-child(5) { min-width: 260px; }
.fio-payments-table td:nth-child(5) a { color: var(--op-blue); text-decoration: none; }
.fio-payments-table td:nth-child(5) a:hover { text-decoration: underline; }
.fio-sync-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-bottom: 18px; padding: 16px 18px; }
.fio-sync-icon { display: grid; width: 42px; height: 42px; place-items: center; color: var(--op-blue); background: var(--op-blue-soft); border-radius: 11px; font-size: 18px; }
.fio-sync-copy h2 { margin: 1px 0 5px; font-size: 14px; }
.fio-sync-copy > small { display: block; margin-top: 5px; color: var(--op-muted); font-size: 10px; }
.fio-sync-result { display: flex; align-items: center; gap: 10px; }
.fio-sync-result time { color: var(--op-muted); font-size: 10px; }
.fio-sync-links { display: flex; align-items: flex-end; flex-direction: column; gap: 7px; }

.attention-panel { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; margin-top: 18px; padding: 20px; background: var(--op-gold-soft); border: 1px solid #f1d592; border-radius: 14px; }
.attention-heading { display: flex; align-items: center; gap: 13px; }
.attention-heading > span { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; color: #fff; background: var(--op-gold-dark); border-radius: 11px; font-size: 18px; }
.attention-heading .panel-kicker { color: var(--op-gold-dark); }
.attention-items { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.attention-items a { display: grid; min-width: 0; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 12px; background: rgba(255,255,255,.78); border: 1px solid rgba(185,117,0,.14); border-radius: 10px; text-decoration: none; }
.attention-items a:hover { background: #fff; border-color: rgba(185,117,0,.3); }
.attention-count { display: grid; width: 32px; height: 32px; place-items: center; color: var(--op-gold-dark); background: #fff0c5; border-radius: 8px; font-size: 13px; font-weight: 850; }
.attention-items a > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.attention-items strong, .attention-items small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attention-items strong { font-size: 10px; }
.attention-items small { color: #81745b; font-size: 9px; }
.attention-items a > i { color: #ac956a; font-size: 11px; }

.app-footer { display: flex; justify-content: space-between; gap: 18px; margin-top: auto; padding: 18px 36px; color: #87909e; border-top: 1px solid var(--op-border); font-size: 10px; }

.auth-page { min-height: 100vh; background: #fff; }
.auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(360px, .9fr) minmax(460px, 1.1fr); }
.auth-brand-panel { position: relative; display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; padding: clamp(38px, 6vw, 76px); color: #fff; background: var(--op-blue); overflow: hidden; }
.auth-brand-panel::before { position: absolute; right: -28%; bottom: -20%; width: 560px; height: 560px; border: 115px solid rgba(255,255,255,.045); border-radius: 50%; content: ""; }
.auth-brand-panel::after { position: absolute; top: -150px; right: -150px; width: 340px; height: 340px; border: 70px solid rgba(253,163,2,.06); border-radius: 50%; content: ""; }
.auth-brand-content, .auth-motto { position: relative; z-index: 1; }
.auth-logo { display: grid; width: 76px; height: 76px; margin-bottom: 48px; place-items: center; background: #fff; border-radius: 20px; box-shadow: 0 16px 35px rgba(15,28,85,.28); }
.auth-logo img { max-width: 66px; max-height: 66px; }
.auth-eyebrow { margin: 0 0 12px; color: var(--op-gold); font-size: 11px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.auth-brand-panel h1 { margin: 0; font-size: clamp(38px, 5vw, 62px); line-height: .98; letter-spacing: -.055em; }
.auth-brand-panel h1 + p { max-width: 450px; margin: 24px 0 0; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.7; }
.auth-motto { margin: 40px 0 0; color: rgba(255,255,255,.58); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.auth-form-panel { display: grid; min-height: 100vh; padding: 32px; place-items: center; background: #f8f9fc; }
.auth-card { width: min(100%, 420px); padding: 42px; background: #fff; border: 1px solid var(--op-border); border-radius: 18px; box-shadow: 0 22px 65px rgba(32,47,92,.1); }
.auth-card h2 { margin: 0; font-size: 30px; letter-spacing: -.035em; }
.auth-intro { margin: 8px 0 28px; color: var(--op-muted); font-size: 13px; }
.auth-mobile-logo { display: none; }
.alert { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 20px; padding: 11px 13px; border-radius: 9px; font-size: 12px; }
.alert--danger { color: #9c241d; background: var(--op-red-soft); border: 1px solid #f5cbc7; }
.alert--success { color: #1f7147; background: var(--op-success-soft); border: 1px solid #bde3cd; }
.alert strong { display: block; }
.alert ul { margin: 5px 0 0; padding-left: 18px; }

.page-heading--top { align-items: center; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; color: var(--op-blue); font-size: 12px; font-weight: 750; text-decoration: none; }
.back-link:hover { color: var(--op-red); }
.filter-panel { margin-bottom: 18px; overflow: visible; }
.filter-tabs { display: flex; gap: 5px; padding: 10px; overflow-x: auto; }
.filter-tabs a { flex: 0 0 auto; padding: 8px 12px; color: var(--op-muted); border-radius: 8px; font-size: 11px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.filter-tabs a:hover { color: var(--op-blue); background: var(--op-blue-soft); }
.filter-tabs a.is-active { color: #fff; background: var(--op-blue); }
.empty-state { display: flex; min-height: 300px; align-items: center; justify-content: center; padding: 38px 20px; flex-direction: column; text-align: center; }
.empty-state > span { display: grid; width: 52px; height: 52px; margin-bottom: 14px; place-items: center; color: var(--op-blue); background: var(--op-blue-soft); border-radius: 14px; font-size: 23px; }
.empty-state h3 { margin: 0; font-size: 16px; }
.empty-state p { max-width: 390px; margin: 6px 0 18px; color: var(--op-muted); font-size: 12px; }
.empty-state--compact { min-height: 245px; padding-block: 28px; }
.batch-table td:nth-child(5) { min-width: 170px; }
.batch-table .batch-match-row th { background: #eef2ff; border-top: 2px solid var(--op-blue); padding: 14px 16px; text-align: left; }
.batch-match-row th > div { align-items: center; display: flex; gap: 16px; justify-content: space-between; }
.batch-match-row strong, .batch-match-row small { display: block; }
.batch-match-row strong { color: var(--op-blue); font-size: 1rem; }
.batch-match-row small { color: var(--op-muted); font-weight: 500; margin-top: 3px; }
@media (max-width: 640px) {
  .batch-match-row th > div { align-items: flex-start; flex-direction: column; }
}
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 18px; }
.editor-main { display: grid; gap: 18px; }
.editor-sidebar { min-width: 0; }
.sticky-panel { position: sticky; top: calc(var(--topbar-height) + 18px); }
.form-panel { overflow: visible; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 22px; }
.field { display: flex; min-width: 0; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { margin-bottom: 7px; color: #394153; font-size: 12px; font-weight: 750; }
.field label span { color: var(--op-red); }
.field input, .field select, .field textarea { width: 100%; color: var(--op-text); background: #fff; border: 1px solid #ccd2dd; border-radius: 9px; outline: 0; }
.field input, .field select { min-height: 44px; padding: 9px 11px; }
.field textarea { min-height: 110px; padding: 11px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #aeb7c7; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--op-blue); box-shadow: 0 0 0 3px rgba(41,64,148,.12); }
.field small { margin-top: 6px; color: var(--op-muted); font-size: 10px; }
.field input[type="checkbox"] { width: auto; min-height: auto; padding: 0; accent-color: var(--op-blue); }
.checkbox-option { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 500 !important; color: var(--op-text) !important; cursor: pointer; }
.form-stack { display: grid; gap: 12px; padding: 20px; }
.form-hint { display: flex; align-items: flex-start; gap: 7px; margin: 0 0 4px; padding: 10px; color: var(--op-muted); background: #f6f7fa; border-radius: 8px; font-size: 10px; }
.form-hint i { color: var(--op-blue); }
.attention-items--single { grid-template-columns: minmax(0, 460px); }
.panel-note { color: var(--op-muted); font-size: 10px; }
.qr-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 430px); align-items: start; gap: 18px; }
.qr-workspace { display: grid; gap: 18px; }
.qr-preview-column { min-width: 0; }
.qr-source-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 22px 22px 12px; }
.qr-source-button { display: flex; min-height: 88px; align-items: center; gap: 13px; padding: 16px; color: var(--op-text); background: #fff; border: 1px solid #ccd2dd; border-radius: 11px; cursor: pointer; text-align: left; }
.qr-source-button:hover { color: var(--op-blue); background: var(--op-blue-soft); border-color: #aeb7c7; }
.qr-source-button > i { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; color: var(--op-blue); background: var(--op-blue-soft); border-radius: 10px; font-size: 19px; }
.qr-source-button > span { display: flex; min-width: 0; flex-direction: column; }
.qr-source-button strong { font-size: 12px; }
.qr-source-button small { margin-top: 3px; color: var(--op-muted); font-size: 10px; }
.qr-content-field { padding: 10px 22px 22px; }
.qr-message { min-height: 0; margin: -9px 22px 20px; color: var(--op-muted); font-size: 11px; }
.qr-message:empty { margin-bottom: 0; }
.qr-message--success { color: var(--op-success); }
.qr-message--error { color: var(--op-red-dark); }
.qr-message--info { color: var(--op-blue); }
.qr-camera { position: relative; margin: 10px 22px; background: #111; border-radius: 12px; overflow: hidden; }
.qr-camera video { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.qr-camera-frame { position: absolute; top: 50%; left: 50%; width: min(68%, 330px); aspect-ratio: 1; border: 3px solid rgba(255,255,255,.9); border-radius: 16px; box-shadow: 0 0 0 999px rgba(0,0,0,.22); transform: translate(-50%, -50%); pointer-events: none; }
.qr-camera .button { position: absolute; right: 12px; bottom: 12px; }
.qr-preview-wrap { padding: 22px; background: #f6f7fa; }
.qr-preview-wrap > canvas { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--op-border); border-radius: 10px; box-shadow: var(--shadow-sm); }
.qr-text-fields { gap: 14px; }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.settings-heading, .settings-narrow { width: min(100%, 680px); margin-inline: auto; }
.settings-panel-icon { color: var(--op-blue); font-size: 22px; }
.security-form { display: grid; gap: 19px; padding: 22px; }
.security-password-wrap { position: relative; }
.security-password-wrap input { padding-right: 48px; }
.security-password-wrap .password-toggle { top: 4px; }
.security-actions { display: flex; gap: 9px; padding-top: 3px; }
.public-page { min-height: 100vh; background: #f3f5f9; }
.public-topbar { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 18px; padding: 10px max(18px, calc((100vw - 1080px) / 2)); color: #fff; background: var(--op-blue); border-bottom: 4px solid var(--op-red); }
.public-topbar > a { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.public-topbar > a > span { display: grid; width: 40px; height: 40px; place-items: center; background: #fff; border-radius: 10px; }
.public-topbar img { width: 34px; height: 34px; object-fit: contain; }
.public-topbar strong { font-size: 14px; }
.public-topbar > small { color: rgba(255,255,255,.7); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.public-topbar .app-switcher-button { color: #fff; }
.public-topbar .app-switcher-button:hover { background: rgba(255,255,255,.1); }
.public-topbar .app-switcher-button small, .public-topbar .app-switcher-button > i { color: rgba(255,255,255,.7); }
.public-topbar .app-menu { right: 0; left: auto; }
.public-topbar .app-menu a { color: var(--op-text); }
.public-topbar .app-switcher-mark { color: var(--op-blue); background: #fff; }
.public-content { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 60px; }
.public-footer { padding: 20px; color: #87909e; background: #fff; border-top: 1px solid var(--op-border); font-size: 10px; text-align: center; }
.public-form-layout { display: grid; grid-template-columns: minmax(270px, .65fr) minmax(0, 1.35fr); align-items: start; gap: 20px; }
.public-card { background: #fff; border: 1px solid var(--op-border); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.public-event-card { position: sticky; top: 20px; padding: 26px; }
.public-event-card h1, .request-confirmation h1 { margin: 0; font-size: clamp(25px, 4vw, 36px); line-height: 1.12; letter-spacing: -.035em; }
.public-match-opponent, .public-match-contingent { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 8px; margin: 12px 0 0; padding: 11px 12px; background: var(--op-blue-soft); border-radius: 9px; }
.public-match-opponent i, .public-match-contingent i { grid-row: 1 / 3; align-self: center; color: var(--op-blue); font-size: 17px; }
.public-match-opponent span, .public-match-contingent span { color: var(--op-muted); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.public-match-opponent strong, .public-match-contingent strong { color: var(--op-blue-dark); font-size: 12px; overflow-wrap: anywhere; }
.public-match-contingent { background: #f7f8fb; border: 1px solid var(--op-border); }
.public-event-card dl { display: grid; gap: 14px; margin: 25px 0; }
.public-event-card dl > div { padding-bottom: 13px; border-bottom: 1px solid #edf0f4; }
.public-event-card dt { color: var(--op-muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.public-event-card dt i { width: 18px; color: var(--op-blue); }
.public-event-card dd { margin: 4px 0 0; font-size: 13px; font-weight: 750; }
.public-event-note { margin: 0; padding: 12px; color: #74550c; background: var(--op-gold-soft); border-radius: 9px; font-size: 10px; }
.request-account-card { margin-top: 16px; padding: 15px; background: var(--op-blue-soft); border: 1px solid #d5dbef; border-radius: 12px; }
.request-account-heading { display: flex; align-items: center; gap: 10px; }
.request-account-heading > span { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; color: #fff; background: var(--op-blue); border-radius: 10px; font-size: 17px; }
.request-account-heading h2 { margin: 0; color: var(--op-blue-dark); font-size: 13px; }
.request-account-heading p { margin: 3px 0 0; color: var(--op-muted); font-size: 10px; }
.request-account-card dl { gap: 0; margin: 13px 0; }
.request-account-card dl > div { padding: 8px 0; }
.request-account-card .button { width: 100%; justify-content: center; }
.public-card-heading { padding: 22px; border-bottom: 1px solid var(--op-border); }
.public-card-heading h2 { margin: 0; font-size: 20px; }
.public-request-form .form-grid { padding-bottom: 16px; }
.member-profile-card { background: linear-gradient(145deg, #f7fcf9 0%, #f1f9f5 100%); border: 1px solid #c6e6d3; border-radius: 13px; overflow: hidden; }
.member-profile-heading { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #d8ecdf; }
.member-profile-icon { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; color: #1f7147; background: #dff3e7; border-radius: 11px; font-size: 19px; }
.member-profile-heading h2, .member-profile-heading h3 { margin: 0; color: #1f7147; font-size: 14px; }
.member-profile-heading p { margin: 3px 0 0; color: #54806a; font-size: 10px; }
.member-profile-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.member-profile-details > div { min-width: 0; padding: 14px 18px; }
.member-profile-details > div:nth-child(even) { border-left: 1px solid #d8ecdf; }
.member-profile-details > div:nth-child(n+3) { border-top: 1px solid #d8ecdf; }
.member-profile-details dt { display: flex; align-items: center; gap: 6px; color: #668173; font-size: 9px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.member-profile-details dt i { color: #29905d; font-size: 11px; }
.member-profile-details dd { margin: 5px 0 0; color: var(--op-text); font-size: 12px; font-weight: 750; overflow-wrap: anywhere; }
.member-account-page { display: grid; width: min(100%, 760px); gap: 18px; margin-inline: auto; }
.member-account-page .page-heading { width: 100%; margin-bottom: 4px; }
.member-account-page .member-profile-card,
.member-account-page .request-confirmation,
.member-account-page .public-state { width: 100%; max-width: none; margin: 0; }
.member-account-page .request-confirmation { padding: 30px; }
.member-account-page .ticket-downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.member-account-page .ticket-downloads .button { width: 100%; min-width: 0; justify-content: center; }
.public-submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: #f8f9fb; border-top: 1px solid var(--op-border); }
.public-submit small { color: var(--op-muted); font-size: 10px; text-align: right; }
.privacy-check { display: flex; align-items: flex-start; gap: 9px; color: var(--op-muted); font-size: 10px; line-height: 1.45; cursor: pointer; }
.privacy-check input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--op-blue); }
.privacy-check span span { color: var(--op-red); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.public-state { display: flex; min-height: 360px; align-items: center; justify-content: center; padding: 35px; flex-direction: column; text-align: center; }
.public-state > i { color: var(--op-blue); font-size: 40px; }
.public-state h1, .public-state h3 { margin: 14px 0 4px; }
.public-state p { margin: 0; color: var(--op-muted); }
.public-state--inline { min-height: 330px; border: 0; box-shadow: none; }
.request-confirmation { max-width: 680px; margin: 0 auto; padding: 38px; text-align: center; }
.confirmation-icon { display: grid; width: 62px; height: 62px; margin: 0 auto 18px; place-items: center; color: #fff; background: var(--op-success); border-radius: 50%; font-size: 29px; }
.request-confirmation > p:not(.eyebrow) { color: var(--op-muted); }
.request-summary { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; margin: 28px 0; background: var(--op-border); border: 1px solid var(--op-border); border-radius: 10px; overflow: hidden; text-align: left; }
.request-summary > div { display: flex; min-height: 78px; justify-content: center; padding: 14px; background: #fff; flex-direction: column; }
.request-summary span { color: var(--op-muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.request-summary strong { margin-top: 4px; font-size: 12px; }
.request-summary small { margin-top: 5px; color: var(--op-muted); font-size: 10px; }
.status-link-box { padding: 14px; background: #f6f7fa; border-radius: 10px; text-align: left; }
.status-link-box label { display: block; margin-bottom: 7px; font-size: 10px; font-weight: 750; }
.status-link-box > div { display: flex; gap: 8px; }
.status-link-box input { min-width: 0; flex: 1; padding: 9px 11px; border: 1px solid #ccd2dd; border-radius: 8px; font-size: 10px; }
.batch-public-link { padding: 10px; }
.batch-public-link > div { display: grid; grid-template-columns: minmax(0, 1fr) 42px; }
.batch-public-link input { width: 100%; }
.batch-public-link .button { width: 42px; min-width: 42px; padding: 0; }
.request-stats { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.request-stats article { display: flex; padding: 17px 19px; background: #fff; border: 1px solid var(--op-border); border-radius: 12px; box-shadow: var(--shadow-sm); flex-direction: column; }
.request-stats span { color: var(--op-muted); font-size: 10px; font-weight: 700; }
.request-stats strong { font-size: 24px; }
.request-table a { color: var(--op-blue); }
.member-code-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.member-code-control .button { min-height: 46px; padding-inline: 16px; }
.member-code-result { min-height: 20px; margin: 8px 0 0; font-size: .82rem; font-weight: 700; }
.member-code-result.is-pending { color: var(--op-muted); }
.member-code-result.is-valid { color: #1f7147; }
.member-code-result.is-valid::before { content: "✓ "; }
.member-code-result.is-invalid { color: #9c241d; }
.member-code-result.is-invalid::before { content: "! "; }
.request-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.request-actions form { margin: 0; }
.request-actions .button { min-height: 36px; padding: 7px 10px; font-size: .78rem; white-space: nowrap; }
.masked-code { letter-spacing: .08em; }

.email-preview-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .45fr); align-items: start; gap: 18px; }
.email-preview-panel { min-width: 0; overflow: hidden; }
.email-preview-body { min-height: 420px; padding: 20px; background: #f5f6f8; }
.email-preview-body iframe { width: 100%; min-height: 520px; background: #fff; border: 1px solid var(--op-border); border-radius: 9px; }
.email-preview-body pre { min-height: 380px; margin: 0; padding: 20px; white-space: pre-wrap; overflow-wrap: anywhere; background: #fff; border: 1px solid var(--op-border); border-radius: 9px; font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.email-confirm-panel { position: sticky; top: calc(var(--topbar-height) + 18px); }
.email-confirm-content { display: grid; gap: 15px; padding: 20px; color: var(--op-muted); font-size: 12px; line-height: 1.5; }
.email-confirm-content p { margin: 0; overflow-wrap: anywhere; }
.email-confirm-content form, .email-confirm-content .button { width: 100%; }
.email-confirm-content .button { justify-content: center; }
.email-body-editor { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; line-height: 1.55; }
.email-recipient-panel { margin-top: 18px; }
.email-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; }

@media (max-width: 520px) {
    .member-code-control { grid-template-columns: 1fr; }
    .member-code-control .button { width: 100%; }
}
.auth-form { display: flex; flex-direction: column; }
.auth-form label { margin-bottom: 7px; color: #394153; font-size: 12px; font-weight: 750; }
.label-row { display: flex; justify-content: space-between; margin-top: 18px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > i { position: absolute; left: 13px; color: #8d96a7; font-size: 15px; pointer-events: none; }
.input-wrap input { width: 100%; height: 46px; padding: 10px 42px; color: var(--op-text); background: #fff; border: 1px solid #ccd2dd; border-radius: 9px; outline: 0; }
.input-wrap input:hover { border-color: #aeb7c7; }
.input-wrap input:focus { border-color: var(--op-blue); box-shadow: 0 0 0 3px rgba(41,64,148,.12); }
.password-toggle { position: absolute; right: 5px; display: grid; width: 36px; height: 36px; padding: 0; place-items: center; color: #87909e; background: transparent; border: 0; border-radius: 7px; cursor: pointer; }
.password-toggle:hover { color: var(--op-blue); background: var(--op-blue-soft); }
.auth-submit { width: 100%; margin-top: 26px; }
.auth-help { margin: 25px 0 0; color: #828b9a; font-size: 10px; text-align: center; }
.auth-help i { margin-right: 4px; color: var(--op-success); }
.auth-staff-entry { display: flex; margin-top: 24px; padding-top: 18px; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--op-border); color: var(--op-muted); font-size: 10px; }
.auth-staff-entry a { display: inline-flex; align-items: center; gap: 6px; color: var(--op-blue); font-size: 11px; font-weight: 750; text-decoration: none; }
.auth-staff-entry a:hover { text-decoration: underline; }
.auth-staff-entry a:focus-visible { border-radius: 4px; outline: 3px solid rgba(41,64,148,.22); outline-offset: 3px; }

@media (max-width: 1180px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .attention-panel { grid-template-columns: 1fr; }
    .editor-layout { grid-template-columns: minmax(0, 1fr) 270px; }
    .qr-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (max-width: 860px) {
    .sidebar { transform: translateX(-105%); transition: transform .22s ease; }
    .sidebar-close, .menu-toggle { display: inline-grid; }
    .sidebar-is-open { overflow: hidden; }
    .sidebar-is-open .sidebar { transform: translateX(0); }
    .sidebar-backdrop { position: fixed; inset: 0; z-index: 35; background: rgba(20,29,50,.5); opacity: 0; transition: opacity .22s ease; }
    .sidebar-is-open .sidebar-backdrop { display: block; opacity: 1; }
    .app-main { margin-left: 0; }
    .topbar { padding: 0 20px; }
    .app-switcher-mark { display: grid; }
    .content { padding: 28px 20px 48px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .attention-items { grid-template-columns: 1fr; }
    .editor-layout { grid-template-columns: 1fr; }
    .sticky-panel { position: static; }
    .qr-layout { grid-template-columns: 1fr; }
    .qr-preview-column { order: -1; }
    .qr-preview-wrap > canvas { max-width: 430px; margin-inline: auto; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand-panel { display: none; }
    .auth-form-panel { min-height: 100vh; }
    .auth-mobile-logo { display: grid; width: 62px; height: 62px; margin-bottom: 28px; place-items: center; background: #fff; border: 1px solid var(--op-border); border-radius: 16px; box-shadow: var(--shadow-sm); }
    .auth-mobile-logo img { max-width: 54px; max-height: 54px; }
    .public-form-layout { grid-template-columns: 1fr; }
    .public-event-card { position: static; }
    .request-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .email-preview-layout { grid-template-columns: 1fr; }
    .email-confirm-panel { position: static; }
}

@media (max-width: 620px) {
    :root { --topbar-height: 64px; }
    .topbar { padding: 0 12px; }
    .app-switcher-button > span:not(.app-switcher-mark), .user-copy, .user-button > i { display: none; }
    .app-switcher-button, .user-button { padding: 4px; }
    .content { padding: 24px 14px 42px; }
    .page-heading { margin-bottom: 22px; }
    .page-heading > div > p:last-child { font-size: 13px; }
    .heading-actions { width: 100%; }
    .heading-actions .button { flex: 1; padding-inline: 10px; }
    .stats-grid { grid-template-columns: 1fr; gap: 10px; }
    .stat-card { padding: 16px; }
    .panel-heading { padding-inline: 16px; }
    .text-link { font-size: 0; }
    .text-link i { font-size: 15px; }
    .activity-list { padding-inline: 16px; }
    .activity-list time { display: none; }
    .attention-panel { padding: 16px; }
    .app-footer { align-items: center; padding: 16px; flex-direction: column; text-align: center; }
    .auth-form-panel { padding: 18px; }
    .auth-card { padding: 30px 24px; border-radius: 15px; }
    .auth-staff-entry { align-items: flex-start; flex-direction: column; }
    .form-grid { grid-template-columns: 1fr; padding: 18px 16px; }
    .fio-sync-summary { grid-template-columns: auto minmax(0, 1fr); }
    .fio-sync-links { grid-column: 2; align-items: flex-start; }
    .field--full { grid-column: auto; }
    .ticket-move-bar { align-items: stretch; flex-direction: column; }
    .ticket-move-bar .field { width: 100%; }
    .page-heading--top > .button { width: 100%; }
    .qr-source-options { grid-template-columns: 1fr; padding: 18px 16px 8px; }
    .qr-source-button { min-height: 74px; }
    .qr-content-field { padding: 10px 16px 18px; }
    .qr-message { margin-inline: 16px; }
    .qr-camera { margin-inline: 16px; }
    .qr-preview-wrap { padding: 16px; }
    .public-topbar { padding-inline: 14px; }
    .public-topbar > small { display: none; }
    .public-content { width: min(100% - 24px, 1080px); padding-block: 24px 40px; }
    .public-event-card { padding: 20px; }
    .member-profile-details { grid-template-columns: 1fr; }
    .member-profile-details > div:nth-child(even) { border-left: 0; }
    .member-profile-details > div:nth-child(n+2) { border-top: 1px solid #d8ecdf; }
    .member-profile-heading { align-items: flex-start; padding: 14px; }
    .member-profile-details > div { padding: 12px 14px; }
    .member-account-page { gap: 12px; }
    .member-account-page .request-confirmation { padding: 22px 14px; }
    .member-account-page .ticket-downloads { grid-template-columns: 1fr; }
    .public-submit { align-items: stretch; padding: 16px; flex-direction: column; }
    .public-submit small { text-align: left; }
    .request-confirmation { padding: 26px 18px; }
    .request-summary { grid-template-columns: 1fr; }
    .status-link-box > div { flex-direction: column; }
    .request-stats { grid-template-columns: 1fr; gap: 8px; }
    .request-stats article { flex-direction: row; align-items: center; justify-content: space-between; }
    .notification-dialog { padding: 28px 20px 22px; }
    .notification-dialog__actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto!important; transition-duration: .01ms!important; }
}
