:root {
    --guarantee-navy: #0a2b4e;
    --guarantee-blue: #174b7a;
    --guarantee-gold: #ebbf42;
    --guarantee-ink: #18324a;
    --guarantee-muted: #68798b;
    --guarantee-line: #dce4ed;
    --guarantee-soft: #f3f6fa;
    --guarantee-white: #fff;
    --guarantee-radius: 18px;
    --guarantee-shadow: 0 12px 30px rgba(10, 43, 78, .08);
}

:where(.panel-section, .dash-section, .form-section, .guarantee-entry-section, .auth-section),
:where(.panel-section, .dash-section, .form-section, .guarantee-entry-section, .auth-section) * {
    box-sizing: border-box;
}

:where(.panel-section, .dash-section, .form-section) {
    min-height: 76vh;
    padding: 104px 0 68px;
    background:
        radial-gradient(circle at 90% 0, rgba(235, 191, 66, .09), transparent 24%),
        var(--guarantee-soft);
}

:where(.panel-section, .dash-section, .form-section) > .container,
.dash-section .container,
.form-section .container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

:where(.panel-header, .dash-header) {
    min-height: 126px;
    align-items: center;
    gap: 22px;
    margin-bottom: 24px;
    padding: 24px 28px;
    background: linear-gradient(135deg, var(--guarantee-navy), #123f69);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    box-shadow: 0 15px 36px rgba(10, 43, 78, .14);
}

:where(.panel-header, .dash-header) h1,
:where(.panel-header, .dash-header) .panel-sub,
:where(.panel-header, .dash-header) .dash-sub {
    color: #fff;
}

:where(.panel-header, .dash-header) :where(.panel-sub, .dash-sub) {
    color: #d7e1eb;
}

:where(.panel-header, .dash-header) :where(.panel-badge, .dash-badge) {
    color: var(--guarantee-gold);
    background: rgba(235, 191, 66, .11);
    border: 1px solid rgba(235, 191, 66, .34);
}

:where(.panel-actions, .dash-actions) {
    align-items: center;
}

:where(.panel-actions, .dash-actions) :where(a, button),
:where(.form-actions, .req-actions) :where(a, button, .btn-act) {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.35;
}

:where(.panel-header, .dash-header) :where(.btn-outline-dark, .btn-outline) {
    color: #fff;
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .46) !important;
}

:where(.panel-header, .dash-header) :where(.btn-outline-dark, .btn-outline):hover {
    color: var(--guarantee-navy);
    background: #fff;
}

:where(.box-card, .section-card, .dash-card-wrap, .req-card, .filter-card, .table-card, .search-card, .form-card) {
    border: 1px solid var(--guarantee-line);
    border-radius: var(--guarantee-radius);
    box-shadow: var(--guarantee-shadow);
}

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

:where(.stats-grid, .dash-stats) .stat-card {
    min-height: 138px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 18px;
    border: 1px solid var(--guarantee-line);
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(10, 43, 78, .06);
}

.stat-num {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-wrap: anywhere;
}

:where(.form-grid, .info-grid, .req-body) {
    align-items: stretch;
}

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

.form-field {
    min-width: 0;
}

.form-field label {
    min-height: 25px;
    display: flex;
    align-items: center;
    margin-bottom: 7px;
    line-height: 1.6;
}

.form-field :where(input, select, textarea) {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #cfd9e4;
    border-radius: 11px;
    background: #fbfcfe;
    font-family: inherit;
    line-height: 1.55;
}

.form-field textarea {
    min-height: 96px;
}

.form-field small {
    min-height: 18px;
    display: block;
    margin-top: 5px;
    line-height: 1.5;
}

.info-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.info-item,
.req-info {
    min-width: 0;
    min-height: 78px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 13px 14px;
    overflow-wrap: anywhere;
    background: #f7f9fc;
    border: 1px solid #e5ebf1;
    border-radius: 11px;
}

.info-item strong,
.req-info strong {
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.req-card {
    padding: 22px;
    overflow: hidden;
}

.req-body {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0;
    background: transparent;
}

.empty-state,
.empty-msg {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px;
    color: var(--guarantee-muted);
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd7e3;
    border-radius: 14px;
}

.empty-state strong {
    color: var(--guarantee-navy);
    font-size: 1rem;
}

.table-card {
    padding: 20px;
    overflow: hidden;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e8edf2;
    border-radius: 12px;
}

.data-table {
    min-width: 980px;
}

.data-table :where(th, td) {
    height: 62px;
    padding: 11px 12px;
    vertical-align: middle;
}

.actions-cell {
    min-width: 132px;
}

.auth-shell {
    min-height: 570px;
}

.auth-intro {
    min-height: 570px;
}

.auth-panel {
    min-width: 0;
}

.auth-field input,
.auth-submit {
    min-height: 52px;
}

.entry-grid {
    align-items: stretch;
}

.entry-card {
    min-height: 440px;
}

.entry-card__body {
    display: flex;
    flex-direction: column;
}

.entry-card__body ul {
    flex: 1;
}

@media (max-width: 980px) {
    .req-body {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :where(.panel-header, .dash-header) {
        align-items: flex-start;
    }

    :where(.panel-actions, .dash-actions) {
        width: 100%;
    }
}

@media (max-width: 760px) {
    :where(.panel-section, .dash-section, .form-section) {
        padding: 86px 0 48px;
    }

    :where(.panel-section, .dash-section, .form-section) > .container,
    .dash-section .container,
    .form-section .container {
        width: min(100% - 20px, 1180px);
    }

    :where(.panel-header, .dash-header) {
        min-height: 0;
        padding: 21px 18px;
        border-radius: 16px;
    }

    :where(.panel-actions, .dash-actions) :where(a, button, form) {
        flex: 1 1 calc(50% - 6px);
    }

    :where(.panel-actions, .dash-actions) form button {
        width: 100%;
    }

    :where(.stats-grid, .dash-stats) {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    :where(.stats-grid, .dash-stats) .stat-card {
        min-height: 112px;
    }

    .form-grid,
    .info-grid,
    .req-body {
        grid-template-columns: 1fr;
    }

    .section-card,
    .dash-card-wrap,
    .req-card,
    .table-card,
    .form-card {
        padding: 18px;
        border-radius: 15px;
    }

    .info-item,
    .req-info {
        min-height: 70px;
    }

    .entry-card {
        min-height: 0;
    }
}

@media (max-width: 480px) {
    :where(.panel-actions, .dash-actions) :where(a, button, form) {
        flex-basis: 100%;
        width: 100%;
    }

    .form-field :where(input, select, textarea) {
        font-size: 16px;
    }
}
