:root {
    --primary: #004b99;
    --primary-soft: #0b67c6;
    --bg: #f4f8fd;
    --card: #ffffff;
    --border: #d7e4f4;
    --shadow: 0 10px 28px rgba(0, 75, 153, 0.1);
    --text: #004b99;
    --muted: #3b6da1;
    --success: #0a7a37;
    --success-bg: #e8f7ee;
    --error: #9f1f2a;
    --error-bg: #ffe9ec;
    --warning: #8a5a00;
    --warning-bg: #fff5df;
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Oswald", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 0% 0%, #ffffff 0%, var(--bg) 56%);
    letter-spacing: 0.2px;
}

html.embed-mode,
html.embed-mode body {
    background: transparent;
    background-image: none !important;
}

.public-page.embed-mode {
    background: transparent;
    background-image: none !important;
}

.public-page.embed-mode .container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.public-page.embed-mode .form-card {
    margin: 0;
}

.public-page.embed-mode .card {
    box-shadow: none;
}

.public-page.embed-mode .drone-block {
    background: #fff;
    background-image: none;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3,
p,
label,
span,
small,
button,
input,
textarea,
select,
li,
th,
td {
    color: var(--text);
}

h1,
h2,
h3 {
    margin: 0 0 12px;
    font-weight: 600;
    line-height: 1.15;
}

p {
    margin: 0 0 10px;
    font-weight: 400;
    line-height: 1.45;
}

small {
    color: var(--muted);
    font-size: 0.84rem;
}

.muted-text {
    color: var(--muted);
}

.hero {
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff, #f2f8ff);
}

.hero-top {
    max-width: 1000px;
    margin: 0 auto;
    padding: 14px 18px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
}

.hero-logo {
    width: min(280px, 70vw);
    height: auto;
}

.hero-selo {
    width: min(160px, 22vw);
    height: auto;
    margin-left: 30px;
}

.container {
    max-width: 1000px;
    margin: 26px auto 44px;
    padding: 0 18px;
    display: grid;
    gap: 16px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.intro {
    position: relative;
    overflow: hidden;
}

.intro::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, #0a84ff, #004b99);
}

.alert {
    border-radius: 12px;
    padding: 14px;
    border: 1px solid transparent;
    font-size: 0.95rem;
}

.alert ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.alert.error {
    background: var(--error-bg);
    border-color: #f3bec7;
    color: var(--error);
}

.alert.success {
    background: var(--success-bg);
    border-color: #c8e9d5;
    color: var(--success);
}

.alert.warning {
    background: var(--warning-bg);
    border-color: #f0d391;
    color: var(--warning);
}

#credenciamento-form {
    display: grid;
    gap: 16px;
}

.category-selector {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    margin: 0;
}

.category-selector legend {
    font-size: 1rem;
    font-weight: 600;
    padding: 0 8px;
}

.category-option {
    display: inline-flex;
    position: relative;
    margin-right: 10px;
    margin-bottom: 8px;
    cursor: pointer;
}

.category-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.category-option-ui {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #c6dcf6;
    background: #f8fbff;
    transition: all 0.2s ease;
}

.category-option .category-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-option .category-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.category-option .category-text {
    font-size: 0.9rem;
    line-height: 1;
}

.category-option:hover .category-option-ui {
    border-color: #8ab9eb;
    background: #eef6ff;
}

.category-option input:checked + .category-option-ui {
    border-color: var(--primary);
    background: linear-gradient(180deg, #edf5ff, #dbeeff);
    box-shadow: inset 0 0 0 1px rgba(0, 75, 153, 0.16);
}

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

label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.93rem;
}

input,
textarea,
select,
button {
    font: inherit;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="password"],
textarea {
    width: 100%;
    border: 1px solid #bfd5ee;
    border-radius: 10px;
    padding: 9px 11px;
    background: #fff;
    color: var(--primary);
}

input::placeholder,
textarea::placeholder {
    color: #5b83af;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(0, 75, 153, 0.2);
    border-color: var(--primary-soft);
}

.check {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    border: 1px dashed #bfd2ea;
    border-radius: 10px;
    padding: 10px;
    background: #fbfdff;
}

