@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');:root{--g:#07382b;--gd:#031f18;--gold:#c4933d;--paper:#fff9ee;--text:#4d3a25;--muted:#776149;--border:rgba(196,147,61,.34)}.acm-page,.acm-listing,.acm-page *,.acm-listing *{box-sizing:border-box}.acm-page,.acm-listing{font-family:"Cairo",Tahoma,Arial,sans-serif;color:var(--text);background:radial-gradient(circle at 50% 0,rgba(255,255,255,.7),transparent 32%),linear-gradient(110deg,#f0dab8,#fff8ec 50%,#efd9b7)}.acm-container{width:min(1380px,calc(100% - 40px));margin:auto}.acm-hero{min-height:470px;display:flex;align-items:center;background-size:cover;background-position:center;border-bottom:1px solid var(--border)}.acm-hero-copy{width:min(760px,68%);margin:auto;padding:45px 20px;text-align:center}.acm-hero-copy>span,.acm-heading>span,.acm-register-panel header>span{color:var(--gold);font-weight:800}.acm-hero h1,.acm-heading h2,.acm-register-panel h2{color:var(--g);font-weight:800}.acm-hero h1{margin:7px 0;font-size:clamp(38px,5vw,68px)}.acm-hero p{line-height:2;color:#594630}.acm-button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 22px;margin-top:18px;border:1px solid var(--gold);border-radius:8px;background:linear-gradient(145deg,#154535,#03251c);color:#fff!important;text-decoration:none!important;font:inherit;font-weight:800;cursor:pointer}.acm-content,.acm-listing{padding:42px 0 65px}.acm-two-columns{display:grid;grid-template-columns:1.25fr .75fr;gap:18px}.acm-panel,.acm-register-panel,.acm-card{border:1px solid var(--border);border-radius:14px;background:rgba(255,250,241,.94);box-shadow:0 12px 30px rgba(69,45,21,.08)}.acm-panel{padding:24px;line-height:2}.acm-panel h2,.acm-panel h3{color:var(--g)}.acm-stage{margin-bottom:13px;border:1px solid var(--border);border-radius:10px;overflow:hidden}.acm-stage header{padding:11px 13px;background:linear-gradient(145deg,#0b4837,#03271e);color:#fff}.acm-stage header small{color:#e8c77f}.acm-stage header h3{margin:2px 0;color:#fff}.acm-round{padding:12px;border-top:1px solid rgba(196,147,61,.2)}.acm-round ul{font-size:11px;color:var(--muted)}.acm-register-panel{margin-top:20px;padding:26px}.acm-register-panel header{text-align:center}.acm-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.acm-form label>span,.acm-form legend{display:block;margin-bottom:6px;color:var(--g);font-size:10px;font-weight:800}.acm-form input,.acm-form select{width:100%;min-height:45px;padding:9px 12px;border:1px solid var(--border);border-radius:8px;background:#fffdfa;font:inherit}.acm-form fieldset,.acm-agreement,.acm-form>.acm-button{grid-column:1/-1}.acm-form fieldset{border:1px solid var(--border);border-radius:10px;padding:14px}.acm-choice,.acm-agreement{display:flex!important;align-items:center;gap:8px}.acm-choice input,.acm-agreement input{width:18px;min-height:18px}.acm-form>.acm-button{width:100%}.acm-result{padding:28px;text-align:center;border:1px solid var(--border);border-radius:12px;background:#fff8e8}.acm-result.success{color:var(--g)}.acm-result.error{color:#9d3029}.acm-heading{text-align:center;margin-bottom:25px}.acm-heading h2{font-size:clamp(32px,4vw,52px);margin:5px}.acm-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.acm-card{overflow:hidden}.acm-card-image{display:block;height:220px}.acm-card-image img{width:100%;height:100%;object-fit:cover}.acm-placeholder{height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#154535,#03251c);color:#e8c77f}.acm-card-body{padding:18px}.acm-card-body h3{color:var(--g)}.acm-card-body p{color:var(--muted);line-height:1.8}@media(max-width:900px){.acm-two-columns{grid-template-columns:1fr}.acm-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.acm-container{width:calc(100% - 18px)}.acm-hero-copy{width:100%}.acm-form,.acm-grid{grid-template-columns:1fr}.acm-register-panel{padding:18px 13px}}

/* =========================================================
   Competition Dashboard
========================================================= */

.acm-dashboard-page,
.acm-dashboard-page * {
    box-sizing: border-box;
}

