:root {
    --eemaa-green: #174c3c;
    --eemaa-green-dark: #10382d;
    --eemaa-green-soft: #eef6f3;
    --eemaa-gold: #d7a63c;
    --eemaa-text: #24312d;
    --eemaa-muted: #6b7773;
    --eemaa-border: #dce4e1;
    --eemaa-bg: #f3f6f5;
    --eemaa-white: #ffffff;
    --eemaa-danger: #a33434;
    --eemaa-danger-bg: #fff0f0;
    --eemaa-success: #1e6a50;
    --eemaa-success-bg: #eaf7f1;
    --eemaa-warning: #805e08;
    --eemaa-warning-bg: #fff5d9;
    --eemaa-shadow: 0 12px 35px rgba(24, 55, 46, .09);
}

html { background: var(--eemaa-bg); }
body.eemaa-dashboard-standalone { margin: 0; background: var(--eemaa-bg); color: var(--eemaa-text); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.5; }
body.eemaa-dashboard-standalone #wpadminbar { display: none !important; }
body.eemaa-dashboard-standalone.admin-bar { margin-top: 0 !important; }
.eemaa-dashboard-app, .eemaa-dashboard-app * { box-sizing: border-box; }
.eemaa-dashboard-app a { color: var(--eemaa-green); }
.eemaa-dashboard-app button, .eemaa-dashboard-app input, .eemaa-dashboard-app select, .eemaa-dashboard-app textarea { font: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.eemaa-app-header { position: sticky; top: 0; z-index: 50; min-height: 76px; padding: 12px clamp(18px, 4vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 18px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--eemaa-border); backdrop-filter: blur(12px); }
.eemaa-app-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--eemaa-text) !important; text-decoration: none; }
.eemaa-app-logo, .eemaa-login-brand { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--eemaa-green); color: #fff; font-size: 24px; font-weight: 800; box-shadow: 0 8px 18px rgba(23, 76, 60, .22); }
.eemaa-app-brand strong, .eemaa-app-brand small { display: block; }
.eemaa-app-brand strong { font-size: 18px; letter-spacing: .04em; }
.eemaa-app-brand small { color: var(--eemaa-muted); font-size: 12px; }
.eemaa-user-menu { display: flex; align-items: center; gap: 10px; }
.eemaa-user-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--eemaa-green-soft); color: var(--eemaa-green); font-weight: 800; }
.eemaa-user-name strong, .eemaa-user-name small { display: block; }
.eemaa-user-name strong { font-size: 13px; }
.eemaa-user-name small { color: var(--eemaa-muted); font-size: 11px; }

