:root {
    color-scheme: light;
    --bg: #f4f7f3;
    --ink: #17211b;
    --muted: #5c6b62;
    --line: #d9e1db;
    --accent: #18754a;
    --accent-strong: #0f5938;
    --surface: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-padding-top: var(--topbar-height, 72px);
    font-size: 93.75%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(16px, 4vw, 48px);
    border-bottom: 1px solid rgba(217, 225, 219, 0.72);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
}


.brand-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.brand-trail {
    color: var(--muted);
    font-weight: 700;
}
.brand {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topnav a,
.nav-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 11px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #26302a;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.sales-body .topbar {
    border-bottom: 1px solid rgba(217, 225, 219, 0.72);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
}

.sales-body .topnav {
    align-items: center;
    gap: 8px;
}

.sales-body .topnav a {
    color: #26302a;
}

.sales-body .topnav .nav-cta {
    background: #18754a;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(24, 117, 74, 0.18);
}

.page {
    width: min(1200px, calc(100% - 32px));
    margin: 56px auto;
}

.panel {
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
}

p {
    max-width: 640px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.sales-hero-content .actions .button:not(.secondary) {
    order: 3;
}

.sales-hero-content .actions .hero-secondary {
    order: 1;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.button.secondary {
    background: var(--surface);
    color: var(--accent-strong);
}

@media (max-width: 640px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .page {
        margin: 24px auto;
    }
}


.nav-form {
    margin: 0;
}

.nav-form button {
    cursor: pointer;
}

.topnav .nav-cta {
    min-height: 34px;
    padding: 0 13px;
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(24, 117, 74, 0.16);
}

.flash {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    font-weight: 700;
}

.flash.error {
    border-color: #e3b4ad;
    color: #8a251b;
}

.flash.success {
    border-color: #9fd1b5;
    color: #0f5938;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: clamp(24px, 5vw, 56px);
    align-items: start;
}

.auth-copy {
    padding-top: 12px;
}

.form-panel {
    display: grid;
    gap: 10px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.form-panel label {
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.form-panel input {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    font: inherit;
}

.form-panel input:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(24, 117, 74, 0.16);
}

.demo-login-note {
    padding: 12px 13px;
    border: 1px solid rgba(24, 117, 74, 0.24);
    border-radius: 8px;
    background: #edf7f0;
    color: #26302a;
    font-size: 0.92rem;
    line-height: 1.45;
}

.button.full {
    width: 100%;
    margin-top: 8px;
}

.sales-body {
    --hero-radius: 10px;
    overflow-x: hidden;
    background:
        linear-gradient(180deg, #f4f7f3 0%, #eef5ef 42%, #f7faf7 100%);
}

.sales-body .page {
    display: grid;
    gap: 34px;
    width: 100%;
    margin: 0;
}

.container-id-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 30;
    display: none;
    align-items: center;
    max-width: calc(100% - 24px);
    padding: 6px 9px;
    border: 1px solid rgba(59, 214, 113, 0.46);
    border-radius: 6px;
    background: rgba(11, 18, 15, 0.84);
    color: #bff8d2;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.03em;
    pointer-events: none;
}

.sales-hero-v2 {
    position: relative;
    display: grid;
    align-items: end;
    min-height: min(760px, calc(100vh - 92px));
    overflow: hidden;
    background: #0b1610;
    isolation: isolate;
}

.sales-hero-media {
    position: absolute;
    inset: 0;
    background-image: url('../img/landing-hero-field.png');
    background-position: center;
    background-size: cover;
    transform: scale(1.01);
    z-index: -2;
}

.sales-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 16, 12, 0.94) 0%, rgba(8, 16, 12, 0.76) 38%, rgba(8, 16, 12, 0.18) 76%),
        linear-gradient(180deg, rgba(8, 16, 12, 0.08) 0%, rgba(8, 16, 12, 0.7) 100%);
    z-index: -1;
}

.sales-hero-content {
    display: grid;
    gap: 20px;
    max-width: 760px;
    padding: clamp(28px, 7vw, 74px);
    color: #ffffff;
}

.sales-hero-content .eyebrow {
    color: #c9f4dc;
}

.hero-seo-line,
.sales-hidden-eyebrow {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.sales-hero-content h1 {
    width: min(75vw, 1120px);
    max-width: none;
    color: #ffffff;
    font-size: clamp(2.65rem, 6vw, 5.6rem);
    line-height: 0.96;
}

.sales-hero-content h1 span {
    display: block;
}

.sales-hero-content h1 mark {
    background: transparent;
    color: #3bd671;
}

.sales-hero-content h1 .hero-title-mobile {
    display: none;
}

.sales-hero-content p {
    max-width: 610px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1.02rem, 2vw, 1.22rem);
}

@media (min-width: 641px) {
    .sales-hero-v2 {
        align-items: start-flex;
    }

    .sales-hero-content {
        padding-top: clamp(16px, 20vw, 24px);
    }
}

.hero-secondary {
    border-color: rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.sales-proof-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 670px;
    margin-top: 20px;
}

.sales-proof-row article {
    display: grid;
    gap: 4px;
    min-height: 92px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.sales-proof-row strong {
    color: #ffffff;
    font-size: 1.75rem;
    line-height: 1;
}

.sales-proof-row span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    font-weight: 700;
}

.sales-intro,
.sales-before-after,
.sales-pillars,
.sales-flow,
.sales-product-windows,
.sales-showcase,
.sales-modules,
.sales-contact {
    width: min(1180px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.sales-intro,
.sales-before-after,
.sales-pillars,
.sales-flow,
.sales-product-windows,
.sales-showcase,
.sales-modules,
.sales-contact {
    position: relative;
}

.sales-green-band {
    width: 100%;
    padding: clamp(24px, 5vw, 52px) 0;
    background: #0b1d14;
}

.sales-product-windows-band {
    background:
        linear-gradient(180deg, rgba(8, 13, 11, 0.26), rgba(8, 13, 11, 0.42)),
        url("../img/pitch_with_smoke.jpg") center / cover no-repeat,
        #0b120f;
}

.sales-green-band .sales-pillars,
.sales-green-band .sales-product-windows {
    margin-top: 0;
    margin-bottom: 0;
}

.sales-intro,
.sales-pillars,
.sales-flow,
.sales-product-windows,
.sales-showcase,
.sales-contact {
    padding: clamp(24px, 5vw, 52px);
}

.sales-intro {
    display: grid;
    gap: 14px;
    background: var(--surface);
}

.sales-intro h2,
.sales-before-after h2,
.sales-section-head h2,
.sales-product-windows h2,
.sales-showcase h2,
.sales-contact h2 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 3.7rem);
    line-height: 1;
}

.sales-intro p,
.sales-before-after p,
.sales-product-windows p,
.sales-showcase p,
.sales-contact p {
    margin: 0;
}

.sales-before-after {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
}

.sales-before-after > article {
    display: grid;
    align-content: start;
    gap: 24px;
    padding: clamp(24px, 5vw, 52px);
}

.sales-before-after > article:first-of-type {
    border-right: 1px solid var(--line);
    background:
        radial-gradient(circle at 82% 20%, #ee3d32 0%, #b91c1c 30%, #6f1713 68%, #43100d 100%);
    color: #ffffff;
}

.sales-before-after > article:first-of-type .eyebrow,
.sales-before-after > article:first-of-type h2 {
    color: #ffffff;
}

.sales-before-after > article:last-of-type {
    background:
        radial-gradient(circle at 88% 14%, rgba(24, 117, 74, 0.18), transparent 30%),
        linear-gradient(145deg, #f4fbf6, #ffffff);
}

.sales-compare-copy {
    display: grid;
    gap: 12px;
}

.sales-chaos-mock,
.system-control-mock {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbf8;
}

.sales-chaos-mock {
    background:
        linear-gradient(135deg, rgba(185, 28, 28, 0.12), transparent 34%),
        repeating-linear-gradient(0deg, rgba(23, 33, 27, 0.04) 0 1px, transparent 1px 28px),
        #fffdf9;
}

.paper-card,
.chat-card,
.sheet-card,
.notebook-card {
    position: absolute;
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(23, 33, 27, 0.14);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 35px rgba(23, 33, 27, 0.12);
}

.paper-card strong,
.sheet-card strong,
.notebook-card strong,
.control-header strong {
    color: var(--ink);
}

.paper-card span,
.sheet-card span,
.notebook-card span,
.chat-card span,
.chat-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.paper-card-one {
    top: 38px;
    left: 18px;
    width: 190px;
    transform: rotate(-14deg);
    z-index: 2;
}

.paper-card-two {
    right: 22px;
    bottom: 22px;
    width: 170px;
    transform: rotate(13deg);
    z-index: 4;
}

.chat-card {
    top: 48px;
    right: 18px;
    width: 210px;
    background: #e8fff1;
    transform: rotate(8deg);
    z-index: 3;
}

.chat-card span {
    color: var(--accent-strong);
    text-transform: uppercase;
}

.sheet-card {
    left: 38px;
    bottom: 32px;
    width: 240px;
    transform: rotate(-7deg);
    z-index: 1;
}

.sheet-card span {
    height: 14px;
    border-radius: 999px;
    background: #e7eee8;
}

.notebook-card {
    top: 116px;
    left: 132px;
    width: 214px;
    min-height: 146px;
    background:
        linear-gradient(90deg, rgba(220, 38, 38, 0.18) 0 2px, transparent 2px 100%),
        repeating-linear-gradient(0deg, transparent 0 21px, rgba(23, 33, 27, 0.13) 21px 22px),
        #fffdf4;
    transform: rotate(5deg);
    z-index: 0;
}

.notebook-card span {
    height: 16px;
    border-radius: 999px;
    background: rgba(23, 33, 27, 0.16);
}

.system-control-mock {
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 22px;
    background:
        #fbfdfb;
}

.control-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.control-header span {
    padding: 7px 10px;
    border-radius: 999px;
    background: #dff4e6;
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 900;
}

.control-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 89, 56, 0.09);
}

.control-grid span,
.control-log span {
    color: var(--muted);
    font-weight: 800;
}

.control-grid strong {
    color: var(--accent-strong);
    font-size: 1.8rem;
    line-height: 1;
}

.control-log {
    display: grid;
    gap: 10px;
}

.control-log span {
    padding: 12px 14px;
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(23, 33, 27, 0.07);
}

.sales-pillars,
.sales-flow {
    display: grid;
    gap: 24px;
}

.sales-pillars {
    border-color: #0b1d14;
    background: #0b1d14;
    color: #ffffff;
}

.sales-pillars .eyebrow,
.sales-pillars h2 {
    color: #ffffff;
}

.sales-pillars .sales-section-head h2 {
    max-width: 920px;
}

.sales-pillars .sales-section-head h2 span {
    font-weight: 600;
}

.sales-pillars .sales-section-head h2 strong {
    display: inline;
    color: #3bd671;
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Arial Black", system-ui, sans-serif;
    font-weight: 800;
    text-shadow: 0 10px 28px rgba(59, 214, 113, 0.18);
}

.sales-section-head {
    display: grid;
    gap: 12px;
}

.sales-pillar-grid,
.sales-flow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.sales-pillar-grid article,
.sales-flow-grid article {
    display: grid;
    align-content: start;
    gap: 14px;
    min-height: 250px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}

.sales-pillar-grid article {
    position: relative;
    grid-template-rows: auto auto minmax(74px, auto) 178px;
    min-height: 420px;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.18);
}

.sales-pillar-grid article::before {
    content: none;
}

.sales-pillar-grid article:nth-child(1) {
    --pillar-accent: #18754a;
}

.sales-pillar-grid article:nth-child(2) {
    --pillar-accent: #18754a;
}

.sales-pillar-grid article:nth-child(3) {
    --pillar-accent: #18754a;
}

.pillar-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pillar-topline i {
    padding: 7px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--pillar-accent) 14%, white);
    color: var(--ink);
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
}

.pillar-topline > span,
.flow-step {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.pillar-topline > span {
    color: #17211b;
}

.sales-pillar-grid h3,
.sales-flow-grid h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.28rem;
}

.sales-pillar-grid p,
.sales-flow-grid p {
    margin: 0;
    font-size: 0.98rem;
}

.sales-pillar-grid article > h3 {
    min-height: 0;
    font-size: clamp(1.48rem, 2.2vw, 1.78rem);
    line-height: 1.04;
    font-weight: 950;
}

.sales-pillar-grid article > p {
    height: 74px;
    overflow: hidden;
}

.pillar-mini-window {
    display: flex;
    flex-direction: column;
    height: 178px;
    margin-top: 4px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(26, 32, 44, 0.1);
    border-radius: 14px;
    background: #f3f4ee;
    box-shadow: 0 14px 28px rgba(23, 33, 27, 0.1);
}

.mini-window-bar,
.program-window-bar {
    display: flex;
    gap: 6px;
    align-items: center;
}

.mini-window-bar span,
.program-window-bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #b6c2ba;
}

