/* ==========================================================================
   Еженедельный отчёт Корпоративного университета
   ========================================================================== */

:root {
    --navy: #16243f;
    --navy-600: #22355c;
    --navy-400: #3d5382;
    --ink: #1f2937;
    --muted: #6b7280;
    --muted-soft: #9aa3b2;
    --line: #e2e6ee;
    --line-strong: #cbd3e1;
    --bg: #f4f6fa;
    --surface: #ffffff;
    --surface-alt: #f8fafc;

    --copper: #c2703f;
    --copper-dark: #a25a2f;
    --copper-soft: #f6e8df;
    --teal: #157a72;
    --teal-soft: #dcefed;
    --green: #2f8f5b;
    --amber: #d99b2b;
    --red: #c0392b;
    --red-soft: #fdeceb;

    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 2px rgba(22, 36, 63, .06), 0 4px 16px rgba(22, 36, 63, .06);
    --shadow-sm: 0 1px 2px rgba(22, 36, 63, .08);

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-num: "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
}

a { color: var(--navy-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.25; }

/* --------------------------------------------------------------------------
   Каркас приложения: левое меню и рабочая область
   -------------------------------------------------------------------------- */

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex: 0 0 264px;
    flex-direction: column;
    width: 264px;
    height: 100vh;
    overflow-y: auto;
    color: #c7d0df;
    background: #1e293b;
    border-right: 1px solid rgba(255, 255, 255, .06);
}

