/* Оформление Investcom: каркас с боковым меню, главная, разделы и направления, таблицы карточки проекта.
   Подключается из layouts/app.blade.php после Bootstrap. Сборка (npm run build) не нужна. */

:root {
    --ic-bg: #F2F5F3;
    --ic-ink: #0F1A16;
    --ic-ink-2: #2A3833;
    --ic-ink-3: #3A4A43;
    --ic-muted: #5B6B64;
    --ic-line: #E3E9E6;
    --ic-line-soft: #EDF1EF;
    --ic-soft: #F7FAF8;
    --ic-dark: #0E3B2F;
    --ic-green: #10B981;
    --ic-green-ink: #08744F;
    --ic-green-tint: #E6F5EE;
    --ic-gold: #F2C14E;
    --ic-indigo: #6366F1;
    --ic-head: Montserrat, Inter, system-ui, sans-serif;
    --ic-side-w: 284px;
}

body.ic-body {
    margin: 0;
    background: var(--ic-bg);
    color: var(--ic-ink);
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Каркас ---------- */
.ic-shell { display: flex; align-items: flex-start; gap: 24px; padding: 20px; min-height: 100vh; }
.ic-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.ic-side {
    flex: 0 0 var(--ic-side-w); width: var(--ic-side-w);
    position: sticky; top: 20px; max-height: calc(100vh - 40px);
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--ic-line); border-radius: 24px; overflow: hidden;
}
.ic-side-scroll { overflow-y: auto; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.ic-flag { display: flex; height: 5px; flex: 0 0 auto; }
.ic-flag span:nth-child(1) { flex: 1; background: #D52B1E; }
.ic-flag span:nth-child(2) { flex: 1.4; background: var(--ic-bg); }
.ic-flag span:nth-child(3) { flex: 1; background: #1E8E3E; }

.ic-brand-box { padding: 20px 20px 16px; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--ic-line-soft); }
.ic-brand { display: flex; align-items: center; gap: 12px; color: var(--ic-ink); text-decoration: none; }
.ic-brand:hover { color: var(--ic-ink); }
.ic-brand img { width: 44px; height: 44px; flex: 0 0 auto; }
.ic-brand span { font-family: var(--ic-head); font-size: 13px; font-weight: 700; line-height: 1.3; }

.ic-langs { display: flex; gap: 4px; background: var(--ic-bg); border-radius: 12px; padding: 4px; }
.ic-langs a {
    flex: 1; min-height: 34px; display: flex; align-items: center; justify-content: center;
    border-radius: 9px; font-size: 12px; font-weight: 700; color: var(--ic-muted); text-decoration: none;
}
.ic-langs a:hover { color: var(--ic-ink); }
.ic-langs a.is-on { background: #fff; color: var(--ic-ink); box-shadow: 0 1px 3px rgba(15, 40, 30, .15); }

.ic-nav { padding: 16px 12px 8px; display: flex; flex-direction: column; gap: 4px; }
.ic-nav-title { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ic-muted); padding: 0 12px 8px; }
.ic-nav-title + .ic-nav-title, .ic-mi + .ic-nav-title, .ic-subs + .ic-nav-title { padding-top: 14px; }

.ic-mi {
    min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 6px 10px;
    border-radius: 14px; color: var(--ic-ink-2); font-size: 14px; font-weight: 500; line-height: 1.25;
    text-decoration: none; transition: background .15s ease, color .15s ease;
    background: none; border: 0; width: 100%; text-align: left;
}
.ic-mi:hover { background: #EEF4F1; color: var(--ic-ink-2); }
.ic-mi-icon {
    width: 32px; height: 32px; border-radius: 10px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    background: var(--ic-bg); color: var(--ic-ink-3); font-size: 16px;
}
.ic-mi-label { flex: 1; min-width: 0; }
.ic-mi-count { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--ic-bg); color: var(--ic-muted); }
.ic-mi.is-on { background: var(--ic-dark); color: #fff; font-weight: 700; }
.ic-mi.is-on:hover { background: var(--ic-dark); color: #fff; }
.ic-mi.is-on .ic-mi-icon { background: rgba(255, 255, 255, .12); color: var(--ic-gold); }
.ic-mi.is-on .ic-mi-count { background: rgba(255, 255, 255, .14); color: #fff; }

.ic-subs { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 8px 26px; border-left: 2px solid var(--ic-line); padding-left: 10px; }
.ic-sub {
    min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 4px 10px; border-radius: 10px; color: var(--ic-ink-3); font-size: 13px; font-weight: 500; text-decoration: none;
}
.ic-sub:hover { background: #EEF4F1; color: var(--ic-ink-3); }
.ic-sub.is-on { background: var(--ic-green-tint); color: var(--ic-green-ink); font-weight: 700; }
.ic-sub small { font-size: 11px; color: var(--ic-muted); font-weight: 600; }

.ic-side-foot { margin: 8px 16px 16px; background: var(--ic-bg); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ic-side-foot strong { font-size: 12px; font-weight: 600; line-height: 1.35; }
.ic-side-foot span { font-size: 11px; color: var(--ic-muted); word-break: break-word; }

/* Верхняя полоса на телефоне */
.ic-topbar { display: none; }
.ic-backdrop { display: none; }

@media (max-width: 991.98px) {
    .ic-shell { display: block; padding: 12px; }
    .ic-topbar {
        display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 10px 14px;
        background: #fff; border: 1px solid var(--ic-line); border-radius: 16px;
    }
    .ic-topbar button { border: 0; background: var(--ic-bg); border-radius: 10px; width: 40px; height: 40px; font-size: 20px; color: var(--ic-ink); }
    .ic-topbar span { font-family: var(--ic-head); font-size: 13px; font-weight: 700; line-height: 1.3; }
    .ic-side {
        position: fixed; top: 0; bottom: 0; left: 0; z-index: 1050; max-height: none; height: 100vh;
        border-radius: 0 24px 24px 0; transform: translateX(-105%); transition: transform .2s ease;
    }
    .ic-shell.is-open .ic-side { transform: none; }
    .ic-shell.is-open .ic-backdrop { display: block; position: fixed; inset: 0; z-index: 1040; background: rgba(15, 26, 22, .45); }
}

/* ---------- Шапка страницы ---------- */
.ic-pagehead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.ic-pagehead-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 280px; }
.ic-pagehead h1, .ic-pagehead h2 {
    margin: 0; font-family: var(--ic-head); font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; color: var(--ic-ink);
}
.ic-crumb { font-size: 13px; color: var(--ic-muted); }
.ic-crumb a { color: var(--ic-muted); text-decoration: none; }
.ic-crumb a:hover { color: var(--ic-green-ink); }
.ic-search {
    display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--ic-line); border-radius: 14px;
    padding: 0 14px; height: 48px; min-width: 240px; flex: 0 1 380px; margin: 0; color: var(--ic-muted);
}
.ic-search:focus-within { border-color: var(--ic-green); box-shadow: 0 0 0 3px rgba(16, 185, 129, .15); }
.ic-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 14px; color: var(--ic-ink); height: 100%; box-shadow: none; padding: 0; }
.ic-search input:focus { border: 0; outline: none; box-shadow: none; }
.ic-search input::placeholder { color: #7A8A83; }

/* Старые страницы: убираем лишние поля, чтобы содержимое стояло по шапке */
.ic-main .max-w-7xl { max-width: none; padding-left: 0; padding-right: 0; }
.ic-main .py-12 { padding-top: 0; padding-bottom: 20px; }
.ic-main .py-6 { padding-top: 0; padding-bottom: 0; }
.ic-main .bg-white.shadow-sm { border: 1px solid var(--ic-line); border-radius: 20px; box-shadow: none !important; }

/* ---------- Общие блоки ---------- */
.ic-card { background: #fff; border: 1px solid var(--ic-line); border-radius: 24px; padding: 22px; }
.ic-card-title { font-family: var(--ic-head); font-size: 17px; font-weight: 700; margin: 0; }
.ic-row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ic-muted { color: var(--ic-muted); }
.ic-stack { display: flex; flex-direction: column; gap: 20px; }
.ic-lift { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
a.ic-lift:hover, .ic-lift.is-hover:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(15, 60, 40, .25); }

.ic-pill { font-size: 12px; font-weight: 700; color: var(--ic-green-ink); background: var(--ic-green-tint); border-radius: 999px; padding: 6px 12px; }
.ic-chip { font-size: 12px; background: var(--ic-bg); color: var(--ic-ink-3); border-radius: 999px; padding: 6px 12px; text-decoration: none; display: inline-flex; gap: 6px; }
a.ic-chip:hover { background: var(--ic-green-tint); color: var(--ic-green-ink); }
.ic-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ic-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; display: inline-block; }
.ic-num { font-family: var(--ic-head); font-weight: 800; }

/* ---------- Главная: герой и структура портфеля ---------- */
.ic-hero-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.ic-hero {
    flex: 999 1 520px; min-width: 0; background: var(--ic-dark); color: #fff; border-radius: 28px; padding: 36px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 28px; position: relative; overflow: hidden;
}
.ic-hero svg.ic-hero-rings { position: absolute; right: -120px; top: -120px; opacity: .18; pointer-events: none; }
.ic-hero-body { display: flex; flex-direction: column; gap: 16px; position: relative; }
.ic-hero-tag {
    display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
    color: var(--ic-gold); background: rgba(242, 193, 78, .12); border-radius: 999px; padding: 6px 12px;
}
.ic-hero-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--ic-gold); }
.ic-hero h2 { margin: 0; font-family: var(--ic-head); font-size: clamp(26px, 3vw, 38px); line-height: 1.12; font-weight: 800; max-width: 760px; color: #fff; }
.ic-hero-others { display: flex; flex-direction: column; gap: 6px; }
.ic-hero-others span { display: flex; gap: 10px; align-items: baseline; font-size: 15px; color: #CFE3DA; }
.ic-hero-others b { font-size: 11px; font-weight: 700; color: var(--ic-gold); width: 22px; flex: 0 0 auto; }
.ic-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
.ic-hero-btn {
    min-height: 48px; padding: 0 20px; border-radius: 14px; font-size: 14px; font-weight: 700; text-decoration: none;
    display: inline-flex; align-items: center; gap: 10px;
}

.ic-portfolio { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 20px; border-radius: 28px; padding: 28px; }
.ic-portfolio > strong { align-self: flex-start; font-size: 15px; font-weight: 700; }
.ic-donut { border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ic-donut > div { border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; }
.ic-donut-lg { width: 200px; height: 200px; }
.ic-donut-lg > div { width: 140px; height: 140px; }
.ic-donut-md { width: 140px; height: 140px; }
.ic-donut-md > div { width: 96px; height: 96px; }
.ic-legend { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.ic-legend > * { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--ic-ink); text-decoration: none; }
.ic-legend > * > span:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ic-legend b { font-weight: 700; white-space: nowrap; }

/* ---------- Статистика и статусы ---------- */
.ic-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.ic-tile { background: var(--ic-soft); border: 1px solid var(--ic-line-soft); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ic-tile-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ic-muted); }
.ic-tile-ico { width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ic-tile-value { font-family: var(--ic-head); font-size: 22px; font-weight: 800; line-height: 1.2; }
.ic-tile-sub { font-size: 12px; color: var(--ic-muted); }
.ic-bar { height: 6px; border-radius: 3px; background: #E7ECE9; overflow: hidden; display: block; }
.ic-bar > span { display: block; height: 100%; border-radius: 3px; }

.ic-statusbar { display: flex; gap: 3px; height: 10px; border-radius: 5px; overflow: hidden; background: #E7ECE9; }
.ic-statusbar span { height: 100%; }
.ic-statuses { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.ic-status {
    background: #fff; border: 1px solid var(--ic-line); border-radius: 16px; padding: 12px 14px;
    display: flex; flex-direction: column; gap: 6px; color: var(--ic-ink); text-decoration: none; min-width: 0;
}
.ic-status:hover { color: var(--ic-ink); }
.ic-status.is-on { background: #F0FAF5; border: 2px solid var(--ic-green); padding: 11px 13px; }
.ic-status-name { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.ic-status-nums { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ic-status-nums b { font-family: var(--ic-head); font-size: 21px; font-weight: 800; }
.ic-status-nums small { font-size: 12px; color: var(--ic-muted); }

/* ---------- Карточки разделов на главной ---------- */
.ic-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 20px; }
.ic-section { border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 22px; color: var(--ic-ink); text-decoration: none; }
.ic-section:hover { color: var(--ic-ink); }
.ic-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ic-section-head strong { font-family: var(--ic-head); font-size: 20px; font-weight: 800; }
.ic-section-arrow { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; font-size: 18px; }
.ic-section-body { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.ic-section-facts { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 180px; }
.ic-section-facts > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.ic-section-facts .ic-num { font-size: 24px; }
.ic-fact { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.ic-fact > span:first-child { display: flex; align-items: center; gap: 8px; color: var(--ic-ink-3); }
.ic-fact b { font-weight: 700; white-space: nowrap; }
.ic-chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Направления ---------- */
.ic-directions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.ic-direction { border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 14px; color: var(--ic-ink); text-decoration: none; }
.ic-direction:hover { color: var(--ic-ink); border-color: var(--ic-green); }
.ic-direction-head { display: flex; align-items: center; gap: 12px; }
.ic-direction-ico { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex: 0 0 auto; background: var(--ic-green-tint); color: var(--ic-green-ink); }
.ic-direction-head strong { font-family: var(--ic-head); font-size: 16px; font-weight: 800; line-height: 1.25; }
.ic-direction-nums { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ic-direction-nums b { font-family: var(--ic-head); font-size: 26px; font-weight: 800; }
.ic-direction-nums span { font-size: 13px; color: var(--ic-muted); }
.ic-direction.is-empty { opacity: .6; }

/* ---------- Проекты направления ---------- */
.ic-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) auto auto; gap: 10px; align-items: center; }
.ic-filters .form-control, .ic-filters .form-select { border-radius: 12px; border-color: var(--ic-line); min-height: 44px; }
.ic-btn-dark { min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--ic-dark); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
.ic-btn-dark:hover { background: #0A2E25; color: #fff; }
@media (max-width: 767.98px) { .ic-filters { grid-template-columns: 1fr; } }

.ic-projects { display: flex; flex-direction: column; gap: 10px; }
.ic-project { border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; color: var(--ic-ink); text-decoration: none; }
.ic-project:hover { color: var(--ic-ink); border-color: var(--ic-green); }
.ic-project-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.ic-project-head strong { font-size: 15px; font-weight: 700; line-height: 1.35; }
.ic-project-head .ic-num { font-size: 16px; white-space: nowrap; }
.ic-project-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--ic-muted); }
.ic-project-meta .ic-sep { color: #B7C3BE; }
.ic-parts { display: flex; gap: 3px; height: 8px; width: 100%; }
.ic-parts span { height: 100%; border-radius: 4px; min-width: 4px; }
.ic-parts-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ic-ink-3); }
.ic-parts-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ic-parts-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ic-empty { text-align: center; color: var(--ic-muted); padding: 36px 16px; }

/* ---------- Карточка проекта: таблицы разделов (3.1, 4.2–4.6, «по месяцам», файлы) ---------- */
.pc-th { font-size: 13px; color: var(--ic-muted); border-bottom: 2px solid var(--ic-line); padding-bottom: 8px; }
.pc-th strong { font-weight: 600; }
.pc-item { border-bottom: 1px solid var(--ic-line-soft); padding-bottom: 12px; }
.pc-item > form > .row, .pc-add > form > .row { align-items: center; }
.pc-add { background: var(--ic-soft); border: 1px dashed var(--ic-line); border-radius: 14px; padding-top: 4px; padding-bottom: 14px; }
.pc-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.pc-actions .btn { padding: .3rem .55rem; }
.pc-actions a { text-decoration: none; }
.pc-narrow { max-width: 240px; }

/* 4.2 «Бюджет по донорам»: шесть колонок в одну строку */
@media (min-width: 768px) {
    .pc-donor-org, .pc-donor-type, .pc-donor-sum, .pc-donor-num, .pc-donor-date, .pc-donor-act { flex: 0 0 auto; }
    .pc-donor-org { width: 24%; }
    .pc-donor-type { width: 14%; }
    .pc-donor-sum { width: 17%; }
    .pc-donor-num { width: 16%; }
    .pc-donor-date { width: 17%; }
    .pc-donor-act { width: 12%; }
}
@media (max-width: 767.98px) {
    .pc-th { display: none; }
    .pc-actions { justify-content: flex-start; }
}

/* Карты: подпись источника — мелко и без подложки */
.ic-body .leaflet-container .leaflet-control-attribution {
    background: transparent;
    box-shadow: none;
    font-size: 10px;
    color: #8A9A93;
}
.ic-body .leaflet-container .leaflet-control-attribution a { color: inherit; }

/* =====================================================================
   Единый вид старых страниц: поля, кнопки, таблицы, сообщения.
   Действует на всё содержимое страницы (.ic-main main), шаблоны не меняются.
   ===================================================================== */
.ic-main main .container { max-width: none; }
.ic-main main hr { border: 0; border-top: 1px solid var(--ic-line); opacity: 1; background: none; height: 0; }
.ic-main main a:not([class]) { color: var(--ic-green-ink); }
.ic-main main a:not([class]):hover { color: var(--ic-dark); }

/* ---------- Поля ввода ----------
   :where() не добавляет веса селектору: страницы со своим оформлением полей
   (например «бумажная» форма отчёта .sip-desc) сохраняют свой вид. */
:where(.ic-main main) .form-label,
:where(.ic-main main) label.small { font-size: 13px; font-weight: 600; color: var(--ic-ink-3); margin-bottom: 6px; }
:where(.ic-main main) .form-control,
:where(.ic-main main) .form-select,
:where(.ic-main main) input[type=text],
:where(.ic-main main) input[type=number],
:where(.ic-main main) input[type=date],
:where(.ic-main main) input[type=month],
:where(.ic-main main) input[type=email],
:where(.ic-main main) input[type=password],
:where(.ic-main main) input[type=search],
:where(.ic-main main) input[type=url],
:where(.ic-main main) input[type=tel],
:where(.ic-main main) textarea,
:where(.ic-main main) select {
    min-height: 44px;
    border: 1px solid #CBD5D0;
    border-radius: 12px;
    background-color: #fff;
    color: var(--ic-ink);
    font-size: 15px;
    line-height: 1.4;
    padding-top: .5rem;
    padding-bottom: .5rem;
    padding-left: .8rem;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
:where(.ic-main main) input:not([type=checkbox]):not([type=radio]):not([type=file]),
:where(.ic-main main) textarea { padding-right: .8rem; }
:where(.ic-main main) textarea { min-height: 88px; }
:where(.ic-main main) .form-control-sm,
:where(.ic-main main) .form-select-sm { min-height: 36px; border-radius: 10px; font-size: 14px; padding-top: .3rem; padding-bottom: .3rem; }
:where(.ic-main main) .form-control:focus,
:where(.ic-main main) .form-select:focus,
:where(.ic-main main) input:not([type=checkbox]):not([type=radio]):focus,
:where(.ic-main main) textarea:focus,
:where(.ic-main main) select:focus {
    border-color: var(--ic-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .18);
    outline: none;
}
:where(.ic-main main) .form-control:disabled, :where(.ic-main main) .form-control[readonly],
:where(.ic-main main) .form-select:disabled, :where(.ic-main main) input:disabled, :where(.ic-main main) select:disabled, :where(.ic-main main) textarea:disabled {
    background-color: var(--ic-soft); color: var(--ic-muted);
}
:where(.ic-main main) ::placeholder { color: #8A9A93; opacity: 1; }
.ic-main main .input-group > .form-control { border-radius: 12px !important; }
.ic-main main .input-group-addon { display: none; }
:where(.ic-main main) .form-check-input { width: 1.15em; height: 1.15em; border-color: #A9B8B1; }
:where(.ic-main main) .form-check-input:checked { background-color: var(--ic-green-ink); border-color: var(--ic-green-ink); }
:where(.ic-main main) .form-check-input:focus { border-color: var(--ic-green); box-shadow: 0 0 0 3px rgba(16, 185, 129, .18); }
:where(.ic-main main) .form-check-label { font-size: 15px; }
:where(.ic-main main) .invalid-feedback { font-size: 12px; }

/* ---------- Кнопки ---------- */
.ic-main main .btn { border-radius: 10px; font-weight: 600; font-size: 14px; }
.ic-main main .btn-lg { border-radius: 12px; font-size: 15px; }
.ic-main main .btn-primary,
#chatbot-toggle.btn-primary, #chatbot-panel .btn-primary { background-color: var(--ic-dark); border-color: var(--ic-dark); color: #fff; }
.ic-main main .btn-primary:hover, .ic-main main .btn-primary:focus,
#chatbot-toggle.btn-primary:hover, #chatbot-panel .btn-primary:hover { background-color: #0A2E24; border-color: #0A2E24; color: #fff; }
.ic-main main .btn-success { background-color: var(--ic-green-ink); border-color: var(--ic-green-ink); color: #fff; }
.ic-main main .btn-success:hover, .ic-main main .btn-success:focus { background-color: #066041; border-color: #066041; color: #fff; }
.ic-main main .btn-outline-primary { color: var(--ic-dark); border-color: #B9C9C2; background: #fff; }
.ic-main main .btn-outline-primary:hover, .ic-main main .btn-outline-primary:focus { background-color: var(--ic-dark); border-color: var(--ic-dark); color: #fff; }
.ic-main main .btn-outline-success { color: var(--ic-green-ink); border-color: #9FD9C2; background: #fff; }
.ic-main main .btn-outline-success:hover, .ic-main main .btn-outline-success:focus { background-color: var(--ic-green-ink); border-color: var(--ic-green-ink); color: #fff; }
.ic-main main .btn-outline-dark,
.ic-main main .btn-outline-secondary { color: var(--ic-ink-2); border-color: #CBD5D0; background: #fff; }
.ic-main main .btn-outline-dark:hover, .ic-main main .btn-outline-dark:focus,
.ic-main main .btn-outline-secondary:hover, .ic-main main .btn-outline-secondary:focus { background-color: #EEF4F1; border-color: #B9C9C2; color: var(--ic-ink); }
.ic-main main .btn-outline-danger { background: #fff; }
/* Сплошные кнопки удаления и отмены: собранный Tailwind делает фон кнопок прозрачным, и белый текст пропадал */
.ic-main main .btn-danger { background-color: #DC3545; border-color: #DC3545; color: #fff; }
.ic-main main .btn-danger:hover, .ic-main main .btn-danger:focus { background-color: #BB2D3B; border-color: #B02A37; color: #fff; }
.ic-main main .btn-secondary { background-color: var(--ic-muted); border-color: var(--ic-muted); color: #fff; }
.ic-main main .btn-secondary:hover, .ic-main main .btn-secondary:focus { background-color: #4A5852; border-color: #4A5852; color: #fff; }
.ic-main main .btn:focus { box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }
#chatbot-panel .bg-primary { background-color: var(--ic-dark) !important; }
/* Кнопка помощника не должна закрывать низ страницы */
.ic-body.ic-has-chatbot .ic-main { padding-bottom: 76px; }

/* ---------- Таблицы ---------- */
.ic-main main .table { --bs-table-striped-bg: #F8FAF9; --bs-table-hover-bg: #EEF4F1; font-size: 14px; color: var(--ic-ink); border-color: var(--ic-line-soft); margin-bottom: 0; }
.ic-main main .table > :not(:first-child) { border-top: 0; }
.ic-main main .table > thead > tr > th {
    font-size: 12.5px; font-weight: 700; color: var(--ic-muted); background: var(--ic-soft);
    border-bottom: 2px solid var(--ic-line); vertical-align: bottom; padding-top: 10px; padding-bottom: 10px;
}
.ic-main main .table > thead.table-light > tr > th { background: var(--ic-soft); }
.ic-main main .table > tbody > tr > td { vertical-align: middle; padding-top: 10px; padding-bottom: 10px; border-color: var(--ic-line-soft); }
.ic-main main .table > tfoot > tr > td, .ic-main main .table > tfoot > tr > th { border-top: 2px solid var(--ic-line); font-weight: 700; }
.ic-main main .table-bordered, .ic-main main .table-bordered > :not(caption) > * > * { border-color: var(--ic-line); }
.ic-main main .table-responsive { border-radius: 14px; }

/* ---------- Сообщения, значки, карточки Bootstrap ---------- */
.ic-main main .alert { border-radius: 14px; font-size: 14px; }
.ic-main main .alert h1 { font-size: 15px; font-weight: 600; margin: 0; }
.ic-main main .alert ul { margin-bottom: 0; }
.ic-main main .badge { border-radius: 999px; font-weight: 600; font-size: 12px; padding: .4em .7em; }
.ic-main main .card { border-color: var(--ic-line); border-radius: 16px; }
.ic-main main .card-header { background: var(--ic-soft); border-bottom-color: var(--ic-line); border-radius: 16px 16px 0 0 !important; font-weight: 700; }
.ic-main main .card-footer { background: var(--ic-soft); border-top-color: var(--ic-line); border-radius: 0 0 16px 16px !important; }
.ic-main main .bg-white.shadow-sm.rounded, .ic-main main .bg-white.shadow.rounded { border: 1px solid var(--ic-line); border-radius: 20px !important; box-shadow: none !important; }

/* ---------- Формы: блоки с номером и заголовком (создание проекта, карточка) ---------- */
.ic-fs { display: flex; flex-direction: column; gap: 16px; }
.ic-fs-head { display: flex; gap: 12px; align-items: flex-start; }
.ic-fs-num {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 10px; background: var(--ic-dark); color: #fff;
    font-family: var(--ic-head); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.ic-fs-head h2 { font-family: var(--ic-head); font-size: 17px; font-weight: 700; margin: 0; line-height: 30px; }
.ic-fs-head p { margin: 2px 0 0; font-size: 13px; color: var(--ic-muted); }
.ic-req { color: #DC2626; font-weight: 700; }
.ic-err { display: none; color: #B91C1C; font-size: 13px; font-weight: 600; }
.ic-err.is-on { display: block; }

/* Выбор из двух вариантов крупными плитками */
.ic-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ic-choices > div { position: relative; }
.ic-choice-input { position: absolute; opacity: 0; pointer-events: none; }
.ic-choice {
    display: flex; gap: 12px; align-items: center; height: 100%; margin: 0; cursor: pointer;
    border: 1.5px solid var(--ic-line); border-radius: 16px; padding: 14px 16px; background: #fff;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.ic-choice:hover { border-color: #B9C9C2; }
.ic-choice-ico {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: var(--ic-bg); color: var(--ic-ink-3);
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.ic-choice b { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; }
.ic-choice small { display: block; font-size: 12.5px; color: var(--ic-muted); margin-top: 2px; }
.ic-choice-input:checked + .ic-choice { border-color: var(--ic-green); background: var(--ic-green-tint); box-shadow: 0 0 0 3px rgba(16, 185, 129, .15); }
.ic-choice-input:checked + .ic-choice .ic-choice-ico { background: var(--ic-dark); color: #fff; }
.ic-choice-input:focus-visible + .ic-choice { outline: 2px solid var(--ic-green); outline-offset: 2px; }
@media (max-width: 575.98px) { .ic-choices { grid-template-columns: 1fr; } }

/* Полоса с кнопками сохранения, всегда на виду */
.ic-formbar {
    position: sticky; bottom: 12px; z-index: 20;
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    background: #fff; border: 1px solid var(--ic-line); border-radius: 16px; padding: 12px 16px;
    box-shadow: 0 10px 30px -12px rgba(15, 60, 40, .3);
}
.ic-body.ic-has-chatbot .ic-formbar { margin-right: 68px; }
/* Карта не должна перекрывать закреплённые полосы */
.ic-main main .leaflet-container { z-index: 0; }

/* ---------- Карточка проекта: шапка, оглавление, разделы ---------- */
.ic-pcard { display: flex; flex-direction: column; gap: 20px; }
.ic-pcard > .py-12, .ic-pcard > .py-6 { padding-top: 0; padding-bottom: 0; }
.ic-pagehead h1.pc-title { font-size: 22px; line-height: 1.3; max-width: 70ch; }
.pc-summary { display: flex; flex-direction: column; gap: 16px; }
.pc-summary-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pc-summary-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pc-summary .ic-badge { font-size: 13px; padding: 5px 12px; }
.pc-section, .pc-section > form { display: flex; flex-direction: column; gap: 16px; }
.pc-h { font-family: var(--ic-head); font-size: 18px; font-weight: 700; margin: 0; }
.pc-group {
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ic-muted);
    margin: 4px 0 0; padding-top: 16px; border-top: 1px solid var(--ic-line-soft);
}
.pc-h + .pc-group { border-top: 0; padding-top: 0; }
.pc-savebar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.ic-pcard strong[style*="font-size: 20px"] { font-family: var(--ic-head); font-size: 18px !important; font-weight: 700; }
.pc-toc-target { scroll-margin-top: 84px; }

/* Оглавление разделов: закреплено сверху, прокручивается вбок */
.pc-toc {
    position: sticky; top: 10px; z-index: 30;
    display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin;
    background: #fff; border: 1px solid var(--ic-line); border-radius: 16px; padding: 6px;
    box-shadow: 0 8px 24px -14px rgba(15, 60, 40, .35);
}
.pc-toc:empty { display: none; }
.pc-toc a {
    flex: 0 0 auto; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 13px; font-weight: 600; color: var(--ic-ink-3); padding: 8px 12px; border-radius: 10px; text-decoration: none;
}
.pc-toc a:hover { background: #EEF4F1; color: var(--ic-ink); }
.pc-toc a.is-on { background: var(--ic-dark); color: #fff; }

/* Изменено, но не сохранено */
.is-dirty-row { box-shadow: inset 4px 0 0 var(--ic-gold); background: #FFFBEB; border-radius: 8px; }
.pc-dirty-note { font-size: 12px; font-weight: 700; color: #92400E; white-space: nowrap; }
.ic-main main .is-dirty-row .btn-outline-success, .ic-main main .is-dirty-form .btn-outline-success { background: var(--ic-green-ink); border-color: var(--ic-green-ink); color: #fff; box-shadow: 0 0 0 3px rgba(16, 185, 129, .25); }
.ic-main main .pc-toc a { color: var(--ic-ink-3); }
.ic-main main .pc-toc a:hover { color: var(--ic-ink); }
.ic-main main .pc-toc a.is-on { color: #fff; }
.ic-pcard .container { padding-left: 0; padding-right: 0; }
:where(.ic-main main) input[type=checkbox] { border-radius: 4px; border-color: #A9B8B1; color: var(--ic-green-ink); }
:where(.ic-main main) input[type=radio] { border-color: #A9B8B1; color: var(--ic-green-ink); }

/* ---------- Список проектов: поиск, фильтры, таблица ---------- */
.ic-listfilter { display: flex; flex-direction: column; gap: 14px; }
.ic-listfilter-search {
    display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px;
    border: 1px solid #CBD5D0; border-radius: 14px; color: var(--ic-muted); background: #fff;
}
.ic-listfilter-search:focus-within { border-color: var(--ic-green); box-shadow: 0 0 0 3px rgba(16, 185, 129, .18); }
.ic-main main .ic-listfilter-search input,
.ic-main main .ic-listfilter-search input:focus {
    flex: 1; min-width: 0; min-height: 0; height: 100%; border: 0; border-radius: 0; padding: 0; box-shadow: none; outline: none; background: transparent; font-size: 15px;
}
.ic-filtergrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.ic-filtergrid > div { min-width: 0; }
.ic-filtergrid-actions { display: flex; gap: 8px; align-items: center; }
.ic-filtergrid-actions .btn { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.ic-main main .table.ic-table > tbody > tr > td { padding-top: 12px; padding-bottom: 12px; }
.ic-rowlink { cursor: pointer; }
.ic-main main a.ic-rowlink-title { color: var(--ic-ink); font-weight: 600; text-decoration: none; }
.ic-main main tr.ic-rowlink:hover a.ic-rowlink-title { color: var(--ic-green-ink); }
.ic-tnum { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Страница «Отчёты»: группы ссылок ---------- */
.ic-reports { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; align-items: start; }
.ic-reportgroup { display: flex; flex-direction: column; gap: 12px; }
.ic-reportlist { display: flex; flex-direction: column; gap: 4px; }
.ic-main main a.ic-report {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px;
    text-decoration: none; color: var(--ic-ink); font-size: 14px; font-weight: 500; line-height: 1.35;
}
.ic-main main a.ic-report:hover { background: #EEF4F1; }
.ic-report-ico {
    flex: 0 0 auto; width: 36px; height: 36px; border-radius: 11px; background: var(--ic-bg); color: var(--ic-ink-3);
    display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.ic-report-title { flex: 1; min-width: 0; }

/* ---------- Справочники: строка поиска с кнопками ---------- */
.ic-sprbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.ic-sprbar .form-control { flex: 1 1 240px; }
.ic-sprbar .btn { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* ---------- Справочники: плитки ---------- */
.ic-sprgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ic-sprtile { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 20px; }
.ic-main main a.ic-sprtile-main { display: flex; align-items: center; gap: 12px; color: var(--ic-ink); text-decoration: none; }
.ic-sprtile-main strong { font-size: 15px; font-weight: 700; line-height: 1.3; }
.ic-main main a.ic-sprtile-main:hover strong { color: var(--ic-green-ink); }
.ic-sprtile-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Ввод данных: выбор формы ---------- */
.ic-entry { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.ic-main main a.ic-entry-card { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ic-ink); }
.ic-entry-ico { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.ic-entry-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ic-entry-text strong { font-family: var(--ic-head); font-size: 17px; font-weight: 700; line-height: 1.3; }
.ic-entry-text span { font-size: 13px; color: var(--ic-muted); }
.ic-entry-go { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--ic-green-ink); white-space: nowrap; }

/* Плитки-фильтры (подсекторы направления) */
.ic-main main a.ic-chip { color: var(--ic-ink-3); align-items: center; }
.ic-main main a.ic-chip:hover { background: #E3ECE8; color: var(--ic-ink); }
.ic-main main a.ic-chip.is-on { background: var(--ic-dark); color: #fff; }
.ic-chip b { font-weight: 700; }
.ic-filters.is-compact { grid-template-columns: minmax(0, 1fr) auto auto; }
.ic-main main .table .btn { white-space: nowrap; }

/* «Бумажные» формы отчётов ГИП/ПИП оформляют поля сами — без скруглений и минимальной высоты */
:where(.ic-main main) .sip-desc input, :where(.ic-main main) .sip-desc textarea, :where(.ic-main main) .sip-desc select,
:where(.ic-main main) .fap-desc input, :where(.ic-main main) .fap-desc textarea, :where(.ic-main main) .fap-desc select { border-radius: 0; min-height: 0; }

/* Плашка «Проект в архиве» с кнопкой «Вернуть из архива» */
.pc-archive-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pc-archive-note > span { flex: 1 1 320px; }
.pc-archive-note .btn { white-space: nowrap; }
/* Крестик закрытия окон и сообщений Bootstrap: собранный Tailwind (preflight) стирает у кнопок
   фоновую картинку, а крестик .btn-close нарисован именно ею — возвращаем картинку из Bootstrap 5.1 */
button.btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center / 1em auto no-repeat;
}

/* ---------- Экран выбора раздела (resources/views/start.blade.php): на весь экран, без меню ---------- */
/* Страница без Bootstrap и Tailwind, поэтому базовые сбросы — здесь */
body.ic-start-body { background: var(--ic-dark); }
.ic-start, .ic-start *, .ic-start *::before, .ic-start *::after { box-sizing: border-box; }
.ic-start {
    position: relative; overflow: hidden; min-height: 100vh; min-height: 100dvh; color: #fff;
    display: flex; flex-direction: column; gap: 40px; padding: 28px clamp(16px, 5vw, 72px) 40px;
}
.ic-start-rings { position: absolute; right: -200px; top: -200px; width: 760px; height: 760px; opacity: .18; pointer-events: none; }
.ic-start-top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.ic-start-brand { display: flex; align-items: center; gap: 12px; max-width: 440px; font-size: 13px; font-weight: 600; line-height: 1.35; color: #E3EFE9; }
.ic-start-brand img { width: 44px; height: 44px; flex: 0 0 auto; }
.ic-start-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ic-start-tools form { margin: 0; }
.ic-start-langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.ic-start-langs a { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #CFE3DA; text-decoration: none; }
.ic-start-langs a:hover { color: #fff; }
.ic-start-langs a.is-on { background: #fff; color: var(--ic-dark); }
.ic-start-user { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #CFE3DA; }
.ic-start-logout {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; font: inherit; font-size: 13px; font-weight: 600;
}
.ic-start-logout:hover { background: rgba(255, 255, 255, .1); }
/* Содержимое экрана — по центру */
.ic-start-main { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 48px; width: 100%; max-width: 1100px; margin: 0 auto; text-align: center; }
.ic-start-main > section { width: 100%; }
.ic-start-hero { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ic-start .ic-hero-tag { align-self: center; }
.ic-start-hero h1 { margin: 0; max-width: 980px; font-family: var(--ic-head); font-size: clamp(32px, 5vw, 60px); line-height: 1.08; font-weight: 800; color: #fff; }
.ic-start-ask { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ic-gold); }
.ic-start-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 880px; margin: 0 auto; text-align: left; }
.ic-start-grid.is-three { max-width: 1100px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.ic-start-choice {
    position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 172px; padding: 24px 26px;
    border-radius: 22px; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease;
}
.ic-start-choice:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -16px rgba(0, 0, 0, .55); }
.ic-start-choice:focus-visible { outline: 3px solid var(--ic-gold); outline-offset: 3px; }
.ic-start-choice.is-state { background: var(--ic-green); color: #062A1E; }
.ic-start-choice.is-foreign { background: #E4E6FD; color: #3730A3; }
.ic-start-choice-ico { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: rgba(255, 255, 255, .4); }
.ic-start-choice-title { margin-top: auto; font-family: var(--ic-head); font-size: 23px; line-height: 1.2; font-weight: 800; }
.ic-start-choice-meta { font-size: 14px; font-weight: 600; opacity: .8; }
.ic-start-choice-arrow { position: absolute; top: 24px; right: 24px; font-size: 22px; transition: transform .18s ease; }
.ic-start-choice:hover .ic-start-choice-arrow { transform: translateX(4px); }
/* Первый раздел (работает) — белая карточка; разделы в разработке — приглушённые, с меткой «Скоро» */
.ic-start-choice.is-main { background: #fff; color: var(--ic-dark); }
.ic-start-choice.is-main .ic-start-choice-ico { background: var(--ic-green-tint); color: var(--ic-green-ink); }
.ic-start-choice.is-soon { background: rgba(255, 255, 255, .06); border: 1px dashed rgba(255, 255, 255, .24); color: #CFE3DA; }
.ic-start-choice.is-soon:hover { background: rgba(255, 255, 255, .1); box-shadow: none; }
.ic-start-choice.is-soon .ic-start-choice-ico { background: rgba(255, 255, 255, .1); }
.ic-start-soon {
    display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px;
    background: rgba(242, 193, 78, .16); color: var(--ic-gold); font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.ic-start-choice .ic-start-soon { position: absolute; top: 22px; right: 22px; }
.ic-start-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; color: #CFE3DA; font-size: 14px; font-weight: 600; text-decoration: none; }
.ic-start-back:hover { color: #fff; }
.ic-start-back.is-button { margin: 6px 0 0; padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; }
.ic-start-back.is-button:hover { background: rgba(255, 255, 255, .16); }
.ic-start-back:focus-visible { outline: 2px solid var(--ic-gold); outline-offset: 2px; }
/* Экран раздела в разработке */
.ic-start-soonbox {
    display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 560px; margin: 0 auto; padding: 32px;
    border-radius: 24px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}
.ic-start-soonbox .ic-start-choice-ico { background: rgba(255, 255, 255, .12); color: #fff; }
.ic-start-soonbox h2 { margin: 0; font-family: var(--ic-head); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; font-weight: 800; color: #fff; }
.ic-start-soonbox p { margin: 0; font-size: 15px; color: #CFE3DA; }
.ic-start-langs a:focus-visible, .ic-start-logout:focus-visible { outline: 2px solid var(--ic-gold); outline-offset: 2px; }
@media (max-width: 640px) {
    .ic-start { gap: 28px; padding-top: 18px; }
    .ic-start-rings { width: 480px; height: 480px; right: -220px; top: -160px; }
    .ic-start-brand { font-size: 12px; }
    .ic-start-brand img { width: 36px; height: 36px; }
    .ic-start-main { gap: 32px; }
    .ic-start-choice { min-height: 136px; padding: 20px; }
    .ic-start-choice-title { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .ic-start-choice, .ic-start-choice-arrow { transition: none; }
}

/* Главная: «Статистика» и «Структура портфеля» в одном ряду (тёмный блок перенесён на экран выбора раздела) */
.ic-home-stats { flex: 999 1 520px; min-width: 0; }

/* ---------- Страница входа (resources/views/auth/login.blade.php): фон и шапка — как у экрана выбора (ic-start-*) ---------- */
/* Только форма — по центру экрана; в шапке один переключатель языка, справа */
.ic-login .ic-start-top { justify-content: flex-end; }
.ic-login-main { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; }
.ic-login-card {
    flex: 0 1 420px; width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 20px;
    padding: 32px; border-radius: 24px; background: #fff; color: var(--ic-ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
}
.ic-login-card h2 { margin: 0; font-family: var(--ic-head); font-size: 24px; line-height: 1.2; font-weight: 800; }
.ic-login-sub { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--ic-muted); }
.ic-login-status { padding: 10px 12px; border-radius: 10px; background: var(--ic-green-tint); color: var(--ic-green-ink); font-size: 14px; }
.ic-login-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.ic-login-field { display: flex; flex-direction: column; gap: 6px; }
.ic-login-field label { font-size: 13px; font-weight: 600; color: var(--ic-ink-2); }
.ic-login-input {
    display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px;
    border: 1px solid #CBD5D0; border-radius: 12px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.ic-login-input:focus-within { border-color: var(--ic-green); box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }
.ic-login-input.is-invalid { border-color: #D92D20; }
.ic-login-input > i { font-size: 16px; color: var(--ic-muted); }
.ic-login-input input { flex: 1; min-width: 0; padding: 12px 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ic-ink); }
.ic-login-eye { margin-right: -6px; padding: 6px; border: 0; border-radius: 8px; background: none; color: var(--ic-muted); font-size: 17px; line-height: 1; cursor: pointer; }
.ic-login-eye:hover { color: var(--ic-ink); }
.ic-login-eye:focus-visible { outline: 2px solid var(--ic-green); }
.ic-login-error { font-size: 13px; color: #B42318; }
.ic-login-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.ic-login-row a { color: var(--ic-green-ink); font-weight: 600; text-decoration: none; }
.ic-login-row a:hover { text-decoration: underline; }
.ic-login-hint { color: var(--ic-muted, #6b7280); font-size: 13px; }
.ic-login-check { display: inline-flex; align-items: center; gap: 8px; color: var(--ic-ink-2); cursor: pointer; }
.ic-login-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--ic-green-ink); }
.ic-login-submit {
    display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 50px; border: 0; border-radius: 14px;
    background: var(--ic-dark); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s ease;
}
.ic-login-submit:hover { background: #0A2E24; }
.ic-login-submit:focus-visible { outline: 3px solid var(--ic-gold); outline-offset: 2px; }
.ic-login-submit:disabled { opacity: .7; cursor: default; }
@media (max-width: 640px) {
    .ic-login-card { padding: 24px 20px; }
}