.acm-dashboard-page {
    --acm-dashboard-green: #07382b;
    --acm-dashboard-green-dark: #031f18;
    --acm-dashboard-gold: #c4933d;
    --acm-dashboard-gold-light: #e8c77f;
    --acm-dashboard-paper: #fff9ee;
    --acm-dashboard-text: #4d3a25;
    --acm-dashboard-muted: #776149;
    --acm-dashboard-border: rgba(196, 147, 61, 0.34);

    direction: rtl;

    font-family:
        "Cairo",
        Tahoma,
        Arial,
        sans-serif;

    color: var(--acm-dashboard-text);

    background:
        radial-gradient(
            circle at 50% 0,
            rgba(255, 255, 255, 0.72),
            transparent 34%
        ),
        linear-gradient(
            110deg,
            #f0dab8,
            #fff8ec 50%,
            #efd9b7
        );
}

.acm-dashboard-hero {
    position: relative;

    min-height: 350px;
    overflow: hidden;

    display: flex;
    align-items: center;

    border-bottom:
        1px solid
        var(--acm-dashboard-border);

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(232, 199, 127, 0.13),
            transparent 36%
        ),
        linear-gradient(
            135deg,
            #123f31,
            #07382b 50%,
            #031f18
        );
}

.acm-dashboard-hero::before,
.acm-dashboard-hero::after {
    content: "";

    position: absolute;

    width: 330px;
    height: 330px;

    border:
        1px solid
        rgba(232, 199, 127, 0.12);

    border-radius: 50%;
}

.acm-dashboard-hero::before {
    top: -165px;
    right: -70px;

    box-shadow:
        0 0 0 42px rgba(232, 199, 127, 0.035),
        0 0 0 88px rgba(232, 199, 127, 0.02);
}

.acm-dashboard-hero::after {
    bottom: -190px;
    left: -70px;

    box-shadow:
        0 0 0 42px rgba(232, 199, 127, 0.035),
        0 0 0 88px rgba(232, 199, 127, 0.02);
}

.acm-dashboard-hero-content {
    position: relative;
    z-index: 2;

    width: min(760px, 100%);
    margin: 0 auto;
    padding: 52px 20px;

    text-align: center;
}

.acm-dashboard-eyebrow {
    display: block;

    color:
        var(--acm-dashboard-gold-light);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.acm-dashboard-hero h1 {
    margin: 7px 0 0;

    color: #fff9ed;

    font-size:
        clamp(38px, 5vw, 66px);

    font-weight: 800;
    line-height: 1.3;
}

.acm-dashboard-hero p {
    max-width: 650px;
    margin: 13px auto 0;

    color:
        rgba(255, 249, 237, 0.76);

    line-height: 2;
}

.acm-dashboard-hero-actions {
    display: flex;
    flex-wrap: wrap;

    margin-top: 22px;

    align-items: center;
    justify-content: center;
    gap: 10px;
}

.acm-dashboard-hero-actions .acm-button {
    margin: 0;
}

.acm-button-light {
    background:
        rgba(255, 255, 255, 0.08) !important;

    color:
        var(--acm-dashboard-gold-light) !important;
}

.acm-dashboard-content {
    padding: 26px 0 65px;
}

.acm-dashboard-toolbar {
    display: flex;

    margin-bottom: 16px;
    padding: 15px 18px;

    align-items: center;
    justify-content: space-between;
    gap: 15px;

    border:
        1px solid
        var(--acm-dashboard-border);

    border-radius: 14px;

    background:
        rgba(255, 250, 241, 0.94);

    box-shadow:
        0 10px 26px
        rgba(68, 44, 20, 0.07);
}

.acm-dashboard-competition-selector {
    min-width: min(420px, 100%);
}

.acm-dashboard-competition-selector label,
.acm-dashboard-current span {
    display: block;

    margin-bottom: 5px;

    color:
        var(--acm-dashboard-gold);

    font-size: 10px;
    font-weight: 800;
}

.acm-dashboard-competition-selector select {
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;

    border:
        1px solid
        var(--acm-dashboard-border);

    border-radius: 8px;

    background: #fffdfa;

    color:
        var(--acm-dashboard-green);

    font: inherit;
    font-weight: 700;
}

.acm-dashboard-current {
    text-align: left;
}

.acm-dashboard-current strong {
    color:
        var(--acm-dashboard-green);
}

.acm-dashboard-stats {
    display: grid;

    margin-bottom: 16px;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 10px;
}

.acm-dashboard-stat {
    position: relative;
    overflow: hidden;

    min-height: 105px;
    padding: 17px 15px;

    border:
        1px solid
        var(--acm-dashboard-border);

    border-radius: 12px;

    background:
        linear-gradient(
            160deg,
            #fffdf8,
            #f5e4ca
        );

    text-align: center;

    box-shadow:
        0 8px 20px
        rgba(68, 44, 20, 0.06);
}

.acm-dashboard-stat::before {
    content: "";

    position: absolute;

    top: 0;
    right: 0;
    left: 0;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--acm-dashboard-gold),
            transparent
        );
}

