* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #07111d;
    color: #e8f1f8;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.mp-maintenance-banner {
    position: fixed;
    top: 12px;
    left: 50%;
    z-index: 1000;
    transform: translateX(-50%);
    width: min(420px, calc(100vw - 32px));
    padding: 5px 10px;
    border: 1px solid #8a6a22;
    border-radius: 8px;
    background: #2e250f;
    color: #ffd36b;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}

.mp-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    overflow-y: auto;
    background: #081522;
    color: #dbe9f4;
    padding: 22px 18px;
    border-right: 1px solid #18324a;
}

.mp-sidebar-user {
    margin-bottom: 24px;
    padding: 14px;
    border: 1px solid #244761;
    border-radius: 8px;
    background: #0d2032;
}

.mp-sidebar-user strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.35;
}

.mp-sidebar-user a {
    color: #ffbd6b;
    font-weight: 800;
}

.mp-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    font-weight: 700;
    margin-bottom: 28px;
}

.mp-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.mp-brand span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 4px;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
}

.mp-brand img[alt="Defensie"] {
    width: 34px;
    height: 34px;
}

.mp-nav-group {
    margin-bottom: 22px;
}

.mp-nav-group p {
    margin: 0 0 8px;
    color: #7fa6c6;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.mp-nav-group a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    margin: 3px 0;
    padding: 8px 10px;
    border-radius: 6px;
    color: #dbe9f4;
    font-size: 14px;
}

.mp-nav-group a span {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #132b42;
    color: #7fd4ff;
    font-size: 11px;
    font-weight: 700;
}

.mp-nav-group a.active,
.mp-nav-group a:hover {
    background: #123957;
    box-shadow: inset 3px 0 0 #36a8ff;
}

.mp-original {
    display: block;
    margin-top: 28px;
    padding: 12px;
    border: 1px solid #2c5b7d;
    border-radius: 6px;
    color: #ffffff;
    text-align: center;
}

.mp-main {
    margin-left: 280px;
    padding: 28px;
}

.mp-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.mp-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #58c3ff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.mp-topbar h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.1;
}

.mp-topbar p {
    max-width: 760px;
    margin: 10px 0 0;
    color: #a4b9cb;
    font-size: 16px;
}

.mp-user {
    min-width: 220px;
    padding: 12px;
    background: #0d2032;
    border: 1px solid #1d3c58;
    border-radius: 8px;
    text-align: right;
}

.mp-user span {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.mp-user a {
    color: #ffbd6b;
    font-size: 13px;
    font-weight: 700;
}

.mp-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.mp-stats article {
    min-height: 88px;
    padding: 16px 18px;
    background: #0d2032;
    border: 1px solid #1d3c58;
    border-radius: 8px;
}

.mp-stats strong {
    display: block;
    font-size: 34px;
    line-height: 1;
}

.mp-stats p {
    margin: 8px 0 0;
    color: #9fb6c9;
    font-size: 15px;
}

.mp-status-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.mp-status-grid article,
.mp-audit-item {
    padding: 14px;
    border: 1px solid #1d3c58;
    border-radius: 8px;
    background: #0d2032;
}

.mp-status-grid strong,
.mp-audit-item strong {
    color: #ffffff;
    font-size: 15px;
}

.mp-status-grid p,
.mp-audit-item p,
.mp-audit-item small {
    display: block;
    margin: 6px 0 0;
    color: #9fb6c9;
    font-size: 13px;
    line-height: 1.4;
}

.mp-audit-list {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.mp-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-top: 1px solid #1c3852;
    color: #9fb6c9;
    font-size: 13px;
}

.mp-pagination div {
    display: flex;
    gap: 8px;
}

.mp-pagination a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #285776;
    border-radius: 6px;
    background: #14364f;
    color: #ffffff;
    font-weight: 700;
}

.mp-pagination.related {
    margin: -16px 0 16px;
    border: 1px solid #1d3c58;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: #0d2032;
}

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

.mp-panel,
.mp-form-preview {
    background: #0d2032;
    border: 1px solid #1d3c58;
    border-radius: 8px;
    overflow: hidden;
}

.mp-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid #1c3852;
}

.mp-panel-head h2,
.mp-form-preview h2 {
    margin: 0;
    font-size: 18px;
}

