/* Основные стили проекта: структура страниц, формы и личный кабинет. */

/* Базовые правила */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html {
    color-scheme: light;
}

html[data-theme="dark"] {
    color-scheme: dark;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #10234d;
    margin: 0;
    padding: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
    overflow-x: hidden;
}

main { padding-bottom: 50px; }

a { color: inherit; }

p {
    color: #44546f;
    font-size: 18px;
    line-height: 1.6;
}

h1, h2, h3 { color: #10234d; }

h1 {
    font-size: 44px;
    line-height: 1.12;
    margin: 0 0 18px;
}

h2 {
    font-size: 28px;
    margin: 0 0 24px;
}

h3 {
    font-size: 20px;
    margin: 0 0 10px;
}

img,
svg,
video {
    max-width: 100%;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

hr {
    margin: 35px 0;
    border: none;
    border-top: 1px solid #d9dfe8;
}

/* Шапка сайта */

.modern-header {
    background: #ffffff;
    border-bottom: 1px solid #e8edf6;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.header-container {
    max-width: 1380px;
    min-height: 72px;
    margin: 0 auto;
    padding: 0 34px;

    display: grid;
    grid-template-columns: 360px 1fr 380px;
    align-items: center;
    gap: 18px;
}

/* Логотип */

.header-logo {
    display: flex;
    align-items: center;
    gap: 14px;

    text-decoration: none;
    color: #10234d;

    white-space: nowrap;
}

.logo-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;

    border-radius: 12px;
    background: linear-gradient(135deg, #1f3c88, #294fb3);

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 6px 16px rgba(31, 60, 136, 0.18);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

.header-logo-text {
    font-size: 19px;
    font-weight: 700;
    color: #10234d;
    letter-spacing: -0.2px;
}

/* Основная навигация */

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 46px;
}

.main-nav a {
    position: relative;

    color: #111827;
    text-decoration: none;

    font-size: 16px;
    font-weight: 600;

    transition: 0.2s ease;
}

.main-nav a:hover {
    color: #1f3c88;
}

.main-nav a.active {
    color: #1f3c88;
}

.main-nav a.active::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: -29px;

    height: 3px;
    border-radius: 999px;

    background: #1f3c88;
}

/* Правая часть шапки */

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border: 1px solid #c8d4ea;
    border-radius: 50%;
    background: #ffffff;
    color: #1f3c88;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    transition: 0.2s ease;
}

.theme-toggle:hover {
    background: #f5f8ff;
}

/* Переключатель языка */

.language-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 104px;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #dbe7f8;
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 4px 12px rgba(25, 62, 112, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.language-box:hover,
.language-box:focus-within {
    border-color: #b9ccec;
    box-shadow: 0 6px 18px rgba(25, 62, 112, 0.08);
}

.language-globe {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
}

.language-globe svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.language-box::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    pointer-events: none;
}

.language-box select {
    appearance: none;
    -webkit-appearance: none;
    width: auto;
    min-width: 31px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    font-weight: 800;
    color: #111827;
    cursor: pointer;
    outline: none;
}

/* Кнопки в шапке */

.header-login,
.header-register {
    height: 46px;
    min-width: 118px;
    padding: 0 24px;

    border-radius: 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    font-size: 15px;
    font-weight: 700;

    transition: 0.2s ease;
}

.header-login {
    background: #ffffff;
    color: #1f3c88;
    border: 1px solid #c8d4ea;
}

.header-login:hover {
    background: #f5f8ff;
}

.header-register {
    background: #1f3c88;
    color: #ffffff;
    border: 1px solid #1f3c88;
}

.header-register:hover {
    background: #17316f;
}

/* Общие контейнеры */
.container {
    max-width: 1180px;
    margin: 34px auto 60px;
    padding: 36px;
    background: #ffffff;
    border: 1px solid #e3e9f4;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.content-card {
    background: #f9fafc;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 22px;
    border: 1px solid #e3e7ef;
}

/* Кнопки и ссылки действий */
.portfolio-button,
.small-action-button,
.small-delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.portfolio-button {
    min-height: 44px;
    padding: 0 22px;
    background: #1f3c88;
    color: #ffffff;
    line-height: 1.2;
    text-align: center;
}