.acm-dashboard-stat span {
    display: block;

    color:
        var(--acm-dashboard-muted);

    font-size: 10px;
    font-weight: 700;
}

.acm-dashboard-stat strong {
    display: block;

    margin-top: 7px;

    color:
        var(--acm-dashboard-green);

    font-size: 29px;
    font-weight: 800;
}

.acm-dashboard-tabs {
    display: flex;
    overflow-x: auto;

    margin-bottom: 15px;
    padding: 7px;

    gap: 7px;

    border:
        1px solid
        var(--acm-dashboard-border);

    border-radius: 12px;

    background:
        rgba(255, 250, 241, 0.9);

    -webkit-overflow-scrolling: touch;
}

.acm-dashboard-tab {
    flex: 1 0 auto;

    min-height: 42px;
    padding: 8px 16px;

    border:
        1px solid
        transparent;

    border-radius: 8px;

    background: transparent;

    color:
        var(--acm-dashboard-muted);

    font: inherit;
    font-size: 11px;
    font-weight: 800;

    cursor: pointer;
}

.acm-dashboard-tab.is-active {
    border-color:
        var(--acm-dashboard-gold);

    background:
        linear-gradient(
            145deg,
            #134837,
            #03251c
        );

    color: #ffffff;
}

.acm-dashboard-panel {
    display: none;
}

.acm-dashboard-panel.is-active {
    display: block;
}

.acm-dashboard-overview-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;
}

.acm-dashboard-box,
.acm-dashboard-coming-soon {
    padding: 22px;

    border:
        1px solid
        var(--acm-dashboard-border);

    border-radius: 14px;

    background:
        rgba(255, 250, 241, 0.94);

    box-shadow:
        0 10px 28px
        rgba(68, 44, 20, 0.07);
}

.acm-dashboard-box-label,
.acm-dashboard-coming-soon > span,
.acm-dashboard-panel-heading span {
    display: block;

    color:
        var(--acm-dashboard-gold);

    font-size: 10px;
    font-weight: 800;
}

.acm-dashboard-box h2,
.acm-dashboard-coming-soon h2,
.acm-dashboard-panel-heading h2 {
    margin: 4px 0 0;

    color:
        var(--acm-dashboard-green);

    font-size: 22px;
    font-weight: 800;
}

.acm-dashboard-details {
    margin: 15px 0 0;
}

.acm-dashboard-details > div {
    display: flex;

    padding: 9px 0;

    align-items: center;
    justify-content: space-between;
    gap: 12px;

    border-bottom:
        1px solid
        rgba(100, 72, 41, 0.1);
}

.acm-dashboard-details dt {
    color:
        var(--acm-dashboard-muted);

    font-size: 10px;
}

.acm-dashboard-details dd {
    margin: 0;

    color:
        var(--acm-dashboard-green);

    font-weight: 800;
}

.acm-dashboard-discipline-list {
    display: flex;
    flex-wrap: wrap;

    margin-top: 15px;

    gap: 8px;
}

.acm-dashboard-discipline-list span {
    padding: 7px 12px;

    border:
        1px solid
        rgba(196, 147, 61, 0.28);

    border-radius: 99px;

    background:
        rgba(196, 147, 61, 0.1);

    color: #895f25;

    font-size: 10px;
    font-weight: 800;
}

.acm-dashboard-mini-structure {
    margin-top: 12px;
}

.acm-dashboard-mini-structure > div {
    display: flex;

    padding: 10px 0;

    align-items: center;
    justify-content: space-between;
    gap: 12px;

    border-bottom:
        1px solid
        rgba(100, 72, 41, 0.1);
}

.acm-dashboard-mini-structure strong {
    color:
        var(--acm-dashboard-green);
}

