:root {
    --kp-navy-950: #07192a;
    --kp-navy-900: #0b1f33;
    --kp-navy-800: #15324d;
    --kp-blue-600: #147dff;
    --kp-blue-700: #0969dd;
    --kp-aqua-500: #20c7b7;
    --kp-coral-500: #ef665c;
    --kp-amber-500: #d88a14;
    --kp-surface: #ffffff;
    --kp-canvas: #f6f8fb;
    --kp-text: #0b1f33;
    --kp-muted: #607086;
    --kp-border: #dce4ee;
    --kp-border-strong: #c9d5e3;
    --kp-radius: 12px;
    --kp-radius-sm: 9px;
    --kp-focus: 0 0 0 3px rgba(20, 125, 255, .2);
}

body {
    color: var(--kp-text);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
}

.kp-app { background: var(--kp-canvas); }

.kp-app .navbar-custom {
    height: 68px;
    border-bottom: 1px solid var(--kp-border);
    background: var(--kp-surface);
    box-shadow: none;
}

.kp-topbar { position: relative; height: 68px; padding: 0 24px; }

.kp-view-mode-tabs { position: absolute; top: 0; left: 50%; display: flex; align-items: stretch; height: 68px; transform: translateX(-50%); }
.kp-view-mode-tab { position: relative; display: inline-flex; align-items: center; min-width: max-content; padding: 0 17px; border: 0; background: transparent; color: var(--kp-muted); font: inherit; font-size: 13px; font-weight: 620; text-decoration: none; white-space: nowrap; }
.kp-view-mode-tab:hover { color: var(--kp-blue-700); text-decoration: none; }
.kp-view-mode-tab.active { color: var(--kp-blue-700); font-weight: 750; }
.kp-view-mode-tab.active::after { position: absolute; right: 13px; bottom: 0; left: 13px; height: 2px; border-radius: 2px 2px 0 0; background: var(--kp-blue-600); content: ""; }
.kp-view-mode-tab.disabled { color: #aeb8c5; cursor: not-allowed; pointer-events: none; }
.kp-mode-option { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px; border-radius: 8px; color: var(--kp-text); text-decoration: none; }
.kp-mode-option:hover, .kp-mode-option:focus, .kp-mode-option.active { background: #edf5ff; color: var(--kp-blue-700); text-decoration: none; }
.kp-mode-option[hidden] { display: none; }
.kp-mode-option-copy { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.kp-mode-option-copy strong, .kp-mode-option-copy small { display: block; }
.kp-mode-option-copy small { color: var(--kp-muted); }
.kp-mode-avatar { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 50%; background: #e5eef9; color: var(--kp-blue-700); font-size: 11px; font-weight: 780; }

.kp-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--kp-navy-900);
    text-decoration: none;
}

.kp-brand:hover { color: var(--kp-navy-900); }
.kp-inocmon-brand { display: inline-flex; width: 180px; height: 60px; flex: 0 0 180px; overflow: hidden; border-radius: 8px; background: #fff; }
.kp-inocmon-brand img { display: block; width: 180px; height: 60px; max-width: none; }

.kp-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--kp-blue-600);
    color: #fff;
    font-size: 20px;
}

.kp-brand-name {
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -.025em;
}

.kite-version {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 7px;
    border: 1px solid var(--kp-border);
    border-radius: 7px;
    background: var(--kp-canvas);
    color: var(--kp-muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .04em;
    white-space: nowrap;
}

.kite-version-build { margin-left: 3px; color: #8997a8; }

.kp-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 5px 8px;
    border: 0;
    border-radius: var(--kp-radius-sm);
    background: transparent;
    color: var(--kp-text);
}

.kp-user-trigger:hover,
.kp-user-trigger:focus-visible { background: var(--kp-canvas); }

.kp-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: var(--kp-navy-900);
    color: #fff;
    font-size: 12px;
    font-weight: 750;
}

.kp-user-copy { text-align: left; line-height: 1.25; }
.kp-user-name { display: block; font-weight: 700; }
.kp-user-role { display: block; color: var(--kp-muted); font-size: 11px; text-transform: capitalize; }

.kp-app .left-side-menu {
    top: 0;
    width: 68px;
    padding-top: 76px;
    border: 0;
    background: var(--kp-navy-950);
    scrollbar-color: rgba(255, 255, 255, .22) transparent;
    z-index: 1038;
    transition: width .18s ease;
}

.kp-sidebar-head { position: absolute; top: 0; right: 0; left: 0; display: flex; align-items: center; gap: 8px; height: 68px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.kp-sidebar-head .kp-brand { min-width: 0; gap: 8px; }
.kp-sidebar-head .kp-brand-name { color: #fff; font-size: 17px; }
.kp-sidebar-head .kite-version { margin-left: auto; border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .07); color: #a8bbcc; }

.kp-app .content-page {
    margin-top: 68px;
    margin-left: 68px;
    padding: 28px 24px 40px;
    transition: margin-left .18s ease;
}

.kp-app .content-page > .content > .container-fluid { max-width: 1540px; padding: 0; }
.kp-app .left-side-menu .menu-title { padding: 24px 22px 8px; color: #8398ab; font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.kp-app .side-nav { padding: 0 10px 28px; }
.kp-app .side-nav .side-nav-item { margin: 3px 0; }

.kp-app .side-nav .side-nav-link {
    min-height: 44px;
    gap: 12px;
    padding: 10px 13px;
    border-radius: 9px;
    color: #bfccd8;
    font-size: 14px;
    font-weight: 560;
}

.kp-app .side-nav .side-nav-link i { width: 20px; color: #8fa6b9; font-size: 18px; text-align: center; }
.kp-app .side-nav .side-nav-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.kp-app .side-nav .side-nav-link.active { background: var(--kp-blue-600); color: #fff; font-weight: 700; }
.kp-app .side-nav .side-nav-link.active i { color: #fff; }
.kp-side-divider { height: 1px; margin: 18px 12px 2px; background: rgba(255, 255, 255, .14); }
.kp-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; font-size: 21px; cursor: pointer; }
.navbar-custom #mobile-menu-toggle.kp-menu-toggle { display: inline-flex; width: 36px; height: 36px; line-height: 36px; }

@media (min-width: 992px) {
    .kp-topbar-brand-group > .kite-version { display: none; }
    .kp-app:not(.kp-sidebar-expanded) .kp-sidebar-head { justify-content: center; padding: 0; }
    .kp-app:not(.kp-sidebar-expanded) .kp-sidebar-head .kp-brand-name,
    .kp-app:not(.kp-sidebar-expanded) .kp-sidebar-head .kite-version,
    .kp-app:not(.kp-sidebar-expanded) .left-side-menu .menu-title,
    .kp-app:not(.kp-sidebar-expanded) .side-nav .side-nav-link span { display: none; }
    .kp-app:not(.kp-sidebar-expanded) .side-nav { padding: 4px 8px 28px; }
    .kp-app:not(.kp-sidebar-expanded) .side-nav .side-nav-link { justify-content: center; min-height: 48px; padding: 10px; }
    .kp-app:not(.kp-sidebar-expanded) .side-nav .side-nav-link i { margin: 0; font-size: 20px; }
    .kp-app:not(.kp-sidebar-expanded) .kp-side-divider { margin: 12px 4px; }
    .kp-app.kp-sidebar-expanded .left-side-menu { width: 232px; padding-top: 84px; }
    .kp-app.kp-sidebar-expanded .content-page { margin-left: 232px; }
}

.kp-page { width: 100%; }
.kp-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }

.kp-page-header h1,
.kp-page-title {
    margin: 0;
    color: var(--kp-text);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 780;
    letter-spacing: -.035em;
    line-height: 1.1;
}

.kp-page-header p,
.kp-page-subtitle { margin: 7px 0 0; color: var(--kp-muted); font-size: 15px; line-height: 1.5; }
.kp-page-actions, .kp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.kp-preview-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 11px 14px;
    border: 1px solid #efcf85;
    border-radius: var(--kp-radius);
    background: #fff9e9;
    color: #604713;
}
.kp-preview-banner-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 9px; background: #f7df9f; font-size: 18px; }
.kp-preview-banner-copy { min-width: 0; flex: 1; }
.kp-preview-banner-copy strong, .kp-preview-banner-copy span { display: block; }
.kp-preview-banner-copy span { margin-top: 1px; color: #7b642f; font-size: 12px; }
.kp-preview-picker { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 18px; padding: 16px 18px; border: 1px solid var(--kp-border); border-radius: var(--kp-radius); background: #fff; }
.kp-preview-picker > div { width: min(520px, 100%); }
.kp-preview-picker label { display: block; margin-bottom: 6px; color: var(--kp-navy-800); font-size: 13px; font-weight: 680; }

.kp-surface,
.kp-app .card {
    border: 1px solid var(--kp-border);
    border-radius: var(--kp-radius);
    background: var(--kp-surface);
    box-shadow: none;
}

.kp-app .card-header { min-height: 58px; padding: 16px 20px; border-bottom: 1px solid var(--kp-border); background: transparent; }
.kp-app .card-body { padding: 20px; }
.kp-surface-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 14px 18px; border-bottom: 1px solid var(--kp-border); }
.kp-surface-title { margin: 0; font-size: 16px; font-weight: 750; letter-spacing: -.012em; }
.kp-surface-body { padding: 18px; }
.kp-toolbar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--kp-border); }
.kp-toolbar .kp-search { position: relative; width: min(430px, 100%); }
.kp-search > i { position: absolute; top: 50%; left: 14px; color: var(--kp-muted); font-size: 17px; transform: translateY(-50%); pointer-events: none; }
.kp-search .form-control { padding-left: 41px; }
.kp-result-count { margin-left: auto; color: var(--kp-muted); font-size: 13px; white-space: nowrap; }

.kp-app .form-control,
.kp-app .form-select { min-height: 42px; border-color: var(--kp-border-strong); border-radius: var(--kp-radius-sm); color: var(--kp-text); font-size: 14px; }
.kp-app .form-control-sm, .kp-app .form-select-sm { min-height: 36px; }

.kp-app .form-control:focus,
.kp-app .form-select:focus,
.kp-app .form-check-input:focus,
.kp-app .btn:focus-visible,
.kp-app a:focus-visible,
.kp-app button:focus-visible { border-color: var(--kp-blue-600); box-shadow: var(--kp-focus); outline: 0; }

.kp-app .form-label { margin-bottom: 6px; color: var(--kp-navy-800); font-size: 13px; font-weight: 680; }
.kp-app .form-text, .kp-app .text-muted { color: var(--kp-muted) !important; }
.kp-role-capability { display: flex; min-height: 68px; align-items: flex-start; gap: 12px; margin: 0; padding: 13px 14px; border: 1px solid var(--kp-border); border-radius: var(--kp-radius-sm); background: #f8fafc; cursor: pointer; }
.kp-role-capability > .form-check-input { width: 18px; height: 18px; flex: 0 0 18px; margin: 2px 0 0; cursor: pointer; }
.kp-role-capability > i { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 8px; font-size: 16px; }
.kp-role-capability > span { min-width: 0; }
.kp-role-capability strong, .kp-role-capability small { display: block; }
.kp-role-capability strong { color: var(--kp-navy-800); font-size: 13px; font-weight: 720; }
.kp-role-capability small { margin-top: 3px; color: var(--kp-muted); font-size: 12px; font-weight: 400; line-height: 1.4; }
.kp-role-capability--included { border-color: #b7e3d8; background: #f1fbf8; cursor: default; }
.kp-role-capability--included > i { background: #d9f3ec; color: #13886f; }
.kp-role-capability--admin { border-color: #c9ddf7; background: #f2f7fe; cursor: default; }
.kp-role-capability--admin > i { background: #dcecff; color: var(--kp-blue-700); }
.kp-user-modal .modal-dialog { width: calc(100% - 32px); max-width: 860px; }
.kp-user-modal .modal-content { max-height: calc(100dvh - 32px); overflow: hidden; }
.kp-user-modal-header { min-height: 78px; align-items: center; padding: 16px 24px; }
.kp-user-modal-heading { display: flex; min-width: 0; align-items: center; gap: 13px; }
.kp-user-modal-heading > div { min-width: 0; }
.kp-user-modal-heading .modal-title { margin: 0; font-size: 19px; line-height: 1.25; }
.kp-user-modal-heading p { overflow: hidden; margin: 3px 0 0; color: var(--kp-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.kp-user-modal-icon, .kp-user-modal-avatar { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 11px; background: #e8f2ff; color: var(--kp-blue-700); font-size: 18px; }
.kp-user-modal-avatar { border-radius: 50%; background: var(--kp-navy-900); color: #fff; font-size: 13px; font-weight: 780; }
.kp-user-modal .kp-user-modal-body { padding: 0; background: #fff; }
.kp-user-form-section { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 21px 24px; }
.kp-user-form-section + .kp-user-form-section { border-top: 1px solid var(--kp-border); }
.kp-user-form-section > header h3 { margin: 0; color: var(--kp-navy-800); font-size: 13px; font-weight: 760; }
.kp-user-form-section > header p { margin: 4px 0 0; color: var(--kp-muted); font-size: 11px; line-height: 1.45; }
.kp-user-form-grid { display: grid; min-width: 0; gap: 14px; }
.kp-user-form-grid--identity { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kp-user-form-grid--access { grid-template-columns: minmax(210px, .8fr) minmax(310px, 1.2fr); align-items: start; }
.kp-user-form-grid--access > [data-role-panel] { min-width: 0; }
.kp-user-form-grid--access .kp-role-capability { min-height: 68px; height: 100%; }
.kp-user-form-grid--access [data-role-panel="staff"] .kp-role-capability { margin-top: 8px; }
.kp-user-password-field { width: min(100%, 340px); }
.kp-user-modal-footer { min-height: 66px; gap: 9px; padding: 11px 24px; }
.kp-user-modal-footer .btn { min-width: 128px; }
.kp-app .btn { min-height: 40px; border-radius: var(--kp-radius-sm); font-size: 13px; font-weight: 680; }
.kp-app .btn-sm { min-height: 34px; }
.kp-app .btn-primary { border-color: var(--kp-blue-600); background: var(--kp-blue-600); }
.kp-app .btn-primary:hover { border-color: var(--kp-blue-700); background: var(--kp-blue-700); }
.kp-app .btn-outline-primary { border-color: #9dc6fb; color: var(--kp-blue-700); }
.kp-app .btn-light, .kp-app .btn-outline-secondary { border-color: var(--kp-border-strong); background: #fff; color: var(--kp-navy-800); }
.kp-app .page-item.active .page-link { border-color: var(--kp-blue-600); background: var(--kp-blue-600); }

.kp-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; min-height: 38px !important; padding: 0; border: 1px solid var(--kp-border); border-radius: 9px; background: #fff; color: var(--kp-navy-800); }
.kp-icon-btn:hover { border-color: #a9c9f3; background: #f2f7fe; color: var(--kp-blue-700); }
.kp-icon-btn--danger { color: #ca4b53; }
.kp-icon-btn--danger:hover { border-color: #efb8bc; background: #fff4f5; color: #aa303a; }
.kp-icon-btn:disabled { border-color: #e0e6ed; background: #f5f7f9; color: #a7b1be; cursor: not-allowed; opacity: .72; }
.kp-table { margin: 0; }
.kp-table > :not(caption) > * > * { padding: 13px 16px; border-bottom-color: var(--kp-border); vertical-align: middle; }
.kp-table thead th { border-top: 0; background: #f8fafc; color: #52657b; font-size: 11px; font-weight: 750; letter-spacing: .035em; text-transform: uppercase; }
.kp-table tbody tr { transition: background-color .15s ease; }
.kp-table tbody tr:hover { background: #f8fbff; }
.kp-table tbody tr:last-child > * { border-bottom: 0; }
.kp-table-primary { font-weight: 700; }
.kp-table-secondary { margin-top: 2px; color: var(--kp-muted); font-size: 12px; }
.kp-row-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }

.kp-competition-tree { overflow: hidden; }
.kp-tree-event + .kp-tree-event { border-top: 1px solid var(--kp-border); }
.kp-tree-event-header { display: flex; align-items: center; gap: 13px; min-height: 72px; padding: 13px 18px; border-bottom: 1px solid var(--kp-border); background: #f8fafc; }
.kp-tree-event-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid #c9dcf5; border-radius: 10px; background: #edf5ff; color: var(--kp-blue-700); font-size: 18px; }
.kp-tree-event-main { min-width: 0; flex: 1; }
.kp-tree-event-main h3 { margin: 0; color: var(--kp-text); font-size: 16px; font-weight: 780; letter-spacing: -.015em; line-height: 1.25; }
.kp-tree-event-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; color: var(--kp-muted); font-size: 12px; }
.kp-tree-event-meta span { display: inline-flex; align-items: center; gap: 5px; }
.kp-tree-event-meta i { font-size: 13px; }
.kp-tree-event-count { color: var(--kp-muted); font-size: 12px; font-weight: 650; white-space: nowrap; }
.kp-tree-children { margin: 0; padding: 0 0 0 22px; list-style: none; }
.kp-tree-node { display: grid; grid-template-columns: 32px minmax(0, 1fr); min-height: 86px; }
.kp-tree-node + .kp-tree-node .kp-tree-competition { border-top: 1px solid var(--kp-border); }
.kp-tree-branch { position: relative; align-self: stretch; }
.kp-tree-branch::before { position: absolute; top: 0; bottom: 0; left: 15px; width: 1px; background: #b8c8db; content: ""; }
.kp-tree-node:last-child .kp-tree-branch::before { bottom: 50%; }
.kp-tree-branch::after { position: absolute; top: 50%; right: 0; left: 15px; height: 1px; background: #b8c8db; content: ""; }
.kp-tree-branch > span { position: absolute; top: 50%; right: -3px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: var(--kp-blue-600); box-shadow: 0 0 0 1px #96b6dc; transform: translateY(-50%); z-index: 1; }
.kp-tree-competition { display: grid; grid-template-columns: minmax(260px, 1.15fr) minmax(440px, 1.4fr) auto; align-items: center; gap: 22px; min-width: 0; padding: 14px 18px 14px 8px; }
.kp-tree-competition-main { min-width: 0; }
.kp-tree-competition-main h4 { margin: 0; font-size: 15px; font-weight: 760; letter-spacing: -.01em; line-height: 1.35; }
.kp-tree-competition-main h4 a { color: var(--kp-text); text-decoration: none; }
.kp-tree-competition-main h4 a:hover { color: var(--kp-blue-700); }
.kp-tree-competition-main p { margin: 4px 0 0; color: var(--kp-muted); font-size: 12px; line-height: 1.4; }
.kp-tree-facts { display: grid; grid-template-columns: 1.05fr 1fr .75fr; gap: 20px; min-width: 0; margin: 0; }
.kp-tree-facts > div { min-width: 0; }
.kp-tree-facts dt { margin-bottom: 4px; color: #66788e; font-size: 10px; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.kp-tree-facts dd { overflow: hidden; margin: 0; color: var(--kp-navy-800); font-size: 12px; font-weight: 620; line-height: 1.35; text-overflow: ellipsis; }
.kp-tree-facts dd > span:not(.kp-status) { display: block; margin-top: 2px; color: var(--kp-muted); font-size: 11px; font-weight: 400; }

.kp-status { display: inline-flex; align-items: center; gap: 7px; color: var(--kp-muted); font-size: 12px; font-weight: 650; white-space: nowrap; }
.kp-status::before { width: 8px; height: 8px; border-radius: 50%; background: #8d9bac; content: ""; }
.kp-status--success { color: #087b69; }
.kp-status--success::before { background: var(--kp-aqua-500); }
.kp-status--warning { color: #9b650d; }
.kp-status--warning::before { background: var(--kp-amber-500); }
.kp-status--danger { color: #b8453c; }
.kp-status--danger::before { background: var(--kp-coral-500); }

.kp-metric-rail { display: grid; grid-template-columns: repeat(var(--kp-metrics, 4), minmax(0, 1fr)); margin-bottom: 22px; border: 1px solid var(--kp-border); border-radius: var(--kp-radius); background: #fff; }
.kp-metric { display: flex; align-items: center; gap: 12px; min-height: 88px; padding: 16px 20px; }
.kp-metric + .kp-metric { border-left: 1px solid var(--kp-border); }
.kp-metric i { color: var(--kp-navy-800); font-size: 24px; }
.kp-metric-label { display: block; color: var(--kp-muted); font-size: 12px; }
.kp-metric-value { display: block; margin-top: 1px; color: var(--kp-text); font-size: 26px; font-weight: 780; letter-spacing: -.03em; line-height: 1; }

.kp-competition-page .kp-page-header { margin-bottom: 12px; }
.kp-competition-facts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin: 0 0 16px; }
.kp-competition-facts > div { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.kp-competition-facts dt { color: var(--kp-muted); font-size: 12px; font-weight: 500; }
.kp-competition-facts dd { margin: 0; color: var(--kp-text); font-size: 13px; font-weight: 750; }
.kp-competition-page .kp-phase > summary { min-height: 56px; padding: 10px 16px; }
.kp-competition-page .kp-phase-content > .kp-toolbar { flex-wrap: wrap; gap: 6px; padding: 7px 14px; }

.kp-focus-band { display: grid; grid-template-columns: minmax(250px, 1.5fr) repeat(2, minmax(170px, .85fr)) auto; align-items: center; gap: 0; margin-bottom: 22px; border: 1px solid #c5dbf7; border-radius: var(--kp-radius); background: #f5f9ff; }
.kp-focus-section { min-height: 116px; padding: 20px 24px; }
.kp-focus-section + .kp-focus-section { border-left: 1px solid #d4e3f6; }
.kp-focus-label { display: block; margin-bottom: 6px; color: var(--kp-muted); font-size: 12px; }
.kp-focus-title { margin: 0; font-size: 22px; font-weight: 780; letter-spacing: -.025em; }
.kp-focus-meta { margin-top: 3px; color: var(--kp-navy-800); }
.kp-empty { padding: 42px 24px; color: var(--kp-muted); text-align: center; }
.kp-empty i { display: block; margin-bottom: 10px; color: #91a1b4; font-size: 30px; }
.kp-empty strong { display: block; margin-bottom: 4px; color: var(--kp-navy-800); }

.kp-modal .modal-content { max-height: calc(100vh - 48px); overflow: hidden; border: 0; border-radius: 14px; box-shadow: 0 26px 72px rgba(7, 25, 42, .22); }
.kp-modal .modal-header { min-height: 64px; padding: 17px 22px; border-bottom: 1px solid var(--kp-border); }
.kp-modal .modal-title { color: var(--kp-text); font-size: 20px; font-weight: 780; letter-spacing: -.02em; }
.kp-modal .modal-body { overflow-y: auto; padding: 22px; }
.kp-modal .modal-footer { padding: 14px 22px; border-top: 1px solid var(--kp-border); background: #fbfcfe; }
.kp-modal .modal-footer .btn { min-width: 112px; }

/* Event editor */
.kp-event-modal .modal-dialog { width: calc(100% - 32px); max-width: 1120px; }
.kp-event-modal .modal-content { display: flex; height: min(820px, calc(100dvh - 32px)); max-height: calc(100dvh - 32px); background: #fff; }
.kp-event-modal.kp-event-team-active .modal-content { height: auto; }
.kp-event-modal.kp-event-team-active .kp-event-modal-body { flex: 0 1 auto; overflow: auto; }
.kp-event-modal.kp-event-team-active .kp-event-pane { height: auto; overflow: visible; }
.kp-event-modal-header { display: flex; min-height: 79px; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 20px 24px 17px; border-bottom: 1px solid var(--kp-border); }
.kp-event-modal-header > div { min-width: 0; }
.kp-event-modal-header .modal-title { margin: 0; font-size: 21px; line-height: 1.3; }
.kp-event-modal-header p { overflow: hidden; margin: 3px 0 0; color: var(--kp-muted); font-size: 13px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.kp-event-modal-header .btn-close { flex: 0 0 auto; margin-top: 2px; opacity: .55; }
.kp-event-modal-header .btn-close:hover { opacity: .85; }
.kp-event-tabs { display: flex; min-height: 55px; align-items: stretch; gap: 24px; padding: 0 24px; border-bottom: 1px solid var(--kp-border); background: #fff; }
.kp-event-tab { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0 2px; border: 0; background: transparent; color: #66788e; font-size: 13px; font-weight: 700; }
.kp-event-tab::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: transparent; content: ""; }
.kp-event-tab:hover { color: var(--kp-blue-700); }
.kp-event-tab:focus-visible { outline: 2px solid #86b8f7; outline-offset: 3px; }
.kp-event-tab.active { color: var(--kp-blue-700); }
.kp-event-tab.active::after { background: var(--kp-blue-600); }
.kp-event-tab > span { display: inline-grid; min-width: 22px; height: 22px; padding: 0 6px; place-items: center; border: 1px solid #d5dfeb; border-radius: 7px; background: #f5f8fb; color: #5b6d82; font-size: 10px; font-weight: 800; line-height: 1; }
.kp-event-tab.active > span { border-color: #c6ddfa; background: #eaf3ff; color: var(--kp-blue-700); }
.kp-event-modal .kp-event-modal-body { min-height: 0; flex: 1; overflow: hidden; padding: 24px; background: #fbfcfe; }
.kp-event-pane { height: 100%; min-height: 0; overflow: auto; scrollbar-color: #b4c0ce transparent; scrollbar-width: thin; }
.kp-event-pane[hidden], .kp-picker-option[hidden], .kp-picker-empty[hidden] { display: none !important; }
.kp-event-pane-heading { display: flex; min-height: 46px; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 17px; }
.kp-event-pane-heading h3 { margin: 0; color: var(--kp-text); font-size: 16px; font-weight: 760; letter-spacing: -.01em; }
.kp-event-pane-heading h3 i { margin-right: 7px; color: var(--kp-blue-600); }
.kp-event-pane-heading p { margin: 4px 0 0; color: var(--kp-muted); font-size: 12px; line-height: 1.4; }
.kp-event-info-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px 24px; padding: 2px; }
.kp-event-field { min-width: 0; }
.kp-event-field--name { grid-column: span 6; }
.kp-event-field--slug, .kp-event-field--status { grid-column: span 3; }
.kp-event-field--location { grid-column: span 6; }
.kp-event-field--start, .kp-event-field--end { grid-column: span 3; }
.kp-event-field .form-label { margin-bottom: 7px; }
.kp-event-field .form-control, .kp-event-field .form-select { min-height: 48px; border-color: #ccd8e6; background-color: #fff; }
.kp-event-field .form-control:focus, .kp-event-field .form-select:focus { border-color: #78aff3; box-shadow: 0 0 0 3px rgba(20, 125, 255, .1); }
.kp-input-icon { position: relative; }
.kp-input-icon > i { position: absolute; top: 50%; left: 15px; color: #7d8da1; font-size: 17px; transform: translateY(-50%); pointer-events: none; }
.kp-input-icon .form-control { padding-left: 43px; }
.kp-event-live-setting { grid-column: 1 / -1; display: flex; min-height: 76px; align-items: center; gap: 14px; margin-top: 2px; padding: 14px 16px; border: 1px solid #d4e1f0; border-radius: 10px; background: #f4f8fd; cursor: pointer; }
.kp-event-live-setting > span:nth-child(2) { min-width: 0; flex: 1; }
.kp-event-live-setting strong, .kp-event-live-setting small { display: block; }
.kp-event-live-setting strong { color: var(--kp-navy-800); font-size: 13px; }
.kp-event-live-setting small { margin-top: 3px; color: var(--kp-muted); font-size: 12px; font-weight: 400; }
.kp-event-live-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 9px; background: #dfeeff; color: var(--kp-blue-700); font-size: 18px; }
.kp-event-live-setting .form-switch { flex: 0 0 auto; margin: 0; padding-left: 0; }
.kp-event-live-setting .form-check-input { width: 38px; height: 21px; margin: 0; cursor: pointer; }
.kp-team-picker-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 12px; }
.kp-team-picker-grid .kp-assignment-picker { min-height: 0; }
.kp-team-picker-grid .kp-picker-options { flex: none; overflow: visible; padding: 0 5px 6px; }
.kp-team-picker-grid .kp-picker-header { min-height: 38px; padding: 0 10px; }
.kp-team-picker-grid .kp-picker-search { margin: 6px 7px; }
.kp-team-picker-grid .kp-picker-search input { height: 32px; }
.kp-team-picker-grid .kp-picker-option { min-height: 39px; gap: 6px; margin-bottom: 1px; padding: 4px 6px; }
.kp-team-picker-grid .kp-picker-copy strong { font-size: 11px; }
.kp-team-picker-grid .kp-picker-copy small { margin-top: 0; font-size: 9px; }
.kp-picker-main { display: flex; min-width: 0; flex: 1; align-items: center; gap: 7px; cursor: pointer; }
.kp-picker-staff-type { width: 102px; max-width: 38%; flex: 0 0 auto; padding: 3px 4px; border: 1px solid #ccd8e6; border-radius: 5px; background: #fff; color: var(--kp-navy-800); font-size: 10px; }
.kp-assignment-picker { display: flex; min-width: 0; min-height: 0; flex-direction: column; border: 1px solid #d8e2ed; border-radius: 11px; background: #fff; overflow: hidden; }
.kp-picker-header { display: flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 15px; border-bottom: 1px solid #e2e8f0; }
.kp-picker-header > div { display: flex; min-width: 0; align-items: center; gap: 8px; }
.kp-picker-header i { color: var(--kp-blue-600); font-size: 16px; }
.kp-picker-header strong { overflow: hidden; color: var(--kp-navy-800); font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.kp-picker-header > span, .kp-pane-selection-count { flex: 0 0 auto; color: #64768b; font-size: 11px; font-weight: 650; }
.kp-picker-search { position: relative; margin: 12px 12px 10px; }
.kp-picker-search > i { position: absolute; top: 50%; left: 12px; color: #8493a5; font-size: 15px; transform: translateY(-50%); pointer-events: none; }
.kp-picker-search input { width: 100%; height: 38px; padding: 0 36px; border: 1px solid #d3deea; border-radius: 8px; background: #f9fbfd; color: var(--kp-text); font-size: 12px; outline: none; }
.kp-picker-search input::placeholder { color: #8796a8; }
.kp-picker-search input:focus { border-color: #78aff3; background: #fff; box-shadow: 0 0 0 3px rgba(20, 125, 255, .08); }
.kp-picker-search button { position: absolute; top: 50%; right: 7px; display: grid; width: 26px; height: 26px; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #74859a; opacity: 0; pointer-events: none; transform: translateY(-50%); }
.kp-picker-search button.is-visible { opacity: 1; pointer-events: auto; }
.kp-picker-search button:hover { background: #eaf0f6; color: var(--kp-text); }
.kp-picker-options { min-height: 0; flex: 1; overflow-y: auto; padding: 0 8px 8px; scrollbar-color: #b4c0ce transparent; scrollbar-width: thin; }
.kp-picker-options--readonly { padding-top: 8px; }
.kp-picker-option { display: flex; min-height: 56px; align-items: center; gap: 11px; margin-bottom: 3px; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; color: inherit; cursor: pointer; transition: border-color .12s ease, background-color .12s ease; }
.kp-picker-option:hover { border-color: #d9e6f5; background: #f7faff; }
.kp-picker-option.is-selected { border-color: #c7ddf7; background: #edf5ff; }
.kp-picker-option .form-check-input { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; border-color: #9eacbd; border-radius: 5px; cursor: pointer; }
.kp-picker-option .form-check-input:checked { border-color: var(--kp-blue-600); background-color: var(--kp-blue-600); }
.kp-picker-avatar { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid #dce5ef; border-radius: 50%; background: #eef2f7; color: #536579; font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.kp-picker-option.is-selected .kp-picker-avatar { border-color: #c8ddf6; background: #dcecff; color: #1767c8; }
.kp-picker-copy { min-width: 0; flex: 1; }
.kp-picker-copy strong, .kp-picker-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-picker-copy strong { color: var(--kp-navy-800); font-size: 12px; font-weight: 700; }
.kp-picker-copy small { margin-top: 2px; color: var(--kp-muted); font-size: 10px; font-weight: 400; }
.kp-picker-help { display: flex; align-items: flex-start; gap: 6px; margin: 0; padding: 9px 12px; border-top: 1px solid #e5ebf2; color: #687a8f; font-size: 10px; line-height: 1.35; }
.kp-picker-help i { margin-top: 1px; color: var(--kp-blue-600); }
.kp-picker-static-empty, .kp-picker-empty { padding: 28px 18px; color: var(--kp-muted); font-size: 12px; text-align: center; }

/* Competition judge assignment */
.kp-judge-assignment { margin-top: 2px; }
.kp-judge-policy { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid #cfe0f4; border-radius: 10px; background: #f4f8fd; }
.kp-judge-policy > span { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 9px; background: #dfeeff; color: var(--kp-blue-700); font-size: 16px; }
.kp-judge-policy > div { min-width: 0; }
.kp-judge-policy strong, .kp-judge-policy p { display: block; }
.kp-judge-policy strong { color: var(--kp-navy-800); font-size: 12px; font-weight: 780; }
.kp-judge-policy p { margin: 2px 0 0; color: #5f7288; font-size: 11px; line-height: 1.4; }
.kp-competition-judging-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--kp-border); }
.kp-judge-assignment-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(235px, .75fr); gap: 20px; }
.kp-judge-picker { height: auto; max-height: 320px; }
.kp-judge-picker .kp-picker-options { max-height: 210px; flex: 0 1 auto; padding-bottom: 9px; }
.kp-judge-option { min-height: 59px; }
.kp-judge-event-state { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; color: #16806f; font-size: 10px; font-weight: 700; white-space: nowrap; }
.kp-judge-event-state i { font-size: 13px; }
.kp-judge-option.is-pending-event-link .kp-judge-event-state { color: var(--kp-blue-700); }
.kp-judge-master-panel { min-width: 0; padding: 6px 0 0 2px; }
.kp-judge-master-heading { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 22px; }
.kp-judge-master-heading > span { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 10px; background: #eef4fb; color: var(--kp-blue-700); font-size: 17px; }
.kp-judge-master-heading > div { min-width: 0; padding-top: 1px; }
.kp-judge-master-heading strong { display: block; color: var(--kp-navy-800); font-size: 14px; font-weight: 780; }
.kp-judge-master-heading p { margin: 2px 0 0; color: var(--kp-muted); font-size: 11px; line-height: 1.35; }
.kp-judge-master-panel .form-select { min-height: 46px; border-color: #ccd8e6; background-color: #fff; font-size: 13px; }
.kp-judge-master-help { display: flex; align-items: flex-start; gap: 6px; margin: 9px 0 0; color: #66788e; font-size: 10px; line-height: 1.4; }
.kp-judge-master-help i { margin-top: 1px; color: var(--kp-blue-600); }
.kp-judge-selection-summary { display: flex; align-items: center; gap: 8px; margin-top: 23px; padding-top: 13px; border-top: 1px solid #e1e8f0; color: #63758a; font-size: 11px; font-weight: 650; }
.kp-judge-selection-summary i { color: var(--kp-aqua-500); font-size: 15px; }
.kp-judge-selection-summary.is-empty i { color: #9aa7b6; }
.kp-athlete-picker { height: 100%; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.kp-athlete-picker .kp-event-pane-heading { flex: 0 0 auto; }
.kp-athlete-toolbar { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.kp-athlete-toolbar .kp-picker-search { width: min(440px, 100%); margin: 0; }
.kp-athlete-competition-filter { position: relative; min-width: 230px; flex: 1 1 260px; margin: 0; }
.kp-athlete-competition-filter > i { position: absolute; z-index: 1; top: 50%; left: 12px; color: var(--kp-blue-600); transform: translateY(-50%); pointer-events: none; }
.kp-athlete-competition-filter .form-select { min-height: 38px; padding-left: 36px; border-color: #d3deea; background-color: #f9fbfd; font-size: 12px; }
.kp-picker-filters { display: inline-flex; flex: 0 0 auto; padding: 3px; border: 1px solid #d7e1ec; border-radius: 8px; background: #eef2f6; }
.kp-picker-filters button { min-height: 30px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: #65778b; font-size: 11px; font-weight: 700; }
.kp-picker-filters button.active { background: #fff; color: var(--kp-blue-700); box-shadow: 0 1px 3px rgba(7, 25, 42, .1); }
.kp-athlete-bulkbar { display: flex; min-height: 45px; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 14px; margin: -2px 0 10px; padding: 7px 9px 7px 13px; border: 1px solid #dbe5ef; border-radius: 9px; background: #fff; }
.kp-athlete-bulkbar > span { color: #687a8f; font-size: 11px; }
.kp-athlete-bulkbar > span strong { color: var(--kp-navy-800); }
.kp-athlete-bulkbar > div { display: flex; gap: 7px; }
.kp-athlete-bulkbar .btn { min-height: 31px; font-size: 11px; }
.kp-athlete-change-notice { display: flex; min-height: 42px; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; margin: -2px 0 10px; padding: 8px 12px; border: 1px solid #f1cfca; border-radius: 9px; background: #fff7f6; }
.kp-athlete-change-notice[hidden] { display: none !important; }
.kp-athlete-change-notice > span { display: flex; align-items: center; gap: 7px; color: #a63831; font-size: 11px; }
.kp-athlete-change-notice .btn { padding: 2px 4px; color: var(--kp-blue-700); font-size: 11px; text-decoration: none; }
.kp-athlete-options { display: grid; min-height: 0; flex: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 4px 8px; padding: 8px; border: 1px solid #d8e2ed; border-radius: 11px; background: #fff; }
.kp-athlete-options .kp-picker-option { margin: 0; }
.kp-athlete-options .kp-picker-empty, .kp-athlete-options .kp-picker-static-empty { grid-column: 1 / -1; }
.kp-athlete-competition-tags { display: flex; min-width: 0; gap: 4px; margin-top: 5px; }
.kp-athlete-competition-tags > span, .kp-athlete-unassigned { display: inline-block; overflow: hidden; max-width: 190px; padding: 2px 6px; border-radius: 5px; background: #e2eefc; color: #2869af; font-size: 9px; font-weight: 700; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.kp-athlete-unassigned { margin-top: 5px; background: #f0f3f6; color: #748398; }
.kp-event-modal.kp-event-roster-collapsed .modal-content { height: auto; }
.kp-event-modal.kp-event-roster-collapsed .kp-event-modal-footer { display: none; }
.kp-event-competition-overview { margin-bottom: 16px; }
.kp-event-competition-overview h3 { margin: 0 0 10px; color: var(--kp-text); font-size: 15px; font-weight: 760; }
.kp-event-competition-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 16px; border: 1px solid #d8e2ed; border-radius: 10px; background: #fff; }
.kp-event-competition-row + .kp-event-competition-row { margin-top: 8px; }
.kp-event-competition-row > div { min-width: 0; }
.kp-event-competition-row strong, .kp-event-competition-row span { display: block; }
.kp-event-competition-row strong { color: var(--kp-navy-800); font-size: 14px; font-weight: 750; }
.kp-event-competition-row span { margin-top: 4px; color: var(--kp-muted); font-size: 12px; }
.kp-event-competition-row .btn { flex: 0 0 auto; }
.kp-event-roster-details { min-height: 0; border: 1px solid #d8e2ed; border-radius: 10px; background: #fff; }
.kp-event-roster-details > summary { display: flex; min-height: 65px; align-items: center; gap: 16px; padding: 12px 16px; list-style: none; cursor: pointer; }
.kp-event-roster-details > summary::-webkit-details-marker { display: none; }
.kp-event-roster-details > summary:focus-visible { outline: 2px solid var(--kp-blue-600); outline-offset: -3px; }
.kp-event-roster-details > summary > span:first-child { min-width: 0; flex: 1; }
.kp-event-roster-details > summary strong, .kp-event-roster-details > summary small { display: block; }
.kp-event-roster-details > summary strong { color: var(--kp-navy-800); font-size: 13px; }
.kp-event-roster-details > summary small { margin-top: 2px; color: var(--kp-muted); font-size: 11px; }
.kp-event-roster-details > summary > i { color: var(--kp-muted); transition: transform .15s ease; }
.kp-event-roster-details[open] > summary > i { transform: rotate(180deg); }
.kp-event-roster-details .kp-athlete-picker { height: auto; min-height: 0; padding: 12px 12px 14px; border-top: 1px solid #e2e8f0; }
.kp-event-roster-details .kp-athlete-options { max-height: none; flex: none; overflow: visible; }
.kp-seed-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 6px; background: #fff4d5; color: #946200; font-size: 10px; font-weight: 750; white-space: nowrap; }
.kp-seed-modal .modal-content { max-height: min(720px, calc(100dvh - 48px)); }
.kp-seed-modal .modal-body { display: flex; min-height: 0; flex-direction: column; }
.kp-seed-policy { display: flex; flex: 0 0 auto; align-items: flex-start; gap: 12px; margin-bottom: 16px; padding: 13px 14px; border: 1px solid #cfe0f4; border-radius: 10px; background: #f3f8fe; }
.kp-seed-policy > span { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 9px; background: #dcecff; color: var(--kp-blue-700); font-size: 17px; }
.kp-seed-policy strong { display: block; color: var(--kp-navy-800); font-size: 13px; }
.kp-seed-policy p { margin: 3px 0 0; color: #5f7288; font-size: 11px; line-height: 1.45; }
.kp-seed-toolbar { display: flex; flex: 0 0 auto; align-items: center; gap: 16px; margin-bottom: 10px; }
.kp-seed-toolbar .kp-picker-search { min-width: 0; flex: 1; margin: 0; }
.kp-roster-summary { display: flex; flex: 0 0 auto; justify-content: flex-end; gap: 18px; margin: -1px 3px 9px; color: #65778b; font-size: 10px; }
.kp-roster-summary strong { color: var(--kp-navy-800); }
.kp-roster-summary { align-items: center; justify-content: space-between; }
.kp-roster-summary .btn { min-height: 30px; padding: 4px 10px; font-size: 11px; }
.kp-seed-list { min-height: 160px; max-height: 390px; flex: 0 1 390px; overflow-y: auto; border: 1px solid #dbe4ee; border-radius: 10px; background: #fff; }
.kp-seed-option { display: flex; min-height: 62px; align-items: center; gap: 11px; padding: 9px 12px; border-bottom: 1px solid #edf1f5; }
.kp-seed-option:last-of-type { border-bottom: 0; }
.kp-seed-option:hover { background: #f8fbff; }
.kp-seed-option.is-participant { background: #f3f8fe; box-shadow: inset 3px 0 #2f80ed; }
.kp-seed-option.is-seeded { background: #fffbef; }
.kp-seed-option[hidden] { display: none !important; }
.kp-seed-copy { min-width: 0; flex: 1; }
.kp-seed-copy strong, .kp-seed-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-seed-copy strong { color: var(--kp-navy-800); font-size: 12px; }
.kp-seed-copy small { margin-top: 2px; color: var(--kp-muted); font-size: 10px; }
.kp-roster-controls { display: flex; flex: 0 0 auto; align-items: center; gap: 16px; }
.kp-roster-membership { display: inline-flex; align-items: center; gap: 7px; color: #607187; font-size: 10px; font-weight: 700; cursor: pointer; }
.kp-roster-membership .form-check-input { width: 18px; height: 18px; margin: 0; border-radius: 5px; }
.kp-seed-option.is-participant .kp-roster-membership { color: var(--kp-blue-700); }
.kp-seed-toggle { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; color: #7d8794; font-size: 10px; font-weight: 700; cursor: pointer; }
.kp-seed-toggle > i { color: #a7b1bd; font-size: 15px; }
.kp-seed-option.is-seeded .kp-seed-toggle, .kp-seed-option.is-seeded .kp-seed-toggle > i { color: #a46d00; }
.kp-seed-toggle .form-check-input { width: 18px; height: 18px; margin: 0 0 0 4px; border-radius: 5px; }
.kp-event-modal .kp-event-modal-footer { display: flex; min-height: 68px; flex: 0 0 auto; justify-content: flex-end; gap: 10px; padding: 12px 24px; background: #fff; }
.kp-event-footer-start { display: flex; align-items: center; margin-right: auto; }
.kp-event-modal-footer .btn-link { min-width: auto !important; text-decoration: none; }
.kp-event-modal-footer .btn-link:hover { text-decoration: underline; }

/* Event deletion decision */
.kp-event-delete-modal .modal-dialog { width: calc(100% - 32px); max-width: 660px; }
.kp-event-delete-modal .modal-content { max-height: min(760px, calc(100dvh - 32px)); background: #fff; }
.kp-event-delete-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--kp-border); }
.kp-event-delete-header .modal-title { margin: 0; font-size: 21px; line-height: 1.25; }
.kp-event-delete-header p { overflow: hidden; margin: 3px 0 0; color: var(--kp-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.kp-event-delete-header .btn-close { opacity: .55; }
.kp-event-delete-icon { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #f4cbc7; border-radius: 11px; background: #fff1ef; color: #c9453b; font-size: 19px; }
.kp-event-delete-body { padding: 20px 22px 22px !important; }
.kp-event-delete-warning { display: flex; align-items: flex-start; gap: 12px; padding: 14px 15px; border: 1px solid #efc3bf; border-radius: 10px; background: #fff7f6; }
.kp-event-delete-warning > i { flex: 0 0 auto; margin-top: 1px; color: #c9453b; font-size: 19px; }
.kp-event-delete-warning strong, .kp-event-delete-warning p { display: block; }
.kp-event-delete-warning strong { color: #97372f; font-size: 13px; font-weight: 780; }
.kp-event-delete-warning p { margin: 3px 0 0; color: #77504d; font-size: 12px; line-height: 1.5; }
.kp-event-delete-impact { margin-top: 20px; }
.kp-event-delete-impact h3 { margin: 0 0 9px; color: var(--kp-text); font-size: 13px; font-weight: 780; }
.kp-event-delete-impact-list { overflow: hidden; border: 1px solid var(--kp-border); border-radius: 10px; background: #fff; }
.kp-event-delete-impact-item { display: flex; min-height: 67px; align-items: center; gap: 12px; padding: 11px 14px; }
.kp-event-delete-impact-item + .kp-event-delete-impact-item { border-top: 1px solid #e7edf4; }
.kp-event-delete-impact-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 9px; background: #eef3f8; color: #52677e; font-size: 15px; }
.kp-event-delete-impact-item > div { min-width: 0; }
.kp-event-delete-impact-item strong, .kp-event-delete-impact-item small { display: block; }
.kp-event-delete-impact-item strong { color: var(--kp-navy-800); font-size: 12px; font-weight: 750; }
.kp-event-delete-impact-item small { margin-top: 2px; color: var(--kp-muted); font-size: 11px; line-height: 1.4; }
.kp-event-delete-preserved { display: flex; align-items: flex-start; gap: 10px; margin-top: 13px; padding: 0 3px; color: var(--kp-muted); }
.kp-event-delete-preserved > i { margin-top: 2px; color: #168d7c; font-size: 15px; }
.kp-event-delete-preserved p { margin: 0; font-size: 11px; line-height: 1.45; }
.kp-event-delete-preserved strong { color: #176d61; }
.kp-event-delete-confirmation { display: flex; align-items: flex-start; gap: 11px; margin-top: 18px; padding: 14px 15px; border: 1px solid #d5dfe9; border-radius: 10px; background: #f8fafc; cursor: pointer; transition: border-color .12s ease, background-color .12s ease; }
.kp-event-delete-confirmation:hover { border-color: #bdcad8; background: #f4f7fa; }
.kp-event-delete-confirmation:has(input:checked) { border-color: #e5a8a2; background: #fff6f5; }
.kp-event-delete-confirmation .form-check-input { width: 18px; height: 18px; flex: 0 0 18px; margin: 1px 0 0; border-color: #98a8ba; border-radius: 5px; cursor: pointer; }
.kp-event-delete-confirmation .form-check-input:checked { border-color: #d94e45; background-color: #d94e45; }
.kp-event-delete-confirmation strong, .kp-event-delete-confirmation small { display: block; }
.kp-event-delete-confirmation strong { color: var(--kp-text); font-size: 12px; font-weight: 760; }
.kp-event-delete-confirmation small { margin-top: 3px; color: var(--kp-muted); font-size: 11px; font-weight: 400; }
.kp-event-delete-permission { display: flex; align-items: flex-start; gap: 11px; margin-top: 18px; padding: 14px 15px; border: 1px solid #d5dfe9; border-radius: 10px; background: #f5f7fa; color: #64758a; }
.kp-event-delete-permission > i { margin-top: 1px; font-size: 16px; }
.kp-event-delete-permission strong, .kp-event-delete-permission small { display: block; }
.kp-event-delete-permission strong { color: #42566d; font-size: 12px; font-weight: 760; }
.kp-event-delete-permission small { margin-top: 3px; font-size: 11px; line-height: 1.4; }
.kp-event-delete-footer { display: flex; justify-content: flex-end; gap: 9px; }
.kp-event-delete-footer .btn { min-height: 44px; font-size: 12px; font-weight: 720; }
.kp-event-delete-footer .btn-danger { border-color: #d64c43; background: #d64c43; }
.kp-event-delete-footer .btn-danger:hover { border-color: #bb3e36; background: #bb3e36; }
.kp-event-delete-footer .btn-danger:disabled { border-color: #dda7a3; background: #dda7a3; color: #fff; opacity: .72; }

.kp-photo-field { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px dashed #afc7e5; border-radius: var(--kp-radius); background: #f8fbff; }
.kp-photo-field img { width: 84px; height: 84px; flex: 0 0 84px; border: 3px solid #fff; border-radius: 50%; background: #edf2f7; box-shadow: 0 0 0 1px var(--kp-border); object-fit: cover; }
.kp-photo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.kp-collapsible-filter { padding: 16px 18px; border-bottom: 1px solid var(--kp-border); background: #f8fafc; }
.kp-pagination { padding: 14px 18px; border-top: 1px solid var(--kp-border); }
.kp-pagination .pagination { margin: 0; }

.kp-auth-column { width: min(100%, 540px); }
.kp-auth-card { max-width: 540px; margin-inline: auto; }
.kp-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--kp-border); }
.kp-auth-tabs a { position: relative; padding: 11px 8px 13px; color: var(--kp-muted); font-size: 14px; font-weight: 680; text-align: center; text-decoration: none; }
.kp-auth-tabs a.active { color: var(--kp-blue-700); }
.kp-auth-tabs a.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--kp-blue-600); content: ""; }
.kp-invitation-context { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: var(--kp-radius-sm); background: #eef6ff; text-align: left; }
.kp-invitation-context > span, .kp-invitation-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 50%; background: #dcecff; color: var(--kp-blue-700); font-size: 19px; }
.kp-invitation-context strong, .kp-invitation-context small { display: block; }
.kp-invitation-context small { margin-top: 2px; color: var(--kp-muted); }
.kp-auth-note { margin: 16px 0 0; color: var(--kp-muted); font-size: 12px; line-height: 1.45; text-align: center; }
.kp-auth-intro { margin: 0 0 18px; text-align: center; }
.kp-auth-intro h1 { margin: 0; color: var(--kp-text); font-size: 22px; font-weight: 780; letter-spacing: -.02em; }
.kp-auth-intro p { margin: 4px 0 0; color: var(--kp-muted); font-size: 13px; }
.kp-channel-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kp-channel-choice label { display: flex; min-height: 66px; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid #cbd8e6; border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.kp-channel-choice label:hover { border-color: #98bceb; background: #f8fbff; }
.kp-channel-choice label.is-selected { border-color: var(--kp-blue-600); background: #eef6ff; box-shadow: 0 0 0 2px rgba(30, 123, 246, .09); }
.kp-channel-choice label.is-disabled { border-color: #dee5ed; background: #f7f9fb; cursor: not-allowed; opacity: .68; }
.kp-channel-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.kp-channel-choice i { width: 27px; color: #61758c; font-size: 22px; text-align: center; }
.kp-channel-choice label.is-selected i { color: var(--kp-blue-700); }
.kp-channel-choice strong, .kp-channel-choice small { display: block; }
.kp-channel-choice strong { color: var(--kp-navy-800); font-size: 13px; }
.kp-channel-choice small { margin-top: 2px; color: var(--kp-muted); font-size: 10px; }
.kp-phone-input { display: grid; grid-template-columns: 116px minmax(0, 1fr); }
.kp-phone-input .kp-country-code { position: relative; min-height: 42px; margin: 0; }
.kp-country-selected { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #cbd8e6; border-radius: 8px 0 0 8px; background: #fff; pointer-events: none; }
.kp-country-selected svg { width: 24px; height: 16px; flex: 0 0 24px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(7, 25, 42, .13); }
.kp-country-selected strong { flex: 1; color: var(--kp-navy-800); font-size: 13px; font-weight: 680; font-variant-numeric: tabular-nums; }
.kp-country-selected i { color: #8292a5; font-size: 13px; }
.kp-phone-input .kp-country-code .form-select { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.kp-phone-input > .form-control { border-left: 0; border-radius: 0 8px 8px 0; }
.kp-phone-input:focus-within { border-radius: 8px; box-shadow: 0 0 0 .15rem rgba(30, 123, 246, .14); }
.kp-phone-input:focus-within .form-select,
.kp-phone-input:focus-within .form-control { border-color: #82b4f6; box-shadow: none; }
.kp-code-form { margin: 20px 0 16px; text-align: left; }
.kp-code-form .form-control { height: 62px; margin-bottom: 12px; font-size: 28px; font-weight: 750; letter-spacing: .34em; text-align: center; font-variant-numeric: tabular-nums; }
.kp-login-shell { min-height: calc(100vh - 150px); }
.kp-login-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kp-login-methods label { display: flex; min-height: 70px; align-items: center; gap: 11px; padding: 12px 13px; border: 1px solid #cbd8e6; border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.kp-login-methods label:hover { border-color: #98bceb; background: #f8fbff; }
.kp-login-methods label.is-selected { border-color: var(--kp-blue-600); background: #eef6ff; box-shadow: 0 0 0 2px rgba(30, 123, 246, .09); }
.kp-login-methods label.is-disabled { border-color: #dee5ed; background: #f7f9fb; cursor: not-allowed; opacity: .68; }
.kp-login-methods input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.kp-login-methods i { width: 29px; color: #63768b; font-size: 23px; text-align: center; }
.kp-login-methods label.is-selected i { color: var(--kp-blue-700); }
.kp-login-methods strong, .kp-login-methods small { display: block; }
.kp-login-methods strong { color: var(--kp-navy-800); font-size: 12px; }
.kp-login-methods small { margin-top: 2px; color: var(--kp-muted); font-size: 10px; }
.kp-invited-phone { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #bfe3cd; border-radius: 10px; background: #f2fbf6; }
.kp-invited-phone-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 10px; background: #dcf5e6; color: #15924c; font-size: 23px; }
.kp-invited-phone > div { min-width: 0; flex: 1; }
.kp-invited-phone small, .kp-invited-phone strong { display: block; }
.kp-invited-phone small { color: #657b6d; font-size: 10px; }
.kp-invited-phone strong { margin-top: 2px; color: #155d35; font-size: 14px; }
.kp-invited-phone > i { color: #72a487; }
.kp-channel-explanation { margin: 10px 2px 0; color: var(--kp-muted); font-size: 11px; line-height: 1.45; }
.kp-whatsapp-login-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; border-color: #188e4c; background: #188e4c; font-weight: 720; }
.kp-whatsapp-login-button:hover, .kp-whatsapp-login-button:focus { border-color: #11753d; background: #11753d; }
.kp-code-login { padding-top: 3px; }
.kp-code-login-icon { display: grid; width: 54px; height: 54px; margin: 0 auto 14px; place-items: center; border-radius: 16px; background: #e5f8ed; color: #16924c; font-size: 31px; box-shadow: 0 0 0 6px #f2fbf6; }
.kp-auth-kicker { display: block; margin-bottom: 5px; color: #168747; font-size: 10px; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; }
.kp-code-login h1 { margin: 0; color: var(--kp-navy-900); font-size: 27px; font-weight: 790; letter-spacing: -.03em; }
.kp-code-login p { margin: 7px 0 0; color: var(--kp-muted); font-size: 13px; }
.kp-login-secondary-actions { display: grid; gap: 8px; }
.kp-login-secondary-actions form, .kp-login-secondary-actions .btn { width: 100%; }
.kp-invitation-mobile-cancel { display: none; }
.kp-invitation-page { display: grid; min-height: calc(100vh - 118px); padding: 30px 0; place-items: center; }
.kp-invitation-panel { width: min(100%, 900px); padding: 27px 40px 22px; border: 1px solid var(--kp-border); border-radius: 14px; background: #fff; box-shadow: 0 12px 34px rgba(7, 25, 42, .055); }
.kp-invitation-heading { text-align: center; }
.kp-invitation-heading .kp-invitation-icon { margin: 0 auto 12px; }
.kp-invitation-heading h1 { margin: 0; color: var(--kp-text); font-size: clamp(23px, 2vw, 29px); font-weight: 800; letter-spacing: -.035em; line-height: 1.18; }
.kp-invitation-heading p { margin: 7px 0 0; color: var(--kp-muted); font-size: 14px; }
.kp-invitation-heading strong { color: var(--kp-navy-800); }
.kp-invitation-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 25px 0 26px; padding: 0; list-style: none; }
.kp-invitation-steps li { position: relative; display: flex; min-width: 0; align-items: center; flex-direction: column; gap: 8px; color: #75869a; font-size: 12px; font-weight: 680; text-align: center; }
.kp-invitation-steps li:not(:last-child)::after { position: absolute; top: 19px; left: calc(50% + 25px); width: calc(100% - 50px); height: 1px; background: #cfd9e4; content: ""; }
.kp-invitation-steps li.is-complete:not(:last-child)::after { background: var(--kp-blue-600); }
.kp-invitation-step-marker { position: relative; z-index: 1; display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid #c8d4e1; border-radius: 50%; background: #f7f9fc; color: #687a8f; font-size: 13px; font-weight: 800; }
.kp-invitation-steps li.is-complete, .kp-invitation-steps li.is-current { color: var(--kp-blue-700); }
.kp-invitation-steps li.is-complete .kp-invitation-step-marker, .kp-invitation-steps li.is-current .kp-invitation-step-marker { border-color: var(--kp-blue-600); background: var(--kp-blue-600); color: #fff; }
.kp-invitation-steps li.is-current .kp-invitation-step-marker { box-shadow: 0 0 0 4px #dcecff; }
.kp-invitation-state { padding: 20px 22px; border: 1px solid #cfe0f4; border-radius: 10px; background: #f2f7fd; }
.kp-invitation-state-heading { display: flex; align-items: flex-start; gap: 13px; }
.kp-invitation-state-heading > span { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 9px; background: #dcecff; color: var(--kp-blue-700); font-size: 18px; }
.kp-invitation-state-heading h2 { margin: 1px 0 0; color: var(--kp-text); font-size: 17px; font-weight: 780; letter-spacing: -.015em; }
.kp-invitation-state-heading p { margin: 3px 0 0; color: var(--kp-muted); font-size: 12px; line-height: 1.4; }
.kp-invitation-account-list { margin: 16px 0 0 51px; }
.kp-invitation-account-list > div { display: grid; min-height: 52px; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 18px; padding: 8px 12px; border: 1px solid #dbe5f0; background: #fff; }
.kp-invitation-account-list > div:first-child { border-radius: 8px 8px 0 0; }
.kp-invitation-account-list > div + div { border-top: 0; border-radius: 0 0 8px 8px; }
.kp-invitation-account-list dt { display: flex; align-items: center; gap: 8px; color: #64768b; font-size: 11px; font-weight: 650; }
.kp-invitation-account-list dd { min-width: 0; margin: 0; }
.kp-invitation-account-list dd strong, .kp-invitation-account-list dd span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-invitation-account-list dd strong { color: var(--kp-navy-800); font-size: 12px; }
.kp-invitation-account-list dd span { margin-top: 2px; color: var(--kp-muted); font-size: 10px; }
.kp-invitation-state--simple { max-width: 620px; margin-inline: auto; }
.kp-invited-email { display: flex; align-items: center; gap: 9px; margin: 16px 0 0 51px; padding: 12px 14px; border: 1px solid #d5e1ef; border-radius: 8px; background: #fff; color: var(--kp-navy-800); font-size: 13px; overflow-wrap: anywhere; }
.kp-invited-email i { color: var(--kp-blue-600); }
.kp-invitation-explanation { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin: 14px 0; color: #596c82; font-size: 12px; line-height: 1.4; }
.kp-invitation-explanation i { margin-top: 1px; color: var(--kp-blue-600); }
.kp-invitation-actions { display: grid; max-width: 620px; gap: 9px; margin: 15px auto 0; }
.kp-invitation-actions form { margin: 0; }
.kp-invitation-actions .btn { width: 100%; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.kp-invitation-security { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 20px; padding-top: 17px; border-top: 1px solid #dce4ed; color: #718297; font-size: 11px; text-align: center; }
.kp-verification-result { margin: -5px 0 18px; color: #52677f; font-size: 12px; line-height: 1.45; }
.kp-email-help { margin: 0 0 18px; padding: 12px 14px; border-radius: 8px; background: #f3f7fb; }
.kp-email-help strong, .kp-email-help span { display: block; }
.kp-email-help strong { color: var(--kp-navy-800); font-size: 12px; }
.kp-email-help span { margin-top: 2px; color: var(--kp-muted); font-size: 11px; line-height: 1.4; }
.kp-team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.kp-team-person { display: flex; align-items: center; gap: 11px; min-height: 68px; padding: 12px 18px; border-bottom: 1px solid var(--kp-border); }
.kp-team-person:last-child { border-bottom: 0; }
.kp-team-person > div { min-width: 0; flex: 1; }
.kp-team-person strong, .kp-team-person span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-team-person span { margin-top: 2px; color: var(--kp-muted); font-size: 11px; }
.kp-team-person small { color: var(--kp-blue-700); font-size: 10px; font-weight: 750; }
.kp-team-category-form { display: flex; align-items: center; gap: 6px; }
.kp-team-category-form .form-select { min-width: 120px; font-size: 12px; }
.kp-invite-form { display: grid; grid-template-columns: minmax(250px, 1.4fr) minmax(190px, .7fr) auto; align-items: end; gap: 14px; padding: 18px; }
.kp-invite-form--channels { grid-template-columns: minmax(240px, 1.3fr) minmax(160px, .65fr) minmax(140px, .55fr); }
.kp-invite-form--channels .kp-invite-phone { grid-column: 1 / 3; }
.kp-invite-form--channels > .btn { grid-column: 3; }
.kp-invite-link { display: flex; align-items: center; gap: 18px; padding: 15px 18px; border: 1px solid #b9dec9; border-radius: var(--kp-radius); background: #f2fbf6; }
.kp-invite-link > div:first-child { min-width: 220px; }
.kp-invite-link strong, .kp-invite-link span { display: block; }
.kp-invite-link span { margin-top: 2px; color: var(--kp-muted); font-size: 12px; }
.kp-invite-link .input-group { min-width: 0; flex: 1; }
.kp-whatsapp-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .65fr); gap: 20px; }
.kp-surface-footer { display: flex; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid var(--kp-border); background: #fbfcfe; }
.kp-isolation-note { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; border: 1px solid #cae0f9; border-radius: 9px; background: #f3f8fe; }
.kp-isolation-note > i { margin-top: 2px; color: var(--kp-blue-700); font-size: 20px; }
.kp-isolation-note strong, .kp-isolation-note span { display: block; }
.kp-isolation-note strong { color: var(--kp-navy-800); font-size: 12px; }
.kp-isolation-note span { margin-top: 2px; color: var(--kp-muted); font-size: 11px; line-height: 1.45; }
.kp-connection-card h3 { margin: 15px 0 3px; color: var(--kp-navy-900); font-size: 18px; font-weight: 770; }
.kp-connection-card p { margin: 0; color: var(--kp-muted); font-size: 12px; }
.kp-whatsapp-device { display: grid; width: 68px; height: 68px; margin-inline: auto; place-items: center; border-radius: 20px; background: #eef2f7; color: #8190a2; font-size: 36px; }
.kp-whatsapp-device.is-connected { background: #e5f8ed; color: #22a85a; box-shadow: 0 0 0 6px #f2fbf6; }
.kp-whatsapp-qr { display: block; width: min(100%, 230px); aspect-ratio: 1; margin: 18px auto 0; border: 10px solid #fff; border-radius: 12px; box-shadow: 0 0 0 1px #d6e0eb, 0 12px 28px rgba(7, 25, 42, .08); object-fit: contain; }
.kp-eyebrow { display: block; margin-bottom: 5px; color: var(--kp-blue-700); font-size: 10px; font-weight: 780; letter-spacing: .12em; text-transform: uppercase; }
.kp-live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.kp-whatsapp-setup { overflow: hidden; }
.kp-setup-progress { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; border-bottom: 1px solid var(--kp-border); background: #fbfcfe; list-style: none; }
.kp-setup-progress li { display: flex; align-items: center; gap: 11px; min-height: 76px; padding: 15px 22px; color: #8996a8; }
.kp-setup-progress li + li { border-left: 1px solid var(--kp-border); }
.kp-setup-progress li > span { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border: 1px solid var(--kp-border-strong); border-radius: 50%; background: #fff; font-size: 11px; font-weight: 780; }
.kp-setup-progress strong, .kp-setup-progress small { display: block; }
.kp-setup-progress strong { color: inherit; font-size: 12px; }
.kp-setup-progress small { margin-top: 2px; font-size: 10px; }
.kp-setup-progress li.is-current { background: #f1f7ff; color: var(--kp-blue-700); }
.kp-setup-progress li.is-current > span { border-color: var(--kp-blue-600); background: var(--kp-blue-600); color: #fff; box-shadow: 0 0 0 5px rgba(20, 125, 255, .1); }
.kp-setup-progress li.is-complete { color: #13864b; }
.kp-setup-progress li.is-complete > span { border-color: #b9e5cc; background: #e9f9ef; color: #13864b; }
.kp-connect-stage { display: grid; grid-template-columns: minmax(220px, .62fr) minmax(0, 1.2fr); align-items: center; min-height: 370px; padding: clamp(32px, 5vw, 62px); background: radial-gradient(circle at 17% 50%, #edf7ff 0, rgba(237, 247, 255, 0) 36%); }
.kp-connect-visual { position: relative; display: grid; width: 150px; height: 150px; margin-inline: auto; place-items: center; border: 1px solid #cfe3fa; border-radius: 42px; background: linear-gradient(145deg, #fff, #e9f4ff); color: var(--kp-blue-600); box-shadow: 0 22px 50px rgba(19, 74, 127, .12); font-size: 78px; transform: rotate(-3deg); }
.kp-connect-visual::before { position: absolute; inset: -12px; border: 1px solid rgba(20, 125, 255, .12); border-radius: 52px; content: ""; }
.kp-connect-visual.is-connected { border-color: #bfe7cf; background: linear-gradient(145deg, #fff, #e5f8ed); color: #20a858; }
.kp-connect-visual.is-warning { color: var(--kp-amber-500); }
.kp-connect-visual > span { position: absolute; right: -8px; bottom: -8px; display: grid; width: 44px; height: 44px; place-items: center; border: 5px solid #fff; border-radius: 50%; background: #20a858; color: #fff; font-size: 17px; transform: rotate(3deg); }
.kp-connect-copy { max-width: 650px; }
.kp-connect-kicker { display: block; margin-bottom: 7px; color: var(--kp-blue-700); font-size: 11px; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; }
.kp-connect-copy h2 { margin: 0; color: var(--kp-navy-900); font-size: clamp(25px, 3vw, 36px); font-weight: 790; letter-spacing: -.035em; }
.kp-connect-copy > p { max-width: 590px; margin: 12px 0 0; color: var(--kp-muted); font-size: 15px; line-height: 1.65; }
.kp-connect-copy > small { display: block; margin-top: 13px; color: #728196; font-size: 10px; line-height: 1.45; }
.kp-connect-action { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 250px; min-height: 50px; margin-top: 23px; border-radius: 10px; font-size: 14px; font-weight: 750; }
.kp-ready-capabilities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 23px; }
.kp-ready-capabilities span { padding: 8px 11px; border: 1px solid #cde7d8; border-radius: 8px; background: #f1fbf5; color: #27794a; font-size: 11px; font-weight: 650; }
.kp-ready-capabilities i { margin-right: 3px; }
.kp-qr-panel { text-align: center; }
.kp-qr-frame { display: inline-block; padding: 12px; border: 1px solid #d0dae6; border-radius: 16px; background: #fff; box-shadow: 0 18px 45px rgba(7, 25, 42, .12); }
.kp-qr-frame img { display: block; width: 230px; height: 230px; object-fit: contain; }
.kp-qr-wait { display: block; margin-top: 14px; color: var(--kp-muted); font-size: 11px; font-weight: 650; }
.kp-qr-wait > span { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--kp-amber-500); box-shadow: 0 0 0 4px rgba(216, 138, 20, .12); }
.kp-phone-steps { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.kp-phone-steps li { display: flex; align-items: center; gap: 11px; color: var(--kp-muted); font-size: 13px; line-height: 1.45; }
.kp-phone-steps li > span { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; border-radius: 8px; background: #eef5fd; color: var(--kp-blue-700); font-size: 10px; font-weight: 780; }
.kp-auto-check { display: block; margin-top: 10px; color: var(--kp-muted); font-size: 10px; }
.kp-whatsapp-lower-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .55fr); gap: 20px; margin-top: 20px; }
.kp-channel-security .kp-surface-body { display: grid; gap: 2px; }
.kp-security-item { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; }
.kp-security-item + .kp-security-item { border-top: 1px solid var(--kp-border); }
.kp-security-item > i { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 9px; background: #eef5fd; color: var(--kp-blue-700); font-size: 16px; }
.kp-security-item strong, .kp-security-item span { display: block; }
.kp-security-item strong { color: var(--kp-navy-800); font-size: 12px; }
.kp-security-item span { margin-top: 3px; color: var(--kp-muted); font-size: 10px; line-height: 1.45; }
.kp-advanced-toggle { display: flex; align-items: center; gap: 7px; margin: 18px auto 0; padding: 7px 10px; border: 0; background: transparent; color: #7b899a; font-size: 10px; }
.kp-advanced-toggle:hover { color: var(--kp-blue-700); }
.kp-advanced-settings { overflow: hidden; }

.kp-app .dropdown-menu { padding: 7px; border-color: var(--kp-border); border-radius: 10px; box-shadow: 0 16px 38px rgba(7, 25, 42, .13); }
.kp-app .dropdown-item { min-height: 38px; padding: 9px 11px; border-radius: 7px; color: var(--kp-navy-800); font-size: 13px; }
.kp-app .dropdown-item:hover { background: #f1f6fd; color: var(--kp-blue-700); }
.kp-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 20px; }
.kp-list-row { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 12px 18px; border-bottom: 1px solid var(--kp-border); }
.kp-list-row:last-child { border-bottom: 0; }
.kp-list-row-main { min-width: 0; flex: 1; }
.kp-list-row-title { overflow: hidden; margin: 0; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.kp-list-row-meta { overflow: hidden; margin-top: 2px; color: var(--kp-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.kp-mobile-list { display: none; }
.kp-form-section + .kp-form-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--kp-border); }
.kp-form-section-title { margin: 0 0 14px; font-size: 14px; font-weight: 750; }
.kp-derived-field { display: flex; min-height: 62px; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid #cfe0f4; border-radius: 10px; background: #f3f8fe; }
.kp-derived-field > span { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 9px; background: #dcecff; color: var(--kp-blue-700); font-size: 17px; }
.kp-derived-field small, .kp-derived-field strong { display: block; }
.kp-derived-field small { color: #6c7f95; font-size: 10px; font-weight: 650; }
.kp-derived-field strong { margin-top: 2px; color: var(--kp-navy-800); font-size: 14px; }
.kp-danger-zone { border-color: #f3c7c3; background: #fffafa; }
.kp-phase + .kp-phase { border-top: 1px solid var(--kp-border); }
.kp-phase > summary { display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 14px 18px; cursor: pointer; list-style: none; }
.kp-phase > summary::-webkit-details-marker { display: none; }
.kp-phase > summary::before { width: 8px; height: 8px; border-right: 2px solid var(--kp-muted); border-bottom: 2px solid var(--kp-muted); content: ""; transform: rotate(-45deg); transition: transform .15s ease; }
.kp-phase[open] > summary::before { transform: rotate(45deg); }
.kp-phase-summary-main { min-width: 0; flex: 1; }
.kp-phase-content { border-top: 1px solid var(--kp-border); }
.kp-judge-page-header { align-items: center; margin-bottom: 18px; }
.kp-judge-refresh { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.kp-judge-current, .kp-judge-other { overflow: hidden; border: 1px solid var(--kp-border); border-radius: var(--kp-radius); background: #fff; }
.kp-judge-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--kp-border); }
.kp-judge-section-heading h2 { margin: 0; color: var(--kp-navy-900); font-size: 16px; font-weight: 760; }
.kp-judge-section-heading > span { color: var(--kp-muted); font-size: 12px; }
.kp-judge-current-heat { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 23px 24px; border-left: 4px solid var(--kp-blue-600); }
.kp-judge-current-heat + .kp-judge-current-heat { border-top: 1px solid var(--kp-border); }
.kp-judge-current-heat.is-scoring { border-left-color: var(--kp-aqua-500); }
.kp-judge-current-main { min-width: 0; }
.kp-judge-current-state { display: inline-flex; align-items: center; gap: 8px; color: var(--kp-blue-700); font-size: 12px; font-weight: 750; }
.kp-judge-current-heat.is-scoring .kp-judge-current-state { color: #087b69; }
.kp-judge-live-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--kp-blue-600); }
.kp-judge-current-heat.is-scoring .kp-judge-live-dot { background: var(--kp-aqua-500); }
.kp-judge-current-main h3 { margin: 8px 0 0; color: var(--kp-navy-900); font-size: 23px; font-weight: 780; letter-spacing: -.025em; line-height: 1.25; }
.kp-judge-current-main h3 span, .kp-judge-current-main p span { color: #8a9aad; font-weight: 400; }
.kp-judge-current-main p { margin: 4px 0 0; color: var(--kp-muted); font-size: 13px; line-height: 1.4; }
.kp-judge-current-athlete { margin-top: 12px; color: var(--kp-muted); font-size: 12px; }
.kp-judge-current-athlete strong { color: var(--kp-navy-800); }
.kp-judge-current-athlete span { color: var(--kp-muted); }
.kp-judge-open-heat { display: inline-flex; min-height: 42px; flex: 0 0 auto; align-items: center; gap: 10px; padding-inline: 17px; }
.kp-judge-no-current { display: flex; flex-wrap: wrap; gap: 5px 8px; padding: 22px 24px; color: var(--kp-muted); font-size: 13px; }
.kp-judge-no-current strong { color: var(--kp-navy-800); }
.kp-judge-other { margin-top: 16px; }
.kp-judge-other > summary { display: flex; min-height: 62px; align-items: center; gap: 12px; padding: 15px 22px; list-style: none; cursor: pointer; }
.kp-judge-other > summary::-webkit-details-marker { display: none; }
.kp-judge-other > summary:focus-visible { outline: 2px solid var(--kp-blue-600); outline-offset: -3px; }
.kp-judge-other > summary > span { color: var(--kp-navy-800); font-size: 14px; font-weight: 740; }
.kp-judge-other > summary small { flex: 1; color: var(--kp-muted); font-size: 12px; }
.kp-judge-other > summary i { color: var(--kp-muted); transition: transform .15s ease; }
.kp-judge-other[open] > summary i { transform: rotate(180deg); }
.kp-judge-other-content { border-top: 1px solid var(--kp-border); }
.kp-judge-competition-group + .kp-judge-competition-group { border-top: 1px solid var(--kp-border); }
.kp-judge-competition-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 16px 22px 8px; }
.kp-judge-competition-heading strong { color: var(--kp-navy-900); font-size: 14px; }
.kp-judge-competition-heading span { color: var(--kp-muted); font-size: 12px; }
.kp-judge-heat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; padding: 0 22px 12px; }
.kp-judge-heat-link { display: flex; min-width: 0; min-height: 59px; align-items: center; gap: 12px; border-bottom: 1px solid #e8eef5; color: var(--kp-navy-800); text-decoration: none; }
.kp-judge-heat-link:hover { color: var(--kp-blue-700); text-decoration: none; }
.kp-judge-heat-link:focus-visible { outline: 2px solid var(--kp-blue-600); outline-offset: -2px; }
.kp-judge-heat-name { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 1px; }
.kp-judge-heat-name small { overflow: hidden; color: var(--kp-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.kp-judge-heat-name strong { overflow: hidden; font-size: 13px; font-weight: 710; text-overflow: ellipsis; white-space: nowrap; }
.kp-judge-heat-status { color: var(--kp-muted); font-size: 11px; white-space: nowrap; }
.kp-judge-heat-status.is-paused { color: #9b650d; }
.kp-judge-heat-link > i { color: #8b9bae; font-size: 14px; }
.kp-judge-unassigned { margin-top: 16px; color: var(--kp-muted); font-size: 13px; }
.kp-inline-summary { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--kp-muted); font-size: 13px; }
.kp-inline-summary strong { color: var(--kp-navy-800); }
.kp-quiet-danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 28px; padding: 14px 16px; border: 1px solid #f3c7c3; border-radius: var(--kp-radius); color: var(--kp-navy-800); }
.kp-quiet-danger-zone span { display: block; margin-top: 2px; color: var(--kp-muted); font-size: 12px; }
.kp-data-grid-head,
.kp-data-grid-row {
    display: grid;
    grid-template-columns: var(--kp-grid-columns, 44px minmax(220px, 1fr) 150px 150px 44px);
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
}
.kp-data-grid-head { min-height: 46px; border-bottom: 1px solid var(--kp-border); background: #f8fafc; color: #52657b; font-size: 11px; font-weight: 750; letter-spacing: .035em; text-transform: uppercase; }
.kp-data-grid-row { min-height: 72px; border-bottom: 1px solid var(--kp-border); }
.kp-data-grid-row:last-child { border-bottom: 0; }
.kp-data-grid-row:hover { background: #f8fbff; }
.kp-athlete-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.kp-athlete-thumb { width: 46px; height: 46px; flex: 0 0 46px; border: 1px solid var(--kp-border); border-radius: 50%; background: #edf2f7; object-fit: cover; }
.kp-test-data-badge { display: inline-flex; align-items: center; padding: 2px 7px; border: 1px solid #f2d48c; border-radius: 999px; background: #fff8e6; color: #9b6b09; font-size: 9px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; vertical-align: middle; }
.kp-athlete-profile-modal .modal-content { display: flex; height: min(880px, calc(100dvh - 48px)); max-height: calc(100dvh - 48px); }
.kp-athlete-profile-form { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; overflow: hidden; }
.kp-athlete-profile-form .modal-header, .kp-athlete-profile-form .modal-footer { flex: 0 0 auto; }
.kp-athlete-profile-form .modal-body { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; -webkit-overflow-scrolling: touch; }
.kp-athlete-profile-footer { justify-content: space-between; gap: 14px; }
.kp-athlete-profile-footer .kp-athlete-delete { min-width: auto; padding-right: 0; padding-left: 0; }
.kp-athlete-profile-actions { display: flex; gap: 8px; }
.kp-athlete-profile-photo { position: sticky; top: 0; min-height: 290px; }
.kp-athlete-form-stack { display: grid; gap: 14px; }
.kp-athlete-form-section { padding: 16px; border: 1px solid #dce5ef; border-radius: 12px; background: #fff; }
.kp-athlete-form-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.kp-athlete-form-heading > i { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 9px; background: #eaf3ff; color: var(--kp-blue-600); font-size: 16px; }
.kp-athlete-form-heading > div { display: grid; min-width: 0; }
.kp-athlete-form-heading strong { color: var(--kp-navy-800); font-size: 13px; }
.kp-athlete-form-heading span { color: #6a7b90; font-size: 10px; }
.kp-athlete-registration-count { min-width: 24px; margin-left: auto; padding: 3px 7px; border-radius: 999px; background: #edf3fa; color: #526981 !important; font-weight: 800; text-align: center; }
.kp-athlete-registration-card { overflow: hidden; border: 1px solid #dde6ef; border-radius: 10px; background: #fbfcfe; }
.kp-athlete-registration-card + .kp-athlete-registration-card { margin-top: 8px; }
.kp-athlete-registration-card summary { display: flex; cursor: pointer; list-style: none; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.kp-athlete-registration-card summary::-webkit-details-marker { display: none; }
.kp-athlete-registration-card summary > span:first-child { display: grid; min-width: 0; }
.kp-athlete-registration-card summary strong { overflow: hidden; color: var(--kp-navy-800); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.kp-athlete-registration-card summary small { color: #6f8094; font-size: 10px; }
.kp-athlete-registration-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; padding: 1px; border-top: 1px solid #e2e8f0; background: #e2e8f0; }
.kp-athlete-registration-grid > div { display: grid; gap: 3px; min-width: 0; padding: 10px 12px; background: #fff; }
.kp-athlete-registration-grid span, .kp-athlete-registration-note span { color: #77879a; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.kp-athlete-registration-grid strong { overflow: hidden; color: #263c55; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.kp-athlete-registration-note { display: grid; gap: 4px; padding: 11px 14px; border-top: 1px solid #e2e8f0; color: #42576e; font-size: 11px; }
.kp-athlete-registration-empty { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border-radius: 9px; background: #f5f8fb; color: #65778c; font-size: 11px; }
.kp-athlete-registration-empty i { margin-top: 2px; color: var(--kp-blue-600); }
.kp-athlete-registration-empty span { display: grid; }
.kp-athlete-registration-empty strong { color: #30475f; }
.kp-data-grid-mobile-meta { display: none; }
.kp-public-shell { background: var(--kp-canvas); }
.kp-public-shell > #wrapper > .navbar-custom { background: var(--kp-navy-950); }
.kp-public-shell > #wrapper > .container { padding-top: 98px !important; }
.kp-public-shell .kp-brand:hover { color: #fff; }
.kp-public-shell .form-control,
.kp-public-shell .form-select { min-height: 42px; border-color: var(--kp-border-strong); border-radius: var(--kp-radius-sm); color: var(--kp-text); font-size: 14px; }
.kp-public-shell .form-label { margin-bottom: 6px; color: var(--kp-navy-800); font-size: 13px; font-weight: 680; }
.kp-public-shell .btn { min-height: 40px; border-radius: var(--kp-radius-sm); font-size: 13px; font-weight: 680; }
.kp-public-shell .btn-primary { border-color: var(--kp-blue-600); background: var(--kp-blue-600); }
.kp-public-shell .btn-outline-primary { border-color: #9dc6fb; color: var(--kp-blue-700); }
.kp-public-shell .btn-outline-primary:hover { border-color: var(--kp-blue-700); background: var(--kp-blue-700); color: #fff; }
.kp-public-shell .page-item.active .page-link { border-color: var(--kp-blue-600); background: var(--kp-blue-600); }

@media (max-width: 1199.98px) {
    .kp-focus-band { grid-template-columns: 1.4fr 1fr auto; }
    .kp-focus-section:nth-child(3) { display: none; }
    .kp-dashboard-grid { grid-template-columns: 1fr; }
    .kp-tree-competition { grid-template-columns: minmax(220px, .9fr) minmax(390px, 1.3fr) auto; gap: 16px; }
    .kp-tree-facts { gap: 14px; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .kp-topbar-brand-group > .kite-version { display: none; }
    .kp-view-mode-tabs { right: 90px; left: 290px; justify-content: center; transform: none; }
}

@media (max-width: 991.98px) {
    .kp-whatsapp-grid { grid-template-columns: 1fr; }
    .kp-whatsapp-lower-grid { grid-template-columns: 1fr; }
    .kp-app .left-side-menu { top: 0; left: -250px; width: 240px; padding-top: 76px; transition: left .2s ease; }
    .kp-app.sidebar-enable .left-side-menu, body.sidebar-enable .left-side-menu { left: 0; }
    .kp-app .content-page { margin-left: 0; padding: 22px 18px 36px; }
    .kp-user-copy { display: none; }
    .kp-metric-rail { grid-template-columns: repeat(2, 1fr); }
    .kp-metric:nth-child(n+3) { border-top: 1px solid var(--kp-border); }
    .kp-metric:nth-child(odd) { border-left: 0; }
    .kp-tree-competition { grid-template-columns: minmax(0, 1fr) auto; }
    .kp-tree-facts { grid-column: 1 / -1; grid-row: 2; }
    .kp-tree-competition > .kp-row-actions { grid-column: 2; grid-row: 1; }
    .kp-team-grid { grid-template-columns: 1fr; }
    .kp-invite-form { grid-template-columns: 1fr 1fr; }
    .kp-invite-form .btn { grid-column: 1 / -1; }
    .kp-invite-link { align-items: stretch; flex-direction: column; }
    .kp-event-info-grid { gap: 18px; }
    .kp-event-field--name, .kp-event-field--location { grid-column: span 6; }
    .kp-event-field--slug, .kp-event-field--status, .kp-event-field--start, .kp-event-field--end { grid-column: span 3; }
}

@media (max-width: 767.98px) {
    .kp-invite-form--channels .kp-invite-phone,
    .kp-invite-form--channels > .btn { grid-column: 1; }
    .kp-topbar { padding: 0 14px; }
    .kp-setup-progress { grid-template-columns: 1fr; }
    .kp-setup-progress li { min-height: 62px; padding: 12px 16px; }
    .kp-setup-progress li + li { border-top: 1px solid var(--kp-border); border-left: 0; }
    .kp-connect-stage { grid-template-columns: 1fr; gap: 34px; min-height: auto; padding: 34px 20px; text-align: center; }
    .kp-connect-visual { width: 116px; height: 116px; border-radius: 32px; font-size: 60px; }
    .kp-connect-copy { margin-inline: auto; }
    .kp-connect-copy > p { font-size: 14px; }
    .kp-connect-action { width: 100%; min-width: 0; }
    .kp-ready-capabilities { justify-content: center; }
    .kp-phone-steps { text-align: left; }
    .kp-qr-frame img { width: min(210px, 62vw); height: min(210px, 62vw); }
    .kp-topbar-brand-group > .kite-version { display: none; }
    .kp-inocmon-brand { width: 36px; height: 42px; flex-basis: 36px; }
    .kp-inocmon-brand img { width: 126px; height: 42px; }
    .kp-view-mode-tabs { right: 60px; left: 112px; justify-content: flex-start; overflow-x: auto; transform: none; scrollbar-width: none; }
    .kp-view-mode-tabs::-webkit-scrollbar { display: none; }
    .kp-view-mode-tab { padding-inline: 8px; font-size: 11px; }
    .kp-view-mode-tab.active::after { right: 6px; left: 6px; }
    .kp-user-trigger { padding-inline: 2px; }
    .kp-user-trigger .kp-avatar { width: 31px; height: 31px; flex-basis: 31px; }
    .kp-brand-name { font-size: 17px; }
    .kite-version-build { display: none; }
    .kp-app .content-page { padding: 22px 14px 32px; }
    .kp-page-header { display: block; margin-bottom: 18px; }
    .kp-page-header h1, .kp-page-title { font-size: 30px; }
    .kp-page-header p, .kp-page-subtitle { font-size: 14px; }
    .kp-preview-banner { align-items: flex-start; flex-wrap: wrap; }
    .kp-preview-banner .btn { width: 100%; }
    .kp-preview-picker { align-items: stretch; flex-direction: column; }
    .kp-preview-picker .btn { width: 100%; }
    .kp-page-actions { margin-top: 16px; }
    .kp-page-actions .btn { flex: 1 1 auto; }
    .kp-toolbar { flex-wrap: wrap; padding: 13px; }
    .kp-toolbar .kp-search { width: 100%; }
    .kp-result-count { order: 5; width: 100%; margin: 2px 0 0; }
    .kp-desktop-table { display: none; }
    .kp-mobile-list { display: block; }
    .kp-focus-band { display: block; }
    .kp-focus-section { min-height: auto; padding: 16px; }
    .kp-focus-section + .kp-focus-section { border-top: 1px solid #d4e3f6; border-left: 0; }
    .kp-focus-section:nth-child(2), .kp-focus-section:nth-child(3) { display: none; }
    .kp-focus-section:last-child .btn { width: 100%; }
    .kp-metric { min-height: 76px; padding: 13px 14px; }
    .kp-metric i { font-size: 20px; }
    .kp-metric-value { font-size: 22px; }
    .kp-modal.modal.fade .modal-dialog { display: flex; align-items: flex-end; min-height: 100%; margin: 0; transform: translate(0, 48px); }
    .kp-modal.modal.show .modal-dialog { transform: none; }
    .kp-modal .modal-content { max-height: 92dvh; border-radius: 20px 20px 0 0; }
    .kp-modal .modal-header { position: relative; padding-top: 25px; }
    .kp-modal .modal-header::before { position: absolute; top: 8px; left: 50%; width: 54px; height: 5px; border-radius: 999px; background: #c7d0db; content: ""; transform: translateX(-50%); }
    .kp-modal .modal-body { overflow-y: auto; padding: 18px; }
    .kp-modal .modal-footer { position: sticky; bottom: 0; flex-wrap: nowrap; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); }
    .kp-modal .modal-footer .btn { flex: 1; min-height: 48px; }
    .kp-user-modal.modal.fade .modal-dialog { width: 100%; max-width: none; }
    .kp-user-modal .modal-content { max-height: 94dvh; }
    .kp-user-modal-header { min-height: 79px; padding: 25px 18px 14px !important; }
    .kp-user-modal-heading { gap: 10px; }
    .kp-user-modal-heading p { max-width: calc(100vw - 128px); }
    .kp-user-modal-icon, .kp-user-modal-avatar { width: 36px; height: 36px; flex-basis: 36px; }
    .kp-user-form-section { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
    .kp-user-form-section > header p { max-width: 330px; }
    .kp-user-form-grid--identity, .kp-user-form-grid--access { grid-template-columns: 1fr; }
    .kp-user-password-field { width: 100%; }
    .kp-user-modal-footer { min-height: 70px; padding: 11px 16px max(11px, env(safe-area-inset-bottom)); }
    .kp-user-modal-footer .btn { min-width: 0; }
    .kp-photo-field { display: block; text-align: center; }
    .kp-photo-field img { width: 96px; height: 96px; margin-bottom: 14px; }
    .kp-photo-actions { display: grid; }
    .kp-quiet-danger-zone { align-items: stretch; flex-direction: column; }
    .kp-quiet-danger-zone .btn { width: 100%; }
    .kp-data-grid-head { display: none; }
    .kp-data-grid-row { grid-template-columns: 30px minmax(0, 1fr) 42px; gap: 10px; min-height: 76px; padding: 12px 14px; }
    .kp-data-grid-desktop-only { display: none; }
    .kp-data-grid-mobile-meta { display: block; }
    .kp-athlete-thumb { width: 48px; height: 48px; flex-basis: 48px; }
    .kp-athlete-profile-modal .modal-content { height: 96dvh; max-height: 96dvh; }
    .kp-athlete-profile-footer { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 10px; }
    .kp-athlete-profile-footer .kp-athlete-delete { min-width: 0; white-space: nowrap; }
    .kp-athlete-profile-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .kp-athlete-profile-actions .btn { min-width: 0; }
    .kp-athlete-profile-modal .modal-body > .row { display: block; }
    .kp-athlete-profile-modal .kp-photo-field { position: static; height: auto !important; min-height: 0; margin-bottom: 16px; padding: 14px; }
    .kp-athlete-registration-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kp-tree-event-header { align-items: flex-start; flex-wrap: wrap; padding: 13px 14px; }
    .kp-tree-event-count { width: 100%; padding-left: 51px; }
    .kp-tree-children { padding-left: 12px; }
    .kp-tree-node { grid-template-columns: 25px minmax(0, 1fr); }
    .kp-tree-branch::before, .kp-tree-branch::after { left: 11px; }
    .kp-tree-branch > span { right: -3px; }
    .kp-tree-competition { gap: 13px; padding: 14px 14px 14px 7px; }
    .kp-tree-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .kp-invite-form { grid-template-columns: 1fr; }
    .kp-invite-form .btn { grid-column: 1; }
    .kp-topbar--invitation #mobile-menu-toggle, .kp-topbar--invitation .kp-view-mode-tabs, .kp-topbar--invitation > .dropdown { display: none !important; }
    .kp-topbar--invitation .kp-topbar-brand-group .kp-brand { display: inline-flex; }
    .kp-topbar--invitation .kp-topbar-brand-group .kite-version { display: none; }
    .kp-invitation-mobile-cancel { display: inline-flex; align-items: center; color: var(--kp-blue-700); font-size: 13px; font-weight: 700; text-decoration: none; }
    .kp-invitation-page { display: block; min-height: calc(100dvh - 104px); padding: 0; }
    .kp-invitation-panel { width: 100%; padding: 22px 2px 18px; border: 0; border-radius: 0; box-shadow: none; }
    .kp-invitation-heading { text-align: left; }
    .kp-invitation-heading .kp-invitation-icon { display: none; }
    .kp-invitation-heading h1 { font-size: 25px; line-height: 1.2; }
    .kp-invitation-heading p { font-size: 13px; line-height: 1.45; }
    .kp-invitation-steps { margin: 25px 0 27px; }
    .kp-invitation-steps li { gap: 7px; font-size: 10px; line-height: 1.25; }
    .kp-invitation-steps li:not(:last-child)::after { top: 18px; left: calc(50% + 22px); width: calc(100% - 44px); }
    .kp-invitation-step-marker { width: 37px; height: 37px; }
    .kp-invitation-state { padding: 17px 0 0; border-width: 1px 0 0; border-radius: 0; background: transparent; }
    .kp-invitation-state-heading > span { width: 36px; height: 36px; flex-basis: 36px; }
    .kp-invitation-state-heading h2 { font-size: 20px; line-height: 1.25; }
    .kp-invitation-account-list { margin: 14px 0 0; }
    .kp-invitation-account-list > div { min-height: 66px; grid-template-columns: 1fr; gap: 5px; padding: 11px 12px; }
    .kp-invitation-account-list dt { font-size: 10px; }
    .kp-invitation-account-list dd { padding-left: 24px; }
    .kp-invitation-account-list dd strong { font-size: 13px; overflow-wrap: anywhere; white-space: normal; }
    .kp-invited-email { margin-left: 0; }
    .kp-invitation-explanation { justify-content: flex-start; margin: 14px 0; }
    .kp-invitation-actions { max-width: none; margin-top: 14px; }
    .kp-invitation-actions .btn { min-height: 47px; white-space: normal; }
    .kp-invitation-security { align-items: flex-start; margin-top: 18px; line-height: 1.4; }
    .kp-event-modal.modal.fade .modal-dialog { width: 100%; max-width: none; height: 100dvh; min-height: 100dvh; align-items: stretch; margin: 0; transform: translate(0, 32px); }
    .kp-event-modal.modal.show .modal-dialog { transform: none; }
    .kp-event-modal .modal-content { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
    .kp-event-modal.kp-event-roster-collapsed.modal.fade .modal-dialog { align-items: flex-end; }
    .kp-event-modal.kp-event-roster-collapsed .modal-content { height: auto; max-height: calc(100dvh - 16px); border-radius: 14px 14px 0 0; }
    .kp-event-modal-header { min-height: 67px; align-items: center; padding: 12px 16px 10px; }
    .kp-event-modal-header .modal-title { font-size: 18px; }
    .kp-event-modal-header p { max-width: calc(100vw - 72px); font-size: 11px; }
    .kp-event-tabs { min-height: 49px; gap: 20px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
    .kp-event-tabs::-webkit-scrollbar { display: none; }
    .kp-event-tab { flex: 0 0 auto; font-size: 12px; }
    .kp-event-modal .kp-event-modal-body { padding: 16px; }
    .kp-event-pane-heading { min-height: 42px; gap: 12px; margin-bottom: 13px; }
    .kp-event-pane-heading p { max-width: 270px; }
    .kp-event-info-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 15px 12px; }
    .kp-event-field--name, .kp-event-field--slug, .kp-event-field--status, .kp-event-field--location { grid-column: 1 / -1; }
    .kp-event-field--start, .kp-event-field--end { grid-column: span 6; }
    .kp-event-field .form-label { margin-bottom: 5px; }
    .kp-event-field .form-control, .kp-event-field .form-select { min-height: 44px; }
    .kp-event-live-setting { min-height: 68px; padding: 11px 12px; }
    .kp-event-live-icon { width: 36px; height: 36px; flex-basis: 36px; }
    .kp-team-picker-grid { height: auto; grid-template-columns: 1fr; gap: 14px; }
    .kp-team-picker-grid .kp-assignment-picker { min-height: 0; }
    .kp-judge-policy { margin-bottom: 14px; padding: 11px 12px; }
    .kp-judge-assignment-grid { grid-template-columns: 1fr; gap: 17px; }
    .kp-competition-judging-section { margin-top: 20px; padding-top: 17px; }
    .kp-judge-picker { height: auto; max-height: 332px; }
    .kp-judge-picker .kp-picker-options { max-height: 220px; }
    .kp-judge-master-panel { padding: 0; }
    .kp-judge-master-heading { margin-bottom: 14px; }
    .kp-judge-selection-summary { margin-top: 15px; }
    .kp-athlete-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
    .kp-athlete-toolbar .kp-picker-search { width: 100%; }
    .kp-athlete-competition-filter { width: 100%; min-width: 0; flex-basis: auto; }
    .kp-picker-filters { align-self: flex-start; }
    .kp-athlete-bulkbar { align-items: stretch; flex-direction: column; }
    .kp-athlete-bulkbar > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kp-athlete-bulkbar .btn { min-height: 38px; white-space: normal; }
    .kp-athlete-change-notice { align-items: flex-start; }
    .kp-seed-modal .modal-content { height: 94dvh; max-height: 94dvh; }
    .kp-seed-list { min-height: 0; max-height: none; flex: 1; }
    .kp-seed-toolbar { align-items: stretch; flex-direction: column; gap: 8px; }
    .kp-seed-toolbar .kp-picker-filters { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kp-seed-toolbar .kp-picker-filters button { padding-inline: 8px; }
    .kp-roster-summary { flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 0 2px 8px; }
    .kp-roster-summary .btn { order: 3; width: 100%; }
    .kp-seed-option { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
    .kp-roster-controls { grid-column: 1 / -1; justify-content: flex-end; gap: 13px; padding: 3px 0 0 47px; }
    .kp-seed-toggle { align-items: center; flex-direction: row; }
    .kp-athlete-options { grid-template-columns: minmax(0, 1fr); }
    .kp-event-competition-row { align-items: stretch; flex-direction: column; gap: 12px; }
    .kp-event-competition-row .btn { align-self: flex-start; }
    .kp-event-roster-details > summary { gap: 9px; padding-inline: 12px; }
    .kp-event-modal .kp-event-modal-footer { display: flex; min-height: 64px; gap: 8px; padding: 9px 12px max(9px, env(safe-area-inset-bottom)); }
    .kp-event-modal-footer .kp-event-footer-start { min-width: 0; flex: 0 1 auto; }
    .kp-event-modal-footer > .btn { min-width: 0; min-height: 44px; flex: 1 1 0; padding-right: 13px; padding-left: 13px; white-space: nowrap; }
    .kp-event-modal .kp-event-modal-footer > .btn-light { flex-grow: .72; }
    .kp-event-modal .kp-event-modal-footer > .btn-primary { flex-grow: 1.28; }
    .kp-event-delete-modal .modal-dialog { width: 100%; max-width: none; }
    .kp-event-delete-modal .modal-content { max-height: 92dvh; }
    .kp-event-delete-header { gap: 11px; padding: 22px 17px 14px; }
    .kp-event-delete-header .modal-title { font-size: 18px; }
    .kp-event-delete-icon { width: 38px; height: 38px; font-size: 17px; }
    .kp-event-delete-body { padding: 16px !important; }
    .kp-event-delete-warning { padding: 12px; }
    .kp-event-delete-impact { margin-top: 16px; }
    .kp-event-delete-impact-item { align-items: flex-start; padding: 12px; }
    .kp-event-delete-footer { flex-direction: column-reverse; gap: 8px; }
    .kp-event-delete-footer .btn { width: 100%; flex: none; }
}

@media (max-width: 420px) {
    .kp-brand-mark { width: 32px; height: 32px; }
    .kp-brand-name { font-size: 15px; }
    .kite-version { padding-inline: 5px; }
    .kp-login-shell { align-items: flex-start !important; }
    .kp-login-card { padding: 22px 18px !important; }
    .kp-login-card .kp-invitation-context { margin-bottom: 15px !important; padding: 11px 12px; }
    .kp-login-card .kp-invitation-steps { margin: 17px 0 19px; }
    .kp-login-card > .text-center .kp-brand-mark { display: none; }
    .kp-login-card > .text-center { margin-bottom: 12px !important; }
    .kp-login-methods label { min-height: 64px; padding: 10px; }
    .kp-invited-phone { padding: 12px; }
    .kp-auth-note { margin-top: 12px; }
    .kp-event-modal .kp-event-modal-footer { flex-wrap: wrap; }
    .kp-event-modal-footer .kp-event-footer-start { width: 100%; flex: 0 0 100%; order: 2; justify-content: center; margin-right: 0; }
    .kp-event-modal-footer .kp-event-footer-start .btn { min-height: 30px; padding: 2px 8px; }
    .kp-tree-competition { grid-template-columns: minmax(0, 1fr); }
    .kp-tree-competition > .kp-row-actions { grid-column: 1; grid-row: 3; justify-content: flex-start; }
    .kp-tree-facts { grid-column: 1; }
}

/* Invitation — editorial split layout */
.kp-invitation-shell.kp-public-shell {
    background: #f5f8fc;
}

body.kp-invitation-shell {
    padding-bottom: 0;
}

.kp-invitation-shell.kp-public-shell > #wrapper > .navbar-custom {
    height: 68px;
    border-bottom: 1px solid #dbe4ef;
    background: #fff;
    box-shadow: none;
}

.kp-invitation-shell.kp-public-shell > #wrapper > .container {
    width: 100%;
    max-width: none;
    padding: 68px 0 0 !important;
}

.kp-invitation-shell.kp-public-shell .kp-brand,
.kp-invitation-shell.kp-public-shell .kp-brand:hover {
    color: var(--kp-navy-900);
}

.kp-invite-page {
    display: grid;
    min-height: calc(100dvh - 68px);
    padding: min(86px, 8vh) 28px 40px;
    place-items: start center;
}

.kp-invite-surface {
    display: grid;
    width: min(100%, 1364px);
    min-height: min(744px, calc(100dvh - 180px));
    grid-template-areas:
        "context workspace"
        "security workspace";
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);
    grid-template-rows: 1fr auto;
    overflow: hidden;
    border: 1px solid #cfdbe8;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 14px 42px rgba(7, 25, 42, .035);
}

.kp-invite-context-panel {
    display: flex;
    min-width: 0;
    grid-area: context;
    flex-direction: column;
    padding: 70px 44px 24px;
}

.kp-invite-event h1 {
    margin: 0;
    padding-bottom: 29px;
    border-bottom: 1px solid #d7e1ec;
    color: #07192a;
    font-size: clamp(27px, 2.35vw, 34px);
    font-weight: 790;
    letter-spacing: -.04em;
    line-height: 1.14;
}

.kp-invite-event p {
    margin: 26px 0 0;
    color: #50657f;
    font-size: 16px;
    line-height: 1.55;
}

.kp-invite-event strong {
    color: #07192a;
    font-weight: 760;
}

.kp-invite-context-panel .kp-invitation-steps {
    display: flex;
    margin: 45px 0 0;
    flex-direction: column;
    gap: 0;
}

.kp-invite-context-panel .kp-invitation-steps li {
    min-height: 72px;
    align-items: center;
    flex-direction: row;
    gap: 20px;
    color: #52677f;
    font-size: 14px;
    font-weight: 650;
    text-align: left;
}

.kp-invite-context-panel .kp-invitation-steps li:not(:last-child)::after {
    top: 47px;
    left: 20px;
    width: 2px;
    height: 25px;
    background: #cdd8e5;
}

.kp-invite-context-panel .kp-invitation-steps li.is-complete:not(:last-child)::after {
    background: var(--kp-blue-600);
}

.kp-invite-context-panel .kp-invitation-step-marker {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-color: #c6d4e4;
    background: #f8fafc;
    color: #52677f;
    font-size: 14px;
}

.kp-invite-context-panel .kp-invitation-steps li.is-current .kp-invitation-step-marker {
    box-shadow: 0 0 0 4px #e1efff;
}

.kp-invite-context-panel .kp-invitation-steps li.is-current {
    font-weight: 760;
}

.kp-invite-workspace {
    display: flex;
    min-width: 0;
    grid-area: workspace;
    justify-content: center;
    flex-direction: column;
    padding: 70px 50px;
    border-left: 1px solid #dbe4ee;
}

.kp-invite-task-header h2 {
    margin: 0;
    color: #07192a;
    font-size: clamp(28px, 2.6vw, 36px);
    font-weight: 790;
    letter-spacing: -.04em;
    line-height: 1.14;
}

.kp-invite-task-header p {
    margin: 13px 0 0;
    color: #536a86;
    font-size: 15px;
    line-height: 1.55;
}

.kp-invite-email-field {
    margin-top: 40px;
}

.kp-invite-email-field > span {
    display: block;
    margin-bottom: 8px;
    color: #304763;
    font-size: 13px;
    font-weight: 720;
}

.kp-invite-email-field > div {
    display: flex;
    min-width: 0;
    min-height: 64px;
    align-items: center;
    gap: 18px;
    padding: 14px 20px;
    border: 1px solid #cad8e8;
    border-radius: 9px;
    background: #f9fbfd;
    color: #07192a;
}

.kp-invite-email-field i {
    flex: 0 0 auto;
    color: #29425e;
    font-size: 22px;
}

.kp-invite-email-field strong {
    min-width: 0;
    overflow: hidden;
    font-size: 16px;
    font-weight: 720;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kp-invite-email-note {
    display: flex;
    min-height: 62px;
    align-items: center;
    gap: 14px;
    margin: 31px 0 0;
    padding: 15px 18px;
    border-radius: 9px;
    background: #eef6ff;
    color: #426184;
    font-size: 13px;
    line-height: 1.45;
}

.kp-invite-email-note i {
    flex: 0 0 auto;
    color: var(--kp-blue-600);
    font-size: 18px;
}

.kp-invite-actions {
    display: grid;
    gap: 17px;
    margin-top: 32px;
}

.kp-invite-actions form {
    margin: 0;
}

.kp-invite-actions .kp-invite-primary {
    display: inline-flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 13px 22px;
    border: 1px solid var(--kp-blue-600);
    border-radius: 9px;
    background: var(--kp-blue-600);
    color: #fff;
    font-size: 14px;
    font-weight: 740;
    line-height: 1.25;
    text-decoration: none;
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.kp-invite-actions .kp-invite-primary:hover {
    border-color: var(--kp-blue-700);
    background: var(--kp-blue-700);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.kp-invite-actions .kp-invite-primary:focus-visible,
.kp-invite-secondary:focus-visible {
    outline: 0;
    box-shadow: var(--kp-focus);
}

.kp-invite-actions .kp-invite-primary i {
    font-size: 17px;
}

.kp-invite-secondary {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border: 0;
    background: transparent;
    color: #526a86;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
}

.kp-invite-secondary:hover {
    color: var(--kp-blue-700);
    text-decoration: underline;
}

.kp-invite-security {
    display: flex;
    min-width: 0;
    grid-area: security;
    align-items: flex-start;
    gap: 13px;
    margin: 0 44px;
    padding: 24px 0 42px;
    border-top: 1px solid #d7e1ec;
    color: #5d7390;
    font-size: 12px;
    line-height: 1.5;
}

.kp-invite-security i {
    flex: 0 0 auto;
    margin-top: 2px;
    font-size: 17px;
}

.kp-invite-account-list {
    margin: 38px 0 0;
}

.kp-invite-account-list > div {
    display: grid;
    min-width: 0;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid #dbe4ee;
}

.kp-invite-account-list > div:first-child {
    border-top: 1px solid #dbe4ee;
}

.kp-invite-account-list dt {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #60748d;
    font-size: 12px;
    font-weight: 680;
}

.kp-invite-account-list dd {
    min-width: 0;
    margin: 0;
}

.kp-invite-account-list dd strong,
.kp-invite-account-list dd span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kp-invite-account-list dd strong {
    color: #07192a;
    font-size: 13px;
}

.kp-invite-account-list dd span {
    margin-top: 3px;
    color: #718298;
    font-size: 11px;
}

@media (max-width: 991.98px) {
    .kp-invite-page {
        padding: 32px 20px;
        place-items: center;
    }

    .kp-invite-surface {
        min-height: 570px;
    }

    .kp-invite-context-panel {
        padding: 48px 30px 20px;
    }

    .kp-invite-workspace {
        padding: 48px 34px;
    }

    .kp-invite-security {
        margin-inline: 30px;
        padding-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .kp-invitation-shell.kp-public-shell > #wrapper > .navbar-custom {
        height: 62px;
    }

    .kp-invitation-shell.kp-public-shell > #wrapper > .container {
        padding-top: 62px !important;
    }

    .kp-invitation-shell .kp-topbar {
        height: 62px;
        padding-inline: 16px;
    }

    .kp-invite-page {
        display: block;
        min-height: calc(100dvh - 62px);
        padding: 14px 12px 26px;
    }

    .kp-invite-surface {
        display: grid;
        width: 100%;
        min-height: 0;
        grid-template-areas:
            "context"
            "workspace"
            "security";
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        border-radius: 13px;
    }

    .kp-invite-context-panel {
        padding: 24px 22px 21px;
    }

    .kp-invite-event h1 {
        padding-bottom: 0;
        border-bottom: 0;
        font-size: clamp(24px, 7.4vw, 29px);
        line-height: 1.16;
    }

    .kp-invite-event p {
        margin-top: 13px;
        font-size: 14px;
        line-height: 1.48;
    }

    .kp-invite-context-panel .kp-invitation-steps {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin: 24px 0 0;
    }

    .kp-invite-context-panel .kp-invitation-steps li {
        min-height: 58px;
        align-items: center;
        flex-direction: column;
        gap: 7px;
        font-size: 9px;
        line-height: 1.25;
        text-align: center;
    }

    .kp-invite-context-panel .kp-invitation-steps li:not(:last-child)::after {
        top: 16px;
        left: calc(50% + 20px);
        width: calc(100% - 40px);
        height: 2px;
    }

    .kp-invite-context-panel .kp-invitation-step-marker {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 12px;
    }

    .kp-invite-context-panel .kp-invitation-steps li.is-current .kp-invitation-step-marker {
        box-shadow: 0 0 0 3px #e1efff;
    }

    .kp-invite-workspace {
        padding: 24px 22px 25px;
        border-top: 1px solid #dbe4ee;
        border-left: 0;
    }

    .kp-invite-task-header h2 {
        font-size: 25px;
        line-height: 1.16;
    }

    .kp-invite-task-header p {
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.45;
    }

    .kp-invite-email-field {
        margin-top: 20px;
    }

    .kp-invite-email-field > span {
        margin-bottom: 6px;
        font-size: 11px;
    }

    .kp-invite-email-field > div {
        min-height: 50px;
        gap: 12px;
        padding: 10px 13px;
    }

    .kp-invite-email-field i {
        font-size: 18px;
    }

    .kp-invite-email-field strong {
        font-size: 13px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .kp-invite-email-note {
        min-height: 0;
        gap: 11px;
        margin-top: 16px;
        padding: 12px 13px;
        font-size: 11px;
        line-height: 1.4;
    }

    .kp-invite-email-note i {
        font-size: 16px;
    }

    .kp-invite-actions {
        gap: 12px;
        margin-top: 18px;
    }

    .kp-invite-actions .kp-invite-primary {
        min-height: 50px;
        padding: 11px 14px;
        font-size: 12px;
    }

    .kp-invite-secondary {
        min-height: 27px;
        font-size: 11px;
    }

    .kp-invite-security {
        gap: 10px;
        margin: 0 22px;
        padding: 19px 0 22px;
        font-size: 10px;
    }

    .kp-invite-security i {
        font-size: 15px;
    }

    .kp-invite-account-list {
        margin-top: 22px;
    }

    .kp-invite-account-list > div {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 12px 0;
    }

    .kp-invite-account-list dd {
        padding-left: 22px;
    }

    .kp-invite-account-list dd strong,
    .kp-invite-account-list dd span {
        overflow-wrap: anywhere;
        text-overflow: clip;
        white-space: normal;
    }
}

.kp-division-tree { overflow: hidden; }
.kp-division-tree-header { gap: 18px; }
.kp-tree-toolbar { display: flex; align-items: center; gap: 8px; }
.kp-tree-toolbar .kp-result-count { margin-right: 4px; white-space: nowrap; }
.kp-tree-list { border-top: 1px solid #e0e8f1; }
.kp-tree-modality { border-bottom: 1px solid #e0e8f1; }
.kp-tree-modality:last-child { border-bottom: 0; }
.kp-tree-modality > summary { display: flex; min-height: 82px; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; list-style: none; transition: background-color .18s ease; }
.kp-tree-modality > summary::-webkit-details-marker { display: none; }
.kp-tree-modality > summary:hover { background: #f7faff; }
.kp-tree-modality[open] > summary { background: #f7faff; }
.kp-tree-modality-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 1px solid #cfe0f4; border-radius: 11px; background: #eaf3ff; color: #1e73e8; font-size: 18px; }
.kp-tree-modality-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.kp-tree-modality-copy strong { color: #122b45; font-size: 16px; font-weight: 700; }
.kp-tree-modality-copy small { color: #71839a; font-size: 12px; }
.kp-tree-chevron { color: #8293a7; font-size: 17px; transition: transform .18s ease; }
.kp-tree-modality[open] > summary .kp-tree-chevron { transform: rotate(180deg); }
.kp-tree-divisions { position: relative; padding: 4px 20px 12px 35px; border-top: 1px solid #e8eef5; background: #fbfcfe; }
.kp-tree-divisions::before { position: absolute; top: 0; bottom: 34px; left: 56px; width: 1px; background: #cbd9e8; content: ''; }
.kp-tree-division { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); }
.kp-tree-connector { position: relative; min-height: 72px; }
.kp-tree-connector::after { position: absolute; top: 34px; right: 0; left: 21px; height: 1px; background: #cbd9e8; content: ''; }
.kp-tree-connector i { position: absolute; z-index: 1; top: 28px; left: 15px; width: 13px; height: 13px; border: 3px solid #fbfcfe; border-radius: 50%; background: #2f80ed; box-shadow: 0 0 0 1px #aac6e7; }
.kp-tree-division-content { min-width: 0; padding: 17px 0 9px 16px; }
.kp-tree-division-header { display: flex; align-items: flex-start; gap: 14px; }
.kp-tree-division-header > div { min-width: 0; flex: 1; }
.kp-tree-division-header > div > strong { color: #193550; font-size: 14px; font-weight: 700; }
.kp-tree-division-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 5px; color: #74869a; font-size: 11px; }
.kp-tree-division-meta span { display: inline-flex; align-items: center; gap: 5px; }
.kp-tree-division-meta i { color: #9aabba; font-size: 12px; }
.kp-tree-division-meta .is-active, .kp-tree-division-meta .is-active i { color: #1b9c89; }
.kp-division-tree .kp-tree-competitions { margin-top: 12px; overflow: hidden; border: 1px solid #e0e8f1; border-radius: 9px; background: #fff; }
.kp-division-tree .kp-tree-competition { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 54px; padding: 9px 12px; border-bottom: 1px solid #edf1f5; }
.kp-division-tree .kp-tree-competition:last-child { border-bottom: 0; }
.kp-tree-competition-branch { color: #9badc0; font-size: 14px; }
.kp-tree-competition-copy { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.kp-tree-competition-copy a { overflow: hidden; color: #244460; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.kp-tree-competition-copy a:hover { color: #1976e9; }
.kp-tree-competition-copy small { overflow: hidden; color: #8292a5; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.kp-tree-competition-status { display: inline-flex; align-items: center; gap: 5px; color: #6f8194; font-size: 10px; font-weight: 700; white-space: nowrap; }
.kp-tree-competition-status::before { width: 6px; height: 6px; border-radius: 50%; background: #9aabba; content: ''; }
.kp-tree-competition-status.is-active { color: #138773; }
.kp-tree-competition-status.is-active::before { background: #2fc5ad; }
.kp-tree-competition-status.is-archived { color: #a56d16; }
.kp-tree-competition-status.is-archived::before { background: #e0a13c; }
.kp-tree-competition-empty { display: flex; min-height: 48px; align-items: center; gap: 9px; padding: 10px 13px; color: #8a9aab; font-size: 11px; }

@media (max-width: 767.98px) {
    .kp-judge-page-header { display: flex; align-items: flex-start; gap: 10px; }
    .kp-judge-page-header > div { min-width: 0; flex: 1; }
    .kp-judge-page-header p { font-size: 12px; line-height: 1.4; }
    .kp-judge-refresh { flex: 0 0 auto; padding-inline: 9px; font-size: 11px; }
    .kp-judge-section-heading { padding: 14px 16px; }
    .kp-judge-current-heat { align-items: stretch; flex-direction: column; gap: 17px; padding: 18px 16px; }
    .kp-judge-current-main h3 { font-size: 19px; }
    .kp-judge-current-main p { font-size: 12px; }
    .kp-judge-current-athlete { line-height: 1.5; }
    .kp-judge-open-heat { justify-content: center; width: 100%; }
    .kp-judge-no-current { padding: 18px 16px; }
    .kp-judge-other > summary { flex-wrap: wrap; gap: 2px 8px; padding: 13px 16px; }
    .kp-judge-other > summary > span { flex: 1; }
    .kp-judge-other > summary small { order: 3; flex-basis: 100%; font-size: 11px; }
    .kp-judge-competition-heading { padding: 14px 16px 7px; }
    .kp-judge-heat-list { grid-template-columns: minmax(0, 1fr); padding: 0 16px 10px; }
}

@media (max-width: 767.98px) {
    .kp-division-tree-header { align-items: flex-start; }
    .kp-tree-toolbar { width: 100%; flex-wrap: wrap; }
    .kp-tree-toolbar .kp-result-count { margin-right: auto; }
    .kp-tree-modality > summary { min-height: 74px; gap: 10px; padding: 13px 14px; }
    .kp-tree-modality-icon { width: 38px; height: 38px; flex-basis: 38px; }
    .kp-tree-modality-copy strong { font-size: 14px; }
    .kp-tree-modality-copy small { font-size: 10px; }
    .kp-tree-modality > summary > .kp-status { display: none; }
    .kp-tree-divisions { padding: 2px 12px 10px 16px; }
    .kp-tree-divisions::before { left: 33px; }
    .kp-tree-division { grid-template-columns: 34px minmax(0, 1fr); }
    .kp-tree-connector::after { left: 17px; }
    .kp-tree-connector i { left: 11px; }
    .kp-tree-division-content { padding-left: 10px; }
    .kp-tree-division-meta { gap: 5px 11px; }
    .kp-division-tree .kp-tree-competition { grid-template-columns: 20px minmax(0, 1fr); padding: 9px 10px; }
    .kp-tree-competition-status { grid-column: 2; margin-top: 2px; }
}

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

/* Event athletes: one list, explicit profile actions and separate membership changes. */
.kp-event-roster { display: flex; flex-direction: column; gap: 14px; }
.kp-event-roster-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.kp-event-roster-heading h3 { margin: 0; font-size: 18px; }
.kp-event-roster-heading p { margin: 4px 0 0; color: var(--kp-muted); font-size: 13px; }
.kp-event-roster-heading > span { white-space: nowrap; color: var(--kp-blue-700); font-weight: 700; }
.kp-event-roster-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kp-event-roster-controls .kp-picker-search { margin: 0; flex: 1 1 220px; }
.kp-event-roster-controls .form-select { flex: 1 1 230px; width: auto; min-height: 42px; font-size: 13px; }
.kp-event-roster-controls .kp-picker-filters button { min-height: 38px; font-size: 13px; }
.kp-event-roster-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--kp-muted); font-size: 12px; }
.kp-event-roster-list { border: 1px solid var(--kp-border); border-radius: 12px; background: white; }
.kp-event-roster-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
.kp-event-roster-row + .kp-event-roster-row { border-top: 1px solid var(--kp-border); }
.kp-event-roster-row[hidden] { display: none; }
.kp-event-roster-photo { width: 58px; height: 64px; flex: 0 0 58px; object-fit: contain; border-radius: 9px; background: #f0f4f8; }
.kp-event-roster-identity { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.kp-event-roster-identity > strong, .kp-event-roster-identity > span, .kp-event-roster-identity > small { display: block; }
.kp-event-roster-identity > strong { color: var(--kp-navy-800); font-size: 15px; }
.kp-event-roster-identity > span, .kp-event-roster-identity > small { color: var(--kp-muted); font-size: 12px; }
.kp-event-roster-actions { display: flex; gap: 8px; align-items: center; }
.kp-event-roster-actions .btn { min-height: 42px; font-size: 12px; }
.kp-event-modal[data-active-tab="athletes"] .kp-event-footer-start { display: none; }
.kp-event-roster [hidden] { display: none !important; }
@media(max-width: 767.98px) {
    .kp-event-roster-heading { align-items: flex-start; }
    .kp-event-roster-heading h3 { font-size: 16px; }
    .kp-event-roster-controls { gap: 8px; }
    .kp-event-roster-controls > * { width: 100%; flex-basis: 100% !important; }
    .kp-event-roster-controls .kp-picker-filters button { flex: 1; }
    .kp-event-roster-summary { flex-wrap: wrap; }
    .kp-event-roster-row { flex-wrap: wrap; gap: 10px; padding: 12px; }
    .kp-event-roster-actions { flex: 1 0 100%; }
    .kp-event-roster-actions .btn { flex: 1; }
    .kp-event-roster-photo { width: 48px; height: 56px; flex-basis: 48px; }
}

/* Athlete identity: the actual competition name is the primary preview. */
.kp-identity-modal .modal-dialog { max-width: 1140px; }
.kp-identity-modal .modal-content { height: auto; max-height: calc(100dvh - 48px); }
.kp-identity-modal .modal-header { padding: 26px 32px 22px; }
.kp-identity-modal .modal-title { font-size: 28px; letter-spacing: -.025em; }
.kp-identity-modal .modal-header p { margin: 5px 0 0; color: #60758f; font-size: 14px; }
.kp-identity-modal .modal-body { padding: 26px 32px 30px; }
.kp-identity-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 30px; }
.kp-identity-grid h3 { margin: 0 0 20px; color: var(--kp-navy-800); font-size: 20px; font-weight: 750; letter-spacing: -.015em; }
.kp-identity-preview { display: flex; align-items: center; gap: 20px; min-height: 172px; padding: 24px; border-radius: 10px; background: #eaf4ff; }
.kp-identity-avatar { position: relative; display: grid; place-items: center; width: 76px; height: 76px; flex: 0 0 76px; overflow: hidden; border-radius: 50%; background: #c9e1fb; color: #245b98; font-size: 25px; font-weight: 750; }
.kp-identity-avatar img { width: 100%; height: 100%; object-fit: contain; }
.kp-identity-caption { min-width: 0; }
.kp-identity-caption strong { display: block; color: #10283f; font-size: clamp(28px, 3vw, 42px); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; overflow-wrap: anywhere; }
.kp-identity-caption > span { display: block; margin-top: 10px; color: #4c6a8b; font-size: 13px; line-height: 1.5; }
.kp-identity-saved { margin: 12px 0 4px; color: #60758f; font-size: 14px; overflow-wrap: anywhere; }
.kp-identity-saved strong { color: #18364f; }
.kp-identity-state { min-height: 22px; margin: 0 0 22px; color: #60758f; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.kp-identity-draft .kp-identity-state { color: #075cbe; }
.kp-identity-modal .form-label { font-size: 14px; }
.kp-identity-modal .form-control { min-height: 48px; font-size: 16px; }
.kp-identity-modal .form-text { font-size: 13px; line-height: 1.6; color: #60758f; }
.kp-identity-legal { display: grid; gap: 6px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--kp-border); font-size: 14px; overflow-wrap: anywhere; }
.kp-identity-legal span { color: #60758f; }
.kp-identity-legal strong { color: #18364f; font-weight: 650; }
.kp-identity-photo-section { min-width: 0; padding-left: 28px; border-left: 1px solid var(--kp-border); }
.kp-identity-modal .kp-photo-field { position: static; min-height: 0; padding: 0; border: 0; background: transparent; gap: 20px; }
.kp-identity-modal [data-photo-preview] { width: 204px !important; height: 204px !important; max-width: 100% !important; border: 1px solid #d3dfec; }
.kp-identity-photo-empty { display: grid; place-content: center; gap: 10px; width: 204px; height: 204px; max-width: 100%; border: 1px solid #d3dfec; border-radius: 10px; background: #f1f5f9; color: #71869d; }
.kp-identity-photo-empty i { font-size: 62px; line-height: 1; }
.kp-identity-photo-empty span { font-size: 13px; }
.kp-identity-modal [data-athlete-photo-editor] > .d-flex { display: grid !important; grid-template-columns: 1fr 1.25fr; gap: 12px !important; }
.kp-identity-modal [data-athlete-photo-editor] .btn { padding: 10px 8px; font-size: 13px; }
.kp-identity-modal [data-athlete-photo-editor] [data-approve-photo],
.kp-identity-modal [data-athlete-photo-editor] [data-cancel-photo],
.kp-identity-modal [data-editor-status] { grid-column: 1 / -1; }
.kp-identity-modal [data-editor-status] { margin-top: 4px; text-align: left; }
.kp-identity-modal .modal-footer { display: flex; justify-content: space-between; gap: 14px; padding: 18px 32px; background: #fff; }
.kp-identity-modal .modal-footer p { margin: 0; color: #60758f; font-size: 13px; }
.kp-identity-modal .btn { min-height: 48px; }
.kp-identity-actions { display: flex; gap: 10px; }
.kp-identity-modal [hidden] { display: none !important; }
@media (max-width: 767.98px) {
    .kp-identity-modal .modal-dialog { margin: 8px; min-height: calc(100dvh - 16px); }
    .kp-identity-modal .modal-content { height: auto; max-height: calc(100dvh - 16px); }
    .kp-identity-modal .modal-header { padding: 18px 18px 16px; }
    .kp-identity-modal .modal-title { font-size: 23px; }
    .kp-identity-modal .modal-header p { font-size: 12px; }
    .kp-identity-modal .modal-body { padding: 20px 18px; }
    .kp-identity-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .kp-identity-grid h3 { margin-bottom: 14px; font-size: 17px; }
    .kp-identity-preview { min-height: 122px; padding: 18px 14px; gap: 12px; }
    .kp-identity-avatar { width: 52px; height: 52px; flex-basis: 52px; font-size: 19px; }
    .kp-identity-caption strong { font-size: 28px; }
    .kp-identity-caption > span { margin-top: 7px; font-size: 12px; }
    .kp-identity-state { margin-bottom: 18px; }
    .kp-identity-photo-section { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--kp-border); }
    .kp-identity-modal .kp-photo-field { padding: 0; margin: 0; }
    .kp-identity-modal .modal-footer { padding: 12px 18px; gap: 8px; flex-wrap: wrap; }
    .kp-identity-modal .modal-footer p { width: 100%; font-size: 11px; }
    .kp-identity-actions { width: 100%; }
    .kp-identity-actions .btn { flex: 1 1 0; min-width: 0; margin: 0; }
}

/* Inline camera avoids the native file-capture handoff and full-resolution photos. */
.kp-camera-panel { width: 100%; max-width: 360px; }
.kp-camera-panel[hidden] { display: none !important; }
.kp-camera-panel video { display: block; width: 100%; height: 260px; border-radius: 10px; background: #10283f; object-fit: contain; }
.kp-camera-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.kp-camera-actions .btn { min-height: 44px; white-space: normal; }
.kp-camera-open > [data-photo-preview], .kp-camera-open > [data-identity-photo-empty] { display: none !important; }
.kp-camera-open [data-open-camera] { display: none !important; }
.kp-camera-open label[for^="gallery-"] { display: none !important; }

.kp-identity-modal [data-athlete-photo-editor] [data-remove-background] { grid-column: 1 / -1; }

.kp-identity-modal [data-remove-background]:hover, .kp-identity-modal [data-remove-background]:focus { background: #eaf4ff; border-color: #7ab4fa; color: #075cbe; }

/* Keep the confirmation field and action within the first mobile viewport. */
@media (max-width: 575.98px) {
    .kp-verification-card { padding: 20px !important; }
    .kp-verification-card .kp-invitation-context { margin-bottom: 14px !important; padding: 10px; }
    .kp-verification-card .kp-invitation-steps { margin-block: 12px 20px; }
    .kp-verification-card > .kp-invitation-icon { display: none; }
    .kp-verification-card .kp-page-title { font-size: 24px !important; }
    .kp-verification-card .kp-code-form { margin-top: 14px; }
    .kp-verification-card .kp-page-subtitle { overflow-wrap: anywhere; }
}

/* Athlete management uses the page width; dialogs are reserved for individual actions. */
.kp-athlete-management-table { min-width: 760px; }
.kp-athlete-management-table .kp-athlete-cell { min-width: 210px; }
.kp-athlete-management-table .kp-row-actions { flex-wrap: nowrap; }
.kp-existing-athletes { max-height: 45dvh; overflow-y: auto; }
.kp-existing-athlete { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid #edf1f5; }
.kp-existing-athlete[hidden] { display: none; }
.kp-existing-athlete > div { min-width: 0; }
.kp-existing-athlete > form { flex-shrink: 0; }

.kp-toolbar .kp-athlete-search { display: flex; gap: 8px; width: min(520px, 100%); }
.kp-athlete-search .form-control { min-width: 0; }
.kp-athlete-search > button { flex-shrink: 0; }

/* Athlete photo workspace: one preview, six persistent drafts. */
.kp-photo-manager { --photo-blue:#1677ff; --photo-ink:#123047; --photo-muted:#60758f; --photo-border:#e3eaf2; }
.kp-photo-manager [hidden] { display:none !important; }
.kp-photo-manager .modal-dialog { max-width:1060px; }
.kp-photo-manager .modal-content { height:min(880px,calc(100dvh - 48px)); border-radius:18px; background:#fff; }
.kp-photo-manager .modal-header { padding:24px 28px 20px; }
.kp-photo-manager .modal-title { font-size:24px; line-height:1.25; font-weight:750; letter-spacing:-.025em; }
.kp-photo-manager .modal-header p { font-size:13px; }
.kp-photo-manager .modal-body { padding:24px 28px; scrollbar-gutter:auto; }
.kp-profile-tabs { display:flex; flex:0 0 auto; gap:8px; padding:0 28px; border-bottom:1px solid var(--photo-border); }
.kp-profile-tabs button { position:relative; background:none; border:0; padding:16px 24px; color:var(--photo-muted); font-size:14px; font-weight:650; line-height:20px; }
.kp-profile-tabs button[aria-selected=true] { color:var(--photo-blue); }
.kp-profile-tabs button[aria-selected=true]::after { content:''; position:absolute; bottom:-1px; left:0; right:0; height:3px; background:var(--photo-blue); border-radius:3px 3px 0 0; }
.kp-photo-manager button:focus-visible,.kp-photo-manager label:focus-within { outline:3px solid #83b7ff; outline-offset:2px; }
.kp-photo-heading h3 { margin:0 0 6px; font-size:24px; font-weight:750; line-height:1.25; color:var(--photo-ink); letter-spacing:-.02em; }
.kp-photo-heading p { color:var(--photo-muted); font-size:14px; margin:0 0 22px; line-height:1.5; }
.kp-photo-layout { display:grid; grid-template-columns:200px minmax(0,1fr); gap:24px; }
.kp-photo-rail { border:1px solid var(--photo-border); border-radius:10px; overflow:hidden; align-self:start; }
.kp-photo-choice { width:100%; display:flex; align-items:center; gap:12px; min-height:78px; padding:9px 12px; border:0; border-bottom:1px solid var(--photo-border); background:#fff; color:var(--photo-ink); text-align:left; }
.kp-photo-choice:last-child { border-bottom:0; }
.kp-photo-choice img { width:48px; height:52px; object-fit:contain; background:#f1f5f9; border-radius:6px; }
.kp-photo-choice strong { display:block; font-size:14px; line-height:20px; font-weight:650; }
.kp-photo-choice small { display:block; margin-top:3px; font-size:11px; line-height:15px; color:var(--photo-muted); }
.kp-photo-choice[aria-selected=true] { background:#eaf3ff; box-shadow:inset 3px 0 var(--photo-blue); color:var(--photo-blue); }
.kp-photo-choice:hover { background:#f3f7fc; }
.kp-photo-choice.has-draft small { color:#975a09; }
.kp-photo-panels,.kp-photo-panel { min-width:0; }
.kp-photo-manager .kp-photo-panel .kp-photo-field { display:grid !important; grid-template-columns:minmax(0,1.12fr) minmax(240px,1fr); gap:20px; align-items:stretch; padding:0; margin:0; min-height:0; border:0; background:transparent; position:static; text-align:left !important; }
.kp-photo-media { display:flex; align-items:center; justify-content:center; min-width:0; height:490px; max-height:calc(100dvh - 345px); background:repeating-conic-gradient(#f0f2f5 0% 25%,#fff 0% 50%) 50% / 20px 20px; border:1px solid var(--photo-border); border-radius:10px; overflow:hidden; }
.kp-photo-manager .kp-photo-media [data-photo-preview] { display:block; width:100% !important; height:100% !important; max-width:none !important; border:0; border-radius:0 !important; object-fit:contain; background:transparent !important; box-shadow:none; margin:0; }
.kp-photo-manager .kp-photo-panel .kp-photo-controls { display:flex !important; flex-direction:column; gap:10px !important; padding:18px; border:1px solid var(--photo-border); border-radius:10px; min-width:0; align-self:start; }
.kp-photo-controls h4 { font-size:20px; line-height:1.3; font-weight:750; letter-spacing:-.02em; color:var(--photo-ink); margin:0; }
.kp-photo-help { font-size:13px; line-height:1.5; color:var(--photo-muted); margin:0 0 8px; }
.kp-photo-manager .kp-photo-controls .btn { min-width:0; min-height:44px; width:100%; padding:10px 12px; margin:0; font-size:14px; line-height:22px; font-weight:600; border-radius:8px; }
.kp-photo-manager .kp-photo-controls .btn-primary { background:var(--photo-blue); border-color:var(--photo-blue); }
.kp-photo-controls [data-remove-background] { margin-top:10px !important; }
.kp-photo-manager .kp-photo-controls [data-editor-status] { color:var(--photo-muted); font-size:12px; line-height:1.5; text-align:left; margin:6px 0 0; }
.kp-photo-remove { display:flex; gap:8px; align-items:center; font-size:12px; color:var(--photo-muted); padding-top:10px; margin:0; border-top:1px solid var(--photo-border); }
.kp-photo-remove input { width:17px; height:17px; }
.kp-photo-manager .kp-camera-panel { padding:12px; }
.kp-photo-manager .kp-camera-open .kp-photo-media > [data-photo-preview],.kp-photo-manager .kp-camera-open .kp-photo-media > [data-identity-photo-empty] { display:none !important; }
.kp-photo-manager .kp-camera-panel video { max-height:300px; }
.kp-photo-manager .modal-footer { display:flex; align-items:center; gap:12px; flex-wrap:nowrap; padding:16px 28px; background:#fff; border-top:1px solid var(--photo-border); }
.kp-photo-manager .modal-footer .btn { min-height:44px; min-width:112px; font-size:14px; border-radius:8px; }
.kp-photo-save-hint { color:var(--photo-muted); font-size:12px; margin:0 auto 0 0; }
.kp-profile-photo-summary { display:flex; flex-direction:column; align-items:center; gap:16px; align-self:start; }
.kp-profile-photo-summary img { width:160px; height:180px; object-fit:contain; border-radius:10px; background:#f3f6fa; }
.kp-photo-manager .kp-identity-grid { grid-template-columns:minmax(0,1fr) 200px; }
@media(max-width:767.98px) {
 .kp-photo-manager .modal-dialog { margin:0; width:100%; max-width:none; min-height:100dvh; align-items:flex-end; }
 .kp-photo-manager .modal-content { height:96dvh; max-height:96dvh; border-radius:18px 18px 0 0; }
 .kp-photo-manager .modal-header { padding:26px 18px 14px; }
 .kp-photo-manager .modal-title { font-size:21px; }
 .kp-profile-tabs { padding:0 18px; }
 .kp-profile-tabs button { padding:12px 22px; }
 .kp-photo-manager .modal-body { padding:18px; }
 .kp-photo-heading h3 { font-size:20px; }
 .kp-photo-heading p { font-size:12px; margin-bottom:14px; }
 .kp-photo-layout { display:block; }
 .kp-photo-rail { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; border:0; margin-bottom:16px; overflow:visible; }
 .kp-photo-choice { flex-direction:column; align-items:center; gap:5px; min-height:0; padding:8px 3px; text-align:center; border:1px solid var(--photo-border) !important; border-radius:8px; }
 .kp-photo-choice img { width:30px; height:32px; }
 .kp-photo-choice strong { font-size:12px; line-height:16px; }
 .kp-photo-choice small { font-size:10px; line-height:12px; }
 .kp-photo-choice[aria-selected=true] { box-shadow:none; border-color:var(--photo-blue) !important; }
 .kp-photo-manager .kp-photo-panel .kp-photo-field { grid-template-columns:1fr; gap:14px; }
 .kp-photo-media { height:260px; max-height:none; }
 .kp-photo-manager .kp-photo-panel .kp-photo-controls { padding:16px; }
 .kp-photo-controls h4 { font-size:18px; }
 .kp-photo-manager .modal-footer { padding:12px 16px max(12px,env(safe-area-inset-bottom)); flex-wrap:wrap; gap:8px; }
 .kp-photo-save-hint { width:100%; font-size:11px; }
 .kp-photo-manager .kp-athlete-profile-actions,.kp-photo-manager .kp-identity-actions { display:flex; width:100%; gap:8px; }
 .kp-photo-manager .modal-footer .btn { min-width:0; flex:1; }
 .kp-photo-manager .kp-athlete-delete { flex-basis:100% !important; text-align:left; }
 .kp-photo-manager .kp-identity-grid { grid-template-columns:1fr; }
 .kp-profile-photo-summary { margin-bottom:18px; }
 .kp-profile-photo-summary img { width:96px; height:96px; }
}

.kp-profile-tabs button i { margin-right:9px; font-size:18px; vertical-align:-2px; }
.kp-photo-manager .kp-photo-controls .btn-link { color:var(--photo-blue); text-decoration:underline; }

.kp-photo-manager .kp-photo-controls [data-editor-status].text-danger { color:#b42318; }

/* Camera actions must not be clipped by the fixed photo-preview frame. */
.kp-photo-manager .kp-camera-open .kp-photo-media { height:auto; max-height:none; align-self:start; }
.kp-photo-manager .kp-camera-panel { max-width:none; }
.kp-photo-manager .kp-camera-panel video { height:min(260px,30dvh); min-height:100px; }
.kp-camera-actions { flex-shrink:0; }
.kp-photo-spinner { display:inline-block; width:16px; height:16px; margin-right:8px; vertical-align:-3px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:kp-photo-spin .7s linear infinite; }
@keyframes kp-photo-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .kp-photo-spinner { animation-duration:1.6s; } }
@media(max-width:767.98px) {
 .kp-photo-manager .kp-photo-controls { order:-1; }
 .kp-photo-manager .kp-camera-open .kp-photo-controls { order:0; }
 .kp-photo-manager .kp-camera-actions .btn { min-height:48px; padding:10px 8px; margin:0; }
}