.portfolio-button:hover,
.small-action-button:hover { background: #17316f; }

.secondary-button {
    background: #ffffff;
    color: #1f3c88;
    border: 1px solid #b8c7e6;
}

.secondary-button:hover {
    background: #eef4ff;
    color: #17316f;
}

.small-action-button {
    min-height: 38px;
    padding: 0 14px;
    margin-right: 10px;
    background: #1f3c88;
    color: #ffffff;
}

.small-delete-button {
    min-height: 38px;
    padding: 0 14px;
    background: #c0392b;
    color: #ffffff;
}

.small-delete-button:hover { background: #992d22; }

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #1f3c88;
    text-decoration: none;
    font-weight: 700;
}

.back-link:hover { text-decoration: underline; }

/* Главный блок на главной странице */
.hero-section {
    max-width: 1180px;
    margin: 34px auto;
    padding: 42px 48px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(31, 60, 136, 0.08);
    background:
        radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.3), transparent 30%),
        linear-gradient(135deg, #eef4ff, #dce9ff);
    box-shadow: 0 18px 45px rgba(31, 60, 136, 0.13);
}

.hero-content {
    flex: 1;
    max-width: 560px;
}

.hero-content h1 {
    font-size: 44px;
    line-height: 1.12;
    margin-bottom: 18px;
    letter-spacing: -0.8px;
}