.acm-dashboard-mini-structure span {
    color:
        var(--acm-dashboard-muted);

    font-size: 10px;
}

.acm-dashboard-panel-heading {
    display: flex;

    margin-bottom: 13px;

    align-items: end;
    justify-content: space-between;
    gap: 15px;
}

.acm-dashboard-filters {
    display: grid;

    grid-template-columns:
        minmax(240px, 1fr)
        minmax(160px, 0.55fr);

    gap: 9px;
}

.acm-dashboard-filters input,
.acm-dashboard-filters select,
.acm-dashboard-status-select {
    min-height: 41px;
    padding: 8px 10px;

    border:
        1px solid
        var(--acm-dashboard-border);

    border-radius: 8px;

    background: #fffdfa;

    color:
        var(--acm-dashboard-text);

    font: inherit;
    font-size: 10px;
}

.acm-dashboard-table-shell {
    overflow: hidden;

    border:
        1px solid
        var(--acm-dashboard-border);

    border-radius: 14px;

    background: #fffaf2;

    box-shadow:
        0 10px 28px
        rgba(68, 44, 20, 0.07);
}

.acm-dashboard-table-scroll {
    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
}

.acm-dashboard-table {
    width: 100%;
    min-width: 1120px;

    margin: 0;

    border-collapse: separate;
    border-spacing: 0;

    table-layout: fixed;
}

.acm-dashboard-table th {
    padding: 14px 8px;

    border-left:
        1px solid
        rgba(232, 199, 127, 0.16);

    background:
        linear-gradient(
            145deg,
            #0b4938,
            #03271e
        );

    color:
        var(--acm-dashboard-gold-light);

    font-size: 10px;
    font-weight: 800;

    text-align: center;
}

.acm-dashboard-table td {
    padding: 13px 8px;

    border-left:
        1px solid
        rgba(100, 72, 41, 0.1);

    border-bottom:
        1px solid
        rgba(100, 72, 41, 0.1);

    background: #fffdf8;

    color:
        var(--acm-dashboard-text);

    font-size: 9.5px;
    line-height: 1.7;

    text-align: center;
    vertical-align: middle;
}

.acm-dashboard-table tbody tr:nth-child(even) td {
    background: #f9edd9;
}

.acm-dashboard-table td strong,
.acm-dashboard-table td small,
.acm-dashboard-table td span {
    display: block;
}

.acm-dashboard-table td small {
    color:
        var(--acm-dashboard-muted);
}

.acm-request-number {
    direction: ltr;
}

.acm-dashboard-status {
    display: inline-flex !important;

    width: fit-content;
    min-height: 27px;
    margin: 0 auto;
    padding: 5px 9px;

    align-items: center;
    justify-content: center;

    border-radius: 99px;

    font-size: 8.5px;
    font-weight: 800;
}

.acm-status-under_review,
.acm-status-needs_info {
    background: #fff0c9;
    color: #805b18;
}

.acm-status-approved,
.acm-status-confirmed {
    background: #dff4e6;
    color: #17613a;
}

.acm-status-rejected,
.acm-status-disqualified {
    background: #f8dddd;
    color: #9e302a;
}

.acm-status-withdrawn {
    background: #e7e7e7;
    color: #555555;
}

.acm-dashboard-actions {
    display: grid;

    gap: 6px;
}

.acm-dashboard-delete {
    min-height: 35px;

    border:
        1px solid
        rgba(158, 48, 42, 0.34);

    border-radius: 7px;

    background:
        rgba(158, 48, 42, 0.08);

    color: #9e302a;

    font: inherit;
    font-size: 9px;
    font-weight: 800;

    cursor: pointer;
}

.acm-registration-row[hidden] {
    display: none !important;
}

.acm-dashboard-no-results,
.acm-dashboard-empty-row td {
    padding: 30px;

    color:
        var(--acm-dashboard-muted);

    text-align: center;
}

.acm-dashboard-coming-soon {
    min-height: 260px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;
}

.acm-dashboard-coming-soon p {
    max-width: 660px;

    color:
        var(--acm-dashboard-muted);

    line-height: 2;
}

.acm-access-message {
    padding: 75px 0;

    direction: rtl;

    background:
        linear-gradient(
            110deg,
            #f0dab8,
            #fff8ec 50%,
            #efd9b7
        );

    font-family:
        "Cairo",
        Tahoma,
        Arial,
        sans-serif;
}

