:root {
    color-scheme: light;
    --tenant-primary: #0f766e;
    --tenant-primary-strong: #134e4a;
    --tenant-primary-text: #ffffff;
    --tenant-secondary-text: #ffffff;
    --tenant-soft: #ecfdf5;
    --club-bg: #f4f6f8;
    --club-surface: #ffffff;
    --club-surface-muted: #f8fafc;
    --club-line: #d9dee7;
    --club-muted: #64748b;
    --club-text: #17202a;
    --club-green: var(--tenant-primary);
    --club-green-strong: var(--tenant-primary-strong);
    --club-green-soft: var(--tenant-soft);
    --club-blue: #eff6ff;
    --club-red: #b42318;
    --sidebar-bg: #101820;
    --sidebar-bg-strong: #0b1218;
    --sidebar-text: #e8edf3;
    --sidebar-muted: #94a3b8;
    --shadow-soft: 0 10px 26px rgba(15, 23, 42, 0.045);
}

/* Tenant-ready admin dashboard */
:root {
    --tenant-primary: #0F4F2F;
    --tenant-primary-dark: #08351F;
    --tenant-primary-soft: #E8F3EC;
    --tenant-secondary: #7A5A3A;
    --tenant-accent: #D9E8C3;
    --tenant-bg: #F7FAF6;
    --tenant-sidebar: #0B3D25;
    --tenant-card: #FFFFFF;
    --tenant-text: #102015;
    --tenant-muted: #667085;
    --tenant-border: #E3E8DD;
    --tenant-danger: #D92D20;
    --tenant-warning: #F2B84B;
    --tenant-success: #2E7D32;
    --tenant-info: #2F80ED;
}

body {
    background:
        radial-gradient(circle at 14% 4%, color-mix(in srgb, var(--tenant-primary-soft), transparent 18%), transparent 26rem),
        linear-gradient(180deg, #ffffff 0%, var(--tenant-bg) 42rem);
    color: var(--tenant-text);
}

.tenant-sidebar {
    background: linear-gradient(180deg, var(--tenant-sidebar), color-mix(in srgb, var(--tenant-sidebar), #000 18%));
}

.tenant-topbar {
    border-bottom-color: var(--tenant-border);
    background: color-mix(in srgb, var(--tenant-card), transparent 6%);
}

.tenant-dashboard {
    display: grid;
    gap: 1rem;
    color: var(--tenant-text);
}

.tenant-card {
    border: 1px solid var(--tenant-border);
    border-radius: 14px;
    background: var(--tenant-card);
    box-shadow: 0 16px 40px rgba(16, 32, 21, 0.06);
}

.tenant-hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
}

.tenant-hero-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.tenant-hero-logo {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--tenant-border);
    border-radius: 12px;
    background: var(--tenant-primary-soft);
    color: var(--tenant-primary-dark);
    font-size: 1.35rem;
    font-weight: 950;
}

.tenant-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.24rem;
}

.tenant-hero-card h2,
.tenant-task-card h2,
.tenant-event-card h2,
.tenant-card-header h2 {
    margin: 0;
    color: var(--tenant-text);
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 950;
    line-height: 1.16;
    letter-spacing: 0;
}

.tenant-hero-actions,
.tenant-task-actions,
.tenant-event-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.tenant-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 1rem;
}

.tenant-task-card,
.tenant-event-card {
    min-height: 100%;
    padding: 1rem;
}

.tenant-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--tenant-border);
}

.tenant-card > .tenant-card-header:first-child {
    padding-top: 1rem;
}

.tenant-task-card .tenant-card-header {
    padding: 0 0 1rem;
}

.tenant-card-header span,
.tenant-card-header a,
.tenant-event-row span,
.tenant-activity-row p,
.tenant-queue-row p,
.tenant-stat-card small,
.tenant-task-item small {
    color: var(--tenant-muted);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.4;
}

.tenant-card-header a {
    color: var(--tenant-primary-dark);
    text-decoration: none;
}

.tenant-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 1.55rem;
    border-radius: 999px;
    background: var(--tenant-primary-soft);
    color: var(--tenant-primary-dark);
    padding: 0.2rem 0.58rem;
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tenant-badge-strong {
    background: color-mix(in srgb, var(--tenant-danger), white 88%);
    color: var(--tenant-danger);
}

.tenant-btn-primary,
.tenant-btn-outline {
    min-height: 2.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0.58rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1.1;
    text-decoration: none;
}

.tenant-btn-primary {
    border: 1px solid var(--tenant-primary-dark);
    background: var(--tenant-primary-dark);
    color: #ffffff;
}

.tenant-btn-outline {
    border: 1px solid var(--tenant-border);
    background: var(--tenant-card);
    color: var(--tenant-primary-dark);
}

.tenant-btn-outline-light {
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.tenant-task-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.tenant-task-item {
    min-width: 0;
    display: grid;
    gap: 0.35rem;
    border: 1px solid var(--tenant-border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--tenant-card), var(--tenant-primary-soft) 26%);
    padding: 0.85rem;
    color: inherit;
    text-decoration: none;
}

.tenant-task-item strong {
    color: var(--tenant-text);
    font-size: 1.75rem;
    font-weight: 950;
    line-height: 1;
}

.tenant-task-item p {
    margin: 0;
    color: var(--tenant-text);
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1.2;
}

.tenant-task-item-danger {
    border-color: color-mix(in srgb, var(--tenant-danger), white 72%);
}

.tenant-task-item-warning {
    border-color: color-mix(in srgb, var(--tenant-warning), white 54%);
}

.tenant-task-item-info {
    border-color: color-mix(in srgb, var(--tenant-info), white 74%);
}

.tenant-task-item-success {
    border-color: color-mix(in srgb, var(--tenant-success), white 74%);
}

.tenant-task-actions {
    justify-content: flex-start;
    margin-top: 1rem;
}

.tenant-event-card {
    position: relative;
    overflow: hidden;
    min-height: 19rem;
    background: var(--tenant-primary-dark);
}

.tenant-event-card-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 53, 31, 0.94), rgba(8, 53, 31, 0.62)),
        var(--tenant-dashboard-image-primary) center / cover;
}

.tenant-event-card-content {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: space-between;
    gap: 1rem;
    height: 100%;
    color: #ffffff;
}

.tenant-event-card-content h2,
.tenant-event-card-content dt,
.tenant-event-card-content dd {
    color: #ffffff;
}

.tenant-event-card-content dl {
    display: grid;
    gap: 0.6rem;
    margin: 0;
}

.tenant-event-card-content dt {
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    opacity: 0.72;
    text-transform: uppercase;
}

.tenant-event-card-content dd {
    margin: 0.16rem 0 0;
    font-size: 0.94rem;
    font-weight: 850;
}

.tenant-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.tenant-stat-card {
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
}

.tenant-stat-card p {
    margin: 0;
    color: var(--tenant-muted);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tenant-stat-card strong {
    overflow-wrap: anywhere;
    color: var(--tenant-text);
    font-size: 2rem;
    font-weight: 950;
    line-height: 1.05;
}

.tenant-stat-role {
    font-size: 1rem !important;
    line-height: 1.25 !important;
}

.tenant-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.38fr);
    gap: 1rem;
    align-items: start;
}

.tenant-main-stack,
.tenant-side-stack {
    display: grid;
    gap: 1rem;
}

.tenant-activity-list,
.tenant-queue-list,
.tenant-event-list {
    display: grid;
}

.tenant-activity-row,
.tenant-queue-row,
.tenant-event-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border-top: 1px solid var(--tenant-border);
    color: inherit;
    text-decoration: none;
}

.tenant-event-row {
    grid-template-columns: minmax(0, 1fr) auto;
}

.tenant-event-row h3,
.tenant-activity-row strong,
.tenant-queue-row strong {
    margin: 0;
    color: var(--tenant-text);
    font-size: 0.96rem;
    font-weight: 950;
    line-height: 1.2;
}

.tenant-activity-row p,
.tenant-queue-row p {
    margin: 0.18rem 0 0;
}

.tenant-activity-row time,
.tenant-queue-row time {
    white-space: nowrap;
    color: var(--tenant-muted);
    font-size: 0.78rem;
    font-weight: 850;
}

.tenant-icon-circle {
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    flex: 0 0 2.25rem;
    border-radius: 10px;
    background: var(--tenant-primary-soft);
    color: var(--tenant-primary-dark);
}

.tenant-icon-circle svg {
    width: 1.05rem;
    height: 1.05rem;
    stroke-width: 2.35;
}

.tenant-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    padding: 1rem;
}

.tenant-quick-actions a {
    display: grid;
    gap: 0.6rem;
    min-height: 7rem;
    align-content: center;
    border: 1px solid var(--tenant-border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--tenant-card), var(--tenant-primary-soft) 24%);
    color: var(--tenant-text);
    padding: 0.85rem;
    text-decoration: none;
}

.tenant-quick-actions strong {
    font-size: 0.9rem;
    font-weight: 950;
    line-height: 1.18;
}

.tenant-empty {
    margin: 1rem;
    border: 1px dashed var(--tenant-border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--tenant-card), var(--tenant-primary-soft) 24%);
    color: var(--tenant-muted);
    padding: 1rem;
    font-weight: 800;
}

@media (max-width: 1260px) {
    .tenant-dashboard-grid,
    .tenant-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .tenant-task-grid,
    .tenant-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .tenant-hero-card,
    .tenant-hero-actions,
    .tenant-card-header {
        align-items: stretch;
        flex-direction: column;
    }

    .tenant-task-grid,
    .tenant-stat-grid,
    .tenant-quick-actions {
        grid-template-columns: 1fr;
    }

    .tenant-activity-row,
    .tenant-queue-row,
    .tenant-event-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .tenant-activity-row time,
    .tenant-queue-row time,
    .tenant-event-row > a {
        grid-column: 2;
        justify-self: start;
    }
}

body {
    background: var(--club-bg);
    color: var(--club-text);
}

input,
button,
select,
textarea {
    font: inherit;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1.25rem;
}

.auth-card {
    width: min(100%, 1080px);
    overflow: hidden;
    border: 1px solid var(--club-line);
    border-radius: 8px;
    background: var(--club-surface);
    box-shadow: var(--shadow-soft);
}

.auth-card-narrow {
    width: min(100%, 430px);
}

.auth-side {
    background: linear-gradient(135deg, var(--tenant-primary), var(--tenant-primary-strong));
    color: white;
}

.tenant-login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--tenant-primary-soft), transparent 12%), transparent 34rem),
        var(--tenant-bg);
    color: var(--tenant-text);
}

.tenant-login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.tenant-login-card {
    width: min(100%, 1240px);
    min-height: min(760px, calc(100vh - 4rem));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(430px, 0.92fr);
    overflow: hidden;
    border: 1px solid var(--tenant-border);
    border-radius: 24px;
    background: var(--tenant-card);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

.tenant-login-visual {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 39, 29, 0.82)),
        var(--login-background-image);
    background-size: cover;
    background-position: center;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.tenant-login-visual::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(135deg, color-mix(in srgb, var(--tenant-primary-dark), transparent 24%), transparent 58%);
}

.tenant-login-visual-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
    display: grid;
    gap: 0.8rem;
    color: #ffffff;
}

.tenant-login-badge {
    width: fit-content;
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    padding: 0.45rem 0.8rem;
    font-size: 0.76rem;
    font-weight: 780;
}

.tenant-login-visual-content p,
.tenant-login-visual-content h1,
.tenant-login-visual-content span {
    margin: 0;
}

.tenant-login-visual-content p {
    font-size: 0.86rem;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tenant-login-visual-content h1 {
    font-size: clamp(1.75rem, 3.6vw, 3.1rem);
    font-weight: 780;
    line-height: 1.06;
}

.tenant-login-visual-content > span:last-child {
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.92rem;
    font-weight: 520;
    line-height: 1.5;
}

.tenant-login-panel {
    display: grid;
    align-content: center;
    gap: 1.4rem;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.tenant-login-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.tenant-login-brand {
    min-width: 0;
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.tenant-login-logo {
    width: 3.25rem;
    height: 3.25rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--tenant-border);
    border-radius: 14px;
    background: var(--tenant-primary-soft);
    color: var(--tenant-primary-dark);
    font-size: 1.25rem;
    font-weight: 820;
}

.tenant-login-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tenant-login-brand p,
.tenant-login-brand span,
.tenant-login-copy p,
.tenant-login-copy h2,
.tenant-login-copy span,
.tenant-login-register {
    margin: 0;
}

.tenant-login-brand p {
    color: var(--tenant-text);
    font-size: 0.95rem;
    font-weight: 760;
    line-height: 1.25;
}

.tenant-login-brand span {
    color: var(--tenant-muted);
    font-size: 0.78rem;
    font-weight: 620;
}

.tenant-login-locale {
    display: inline-flex;
    gap: 0.25rem;
    border: 1px solid var(--tenant-border);
    border-radius: 999px;
    background: var(--tenant-card);
    padding: 0.25rem;
}

.tenant-login-locale a {
    min-width: 2.2rem;
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--tenant-text);
    font-size: 0.75rem;
    font-weight: 760;
    text-decoration: none;
}

.tenant-login-locale a.active {
    background: var(--tenant-primary);
    color: #ffffff;
}

.tenant-login-copy {
    display: grid;
    gap: 0.35rem;
}

.tenant-login-copy p {
    color: var(--tenant-primary-dark);
    font-size: 0.78rem;
    font-weight: 780;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tenant-login-copy h2 {
    color: var(--tenant-text);
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 780;
    line-height: 1.08;
}

.tenant-login-copy span {
    color: var(--tenant-muted);
    font-size: 0.94rem;
    font-weight: 520;
    line-height: 1.55;
}

.tenant-login-form {
    display: grid;
    gap: 1rem;
}

.tenant-login-error {
    border: 1px solid color-mix(in srgb, var(--tenant-danger), white 72%);
    border-radius: 12px;
    background: color-mix(in srgb, var(--tenant-danger), white 91%);
    color: var(--tenant-danger);
    padding: 0.8rem 0.9rem;
    font-size: 0.88rem;
    font-weight: 680;
}

.tenant-login-field {
    display: grid;
    gap: 0.45rem;
    color: var(--tenant-text);
    font-size: 0.84rem;
    font-weight: 720;
}

.tenant-login-field > div {
    min-height: 3.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--tenant-border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--tenant-card), var(--tenant-bg) 32%);
    padding: 0 0.9rem;
}

.tenant-login-field svg {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    color: var(--tenant-muted);
    stroke-width: 2.1;
}

.tenant-login-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--tenant-text);
    font-size: 0.95rem;
    font-weight: 520;
}

.tenant-login-field button {
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--tenant-muted);
    cursor: pointer;
}

.tenant-login-field button:hover {
    background: var(--tenant-primary-soft);
    color: var(--tenant-primary-dark);
}

.tenant-login-remember {
    display: inline-flex;
    gap: 0.55rem;
    align-items: center;
    color: var(--tenant-muted);
    font-size: 0.9rem;
    font-weight: 620;
}

.tenant-login-remember input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--tenant-primary);
}

.tenant-login-submit {
    min-height: 3.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 1px solid var(--tenant-primary);
    border-radius: 14px;
    background: var(--tenant-primary);
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 780;
    cursor: pointer;
    box-shadow: 0 10px 20px color-mix(in srgb, var(--tenant-primary), transparent 78%);
}

.tenant-login-submit:hover {
    border-color: var(--tenant-primary-dark);
    background: var(--tenant-primary-dark);
}

.tenant-login-submit svg {
    width: 1.1rem;
    height: 1.1rem;
    stroke-width: 2.2;
}

.tenant-login-register {
    border-top: 1px solid var(--tenant-border);
    padding-top: 1rem;
    color: var(--tenant-muted);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 620;
}

.tenant-login-register a {
    color: var(--tenant-primary-dark);
    font-weight: 780;
    text-decoration: none;
}

.tenant-login-register a:hover {
    text-decoration: underline;
}

@media (max-width: 980px) {
    .tenant-login-card {
        grid-template-columns: 1fr;
        max-width: 720px;
    }

    .tenant-login-visual {
        min-height: 240px;
    }
}

@media (max-width: 760px) {
    .tenant-login-shell {
        padding: 1rem;
    }

    .tenant-login-card {
        width: min(100%, 420px);
        min-height: auto;
        border-radius: 20px;
    }

    .tenant-login-visual {
        min-height: 210px;
        padding: 1.25rem;
    }

    .tenant-login-visual-content h1 {
        font-size: 1.65rem;
    }

    .tenant-login-visual-content > span:last-child {
        font-size: 0.86rem;
    }

    .tenant-login-panel {
        padding: 1.25rem;
    }

    .tenant-login-header {
        align-items: flex-start;
    }
}

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

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, var(--sidebar-bg), var(--sidebar-bg-strong));
    color: var(--sidebar-text);
}

.sidebar-brand {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand a {
    color: #ffffff !important;
}

.sidebar-brand p {
    color: rgba(232, 237, 243, 0.68) !important;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--tenant-primary);
    color: var(--tenant-primary-text);
    font-weight: 900;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.18rem;
}