.sidebar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 16px 22px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.sidebar__brand:hover { color: #fff; text-decoration: none; }
.sidebar__brand strong { display: block; max-width: 170px; font-size: 14px; line-height: 1.2; }
.sidebar__brand small { display: block; margin-top: 3px; color: #94a3b8; font-size: 11px; line-height: 1.2; }
.sidebar__mark {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 9px;
    color: #fff;
    background: var(--copper);
    box-shadow: 0 7px 18px rgba(194, 112, 63, .22);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .08em;
}

.sidebar__nav { padding: 19px 12px 26px; }
.sidebar__group + .sidebar__group { margin-top: 24px; }
.sidebar__caption {
    display: block;
    padding: 0 10px 7px;
    color: #7f8da3;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.sidebar__nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    margin: 2px 0;
    padding: 8px 10px;
    border-radius: 7px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    transition: background .15s, color .15s, transform .15s;
}
.sidebar__nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
    text-decoration: none;
}
.sidebar__nav a.is-active {
    color: #fff;
    background: var(--copper);
    box-shadow: 0 7px 16px rgba(0, 0, 0, .16);
}
.sidebar__bullet {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: .7;
}
.sidebar__nav a.is-active .sidebar__bullet { border-color: #fff; background: #fff; opacity: 1; }

.sidebar__footer {
    margin-top: auto;
    padding: 15px 16px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: rgba(8, 15, 30, .16);
}
.sidebar__person { display: flex; align-items: center; gap: 10px; }
.sidebar__avatar {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    color: #e8edf5;
    background: #3b4b63;
    font-size: 12px;
    font-weight: 700;
}
.sidebar__person strong { display: block; overflow: hidden; max-width: 172px; color: #f1f5f9; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__person small { display: block; overflow: hidden; max-width: 172px; margin-top: 2px; color: #90a0b7; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__role-switch { margin-top: 12px; }
.sidebar__role-switch label { display: block; margin-bottom: 5px; color: #90a0b7; font-size: 10px; }
.sidebar__role-switch select {
    width: 100%;
    min-height: 34px;
    padding: 6px 28px 6px 9px;
    color: #e8edf5;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 7px;
    background: #243148;
    font: inherit;
    font-size: 11px;
}
.sidebar__actions { display: flex; gap: 15px; margin: 12px 0 0 41px; }
.sidebar__actions a,
.sidebar__actions button {
    padding: 0;
    color: #aebbd0;
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}
.sidebar__actions a:hover,
.sidebar__actions button:hover { color: #fff; text-decoration: none; }
.sidebar__actions form { margin: 0; }

.app-shell__body { flex: 1 1 auto; min-width: 0; }
.appbar {
    display: flex;
    align-items: center;
    min-height: 76px;
    gap: 14px;
    padding: 14px 32px;
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid var(--line);
}
.appbar__eyebrow { margin: 0 0 2px; color: var(--copper); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.appbar__title { color: var(--navy); font-size: 20px; font-weight: 650; }
.appbar__account { display: grid; gap: 1px; margin-left: auto; text-align: right; }
.appbar__account strong { color: var(--ink); font-size: 12px; font-weight: 650; }
.appbar__account span { color: var(--muted); font-size: 11px; }
.sidebar-toggle,
.sidebar-scrim { display: none; }
.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; }

.app__main { padding: 26px 32px 36px; }

/* --------------------------------------------------------------------------
   Экран без навигации: вход, смена пароля, ошибки
   -------------------------------------------------------------------------- */

.bare { background: var(--navy); min-height: 100vh; }
.bare__wrap { width: 100%; max-width: 400px; margin: 0 auto; padding: 8vh 20px 40px; }
.bare__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: #fff; }
.bare__brand strong { display: block; font-size: 16px; }
.bare__brand small { display: block; font-size: 12px; color: rgba(255, 255, 255, .6); }
.bare__mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--copper);
    font-weight: 700;
    font-size: 15px;
}

/* --------------------------------------------------------------------------
   Карточки и формы
   -------------------------------------------------------------------------- */

.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}
.card--form { padding: 24px; }
.card__title { font-size: 18px; margin-bottom: 8px; }
.card__hint { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.card__aside { margin: 14px 0 0; text-align: center; }

.field { display: block; margin-bottom: 14px; }
.field__label { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 500; color: var(--muted); }
.field__hint { display: block; margin-top: 4px; font-size: 11px; color: var(--muted-soft); }

.field__input,
.field__select,
.field__textarea {
    display: block;
    width: 100%;
    padding: 9px 11px;
    font: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    transition: border-color .12s, box-shadow .12s;
}
.field__textarea { min-height: 74px; resize: vertical; }
.field__input:focus,
.field__select:focus,
.field__textarea:focus {
    outline: none;
    border-color: var(--navy-400);
    box-shadow: 0 0 0 3px rgba(61, 83, 130, .14);
}
.field__input[readonly] { background: var(--surface-alt); color: var(--muted); }
.field__input--num { text-align: right; font-variant-numeric: tabular-nums; }
.field__input--sm { padding: 6px 8px; font-size: 13px; }

.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-row > .field { flex: 1 1 160px; margin-bottom: 14px; }

.checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.checkbox input { width: 16px; height: 16px; margin: 0; accent-color: var(--navy-600); }

/* --------------------------------------------------------------------------
   Кнопки
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background .12s, border-color .12s, color .12s;
    white-space: nowrap;
}
.btn:hover { background: var(--surface-alt); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn--primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-600); border-color: var(--navy-600); }

.btn--accent { background: var(--copper); border-color: var(--copper); color: #fff; }
.btn--accent:hover { background: var(--copper-dark); border-color: var(--copper-dark); }

.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .28); color: rgba(255, 255, 255, .9); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.btn--danger { color: var(--red); border-color: #eccac6; }
.btn--danger:hover { background: var(--red-soft); }

.btn--link { border: 0; background: none; padding: 4px; color: var(--muted); text-decoration: underline; }
.btn--link:hover { background: none; color: var(--ink); }

.btn--sm { padding: 6px 10px; font-size: 12px; }
.btn--block { width: 100%; margin-top: 6px; }

.btn-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Сообщения
   -------------------------------------------------------------------------- */

.flash { padding: 14px 20px 0; max-width: 1240px; margin: 0 auto; }
.bare .flash { padding: 0 0 16px; }

.flash__item {
    padding: 11px 14px;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    border-left: 3px solid;
    font-size: 13px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.flash__item--success { border-left-color: var(--green); }
.flash__item--error { border-left-color: var(--red); }
.flash__item--info { border-left-color: var(--navy-400); }
.flash__item--warning { border-left-color: var(--amber); }

.notice {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}
.notice--accent { background: var(--copper-soft); border-color: #e7cdba; color: #7a4522; }
.notice code {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid var(--line-strong);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    letter-spacing: .5px;
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   Таблицы
   -------------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th,
.table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--muted);
    background: var(--surface-alt);
    white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-alt); }
.table--tight th, .table--tight td { padding: 6px 8px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .shrink { width: 1%; white-space: nowrap; }
.table__total td { font-weight: 600; background: var(--surface-alt); border-top: 2px solid var(--line-strong); }
.table__empty { padding: 24px 10px; text-align: center; color: var(--muted); }

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    background: var(--surface-alt);
    border: 1px solid var(--line);
    color: var(--muted);
    white-space: nowrap;
}
.badge--ok { background: #e7f4ec; border-color: #c4e3d0; color: #1f6b41; }
.badge--warn { background: #fdf3e0; border-color: #f0dcb4; color: #8a5c11; }
.badge--off { background: var(--red-soft); border-color: #f0cdc9; color: #9e3229; }
.badge--role { background: var(--teal-soft); border-color: #bcdcd8; color: #0f5d57; }

/* --------------------------------------------------------------------------
   Отчёт: общая рамка и шапка с выбором недели
   -------------------------------------------------------------------------- */

.report { max-width: 1240px; margin: 0 auto; }

.report-bar {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    padding: 14px 18px;
    margin-bottom: 18px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 20;
}

.report-bar__field { display: flex; flex-direction: column; gap: 4px; }
.report-bar__field span { font-size: 11px; font-weight: 500; color: var(--muted); }
.report-bar__actions { display: flex; gap: 8px; margin-left: auto; }

.week-strip { display: flex; gap: 4px; }
.week-strip__day {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 38px;
    padding: 4px 2px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
}
.week-strip__day small { font-size: 10px; color: var(--muted); text-transform: lowercase; }
.week-strip__day strong { font-size: 13px; font-weight: 600; }
.week-strip__day--weekend { background: var(--copper-soft); border-color: #eed9c9; }

.report-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.report-nav a {
    padding: 6px 11px;
    font-size: 12px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--muted);
}
.report-nav a:hover { border-color: var(--navy-400); color: var(--navy-600); text-decoration: none; }
.report-nav a.is-active {
    color: #fff;
    background: var(--navy);
    border-color: var(--navy);
}

/* Карусель страниц отчёта включается только после инициализации JavaScript. */

.report-carousel__controls { display: none; }

.report-carousel.is-carousel-ready .report-carousel__viewport {
    overflow: hidden;
    border-radius: var(--radius);
    transition: height .28s ease;
    outline: none;
}
.report-carousel.is-carousel-ready .report-carousel__viewport:focus-visible {
    box-shadow: 0 0 0 3px rgba(61, 83, 130, .18);
}
.report-carousel.is-carousel-ready .report-carousel__track {
    display: flex;
    align-items: flex-start;
    transition: transform .38s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}
.report-carousel.is-carousel-ready .report-carousel__slide {
    flex: 0 0 100%;
    min-width: 0;
    padding: 1px;
}
.report-carousel.is-carousel-ready .report-carousel__slide:not(.is-active) {
    pointer-events: none;
}
.report-carousel.is-carousel-ready .page { margin-bottom: 0; }

.report-carousel.is-carousel-ready .report-carousel__controls {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) auto minmax(110px, 1fr);
    align-items: center;
    gap: 18px;
    padding: 14px 4px 22px;
}

.carousel-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    padding: 8px 13px;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--navy-600);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: color .15s, border-color .15s, transform .15s;
}
.carousel-arrow:hover {
    color: var(--copper-dark);
    border-color: var(--copper);
    transform: translateY(-1px);
}
.carousel-arrow:focus-visible {
    outline: 3px solid rgba(61, 83, 130, .18);
    outline-offset: 2px;
}
.carousel-arrow[data-carousel-next] { justify-self: end; }

.report-carousel__position {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}
.report-carousel__status {
    color: var(--muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}
.report-carousel__dots { display: flex; align-items: center; gap: 7px; }
.report-carousel__dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    background: var(--line-strong);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: width .2s, background .2s;
}
.report-carousel__dots button:hover { background: var(--navy-400); }
.report-carousel__dots button.is-active {
    width: 22px;
    background: var(--copper);
    border-radius: 4px;
}
.report-carousel__dots button:focus-visible {
    outline: 3px solid rgba(61, 83, 130, .18);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .report-carousel.is-carousel-ready .report-carousel__viewport,
    .report-carousel.is-carousel-ready .report-carousel__track { transition: none; }
}

@media (max-width: 720px) {
    .report-nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
    .report-nav a { flex: 0 0 auto; }
    .report-carousel.is-carousel-ready .report-carousel__controls {
        grid-template-columns: 1fr auto 1fr;
        gap: 8px;
    }
    .carousel-arrow { padding: 8px 11px; }
    .carousel-arrow span { display: none; }
}

/* --------------------------------------------------------------------------
   Страница отчёта
   -------------------------------------------------------------------------- */

.page {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px 26px 26px;
    margin-bottom: 22px;
}

.page__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--navy);
}
.page__title { font-size: 19px; color: var(--navy); }
.page__meta { font-size: 12px; color: var(--muted); white-space: nowrap; }

.page__section { margin-bottom: 22px; }
.page__section:last-child { margin-bottom: 0; }

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--navy);
    margin-bottom: 10px;
}
.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}
.section-title small { font-weight: 400; font-size: 11px; color: var(--muted-soft); }

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

@media (max-width: 1080px) {
    .grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .grid--2, .grid--3, .grid--6 { grid-template-columns: minmax(0, 1fr); }
}

/* Титульная страница */

.cover {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    min-height: 420px;
    text-align: center;
    background: linear-gradient(140deg, var(--navy) 0%, var(--navy-600) 55%, #2c4372 100%);
    color: #fff;
    border-radius: var(--radius);
}
.cover__mark {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--copper);
    font-size: 22px;
    font-weight: 700;
}
.cover__title { font-size: 34px; letter-spacing: 1px; text-transform: uppercase; }
.cover__month { font-size: 20px; color: var(--copper-soft); letter-spacing: 3px; text-transform: uppercase; }
.cover__week { font-size: 15px; color: rgba(255, 255, 255, .75); }
.cover__org { margin-top: 18px; font-size: 12px; color: rgba(255, 255, 255, .55); }

/* Плитки показателей */

.tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    border: 1px solid var(--line);
    min-height: 96px;
}
.tile__value {
    font-family: var(--font-num);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}
