:root {
    --panel-red: #f20d13;
    --panel-black: #070707;
    --panel-text: #171717;
    --panel-muted: #777;
    --panel-border: #e4e4e4;
    --panel-bg: #f4f4f5;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--panel-text);
    background: var(--panel-bg);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}

.panel-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--panel-bg);
}

.panel-login-card {
    width: min(100%, 500px);
    display: grid;
    gap: 16px;
    overflow: hidden;
    padding: 0 34px 32px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    box-shadow: 0 18px 50px rgb(0 0 0 / 10%);
}

.panel-login-logo {
    display: grid;
    place-items: center;
    margin: 0 -34px 4px;
    padding: 20px 34px 18px;
    background: #050505;
    border-bottom: 0;
}

.panel-login-logo img {
    width: 255px;
    height: auto;
}

.panel-access-card > div:not(.panel-login-logo):first-of-type {
    margin-top: 4px;
}

.panel-access-card .hidden {
    display: none;
}

.panel-role-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 5px;
    background: #ededed;
    border-radius: 12px;
}

.panel-role-toggle button {
    min-height: 66px;
    display: grid;
    gap: 2px;
    place-items: center;
    padding: 10px;
    color: #222;
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
}

.panel-role-toggle button.active {
    color: #fff;
    background: var(--panel-red);
}

.panel-role-toggle strong {
    font-size: .96rem;
    font-weight: 900;
}

.panel-role-toggle small {
    color: inherit;
    opacity: .78;
    font-size: .78rem;
    font-weight: 800;
}

.panel-login-card h1,
.panel-heading h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: .96;
    font-weight: 900;
}

.panel-login-card p,
.panel-heading p {
    margin: 0;
    color: #5d5d5d;
    font-size: 1rem;
    line-height: 1.35;
}

.panel-kicker {
    margin: 0 0 8px;
    color: var(--panel-red);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.panel-login-card label,
.panel-form label {
    display: grid;
    gap: 7px;
    color: #3d3d3d;
    font-size: .9rem;
    font-weight: 800;
}

.panel-login-card input:not([type="radio"]):not([type="checkbox"]),
.panel-form input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
.panel-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 12px 13px;
    color: #111;
    background: #f7f7f7;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font: inherit;
    font-weight: 500;
}

.panel-form textarea {
    resize: vertical;
}

.panel-form input[type="radio"],
.panel-form input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--panel-red);
}

.panel-primary,
.panel-secondary,
.event-actions a,
.event-actions button,
.panel-logout button {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.panel-primary {
    color: #fff;
    background: var(--panel-red);
}

.panel-primary:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.panel-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #222;
    background: #ededed;
}

.panel-alert {
    margin-bottom: 22px;
    padding: 13px 15px;
    border-radius: 8px;
    font-weight: 800;
}

.panel-alert.success {
    color: #145624;
    background: #daf4df;
}

.panel-alert.error,
.panel-error {
    color: #b10009;
}

.panel-alert.error {
    background: #ffe1e3;
}

.panel-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
}

.panel-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px 22px;
    color: #fff;
    background: #050505;
}

.panel-brand {
    display: flex;
    justify-content: center;
    padding: 4px 0 22px;
}

.panel-brand img {
    width: 205px;
    height: auto;
}

.panel-circuit-card {
    position: relative;
    min-height: 186px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 18px;
    border-radius: 8px;
    isolation: isolate;
}

.panel-circuit-bg,
.panel-circuit-overlay {
    position: absolute;
    inset: 0;
}

.panel-circuit-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.panel-circuit-overlay {
    background: linear-gradient(180deg, rgb(0 0 0 / 20%), rgb(0 0 0 / 86%));
    z-index: -1;
}

.panel-circuit-logo {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
    border-radius: 14px;
}

.panel-circuit-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 7px;
}

.panel-circuit-logo span {
    color: #111;
    font-size: 2rem;
    font-weight: 900;
}

.avatar-fallback {
    display: none !important;
}