.nav-section-title {
    margin: 0 0 0.5rem;
    padding: 0 0.75rem;
    color: rgba(232, 237, 243, 0.58);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-subgroup {
    margin-top: 0.2rem;
}

/* Toggle button — same base look as a nav-link-item */
.nav-subgroup-toggle {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    background: transparent;
    color: rgba(232, 237, 243, 0.84);
    font-size: 0.92rem;
    font-weight: 700;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.nav-subgroup-toggle:hover {
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    padding-left: calc(0.75rem - 3px);
    background: color-mix(in srgb, var(--tenant-primary), transparent 76%);
    color: #ffffff;
    border-radius: 0 8px 8px 0;
}

/* Highlight toggle when group is open */
[data-nav-group="open"] > .nav-subgroup-toggle {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    border-left: 3px solid rgba(255, 255, 255, 0.22);
    padding-left: calc(0.75rem - 3px);
    border-radius: 0 8px 8px 0;
}

/* Chevron icon */
.nav-group-chevron {
    width: 16px;
    height: 16px;
    margin-left: auto;
    flex-shrink: 0;
    opacity: 0.7;
    transition: transform 220ms ease, opacity 140ms ease;
}

.nav-subgroup-toggle:hover .nav-group-chevron,
[data-nav-group="open"] > .nav-subgroup-toggle .nav-group-chevron {
    opacity: 1;
}

[data-nav-group="open"] > .nav-subgroup-toggle .nav-group-chevron {
    transform: rotate(180deg);
}

/* Collapsible children — grid-template-rows trick for height 0→auto */
.nav-subgroup-items {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 220ms ease;
    overflow: hidden;
}

[data-nav-group="open"] > .nav-subgroup-items {
    grid-template-rows: 1fr;
}

.nav-subgroup-inner {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-top: 0.15rem;
}

.nav-link-item {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    color: rgba(232, 237, 243, 0.84);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 140ms ease, color 140ms ease;
}

.nav-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    stroke-width: 2.1;
}

.nav-link-item-nested {
    margin-left: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.12);
}

.nav-link-item:hover {
    background: color-mix(in srgb, var(--tenant-primary), transparent 76%);
    color: #ffffff;
}

.nav-link-item-active {
    background: var(--tenant-primary);
    color: #ffffff;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 72px;
    border-bottom: 1px solid var(--club-line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.surface,
.metric-card {
    border: 1px solid var(--club-line);
    border-radius: 8px;
    background: var(--club-surface);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.surface-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--club-line);
    background: #fbfcfd;
}

.surface-body {
    padding: 1.25rem;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 850;
}

.card-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--tenant-soft);
    color: var(--tenant-primary-strong);
    font-weight: 900;
}

.metric-card {
    padding: 1.25rem;
}

.dashboard-metrics {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module-tile {
    border: 1px solid var(--club-line);
    border-radius: 8px;
    padding: 1rem;
    background: #fbfcfd;
}

.badge-card {
    border: 1px solid var(--club-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    padding: 1rem;
}

.badge-card-missing {
    opacity: 0.74;
}

.badge-card-head {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
    margin-bottom: 0.85rem;
}

.badge-emblem {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    flex: 0 0 3rem;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--badge-color, var(--tenant-primary)), color-mix(in srgb, var(--badge-color, var(--tenant-primary)), #111827 16%));
    color: #ffffff;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--badge-color, var(--tenant-primary)), transparent 72%);
}

.badge-icon-svg {
    width: 1.45rem;
    height: 1.45rem;
    max-width: 1.45rem;
    max-height: 1.45rem;
    display: block;
    flex: 0 0 auto;
}

.badge-card h3,
.badge-card h4 {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.22;
}

.badge-card p {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.45;
}

.dog-form {
    display: grid;
    gap: 1.25rem;
}

.dog-form-section {
    border: 1px solid var(--club-line);
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
}

.dog-form-grid {
    display: grid;
    gap: 1rem;
}

.dog-form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dog-form-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--club-line);
}

.tab-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    border-bottom: 2px solid transparent;
    padding: 0 0.75rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.tab-link:hover {
    color: var(--tenant-primary-strong);
}

.tab-link-active {
    border-bottom-color: var(--tenant-primary);
    color: var(--tenant-primary-strong);
}

.dog-photo-upload,
.dog-document-upload {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: start;
    margin-bottom: 1.25rem;
    border: 1px solid var(--club-line);
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
}

.dog-document-upload {
    grid-template-columns: minmax(12rem, 0.35fr) minmax(0, 1fr) auto;
}

.dog-photo-upload .form-label,
.dog-document-upload .form-label {
    min-width: 0;
}

.dog-photo-upload .upload-action,
.dog-document-upload .upload-action {
    display: flex;
    align-items: end;
    height: 100%;
    padding-top: 1.55rem;
}

.dog-photo-upload .btn-primary,
.dog-document-upload .btn-primary {
    min-height: 2.75rem;
}

.form-input[type="file"] {
    display: block;
    min-height: 2.75rem;
    padding: 0.48rem;
    line-height: 1.4;
}

.form-input[type="file"]::file-selector-button {
    min-height: 1.85rem;
    margin-right: 0.75rem;
    border: 0;
    border-radius: 7px;
    background: var(--tenant-soft);
    color: var(--tenant-primary-strong);
    padding: 0 0.75rem;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 900;
    cursor: pointer;
    transition: background-color 140ms ease, color 140ms ease;
}

.form-input[type="file"]::file-selector-button:hover {
    background: var(--tenant-primary);
    color: var(--tenant-primary-text);
}

.dog-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1rem;
}

.dog-photo-card,
.dog-document-row {
    border: 1px solid var(--club-line);
    border-radius: 8px;
    background: #fff;
}

.dog-photo-preview {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 8px 8px 0 0;
    background: transparent;
    padding: 0;
    cursor: zoom-in;
}

.dog-photo-preview:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--tenant-primary), transparent 72%);
    outline-offset: 2px;
}

.dog-photo-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    background: var(--club-surface-muted);
}

.dog-photo-body {
    padding: 0.9rem;
}

.dog-photo-actions,
.dog-document-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.dog-document-list {
    display: grid;
    gap: 0.75rem;
}

.dog-document-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.9rem;
}

.dog-document-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--tenant-soft);
    color: var(--tenant-primary-strong);
    font-weight: 900;
}

.dog-list-name {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 150px;
}

.dog-list-thumb {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid var(--club-line);
    border-radius: 8px;
    object-fit: cover;
    background: #f5f6f2;
}

.dog-list-thumb-empty {
    display: grid;
    place-items: center;
    color: var(--club-green-strong);
    font-size: 0.95rem;
    font-weight: 900;
}

.dog-badge-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.32rem;
    margin-top: 0.38rem;
}

.dog-badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.26rem;
    min-height: 1.45rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--badge-color, var(--tenant-primary)), white 84%);
    color: color-mix(in srgb, var(--badge-color, var(--tenant-primary)), #111827 28%);
    padding: 0.18rem 0.48rem;
    font-size: 0.68rem;
    font-weight: 950;
    line-height: 1.1;
}

.dog-badge-icon {
    width: 0.82rem;
    height: 0.82rem;
    max-width: 0.82rem;
    max-height: 0.82rem;
    display: block;
    flex: 0 0 0.82rem;
}

.dog-badge-chip-more {
    --badge-color: #64748b;
}

.dog-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.dog-directory-card {
    display: grid;
    grid-template-rows: 190px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--club-line);
    border-radius: 12px;
    background: #ffffff;
    color: inherit;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.dog-directory-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--tenant-primary), white 45%);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.dog-directory-photo {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: color-mix(in srgb, var(--tenant-primary), white 90%);
}

.dog-directory-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dog-directory-photo span {
    color: var(--tenant-primary-strong);
    font-size: 3rem;
    font-weight: 950;
}

.dog-directory-body {
    display: grid;
    align-content: start;
    gap: 0.7rem;
    padding: 1rem;
}

.dog-directory-body h3 {
    margin: 0;
    color: #111827;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.2;
}

.dog-directory-body p {
    margin: -0.35rem 0 0;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 700;
}

.dog-directory-body dl {
    display: grid;
    gap: 0.45rem;
    margin: 0;
}

.dog-directory-body dt {
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dog-directory-body dd {
    margin: 0;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 800;
}

.dog-public-hero {
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
    padding: clamp(1rem, 3vw, 2rem);
    background: linear-gradient(115deg, color-mix(in srgb, var(--tenant-primary), white 88%), #ffffff 66%);
    border-bottom: 1px solid var(--club-line);
}

.dog-public-photo {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.dog-public-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dog-public-photo span {
    color: var(--tenant-primary-strong);
    font-size: 4rem;
    font-weight: 950;
}

.dog-public-copy h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 950;
    line-height: 1.04;
}

.dog-public-call-name {
    margin: 0.65rem 0 0;
    color: #64748b;
    font-size: 1rem;
    font-weight: 800;
}

.dog-profile-public {
    display: grid;
    gap: 1.25rem;
}

.dog-profile-hero {
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: stretch;
    border: 1px solid var(--tenant-border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--tenant-primary-soft), transparent 8%), transparent 54%),
        var(--tenant-card);
    padding: 1.25rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.dog-profile-photo-card {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--tenant-card);
    box-shadow: inset 0 0 0 1px var(--tenant-border);
}

.dog-profile-photo {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--tenant-primary), white 82%), color-mix(in srgb, var(--tenant-secondary), white 84%));
}

.dog-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dog-profile-photo span {
    color: var(--tenant-primary-dark);
    font-size: 5rem;
    font-weight: 760;
}

.dog-profile-public-chip {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--tenant-primary-dark);
    padding: 0.42rem 0.75rem;
    font-size: 0.76rem;
    font-weight: 760;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.dog-profile-copy {
    display: grid;
    align-content: center;
    gap: 0.85rem;
    min-width: 0;
}

.dog-profile-eyebrow {
    margin: 0;
    color: var(--tenant-primary-dark);
    font-size: 0.76rem;
    font-weight: 780;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dog-profile-copy h2 {
    margin: 0;
    color: var(--tenant-text);
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 760;
    line-height: 1.04;
}

.dog-profile-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    color: var(--tenant-muted);
    font-size: 0.98rem;
    font-weight: 620;
}

.dog-profile-meta-line span + span::before {
    content: "·";
    margin-right: 0.75rem;
    color: color-mix(in srgb, var(--tenant-muted), transparent 20%);
}

.dog-profile-facts,
.dog-profile-info-card dl {
    margin: 0;
}

.dog-profile-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.dog-profile-facts div,
.dog-profile-status-grid article {
    border: 1px solid var(--tenant-border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--tenant-card), var(--tenant-bg) 28%);
    padding: 0.8rem;
}

.dog-profile-facts dt,
.dog-profile-info-card dt,
.dog-profile-status-grid span {
    color: var(--tenant-muted);
    font-size: 0.74rem;
    font-weight: 720;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.dog-profile-facts dd,
.dog-profile-info-card dd,
.dog-profile-status-grid strong {
    margin: 0.25rem 0 0;
    color: var(--tenant-text);
    font-size: 0.94rem;
    font-weight: 680;
    overflow-wrap: anywhere;
}

.dog-profile-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.dog-profile-info-card,
.dog-profile-pedigree-card,
.dog-profile-gallery {
    border: 1px solid var(--tenant-border);
    border-radius: 8px;
    background: var(--tenant-card);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.dog-profile-info-card {
    overflow: hidden;
}

.dog-profile-info-card header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-bottom: 1px solid var(--tenant-border);
    padding: 1rem;
}

.dog-profile-info-card header span {
    width: 2.1rem;
    height: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--tenant-primary-soft);
    color: var(--tenant-primary-dark);
}

.dog-profile-info-card header svg {
    width: 1rem;
    height: 1rem;
    stroke-width: 2.1;
}

.dog-profile-info-card h3 {
    margin: 0;
    color: var(--tenant-text);
    font-size: 1rem;
    font-weight: 760;
}

.dog-profile-info-card dl {
    display: grid;
}

.dog-profile-info-card dl div {
    padding: 0.9rem 1rem;
}

.dog-profile-info-card dl div + div {
    border-top: 1px solid var(--tenant-border);
}

.dog-profile-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.1rem 0;
}

.dog-profile-section-head p,
.dog-profile-section-head h3,
.dog-profile-section-head span {
    margin: 0;
}

.dog-profile-section-head p {
    color: var(--tenant-primary-dark);
    font-size: 0.74rem;
    font-weight: 780;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dog-profile-section-head h3 {
    margin-top: 0.25rem;
    color: var(--tenant-text);
    font-size: 1.2rem;
    font-weight: 760;
}

.dog-profile-section-head span {
    display: block;
    max-width: 56rem;
    margin-top: 0.35rem;
    color: var(--tenant-muted);
    font-size: 0.9rem;
    font-weight: 520;
    line-height: 1.6;
}

.dog-profile-pedigree-card .pedigree-view {
    padding: 1rem;
}

.dog-profile-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.dog-profile-status-grid article {
    background: var(--tenant-card);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.dog-profile-gallery {
    padding-bottom: 1rem;
}

.dog-profile-gallery .dog-photo-grid {
    padding: 1rem;
}

.dog-profile-empty {
    margin: 1rem;
    border: 1px dashed var(--tenant-border);
    border-radius: 8px;
    background: color-mix(in srgb, var(--tenant-card), var(--tenant-bg) 32%);
    padding: 1rem;
    color: var(--tenant-muted);
    font-size: 0.9rem;
    font-weight: 620;
}

.event-registration-form {
    display: grid;
    gap: 1.15rem;
    max-width: 920px;
}

.registration-check-modal[hidden] {
    display: none;
}

.registration-check-modal {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.registration-check-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(3px);
}

.registration-check-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    width: min(100%, 520px);
    border: 1px solid #f0d5d5;
    border-radius: 8px;
    background: #ffffff;
    padding: 1.2rem;
    box-shadow: 0 24px 70px rgba(22, 30, 26, 0.2);
}

.registration-details-modal[hidden] {
    display: none;
}

.registration-details-modal {
    position: fixed;
    inset: 0;
    z-index: 56;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.registration-details-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(3px);
}

.registration-details-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 1080px);
    max-height: min(90vh, 820px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--club-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 26px 80px rgba(22, 30, 26, 0.24);
}

.registration-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    border-bottom: 1px solid var(--club-line);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--tenant-primary), white 88%), #ffffff 58%),
        #ffffff;
}

.registration-details-header h2 {
    margin: 0.2rem 0 0;
    color: var(--club-text);
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: 0;
}

.registration-details-heading p:not(.eyebrow) {
    margin: 0.35rem 0 0;
    color: var(--club-muted);
    font-size: 0.9rem;
    font-weight: 750;
}

.registration-details-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.registration-details-body {
    display: grid;
    gap: 1.1rem;
    overflow: auto;
    padding: 1.25rem;
    background: #f5f7fb;
}

.registration-details-section,
.registration-details-card {
    display: grid;
    gap: 0.9rem;
}

.registration-summary-card,
.registration-details-card {
    border: 1px solid var(--club-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
}

.registration-summary-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(20rem, 0.95fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem;
}

.registration-dog-avatar {
    width: 96px;
    height: 96px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--tenant-primary), white 55%);
    border-radius: 8px;
    background: var(--tenant-soft);
    color: var(--tenant-primary-strong);
    font-size: 2rem;
    font-weight: 950;
}

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

.registration-summary-main h3 {
    margin: 0.25rem 0 0;
    color: var(--club-text);
    font-size: 1.45rem;
    font-weight: 950;
    line-height: 1.1;
}

.registration-summary-main p:not(.eyebrow) {
    margin: 0.3rem 0 0;
    color: var(--club-muted);
    font-weight: 750;
}

.registration-summary-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 0;
}

.registration-summary-stats div {
    min-width: 0;
    border: 1px solid var(--club-line);
    border-radius: 8px;
    background: var(--club-surface-muted);
    padding: 0.8rem;
}

.registration-summary-stats dt,
.registration-details-grid dt {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.registration-summary-stats dd {
    margin: 0.28rem 0 0;
    overflow-wrap: anywhere;
    color: var(--club-text);
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.25;
}

.registration-details-card {
    padding: 1rem;
}

.registration-details-card-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.registration-details-card-title h3,
.registration-details-section h3 {
    margin: 0;
    color: var(--club-text);
    font-size: 1.02rem;
    font-weight: 950;
}

.registration-details-card-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    border-radius: 8px;
    background: var(--tenant-soft);
    color: var(--tenant-primary-strong);
    font-size: 0.82rem;
    font-weight: 950;
}

.registration-details-section h4,
.registration-details-two-column h4 {
    margin: 0;
    color: var(--club-text);
    font-size: 0.95rem;
    font-weight: 950;
}

.registration-details-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.registration-details-two-column article {
    display: grid;
    gap: 0.7rem;
    border: 1px solid var(--club-line);
    border-radius: 8px;
    padding: 0.95rem;
    background: var(--club-surface-muted);
}

.registration-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.registration-details-grid > div {
    min-width: 0;
    border: 1px solid var(--club-line);
    border-radius: 8px;
    background: #ffffff;
    padding: 0.75rem;
}

.registration-details-grid dd {
    margin: 0.24rem 0 0;
    overflow-wrap: anywhere;
    color: var(--club-text);
    font-weight: 850;
    line-height: 1.35;
}

.registration-document-list {
    display: grid;
    gap: 0.6rem;
}

.registration-document-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--club-line);
    border-radius: 8px;
    padding: 0.8rem;
    background: #fff;
    color: var(--club-text);
    text-decoration: none;
    transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.registration-document-row:hover {
    border-color: color-mix(in srgb, var(--tenant-primary), white 45%);
    background: var(--tenant-soft);
    transform: translateY(-1px);
}

.registration-document-row strong,
.registration-document-row small {
    display: block;
}

.registration-document-row small {
    margin-top: 0.15rem;
    color: #64748b;
}

.regulation-library {
    display: grid;
    gap: 1.25rem;
}

