html,
body.mams-suite-fullscreen-page {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: #eef3ef;
}

body.mams-suite-fullscreen-page .site,
body.mams-suite-fullscreen-page .site-main,
body.mams-suite-fullscreen-page #page,
body.mams-suite-fullscreen-page .entry-content,
body.mams-suite-fullscreen-page .content-area {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

.mams-suite-page-shell,
#mams-suite-root {
    min-height: 100vh;
}

#mams-suite-root,
#mams-suite-root * {
    box-sizing: border-box;
}

#mams-suite-root {
    font-family: "Segoe UI", Arial, sans-serif;
    color: #223047;
}

.mams-login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background:
        radial-gradient(circle at top left, rgba(12, 107, 52, 0.35), transparent 40%),
        radial-gradient(circle at bottom right, rgba(198, 53, 56, 0.28), transparent 45%),
        linear-gradient(135deg, #0f4d2d 0%, #18422d 55%, #6a2f22 100%);
}

.mams-login-card {
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 24px 60px rgba(16, 30, 20, 0.22);
}

.mams-login-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.mams-login-logo {
    width: 150px;
    max-width: 70%;
    height: auto;
}

.mams-login-brandline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
    font-weight: 800;
    font-size: 28px;
    line-height: 1.2;
    color: #0f6f45;
    text-align: center;
}

.mams-login-flag {
    font-size: 46px;
    line-height: 1;
}

.mams-login-subtitle {
    font-size: 17px;
    color: #6f7c92;
    text-align: center;
    margin: 0 0 24px;
}

.mams-form-group {
    margin-bottom: 16px;
}

.mams-form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    color: #223047;
}

.mams-input,
.mams-select,
.mams-textarea {
    width: 100%;
    border: 1px solid #d9e0e6;
    background: #f3f4f6;
    color: #223047;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.mams-input:focus,
.mams-select:focus,
.mams-textarea:focus {
    border-color: #128249;
    box-shadow: 0 0 0 4px rgba(18, 130, 73, 0.13);
    background: #fff;
}

.mams-textarea {
    min-height: 110px;
    resize: vertical;
}

.mams-checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #42516a;
    margin-top: 4px;
}

.mams-checkbox-row-inline {
    margin-top: 32px;
}

.mams-btn {
    appearance: none;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease, background-color .12s ease;
}

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

.mams-btn-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mams-btn-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.mams-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.mams-btn-primary {
    background: #59c65b;
    color: #fff;
    box-shadow: 0 8px 18px rgba(89, 198, 91, 0.18);
}

.mams-btn-secondary {
    background: #fff;
    color: #223047;
    border: 1px solid #d1d5db;
}

.mams-btn-danger {
    background: #cf3f43;
    color: #fff;
}

.mams-btn-warning {
    background: #f59e0b;
    color: #fff;
}

.mams-btn-dark {
    background: #4d4e57;
    color: #fff;
}

.mams-btn-link {
    background: transparent;
    color: #0f6f45;
    padding: 0;
}

.mams-login-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 22px;
}

.mams-alert {
    border-radius: 16px;
    padding: 15px 16px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.55;
}

.mams-alert-error {
    background: #fff0f0;
    color: #a12c32;
    border: 1px solid #f0c5c7;
}

.mams-alert-success {
    background: #ecfbf0;
    color: #146b39;
    border: 1px solid #b8ecc8;
}

.mams-alert-info {
    background: #eef6ff;
    color: #27547e;
    border: 1px solid #cadef2;
}

.mams-app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 272px 1fr;
    background: #fff;
}

.mams-sidebar {
    background: #1f2937;
    color: #e5e7eb;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.mams-side-top {
    background: #62c455;
    color: #fff;
    padding: 16px 18px 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.mams-side-title {
    margin: 0;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 800;
}

.mams-side-email {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.9);
}

.mams-side-switch {
    margin-left: auto;
    min-width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease;
}

.mams-side-switch:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.mams-side-switch-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mams-side-switch-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.mams-side-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0 18px;
    display: flex;
    flex-direction: column;
}

.mams-nav-group-title {
    color: #9ca3af;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 800;
    padding: 10px 16px 6px;
}

.mams-nav-section {
    border-bottom: 1px solid #374151;
    padding-bottom: 8px;
    margin-bottom: 2px;
}

.mams-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 8px;
}