.acm-access-card {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 25px;

    border:
        1px solid
        rgba(196, 147, 61, 0.34);

    border-radius: 14px;

    background: #fffaf2;

    text-align: center;
}

.acm-access-card h2 {
    margin: 0;

    color: #07382b;

    font-size: 30px;
}

.acm-access-card p {
    color: #776149;
}

.acm-access-card.is-denied {
    border-color:
        rgba(158, 48, 42, 0.28);
}

@media (max-width: 1150px) {
    .acm-dashboard-stats {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 760px) {
    .acm-dashboard-hero {
        min-height: 400px;
    }

    .acm-dashboard-hero h1 {
        font-size: 35px;
    }

    .acm-dashboard-toolbar,
    .acm-dashboard-panel-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .acm-dashboard-current {
        text-align: right;
    }

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

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

    .acm-dashboard-table-shell {
        overflow: visible;

        border: 0;
        border-radius: 0;

        background: transparent;

        box-shadow: none;
    }

    .acm-dashboard-table-scroll {
        overflow: visible;
    }

    .acm-dashboard-table,
    .acm-dashboard-table tbody,
    .acm-dashboard-table tr,
    .acm-dashboard-table td {
        display: block;

        width: 100%;
        min-width: 0;
    }

    .acm-dashboard-table thead {
        display: none;
    }

    .acm-dashboard-table tbody {
        display: grid;

        gap: 13px;
    }

    .acm-dashboard-table tr {
        overflow: hidden;

        border:
            1px solid
            var(--acm-dashboard-border);

        border-radius: 13px;

        background:
            linear-gradient(
                160deg,
                #fffdf8,
                #f5e4ca
            );

        box-shadow:
            0 8px 22px
            rgba(68, 44, 20, 0.07);
    }

    .acm-dashboard-table td {
        display: grid;

        padding: 10px 13px;

        grid-template-columns:
            minmax(110px, 40%)
            minmax(0, 1fr);

        align-items: center;
        gap: 8px;

        border: 0;
        border-bottom:
            1px solid
            rgba(100, 72, 41, 0.1);

        background: transparent !important;

        text-align: right;
    }

    .acm-dashboard-table td::before {
        content:
            attr(data-label);

        color:
            var(--acm-dashboard-gold);

        font-size: 9px;
        font-weight: 800;
    }

    .acm-dashboard-table td:last-child {
        border-bottom: 0;
    }

    .acm-dashboard-status {
        margin: 0;
    }

    .acm-dashboard-actions {
        width: 100%;
    }
}

@media (max-width: 470px) {
    .acm-dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }

    .acm-dashboard-stat {
        min-height: 94px;
        padding: 14px 10px;
    }

    .acm-dashboard-stat strong {
        font-size: 25px;
    }
}


/* =========================================================
   Dashboard 0.3 — frontend-only management
========================================================= */