.regulation-page-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 1.25rem;
    align-items: end;
    border: 1px solid var(--tenant-border);
    border-radius: 8px;
    background: var(--tenant-card);
    padding: 1.25rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.regulation-page-head p,
.regulation-page-head h2,
.regulation-page-head span {
    margin: 0;
}

.regulation-page-head p {
    margin-bottom: 0.35rem;
    color: var(--tenant-primary-dark);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.regulation-page-head h2 {
    color: var(--tenant-text);
    font-size: clamp(1.9rem, 3vw, 2.125rem);
    font-weight: 780;
    line-height: 1.08;
}

.regulation-page-head span {
    display: block;
    margin-top: 0.45rem;
    color: var(--tenant-muted);
    font-size: 0.94rem;
    font-weight: 520;
    line-height: 1.5;
}

.regulation-search {
    min-height: 3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--tenant-border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--tenant-card), var(--tenant-bg) 35%);
    padding: 0 1rem;
}

.regulation-search svg {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
    color: var(--tenant-muted);
    stroke-width: 2.2;
}

.regulation-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--tenant-text);
    font-size: 0.92rem;
    font-weight: 520;
}

.regulation-search input::placeholder {
    color: var(--tenant-muted);
}

.regulation-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.regulation-filter,
.regulation-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.regulation-filter a {
    min-height: 2.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--tenant-border);
    border-radius: 999px;
    background: var(--tenant-card);
    color: var(--tenant-text);
    padding: 0 0.85rem;
    font-size: 0.82rem;
    font-weight: 680;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.regulation-filter a span {
    min-width: 1.35rem;
    min-height: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--tenant-primary-soft);
    color: var(--tenant-primary-dark);
    padding: 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 780;
}

.regulation-filter a.active,
.regulation-filter a:hover {
    border-color: var(--tenant-primary);
    color: var(--tenant-primary-dark);
}

.regulation-filter a.active {
    background: var(--tenant-primary);
    color: #ffffff;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--tenant-primary), transparent 78%);
}

.regulation-filter a.active span {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.regulation-sort {
    min-height: 2.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid var(--tenant-border);
    border-radius: 12px;
    background: var(--tenant-card);
    padding: 0 0.35rem 0 0.8rem;
}

.regulation-sort span {
    color: var(--tenant-muted);
    font-size: 0.76rem;
    font-weight: 720;
}

.regulation-sort select {
    min-height: 2rem;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--tenant-text);
    font-size: 0.82rem;
    font-weight: 680;
}

.regulation-view-toggle {
    display: inline-flex;
    gap: 0.25rem;
    border: 1px solid var(--tenant-border);
    border-radius: 12px;
    background: var(--tenant-card);
    padding: 0.25rem;
}

.regulation-view-toggle a,
.regulation-view-toggle span {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: var(--tenant-muted);
}

.regulation-view-toggle a.active {
    background: var(--tenant-primary-soft);
    color: var(--tenant-primary-dark);
}

.regulation-view-toggle .disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.regulation-view-toggle svg {
    width: 1rem;
    height: 1rem;
    stroke-width: 2.2;
}

.regulation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 350px);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}

.regulation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.regulation-card {
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    border: 1px solid var(--tenant-border);
    border-radius: 8px;
    background: var(--tenant-card);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.regulation-card-visual {
    min-height: 168px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    overflow: hidden;
    padding: 1rem;
    background:
        linear-gradient(rgba(15, 39, 48, 0.18), rgba(15, 39, 48, 0.38)),
        var(--tenant-dashboard-image-primary);
    background-size: cover;
    background-position: center;
}

.regulation-card:nth-child(even) .regulation-card-visual {
    background:
        linear-gradient(rgba(15, 39, 48, 0.16), rgba(15, 39, 48, 0.36)),
        var(--tenant-dashboard-image-secondary);
    background-size: cover;
    background-position: center;
}

.regulation-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: flex-start;
}

.regulation-tag {
    min-height: 1.75rem;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    color: #ffffff;
    padding: 0 0.7rem;
    font-size: 0.68rem;
    font-weight: 760;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.regulation-tag-primary {
    background: var(--tenant-primary);
}

.regulation-tag-competition {
    background: var(--tenant-danger);
}

.regulation-tag-exam {
    background: var(--tenant-primary);
}

.regulation-tag-secondary {
    background: color-mix(in srgb, var(--tenant-info), var(--tenant-primary) 22%);
}

.regulation-document-icon {
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--tenant-primary-dark);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.regulation-document-icon svg {
    width: 1.1rem;
    height: 1.1rem;
    stroke-width: 2.1;
}

.regulation-card-content {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: 0.8rem;
    padding: 1.1rem;
}

.regulation-card-content h3 {
    margin: 0;
    color: var(--tenant-text);
    font-size: 1.08rem;
    font-weight: 760;
    line-height: 1.3;
}

.regulation-excerpt {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: var(--tenant-muted);
    font-size: 0.9rem;
    font-weight: 480;
    line-height: 1.6;
}

.regulation-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    color: var(--tenant-muted);
    font-size: 0.78rem;
    font-weight: 620;
}

.regulation-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.regulation-card-meta span::before {
    width: 0.38rem;
    height: 0.38rem;
    content: "";
    display: inline-block;
    border-radius: 999px;
    background: var(--tenant-primary-soft);
}

.regulation-read-more {
    width: fit-content;
    min-height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--tenant-primary);
    color: #ffffff;
    padding: 0 1rem;
    font-size: 0.82rem;
    font-weight: 760;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.regulation-read-more:hover {
    background: var(--tenant-primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
}

.regulation-info-block {
    border-top: 1px solid var(--club-line);
    padding-top: 0.85rem;
}

.regulation-info-block h4 {
    margin: 0 0 0.65rem;
    color: var(--tenant-primary-strong);
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.regulation-info-block div {
    color: #334155;
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.6;
}

.regulation-empty {
    display: grid;
    justify-items: center;
    gap: 0.6rem;
    border: 1px dashed color-mix(in srgb, var(--tenant-border), var(--tenant-primary) 18%);
    border-radius: 8px;
    background: var(--tenant-card);
    padding: 2.4rem 1.25rem;
    text-align: center;
}

.regulation-empty-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--tenant-primary-soft);
    color: var(--tenant-primary-dark);
}

.regulation-empty-icon svg {
    width: 1.45rem;
    height: 1.45rem;
    stroke-width: 2.1;
}

.regulation-empty h3,
.regulation-empty p {
    margin: 0;
}

.regulation-empty h3 {
    color: var(--tenant-text);
    font-size: 1.05rem;
    font-weight: 760;
}

.regulation-empty p {
    max-width: 420px;
    color: var(--tenant-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.regulation-results-footer {
    display: flex;
    justify-content: flex-end;
    color: var(--tenant-muted);
    font-size: 0.84rem;
    font-weight: 650;
}

.regulation-detail {
    display: grid;
    gap: 1.5rem;
}

.regulation-detail-hero {
    min-height: 260px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: end;
    overflow: hidden;
    border: 1px solid var(--tenant-border);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 48%, rgba(255, 255, 255, 0.36) 100%),
        var(--tenant-dashboard-image-primary);
    background-size: cover;
    background-position: center;
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.regulation-detail-hero-copy {
    max-width: 850px;
    display: grid;
    gap: 0.8rem;
}

.regulation-detail-hero h2 {
    margin: 0;
    color: var(--tenant-text);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 780;
    line-height: 1.06;
}

.regulation-detail-source {
    margin: 0;
    color: var(--tenant-primary-dark);
    font-size: 0.85rem;
    font-weight: 760;
}

.regulation-detail-summary {
    display: -webkit-box;
    max-width: 760px;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: var(--tenant-muted);
    font-size: 0.98rem;
    font-weight: 520;
    line-height: 1.62;
}

.regulation-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.regulation-detail-meta span {
    min-height: 1.85rem;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--tenant-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--tenant-text);
    padding: 0 0.7rem;
    font-size: 0.76rem;
    font-weight: 680;
}

.regulation-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
}

.regulation-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.5rem;
    align-items: start;
}

.regulation-detail-main {
    display: grid;
    gap: 1.25rem;
}

.regulation-detail-sidebar {
    position: sticky;
    top: 90px;
    display: grid;
    gap: 1rem;
}

.regulation-detail-section-card,
.regulation-sidebar-card,
.regulation-related-mobile {
    border: 1px solid var(--tenant-border);
    border-radius: 8px;
    background: var(--tenant-card);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.regulation-detail-section-card {
    display: grid;
    gap: 1rem;
    padding: 1.15rem;
}

.regulation-detail-section-card > header {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.regulation-section-icon {
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--tenant-primary-soft);
    color: var(--tenant-primary-dark);
    font-size: 0.9rem;
    font-weight: 820;
}

.regulation-detail-section-card header p,
.regulation-detail-section-card header h3 {
    margin: 0;
}

.regulation-detail-section-card header p {
    color: var(--tenant-muted);
    font-size: 0.74rem;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.regulation-detail-section-card header h3 {
    margin-top: 0.2rem;
    color: var(--tenant-text);
    font-size: 1.2rem;
    font-weight: 760;
}

.regulation-evaluation-highlight {
    display: grid;
    gap: 0.25rem;
    border: 1px solid color-mix(in srgb, var(--tenant-warning), var(--tenant-border) 58%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--tenant-warning), white 88%);
    padding: 0.9rem 1rem;
}

.regulation-evaluation-highlight strong {
    color: var(--tenant-text);
    font-size: 0.92rem;
    font-weight: 760;
}

.regulation-evaluation-highlight span {
    color: var(--tenant-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.regulation-section-excerpt {
    margin: 0;
    color: var(--tenant-muted);
    font-size: 0.94rem;
    font-weight: 520;
    line-height: 1.72;
}

.regulation-section-details {
    border-top: 1px solid var(--tenant-border);
    padding-top: 0.85rem;
}

.regulation-section-details summary {
    width: fit-content;
    cursor: pointer;
    border-radius: 999px;
    background: var(--tenant-primary);
    color: #ffffff;
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 760;
}

.regulation-section-details[open] summary {
    margin-bottom: 1rem;
}

.regulation-rich-text {
    max-width: 76ch;
    color: var(--tenant-text);
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.78;
}

.regulation-rich-text :where(p, ul, ol, blockquote) {
    margin: 0 0 1rem;
}

.regulation-rich-text :where(ul, ol) {
    padding-left: 1.25rem;
}

.regulation-rich-text :where(li) {
    margin-bottom: 0.35rem;
}

.regulation-rich-text :where(h1, h2, h3, h4) {
    margin: 1.2rem 0 0.55rem;
    color: var(--tenant-text);
    font-weight: 760;
    line-height: 1.25;
}

.regulation-rich-text :where(strong, b) {
    color: var(--tenant-text);
    font-weight: 760;
}

.regulation-rich-text :where(blockquote) {
    border-left: 4px solid var(--tenant-primary);
    background: var(--tenant-primary-soft);
    padding: 0.8rem 1rem;
}

.regulation-sidebar-card,
.regulation-related-mobile {
    overflow: hidden;
}

.regulation-sidebar-card-title {
    border-bottom: 1px solid var(--tenant-border);
    padding: 1rem;
}

.regulation-sidebar-card-title h3 {
    margin: 0;
    color: var(--tenant-text);
    font-size: 0.98rem;
    font-weight: 760;
}

.regulation-toc,
.regulation-document-data,
.regulation-related-list {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding: 0.85rem;
}

.regulation-toc a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-radius: 8px;
    color: var(--tenant-text);
    padding: 0.65rem;
    font-size: 0.88rem;
    font-weight: 650;
    text-decoration: none;
}

.regulation-toc a:hover {
    background: var(--tenant-primary-soft);
    color: var(--tenant-primary-dark);
}

.regulation-toc span {
    width: 1.55rem;
    height: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--tenant-bg), var(--tenant-card) 35%);
    color: var(--tenant-muted);
    font-size: 0.72rem;
    font-weight: 760;
}

.regulation-document-data {
    gap: 0;
}

.regulation-document-data div {
    display: grid;
    gap: 0.18rem;
    padding: 0.72rem 0.15rem;
}

.regulation-document-data div + div {
    border-top: 1px solid var(--tenant-border);
}

.regulation-document-data dt {
    color: var(--tenant-muted);
    font-size: 0.72rem;
    font-weight: 740;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.regulation-document-data dd {
    margin: 0;
    color: var(--tenant-text);
    font-size: 0.88rem;
    font-weight: 660;
}

.regulation-related-list a {
    display: grid;
    gap: 0.22rem;
    border-radius: 8px;
    color: var(--tenant-text);
    padding: 0.7rem;
    text-decoration: none;
}

.regulation-related-list a:hover {
    background: var(--tenant-primary-soft);
}

.regulation-related-list strong {
    color: inherit;
    font-size: 0.9rem;
    font-weight: 720;
    line-height: 1.35;
}

.regulation-related-list span,
.regulation-related-empty {
    color: var(--tenant-muted);
    font-size: 0.78rem;
    font-weight: 620;
}

.regulation-related-empty {
    margin: 0;
    padding: 1rem;
}

.regulation-related-mobile {
    display: none;
}

.media-modal[hidden] {
    display: none;
}

.media-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.media-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 16, 0.74);
    backdrop-filter: blur(4px);
}

.media-modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 1120px);
    max-height: min(92vh, 860px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #0b1218;
    color: #e8edf3;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.media-modal-header,
.media-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: #101820;
}

.media-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.media-modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.media-modal-header h2 {
    margin: 0;
    overflow: hidden;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-modal-header p,
.media-modal-footer span {
    margin: 0.2rem 0 0;
    color: rgba(232, 237, 243, 0.68);
    font-size: 0.8rem;
    font-weight: 700;
}

.media-modal-controls,
.media-modal-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.media-icon-button {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 0 0.55rem;
    font-size: 0.88rem;
    font-weight: 900;
    text-decoration: none;
}

.media-icon-button:hover {
    border-color: color-mix(in srgb, var(--tenant-primary), white 30%);
    background: color-mix(in srgb, var(--tenant-primary), transparent 62%);
}

.media-modal-stage {
    min-height: 0;
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    background: #050a10;
}

.media-frame {
    --media-zoom: 1;
    min-width: 0;
    height: min(72vh, 680px);
    overflow: auto;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.media-frame img {
    max-width: 100%;
    max-height: 100%;
    transform: scale(var(--media-zoom));
    transform-origin: center;
    transition: transform 140ms ease;
}

.media-frame iframe {
    width: min(100%, 900px);
    height: 100%;
    min-height: 560px;
    border: 0;
    border-radius: 8px;
    background: #ffffff;
}

.media-frame img[hidden],
.media-frame iframe[hidden] {
    display: none;
}

.media-nav {
    width: 44px;
    height: 72px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    font-size: 2.4rem;
    font-weight: 500;
}

.media-nav:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.eyebrow {
    color: var(--tenant-primary);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-label {
    display: grid;
    gap: 0.35rem;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
}

.form-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    padding: 0.68rem 0.78rem;
    color: var(--club-text);
    outline: none;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.form-input:focus {
    border-color: var(--tenant-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tenant-primary), transparent 84%);
}

.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background-color 150ms ease,
        border-color 150ms ease,
        color 150ms ease,
        box-shadow 150ms ease,
        transform 150ms ease;
}

.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger {
    padding: 0.6rem 1rem;
}

/* Primary — filled, brand color */
.btn-primary {
    border: 1px solid var(--tenant-primary);
    background: var(--tenant-primary);
    color: var(--tenant-primary-text);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
    border-color: var(--tenant-primary-strong);
    background: var(--tenant-primary-strong);
    color: var(--tenant-secondary-text);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.btn-primary:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--tenant-primary), transparent 60%);
    outline-offset: 2px;
}

.btn-disabled {
    min-height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
    cursor: not-allowed;
}

.btn-disabled-closed {
    border-color: #fecaca;
    background: #fff1f2;
    color: #be123c;
}

/* Secondary — white/outline */
.btn-secondary {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    border-color: #9ca3af;
    background: #f9fafb;
    color: #111827;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-secondary:focus-visible {
    outline: 3px solid rgba(100, 116, 139, 0.3);
    outline-offset: 2px;
}

.btn-success {
    border: 1px solid #4d7c0f;
    background: #ecfdf3;
    color: #365314;
    box-shadow: 0 1px 2px rgba(54, 83, 20, 0.08);
}

.btn-success:hover {
    border-color: #3f6212;
    background: #d9f99d;
    color: #1f3d0c;
    box-shadow: 0 3px 8px rgba(54, 83, 20, 0.14);
    transform: translateY(-1px);
}

.btn-success:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(54, 83, 20, 0.12);
}

.btn-success:focus-visible {
    outline: 3px solid rgba(77, 124, 15, 0.3);
    outline-offset: 2px;
}

/* Danger — red-filled with white text */
.btn-danger {
    border: 1px solid #dc2626;
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.25);
}

.btn-danger:hover {
    border-color: #b91c1c;
    background: #b91c1c;
    box-shadow: 0 4px 10px rgba(185, 28, 28, 0.3);
    transform: translateY(-1px);
}

.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(185, 28, 28, 0.2);
}

.btn-danger:focus-visible {
    outline: 3px solid rgba(220, 38, 38, 0.35);
    outline-offset: 2px;
}

/* Small variant — use instead of !px-3 !py-1.5 text-sm */
.btn-sm {
    padding: 0.38rem 0.7rem;
    font-size: 0.8rem;
    border-radius: 5px;
}

.locale-switch {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font-size: 0.78rem;
}

.locale-switch a {
    padding: 0.46rem 0.62rem;
    color: #64748b;
    font-weight: 850;
    text-decoration: none;
}