.rider-profile-card {
    min-height: 172px;
    background: linear-gradient(145deg, #181818, #050505);
}

.rider-profile-card .panel-circuit-overlay {
    background: radial-gradient(circle at 22% 16%, rgb(242 13 19 / 28%), transparent 34%), linear-gradient(180deg, rgb(0 0 0 / 6%), rgb(0 0 0 / 82%));
}

.rider-avatar {
    border-radius: 50%;
}

.panel-circuit-card strong,
.panel-circuit-card small {
    position: relative;
    z-index: 1;
}

.panel-circuit-card small {
    color: rgb(255 255 255 / 72%);
}

.panel-nav {
    display: grid;
    gap: 6px;
    margin-top: 22px;
}

.panel-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 14px;
    color: #aaa;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
}

.panel-nav a span {
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    padding: 0 7px;
    color: #fff;
    background: var(--panel-red);
    border-radius: 999px;
    font-size: .72rem;
    line-height: 1;
}

.panel-nav a.active,
.panel-nav a:hover {
    color: #fff;
    background: #1d1d1d;
}

.panel-nav a.active {
    box-shadow: inset 4px 0 0 var(--panel-red);
}

.panel-logout {
    margin-top: auto;
}

.panel-logout button {
    width: 100%;
    color: #ddd;
    background: #191919;
}

.panel-main {
    width: min(100%, 1260px);
    margin: 0 auto;
    padding: 42px clamp(20px, 4vw, 56px) 74px;
}

.panel-heading {
    max-width: 760px;
    margin-bottom: 26px;
}

.panel-dashboard-hero {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 22px;
}

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

.panel-quick-actions a {
    min-width: 168px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.panel-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 22px;
}

.panel-stats article,
.panel-card {
    background: #fff;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    box-shadow: 0 14px 32px rgb(0 0 0 / 5%);
}

.panel-stats article {
    display: grid;
    gap: 4px;
    padding: 20px;
}

.panel-stats strong {
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
}

.panel-stats span,
.panel-empty,
.panel-list-row small,
.panel-section-title span {
    color: var(--panel-muted);
}

.panel-grid.two {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

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

.panel-dashboard-events {
    overflow: visible;
}

.panel-card {
    padding: 22px;
}

.panel-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e7e7e7;
}

.panel-section-title h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
}

.panel-section-title a {
    color: var(--panel-red);
    font-size: .86rem;
    font-weight: 900;
    text-decoration: none;
}

.panel-list {
    display: grid;
    gap: 10px;
}

.panel-list-row,
.panel-notification-row {
    display: grid;
    gap: 4px;
    padding: 14px;
    background: #f8f8f8;
    border-radius: 8px;
}

.panel-list-link {
    color: inherit;
    text-decoration: none;
}

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

.panel-dashboard-notifications {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-notification-row {
    position: relative;
    min-height: 76px;
    align-items: center;
    padding-left: 22px;
    background: #fff;
    border: 1px solid #ededed;
    box-shadow: 0 8px 20px rgb(0 0 0 / 4%);
}

.panel-notification-row::before {
    content: "";
    position: absolute;
    top: 15px;
    bottom: 15px;
    left: 0;
    width: 6px;
    background: var(--panel-red);
}

.panel-notification-row strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
}

.panel-notification-row small {
    color: #7a7a7a;
    font-weight: 700;
}

.panel-slider {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 10px;
}

.panel-slider-viewport {
    overflow: hidden;
    padding: 2px 2px 14px;
}

.panel-slider-track {
    display: flex;
    gap: 14px;
    transition: transform .24s ease;
    will-change: transform;
}

.panel-slide {
    flex: 0 0 270px;
    display: flex;
}

.panel-slider-button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #111;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgb(0 0 0 / 12%);
    font-size: 1.7rem;
    font-weight: 900;
    cursor: pointer;
}

.panel-slider-button:disabled {
    opacity: .28;
    cursor: default;
}