.mams-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: none;
    background: transparent;
    color: #e5e7eb;
    border-radius: 4px;
    padding: 11px 12px;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.mams-nav-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    flex-shrink: 0;
}

.mams-nav-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.mams-nav-btn.is-active,
.mams-nav-btn:hover {
    background: #111827;
}

.mams-nav-btn.is-disabled,
.mams-nav-btn.is-disabled:hover {
    background: transparent;
    color: #7c8798;
    cursor: default;
    transform: none;
}

.mams-nav-btn.is-disabled .mams-nav-icon {
    color: #6b7280;
}

.mams-nav-btn.is-danger {
    color: #ffd7d8;
}

.mams-side-account {
    margin-top: auto;
}

.mams-main {
    padding: 28px 32px 36px;
    min-width: 0;
}

.mams-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
}

.mams-hello {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
    color: #111827;
}

.mams-subcopy {
    margin: 10px 0 0;
    font-size: 16px;
    color: #6b7280;
    max-width: 980px;
    line-height: 1.45;
}

.mams-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.mams-page-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
    color: #111827;
}

.mams-page-note {
    margin: 6px 0 0;
    font-size: 15px;
    color: #6b7280;
}

.mams-inline-link {
    color: #59b74f;
    text-decoration: underline;
}

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

.mams-dashboard-block {
    padding-bottom: 4px;
}

.mams-dashboard-heading {
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.mams-dashboard-heading-note {
    color: #6b7280;
    font-size: 14px;
    font-weight: 400;
}

.mams-dashboard-state {
    font-size: 32px;
    line-height: 1.15;
    color: #4b5563;
    margin-top: 18px;
}

.mams-dashboard-copy {
    margin: 12px 0 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
}

.mams-dashboard-date-list {
    margin-top: 2px;
}

.mams-dashboard-date-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(160px, 180px);
    gap: 16px;
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}

.mams-dashboard-date-row dt {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.mams-dashboard-date-row dd {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.45;
}

.mams-date-check {
    display: inline-block;
    margin-left: 10px;
    color: #41b55b;
    font-size: 11px;
    font-weight: 800;
}

.mams-dashboard-release-row {
    margin-top: 16px;
}

.mams-dashboard-country-card {
    margin-top: 18px;
}

.mams-dashboard-country-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
}

.mams-dashboard-country-flag {
    font-size: 18px;
}

.mams-dashboard-venue-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.mams-venue-card {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
}

.mams-venue-name {
    color: #111827;
    font-size: 15px;
    font-weight: 800;
}

.mams-progress-track {
    width: 100%;
    height: 8px;
    background: #fff;
    border-radius: 999px;
    overflow: hidden;
    margin: 10px 0 8px;
}

.mams-progress-track-secondary {
    margin-top: 14px;
}

.mams-progress-fill {
    height: 100%;
    border-radius: 999px;
}

.mams-progress-fill.is-registered {
    background: #49b457;
}

.mams-progress-fill.is-reviewed {
    background: #2563eb;
}

.mams-venue-note {
    color: #374151;
    font-size: 13px;
}

.mams-grid {
    display: grid;
    gap: 18px;
}

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

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

.mams-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
}

.mams-card-title {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 800;
}

.mams-stat-value {
    font-size: 34px;
    font-weight: 800;
    color: #203045;
}

.mams-stat-label {
    color: #718096;
    margin-top: 8px;
}

.mams-table-wrap {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
    overflow-x: auto;
}

.mams-table-wrap-flat {
    padding: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
}

.mams-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.mams-table th,
.mams-table td {
    padding: 14px 12px;
    vertical-align: top;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.mams-table th {
    color: #111827;
    background: #f3f4f6;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    text-align: left;
    font-weight: 800;
}

.mams-table td strong {
    color: #111827;
}

.mams-inline-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mams-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.mams-chip-green {
    background: #ebf9ef;
    color: #148047;
}

.mams-chip-red {
    background: #fff0f0;
    color: #b33b41;
}

.mams-chip-slate {
    background: #eef2f5;
    color: #42516a;
}

.mams-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(17, 24, 39, 0.45);
}

.mams-modal-panel {
    width: min(1120px, 100%);
    max-height: calc(100vh - 44px);
    overflow: auto;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 28px 80px rgba(10, 20, 16, 0.35);
    padding: 24px;
}

.mams-modal-panel-narrow {
    width: min(640px, 100%);
}

.mams-modal-panel-scanner {
    width: min(860px, 100%);
}

