:root {
    --primary: #0606B8;
    --primary-dark: #020381;
    --secondary: #03C202;
    --success: #16A34A;
    --warning: #F59E0B;
    --error: #DC2626;
    --text: #111827;
    --muted: #6B7280;
    --line: #E5E7EB;
    --soft: #F7F8FA;
    --soft-blue: #F0F0FF;
    --surface: #FFFFFF;
    --shadow: 0 10px 30px rgba(0, 0, 0, .06);
    --radius: 12px;
    --radius-lg: 16px;
    font-family: Inter, system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: var(--soft);
    font-family: Inter, system-ui, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding: 0 clamp(24px, 5vw, 80px);
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
    transition: box-shadow .25s ease, min-height .25s ease;
}

.site-header.is-scrolled {
    min-height: 60px;
    box-shadow: var(--shadow);
}

.brand,
.top-nav,
.header-action {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    color: var(--primary);
    font-weight: 800;
    font-size: 18px;
}

.brand-mark,
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

.top-nav {
    gap: 28px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.top-nav a:hover {
    color: var(--primary);
}

.page {
    width: min(1280px, 100%);
    margin: 0 auto;
    padding: 56px clamp(24px, 5vw, 80px) 80px;
}

.invite-hero,
.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 48px;
    align-items: center;
    margin-bottom: 56px;
}

.dashboard-hero {
    grid-template-columns: 1fr auto;
    align-items: end;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(3, 194, 2, .2);
    color: #6b4c00;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

h1,
h2 {
    margin: 0;
    color: var(--text);
    letter-spacing: -1px;
}

h1 {
    max-width: 780px;
    font-size: clamp(36px, 6vw, 56px);
    line-height: 1.06;
}

h1 strong {
    color: var(--primary);
}

h2 {
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.14;
}

p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.benefit-grid,
.metric-grid,
.field-grid {
    display: grid;
    gap: 16px;
}

.benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
}

.benefit-grid article {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 4px 12px;
    padding: 16px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.benefit-grid span {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--soft-blue);
    color: var(--primary);
    font-weight: 800;
}

.benefit-grid small {
    color: var(--muted);
    line-height: 1.45;
}

.hero-card,
.panel,
.registration-panel,
.metric-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}

.hero-card {
    overflow: hidden;
}

.photo-band {
    min-height: 300px;
    background:
        linear-gradient(rgba(0, 87, 184, .08), rgba(0, 87, 184, .08)),
        url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1100&q=80") center/cover;
}

.reward-box {
    padding: 24px;
}

.reward-box div:first-child {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.progress {
    width: 100%;
    height: 12px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #E5E7EB;
}

.progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--success);
}

.registration-panel {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 36px;
    padding: clamp(24px, 4vw, 40px);
}

.form-intro p {
    margin-bottom: 0;
}

.registration-form,
.form-stack {
    display: grid;
    gap: 18px;
}

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

label {
    display: grid;
    gap: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #D1D5DB;
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

textarea {
    min-height: 96px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 87, 184, .12);
}

.terms {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.terms input {
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 800;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

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

.button-primary:hover {
    background: var(--primary-dark);
}

.button-outline {
    border-color: var(--primary);
    background: #fff;
    color: var(--primary);
}

.button-outline:hover {
    background: var(--soft-blue);
}

.button-cta {
    background: var(--secondary);
    color: #07224A;
}

.button-wide {
    grid-column: 1 / -1;
    width: 100%;
}

.auth-layout {
    display: grid;
    min-height: calc(100vh - 72px);
    place-items: center;
    padding: 40px 24px;
}

.compact-panel {
    width: min(520px, 100%);
}

.panel {
    padding: 28px;
}

.two-column,
.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.admin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    margin-bottom: 24px;
}

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

.metric-card {
    padding: 22px;
}

.metric-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.metric-card strong {
    display: block;
    margin-top: 8px;
    font-size: 34px;
    line-height: 1;
}

.copy-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin: 18px 0;
}

.icon-button {
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--primary);
    border-radius: 10px;
    background: #fff;
    color: var(--primary);
    cursor: pointer;
    font-weight: 800;
}

.qr-code {
    display: block;
    width: 220px;
    height: 220px;
    margin: 8px auto 22px;
    border: 12px solid #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

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

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 14px;
}

th {
    color: #374151;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.badge,
.level-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.badge.success {
    background: rgba(22, 163, 74, .12);
    color: var(--success);
}

.badge.warning {
    background: rgba(245, 158, 11, .14);
    color: #8a5800;
}

.level-list,
.message-list {
    display: grid;
    gap: 10px;
    margin: 16px 0 22px;
    padding: 0;
    list-style: none;
}

.level-pill {
    background: color-mix(in srgb, var(--level-color) 14%, white);
    color: var(--level-color);
}

.message-list li {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.message-list span {
    color: var(--muted);
    font-size: 12px;
}

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

.flash {
    position: fixed;
    left: 50%;
    top: 18px;
    z-index: 50;
    width: min(640px, calc(100% - 32px));
    transform: translateX(-50%);
    padding: 14px 18px;
    border: 1px solid rgba(0, 87, 184, .18);
    border-radius: 12px;
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow);
    font-weight: 700;
    transition: opacity .25s ease, transform .25s ease;
}

.flash.is-hiding {
    transform: translate(-50%, -8px);
    opacity: 0;
    pointer-events: none;
}

.simple-invite-page {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    background: #fff;
}

.simple-invite-shell {
    width: min(100%, 430px);
    min-height: 100vh;
    background: #fff;
}

.simple-invite-top {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #0606B8;
}

.simple-logo {
    display: block;
    width: 100%;
    aspect-ratio: 800 / 253;
}

.simple-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.simple-registration-form {
    display: grid;
    gap: 20px;
    padding: 26px 28px 12px;
}

.simple-form-head {
    margin-bottom: 4px;
    text-align: center;
}

.simple-form-head .inviter-line {
    width: fit-content;
    margin: 0 auto 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(3, 194, 2, .22);
    color: #087a08;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.simple-form-head h1 {
    max-width: none;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: 0;
}

.simple-form-head p {
    margin: 10px 0 0;
    color: #374151;
    font-size: 15px;
    line-height: 1.45;
}

.simple-registration-form label {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
}

.simple-registration-form label span {
    color: #ef476f;
}

.input-with-icon {
    position: relative;
    margin-top: 9px;
}

.input-with-icon i {
    position: absolute;
    left: 13px;
    top: 50%;
    z-index: 1;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    background: var(--primary);
    color: transparent;
    font-size: 0;
    font-style: normal;
    -webkit-mask: var(--icon) center / 21px 21px no-repeat;
    mask: var(--icon) center / 21px 21px no-repeat;
}

.input-with-icon .icon-phone {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.33 1.77.63 2.61a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.47-1.2a2 2 0 0 1 2.11-.45c.84.3 1.71.51 2.61.63A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
    background: #16A34A;
}

.input-with-icon .icon-user {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.input-with-icon .icon-users {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.input-with-icon .icon-calendar {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
    background: #F59E0B;
}

.input-with-icon .icon-gender {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='10' cy='14' r='5'/%3E%3Cpath d='M19 5h-5'/%3E%3Cpath d='M14 5v5'/%3E%3Cpath d='M14 5l-4.5 4.5'/%3E%3Cpath d='M10 19v3'/%3E%3Cpath d='M7 22h6'/%3E%3C/svg%3E");
    background: #6D5BD0;
}

.input-with-icon .icon-pin {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M20 10c0 5-8 12-8 12S4 15 4 10a8 8 0 1 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
    background: #10B981;
}

.input-with-icon .icon-instagram {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.2' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.4' cy='6.6' r='1' fill='black' stroke='none'/%3E%3C/svg%3E");
    background: #d62976;
}

.input-with-icon .icon-facebook {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 24 24'%3E%3Cpath d='M14 8.5V6.8c0-.8.5-1 1-1h2.5V2.1L14.2 2C10.8 2 9 4 9 6.5v2H6v4h3V22h5v-9.5h3.2l.5-4H14Z'/%3E%3C/svg%3E");
    background: #1877f2;
}

.input-with-icon .icon-email {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
    background: #6d5bd0;
}

.input-with-icon input,
.input-with-icon select {
    min-height: 52px;
    padding-left: 46px;
    border-color: #e6e8ec;
    border-radius: 7px;
    color: #111827;
    font-size: 15px;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .03);
}

.input-with-icon input::placeholder {
    color: #8b95a5;
}

.input-with-icon select {
    appearance: auto;
    color: #374151;
}

.simple-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: -6px;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.social-fields {
    display: grid;
    gap: 20px;
    margin: 2px -4px 0;
    padding: 22px 4px 2px;
    border-top: 1px solid var(--line);
}

.document-fields {
    display: grid;
    gap: 20px;
    margin: 2px -4px 0;
    padding: 22px 4px 2px;
    border-top: 1px solid var(--line);
}

.document-upload {
    position: relative;
    padding: 14px;
    border: 1px dashed #b8c0cc;
    border-radius: 8px;
    background: #f8fafc;
}

.document-upload input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.simple-registration-form .document-upload-action {
    display: inline-flex;
    margin-top: 12px;
    padding: 9px 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #0066F5 0%, #00A9E8 50%, #00C98B 100%);
    color: #FFFFFF;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.simple-registration-form .document-file-name {
    display: block;
    margin-top: 8px;
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.document-upload-progress {
    display: block;
    height: 5px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #dbe2ea;
}

.document-upload-progress[hidden] {
    display: none;
}

.document-upload-progress i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
    transition: width .15s linear;
}

.document-upload.is-uploaded {
    border-color: #16a34a;
    background: #f0fdf4;
}

.document-upload.is-uploaded .document-file-name {
    color: #15803d;
}

.document-upload.has-error {
    border-color: #dc2626;
    background: #fef2f2;
}

.document-upload.has-error .document-file-name {
    color: #b91c1c;
}

.document-preview {
    display: block;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 7px;
    background: #e5e7eb;
}

.document-preview[hidden] {
    display: none;
}

.document-preview img {
    display: block;
    width: 100%;
    max-height: 240px;
    object-fit: contain;
}

.social-fields-head h2 {
    color: #111827;
    font-size: 18px;
    letter-spacing: -.02em;
    line-height: 1.3;
}

.social-fields-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.simple-registration-form .social-fields label small {
    float: right;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.simple-check input {
    width: 18px;
    min-height: 18px;
    margin-top: 1px;
    border-radius: 5px;
    accent-color: var(--primary);
}

.simple-check a,
.already-registered a,
.simple-invite-footer a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: underline;
}

.simple-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 2px;
    border-radius: 7px;
    background: linear-gradient(90deg, #0066F5 0%, #00A9E8 50%, #00C98B 100%);
    color: #FFFFFF;
    font-size: 14px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.simple-submit:hover {
    background: linear-gradient(90deg, #0066F5 0%, #00A9E8 50%, #00C98B 100%);
}

.already-registered {
    margin: -2px 0 2px;
    color: #374151;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.simple-invite-footer {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 8px 28px 28px;
    color: #374151;
    font-size: 13px;
    text-align: center;
}

.simple-invite-footer span {
    color: var(--success);
    font-weight: 800;
}

.simple-invite-footer div {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.simple-invite-footer i {
    color: #9ca3af;
    font-style: normal;
}

.legal-modal {
    width: min(920px, calc(100% - 32px));
    height: min(88vh, 820px);
    max-width: none;
    max-height: none;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(2, 3, 45, .28);
}

.legal-modal::backdrop {
    background: rgba(2, 3, 45, .68);
    backdrop-filter: blur(3px);
}

.legal-modal[open] {
    display: grid;
    grid-template-rows: auto 1fr;
}

.legal-modal > header {
    display: flex;
    min-height: 60px;
    padding: 0 14px 0 22px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.legal-modal > header strong {
    color: #111827;
    font-size: 15px;
}

.legal-modal > header button {
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--soft-blue);
    color: var(--primary);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    place-items: center;
}

.legal-modal > header button:hover,
.legal-modal > header button:focus-visible {
    background: var(--primary);
    color: #fff;
}

.legal-modal iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--soft);
}

@media (max-width: 600px) {
    .legal-modal {
        width: calc(100% - 16px);
        height: calc(100dvh - 16px);
        border-radius: 12px;
    }
}

.legal-page {
    min-height: 100vh;
    padding-bottom: 72px;
    background: #f7f8fa;
}

.legal-topbar {
    width: min(100%, 430px);
    margin: 0 auto;
    overflow: hidden;
    background: var(--primary);
}

.legal-document {
    width: min(820px, calc(100% - 40px));
    margin: 36px auto 0;
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.legal-back {
    display: inline-flex;
    margin-bottom: 30px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
}

.legal-heading {
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.legal-heading span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--soft-blue);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.legal-heading h1 {
    max-width: 680px;
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.12;
}

.legal-heading p {
    margin: 12px 0 0;
    font-size: 14px;
}

.legal-document > p,
.legal-document section p,
.legal-document li {
    color: #374151;
    font-size: 16px;
    line-height: 1.75;
}

.legal-document > p:first-of-type {
    margin-top: 30px;
}

.legal-document section {
    padding-top: 24px;
}

.legal-document section h2 {
    color: #111827;
    font-size: 21px;
    letter-spacing: -.02em;
}

.legal-document section p {
    margin: 10px 0;
}

.legal-document ul {
    display: grid;
    gap: 6px;
    margin: 12px 0 18px;
    padding-left: 24px;
}

.legal-document li::marker {
    color: var(--primary);
}

.legal-document section a,
.legal-footer > a:last-child {
    color: var(--primary);
    font-weight: 800;
    text-decoration: underline;
}

.legal-footer {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

@media (max-width: 600px) {
    .legal-page {
        padding-bottom: 32px;
    }

    .legal-document {
        width: min(100% - 20px, 820px);
        margin-top: 10px;
        padding: 26px 20px;
        border-radius: 14px;
    }

    .legal-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

.verify-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    background: #fff;
}

.verify-topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 430px);
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #0606B8;
}

.verify-shell {
    display: grid;
    justify-items: center;
    width: min(100%, 430px);
    margin: 0;
    padding: 34px 28px 28px;
}

.verify-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: var(--soft-blue);
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 87, 184, .12);
}

.verify-icon svg {
    width: 34px;
    height: 34px;
}

.verify-copy {
    max-width: 340px;
    margin-bottom: 28px;
    text-align: center;
}

.verify-copy h1 {
    max-width: none;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: 0;
}

.verify-copy p {
    margin: 12px 0 0;
    color: #374151;
    font-size: 15px;
    line-height: 1.55;
}

.verify-copy strong {
    color: #111827;
    font-weight: 800;
}

.reactivation-notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    width: 100%;
    margin: -10px 0 16px;
    padding: 13px;
    border: 1px solid rgba(217, 119, 6, .28);
    border-radius: 12px;
    background: #fff9e8;
    color: #854d0e;
}