.acm-dashboard-section-heading {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.acm-dashboard-section-heading > div > span,
.acm-front-structure-heading span,
.acm-scoring-search-panel > span {
    display: block;
    color: #c4933d;
    font-size: 11px;
    font-weight: 800;
}

.acm-dashboard-section-heading h2,
.acm-front-structure-heading h3,
.acm-scoring-search-panel h2 {
    margin: 4px 0 0;
    color: #07382b;
    font-size: clamp(27px, 3vw, 42px);
    font-weight: 800;
}

.acm-dashboard-section-heading p,
.acm-scoring-search-panel p {
    max-width: 720px;
    color: #776149;
    line-height: 1.9;
}

.acm-dashboard-heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.acm-dashboard-heading-actions .acm-button {
    margin: 0;
}

.acm-dashboard-competition-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.acm-dashboard-competition-card {
    overflow: hidden;
    border: 1px solid rgba(196,147,61,.34);
    border-radius: 15px;
    background: rgba(255,250,241,.95);
    box-shadow: 0 12px 30px rgba(69,45,21,.08);
}

.acm-dashboard-card-image {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.acm-dashboard-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.acm-dashboard-card-placeholder {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg,#154535,#03251c);
    color: #e8c77f;
    font-weight: 800;
}

.acm-dashboard-card-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 99px;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
}

.acm-dashboard-card-status.is-open { background: #176d46; }
.acm-dashboard-card-status.is-closed { background: #a63a32; }

.acm-dashboard-card-body {
    padding: 18px;
}

.acm-dashboard-card-disciplines {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.acm-dashboard-card-disciplines span {
    padding: 4px 9px;
    border-radius: 99px;
    background: rgba(196,147,61,.12);
    color: #855e28;
    font-size: 9px;
    font-weight: 800;
}

.acm-dashboard-card-body h3 {
    margin: 10px 0 6px;
    color: #07382b;
    font-size: 21px;
}

.acm-dashboard-card-meta {
    display: flex;
    margin: 13px 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #776149;
    font-size: 10px;
}

.acm-dashboard-card-meta strong {
    color: #07382b;
}

.acm-dashboard-card-actions {
    display: grid;
    grid-template-columns: 1fr .6fr;
    gap: 8px;
}

.acm-dashboard-card-actions .acm-button {
    width: 100%;
    margin: 0;
    padding: 8px 12px;
    font-size: 10px;
}

.acm-button-light-card {
    border: 1px solid rgba(196,147,61,.45) !important;
    background: #fff8e8 !important;
    color: #7f5924 !important;
}

.acm-dashboard-empty-state {
    grid-column: 1/-1;
    padding: 45px 20px;
    border: 1px solid rgba(196,147,61,.34);
    border-radius: 15px;
    background: #fffaf2;
    text-align: center;
}

.acm-front-form-shell,
.acm-scoring-search-panel,
#acmScoringWorkspace {
    padding: 23px;
    border: 1px solid rgba(196,147,61,.34);
    border-radius: 15px;
    background: rgba(255,250,241,.95);
    box-shadow: 0 12px 30px rgba(69,45,21,.08);
}

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

.acm-front-form-grid .is-full {
    grid-column: 1/-1;
}

.acm-front-form-grid label > span,
.acm-front-disciplines legend,
.acm-front-stage-grid label > span {
    display: block;
    margin-bottom: 6px;
    color: #07382b;
    font-size: 10px;
    font-weight: 800;
}

.acm-front-form-grid input,
.acm-front-form-grid select,
.acm-front-form-grid textarea,
.acm-front-stage-grid input,
.acm-front-stage-grid select,
.acm-scoring-search-row input {
    width: 100%;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid rgba(196,147,61,.35);
    border-radius: 8px;
    background: #fffdfa;
    color: #4d3a25;
    font: inherit;
    outline: none;
}

.acm-front-disciplines {
    padding: 14px;
    border: 1px solid rgba(196,147,61,.3);
    border-radius: 10px;
}

.acm-front-structure-builder {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(196,147,61,.25);
}

.acm-front-structure-heading {
    display: flex;
    margin-bottom: 12px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.acm-front-structure-heading .acm-button {
    margin: 0;
}

.acm-front-stage-card {
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(196,147,61,.34);
    border-radius: 12px;
    background: #fffaf2;
}

.acm-front-stage-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    padding: 15px;
    background: linear-gradient(145deg,#0b4837,#03271e);
}

.acm-front-stage-grid label > span {
    color: #e8c77f;
}

.acm-front-stage-footer {
    display: flex;
    padding: 12px 15px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.acm-front-stage-summary {
    color: #07382b;
    font-size: 11px;
}

.acm-front-remove-stage {
    min-height: 35px;
    padding: 7px 12px;
    border: 1px solid rgba(158,48,42,.35);
    border-radius: 7px;
    background: rgba(158,48,42,.08);
    color: #9e302a;
    font: inherit;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.acm-front-form-actions {
    display: flex;
    margin-top: 18px;
    gap: 8px;
}

.acm-front-form-actions .acm-button {
    margin: 0;
}

.acm-front-message {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 700;
}

.acm-front-message.is-success {
    border: 1px solid rgba(23,97,58,.25);
    background: #e1f4e7;
    color: #17613a;
}

.acm-front-message.is-error {
    border: 1px solid rgba(158,48,42,.25);
    background: #f8dddd;
    color: #9e302a;
}

.acm-competitor-number,
.acm-public-competitor-number {
    direction: ltr;
    color: #07382b !important;
    font-family: monospace;
    font-size: 25px !important;
    letter-spacing: 4px;
}

.acm-scoring-search-panel {
    text-align: center;
}

.acm-scoring-search-row {
    display: flex;
    max-width: 470px;
    margin: 18px auto 0;
    gap: 8px;
}

.acm-scoring-search-row input {
    direction: ltr;
    text-align: center;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 5px;
}

.acm-scoring-search-row .acm-button {
    min-width: 120px;
    margin: 0;
}

#acmScoringWorkspace {
    margin-top: 15px;
}

.acm-scoring-player-card {
    display: grid;
    margin-bottom: 16px;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 9px;
}

.acm-scoring-player-card > div {
    padding: 13px;
    border: 1px solid rgba(196,147,61,.25);
    border-radius: 10px;
    background: #fff8e9;
    text-align: center;
}

.acm-scoring-player-card span {
    display: block;
    color: #c4933d;
    font-size: 9px;
    font-weight: 800;
}

.acm-scoring-player-card strong,
.acm-scoring-player-card small {
    display: block;
    color: #07382b;
}

.acm-score-stage {
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid rgba(196,147,61,.34);
    border-radius: 12px;
}

.acm-score-stage > header {
    padding: 13px 16px;
    background: linear-gradient(145deg,#0b4837,#03271e);
    color: #fff;
}

.acm-score-stage > header span {
    color: #e8c77f;
    font-size: 9px;
    font-weight: 800;
}

.acm-score-stage > header h3 {
    margin: 2px 0;
    color: #fff;
}

.acm-score-stage > header p {
    margin: 0;
    color: rgba(255,255,255,.7);
    font-size: 10px;
}

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

.acm-score-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: #fffdfa;
}

.acm-score-table th,
.acm-score-table td {
    padding: 9px;
    border: 1px solid rgba(100,72,41,.12);
    text-align: center;
}

.acm-score-table thead th {
    background: #f3dfbf;
    color: #07382b;
    font-size: 10px;
}

.acm-score-table tbody th {
    color: #07382b;
    white-space: nowrap;
}

.acm-arrow-score {
    width: 72px;
    min-height: 39px;
    padding: 6px;
    border: 1px solid rgba(196,147,61,.35);
    border-radius: 7px;
    background: #fff;
    text-align: center;
    font: inherit;
    font-weight: 800;
}

.acm-round-total {
    color: #07382b;
    font-weight: 800;
}

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

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

    .acm-scoring-player-card {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 700px) {
    .acm-dashboard-section-heading,
    .acm-front-structure-heading,
    .acm-front-stage-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .acm-dashboard-competition-grid,
    .acm-front-form-grid,
    .acm-front-stage-grid,
    .acm-scoring-player-card {
        grid-template-columns: 1fr;
    }

    .acm-scoring-search-row,
    .acm-front-form-actions {
        flex-direction: column;
    }

    .acm-scoring-search-row .acm-button,
    .acm-front-form-actions .acm-button {
        width: 100%;
    }
}


.acm-manual-registration-panel {
    margin-bottom: 18px;
}

.acm-manual-registration-card {
    padding: 22px;
    border: 1px solid rgba(196,147,61,.34);
    border-radius: 15px;
    background: rgba(255,250,241,.96);
    box-shadow: 0 12px 30px rgba(69,45,21,.08);
}

.acm-manual-registration-card > header {
    display: flex;
    margin-bottom: 16px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.acm-manual-registration-card > header span {
    color: #c4933d;
    font-size: 10px;
    font-weight: 800;
}

.acm-manual-registration-card > header h2 {
    margin: 3px 0 0;
    color: #07382b;
}

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

.acm-manual-registration-form fieldset,
.acm-manual-registration-form .acm-agreement,
.acm-manual-registration-form .acm-button {
    grid-column: 1/-1;
}

@media (max-width: 700px) {
    .acm-manual-registration-card > header {
        align-items: stretch;
        flex-direction: column;
    }

    .acm-manual-registration-form {
        grid-template-columns: 1fr;
    }
}

.acm-scoring-players-panel {
    margin-bottom: 15px;
    padding: 20px;
    border: 1px solid rgba(196,147,61,.34);
    border-radius: 15px;
    background: rgba(255,250,241,.95);
    box-shadow: 0 12px 30px rgba(69,45,21,.08);
}

.acm-scoring-players-panel #acmScoringPlayersSearch,
#acmResultsSearch {
    min-width: min(340px,100%);
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid rgba(196,147,61,.35);
    border-radius: 8px;
    background: #fffdfa;
    font: inherit;
}

.acm-load-player-scores {
    width: 100%;
    margin: 0;
    min-height: 38px;
    padding: 7px 10px;
    font-size: 9px;
}

.acm-total-score {
    color: #07382b;
    font-size: 18px;
}


.acm-stage-total-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;background:#fff3dc;border-top:1px solid rgba(196,147,61,.3);color:#07382b;font-weight:800}.acm-stage-grand-total{font-size:22px}.acm-arrow-score{appearance:textfield;-moz-appearance:textfield}.acm-arrow-score::-webkit-outer-spin-button,.acm-arrow-score::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}


/* =========================================================
   v0.4.0 — Separate scoring and grouped results
========================================================= */

.acm-dashboard-tab-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.acm-standalone-scoring-page .acm-scoring-players-panel,
.acm-standalone-scoring-page .acm-scoring-search-panel,
.acm-standalone-scoring-page #acmScoringWorkspace {
    margin-bottom: 16px;
}

.acm-results-groups {
    display: grid;
    gap: 18px;
}

.acm-result-group {
    overflow: hidden;
    border: 1px solid rgba(196,147,61,.34);
    border-radius: 14px;
    background: rgba(255,250,241,.95);
    box-shadow: 0 10px 26px rgba(68,44,20,.07);
}

.acm-result-group > header {
    padding: 15px 18px;
    background: linear-gradient(145deg,#0b4938,#03271e);
    color: #fff;
}

.acm-result-group > header span {
    color: #e8c77f;
    font-size: 9px;
    font-weight: 800;
}

.acm-result-group > header h3 {
    margin: 3px 0 0;
    color: #fff;
    font-size: 20px;
}

.acm-result-group .acm-dashboard-table-shell {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.acm-medal {
    display: inline-block;
    margin-left: 5px;
    font-size: 18px;
    vertical-align: middle;
}

@media (max-width: 700px) {
    .acm-dashboard-tab-link {
        min-width: max-content;
    }
}


/* =========================================================
   v0.4.1 — Terms modal, auto scoring search, team and ranks
========================================================= */

.acm-agreement > span {
    display: inline;
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.acm-terms-modal-link {
    display: inline;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #c4933d;
    background: transparent;
    color: #8a6128;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.acm-terms-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;

    display: none;
    padding: 18px;

    align-items: center;
    justify-content: center;

    background: rgba(2,25,19,.76);
    backdrop-filter: blur(5px);
}

.acm-terms-modal.is-visible {
    display: flex;
}

.acm-terms-modal-dialog {
    width: min(850px, 100%);
    max-height: 90vh;
    overflow: hidden;

    border: 1px solid rgba(196,147,61,.6);
    border-radius: 15px;

    background: linear-gradient(160deg,#fffdf8,#f4e3c7);
    box-shadow: 0 25px 65px rgba(0,0,0,.28);
}

.acm-terms-modal-header {
    display: flex;
    min-height: 68px;
    padding: 13px 18px;

    align-items: center;
    justify-content: space-between;
    gap: 15px;

    background: linear-gradient(145deg,#0c4938,#03291f);
    color: #fff;
}

.acm-terms-modal-header span {
    display: block;
    color: #e8c77f;
    font-size: 9px;
    font-weight: 800;
}

.acm-terms-modal-header h3 {
    margin: 3px 0 0;
    color: #fff;
    font-size: 20px;
}

.acm-terms-modal-close {
    display: inline-flex;
    width: 38px;
    height: 38px;
    padding: 0;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;

    background: rgba(255,255,255,.08);
    color: #fff;

    font-size: 24px;
    cursor: pointer;
}

.acm-terms-modal-body {
    max-height: calc(90vh - 68px);
    overflow-y: auto;
    padding: 22px;
}

.acm-terms-modal-body section {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(100,72,41,.12);
}

.acm-terms-modal-body section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.acm-terms-modal-body h4 {
    margin: 0 0 10px;
    color: #07382b;
    font-size: 18px;
}

.acm-terms-modal-content {
    color: #776149;
    line-height: 2;
}

.acm-terms-details-list {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
    margin: 0;
}

.acm-terms-details-list > div {
    padding: 12px;
    border: 1px solid rgba(196,147,61,.25);
    border-radius: 9px;
    background: #fff8e9;
}

.acm-terms-details-list dt {
    color: #c4933d;
    font-size: 9px;
    font-weight: 800;
}

.acm-terms-details-list dd {
    margin: 4px 0 0;
    color: #07382b;
    font-weight: 800;
}

.acm-results-table .acm-total-score {
    font-size: 15px;
}

@media (max-width: 700px) {
    .acm-terms-modal {
        padding: 9px;
    }

    .acm-terms-modal-body {
        padding: 16px;
    }

    .acm-terms-details-list {
        grid-template-columns: 1fr;
    }
}