.eemaa-dashboard-main { min-height: calc(100vh - 132px); padding: 34px clamp(14px, 3vw, 44px) 48px; }
.eemaa-dashboard-container { width: min(1480px, 100%); margin: 0 auto; }
.eemaa-page-heading, .eemaa-detail-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 26px; }
.eemaa-page-heading h1, .eemaa-detail-hero h1 { margin: 2px 0 6px; color: var(--eemaa-green-dark); font-size: clamp(28px, 4vw, 42px); line-height: 1.12; }
.eemaa-page-heading p, .eemaa-detail-hero p { margin: 0; color: var(--eemaa-muted); }
.eemaa-eyebrow { margin: 0 0 5px !important; color: var(--eemaa-gold) !important; font-size: 12px !important; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.eemaa-btn { appearance: none; display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--eemaa-green); border-radius: 9px; background: var(--eemaa-green); color: #fff !important; text-decoration: none; font-size: 13px; font-weight: 700; line-height: 1.2; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.eemaa-btn:hover { transform: translateY(-1px);background: #ddd; box-shadow: 0 7px 15px rgba(23,76,60,.16); }
.eemaa-btn-secondary { background: #fff; color: var(--eemaa-green) !important; border-color: var(--eemaa-border); }
.eemaa-btn-secondary:hover { background: var(--eemaa-green-soft); }
.eemaa-btn-ghost { min-height: 38px; padding: 8px 13px; background: transparent; color: var(--eemaa-green) !important; border-color: var(--eemaa-border); }
.eemaa-btn-email { background: #315da8; border-color: #315da8; }
.eemaa-btn-email:hover { background: #284d8c; }
.eemaa-btn-small { min-height: 34px; padding: 7px 11px; font-size: 12px; }
.eemaa-btn-block { width: 100%; }

.eemaa-alert { margin: 0 0 22px; padding: 14px 17px; border: 1px solid; border-radius: 10px; font-size: 14px; font-weight: 600; }
.eemaa-alert-success { color: var(--eemaa-success); background: var(--eemaa-success-bg); border-color: #bce0d1; }
.eemaa-alert-error { color: var(--eemaa-danger); background: var(--eemaa-danger-bg); border-color: #efc4c4; }

.eemaa-panel { margin: 0 0 22px; padding: clamp(18px, 2.4vw, 28px); background: #fff; border: 1px solid var(--eemaa-border); border-radius: 16px; box-shadow: var(--eemaa-shadow); }
.eemaa-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.eemaa-panel-heading h2 { margin: 0; color: var(--eemaa-green-dark); font-size: 20px; }
.eemaa-panel-heading p { margin: 4px 0 0; color: var(--eemaa-muted); font-size: 13px; }

.eemaa-stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.eemaa-stat-card { position: relative; overflow: hidden; min-height: 122px; padding: 20px; background: #fff; border: 1px solid var(--eemaa-border); border-radius: 15px; box-shadow: 0 8px 24px rgba(24,55,46,.06); }
.eemaa-stat-card::after { content: ""; position: absolute; right: -22px; bottom: -28px; width: 78px; height: 78px; border-radius: 50%; background: var(--eemaa-green-soft); }
.eemaa-stat-card span, .eemaa-stat-card strong { position: relative; z-index: 1; display: block; }
.eemaa-stat-card span { color: var(--eemaa-muted); font-size: 13px; font-weight: 700; }
.eemaa-stat-card strong { margin-top: 12px; color: var(--eemaa-green-dark); font-size: 32px; line-height: 1; }

.eemaa-filter-form { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(170px, 1fr) minmax(145px, .8fr) minmax(145px, .8fr) auto; align-items: end; gap: 14px; }
.eemaa-form-control label { display: block; margin: 0 0 7px; color: var(--eemaa-text); font-size: 12px; font-weight: 750; }
.eemaa-form-control input, .eemaa-form-control select, .eemaa-form-control textarea { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--eemaa-text); background: #fff; border: 1px solid #ccd8d4; border-radius: 9px; outline: none; }
.eemaa-form-control textarea { resize: vertical; }
.eemaa-form-control input:focus, .eemaa-form-control select:focus, .eemaa-form-control textarea:focus { border-color: var(--eemaa-green); box-shadow: 0 0 0 3px rgba(23,76,60,.11); }
.eemaa-filter-actions { display: flex; gap: 8px; }

.eemaa-table-panel { padding: 0; overflow: hidden; }
.eemaa-table-panel > .eemaa-panel-heading { padding: 24px 26px 0; }
.eemaa-table-scroll { overflow-x: auto; }
.eemaa-applications-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.eemaa-applications-table th { padding: 12px 16px; color: #53605c; background: #f7f9f8; border-top: 1px solid var(--eemaa-border); border-bottom: 1px solid var(--eemaa-border); font-size: 11px; letter-spacing: .045em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.eemaa-applications-table td { padding: 15px 16px; border-bottom: 1px solid #e7ecea; vertical-align: middle; }
.eemaa-applications-table tbody tr:hover { background: #fbfcfc; }
.eemaa-applications-table td strong, .eemaa-applications-table td span, .eemaa-applications-table td a { display: block; }
.eemaa-applications-table td span { margin-top: 3px; color: var(--eemaa-muted); font-size: 12px; }
.eemaa-applications-table td a { overflow-wrap: anywhere; }
.eemaa-table-action { text-align: center;}
.eemaa-attachment-count { display: inline-flex !important; width: max-content; padding: 5px 9px; border-radius: 999px; background: var(--eemaa-green-soft); color: var(--eemaa-green) !important; font-weight: 700; }

.eemaa-badge { display: inline-flex !important; width: max-content; align-items: center; padding: 5px 10px; border-radius: 999px; font-size: 11px !important; font-weight: 800; white-space: nowrap; }
.eemaa-badge-large { padding: 9px 14px; font-size: 13px !important; }
.eemaa-badge.is-success { color: var(--eemaa-success); background: var(--eemaa-success-bg); }
.eemaa-badge.is-danger { color: var(--eemaa-danger); background: var(--eemaa-danger-bg); }
.eemaa-badge.is-warning { color: var(--eemaa-warning); background: var(--eemaa-warning-bg); }
.eemaa-badge.is-neutral { color: #56615e; background: #edf1f0; }

.eemaa-pagination { padding: 20px 24px; }
.eemaa-pagination ul { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.eemaa-pagination a, .eemaa-pagination span { display: grid; min-width: 36px; height: 36px; place-items: center; padding: 0 9px; border: 1px solid var(--eemaa-border); border-radius: 8px; background: #fff; text-decoration: none; font-size: 12px; font-weight: 700; }
.eemaa-pagination .current { color: #fff; background: var(--eemaa-green); border-color: var(--eemaa-green); }

.eemaa-detail-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.eemaa-detail-hero { align-items: center; padding: 25px 28px; background: linear-gradient(135deg, var(--eemaa-green-dark), var(--eemaa-green)); border-radius: 17px; box-shadow: var(--eemaa-shadow); }
.eemaa-detail-hero h1, .eemaa-detail-hero p { color: #fff; }
.eemaa-detail-hero p { opacity: .78; }
.eemaa-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 22px; }
.eemaa-summary-card { min-width: 0; padding: 17px 18px; background: #fff; border: 1px solid var(--eemaa-border); border-radius: 13px; }
.eemaa-summary-card > span, .eemaa-summary-card > strong { display: block; }
.eemaa-summary-card > span { margin-bottom: 7px; color: var(--eemaa-muted); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.eemaa-summary-card > strong { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.eemaa-detail-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(315px, .72fr); gap: 22px; align-items: start; }
.eemaa-detail-sidebar { position: sticky; top: 98px; }

.eemaa-detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--eemaa-border); border-left: 1px solid var(--eemaa-border); }
.eemaa-detail-list > div { min-width: 0; padding: 14px 15px; border-right: 1px solid var(--eemaa-border); border-bottom: 1px solid var(--eemaa-border); }
.eemaa-detail-list dt { margin: 0 0 5px; color: var(--eemaa-muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.eemaa-detail-list dd { margin: 0; overflow-wrap: anywhere; font-size: 14px; }
.eemaa-detail-list ul { margin: 0; padding-left: 18px; }
.eemaa-empty { color: #929c99; }
.eemaa-inline-empty { padding: 17px; color: var(--eemaa-muted); background: #f8faf9; border: 1px dashed #cad6d2; border-radius: 10px; text-align: center; }

.eemaa-count-pill { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: var(--eemaa-green-soft); color: var(--eemaa-green); font-size: 12px; font-weight: 800; }
.eemaa-file-grid { display: grid; gap: 11px; }
.eemaa-file-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--eemaa-border); border-radius: 12px; }
.eemaa-file-icon { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 11px; background: var(--eemaa-green-soft); color: var(--eemaa-green); font-size: 10px; font-weight: 900; }
.eemaa-file-info { min-width: 0; }
.eemaa-file-info span, .eemaa-file-info strong, .eemaa-file-info small { display: block; }
.eemaa-file-info span { color: var(--eemaa-muted); font-size: 11px; font-weight: 700; }
.eemaa-file-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.eemaa-file-info small { margin-top: 2px; color: var(--eemaa-muted); font-size: 11px; }
.eemaa-file-actions { display: flex; gap: 7px; }
.eemaa-file-missing { color: var(--eemaa-danger); font-size: 12px; font-weight: 700; }

.eemaa-action-panel form { margin: 0; }
.eemaa-action-description { margin: -6px 0 18px; color: var(--eemaa-muted); font-size: 13px; }
.eemaa-status-options { display: grid; gap: 9px; margin-bottom: 18px; }
.eemaa-status-option { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--eemaa-border); border-radius: 11px; cursor: pointer; }
.eemaa-status-option:hover { background: #fafcfc; }
.eemaa-status-option input { margin-top: 3px; accent-color: var(--eemaa-green); }
.eemaa-status-option strong, .eemaa-status-option small { display: block; }
.eemaa-status-option strong { font-size: 13px; }
.eemaa-status-option small { margin-top: 2px; color: var(--eemaa-muted); font-size: 11px; }
.eemaa-status-option:has(input:checked) { border-color: var(--eemaa-green); box-shadow: 0 0 0 2px rgba(23,76,60,.08); }
.eemaa-action-panel .eemaa-form-control { margin: 0 0 15px; }
.eemaa-action-meta { margin: 13px 0 0; color: var(--eemaa-muted); font-size: 11px; text-align: center; }
.eemaa-recipient-box { margin: 0 0 14px; padding: 12px; background: var(--eemaa-green-soft); border-radius: 10px; overflow-wrap: anywhere; }
.eemaa-recipient-box span, .eemaa-recipient-box strong { display: block; }
.eemaa-recipient-box span { color: var(--eemaa-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.eemaa-recipient-box strong { margin-top: 3px; font-size: 13px; }
.eemaa-email-history { margin-top: 16px; padding: 13px; border-radius: 10px; background: #f7f9f8; border: 1px solid var(--eemaa-border); }
.eemaa-email-history strong, .eemaa-email-history span, .eemaa-email-history small { display: block; }
.eemaa-email-history strong { color: var(--eemaa-success); font-size: 12px; }
.eemaa-email-history span, .eemaa-email-history small { margin-top: 3px; color: var(--eemaa-muted); font-size: 11px; }

.eemaa-empty-state { padding: 45px 24px; text-align: center; }
.eemaa-empty-state h1, .eemaa-empty-state h3 { color: var(--eemaa-green-dark); }
.eemaa-empty-state p { color: var(--eemaa-muted); }
.eemaa-app-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px clamp(18px, 4vw, 56px); color: #dbe9e4; background: var(--eemaa-green-dark); font-size: 11px; }

.eemaa-login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top left, rgba(215,166,60,.18), transparent 38%), linear-gradient(135deg, #0d2f26, #174c3c 58%, #24634f); }
.eemaa-login-card { width: min(460px, 100%); padding: clamp(26px, 5vw, 42px); background: #fff; border-radius: 20px; box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.eemaa-login-brand { margin-bottom: 24px; }
.eemaa-login-card h1 { margin: 3px 0 10px; color: var(--eemaa-green-dark); font-size: clamp(28px, 7vw, 38px); line-height: 1.12; }
.eemaa-login-intro { margin: 0 0 24px; color: var(--eemaa-muted); font-size: 14px; }
.eemaa-login-form .eemaa-form-control { margin-bottom: 15px; }
.eemaa-check-row { display: flex; align-items: center; gap: 8px; margin: 2px 0 18px; color: var(--eemaa-muted); font-size: 12px; }
.eemaa-check-row input { accent-color: var(--eemaa-green); }
.eemaa-forgot-link { display: block; margin-top: 17px; text-align: center; font-size: 12px; font-weight: 700; }
.eemaa-login-security { margin: 22px 0 0; padding-top: 18px; color: #87918e; border-top: 1px solid var(--eemaa-border); font-size: 11px; text-align: center; }

@media (max-width: 1180px) {
    .eemaa-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .eemaa-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eemaa-filter-search { grid-column: 1 / -1; }
    .eemaa-filter-actions { align-self: end; }
    .eemaa-detail-layout { grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); }
}

@media (max-width: 900px) {
    .eemaa-user-name { display: none; }
    .eemaa-detail-layout { grid-template-columns: 1fr; }
    .eemaa-detail-sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
    .eemaa-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eemaa-applications-table thead { display: none; }
    .eemaa-applications-table, .eemaa-applications-table tbody, .eemaa-applications-table tr, .eemaa-applications-table td { display: block; width: 100%; }
    .eemaa-applications-table tr { margin: 0 14px 14px; width: calc(100% - 28px); padding: 12px 14px; border: 1px solid var(--eemaa-border); border-radius: 12px; background: #fff; }
    .eemaa-applications-table td { display: grid; grid-template-columns: minmax(105px, 34%) minmax(0,1fr); gap: 12px; padding: 9px 0; border: 0; border-bottom: 1px dashed #e0e7e4; text-align: left; }
    .eemaa-applications-table td:last-child { border-bottom: 0; }
    .eemaa-applications-table td::before { content: attr(data-label); color: var(--eemaa-muted); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
    .eemaa-table-action { display: block !important; }
    .eemaa-table-action::before { display: none; }
    .eemaa-table-action .eemaa-btn { width: 100%; }
}

@media (max-width: 680px) {
    .eemaa-app-header { position: static; padding: 11px 14px; }
    .eemaa-app-brand small, .eemaa-user-avatar { display: none; }
    .eemaa-app-logo { width: 40px; height: 40px; border-radius: 11px; }
    .eemaa-dashboard-main { padding: 22px 11px 34px; }
    .eemaa-page-heading, .eemaa-detail-hero { display: block; }
    .eemaa-detail-hero .eemaa-badge { margin-top: 17px; }
    .eemaa-stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
    .eemaa-stat-card { min-height: 105px; padding: 16px; }
    .eemaa-stat-card strong { font-size: 27px; }
    .eemaa-filter-form { grid-template-columns: 1fr; }
    .eemaa-filter-search { grid-column: auto; }
    .eemaa-filter-actions, .eemaa-filter-actions .eemaa-btn { width: 100%; }
    .eemaa-detail-toolbar { align-items: stretch; }
    .eemaa-detail-toolbar, .eemaa-detail-toolbar > div { display: grid; grid-template-columns: 1fr; }
    .eemaa-summary-grid { grid-template-columns: 1fr; }
    .eemaa-detail-sidebar { grid-template-columns: 1fr; }
    .eemaa-detail-list { grid-template-columns: 1fr; }
    .eemaa-file-card { grid-template-columns: auto minmax(0,1fr); }
    .eemaa-file-actions { grid-column: 1 / -1; }
    .eemaa-file-actions .eemaa-btn { flex: 1; }
    .eemaa-app-footer { display: block; text-align: center; }
    .eemaa-app-footer span { display: block; margin: 3px 0; }
}

@media print {
    body.eemaa-dashboard-standalone { background: #fff; }
    .eemaa-app-header, .eemaa-app-footer, .eemaa-detail-toolbar, .eemaa-detail-sidebar, .eemaa-alert { display: none !important; }
    .eemaa-dashboard-main { padding: 0; }
    .eemaa-dashboard-container { width: 100%; }
    .eemaa-detail-hero { color: #000; background: #fff; border: 2px solid #174c3c; box-shadow: none; }
    .eemaa-detail-hero h1, .eemaa-detail-hero p { color: #000; }
    .eemaa-summary-grid { grid-template-columns: repeat(4,1fr); }
    .eemaa-panel, .eemaa-summary-card { break-inside: avoid; box-shadow: none; }
    .eemaa-detail-layout { display: block; }
}

/* Shared navigation across EEMAA administration dashboards. */
.eemaa-dashboard-nav { display:flex; align-items:center; gap:6px; margin:0 auto; }
.eemaa-dashboard-nav a { padding:8px 11px; border-radius:8px; color:#475569; text-decoration:none; font-size:12px; font-weight:800; white-space:nowrap; }
.eemaa-dashboard-nav a:hover, .eemaa-dashboard-nav a.is-active { color:#174c3c; background:#eef5f2; }
@media (max-width:950px) { .eemaa-dashboard-nav { order:3; width:100%; justify-content:center; } .eemaa-app-header { flex-wrap:wrap; } }
@media (max-width:620px) { .eemaa-dashboard-nav { overflow-x:auto; justify-content:flex-start; padding-bottom:2px; } }
@media print { .eemaa-dashboard-nav { display:none !important; } }


/* Existing / pre-online member onboarding (v1.4). */
.eemaa-legacy-tools-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
    margin:0 0 22px;
}
.eemaa-legacy-tool { padding:22px; }
.eemaa-legacy-admin-form { margin:0; }
.eemaa-legacy-fields {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px 14px;
}
.eemaa-legacy-admin-form .eemaa-form-control { margin:0 0 12px; }
.eemaa-legacy-admin-form .eemaa-form-control small {
    display:block;
    margin-top:5px;
    color:var(--eemaa-muted);
    font-size:10px;
    line-height:1.4;
}
.eemaa-legacy-admin-form input[type="file"] {
    width:100%;
    padding:12px;
    border:1px dashed var(--eemaa-border);
    border-radius:10px;
    background:#f8faf9;
}
.eemaa-legacy-note {
    margin-top:16px;
    padding:13px 14px;
    border:1px solid #eadcb8;
    border-radius:10px;
    background:#fffaf0;
    color:#66552f;
    font-size:12px;
    line-height:1.55;
}
@media (max-width:980px) {
    .eemaa-legacy-tools-grid { grid-template-columns:1fr; }
}
@media (max-width:680px) {
    .eemaa-legacy-fields { grid-template-columns:1fr; }
}

/* v1.5 settings + membership lifecycle */
.eemaa-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.eemaa-settings-grid>.eemaa-panel{padding:22px}.eemaa-settings-save{display:flex;justify-content:flex-end;margin-top:18px}.eemaa-status-expired{color:#9a3412!important;background:#ffedd5!important}.eemaa-membership-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.eemaa-membership-meta .eemaa-recipient-box{margin:0}.eemaa-renewal-callout{padding:18px;border:1px solid #eadcb8;border-radius:12px;background:#fffaf0}.eemaa-renewal-callout h3{margin:0 0 7px;color:#66552f}.eemaa-renewal-callout p{margin:0 0 12px;color:#6b5c35}.eemaa-payment-code{max-width:220px;overflow-wrap:anywhere;font-size:10px}@media(max-width:900px){.eemaa-settings-grid{grid-template-columns:1fr}.eemaa-membership-meta{grid-template-columns:1fr}}
