:root {
    --ma-navy: #07101c;
    --ma-navy-2: #0c1c2e;
    --ma-gold: #d4af37;
    --ma-gold-soft: #e8d5a3;
    --ma-ink: #142334;
    --ma-muted: #6b7280;
    --ma-line: rgba(212, 175, 55, 0.28);
    --ma-side: 248px;
    --ma-side-collapsed: 76px;
    --ma-font: "Outfit", "Segoe UI", sans-serif;
    --ma-serif: "Cormorant Garamond", Palatino, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; }

body.ma-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--ma-font);
    background: #eef2f5;
    color: var(--ma-ink);
}

.ma-shell {
    display: flex;
    min-height: 100vh;
}

.ma-sidebar {
    width: var(--ma-side);
    flex: 0 0 var(--ma-side);
    background: linear-gradient(180deg, #0c1c2e 0%, #07101c 100%);
    color: #f4ead6;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--ma-line);
    transition: width 0.22s ease, flex-basis 0.22s ease, transform 0.22s ease;
    z-index: 40;
}

.ma-shell.is-collapsed .ma-sidebar {
    width: var(--ma-side-collapsed);
    flex-basis: var(--ma-side-collapsed);
}

.ma-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 16px 16px;
    min-height: 72px;
}

.ma-brand-mark {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid var(--ma-line);
    color: var(--ma-gold);
    font-family: var(--ma-serif);
    font-weight: 700;
    font-size: 15px;
}

.ma-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.ma-brand-text strong {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.ma-brand-text em {
    font-style: normal;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ma-gold-soft);
}

.ma-shell.is-collapsed .ma-brand-text,
.ma-shell.is-collapsed .ma-nav-label {
    display: none;
}

.ma-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    flex: 1;
}

.ma-nav-item,
.ma-collapse {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    background: transparent;
    border: 0;
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.ma-nav-item:hover,
.ma-collapse:hover {
    background: rgba(232, 213, 163, 0.08);
}

.ma-nav-item.is-on {
    background: rgba(212, 175, 55, 0.16);
    color: var(--ma-gold-soft);
}

.ma-nav-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    color: var(--ma-gold);
}

.ma-nav-label {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
}

.ma-sidebar-foot {
    padding: 10px;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.ma-logout { color: #f0d9a8; }

.ma-collapse .ma-chevron-out { display: none; }
.ma-shell.is-collapsed .ma-collapse .ma-chevron-in { display: none; }
.ma-shell.is-collapsed .ma-collapse .ma-chevron-out { display: block; }
.ma-shell.is-collapsed .ma-nav-item,
.ma-shell.is-collapsed .ma-collapse {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.ma-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ma-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    min-height: 72px;
}

.ma-top-titles { flex: 1; min-width: 0; }
.ma-top-titles h1 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 650;
    line-height: 1.2;
}
.ma-top-titles p {
    margin: 4px 0 0;
    color: var(--ma-muted);
    font-size: 13px;
}

.ma-top-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.ma-menu {
    display: none;
    background: #f3f4f6;
    border: 0;
    border-radius: 10px;
    width: 42px;
    height: 42px;
    place-items: center;
    cursor: pointer;
}

.ma-content {
    padding: 22px;
    flex: 1;
}

.ma-content .admin-main {
    max-width: none;
    margin: 0;
    padding: 0;
}

.ma-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.ma-stat, .ma-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(7, 16, 28, 0.04);
}

.ma-stat { padding: 18px 20px; }
.ma-stat span { display: block; color: var(--ma-muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.ma-stat strong { display: block; margin-top: 8px; font-size: 28px; font-weight: 650; }
.ma-stat em { font-style: normal; color: #374151; font-size: 15px; font-weight: 500; }

.ma-panel { padding: 20px 22px 22px; margin-bottom: 18px; }
.ma-panel h2 { margin: 0 0 6px; font-size: 18px; }
.ma-panel p.ma-help { margin: 0 0 16px; color: var(--ma-muted); font-size: 14px; }

.ma-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}
.ma-form-grid .full { grid-column: 1 / -1; }

.ma-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}
.ma-field input,
.ma-field textarea,
.ma-field select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}
.ma-field textarea { min-height: 90px; resize: vertical; }