.mp-panel-head span {
    color: #58c3ff;
    font-weight: 800;
}

.mp-list {
    display: grid;
}

.mp-list-item {
    display: flex;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid #173149;
}

.mp-list-item:last-child {
    border-bottom: 0;
}

.mp-list-icon {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    height: 34px;
    border-radius: 0;
    background: transparent;
    color: #84d8ff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.mp-list-icon.image {
    overflow: hidden;
    background: transparent;
    border: 0;
}

.mp-list-icon.image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
}

.mp-list-icon.defensie {
    background: transparent;
}

.mp-list-body h3 {
    margin: 0 0 5px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.mp-list-body h3.mp-report-list-title {
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
}

.mp-list-body p {
    margin: 0;
    color: #9fb6c9;
    font-size: 13px;
    line-height: 1.4;
}

.mp-empty {
    padding: 22px 18px;
    color: #9fb6c9;
}

.mp-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.mp-toolbar input,
.mp-form-grid input,
.mp-form-grid textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid #244761;
    border-radius: 6px;
    padding: 10px 12px;
    background: #091927;
    color: #e8f1f8;
}

.mp-toolbar input::placeholder,
.mp-form-grid input::placeholder,
.mp-form-grid textarea::placeholder {
    color: #7894aa;
}

.mp-toolbar a,
.mp-toolbar button,
.mp-action,
.mp-login-form button,
.mp-discord-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 6px;
    border: 0;
    background: #11679b;
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    font: inherit;
}

.mp-action:disabled {
    cursor: not-allowed;
    opacity: .65;
}

.mp-form-preview {
    padding: 22px;
}

.mp-form-preview p {
    max-width: 760px;
    color: #9fb6c9;
}

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

.mp-form-grid label {
    display: grid;
    gap: 7px;
    color: #c4d5e3;
    font-weight: 700;
}

.mp-form-grid .wide {
    grid-column: 1 / -1;
}

.mp-form-grid textarea {
    min-height: 180px;
    resize: vertical;
}

.mp-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.mp-check-grid label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 54px;
    padding: 10px;
    border: 1px solid #244761;
    border-radius: 6px;
    background: #091927;
}

.mp-check-grid label[hidden] {
    display: none;
}

.mp-check-grid input {
    width: 18px;
    height: 18px;
    min-height: 0;
    margin-top: 3px;
}

.mp-check-grid span {
    display: grid;
    gap: 3px;
    color: #ffffff;
}

.mp-check-grid small {
    color: #9fb6c9;
    font-weight: 400;
}

.mp-law-picker {
    display: grid;
    gap: 10px;
}

.mp-law-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.mp-law-search {
    width: 100%;
    min-height: 44px;
    border: 1px solid #244761;
    border-radius: 6px;
    padding: 10px 12px;
    background: #091927;
    color: #e8f1f8;
}

.mp-law-search::placeholder {
    color: #7894aa;
}

.mp-law-toggle {
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 6px;
    background: #123957;
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.mp-law-status {
    color: #9fb6c9;
    font-size: 13px;
}

.mp-selected-laws {
    padding: 12px;
    border: 1px solid #244761;
    border-radius: 8px;
    background: #091927;
}

.mp-selected-laws > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.mp-selected-laws strong {
    color: #ffffff;
}

.mp-selected-laws p {
    margin: 0;
    color: #9fb6c9;
}

.mp-selected-laws ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding-left: 18px;
    color: #dbe9f4;
}