.locale-switch .active {
    background: var(--tenant-primary);
    color: var(--tenant-primary-text);
}

.status-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.6rem;
    background: var(--tenant-soft);
    color: var(--tenant-primary-strong);
    font-size: 0.78rem;
    font-weight: 800;
}

/* Scrollable table wrapper — use this around every table-clean */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-clean {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.table-clean th {
    background: var(--club-surface-muted);
    color: #64748b;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
    padding: 0.9rem 1rem;
}

.table-clean td {
    border-top: 1px solid var(--club-line);
    padding: 0.9rem 1rem;
    vertical-align: middle;
}

.confirm-modal[hidden] {
    display: none;
}

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.confirm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(3px);
}

.confirm-modal-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    width: min(100%, 440px);
    border: 1px solid #f0d5d5;
    border-radius: 8px;
    background: #ffffff;
    padding: 1.2rem;
    box-shadow: 0 24px 70px rgba(22, 30, 26, 0.2);
}

.confirm-modal-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #fff1f1;
    color: #b42318;
    font-size: 1.15rem;
    font-weight: 900;
}

.confirm-modal-content h2 {
    margin: 0;
    color: #1f2a24;
    font-size: 1.05rem;
    font-weight: 800;
}

.confirm-modal-content p {
    margin: 0.45rem 0 0;
    color: #5e6a64;
    line-height: 1.5;
}

.confirm-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 1.1rem;
}

.processing-modal[hidden] {
    display: none;
}

.processing-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.processing-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(3px);
}

.processing-modal-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    width: min(100%, 480px);
    border: 1px solid var(--club-line);
    border-radius: 8px;
    background: #ffffff;
    padding: 1.25rem;
    box-shadow: 0 24px 70px rgba(22, 30, 26, 0.24);
}

.processing-modal-panel h2 {
    margin: 0;
    color: #1f2a24;
    font-size: 1.05rem;
    font-weight: 800;
}

.processing-modal-panel p {
    margin: 0.45rem 0 0;
    color: #5e6a64;
    line-height: 1.5;
}

.processing-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--club-green);
    border-radius: 999px;
    animation: processing-spin 0.8s linear infinite;
}

@keyframes processing-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---- Hamburger button (hidden on desktop) ---- */
.nav-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
    transition: border-color 140ms ease, color 140ms ease;
}

.nav-hamburger:hover {
    border-color: var(--tenant-primary);
    color: var(--tenant-primary);
}

.nav-hamburger svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    display: block;
}

/* ---- Sidebar overlay backdrop ---- */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 39;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(2px);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* ---- Tablet & Mobile (≤1023px): slide-over sidebar ---- */
@media (max-width: 1023px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .nav-hamburger {
        display: flex;
    }

    /* Sidebar slides in from left as a fixed overlay */
    .sidebar {
        position: fixed;
        inset-block: 0;
        left: 0;
        width: 260px;
        height: 100vh;
        z-index: 40;
        transform: translateX(-100%);
        transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1),
                    box-shadow 280ms ease;
        overflow-y: auto;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }

    /* Open state — toggled by JS adding .sidebar-open to <body> */
    body.sidebar-open .sidebar {
        transform: translateX(0);
        box-shadow: 6px 0 32px rgba(0, 0, 0, 0.35);
    }

    body.sidebar-open .sidebar-overlay {
        display: block;
    }

    /* Push main content down so it doesn't hide under a fixed bar */
    .app-shell > .min-w-0 {
        min-height: 100vh;
    }
}

/* ---- Tablet (769px – 1023px) ---- */
@media (min-width: 769px) and (max-width: 1023px) {
    .dashboard-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .regulation-layout {
        grid-template-columns: 1fr;
    }
}

/* ---- Form grids narrow ---- */
@media (max-width: 900px) {
    .dog-form-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---- Mobile (≤768px) ---- */
@media (max-width: 768px) {
    /* Dashboard stat cards stack */
    .dashboard-metrics {
        grid-template-columns: 1fr;
    }

    /* Topbar: keep single row, just tighten spacing */
    .topbar-breadcrumb {
        display: none;
    }

    .topbar-divider {
        display: none;
    }

    /* Tables: the .table-wrap div handles horizontal scroll.
       Set a min-width so the table doesn't collapse to nothing. */
    .table-wrap .table-clean {
        min-width: 600px;
    }

    /* Form grids collapse */
    .dog-form-grid-2,
    .dog-form-grid-3,
    .dog-photo-upload,
    .dog-document-upload,
    .dog-document-row,
    .registration-details-two-column,
    .registration-details-grid {
        grid-template-columns: 1fr;
    }

    /* iBox title wrap on small screens */
    .ibox-title {
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    /* Tabs scroll */
    .tabs {
        overflow-x: auto;
    }

    .tab-link {
        white-space: nowrap;
    }

    /* Registration details modal full-screen */
    .registration-details-modal {
        padding: 0;
    }

    .registration-details-panel {
        width: 100%;
        height: 100vh;
        max-height: none;
        border-radius: 0;
    }

    .registration-details-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .regulation-filter {
        justify-content: flex-start;
    }

    .regulation-page-head,
    .regulation-detail-hero,
    .regulation-layout,
    .regulation-grid {
        grid-template-columns: 1fr;
    }

    .regulation-page-head {
        padding: 1rem;
    }

    .regulation-toolbar,
    .regulation-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .regulation-sort,
    .regulation-sort select {
        width: 100%;
    }

    .regulation-detail-actions {
        justify-content: flex-start;
    }

    .regulation-card-visual {
        min-height: 150px;
    }

    .registration-details-header-actions {
        justify-content: flex-start;
    }

    .registration-summary-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .registration-summary-stats {
        grid-column: 1 / -1;
    }

    /* Media modal full-screen */
    .media-modal {
        padding: 0;
    }

    .media-modal-panel {
        width: 100%;
        height: 100vh;
        max-height: none;
        border-radius: 0;
    }

    .media-modal-header,
    .media-modal-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .media-modal-controls,
    .media-modal-actions {
        width: 100%;
    }

    .media-frame {
        height: auto;
        min-height: 0;
        padding: 0.75rem;
    }

    .media-frame iframe {
        min-height: 62vh;
    }

    .media-nav {
        width: 34px;
        height: 54px;
        font-size: 2rem;
    }
}

/* ---- 2026 dashboard sample refresh ---- */
.topbar {
    position: sticky;
    top: 0;
    min-height: 104px;
    border-bottom: 0;
    background: rgba(247, 248, 251, 0.86);
    backdrop-filter: blur(18px);
}

.topbar-inner {
    min-height: 104px;
    align-items: center;
    padding: 1.1rem clamp(1.25rem, 3vw, 2rem);
}

.topbar-page-title {
    font-size: clamp(1.55rem, 2vw, 1.85rem);
    letter-spacing: 0;
}

.topbar-subtitle {
    margin-top: 0.45rem;
    color: #667085;
}

.topbar-breadcrumb {
    display: none;
}

.topbar-actions {
    gap: 0.85rem;
}

.topbar-search {
    width: min(32vw, 420px);
    min-width: 280px;
    height: 58px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--club-line);
    border-radius: 13px;
    background: #ffffff;
    padding: 0 1rem;
    box-shadow: var(--shadow-card);
}

.topbar-search svg,
.locale-icon {
    width: 21px;
    height: 21px;
    color: #4b5563;
    stroke-width: 2.1;
}

.topbar-search input {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--club-text);
    outline: 0;
}

.topbar-search input::placeholder {
    color: #8b93a3;
}

.locale-switch,
.topbar-user,
.topbar-icon-button {
    min-height: 58px;
    border: 1px solid var(--club-line);
    border-radius: 13px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.locale-switch {
    gap: 0.15rem;
    padding: 0 0.7rem;
}

.locale-switch a {
    border-radius: 9px;
    color: #374151;
}

.locale-switch .active {
    background: color-mix(in srgb, var(--tenant-primary), white 88%);
    color: var(--tenant-primary-strong);
}

.topbar-icon-button {
    width: 58px;
    display: grid;
    place-items: center;
    color: #374151;
}

.topbar-icon-button svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.1;
}

.topbar-user {
    padding: 0.4rem 1rem 0.4rem 0.5rem;
}

.user-avatar {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 12px;
}

.app-content {
    padding: 0 clamp(1.25rem, 3vw, 2rem) 2rem;
}

.dashboard-shell {
    display: grid;
    gap: 1.35rem;
}

.dashboard-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.34fr) minmax(340px, 0.66fr);
    gap: 1.25rem;
}

.dashboard-issuer-card {
    min-height: 150px;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    overflow: hidden;
    border: 1px solid var(--club-line);
    border-radius: 15px;
    background:
        linear-gradient(115deg, color-mix(in srgb, var(--tenant-primary), white 88%), #ffffff 62%),
        #ffffff;
    box-shadow: var(--shadow-soft);
    padding: clamp(1rem, 2.4vw, 1.5rem);
}

.dashboard-issuer-media {
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.dashboard-issuer-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.45rem;
}

.dashboard-issuer-copy h2 {
    margin: 0;
    max-width: 900px;
    color: #111827;
    font-size: clamp(1.65rem, 3.2vw, 2.65rem);
    font-weight: 950;
    line-height: 1.08;
}

.dashboard-welcome-card,
.dashboard-next-event-card,
.dashboard-stat-card,
.dashboard-panel {
    border: 1px solid var(--club-line);
    border-radius: 15px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.dashboard-welcome-card {
    min-height: 270px;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2rem);
}

.dashboard-welcome-copy {
    position: relative;
    z-index: 1;
    align-self: center;
}

.dashboard-welcome-copy h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    font-weight: 950;
    line-height: 1.05;
}

.dashboard-welcome-copy p {
    margin: 0.85rem 0 0;
    color: #667085;
    font-size: 1rem;
}

.dashboard-welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 3rem;
}

.button-count {
    min-width: 1.55rem;
    height: 1.55rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #ffffff;
    color: var(--tenant-primary-strong);
    font-size: 0.78rem;
    font-weight: 950;
}

.dashboard-welcome-art {
    display: grid;
    place-items: end;
    color: color-mix(in srgb, var(--tenant-primary), white 28%);
}

.dashboard-welcome-art svg {
    width: min(100%, 360px);
    max-height: 220px;
}

.dashboard-next-event-card {
    position: relative;
    min-height: 270px;
    overflow: hidden;
}

.dashboard-next-event-media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.88) 42%, rgba(255, 255, 255, 0.1) 100%),
        var(--tenant-dashboard-image-primary);
    background-position: center right;
    background-size: cover;
}

.dashboard-next-event-content {
    position: relative;
    z-index: 1;
    max-width: 62%;
    padding: 1.7rem;
}

.dashboard-pill {
    width: fit-content;
    margin: 0 0 1rem;
    border-radius: 7px;
    background: color-mix(in srgb, var(--tenant-primary), white 84%);
    color: var(--tenant-primary-strong);
    padding: 0.32rem 0.55rem;
    font-size: 0.73rem;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard-next-event-content h3 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.35rem, 2.3vw, 2rem);
    font-weight: 950;
    line-height: 1.18;
}

.dashboard-next-event-content dl {
    display: grid;
    gap: 0.55rem;
    margin: 1rem 0 1.3rem;
}

.dashboard-next-event-content dt {
    display: none;
}

.dashboard-next-event-content dd {
    margin: 0;
    color: #4b5563;
    font-weight: 700;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-stat-card {
    min-height: 138px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem 1rem;
    align-items: center;
    padding: 1.35rem;
}

.dashboard-stat-icon {
    width: 58px;
    height: 58px;
    grid-row: span 3;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-weight: 950;
}

.dashboard-stat-icon-green {
    background: color-mix(in srgb, var(--tenant-primary), white 84%);
    color: var(--tenant-primary-strong);
}

.dashboard-stat-icon-gold {
    background: #fff2c7;
    color: #b7791f;
}

.dashboard-stat-icon-blue {
    background: #dff1ff;
    color: #1d75b9;
}

.dashboard-stat-icon-purple {
    background: #eee2ff;
    color: #6f4bd8;
}

.dashboard-stat-card p,
.dashboard-stat-card small {
    margin: 0;
    color: #667085;
    font-weight: 750;
}

.dashboard-stat-card strong {
    min-width: 0;
    overflow: hidden;
    color: #111827;
    font-size: 2rem;
    font-weight: 950;
    line-height: 1;
    text-overflow: ellipsis;
}

.dashboard-stat-role {
    font-size: 1.25rem !important;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
    gap: 1.25rem;
    align-items: start;
}

.dashboard-panel {
    overflow: hidden;
}

.dashboard-primary-panels {
    display: grid;
    gap: 1rem;
}

.dashboard-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--club-line);
    padding: 1.3rem 1.5rem;
}

.dashboard-panel-header h2 {
    margin: 0;
    color: #111827;
    font-size: 1.18rem;
    font-weight: 950;
}

.dashboard-panel-header p {
    margin: 0.35rem 0 0;
    color: #667085;
    font-size: 0.9rem;
}

.dashboard-panel-header a {
    color: var(--tenant-primary-strong);
    font-size: 0.86rem;
    font-weight: 900;
    text-decoration: none;
}

.dashboard-event-head,
.dashboard-event-row {
    display: grid;
    grid-template-columns: 110px minmax(190px, 1.1fr) minmax(130px, 0.8fr) minmax(120px, 0.7fr) minmax(130px, 0.7fr);
    gap: 1rem;
    align-items: center;
}

.dashboard-event-head {
    padding: 0.85rem 1.5rem;
    background: #fbfcfe;
    color: #8b93a3;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dashboard-event-row {
    min-height: 76px;
    border-top: 1px solid var(--club-line);
    padding: 0.85rem 1.5rem;
}

.dashboard-event-row time,
.dashboard-event-row strong,
.dashboard-event-row small {
    display: block;
}

.dashboard-event-row time,
.dashboard-event-row strong {
    color: #111827;
    font-weight: 900;
}

.dashboard-event-row time span,
.dashboard-event-row small,
.dashboard-event-row > span {
    color: #667085;
    font-weight: 700;
}

.dashboard-progress strong {
    font-size: 0.9rem;
}

.dashboard-progress span {
    width: 120px;
    height: 7px;
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: #e8ecef;
    margin-top: 0.45rem;
}

.dashboard-progress i {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: var(--tenant-primary);
}

.dashboard-status {
    display: inline-flex;
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 950;
}

.dashboard-status-open {
    background: color-mix(in srgb, var(--tenant-primary), white 86%);
    color: var(--tenant-primary-strong);
}

.dashboard-status-closed {
    background: #fff1f2;
    color: #be123c;
}

.dashboard-exhibition-list {
    display: grid;
}

.dashboard-exhibition-row {
    min-height: 132px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    border-top: 1px solid var(--club-line);
    padding: 1.15rem 1.5rem;
}

.dashboard-exhibition-row:first-child {
    border-top: 0;
}

.dashboard-exhibition-row h3 {
    margin: 0;
    color: #111827;
    font-size: 1.15rem;
    font-weight: 950;
}

.dashboard-exhibition-row dl {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.25rem;
    margin: 0.75rem 0 0;
}

.dashboard-exhibition-row dt {
    color: #8b93a3;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard-exhibition-row dd {
    margin: 0.15rem 0 0;
    color: #111827;
    font-weight: 850;
}

.dashboard-exhibition-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.dashboard-exhibition-categories span {
    border-radius: 8px;
    background: #f3f6f8;
    color: #4b5563;
    padding: 0.35rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 850;
}

.dashboard-exhibition-action {
    min-width: 148px;
    display: grid;
    justify-items: end;
    gap: 0.25rem;
}

.dashboard-exhibition-action strong {
    color: #111827;
    font-size: 1.4rem;
    font-weight: 950;
    line-height: 1;
}

.dashboard-exhibition-action small {
    margin-bottom: 0.6rem;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 850;
}

.dashboard-side-panels {
    display: grid;
    gap: 1rem;
}

.dashboard-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    padding: 1.15rem;
}

.dashboard-action-grid a {
    min-height: 94px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.55rem;
    border: 1px solid var(--club-line);
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
    padding: 0.8rem;
    font-size: 0.78rem;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
}

.dashboard-action-grid a:hover {
    border-color: color-mix(in srgb, var(--tenant-primary), white 65%);
    background: color-mix(in srgb, var(--tenant-primary), white 94%);
}

.dashboard-action-grid span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--club-line);
    border-radius: 10px;
    color: var(--tenant-primary-strong);
    font-size: 1.2rem;
}

.dashboard-dog-row {
    min-height: 76px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    border-top: 1px solid var(--club-line);
    padding: 0.8rem 1.15rem;
    color: inherit;
    text-decoration: none;
}

.dashboard-dog-row img,
.dashboard-dog-row > span {
    width: 58px;
    height: 58px;
    border-radius: 10px;
}

.dashboard-dog-row img {
    object-fit: cover;
}

.dashboard-dog-row > span {
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--tenant-primary), white 88%);
    color: var(--tenant-primary-strong);
    font-weight: 950;
}

.dashboard-dog-row strong,
.dashboard-dog-row small {
    display: block;
}

.dashboard-dog-row strong {
    color: #111827;
    font-weight: 950;
}

.dashboard-dog-row small {
    margin-top: 0.2rem;
    color: #667085;
    font-weight: 700;
}

.dashboard-empty {
    padding: 1.35rem 1.5rem;
    color: #667085;
    font-weight: 700;
}

@media (max-width: 1280px) {
    .dashboard-top-grid,
    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-next-event-content {
        max-width: 58%;
    }
}

