:root {
  font-family: 'Geist','Inter',system-ui,sans-serif;
  color: #182b39;
  background: #f4f7fa;
  line-height: 1.5;
  font-size: 16px;
  --ink: #182b39;
  --muted: #526878;
  --line: #e0e8ee;
  --teal: #08785f;
  --sidebar: #142532;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: inherit; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #46a98f; outline-offset: 3px; }
p, h1, h2 { margin: 0; }
h1, h2 { line-height: 1.18; letter-spacing: -.03em; }
h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 760; }
h2 { font-size: 1.24rem; font-weight: 730; }
.shell { display: grid; grid-template-columns: 229px minmax(0,1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 16px 19px; background: var(--sidebar); color: #f4f8fa; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 9px; font-weight: 760; font-size: 1.06rem; white-space: nowrap; text-decoration: none; }
.brand-mark { width: 33px; height: 33px; background: #173b3f; border: 1px solid #24534e; border-radius: 10px; display: grid; grid-template-columns: repeat(2,1fr); align-items: center; gap: 3px; padding: 7px; flex: none; }
.brand-mark i { width: 7px; height: 7px; border-radius: 2px; background: #62e1b9; }
.brand-mark i:nth-child(2) { opacity: .7; }
.brand-mark i:nth-child(3) { opacity: .4; }
.sidebar nav { display: grid; gap: 7px; margin-top: 46px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; min-height: 46px; border-radius: 9px; color: #bdd0db; text-decoration: none; font-size: .94rem; font-weight: 630; }
.nav-link:hover { color: #fff; background: #223744; }
.nav-link.active { color: #e0fff4; background: #21433f; }
.nav-icon { position: relative; display: inline-block; flex: none; width: 16px; height: 16px; opacity: .9; }
.nav-icon.overview { border: 1.6px solid currentColor; border-radius: 3px; background: linear-gradient(90deg, transparent 45%, currentColor 45% 55%, transparent 55%); }
.nav-icon.projects { border: 1.6px solid currentColor; border-radius: 3px; height: 13px; margin-top: 3px; }
.nav-icon.projects::before { content: ""; position: absolute; top: -5px; left: 1px; width: 7px; height: 5px; border: 1.5px solid currentColor; border-bottom: none; border-radius: 3px 3px 0 0; }
.nav-icon.history { border: 1.6px solid currentColor; border-radius: 100%; }
.nav-icon.history::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 5px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.nav-icon.team::before { content: ""; position: absolute; left: 5px; top: 0; width: 6px; height: 6px; border: 1.4px solid currentColor; border-radius: 100%; }
.nav-icon.team::after { content: ""; position: absolute; inset: 8px 0 0; border: 1.4px solid currentColor; border-radius: 7px 7px 3px 3px; }
.sidebar-footer { margin-top: auto; padding: 18px 8px 0; border-top: 1px solid #304252; }
.sidebar-account { min-width: 0; display: flex; align-items: center; gap: 9px; }
.sidebar-account div { min-width: 0; }
.sidebar-account strong { display: block; font-size: .83rem; }
.sidebar-account div span { display: block; overflow: hidden; text-overflow: ellipsis; font-size: .75rem; color: #b5c8d6; }
.avatar { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 100%; background: #2d4c5b; color: #d8f5ee; flex: none; font-size: .76rem; font-weight: 720; }
.logout { border: 0; background: none; padding: 10px 0 0; color: #c2d5df; font-size: .82rem; text-decoration: underline; text-underline-offset: 3px; }
.workspace { width: min(100%, 1440px); justify-self: center; padding: 35px 34px 48px; min-width: 0; }
.demo-banner { margin-bottom: 18px; display: inline-block; padding: 4px 9px; border-radius: 6px; background: #e4edf4; color: #435e70; font-size: .79rem; font-weight: 630; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 30px; }
.page-head p { color: var(--muted); margin-top: 8px; }
.page-head .back { margin-bottom: 9px; display: inline-block; font-size: .9rem; }
.section-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.overview-section { margin-bottom: 27px; }
.overview-section .section-head { margin-bottom: 12px; }
.period { font-size: .86rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.panel { border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 2px 3px #112d4110; min-width: 0; }
.panel-padded { padding: 22px; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.metric { padding: 16px 19px; }
.metric-label { display: flex; align-items: center; gap: 8px; color: #456071; font-weight: 640; font-size: .91rem; }
.metric-mark { width: 9px; height: 9px; border-radius: 3px; background: #3d75c5; box-shadow: 0 0 0 4px #e9f2fb; margin: 0 5px 0 3px; }
.metric.violet .metric-mark { background: #7b67ae; box-shadow: 0 0 0 4px #f0eff9; }
.metric.green .metric-mark { background: #0a8669; box-shadow: 0 0 0 4px #e6f5ed; }
.metric strong { display: block; margin-top: 4px; font-size: clamp(1.55rem,3vw,2.22rem); font-weight: 740; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(310px,1fr); align-items: start; gap: 18px; }
.projects-grid { grid-template-columns: minmax(0,2.25fr) minmax(280px,1fr); }
.list-head { margin-bottom: 12px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 43px; padding: 8px 15px; border: 1px solid transparent; border-radius: 9px; text-decoration: none; font-size: .91rem; font-weight: 700; text-align: center; }
.button.primary { background: #08765e; color: #fff; }
.button.primary:hover:enabled, a.button.primary:hover { background: #085e4d; }
.button.secondary { background: #fff; border-color: #cad8e0; color: #173e41; }
.button.secondary:hover { background: #edf7f5; border-color: #b2d3cc; }
.button.danger { color: #882d2d; background: #fbe9e8; }
.button.danger:hover { background: #f6d6d5; }
.text-link { color: #076951; text-underline-offset: 3px; font-weight: 670; }
.empty { border: 1px dashed #d2e0e8; padding: 23px; border-radius: 9px; color: var(--muted); margin-top: 14px; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th,td { padding: 12px 9px; border-bottom: 1px solid #e6edf1; vertical-align: middle; }
th { color: #526878; font-size: .84rem; font-weight: 680; white-space: nowrap; background: #f6f9fa; }
td { font-size: .91rem; }
td.project-name { font-weight: 680; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.results th:first-child { border-radius: 5px 0 0 5px; }
.results th:last-child { border-radius: 0 5px 5px 0; }
.results td:last-child { min-width: 82px; }
.mono { font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 30px; background: #eff3f7; color: #435a6c; font-size: .77rem; font-weight: 680; white-space: nowrap; }
.badge i { width: 6px; height: 6px; border-radius: 100%; background: currentColor; }
.badge.done { background: #dcf2e9; color: #116149; }
.badge.running { background: #e8eefb; color: #30569b; }
.badge.error { background: #fbe9e8; color: #963737; }
.badge.partial { background: #f8efdc; color: #79531c; }
.cell-detail { display: block; margin-top: 4px; font-size: .78rem; color: #8b3434; }
.form-stack { display: grid; gap: 13px; margin-top: 15px; }
label, legend { color: #334c5b; font-size: .88rem; font-weight: 670; }
label:not(.checks label):not(.checks-head label) { display: grid; gap: 5px; min-width: 0; }
input:not([type=checkbox]):not([type=hidden]), select { appearance: auto; display: block; width: 100%; min-width: 0; min-height: 41px; padding: 8px; border: 1px solid #c6d4df; border-radius: 7px; color: #182b39; background: #fff; font-size: .91rem; }
input[type=checkbox] { width: 17px; height: 17px; margin: 0; accent-color: #08765e; flex: none; }
.date-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 6px; }
.total-count { border: 1px solid var(--line); background: #f1f6f7; color: #506876; padding: 1px 6px; border-radius: 5px; font-size: .76rem; }
.checks { max-height: 208px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.checks-head { margin: 2px 0 7px; }
.checks label, .checks-head label { display: flex; align-items: center; gap: 8px; color: #314d5d; }
.checks label { padding: 8px 9px; font-weight: 560; }
.checks label + label { border-top: 1px solid #edf1f4; }
.small { font-size: .89rem; }
.muted { color: var(--muted); }
.flash, .status-callout { padding: 11px 13px; border-radius: 8px; background: #eaf1f8; font-size: .92rem; }
.flashes, .status-callout { margin-bottom: 16px; }
.flash.error { background: #fbe9e8; color: #8b3434; }
.flash.success { background: #e1f3eb; color: #175d4a; }
.export-panel { margin-top: 17px; }
.catalog .project-name, .project-avitologist { overflow-wrap: anywhere; }
.project-balance { text-align: right; font-variant-numeric: tabular-nums; }
.project-balance strong, .balance-time { display: block; white-space: nowrap; }
.balance-time { color: var(--muted); font-size: .74rem; }
.project-balance .cell-detail { min-width: 100px; }
.balance-time:empty, .project-balance .cell-detail:empty { display: none; }
.balance-status:not(:empty) { margin-bottom: 10px; }
.project-actions { min-width: 122px; }
.project-actions .form-stack { gap: 8px; margin-top: 8px; }
.project-delete { margin-top: 5px; }
.project-delete summary { color: #882d2d; }
summary { font-size: .85rem; color: #076951; }
.login-layout { padding: 32px 15px; min-height: 100vh; display: grid; place-items: center; background: radial-gradient(ellipse at 17% 11%, #dcf0e9, #f4f7fa 56%); }
.login-card { width: min(100%, 425px); padding: 30px; }
.login-brand { padding: 0; margin-bottom: 24px; }
.login-brand + h1 { font-size: 2rem; }
.login-card .small, .login-card .flashes { margin-top: 9px; }
@media (max-width: 1220px) { .workspace { padding-inline: 23px; } .dashboard-grid { grid-template-columns: minmax(0,1.38fr) minmax(285px,1fr); } .panel-padded { padding: 17px; } th,td { padding-inline: 7px; } }
@media (max-width: 1220px) { .projects-grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 1010px) { .shell { grid-template-columns: 190px minmax(0,1fr); } .dashboard-grid { grid-template-columns: minmax(0,1fr); } .collect { grid-row: 1; } }
@media (max-width: 660px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; padding: 13px 14px 10px; }
  .sidebar nav { display: flex; flex-wrap: wrap; margin-top: 12px; gap: 4px; }
  .nav-link { padding: 6px 8px; gap: 6px; font-size: .84rem; min-height: 34px; }
  .nav-icon { display: none; }
  .sidebar-footer { border-top: 0; margin: 6px 0 0; padding: 0 8px; display: flex; justify-content: space-between; }
  .sidebar-account .avatar { display: none; }
  .sidebar-account strong { display: none; }
  .logout { padding: 0; }
  .workspace { padding: 17px 13px 34px; }
  .page-head { align-items: flex-start; flex-direction: column; margin-bottom: 20px; gap: 10px; }
  .metrics { gap: 6px; }
  .metric { padding: 9px 8px; }
  .metric strong { font-size: 1.26rem; }
  .metric-mark { display: none; }
  .metric-label { font-size: .78rem; }
  .section-head { align-items: flex-start; }
}
