/* Проект Портал 3.0. Сборка 0.1.7 от 03.12.2026 09:15 */

:root {
    color-scheme: light;
    --portal-bg: #f3f5f8;
    --portal-surface: #ffffff;
    --portal-text: #1b2430;
    --portal-muted: #5d6b7c;
    --portal-accent: #1f6feb;
    --portal-border: #d9e0e8;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: var(--portal-bg);
    color: var(--portal-text);
    font-family: "Onest", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.hero {
    width: 100%;
    max-width: 720px;
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 12px 32px rgba(27, 36, 48, 0.08);
}

.hero__eyebrow {
    color: var(--portal-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero__title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero__text {
    color: var(--portal-muted);
    margin-bottom: 24px;
}

.facts {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    border-top: 1px solid var(--portal-border);
}

.facts li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--portal-border);
}

.facts__key {
    color: var(--portal-muted);
}

.facts__value {
    font-weight: 600;
    text-align: right;
}

.button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--portal-accent);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.button:hover,
.button:focus {
    background: #1859c4;
}

@media (max-width: 600px) {
    .hero {
        padding: 24px;
    }

    .hero__title {
        font-size: 24px;
    }

    .facts li {
        flex-direction: column;
        gap: 2px;
    }

    .facts__value {
        text-align: left;
    }
}

.login-card {
    width: 100%;
    max-width: 520px;
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 12px 32px rgba(27, 36, 48, 0.08);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 24px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field__label {
    color: var(--portal-muted);
    font-size: 14px;
}

.field__input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    font: inherit;
    color: var(--portal-text);
    background: #ffffff;
}

.field__input:focus {
    outline: 2px solid var(--portal-accent);
    outline-offset: 1px;
}

.login-error {
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fdecea;
    color: #9b1c1c;
}

.button_secondary {
    background: #e8edf4;
    color: var(--portal-text);
}

.button_secondary:hover,
.button_secondary:focus {
    background: #d7e0ea;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .login-card {
        padding: 24px;
    }
}

/* Dashboard / T7 */
.app-shell {
    display: block;
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 16px;
}

.hero,
.login-card {
    margin-left: auto;
    margin-right: auto;
}

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

.page-head__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid_2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 20px;
}

.panel__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}

.panel__title {
    font-size: 19px;
    font-weight: 750;
}

.panel__hint,
.panel__subtitle {
    color: var(--portal-muted);
    font-size: 14px;
}

.panel__subtitle {
    margin-top: 18px;
    font-weight: 600;
}

.empty {
    color: var(--portal-muted);
    padding: 14px 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th,
.table td {
    text-align: left;
    padding: 9px 8px;
    border-bottom: 1px solid var(--portal-border);
    vertical-align: top;
}

.table th {
    color: var(--portal-muted);
    font-weight: 600;
}

.link {
    color: var(--portal-accent);
    text-decoration: none;
    font-weight: 600;
}

.link:hover {
    text-decoration: underline;
}

.form-grid {
    display: grid;
    gap: 12px;
}

.inline-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.checkbox {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: var(--portal-muted);
    font-size: 14px;
}

.button_small {
    padding: 7px 12px;
    font-size: 14px;
}

.badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    background: #e8f0fe;
    color: #1f4f9e;
    font-size: 12px;
    font-weight: 700;
}

.badge_success {
    background: #e6f6ec;
    color: #17663a;
}

.badge_warn {
    background: #fff4d6;
    color: #8a5a00;
}

.badge_muted {
    background: #edf0f3;
    color: #5d6b7c;
}

.task {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--portal-border);
}

.task:last-child {
    border-bottom: 0;
}

.task__title {
    font-weight: 700;
}

.task__meta {
    color: var(--portal-muted);
    font-size: 14px;
}

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

.comments {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    padding: 12px 0;
    border-bottom: 1px solid var(--portal-border);
}

.comment__head {
    display: flex;
    gap: 10px;
    align-items: baseline;
    flex-wrap: wrap;
}

.comment__author {
    font-weight: 700;
}

.comment__text {
    margin-top: 4px;
}

.muted {
    color: var(--portal-muted);
    font-size: 13px;
}

.timeline {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--portal-muted);
    font-size: 14px;
}

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

.stat {
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    padding: 14px;
}

.stat__value {
    font-size: 26px;
    font-weight: 800;
}

.stat__label {
    color: var(--portal-muted);
    font-size: 12px;
    text-transform: uppercase;
}

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

    .page-head,
    .task {
        flex-direction: column;
    }
}

.notice {
    margin-bottom: 18px;
    padding: 12px 16px;
    border: 1px solid #b7dfc5;
    border-radius: 10px;
    background: #eaf7ef;
    color: #17663a;
}