.pillar-mini-window .mini-window-bar {
    height: 32px;
    flex: 0 0 32px;
    padding: 0 14px;
    background: #22272b;
}

.pillar-mini-window .mini-window-bar span {
    background: #70777c;
}

.mini-window-body {
    display: grid;
    gap: 8px;
    align-content: start;
    flex: 1;
    padding: 14px;
    background: #f3f4ee;
}

.mini-score-row {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
}

.mini-score-row b {
    color: #1b3b2b;
    font-size: 2.05rem;
    line-height: 1;
}

.mini-score-row em {
    padding: 5px 10px;
    border-radius: 999px;
    background: #e2e7df;
    color: #2d3748;
    font-style: normal;
    font-weight: 900;
    font-size: 0.74rem;
}

.pillar-mini-window > strong {
    color: var(--accent-strong);
}

.mini-window-body > strong {
    color: #1b5e3a;
    font-size: 0.92rem;
}

.mini-window-list {
    display: grid;
    gap: 7px;
}

.mini-window-list span,
.mini-ledger-row,
.mini-rule-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 7px 10px;
    border: 1px solid rgba(26, 32, 44, 0.08);
    border-radius: 8px;
    background: #ffffff;
    color: #1a202c;
    font-size: 0.78rem;
    font-weight: 900;
}

.mini-window-list svg,
.mini-rule-row svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: #1b5e3a;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mini-ledger-row {
    justify-content: space-between;
}

.mini-ledger-row b {
    color: var(--accent-strong);
}

.mini-ledger-row.warning b {
    color: #17211b;
}

.mini-rule-row {
    border-left: 0;
}

.pillar-rules-window .mini-rule-row:first-of-type {
    border-left-color: #17211b;
}

.sales-flow {
    overflow: hidden;
    border-color: rgba(15, 90, 52, 0.12);
    background:
        radial-gradient(circle at 9% 18%, rgba(59, 214, 113, 0.12), transparent 26%),
        radial-gradient(circle at 92% 6%, rgba(27, 94, 58, 0.09), transparent 24%),
        linear-gradient(135deg, #f7fbf8, #eef6f1);
}

.sales-flow .sales-section-head h2 {
    max-width: 860px;
}

.sales-flow .sales-section-head h2 mark {
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #0f5a34;
}

.sales-bullet-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sales-bullet-list li {
    position: relative;
    display: block;
    padding: 0 0 0 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #26302a;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.35;
}

.sales-bullet-list li::before {
    content: "";
    position: absolute;
    top: 0.46em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3bd671;
    box-shadow: 0 0 0 3px rgba(59, 214, 113, 0.14);
}

.sales-flow-grid article {
    position: relative;
    border: 1px solid rgba(15, 90, 52, 0.1);
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(23, 33, 27, 0.07);
}

.sales-flow-grid article::after {
    content: none;
}

.flow-public {
    --flow-accent: #18754a;
}

.flow-admin {
    --flow-accent: #1b5e3a;
}

.flow-table {
    --flow-accent: #0f5a34;
}

.sales-flow-grid article .flow-step,
.sales-flow-grid article h3,
.sales-flow-grid article ul {
    position: relative;
    z-index: 1;
}

.sales-flow-grid article .flow-step {
    justify-self: start;
    padding: 7px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--flow-accent) 12%, white);
    font-size: 0.76rem;
    line-height: 1;
    letter-spacing: 0.04em;
}

.sales-flow-grid article .flow-step,
.sales-flow-grid article .sales-bullet-list li::before {
    color: var(--flow-accent);
}

.sales-flow-grid article .sales-bullet-list li::before {
    background: var(--flow-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--flow-accent) 16%, transparent);
}

.sales-product-windows {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
    gap: 18px;
    border-color: #0b1d14;
    background: #0b1d14;
    padding: clamp(18px, 3vw, 28px);
}

.program-card {
    display: grid;
    gap: 22px;
    align-content: start;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 18px 42px rgba(23, 33, 27, 0.08);
}

.program-card-admin {
    background: #ffffff;
}

.program-card-match {
    background: #ffffff;
}

.program-card-copy {
    display: grid;
    gap: 12px;
}

.program-window {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(23, 33, 27, 0.1);
}

.program-window-bar {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    background: #f6faf7;
}

.program-window-admin {
    background: #ffffff;
}

.program-window-match {
    background: #ffffff;
}

.program-window-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
}

.program-window-grid article {
    display: grid;
    gap: 6px;
    min-height: 104px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbf8;
}

.program-window-grid strong,
.program-match-panel b {
    color: var(--accent-strong);
}

.program-window-grid span,
.program-event-list span,
.program-score span {
    color: var(--muted);
    font-weight: 800;
}

.program-match-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    margin: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f4faf6;
}

.program-score {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.program-score b {
    font-size: 3rem;
    line-height: 1;
}

.program-score span {
    padding: 8px 10px;
    border-radius: 999px;
    background: #ffffff;
}

.program-event-list {
    display: grid;
    gap: 9px;
}

.program-event-list span {
    padding: 10px 12px;
    border-radius: 6px;
    background: #ffffff;
}

.program-event-list strong {
    color: var(--accent-strong);
}

.sales-showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.15fr);
    gap: clamp(24px, 5vw, 56px);
    align-items: center;
    overflow: hidden;
    background: var(--surface);
}

.sales-showcase-copy {
    display: grid;
    gap: 14px;
}

.sales-device-stage {
    position: relative;
    min-height: 430px;
}

.sales-desktop-mock {
    position: absolute;
    top: 16px;
    right: 40px;
    width: min(100%, 520px);
    overflow: hidden;
    border: 1px solid rgba(23, 33, 27, 0.14);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(23, 33, 27, 0.18);
}

.mock-toolbar {
    display: flex;
    gap: 6px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    background: #f7faf7;
}

.mock-toolbar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #b6c2ba;
}

.mock-dashboard {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 300px;
}

.mock-dashboard aside {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 18px;
    background: #10271b;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.mock-dashboard aside strong {
    color: #ffffff;
    font-size: 1.15rem;
}

.mock-dashboard main {
    display: grid;
    gap: 18px;
    padding: 20px;
}

.mock-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.mock-stat-row article {
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7faf7;
}

.mock-stat-row strong {
    color: var(--accent-strong);
    font-size: 1.55rem;
    line-height: 1;
}

.mock-stat-row span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.mock-table {
    display: grid;
    gap: 10px;
}

.mock-table span {
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e8efe9, #f6faf7);
}

.sales-phone-mock {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 238px;
    padding: 12px;
    border: 8px solid #111915;
    border-radius: 28px;
    background: #111915;
    box-shadow: 0 18px 42px rgba(23, 33, 27, 0.22);
}

.phone-speaker {
    width: 52px;
    height: 5px;
    margin: 2px auto 10px;
    border-radius: 999px;
    background: #46524c;
}

.phone-screen {
    display: grid;
    gap: 12px;
    min-height: 330px;
    padding: 14px;
    border-radius: 18px;
    background: #eef4ef;
}

.phone-status {
    justify-self: start;
    padding: 5px 8px;
    border-radius: 999px;
    background: #dff4e6;
    color: var(--accent-strong);
    font-size: 0.72rem;
    font-weight: 900;
}

.phone-score {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    padding: 12px 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    text-align: center;
}

.phone-score div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.phone-score span {
    color: var(--ink);
    font-size: 0.66rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.phone-score strong {
    font-size: 2.1rem;
    line-height: 1;
}

.phone-score em {
    align-self: end;
    padding-bottom: 5px;
    color: var(--muted);
    font-size: 1.2rem;
    font-style: normal;
    font-weight: 900;
}

.phone-clock {
    display: grid;
    justify-items: center;
    color: var(--ink);
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
}

.phone-clock small {
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #173c29;
    color: #ffffff;
    font-size: 0.82rem;
}

.phone-log {
    display: grid;
    gap: 8px;
}

.phone-log span {
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.sales-modules {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    background: #ffffff;
}

.sales-modules article {
    display: grid;
    align-content: start;
    gap: 14px;
    min-height: 260px;
    padding: clamp(20px, 3vw, 30px);
    border-right: 1px solid var(--line);
}

.sales-modules article:last-child {
    border-right: 0;
}

.sales-modules span {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
}

.sales-modules h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.2rem;
}

.sales-modules p {
    margin: 0;
    font-size: 0.98rem;
}

.sales-contact {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
    gap: clamp(24px, 5vw, 48px);
    align-items: center;
    margin-bottom: 8px;
    overflow: hidden;
    border-color: #173c29;
    background:
        radial-gradient(circle at 26% 80%, rgba(24, 117, 74, 0.3), transparent 26%),
        linear-gradient(135deg, #0b1d14, #15241d 64%, #eef5ef 64%);
}

.sales-contact-copy,
.sales-contact-form {
    display: grid;
    gap: 14px;
}

.sales-contact-copy {
    position: relative;
    min-height: 460px;
    align-content: start;
    color: #ffffff;
}

.sales-contact-copy .eyebrow,
.sales-contact-copy h2 {
    color: #ffffff;
}

.sales-contact-copy p {
    color: rgba(255, 255, 255, 0.82);
}

.sales-mail-link {
    color: #7bd39f;
    font-size: 1.15rem;
    font-weight: 900;
    text-decoration: none;
}

.contact-field-art {
    position: absolute;
    right: 3%;
    bottom: -12px;
    width: min(112%, 650px);
    height: 320px;
    opacity: 0.82;
}

.contact-field-lines {
    position: absolute;
    inset: 18px 0 0;
    border: 4px solid rgba(123, 211, 159, 0.45);
    transform: perspective(560px) rotateX(54deg) rotateZ(-12deg);
    transform-origin: center bottom;
}

.contact-field-lines::before,
.contact-field-lines::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(123, 211, 159, 0.35);
}

.contact-field-lines::before {
    left: 50%;
}

.contact-field-lines::after {
    content: none;
}

.field-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 92px;
    height: 92px;
    border: 4px solid rgba(123, 211, 159, 0.42);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.field-box {
    position: absolute;
    top: calc(50% - 72px);
    width: 70px;
    height: 144px;
    border: 4px solid rgba(123, 211, 159, 0.36);
}

.field-box-left {
    left: 0;
    border-left: 0;
}

.field-box-right {
    right: 0;
    border-right: 0;
}

.field-goal-box {
    position: absolute;
    top: calc(50% - 24px);
    width: 34px;
    height: 48px;
    border: 4px solid rgba(123, 211, 159, 0.34);
}

.field-goal-box-left {
    left: 0;
    border-left: 0;
}

.field-goal-box-right {
    right: 0;
    border-right: 0;
}

.field-arc {
    position: absolute;
    top: calc(50% - 42px);
    width: 82px;
    height: 84px;
    border: 4px solid rgba(123, 211, 159, 0.32);
    border-radius: 50%;
}

.field-arc-left {
    left: 28px;
    clip-path: inset(0 0 0 50%);
}

.field-arc-right {
    right: 28px;
    clip-path: inset(0 50% 0 0);
}

.sales-contact-form {
    position: relative;
    z-index: 1;
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 54px rgba(23, 33, 27, 0.18);
}

.sales-contact-form label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 800;
}

.contact-form-message {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 800;
}

.contact-form-message.success {
    border: 1px solid #9fd1b5;
    background: #eef8f2;
    color: #0f5938;
}

.contact-form-message.error {
    border: 1px solid #e3b4ad;
    background: #fff4f2;
    color: #8a251b;
}

.sales-contact-form input,
.sales-contact-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
}

.sales-contact-form textarea {
    min-height: 86px;
    field-sizing: content;
    resize: vertical;
}

.sales-contact-form input:focus,
.sales-contact-form textarea:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(24, 117, 74, 0.16);
}

.sales-footer {
    width: 100%;
    margin-top: clamp(20px, 4vw, 44px);
    padding: 24px 16px;
    background: #0b1d14;
    color: rgba(255, 255, 255, 0.72);
}

.sales-footer div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.sales-footer strong {
    color: #ffffff;
    font-size: 0.98rem;
}

.sales-footer span {
    font-size: 0.92rem;
    font-weight: 700;
    text-align: right;
}