.ma-event-preview {
    display: block;
    width: min(220px, 100%);
    max-height: 180px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-top: 10px;
}
.ma-event-preview[hidden] { display: none; }
.ma-event-thumb {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 8px;
    vertical-align: middle;
    margin-right: 8px;
    border: 1px solid #e5e7eb;
}

.ma-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.ma-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 10px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.ma-btn-gold {
    background: var(--ma-gold);
    color: #07101c;
}
.ma-btn-navy {
    background: #142334;
    color: #f4ead6;
}
.ma-btn-ghost {
    background: #f3f4f6;
    color: #111827;
}
.ma-btn-danger {
    background: #fee2e2;
    color: #991b1b;
}

.ma-alert {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 14px;
}
.ma-alert-ok { background: #ecfdf3; color: #166534; }
.ma-alert-error { background: #fef2f2; color: #991b1b; }

.ma-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.ma-table th,
.ma-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid #eef0f3;
    vertical-align: top;
}
.ma-table th { color: var(--ma-muted); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.ma-empty { color: var(--ma-muted); padding: 18px 0; }

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

.ma-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 16, 28, 0.45);
    z-index: 35;
}

body.ma-login-body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    font-family: Outfit, system-ui, sans-serif;
    background: radial-gradient(1200px 600px at 50% -10%, #16324f 0%, #07101c 55%, #050910 100%);
    color: #f4ead6;
    padding: 32px 18px;
    color-scheme: dark;
}

.ma-login-wrap {
    width: min(420px, 100%);
    text-align: center;
}

.ma-login-card {
    text-align: left;
    border: 1px solid rgba(215, 181, 106, 0.28);
    background: rgba(7, 16, 28, 0.55);
    border-radius: 18px;
    padding: 22px 20px;
}

.ma-login-kicker {
    margin: 0 0 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 12px;
    color: #d7b56a;
}

.ma-login-wrap h1 {
    font-family: "Cormorant Garamond", Palatino, serif;
    font-size: clamp(32px, 7vw, 42px);
    margin: 0 0 8px;
    line-height: 1.05;
    color: #f4ead6;
}

.ma-login-tag {
    margin: 0 0 22px;
    color: #c9c0ae;
    font-weight: 300;
}

.ma-login-form label {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
    color: #e8d5a3;
}

.ma-pass-wrap { position: relative; margin-bottom: 16px; }
.ma-pass-wrap input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(215, 181, 106, 0.28);
    background: rgba(7, 16, 28, 0.85);
    color: #f4ead6;
    padding: 12px 44px 12px 12px;
    font: inherit;
}
.ma-pass-wrap input:focus {
    outline: none;
    border-color: #d7b56a;
    background: rgba(22, 50, 79, 0.7);
}
.ma-pass-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: #e8d5a3;
    cursor: pointer;
}

.ma-login-form .ma-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #e8d5a3;
    border: 1px solid rgba(215, 181, 106, 0.45);
    border-radius: 12px;
}
.ma-login-form .ma-btn:hover {
    border-color: #d7b56a;
    background: rgba(22, 50, 79, 0.7);
}

body.ma-login-body .ma-alert-error {
    background: rgba(22, 50, 79, 0.7);
    border: 1px solid rgba(215, 181, 106, 0.35);
    color: #e8d5a3;
}

.ma-login-back { text-align: center; margin: 18px 0 0; }
.ma-login-back a { color: #d7b56a; text-decoration: none; font-size: 13px; }

@media (max-width: 899px) {
    .ma-menu { display: grid; }
    .ma-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        height: 100%;
        transform: translateX(-105%);
        width: min(280px, 86vw);
        flex-basis: auto;
        box-shadow: 16px 0 40px rgba(0, 0, 0, 0.28);
    }
    .ma-shell.is-collapsed .ma-sidebar {
        width: min(280px, 86vw);
    }
    .ma-shell.is-collapsed .ma-brand-text,
    .ma-shell.is-collapsed .ma-nav-label {
        display: flex;
    }
    .ma-shell.is-collapsed .ma-brand-text { flex-direction: column; }
    .ma-shell.is-nav-open .ma-sidebar { transform: translateX(0); }
    .ma-shell.is-nav-open .ma-backdrop { display: block; }
    .ma-form-grid { grid-template-columns: 1fr; }
}