.mams-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.mams-modal-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.08;
    color: #223047;
}

.mams-modal-subtitle {
    margin: 7px 0 0;
    color: #748297;
}

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

.mams-section-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    border: 1px solid #e5e7eb;
}

.mams-section-card h3 {
    margin: 0 0 16px;
    color: #64748b;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 800;
}

.mams-booklets-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.15fr);
    gap: 20px;
    margin-bottom: 20px;
}

.mams-booklet-upload {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 2px dashed #c7d1db;
    border-radius: 14px;
    padding: 24px 22px;
    cursor: pointer;
    background: #f8fafc;
    transition: border-color .15s ease, background-color .15s ease;
}

.mams-booklet-upload:hover {
    border-color: #59c65b;
    background: #f3fbf4;
}

.mams-booklet-upload input {
    display: none;
}

.mams-booklet-upload-title {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.mams-booklet-upload-note {
    font-size: 14px;
    color: #6b7280;
}

.mams-booklet-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.mams-booklet-stat {
    border-radius: 12px;
    padding: 14px 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.mams-booklet-stat strong {
    display: block;
    font-size: 26px;
    line-height: 1;
    color: #111827;
}

.mams-booklet-stat span {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
}

.mams-phone-scanner-reader {
    min-height: 360px;
    border-radius: 14px;
    overflow: hidden;
    background: #111827;
    border: 1px solid #111827;
}

.mams-phone-scanner-reader video {
    width: 100% !important;
    height: auto !important;
    display: block;
}

.mams-phone-scanner-placeholder {
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
    font-size: 15px;
    padding: 22px;
    text-align: center;
}

.mams-phone-scanner-placeholder-error {
    color: #fecaca;
    background: #3f1117;
}

.mams-phone-scanner-note {
    margin-top: 14px;
}

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

.mams-form-grid-1 {
    grid-template-columns: 1fr;
}

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

.mams-contestants-table th,
.mams-contestants-table td {
    padding: 10px 8px;
}

.mams-modal-footer {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.mams-empty {
    text-align: center;
    color: #7a869d;
    padding: 34px 18px;
}

.mams-list-shell {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.mams-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: #f1f5f9;
    border-bottom: 1px solid #e5e7eb;
}

.mams-list-title {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 800;
}

.mams-list-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mams-filter-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 16px 18px;
}

.mams-filter-bar .mams-input {
    flex: 1;
}

.mams-btn-search {
    background: #3b82f6;
    color: #fff;
}

.mams-filter-panel {
    padding: 0 18px 16px;
    border-top: 1px solid #e5e7eb;
}

.mams-filter-panel.is-hidden {
    display: none;
}

.mams-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding-top: 16px;
}

.mams-filter-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.mams-filter-option {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #374151;
}

.mams-filter-submit {
    padding-top: 12px;
}

.mams-list-body {
    padding: 16px 18px 20px;
}

.mams-teams-table tr.is-striped td {
    background: #f8fafc;
}

.mams-team-number-cell {
    font-family: "SFMono-Regular", Consolas, monospace;
    letter-spacing: .06em;
    white-space: nowrap;
}

.mams-team-code-prefix {
    color: #6b7280;
}

.mams-list-muted {
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

.mams-school-name {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    text-transform: uppercase;
}

.mams-list-link {
    margin-top: 4px;
}

.mams-list-link a {
    color: #59b74f;
    text-decoration: underline;
}

.mams-team-contestants ul {
    margin: 0;
    padding-left: 18px;
}

.mams-team-contestants li {
    margin-bottom: 2px;
}

.mams-status-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mams-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.mams-status-pill.is-registered {
    background: #49b457;
}

.mams-status-pill.is-reviewed {
    background: #2563eb;
}

.mams-status-pill.is-checked {
    background: #0ea5e9;
}

.mams-status-pill.is-unconfirmed {
    background: #6b7280;
}

.mams-status-pill.is-disqualified {
    background: #dc2626;
}

.mams-status-pill.is-photo-ok {
    background: #22c55e;
}

.mams-status-pill.is-photo-missing {
    background: #dc2626;
}

.mams-team-actions {
    text-align: right;
}

.mams-btn-sm {
    padding: 8px 12px;
    font-size: 13px;
}

.mams-team-form-page {
    max-width: 1240px;
}

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

.mams-admin-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.mams-admin-card-wide {
    margin-top: 24px;
}

.mams-admin-card-header {
    padding: 14px 18px;
    background: #f1f5f9;
    border-bottom: 1px solid #e5e7eb;
}

.mams-admin-card-header h3 {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 800;
}

.mams-admin-card-body {
    padding: 0;
}

.mams-admin-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    align-items: start;
    padding: 16px 18px;
    border-top: 1px solid #e5e7eb;
}

.mams-admin-row:first-child {
    border-top: none;
}

.mams-admin-label {
    color: #111827;
    font-size: 15px;
    line-height: 1.45;
}

.mams-admin-help {
    margin-top: 8px;
    max-width: 440px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.55;
}

.mams-inline-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #374151;
    font-size: 14px;
}

