:root {
  color-scheme: light;
  --ink: #10182e;
  --ink-2: #26314b;
  --muted: #778197;
  --line: #e8eaf0;
  --paper: #f4f5f7;
  --white: #ffffff;
  --navy: #111a31;
  --navy-2: #192442;
  --lime: #d9ff67;
  --lime-ink: #34430b;
  --orange: #ff6b47;
  --orange-soft: #fff0eb;
  --green: #1e9b68;
  --green-soft: #eaf9f2;
  --amber: #b57912;
  --amber-soft: #fff5d9;
  --red: #d84a4a;
  --red-soft: #fff0f0;
  --shadow: 0 14px 40px rgba(17, 26, 49, 0.07);
  --radius-lg: 24px;
  --radius-md: 17px;
  --radius-sm: 12px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.wordmark { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 23px; font-weight: 780; letter-spacing: -0.7px; text-decoration: none; }
.wordmark--dark { color: var(--ink); }
.wordmark__dot { width: 24px; height: 24px; border-radius: 7px 7px 7px 2px; background: var(--lime); position: relative; transform: rotate(-4deg); }
.wordmark__dot::after { content: ""; position: absolute; width: 7px; height: 7px; border: 3px solid var(--navy); border-left: 0; border-bottom: 0; top: 6px; left: 6px; }
.eyebrow { margin: 0 0 9px; color: #8790a2; font-size: 10px; font-weight: 800; letter-spacing: 1.7px; }
.eyebrow--light { color: #8e9ab6; }

.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.08fr) minmax(420px, 0.92fr); background: var(--navy); }
.login-brand { position: relative; overflow: hidden; min-height: 680px; padding: 44px 7vw; display: flex; align-items: center; background: var(--navy); }
.login-brand::before { content: ""; position: absolute; width: 490px; height: 490px; border-radius: 50%; border: 110px solid rgba(217,255,103,.035); right: -190px; top: -220px; }
.login-brand::after { content: ""; position: absolute; width: 190px; height: 190px; border: 1px solid rgba(255,255,255,.08); transform: rotate(45deg); bottom: -100px; left: 18%; }
.login-brand__mark { position: absolute; top: 42px; left: 52px; width: 44px; height: 44px; border-radius: 13px 13px 13px 4px; background: var(--lime); color: var(--navy); display: grid; place-items: center; font-size: 13px; font-weight: 900; letter-spacing: -1px; }
.login-brand__content { position: relative; z-index: 1; width: min(630px, 100%); }
.login-brand h1 { max-width: 650px; margin: 0; color: #fff; font-size: clamp(38px, 4.5vw, 68px); line-height: .99; letter-spacing: -3.7px; font-weight: 650; }
.login-brand__content > p:not(.eyebrow) { max-width: 530px; margin: 24px 0 42px; color: #aeb8d0; font-size: 17px; line-height: 1.65; }
.login-preview { width: min(560px, 94%); height: 240px; padding: 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; background: rgba(255,255,255,.055); box-shadow: 0 26px 60px rgba(0,0,0,.23); transform: perspective(900px) rotateY(7deg) rotateX(2deg); transform-origin: left center; }
.login-preview__top { display: flex; gap: 5px; margin-bottom: 18px; }
.login-preview__top span { width: 5px; height: 5px; border-radius: 50%; background: #5d6985; }
.login-preview__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.login-preview__stats i { height: 48px; border-radius: 9px; background: rgba(255,255,255,.08); position: relative; }
.login-preview__stats i::before, .login-preview__stats i::after { content: ""; position: absolute; left: 10px; border-radius: 5px; background: #59657e; }
.login-preview__stats i::before { top: 11px; width: 38%; height: 5px; }
.login-preview__stats i::after { bottom: 10px; width: 58%; height: 9px; background: #aebe81; }
.login-preview__chart { height: 120px; display: flex; gap: 9px; align-items: end; padding: 18px 5px 5px; border-bottom: 1px solid rgba(255,255,255,.08); }
.login-preview__chart b { flex: 1; height: 20%; border-radius: 5px 5px 2px 2px; background: rgba(217,255,103,.34); }
.login-preview__chart b:nth-child(2) { height: 33%; }.login-preview__chart b:nth-child(3) { height: 27%; }.login-preview__chart b:nth-child(4) { height: 61%; }.login-preview__chart b:nth-child(5) { height: 46%; }.login-preview__chart b:nth-child(6) { height: 72%; }.login-preview__chart b:nth-child(7) { height: 64%; }.login-preview__chart b:nth-child(8) { height: 90%; background: var(--lime); }
.login-panel { background: #f8f8fa; display: grid; place-items: center; padding: 54px 8vw; border-radius: 34px 0 0 34px; }
.login-form { width: min(420px, 100%); }
.login-form > .wordmark { margin-bottom: 90px; }
.login-form__intro { margin-bottom: 34px; }
.login-form h2 { margin: 0 0 9px; font-size: 36px; line-height: 1.1; letter-spacing: -1.4px; }
.login-form__intro > p:last-child { margin: 0; color: var(--muted); font-size: 15px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; color: var(--ink-2); font-size: 12px; font-weight: 750; }
.field input, .field textarea, .field select { width: 100%; min-height: 49px; padding: 0 14px; border: 1px solid #dfe2e9; border-radius: 11px; outline: 0; background: #fff; color: var(--ink); font-weight: 500; transition: border .2s, box-shadow .2s; }
.field textarea { min-height: 90px; padding-top: 12px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #96aa52; box-shadow: 0 0 0 3px rgba(217,255,103,.28); }
.password-field { position: relative; }
.password-field input { padding-right: 80px; }
.icon-button { border: 0; background: transparent; cursor: pointer; color: var(--muted); }
.icon-button--inside { position: absolute; top: 0; right: 6px; height: 49px; font-size: 11px; font-weight: 800; }
.primary-button, .secondary-button { min-height: 45px; border: 0; border-radius: 11px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; font-weight: 750; transition: transform .15s, background .15s, opacity .15s; }
.primary-button { background: var(--navy); color: #fff; }
.primary-button:hover, .secondary-button:hover { transform: translateY(-1px); }
.primary-button:disabled, .secondary-button:disabled { cursor: wait; opacity: .6; transform: none; }
.primary-button--wide { width: 100%; margin-top: 5px; min-height: 52px; }
.primary-button--wide span { margin-left: auto; font-size: 18px; }
.secondary-button { background: #edf0f4; color: var(--ink-2); }
.secure-note { display: flex; justify-content: center; gap: 8px; color: #949bad; margin: 21px 0 0; font-size: 11px; }
.secure-note span { color: var(--green); }
.form-error { margin: -4px 0 14px; padding: 10px 12px; color: #aa3131; background: var(--red-soft); border-radius: 9px; font-size: 12px; font-weight: 650; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 232px; padding: 28px 20px 20px; background: var(--navy); color: #fff; display: flex; flex-direction: column; }
.sidebar > .wordmark { margin: 2px 9px 47px; }
.main-nav { display: grid; gap: 6px; }
.nav-item { width: 100%; min-height: 46px; padding: 0 13px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 11px; background: transparent; color: #909ab2; cursor: pointer; text-align: left; font-size: 13px; font-weight: 650; }
.nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-item.is-active { background: var(--lime); color: var(--navy); }
.nav-item b { margin-left: auto; min-width: 22px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.09); font-size: 10px; }
.nav-item.is-active b { background: rgba(17,26,49,.1); }
.nav-icon { width: 20px; text-align: center; font-size: 18px; font-weight: 400; }
.sidebar__spacer { flex: 1; }
.sync-card { margin: 0 2px 14px; padding: 13px; display: flex; align-items: center; gap: 11px; border-radius: 12px; background: rgba(255,255,255,.055); }
.sync-card__icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(217,255,103,.12); color: var(--lime); font-size: 17px; }
.sync-card b, .sync-card small { display: block; }
.sync-card b { font-size: 11px; margin-bottom: 3px; }.sync-card small { color: #7f8aa4; font-size: 9px; line-height: 1.3; }
.profile-card { width: 100%; padding: 12px 7px; display: flex; align-items: center; gap: 10px; border: 0; border-top: 1px solid rgba(255,255,255,.08); background: transparent; color: #fff; cursor: pointer; text-align: left; }
.profile-card > span:nth-child(2) { min-width: 0; flex: 1; }.profile-card b,.profile-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.profile-card b { font-size: 11px; }.profile-card small { margin-top: 3px; color: #7f8aa4; font-size: 9px; }.profile-card i { color: #69738b; font-style: normal; font-size: 9px; letter-spacing: 1px; }
.avatar { flex: 0 0 34px; height: 34px; border-radius: 10px; background: #2b3652; display: grid; place-items: center; font-weight: 850; color: var(--lime); }

.workspace { grid-column: 2; min-width: 0; }
.topbar { position: sticky; z-index: 12; top: 0; height: 76px; padding: 0 clamp(22px, 3vw, 44px); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: rgba(244,245,247,.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(220,223,230,.8); }
.mobile-brand { display: none; }
.breadcrumb { display: flex; align-items: center; gap: 9px; min-width: 0; color: #9aa1b0; font-size: 12px; white-space: nowrap; }.breadcrumb b { font-weight: 400; color: #c4c8d1; }.breadcrumb strong { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.compact-select { height: 44px; min-width: 180px; padding: 5px 11px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; border: 1px solid #e1e4e9; border-radius: 11px; background: #fff; }.compact-select span { color: #9aa1b0; font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .7px; }.compact-select select { min-width: 80px; border: 0; outline: 0; background: transparent; color: var(--ink-2); font-size: 11px; font-weight: 750; }
.period-control { height: 44px; display: flex; align-items: center; border: 1px solid #e1e4e9; background: #fff; border-radius: 11px; overflow: hidden; }
.period-control button { height: 100%; border: 0; background: transparent; cursor: pointer; }.period-control > button:first-child,.period-control > button:last-child { width: 32px; color: #8f97a8; font-size: 20px; }.period-control__label { min-width: 120px; padding: 0 4px; color: var(--ink-2); font-size: 11px; font-weight: 750; }
.topbar .secondary-button { height: 44px; font-size: 11px; }

.content { max-width: 1600px; min-height: calc(100vh - 76px); padding: 35px clamp(22px, 3vw, 44px) 60px; outline: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.page-head h1 { margin: 0; font-size: clamp(25px, 2.2vw, 34px); letter-spacing: -1.4px; line-height: 1.05; }.page-head p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }.page-head__meta { color: var(--muted); font-size: 11px; text-align: right; }
.page-head__meta b { display: block; margin-bottom: 3px; color: var(--ink-2); font-size: 13px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 15px; }
.kpi-card { min-height: 126px; padding: 19px 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); box-shadow: 0 5px 20px rgba(17,26,49,.025); overflow: hidden; }
.kpi-card--dark { color: #fff; background: var(--navy); border-color: var(--navy); }
.kpi-card__label { display: flex; justify-content: space-between; align-items: center; color: #9098a8; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .8px; }
.kpi-card__label i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #f1f3f6; color: #6e778a; font-size: 13px; font-style: normal; }.kpi-card--dark .kpi-card__label { color: #8e99b4; }.kpi-card--dark .kpi-card__label i { background: #26314d; color: var(--lime); }
.kpi-card__value { margin: 14px 0 8px; font-size: clamp(22px, 2.4vw, 32px); font-weight: 720; letter-spacing: -1.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-card__foot { display: flex; justify-content: space-between; gap: 8px; color: #989fad; font-size: 10px; }.kpi-card__foot b { color: var(--ink-2); }.kpi-card--dark .kpi-card__foot b { color: var(--lime); }
.progress { height: 4px; margin-top: 11px; overflow: hidden; border-radius: 4px; background: #edf0f2; }.progress span { display: block; height: 100%; border-radius: inherit; background: var(--orange); }.kpi-card--dark .progress { background: #28334e; }.kpi-card--dark .progress span { background: var(--lime); }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, .75fr); gap: 15px; margin-bottom: 29px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.chart-panel { min-height: 320px; padding: 21px 22px 15px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }.panel-head h2,.panel-head h3 { margin: 0; letter-spacing: -.5px; font-size: 15px; }.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }.panel-head__legend { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 9px; }.legend-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--orange); }.legend-dot--lime { background: #88a842; }
.chart-wrap { position: relative; height: 235px; }.chart-wrap canvas { width: 100%; height: 100%; }
.attention-panel { padding: 21px 20px; background: #fff; }
.attention-list { display: grid; gap: 8px; }
.attention-item { padding: 13px 12px; display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 10px; border-radius: 12px; background: #f7f8fa; cursor: pointer; border: 1px solid transparent; transition: border .15s, transform .15s; }.attention-item:hover { border-color: #dfe3e9; transform: translateX(2px); }.attention-item > i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }.attention-item--green > i { background: var(--green); }.attention-item b { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }.attention-item small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }.attention-item > span:last-child { font-size: 10px; color: #a1a7b3; }
.attention-empty { min-height: 190px; display: grid; place-items: center; text-align: center; color: var(--muted); }.attention-empty span { width: 42px; height: 42px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 18px; }.attention-empty b { display: block; color: var(--ink-2); font-size: 11px; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 14px; }.section-head h2 { margin: 0; font-size: 17px; letter-spacing: -.6px; }.section-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.search-field { position: relative; width: min(280px, 100%); }.search-field input { width: 100%; height: 40px; padding: 0 14px 0 36px; border: 1px solid #e0e3e9; border-radius: 10px; outline: 0; background: #fff; font-size: 11px; }.search-field input:focus { border-color: #a4b761; }.search-field span { position: absolute; left: 13px; top: 11px; color: #969eae; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(250px, 1fr)); gap: 13px; }
.project-card { min-width: 0; min-height: 203px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); cursor: pointer; transition: transform .18s, box-shadow .18s, border .18s; }.project-card:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(17,26,49,.09); border-color: #d9dde5; }
.project-card__top { display: flex; align-items: flex-start; gap: 11px; }.project-logo { flex: 0 0 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; background: #eff1f4; color: #5a657a; font-size: 11px; font-weight: 850; }.project-card__title { min-width: 0; flex: 1; }.project-card__title h3 { margin: 1px 0 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; letter-spacing: -.2px; }.project-card__title p { margin: 0; color: var(--muted); font-size: 9px; }.status-pill { flex: 0 0 auto; padding: 5px 7px; border-radius: 7px; color: var(--green); background: var(--green-soft); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .45px; }.status-pill--warn { color: var(--amber); background: var(--amber-soft); }.status-pill--danger { color: var(--red); background: var(--red-soft); }.status-pill--neutral { color: #747c8c; background: #eff1f4; }
.project-card__metrics { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 10px; margin: 22px 0 16px; }.mini-metric small,.mini-metric b { display: block; }.mini-metric small { margin-bottom: 6px; color: #9ca3b0; font-size: 8px; text-transform: uppercase; letter-spacing: .55px; }.mini-metric b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.mini-metric:first-child b { font-size: 15px; }
.project-card__foot { display: flex; align-items: center; gap: 10px; }.project-card__foot .progress { flex: 1; margin: 0; height: 5px; }.project-card__foot small { min-width: 29px; text-align: right; color: #8f97a5; font-size: 9px; }.project-card__arrow { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: #f2f3f5; color: #7d8595; }
.empty-state { padding: 60px 20px; grid-column: 1 / -1; border: 1px dashed #d6d9e0; border-radius: var(--radius-md); text-align: center; color: var(--muted); background: rgba(255,255,255,.45); }.empty-state b { display: block; margin-bottom: 5px; color: var(--ink-2); }

.project-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 23px; }.project-head__back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px; padding: 0; border: 0; background: transparent; color: #7b8495; cursor: pointer; font-size: 10px; font-weight: 750; }.project-head h1 { margin: 0; font-size: clamp(24px, 2.4vw, 36px); letter-spacing: -1.6px; line-height: 1.08; }.project-head__details { display: flex; gap: 10px; margin-top: 10px; color: var(--muted); font-size: 10px; }.project-head__actions { display: flex; gap: 9px; align-items: center; }
.project-summary { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
.project-chart-panel { margin-bottom: 16px; padding: 22px; }
.project-table-panel { overflow: hidden; }
.table-toolbar { padding: 20px 22px 13px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }.table-toolbar h2 { margin: 0 0 4px; font-size: 15px; }.table-toolbar p { margin: 0; color: var(--muted); font-size: 10px; }.editable-key { padding: 7px 9px; border-radius: 8px; background: var(--amber-soft); color: #8a671f; font-size: 9px; font-weight: 650; }
.table-scroll { overflow: auto; max-height: min(640px, 65vh); }
.metrics-table { width: 100%; min-width: 1020px; border-collapse: separate; border-spacing: 0; font-size: 10px; }.metrics-table th { position: sticky; z-index: 2; top: 0; height: 42px; padding: 0 12px; background: #f7f8fa; color: #7f8797; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: right; font-size: 8px; text-transform: uppercase; letter-spacing: .55px; white-space: nowrap; }.metrics-table th:first-child,.metrics-table th:nth-last-child(2) { text-align: left; }.metrics-table td { height: 51px; padding: 7px 12px; border-bottom: 1px solid #eef0f3; text-align: right; white-space: nowrap; }.metrics-table tr:last-child td { border-bottom: 0; }.metrics-table tbody tr:hover td { background: #fbfbfc; }.metrics-table tbody tr.is-today td { background: #f5f9e9; }.day-label { display: flex; align-items: center; gap: 8px; font-weight: 750; }.day-label span { color: #a0a7b4; font-size: 8px; font-weight: 550; }.source-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #b5bbc6; }.source-dot--yandex { background: var(--green); }.editable-cell input { width: 68px; height: 31px; border: 1px solid #eadcae; border-radius: 8px; background: #fff9e8; text-align: right; outline: 0; padding: 0 8px; font-weight: 750; }.editable-cell input:focus { border-color: #b99438; box-shadow: 0 0 0 2px rgba(185,148,56,.14); }.comment-cell { min-width: 240px; }.comment-cell input { width: 100%; height: 31px; border: 1px solid transparent; border-radius: 8px; background: transparent; padding: 0 8px; outline: 0; text-align: left; color: var(--ink-2); }.comment-cell input:hover { background: #f5f6f8; }.comment-cell input:focus { border-color: #daddE4; background: #fff; }.save-day { min-width: 72px; height: 31px; border: 0; border-radius: 8px; background: #edf0f3; color: #7e8797; cursor: pointer; font-size: 9px; font-weight: 750; }.save-day.has-changes { background: var(--navy); color: #fff; }.save-day:disabled { opacity: .55; cursor: wait; }
.settings-panel { margin-top: 16px; padding: 22px; }.settings-form { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 13px; }.settings-form .field { margin: 0; }.settings-form__integration { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding-top: 14px; border-top: 1px solid var(--line); }.settings-form__actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }

.history-hero { padding: 26px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--navy); color: #fff; }.history-hero h2 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.8px; }.history-hero p { margin: 0; color: #98a3bb; font-size: 11px; }.history-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }.history-month { min-height: 130px; padding: 18px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; cursor: pointer; }.history-month:hover { border-color: #bfc7d5; }.history-month.is-current { border-color: #aabb6b; box-shadow: inset 0 0 0 1px #aabb6b; }.history-month small,.history-month b,.history-month span { display: block; }.history-month small { color: var(--muted); font-size: 9px; text-transform: uppercase; }.history-month b { margin: 13px 0 5px; font-size: 17px; }.history-month span { color: var(--muted); font-size: 9px; }

.loading { min-height: 440px; display: grid; place-items: center; color: var(--muted); }.loading span { width: 36px; height: 36px; margin: 0 auto 13px; display: block; border: 3px solid #dde1e7; border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; }.loading p { margin: 0; font-size: 11px; } @keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: min(390px, calc(100vw - 32px)); padding: 13px 17px; border-radius: 11px; background: var(--navy); color: #fff; box-shadow: 0 16px 35px rgba(10,18,35,.25); font-size: 11px; font-weight: 650; }.toast.is-error { background: #a73535; }
.dialog { width: min(430px, calc(100% - 30px)); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 30px 80px rgba(17,26,49,.25); }.dialog::backdrop { background: rgba(11,17,32,.45); backdrop-filter: blur(3px); }.dialog__sheet { margin: 0; padding: 25px; }.dialog__sheet--compact { width: 100%; }.dialog__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }.dialog__head h3 { margin: 0; font-size: 21px; letter-spacing: -.8px; }.close-button { width: 34px; height: 34px; border: 0; border-radius: 9px; background: #f1f2f5; color: #7f8797; cursor: pointer; font-size: 21px; }.dialog-row { width: 100%; min-height: 48px; padding: 0 4px; display: flex; align-items: center; justify-content: space-between; border: 0; border-top: 1px solid var(--line); background: transparent; cursor: pointer; font-weight: 650; }.dialog-row--danger { color: var(--red); }.dialog-copy { margin: -10px 0 20px; color: var(--muted); font-size: 11px; line-height: 1.55; }.month-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }.month-grid button { min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-size: 11px; }.month-grid button:hover,.month-grid button.is-current { border-color: #9cae5b; background: #f5f9e9; color: #53631d; font-weight: 750; }
.mobile-nav { display: none; }

@media (max-width: 1180px) {
  .project-grid { grid-template-columns: repeat(2, minmax(250px, 1fr)); }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-grid { grid-template-columns: 1fr; }.attention-list { grid-template-columns: repeat(3, 1fr); }.attention-empty { min-height: 100px; }
  .compact-select { min-width: 150px; }
}

@media (max-width: 900px) {
  .login-screen { grid-template-columns: 1fr; background: #f8f8fa; }.login-brand { display: none; }.login-panel { min-height: 100vh; border-radius: 0; }.login-form > .wordmark { margin-bottom: 70px; }
  .app-shell { display: block; }.sidebar { display: none; }.workspace { min-height: 100vh; }.topbar { height: auto; min-height: 70px; padding: 12px 18px; flex-wrap: wrap; }.mobile-brand { display: block; }.breadcrumb { display: none; }.topbar__actions { width: 100%; order: 2; justify-content: space-between; }.compact-select { flex: 1; }.period-control { flex: 1; }.period-control__label { min-width: 100px; }.topbar .secondary-button b { display: none; }.content { padding: 25px 17px 95px; }.mobile-nav { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; height: 67px; padding: 7px 12px calc(7px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }.mobile-nav button { display: grid; place-items: center; gap: 2px; border: 0; background: transparent; color: #939aaa; font-size: 9px; }.mobile-nav span { font-size: 18px; line-height: 1; }.mobile-nav button.is-active { color: var(--ink); font-weight: 750; }
  .history-months { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .login-panel { padding: 38px 23px; place-items: start center; }.login-form { padding-top: 25px; }.login-form > .wordmark { margin-bottom: 65px; }.login-form h2 { font-size: 31px; }
  .page-head { align-items: flex-start; }.page-head__meta { display: none; }.kpi-grid { grid-template-columns: 1fr 1fr; gap: 8px; }.kpi-card { min-height: 113px; padding: 15px; }.kpi-card__value { font-size: 20px; }.kpi-card__label i { display: none; }.overview-grid { gap: 10px; }.chart-panel { padding: 18px 12px 10px; min-height: 290px; }.chart-wrap { height: 210px; }.panel-head__legend { display: none; }.attention-list { grid-template-columns: 1fr; }.section-head { align-items: flex-start; flex-direction: column; }.search-field { width: 100%; }.project-grid { grid-template-columns: 1fr; }.project-card { min-height: 185px; }.project-head { display: block; }.project-head__actions { margin-top: 17px; }.project-summary { grid-template-columns: 1fr 1fr; }.table-toolbar { align-items: flex-start; flex-direction: column; }.settings-form,.settings-form__integration { grid-template-columns: 1fr; }.settings-form__integration { grid-column: auto; }.history-hero { align-items: flex-start; flex-direction: column; }.history-months { grid-template-columns: 1fr; }.topbar__actions { gap: 6px; }.compact-select { min-width: 0; }.compact-select span { display: none; }.topbar .secondary-button { width: 44px; padding: 0; }.period-control__label { min-width: 86px; }.period-control > button:first-child,.period-control > button:last-child { width: 27px; }.content { padding-left: 12px; padding-right: 12px; }.page-head { padding: 0 4px; }
}