@media (max-width: 960px) {
    .sales-hero-v2 {
        min-height: 720px;
    }

    .sales-before-after,
    .sales-product-windows,
    .sales-showcase,
    .sales-contact {
        grid-template-columns: 1fr;
    }

    .sales-contact {
        background:
            radial-gradient(circle at 72% 34%, rgba(24, 117, 74, 0.24), transparent 26%),
            linear-gradient(180deg, #0b1d14 0%, #15241d 58%, #eef5ef 58%, #eef5ef 100%);
    }

    .sales-before-after > article:first-of-type {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .sales-pillar-grid,
    .sales-flow-grid {
        grid-template-columns: 1fr;
    }

    .sales-device-stage {
        min-height: 500px;
    }

    .sales-desktop-mock {
        left: 0;
        right: auto;
    }

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

    .sales-modules article:nth-child(2) {
        border-right: 0;
    }

    .sales-modules article:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 640px) {
    .sales-body .topbar {
        display: none;
    }

    .sales-body .topbar {
        gap: 12px;
    }

    .sales-body .page {
        gap: 24px;
    }

    .sales-intro,
    .sales-before-after,
    .sales-pillars,
    .sales-flow,
    .sales-product-windows,
    .sales-showcase,
    .sales-modules,
    .sales-contact {
        width: min(100% - 24px, 1180px);
    }

    .sales-hero-v2 {
        min-height: 620px;
    }

    .sales-hero-overlay {
        background:
            linear-gradient(180deg, rgba(8, 16, 12, 0.92) 0%, rgba(8, 16, 12, 0.72) 54%, rgba(8, 16, 12, 0.44) 100%);
    }

    .sales-hero-content {
        padding: 24px;
    }

    .sales-hero-content h1 {
        position: relative;
        left: 50%;
        width: calc(100vw - 24px);
        max-width: none;
        font-size: clamp(2.9rem, 14.5vw, 3.8rem);
        line-height: 0.86;
        transform: translateX(-50%);
    }

    .sales-hero-content h1 .hero-title-desktop {
        display: none;
    }

    .sales-hero-content h1 .hero-title-mobile {
        display: block;
    }

    .sales-hero-content h1 .hero-title-mobile-1 {
        font-size: clamp(3.08rem, 15.35vw, 4rem);
    }

    .sales-hero-content h1 .hero-title-mobile-2 {
        font-size: clamp(3.65rem, 18.3vw, 4.7rem);
    }

    .sales-hero-content h1 .hero-title-mobile-3 {
        font-size: clamp(3.04rem, 15.2vw, 3.95rem);
    }

    .sales-hero-content h1 .hero-title-mobile-4 {
        font-size: clamp(2.84rem, 14.2vw, 3.7rem);
    }

    .sales-hero-content > p:not(.eyebrow) {
        width: min(100%, calc(100vw - 72px));
        max-width: none;
        margin-right: 0;
        margin-left: 0;
    }

    .sales-hero-content .actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(100%, calc(100vw - 72px));
        margin-right: 0;
        margin-left: 0;
    }

    .sales-hero-content .actions .hero-secondary {
        order: 1;
    }

    .sales-hero-content .actions .button:not(.secondary) {
        grid-column: 1 / -1;
        order: 2;
    }

    .sales-proof-row,
    .sales-flow-grid,
    .sales-modules {
        grid-template-columns: 1fr;
    }

    .sales-proof-row {
        width: min(100%, calc(100vw - 72px));
        margin-right: 0;
        margin-left: 0;
    }

    .sales-pillar-grid {
        grid-template-columns: 1fr;
    }

    .sales-footer div {
        display: grid;
        gap: 8px;
    }

    .sales-footer span {
        text-align: left;
    }

    .sales-before-after > article,
    .sales-pillars,
    .sales-flow,
    .sales-product-windows,
    .sales-showcase,
    .sales-contact {
        padding: 22px;
        gap: 12px;
    }

    .sales-contact-copy > :not(.contact-field-art) {
        position: relative;
        z-index: 1;
    }

    .contact-field-art {
        left: 10%;
        right: auto;
        bottom: -58px;
        z-index: 0;
        width: min(150%, 680px);
        height: 340px;
        opacity: 0.52;
        pointer-events: none;
    }

    .sales-pillar-grid article {
        grid-template-rows: auto auto auto 164px;
        gap: 12px;
        min-height: 0;
        padding: 18px;
    }

    .sales-pillar-grid article > h3 {
        font-size: 1.5rem;
    }

    .sales-pillar-grid article > p {
        height: auto;
        font-size: 0.93rem;
        line-height: 1.45;
    }

    .pillar-mini-window {
        height: 164px;
        margin-top: 0;
    }

    .mini-window-body {
        gap: 7px;
        padding: 12px;
    }

    .mini-score-row {
        gap: 12px;
    }

    .mini-score-row b {
        font-size: 1.85rem;
    }

    .sales-chaos-mock,
    .system-control-mock {
        min-height: 360px;
    }

    .notebook-card {
        top: 138px;
        left: 58px;
        width: 210px;
    }

    .chat-card {
        top: 72px;
        right: 10px;
        width: 188px;
    }

    .sheet-card {
        left: 16px;
        bottom: 42px;
        width: 210px;
    }

    .paper-card-one {
        top: 34px;
        left: 12px;
        width: 160px;
    }

    .paper-card-two {
        right: 12px;
        bottom: 18px;
        width: 152px;
    }

    .program-window-grid {
        grid-template-columns: 1fr;
    }

    .program-score b {
        font-size: 2.4rem;
    }

    .sales-contact-copy {
        min-height: 0;
        padding-bottom: 0;
    }

    .contact-field-art {
        left: -30%;
        right: auto;
        bottom: -96px;
        width: 165%;
        height: 360px;
        opacity: 0.42;
    }

    .sales-pillar-grid article,
    .sales-flow-grid article,
    .sales-modules article {
        min-height: auto;
    }

    .sales-device-stage {
        min-height: 610px;
    }

    .sales-desktop-mock {
        position: relative;
        top: auto;
        width: 100%;
    }

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

    .mock-dashboard aside {
        display: none;
    }

    .sales-phone-mock {
        right: 50%;
        transform: translateX(50%);
    }

    .sales-modules article,
    .sales-modules article:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .sales-modules article:last-child {
        border-bottom: 0;
    }
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    margin: 0 0 18px;
}

.filter-bar label {
    display: grid;
    flex: 1 1 280px;
    gap: 6px;
}

.filter-bar label span {
    color: var(--muted);
    font-weight: 700;
}


.mesa-filter-bar {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}

.mesa-filter-bar select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
}

.mesa-filter-bar .status {
    align-self: center;
}

.day-separator-row td {
    border-top: 3px solid #c8d8cf;
}

.date-cell,
.time-cell {
    white-space: nowrap;
}
.table-action-button {
    min-height: 34px;
    padding-inline: 12px;
}
.module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.module-card {
    min-height: 150px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}

.module-card h2 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.module-card p {
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 760px) {
    .auth-shell,
    .module-grid {
        grid-template-columns: 1fr;
    }
}
.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-header.compact {
    align-items: center;
}

.section-header p {
    margin-bottom: 0;
}

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

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

.link-card:hover {
    border-color: var(--accent);
}

.table-wrap {
    --table-header-bg: #233027;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

table {
    width: 100%;
    max-width: none;
    border-collapse: collapse;
    background: var(--surface);
}

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

th {
    text-align: center;
    background: var(--table-header-bg, #233027);
    color: #f4f7f3;
    font-size: 0.78rem;
    text-transform: uppercase;
}

td span {
    color: var(--muted);
    font-size: 0.92rem;
}

tr:last-child td {
    border-bottom: 0;
}

.status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.status.ok {
    background: #e4f5ea;
    color: #0f5938;
}

.status.pending {
    background: #fff3d8;
    color: #815200;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.row-actions form {
    margin: 0;
}

.text-link {
    color: var(--accent-strong);
    font-weight: 700;
    text-decoration: none;
}

.button.danger {
    border-color: #b91c1c;
    background: #b91c1c;
    color: #fff;
}

.button.danger:hover,
.button.danger:focus {
    border-color: #991b1b;
    background: #991b1b;
    color: #fff;
}
.button.warning {
    border-color: #d97706;
    background: #f59e0b;
    color: #1f2937;
}

.button.warning:hover,
.button.warning:focus {
    border-color: #b45309;
    background: #d97706;
    color: #111827;
}
.danger-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent-strong);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
}

.danger-link {
    color: #9d2a1d;
}

.empty-state {
    padding: 28px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}

.empty-state h2 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.empty-state p {
    margin: 0;
}

.record-form {
    display: grid;
    gap: 20px;
}

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

.record-form label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.record-form input {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    font: inherit;
}

.record-form input:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(24, 117, 74, 0.16);
}

.check-row {
    display: flex !important;
    grid-template-columns: none;
    align-items: center;
    gap: 10px !important;
}

.check-row input {
    width: 18px;
    min-height: 18px;
}

@media (max-width: 760px) {
    .section-header {
        flex-direction: column;
    }

    .header-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

    th,
    td {
        padding: 12px;
    }
}
.form-note {
    max-width: none;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fbfdfb;
    font-size: 0.95rem;
}

.record-form small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 400;
}
.phone-field {
    display: grid;
    grid-template-columns: 28px minmax(104px, 0.38fr) minmax(160px, 1fr);
    gap: 8px;
}

.phone-field select,
.phone-field input {
    min-width: 0;
}

.record-form select {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
}

.record-form select:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(24, 117, 74, 0.16);
}

@media (max-width: 520px) {
    .phone-field {
        grid-template-columns: 1fr;
    }
}
.phone-field select {
    font-family: "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", Arial, Helvetica, sans-serif;
    font-weight: 700;
}

.inline-alert {
    padding: 12px 14px;
    border: 1px solid #e3b4ad;
    border-radius: 6px;
    background: #fff5f3;
    color: #8a251b;
    font-weight: 700;
}

.record-form input[aria-invalid="true"] {
    border-color: #c83b2b;
    background: #fff7f5;
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}
.flag-chip {
    display: inline-block;
    width: 28px;
    height: 20px;
    align-self: center;
    border: 1px solid rgba(23, 33, 27, 0.18);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(23, 33, 27, 0.08);
}