.tile__label { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.tile__note { margin-top: auto; font-size: 10px; color: var(--muted-soft); }
.tile--accent { background: var(--copper-soft); border-color: #eed9c9; }
.tile--accent .tile__value { color: var(--copper-dark); }
.tile--teal { background: var(--teal-soft); border-color: #bcdcd8; }
.tile--teal .tile__value { color: var(--teal); }

/* Таблица план/факт */

.plan-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.plan-table th,
.plan-table td { padding: 7px 9px; border-bottom: 1px solid var(--line); }
.plan-table thead th {
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: .2px;
    color: #fff;
    background: var(--navy-600);
    text-align: right;
    vertical-align: bottom;
}
.plan-table thead th:first-child { text-align: left; }
.plan-table td { text-align: right; font-variant-numeric: tabular-nums; }
.plan-table td:first-child { text-align: left; font-variant-numeric: normal; }
.plan-table tbody tr:last-child td { border-bottom: 0; }
.plan-table .metric-name { line-height: 1.3; }

.fill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
    min-width: 72px;
}
.fill__value { font-weight: 600; font-size: 12.5px; }
.fill__track {
    width: 34px;
    height: 5px;
    border-radius: 3px;
    background: var(--line);
    overflow: hidden;
}
.fill__bar { display: block; height: 100%; border-radius: 3px; background: var(--teal); }
.fill--low .fill__bar { background: var(--red); }
.fill--mid .fill__bar { background: var(--amber); }
.fill--high .fill__bar { background: var(--green); }

/* Карточки проектов с двойным прогрессом */

.project-legend {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 10px;
}
.project-legend i {
    display: inline-block;
    width: 20px;
    height: 6px;
    border-radius: 3px;
    margin-right: 5px;
    vertical-align: middle;
}
.project-legend i.is-before { background: var(--navy-400); }
.project-legend i.is-week { background: var(--copper); }

.project {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 6px 18px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}
.project:last-child { border-bottom: 0; }
.project__title { font-size: 13px; font-weight: 600; color: var(--navy); }
.project__comment {
    grid-column: 1;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}
.project__comment:empty::before { content: "—"; color: var(--muted-soft); }
.project__figures {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
}
.project__numbers { display: flex; align-items: baseline; gap: 8px; }
.project__delta { font-size: 12px; font-weight: 600; color: var(--copper); }
.project__delta--zero { color: var(--muted-soft); }
.project__total {
    font-family: var(--font-num);
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}
.project__track {
    display: flex;
    width: 100%;
    height: 7px;
    border-radius: 4px;
    background: var(--line);
    overflow: hidden;
}
.project__before { background: var(--navy-400); }
.project__week { background: var(--copper); }
.project--done .project__before { background: var(--green); }

/* Фотографии */

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

.photo figure { margin: 0; }
.photo img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    border: 1px solid var(--line);
}
.photo figcaption { margin-top: 7px; font-size: 12px; color: var(--muted); line-height: 1.35; }

.empty-state {
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: 30px;
    text-align: center;
    color: var(--muted);
    background: var(--surface-alt);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

/* Диаграмма динамики (inline SVG) */

.chart { width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart__caption { margin-top: 6px; font-size: 11px; color: var(--muted-soft); text-align: center; }

/* --------------------------------------------------------------------------
   Фирменная раскладка отчёта по образцу презентации Корпоративного университета
   -------------------------------------------------------------------------- */

.report-carousel .page {
    --report-copper: #a96d46;
    --report-copper-soft: #c99674;
    --report-panel: rgba(244, 244, 243, .96);
    width: 100%;
    aspect-ratio: 996 / 576;
    min-height: 620px;
    padding: 36px 42px 42px;
    overflow: hidden;
    background-color: #fff;
    background-image: url("../img/report-slide-background.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    border-radius: 3px;
}

.report-carousel .page__head {
    display: block;
    min-height: 48px;
    padding: 0;
    margin: 0 0 0px;
    text-align: center;
    border: 0;
}
.report-carousel .page__title {
    max-width: 72%;
    margin: 0 auto;
    font-size: clamp(25px, 2.6vw, 38px);
    font-weight: 400;
    line-height: 1.15;
    color: #222831;
}
.report-carousel .page__meta { display: none; }
.report-carousel .page__body { min-height: 0; }

.report-carousel .page__section {
    min-width: 0;
    padding: 6px 8px;
    margin: 0;
    overflow: hidden;
    background: var(--report-panel);
    border-radius: 12px;
}
.report-carousel .section-title {
    min-height: 22px;
    margin: 0 0 0px;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.25;
    color: #252a30;
}
.report-carousel .section-title::after { display: none; }
.report-carousel .section-title small {
    margin-left: auto;
    color: #858585;
    font-size: 10px;
}

/* Композиции отдельных слайдов */

.page--corporate .page__body {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(260px, 1fr);
    grid-template-rows: auto auto auto;
    gap: 12px 18px;
}
.page--corporate .page__section--1 { grid-column: 1; grid-row: 1; }
.page--corporate .page__section--2 { grid-column: 1; grid-row: 2; }
.page--corporate .page__section--3 { grid-column: 2; grid-row: 1 / span 3; }
.page--corporate .page__section--4 { grid-column: 1; grid-row: 3; }
.page--corporate .page__section--cards > .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.page--professional .page__body {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.55fr);
    grid-template-rows: 1fr 1fr;
    gap: 15px 20px;
}
.page--professional .page__section--1 { grid-column: 1; grid-row: 1 / span 2; }
.page--professional .page__section--2 { grid-column: 2; grid-row: 1; }
.page--professional .page__section--3 { grid-column: 2; grid-row: 2; }

.page--operational .page__body,
.page--programs .page__body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}
.page--operational .page__section,
.page--programs .page__section { min-height: 430px; }

.page__body--ytd {
    display: grid;
    grid-template-columns: minmax(0, 1.48fr) minmax(310px, 1fr);
    gap: 20px;
}
.page--ytd .page__section--summary {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.page--ytd .page__section--summary > .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.page--ytd .page__chart-block {
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid #d7d2cf;
}

/* Таблицы и KPI */

.report-carousel .plan-table {
    font-size: 10.5px;
    line-height: 1.2;
}
.report-carousel .plan-table th,
.report-carousel .plan-table td {
    padding: 5px 7px;
    border-color: #d2cbc6;
}
.report-carousel .plan-table thead th {
    padding-top: 5px;
    padding-bottom: 5px;
    color: #323232;
    background: transparent;
    border-top: 2px solid var(--report-copper);
    border-bottom: 1px solid var(--report-copper);
    font-size: 8.5px;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}
.report-carousel .plan-table tbody tr:last-child td {
    border-bottom: 2px solid var(--report-copper);
}
.report-carousel .plan-table .metric-name { font-weight: 600; }
.report-carousel .fill { min-width: 62px; }
.report-carousel .fill__value { color: var(--report-copper); font-size: 10px; }
.report-carousel .fill__track { width: 28px; height: 4px; background: #ddd5d0; }
.report-carousel .fill__bar,
.report-carousel .fill--low .fill__bar,
.report-carousel .fill--mid .fill__bar,
.report-carousel .fill--high .fill__bar { background: var(--report-copper); }

.report-carousel .tile {
    min-height: 80px;
    justify-content: center;
    padding: 10px 11px;
    text-align: center;
    background: #eeeeed;
    border: 0;
    border-radius: 10px;
}
.report-carousel .tile--accent,
.report-carousel .tile--teal { background: #eeeeed; border: 0; }
.report-carousel .tile__value,
.report-carousel .tile--accent .tile__value,
.report-carousel .tile--teal .tile__value {
    color: var(--report-copper);
    font-size: clamp(20px, 2.2vw, 30px);
    font-weight: 500;
}
.report-carousel .tile__label {
    color: #383838;
    font-size: 9.5px;
    line-height: 1.2;
}
.report-carousel .tile__note { color: #777; font-size: 8px; }

.report-carousel .table-wrap { border: 0; border-radius: 0; }
.report-carousel .table { font-size: 9px; line-height: 1.2; }
.report-carousel .table th,
.report-carousel .table td { padding: 5px 6px; border-color: #d2cbc6; }
.report-carousel .table th {
    color: #333;
    background: transparent;
    border-top: 2px solid var(--report-copper);
    border-bottom-color: var(--report-copper);
    font-size: 8px;
    text-transform: none;
}
.report-carousel .table__total td { border-bottom: 2px solid var(--report-copper); }

/* Проекты */

.report-carousel .project-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}
.report-carousel .project-heading .section-title {
    min-height: 0;
    margin: 0;
    font-size: 15px;
}
.report-carousel .project-legend {
    display: grid;
    flex: 0 0 auto;
    gap: 2px;
    margin: 0;
    color: #a16d4d;
    font-size: 7px;
    line-height: 1;
}
.report-carousel .project-legend span { display: flex; align-items: center; gap: 4px; }
.report-carousel .project-legend i {
    width: 7px;
    height: 7px;
    margin: 0;
    border-radius: 1px;
}
.report-carousel .project-legend i.is-before { background: var(--report-copper); }
.report-carousel .project-legend i.is-week { background: #cf9b7a; }
.report-carousel .project {
    display: block;
    padding: 0px 0;
    border: 0;
}
.report-carousel .project__title {
    color: #252a30;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.15;
}
.report-carousel .project__comment {
    color: #6d747d;
    font-size: 10px;
    line-height: 1.15;
}
.report-carousel .project__figures {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px 31px;
    grid-column: auto;
    grid-row: auto;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}
.report-carousel .project__numbers { display: contents; }
.report-carousel .project__delta {
    grid-column: 2;
    grid-row: 1;
    color: #ca845d;
    font-size: 9px;
    font-weight: 500;
    text-align: right;
}
.report-carousel .project__total {
    grid-column: 3;
    grid-row: 1;
    color: #263a59;
    font-size: 9.5px;
    font-weight: 500;
    text-align: right;
}
.report-carousel .project__track {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 8px;
    background: #eaf0f3;
    border-radius: 2px;
}
.report-carousel .project__before,
.report-carousel .project--done .project__before { background: var(--report-copper); }
.report-carousel .project__week { background: #cf9b7a; }

/* Обложка */

.report-carousel .page--cover {
    padding: 0;
    background: #fff;
}
.cover {
    display: grid;
    grid-template-columns: 74px minmax(280px, 36%) minmax(0, 1fr);
    grid-template-rows: 57% 43%;
    align-items: stretch;
    gap: 0 16px;
    min-height: 0;
    height: 100%;
    padding: 20px 26px 22px 20px;
    color: #272727;
    text-align: left;
    background: #fff;
    border-radius: 0;
}
.cover__period {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 116px;
    padding: 16px 0;
    color: #fff;
    background: var(--report-copper, #a96d46);
    font-size: clamp(18px, 2vw, 27px);
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}
.cover__hero {
    grid-column: 2 / span 2;
    grid-row: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.cover__calendar {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    width: min(100%, 330px);
    margin: 10px auto 0;
}
.cover__calendar-title {
    margin-bottom: 9px;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .12em;
    text-align: center;
    text-transform: uppercase;
}
.cover__weekdays,
.cover__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: center;
    text-align: center;
}
.cover__weekdays { margin-bottom: 2px; color: #6f6f6f; font-size: 8px; }
.cover__days { row-gap: 2px; font-size: 9px; }
.cover__days span {
    display: grid;
    place-items: center;
    min-height: 22px;
    border-radius: 11px;
}
.cover__days .is-outside { color: #c5c5c5; }
.cover__days .is-report-week { color: #fff; background: var(--report-copper, #a96d46); }
.cover__heading {
    grid-column: 3;
    grid-row: 2;
    align-self: center;
    padding: 18px 12px 0 20px;
}
.cover__title {
    max-width: 570px;
    color: #292929;
    font-size: clamp(31px, 4.25vw, 58px);
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: .98;
    text-transform: uppercase;
}
.cover__week { margin: 14px 0 0; color: #777; font-size: 12px; }

/* Фотостраницы */

.report-carousel .page--photos .page__head { display: none; }
.report-carousel .page--photos { padding-top: 76px; }
.report-carousel .photo-grid {
    display: grid;
    grid-auto-rows: minmax(0, 1fr);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 22px;
    height: 100%;
}
.report-carousel .photo,
.report-carousel .photo figure { min-height: 0; height: 100%; }
.report-carousel .photo figure {
    display: flex;
    flex-direction: column;
    margin: 0;
}
.report-carousel .photo img {
    flex: 1 1 auto;
    min-height: 0;
    height: 160px;
    border: 0;
    border-radius: 0;
}
.report-carousel .photo figcaption {
    flex: 0 0 auto;
    min-height: 32px;
    margin: 6px 0 0;
    padding: 7px 12px;
    color: #fff;
    background: var(--report-copper);
    border-radius: 8px;
    font-size: 9.5px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}
.report-carousel .photo-grid--single { grid-template-columns: minmax(0, 1fr); }
.report-carousel .photo-grid--single .photo { max-width: 76%; margin: 0 auto; }
.report-carousel .empty-state {
    min-height: 360px;
    background: rgba(244, 244, 243, .92);
    border: 0;
    border-radius: 12px;
}

@media (max-width: 920px) {
    .report-carousel .page {
        aspect-ratio: auto;
        min-height: 650px;
        padding: 70px 34px 34px;
    }
    .page--corporate .page__body { grid-template-columns: minmax(0, 1.5fr) minmax(235px, 1fr); gap: 10px; }
    .page--professional .page__body { grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); gap: 10px; }
    .report-carousel .page__section { padding: 12px; }
    .report-carousel .plan-table { font-size: 9px; }
    .cover { grid-template-columns: 58px minmax(230px, 38%) minmax(0, 1fr); padding: 16px; }
}

@media (max-width: 700px) {
    .report-carousel .page { min-height: 0; overflow: visible; background-size: auto 100%; }
    .page--corporate .page__body,
    .page--professional .page__body,
    .page--operational .page__body,
    .page--programs .page__body,
    .page__body--ytd { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
    .page--corporate .page__section,
    .page--professional .page__section { grid-column: 1; grid-row: auto; }
    .page--operational .page__section,
    .page--programs .page__section { min-height: 0; }
    .cover {
        grid-template-columns: 46px minmax(0, 1fr);
        grid-template-rows: 260px auto auto;
        height: auto;
        min-height: 620px;
    }
    .cover__period { grid-row: 1 / span 3; margin-bottom: 90px; font-size: 16px; }
    .cover__hero { grid-column: 2; grid-row: 1; }
    .cover__calendar { grid-column: 2; grid-row: 2; width: 290px; max-width: 100%; }
    .cover__heading { grid-column: 2; grid-row: 3; padding: 20px 4px; }
    .report-carousel .photo-grid { grid-template-columns: minmax(0, 1fr); height: auto; }
    .report-carousel .photo img { height: 230px; }
}

/* --------------------------------------------------------------------------
   Рабочие разделы: заполнение и администрирование
   -------------------------------------------------------------------------- */

.work { max-width: 1240px; margin: 0 auto; }

.work__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.work__head h1 { font-size: 20px; }
.work__head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.subnav a {
    padding: 7px 13px;
    font-size: 13px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--muted);
}
.subnav a:hover { border-color: var(--navy-400); color: var(--navy-600); text-decoration: none; }
.subnav a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.panel {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 18px;
    overflow: hidden;
}
.panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-alt);
}
.panel__head h2 { font-size: 14px; }
.panel__head p { margin: 3px 0 0; font-size: 12px; color: var(--muted); }
.panel__body { padding: 18px; }
.panel__body--flush { padding: 0; }
.panel__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    background: var(--surface-alt);
}
.panel__foot p { margin: 0; font-size: 12px; color: var(--muted); }

.entry-grid { display: grid; gap: 0; }
.entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px 120px;
    gap: 10px 16px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.entry:last-child { border-bottom: 0; }
.entry__label { font-size: 13px; }
.entry__label small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted-soft); }
.entry__context { font-size: 12px; color: var(--muted); text-align: right; padding-top: 8px; }
.entry__comment { grid-column: 1 / -1; }

.project-entry__total { display: grid; justify-items: end; gap: 3px; padding-top: 1px; }
.project-entry__total strong { font-size: 18px; color: var(--navy); font-variant-numeric: tabular-nums; }
.project-entry.has-error { background: linear-gradient(90deg, transparent, var(--red-soft)); }
.field__input.is-invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(192, 57, 43, .10); }
.project-form-error { margin: 6px 0 0 !important; color: var(--red) !important; font-weight: 500; }

@media (max-width: 720px) {
    .entry { grid-template-columns: minmax(0, 1fr); }
    .entry__context { text-align: left; padding-top: 0; }
    .project-entry__total { justify-items: start; }
}

.stat-row { display: flex; gap: 24px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__value { font-size: 20px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat__label { font-size: 11px; color: var(--muted); }

.photo-manage { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.photo-manage__item { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.photo-manage__item img { display: block; width: 100%; height: 150px; object-fit: cover; background: var(--surface-alt); }
.photo-manage__body { padding: 10px; display: grid; gap: 8px; }
.photo-manage__meta { font-size: 11px; color: var(--muted-soft); }

/* Еженедельное рабочее пространство руководителя отдела. */
.work__eyebrow { margin: 0 0 5px !important; color: var(--copper) !important; font-size: 12px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.workflow-hero { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 28px; align-items: center; margin-bottom: 16px; padding: 24px 26px; color: #fff; background: linear-gradient(135deg, var(--navy), var(--navy-600)); border-radius: var(--radius); box-shadow: var(--shadow); }
.workflow-hero--overdue { background: linear-gradient(135deg, #612d29, #8a463f); }
.workflow-hero h2 { margin: 10px 0 7px; font-size: 22px; }
.workflow-hero p { margin: 0; color: rgba(255,255,255,.76); font-size: 14px; line-height: 1.5; }
.workflow-hero p strong { color: #fff; }
.workflow-hero__status { display: flex; gap: 7px; flex-wrap: wrap; }
.workflow-progress__value { margin-bottom: 8px; font-size: 34px; font-weight: 700; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
.workflow-progress__track { height: 7px; overflow: hidden; background: rgba(255,255,255,.18); border-radius: 999px; }
.workflow-progress__track span { display: block; height: 100%; background: var(--copper-light, #d7a47f); border-radius: inherit; }
.workflow-progress p { margin-top: 7px; font-size: 12px; text-align: right; }
.status-pill { display: inline-flex; align-items: center; width: fit-content; min-height: 24px; padding: 3px 9px; border: 1px solid transparent; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.status-pill--draft { color: #805014; background: #fff2cf; border-color: #ecd99d; }
.status-pill--submitted { color: #236541; background: #ddf4e7; border-color: #b9e3ca; }
.status-pill--correction { color: #743f18; background: #fae4d2; border-color: #e9c5a8; }
.status-pill--overdue { color: #fff; background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.25); }
.status-pill--not_started { color: var(--muted); background: var(--surface-alt); border-color: var(--line); }
.workflow-grid { display: grid; gap: 10px; margin-bottom: 16px; }
.workflow-card { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 20px; gap: 13px; align-items: center; padding: 17px 18px; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 1px 2px rgba(19,35,63,.04); }
.workflow-card:hover { color: inherit; text-decoration: none; border-color: var(--navy-400); box-shadow: var(--shadow); }
.workflow-card__mark { display: grid; place-items: center; width: 30px; height: 30px; color: var(--muted); background: var(--surface-alt); border-radius: 50%; font-weight: 700; }
.workflow-card.is-complete .workflow-card__mark { color: #fff; background: var(--green); }
.workflow-card__body { display: grid; gap: 3px; }
.workflow-card__body strong { color: var(--navy); font-size: 15px; }
.workflow-card__body small, .history-row small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.workflow-card__meta { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.workflow-card__arrow { color: var(--navy-400); font-size: 19px; }
.submit-panel { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 24px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--copper); border-radius: var(--radius-sm); }
.submit-panel p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.btn:disabled { cursor: not-allowed; opacity: .48; }
.history-panel { margin-top: 24px; }
.history-list { display: grid; }
.history-row { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 13px 16px; color: inherit; border-top: 1px solid var(--line); }
.history-row:first-child { border-top: 0; }
.history-row:hover { color: inherit; text-decoration: none; background: var(--surface-alt); }
.history-row > span:first-child { display: grid; gap: 3px; }
.empty-workspace { max-width: 680px; text-align: center; }
.empty-workspace__icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 12px; color: #fff; background: var(--green); border-radius: 50%; font-size: 22px; }
.empty-workspace p { margin: 7px 0 0; color: var(--muted); }
.section-workflow { display: flex; gap: 10px; align-items: center; margin: -7px 0 14px; }
.section-workflow > a { margin-right: auto; font-size: 13px; font-weight: 600; }
.section-workflow__progress { color: var(--muted); font-size: 13px; }
.section-lock { margin-bottom: 14px; }
.workflow-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.workflow-fieldset:disabled { opacity: .72; }
.entry-choice { display: flex; gap: 12px; margin-bottom: 7px; font-size: 12px; color: var(--muted); }
.entry-choice label { display: inline-flex; gap: 5px; align-items: center; cursor: pointer; }
.entry-choice input { margin: 0; accent-color: var(--navy); }
.notice--success { margin-bottom: 14px; border-left: 3px solid var(--green); }
.empty-confirm { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.period-form { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; }
.period-form .field { min-width: 210px; margin: 0; }
.period-form .btn { margin-bottom: 1px; }
.muted { color: var(--muted); }

@media (max-width: 720px) {
    .workflow-hero { grid-template-columns: minmax(0, 1fr); padding: 20px; }
    .workflow-progress__value, .workflow-progress p { text-align: left; }
    .workflow-card { grid-template-columns: 32px minmax(0, 1fr) 18px; padding: 15px 13px; }
    .workflow-card__meta { grid-column: 2; }
    .workflow-card__arrow { grid-column: 3; grid-row: 1 / span 2; }
    .submit-panel { align-items: stretch; flex-direction: column; }
    .submit-panel .btn, .submit-panel form { width: 100%; }
    .section-workflow { align-items: flex-start; flex-wrap: wrap; }
    .section-workflow > a { flex-basis: 100%; }
    .period-form { align-items: stretch; flex-direction: column; }
    .period-form .field, .period-form .btn { width: 100%; }
}

.helper-list { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--muted); }
.helper-list li { margin-bottom: 4px; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

.no-print { }

/* Навигация вынесена в постоянное левое меню. */
.subnav { display: none; }
.flash { max-width: none; margin: 0; padding: 18px 32px 0; }

@media (max-width: 980px) {
    .sidebar {
        position: fixed;
        z-index: 100;
        left: 0;
        transform: translateX(-100%);
        box-shadow: 18px 0 38px rgba(15, 23, 42, .28);
        transition: transform .2s ease;
    }
    .sidebar-is-open .sidebar { transform: translateX(0); }
    .sidebar-scrim {
        position: fixed;
        z-index: 90;
        inset: 0;
        width: 100%;
        padding: 0;
        visibility: hidden;
        opacity: 0;
        background: rgba(15, 23, 42, .46);
        border: 0;
        cursor: pointer;
        transition: opacity .2s ease, visibility .2s ease;
    }
    .sidebar-is-open .sidebar-scrim { visibility: visible; opacity: 1; }
    .sidebar-toggle {
        display: inline-grid;
        gap: 4px;
        place-content: center;
        width: 38px;
        height: 38px;
        flex: 0 0 auto;
        padding: 0;
        background: var(--surface);
        border: 1px solid var(--line-strong);
        border-radius: var(--radius-sm);
        cursor: pointer;
    }
    .sidebar-toggle span:not(.sr-only) { display: block; width: 16px; height: 2px; background: var(--navy); border-radius: 2px; }
    .appbar { min-height: 64px; padding: 12px 20px; }
    .app__main { padding: 20px; }
    .flash { padding: 14px 20px 0; }
}

@media (max-width: 620px) {
    .sidebar { flex-basis: 280px; width: 280px; }
    .appbar { gap: 10px; }
    .appbar__eyebrow { font-size: 9px; }
    .appbar__title { font-size: 16px; }
    .appbar__account { display: none; }
    .app__main { padding: 16px 12px 28px; }
    .flash { padding: 10px 12px 0; }
    .work__head { align-items: flex-start; gap: 12px; }
    .work__head .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Dataflow: адаптация палитры и навигации исходной Bootstrap-темы
   -------------------------------------------------------------------------- */

:root {
    --dataflow-main: #ff7433;
    --dataflow-heading: #0a0a0c;
    --dataflow-body: #575864;
    --dataflow-stroke: #ecf0f4;
    --dataflow-surface: #fff;
    --dataflow-canvas: #f6f6f6;
    --dataflow-hover: #fff9f6;
    --dataflow-green: #22c55e;
    --bg: var(--dataflow-canvas);
    --surface: var(--dataflow-surface);
    --surface-alt: #f7fafc;
    --line: var(--dataflow-stroke);
    --line-strong: #dce3eb;
    --ink: var(--dataflow-heading);
    --muted: var(--dataflow-body);
    --copper: var(--dataflow-main);
    --copper-dark: #e85f21;
    --copper-soft: #fff1e9;
    --font: "Albert Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body { color: var(--dataflow-body); background: var(--dataflow-canvas); }
a { color: var(--dataflow-heading); }

.sidebar {
    color: var(--dataflow-body);
    background: var(--dataflow-surface);
    border-right-color: rgba(10, 10, 12, .09);
    box-shadow: none;
}
.sidebar__brand { color: var(--dataflow-heading); border-bottom-color: transparent; }
.sidebar__brand:hover { color: var(--dataflow-heading); }
.sidebar__brand small { color: #858b93; }
.sidebar__mark {
    border-radius: 8px;
    background: var(--dataflow-main);
    box-shadow: 0 8px 18px rgba(255, 116, 51, .2);
}
.sidebar__nav { padding: 5px 0 24px; }
.sidebar__group + .sidebar__group { margin-top: 16px; }
.sidebar__caption { padding: 16px 24px 6px; color: #bdc7d3; font-size: 12px; letter-spacing: 0; text-transform: uppercase; }
.sidebar__nav a {
    position: relative;
    gap: 12px;
    min-height: 47px;
    margin: 0;
    padding: 11px 22px 11px 24px;
    border-radius: 0;
    color: var(--dataflow-heading);
    font-size: 15px;
    font-weight: 600;
}
.sidebar__nav a:hover { color: var(--dataflow-main); background: var(--dataflow-hover); }
.sidebar__nav a.is-active {
    color: var(--dataflow-main);
    background: rgba(246, 246, 246, .8);
    box-shadow: none;
}
.sidebar__nav a.is-active::before {
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 0;
    width: 5px;
    content: "";
    background: var(--dataflow-main);
    border-radius: 0 5px 5px 0;
}
.sidebar__bullet {
    width: 9px;
    height: 9px;
    border: 2px solid currentColor;
    opacity: 1;
}
.sidebar__nav a.is-active .sidebar__bullet { border-color: var(--dataflow-main); background: var(--dataflow-main); }
.sidebar__nav a.is-parent-active { color: var(--dataflow-main); }
.sidebar__nav a.is-parent-active .sidebar__bullet { border-color: var(--dataflow-main); background: var(--dataflow-main); }
.sidebar__nav a.sidebar__subitem {
    min-height: 36px;
    padding: 7px 22px 7px 48px;
    font-size: 13px;
    font-weight: 500;
}
.sidebar__nav a.sidebar__subitem .sidebar__bullet {
    width: 6px;
    height: 6px;
    border-width: 1px;
}
.sidebar__footer { border-top-color: var(--dataflow-stroke); background: #fff; }
.sidebar__avatar { color: #fff; background: var(--dataflow-main); }
.sidebar__person strong { color: var(--dataflow-heading); }
.sidebar__person small { color: #858b93; }
.sidebar__role-switch label { color: #858b93; }
.sidebar__role-switch select { color: var(--dataflow-heading); border-color: var(--dataflow-stroke); background: #fff; }
.sidebar__actions a,
.sidebar__actions button { color: #858b93; }
.sidebar__actions a:hover,
.sidebar__actions button:hover { color: var(--dataflow-main); }

.appbar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 81px;
    padding: 17px 30px;
    background: rgba(255, 255, 255, .96);
    border-bottom-color: rgba(10, 10, 12, .06);
    backdrop-filter: blur(10px);
}
.appbar__eyebrow { color: var(--dataflow-main); }
.appbar__title { color: var(--dataflow-heading); font-size: 19px; font-weight: 700; }
.appbar__account strong { color: var(--dataflow-heading); }

.btn { border-color: var(--dataflow-stroke); border-radius: 8px; box-shadow: none; }
.btn--primary { background: var(--dataflow-main); border-color: var(--dataflow-main); }
.btn--primary:hover { background: #e85f21; border-color: #e85f21; }
.btn--accent { background: var(--dataflow-heading); border-color: var(--dataflow-heading); }
.btn--accent:hover { background: #303034; border-color: #303034; }
.field__input,
.field__select,
.field__textarea { border-color: var(--dataflow-stroke); border-radius: 8px; }
.field__input:focus,
.field__select:focus,
.field__textarea:focus { border-color: var(--dataflow-main); box-shadow: 0 0 0 3px rgba(255, 116, 51, .12); }

.panel,
.card,
.report-bar,
.page { box-shadow: 0 4px 24px rgba(20, 25, 38, .05); }
.panel { border: 1px solid var(--dataflow-stroke); }
.panel__head { background: #fff; border-bottom-color: var(--dataflow-stroke); }
.table th { color: #858b93; background: #f7fafc; }
.table th,
.table td { border-bottom-color: var(--dataflow-stroke); }
.table tbody tr:hover td { background: var(--dataflow-hover); }

@media (max-width: 980px) {
    .sidebar { box-shadow: 18px 0 38px rgba(20, 25, 38, .14); }
    .sidebar-toggle { border-color: var(--dataflow-stroke); }
    .sidebar-toggle span:not(.sr-only) { background: var(--dataflow-heading); }
}

/* Форма показателей по композиции Dataflow Setting. */
.metrics-settings { display: grid; gap: 22px; }
.settings-card {
    display: grid;
    grid-template-columns: minmax(210px, .58fr) minmax(0, 1.42fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--dataflow-stroke);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(20, 25, 38, .05);
}
.settings-card__aside {
    padding: 28px 26px;
    background: #fcfcfc;
    border-right: 1px solid var(--dataflow-stroke);
}
.settings-card__aside h2 { color: var(--dataflow-heading); font-size: 17px; font-weight: 700; }
.settings-card__aside p { margin: 9px 0 16px; color: var(--dataflow-body); font-size: 13px; line-height: 1.55; }
.settings-card__aside > span {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: #a74413;
    background: #fff1e9;
    font-size: 11px;
    font-weight: 650;
}
.settings-card__body { min-width: 0; padding: 6px 26px; }
.metric-setting {
    display: grid;
    grid-template-columns: minmax(170px, .74fr) minmax(0, 1.26fr);
    gap: 22px;
    padding: 22px 0;
    border-bottom: 1px solid var(--dataflow-stroke);
}
.metric-setting:last-child { border-bottom: 0; }
.metric-setting__identity h3 { color: var(--dataflow-heading); font-size: 14px; font-weight: 700; line-height: 1.4; }
.metric-setting__identity p { margin: 5px 0 0; color: #858b93; font-size: 11px; line-height: 1.4; }
.metric-setting__editor { min-width: 0; }
.setting-choices { display: flex; gap: 9px; margin: 0 0 13px; }
.setting-choice { position: relative; display: block; cursor: pointer; }
.setting-choice input { position: absolute; width: 1px; height: 1px; margin: -1px; opacity: 0; }
.setting-choice span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid var(--dataflow-stroke);
    border-radius: 8px;
    color: #575864;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    transition: color .15s, border-color .15s, background .15s, box-shadow .15s;
}
.setting-choice span::before {
    width: 8px;
    height: 8px;
    margin-right: 7px;
    content: "";
    border: 2px solid #aeb7c2;
    border-radius: 50%;
}
.setting-choice input:checked + span {
    color: #a74413;
    background: #fff9f6;
    border-color: #ffb28f;
    box-shadow: 0 0 0 3px rgba(255, 116, 51, .08);
}
.setting-choice input:checked + span::before { border-color: var(--dataflow-main); background: var(--dataflow-main); box-shadow: inset 0 0 0 1px #fff; }
.setting-choice input:focus-visible + span { outline: 3px solid rgba(255, 116, 51, .22); outline-offset: 2px; }
.metric-setting__fields { width: 100%; max-width: 240px; }
.metric-setting__fields .field { margin: 0; }
.metric-setting__fields .field__label { margin-bottom: 6px; color: #575864; font-size: 11px; font-weight: 650; }
.metric-setting__fields .field__input { min-height: 46px; padding: 11px 13px; background: #f6f6f6; border: 0; }
.metric-setting__fields .field__input:focus { background: #fff; }
.metric-setting__context { margin: 10px 0 0; color: #858b93; font-size: 11px; line-height: 1.45; }
.metrics-savebar {
    position: sticky;
    z-index: 10;
    bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    color: var(--dataflow-heading);
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--dataflow-stroke);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(20, 25, 38, .1);
    backdrop-filter: blur(10px);
}
.metrics-savebar strong { display: block; font-size: 14px; }
.metrics-savebar p { margin: 3px 0 0; color: #858b93; font-size: 12px; }
.metrics-savebar .btn { min-width: 176px; min-height: 46px; }

@media (max-width: 860px) {
    .settings-card { grid-template-columns: 1fr; }
    .settings-card__aside { padding: 21px 20px; border-right: 0; border-bottom: 1px solid var(--dataflow-stroke); }
    .settings-card__aside p { max-width: 680px; }
    .settings-card__body { padding: 4px 20px; }
}

@media (max-width: 620px) {
    .settings-card { border-radius: 10px; }
    .settings-card__aside { padding: 18px 16px; }
    .settings-card__body { padding: 0 16px; }
    .metric-setting { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px 0; }
    .metric-setting__fields { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .setting-choices { flex-wrap: wrap; }
    .metrics-savebar { bottom: 10px; align-items: stretch; flex-direction: column; padding: 14px; }
    .metrics-savebar .btn { width: 100%; }
}

/* Рабочая доска проектов по мотивам таблицы cart-totals из Dataflow. */
.project-board {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(315px, .78fr);
    align-items: start;
    gap: 22px;
}
.project-board__workspace,
.project-board__library {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--dataflow-stroke);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(20, 25, 38, .05);
}
.project-board__head {
    padding: 21px 22px 17px;
    border-bottom: 1px solid var(--dataflow-stroke);
}
.project-board__head--actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.project-board__head--actions > div { min-width: 0; }
.project-board__head .eyebrow {
    display: block;
    margin: 0 0 5px;
    color: var(--dataflow-main);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.project-board__head h2 {
    margin: 0;
    color: var(--dataflow-heading);
    font-size: 18px;
    line-height: 1.25;
}
.project-board__head p {
    margin: 6px 0 0;
    color: #858b93;
    font-size: 12px;
    line-height: 1.45;
}
.project-dropzone {
    display: grid;
    gap: 13px;
    min-height: 286px;
    padding: 16px;
    border-radius: 0 0 14px 14px;
    transition: background .16s, box-shadow .16s;
}
.project-dropzone.is-drop-target {
    background: #fff8f4;
    box-shadow: inset 0 0 0 2px #ffc7ad;
}
.project-dropzone__empty {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 7px;
    min-height: 252px;
    padding: 30px;
    color: #858b93;
    text-align: center;
    border: 1px dashed #cbd2dc;
    border-radius: 11px;
    background: #fcfcfc;
}
.project-dropzone__empty[hidden] { display: none !important; }
.project-dropzone__empty strong { color: var(--dataflow-heading); font-size: 15px; }
.project-dropzone__empty span { max-width: 290px; font-size: 12px; line-height: 1.5; }
.project-work-item {
    padding: 17px;
    border: 1px solid var(--dataflow-stroke);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(20, 25, 38, .03);
}
.project-work-item.has-error { border-color: #ef9c9c; background: #fffafa; }
.project-work-item__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.project-work-item__head h3 {
    margin: 3px 0 0;
    color: var(--dataflow-heading);
    font-size: 15px;
    line-height: 1.4;
}
.project-work-item__category {
    display: block;
    color: #858b93;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.project-work-item__remove { flex: 0 0 auto; color: #666b73; background: #fff; }
.project-work-item__remove:hover { color: #a74413; border-color: #ffb28f; background: #fff9f6; }
.project-work-item__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 16px;
    margin: 13px 0 15px;
    padding: 10px 0;
    color: #858b93;
    border-top: 1px solid var(--dataflow-stroke);
    border-bottom: 1px solid var(--dataflow-stroke);
    font-size: 11px;
}
.project-work-item__summary strong { color: var(--dataflow-heading); font-variant-numeric: tabular-nums; }
.project-work-item__summary .badge { margin-left: auto; }
.project-work-item__delta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #575864;
    font-weight: 650;
    white-space: nowrap;
}
.project-work-item__delta .field__input {
    width: 76px;
    min-height: 32px;
    padding: 6px 8px;
    color: var(--dataflow-heading);
    background: #f6f6f6;
    border: 0;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.project-work-item__delta .field__input:focus { background: #fff; }
.project-work-item__fields { display: block; }
.project-work-item__fields .field { min-width: 0; margin: 0; }
.project-work-item__fields .field__label { margin-bottom: 6px; color: #575864; font-size: 11px; font-weight: 650; }
.project-work-item__fields .field__textarea { min-height: 42px; padding: 10px 12px; background: #f6f6f6; border: 0; resize: vertical; }
.project-work-item__fields .field__textarea:focus { background: #fff; }
.project-library { overflow: hidden; }
.project-library .table-title,
.project-library .cart-totals-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 98px 108px;
    align-items: center;
    gap: 10px;
}
.project-library .table-title {
    margin: 12px;
    padding: 11px 12px;
    color: #858b93;
    border-radius: 9px;
    background: #f6f6f6;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.project-library .table-title > :nth-child(2) { text-align: right; }
.project-library__sort {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding: 0;
    color: inherit;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}
.project-library__sort:hover { color: var(--dataflow-main); }
.project-library .cart-totals-item {
    min-height: 67px;
    padding: 11px 24px;
    border-top: 1px solid var(--dataflow-stroke);
    background: #fff;
    cursor: grab;
    transition: background .15s, opacity .15s;
}
.project-library .cart-totals-item:hover { background: #fff9f6; }
.project-library .cart-totals-item.is-dragging { opacity: .45; }
.project-library .cart-totals-item > div { min-width: 0; }
.project-library .cart-totals-item strong {
    display: block;
    overflow: hidden;
    color: var(--dataflow-heading);
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.project-library .cart-totals-item small { display: block; margin-top: 3px; color: #858b93; font-size: 10px; }
.project-library .cart-totals-item > strong { text-align: right; font-variant-numeric: tabular-nums; }
.project-library .cart-totals-item .btn { justify-self: end; }
.project-library__row[hidden] { display: none !important; }
.project-library__create {
    flex: 0 0 auto;
    margin-top: 1px;
}
.project-library__create span {
    font-size: 17px;
    font-weight: 400;
    line-height: .8;
}
.project-board__submit {
    flex: 0 0 auto;
    min-height: 38px;
    margin-top: 1px;
}

body.modal-is-open { overflow: hidden; }
.project-create-modal {
    width: min(480px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    color: var(--dataflow-heading);
    border: 0;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(20, 25, 38, .28);
}
.project-create-modal::backdrop {
    background: rgba(20, 25, 38, .58);
    backdrop-filter: blur(3px);
}
.project-create-modal__surface { overflow: hidden; border-radius: inherit; }
.project-create-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 26px 20px;
    border-bottom: 1px solid var(--dataflow-stroke);
}
.project-create-modal__head .eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--dataflow-main);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.project-create-modal__head h2 { margin: 0; font-size: 20px; line-height: 1.25; }
.project-create-modal__head p { margin: 7px 0 0; color: #858b93; font-size: 12px; line-height: 1.45; }
.project-create-modal__close {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #727780;
    border: 1px solid var(--dataflow-stroke);
    border-radius: 9px;
    background: #fff;
    font: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.project-create-modal__close:hover { color: var(--dataflow-heading); background: #f6f6f6; }
.project-create-modal__form { padding: 22px 26px 24px; }
.project-create-modal__form .field { margin-bottom: 16px; }
.project-edit-modal__note {
    margin: -2px 0 18px;
    padding: 11px 12px;
    color: #666b73;
    border-radius: 9px;
    background: #f6f6f6;
    font-size: 12px;
    line-height: 1.45;
}
.project-create-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding-top: 4px;
}
.event-entry-modal { width: min(760px, calc(100vw - 32px)); }
.event-entry-modal .field-row { align-items: flex-start; }
.user-role-badges { display: flex; flex-wrap: wrap; gap: 5px; max-width: 360px; }
.user-role-options {
    display: grid;
    gap: 8px;
    max-height: min(360px, 50vh);
    padding: 0;
    overflow-y: auto;
    border: 0;
}
.user-role-options legend {
    margin-bottom: 10px;
    color: #666b73;
    font-size: 12px;
    font-weight: 600;
}
.user-role-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--dataflow-stroke);
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
}
.user-role-option:hover { border-color: #b8c3cf; background: #fafafa; }
.user-role-option[hidden] { display: none; }
.user-role-option input { flex: 0 0 auto; margin-top: 2px; accent-color: var(--dataflow-main); }
.user-role-option span { font-size: 13px; line-height: 1.35; }
.user-role-options__hint { margin: 12px 0 18px; color: #858b93; font-size: 11px; }

@media (max-width: 980px) {
    .project-board { grid-template-columns: 1fr; }
    .project-board__library { order: 2; }
}

@media (max-width: 620px) {
    .project-board__head { padding: 18px 16px 14px; }
    .project-board__head--actions { align-items: stretch; flex-direction: column; }
    .project-library__create { align-self: flex-start; }
    .project-dropzone { min-height: 220px; padding: 12px; }
    .project-dropzone__empty { min-height: 194px; padding: 22px 16px; }
    .project-work-item { padding: 14px; }
    .project-work-item__summary .badge { margin-left: 0; }
    .project-work-item__delta { width: 100%; justify-content: space-between; }
    .project-work-item__delta .field__input { width: 104px; }
    .project-library .table-title,
    .project-library .cart-totals-item { grid-template-columns: minmax(0, 1fr) 76px 92px; gap: 7px; }
    .project-library .table-title { margin: 9px; padding: 9px; font-size: 9px; }
    .project-library .cart-totals-item { padding: 10px 14px; }
    .project-library .cart-totals-item strong { font-size: 11px; }
    .project-library .cart-totals-item .btn { padding: 7px 8px; font-size: 10px; }
    .project-board__submit { align-self: flex-start; }
    .project-create-modal { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
    .project-create-modal__head { padding: 20px 18px 17px; }
    .project-create-modal__form { padding: 18px; }
    .project-create-modal__actions { align-items: stretch; flex-direction: column-reverse; }
    .project-create-modal__actions .btn { width: 100%; }
}