.panel-event-card {
    position: relative;
    min-width: 270px;
    min-height: 248px;
    width: 100%;
    display: grid;
    grid-template-rows: auto auto auto auto 1fr auto;
    gap: 9px;
    padding: 16px;
    background: #fff;
    border: 1px solid #dfdfdf;
    border-radius: 8px;
    box-shadow: 0 10px 22px rgb(0 0 0 / 6%);
}

.panel-event-card.cancelled {
    opacity: .62;
}

.event-chip {
    width: fit-content;
    padding: 7px 16px;
    color: #fff;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.event-chip.type-training,
.panel-type-tabs label.active.type-training {
    background: var(--panel-red);
}

.event-chip.type-race,
.panel-type-tabs label.active.type-race {
    background: #1468e8;
}

.event-chip.type-school,
.panel-type-tabs label.active.type-school {
    background: #24964c;
}

.event-chip.type-other,
.panel-type-tabs label.active.type-other {
    background: #3b3b3f;
}

.event-detail-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #111;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgb(0 0 0 / 22%);
    border: 0;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.panel-event-card h3 {
    margin: 6px 42px 0 0;
    font-size: 1.08rem;
    line-height: 1.18;
    font-weight: 900;
}

.panel-event-card p,
.panel-event-card strong {
    margin: 0;
}

.panel-event-card p {
    color: #696969;
}

.event-attendees {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 0;
    align-self: start;
}

.event-avatar,
.event-more {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin-right: -7px;
    color: #fff;
    background: #111;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: .75rem;
    font-weight: 900;
}

.event-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-attendees small {
    margin-left: 12px;
    color: #5d5d5d;
    font-weight: 800;
}

.event-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.event-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
    align-self: end;
}

.event-actions a,
.event-actions button {
    min-height: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #171717;
}

.event-actions button {
    color: #222;
    background: #f4f4f4;
    border: 1px solid #ddd;
}

.event-actions button:disabled {
    opacity: .55;
}

.rider-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 14px;
}

.rider-event-card {
    min-width: 0;
}

.rider-event-actions {
    grid-template-columns: 1fr;
}

.rider-event-actions button {
    color: #222;
    background: #ededed;
}

.rider-event-actions .rider-attend-button {
    color: #fff;
    background: var(--panel-red);
    border-color: var(--panel-red);
}

.panel-profile-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #f8f8f8;
    border: 1px solid #ececec;
    border-radius: 8px;
}

.panel-profile-summary div {
    display: grid;
    gap: 4px;
}

.panel-profile-summary strong {
    font-size: 1.08rem;
}

.panel-profile-summary small {
    color: #777;
    font-weight: 800;
}

.panel-image-picker input[type="file"] {
    padding: 12px;
    background: #f7f7f7;
    border: 1px dashed #cfcfcf;
    border-radius: 8px;
}

.panel-modal-open {
    overflow: hidden;
}

.profile-cropper[hidden] {
    display: none;
}

.profile-cropper {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
}

.profile-cropper-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 62%);
}

.profile-cropper-card {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: 26px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 34px 90px rgb(0 0 0 / 40%);
}

.profile-cropper-card h2,
.profile-cropper-card p {
    margin: 0;
    text-align: center;
}

.profile-cropper-card h2 {
    font-size: 2rem;
    line-height: 1;
}

.profile-cropper-card p:not(.panel-kicker) {
    color: #666;
}

.profile-cropper-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f0f0f0;
    font-size: 1.35rem;
    font-weight: 900;
    cursor: pointer;
}

.profile-cropper-stage {
    position: relative;
    width: 320px;
    height: 320px;
}

.profile-cropper canvas {
    width: 320px;
    height: 320px;
    display: block;
    cursor: grab;
    background: #111;
    border-radius: 12px;
}

.profile-cropper-mask {
    position: absolute;
    inset: 8px;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 999px rgb(0 0 0 / 38%);
    pointer-events: none;
}

.profile-cropper-controls {
    width: 100%;
    display: grid;
    gap: 10px;
}

.profile-cropper-controls input {
    width: 100%;
    accent-color: var(--panel-red);
}