.mams-form-actions-center {
    display: flex;
    justify-content: center;
    margin: 24px 0 0;
}

.mams-contestant-grid {
    display: grid;
}

.mams-contestant-row {
    display: grid;
    grid-template-columns: 160px 1fr 140px;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    border-top: 1px solid #e5e7eb;
}

.mams-contestant-row:first-child {
    border-top: none;
}

.mams-contestant-index {
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

.mams-page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mams-page-count {
    color: #9ca3af;
    font-weight: 400;
}

.mams-users-page {
    max-width: 1260px;
}

.mams-users-search {
    margin: 0 0 16px;
}

.mams-users-table-wrap {
    padding: 0;
    overflow: hidden;
}

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

.mams-users-table tbody tr:hover td {
    background: #f1f5f9;
}

.mams-users-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mams-users-action-btn {
    min-width: 74px;
    padding: 8px 12px;
    font-size: 13px;
}

.mams-user-empty-name {
    display: inline-block;
    min-width: 24px;
    min-height: 1em;
}

.mams-directory-page,
.mams-scan-page,
.mams-results-page {
    max-width: 1260px;
}

.mams-directory-page-wide {
    max-width: 1440px;
}

.mams-directory-search {
    margin: 0 0 16px;
}

.mams-directory-heading {
    margin: 0 0 16px;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
}

.mams-filter-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: -4px 0 16px;
}