.reactivation-notice > span {
    flex: 0 0 auto;
    font-size: 22px;
}

.reactivation-notice p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
}

.reactivation-notice strong {
    display: block;
    margin-bottom: 2px;
    color: #713f12;
}

.verify-card {
    display: grid;
    justify-items: center;
    width: 100%;
    padding: 30px 0 18px;
    border: 0;
    border-radius: 0;
    background: #fff;
}

.verify-card label {
    margin-bottom: 18px;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.otp-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 7px;
    width: 100%;
    margin-bottom: 24px;
}

.otp-grid input {
    min-height: 52px;
    padding: 0;
    border-color: #e6e8ec;
    border-radius: 7px;
    color: #111827;
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .03);
}

.verify-submit {
    width: 100%;
    min-height: 52px;
    border-radius: 7px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.verify-submit::after {
    content: "→";
    margin-left: 10px;
    font-size: 17px;
}

.verify-submit:hover {
    background: var(--primary-dark);
}

.resend-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 2px;
    transform: none;
    color: #374151;
    font-size: 13px;
}

.resend-form button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.verify-footer {
    display: grid;
    justify-items: center;
    gap: 18px;
    margin-top: 34px;
    width: 100%;
    padding-top: 18px;
    color: #6b7280;
    font-size: 12px;
    text-align: center;
}

.verify-footer span::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border: 1px solid #374151;
    border-radius: 2px;
    vertical-align: -1px;
}

.verify-footer i {
    display: block;
    width: 64px;
    height: 1px;
    background: #d1d5db;
}

.verify-footer small,
.verify-footer a {
    color: #374151;
    font-size: 12px;
}

.verify-footer a {
    font-weight: 700;
}

.participant-page {
    min-height: 100vh;
    padding-bottom: 86px;
    background: #f7f8fa;
    color: var(--text);
}

.participant-top {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #0606B8;
    box-shadow: 0 1px 8px rgba(17, 24, 39, .08);
}

.participant-logo {
    display: block;
    width: 100%;
    aspect-ratio: 1920 / 607;
}

.participant-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.participant-content {
    display: grid;
    gap: 16px;
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 16px 16px 26px;
}

.password-card,
.level-card,
.participant-card,
.participant-stats article {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(17, 24, 39, .04);
}

.password-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-color: rgba(0, 87, 184, .22);
    background: var(--soft-blue);
}

.password-card > span {
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.password-card small {
    color: #374151;
    font-size: 12px;
    line-height: 1.4;
}

.copy-row.compact {
    margin: 0;
}

.level-card {
    display: grid;
    gap: 18px;
    padding: 22px;
    overflow: hidden;
    background: var(--primary);
    color: #fff;
}

.level-card span {
    color: rgba(255,255,255,.78);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.level-card h1 {
    margin-top: 4px;
    color: #fff;
    font-size: 38px;
    line-height: 1;
}

.level-card p {
    margin: 8px 0 0;
    color: rgba(255,255,255,.88);
    font-size: 14px;
    line-height: 1.5;
}

.level-card .level-rule,
.level-card .level-progress-detail {
    display: block;
    margin-top: 9px;
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
}

.level-card .level-progress-detail {
    margin-top: 7px;
    text-align: right;
}

.level-progress > div:first-child {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.level-progress strong {
    color: #fff;
}

.level-card .progress {
    background: rgba(255,255,255,.26);
}

.level-card .progress span {
    background: #fff;
}

.participant-stats {
    display: grid;
    gap: 12px;
}

.participant-stats article {
    display: grid;
    gap: 6px;
    padding: 18px;
}

.participant-stats span {
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
}

.participant-stats strong {
    color: #111827;
    font-size: 32px;
    line-height: 1;
}

.participant-stats small {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.participant-stats .pending-stat {
    border-color: rgba(217, 119, 6, .3);
    background: #fff9e8;
}

.participant-stats .pending-stat strong,
.participant-stats .pending-stat small {
    color: #a16207;
}

.participant-stats .inactive-stat {
    border-color: #d1d5db;
    background: #f3f4f6;
}

.participant-stats .inactive-stat strong,
.participant-stats .inactive-stat small {
    color: #4b5563;
}

.participant-status-contacts {
    margin-top: 6px;
    border-top: 1px solid rgba(17, 24, 39, .1);
}

.participant-status-contacts summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    color: #374151;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    list-style: none;
}

.participant-status-contacts summary::-webkit-details-marker {
    display: none;
}

.participant-status-contacts summary .material-symbols-outlined {
    color: currentColor;
    font-size: 20px;
    transition: transform .2s ease;
}

.participant-status-contacts[open] summary .material-symbols-outlined {
    transform: rotate(180deg);
}

.participant-status-contacts > div {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.participant-status-contacts article {
    padding: 10px;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 10px;
    background: #fff;
}

.participant-status-contacts article strong {
    display: block;
    overflow-wrap: anywhere;
    color: #111827;
    font-size: 12px;
}

.participant-status-empty {
    color: #6b7280;
    font-size: 11px;
}

.welcome-video-card {
    padding: 0;
    overflow: hidden;
}

.welcome-video-copy {
    padding: 18px 18px 14px;
}

.welcome-video-copy h2 {
    color: #111827;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.02em;
}

.welcome-video-card .welcome-video-copy p {
    margin: 7px 0 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.welcome-video-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0 0 13px 13px;
    background: #07111f;
}

.welcome-video-card.video-vertical .welcome-video-frame {
    width: min(100%, 280px);
    margin: 0 auto 18px;
    aspect-ratio: 9 / 16;
    border-radius: 13px;
}

.welcome-video-frame iframe,
.welcome-video-frame video,
.welcome-video-frame > img {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.welcome-video-play {
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #e62117;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .34);
    cursor: pointer;
    place-items: center;
    transform: translate(-50%, -50%);
    transition: transform .18s ease, background .18s ease;
}

.welcome-video-play:hover,
.welcome-video-play:focus-visible {
    background: #ff0000;
    transform: translate(-50%, -50%) scale(1.06);
}

.welcome-video-play span {
    width: 0;
    height: 0;
    margin-left: 5px;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 18px solid #fff;
}

.welcome-video-replay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 0;
    background: rgba(2, 3, 45, .82);
    color: #fff;
    cursor: pointer;
}

.welcome-video-replay span {
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid #fff;
}

.welcome-video-replay b {
    font-size: 13px;
    font-weight: 900;
}

.welcome-video-replay:hover,
.welcome-video-replay:focus-visible {
    background: rgba(6, 6, 184, .9);
}

.whatsapp-access-cards {
    display: grid;
    gap: 12px;
}

.whatsapp-access-card {
    position: relative;
    display: flex;
    min-height: 168px;
    padding: 18px 112px 16px 74px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 14px;
    color: #fff;
    box-shadow: 0 5px 16px rgba(8, 36, 73, .14);
    isolation: isolate;
    transition: transform .18s ease, box-shadow .18s ease;
}

.whatsapp-access-card:hover,
.whatsapp-access-card:focus-visible {
    color: #fff;
    box-shadow: 0 9px 24px rgba(8, 36, 73, .22);
    transform: translateY(-2px);
}

.whatsapp-access-card.community {
    min-height: 0;
    padding: 0;
    aspect-ratio: 500 / 249;
    background: #073c9c url("../images/banner-comunidade-wl-v3.jpeg") center / cover no-repeat;
}

.whatsapp-access-card.channel {
    min-height: 0;
    padding: 0;
    aspect-ratio: 500 / 249;
    background: #073c9c url("../images/banner_canal_WL.jpg.jpeg") center / cover no-repeat;
}

.whatsapp-access-card.community::before,
.whatsapp-access-card.channel::before {
    display: none;
}

.whatsapp-access-card.community > *,
.whatsapp-access-card.channel > * {
    visibility: hidden;
}

.whatsapp-access-card::before {
    position: absolute;
    top: 19px;
    left: 17px;
    display: grid;
    width: 43px;
    height: 43px;
    border: 3px solid #fff;
    border-radius: 50%;
    color: #fff;
    content: "call";
    font-family: "Material Symbols Outlined";
    font-size: 25px;
    font-variation-settings: "FILL" 1, "wght" 600;
    place-items: center;
    transform: rotate(-16deg);
}

.whatsapp-access-copy {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
}

.whatsapp-access-kicker {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
}

.whatsapp-access-copy strong {
    margin-top: 3px;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.025em;
    line-height: .92;
    text-transform: uppercase;
}

.whatsapp-access-copy small {
    margin-top: 7px;
    color: rgba(255, 255, 255, .9);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.25;
}

.whatsapp-access-copy b {
    display: flex;
    width: min(100%, 184px);
    min-height: 31px;
    margin-top: auto;
    padding: 0 11px;
    align-items: center;
    justify-content: space-between;
    border-radius: 6px;
    background: #fff;
    color: #164270;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .16);
    font-size: 10px;
    font-weight: 900;
}

.whatsapp-access-copy b i {
    font-size: 20px;
    font-style: normal;
    line-height: 1;
}

.whatsapp-access-art {
    position: absolute;
    right: -14px;
    bottom: -22px;
    z-index: 1;
    display: grid;
    width: 126px;
    height: 126px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 36px;
    background: rgba(0, 43, 99, .18);
    place-items: center;
    transform: rotate(-8deg);
}

.community .whatsapp-access-art {
    background: rgba(0, 92, 48, .23);
}

.whatsapp-access-art i {
    color: rgba(255, 255, 255, .82);
    font-size: 66px;
    font-variation-settings: "FILL" 1, "wght" 500;
    transform: rotate(8deg);
}

@media (max-width: 350px) {
    .whatsapp-access-card {
        padding-right: 82px;
        padding-left: 66px;
    }

    .whatsapp-access-art {
        right: -38px;
    }

    .whatsapp-access-copy strong {
        font-size: 19px;
    }
}

.participant-grid {
    display: grid;
    gap: 16px;
}

.participant-card {
    padding: 18px;
}

.participant-card h2 {
    font-size: 22px;
    letter-spacing: 0;
}

.participant-card p {
    margin: 8px 0 16px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.invite-card textarea {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.share-actions {
    display: grid;
    gap: 10px;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 10px;
    background: #25d366;
    color: #fff;
    font-weight: 900;
}

.qr-panel {
    display: grid;
    justify-items: center;
    text-align: center;
}

.qr-panel .qr-code {
    margin: 0;
}

.qr-code-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 220px;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}

.qr-code-wrap .qr-code {
    border: 8px solid #fff;
    box-shadow: none;
}

.qr-center-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translate(-50%, -50%);
    border: 4px solid #fff;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 87, 184, .2);
}

.activity-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.activity-head h2 {
    font-size: 22px;
}

.activity-head a {
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
}

.activity-list {
    display: grid;
}

.activity-list article {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 13px 0;
    border-top: 1px solid var(--line);
}

.activity-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--soft-blue);
    color: var(--primary);
    font-weight: 900;
}

.activity-list strong {
    display: block;
    color: #111827;
    font-size: 13px;
}

.activity-list small {
    color: #6b7280;
    font-size: 11px;
    line-height: 1.35;
}

.activity-list b {
    width: max-content;
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--soft-blue);
    color: var(--primary);
    font-size: 11px;
}

.account-card {
    display: grid;
    gap: 16px;
    border-color: rgba(220, 38, 38, .22);
}

.account-card p {
    margin-bottom: 0;
}

.deactivate-button {
    width: 100%;
    border-color: #dc2626;
    background: #fff;
    color: #b91c1c;
}

.deactivate-button:hover {
    background: #fef2f2;
}

.participant-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    justify-content: center;
    gap: 3px;
    min-height: 68px;
    padding: 9px 8px;
    background: linear-gradient(180deg, var(--primary) 0%, #020381 100%);
    border-top: 5px solid var(--secondary);
}

body.has-community-overlay {
    overflow: hidden;
}

.community-invite-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    padding: 20px;
    background: rgba(2, 3, 45, .78);
    opacity: 0;
    backdrop-filter: blur(5px);
    place-items: center;
    transition: opacity .18s ease;
}