.profile-cropper-controls small {
    color: #777;
    font-weight: 800;
}

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

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

.panel-form-grid .wide {
    grid-column: 1 / -1;
}

.panel-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.panel-form-actions .panel-primary,
.panel-form-actions .panel-secondary {
    min-width: 170px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.panel-service-grid fieldset {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 16px;
    background: #fafafa;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
}

.panel-service-grid legend {
    padding: 0 4px;
    font-weight: 900;
}

.panel-service-grid label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-right: 12px;
    font-size: .88rem;
    font-weight: 800;
}

.panel-media-preview {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(220px, .65fr);
    gap: 18px;
    margin-bottom: 18px;
}

.panel-main-image,
.panel-logo-preview {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f4f4f4;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
}

.panel-main-image {
    aspect-ratio: 21 / 9;
}

.panel-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel-logo-preview {
    min-height: 168px;
    padding: 22px;
}

.panel-logo-preview img {
    max-width: 100%;
    max-height: 124px;
    object-fit: contain;
}

.panel-logo-preview span {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #111;
    border-radius: 50%;
    font-size: 2.4rem;
    font-weight: 900;
}

.panel-subsection {
    display: grid;
    gap: 4px;
    padding-top: 4px;
}

.panel-subsection h2,
.panel-subsection p {
    margin: 0;
}

.panel-subsection h2 {
    font-size: 1rem;
    font-weight: 900;
}

.panel-subsection p {
    color: var(--panel-muted);
}

.notification-grid {
    grid-template-columns: minmax(360px, .82fr) minmax(0, 1fr);
}

.panel-notification-form {
    align-self: start;
}

.panel-notification-form textarea {
    min-height: 160px;
    font-size: 1.02rem;
}

.panel-notification-history {
    min-height: 100%;
}

.panel-chat-shell {
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(300px, .4fr) minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    padding: 0;
}

.panel-chat-list {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 18px;
    background: #fafafa;
    border-right: 1px solid #e7e7e7;
}

.panel-chat-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 2px 12px;
    font-weight: 900;
}

.panel-chat-list-header span {
    min-width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #777;
    background: #eee;
    border-radius: 999px;
    font-size: .82rem;
}

.panel-chat-thread {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: inherit;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 8px 18px rgb(0 0 0 / 4%);
}

.panel-chat-thread.active {
    border-color: #111;
    box-shadow: inset 4px 0 0 var(--panel-red), 0 10px 22px rgb(0 0 0 / 7%);
}

.panel-chat-avatar,
.panel-activity-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fff;
    background: #111;
    border-radius: 50%;
    font-weight: 900;
}

.panel-chat-avatar.large {
    width: 58px;
    height: 58px;
}

.panel-chat-avatar img,
.panel-activity-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel-chat-avatar em,
.panel-activity-avatar em {
    font-style: normal;
}

.panel-chat-thread-copy,
.panel-chat-meta {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.panel-chat-thread-copy strong,
.panel-chat-thread-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-chat-thread-copy small,
.panel-chat-meta small,
.panel-chat-header small {
    color: #777;
    font-weight: 700;
}

.panel-chat-meta {
    justify-items: end;
}

.panel-chat-meta b {
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--panel-red);
    border-radius: 999px;
    font-size: .75rem;
}

.panel-chat-conversation {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: #fff;
}

.panel-chat-header {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px 22px;
    border-bottom: 1px solid #e7e7e7;
}

.panel-chat-header div {
    display: grid;
    gap: 4px;
}