.mams-filter-pill {
    appearance: none;
    border: none;
    background: transparent;
    color: #6b7280;
    border-radius: 8px;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.mams-filter-pill.is-active {
    background: #dbeafe;
    color: #2563eb;
    padding-left: 14px;
    padding-right: 14px;
}

.mams-directory-table-wrap {
    padding: 0;
    overflow: hidden;
}

.mams-directory-table tbody tr:nth-child(even) td,
.mams-results-table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.mams-directory-table tbody tr:hover td,
.mams-results-table tbody tr:hover td {
    background: #f1f5f9;
}

.mams-directory-table th,
.mams-directory-table td,
.mams-results-table td {
    padding: 16px 14px;
}

.mams-entity-cell,
.mams-country-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mams-entity-title {
    color: #111827;
    font-size: 15px;
    font-weight: 700;
}

.mams-country-flag-chip {
    min-width: 24px;
    height: 18px;
    padding: 0 4px;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #c73d3b;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
}

.mams-row-action-cell {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.mams-row-icon-button {
    appearance: none;
    border: none;
    background: transparent;
    color: #2563eb;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mams-row-icon-button svg {
    width: 18px;
    height: 18px;
    display: block;
}

.mams-row-action {
    appearance: none;
    border: none;
    background: transparent;
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 0;
}

.mams-row-action:hover,
.mams-results-link:hover,
.mams-results-link-button:hover {
    text-decoration: underline;
}

.mams-archive-banner {
    margin-bottom: 18px;
    border-radius: 10px;
    padding: 12px 14px;
    background: #edf8ef;
    border: 1px solid #bfe3c4;
    color: #1f5e35;
    font-size: 14px;
    line-height: 1.45;
}

.mams-form-screen {
    width: 100%;
}

.mams-form-screen-narrow {
    max-width: 920px;
    margin: 0 auto;
}

.mams-form-screen-wide {
    max-width: 1280px;
}

.mams-user-editor .mams-admin-row {
    grid-template-columns: minmax(250px, 360px) 1fr;
}

.mams-user-editor .mams-admin-help,
.mams-user-editor .mams-field-help {
    max-width: 420px;
    font-size: 14px;
    color: #55657d;
}

.mams-user-permission-list .mams-checkbox-columns {
    columns: 1 320px;
    column-gap: 36px;
}

.mams-user-permission-list .mams-checkline {
    margin-bottom: 10px;
    font-size: 15px;
}

.mams-user-static-permission {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #223047;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

.mams-form-layout {
    display: grid;
    gap: 18px;
}

.mams-field-block {
    display: grid;
    gap: 8px;
}

.mams-field-label {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.mams-required {
    color: #dc2626;
}

.mams-field-help {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.55;
}

.mams-checkbox-columns {
    columns: 2 260px;
    column-gap: 28px;
}

.mams-checkline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    break-inside: avoid;
    margin-bottom: 8px;
    color: #223047;
    font-size: 14px;
    line-height: 1.45;
}

.mams-checkline-strong {
    font-weight: 700;
}

.mams-checkbox {
    margin-top: 2px;
}

.mams-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.mams-competition-switch-card {
    overflow: hidden;
}

.mams-competition-switch-list {
    padding: 16px;
    display: grid;
    gap: 10px;
}

.mams-competition-switch-option {
    width: 100%;
    appearance: none;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    text-align: left;
    padding: 18px 16px;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.mams-competition-switch-option:hover {
    border-color: #b7d7b6;
    background: #f8fbf8;
}

.mams-competition-switch-option.is-active {
    border-color: #77c36c;
    background: #eef9ea;
    box-shadow: inset 0 0 0 1px rgba(119, 195, 108, 0.18);
}

.mams-competition-switch-title {
    color: #111827;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.mams-competition-switch-subtitle {
    margin-top: 6px;
    color: #374151;
    font-size: 14px;
}

.mams-scan-form {
    margin-bottom: 14px;
}

.mams-scan-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.mams-scan-message {
    margin: 0 0 18px;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.45;
}

.mams-scan-message-success {
    background: #dcfce7;
    color: #166534;
}

.mams-scan-message-error {
    background: #fee2e2;
    color: #991b1b;
}

.mams-scan-message-warning {
    background: #fef3c7;
    color: #92400e;
}

.mams-scan-message-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.mams-scan-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0 0 34px;
    padding: 20px 18px;
    border-radius: 10px;
    background: #f3f4f6;
}

.mams-scan-summary-label {
    color: #111827;
    font-size: 15px;
    font-weight: 800;
}

.mams-scan-summary-value {
    margin-top: 12px;
    color: #111827;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 36px;
    line-height: 1.1;
    font-weight: 800;
}

.mams-scan-summary-note {
    margin-top: 8px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.45;
}

.mams-history-barcode {
    color: #59b74f;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-weight: 700;
}

.mams-scan-history-row.is-warning .mams-history-barcode {
    color: #b45309;
}

.mams-scan-history-row.is-error .mams-history-barcode {
    color: #dc2626;
}

.mams-scan-history-row.is-info .mams-history-barcode {
    color: #2563eb;
}

.mams-results-block + .mams-results-block {
    margin-top: 32px;
}

.mams-results-country {
    color: #111827;
    font-weight: 700;
    width: 24%;
}

.mams-results-link {
    color: #59b74f;
    font-weight: 700;
    text-decoration: none;
}

.mams-results-link-button {
    appearance: none;
    border: none;
    background: transparent;
    color: #59b74f;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.mams-results-status {
    font-weight: 700;
}

.mams-results-status.is-ready {
    color: #59b74f;
}

.mams-results-status.is-pending {
    color: #111827;
}

.mams-results-status.is-muted {
    color: #6b7280;
}

.mams-results-page.mams-results-experience {
    max-width: none;
    margin: 0;
}

.mams-results-hero {
    display: none;
}

.mams-results-hero-inner {
    display: none;
}

.mams-results-hero-title {
    display: none;
}

.mams-results-hero-subtitle {
    display: none;
}

.mams-results-shell {
    max-width: 1560px;
    margin: 0 auto;
    padding: 6px 18px 20px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.mams-results-shell-flat {
    padding-top: 0;
}

.mams-results-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.mams-results-ranking-note {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #d9e5ff;
    border-radius: 12px;
    background: #eff5ff;
    color: #2d3f67;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.mams-results-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    flex: 1 1 100%;
}

.mams-results-filter {
    display: block;
}

.mams-results-filter .mams-select {
    min-height: 50px;
    border: 1px solid #ebeef5;
    border-radius: 10px;
    background: #f6f7fb;
    color: #202531;
    font-size: 18px;
    font-weight: 500;
    box-shadow: none;
}

.mams-results-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 9px 12px;
    background: #eef6ec;
    color: #1c5422;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.mams-results-actions {
    justify-content: flex-end;
    margin-bottom: 18px;
}

.mams-results-board {
    overflow: hidden;
    border-radius: 0;
    border: none;
    background: #ffffff;
}

.mams-results-entry {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 84px;
    align-items: center;
    gap: 20px;
    padding: 12px 28px 12px 10px;
    border-bottom: 1px solid #e7ebf1;
}

.mams-results-entry:nth-child(even) {
    background: #f8fafc;
}

.mams-results-entry:last-child {
    border-bottom: none;
}

.mams-results-rank {
    color: #111827;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.mams-results-entry-main {
    min-width: 0;
}

.mams-results-entry-top {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mams-results-entry-heading {
    min-width: 0;
}

.mams-results-entry-title {
    color: #111827;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.05;
}

.mams-results-entry-subtitle {
    color: #2a313d;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.05;
}

.mams-results-progress {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    margin: 8px 0 6px;
}

.mams-results-problem {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: #eceff5;
    border: 1px solid #eceff5;
    box-sizing: border-box;
}

.mams-results-problem.is-group-end {
    margin-right: 2px;
}

.mams-results-problem.is-solved {
    background: #63c55b;
    border-color: #63c55b;
}

.mams-results-problem.is-current {
    background: #ffffff;
    border-color: #63c55b;
}

.mams-results-entry-meta {
    color: #8a93a3;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.mams-results-score {
    color: #111827;
    font-size: 18px;
    font-weight: 700;
    text-align: right;
    padding-right: 8px;
}

.mams-results-entry .mams-country-flag-chip {
    min-width: 32px;
    width: 32px;
    height: 22px;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 11px;
}

@media (max-width: 900px) {
    .mams-results-page.mams-results-experience {
        margin: 0;
    }

    .mams-results-hero {
        display: none;
    }

    .mams-results-shell {
        margin-top: 0;
        padding: 10px 12px 14px;
        border-radius: 0;
    }

    .mams-results-filters {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .mams-results-entry {
        grid-template-columns: 42px minmax(0, 1fr) 46px;
        gap: 12px;
        padding: 14px 8px;
    }

    .mams-results-rank,
    .mams-results-score {
        font-size: 18px;
    }

    .mams-results-entry-title {
        font-size: 17px;
    }

    .mams-results-entry-subtitle {
        font-size: 15px;
    }
}

.mams-review-shell {
    display: grid;
    gap: 34px;
}

.mams-review-block {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.mams-review-block-header {
    padding: 14px 18px;
    background: #f1f5f9;
    border-bottom: 1px solid #e5e7eb;
}

.mams-review-block-header-spread {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.mams-review-block-title {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 800;
}

.mams-review-block-body {
    padding: 18px;
}

.mams-review-copy {
    margin: 0;
    color: #111827;
    font-size: 15px;
    line-height: 1.45;
}

.mams-review-venue-form {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
}

.mams-review-venue-form .mams-select {
    flex: 1;
}

.mams-review-scan-row {
    padding: 16px 18px;
    border-top: 1px solid #e5e7eb;
}

.mams-review-scan-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mams-review-scan-form .mams-input {
    flex: 1;
}

.mams-review-inline-message {
    margin: 0 18px 18px;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.45;
}

.mams-review-inline-message-success {
    background: #dcfce7;
    color: #166534;
}

.mams-review-inline-message-error {
    background: #fee2e2;
    color: #991b1b;
}

.mams-review-inline-message-warning {
    background: #fef3c7;
    color: #92400e;
}

.mams-review-inline-message-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.mams-review-status-banner {
    margin-bottom: 18px;
    border-radius: 8px;
    padding: 16px 18px;
    font-size: 15px;
    line-height: 1.45;
}

.mams-review-status-banner.is-closed {
    background: #dcfce7;
    color: #166534;
}

.mams-review-status-banner.is-ready {
    background: #fef3c7;
    color: #b45309;
}

.mams-review-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.mams-review-team-card {
    border: 1px solid #ef4444;
    background: #fee2e2;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    min-height: 140px;
}

.mams-review-team-card.is-reviewed {
    border-color: #22c55e;
    background: #dcfce7;
}

.mams-review-team-code {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111827;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 19px;
    font-weight: 800;
}

.mams-review-team-status-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: #fff;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
}

.mams-review-team-status-icon.is-reviewed {
    background: #16a34a;
}

.mams-review-team-school {
    margin-top: 6px;
    color: #374151;
    font-size: 12px;
    line-height: 1.4;
    text-transform: uppercase;
    font-weight: 700;
}

.mams-review-team-hint {
    margin-top: 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.mams-review-team-actions {
    display: flex;
    gap: 8px;
    flex-direction: column;
    align-items: flex-start;
}

.mams-review-status-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-start;
}

.mams-review-link-action,
.mams-review-link-banner {
    appearance: none;
    border: none;
    background: transparent;
    color: #2563eb;
    padding: 0;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    text-align: left;
}

.mams-review-link-action:hover,
.mams-review-link-banner:hover {
    color: #1d4ed8;
}

.mams-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.mams-countdown {
    font-size: 52px;
    font-weight: 900;
    color: #0e6a40;
    letter-spacing: .02em;
}

.mams-ranking-row {
    display: grid;
    grid-template-columns: 56px 1fr 130px;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #edf1f4;
}

.mams-ranking-position {
    font-size: 28px;
    font-weight: 900;
    color: #223047;
}

.mams-ranking-score {
    justify-self: end;
    font-size: 34px;
    font-weight: 900;
    color: #188a49;
}

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

.mams-review-card {
    border-radius: 18px;
    padding: 16px;
    border: 1px solid #ecf1f4;
    background: #fff;
}

.mams-review-card.is-reviewed {
    background: #ebf9ef;
    border-color: #b9e8c7;
}

.mams-review-card.is-unreviewed {
    background: #fff3f3;
    border-color: #f0c8cb;
}

.mams-code {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
    word-break: break-all;
    background: #f4f7f9;
    border-radius: 12px;
    padding: 10px 12px;
}

.mams-small {
    font-size: 13px;
    color: #758198;
}

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

    .mams-dashboard-top-grid,
    .mams-dashboard-venue-grid,
    .mams-review-cards-grid,
    .mams-grid.mams-grid-3,
    .mams-kpi-row,
    .mams-review-grid,
    .mams-admin-grid,
    .mams-booklet-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .mams-sidebar {
        position: relative;
        height: auto;
    }

    .mams-main {
        padding: 20px;
    }

    .mams-toolbar,
    .mams-page-header,
    .mams-modal-header {
        flex-direction: column;
    }

    .mams-dashboard-top-grid,
    .mams-dashboard-venue-grid,
    .mams-filter-grid,
    .mams-admin-grid,
    .mams-user-editor .mams-admin-row,
    .mams-admin-row,
    .mams-contestant-row,
    .mams-review-cards-grid,
    .mams-modal-grid,
    .mams-grid.mams-grid-2,
    .mams-grid.mams-grid-3,
    .mams-form-grid,
    .mams-form-grid-3,
    .mams-kpi-row,
    .mams-review-grid,
    .mams-booklets-grid,
    .mams-booklet-stats {
        grid-template-columns: 1fr;
    }

    .mams-hello {
        font-size: 42px;
    }

    .mams-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .mams-review-block-header-spread,
    .mams-review-venue-form,
    .mams-review-scan-form,
    .mams-page-actions,
    .mams-scan-actions,
    .mams-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .mams-scan-summary {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mams-checkbox-columns {
        columns: 1;
    }

    .mams-user-permission-list .mams-checkbox-columns {
        columns: 1;
    }
}

@media (max-width: 640px) {
    .mams-login-card {
        padding: 24px 20px;
    }

    .mams-login-brandline {
        font-size: 24px;
    }

    .mams-login-flag {
        font-size: 40px;
    }

    .mams-brand-title-text {
        font-size: 24px;
    }

    .mams-brand-title .flag {
        font-size: 28px;
    }

    .mams-main {
        padding: 16px;
    }

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

    .mams-countdown {
        font-size: 40px;
    }

    .mams-scan-summary-value {
        font-size: 28px;
    }

    .mams-modal {
        padding: 12px;
    }

    .mams-modal-panel {
        padding: 18px;
    }

    .mams-phone-scanner-reader,
    .mams-phone-scanner-placeholder {
        min-height: 280px;
    }

    .mams-hello {
        font-size: 30px;
    }

    .mams-list-header,
    .mams-list-body,
    .mams-filter-bar,
    .mams-admin-card-header,
    .mams-admin-row,
    .mams-contestant-row {
        padding-left: 14px;
        padding-right: 14px;
    }
}