.flag-mex { background: linear-gradient(90deg, #006847 0 33%, #ffffff 33% 66%, #ce1126 66%); }
.flag-usa { background: repeating-linear-gradient(180deg, #b22234 0 2px, #ffffff 2px 4px); }
.flag-can { background: linear-gradient(90deg, #d52b1e 0 28%, #ffffff 28% 72%, #d52b1e 72%); }
.flag-gtm { background: linear-gradient(90deg, #4997d0 0 33%, #ffffff 33% 66%, #4997d0 66%); }
.flag-slv { background: linear-gradient(180deg, #0047ab 0 33%, #ffffff 33% 66%, #0047ab 66%); }
.flag-hnd { background: linear-gradient(180deg, #0073cf 0 33%, #ffffff 33% 66%, #0073cf 66%); }
.flag-nic { background: linear-gradient(180deg, #0067c6 0 33%, #ffffff 33% 66%, #0067c6 66%); }
.flag-cri { background: linear-gradient(180deg, #002b7f 0 18%, #ffffff 18% 34%, #ce1126 34% 66%, #ffffff 66% 82%, #002b7f 82%); }
.flag-pan { background: linear-gradient(90deg, #ffffff 0 50%, #d21034 50%), linear-gradient(180deg, transparent 0 50%, #005293 50%); background-blend-mode: normal; }
.flag-col { background: linear-gradient(180deg, #fcd116 0 50%, #003893 50% 75%, #ce1126 75%); }
.flag-per { background: linear-gradient(90deg, #d91023 0 33%, #ffffff 33% 66%, #d91023 66%); }
.flag-chl { background: linear-gradient(180deg, #ffffff 0 50%, #d52b1e 50%), linear-gradient(90deg, #0039a6 0 38%, transparent 38%); background-blend-mode: normal; }
.flag-arg { background: linear-gradient(180deg, #75aadb 0 33%, #ffffff 33% 66%, #75aadb 66%); }
.flag-esp { background: linear-gradient(180deg, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%); }
.color-chip {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 1px solid rgba(23, 33, 27, 0.18);
    border-radius: 50%;
    background: var(--chip-color);
    vertical-align: -3px;
}

.color-field {
    display: grid;
    grid-template-columns: 54px minmax(140px, 1fr);
    gap: 10px;
}

.color-field input[type="color"] {
    min-height: 42px;
    padding: 4px;
}

.color-field input[disabled] {
    background: #f5f7f5;
    color: var(--muted);
}
.full-span {
    grid-column: 1 / -1;
}

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

.palette-field {
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}

.palette-field legend {
    padding: 0 6px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(8, 28px);
    gap: 8px;
    margin-top: 8px;
}

.swatch {
    display: inline-grid !important;
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.swatch input {
    position: absolute;
    width: 1px;
    min-height: 1px;
    opacity: 0;
}

.swatch span {
    display: block;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(23, 33, 27, 0.18);
    border-radius: 6px;
    background: var(--swatch-color);
    box-shadow: 0 1px 2px rgba(23, 33, 27, 0.08);
}

.swatch input:checked + span {
    outline: 3px solid rgba(24, 117, 74, 0.3);
    border-color: var(--accent-strong);
}

.uniform-preview {
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 760px) {
    .uniform-grid {
        grid-template-columns: 1fr;
    }

    .palette-grid {
        grid-template-columns: repeat(6, 28px);
    }
}
.roster-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--muted);
    font-weight: 700;
}

.compact-form {
    margin-bottom: 20px;
}

.inline-fields {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(110px, 160px) auto;
    gap: 12px;
    align-items: end;
}

@media (max-width: 760px) {
    .inline-fields {
        grid-template-columns: 1fr;
    }
}
.status.neutral {
    background: #eef2f7;
    color: #334155;
}

.status.borrador {
    background: #eef2f7;
    color: #334155;
}

.status.registro {
    background: #e0f2fe;
    color: #075985;
}

.status.activo {
    background: #e4f5ea;
    color: #0f5938;
}

.status.finalizado {
    background: #ede9fe;
    color: #5b21b6;
}

.status.cancelado {
    background: #f3f4f6;
    color: #6b7280;
}

.points-field {
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}

.points-field legend {
    padding: 0 6px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.points-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 8px;
}

@media (max-width: 760px) {
    .points-grid {
        grid-template-columns: 1fr;
    }
}
.days-field {
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}

.days-field legend {
    padding: 0 6px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.day-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.day-check {
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
}


.match-score-card {
    align-content: start;
}

.live-scoreboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.live-scoreboard div {
    display: grid;
    gap: 8px;
    text-align: center;
}

.live-scoreboard span {
    color: var(--muted);
    font-weight: 700;
}

.live-scoreboard strong {
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
}

.score-separator {
    color: var(--ink) !important;
    font-size: 1.5rem;
}

.foul-board {
    display: grid;
    gap: 10px;
}

.foul-board h3 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
    text-transform: uppercase;
}

.foul-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.foul-row.limit-reached {
    border-color: #b91c1c;
    background: #fee2e2;
    color: #7f1d1d;
}


.foul-row.card-amarilla {
    border-color: #eab308;
    background: #fef9c3;
    color: #713f12;
}

.foul-row.card-azul {
    border-color: #2563eb;
    background: #dbeafe;
    color: #1e3a8a;
}

.foul-row.card-roja {
    border-color: #b91c1c;
    background: #fee2e2;
    color: #7f1d1d;
}

.foul-row.discipline-notice[hidden] {
    display: none;
}
.foul-row.ready-return {
    border-color: #047857;
    background: #dcfce7;
    color: #064e3b;
}

.discipline-board {
    margin-top: 12px;
}

.match-close-card {
    border-color: #d1d5db;
    background: #fff;
}
@media (max-width: 900px) {
    .day-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .day-grid {
        grid-template-columns: 1fr;
    }
}
.schedule-round {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.round-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.round-heading h2 {
    margin: 0;
    font-size: 1.2rem;
}

.round-heading span {
    color: var(--muted);
    font-weight: 700;
}
.table-search {
    display: grid;
    gap: 8px;
    margin: 0 0 14px;
}

.table-search label {
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.table-search-controls {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

.table-search input {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    font: inherit;
}

.table-search input:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(24, 117, 74, 0.16);
}

.table-search-status {
    min-height: 20px;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

.table-scroll {
    max-height: min(68vh, 720px);
    overflow: auto;
    scroll-behavior: smooth;
}

.data-table {
    display: inline-table;
    width: auto;
}

.data-table th,
.data-table td {
    padding-inline: 12px;
    white-space: nowrap;
}

.data-table .status {
    white-space: nowrap;
}
.data-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom: 1px solid var(--line);
    background: var(--table-header-bg, #233027);
    box-shadow: 0 1px 0 var(--line);
}

.data-table tr.search-hit td {
    background: #f0fbf4;
    transition: background 0.25s ease;
}

@media (max-width: 760px) {
    .table-search-controls {
        grid-template-columns: 1fr;
    }

    .table-scroll {
        max-height: 70vh;
    }
}
.data-table tr[hidden] {
    display: none;
}
.table-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef2f7;
    color: #334155;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}
.dorsal-cell {
    text-align: center;
}
.table-center {
    text-align: center;
}
.attendance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.attendance-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}

.attendance-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.attendance-heading h2 {
    margin: 0 0 6px;
    font-size: 1.1rem;
}

.attendance-heading p {
    margin: 0;
    font-size: 0.92rem;
}

.attendance-list {
    display: grid;
    gap: 8px;
}

.attendance-player {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
}

.attendance-name {
    min-width: 0;
}

.attendance-options {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}


.match-score-card {
    align-content: start;
}

.live-scoreboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.live-scoreboard div {
    display: grid;
    gap: 8px;
    text-align: center;
}

.live-scoreboard span {
    color: var(--muted);
    font-weight: 700;
}

.live-scoreboard strong {
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
}

.score-separator {
    color: var(--ink) !important;
    font-size: 1.5rem;
}

.foul-board {
    display: grid;
    gap: 10px;
}

.foul-board h3 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
    text-transform: uppercase;
}

.foul-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.foul-row.limit-reached {
    border-color: #b91c1c;
    background: #fee2e2;
    color: #7f1d1d;
}

.foul-row.ready-return {
    border-color: #047857;
    background: #dcfce7;
    color: #064e3b;
}

.discipline-board {
    margin-top: 12px;
}

.match-close-card {
    border-color: #d1d5db;
    background: #fff;
}
@media (max-width: 900px) {
    .attendance-grid {
        grid-template-columns: 1fr;
    }
}

.status.programado {
    background: #e0f2fe;
    color: #075985;
}

.status.en_juego {
    background: #fff3d8;
    color: #815200;
}

.status.cerrado {
    background: #e4f5ea;
    color: #0f5938;
}

.status.cancelado {
    background: #f3f4f6;
    color: #6b7280;
}

.match-capture-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 16px;
    margin-top: 18px;
}

.capture-card {
    display: grid;
    gap: 16px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}

.capture-card h2 {
    margin: 0;
    font-size: 1.1rem;
}

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


.match-score-card {
    align-content: start;
}

.live-scoreboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.live-scoreboard div {
    display: grid;
    gap: 8px;
    text-align: center;
}

.live-scoreboard span {
    color: var(--muted);
    font-weight: 700;
}

.live-scoreboard strong {
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
}

.score-separator {
    color: var(--ink) !important;
    font-size: 1.5rem;
}

.foul-board {
    display: grid;
    gap: 10px;
}

.foul-board h3 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
    text-transform: uppercase;
}

.foul-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.foul-row.limit-reached {
    border-color: #b91c1c;
    background: #fee2e2;
    color: #7f1d1d;
}

.foul-row.ready-return {
    border-color: #047857;
    background: #dcfce7;
    color: #064e3b;
}

.discipline-board {
    margin-top: 12px;
}

.match-close-card {
    border-color: #d1d5db;
    background: #fff;
}
@media (max-width: 900px) {
    .match-capture-grid,
    .score-grid {
        grid-template-columns: 1fr;
    }
}

.public-portal h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.public-filter {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
}

.public-filter label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.public-filter select {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
}

.public-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 12px 0 18px;
    color: var(--muted);
    font-weight: 700;
}

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

.public-block {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.public-block h2 {
    margin: 0;
    font-size: 1.15rem;
}


.match-score-card {
    align-content: start;
}

.live-scoreboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.live-scoreboard div {
    display: grid;
    gap: 8px;
    text-align: center;
}

.live-scoreboard span {
    color: var(--muted);
    font-weight: 700;
}

.live-scoreboard strong {
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
}

.score-separator {
    color: var(--ink) !important;
    font-size: 1.5rem;
}

.foul-board {
    display: grid;
    gap: 10px;
}

.foul-board h3 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
    text-transform: uppercase;
}

.foul-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.foul-row.limit-reached {
    border-color: #b91c1c;
    background: #fee2e2;
    color: #7f1d1d;
}

.foul-row.ready-return {
    border-color: #047857;
    background: #dcfce7;
    color: #064e3b;
}

.discipline-board {
    margin-top: 12px;
}

.match-close-card {
    border-color: #d1d5db;
    background: #fff;
}
@media (max-width: 900px) {
    .public-grid.two,
    .public-filter {
        grid-template-columns: 1fr;
    }
}

.attendance-player.is-suspended {
    background: #fff7ed;
    border-color: #fed7aa;
    opacity: 0.82;
}

.attendance-player.is-suspended .attendance-options {
    color: #9a3412;
}

.public-hero {
    margin-bottom: 18px;
}

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

.public-kpis article {
    display: grid;
    gap: 6px;
    min-height: 86px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}

.public-kpis span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.public-kpis strong {
    align-self: end;
    color: var(--ink);
    font-size: 1.25rem;
    line-height: 1.15;
}

.public-tabs {
    position: sticky;
    top: var(--topbar-height, 72px);
    z-index: 4;
    display: flex;
    gap: 8px;
    margin: 16px -4px 8px;
    padding: 8px 4px;
    overflow-x: auto;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.public-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fbfdfb;
    color: var(--accent-strong);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.public-tabs a:hover,
.public-tabs a:focus {
    border-color: var(--accent);
    outline: none;
}

.public-block {
    scroll-margin-top: 72px;
    padding-top: 8px;
}

.public-block-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}


.public-table-wrap {
    overflow: visible;
}
.public-block-header span {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}
.public-round-bye {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 0 0 14px;
}

.public-round-bye span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
}

.public-round-bye strong {
    color: var(--ink);
}



.match-score-card {
    align-content: start;
}

.live-scoreboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.live-scoreboard div {
    display: grid;
    gap: 8px;
    text-align: center;
}

.live-scoreboard span {
    color: var(--muted);
    font-weight: 700;
}

.live-scoreboard strong {
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
}

.score-separator {
    color: var(--ink) !important;
    font-size: 1.5rem;
}

.foul-board {
    display: grid;
    gap: 10px;
}

.foul-board h3 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
    text-transform: uppercase;
}

.foul-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.foul-row.limit-reached {
    border-color: #b91c1c;
    background: #fee2e2;
    color: #7f1d1d;
}

.foul-row.ready-return {
    border-color: #047857;
    background: #dcfce7;
    color: #064e3b;
}

.discipline-board {
    margin-top: 12px;
}

.match-close-card {
    border-color: #d1d5db;
    background: #fff;
}
@media (max-width: 900px) {
    .public-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .public-kpis {
        grid-template-columns: 1fr;
    }

    .public-kpis article {
        min-height: 72px;
    }
}

.mini-payment-form {
    display: grid;
    grid-template-columns: minmax(90px, 0.8fr) minmax(120px, 1fr) minmax(90px, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.mini-payment-form input,
.mini-payment-form select {
    min-width: 0;
    min-height: 36px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
}

.status.vencido {
    background: #fee2e2;
    color: #991b1b;
}

.status.parcial {
    background: #fff3d8;
    color: #815200;
}

.status.pagado {
    background: #e4f5ea;
    color: #0f5938;
}

@media (max-width: 760px) {
    .mini-payment-form {
        grid-template-columns: 1fr;
    }
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.settings-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}

.settings-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.settings-card-header h2 {
    margin: 0;
    font-size: 1.05rem;
}

.settings-card-header p {
    margin: 4px 0 0;
    color: var(--muted);
}

.settings-fieldset {
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.settings-fieldset legend {
    padding: 0 6px;
    font-weight: 700;
}
.public-warning-row td {
    background: #fff7ed;
}

.public-warning-row td:first-child {
    border-left: 4px solid #dc2626;
}
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.report-card {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}

.report-card h2 {
    margin: 0;
    font-size: 1.08rem;
}

.report-card p {
    margin: 0;
    color: var(--muted);
}
.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 8px;
}

.quick-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fbfdfb;
    color: var(--accent-strong);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.quick-filter span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: #eef2f7;
    color: #334155;
    font-size: 0.78rem;
}

.quick-filter.is-active {
    border-color: var(--accent);
    background: #e4f5ea;
    color: #0f5938;
}
.finance-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.finance-kpis article {
    display: grid;
    gap: 6px;
    min-height: 82px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}

.finance-kpis span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.finance-kpis strong {
    align-self: end;
    color: var(--ink);
    font-size: 1.2rem;
}
.public-tabs a.is-active {
    border-color: var(--accent);
    background: #e4f5ea;
    color: #0f5938;
}

.public-single-table {
    justify-items: center;
}

.centered-public-table {
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
}

.centered-public-table table {
    margin-inline: auto;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.status.roja {
    background: #dc2626;
    color: #fff;
}

.status.indefinida {
    background: #111827;
    color: #fff;
}

.results-table table {
    min-width: min(720px, 100%);
}

.public-match-row.is-expandable {
    cursor: pointer;
}

.public-match-row.is-expandable:hover,
.public-match-row.is-open {
    background: #eef5ef;
}

.public-match-detail-row > td {
    padding: 0 0 10px;
    background: #f4f7f3;
}

.public-match-detail {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 3px solid #17211b;
    background: #f4f7f3;
}

.public-match-scoreboard {
    display: grid;
    gap: 14px;
    padding: clamp(18px, 4vw, 30px);
    background: #17211b;
    color: #ffffff;
}

.public-match-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.72);
    font-family: "Google Sans Text", "Google Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.35;
}

.public-match-meta span:first-child {
    text-align: left;
}

.public-match-meta span:last-child {
    text-align: right;
}

.public-match-scoreboard .status {
    justify-self: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.78);
    font-family: "Google Sans Text", "Google Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: none;
}

.public-match-scoreboard .status.en_juego {
    border-color: #c5161d;
    background: #c5161d;
    color: #ffffff;
}

.public-score-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
    gap: clamp(10px, 3vw, 28px);
    align-items: center;
    text-align: center;
}

.public-score-line strong {
    color: #ffffff;
    font-size: clamp(1rem, 2.5vw, 1.35rem);
}

.public-score-line strong:first-child {
    text-align: right;
}

.public-score-line strong:last-child {
    text-align: left;
}

.public-score-line b {
    color: #ffffff;
    font-size: clamp(2.8rem, 7vw, 4.7rem);
    line-height: 1;
}

.public-score-line span {
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(1.4rem, 4vw, 2.3rem);
    font-weight: 900;
}

.public-goal-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    color: rgba(255, 255, 255, 0.78);
    font-family: "Google Sans Text", "Google Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.35;
}

.public-goal-summary div {
    display: grid;
    gap: 5px;
    align-content: start;
}

.public-goal-summary div:first-child {
    text-align: right;
}

.public-match-tabs {
    display: grid;
    background: #ffffff;
}

.public-match-tab-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
    background: #17211b;
}

.public-match-tab-buttons button {
    min-height: 52px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.public-match-tab-buttons button:last-child {
    border-right: 0;
}

.public-match-tab-buttons button.is-active {
    background: #233027;
    color: #ffffff;
}

.public-match-tab-panel {
    padding: clamp(16px, 3vw, 24px);
}

.public-timeline {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.public-timeline li {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    align-items: center;
    width: min(88%, 620px);
    justify-self: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}

.public-timeline li.event-side-visitante {
    text-align: right;
}

.timeline-event-minute {
    color: var(--accent-strong);
    font-weight: 900;
    white-space: nowrap;
}

.timeline-event-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    margin-right: 0;
    border-radius: 50%;
    background: #eef5ef;
    color: #17211b;
    font-weight: 900;
}

.public-timeline strong,
.public-player-row strong {
    color: var(--ink);
}

.public-timeline strong,
.public-timeline small,
.public-timeline em {
    font-family: "Google Sans Text", "Google Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.35;
}

.public-timeline strong,
.timeline-event-main {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.98rem;
}

.timeline-event-content {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.public-timeline li.event-side-visitante strong {
    justify-content: flex-end;
}

.public-timeline li.event-side-visitante .timeline-event-icon {
    margin-right: 0;
    margin-left: 0;
}

.public-timeline small,
.public-timeline em {
    display: block;
    color: var(--muted);
    font-size: 0.84rem;
    font-style: normal;
    font-weight: 400;
}

.timeline-event-meta {
    padding-left: calc(30px + 4px);
}

.public-timeline li.event-side-visitante .timeline-event-meta {
    padding-left: 0;
    padding-right: calc(30px + 4px);
}

.timeline-player-number {
    color: var(--accent-strong);
    font-weight: 900;
    margin-right: 0;
}

.timeline-player-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.public-player-columns h3,
.public-player-row strong,
.player-given-name,
.public-player-row small {
    font-family: "Google Sans Text", "Google Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.35;
}

.player-given-name {
    color: var(--ink);
    font-weight: 400;
}

.player-given-name::before {
    content: ", ";
}

.public-timeline small,
.public-player-row small {
    color: var(--muted);
    font-weight: 400;
}

.public-player-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.public-player-columns section {
    display: grid;
    gap: 10px;
    align-content: start;
}

.public-player-columns h3 {
    margin: 0 0 4px;
    color: var(--ink);
    font-size: 1.05rem;
    text-align: center;
}

.public-player-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) minmax(120px, auto);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfb;
}

.public-player-row.late-player {
    background: #fffaf0;
}

.player-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 35%, #ffffff 0 18%, transparent 19%),
        radial-gradient(circle at 50% 82%, #ffffff 0 28%, transparent 29%),
        #607067;
}

.player-event-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
}

.player-event-badges span {
    padding: 3px 7px;
    border-radius: 999px;
    background: #eef5ef;
    color: #17211b;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.public-match-stats {
    display: grid;
    gap: 0;
}

.public-match-stats div {
    display: grid;
    grid-template-columns: minmax(110px, 0.85fr) minmax(220px, 1.3fr) minmax(110px, 0.85fr);
    gap: 20px;
    align-items: center;
    padding: 13px clamp(18px, 4vw, 44px);
    border-bottom: 1px solid var(--line);
}

.public-match-stats strong {
    color: var(--ink);
    justify-self: center;
    min-width: 72px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.public-match-stats span {
    color: var(--muted);
    font-family: "Google Sans Text", "Google Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.98rem;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
}

.public-match-stats .public-stat-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.public-match-stats .public-stat-icon {
    display: none;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #eef5ef;
    color: #17211b;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1;
}

.vs-column {
    width: 48px;
}
.public-filter.with-round {
    grid-template-columns: minmax(260px, 1.4fr) minmax(190px, 0.8fr);
}


.match-score-card {
    align-content: start;
}

.live-scoreboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.live-scoreboard div {
    display: grid;
    gap: 8px;
    text-align: center;
}

.live-scoreboard span {
    color: var(--muted);
    font-weight: 700;
}

.live-scoreboard strong {
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
}

.score-separator {
    color: var(--ink) !important;
    font-size: 1.5rem;
}

.foul-board {
    display: grid;
    gap: 10px;
}

.foul-board h3 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
    text-transform: uppercase;
}

.foul-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.foul-row.limit-reached {
    border-color: #b91c1c;
    background: #fee2e2;
    color: #7f1d1d;
}

.foul-row.ready-return {
    border-color: #047857;
    background: #dcfce7;
    color: #064e3b;
}

.discipline-board {
    margin-top: 12px;
}

.match-close-card {
    border-color: #d1d5db;
    background: #fff;
}
@media (max-width: 900px) {
    .public-filter.with-round {
        grid-template-columns: 1fr;
    }

}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Mobile public portal polish */
@media (max-width: 760px) {
    :root {
        --topbar-height: 58px;
    }

    html {
        scroll-padding-top: var(--topbar-height, 58px);
    }

    .public-body .topbar {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        min-height: var(--topbar-height, 58px);
        padding: 9px 12px;
        box-shadow: 0 1px 10px rgba(23, 33, 27, 0.08);
    }

    .public-body .brand-line {
        flex: 1 1 auto;
        min-width: 0;
    }

    .public-body .brand {
        display: block;
        overflow: hidden;
        max-width: 100%;
        font-size: 0.98rem;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .public-body .brand-trail {
        display: none;
    }

    .public-body .topnav {
        flex: 0 0 auto;
        gap: 6px;
    }

    .public-body .topnav a,
    .public-body .nav-form button {
        display: inline-flex;
        align-items: center;
        min-height: 34px;
        padding: 0 10px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: #fbfdfb;
        color: var(--accent-strong);
        font-size: 0.88rem;
        font-weight: 700;
        white-space: nowrap;
    }

    .public-body .page {
        width: 100%;
        margin: 0;
        padding: 10px;
    }

    .panel.public-portal {
        padding: 12px;
        border-radius: 0;
    }

    .public-hero {
        margin-bottom: 12px;
    }

    .public-portal h1 {
        max-width: 100%;
        font-size: 1.45rem;
        line-height: 1.1;
    }

    .public-filter,
    .public-filter.with-round {
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
        margin-bottom: 12px;
    }

    .public-summary {
        margin: 10px 0 12px;
    }

    .public-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 12px 0;
    }

    .public-kpis article {
        min-height: 72px;
        padding: 10px;
    }

    .public-kpis span {
        font-size: 0.72rem;
    }

    .public-kpis strong {
        font-size: 1.02rem;
    }

    .public-tabs {
        top: var(--topbar-height, 58px);
        margin: 10px -12px 8px;
        padding: 8px 12px;
    }

    .public-tabs a {
        min-height: 34px;
        padding: 0 11px;
        font-size: 0.86rem;
    }

    .public-block {
        justify-items: stretch;
        width: 100%;
        margin-top: 12px;
        padding-top: 4px;
        scroll-margin-top: calc(var(--topbar-height, 58px) + 10px);
    }

    .public-block-header {
        align-items: flex-start;
        gap: 8px;
    }

    .public-block-header h2 {
        font-size: 1.05rem;
        line-height: 1.2;
    }

    .centered-public-table,
    .public-table-wrap,
    .table-wrap {
        width: 100%;
        max-width: 100%;
        margin-inline: 0;
    }

    .public-table-wrap {
        overflow-x: auto;
        border-radius: 6px;
    }

    .centered-public-table table {
        width: 100%;
        margin-inline: 0;
    }

    .public-table-wrap table {
        min-width: 0;
        font-size: 0.86rem;
    }

    .public-table-wrap th,
    .public-table-wrap td {
        padding: 9px 8px;
        line-height: 1.25;
    }

    .public-table-wrap th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: var(--table-header-bg, #233027);
        box-shadow: 0 1px 0 var(--line);
        font-size: 0.68rem;
    }

    .results-table table,
    .standings-table table {
        min-width: 0;
    }

    .vs-column {
        width: 32px;
    }

    .public-match-detail-row > td,
    .public-match-detail-row td > * {
        white-space: normal;
    }

    .public-match-scoreboard {
        min-width: min(520px, calc(100vw - 48px));
        padding: 18px;
    }

    .public-player-columns {
        grid-template-columns: 1fr;
    }

    .public-match-meta {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 8px;
        font-size: 0.74rem;
    }

    .public-match-scoreboard .status {
        font-size: 0.72rem;
        padding-inline: 9px;
    }

    .public-score-line {
        grid-template-columns: minmax(90px, 1fr) auto auto auto minmax(90px, 1fr);
        gap: 10px;
    }

    .public-score-line b {
        font-size: 2.4rem;
    }

    .public-match-tab-buttons button {
        min-height: 46px;
        font-size: 0.76rem;
    }

    .public-timeline li {
        grid-template-columns: 48px minmax(180px, 1fr);
        gap: 8px;
        width: min(96%, 520px);
    }

    .public-timeline li.event-side-visitante {
        grid-template-columns: minmax(180px, 1fr) 48px;
    }

    .public-player-row {
        grid-template-columns: 34px minmax(150px, 1fr);
    }

    .player-event-badges {
        grid-column: 2;
        justify-content: flex-start;
    }

    .public-match-stats div {
        grid-template-columns: minmax(46px, 0.55fr) minmax(150px, 1.4fr) minmax(46px, 0.55fr);
        gap: 8px;
        padding: 12px 10px;
    }

    .public-match-stats strong {
        min-width: 0;
    }

    .public-match-stats span {
        font-size: 0.92rem;
    }
}

@media (max-width: 520px) {
    .public-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-table-wrap {
        margin-inline: -2px;
        width: calc(100% + 4px);
    }

    .public-table-wrap table {
        font-size: 0.8rem;
    }

    .public-table-wrap th,
    .public-table-wrap td {
        padding: 8px 6px;
    }

    .public-table-wrap .status {
        min-height: 24px;
        padding: 0 7px;
        font-size: 0.74rem;
    }
}
/* Public portal mobile-first correction */
.public-tabs {
    position: static;
    top: auto;
}

.public-block {
    scroll-margin-top: 0;
}

@media (max-width: 760px) {
    html {
        scroll-padding-top: 0;
    }

    body.public-body {
        overflow-x: hidden;
    }

    .public-body .topbar {
        position: static;
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
        gap: 10px;
        min-height: 0;
        padding: 14px 16px;
        box-shadow: none;
    }

    .public-body .brand-line {
        display: block;
        min-width: 0;
    }

    .public-body .brand {
        display: block;
        max-width: 100%;
        overflow: hidden;
        font-size: 1rem;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .public-body .brand-trail {
        display: none !important;
    }

    .public-body .topnav {
        width: 100%;
        justify-content: flex-start;
        gap: 16px;
    }

    .public-body .topnav a,
    .public-body .nav-form button {
        min-height: auto;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: var(--muted);
        font-size: 0.95rem;
        font-weight: 400;
    }

    .public-body .page {
        width: min(100% - 20px, 390px);
        margin: 16px auto 28px;
        padding: 0;
    }

    .panel.public-portal {
        width: 100%;
        padding: 18px 16px;
        border-radius: 8px;
    }

    .public-hero {
        display: block;
        width: 100%;
        margin: 0 0 16px;
        padding: 0;
        text-align: left;
    }

    .public-portal h1 {
        max-width: 100%;
        font-size: 1.85rem;
        line-height: 1.05;
    }

    .public-filter,
    .public-filter.with-round {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 14px;
    }

    .public-filter button,
    .public-filter select {
        width: 100%;
    }

    .public-summary {
        margin: 12px 0 14px;
        gap: 8px;
        font-size: 0.9rem;
    }

    .public-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 14px 0;
    }

    .public-kpis article {
        min-height: 74px;
        padding: 12px;
    }

    .public-kpis span {
        font-size: 0.72rem;
    }

    .public-kpis strong {
        font-size: 1.18rem;
    }

    .public-tabs {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin: 16px 0 10px;
        padding: 0 0 12px;
        overflow: visible;
        border-bottom: 1px solid var(--line);
        background: transparent;
    }

    .public-tabs a {
        justify-content: center;
        min-width: 0;
        min-height: 36px;
        padding: 0 8px;
        font-size: 0.78rem;
        text-align: center;
        white-space: normal;
    }

    .public-block {
        justify-items: stretch;
        width: 100%;
        margin-top: 14px;
        padding-top: 0;
        scroll-margin-top: 0;
    }

    .public-block-header {
        align-items: baseline;
        justify-content: center;
        gap: 8px;
        text-align: center;
    }

    .public-block-header h2 {
        font-size: 1.2rem;
        line-height: 1.2;
    }

    .centered-public-table,
    .public-table-wrap {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .public-table-wrap {
        max-height: min(58vh, 520px);
        overflow: auto;
        border: 1px solid var(--line);
        border-radius: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .public-table-wrap table {
        width: max-content;
        margin: 0;
        font-size: 0.82rem;
    }

    .public-table-wrap th,
    .public-table-wrap td {
        padding: 9px 10px;
        line-height: 1.25;
        white-space: nowrap;
    }

    .public-table-wrap td > *,
    .public-table-wrap th > * {
        white-space: nowrap;
    }

    .public-table-wrap th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: var(--table-header-bg, #233027);
        box-shadow: 0 1px 0 var(--line);
        font-size: 0.68rem;
    }

    .public-role-table table,
    .public-results-table table,
    .public-standings-table table,
    .public-scorers-table table,
    .public-goalkeepers-table table,
    .public-suspensions-table table {
        min-width: max-content;
        table-layout: auto;
    }

    .public-role-table th:nth-child(4),
    .public-role-table td:nth-child(4),
    .public-role-table th:nth-child(6),
    .public-role-table td:nth-child(6),
    .public-results-table th:nth-child(4),
    .public-results-table td:nth-child(4),
    .public-results-table th:nth-child(6),
    .public-results-table td:nth-child(6),
    .public-standings-table th:nth-child(2),
    .public-standings-table td:nth-child(2),
    .public-scorers-table th:nth-child(2),
    .public-scorers-table td:nth-child(2),
    .public-goalkeepers-table th:nth-child(2),
    .public-goalkeepers-table td:nth-child(2),
    .public-suspensions-table th:nth-child(1),
    .public-suspensions-table td:nth-child(1) {
        width: 1%;
        padding-right: 2px;
        padding-left: 2px;
    }


    .public-standings-table th:nth-child(1),
    .public-standings-table td:nth-child(1),
    .public-scorers-table th:nth-child(1),
    .public-scorers-table td:nth-child(1),
    .public-goalkeepers-table th:nth-child(1),
    .public-goalkeepers-table td:nth-child(1) {
        position: sticky;
        left: 0;
        z-index: 3;
        width: 44px;
        min-width: 44px;
        max-width: 44px;
        background: var(--surface);
    }

    .public-standings-table th:nth-child(2),
    .public-standings-table td:nth-child(2),
    .public-scorers-table th:nth-child(2),
    .public-scorers-table td:nth-child(2),
    .public-goalkeepers-table th:nth-child(2),
    .public-goalkeepers-table td:nth-child(2) {
        position: sticky;
        left: 44px;
        z-index: 3;
        background: var(--surface);
    }

    .public-suspensions-table th:nth-child(1),
    .public-suspensions-table td:nth-child(1) {
        position: sticky;
        left: 0;
        z-index: 3;
        background: var(--surface);
    }

    .public-standings-table thead th:nth-child(1),
    .public-standings-table thead th:nth-child(2),
    .public-scorers-table thead th:nth-child(1),
    .public-scorers-table thead th:nth-child(2),
    .public-goalkeepers-table thead th:nth-child(1),
    .public-goalkeepers-table thead th:nth-child(2),
    .public-suspensions-table thead th:nth-child(1) {
        z-index: 4;
        background: var(--table-header-bg, #233027);
    }
    .vs-column {
        width: 34px;
    }

    .public-warning-row td:first-child {
        border-left: 4px solid #dc2626;
    }
}
.match-clock-card {
    align-content: start;
}

.match-clock strong {
    font-variant-numeric: tabular-nums;
}

.compact-list {
    max-height: 340px;
    overflow: auto;
}

.late-roster-grid {
    margin-top: 18px;
}

.match-close-card select,
.match-close-card input {
    width: 100%;
}
.compact-resolution-form {
    min-width: 280px;
    gap: 10px;
}

.compact-resolution-form label {
    margin: 0;
}

.match-hero-header {
    position: relative;
    justify-content: center;
    min-height: 128px;
    text-align: center;
}

.match-hero-header > div {
    max-width: 760px;
}

.match-hero-header h1 {
    font-size: clamp(2.2rem, 6vw, 4.25rem);
    line-height: 1;
}

.match-hero-header p {
    justify-content: center;
}

.match-hero-header > .button {
    position: absolute;
    top: 0;
    right: 0;
}

.match-hero-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.match-hero-status strong {
    color: var(--ink);
}
.match-control-board {
    gap: 18px;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fbf8 0%, #eef4f0 100%);
}

.match-control-board > h2 {
    margin: 0;
    padding: 7px 18px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    font-size: 1.1rem;
}

.match-center-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.9fr) minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    padding: 10px 24px 10px;
}

.match-clock-panel {
    position: relative;
    display: grid;
    justify-items: center;
    align-items: start;
    min-height: 236px;
    padding: 0;
    text-align: center;
}

.match-clock-arc {
    position: absolute;
    top: 7px;
    left: 50%;
    width: min(276px, 108%);
    height: auto;
    transform: translateX(-50%);
    overflow: visible;
    z-index: 0;
    pointer-events: none;
}

.match-clock-arc path {
    fill: none;
    stroke-linecap: round;
    stroke-width: 8;
}

.match-clock-arc-track {
    stroke: #d8dfdc;
}

.match-clock-arc-progress {
    stroke: #6f7b78;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 0.25s linear;
}
.match-clock-face {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: 76px 78px 42px;
    justify-items: center;
    align-items: center;
    width: min(276px, 100%);
    min-height: 196px;
    margin-top: 28px;
}

.match-clock-face span {
    align-self: end;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.match-clock-face > strong {
    align-self: center;
    color: var(--ink);
    font-size: 4.4rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.match-clock-extra {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    align-self: start;
    padding: 4px 10px;
    border-radius: 6px;
    background: #1f3428;
    color: #fff;
    font-size: clamp(1rem, 2.4vw, 1.35rem);
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    line-height: 1;
}

.match-clock-extra[hidden] {
    visibility: hidden;
}

.match-scoreline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
    align-items: end;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

    .match-team {
    display: grid;
    gap: 8px;
    min-width: 0;
    text-align: center;
}

.match-team span {
    overflow: hidden;
    color: var(--muted);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-team strong {
    color: var(--ink);
    font-size: clamp(4.4rem, 13vw, 7rem);
    font-variant-numeric: tabular-nums;
    line-height: 0.9;
}

.match-center-grid .match-team span {
    color: var(--ink);
    font-size: clamp(1rem, 2.4vw, 1.35rem);
}

.match-clock-actions {
    justify-content: center;
    margin: 0;
    padding: 0 18px 8px;
}


.live-stat-board {
    display: grid;
    gap: 8px;
    margin: 10px 18px 18px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.live-stat-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    gap: 10px;
    align-items: center;
    min-height: 42px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
}

.live-stat-row:last-child {
    border-bottom: 0;
}

.live-stat-row span {
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.live-stat-row strong {
    color: var(--ink);
    font-size: 1.3rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.live-stat-row.limit-reached {
    border-radius: 8px;
    border-bottom-color: transparent;
    background: #fee2e2;
    color: #7f1d1d;
}


.match-control-board .discipline-board {
    gap: 10px;
    margin: 12px 18px 18px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.match-control-board .discipline-board h3 {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.match-control-board .discipline-notice {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 54px;
    padding: 12px 14px;
    border-radius: 8px;
}

.match-control-board .discipline-notice span {
    min-width: 0;
    font-weight: 600;
    line-height: 1.2;
}

.match-control-board .discipline-notice strong {
    min-width: 92px;
    font-size: 0.95rem;
    line-height: 1.1;
    text-align: center;
}
@media (max-width: 640px) {
    .match-hero-header {
        display: grid;
        min-height: auto;
        gap: 14px;
        padding-bottom: 8px;
    }

    .match-hero-header h1 {
        font-size: clamp(2rem, 10vw, 3.2rem);
    }

    .match-hero-header > .button {
        position: static;
        justify-self: start;
    }

    .match-control-board {
        padding: 0;
    }

    .match-center-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 8px 14px 8px;
    }

    .match-clock-panel {
        grid-column: 1 / -1;
        grid-row: 1;
        min-height: 174px;
    }

    .match-clock-face {
        grid-template-rows: 54px 78px 42px;
        min-height: 174px;
        margin-top: 0;
    }

    .match-clock-arc {
        top: -15px;
    }
.match-team {
        grid-row: 2;
    }

    .match-team strong {
        font-size: clamp(3.4rem, 22vw, 5.2rem);
    }

    .match-team span {
        font-size: 0.9rem;
    }

    .match-clock-actions {
        display: grid;
        grid-template-columns: repeat(4, 54px);
        justify-content: center;
        gap: 12px;
        padding-inline: 14px;
    }

    .match-clock-actions .button {
        width: 54px;
        min-height: 54px;
        padding: 0;
        font-size: 0;
    }

    .match-clock-actions .button[name="accion"]::before,
    .match-clock-actions .button[name="accion"]::after {
        content: "";
        display: block;
    }

    .match-clock-actions .button[value="iniciar"]::before {
        width: 0;
        height: 0;
        margin-left: 4px;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-left: 16px solid currentColor;
    }

    .match-clock-actions .button[value="pausar"]::before {
        width: 18px;
        height: 20px;
        background: linear-gradient(to right, currentColor 0 6px, transparent 6px 12px, currentColor 12px 18px);
    }

    .match-clock-actions .button[value="reiniciar_tiempo"] {
        position: relative;
    }

    .match-clock-actions .button[value="reiniciar_tiempo"]::before,
    .match-clock-actions .button[value="reiniciar_tiempo"]::after {
        position: absolute;
        top: 50%;
        width: 0;
        height: 0;
        border-top: 9px solid transparent;
        border-bottom: 9px solid transparent;
        border-right: 14px solid currentColor;
        transform: translateY(-50%);
    }

    .match-clock-actions .button[value="reiniciar_tiempo"]::before {
        left: 15px;
    }

    .match-clock-actions .button[value="reiniciar_tiempo"]::after {
        left: 26px;
    }

    .match-clock-actions .button[value="finalizar_tiempo"]::before {
        width: 20px;
        height: 20px;
        margin: 0;
        background: currentColor;
    }

    .live-stat-board {
        margin-inline: 14px;
    }

    
    .match-control-board .discipline-board {
        margin: 10px 14px 14px;
        padding: 10px;
    }

    .match-control-board .discipline-notice {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 12px;
    }

    .match-control-board .discipline-notice strong {
        justify-self: start;
        min-width: 0;
        text-align: left;
    }
    .live-stat-row {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 8px;
        padding: 8px 6px;
    }

    .live-stat-row span {
        font-size: 0.78rem;
    }
}

.match-tiebreak-card {
    gap: 18px;
}

.match-tiebreak-card:focus {
    outline: 2px solid rgba(24, 117, 74, 0.22);
    outline-offset: 4px;
}

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

.tiebreak-shooter-grid h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.tiebreak-scoreline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

.tiebreak-scoreline > div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.tiebreak-scoreline span,
.tiebreak-scoreline small {
    overflow: hidden;
    color: var(--muted);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tiebreak-scoreline strong {
    color: var(--ink);
    font-size: 2.4rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

@media (max-width: 760px) {
    .tiebreak-shooter-grid {
        grid-template-columns: 1fr;
    }

    .tiebreak-scoreline {
        gap: 8px;
        padding: 12px;
    }

    .tiebreak-scoreline strong {
        font-size: 2rem;
    }
}
.event-capture-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.event-team-card {
    margin-top: 0;
}

.event-team-card .button {
    width: 100%;
}

@media (max-width: 900px) {
    .event-capture-grid {
        grid-template-columns: 1fr;
    }
}

.event-history-wrap {
    max-height: 370px;
    overflow: auto;
}

.event-history-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}





.event-history-wrap .event-minute-cell {
    min-width: 72px;
    white-space: nowrap;
}

/* Landing review sections */
.sales-intro-and-modules {
    isolation: isolate;
    overflow: hidden;
    display: grid;
    gap: 48px;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 90px 24px;
    border: 0;
    border-radius: 0;
    background-image:
        radial-gradient(circle at 22% 28%, rgba(17, 33, 27, 0.08) 0 2px, transparent 3px),
        radial-gradient(circle at 75% 18%, rgba(17, 33, 27, 0.07) 0 5px, transparent 6px),
        linear-gradient(90deg, transparent 0 133px, rgba(17, 33, 27, 0.085) 133px 137px, transparent 137px 270px);
    background-color: #f3f5f3;
    background-position: center center, center center, calc(50% - 135px) 0;
    background-repeat: no-repeat, no-repeat, repeat-x;
    background-size: auto, auto, 270px 100%;
}

.sales-intro-and-modules::before,
.sales-intro-and-modules::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 4px solid rgba(17, 33, 27, 0.055);
    pointer-events: none;
}

.sales-intro-and-modules::before {
    inset: 86px auto 80px -74px;
    width: 300px;
    border-radius: 0 170px 170px 0;
}

.sales-intro-and-modules::after {
    top: 86px;
    right: -74px;
    bottom: 80px;
    width: 300px;
    border-radius: 170px 0 0 170px;
}

.sales-intro-and-modules .sales-intro-copy {
    display: grid;
    gap: 18px;
    width: min(800px, 100%);
    margin: 0 auto;
    text-align: center;
}

.sales-intro-and-modules h2 {
    max-width: 800px;
    color: #101512;
    font-size: clamp(2.3rem, 5vw, 3.2rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.sales-intro-and-modules h2 .league-word {
    text-transform: uppercase;
}

.sales-intro-and-modules h2 mark {
    background: transparent;
    color: #0f5a34;
}

.sales-intro-and-modules .sales-intro-copy > p:last-child {
    max-width: 650px;
    margin: 0 auto;
    color: #555555;
    font-size: 1rem;
    line-height: 1.55;
}

.sales-intro-and-modules .sales-modules {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.sales-intro-and-modules .sales-modules article {
    display: grid;
    gap: 12px;
    min-height: 220px;
    padding: 24px;
    border: 1px solid rgba(17, 33, 27, 0.08);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.sales-intro-and-modules .sales-modules article:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.module-icon {
    width: 36px;
    height: 36px;
    color: #1b5e3a;
}

.module-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.sales-intro-and-modules .sales-modules span {
    color: #0f5a34;
    font-size: 0.76rem;
    font-weight: 900;
}

.sales-intro-and-modules .sales-modules h3 {
    margin: 0;
    color: #111111;
    font-size: 1.14rem;
    line-height: 1.15;
}

.sales-intro-and-modules .sales-modules p {
    color: #26302a;
    font-size: 0.92rem;
    line-height: 1.45;
}

.sales-product-windows {
    isolation: isolate;
    overflow: hidden;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    width: min(1200px, calc(100% - 32px));
    min-height: 520px;
    padding: 48px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
}

.sales-product-windows::before {
    content: none;
}

.sales-product-windows::after {
    content: none;
}

.program-card {
    display: grid;
    grid-template-rows: 164px minmax(214px, 1fr);
    gap: 22px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.program-card-copy {
    gap: 10px;
    min-height: 164px;
}

.program-card-copy .eyebrow {
    color: #3bd671;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.program-card-copy h2 {
    max-width: 500px;
    color: #ffffff;
    font-size: clamp(2.35rem, 4vw, 44px);
    line-height: 1.15;
}

.program-window {
    display: flex;
    flex-direction: column;
    height: 320px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: #f3f4ee;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.program-window-bar {
    height: 36px;
    flex: 0 0 36px;
    padding: 0 16px;
    border-bottom: 0;
    background: #22272b;
}

.program-window-bar span {
    background: #70777c;
}

.program-window-grid {
    flex: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 24px;
    background: #f3f4ee;
}

.program-window-grid article {
    grid-template-columns: auto 1fr;
    align-content: center;
    gap: 7px 11px;
    min-height: 0;
    padding: 15px 16px;
    border: 1px solid rgba(26, 32, 44, 0.08);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.program-window-grid article strong {
    color: #1b5e3a;
    font-size: 1rem;
}

.program-window-grid article span {
    grid-column: 2;
    color: #4a5568;
    font-size: 0.88rem;
    font-weight: 800;
}

.program-icon,
.event-icon {
    position: relative;
    display: block;
    width: 22px;
    height: 22px;
    color: #1b5e3a;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-wallet {
    border: 2px solid currentColor;
    border-radius: 4px;
}

.icon-wallet::before {
    content: "";
    position: absolute;
    top: 5px;
    right: 3px;
    width: 5px;
    height: 5px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.icon-users::before,
.icon-users::after {
    content: "";
    position: absolute;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.icon-users::before {
    top: 2px;
    left: 3px;
    width: 6px;
    height: 6px;
}

.icon-users::after {
    right: 1px;
    bottom: 2px;
    width: 13px;
    height: 8px;
    border-radius: 10px 10px 4px 4px;
}

.icon-chart {
    border: 2px solid currentColor;
    border-radius: 3px;
}

.icon-chart::before {
    content: "";
    position: absolute;
    inset: 5px 4px 4px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: skew(-18deg);
}

.icon-search {
    border: 2px solid currentColor;
    border-radius: 50%;
}

.icon-search::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 8px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(45deg);
}

.program-match-panel {
    flex: 1;
    display: grid;
    align-content: start;
    gap: 18px;
    margin: 0;
    padding: 24px;
    border: 0;
    border-radius: 0;
    background: #f3f4ee;
}

.program-score {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: fit-content;
    margin: 0 auto;
    padding: 2px 0 4px;
}

.program-score b {
    color: #1b3b2b;
    font-size: 50px;
    font-weight: 900;
    line-height: 1;
    min-width: 42px;
    text-align: center;
}

.program-score span {
    padding: 7px 18px;
    border-radius: 20px;
    background: #e2e7df;
    color: #2d3748;
    font-weight: 900;
    box-shadow: 0 9px 24px rgba(27, 59, 43, 0.16);
}

.program-event-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.program-event-list span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border: 1px solid rgba(26, 32, 44, 0.08);
    border-radius: 10px;
    background: #ffffff;
    color: #1a202c;
    font-weight: 900;
}

.program-event-list strong {
    color: #1a202c;
}

.event-icon {
    width: 19px;
    height: 19px;
    color: #1a202c;
    stroke-width: 2;
}

.event-icon-card {
    color: #8f7622;
}

.icon-ball {
    border: 2px solid currentColor;
    border-radius: 50%;
}

.icon-ball::before,
.icon-impact::before,
.icon-impact::after {
    content: "";
    position: absolute;
    background: currentColor;
}

.icon-ball::before {
    top: 8px;
    left: 3px;
    width: 11px;
    height: 2px;
    transform: rotate(-24deg);
}

.icon-card {
    border: 2px solid #1a202c;
    border-radius: 3px;
}

.icon-impact::before {
    top: 3px;
    left: 9px;
    width: 3px;
    height: 15px;
    transform: rotate(38deg);
}

.icon-impact::after {
    top: 9px;
    left: 3px;
    width: 15px;
    height: 3px;
    transform: rotate(38deg);
}

.sales-before-after {
    isolation: isolate;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(1180px, calc(100% - 32px));
    min-height: 500px;
    border: 12px solid #080b0a;
    border-radius: 24px;
    background: #080b0a;
    box-shadow: 0 22px 58px rgba(8, 11, 10, 0.28);
}

.sales-before-after::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 3;
    width: 76px;
    height: 18px;
    border-radius: 0 0 12px 12px;
    background: #080b0a;
    transform: translateX(-52%);
}

.sales-before-after > article {
    position: relative;
    display: grid;
    align-content: start;
    gap: 28px;
    min-height: 476px;
    padding: clamp(34px, 4.5vw, 48px);
    overflow: hidden;
}

.sales-before-after > article:first-of-type {
    border-right: 0;
    background:
        radial-gradient(circle at 83% 19%, rgba(61, 9, 9, 0.36), transparent 16%),
        radial-gradient(circle at 24% 79%, rgba(92, 33, 20, 0.35), transparent 15%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.05), transparent 24%),
        #8b1517;
}

.sales-before-after > article:first-of-type::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background:
        radial-gradient(circle at 19% 76%, transparent 0 24px, rgba(255, 244, 218, 0.6) 25px 28px, transparent 29px),
        radial-gradient(circle at 84% 22%, transparent 0 42px, rgba(15, 15, 15, 0.45) 43px 46px, transparent 47px),
        repeating-linear-gradient(18deg, transparent 0 64px, rgba(20, 20, 20, 0.35) 65px 66px, transparent 67px 114px);
}

.sales-before-after > article:first-of-type::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    height: 22%;
    background: #ffffff;
}

.sales-before-after > article:last-of-type {
    background:
        radial-gradient(circle at 82% 14%, rgba(37, 185, 98, 0.14), transparent 28%),
        linear-gradient(145deg, #e8f5e9, #f8fffa);
}

.sales-before-after > article:last-of-type .eyebrow {
    color: #0f5a34;
}

.sales-before-after > article:last-of-type h2 {
    color: #08130f;
}

.sales-compare-copy {
    position: relative;
    z-index: 2;
    gap: 12px;
}

.sales-compare-copy .eyebrow {
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    opacity: 0.82;
}

.sales-before-after h2 {
    max-width: 500px;
    font-size: clamp(2.05rem, 3.4vw, 2.75rem);
    line-height: 1.05;
}

.sales-chaos-mock {
    position: absolute;
    inset: 190px 28px 22px 28px;
    min-height: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.sales-before-chaos-image {
    position: absolute;
    top: 0;
    right: auto;
    bottom: auto;
    left: 50%;
    z-index: 1;
    width: 112%;
    max-width: none;
    height: auto;
    transform: translateX(-50.5%);
    object-fit: contain;
    object-position: center top;
    mix-blend-mode: normal;
    filter: none;
}

.system-control-mock {
    position: relative;
    z-index: 2;
    width: min(100%, 455px);
    min-height: 0;
    margin-top: 0;
    padding: 16px;
    border: 1px solid rgba(12, 36, 23, 0.1);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(7, 38, 20, 0.16);
}

.system-control-mock h3 {
    margin: 0 0 10px;
    color: #111111;
    font-size: 1rem;
}

.control-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(26, 32, 44, 0.1);
}

.control-header span,
.control-header strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #dff4e6;
    color: #0f5a34;
    font-size: 0.78rem;
    font-weight: 800;
}

.control-header svg,
.control-grid svg {
    width: 15px;
    height: 15px;
}

.control-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.control-grid article {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 7px;
    min-height: 78px;
    padding: 10px;
    border: 1px solid rgba(26, 32, 44, 0.12);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 5px 14px rgba(8, 11, 10, 0.06);
}

.control-grid span {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 8px;
    background: #e5f7eb;
    color: #159354;
}

.control-grid span.danger {
    background: #fdecec;
    color: #a82525;
}

.control-grid strong {
    align-self: center;
    color: #111111;
    font-size: 1.05rem;
    text-align: right;
}

.control-grid em {
    grid-column: 1 / -1;
    color: #111111;
    font-size: 0.74rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.25;
}

.control-log {
    gap: 9px;
    margin-top: 10px;
}

.control-log span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid rgba(26, 32, 44, 0.08);
    border-left: 0;
    border-radius: 10px;
    background: #fbfcfb;
    box-shadow: none;
    color: #111111;
    font-size: 0.84rem;
}

.log-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 8px;
    background: #e5f7eb;
    color: #159354;
}

.log-ball::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.log-card::before {
    content: "";
    width: 15px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.avatar,
.avatar-stack {
    margin-left: auto;
}

.avatar,
.avatar-stack i {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 35%, #ffe0c6 0 27%, transparent 28%),
        linear-gradient(145deg, #64748b, #d8a38b);
}

.avatar-stack {
    display: inline-flex;
}

.avatar-stack i {
    margin-left: -7px;
}

.avatar-stack i:nth-child(2) {
    background:
        radial-gradient(circle at 50% 35%, #f7c7a6 0 27%, transparent 28%),
        linear-gradient(145deg, #2f5f45, #d99a7e);
}

.avatar-stack i:nth-child(3) {
    background:
        radial-gradient(circle at 50% 35%, #f2d0b6 0 27%, transparent 28%),
        linear-gradient(145deg, #291d1d, #c98970);
}

.speech-bubble,
.chaos-doodle {
    position: absolute;
    z-index: 5;
}

.speech-bubble {
    padding: 7px 10px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.72);
    color: #131313;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

.speech-bubble-left {
    top: 58px;
    left: 4px;
    transform: rotate(-7deg);
}

.speech-bubble-right {
    top: 58px;
    right: 20px;
    transform: rotate(8deg);
}

.chaos-doodle {
    color: rgba(8, 11, 10, 0.52);
    font-size: 2.1rem;
    font-weight: 900;
}

.chaos-doodle-one {
    top: 44px;
    left: 44%;
    transform: rotate(9deg);
}

.chaos-doodle-two {
    right: 34px;
    bottom: 92px;
    transform: rotate(-11deg);
}

.paper-card,
.chat-card,
.sheet-card,
.notebook-card {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 13px 24px rgba(8, 11, 10, 0.26);
}

.paper-alert {
    text-decoration: underline;
    text-decoration-color: #b91c1c;
    text-decoration-thickness: 2px;
}

.paper-card-one {
    top: 42px;
    left: 72px;
    width: 190px;
    background:
        linear-gradient(145deg, rgba(20, 20, 20, 0.07), transparent 36%),
        #ffffff;
    transform: rotate(-10deg);
    z-index: 3;
}

.chat-card {
    top: 56px;
    right: 64px;
    width: 224px;
    background:
        radial-gradient(circle at 20% 24%, rgba(95, 65, 34, 0.13), transparent 16%),
        #f5f0df;
    transform: rotate(8deg);
    z-index: 4;
}

.notebook-card {
    top: 118px;
    left: 190px;
    width: 220px;
    min-height: 144px;
    transform: rotate(3deg);
    z-index: 1;
}

.sheet-card {
    left: 88px;
    bottom: 16px;
    width: 260px;
    background:
        linear-gradient(110deg, transparent 0 45%, rgba(0, 0, 0, 0.08) 46% 54%, transparent 55%),
        #f7f8f6;
    transform: rotate(-6deg);
    z-index: 5;
}

.sheet-card i {
    position: absolute;
    left: 74px;
    bottom: 24px;
    width: 74px;
    height: 15px;
    border-radius: 50%;
    background: rgba(18, 18, 18, 0.42);
    filter: blur(5px);
}

.paper-card-two {
    right: 46px;
    bottom: 10px;
    width: 160px;
    filter: blur(0.35px);
    transform: rotate(10deg);
    z-index: 6;
}

@media (max-width: 960px) {
    .sales-intro-and-modules .sales-modules {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sales-product-windows,
    .sales-before-after {
        grid-template-columns: 1fr;
    }

    .sales-product-windows {
        gap: 34px;
        padding: 36px 24px;
    }

    .program-card {
        grid-template-rows: auto auto;
    }

    .program-window {
        min-height: 262px;
    }

    .sales-before-after::before {
        display: none;
    }

    .sales-before-after > article:first-of-type {
        border-bottom: 0;
    }
}

@media (max-width: 640px) {
    .sales-intro-and-modules {
        padding: 72px 16px;
        background-image:
            radial-gradient(circle at 22% 28%, rgba(17, 33, 27, 0.08) 0 2px, transparent 3px),
            radial-gradient(circle at 75% 18%, rgba(17, 33, 27, 0.07) 0 5px, transparent 6px);
        background-position: center;
        background-repeat: no-repeat;
        background-size: auto;
    }

    .sales-intro-and-modules h2 {
        width: 100%;
        margin: 0 auto;
        font-size: clamp(1.55rem, 7.8vw, 2.08rem);
        line-height: 0.98;
        text-wrap: balance;
    }

    .sales-intro-and-modules h2 .intro-title-line {
        display: block;
    }

    .sales-intro-and-modules::before,
    .sales-intro-and-modules::after {
        display: none;
    }

    .sales-intro-and-modules .sales-modules {
        grid-template-columns: 1fr;
    }

    .sales-intro-and-modules .sales-modules article {
        min-height: 0;
    }

    .sales-intro-and-modules .sales-modules article:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    .sales-product-windows {
        width: min(100% - 24px, 1200px);
        padding: 28px 18px;
    }

    .program-card-copy h2 {
        font-size: 2rem;
    }

    .control-grid {
        grid-template-columns: 1fr;
    }

    .program-window {
        height: 320px;
        min-height: 0;
    }

    .sales-product-windows .program-window-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 16px;
    }

    .sales-product-windows .program-window-grid article {
        gap: 5px 7px;
        padding: 10px;
    }

    .sales-product-windows .program-window-grid article strong {
        font-size: 0.86rem;
    }

    .sales-product-windows .program-window-grid article span {
        font-size: 0.72rem;
    }

    .program-score b {
        font-size: 2.55rem;
    }

    .program-score {
        gap: 14px;
    }

    .program-score span {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .sales-before-after {
        width: min(100% - 18px, 1180px);
        border-width: 8px;
        border-radius: 18px;
    }

    .sales-before-after > article {
        min-height: 560px;
        padding: 34px 22px;
    }

    .sales-before-after h2 {
        font-size: 2.05rem;
    }

    .sales-chaos-mock {
        inset: 180px 14px 24px;
    }

    .paper-card-one {
        top: 42px;
        left: 10px;
        width: 165px;
    }

    .chat-card {
        top: 80px;
        right: 2px;
        width: 185px;
    }

    .notebook-card {
        top: 150px;
        left: 58px;
        width: 205px;
    }

    .sheet-card {
        left: 16px;
        bottom: 54px;
        width: 210px;
    }

    .paper-card-two {
        right: 8px;
        bottom: 22px;
        width: 145px;
    }

    .system-control-mock {
        width: 100%;
        padding: 14px;
    }

    .control-header {
        align-items: stretch;
        flex-direction: column;
    }
}

.public-body .topnav a.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 13px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(24, 117, 74, 0.16);
}

@media (max-width: 760px) {
    .public-body .topbar {
        position: sticky;
        display: flex;
        grid-template-columns: none;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        min-height: 0;
        padding: 16px clamp(16px, 4vw, 48px);
        border-bottom: 1px solid rgba(217, 225, 219, 0.72);
        background: rgba(255, 255, 255, 0.88);
        box-shadow: none;
        backdrop-filter: blur(14px);
    }

    .public-body .brand-line {
        display: flex;
        flex: 1 1 auto;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 6px;
    }

    .public-body .brand {
        display: block;
        overflow: hidden;
        max-width: 100%;
        color: var(--ink);
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .public-body .topnav {
        width: auto;
        flex: 0 0 auto;
        justify-content: flex-end;
        gap: 8px;
    }

    .public-body .topnav a,
    .public-body .nav-form button,
    .public-body .topnav a.nav-cta {
        min-height: 34px;
        padding: 0 11px;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: #26302a;
        font-size: 0.92rem;
        font-weight: 800;
        line-height: 1;
        white-space: nowrap;
    }

    .public-body .topnav a.nav-cta {
        padding: 0 13px;
        background: var(--accent);
        color: #ffffff;
    }
}

@media (max-width: 760px) {
    .public-body .public-table-wrap {
        max-height: none;
        overflow: visible;
        -webkit-overflow-scrolling: auto;
    }

    .public-body .public-results-table table,
    .public-body .public-role-table table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
        font-size: 0.72rem;
    }

    .public-body .public-results-table th,
    .public-body .public-results-table td,
    .public-body .public-role-table th,
    .public-body .public-role-table td {
        padding: 7px 3px;
        line-height: 1.15;
        white-space: normal;
    }

    .public-body .public-results-table td > *,
    .public-body .public-results-table th > *,
    .public-body .public-role-table td > *,
    .public-body .public-role-table th > * {
        white-space: normal;
    }

    .public-body .public-results-table th:nth-child(-n + 3),
    .public-body .public-results-table td:nth-child(-n + 3),
    .public-body .public-role-table th:nth-child(-n + 3),
    .public-body .public-role-table td:nth-child(-n + 3) {
        font-size: 0.62rem;
        letter-spacing: 0;
        white-space: nowrap;
    }

    .public-body .public-results-table th:nth-child(1),
    .public-body .public-results-table td:nth-child(1),
    .public-body .public-role-table th:nth-child(1),
    .public-body .public-role-table td:nth-child(1) {
        width: 16%;
    }

    .public-body .public-results-table th:nth-child(2),
    .public-body .public-results-table td:nth-child(2),
    .public-body .public-role-table th:nth-child(2),
    .public-body .public-role-table td:nth-child(2) {
        width: 13%;
    }

    .public-body .public-results-table th:nth-child(3),
    .public-body .public-results-table td:nth-child(3),
    .public-body .public-role-table th:nth-child(3),
    .public-body .public-role-table td:nth-child(3) {
        width: 10%;
    }

    .public-body .public-results-table th:nth-child(4),
    .public-body .public-results-table td:nth-child(4),
    .public-body .public-results-table th:nth-child(6),
    .public-body .public-results-table td:nth-child(6) {
        width: 23%;
        padding-right: 4px;
        padding-left: 4px;
        font-size: 0.76rem;
    }

    .public-body .public-results-table th:nth-child(5),
    .public-body .public-results-table td:nth-child(5) {
        width: 15%;
        font-size: 0.74rem;
        white-space: nowrap;
    }

    .public-body .public-role-table th:nth-child(4),
    .public-body .public-role-table td:nth-child(4),
    .public-body .public-role-table th:nth-child(6),
    .public-body .public-role-table td:nth-child(6) {
        width: 24%;
        padding-right: 4px;
        padding-left: 4px;
        font-size: 0.74rem;
    }

    .public-body .public-role-table th:nth-child(5),
    .public-body .public-role-table td:nth-child(5) {
        width: 6%;
        padding-right: 0;
        padding-left: 0;
        font-size: 0.68rem;
        white-space: nowrap;
    }

    .public-body .public-role-table th:nth-child(7),
    .public-body .public-role-table td:nth-child(7) {
        width: 7%;
        font-size: 0.62rem;
    }

    .public-body .public-match-detail-row > td {
        padding-bottom: 8px;
    }

    .public-body .public-match-detail {
        width: 100%;
        min-width: 0;
    }

    .public-body .public-match-scoreboard {
        min-width: 0;
        padding: 14px 10px;
    }

    .public-body .public-player-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .public-body .public-player-columns section {
        gap: 6px;
        min-width: 0;
    }

    .public-body .public-player-columns h3 {
        margin-bottom: 0;
        font-size: 0.88rem;
    }

    .public-body .public-player-row {
        grid-template-columns: 18px minmax(0, 1fr);
        gap: 5px;
        align-items: start;
        min-width: 0;
        padding: 6px;
    }

    .public-body .player-avatar {
        width: 18px;
        height: 18px;
    }

    .public-body .public-player-row strong,
    .public-body .player-given-name {
        font-size: 0.72rem;
        line-height: 1.18;
    }

    .public-body .public-player-row small {
        font-size: 0.64rem;
        line-height: 1.15;
    }

    .public-body .player-event-badges {
        grid-column: 1 / -1;
        justify-content: flex-start;
        gap: 3px;
        min-height: 20px;
    }

    .public-body .player-event-badges span {
        padding: 2px 5px;
        font-size: 0.62rem;
    }

    .public-body .public-timeline {
        gap: 6px;
    }

    .public-body .public-timeline li,
    .public-body .public-timeline li.event-side-visitante {
        align-items: center;
        width: 100%;
        padding: 7px 8px;
    }

    .public-body .public-timeline li {
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
    }

    .public-body .public-timeline li.event-side-visitante {
        grid-template-columns: minmax(0, 1fr);
    }

    .public-body .public-timeline li.event-side-visitante > div {
        text-align: right;
    }

    .public-body .timeline-event-minute {
        font-size: 0.92rem;
        line-height: 1;
    }

    .public-body .public-timeline strong {
        display: flex;
        align-items: center;
        min-width: 0;
        line-height: 1.15;
        white-space: nowrap;
    }

    .public-body .timeline-event-content {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .public-body .public-timeline li.event-side-visitante strong {
        justify-content: flex-end;
    }

    .public-body .timeline-event-icon,
    .public-body .public-timeline li.event-side-visitante .timeline-event-icon {
        order: 0;
        width: 20px;
        height: 20px;
        margin-right: 0;
        margin-left: 0;
        font-size: 0.72rem;
    }

    .public-body .timeline-player-number {
        margin-right: 0;
        font-size: 0.86rem;
    }

    .public-body .public-timeline small {
        margin-top: 2px;
        font-size: 0.74rem;
        line-height: 1.15;
    }

    .public-body .timeline-event-meta {
        padding-left: calc(20px + 4px);
    }

    .public-body .public-timeline li.event-side-visitante .timeline-event-meta {
        padding-left: 0;
        padding-right: calc(20px + 4px);
    }

    .public-body .public-player-row strong {
        display: block;
    }

    .public-body .player-given-name::before {
        content: "";
    }

    .public-body .player-given-name {
        display: inline;
    }

    .public-body .public-player-row small {
        display: inline;
    }

    .public-body .public-match-stats .public-stat-icon {
        display: none;
    }

    .public-body .public-match-stats strong,
    .public-body .public-match-stats span {
        font-size: 0.92rem;
    }

    .public-body .public-match-stats strong {
        font-weight: 900;
    }
}

@media (max-width: 430px) {
    .public-body .public-results-table table,
    .public-body .public-role-table table {
        font-size: 0.68rem;
    }

    .public-body .public-results-table th,
    .public-body .public-results-table td,
    .public-body .public-role-table th,
    .public-body .public-role-table td {
        padding: 6px 2px;
    }

    .public-body .public-results-table th:nth-child(-n + 3),
    .public-body .public-results-table td:nth-child(-n + 3),
    .public-body .public-role-table th:nth-child(-n + 3),
    .public-body .public-role-table td:nth-child(-n + 3) {
        font-size: 0.56rem;
    }
}