.panel-chat-messages {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: auto;
    padding: 22px;
    background: linear-gradient(180deg, #fff, #f7f7f7);
}

.panel-chat-bubble {
    max-width: min(78%, 560px);
    display: grid;
    gap: 6px;
    align-self: flex-start;
    padding: 12px 14px 8px;
    background: #ededed;
    border-radius: 16px 16px 16px 5px;
}

.panel-chat-bubble.mine {
    align-self: flex-end;
    color: #fff;
    background: #171717;
    border-radius: 16px 16px 5px 16px;
}

.panel-chat-bubble p {
    margin: 0;
    line-height: 1.35;
}

.panel-chat-bubble small {
    justify-self: end;
    color: #777;
    font-size: .72rem;
    font-weight: 800;
}

.panel-chat-bubble.mine small {
    color: rgb(255 255 255 / 62%);
}

.panel-chat-form {
    display: grid;
    gap: 10px;
    padding: 18px 22px;
    background: #fff;
    border-top: 1px solid #e7e7e7;
}

.panel-chat-form textarea {
    width: 100%;
    min-height: 86px;
    padding: 12px 13px;
    color: #111;
    background: #f7f7f7;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font: inherit;
    resize: vertical;
}

.panel-chat-empty {
    padding: 22px;
    color: #777;
    font-weight: 800;
    text-align: center;
}

.panel-chat-empty-center {
    min-height: 100%;
    display: grid;
    place-content: center;
    gap: 8px;
}

.panel-chat-empty-center strong {
    color: #111;
    font-size: 1.25rem;
}

.panel-activity-feed {
    display: grid;
    gap: 12px;
}

.panel-activity-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgb(0 0 0 / 4%);
}

.panel-activity-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
}

.panel-activity-content {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.panel-activity-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.panel-activity-top strong {
    font-size: 1.02rem;
}

.panel-activity-top small,
.panel-activity-content > small {
    color: #777;
    font-weight: 800;
}

.panel-activity-content p {
    margin: 0;
    color: #3b3b3b;
    line-height: 1.38;
}

.panel-audience {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 13px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
}

.panel-audience strong {
    color: var(--panel-red);
    font-size: 2rem;
    line-height: 1;
}

.panel-type-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    background: #eee;
    border-radius: 999px;
}

.panel-type-tabs label {
    min-height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
}

.panel-type-tabs input {
    display: none;
}

.panel-type-tabs label.active {
    color: #fff;
}

.event-modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: none;
    place-items: center;
    padding: 24px;
}

.event-modal.open {
    display: grid;
}

.event-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 58%);
}

.event-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    display: grid;
    gap: 14px;
    padding: 26px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 90px rgb(0 0 0 / 38%);
}

.event-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f0f0f0;
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
}

.event-modal-card h2 {
    margin: 6px 44px 0 0;
    font-size: 2rem;
    line-height: 1.05;
    font-weight: 900;
}

.event-modal-date {
    margin: 0;
    color: #666;
    font-weight: 800;
}

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

.event-modal-stats div {
    display: grid;
    gap: 4px;
    padding: 14px;
    background: #f8f8f8;
    border: 1px solid #ececec;
    border-radius: 10px;
}

.event-modal-stats small {
    color: #777;
    font-size: .75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.event-modal-stats strong {
    color: var(--panel-red);
    font-size: 1.7rem;
    line-height: 1;
}

.modal-attendees {
    min-height: 40px;
}

.event-modal-description {
    display: grid;
    gap: 8px;
    padding: 14px;
    background: #f8f8f8;
    border: 1px solid #ececec;
    border-radius: 10px;
}

.event-modal-description strong,
.event-modal-description p {
    margin: 0;
}

.event-modal-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

@media (max-width: 980px) {
    .panel-shell {
        grid-template-columns: 1fr;
    }

    .panel-sidebar {
        position: relative;
        height: auto;
    }

    .panel-stats,
    .panel-grid.two,
    .panel-dashboard-hero,
    .panel-dashboard-notifications,
    .panel-chat-shell,
    .notification-grid,
    .panel-form-grid,
    .panel-service-grid,
    .panel-media-preview,
    .event-modal-stats {
        grid-template-columns: 1fr;
    }

    .panel-slider {
        grid-template-columns: minmax(0, 1fr);
    }

    .panel-slider-button {
        display: none;
    }

    .panel-chat-list {
        border-right: 0;
        border-bottom: 1px solid #e7e7e7;
    }
}
