/* Uses the federation tokens while retaining the independent events layout and controls. */
:root {--ink:var(--ui-ink);--muted:var(--ui-muted);--primary:var(--ui-primary);--primary-dark:var(--ui-primary-hover);--line:var(--ui-border);--canvas:var(--ui-bg);--shadow:var(--ui-shadow);--radius:10px}
body {font-size:15px}
.card,.selection-card,.stat-card,.dashboard-welcome,.details-form {border-radius:10px;box-shadow:var(--ui-shadow)}
.sidebar {background:#18354f}
.side-link.active {background:#ffffff18;border-inline-start:3px solid #d5b378}
.btn,.input,.field input,.field select,.field textarea {border-radius:6px;min-height:44px}
.btn-primary {background:var(--ui-primary)}
.stat-number {font-variant-numeric:tabular-nums}
.brand-symbol,.avatar {background:#eaf2f8;color:#174e78}
.badge {border-radius:5px;font-size:.78rem}
.page-heading h1 {font-size:clamp(1.3rem,2.2vw,1.8rem)}
.table-wrap {border:1px solid var(--ui-border);border-radius:8px}
th {background:#f0f4f8;color:#40546c}
th,td {font-size:.85rem;line-height:1.9}
.public-footer {flex-wrap:wrap;gap:16px;font-size:.8rem}
.ui-events-credit {padding:16px;text-align:center;color:var(--ui-muted);font-size:.8rem}
:focus-visible {outline:3px solid #b67518;outline-offset:3px}
@media(max-width:640px) {
    body {font-size:14px}
    .card {padding:18px}
    .field label,.field input,.field select,.field textarea,.btn,.details-form>summary {font-size:.875rem}
    .stat-top,.stat-footer,.event-details,.event-card p {font-size:.78rem}
    .admin-topbar .workspace-label {white-space:normal;overflow:visible;font-size:.8rem}
    .admin-identity small {font-size:.7rem}
    .dashboard-welcome p {font-size:.8rem}
    .dashboard-welcome .btn {min-height:44px;font-size:.85rem}
    .public-header-inner {flex-wrap:wrap;gap:12px}
    .public-header nav {flex-wrap:wrap;gap:12px}
}
@media print {
    .sidebar,.admin-topbar,.sidebar-overlay,.public-header,.public-footer,.menu-toggle {display:none!important}
    .admin-content {margin:0!important}
    .wrap {max-width:none;padding:0}
    body {background:#fff;color:#000}
    .card {box-shadow:none;break-inside:auto}
    .table-wrap {overflow:visible;border:0}
    table {min-width:0;width:100%}
    thead {display:table-header-group}
    tr {break-inside:avoid}
}
@media(max-width:640px) {
    .event-tools .btn,.table-wrap .btn,.form-actions .btn {min-height:44px;font-size:.85rem}
    .page-description,.event-tools p,.selection-copy p,.selection-bottom,.home-note {font-size:.8rem}
}