.hero-content p {
    max-width: 520px;
    margin: 0;
    color: #44546f;
    font-size: 18px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.hero-illustration {
    flex: 0 0 500px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-illustration img {
    width: 500px;
    max-width: 500px;
    height: auto;
    display: block;
    transform: translateX(-15px) scale(1.08);
}

/* Статистика на главной странице */
.stats-section {
    max-width: 1180px;
    margin: -8px auto 34px;
}

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

.stat-card {
    min-height: 118px;
    padding: 22px;
    border: 1px solid #e3e9f4;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.stat-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #eef4ff;
    color: #1f3c88;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.stat-content {
    min-width: 0;
    text-align: right;
}

.stat-content strong {
    display: block;
    color: #10234d;
    font-size: 36px;
    line-height: 1;
    font-weight: 800;
}

.stat-content span {
    display: block;
    margin-top: 8px;
    color: #5f6f89;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

/* Поля форм */
.form-input,
.auth-form input,
.login-form input {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    border: 1px solid #ccd3df;
    border-radius: 10px;
    font-size: 16px;
    background: #ffffff;
}

.form-input:focus,
.auth-form input:focus,
.login-form input:focus {
    outline: none;
    border-color: #1f3c88;
    box-shadow: 0 0 0 3px rgba(31, 60, 136, 0.12);
}

.form-group {
    display: grid;
    grid-template-columns: 140px minmax(0, 560px);
    align-items: center;
    margin-bottom: 22px;
}

.form-group label {
    margin: 0;
    font-weight: 700;
}

.form-help {
    grid-column: 2;
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #7d7d7d;
    line-height: 1.5;
}

.auth-form {
    max-width: 560px;
    margin: 0 auto;
}

.auth-container {
    max-width: 760px;
}

.auth-form .form-group {
    display: block;
    margin-bottom: 22px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #222;
}

.form-errors {
    margin-top: 8px;
    color: #c0392b;
    font-size: 14px;
    font-weight: 700;
}

.form-errors-block {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #f0b8b0;
    background: #fff1ef;
    margin-bottom: 18px;
}

.auth-helper {
    margin-top: 22px;
}

.auth-help {
    color: #6b7280;
}

.password-field {
    position: relative !important;
    display: block !important;
    width: 100%;
}

.password-field .form-input {
    min-width: 0;
    width: 100%;
    padding-right: 58px !important;
}

.password-toggle {
    position: absolute !important;
    top: 50% !important;
    right: 8px !important;
    z-index: 2;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 10px;
    background: transparent !important;
    color: #5d6d84;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transform: translateY(-50%) !important;
    overflow: hidden;
    transition: color 0.2s ease, background 0.2s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: #eef4ff;
    color: #1f3c88;
    outline: none;
}

.password-eye {
    width: 22px !important;
    height: 22px !important;
    max-width: none !important;
    flex: 0 0 22px;
    display: block;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-eye-open,
.password-toggle.is-visible .password-eye-closed {
    display: none;
}

.password-eye-closed,
.password-toggle.is-visible .password-eye-open {
    display: block;
}

.form-errors ul {
    margin: 0;
    padding-left: 18px;
}

.form-errors li {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    list-style: disc;
}

/* Личный кабинет */
.dashboard-layout {
    width: min(1380px, calc(100% - 48px));
    margin: 28px auto 60px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.dashboard-sidebar {
    position: sticky;
    top: 92px;
    min-height: calc(100vh - 120px);
    padding: 24px;
    border-radius: 20px;
    background: #111827;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(17, 24, 39, 0.22);
}

.dashboard-sidebar-brand {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 28px;
}

.dashboard-sidebar-brand strong,
.dashboard-sidebar-brand span {
    display: block;
}

.dashboard-sidebar-brand strong {
    color: #ffffff;
    font-size: 17px;
    line-height: 1.2;
}

.dashboard-sidebar-brand span {
    margin-top: 4px;
    color: #9ca3af;
    font-size: 13px;
}

.dashboard-sidebar-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #3f6fd1;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
}

.dashboard-nav,
.dashboard-item-actions {
    display: grid;
    gap: 10px;
}

.dashboard-nav {
    margin-bottom: 28px;
}

.dashboard-nav a {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    color: #d1d5db;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s ease;
}

.dashboard-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.dashboard-main {
    min-width: 0;
    display: grid;
    gap: 22px;
}

.dashboard-topbar,
.dashboard-profile-card,
.dashboard-section,
.dashboard-stat-card {
    border: 1px solid #e3e9f4;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.dashboard-topbar {
    min-height: 86px;
    padding: 20px 24px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.dashboard-topbar h1,
.dashboard-section h2,
.dashboard-profile-card h2 {
    margin: 0;
}

.dashboard-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-topbar-button,
.dashboard-primary-action,
.dashboard-secondary-action,
.dashboard-section-link,
.dashboard-edit-button,
.dashboard-delete-button {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    transition: 0.2s ease;
}

.dashboard-topbar-button,
.dashboard-primary-action,
.dashboard-section-link,
.dashboard-edit-button {
    background: #1f3c88;
    color: #ffffff;
    border: 1px solid #1f3c88;
}

.dashboard-topbar-button:hover,
.dashboard-primary-action:hover,
.dashboard-section-link:hover,
.dashboard-edit-button:hover {
    background: #17316f;
    color: #ffffff;
}

.dashboard-secondary-action {
    background: #ffffff;
    color: #1f3c88;
    border: 1px solid #b8c7e6;
}

.dashboard-secondary-action:hover {
    background: #eef4ff;
    color: #17316f;
}

.dashboard-delete-button {
    background: #fff5f3;
    color: #b42318;
    border: 1px solid #f3b8b0;
}

.dashboard-delete-button:hover {
    background: #c0392b;
    color: #ffffff;
    border-color: #c0392b;
}

.dashboard-profile-card {
    padding: 26px;
    border-radius: 22px;
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr) 180px;
    gap: 24px;
    align-items: center;
}

.dashboard-profile-media {
    display: flex;
    justify-content: center;
}

.dashboard-avatar {
    width: 118px;
    height: 118px;
    border-radius: 28px;
    border: 4px solid #eef4ff;
    object-fit: cover;
    display: block;
}

.dashboard-avatar-placeholder {
    background: #1f3c88;
    color: #ffffff;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    font-weight: 800;
}

.dashboard-chip {
    display: inline-flex;
    min-height: 28px;
    padding: 0 10px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1f3c88;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
}

.dashboard-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 16px;
}

.dashboard-profile-meta span {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f5f7fb;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
}

.dashboard-profile-text strong {
    display: block;
    margin-bottom: 6px;
    color: #10234d;
    font-size: 14px;
}

.dashboard-profile-text p {
    margin: 0;
    color: #5f6f89;
    font-size: 16px;
}

.dashboard-profile-actions {
    display: grid;
    gap: 10px;
}

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

.dashboard-stat-card {
    min-height: 138px;
    padding: 20px;
    border-radius: 18px;
    color: #10234d;
    text-decoration: none;
    display: grid;
    align-content: space-between;
}

.dashboard-stat-card span {
    color: #6b7280;
    font-size: 14px;
    font-weight: 800;
}

.dashboard-stat-card strong {
    color: #10234d;
    font-size: 42px;
    line-height: 1;
}

.dashboard-stat-card small {
    color: #5f6f89;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-section {
    padding: 24px;
    border-radius: 20px;
}

.dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.dashboard-items {
    display: grid;
    gap: 14px;
}

.dashboard-item-card {
    padding: 18px;
    border: 1px solid #e3e9f4;
    border-radius: 16px;
    background: #f9fafc;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 18px;
    align-items: start;
}

.dashboard-item-content {
    min-width: 0;
    overflow-wrap: anywhere;
}

.dashboard-item-content h3 {
    margin-bottom: 12px;
}

.dashboard-item-content p {
    margin: 8px 0;
    color: #4b5563;
    font-size: 16px;
}

.dashboard-empty {
    padding: 18px;
    border: 1px dashed #c8d4ea;
    border-radius: 14px;
    color: #6b7280;
    background: #f9fafc;
    font-weight: 700;
}

html[data-theme="dark"] .dashboard-topbar,
html[data-theme="dark"] .dashboard-profile-card,
html[data-theme="dark"] .dashboard-section,
html[data-theme="dark"] .dashboard-stat-card {
    background: #171c22;
    border-color: #2a333d;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .dashboard-eyebrow,
html[data-theme="dark"] .dashboard-stat-card span,
html[data-theme="dark"] .dashboard-stat-card small,
html[data-theme="dark"] .dashboard-profile-text p,
html[data-theme="dark"] .dashboard-item-content p,
html[data-theme="dark"] .dashboard-empty {
    color: #b8c2cf;
}

html[data-theme="dark"] .dashboard-profile-text strong,
html[data-theme="dark"] .dashboard-stat-card strong {
    color: #f4f7fb;
}

html[data-theme="dark"] .dashboard-chip,
html[data-theme="dark"] .dashboard-profile-meta span {
    background: #1f2730;
    color: #dbe8ff;
}

html[data-theme="dark"] .dashboard-secondary-action {
    background: #1f2730;
    color: #dbe8ff;
    border-color: #3a4654;
}

html[data-theme="dark"] .dashboard-secondary-action:hover {
    background: #27313c;
}

html[data-theme="dark"] .dashboard-item-card,
html[data-theme="dark"] .dashboard-empty {
    background: #1d232b;
    border-color: #2f3945;
}

html[data-theme="dark"] .dashboard-delete-button {
    background: #351b1b;
    border-color: #6a3230;
    color: #ffb0a8;
}

html[data-theme="dark"] .dashboard-delete-button:hover {
    background: #c0392b;
    border-color: #c0392b;
    color: #ffffff;
}

@media (max-width: 1100px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: static;
        min-height: 0;
    }

    .dashboard-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dashboard-profile-card {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .dashboard-profile-actions {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .dashboard-layout {
        width: calc(100% - 24px);
        margin: 18px 12px 34px;
        gap: 16px;
    }

    .dashboard-sidebar,
    .dashboard-topbar,
    .dashboard-profile-card,
    .dashboard-section {
        border-radius: 16px;
    }

    .dashboard-sidebar {
        padding: 18px;
    }

    .dashboard-nav,
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-nav a {
        justify-content: center;
        text-align: center;
    }

    .dashboard-topbar,
    .dashboard-section-header {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dashboard-topbar-button,
    .dashboard-section-link {
        width: 100%;
    }

    .dashboard-profile-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px;
    }

    .dashboard-profile-meta {
        justify-content: center;
    }

    .dashboard-profile-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-item-card {
        grid-template-columns: 1fr;
    }

    .dashboard-item-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .dashboard-layout {
        width: calc(100% - 16px);
        margin-left: 8px;
        margin-right: 8px;
    }

    .dashboard-sidebar-brand {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .dashboard-sidebar-mark {
        width: 42px;
        height: 42px;
    }

    .dashboard-stat-card {
        min-height: 116px;
    }
}

/* Поиск и фильтры */
.search-form {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 0.9fr auto auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 26px;
}

.search-field { position: relative; }

.search-field .form-input {
    width: 100%;
    max-width: none;
    height: 48px;
    margin: 0;
    padding-left: 48px;
    border: 1px solid #d5deec;
    border-radius: 12px;
    color: #111827;
    font-size: 15px;
}

.field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #5f6f89;
    z-index: 2;
}

.field-icon svg,
.student-icon svg,
.search-button svg,
.reset-button svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
}

.search-button,
.reset-button {
    height: 48px;
    margin: 0;
    padding: 0 24px;
    gap: 10px;
}

/* Карточки студентов */
.student-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.student-card {
    min-height: 185px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e1e8f2;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);

    display: grid;
    grid-template-columns: 92px 1fr;
    column-gap: 20px;
    align-items: center;
}

.student-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 3px solid #dbe7ff;
    object-fit: cover;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    display: block;
    margin-bottom: 20px;
    border-radius: 50%;
    border: 3px solid #dbe7ff;
    object-fit: cover;
}

.student-info {
    min-width: 0;
}

.student-info,
.content-card,
.container {
    overflow-wrap: anywhere;
}

.student-info h3 {
    margin: 0 0 10px;
    color: #10234d;
    font-size: 20px;
    line-height: 1.2;
}

.student-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
    color: #5f6f89;
    font-size: 15px;
    line-height: 1.35;
}

.student-icon,
.student-icon svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
    color: #5f6f89;
    fill: currentColor;
}