@media (max-width: 1100px) {
    .topbar-search {
        display: none;
    }

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

@media (max-width: 760px) {
    .topbar {
        min-height: auto;
    }

    .topbar-inner {
        align-items: stretch;
        gap: 0.85rem;
    }

    .topbar-actions {
        overflow-x: auto;
    }

    .dashboard-welcome-card {
        grid-template-columns: 1fr;
    }

    .dog-public-hero,
    .dog-profile-hero,
    .dog-profile-info-grid,
    .dog-profile-facts,
    .dog-profile-status-grid {
        grid-template-columns: 1fr;
    }

    .dog-profile-hero {
        padding: 1rem;
    }

    .dog-profile-photo,
    .dog-profile-photo-card {
        min-height: 220px;
    }

    .dashboard-issuer-card {
        grid-template-columns: 1fr;
    }

    .dashboard-issuer-media {
        width: min(100%, 220px);
    }

    .dashboard-welcome-art {
        display: none;
    }

    .dashboard-next-event-content {
        max-width: none;
    }

    .dashboard-next-event-media {
        opacity: 0.22;
    }

    .dashboard-stat-grid,
    .dashboard-action-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-event-head {
        display: none;
    }

    .dashboard-event-row {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .dashboard-exhibition-row {
        grid-template-columns: 1fr;
    }

    .dashboard-exhibition-action {
        justify-items: start;
    }
}

/* ============================================================
   WEBARCH-STYLE ENHANCEMENTS
   ============================================================ */

/* ---- Gradient stat card variants ---- */
.metric-card-blue,
.metric-card-green,
.metric-card-orange,
.metric-card-red,
.metric-card-teal,
.metric-card-purple {
    border-color: transparent;
    color: #ffffff;
}

.metric-card-blue {
    background: linear-gradient(135deg, #1c84c6 0%, #1465a4 100%);
    box-shadow: 0 10px 28px rgba(28, 132, 198, 0.3);
}

.metric-card-green {
    background: linear-gradient(135deg, #1ab394 0%, #0e9478 100%);
    box-shadow: 0 10px 28px rgba(26, 179, 148, 0.3);
}

.metric-card-orange {
    background: linear-gradient(135deg, #f8ac59 0%, #ef8c10 100%);
    box-shadow: 0 10px 28px rgba(248, 172, 89, 0.32);
}

.metric-card-red {
    background: linear-gradient(135deg, #ed5565 0%, #d43f4e 100%);
    box-shadow: 0 10px 28px rgba(237, 85, 101, 0.3);
}

.metric-card-teal {
    background: linear-gradient(135deg, var(--tenant-primary), var(--tenant-primary-strong));
    box-shadow: 0 10px 28px rgba(15, 118, 110, 0.3);
}

.metric-card-purple {
    background: linear-gradient(135deg, #9b59b6, #7d3c98);
    box-shadow: 0 10px 28px rgba(155, 89, 182, 0.3);
}

/* ---- Stat card inner elements ---- */
.metric-stat-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.22);
}

.metric-stat-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.8;
    color: rgba(255, 255, 255, 0.95);
    stroke: currentColor;
    fill: none;
}

.metric-stat-label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.86);
}

.metric-stat-value {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.1;
    margin-top: 0.4rem;
    color: #ffffff;
}

.metric-stat-sub {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.76);
    margin-top: 0.35rem;
    line-height: 1.5;
}

.metric-stat-text {
    font-size: 1.15rem;
    font-weight: 800;
    margin-top: 0.5rem;
    color: #ffffff;
    line-height: 1.4;
}

/* ---- Table striped rows + hover ---- */
.table-clean tbody tr {
    transition: background-color 100ms ease;
}

.table-clean tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.table-clean tbody tr:hover td {
    background: #e9f0f7 !important;
}

/* ---- iBox-style surface cards (Webarch signature) ---- */
.ibox {
    border: 1px solid var(--club-line);
    border-radius: 8px;
    background: var(--club-surface);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.ibox-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--club-line);
    background: var(--club-surface-muted);
    border-top: 3px solid var(--tenant-primary);
}

.ibox-title h5,
.ibox-title h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--club-text);
}

.ibox-title-blue   { border-top-color: #1c84c6; }
.ibox-title-green  { border-top-color: #1ab394; }
.ibox-title-orange { border-top-color: #f8ac59; }
.ibox-title-red    { border-top-color: #ed5565; }
.ibox-title-purple { border-top-color: #9b59b6; }

.ibox-content {
    padding: 1.25rem;
}

/* ---- Status chip color variants ---- */
.status-chip-success {
    background: #dcfce7;
    color: #166534;
}

.status-chip-warning {
    background: #fef3c7;
    color: #92400e;
}

.status-chip-danger {
    background: #fee2e2;
    color: #991b1b;
}

.status-chip-info {
    background: #dbeafe;
    color: #1e40af;
}

.status-chip-muted {
    background: #f1f5f9;
    color: #475569;
}

/* ---- User avatar in topbar ---- */
.user-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--tenant-primary);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 900;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* ---- Topbar breadcrumb ---- */
.topbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.18rem;
    font-size: 0.78rem;
    color: #94a3b8;
}

.topbar-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: color 120ms ease;
}

.topbar-breadcrumb a:hover {
    color: var(--tenant-primary);
}

.topbar-breadcrumb .sep {
    color: #cbd5e1;
    user-select: none;
}

.topbar-breadcrumb .current {
    color: #94a3b8;
    font-weight: 600;
}

/* ---- Topbar divider ---- */
.topbar-divider {
    width: 1px;
    height: 28px;
    background: #e2e8f0;
    flex-shrink: 0;
}

/* ---- Surface header with accent border ---- */
.surface-header {
    border-top: 3px solid var(--tenant-primary);
}

/* ---- Dashboard metric grid tweak ---- */
.dashboard-metrics {
    gap: 1.25rem;
}

/* ---- Sidebar hover left-accent ---- */
.nav-link-item:hover {
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    padding-left: calc(0.75rem - 3px);
    background: color-mix(in srgb, var(--tenant-primary), transparent 76%);
    color: #ffffff;
    border-radius: 0 8px 8px 0;
}

.nav-link-item-active {
    background: var(--tenant-primary);
    color: #ffffff;
    border-left: 3px solid rgba(255, 255, 255, 0.8);
    padding-left: calc(0.75rem - 3px);
    border-radius: 0 8px 8px 0;
}

.nav-link-item-nested:hover,
.nav-link-item-nested.nav-link-item-active {
    border-left: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 0 8px 8px 0;
}


/* ---- Alliance-inspired light operations layout ---- */
:root {
    --club-bg: #f5f7fb;
    --club-surface-muted: #f9fbfd;
    --club-line: #dfe6ef;
    --club-muted: #64748b;
    --club-text: #1f2937;
    --club-accent-blue: #2563eb;
    --club-accent-gold: #d39b2d;
    --club-accent-rose: #d95757;
    --shadow-soft: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.app-shell {
    grid-template-columns: 268px minmax(0, 1fr);
}

.app-content {
    padding: clamp(1.1rem, 3vw, 2.25rem);
}

.sidebar {
    border-right: 1px solid var(--club-line);
    background: #ffffff;
    color: var(--club-text);
}

.sidebar-brand {
    min-height: 82px;
    padding: 0 1.35rem;
    border-bottom: 1px solid var(--club-line);
}

.sidebar-brand a {
    color: var(--club-text) !important;
}

.sidebar-brand p {
    color: var(--club-muted) !important;
    font-weight: 700;
}

.brand-mark {
    width: 42px;
    height: 42px;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--tenant-primary), transparent 78%);
}

.nav-section-title {
    color: #94a3b8;
}

.nav-subgroup-toggle,
.nav-link-item {
    color: #475569;
}

.nav-link-item:hover,
.nav-subgroup-toggle:hover,
[data-nav-group="open"] > .nav-subgroup-toggle {
    border-left-color: color-mix(in srgb, var(--tenant-primary), transparent 45%);
    background: var(--tenant-soft);
    color: var(--tenant-primary-strong);
}

.nav-link-item-active,
.nav-link-item-nested.nav-link-item-active {
    border-left-color: var(--tenant-primary);
    background: var(--tenant-soft);
    color: var(--tenant-primary-strong);
}

.nav-link-item-nested {
    border-left-color: var(--club-line);
}

.topbar {
    min-height: 74px;
    border-bottom: 1px solid var(--club-line);
    background: rgba(245, 247, 251, 0.88);
    backdrop-filter: blur(16px);
}

.topbar-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 clamp(1rem, 3vw, 2.25rem);
}