.community-invite-overlay[hidden] {
    display: none;
}

.community-invite-overlay.is-visible {
    opacity: 1;
}

.community-invite-dialog {
    position: relative;
    width: min(100%, 430px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
    transform: translateY(16px) scale(.98);
    transition: transform .18s ease;
}

.community-invite-overlay.is-visible .community-invite-dialog {
    transform: translateY(0) scale(1);
}

.community-invite-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0 0 3px;
    border: 2px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    background: rgba(2, 3, 45, .76);
    color: #fff;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    place-items: center;
}

.community-invite-close:hover,
.community-invite-close:focus-visible {
    background: #020381;
    outline: 3px solid rgba(253, 185, 19, .7);
}

.community-invite-image {
    display: block;
    background: #073c9c;
}

.community-invite-image img {
    display: block;
    width: 100%;
    aspect-ratio: 500 / 249;
    object-fit: cover;
}

.community-invite-copy {
    padding: 22px;
    text-align: center;
}

.community-invite-copy > span {
    color: #087a08;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.community-invite-copy h2 {
    margin-top: 6px;
    color: #0606b8;
    font-size: 24px;
    line-height: 1.12;
}

.community-invite-copy p {
    margin: 10px 0 18px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

.community-invite-copy > a {
    display: inline-flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #16a34a;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 6px 16px rgba(22, 163, 74, .25);
}

.community-invite-copy > a:hover,
.community-invite-copy > a:focus-visible {
    background: #087a08;
    color: #fff;
}

@media (max-width: 420px) {
    .community-invite-overlay {
        padding: 14px;
    }

    .community-invite-copy {
        padding: 18px;
    }

    .community-invite-copy h2 {
        font-size: 21px;
    }
}

/* Executive consolidated dashboard. */
.consolidated-page {
    max-width: none;
    padding-bottom: 64px;
}

.consolidated-report-shell {
    min-height: 100vh;
}

.consolidated-report {
    width: min(1400px, 100%);
    margin: 0 auto;
    padding: 32px;
}

.consolidated-report.pdf-export {
    width: 1400px;
    max-width: none;
}

.consolidated-pdf-status {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 24px;
    background: rgba(2, 3, 40, .82);
    color: #fff;
    text-align: center;
    backdrop-filter: blur(5px);
}

.consolidated-pdf-status[hidden] {
    display: none;
}

.consolidated-pdf-status > span {
    margin-bottom: 14px;
    color: #03c202;
    font-size: 42px;
}

.consolidated-pdf-status strong {
    font-size: 18px;
}

.consolidated-pdf-status small {
    margin-top: 7px;
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
}

.consolidated-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, .7fr);
    gap: 32px;
    margin-bottom: 24px;
    padding: 38px 40px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(125deg, #020381 0%, #0606b8 58%, #1236d1 100%);
    color: #fff;
    box-shadow: 0 20px 45px rgba(2, 3, 129, .2);
}

.consolidated-hero::after {
    position: absolute;
    right: -90px;
    bottom: -160px;
    width: 420px;
    height: 420px;
    border: 80px solid rgba(3, 194, 2, .11);
    border-radius: 50%;
    content: "";
}

.consolidated-hero > div {
    position: relative;
    z-index: 1;
}

.consolidated-campaign-identity {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 26px;
}

.consolidated-campaign-identity figure {
    display: grid;
    gap: 7px;
    justify-items: center;
    margin: 0;
}

.consolidated-campaign-identity img {
    width: 68px;
    height: 68px;
    flex: 0 0 auto;
    border: 3px solid var(--admin-accent);
    border-radius: 50%;
    object-fit: cover;
    object-position: center 24%;
    background: #fff;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .1);
}

.consolidated-campaign-identity figcaption {
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}

.consolidated-campaign-identity span {
    display: grid;
    gap: 4px;
}

.consolidated-campaign-identity small {
    color: #8cff8b;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
}

.consolidated-campaign-identity strong {
    max-width: 560px;
    color: #fff;
    font-size: clamp(20px, 2.4vw, 30px);
    line-height: 1.1;
    letter-spacing: -.03em;
}

.consolidated-eyebrow {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: rgba(255, 255, 255, .76);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
}

.consolidated-eyebrow i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--admin-accent);
    box-shadow: 0 0 0 6px rgba(3, 194, 2, .13);
}

.consolidated-hero h2 {
    margin: 15px 0 12px;
    color: #fff;
    font-size: clamp(31px, 4vw, 52px);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.consolidated-hero h2 em {
    color: #8cff8b;
    font-style: normal;
}

.consolidated-hero > div > p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, .75);
    font-size: 14px;
    line-height: 1.65;
}

.consolidated-hero .consolidated-eyebrow + p {
    margin-top: 14px;
}

.consolidated-periods {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 28px;
}

.consolidated-periods span {
    display: grid;
    gap: 3px;
}

.consolidated-periods small,
.consolidated-hero-score small {
    color: rgba(255, 255, 255, .58);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
}

.consolidated-periods strong {
    color: #fff;
    font-size: 13px;
}

.consolidated-periods > i {
    color: rgba(255, 255, 255, .32);
    font-size: 18px;
}

.consolidated-hero-score {
    align-self: stretch;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 16px;
    background: rgba(255, 255, 255, .08);
    text-align: center;
    backdrop-filter: blur(8px);
}

.consolidated-hero-score > span {
    display: grid;
    width: 42px;
    height: 42px;
    margin: 0 auto 23px;
    border-radius: 12px;
    background: var(--admin-accent);
    color: #020381;
    place-items: center;
}

.consolidated-hero-score > strong {
    display: block;
    margin-top: 5px;
    color: #fff;
    font-size: 39px;
    letter-spacing: -.05em;
}

.consolidated-hero-score > p {
    margin: 8px 0 0 !important;
    font-size: 12px !important;
}

.consolidated-hero-score > div {
    height: 6px;
    margin-bottom: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
}

.consolidated-hero-score > div span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--admin-accent);
}

.consolidated-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.consolidated-kpis article,
.consolidated-whatsapp article,
.consolidated-ranking-card {
    border: 1px solid var(--admin-outline);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(16, 24, 40, .05);
}

.consolidated-kpis article {
    padding: 20px;
    overflow: hidden;
}

.consolidated-kpis header {
    display: flex;
    gap: 9px;
    align-items: center;
}

.consolidated-kpis header span {
    display: grid;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    place-items: center;
}