.mp-selected-laws ul.can-copy,
.mp-copy-value {
    cursor: pointer;
    display: inline-block;
    padding: 2px 4px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: color .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.mp-selected-laws ul.can-copy:hover,
.mp-copy-value:hover {
    border-color: #36a8ff;
    background: #0f3b5c;
    color: #7fd4ff;
    box-shadow: 0 0 0 2px rgba(54, 168, 255, .18);
}

.mp-selected-laws [data-selected-laws-copy-state] {
    color: #7fd4ff;
    font-size: 12px;
    font-weight: 800;
}

.mp-law-picker:not(.open) [data-law-list] {
    display: none;
}

.mp-detail {
    margin-bottom: 16px;
    padding: 18px;
    border: 1px solid #1d3c58;
    border-radius: 8px;
    background: #0d2032;
}

.mp-detail h2 {
    margin: 0 0 14px;
    font-size: 20px;
}

.mp-detail-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.mp-detail-heading h2 {
    margin: 0;
}

.mp-detail-heading .mp-list-icon {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
}

.mp-detail dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.mp-detail dt {
    color: #7fa6c6;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.mp-detail dd {
    margin: 4px 0 0;
    color: #ffffff;
}

.mp-inline-link {
    color: #7fd4ff;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 800;
}

.mp-report-body {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #1c3852;
    color: #dbe9f4;
    line-height: 1.6;
}

.mp-warning {
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid #8b2635;
    border-radius: 8px;
    background: #30131b;
    color: #ffd6dd;
    font-weight: 800;
}

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

.mp-chip-group h3 {
    margin: 0 0 8px;
    color: #7fa6c6;
    font-size: 12px;
    text-transform: uppercase;
}

.mp-chip-group p {
    margin: 0;
    color: #9fb6c9;
}

.mp-chip-group div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.mp-chip-group span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: #123957;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.mp-delete-form {
    margin-top: 16px;
}

.mp-delete-form button {
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 6px;
    background: #8b2635;
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.mp-evidence-paste {
    display: grid;
    gap: 6px;
    min-height: 82px;
    padding: 14px;
    border: 1px dashed #3b6d90;
    border-radius: 8px;
    background: #091927;
    color: #dbe9f4;
    cursor: text;
}

.mp-evidence-paste:focus {
    outline: 2px solid #58c3ff;
    outline-offset: 2px;
}

.mp-evidence-paste span {
    color: #9fb6c9;
    font-size: 13px;
}

.mp-evidence-paste [data-evidence-list] {
    display: grid;
    gap: 5px;
    margin-top: 4px;
}

.mp-evidence-paste [data-evidence-list] div {
    padding: 7px 9px;
    border-radius: 6px;
    background: #0d2032;
    color: #dbe9f4;
    font-size: 13px;
}

.mp-evidence-paste.has-image {
    border-style: solid;
    border-color: #2d9d78;
}

.mp-login-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
}

.mp-login-shell {
    width: min(480px, calc(100vw - 32px));
}

.mp-login-panel {
    padding: 28px;
    border: 1px solid #1d3c58;
    border-radius: 10px;
    background: #0d2032;
}

.mp-login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.mp-login-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.mp-login-brand img[alt="Defensie"] {
    width: 36px;
    height: 36px;
}

.mp-login-brand strong {
    color: #ffffff;
    font-size: 26px;
}

.mp-login-copy span {
    color: #58c3ff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.mp-login-copy h1 {
    margin: 8px 0;
    font-size: 36px;
}

.mp-login-copy p {
    margin: 0 0 20px;
    color: #a4b9cb;
}

.mp-alert {
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid #7f2f39;
    border-radius: 8px;
    background: #32151d;
    color: #ffd7dc;
}

.mp-login-form {
    display: grid;
    gap: 14px;
}

.mp-login-form label {
    display: grid;
    gap: 7px;
    color: #c4d5e3;
    font-weight: 700;
}

.mp-login-form input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #244761;
    border-radius: 6px;
    padding: 10px 12px;
    background: #091927;
    color: #e8f1f8;
}

.mp-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #7fa6c6;
}

.mp-login-divider::before,
.mp-login-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #1c3852;
}

.mp-discord-button {
    width: 100%;
    background: #5865f2;
}

.mp-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -8px 0 16px;
}

.mp-action.secondary {
    background: #14364f;
    border: 1px solid #285776;
}

@media (max-width: 980px) {
    .mp-sidebar {
        position: static;
        width: auto;
        max-height: none;
    }

    .mp-main {
        margin-left: 0;
        padding: 18px;
    }

    .mp-topbar,
    .mp-toolbar {
        flex-direction: column;
    }

    .mp-user {
        width: 100%;
        text-align: left;
    }

    .mp-stats,
    .mp-status-grid,
    .mp-grid.two,
    .mp-form-grid,
    .mp-detail dl,
    .mp-info-grid,
    .mp-check-grid,
    .mp-law-controls {
        grid-template-columns: 1fr;
    }
}