@media (min-width: 900px) {
    html,
    body.ma-body {
        height: 100%;
        overflow: hidden;
    }
    .ma-shell {
        height: 100%;
        min-height: 100%;
        overflow: hidden;
    }
    .ma-sidebar {
        height: 100%;
        overflow: hidden;
        position: sticky;
        top: 0;
    }
    .ma-main {
        min-height: 0;
        height: 100%;
        overflow: auto;
    }
    .ma-shell.is-nav-open .ma-backdrop { display: none; }
}

.oos-table-wrap {
    margin-top: 18px;
    overflow-x: auto;
}
.oos-table {
    width: 100%;
    border-collapse: collapse;
}
.oos-table th,
.oos-table td {
    text-align: left;
    padding: 6px 6px 6px 0;
    vertical-align: middle;
}
.oos-table th {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ma-muted);
}
.oos-col-time { width: 18%; }
.oos-col-name { width: 26%; }
.oos-col-tools { width: 170px; }
.oos-suggest-list {
    position: fixed;
    z-index: 80;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #07101c;
    color: #f4ead6;
    border: 1px solid #d7b56a;
    border-radius: 10px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    max-height: 240px;
    overflow-y: auto;
}
.oos-suggest-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
}
.oos-suggest-item strong {
    font-weight: 600;
    color: #f4ead6;
}
.oos-suggest-item .oos-suggest-sub {
    font-size: 12px;
    color: #e8d5a3;
}
.oos-suggest-item:hover,
.oos-suggest-item.is-on {
    background: #16324f;
}
.oos-suggest-item.is-on strong {
    color: #e8d5a3;
}
.oos-table input[type="text"] {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 10px;
    font: inherit;
}
.oos-table tr.is-indent td:nth-child(2) input {
    margin-left: 22px;
    width: calc(100% - 22px);
}
.oos-tools {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.oos-indent-lab { font-size: 12px; margin: 0 4px 0 0; }
.oos-tools .ma-btn { padding: 6px 8px; }

.oos-print-only { display: none; }

body.oos-print-page {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(900px 420px at 50% -8%, #16324f 0%, transparent 58%),
        linear-gradient(180deg, #07101c 0%, #050910 100%);
    font-family: Outfit, "Segoe UI", sans-serif;
    color: #142334;
    padding: 48px 40px 72px;
}

.oos-print-toolbar {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 12px 8px 18px;
}

.oos-bulletin {
    box-sizing: border-box;
    width: min(820px, calc(100vw - 56px));
    margin: 0 auto;
    background: #fffdf8;
    color: #07101c;
    border: 1px solid #d7b56a;
    box-shadow:
        0 0 0 8px #07101c,
        0 0 0 9px #d7b56a,
        0 22px 48px rgba(0, 0, 0, 0.35);
    padding: 52px 48px 44px;
}

.oos-bull-header { text-align: center; }
.oos-bull-kicker {
    margin: 0;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 500;
    color: #8a6a22;
}
.oos-bull-church {
    font-family: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
    font-weight: 700;
    font-size: clamp(1.7rem, 4.6vw, 2.35rem);
    line-height: 1.12;
    margin: 10px 0 6px;
    color: #07101c;
}
.oos-bull-tag {
    margin: 0;
    font-family: "Cormorant Garamond", Palatino, "Times New Roman", serif;
    font-style: italic;
    font-weight: 500;
    font-size: 1.15rem;
    color: #5c4a32;
}
.oos-bull-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 16px 0 14px;
}
.oos-bull-rule span {
    width: 72px;
    height: 1px;
    background: #8a6a22;
}
.oos-bull-rule i {
    width: 7px;
    height: 7px;
    border: 1px solid #8a6a22;
    transform: rotate(45deg);
    background: #d7b56a;
}
.oos-bull-label {
    margin: 0;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    color: #16324f;
}
.oos-bull-date {
    margin: 6px 0 20px;
    font-family: "Cormorant Garamond", Palatino, "Times New Roman", serif;
    font-size: 1.35rem;
    color: #07101c;
}
.oos-print-table {
    width: 100%;
    border-collapse: collapse;
}
.oos-print-table th,
.oos-print-table td {
    border-bottom: 1px solid #c4a24a;
    padding: 9px 8px;
    text-align: left;
    vertical-align: top;
}
.oos-print-table th {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a6a22;
    border-bottom: 2px solid #8a6a22;
}
.oos-print-table td {
    font-size: 15px;
    color: #07101c;
}
.oos-print-table td:first-child,
.oos-print-table th:first-child {
    width: 22%;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: #16324f;
}
.oos-print-table td:last-child,
.oos-print-table th:last-child {
    width: 28%;
}
.oos-print-table td:last-child {
    font-family: "Cormorant Garamond", Palatino, "Times New Roman", serif;
    font-style: italic;
    color: #16324f;
}
.oos-print-table tr.is-indent td:nth-child(2) {
    padding-left: 28px;
    font-style: italic;
    color: #1c2a3a;
}
.oos-print-table tr.is-indent td:first-child {
    color: #8a6a22;
}
.oos-bull-footer { text-align: center; margin-top: 8px; }
.oos-bull-invite {
    margin: 0 0 6px;
    font-family: "Cormorant Garamond", Palatino, "Times New Roman", serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #8a6a22;
}
.oos-bull-meta {
    margin: 0;
    font-size: 13px;
    color: #16324f;
    line-height: 1.45;
}

.gv-print-table td:last-child,
.gv-print-table th:last-child {
    font-family: Outfit, "Segoe UI", sans-serif !important;
    font-style: normal !important;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
    width: 30%;
}
.gv-print-table tfoot th,
.gv-print-table tfoot td {
    border-bottom: 0;
    padding-top: 12px;
    font-size: 14px;
}
.gv-print-table tfoot tr.gv-print-grand th,
.gv-print-table tfoot tr.gv-print-grand td {
    border-top: 2px solid #8a6a22;
    font-size: 16px;
    color: #07101c;
}
.gv-print-table tr.gv-print-unnamed td {
    font-style: italic;
    color: #5c4a32;
}
.gv-print-empty {
    text-align: center;
    margin: 24px 0 8px;
    color: #5c4a32;
    font-family: "Cormorant Garamond", Palatino, serif;
    font-size: 1.15rem;
}
.oos-bulletin.gv-bulletin {
    padding: 56px 52px 52px;
}

@media print {
    @page { size: letter; margin: 0.75in; }

    .ma-sidebar,
    .ma-top,
    .ma-backdrop,
    .ma-oos-saved,
    .ma-alert,
    .oos-tools,
    .oos-editor .ma-help,
    .oos-editor .ma-actions,
    .oos-editor .ma-form-grid,
    .oos-editor h2,
    .oos-print-toolbar,
    .ma-collapse,
    .ma-menu,
    .oos-suggest-list {
        display: none !important;
    }
    .oos-print-only { display: block !important; }
    html,
    body.ma-body {
        height: auto !important;
        overflow: visible !important;
    }
    .ma-shell,
    .ma-main,
    .ma-content {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        overflow: visible !important;
        background: #fff !important;
        box-shadow: none !important;
    }
    .ma-panel {
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
    }
    body.ma-body,
    body.oos-print-page {
        background: #fff !important;
        color: #07101c !important;
        padding: 0 !important;
    }
    .oos-bulletin {
        box-sizing: border-box;
        width: 100%;
        max-width: none;
        border: 2px solid #8a6a22;
        box-shadow: none;
        padding: 0.42in 0.4in 0.38in;
        background: #fff;
    }
    .oos-bulletin.gv-bulletin {
        padding: 0.48in 0.45in 0.42in;
    }
    .oos-bull-kicker,
    .oos-bull-invite,
    .oos-print-table th,
    .oos-print-table tr.is-indent td:first-child {
        color: #6b542e !important;
    }
    .oos-bull-church,
    .oos-bull-date,
    .oos-print-table td {
        color: #07101c !important;
    }
    .oos-bull-rule span { background: #6b542e; }
    .oos-bull-rule i {
        background: #fff;
        border-color: #6b542e;
    }
    .oos-print-table th,
    .oos-print-table td {
        border-bottom-color: #8a6a22;
    }
    .gv-print-table td:last-child,
    .gv-print-table th:last-child {
        font-family: Outfit, "Segoe UI", sans-serif !important;
        font-style: normal !important;
        color: #07101c !important;
    }
    .gv-print-table tfoot tr.gv-print-grand th,
    .gv-print-table tfoot tr.gv-print-grand td {
        border-top-color: #6b542e;
    }
    .oos-table {
        width: 100%;
        border-collapse: collapse;
    }
    .oos-table th,
    .oos-table td {
        border-bottom: 1px solid #8a6a22;
        padding: 8px 6px;
        text-align: left;
    }
    .oos-table thead th {
        border-bottom: 2px solid #6b542e;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        font-size: 11px;
    }
    .oos-table input[type="text"] {
        border: 0;
        padding: 4px 0;
        background: transparent;
        color: #07101c;
        font-size: 15px;
        font-family: Outfit, "Segoe UI", sans-serif;
    }
    .oos-table th { color: #6b542e; }
    .oos-table th:last-child,
    .oos-table td:last-child { display: none; }
    .oos-table tr.is-indent td:nth-child(2) input {
        font-style: italic;
        font-family: "Cormorant Garamond", Palatino, "Times New Roman", serif;
    }
    .oos-print-frame {
        box-sizing: border-box;
        border: 2px solid #8a6a22;
        padding: 0.42in 0.4in 0.38in;
    }
}

.vl-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    align-items: flex-end;
}
.vl-filters label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    min-width: 140px;
}
.vl-filters .vl-search { flex: 1 1 220px; }
.vl-filters input,
.vl-filters select {
    font: inherit;
    font-weight: 500;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
}
.vl-bots {
    flex-direction: row !important;
    align-items: center;
    gap: 8px !important;
    min-width: auto;
    font-weight: 600;
    padding-bottom: 8px;
}
.vl-bots input { width: auto; accent-color: #d4af37; }
.vl-filter-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vl-bot-note { margin: 12px 0 0; color: var(--ma-muted); font-size: 13px; }
.vl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.vl-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.16);
    border: 1px solid var(--ma-line);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
}
.vl-chip a { color: #142334; font-weight: 600; }
.vl-chip-name { background: #ecfdf3; border-color: #bbf7d0; }
.vl-table-wrap { overflow-x: auto; }
.vl-ip { font-weight: 650; color: #0c1c2e; text-decoration: none; border-bottom: 1px dotted rgba(12, 28, 46, 0.35); }
.vl-ip:hover { color: #8a6a22; }
.vl-likely { margin-top: 4px; font-size: 12px; color: #166534; font-weight: 600; }
.vl-also { display: block; color: var(--ma-muted); font-weight: 500; }
.vl-badge {
    display: inline-block;
    margin-top: 4px;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 6px;
    padding: 2px 6px;
}
.vl-is-bot { background: #fafafa; }
.vl-ua { color: var(--ma-muted); font-size: 12px; max-width: 180px; }
.vl-pager { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.vl-trail { margin: 0; padding-left: 18px; }
.vl-trail li { margin: 6px 0; font-size: 14px; }
.vl-trail time { color: var(--ma-muted); margin-right: 8px; font-variant-numeric: tabular-nums; }
.vl-tab {
    display: inline-block;
    background: rgba(212, 175, 55, 0.14);
    border-radius: 6px;
    padding: 1px 7px;
    font-size: 12px;
    margin: 0 6px;
}
@media (max-width: 699px) {
    .vl-filters label { min-width: 100%; }
    .vl-ua { display: none; }
}

/* Dashboard — Sunday ops */
.dash-chart-panel { padding-bottom: 16px; }
.dash-chart-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px 20px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.dash-chart-head h2 { margin-bottom: 4px; }
.dash-chart-head .ma-help { margin-bottom: 0; max-width: 46rem; }
.dash-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    font-size: 13px;
    color: var(--ma-muted);
    padding-top: 4px;
}
.dash-legend span { display: inline-flex; align-items: center; gap: 8px; }
.dash-swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}
.dash-swatch-gold { background: var(--ma-gold); }
.dash-swatch-navy { background: #142334; }
.dash-chart-svg {
    width: 100%;
    height: auto;
    display: block;
    min-height: 180px;
}
.dash-grid { stroke: #eef0f3; stroke-width: 1; }
.dash-bar { fill: #d4af37; }
.dash-line {
    fill: none;
    stroke: #142334;
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
}
.dash-dot { fill: #142334; }
.dash-y, .dash-x, .dash-axis-name {
    font-size: 11px;
    fill: #6b7280;
    font-family: var(--ma-font);
}
.dash-y-l { text-anchor: end; }
.dash-y-r { text-anchor: start; }
.dash-x { text-anchor: middle; }
.dash-axis-name { font-weight: 600; letter-spacing: 0.04em; }
.dash-axis-name-r { text-anchor: end; }
.dash-chart-foot {
    margin: 8px 0 0;
    font-size: 13px;
}
.dash-chart-foot a { color: #142334; font-weight: 600; }
.dash-stats { margin-bottom: 18px; }
.dash-stat-link { text-decoration: none; color: inherit; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.dash-stat-link:hover { border-color: rgba(212, 175, 55, 0.55); box-shadow: 0 8px 24px rgba(7, 16, 28, 0.08); }
.dash-stat-title { font-size: 18px !important; line-height: 1.3 !important; }
.dash-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 8px;
}
.dash-split .ma-panel { margin-bottom: 0; }
.dash-people { list-style: none; margin: 0; padding: 0; }
.dash-people li { border-bottom: 1px solid #eef0f3; }
.dash-people li:last-child { border-bottom: 0; }
.dash-people a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
    text-decoration: none;
    color: inherit;
}
.dash-people a:hover strong { color: #8a6a22; }
.dash-people span { color: var(--ma-muted); font-size: 13px; }
.dash-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.dash-tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f7f4ea;
    border: 1px solid rgba(212, 175, 55, 0.28);
    text-decoration: none;
    color: inherit;
}
.dash-tile:hover { background: #fff8e8; border-color: var(--ma-gold); }
.dash-tile strong { font-size: 14px; }
.dash-tile span { font-size: 12px; color: var(--ma-muted); }
@media (max-width: 799px) {
    .dash-split { grid-template-columns: 1fr; }
    .dash-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .dash-tiles { grid-template-columns: 1fr; }
}

.pr-row { cursor: pointer; }
.pr-row:hover td { background: #f7f4ea; }
.pr-row:focus-visible { outline: 2px solid var(--ma-gold); outline-offset: -2px; }
.pr-preview { color: var(--ma-ink); }
.pr-modal {
    width: min(640px, calc(100% - 32px));
    max-height: min(88vh, 720px);
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--ma-ink);
    font-family: var(--ma-font);
}
.pr-modal::backdrop {
    background: rgba(7, 16, 28, 0.72);
}
.pr-modal-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--ma-line);
    box-shadow: 0 24px 60px rgba(7, 16, 28, 0.28);
    padding: 28px 28px 24px;
}
.pr-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(7, 16, 28, 0.06);
    color: var(--ma-navy);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.pr-modal-close:hover,
.pr-modal-close:focus-visible {
    background: rgba(212, 175, 55, 0.22);
    outline: none;
}
.pr-modal-kicker {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ma-gold);
}
.pr-modal-card h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 650;
    color: var(--ma-navy);
}
.pr-modal-meta {
    margin: 0 0 4px;
    color: var(--ma-muted);
    font-size: 14px;
}
.pr-modal-private {
    margin: 10px 0 0;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a6a22;
}
.pr-modal-body {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eef0f3;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-height: min(48vh, 420px);
    overflow: auto;
    line-height: 1.55;
    font-size: 15px;
}