.consolidated-kpis .blue header span { background: #e8edff; color: #153eb8; }
.consolidated-kpis .green header span { background: #e8f9ec; color: #15803d; }
.consolidated-kpis .amber header span { background: #fff4db; color: #b45309; }
.consolidated-kpis .violet header span { background: #f2edff; color: #6d4bd1; }

.consolidated-kpis header small {
    color: var(--data-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.consolidated-kpis article > strong {
    display: block;
    margin: 16px 0;
    color: var(--data-ink);
    font-size: 33px;
    letter-spacing: -.04em;
}

.consolidated-kpis article > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-block: 1px solid #edf0f4;
}

.consolidated-kpis article > div span {
    display: grid;
    gap: 2px;
    padding: 10px 5px;
}

.consolidated-kpis article > div span + span { border-left: 1px solid #edf0f4; }
.consolidated-kpis article > div small { color: var(--data-muted); font-size: 9px; font-weight: 800; }
.consolidated-kpis article > div b { color: var(--data-ink); font-size: 13px; }

.consolidated-kpis article > p {
    display: flex;
    gap: 5px;
    align-items: center;
    width: fit-content;
    margin: 13px 0 0;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 800;
}

.consolidated-kpis article > p span { font-size: 14px; }
.consolidated-kpis article > p strong { font-size: 13px; }
.consolidated-kpis article > p.positive { background: #e8f9ec; color: #15803d; }
.consolidated-kpis article > p.negative { background: #feeceb; color: #b42318; }

.consolidated-whatsapp {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 34px;
}

.consolidated-whatsapp article {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 20px;
}

.consolidated-whatsapp article > span {
    display: grid;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: #e8f9ec;
    color: #15803d;
    place-items: center;
}

.consolidated-whatsapp article > div { display: grid; gap: 3px; }
.consolidated-whatsapp article > div small { color: var(--data-muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.consolidated-whatsapp article > div strong { color: var(--data-ink); font-size: 19px; }
.consolidated-whatsapp article > div p { margin: 0; color: var(--data-muted); font-size: 11px; }
.consolidated-whatsapp dl { display: flex; gap: 6px; margin: 0; }
.consolidated-whatsapp dl div { display: grid; gap: 2px; min-width: 70px; padding: 8px; border-radius: 9px; background: #f6f8fb; }
.consolidated-whatsapp dt { color: var(--admin-primary); font-size: 9px; font-weight: 900; }
.consolidated-whatsapp dd { margin: 0; color: var(--data-ink); font-size: 11px; font-weight: 800; }
.consolidated-whatsapp dd small { color: var(--data-muted); font-size: 8px; font-weight: 500; }

.consolidated-whatsapp .whatsapp-growth {
    display: flex;
    grid-column: 1 / -1;
    gap: 7px;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #edf0f4;
}

.consolidated-whatsapp .whatsapp-growth > span {
    display: inline-flex;
    gap: 4px;
    align-items: baseline;
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 700;
}

.consolidated-whatsapp .whatsapp-growth > span b {
    font-size: 13px;
}

.consolidated-whatsapp .whatsapp-growth .positive { background: #e8f9ec; color: #15803d; }
.consolidated-whatsapp .whatsapp-growth .negative { background: #feeceb; color: #b42318; }
.consolidated-whatsapp .whatsapp-growth > small { margin-left: auto; color: var(--data-muted); font-size: 9px; font-weight: 700; }

.consolidated-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 16px;
}

.consolidated-section-head small { color: var(--admin-primary); font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.consolidated-section-head h2 { margin: 4px 0 0; color: var(--data-ink); font-size: 24px; letter-spacing: -.03em; }
.consolidated-section-head p { margin: 0; color: var(--data-muted); font-size: 11px; }
.consolidated-territory,
.consolidated-demographics { margin-bottom: 28px; }
.rankings-title { margin-top: 40px; }

.consolidated-ranking-card {
    margin-bottom: 18px;
    overflow: hidden;
}

.consolidated-ranking-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--admin-outline);
    background: linear-gradient(90deg, #f5f7ff, #fff);
}

.consolidated-ranking-card > header > div { display: flex; gap: 12px; align-items: center; }
.consolidated-ranking-card > header > div > span { display: grid; width: 40px; height: 40px; border-radius: 11px; background: var(--admin-primary); color: #fff; place-items: center; }
.consolidated-ranking-card > header small { color: var(--admin-primary); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.consolidated-ranking-card > header h3 { margin: 2px 0 0; color: var(--data-ink); font-size: 16px; }
.consolidated-ranking-card > header > b { padding: 6px 9px; border-radius: 999px; background: #e9edff; color: var(--admin-primary); font-size: 10px; }
.consolidated-table-wrap { overflow-x: auto; }
.consolidated-ranking-card table { width: 100%; min-width: 1320px; border-collapse: collapse; }
.consolidated-ranking-card th { padding: 9px 12px; background: #f8f9fc; color: #667085; font-size: 9px; font-weight: 900; letter-spacing: .03em; text-align: center; text-transform: uppercase; }
.consolidated-ranking-card th:nth-child(2) { text-align: left; }
.consolidated-ranking-card th > small { display: block; margin-top: 3px; color: #98a2b3; font-size: 7px; line-height: 1.2; }
.consolidated-ranking-card thead tr:first-child th { border-bottom: 1px solid #eaecf0; }
.consolidated-ranking-card td { padding: 12px; border-top: 1px solid #edf0f4; color: #344054; font-size: 11px; text-align: center; }
.consolidated-ranking-card td:nth-child(2) { min-width: 220px; text-align: left; }
.ranking-position { display: inline-grid; width: 26px; height: 26px; border-radius: 8px; background: #eef1ff; color: var(--admin-primary); place-items: center; }
.ranking-person { display: flex; align-items: center; }
.ranking-person > div { display: grid; gap: 2px; }
.ranking-person strong { color: var(--data-ink); font-size: 11px; }
.ranking-person small { color: var(--data-muted); font-size: 9px; }
.ranking-delta { display: inline-block; min-width: 34px; padding: 4px 6px; border-radius: 999px; font-size: 10px; font-weight: 900; }
.ranking-delta.up { background: #e8f9ec; color: #15803d; }
.ranking-delta.down { background: #feeceb; color: #b42318; }
.ranking-empty { padding: 30px !important; color: var(--data-muted) !important; text-align: center !important; }
.consolidated-note { display: flex; gap: 8px; align-items: flex-start; margin: 26px 0 0; padding: 14px 16px; border-radius: 10px; background: #eef1ff; color: #526070; font-size: 10px; line-height: 1.5; }
.consolidated-note span { flex: 0 0 auto; color: var(--admin-primary); font-size: 17px; }

@media (max-width: 1180px) {
    .consolidated-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .consolidated-whatsapp article { grid-template-columns: auto 1fr; }
    .consolidated-whatsapp dl { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .consolidated-report { padding: 18px 14px; }
    .consolidated-hero { grid-template-columns: 1fr; padding: 28px 22px; }
    .consolidated-kpis,
    .consolidated-whatsapp { grid-template-columns: 1fr; }
    .consolidated-section-head { align-items: flex-start; flex-direction: column; }
    .consolidated-periods { gap: 8px; }
    .consolidated-periods > i { font-size: 14px; }
}

@media print {
    @page {
        size: A4 landscape;
        margin: 10mm;
    }

    html,
    body,
    .consolidated-report-shell {
        background: #fff !important;
    }

    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .consolidated-report {
        width: 100%;
        padding: 0;
    }

    .consolidated-hero,
    .consolidated-kpis article,
    .consolidated-whatsapp article,
    .consolidated-territory article,
    .consolidated-demographics article,
    .consolidated-ranking-card,
    .consolidated-note {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .consolidated-ranking-card {
        break-before: auto;
    }

    .consolidated-table-wrap {
        overflow: visible;
    }

    .consolidated-ranking-card table {
        min-width: 0;
    }

    .consolidated-ranking-card th,
    .consolidated-ranking-card td {
        padding: 7px 8px;
    }
}

@media (max-width: 430px) {
    .consolidated-kpis { grid-template-columns: 1fr; }
    .consolidated-whatsapp article { grid-template-columns: 1fr; }
    .consolidated-whatsapp dl { grid-column: auto; }
    .consolidated-whatsapp .whatsapp-growth { grid-column: auto; flex-wrap: wrap; }
    .consolidated-whatsapp .whatsapp-growth > small { width: 100%; margin-left: 0; }
    .consolidated-periods { align-items: flex-start; flex-direction: column; }
    .consolidated-periods > i { transform: rotate(90deg); }
}

@media (prefers-reduced-motion: reduce) {
    .community-invite-overlay,
    .community-invite-dialog {
        transition: none;
    }
}

.participant-bottom-nav a {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    flex: 1;
    border-radius: 8px;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.participant-bottom-nav a.active {
    background: var(--secondary);
    color: #020381;
}

.participant-bottom-nav a.active .nav-icon,
.participant-bottom-nav a.active span {
    color: #020381;
}

.nav-icon {
    display: block;
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: var(--nav-icon) center / 20px 20px no-repeat;
    mask: var(--nav-icon) center / 20px 20px no-repeat;
}

.nav-home {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m3 11 9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E");
}

.nav-link {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M10 13a5 5 0 0 0 7.07 0l2.83-2.83a5 5 0 0 0-7.07-7.07L11.5 4.43'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.07 0L4.1 13.83a5 5 0 1 0 7.07 7.07l1.33-1.33'/%3E%3C/svg%3E");
}

.nav-network {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='5' r='3'/%3E%3Ccircle cx='5' cy='19' r='3'/%3E%3Ccircle cx='19' cy='19' r='3'/%3E%3Cpath d='M10.5 7.6 6.5 16.4'/%3E%3Cpath d='m13.5 7.6 4 8.8'/%3E%3Cpath d='M8 19h8'/%3E%3C/svg%3E");
}

.nav-video {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m10 9 5 3-5 3Z'/%3E%3C/svg%3E");
}

.nav-logout {
    --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M10 17l5-5-5-5'/%3E%3Cpath d='M15 12H3'/%3E%3Cpath d='M14 3h5a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-5'/%3E%3C/svg%3E");
}

@media (min-width: 760px) {
    .participant-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 24px 32px 34px;
    }

    .password-card,
    .level-card,
    .participant-grid,
    .activity-card {
        grid-column: 1 / -1;
    }

    .participant-stats {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .level-card {
        grid-template-columns: 1fr minmax(260px, .4fr);
        align-items: end;
    }
}

@media (min-width: 700px) {
    .verify-page {
        align-items: flex-start;
        align-items: center;
        padding: 28px 0;
        background: #f1f3f5;
    }

    .verify-page::before {
        content: "";
        position: fixed;
        inset: 0;
        background: #f1f3f5;
        z-index: -1;
    }

    .verify-page > .verify-topbar,
    .verify-page > .verify-shell {
        width: min(100%, 430px);
        background-color: #fff;
    }

    .verify-page > .verify-topbar {
        overflow: hidden;
        border: 1px solid var(--line);
        border-bottom: 5px solid var(--secondary);
        border-radius: 18px 18px 0 0;
        background: linear-gradient(180deg, var(--primary) 0%, #020381 100%);
    }

    .verify-page > .verify-shell {
        border: 1px solid var(--line);
        border-top: 0;
        border-radius: 0 0 18px 18px;
        box-shadow: var(--shadow);
    }
}

/* Data dashboard */
.data-dashboard {
    --data-ink: #111827;
    --data-muted: #667085;
    --data-blue: #153eb8;
    min-height: 100vh;
    background: #f4f6fa;
    color: var(--data-ink);
}

.data-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    display: flex;
    width: 244px;
    flex-direction: column;
    padding: 24px 16px;
    background: #08133d;
    color: #fff;
}

.data-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 25px;
    color: #fff;
    text-decoration: none;
}

.data-brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
}

.data-brand span,
.data-brand small {
    display: block;
}

.data-brand span {
    font-size: 15px;
    font-weight: 800;
}

.data-brand small {
    margin-top: 2px;
    color: #9ea9d1;
    font-size: 10px;
    font-weight: 500;
}

.data-sidebar nav {
    display: grid;
    gap: 5px;
}

.data-sidebar nav a,
.data-sidebar footer a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    padding: 0 13px;
    border-radius: 9px;
    color: #b8c1e0;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}

.data-sidebar nav a:hover,
.data-sidebar nav a.active {
    background: #17347d;
    color: #fff;
}

.data-sidebar nav a.active {
    box-shadow: inset 3px 0 #ffd61f;
}

.data-sidebar .material-symbols-outlined {
    font-size: 20px;
}

.data-sidebar footer {
    display: grid;
    gap: 4px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.data-main {
    min-width: 0;
    margin-left: 244px;
    padding: 28px 32px 50px;
}

.data-header,
.data-header-user,
.data-card-head,
.data-section-intro,
.data-manager header,
.data-leader header,
.data-search-results article header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.data-header {
    margin-bottom: 25px;
}

.data-header > div:first-child > small,
.data-card-head small,
.data-section-intro small,
.data-manager header small,
.data-leader header small {
    color: #3158c7;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
}

.data-header h1 {
    margin: 3px 0;
    font-size: clamp(25px, 3vw, 34px);
    letter-spacing: -.04em;
}

.data-header p,
.data-card-head p,
.data-section-intro p {
    margin: 0;
    color: var(--data-muted);
    font-size: 13px;
}

.data-header-user {
    justify-content: flex-start;
    padding: 9px 14px 9px 9px;
    border: 1px solid #e1e6f0;
    border-radius: 12px;
    background: #fff;
}

.data-header-user > span,
.data-person-avatar,
.data-tree-avatar {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    background: #e8edff;
    color: #2045b1;
    font-weight: 900;
}

.data-header-user strong,
.data-header-user small {
    display: block;
    font-size: 12px;
}

.data-header-user small {
    margin-top: 2px;
    color: var(--data-muted);
    font-size: 10px;
}

.data-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.data-kpis article,
.data-group-summary article,
.data-network-summary article {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border: 1px solid #e1e6f0;
    border-radius: 15px;
    background: #fff;
}

.data-kpis article > .material-symbols-outlined {
    position: absolute;
    top: 17px;
    right: 17px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    font-size: 21px;
}

.data-kpis article.blue > .material-symbols-outlined { background: #e8edff; color: #2148bd; }
.data-kpis article.green > .material-symbols-outlined { background: #dcfce7; color: #15803d; }
.data-kpis article.amber > .material-symbols-outlined { background: #fff3cd; color: #b57500; }
.data-kpis article.violet > .material-symbols-outlined { background: #f1e8ff; color: #7c3aed; }
.data-kpis article.red > .material-symbols-outlined { background: #fee2e2; color: #c62828; }
.data-kpis article.pink > .material-symbols-outlined { background: #fce7f3; color: #be185d; }
.data-kpis article.indigo > .material-symbols-outlined { background: #e0e7ff; color: #4338ca; }

.data-kpis small,
.data-group-summary small,
.data-network-summary small {
    display: block;
    color: var(--data-muted);
    font-size: 11px;
    font-weight: 700;
}

.data-kpis strong,
.data-group-summary strong,
.data-network-summary strong {
    display: block;
    margin-top: 12px;
    font-size: 29px;
    letter-spacing: -.04em;
}

.data-kpis p {
    margin: 7px 0 0;
    color: var(--data-muted);
    font-size: 11px;
}

.data-kpis.compact article {
    padding: 17px 19px;
}

.data-card {
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid #e1e6f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .035);
}

.data-card-head {
    margin-bottom: 19px;
}

.data-card-head h2,
.data-section-intro h2,
.data-manager h2,
.data-leader h2,
.data-search-results h2 {
    margin: 3px 0 4px;
    font-size: 19px;
    letter-spacing: -.025em;
}

.data-card-head a,
.data-section-intro > a {
    color: #2148bd;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.data-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, .75fr);
    gap: 18px;
}

.data-legend {
    display: flex;
    gap: 17px;
    color: var(--data-muted);
    font-size: 10px;
}

.data-legend span::before {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    content: '';
}

.data-legend .started::before { background: #3158c7; }
.data-legend .finished::before { background: #f4c515; }

.data-bars {
    display: grid;
    height: 230px;
    grid-template-columns: repeat(14, minmax(12px, 1fr));
    gap: 7px;
    align-items: end;
    padding-top: 12px;
    border-bottom: 1px solid #e7eaf1;
}

.data-bar-day > div {
    display: flex;
    height: 190px;
    align-items: end;
    justify-content: center;
    gap: 3px;
}

.data-bar-day i {
    width: min(10px, 42%);
    min-height: 3px;
    border-radius: 5px 5px 1px 1px;
}

.data-bar-day i.started { background: #3158c7; }
.data-bar-day i.finished { background: #f4c515; }
.data-bar-day small { display: block; margin-top: 8px; color: #7a849b; font-size: 8px; text-align: center; }

.data-conversion {
    text-align: center;
}

.data-ring {
    display: grid;
    width: 145px;
    height: 145px;
    margin: 18px auto;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(#3158c7 calc(var(--value) * 1%), #e8ecf4 0);
}

.data-ring::before {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: #fff;
    content: '';
}

.data-ring strong {
    position: absolute;
    font-size: 24px;
}

.data-conversion ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.data-conversion li {
    display: grid;
    grid-template-columns: 8px 1fr auto;
    gap: 8px;
    color: var(--data-muted);
    font-size: 11px;
}

.data-conversion li span { width: 8px; height: 8px; border-radius: 50%; }
.data-conversion li .complete { background: #22a35a; }
.data-conversion li .pending { background: #e8ad16; }
.data-conversion li .inactive { background: #98a2b3; }

.data-ranking article,
.data-group-list article {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 5px;
    border-top: 1px solid #edf0f5;
}

.data-ranking article > b {
    width: 25px;
    color: #8891a5;
    text-align: center;
}

.data-ranking article:first-child > b { color: #c28d00; font-size: 19px; }
.data-ranking article > div,
.data-group-list article > div { min-width: 0; flex: 1; }
.data-ranking article div strong,
.data-ranking article div small,
.data-group-list article div strong,
.data-group-list article div small { display: block; }
.data-ranking article div strong,
.data-group-list article div strong { font-size: 12px; }
.data-ranking article div small,
.data-group-list article div small { margin-top: 3px; color: var(--data-muted); font-size: 10px; }
.data-ranking article > p { margin: 0; text-align: right; }
.data-ranking article > p strong,
.data-ranking article > p small { display: block; }
.data-ranking article > p small { color: var(--data-muted); font-size: 9px; }

.data-person-avatar.leader { background: #fff2c2; color: #9a6500; }
.data-person-avatar.manager { background: #dff5e8; color: #13703a; }

.data-group-summary,
.data-network-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.data-group-summary article {
    display: flex;
    align-items: center;
    gap: 16px;
}

.data-group-summary article > .material-symbols-outlined {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 13px;
    background: #e8edff;
    color: #2148bd;
}

.data-group-summary strong { margin-top: 2px; }
.data-group-summary p { margin: 1px 0 0; color: var(--data-muted); font-size: 10px; }

.analytics-tags-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.birthday-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.data-tag-form {
    display: flex;
    flex: 0 1 620px;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.data-tag-form fieldset {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0;
}

.data-tag-form label {
    position: relative;
    cursor: pointer;
}

.data-tag-form input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.data-tag-form label span {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid #dce2ed;
    border-radius: 999px;
    background: #fff;
    color: var(--data-muted);
    font-size: 10px;
    font-weight: 800;
}

.data-tag-form input:checked + span {
    border-color: #2148bd;
    background: #e8edff;
    color: #2148bd;
}

.data-tag-form input:focus-visible + span {
    outline: 2px solid #2148bd;
    outline-offset: 2px;
}

.data-tag-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.data-tag-filters a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #dce2ed;
    border-radius: 10px;
    background: #fff;
    color: var(--data-muted);
    font-size: 11px;
    font-weight: 800;
}

.data-tag-filters a.active {
    border-color: #2148bd;
    background: #2148bd;
    color: #fff;
}

.data-tag-filters b {
    display: grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    background: #eef1f6;
    color: #2148bd;
    font-size: 10px;
}

.data-rank-number {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #fff2c2;
    color: #8a5d00;
    font-size: 12px;
}

.data-search {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    padding: 5px 5px 5px 12px;
    border: 1px solid #dce2ed;
    border-radius: 11px;
    background: #f8f9fc;
}

.data-search .material-symbols-outlined { color: #7d879a; font-size: 19px; }
.data-search input { min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 12px; }
.data-search.participant-filters { grid-template-columns: auto minmax(180px, 1fr) minmax(150px, auto) auto; }
.data-search select {
    min-height: 36px;
    padding: 0 32px 0 11px;
    border: 1px solid #dce2ed;
    border-radius: 8px;
    outline: 0;
    background: #fff;
    color: #344054;
    font: inherit;
    font-size: 11px;
}
.data-search button,
.data-group-list button {
    min-height: 36px;
    padding: 0 15px;
    border: 0;
    border-radius: 8px;
    background: #173eb2;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.data-group-list button {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #e9eeff;
    color: #2045b1;
}

.data-group-list button.remove { background: #fff0f0; color: #b42318; }
.data-group-list button .material-symbols-outlined { font-size: 17px; }

.data-section-intro {
    margin-bottom: 18px;
}

.data-section-intro > span,
.data-section-intro > a {
    padding: 9px 13px;
    border-radius: 9px;
    background: #e8edff;
    color: #2148bd;
    font-size: 11px;
    font-weight: 800;
}

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

.data-manager header,
.data-leader header {
    justify-content: flex-start;
}

.data-manager header > div,
.data-leader header > div { min-width: 0; flex: 1; }
.data-manager header > b { font-size: 20px; color: #15803d; }
.data-manager header p,
.data-leader header p { margin: 0; color: var(--data-muted); font-size: 10px; }

.data-manager-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 17px 0;
}

.data-manager-stats span {
    padding: 11px;
    border-radius: 10px;
    background: #f5f7fb;
    text-align: center;
}

.data-manager-stats small,
.data-manager-stats strong { display: block; }
.data-manager-stats small { color: var(--data-muted); font-size: 9px; }
.data-manager-stats strong { margin-top: 4px; font-size: 18px; }
.data-manager-stats.manager-breakdown { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.data-manager-stats.manager-breakdown .total { background: #e9eeff; color: #173eb2; }
.manager-supervisor { display: flex; align-items: center; gap: 9px; margin: 14px 0 0; padding: 9px 11px; border-radius: 9px; background: #f5f7fb; color: var(--data-muted); }
.manager-supervisor > .material-symbols-outlined { color: #173eb2; font-size: 18px; }
.manager-supervisor > span:last-child { font-size: 9px; font-weight: 700; }
.manager-supervisor small { display: block; margin-top: 2px; color: var(--data-ink); font-size: 11px; font-weight: 800; }
.data-ranked-manager header .manager-rate { color: #15803d; font-size: 20px; }
.data-manager details { border-top: 1px solid #e8ebf1; }
.data-manager details summary { display: flex; padding: 14px 0 0; align-items: center; justify-content: space-between; color: #2148bd; font-size: 11px; font-weight: 800; cursor: pointer; list-style: none; }
.data-manager details[open] summary { padding-bottom: 14px; }
.data-manager details .data-table-wrap { max-height: 330px; }

.data-leader-origin {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 9px;
    background: #f8f9fc;
    color: var(--data-muted);
    font-size: 10px;
}

.data-leader-origin strong { color: var(--data-ink); }
.data-progress { height: 5px; overflow: hidden; border-radius: 5px; background: #e8ebf2; }
.data-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2148bd, #f0c415); }

.data-table-wrap {
    overflow: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.data-table th,
.data-table td {
    padding: 12px 13px;
    border-bottom: 1px solid #edf0f5;
    font-size: 10px;
    text-align: left;
}

.data-table th {
    background: #f8f9fb;
    color: #737d91;
    font-size: 9px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.data-table td > strong,
.data-table td > small { display: block; }
.data-table td > small { margin-top: 3px; color: var(--data-muted); font-size: 9px; }
.data-kind { padding: 4px 7px; border-radius: 20px; background: #edf1ff; color: #2148bd; font-size: 9px; font-weight: 800; }

.data-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 800;
}

.data-status i { width: 5px; height: 5px; border-radius: 50%; }
.data-status.complete { background: #e6f7ed; color: #13703a; }
.data-status.complete i { background: #1a9b50; }
.data-status.pending { background: #fff5d8; color: #9a6800; }
.data-status.pending i { background: #dda600; }
.data-status.inactive { background: #eef0f3; color: #667085; }
.data-status.inactive i { background: #8c95a6; }

.data-network-summary {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.data-network-summary article { text-align: center; padding: 14px; }
.data-network-summary strong { margin-top: 4px; font-size: 21px; }
.data-network-summary span { color: var(--data-muted); font-size: 9px; }

.data-tree,
.data-tree ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.data-tree ul {
    margin-left: 19px;
    padding-left: 20px;
    border-left: 1px solid #dce2ed;
}

.data-tree li {
    position: relative;
    padding: 4px 0;
}

.data-tree ul > li::before {
    position: absolute;
    top: 27px;
    left: -20px;
    width: 17px;
    border-top: 1px solid #dce2ed;
    content: '';
}

.data-tree summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 7px 10px;
    border: 1px solid #e3e7ef;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    list-style: none;
}

.data-tree summary::after { margin-left: auto; color: #8791a5; content: '+'; font-size: 18px; }
.data-tree details[open] > summary::after { content: '−'; }
.data-tree summary > span:nth-child(2) { min-width: 0; flex: 1; }
.data-tree summary strong,
.data-tree summary small { display: block; }
.data-tree summary strong { font-size: 11px; }
.data-tree summary small { margin-top: 3px; color: var(--data-muted); font-size: 9px; }
.data-tree-avatar { width: 33px; height: 33px; border-radius: 9px; font-size: 11px; }
.data-tree-empty { margin: 5px 0 3px 54px; color: #98a2b3; font-size: 9px; }
.data-limit { padding: 10px; border-radius: 8px; background: #fff5d8; color: #805c00; font-size: 10px; }

.data-search.large { max-width: 740px; margin: 30px auto; padding: 9px 9px 9px 16px; }
.data-search-results { display: grid; gap: 12px; }
.data-search-results article { padding: 18px; border: 1px solid #e1e6f0; border-radius: 13px; }
.data-search-results article header { justify-content: flex-start; }
.data-search-results article header > div { min-width: 0; flex: 1; }
.data-search-results article header p { margin: 0; color: var(--data-muted); font-size: 10px; }
.data-search-results dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 15px 0 0; }
.data-search-results dl div { padding: 10px; border-radius: 9px; background: #f7f8fb; }
.data-search-results dt { color: var(--data-muted); font-size: 9px; }
.data-search-results dd { margin: 4px 0 0; font-size: 11px; font-weight: 800; }
.data-empty { padding: 25px; color: var(--data-muted); text-align: center; font-size: 11px; }

.geo-filter-card .data-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.geo-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.geo-filters label { display: grid; gap: 7px; }

.geo-filters label > span {
    color: var(--data-muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.geo-filters select {
    width: 100%;
    min-height: 42px;
    padding: 0 34px 0 12px;
    border: 1px solid #dce2ed;
    border-radius: 9px;
    background: #f8f9fc;
    color: var(--data-ink);
    font: inherit;
    font-size: 11px;
}

.geo-filters button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 17px;
    border: 0;
    border-radius: 9px;
    background: #173eb2;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.geo-filters button .material-symbols-outlined { font-size: 17px; }
.geo-result-count { margin: 16px 0 0; color: var(--data-muted); font-size: 11px; }
.geo-result-count strong { color: var(--data-ink); font-size: 15px; }

.geo-insights-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.geo-kpis { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.geo-ranking { display: grid; gap: 14px; }

.geo-ranking header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.geo-ranking header strong { min-width: 0; font-size: 11px; }
.geo-ranking header strong small { display: block; margin-top: 2px; color: var(--data-muted); font-size: 8px; font-weight: 600; }
.geo-ranking header b { color: #173eb2; font-size: 12px; }
.geo-ranking div > span { display: block; height: 7px; overflow: hidden; border-radius: 99px; background: #edf0f6; }
.geo-ranking div > span i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #173eb2, #4269d8); }
.geo-ranking.neighborhoods div > span i { background: linear-gradient(90deg, #087c55, #20b57b); }

.geo-demographics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr);
    gap: 18px;
}

.geo-age-bars {
    display: grid;
    height: 245px;
    grid-template-columns: repeat(6, minmax(60px, 1fr));
    gap: 16px;
    align-items: end;
    padding-top: 10px;
}

.geo-age-bars > div {
    display: grid;
    grid-template-rows: 170px auto auto;
    gap: 5px;
    text-align: center;
}

.geo-age-bars > div > span { display: flex; align-items: end; justify-content: center; border-bottom: 1px solid #dce2ed; }
.geo-age-bars i { display: block; width: min(52px, 72%); border-radius: 8px 8px 2px 2px; background: linear-gradient(180deg, #0606b8, #5f78e8); }
.geo-age-bars strong { font-size: 14px; }
.geo-age-bars small { color: var(--data-muted); font-size: 9px; line-height: 1.25; }

.geo-gender-chart {
    display: grid;
    justify-items: center;
    gap: 24px;
    padding-top: 14px;
}

.geo-gender-ring {
    display: grid;
    width: 174px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(#df3f7c 0 var(--female-end), #3158c9 var(--female-end) var(--male-end), #a6afbf var(--male-end) 100%);
}

.geo-gender-ring.empty { background: #edf0f6; }

.geo-gender-ring > span {
    display: grid;
    width: 112px;
    aspect-ratio: 1;
    place-content: center;
    border-radius: 50%;
    background: #fff;
    text-align: center;
}

.geo-gender-ring strong { font-size: 24px; line-height: 1; }
.geo-gender-ring small { margin-top: 5px; color: var(--data-muted); font-size: 9px; text-transform: uppercase; }
.geo-gender-chart ul { display: grid; width: 100%; gap: 12px; margin: 0; padding: 0; list-style: none; }
.geo-gender-chart li { display: grid; grid-template-columns: 9px 1fr; align-items: center; gap: 9px; }
.geo-gender-chart li > span { width: 9px; height: 9px; border-radius: 50%; background: #a6afbf; }
.geo-gender-chart li.female > span { background: #df3f7c; }
.geo-gender-chart li.male > span { background: #3158c9; }
.geo-gender-chart li div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.geo-gender-chart li small { color: var(--data-muted); font-size: 10px; }
.geo-gender-chart li strong { font-size: 12px; }
.geo-gender-chart li em { margin-left: 4px; color: var(--data-muted); font-size: 9px; font-style: normal; font-weight: 700; }

@media (max-width: 1100px) {
    .data-kpis { grid-template-columns: repeat(2, 1fr); }
    .data-manager-grid,
    .data-leader-grid { grid-template-columns: 1fr; }
    .data-network-summary { grid-template-columns: repeat(3, 1fr); }
    .analytics-tags-summary,
    .birthday-metrics,
    .data-tag-filters { grid-template-columns: repeat(2, 1fr); }
    .geo-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .data-manager-stats.manager-breakdown { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .data-sidebar {
        position: sticky;
        top: 0;
        width: 100%;
        height: auto;
        padding: 10px 12px;
    }

    .data-brand { display: none; }
    .data-sidebar nav { display: flex; overflow-x: auto; gap: 4px; }
    .data-sidebar nav a { flex: 0 0 auto; min-height: 38px; padding: 0 11px; font-size: 10px; }
    .data-sidebar nav a.active { box-shadow: inset 0 -3px #ffd61f; }
    .data-sidebar footer { display: none; }
    .data-main { margin-left: 0; padding: 20px 14px 40px; }
    .data-header-user { display: none; }
    .data-kpis,
    .data-group-summary,
    .data-overview-grid { grid-template-columns: 1fr; }
    .data-kpis { grid-template-columns: repeat(2, 1fr); }
    .data-kpis article { padding: 16px; }
    .data-kpis strong { font-size: 24px; }
    .data-bars { gap: 3px; overflow-x: auto; }
    .data-bar-day { min-width: 20px; }
    .data-card { padding: 16px; }
    .data-group-list article { align-items: flex-start; flex-wrap: wrap; }
    .data-group-list article form { width: 100%; }
    .data-group-list button { width: 100%; justify-content: center; }
    .data-tag-form { align-items: stretch; flex-direction: column; }
    .data-tag-form fieldset { justify-content: flex-start; }
    .data-network-summary { grid-template-columns: repeat(2, 1fr); }
    .data-search-results dl { grid-template-columns: 1fr 1fr; }
    .data-tree ul { margin-left: 8px; padding-left: 12px; }
    .data-tree ul > li::before { left: -12px; width: 10px; }
    .data-status { padding: 4px 6px; }
    .geo-insights-grid { grid-template-columns: 1fr; }
    .geo-demographics-grid { grid-template-columns: 1fr; }
    .geo-filters { grid-template-columns: 1fr; }
    .geo-age-bars { overflow-x: auto; gap: 10px; }
    .geo-age-bars > div { min-width: 76px; }
    .data-manager-stats.manager-breakdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .data-manager-stats.manager-breakdown .total { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
    .data-kpis { grid-template-columns: 1fr; }
    .data-search { grid-template-columns: auto 1fr; }
    .data-search.participant-filters { grid-template-columns: auto 1fr; }
    .data-search.participant-filters select { grid-column: 1 / -1; }
    .data-search button { grid-column: 1 / -1; }
    .data-search-results dl { grid-template-columns: 1fr; }
    .analytics-tags-summary,
    .birthday-metrics,
    .data-tag-filters { grid-template-columns: 1fr; }
}

/* Administrative dashboard based on the Stitch Campaign Referral System. */
.material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
}

.admin-app {
    --admin-primary: #0606B8;
    --admin-accent: #03C202;
    --admin-navy: #020381;
    --admin-success: #16A34A;
    --admin-muted: #64748b;
    --admin-outline: #d7e0dc;
    --admin-soft: #eff4ff;
    min-height: 100vh;
    background: #f8f9ff;
    color: var(--admin-navy);
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    width: 256px;
    padding: 36px 0 24px;
    border-right: 0;
    background: linear-gradient(180deg, var(--admin-primary) 0%, #020381 100%);
    box-shadow: 8px 0 28px rgba(2, 3, 129, .12);
}

.admin-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    margin: 0 18px;
    padding: 0;
}

.admin-brand img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 34px 0 24px;
    padding: 0 24px;
}

.admin-profile div,
.admin-person p {
    display: grid;
    gap: 2px;
    margin: 0;
}

.admin-profile strong,
.admin-person strong {
    font-size: 13px;
}

.admin-profile strong {
    color: #fff;
}

.admin-profile small,
.admin-person small {
    color: var(--admin-muted);
    font-size: 10px;
}

.admin-profile small {
    color: rgba(255, 255, 255, .72);
}

.admin-avatar {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--admin-accent);
    color: #020381;
    font-weight: 900;
}

.admin-avatar.light {
    width: 44px;
    height: 44px;
    border: 2px solid var(--admin-primary);
    background: #fff;
    color: var(--admin-primary);
}

.admin-nav {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 24px;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    font-weight: 600;
    transition: background .2s ease, color .2s ease;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.admin-nav a.active {
    margin-right: 12px;
    border-radius: 0 999px 999px 0;
    background: var(--admin-accent);
    color: #020381;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.admin-settings-link {
    margin-top: auto;
}

.admin-main {
    width: min(1280px, calc(100% - 256px));
    margin-left: 256px;
    padding: 32px;
}

.admin-analytics {
    --data-ink: #111827;
    --data-muted: #667085;
    --data-blue: #153eb8;
    color: var(--data-ink);
}

.admin-analytics-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -10px 0 28px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--admin-outline);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.admin-analytics-tabs::-webkit-scrollbar {
    display: none;
}

.admin-analytics-tabs a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 13px;
    border-radius: 8px;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 800;
}

.admin-analytics-tabs a:hover,
.admin-analytics-tabs a.active {
    background: var(--admin-primary);
    color: #fff;
}

.admin-analytics-tabs .material-symbols-outlined {
    font-size: 18px;
}

.admin-analytics-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.admin-analytics-heading small {
    color: var(--admin-primary);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
}

.admin-analytics-heading h2 {
    margin: 4px 0 0;
    font-size: 24px;
    letter-spacing: -.03em;
}

.admin-analytics-heading p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 12px;
}

.admin-topbar,
.admin-top-actions,
.admin-kpi-head,
.admin-card-heading,
.admin-section-head,
.admin-goal-card > div:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-topbar {
    margin-bottom: 34px;
}

.admin-topbar h1 {
    font-size: 26px;
    letter-spacing: -.02em;
}

.admin-topbar p,
.admin-card-heading p,
.admin-section-head p,
.admin-top-referrer > p {
    margin: 4px 0 0;
    color: var(--admin-muted);
    font-size: 13px;
    line-height: 1.5;
}

.admin-primary-button,
.admin-icon-button,
.admin-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
}

.admin-primary-button {
    padding: 0 18px;
    background: var(--admin-primary);
    color: #fff;
}

.admin-icon-button {
    width: 40px;
    color: #3c4a42;
}

.admin-logout {
    padding: 0 10px;
    color: var(--admin-muted);
}

.admin-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.admin-kpis article,
.admin-card,
.admin-top-referrer {
    border: 1px solid var(--admin-outline);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(11, 28, 48, .05);
}

.admin-kpis article {
    padding: 24px;
}

.admin-kpi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 10px;
}

.admin-kpi-icon.green {
    background: rgba(0, 87, 184, .12);
    color: var(--admin-primary);
}

.admin-kpi-icon.amber {
    background: rgba(245, 158, 11, .14);
    color: #855300;
}

.admin-kpi-icon.navy {
    background: #e5eeff;
    color: #3c475a;
}

.admin-kpi-icon.birthday {
    background: rgba(109, 91, 208, .13);
    color: #6d5bd0;
}

.admin-kpi-head em {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(0, 87, 184, .08);
    color: var(--admin-primary);
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.admin-kpis article > small {
    display: block;
    margin-top: 18px;
    color: var(--admin-muted);
    font-size: 13px;
    font-weight: 600;
}

.admin-kpis article > strong {
    display: block;
    margin-top: 4px;
    font-size: 31px;
}

.admin-bento {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.admin-card {
    padding: 24px;
}

.whatsapp-link-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.birthday-list-card {
    margin-bottom: 22px;
}

.birthday-list-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: rgba(109, 91, 208, .13);
    color: #6d5bd0;
    place-items: center;
}

.birthday-user-list {
    display: grid;
}

.birthday-user-list article {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid var(--admin-outline);
}

.birthday-user-list article > div {
    display: grid;
    gap: 3px;
}

.birthday-user-list article strong {
    font-size: 14px;
}

.birthday-user-list article small {
    color: var(--admin-muted);
    font-size: 12px;
}

.birthday-user-list time {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(109, 91, 208, .1);
    color: #5b46c1;
    font-size: 12px;
    font-weight: 900;
}

.birthday-list-empty {
    display: flex;
    gap: 9px;
    align-items: center;
    margin: 0;
    padding: 20px 0 4px;
    border-top: 1px solid var(--admin-outline);
    color: var(--admin-muted);
    font-size: 14px;
}

.whatsapp-link-metrics article {
    display: flex;
    gap: 16px;
    align-items: center;
}

.whatsapp-link-metrics > article > span {
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    border-radius: 14px;
    background: rgba(22, 163, 74, .12);
    color: var(--success);
    place-items: center;
}

.whatsapp-link-metrics small,
.whatsapp-link-metrics strong {
    display: block;
}

.whatsapp-link-metrics small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.whatsapp-link-metrics strong {
    margin-top: 5px;
    font-size: 22px;
}

.whatsapp-link-metrics p {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.4;
}

.whatsapp-link-history {
    margin-bottom: 22px;
}

.whatsapp-link-history td small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

@media (max-width: 720px) {
    .whatsapp-link-metrics {
        grid-template-columns: 1fr;
    }
}

.admin-card h2,
.admin-goal-card h2 {
    font-size: 20px;
    letter-spacing: -.01em;
}

.admin-card-heading > span {
    padding: 5px 10px;
    border: 1px solid var(--admin-primary);
    border-radius: 999px;
    color: var(--admin-primary);
    font-size: 10px;
    font-weight: 800;
}

.admin-growth-card {
    min-height: 360px;
}

.admin-chart {
    display: flex;
    align-items: stretch;
    gap: 16px;
    height: 250px;
    padding: 36px 10px 0;
}

.admin-chart-column {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    height: 100%;
}

.admin-chart-column i {
    width: 100%;
    max-width: 52px;
    min-height: 6px;
    border-radius: 7px 7px 2px 2px;
    background: var(--admin-primary);
    transition: height .8s ease;
}

.admin-chart-column b,
.admin-chart-column small {
    color: var(--admin-muted);
    font-size: 9px;
    font-style: normal;
}

.admin-side-cards {
    display: grid;
    gap: 24px;
}

.admin-goal-card {
    padding: 24px;
    border-radius: 12px;
    background: var(--admin-primary);
    color: #fff;
    background: linear-gradient(145deg, var(--admin-primary), #020381);
    box-shadow: 0 10px 24px rgba(2, 3, 129, .18);
}

.admin-goal-card,
.admin-goal-card h2,
.admin-goal-card small,
.admin-goal-card strong,
.admin-goal-card span {
    color: #fff;
}

.admin-goal-card > small,
.admin-top-referrer > small {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.admin-goal-track {
    height: 10px;
    margin: 20px 0 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
}

.admin-goal-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--admin-accent);
}

.admin-goal-card strong,
.admin-goal-card span {
    font-size: 10px;
}

.admin-top-referrer {
    padding: 22px;
    background: #dce9ff;
}

.admin-top-referrer > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-top-referrer p {
    display: grid;
    gap: 3px;
    margin: 0;
}

.admin-top-referrer p strong {
    font-size: 13px;
}

.admin-top-referrer p b {
    color: var(--admin-primary);
    font-size: 11px;
}

.admin-activity {
    margin-bottom: 24px;
    padding: 0;
    overflow: hidden;
}

.admin-section-head {
    padding: 18px 24px;
    border-bottom: 1px solid var(--admin-outline);
}

.admin-section-head a {
    color: var(--admin-primary);
    font-size: 12px;
    font-weight: 800;
}

.participant-search-form {
    display: grid;
    gap: 7px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--admin-outline);
    background: #f8faff;
}

.participant-search-form > label {
    color: var(--admin-text);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.participant-search-form > div {
    display: flex;
    gap: 10px;
    align-items: center;
}

.participant-search-form input {
    width: min(100%, 520px);
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid var(--admin-outline);
    border-radius: 9px;
    background: #fff;
    color: var(--admin-text);
}

.participant-search-form button {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.participant-search-form button span {
    font-size: 18px;
}

.participant-search-form a {
    color: var(--admin-primary);
    font-size: 12px;
    font-weight: 800;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-activity table {
    min-width: 820px;
}

.admin-activity th {
    background: #eff4ff;
}

.admin-activity td,
.admin-activity th {
    padding: 13px 24px;
    font-size: 11px;
}

.admin-pagination {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-top: 1px solid var(--admin-outline);
}

.admin-pagination p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 12px;
    line-height: 1.5;
}

.admin-pagination > div {
    display: flex;
    gap: 6px;
    align-items: center;
}

.admin-pagination a,
.admin-pagination span {
    display: inline-flex;
    min-width: 34px;
    min-height: 34px;
    padding: 0 10px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--admin-outline);
    border-radius: 8px;
    background: #fff;
    color: var(--admin-primary);
    font-size: 12px;
    font-weight: 800;
}

.admin-pagination a:hover,
.admin-pagination a.active {
    border-color: var(--admin-primary);
    background: var(--admin-primary);
    color: #fff;
}

.admin-pagination span.disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

.admin-pagination span.ellipsis {
    min-width: 22px;
    padding: 0;
    border-color: transparent;
    background: transparent;
    color: var(--admin-muted);
}

@media (max-width: 760px) {
    .participant-search-form > div {
        align-items: stretch;
        flex-direction: column;
    }

    .participant-search-form input {
        width: 100%;
    }

    .admin-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-pagination > div {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .admin-pagination a,
    .admin-pagination span {
        flex: 0 0 auto;
    }
}

.admin-person {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-person > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #d8e3fb;
    color: #111c2d;
    font-weight: 900;
}

.admin-campaign-chip {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 4px;
    background: #d8e3fb;
    color: #3c475a;
    font-size: 9px;
    text-transform: uppercase;
}

.admin-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
}

.admin-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.admin-status.complete {
    color: var(--admin-success);
}

.admin-status.complete i {
    background: var(--admin-success);
}

.admin-status.pending {
    color: #855300;
}

.admin-status.pending i {
    background: #e29100;
}

.admin-settings {
    margin-bottom: 32px;
}

.admin-settings-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding-top: 22px;
}

.admin-settings-form .wide,
.admin-settings-form .admin-primary-button {
    grid-column: 1 / -1;
}

.admin-settings-form .admin-primary-button {
    width: fit-content;
}

.admin-leader-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.admin-leader-card {
    position: relative;
    display: flex;
    min-height: 168px;
    gap: 18px;
    overflow: hidden;
    padding: 24px;
    border-radius: 14px;
    background: linear-gradient(145deg, #0606B8, #020381);
    color: #fff;
    box-shadow: 0 12px 26px rgba(2, 3, 129, .16);
}

.admin-leader-card::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -54px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(3, 194, 2, .16);
}

.admin-leader-card > .material-symbols-outlined {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--admin-accent);
    color: #020381;
    font-size: 24px;
}

.admin-leader-card div {
    position: relative;
    z-index: 1;
}

.admin-leader-card small {
    color: rgba(255, 255, 255, .75);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.admin-leader-card h2 {
    margin-top: 10px;
    color: #fff;
    font-size: 18px;
    line-height: 1.25;
}

.admin-leader-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    line-height: 1.4;
}

.admin-leader-card p strong {
    color: #fff;
    font-size: 18px;
}

.admin-insight-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border-radius: 12px;
    background: linear-gradient(145deg, #0606B8, #020381);
    color: #fff;
}

.admin-insight-card > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--admin-accent);
    color: #020381;
}

.admin-insight-card small,
.admin-insight-card strong {
    display: block;
    color: #fff;
}

.admin-insight-card small {
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-insight-card strong {
    margin-top: 3px;
    font-size: 26px;
}

.admin-insight-card p {
    margin: 3px 0 0;
    color: rgba(255, 255, 255, .8);
    font-size: 11px;
    line-height: 1.4;
}

.admin-campaign-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
    margin-bottom: 24px;
    padding: 32px;
    border-radius: 16px;
    background: linear-gradient(145deg, #0606B8, #020381);
    color: #fff;
    box-shadow: 0 14px 30px rgba(2, 3, 129, .18);
}

.admin-campaign-hero small,
.admin-campaign-hero h2,
.admin-campaign-hero p,
.admin-campaign-hero strong,
.admin-campaign-hero span {
    color: #fff;
}

.admin-campaign-hero small {
    color: var(--admin-accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-campaign-hero h2 {
    margin-top: 8px;
    font-size: 28px;
}

.admin-campaign-hero p {
    max-width: 720px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
}

.admin-campaign-hero > div:last-child {
    display: grid;
    min-width: 130px;
    text-align: right;
}

.admin-campaign-hero > div:last-child strong {
    font-size: 38px;
}

.admin-campaign-hero > div:last-child span {
    color: rgba(255, 255, 255, .76);
    font-size: 11px;
}

.admin-ranking {
    padding: 0;
    overflow: hidden;
}

.admin-ranking table {
    min-width: 700px;
}

.admin-rank-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e5eeff;
    color: var(--admin-primary);
}

.admin-ranking tbody tr:first-child .admin-rank-position {
    background: var(--admin-accent);
    color: #020381;
}

.admin-system-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.admin-system-card {
    display: grid;
    gap: 20px;
    min-height: 260px;
    align-content: start;
    padding: 28px;
    border: 1px solid var(--admin-outline);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(11, 28, 48, .06);
}

.admin-system-card > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #e5eeff;
    color: var(--admin-primary);
    font-size: 26px;
}

.admin-system-card small {
    color: var(--admin-primary);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-system-card h2 {
    margin-top: 8px;
    font-size: 21px;
}

.admin-system-card p {
    margin-bottom: 0;
    color: var(--admin-muted);
    font-size: 13px;
    line-height: 1.6;
}

.admin-system-card a {
    color: var(--admin-primary);
    font-weight: 800;
}

.whatsapp-status-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
    padding: 26px;
    border-radius: 16px;
    background: linear-gradient(145deg, #0606B8, #020381);
    color: #fff;
    box-shadow: 0 14px 30px rgba(2, 3, 129, .18);
}

.whatsapp-status-card > .material-symbols-outlined {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--admin-accent);
    color: #020381;
    font-size: 28px;
}

.whatsapp-status-card small,
.whatsapp-status-card h2,
.whatsapp-status-card p {
    color: #fff;
}

.whatsapp-status-card small {
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.whatsapp-status-card h2 {
    margin-top: 4px;
    font-size: 23px;
}

.whatsapp-status-card p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    line-height: 1.5;
}

.whatsapp-status-card > b {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 10px;
    letter-spacing: .06em;
}

.whatsapp-status-card.enabled > b {
    background: var(--admin-accent);
    color: #020381;
}

.whatsapp-config-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.admin-section-head.no-gutter {
    padding: 0 0 20px;
}

.admin-settings-form.single {
    grid-template-columns: 1fr;
    padding-top: 0;
}

.whatsapp-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px;
    border-radius: 9px;
    background: #eff4ff;
}

.whatsapp-toggle input {
    width: 20px;
    min-height: 20px;
    accent-color: var(--admin-primary);
}

.whatsapp-steps-card ol {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.whatsapp-steps-card li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.whatsapp-steps-card li > span {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--admin-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.whatsapp-steps-card strong {
    font-size: 13px;
}

.whatsapp-steps-card p {
    margin: 3px 0 0;
    color: var(--admin-muted);
    font-size: 12px;
    line-height: 1.5;
}

.whatsapp-template-section {
    margin-bottom: 24px;
}

.whatsapp-template-section .admin-section-head form {
    flex: 0 0 auto;
}

.whatsapp-template-form {
    display: grid;
    grid-template-columns: minmax(180px, .7fr) minmax(240px, 1fr) minmax(260px, 1fr) auto;
    gap: 14px;
    align-items: end;
    padding: 18px 0;
    border-top: 1px solid var(--admin-outline);
}

.whatsapp-template-grid {
    display: grid;
    margin-top: 6px;
}

.whatsapp-template-copy h3 {
    font-size: 16px;
}

.whatsapp-template-copy p {
    margin: 5px 0 0;
    color: var(--admin-muted);
    font-size: 12px;
    line-height: 1.45;
}

.whatsapp-empty {
    margin-bottom: 0;
    padding: 16px;
    border-radius: 10px;
    background: #eff4ff;
    color: var(--admin-muted);
    font-size: 13px;
}

.whatsapp-test-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr);
    gap: 28px;
    align-items: end;
    margin-bottom: 24px;
}

.whatsapp-test-copy {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.whatsapp-test-copy > span {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #e5eeff;
    color: var(--admin-primary);
    font-size: 25px;
}

.whatsapp-test-copy h2 {
    font-size: 20px;
}

.whatsapp-test-copy p {
    margin: 6px 0 0;
    color: var(--admin-muted);
    font-size: 13px;
    line-height: 1.55;
}

.whatsapp-test-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.whatsapp-test-parameters {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pending-message-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.pending-message-hero small {
    color: var(--admin-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.pending-message-hero h2 {
    margin-top: 6px;
    font-size: 28px;
}

.pending-message-hero p {
    margin: 6px 0 0;
    color: var(--admin-muted);
}

.pending-message-hero > span {
    color: var(--admin-primary);
    font-size: 48px;
}

.whatsapp-pending-form {
    display: grid;
    gap: 20px;
    margin-bottom: 24px;
}

[data-pending-parameters] {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.pending-parameter-value[hidden] {
    display: none;
}

.whatsapp-campaign-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.whatsapp-campaign-hero small,
.whatsapp-campaign-summary small {
    color: var(--admin-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.whatsapp-campaign-hero p,
.whatsapp-campaign-summary p,
.whatsapp-campaign-template-list p {
    margin: 6px 0 0;
    color: var(--admin-muted);
    font-size: 13px;
}

.whatsapp-campaign-empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 56px 24px;
    text-align: center;
}

.whatsapp-campaign-empty > span {
    color: var(--admin-primary);
    font-size: 46px;
}

.whatsapp-campaign-empty p {
    max-width: 520px;
    color: var(--admin-muted);
}

.whatsapp-campaign-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.whatsapp-campaign-summary article,
.whatsapp-campaign-template-list article {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--admin-outline);
    border-radius: 12px;
    background: #f8fafc;
}

.whatsapp-campaign-summary article > span,
.whatsapp-campaign-template-list article > span {
    color: var(--admin-primary);
}

.whatsapp-campaign-summary strong {
    display: block;
    margin-top: 3px;
    font-size: 24px;
}

.whatsapp-campaign-template-list {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.whatsapp-campaign-template-list article.configured {
    border-color: rgba(22, 163, 74, .25);
    background: #f0fdf4;
}

.whatsapp-campaign-template-list article.configured > span {
    color: #16a34a;
}

.whatsapp-campaign-notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 10px;
    background: #eff4ff;
    color: var(--admin-primary);
}

.whatsapp-campaign-notice p {
    margin: 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.5;
}

.whatsapp-campaign-create {
    display: grid;
    gap: 18px;
}

.campaign-stepper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.campaign-stepper li {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--admin-outline);
    border-radius: 12px;
    background: #fff;
}

.campaign-stepper li > span {
    display: inline-flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--admin-primary);
    color: #fff;
    font-weight: 900;
}

.campaign-stepper strong,
.campaign-stepper small {
    display: block;
}

.campaign-stepper small {
    margin-top: 2px;
    color: var(--admin-muted);
    font-size: 11px;
}

.whatsapp-campaign-create > label,
.campaign-parameters,
.campaign-audience {
    display: grid;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
}

.whatsapp-campaign-create > label {
    padding: 16px;
    border: 1px solid var(--admin-outline);
    border-radius: 12px;
    background: #f8fafc;
}

.whatsapp-campaign-create > label > input,
.whatsapp-campaign-create > label > select {
    margin-top: 8px;
    background: #fff;
}

.campaign-field-help {
    color: var(--admin-muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
}

.campaign-parameters,
.campaign-audience {
    padding: 18px;
    border: 1px solid var(--admin-outline);
    border-radius: 12px;
}

.campaign-parameters > p,
.campaign-audience p {
    margin: 0 0 8px;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 400;
}

.campaign-parameter-row {
    display: grid;
    grid-template-columns: 64px minmax(180px, .7fr) 1fr;
    gap: 10px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--admin-outline);
    border-radius: 10px;
    background: #f8fafc;
}

.campaign-parameter-row > strong {
    color: var(--admin-primary);
    font-size: 12px;
}

.campaign-parameter-field,
.campaign-search-field {
    display: grid;
    gap: 6px;
    color: #334155;
    font-size: 11px;
    font-weight: 800;
}

.campaign-parameter-field[hidden] {
    display: none;
}

.campaign-parameter-row[hidden],
[data-recipient-row][hidden] {
    display: none;
}

.campaign-select-all {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
}

.campaign-select-all input,
.campaign-recipient-list input {
    width: 18px;
    min-height: 18px;
}

.campaign-recipient-search {
    margin: 0;
}

.campaign-visible-count {
    color: var(--admin-muted);
    font-size: 11px;
    font-weight: 600;
    text-align: right;
}

.campaign-recipient-list {
    display: grid;
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid var(--admin-outline);
    border-radius: 10px;
}

.campaign-recipient-list label {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--admin-outline);
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.campaign-recipient-list label:hover {
    background: #f8fafc;
}

.campaign-recipient-list label.selected {
    background: #eff6ff;
    box-shadow: inset 3px 0 var(--admin-primary);
}

.campaign-recipient-list label:last-child {
    border-bottom: 0;
}

.campaign-recipient-list span,
.campaign-recipient-list small,
.campaign-creator {
    display: block;
}

.campaign-recipient-list small,
.campaign-creator {
    margin-top: 3px;
    color: var(--admin-muted);
    font-size: 11px;
    font-weight: 500;
}

.campaign-submit-bar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid var(--admin-outline);
}

.campaign-submit-bar p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 13px;
}

.whatsapp-test-form .admin-primary-button {
    grid-column: 2;
    justify-self: end;
    white-space: nowrap;
}

.admin-users-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding: 28px;
    border-radius: 16px;
    background: linear-gradient(125deg, #0066F5 0%, #00A9E8 50%, #00C98B 100%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(0, 102, 245, .2);
}

.admin-users-summary > div {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-users-summary > div > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: var(--admin-accent);
    color: #063B70;
    font-size: 27px;
}

.admin-users-summary small,
.admin-users-summary h2,
.admin-users-summary p {
    color: #fff;
}

.admin-users-summary small {
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-users-summary h2 {
    margin-top: 4px;
    font-size: 24px;
}

.admin-users-summary p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .8);
    font-size: 12px;
}

.admin-users-summary > .admin-primary-button {
    background: rgba(255, 255, 255, .94);
    color: #0066F5;
}

.admin-create-user {
    margin-bottom: 24px;
    padding: 0 24px 24px;
}

.admin-promote-user {
    margin-bottom: 24px;
    padding: 0 24px 24px;
}

.admin-promote-user .admin-section-head {
    padding-inline: 0;
}

.admin-promote-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
    padding-top: 20px;
}

.admin-empty-copy {
    margin: 18px 0 0;
    color: var(--admin-muted);
    font-size: 14px;
}

.admin-create-user .admin-section-head {
    padding-inline: 0;
}

.admin-user-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 14px;
    align-items: end;
    padding-top: 20px;
}

.admin-users-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.admin-user-card-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--admin-outline);
}

.admin-user-card-head > div {
    display: grid;
    gap: 3px;
}

.admin-user-card-head small {
    color: var(--admin-primary);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-user-card-head strong {
    font-size: 14px;
}

.admin-user-card-head > b {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(22, 163, 74, .1);
    color: var(--admin-success);
    font-size: 9px;
}

.admin-user-card.is-default {
    border-color: rgba(6, 6, 184, .35);
    box-shadow: 0 8px 24px rgba(6, 6, 184, .08);
}

.admin-user-card.is-default .admin-user-card-head > b {
    background: rgba(6, 6, 184, .1);
    color: var(--admin-primary);
}

.default-admin-form,
.default-admin-note {
    margin: -6px 0 20px;
}

.default-admin-form button,
.default-admin-note {
    display: flex;
    gap: 7px;
    align-items: center;
    width: 100%;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid rgba(6, 6, 184, .18);
    border-radius: 9px;
    background: var(--soft-blue);
    color: var(--admin-primary);
    font-size: 12px;
    font-weight: 800;
}

.default-admin-form button {
    justify-content: center;
    cursor: pointer;
}

.default-admin-form button:hover {
    border-color: var(--admin-primary);
}

.default-admin-form .material-symbols-outlined,
.default-admin-note .material-symbols-outlined {
    font-size: 18px;
}

.admin-user-edit-form {
    display: grid;
    gap: 14px;
}

.admin-user-edit-form .copy-row {
    margin: 0;
}

.admin-user-edit-form .admin-primary-button {
    width: fit-content;
}

.admin-activity code {
    color: var(--admin-muted);
    font-size: 10px;
}

@media (max-width: 960px) {
    .admin-analytics-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .admin-sidebar {
        position: static;
        width: 100%;
        padding: 18px 16px 0;
        border-right: 0;
        border-bottom: 5px solid var(--admin-accent);
    }

    .admin-brand {
        justify-content: flex-start;
        width: 120px;
        height: 120px;
        margin: 0;
        padding: 0;
    }

    .admin-profile {
        position: absolute;
        right: 16px;
        top: 12px;
        margin: 0;
        padding: 0;
    }

    .admin-profile div {
        display: none;
    }

    .admin-nav {
        flex-direction: row;
        margin-top: 16px;
        overflow-x: auto;
    }

    .admin-nav a,
    .admin-nav a.active {
        flex: 0 0 auto;
        margin: 0;
        padding: 0 14px;
        border-radius: 8px 8px 0 0;
    }

    .admin-settings-link {
        margin-top: 0;
    }

    .admin-main {
        width: 100%;
        margin-left: 0;
        padding: 24px;
    }
}

@media (max-width: 720px) {
    .admin-main {
        padding: 20px 16px;
    }

    .admin-topbar {
        align-items: flex-start;
    }

    .admin-analytics-tabs {
        margin-top: -12px;
    }

    .admin-analytics-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-top-actions .admin-icon-button,
    .admin-top-actions .admin-primary-button {
        display: none;
    }

    .admin-kpis,
    .admin-leader-grid,
    .admin-bento,
    .admin-settings-form,
    .admin-system-grid {
        grid-template-columns: 1fr;
    }

    .admin-campaign-hero {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .admin-campaign-hero > div:last-child {
        text-align: left;
    }

    .admin-settings-form .wide,
    .admin-settings-form .admin-primary-button {
        grid-column: auto;
    }

    .whatsapp-config-grid,
    .whatsapp-template-form,
    .whatsapp-test-section,
    .whatsapp-test-form,
    .whatsapp-test-parameters,
    .whatsapp-campaign-summary,
    .admin-user-form,
    .admin-promote-form,
    .admin-users-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-test-form .admin-primary-button {
        grid-column: auto;
        justify-self: stretch;
    }

    .whatsapp-campaign-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .campaign-parameter-row {
        grid-template-columns: 1fr;
    }

    .campaign-stepper {
        grid-template-columns: 1fr;
    }

    .campaign-submit-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-users-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .whatsapp-status-card {
        grid-template-columns: auto 1fr;
    }

    .whatsapp-status-card > b {
        grid-column: 1 / -1;
        width: fit-content;
    }

    .whatsapp-template-section .admin-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-chart {
        gap: 7px;
        height: 220px;
        padding-inline: 0;
    }
}

@media (min-width: 700px) {
    .simple-invite-page {
        align-items: flex-start;
        padding: 28px 0;
        background: #f1f3f5;
    }

    .simple-invite-shell {
        min-height: auto;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: var(--shadow);
    }
}

@media (max-width: 1024px) {
    .invite-hero,
    .registration-panel,
    .two-column,
    .admin-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .site-header {
        padding: 0 24px;
    }

    .top-nav {
        display: none;
    }

    .page {
        padding-top: 32px;
    }

    .invite-hero,
    .dashboard-hero {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .registration-form,
    .benefit-grid,
    .metric-grid,
    .field-grid,
    .copy-row {
        grid-template-columns: 1fr;
    }

    .photo-band {
        min-height: 220px;
    }

    .dashboard-hero {
        padding: 24px;
    }
}

@media (max-width: 420px) {
    h1 {
        font-size: 34px;
    }

    .panel,
    .registration-panel {
        padding: 20px;
    }
}

/* The three core screens keep the same app-like composition on desktop. */
.participant-page {
    width: min(100%, 430px);
    margin: 0 auto;
}

@media (min-width: 760px) {
    .participant-content {
        grid-template-columns: 1fr;
        padding: 16px 16px 26px;
    }

    .password-card,
    .level-card,
    .participant-grid,
    .activity-card,
    .participant-stats {
        grid-column: auto;
    }

    .participant-stats,
    .participant-grid,
    .level-card {
        grid-template-columns: 1fr;
    }
}

.participant-bottom-nav {
    left: 50%;
    right: auto;
    width: min(100%, 430px);
    transform: translateX(-50%);
}

.participant-top {
    position: relative;
}

.points-stat {
    border-color: rgba(3, 194, 2, .5) !important;
    background: #efffee !important;
}

.points-stat strong {
    color: #087a08 !important;
}

.activity-head > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.login-form {
    align-content: start;
    min-height: 500px;
    padding-top: 42px;
}

.flash.error {
    border-color: rgba(220, 38, 38, .25);
    color: var(--error);
}

.flash.success {
    border-color: rgba(22, 163, 74, .25);
    color: var(--success);
}

.admin-status.inactive {
    background: #f3f4f6;
    color: #4b5563;
}

.admin-status.inactive i {
    background: #6b7280;
}

.compact-panel code {
    display: block;
    overflow-wrap: anywhere;
    padding: 12px;
    border-radius: 8px;
    background: #f1f3f5;
    color: #374151;
    font-size: 12px;
}

/* Management theme aligned with the registration action gradient. */
.admin-app {
    --admin-primary: #0066F5;
    --admin-cyan: #00A9E8;
    --admin-accent: #00C98B;
    --admin-navy: #063B70;
    --admin-success: #00A875;
    --admin-soft: #edfaff;
}

.admin-app .admin-sidebar {
    background: linear-gradient(180deg, #0066F5 0%, #00A9E8 52%, #00C98B 100%);
    box-shadow: 8px 0 28px rgba(0, 102, 245, .16);
}

.admin-app .admin-avatar,
.admin-app .admin-leader-card > .material-symbols-outlined,
.admin-app .admin-insight-card > span,
.admin-app .admin-ranking tbody tr:first-child .admin-rank-position,
.admin-app .whatsapp-status-card > .material-symbols-outlined,
.admin-app .admin-users-summary > div > span {
    color: #063B70;
}

.admin-app .admin-nav a.active {
    background: rgba(255, 255, 255, .94);
    color: #0066F5;
}

.admin-app .admin-analytics {
    --data-blue: #0066F5;
}

.admin-app .admin-primary-button,
.admin-app .admin-analytics-tabs a:hover,
.admin-app .admin-analytics-tabs a.active,
.admin-app .admin-pagination a:hover,
.admin-app .admin-pagination a.active {
    background: linear-gradient(90deg, #0066F5 0%, #00A9E8 50%, #00C98B 100%);
    color: #FFFFFF;
}

.admin-app .admin-chart-column i {
    background: linear-gradient(180deg, #00A9E8, #00C98B);
}

.admin-app .admin-goal-card,
.admin-app .admin-leader-card,
.admin-app .admin-insight-card,
.admin-app .admin-campaign-hero,
.admin-app .whatsapp-status-card,
.admin-app .admin-users-summary {
    background: linear-gradient(125deg, #0066F5 0%, #00A9E8 50%, #00C98B 100%);
    box-shadow: 0 14px 30px rgba(0, 102, 245, .2);
}

.admin-app .admin-users-summary > .admin-primary-button {
    background: rgba(255, 255, 255, .94);
    color: #0066F5;
}

.admin-app .data-sidebar {
    background: linear-gradient(180deg, #0066F5 0%, #00A9E8 52%, #00C98B 100%);
}

.admin-app .data-sidebar nav a:hover,
.admin-app .data-sidebar nav a.active {
    background: rgba(255, 255, 255, .2);
}

.admin-app .data-sidebar nav a.active {
    box-shadow: inset 3px 0 #FFFFFF;
}

.admin-app .data-header > div:first-child > small,
.admin-app .data-card-head small,
.admin-app .data-section-intro small,
.admin-app .data-manager header small,
.admin-app .data-leader header small {
    color: #0066F5;
}

.admin-app .data-progress i,
.admin-app .geo-ranking div > span i {
    background: linear-gradient(90deg, #0066F5 0%, #00A9E8 50%, #00C98B 100%);
}

.data-document-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(90deg, #0066F5 0%, #00A9E8 50%, #00C98B 100%);
    color: #FFFFFF;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.data-document-button .material-symbols-outlined {
    font-size: 17px;
}

.data-document-empty {
    color: var(--data-muted);
    font-size: 10px;
    white-space: nowrap;
}

.document-viewer-modal {
    width: min(1080px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 28px 80px rgba(6, 59, 112, .28);
}

.document-viewer-modal::backdrop {
    background: rgba(3, 18, 38, .72);
    backdrop-filter: blur(4px);
}

.document-viewer-modal > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    background: linear-gradient(90deg, #0066F5 0%, #00A9E8 50%, #00C98B 100%);
    color: #FFFFFF;
}

.document-viewer-modal > header div {
    display: grid;
    gap: 3px;
}

.document-viewer-modal > header small {
    color: rgba(255, 255, 255, .76);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
}

.document-viewer-modal > header strong {
    color: #FFFFFF;
    font-size: 18px;
}

.document-viewer-modal > header button {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #FFFFFF;
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}

.document-viewer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-height: calc(100vh - 110px);
    padding: 22px;
    overflow-y: auto;
}

.document-viewer-grid figure {
    display: grid;
    gap: 10px;
    align-content: start;
    margin: 0;
}

.document-viewer-grid figcaption {
    color: #063B70;
    font-size: 12px;
    font-weight: 900;
}

.document-viewer-grid img {
    display: block;
    width: 100%;
    min-height: 240px;
    max-height: 62vh;
    border: 1px solid #d7e0dc;
    border-radius: 10px;
    background: #f4f7fa;
    object-fit: contain;
}

.document-viewer-grid figure p {
    display: none;
    margin: 0;
    padding: 50px 18px;
    border: 1px dashed #b8c5d3;
    border-radius: 10px;
    color: #64748b;
    font-size: 12px;
    text-align: center;
}

.document-viewer-grid figure.is-empty img {
    display: none;
}

.document-viewer-grid figure.is-empty p {
    display: block;
}

@media (max-width: 820px) {
    .document-viewer-grid {
        grid-template-columns: 1fr;
    }

    .document-viewer-grid img {
        min-height: 200px;
    }
}

@media (min-width: 700px) {
    body {
        background: #f1f3f5;
    }

    .participant-page {
        margin-top: 28px;
        margin-bottom: 28px;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: var(--shadow);
    }

    .participant-top {
        border-radius: 18px 18px 0 0;
    }
}