.student-open-btn {
    width: 180px;
    height: 38px;
    margin-top: 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 1px solid #1f3c88;
    border-radius: 8px;
    background: #ffffff;
    color: #1f3c88;

    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.student-open-btn:hover {
    background: #1f3c88;
    color: #ffffff;
}

.arrow-icon {
    font-size: 18px;
    line-height: 1;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.pagination a,
.pagination span {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #d5deec;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f3c88;
    text-decoration: none;
    font-weight: 700;
    background: #ffffff;
}

.pagination a:hover { background: #eef4ff; }

.pagination .active-page {
    background: #1f3c88;
    color: #ffffff;
    border-color: #1f3c88;
}

/* Страницы удаления */
.delete-card {
    max-width: 700px;
    margin: 80px auto;
}

.delete-card form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.delete-card .small-delete-button,
.delete-card .portfolio-button {
    width: 120px;
    min-width: 120px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1;
    text-align: center;
}

.delete-card .small-delete-button { border: 1px solid #c0392b; }

.delete-card .portfolio-button { border: 1px solid #1f3c88; }

/* Сообщения и ошибки */
.success-message {
    background: #e8f7ee;
    color: #1f7a3f;
    border: 1px solid #b7e3c4;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 700;
}

.error-page {
    text-align: center;
    padding-top: 70px;
    padding-bottom: 70px;
}

.error-page h1 {
    font-size: 96px;
    margin-bottom: 10px;
    color: #1f2937;
}

.error-page h2 {
    font-size: 28px;
    margin-bottom: 14px;
}

.error-page p {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 28px;
}

/* Карточки возможностей на главной странице */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 20px;
}

.feature-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Адаптация под разные экраны */
@media (max-width: 1100px) {
    .header-container {
        grid-template-columns: 1fr;
        height: auto;
        padding: 18px 24px;
        justify-items: center;
        gap: 16px;
    }

    .main-nav,
    .header-right {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav a.active::after {
        bottom: -8px;
    }

    .hero-section {
        margin-left: 16px;
        margin-right: 16px;
    }

    .stats-section {
        margin-left: 16px;
        margin-right: 16px;
    }

    .hero-illustration {
        flex: 0 0 380px;
    }

    .hero-illustration img {
        width: 380px;
        max-width: 380px;
    }

    .student-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        align-items: flex-start;
        padding: 34px;
    }

    .hero-illustration {
        display: none;
    }

    .search-form {
        grid-template-columns: 1fr 1fr;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

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

    main {
        padding-bottom: 28px;
    }

    .modern-header {
        position: static;
    }

    .header-container {
        padding: 14px 14px 16px;
        gap: 14px;
    }

    .header-logo {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 10px;
    }

    .logo-icon svg {
        width: 21px;
        height: 21px;
    }

    .header-logo-text {
        font-size: 16px;
        white-space: normal;
        text-align: center;
    }

    .main-nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .main-nav a {
        min-height: 38px;
        padding: 0 8px;
        border: 1px solid #d5deec;
        border-radius: 10px;
        background: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        text-align: center;
    }

    .main-nav a.active::after {
        display: none;
    }

    .header-right {
        width: 100%;
        display: grid;
        grid-template-columns: 42px minmax(104px, auto) 1fr 1fr;
        gap: 8px;
        align-items: center;
    }

    .language-box {
        height: 46px;
        min-width: 104px;
        padding: 0 13px;
        justify-content: center;
    }

    .header-login,
    .header-register {
        width: 100%;
        min-width: 0;
        height: 42px;
        padding: 0 10px;
        border-radius: 10px;
        font-size: 14px;
    }

    .container,
    .hero-section,
    .stats-section {
        width: calc(100% - 24px);
        margin: 18px 12px 34px;
    }

    .container,
    .hero-section {
        padding: 20px;
        border-radius: 14px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        min-height: 96px;
        padding: 18px;
        border-radius: 16px;
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 14px;
    }

    .stat-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    .stat-content strong {
        font-size: 32px;
    }

    h1,
    .hero-content h1 {
        font-size: 30px;
        line-height: 1.15;
    }

    h2 {
        font-size: 24px;
        margin-bottom: 18px;
    }

    p {
        font-size: 16px;
        line-height: 1.55;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
    }

    .hero-actions .portfolio-button,
    .container > .portfolio-button {
        width: 100%;
    }

    .search-form,
    .student-list,
    .features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .search-button,
    .reset-button {
        width: 100%;
        padding: 0 16px;
    }

    .student-card {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 14px;
        min-height: 0;
        padding: 18px;
        text-align: center;
    }

    .student-meta {
        justify-content: center;
    }

    .student-open-btn {
        width: 100%;
        max-width: 240px;
    }

    .form-group {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .form-help {
        grid-column: 1;
    }

    .content-card {
        padding: 18px;
        border-radius: 10px;
    }

    .small-action-button,
    .small-delete-button {
        width: 100%;
        margin: 8px 0 0;
    }

    .delete-card {
        margin-top: 34px;
    }

    .delete-card form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .delete-card .small-delete-button,
    .delete-card .portfolio-button {
        width: 100%;
        min-width: 0;
    }

    .profile-avatar {
        width: 112px;
        height: 112px;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 420px) {
    .header-right {
        grid-template-columns: 42px 1fr;
    }

    .language-box {
        justify-content: center;
    }

    .header-login,
    .header-register {
        grid-column: span 1;
    }

    .container,
    .hero-section,
    .stats-section {
        width: calc(100% - 16px);
        margin-left: 8px;
        margin-right: 8px;
    }

    .container,
    .hero-section {
        padding: 16px;
    }

    h1,
    .hero-content h1 {
        font-size: 27px;
    }
}

/* Темная тема */
html[data-theme="dark"] body {
    background: #101418;
    color: #edf2f7;
}

html[data-theme="dark"] .modern-header {
    background: #171c22;
    border-bottom-color: #2a333d;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .header-logo,
html[data-theme="dark"] .header-logo-text,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3 {
    color: #f4f7fb;
}

html[data-theme="dark"] p,
html[data-theme="dark"] .student-meta,
html[data-theme="dark"] .auth-help,
html[data-theme="dark"] .form-help {
    color: #b8c2cf;
}

html[data-theme="dark"] .main-nav a,
html[data-theme="dark"] .language-box,
html[data-theme="dark"] .language-box select {
    color: #e4e9f0;
}

html[data-theme="dark"] .main-nav a,
html[data-theme="dark"] .language-box {
    background: #1f2730;
    border-color: #3a4654;
}

html[data-theme="dark"] .main-nav a:hover,
html[data-theme="dark"] .main-nav a.active {
    color: #8fb4ff;
}

html[data-theme="dark"] .main-nav a.active::after {
    background: #8fb4ff;
}

html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .header-login,
html[data-theme="dark"] .password-toggle,
html[data-theme="dark"] .secondary-button,
html[data-theme="dark"] .student-open-btn,
html[data-theme="dark"] .pagination a,
html[data-theme="dark"] .pagination span {
    background: #1f2730;
    color: #dbe8ff;
    border-color: #3a4654;
}

html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .header-login:hover,
html[data-theme="dark"] .password-toggle:hover,
html[data-theme="dark"] .secondary-button:hover,
html[data-theme="dark"] .pagination a:hover {
    background: #27313c;
}

html[data-theme="dark"] .header-register,
html[data-theme="dark"] .portfolio-button,
html[data-theme="dark"] .small-action-button,
html[data-theme="dark"] .pagination .active-page {
    background: #3f6fd1;
    color: #ffffff;
    border-color: #3f6fd1;
}

html[data-theme="dark"] .header-register:hover,
html[data-theme="dark"] .portfolio-button:hover,
html[data-theme="dark"] .small-action-button:hover {
    background: #345fb8;
}

html[data-theme="dark"] .container,
html[data-theme="dark"] .student-card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .stat-card {
    background: #171c22;
    border-color: #2a333d;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .stat-icon {
    background: #1f2730;
    color: #9fc1ff;
}

html[data-theme="dark"] .stat-content strong {
    color: #f4f7fb;
}

html[data-theme="dark"] .stat-content span {
    color: #b8c2cf;
}

html[data-theme="dark"] .content-card {
    background: #1d232b;
    border-color: #2f3945;
}

html[data-theme="dark"] .hero-section {
    background:
        radial-gradient(circle at 85% 30%, rgba(143, 180, 255, 0.14), transparent 32%),
        linear-gradient(135deg, #1b2430, #15201b);
    border-color: #2d3a48;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .form-input,
html[data-theme="dark"] .auth-form input,
html[data-theme="dark"] .login-form input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
    background: #12171d;
    border-color: #3a4654;
    color: #f4f7fb;
}

html[data-theme="dark"] .form-input::placeholder {
    color: #818b98;
}

html[data-theme="dark"] .form-input:focus,
html[data-theme="dark"] .auth-form input:focus,
html[data-theme="dark"] .login-form input:focus {
    border-color: #8fb4ff;
    box-shadow: 0 0 0 3px rgba(143, 180, 255, 0.18);
}

html[data-theme="dark"] hr {
    border-top-color: #2f3945;
}

html[data-theme="dark"] .student-avatar,
html[data-theme="dark"] .profile-avatar {
    border-color: #3a4654;
}

html[data-theme="dark"] .student-icon,
html[data-theme="dark"] .student-icon svg,
html[data-theme="dark"] .field-icon {
    color: #9eacbc;
    fill: currentColor;
}

html[data-theme="dark"] .student-open-btn:hover {
    background: #3f6fd1;
    color: #ffffff;
}

html[data-theme="dark"] .back-link,
html[data-theme="dark"] a {
    color: #9fc1ff;
}

html[data-theme="dark"] .header-register,
html[data-theme="dark"] .portfolio-button,
html[data-theme="dark"] .small-action-button,
html[data-theme="dark"] .small-delete-button {
    color: #ffffff;
}

html[data-theme="dark"] .header-login,
html[data-theme="dark"] .secondary-button,
html[data-theme="dark"] .student-open-btn {
    color: #dbe8ff;
}

html[data-theme="dark"] .form-errors {
    color: #ff9a8f;
}

html[data-theme="dark"] .form-errors-block {
    background: #351b1b;
    border-color: #6a3230;
}

html[data-theme="dark"] .success-message {
    background: #163120;
    color: #96e8b2;
    border-color: #2d6540;
}

/* Макет личного кабинета студента */
.dashboard-shell {
    min-height: 100vh;
    background: #f4f7fb;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
}

.dashboard-shell .dashboard-sidebar {
    position: sticky;
    top: 0;
    min-height: 100vh;
    padding: 30px 20px;
    border-radius: 0;
    background: linear-gradient(180deg, #102447 0%, #08204a 48%, #071b3d 100%);
    color: #ffffff;
    box-shadow: 18px 0 42px rgba(8, 28, 64, 0.18);
}

.dashboard-brand {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 56px;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dashboard-brand strong {
    display: block;
    font-size: 17px;
    line-height: 1.1;
}

.dashboard-brand-shield {
    width: 56px;
    height: 64px;
    border: 2px solid rgba(255, 255, 255, 0.86);
    border-radius: 18px 18px 22px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
}

.dashboard-shell .dashboard-nav {
    display: grid;
    gap: 14px;
    margin: 0;
}

.dashboard-shell .dashboard-nav a {
    min-height: 58px;
    padding: 0 18px;
    border-radius: 10px;
    color: #f5f8ff;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-shell .dashboard-nav a:hover,
.dashboard-shell .dashboard-nav a.active {
    background: linear-gradient(135deg, #1e63d6, #173d8e);
    color: #ffffff;
}

.dashboard-nav-icon {
    width: 24px;
    display: inline-flex;
    justify-content: center;
    font-size: 22px;
}

.dashboard-help-card {
    margin-top: 88px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(35, 79, 156, 0.42);
}

.dashboard-help-card strong {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 15px;
}

.dashboard-help-card p {
    margin: 0 0 14px;
    color: #d7e2f6;
    font-size: 14px;
    line-height: 1.45;
}

.dashboard-help-card a {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.dashboard-shell .dashboard-main {
    display: block;
    min-width: 0;
    padding: 0 28px 34px;
}

.dashboard-shell .dashboard-topbar {
    min-height: 86px;
    margin: 0 -28px 24px;
    padding: 0 36px;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 20px rgba(15, 31, 66, 0.08);
}

.dashboard-shell .dashboard-topbar h1 {
    margin: 0;
    color: #0f1d3a;
    font-size: 22px;
}

.dashboard-topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dashboard-language,
.dashboard-current-link,
.dashboard-logout,
.dashboard-outline-button,
.dashboard-panel-header a,
.dashboard-stat-card a,
.dashboard-list-row a {
    text-decoration: none;
    font-weight: 800;
}

.dashboard-language {
    color: #0f1d3a;
}

.dashboard-current-link {
    min-height: 44px;
    padding: 0 24px;
    border: 1px solid #d8e2f2;
    border-radius: 8px;
    color: #0f1d3a;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
}

.dashboard-logout {
    min-height: 48px;
    padding: 0 32px;
    border-radius: 8px;
    color: #ffffff;
    background: #0c4fc1;
    display: inline-flex;
    align-items: center;
}

.dashboard-shell .dashboard-profile-card {
    margin-bottom: 20px;
    padding: 28px 26px;
    border: 1px solid #dde6f2;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 31, 66, 0.07);
    grid-template-columns: 170px minmax(0, 1fr) 250px;
}

.dashboard-shell .dashboard-avatar {
    width: 142px;
    height: 142px;
    border-radius: 999px;
    border: 8px solid #f1f5fb;
}

.dashboard-shell .dashboard-avatar-placeholder {
    background: #184a98;
}

.dashboard-shell .dashboard-profile-content h2 {
    margin: 0 0 8px;
    color: #102044;
    font-size: 30px;
    line-height: 1.15;
}

.dashboard-profile-subtitle {
    margin: 0 0 14px;
    color: #28405f;
    font-size: 17px;
}

.dashboard-profile-bio {
    max-width: 560px;
    margin: 0 0 18px;
    color: #2e425d;
    font-size: 16px;
    line-height: 1.6;
}

.dashboard-shell .dashboard-profile-meta {
    margin: 0;
    gap: 24px;
}

.dashboard-shell .dashboard-profile-meta span {
    padding: 0;
    min-height: 0;
    border-radius: 0;
    background: transparent;
    color: #435674;
    font-size: 15px;
}

.dashboard-outline-button {
    justify-self: end;
    min-height: 48px;
    padding: 0 28px;
    border: 1px solid #a9bfe5;
    border-radius: 8px;
    color: #0c4fc1;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dashboard-outline-button:hover,
.dashboard-current-link:hover {
    background: #f2f6ff;
}

.dashboard-shell .dashboard-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.dashboard-shell .dashboard-stat-card {
    min-height: 148px;
    padding: 20px 22px;
    border: 1px solid #dde6f2;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 31, 66, 0.07);
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    gap: 8px 18px;
    align-items: center;
}

.dashboard-stat-icon {
    grid-row: 1 / 3;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 900;
}

.dashboard-stat-icon-blue { background: #e8f0ff; color: #0c56c9; }
.dashboard-stat-icon-green { background: #e4f8ef; color: #0e9a6e; }
.dashboard-stat-icon-gold { background: #fff4db; color: #e59a12; }
.dashboard-stat-icon-purple { background: #f0e7ff; color: #7849d8; }

.dashboard-shell .dashboard-stat-card strong {
    display: block;
    color: #0d1c3d;
    font-size: 34px;
    line-height: 1;
}

.dashboard-shell .dashboard-stat-card span {
    color: #2e425d;
    font-size: 16px;
    font-weight: 500;
}

.dashboard-stat-card a {
    color: #0c4fc1;
    font-size: 14px;
}

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

.dashboard-panel {
    min-width: 0;
    padding: 26px;
    border: 1px solid #dde6f2;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 31, 66, 0.07);
}

.dashboard-panel-wide {
    grid-column: 1 / -1;
}

.dashboard-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.dashboard-panel-header h2 {
    margin: 0;
    color: #0f1d3a;
    font-size: 22px;
}

.dashboard-panel-header a {
    color: #0c4fc1;
    font-size: 14px;
    white-space: nowrap;
}

.dashboard-list {
    display: grid;
}

.dashboard-list-row {
    min-height: 76px;
    padding: 12px 0;
    border-bottom: 1px solid #e6edf7;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.dashboard-list-row:last-child {
    border-bottom: 0;
}

.dashboard-list-thumb {
    width: 78px;
    height: 56px;
    border-radius: 8px;
    background: #eef3fa;
    color: #62708a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 900;
}

.dashboard-list-row h3 {
    margin: 0 0 6px;
    color: #111f3d;
    font-size: 17px;
}

.dashboard-list-row p {
    margin: 0;
    color: #445875;
    font-size: 15px;
}

.dashboard-list-row time {
    color: #334865;
    font-size: 14px;
    white-space: nowrap;
}

.dashboard-list-row a {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: #0d7a59;
    background: #def7eb;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
}

.dashboard-list-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 26px;
}

.dashboard-shell .dashboard-empty {
    padding: 28px;
    border: 1px dashed #bdcce1;
    border-radius: 10px;
    background: #f7faff;
    color: #61708a;
}

@media (max-width: 1180px) {
    .dashboard-shell {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .dashboard-shell .dashboard-stats,
    .dashboard-overview-grid,
    .dashboard-list-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .dashboard-shell {
        display: block;
    }

    .dashboard-shell .dashboard-sidebar {
        position: static;
        min-height: 0;
    }

    .dashboard-shell .dashboard-main {
        padding: 0 16px 28px;
    }

    .dashboard-shell .dashboard-topbar {
        margin: 0 -16px 18px;
        padding: 18px;
        display: grid;
        gap: 14px;
    }

    .dashboard-topbar-actions {
        flex-wrap: wrap;
    }

    .dashboard-shell .dashboard-profile-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .dashboard-outline-button {
        justify-self: stretch;
    }

    .dashboard-shell .dashboard-profile-meta {
        justify-content: center;
    }

    .dashboard-shell .dashboard-stats,
    .dashboard-overview-grid,
    .dashboard-list-compact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .dashboard-list-row {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .dashboard-list-row a,
    .dashboard-list-row time {
        grid-column: 2;
        justify-self: start;
    }

    .dashboard-list-thumb {
        width: 52px;
        height: 52px;
    }
}