.topbar-title-group {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.topbar-page-title {
    margin: 0;
    overflow: hidden;
    color: var(--club-text);
    font-size: clamp(1.45rem, 2.6vw, 2.15rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-subtitle {
    margin: 0.35rem 0 0;
    color: var(--club-muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.locale-switch,
.topbar-user {
    border: 1px solid var(--club-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.locale-switch {
    padding: 0.2rem;
}

.locale-switch a {
    min-width: 2.35rem;
    border-radius: 6px;
    padding: 0.45rem 0.55rem;
    text-align: center;
}

.topbar-user {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.28rem 0.75rem 0.28rem 0.28rem;
}

.user-avatar {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border: 0;
    border-radius: 8px;
    background: var(--tenant-soft);
    color: var(--tenant-primary-strong);
    font-size: 0.84rem;
}

.topbar-user-text p,
.topbar-user-text span {
    display: block;
    line-height: 1.15;
}

.topbar-user-text p {
    margin: 0;
    color: var(--club-text);
    font-size: 0.86rem;
    font-weight: 850;
}

.topbar-user-text span {
    margin-top: 0.16rem;
    color: var(--club-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.topbar-breadcrumb {
    margin-top: 0.2rem;
}

.surface,
.metric-card,
.ibox {
    border-color: var(--club-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.dashboard-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
    gap: 1.5rem;
    align-items: stretch;
}

.dashboard-hero-card,
.dashboard-photo-panel,
.dashboard-photo-secondary {
    overflow: hidden;
    border: 1px solid var(--club-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.dashboard-hero-card {
    position: relative;
    min-height: 20rem;
    padding: clamp(1.5rem, 4vw, 2.65rem);
}

.dashboard-hero-card::after {
    content: "";
    position: absolute;
    right: -5rem;
    bottom: -7rem;
    width: 22rem;
    height: 22rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--tenant-primary), transparent 88%);
    pointer-events: none;
}

.dashboard-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--tenant-primary);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-eyebrow::before {
    content: "";
    width: 1.5rem;
    height: 2px;
    border-radius: 999px;
    background: var(--tenant-primary);
}

.dashboard-hero-card h2 {
    position: relative;
    z-index: 1;
    max-width: 43rem;
    margin: 1rem 0 0;
    color: var(--club-text);
    font-size: clamp(2.1rem, 5vw, 3.65rem);
    font-weight: 950;
    line-height: 0.98;
    letter-spacing: 0;
}

.dashboard-hero-card > p:not(.dashboard-eyebrow) {
    position: relative;
    z-index: 1;
    max-width: 39rem;
    margin: 1.1rem 0 0;
    color: var(--club-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.dashboard-hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.6rem;
}

.dashboard-photo-panel {
    display: grid;
    grid-template-rows: minmax(14rem, 1fr) auto;
}

.dashboard-photo-main,
.dashboard-photo-secondary {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.34)),
        var(--tenant-dashboard-image-primary, url("https://images.unsplash.com/photo-1552053831-71594a27632d?auto=format&fit=crop&w=900&q=80")) center / cover;
}

.dashboard-photo-secondary {
    min-height: 11.5rem;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.5)),
        var(--tenant-dashboard-image-secondary, url("https://images.unsplash.com/photo-1517423440428-a5a00ad493e8?auto=format&fit=crop&w=900&q=80")) center / cover;
}

.dashboard-photo-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 1.1rem;
}

.dashboard-photo-caption h3 {
    margin: 0;
    overflow: hidden;
    color: var(--club-text);
    font-size: 1rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-photo-caption p {
    margin: 0.25rem 0 0;
    color: var(--club-muted);
    font-size: 0.84rem;
    line-height: 1.35;
}

.dashboard-metrics-modern {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.metric-card-modern {
    min-height: 8.7rem;
    padding: 1.1rem;
}

.metric-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
}

.metric-stat-label {
    margin: 0;
    color: var(--club-muted);
    font-size: 0.82rem;
    font-weight: 850;
}

.metric-stat-value {
    margin: 0.75rem 0 0;
    color: var(--club-text);
    font-size: 2.15rem;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0;
}

.metric-stat-text {
    margin: 0.85rem 0 0;
    color: var(--club-text);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.3;
}

.metric-stat-sub {
    margin: 0.55rem 0 0;
    color: var(--club-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.metric-stat-icon {
    width: 2.4rem;
    height: 2.4rem;
    flex: 0 0 2.4rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eef2ff;
    color: var(--club-accent-blue);
}

.metric-stat-icon svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.metric-stat-icon-gold {
    background: #fff7e6;
    color: var(--club-accent-gold);
}

.metric-stat-icon-green {
    background: var(--tenant-soft);
    color: var(--tenant-primary);
}

.metric-stat-icon-blue {
    background: #eef2ff;
    color: var(--club-accent-blue);
}

.metric-stat-icon-rose {
    background: #fff1f2;
    color: var(--club-accent-rose);
}

.dashboard-lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(20rem, 0.6fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.dashboard-side-stack {
    display: grid;
    align-content: start;
    gap: 1rem;
}

.dashboard-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.35rem;
    border-top: 0;
    border-bottom: 1px solid var(--club-line);
    background: #ffffff;
}

.dashboard-panel-title h2 {
    margin: 0;
    color: var(--club-text);
    font-size: 1.1rem;
    font-weight: 900;
}

.dashboard-panel-title p {
    margin: 0.25rem 0 0;
    color: var(--club-muted);
    font-size: 0.82rem;
}

.table-scroll {
    overflow-x: auto;
}

.table-modern th,
.table-modern td {
    padding: 1rem 1.35rem;
}

.table-modern th {
    color: #94a3b8;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
}

.dashboard-quick-list {
    display: grid;
    gap: 0.65rem;
    padding: 1rem;
}

.dashboard-quick-row {
    min-height: 3.05rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    border: 1px solid var(--club-line);
    border-radius: 8px;
    background: #ffffff;
    padding: 0.7rem 0.85rem;
    color: var(--club-text);
    text-decoration: none;
    transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.dashboard-quick-row:hover {
    border-color: color-mix(in srgb, var(--tenant-primary), white 45%);
    background: var(--tenant-soft);
    transform: translateY(-1px);
}

.dashboard-quick-row span {
    font-weight: 900;
}

.dashboard-quick-row small {
    color: var(--club-muted);
    font-size: 0.76rem;
    text-align: right;
}

.dashboard-featured-dog {
    display: grid;
    grid-template-columns: minmax(16rem, 0.42fr) minmax(0, 0.58fr);
    overflow: hidden;
    border: 1px solid var(--club-line);
    border-radius: 8px;
    background: #ffffff;
    margin-top: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.dashboard-featured-dog-media {
    min-height: 18rem;
    background: #f8fafc;
}

.dashboard-featured-dog-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.dashboard-featured-dog-placeholder {
    width: 100%;
    height: 100%;
    min-height: 18rem;
    display: grid;
    place-items: center;
    background: var(--tenant-soft);
    color: var(--tenant-primary);
    font-size: 5rem;
    font-weight: 950;
}

.dashboard-featured-dog-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.35rem, 3vw, 2.25rem);
}

.dashboard-featured-dog-body h2 {
    margin: 0.8rem 0 0;
    color: var(--club-text);
    font-size: clamp(1.6rem, 3vw, 2.45rem);
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: 0;
}

.dashboard-featured-dog-body dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.35rem 0 0;
}

.dashboard-featured-dog-body dl > div {
    min-width: 0;
    border: 1px solid var(--club-line);
    border-radius: 8px;
    background: #f8fafc;
    padding: 0.8rem;
}

.dashboard-featured-dog-body dt {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dashboard-featured-dog-body dd {
    margin: 0.3rem 0 0;
    overflow-wrap: anywhere;
    color: var(--club-text);
    font-size: 0.92rem;
    font-weight: 850;
    line-height: 1.35;
}

@media (max-width: 1200px) {
    .dashboard-metrics-modern {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-hero-grid,
    .dashboard-lower-grid {
        grid-template-columns: 1fr;
    }
}

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

    .sidebar {
        border-right: 0;
        background: #ffffff;
        box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
    }

    .topbar-inner {
        padding-inline: 1rem;
    }
}

@media (max-width: 760px) {
    .app-content {
        padding: 1rem;
    }

    .topbar-inner {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 0.85rem;
    }

    .topbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .topbar-user-text,
    .topbar-divider {
        display: none;
    }

    .topbar-page-title {
        max-width: calc(100vw - 5rem);
        font-size: 1.35rem;
    }

    .dashboard-hero-card {
        min-height: auto;
    }

    .dashboard-metrics-modern {
        grid-template-columns: 1fr;
    }

    .dashboard-photo-caption,
    .dashboard-panel-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-quick-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-quick-row small {
        text-align: left;
    }

    .dashboard-featured-dog {
        grid-template-columns: 1fr;
    }

    .dashboard-featured-dog-media,
    .dashboard-featured-dog-placeholder {
        min-height: 14rem;
    }

    .dashboard-featured-dog-body dl {
        grid-template-columns: 1fr;
    }
}

/* ---- Subpage polish: tables, forms and operational panels ---- */
.ibox,
.surface,
.auth-card,
.dog-form-section,
.dog-photo-card,
.dog-document-row,
.registration-details-two-column article,
.module-tile {
    border-color: var(--club-line);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
}

.ibox {
    background: #ffffff;
}

.ibox + .ibox,
.surface + .surface {
    margin-top: 1.25rem;
}

.ibox-title,
.surface-header {
    min-height: 4.35rem;
    padding: 1.15rem 1.35rem;
    border-top: 0;
    border-bottom: 1px solid var(--club-line);
    background: #ffffff;
}

.ibox-title h2,
.surface-header h2,
.card-title {
    margin: 0;
    color: var(--club-text);
    font-size: 1.08rem;
    font-weight: 900;
    letter-spacing: 0;
}

.ibox-title h2 + p,
.surface-header h2 + p {
    margin-top: 0.25rem;
    color: var(--club-muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.ibox-content,
.surface-body {
    padding: 1.25rem 1.35rem;
}

.ibox-content.border-b,
.ibox-content[class*="border-b"] {
    background: linear-gradient(180deg, #ffffff 0%, var(--club-surface-muted) 100%);
}

.ibox-content > form.flex,
.ibox-content > form.grid {
    gap: 0.9rem;
}

.form-label {
    gap: 0.45rem;
    color: #475569;
    font-size: 0.84rem;
    font-weight: 850;
}

.form-label small,
.form-label .text-xs,
.form-label .text-sm {
    color: var(--club-muted);
    font-weight: 650;
    line-height: 1.45;
}

.form-input {
    min-height: 2.75rem;
    border-color: #d8e0ea;
    background: #ffffff;
    padding: 0.7rem 0.85rem;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

textarea.form-input {
    min-height: 6.75rem;
    resize: vertical;
}

.form-input:hover:not(:disabled):not([readonly]) {
    border-color: #b9c5d4;
}

.form-input[readonly],
.form-input:disabled {
    background: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    min-height: 2.55rem;
    border-radius: 8px;
    font-weight: 850;
}

.btn-sm {
    min-height: 2.1rem;
    border-radius: 7px;
}

.btn-secondary {
    border-color: var(--club-line);
}

.table-wrap {
    border-top: 1px solid var(--club-line);
    overflow: auto;
    background: #ffffff;
}

.ibox-title + .table-wrap,
.ibox-title + .table-clean {
    border-top: 0;
}

.registration-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.65rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.registration-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.5rem;
}

.registration-filter-field {
    display: grid;
    gap: 0.25rem;
    min-width: 10rem;
    margin: 0;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 850;
}

.registration-filter-select {
    min-height: 2rem;
    height: 2rem;
    padding: 0.25rem 2rem 0.25rem 0.65rem;
    font-size: 0.82rem;
}

.registration-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.registration-filter-button {
    min-height: 2rem;
    height: 2rem;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.78rem;
    line-height: 1;
}

.registration-option-counts {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    padding-bottom: 0.05rem;
}

.registration-option-counts .status-chip {
    min-height: 1.75rem;
    padding: 0.22rem 0.55rem;
    font-size: 0.76rem;
}

@media (max-width: 760px) {
    .registration-filter-bar,
    .registration-filter-form {
        align-items: stretch;
    }

    .registration-filter-field {
        flex: 1 1 100%;
    }
}

.table-clean {
    width: 100%;
    background: #ffffff;
    font-size: 0.91rem;
    border-collapse: separate;
    border-spacing: 0;
}

.table-clean th {
    padding: 0.9rem 1.25rem;
    background: #fbfcfe;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    white-space: nowrap;
    text-align: left;
    text-transform: uppercase;
}

.table-clean td {
    border-top: 1px solid var(--club-line);
    padding: 0.82rem 1.25rem;
    color: #334155;
    vertical-align: middle;
}

.table-clean tbody tr {
    transition: background-color 140ms ease, box-shadow 140ms ease;
}

.table-clean tbody tr:hover {
    background: #fbfdff;
    box-shadow: inset 3px 0 0 color-mix(in srgb, var(--tenant-primary), white 28%);
}

.table-clean td:first-child {
    color: var(--club-text);
}

.table-clean td:last-child {
    white-space: nowrap;
}

.table-clean td:last-child .btn-primary,
.table-clean td:last-child .btn-secondary,
.table-clean td:last-child .btn-success,
.table-clean td:last-child .btn-danger,
.table-clean td:last-child form {
    margin-block: 0.15rem;
}

.ibox:has(.table-clean),
.surface:has(.table-clean) {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
}

.ibox:has(.table-clean) > .ibox-title,
.surface:has(.table-clean) > .surface-header {
    min-height: 4.6rem;
}

.ibox:has(.table-clean) > .ibox-content.border-b,
.ibox:has(.table-clean) > .ibox-content[class*="border-b"] {
    border-bottom: 1px solid var(--club-line);
    background: #ffffff;
    padding: 1rem;
}

.ibox:has(.table-clean) > .ibox-content.border-t,
.ibox:has(.table-clean) > .ibox-content[class*="border-t"] {
    border-top: 1px solid var(--club-line);
    background: #ffffff;
    padding: 0.85rem 1rem;
}

.table-clean td:first-child .font-semibold,
.table-clean td:first-child.font-semibold,
.table-clean td:first-child strong {
    color: #111827;
    font-weight: 950;
}

.table-clean td .text-slate-500,
.table-clean td .text-zinc-600 {
    color: #667085;
}

.table-clean td:last-child {
    text-align: right;
}

.table-clean td:last-child .btn-primary,
.table-clean td:last-child .btn-secondary,
.table-clean td:last-child .btn-success,
.table-clean td:last-child .btn-danger {
    min-height: 2.25rem;
    border-radius: 999px;
    padding-inline: 0.78rem;
}

.table-clean td:last-child form.inline,
.table-clean td:last-child form.contents {
    display: inline-flex;
}

.table-clean .dog-list-name {
    min-width: 15rem;
}

.table-clean .dog-list-thumb {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 10px;
}

.table-clean .dog-list-thumb-empty {
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--tenant-primary), white 86%);
    color: var(--tenant-primary-strong);
    font-weight: 950;
}

.table-clean code,
.table-clean pre {
    border-radius: 8px;
}

.status-chip {
    min-height: 1.75rem;
    padding-inline: 0.7rem;
    border: 1px solid color-mix(in srgb, currentColor, transparent 82%);
    font-size: 0.76rem;
}

.list-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.list-stat-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.list-stat-card {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--club-line);
    border-radius: 15px;
    background: #ffffff;
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
}

.list-stat-icon {
    width: 4rem;
    height: 4rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-weight: 950;
}

.list-stat-icon-green {
    background: color-mix(in srgb, var(--tenant-primary), white 84%);
    color: var(--tenant-primary-strong);
}

.list-stat-icon-lime {
    background: #edf7dc;
    color: #5d7f13;
}

.list-stat-icon-gold {
    background: #fff4dc;
    color: #c47916;
}

.list-stat-icon-red {
    background: #fff1f2;
    color: #be123c;
}

.list-stat-card p,
.list-stat-card small {
    margin: 0;
    color: #667085;
    font-weight: 750;
}

.list-stat-card strong {
    display: block;
    margin-top: 0.2rem;
    color: #111827;
    font-size: 1.9rem;
    font-weight: 950;
    line-height: 1;
}

.modern-list-card {
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
}

.list-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
    border-bottom: 1px solid var(--club-line);
    background: #ffffff;
    padding: 1rem;
}

.list-search {
    min-width: min(100%, 22rem);
    height: 2.9rem;
    display: flex;
    flex: 1 1 22rem;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid var(--club-line);
    border-radius: 10px;
    background: #ffffff;
    padding: 0 0.85rem;
}

.list-search svg {
    width: 1.05rem;
    height: 1.05rem;
    color: #64748b;
}

.list-search input {
    width: 100%;
    border: 0;
    background: transparent;
    color: #111827;
    font-size: 0.88rem;
    outline: 0;
}

.list-select {
    width: auto;
    min-width: 11rem;
}

.list-category-filter {
    display: flex;
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 0.45rem;
    order: 2;
}

.list-category-filter a {
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--club-line);
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    padding: 0 0.75rem;
    font-size: 0.78rem;
    font-weight: 850;
    text-decoration: none;
}

.list-category-filter a.active,
.list-category-filter a:hover {
    border-color: color-mix(in srgb, var(--tenant-primary), white 62%);
    background: color-mix(in srgb, var(--tenant-primary), white 91%);
    color: var(--tenant-primary-strong);
}

.list-create-button {
    margin-left: auto;
}

.list-create-button span {
    font-size: 1.1rem;
    line-height: 1;
}

.table-modern-list th,
.table-modern-list td {
    padding-block: 0.72rem;
}

.event-list-title {
    min-width: 17rem;
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
}

.event-category-icon {
    width: 3.25rem;
    height: 3.25rem;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, currentColor, transparent 78%);
}

.event-category-icon svg {
    width: 1.55rem;
    height: 1.55rem;
    stroke-width: 2.1;
}

.event-category-icon-exam {
    background: color-mix(in srgb, var(--tenant-primary), white 86%);
    color: var(--tenant-primary-strong);
}

.event-category-icon-breeding {
    background: #f2f7df;
    color: #6f7f14;
}

.event-category-icon-water {
    background: #e3f2ff;
    color: #1d75b9;
}

.event-category-icon-confirmation {
    background: #f0e8ff;
    color: #6f4bd8;
}

.event-category-icon-event {
    background: #f1f5f9;
    color: #475569;
}

.event-list-title strong,
.event-list-title small {
    display: block;
}

.event-list-title strong {
    color: #111827;
    font-weight: 950;
}

.event-list-title small {
    margin-top: 0.15rem;
    color: #667085;
    font-weight: 750;
}

.event-location {
    color: #475569;
    font-weight: 800;
}

.event-progress-link {
    width: 9.6rem;
    display: grid;
    gap: 0.4rem;
    color: #111827;
    font-weight: 950;
    text-decoration: none;
    border-radius: 10px;
    padding: 0.35rem 0.45rem;
    transition: background-color 140ms ease, color 140ms ease;
}

.event-progress-link:hover {
    background: color-mix(in srgb, var(--tenant-primary), white 93%);
    color: var(--tenant-primary-strong);
}

.event-progress-link > span {
    height: 0.45rem;
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: #eef0f2;
}

.event-progress-link i {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--tenant-primary), color-mix(in srgb, var(--tenant-primary), #84cc16 30%));
}

.event-progress-link small {
    color: #667085;
    font-size: 0.72rem;
    font-weight: 850;
}

.event-progress-link:hover small {
    color: var(--tenant-primary-strong);
}

.table-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
}

.table-actions form {
    display: inline-flex;
}

.icon-action {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #475569;
    font-size: 1.05rem;
    font-weight: 950;
    text-decoration: none;
}

.icon-action:hover {
    border-color: var(--club-line);
    background: #f8fafc;
    color: var(--tenant-primary-strong);
}

.icon-action-danger:hover {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #be123c;
}

.list-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--club-line);
    padding: 0.85rem 1rem;
}

.list-pagination > span {
    color: #475569;
    font-size: 0.88rem;
    font-weight: 750;
}

@media (max-width: 1280px) {
    .list-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .list-create-button {
        margin-left: 0;
    }
}

@media (max-width: 760px) {
    .list-stat-grid {
        grid-template-columns: 1fr;
    }

    .list-toolbar,
    .list-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .list-search,
    .list-select,
    .list-toolbar .btn-secondary,
    .list-create-button {
        width: 100%;
    }

    .list-category-filter {
        max-height: 9rem;
        overflow: auto;
    }

    .events-list-card .list-search,
    .events-list-card .events-search-submit {
        display: none;
    }
}

.module-tile {
    background: #ffffff;
    transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

a.module-tile:hover,
label.module-tile:hover,
.module-tile:hover {
    border-color: color-mix(in srgb, var(--tenant-primary), white 48%);
    background: var(--tenant-soft);
}

.dog-form {
    gap: 1rem;
    max-width: 1180px;
}

.dog-form-section {
    padding: 1.25rem;
}

.dog-form-section h2,
.dog-form-section h3,
.ibox-content h2,
.ibox-content h3 {
    color: var(--club-text);
    font-weight: 900;
    letter-spacing: 0;
}

.tabs {
    gap: 0.25rem;
    border-bottom: 0;
    background: #ffffff;
    padding: 0.25rem;
    border: 1px solid var(--club-line);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.tab-link {
    min-height: 2.4rem;
    border: 0;
    border-radius: 7px;
    padding-inline: 0.9rem;
}

.tab-link-active {
    background: var(--tenant-soft);
    color: var(--tenant-primary-strong);
}

.dog-photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.dog-photo-card,
.dog-document-row {
    overflow: hidden;
}

.dog-photo-card:hover,
.dog-document-row:hover {
    border-color: color-mix(in srgb, var(--tenant-primary), white 48%);
}

.dog-list-thumb {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
}

.registration-details-panel,
.confirm-modal-panel,
.processing-modal-panel {
    border-color: var(--club-line);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
}

.registration-details-header {
    background: #ffffff;
}

    .registration-details-two-column article,
    .registration-document-row {
        background: #ffffff;
    }

.pagination,
nav[role="navigation"] {
    color: var(--club-muted);
}

nav[role="navigation"] a,
nav[role="navigation"] span {
    border-radius: 7px !important;
}

@media (min-width: 1024px) {
    .ibox-content > form.flex.xl\:flex-row {
        display: grid;
        grid-template-columns: minmax(18rem, 1fr) auto auto auto;
        align-items: end;
    }
}

@media (max-width: 768px) {
    .ibox-title,
    .surface-header {
        align-items: flex-start;
        flex-direction: column;
        min-height: 0;
        padding: 1rem;
    }

    .ibox-content,
    .surface-body,
    .dog-form-section {
        padding: 1rem;
    }

    .table-clean th,
    .table-clean td {
        padding: 0.85rem 1rem;
    }

    .table-clean td:last-child {
        white-space: normal;
    }

    .dog-photo-upload,
    .dog-document-upload {
        grid-template-columns: 1fr;
    }

    .dog-photo-upload .upload-action,
    .dog-document-upload .upload-action {
        padding-top: 0;
    }

    .dog-photo-upload .btn-primary,
    .dog-document-upload .btn-primary {
        width: 100%;
    }

    .registration-summary-card {
        grid-template-columns: 1fr;
    }

    .registration-dog-avatar {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .registration-summary-stats,
    .registration-details-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Admin user approvals ---- */
.user-approval-list {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    background: #f8fafc;
}

.user-approval-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(250px, 0.9fr) minmax(140px, 0.35fr) minmax(430px, 1fr);
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--club-line);
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.user-approval-person {
    min-width: 0;
}

.user-approval-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--tenant-primary), white 18%);
    color: var(--tenant-primary-text);
    font-size: 0.9rem;
    font-weight: 950;
}

.user-approval-person h3 {
    margin: 0 0 0.45rem;
    overflow: hidden;
    color: var(--club-text);
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.2;
    text-overflow: ellipsis;
}

.user-approval-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.role-chip {
    min-height: 1.55rem;
    display: inline-flex;
    align-items: center;
    border: 1px solid color-mix(in srgb, var(--tenant-primary), white 66%);
    border-radius: 999px;
    background: var(--tenant-soft);
    color: var(--tenant-primary-strong);
    padding: 0 0.55rem;
    font-size: 0.74rem;
    font-weight: 850;
}

.role-chip-muted {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #64748b;
}

.impersonation-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #facc15;
    border-radius: 8px;
    background: #fef9c3;
    color: #713f12;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 10px 24px rgba(113, 63, 18, 0.08);
}

.impersonation-banner strong,
.impersonation-banner span {
    display: block;
}

.impersonation-banner strong {
    font-size: 0.9rem;
    font-weight: 950;
}

.impersonation-banner span {
    margin-top: 0.15rem;
    font-size: 0.82rem;
    font-weight: 750;
}

.impersonation-banner form {
    flex-shrink: 0;
}

.user-approval-contact,
.user-approval-membership {
    min-width: 0;
    display: grid;
    gap: 0.25rem 0.75rem;
}

.user-approval-contact {
    grid-template-columns: max-content minmax(0, 1fr);
}

.user-approval-membership {
    align-items: center;
    grid-template-columns: minmax(0, 1fr);
}

.user-approval-membership > div {
    min-width: 0;
    display: grid;
    border-left: 1px solid var(--club-line);
    padding-left: 0.75rem;
}

.user-approval-contact span,
.user-approval-membership span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.user-approval-contact strong,
.user-approval-membership strong {
    min-width: 0;
    overflow: hidden;
    color: var(--club-text);
    font-size: 0.88rem;
    font-weight: 850;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.user-approval-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
    min-width: 0;
}

.user-approval-actions form {
    display: inline-flex;
}

.user-approval-actions .btn-sm {
    min-height: 2.15rem;
}

.stat-bar-list {
    display: grid;
    gap: 0.9rem;
}

.stat-bar-row {
    display: grid;
    gap: 0.35rem;
}

.stat-bar-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--club-text);
    font-size: 0.9rem;
}