.check input[type="checkbox"] {
    margin-top: 2px;
}

.btn-submit,
.btn-secondary,
.btn-approve,
.btn-reject {
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 500;
}

.btn-submit {
    background: linear-gradient(130deg, #0a67c3, #004b99);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
}

.btn-submit:hover {
    filter: brightness(1.06);
}

.btn-submit .btn-submit-default-text,
.btn-submit .btn-submit-loading-text {
    color: #fff;
}

.btn-submit.is-loading {
    cursor: progress;
    filter: none;
}

.btn-submit:disabled {
    cursor: not-allowed;
    opacity: 0.92;
}

.btn-submit-spinner {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    animation: submit-spin 0.8s linear infinite;
}

@keyframes submit-spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-secondary {
    background: #f2f8ff;
    border-color: #c6dbf2;
    color: var(--primary);
    display: inline-block;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #e7f2ff;
    text-decoration: none;
}

.btn-approve {
    background: #e2f6e8;
    border-color: #bae4c8;
    color: #0f7638;
}

.btn-reject {
    background: #ffe7ea;
    border-color: #f3c0c8;
    color: #a32733;
}

.conditional-group {
    display: grid;
    gap: 10px;
}

.conditional-group.hidden {
    display: none;
}

.drone-block {
    border: 1px solid #cde0f7;
    border-radius: 12px;
    padding: 14px;
    background: linear-gradient(180deg, #f7fbff, #ffffff);
}

#sisant-wrapper.required-highlight {
    border: 1px solid #f3d595;
    border-radius: 10px;
    padding: 10px;
    background: #fff8e5;
}

.legal-note ul {
    margin: 0 0 10px 18px;
    padding: 0;
}

.legal-links {
    font-size: 0.9rem;
}

.form-submit-area {
    display: grid;
    gap: 8px;
}

.submit-progress-message {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.submit-success-alert {
    margin: 0;
}

.registrations-closed-card {
    border-color: #f0d391;
    background: linear-gradient(180deg, #fff8e6, #ffffff);
}

.registrations-closed-card h2,
.registrations-closed-card p {
    color: #8a5a00;
}

.registrations-closed-card p:last-child {
    margin-bottom: 0;
}

/* Admin */
.admin-login-page,
.admin-page {
    background: radial-gradient(circle at 0% 0%, #ffffff 0%, #f1f7ff 58%);
}

.login-wrapper {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.login-card {
    width: min(480px, 100%);
}

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

.admin-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
}

.admin-header h1 {
    margin: 0;
    font-size: 1.35rem;
}

.admin-header p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.admin-main {
    margin: 20px auto 48px;
    padding: 0 18px;
    display: grid;
    gap: 14px;
}

.registration-toggle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.registration-toggle-copy {
    flex: 1 1 320px;
}

.settings-kicker {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.registration-toggle-copy h2 {
    margin-bottom: 8px;
}

.registration-toggle-copy p:last-child {
    margin-bottom: 0;
}

.registration-toggle-form {
    margin: 0;
}

.registration-toggle-button {
    min-width: min(100%, 320px);
    border-radius: 999px;
    border: 1px solid #f0c3c9;
    background: #fff1f3;
    color: #a22531;
    padding: 12px 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.registration-toggle-button span {
    color: inherit;
}

.registration-toggle-button:hover {
    transform: translateY(-1px);
}

.registration-toggle-button:focus-visible {
    outline: 2px solid rgba(162, 37, 49, 0.22);
    outline-offset: 2px;
}

.registration-toggle-button.is-open {
    border-color: #bee0c8;
    background: #e7f7ec;
    color: #0f7e3c;
}

.registration-toggle-button.is-open:focus-visible {
    outline-color: rgba(15, 126, 60, 0.22);
}

.registration-toggle-button__track {
    position: relative;
    width: 58px;
    height: 32px;
    border-radius: 999px;
    background: rgba(162, 37, 49, 0.22);
    flex: 0 0 auto;
}

.registration-toggle-button.is-open .registration-toggle-button__track {
    background: rgba(15, 126, 60, 0.22);
}

.registration-toggle-button__thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 35, 76, 0.18);
    transition: transform 0.2s ease;
}

.registration-toggle-button.is-open .registration-toggle-button__thumb {
    transform: translateX(26px);
}

.registration-toggle-button__text {
    display: grid;
    gap: 2px;
    text-align: left;
}

.registration-toggle-button__label {
    font-weight: 600;
    line-height: 1.2;
}

.registration-toggle-button__hint {
    font-size: 0.82rem;
    line-height: 1.2;
    opacity: 0.86;
}

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

.stat-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    box-shadow: var(--shadow);
}

.stat-card h2 {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 400;
    color: var(--muted);
}

.stat-card p {
    margin: 6px 0 0;
    font-size: 1.65rem;
    font-weight: 600;
}

.stat-card.approved p {
    color: #0c7d3a;
}

.stat-card.rejected p {
    color: #a3222f;
}

.status-section .section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.collapsible-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.collapse-toggle {
    padding: 6px 10px;
    font-size: 0.8rem;
}

.collapsible-content {
    display: grid;
    gap: 10px;
}

.count-pill {
    border-radius: 999px;
    font-size: 0.85rem;
    padding: 4px 10px;
    border: 1px solid transparent;
}

.count-pill.pending {
    background: #e9f3ff;
    border-color: #bfd8f4;
}

.count-pill.approved {
    background: #e4f5e9;
    border-color: #bee0c8;
}

.count-pill.rejected {
    background: #ffe7ea;
    border-color: #f0c2c8;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.table-tools {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.status-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: collapse;
    background: #fff;
}

.table-empty {
    margin-top: 8px;
    font-size: 0.88rem;
    color: var(--muted);
}

.table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.pagination-info {
    font-size: 0.82rem;
    color: var(--muted);
}

.pagination-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.pagination-btn {
    border: 1px solid #c2d8f0;
    background: #f4f9ff;
    color: var(--primary);
    border-radius: 8px;
    padding: 4px 9px;
    cursor: pointer;
    font-size: 0.8rem;
    min-width: 34px;
}

.pagination-btn:hover {
    background: #e9f3ff;
}

.pagination-btn.active {
    border-color: var(--primary);
    background: #dceeff;
}

.pagination-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.status-table th,
.status-table td {
    border-bottom: 1px solid #e4eef9;
    text-align: left;
    vertical-align: top;
    padding: 14px 16px;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.status-table td > div,
.status-table td > span,
.status-table td a,
.status-table td strong {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.status-table th {
    background: #f6faff;
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 1;
    white-space: nowrap;
}

.status-table tbody tr:nth-child(even) {
    background: #fbfdff;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.8rem;
    border: 1px solid transparent;
    white-space: nowrap;
}

.js-table-section[data-table-key="pending"] .status-table th:nth-child(1),
.js-table-section[data-table-key="pending"] .status-table td:nth-child(1),
.js-table-section[data-table-key="approved"] .status-table th:nth-child(1),
.js-table-section[data-table-key="approved"] .status-table td:nth-child(1),
.js-table-section[data-table-key="rejected"] .status-table th:nth-child(1),
.js-table-section[data-table-key="rejected"] .status-table td:nth-child(1) {
    min-width: 72px;
}

.js-table-section[data-table-key="pending"] .status-table th:nth-child(2),
.js-table-section[data-table-key="pending"] .status-table td:nth-child(2),
.js-table-section[data-table-key="approved"] .status-table th:nth-child(2),
.js-table-section[data-table-key="approved"] .status-table td:nth-child(2),
.js-table-section[data-table-key="rejected"] .status-table th:nth-child(2),
.js-table-section[data-table-key="rejected"] .status-table td:nth-child(2) {
    min-width: 150px;
}

.js-table-section[data-table-key="pending"] .status-table th:nth-child(3),
.js-table-section[data-table-key="pending"] .status-table td:nth-child(3),
.js-table-section[data-table-key="approved"] .status-table th:nth-child(3),
.js-table-section[data-table-key="approved"] .status-table td:nth-child(3),
.js-table-section[data-table-key="rejected"] .status-table th:nth-child(3),
.js-table-section[data-table-key="rejected"] .status-table td:nth-child(3) {
    min-width: 230px;
}

.js-table-section[data-table-key="pending"] .status-table th:nth-child(5),
.js-table-section[data-table-key="pending"] .status-table td:nth-child(5),
.js-table-section[data-table-key="approved"] .status-table th:nth-child(5),
.js-table-section[data-table-key="approved"] .status-table td:nth-child(5),
.js-table-section[data-table-key="rejected"] .status-table th:nth-child(5),
.js-table-section[data-table-key="rejected"] .status-table td:nth-child(5) {
    min-width: 170px;
}

.js-table-section[data-table-key="approved"] .status-table th:nth-child(6),
.js-table-section[data-table-key="approved"] .status-table td:nth-child(6),
.js-table-section[data-table-key="rejected"] .status-table th:nth-child(6),
.js-table-section[data-table-key="rejected"] .status-table td:nth-child(6) {
    min-width: 220px;
}

.status-pill.pending {
    background: #e8f2ff;
    border-color: #bfd9f5;
}

.status-pill.approved {
    background: #e4f5e9;
    border-color: #bee0c8;
    color: #0f7e3c;
}

.status-pill.rejected {
    background: #ffe8eb;
    border-color: #f0c3c9;
    color: #a22531;
}

.name-cell {
    font-size: 1rem;
    font-weight: 500;
}

.subline {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.35;
    margin-top: 2px;
}

.files-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.media-thumb {
    width: 90px;
    text-align: center;
    border: 1px solid #c6daf1;
    border-radius: 8px;
    padding: 4px;
    background: #fff;
    text-decoration: none;
}

.media-thumb:hover {
    border-color: var(--primary-soft);
    text-decoration: none;
}

.media-thumb img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    background: #eef4fc;
}

.media-thumb span {
    display: block;
    margin-top: 3px;
    font-size: 0.72rem;
    color: var(--muted);
}

.file-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid #c8dbf2;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.78rem;
    background: #f2f8ff;
}

.file-chip:hover {
    background: #e7f2ff;
    text-decoration: none;
}

.table-action-form {
    display: grid;
    gap: 6px;
    min-width: 260px;
}

.table-action-form textarea,
.table-action-form input[type="text"] {
    font-size: 0.82rem;
    padding: 8px;
}

.decision-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.actions-cell {
    width: 86px;
    text-align: center;
}

.actions-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.inline-action-form {
    width: auto;
    margin: 0;
}

.mail-status-pill {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.76rem;
    border: 1px solid transparent;
}

.mail-status-pill.pending {
    background: #eef4fc;
    border-color: #d3e0ef;
    color: #406890;
}

.mail-status-pill.success {
    background: #e4f5e9;
    border-color: #bee0c8;
    color: #0f7e3c;
}

.mail-status-pill.error {
    background: #ffe8eb;
    border-color: #f0c3c9;
    color: #a22531;
}

.mail-inline-feedback {
    margin-top: 8px;
    font-size: 0.78rem;
    line-height: 1.35;
}

.action-inline-feedback {
    width: 100%;
    max-width: 170px;
    margin-top: 2px;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.35;
}

.mail-inline-feedback.success {
    color: #0f7e3c;
}

.mail-inline-feedback.error {
    color: #a22531;
}

.action-inline-feedback.success {
    color: #0f7e3c;
}

.action-inline-feedback.error {
    color: #a22531;
}

.icon-action-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #d7e4f3;
    background: #f8fbff;
    color: #8b1f2b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.icon-action-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-action-btn.is-loading {
    cursor: progress;
    opacity: 0.82;
}

.icon-action-btn.is-loading svg {
    animation: icon-spin 0.9s linear infinite;
}

.icon-action-btn--mail {
    color: var(--primary);
    background: #f3f8ff;
    border-color: #c6dbf2;
}

.icon-action-btn--pdf {
    color: #9d5a12;
    background: #fff7eb;
    border-color: #f0d1a6;
}

.icon-action-btn:hover {
    border-color: #e6bbc1;
    background: #fff2f4;
}

.icon-action-btn:focus-visible {
    outline: 2px solid rgba(139, 31, 43, 0.22);
    outline-offset: 1px;
}

.icon-action-btn.icon-action-btn--mail:hover {
    border-color: #b8d3ef;
    background: #e7f2ff;
}

.icon-action-btn.icon-action-btn--mail:focus-visible {
    outline: 2px solid rgba(0, 75, 153, 0.22);
    outline-offset: 1px;
}

.icon-action-btn.icon-action-btn--pdf:hover {
    border-color: #e4bf8d;
    background: #ffefd7;
}

.icon-action-btn.icon-action-btn--pdf:focus-visible {
    outline: 2px solid rgba(157, 90, 18, 0.22);
    outline-offset: 1px;
}

.icon-action-btn--pdf-alt {
    width: auto;
    min-width: 58px;
    padding: 0 12px;
    color: #0054ad;
    background: #eef5ff;
    border-color: #c4d9f5;
}

.icon-action-btn__text {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
}

.icon-action-btn.icon-action-btn--pdf-alt:hover {
    border-color: #a9c9ee;
    background: #e3efff;
}

.icon-action-btn.icon-action-btn--pdf-alt:focus-visible {
    outline: 2px solid rgba(0, 84, 173, 0.22);
    outline-offset: 1px;
}

@keyframes icon-spin {
    to {
        transform: rotate(360deg);
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(0, 31, 64, 0.55);
    padding: 18px;
    display: grid;
    place-items: center;
}

.modal-overlay.hidden {
    display: none;
}

.modal-card {
    width: min(620px, 100%);
    border-radius: 14px;
    border: 1px solid #c8dbf2;
    background: #fff;
    box-shadow: 0 18px 42px rgba(0, 35, 76, 0.24);
    padding: 16px;
    display: grid;
    gap: 12px;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.modal-head h2 {
    margin: 0;
    font-size: 1.1rem;
}

.modal-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #ccdeef;
    background: #f3f8ff;
    color: var(--primary);
    cursor: pointer;
    font-size: 1.45rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: #eaf3ff;
}

.modal-target {
    margin: 0;
    font-size: 0.92rem;
}

.modal-form {
    display: grid;
    gap: 10px;
}

.modal-form textarea {
    font-size: 0.86rem;
}

.modal-check {
    margin: 2px 0 0;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

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

.export-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fbfdff;
    padding: 12px;
    display: grid;
    gap: 8px;
}

.export-card h3 {
    margin: 0;
    font-size: 1.08rem;
}

.export-card h3 small {
    color: var(--muted);
    font-size: 0.8rem;
}

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

.export-card textarea {
    background: #fff;
    font-size: 0.78rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

code {
    border: 1px solid #cfe0f3;
    border-radius: 6px;
    background: #f1f7ff;
    padding: 2px 5px;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 34, 71, 0.88);
    display: grid;
    place-items: center;
    padding: 28px 16px;
}

.image-lightbox.hidden {
    display: none;
}

.lightbox-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-figure {
    margin: 0;
    max-width: min(96vw, 1200px);
    max-height: 92vh;
    display: grid;
    gap: 8px;
    justify-items: center;
}

#lightbox-image {
    max-width: 100%;
    max-height: calc(92vh - 60px);
    border-radius: 10px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
}

#lightbox-caption {
    color: #fff;
    text-align: center;
    font-size: 0.94rem;
}

@media (max-width: 940px) {
    .form-grid,
    .stats-grid,
    .export-grid {
        grid-template-columns: 1fr;
    }

    .hero-top {
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
    }

    .hero-logo {
        width: min(220px, 66vw);
    }

    .hero-selo {
        width: min(90px, 18vw);
        padding-top: 23px;
        margin-left: 20px;
    }

    .status-table {
        min-width: 960px;
    }

    .table-tools {
        grid-template-columns: 1fr;
    }

    .admin-header {
        position: static;
        flex-direction: column;
        align-items: flex-start;
    }

    .registration-toggle-form,
    .registration-toggle-button {
        width: 100%;
    }

    .category-option {
        margin-right: 6px;
        margin-bottom: 6px;
    }

    .modal-card {
        padding: 14px;
    }

    .modal-actions {
        justify-content: stretch;
    }

    .modal-actions .btn-secondary,
    .modal-actions .btn-reject {
        width: 100%;
    }
}