.stat-bar-meta span {
    min-width: 0;
    overflow: hidden;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-bar-meta strong {
    flex-shrink: 0;
    color: #0f172a;
    font-weight: 900;
}

.stat-bar-track {
    height: 0.78rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef5;
}

.stat-bar-fill {
    min-width: 0.7rem;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--tenant-primary), color-mix(in srgb, var(--tenant-primary), #14b8c9 34%));
    box-shadow: 0 8px 18px color-mix(in srgb, var(--tenant-primary), transparent 72%);
}

.stat-month-chart {
    display: grid;
    min-height: 17rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: end;
    gap: 0.75rem;
}

.stat-month-item {
    min-width: 0;
    display: grid;
    gap: 0.55rem;
}

.stat-month-track {
    display: flex;
    height: 11rem;
    align-items: end;
    overflow: hidden;
    border-radius: 0.55rem;
    background:
        linear-gradient(to top, rgba(148, 163, 184, 0.14) 1px, transparent 1px),
        #eef3f8;
    background-size: 100% 25%;
    padding: 0 0.25rem;
}

.stat-month-fill {
    width: 100%;
    min-height: 0.45rem;
    border-radius: 0.45rem 0.45rem 0 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--tenant-primary), #22c55e 20%), var(--tenant-primary));
    box-shadow: 0 10px 24px color-mix(in srgb, var(--tenant-primary), transparent 70%);
}

.stat-month-meta {
    display: grid;
    gap: 0.12rem;
    text-align: center;
}

.stat-month-meta strong,
.stat-month-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-month-meta strong {
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 900;
}

.stat-month-meta span {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 750;
}

.pedigree-view {
    display: grid;
    gap: 1rem;
}

.dog-profile-pedigree-card .pedigree-intro {
    display: none;
}

.pedigree-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    border: 1px solid var(--club-line);
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
}

.pedigree-intro h3 {
    margin: 0.25rem 0 0;
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 900;
}

.pedigree-intro p:last-child {
    max-width: 48rem;
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.55;
}

.pedigree-scroll {
    overflow-x: auto;
    border: 1px solid color-mix(in srgb, var(--tenant-border), var(--tenant-primary) 10%);
    border-radius: 8px;
    background:
        radial-gradient(circle at 1rem 1rem, color-mix(in srgb, var(--tenant-primary), transparent 88%) 0 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px),
        linear-gradient(180deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px),
        color-mix(in srgb, var(--tenant-bg), var(--tenant-card) 58%);
    background-size: 2.25rem 2.25rem;
    padding: 1rem;
}

.pedigree-grid {
    min-width: 980px;
    display: grid;
    grid-template-columns: repeat(var(--pedigree-generations), minmax(210px, 1fr));
    grid-template-rows: repeat(8, minmax(5.4rem, auto));
    gap: 0.8rem 1rem;
    align-items: stretch;
}

.pedigree-slot {
    display: flex;
    align-items: center;
}

.pedigree-root .pedigree-card {
    min-height: 7.4rem;
    border-color: var(--tenant-primary);
    background: linear-gradient(135deg, var(--tenant-card), var(--tenant-primary-soft));
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.pedigree-card {
    width: 100%;
    min-height: 4.8rem;
    display: grid;
    align-content: space-between;
    gap: 0.45rem;
    border: 1px solid var(--tenant-border);
    border-radius: 8px;
    background: var(--tenant-card);
    padding: 0.8rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.pedigree-card-matched {
    border-color: color-mix(in srgb, var(--tenant-primary), white 52%);
    background: linear-gradient(135deg, var(--tenant-card), color-mix(in srgb, var(--tenant-primary), white 94%));
}

.pedigree-card-unmatched {
    border-style: dashed;
    background: color-mix(in srgb, var(--tenant-card), var(--tenant-bg) 32%);
}

.pedigree-card-empty {
    border-style: dashed;
    border-color: color-mix(in srgb, var(--tenant-border), transparent 12%);
    background: rgba(255, 255, 255, 0.58);
    color: var(--tenant-muted);
    box-shadow: none;
}

.pedigree-card-name {
    margin: 0;
    color: var(--tenant-text);
    font-size: 0.9rem;
    font-weight: 760;
    line-height: 1.25;
}

.pedigree-card-sub {
    margin: 0.18rem 0 0;
    color: var(--tenant-muted);
    font-size: 0.78rem;
    font-weight: 620;
}

.pedigree-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.pedigree-card-meta span,
.pedigree-match-chip {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.18rem 0.48rem;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1.25;
}

.pedigree-card-meta span {
    background: color-mix(in srgb, var(--tenant-bg), var(--tenant-card) 42%);
    color: var(--tenant-muted);
}

.pedigree-card-meta .pedigree-sex-male {
    background: color-mix(in srgb, var(--tenant-info), white 86%);
    color: color-mix(in srgb, var(--tenant-info), #0f172a 35%);
}

.pedigree-card-meta .pedigree-sex-female {
    background: color-mix(in srgb, var(--tenant-danger), white 88%);
    color: color-mix(in srgb, var(--tenant-danger), #0f172a 35%);
}

.pedigree-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    justify-content: space-between;
}

.pedigree-card-footer a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--tenant-primary);
    color: #ffffff;
    padding: 0.18rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 780;
    text-decoration: none;
}

.pedigree-card-footer a:hover {
    background: var(--tenant-primary-dark);
    color: #ffffff;
}

.pedigree-match-chip {
    border: 1px solid var(--tenant-border);
    color: var(--tenant-muted);
}

.pedigree-match-chip-ok {
    border-color: color-mix(in srgb, var(--tenant-primary), white 58%);
    background: var(--tenant-soft);
    color: var(--tenant-primary-strong);
}

@media (max-width: 1280px) {
    .regulation-detail-layout {
        grid-template-columns: 1fr;
    }

    .regulation-detail-sidebar {
        position: static;
        order: -1;
    }

    .regulation-related-desktop {
        display: none;
    }

    .regulation-related-mobile {
        display: block;
    }

    .user-approval-card {
        grid-template-columns: minmax(220px, 1fr) minmax(240px, 1fr);
    }

    .user-approval-membership {
        grid-column: 1 / 2;
    }

    .user-approval-actions {
        grid-column: 2 / -1;
        justify-content: flex-start;
    }
}

@media (min-width: 768px) {
    .stat-month-chart {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .user-approval-list {
        padding: 0.75rem;
    }

    .user-approval-card,
    .user-approval-membership,
    .user-approval-contact {
        grid-template-columns: 1fr;
    }

    .user-approval-membership,
    .user-approval-actions {
        grid-column: auto;
    }

    .user-approval-contact {
        gap: 0.2rem;
    }

    .user-approval-membership > div {
        border-left: 0;
        border-top: 1px solid var(--club-line);
        padding: 0.65rem 0 0;
    }

    .user-approval-actions .btn-sm,
    .user-approval-actions form {
        width: 100%;
    }

    .impersonation-banner {
        align-items: stretch;
        flex-direction: column;
    }

    .stat-month-chart {
        gap: 0.5rem;
    }

    .stat-month-track {
        height: 8.5rem;
        padding: 0 0.18rem;
    }

    .stat-bar-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }

    .pedigree-intro {
        display: grid;
    }

    .pedigree-grid {
        min-width: 860px;
    }
}

/* ---- Dashboard/sidebar refinement pass ---- */
.tenant-dashboard {
    gap: 20px;
}

.tenant-card {
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055);
}

.tenant-hero-card,
.tenant-task-card,
.tenant-event-card,
.tenant-stat-card {
    padding: 20px;
}

.tenant-hero-card h2,
.tenant-task-card h2,
.tenant-event-card h2,
.tenant-card-header h2 {
    font-weight: 720;
}

.tenant-card-header {
    gap: 16px;
    padding: 20px 24px;
}

.tenant-card > .tenant-card-header:first-child {
    padding-top: 20px;
}

.tenant-task-card .tenant-card-header {
    padding: 0 0 20px;
}

.tenant-card-header span,
.tenant-card-header a,
.tenant-event-row span,
.tenant-activity-row p,
.tenant-queue-row p,
.tenant-stat-card small,
.tenant-task-item small {
    font-weight: 540;
}

.tenant-badge {
    font-weight: 680;
    letter-spacing: 0.045em;
}

.tenant-btn-primary,
.tenant-btn-outline {
    border-radius: 8px;
    font-weight: 680;
}

.tenant-dashboard-grid,
.tenant-stat-grid,
.tenant-content-grid,
.tenant-main-stack,
.tenant-side-stack {
    gap: 20px;
}

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

.tenant-task-item {
    min-height: 132px;
    gap: 8px;
    border-radius: 10px;
    padding: 16px;
}

.tenant-task-item strong {
    font-size: 1.65rem;
    font-weight: 720;
}

.tenant-task-item p {
    font-weight: 650;
}

.tenant-task-actions {
    gap: 12px;
    margin-top: 20px;
}

.tenant-event-card {
    min-height: 20rem;
    background: color-mix(in srgb, var(--tenant-primary-dark), white 12%);
}

.tenant-event-card-bg {
    background:
        linear-gradient(90deg, rgba(8, 53, 31, 0.78), rgba(8, 53, 31, 0.38)),
        var(--tenant-dashboard-image-primary) center / cover;
}

.tenant-event-card-content {
    gap: 20px;
}

.tenant-event-card-content dt {
    font-weight: 650;
}

.tenant-event-card-content dd {
    font-weight: 640;
}

.tenant-stat-card {
    gap: 8px;
}

.tenant-stat-card p {
    font-weight: 650;
}

.tenant-stat-card strong {
    font-weight: 720;
}

.tenant-icon-circle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--tenant-primary-soft), white 18%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tenant-primary), transparent 78%);
}

.tenant-activity-list,
.tenant-queue-list,
.tenant-event-list {
    gap: 0;
}

.tenant-activity-row,
.tenant-queue-row,
.tenant-event-row {
    gap: 16px;
    padding: 16px 24px;
}

.tenant-activity-row strong,
.tenant-queue-row strong,
.tenant-event-row h3 {
    font-weight: 680;
}

.tenant-activity-row time,
.tenant-queue-row time {
    font-weight: 580;
}

.tenant-card-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid var(--tenant-border);
    padding: 16px 24px;
}

.tenant-card-footer-action {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tenant-border);
    border-radius: 8px;
    background: var(--tenant-card);
    color: var(--tenant-primary-dark);
    padding: 0 16px;
    font-size: 0.86rem;
    font-weight: 650;
    text-decoration: none;
}

.tenant-quick-actions {
    gap: 12px;
    padding: 16px;
}

.tenant-quick-actions a {
    min-height: 72px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    align-content: center;
    gap: 12px;
    border-radius: 10px;
    padding: 12px;
}

.tenant-quick-actions strong {
    font-size: 0.86rem;
    font-weight: 650;
}

.tenant-empty {
    position: relative;
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 24px 24px;
    border-radius: 10px;
    padding: 16px 20px;
    font-weight: 560;
}

.tenant-empty::before {
    content: "";
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 999px;
    background:
        linear-gradient(var(--tenant-primary-dark), var(--tenant-primary-dark)) center / 16px 2px no-repeat,
        color-mix(in srgb, var(--tenant-primary-soft), white 20%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tenant-primary), transparent 78%);
}

.sidebar {
    overflow-x: hidden;
}

.tenant-sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    min-height: 80px;
    gap: 12px;
    padding: 0 20px;
}

.sidebar-brand a {
    font-weight: 680 !important;
}

.sidebar-brand p {
    font-weight: 520 !important;
}

.brand-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 10px;
    font-weight: 720;
}

.sidebar-nav {
    display: grid;
    gap: 20px;
    padding: 20px 16px 24px;
}

.sidebar-section + .sidebar-section {
    border-top: 1px solid var(--club-line);
    padding-top: 20px;
}

.sidebar-section-items {
    display: grid;
    gap: 4px;
}

.nav-section-title {
    margin: 0 0 8px;
    padding: 0 12px;
    font-weight: 650;
    letter-spacing: 0.055em;
}

.nav-subgroup {
    margin-top: 0;
}

.nav-subgroup-toggle,
.nav-link-item {
    min-height: 40px;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0 12px;
    font-weight: 560;
}

.nav-subgroup-toggle:hover,
[data-nav-group="open"] > .nav-subgroup-toggle,
.nav-link-item:hover,
.nav-link-item-active,
.nav-link-item-nested:hover,
.nav-link-item-nested.nav-link-item-active {
    border-left-width: 1px;
    border-left-style: solid;
    border-radius: 999px;
    padding-left: 12px;
}

.nav-link-item:hover,
.nav-subgroup-toggle:hover,
[data-nav-group="open"] > .nav-subgroup-toggle {
    border-color: color-mix(in srgb, var(--tenant-primary), transparent 74%);
    background: color-mix(in srgb, var(--tenant-soft), white 34%);
}

.nav-link-item-active,
.nav-link-item-nested.nav-link-item-active {
    border-color: color-mix(in srgb, var(--tenant-primary), transparent 62%);
    background: var(--tenant-soft);
    box-shadow: inset 3px 0 0 var(--tenant-primary);
}

.nav-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
}

.nav-subgroup-inner {
    gap: 4px;
    padding: 6px 0 0 12px;
}

.nav-link-item-nested {
    margin-left: 0;
    border-left-color: transparent;
}

.nav-group-chevron {
    width: 16px;
    height: 16px;
}

.sidebar-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    border-top: 1px solid var(--club-line);
    padding: 16px 20px;
}

.sidebar-footer-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--tenant-soft);
    color: var(--tenant-primary-strong);
    font-size: 0.86rem;
    font-weight: 700;
}

.sidebar-footer-text {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.sidebar-footer-text strong,
.sidebar-footer-text span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-footer-text strong {
    color: var(--club-text);
    font-size: 0.88rem;
    font-weight: 680;
}

.sidebar-footer-text span {
    color: var(--club-muted);
    font-size: 0.76rem;
    font-weight: 520;
}

@media (max-width: 1023px) {
    .sidebar-footer {
        margin-top: 12px;
    }
}

@media (max-width: 760px) {
    .tenant-dashboard {
        gap: 16px;
    }

    .tenant-hero-card,
    .tenant-task-card,
    .tenant-event-card,
    .tenant-stat-card {
        padding: 16px;
    }

    .tenant-card-header,
    .tenant-activity-row,
    .tenant-queue-row,
    .tenant-event-row,
    .tenant-card-footer {
        padding-inline: 16px;
    }

    .tenant-task-grid,
    .tenant-stat-grid,
    .tenant-quick-actions {
        grid-template-columns: 1fr;
    }

    .tenant-empty {
        margin: 16px;
    }
}

/* ---- Own dogs view switcher and cards ---- */
.dog-index-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--club-line);
    border-radius: 999px;
    background: #ffffff;
    padding: 4px;
}

.view-toggle-option {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    color: var(--club-muted);
    padding: 0 12px;
    font-size: 0.84rem;
    font-weight: 620;
    text-decoration: none;
    transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.view-toggle-option svg {
    width: 17px;
    height: 17px;
    stroke-width: 2.15;
}

.view-toggle-option:hover,
.view-toggle-option-active {
    background: var(--tenant-soft);
    color: var(--tenant-primary-strong);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tenant-primary), transparent 74%);
}

.dog-own-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    padding: 20px;
}

.dog-own-card {
    min-width: 0;
    display: grid;
    grid-template-rows: 180px 1fr auto;
    overflow: hidden;
    border: 1px solid var(--club-line);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
}

.dog-own-card-photo {
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--tenant-soft), white 22%), #ffffff);
}

.dog-own-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dog-own-card-photo span {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--tenant-soft);
    color: var(--tenant-primary-strong);
    font-size: 1.8rem;
    font-weight: 720;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tenant-primary), transparent 74%);
}

.dog-own-card-body {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 16px;
}

.dog-own-card-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.dog-own-card-title h3 {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--club-text);
    font-size: 1.1rem;
    font-weight: 720;
    line-height: 1.2;
}

.dog-own-card-title p {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    color: var(--club-muted);
    font-size: 0.88rem;
    font-weight: 520;
    line-height: 1.35;
}

.dog-own-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.dog-own-card-meta dt {
    color: var(--club-muted);
    font-size: 0.68rem;
    font-weight: 680;
    letter-spacing: 0.045em;
    line-height: 1.2;
    text-transform: uppercase;
}

.dog-own-card-meta dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    color: var(--club-text);
    font-size: 0.9rem;
    font-weight: 580;
    line-height: 1.35;
}

.dog-own-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid var(--club-line);
    background: var(--club-surface-muted);
    padding: 12px 16px;
}

@media (max-width: 760px) {
    .dog-index-toolbar,
    .dog-index-toolbar .btn-primary,
    .view-toggle {
        width: 100%;
    }

    .view-toggle-option {
        flex: 1;
    }

    .dog-own-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .dog-own-card {
        grid-template-rows: 160px 1fr auto;
    }

    .dog-own-card-actions .btn-sm,
    .dog-own-card-actions form {
        width: 100%;
    }
}

/* ---- Profile notification settings and event interest ---- */
.profile-notification-panel {
    display: grid;
    gap: 16px;
    margin-top: 20px;
    border: 1px solid var(--club-line);
    border-radius: 10px;
    background: #ffffff;
    padding: 20px;
}

.profile-notification-panel h3 {
    margin: 4px 0 0;
    color: var(--club-text);
    font-size: 1rem;
    font-weight: 680;
}

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

.profile-notification-row,
.profile-notification-toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border: 1px solid var(--club-line);
    border-radius: 10px;
    background: var(--club-surface-muted);
    padding: 12px;
}

.profile-notification-row strong,
.profile-notification-toggle strong {
    color: var(--club-text);
    font-size: 0.92rem;
    font-weight: 680;
}

.profile-notification-row p,
.profile-notification-toggle p {
    margin: 3px 0 0;
    color: var(--club-muted);
    font-size: 0.84rem;
    line-height: 1.4;
}

.profile-notification-state {
    width: 36px;
    height: 22px;
    border-radius: 999px;
    background: #e2e8f0;
    box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.2);
}

.profile-notification-state::after {
    content: "";
    width: 16px;
    height: 16px;
    display: block;
    margin: 3px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.22);
}

.profile-notification-state-on {
    background: var(--tenant-primary);
}

.profile-notification-state-on::after {
    transform: translateX(14px);
}

.profile-notification-toggle {
    cursor: pointer;
}

.profile-notification-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.profile-notification-toggle > span {
    width: 40px;
    height: 24px;
    border-radius: 999px;
    background: #e2e8f0;
    box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.2);
    transition: background-color 140ms ease;
}

.profile-notification-toggle > span::after {
    content: "";
    width: 18px;
    height: 18px;
    display: block;
    margin: 3px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.22);
    transition: transform 140ms ease;
}

.profile-notification-toggle input:checked + span {
    background: var(--tenant-primary);
}

.profile-notification-toggle input:checked + span::after {
    transform: translateX(16px);
}

.event-interest-count {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    border-radius: 999px;
    background: var(--tenant-soft);
    color: var(--tenant-primary-strong);
    padding: 0.18rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 650;
}

.event-interest-count-link {
    text-decoration: none;
    transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.event-interest-count-link:hover {
    background: var(--tenant-primary);
    color: #ffffff;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--tenant-primary), transparent 78%);
}

.event-member-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-interest-active {
    border-color: color-mix(in srgb, var(--tenant-primary), white 42%) !important;
    background: var(--tenant-soft) !important;
    color: var(--tenant-primary-strong) !important;
}

@media (max-width: 760px) {
    .event-member-actions,
    .event-member-actions form,
    .event-member-actions .btn-sm {
        width: 100%;
    }
}

/* ---- Member mobile app navigation ---- */
.mobile-member-nav {
    display: none;
}

@media (max-width: 760px) {
    body.app-body {
        padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
    }

    .app-content {
        padding-bottom: 1.25rem;
    }

    .mobile-member-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 40;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.15rem;
        border-top: 1px solid var(--club-line);
        background: rgba(255, 255, 255, 0.96);
        padding: 0.45rem 0.4rem calc(0.45rem + env(safe-area-inset-bottom));
        box-shadow: 0 -14px 34px rgba(15, 23, 42, 0.1);
        backdrop-filter: blur(14px);
    }

    .mobile-member-nav-link {
        min-width: 0;
        min-height: 3.6rem;
        display: grid;
        place-items: center;
        align-content: center;
        gap: 0.25rem;
        border-radius: 8px;
        color: #64748b;
        text-decoration: none;
        font-size: 0.68rem;
        font-weight: 850;
        line-height: 1.1;
    }

    .mobile-member-nav-link svg {
        width: 1.28rem;
        height: 1.28rem;
        stroke-width: 2;
    }

    .mobile-member-nav-link span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-member-nav-link.active {
        background: var(--tenant-soft);
        color: var(--tenant-primary-strong);
    }

    .tenant-login-shell {
        min-height: 100svh;
        padding: 1rem;
    }
}



@media (max-width: 760px) {
    body.member-mobile-shell .nav-hamburger,
    body.member-mobile-shell .sidebar,
    body.member-mobile-shell .sidebar-overlay,
    body.member-mobile-shell .topbar-search,
    body.member-mobile-shell .topbar-icon-button,
    body.member-mobile-shell .topbar-user {
        display: none;
    }

    body.member-mobile-shell .topbar-actions {
        width: 100%;
        justify-content: space-between;
        gap: 0.65rem;
    }

    body.member-mobile-shell .locale-switch {
        min-height: 2.45rem;
        box-shadow: none;
    }

    body.member-mobile-shell .topbar-actions form {
        flex: 0 0 auto;
    }
}

/* ---- Member mobile dashboard ---- */
.member-mobile-dashboard {
    display: none;
}

@media (max-width: 760px) {
    .tenant-dashboard-member {
        display: none;
    }

    .member-mobile-dashboard {
        display: grid;
        gap: 1rem;
    }

    .member-mobile-hero {
        display: grid;
        gap: 0.25rem;
        border: 1px solid var(--tenant-border);
        border-radius: 12px;
        background: #ffffff;
        padding: 1rem;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    }

    .member-mobile-hero p,
    .member-mobile-hero h2,
    .member-mobile-hero span {
        margin: 0;
    }

    .member-mobile-hero p {
        color: var(--tenant-primary-strong);
        font-size: 0.78rem;
        font-weight: 850;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .member-mobile-hero h2 {
        color: var(--tenant-text);
        font-size: 1.45rem;
        font-weight: 950;
        line-height: 1.1;
    }

    .member-mobile-hero span {
        color: var(--tenant-muted);
        font-size: 0.92rem;
        font-weight: 650;
        line-height: 1.35;
    }

    .member-mobile-status-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .member-mobile-status-card {
        min-width: 0;
        min-height: 7rem;
        display: grid;
        align-content: center;
        gap: 0.25rem;
        border: 1px solid var(--tenant-border);
        border-radius: 12px;
        background: #ffffff;
        color: var(--tenant-text);
        padding: 0.85rem;
        text-decoration: none;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    }

    .member-mobile-status-card span,
    .member-mobile-status-card small {
        overflow: hidden;
        color: var(--tenant-muted);
        font-size: 0.72rem;
        font-weight: 750;
        line-height: 1.25;
        text-overflow: ellipsis;
    }

    .member-mobile-status-card strong {
        color: var(--tenant-text);
        font-size: 1.45rem;
        font-weight: 950;
        line-height: 1.05;
    }

    .member-mobile-status-card.is-success {
        border-color: color-mix(in srgb, var(--tenant-success), white 62%);
        background: color-mix(in srgb, var(--tenant-success), white 92%);
    }

    .member-mobile-status-card.is-warning {
        border-color: color-mix(in srgb, var(--tenant-warning), white 50%);
        background: color-mix(in srgb, var(--tenant-warning), white 88%);
    }

    .member-mobile-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .member-mobile-actions a {
        min-height: 3.25rem;
        display: grid;
        place-items: center;
        border-radius: 10px;
        background: var(--tenant-primary);
        color: var(--tenant-primary-text);
        padding: 0.55rem;
        text-align: center;
        text-decoration: none;
        font-size: 0.82rem;
        font-weight: 850;
        line-height: 1.15;
    }

    .member-mobile-section {
        overflow: hidden;
        border: 1px solid var(--tenant-border);
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    }

    .member-mobile-section header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        border-bottom: 1px solid var(--tenant-border);
        padding: 0.85rem 1rem;
    }

    .member-mobile-section h3 {
        margin: 0;
        color: var(--tenant-text);
        font-size: 1rem;
        font-weight: 950;
    }

    .member-mobile-section header a {
        color: var(--tenant-primary-strong);
        font-size: 0.78rem;
        font-weight: 850;
        text-decoration: none;
        white-space: nowrap;
    }

    .member-mobile-list {
        display: grid;
    }

    .member-mobile-row {
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.75rem;
        align-items: center;
        border-bottom: 1px solid var(--tenant-border);
        color: var(--tenant-text);
        padding: 0.9rem 1rem;
        text-decoration: none;
    }

    .member-mobile-row:last-child {
        border-bottom: 0;
    }

    .member-mobile-row div {
        min-width: 0;
    }

    .member-mobile-row strong,
    .member-mobile-row span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .member-mobile-row strong {
        font-size: 0.93rem;
        font-weight: 900;
    }

    .member-mobile-row span {
        margin-top: 0.2rem;
        color: var(--tenant-muted);
        font-size: 0.8rem;
        font-weight: 650;
    }

    .member-mobile-row small {
        border-radius: 999px;
        background: var(--tenant-soft);
        color: var(--tenant-primary-strong);
        padding: 0.25rem 0.55rem;
        font-size: 0.7rem;
        font-weight: 850;
        white-space: nowrap;
    }

    .member-mobile-empty {
        color: var(--tenant-muted);
        padding: 1rem;
        font-size: 0.88rem;
        font-weight: 750;
        line-height: 1.35;
    }
}

/* ---- Member mobile events list ---- */
.event-mobile-list {
    display: none;
}

@media (max-width: 760px) {
    .events-list-card .table-wrap {
        display: none;
    }

    .event-mobile-list {
        display: grid;
        gap: 0.85rem;
        background: #f8fafc;
        padding: 0.85rem;
    }

    .event-mobile-card {
        overflow: hidden;
        border: 1px solid var(--club-line);
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    }

    .event-mobile-card-header {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.75rem;
        align-items: start;
        padding: 1rem;
    }

    .event-mobile-card-header > div {
        min-width: 0;
    }

    .event-mobile-card-header h2 {
        margin: 0.45rem 0 0;
        overflow-wrap: anywhere;
        color: var(--club-text);
        font-size: 1.05rem;
        font-weight: 950;
        line-height: 1.18;
    }

    .event-mobile-card-header p {
        margin: 0.25rem 0 0;
        color: var(--club-muted);
        font-size: 0.82rem;
        font-weight: 700;
    }

    .event-mobile-meta {
        display: grid;
        gap: 0.65rem;
        margin: 0;
        border-top: 1px solid var(--club-line);
        padding: 0.9rem 1rem;
    }

    .event-mobile-meta div {
        min-width: 0;
        display: grid;
        grid-template-columns: 6.8rem minmax(0, 1fr);
        gap: 0.75rem;
    }

    .event-mobile-meta dt {
        color: var(--club-muted);
        font-size: 0.7rem;
        font-weight: 850;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .event-mobile-meta dd {
        margin: 0;
        overflow-wrap: anywhere;
        color: var(--club-text);
        font-size: 0.84rem;
        font-weight: 750;
        line-height: 1.35;
    }

    .event-mobile-categories {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
        border-top: 1px solid var(--club-line);
        padding: 0.8rem 1rem;
    }

    .event-mobile-categories span {
        border-radius: 999px;
        background: var(--tenant-soft);
        color: var(--tenant-primary-strong);
        padding: 0.25rem 0.55rem;
        font-size: 0.72rem;
        font-weight: 850;
    }

    .event-mobile-footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.55rem;
        border-top: 1px solid var(--club-line);
        background: var(--club-surface-muted);
        padding: 0.85rem 1rem;
    }

    .event-mobile-footer form,
    .event-mobile-footer button,
    .event-mobile-footer a,
    .event-mobile-footer span {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .event-mobile-footer .btn-disabled {
        min-height: 2.15rem;
        display: inline-flex;
        align-items: center;
    }
}

/* ---- Compact mobile event filters/stats ---- */
@media (max-width: 760px) {
    .events-list-card {
        margin-top: 0.85rem;
    }

    .list-stat-grid-compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        overflow: hidden;
        border: 1px solid var(--club-line);
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    }

    .list-stat-grid-compact .list-stat-card {
        min-width: 0;
        min-height: 4.75rem;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.15rem;
        align-content: center;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0.65rem 0.45rem;
        text-align: center;
    }

    .list-stat-grid-compact .list-stat-card + .list-stat-card {
        border-left: 1px solid var(--club-line);
    }

    .list-stat-grid-compact .list-stat-card small {
        display: none;
    }

    .list-stat-grid-compact .list-stat-icon {
        width: 1.45rem;
        height: 1.45rem;
        margin: 0 auto 0.1rem;
        font-size: 0.72rem;
    }

    .list-stat-grid-compact .list-stat-card p {
        margin: 0;
        overflow: hidden;
        color: var(--club-muted);
        font-size: 0.68rem;
        font-weight: 850;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .list-stat-grid-compact .list-stat-card strong {
        margin: 0;
        color: var(--club-text);
        font-size: 1.35rem;
        font-weight: 950;
        line-height: 1;
    }

    .events-list-card .list-toolbar {
        gap: 0.65rem;
        border: 1px solid var(--club-line);
        border-radius: 12px;
        margin: 0.85rem;
        padding: 0.75rem;
    }

    .events-list-card .list-select {
        min-height: 2.55rem;
    }

    .events-list-card .list-category-filter {
        display: none;
    }

    .event-mobile-list {
        padding-top: 0;
    }
}

/* ---- Member mobile event registration ---- */
@media (max-width: 760px) {
    .event-register-card {
        overflow: hidden;
        border-radius: 12px;
    }

    .event-register-title {
        padding: 1rem;
    }

    .event-register-title h2 {
        margin: 0;
        overflow-wrap: anywhere;
        font-size: 1.12rem;
        line-height: 1.18;
    }

    .event-register-title p {
        margin-top: 0.35rem;
        line-height: 1.35;
    }

    .event-register-form {
        display: grid;
        gap: 1rem;
    }

    .event-register-form .form-label {
        gap: 0.45rem;
    }

    .event-register-form .form-input {
        min-height: 3rem;
        font-size: 1rem;
    }

    .event-register-category-grid {
        grid-template-columns: 1fr;
    }

    .event-register-category-grid .module-tile {
        min-height: 4.25rem;
        border-radius: 12px;
        padding: 0.9rem;
    }

    .event-register-category-grid input[type="radio"] {
        width: 1.15rem;
        height: 1.15rem;
    }

    .event-registration-fee {
        border-radius: 12px;
        padding: 1rem;
    }

    .event-registration-payment-summary {
        border-radius: 12px;
        padding: 1rem;
    }

    .event-register-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.65rem;
        margin-top: 0.25rem;
    }

    .event-register-actions .btn-secondary,
    .event-register-actions .btn-primary {
        width: 100%;
        min-height: 3rem;
        justify-content: center;
    }

    .registration-check-panel {
        width: calc(100vw - 2rem);
        max-width: 24rem;
    }
}

@media (min-width: 761px) {
    .event-registration-payment-summary {
        position: sticky;
        bottom: 1rem;
        z-index: 5;
        border-color: color-mix(in srgb, var(--club-primary) 28%, var(--club-line));
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    }
}

/* ---- Member mobile registrations ---- */
.member-registration-mobile-list {
    display: none;
}

@media (max-width: 760px) {
    .member-registrations-card .table-wrap {
        display: none;
    }

    .member-registration-mobile-list {
        display: grid;
        gap: 0.85rem;
        background: #f8fafc;
        padding: 0.85rem;
    }

    .member-registration-mobile-card {
        overflow: hidden;
        border: 1px solid var(--club-line);
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    }

    .member-registration-mobile-card header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.75rem;
        align-items: start;
        padding: 1rem;
    }

    .member-registration-mobile-card h3,
    .member-registration-mobile-card p {
        margin: 0;
    }

    .member-registration-mobile-card h3 {
        overflow-wrap: anywhere;
        color: var(--club-text);
        font-size: 1rem;
        font-weight: 950;
        line-height: 1.2;
    }

    .member-registration-mobile-card p {
        margin-top: 0.25rem;
        color: var(--club-muted);
        font-size: 0.82rem;
        font-weight: 700;
    }

    .member-registration-mobile-card dl {
        display: grid;
        gap: 0.65rem;
        margin: 0;
        border-top: 1px solid var(--club-line);
        padding: 0.9rem 1rem;
    }

    .member-registration-mobile-card dl div {
        display: grid;
        grid-template-columns: 5.25rem minmax(0, 1fr);
        gap: 0.75rem;
    }

    .member-registration-mobile-card dt {
        color: var(--club-muted);
        font-size: 0.7rem;
        font-weight: 850;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .member-registration-mobile-card dd {
        margin: 0;
        overflow-wrap: anywhere;
        color: var(--club-text);
        font-size: 0.86rem;
        font-weight: 750;
    }

    .member-registration-mobile-card footer {
        border-top: 1px solid var(--club-line);
        background: var(--club-surface-muted);
        padding: 0.85rem 1rem;
    }

    .member-registration-mobile-card footer form,
    .member-registration-mobile-card footer button {
        width: 100%;
    }

    .member-registration-mobile-card footer button {
        justify-content: center;
    }

    .member-registration-mobile-card footer span {
        display: block;
        color: var(--club-muted);
        font-size: 0.82rem;
        font-weight: 750;
        text-align: center;
    }
}

/* ---- Member mobile dogs ---- */
.dog-own-grid-mobile {
    display: none;
}

@media (max-width: 760px) {
    .dogs-index-card .view-toggle {
        display: none;
    }

    .dogs-index-card .table-wrap {
        display: none;
    }

    .dog-own-grid-mobile {
        display: grid;
    }

    .dogs-index-card .ibox-title {
        align-items: stretch;
        gap: 0.75rem;
    }

    .dogs-index-card .dog-index-toolbar {
        justify-content: stretch;
    }
}

/* ---- Member mobile profile ---- */
@media (max-width: 760px) {
    .member-profile-card {
        border-radius: 12px;
    }

    .member-profile-card .ibox-title {
        align-items: stretch;
        gap: 0.75rem;
    }

    .member-profile-card .ibox-title .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .member-profile-summary {
        grid-template-columns: 1fr;
    }

    .member-profile-summary .module-tile {
        border-radius: 12px;
        padding: 0.95rem;
    }

    .member-profile-form {
        gap: 1rem;
    }

    .member-profile-form > .grid {
        grid-template-columns: 1fr;
    }

    .member-profile-form .form-input {
        min-height: 3rem;
        font-size: 1rem;
    }

    .member-profile-card .profile-notification-panel {
        border-radius: 12px;
        padding: 1rem;
    }

    .member-profile-card .profile-notification-row,
    .member-profile-card .profile-notification-toggle {
        border-radius: 12px;
        padding: 0.85rem;
    }

    .member-profile-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .member-profile-actions .btn-secondary,
    .member-profile-actions .btn-primary {
        width: 100%;
        min-height: 3rem;
        justify-content: center;
    }
}
