/* Transgranika UI. The original PNG is displayed without filters, clipping or distortion. */
@font-face {
  font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/inter-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF,U+FEFF,U+FFFD;
}
:root {
  --green: #075447; --green-dark: #063f36; --ink: #15212e; --muted: #687783;
  --line: #e5ece9; --surface: #f5f8f7; --red: #bf1830; --amber: #a36b18;
  --nav-height: 72px; --radius: 12px;
}
* { box-sizing: border-box; }
html { color-scheme: light; scroll-padding-bottom: 155px; }
body { margin: 0; font: 16px/1.45 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--ink); background: #fff; }
body.dialog-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
a { color: var(--green); text-decoration: none; }
a, button, input, select, textarea, summary { outline-offset: 3px; }
:focus-visible { outline: 2px solid #207967; }
button { color: inherit; }
button:disabled { cursor: default; }
.icon { display: block; width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.top { max-width: 1128px; min-height: 82px; padding: 19px 18px 12px; margin: auto; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; min-height: 44px; min-width: 0; }
.brand img { display: block; width: 250px; max-width: 100%; height: auto; object-fit: contain; }
.account { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.account-name { display: none; color: var(--muted); font-size: 14px; }
.logout-form { margin: 0; }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface); color: var(--green); }
main { max-width: 1128px; padding: 10px 18px calc(var(--nav-height) + 38px + env(safe-area-inset-bottom)); margin: auto; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 29px; font-weight: 720; line-height: 1.16; letter-spacing: -.9px; overflow-wrap: anywhere; }
h2 { font-size: 19px; font-weight: 660; line-height: 1.3; letter-spacing: -.55px; }
h3 { font-size: 17px; font-weight: 620; line-height: 1.4; letter-spacing: -.25px; }
p { margin: 7px 0; }
.muted, .date-label, .project-location { color: var(--muted); }
.small, small { font-size: 13px; line-height: 1.5; }
.red-text { color: var(--red); }
.amber-text { color: var(--amber); }
.date-label { font-size: 14px; margin-bottom: 1px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.heading { display: flex; gap: 14px; justify-content: space-between; align-items: center; margin: 8px 0 18px; }
.heading > div { min-width: 0; }
.today-heading { margin-top: 0; margin-bottom: 11px; }
.today-heading p { font-size: 14px; margin: 3px 0 0; }
.create-project { flex-shrink: 0; }
.today-heading .create-project { padding: 0; width: 44px; height: 44px; min-height: 44px; align-self: flex-start; margin-top: 16px; }
.today-heading .create-project span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 16px; border: 1px solid var(--green); border-radius: 8px; background: var(--green); color: #fff; font-size: 14px; font-weight: 600; text-align: center; line-height: 1.35; }
.button .icon { width: 18px; height: 18px; flex-basis: 18px; }
.secondary { background: #fff; color: var(--green); border-color: var(--line); }
.wide { width: 100%; }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-bottom: 11px; }
.stats > div { padding: 10px 13px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 2px 8px #122e2303; }
.stats strong { font-size: 30px; font-weight: 680; line-height: 1.2; color: var(--green); }
.stats strong.red-text { color: var(--red); }
.stats strong.amber-text { color: var(--amber); }
.stats span { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; margin-top: 4px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 12px 0 8px; min-height: 32px; }
.section-title > a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; font-size: 14px; flex-shrink: 0; }
.section-title .icon { width: 16px; height: 16px; flex-basis: 16px; }
.section-title h2 { display: inline; }
.card { display: block; padding: 15px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 2px 9px #233e3204; overflow-wrap: anywhere; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 9px; flex-wrap: wrap; }
.start { justify-content: flex-start; }
.project-label { font-size: 14px; font-weight: 620; min-width: 0; flex: 1; }
.badge { display: inline-flex; align-items: center; font-size: 12px; line-height: 1.35; padding: 5px 8px; border-radius: 5px; max-width: 100%; font-weight: 450; }
.green { background: #e8f5ed; color: #176536; }
.amber { background: #fff4e3; color: #976017; }
.red { background: #fff0f2; color: #b3182d; }
.neutral { background: #edf4f1; color: var(--green); }
.attention { border-left: 3px solid var(--red); padding: 13px 14px; background: #fff; }
.attention .eyebrow { color: var(--red); font-size: 13px; font-weight: 650; }
.attention h3 { margin: 10px 0 12px; }
.attention .button { min-height: 44px; }
.link { display: inline-flex; align-items: center; font-size: 14px; font-weight: 570; min-height: 44px; }
.count { display: inline-flex; justify-content: center; align-items: center; min-width: 20px; height: 20px; border-radius: 50%; background: #eaf1ee; color: var(--green); font-size: 12px; vertical-align: middle; margin-left: 5px; padding: 0 5px; font-weight: 600; }
.count-red { background: var(--red); color: #fff; }
.task-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; }
.task-link > div { flex: 1; min-width: 0; }
.task-link strong { display: block; color: var(--ink); font-size: 14px; line-height: 1.4; font-weight: 420; }
.task-link p { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.task-circle { display: block; flex: 0 0 18px; width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 50%; }
.chevron { width: 16px; height: 16px; flex-basis: 16px; color: #65737c; }
.project-card { padding: 14px; color: var(--ink); }
.project-card-top { display: flex; align-items: center; gap: 12px; }
.project-card-top > div { flex: 1; min-width: 0; }
.project-card h3 { font-size: 17px; font-weight: 650; }
.project-card p.muted { font-size: 13px; line-height: 1.45; margin: 4px 0 0; }
.project-mark { display: grid; place-items: center; width: 44px; height: 46px; background: #edf4f1; color: var(--green); border-radius: 7px; flex-shrink: 0; }
.project-mark .icon { width: 24px; height: 24px; }
.project-stage { margin-top: 10px; }
.risk-summary { border-top: 1px solid var(--line); margin-top: 11px; padding-top: 10px; font-size: 13px; }
.risk-summary p { color: var(--ink); margin: 4px 0; font-size: 14px; }
.next { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; color: var(--muted); font-size: 13px; }
.next strong { color: var(--green); font-weight: 600; }
.bottom { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; display: flex; justify-content: center; min-height: var(--nav-height); padding: 7px 0 calc(7px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -3px 18px #233d3003; }
.bottom a { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; min-height: 51px; max-width: 320px; color: var(--muted); font-size: 13px; }
.bottom a + a { border-left: 1px solid #eff3f1; }
.bottom a.active { color: var(--green); font-weight: 650; }
.bottom a.active .icon { stroke-width: 2.2; }
.bottom a.active .icon:has(use[href$='#home']) { fill: var(--green); }
.backbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: transparent; color: #526371; font-size: 14px; }
.back .icon { width: 19px; height: 19px; flex-basis: 19px; }
.project-page main { padding-top: 10px; padding-bottom: 165px; }
.project-page .heading { display: block; margin: 3px 0 13px; }
.project-location { margin: 4px 0 5px; font-size: 14px; }
.stage { min-height: 36px; padding: 6px 9px; gap: 5px; }
.stage .icon { width: 15px; height: 15px; flex-basis: 15px; }
.project-page .attention .start { gap: 0; display: block; }
.project-page .attention .button { width: 100%; }
.project-page .attention .link { min-height: 38px; padding-top: 4px; }
.add-button { position: fixed; right: 17px; bottom: calc(var(--nav-height) + 13px + env(safe-area-inset-bottom)); z-index: 8; box-shadow: 0 4px 15px #0c453b22; border-radius: 24px; min-height: 46px; }
.parameters { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 8px 0 18px; background: #fff; }
.parameter { display: grid; grid-template-columns: 25px minmax(0,1fr) auto; align-items: center; column-gap: 10px; min-height: 72px; padding: 11px 12px; color: var(--green); }
.parameter + .parameter { border-top: 1px solid var(--line); }
.parameter-main { min-width: 0; }
.parameter-label { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; overflow-wrap: anywhere; }
.parameter strong { display: block; font-size: 16px; font-weight: 640; margin-top: 2px; overflow-wrap: anywhere; }
.parameter .badge { justify-self: end; text-align: center; max-width: 128px; padding: 5px 7px; }
.parameter-source { display: none; }
.data-status-details { font-size: 13px; margin: 0 0 5px; color: var(--muted); }
.data-status-details summary { cursor: pointer; min-height: 34px; padding: 7px 0; }
.data-summary { display: flex; gap: 6px 14px; flex-wrap: wrap; padding: 6px 0 10px; }
.data-summary strong { color: var(--ink); font-weight: 600; }
.project-body h2 { margin: 22px 0 11px; }
.project-body section:first-child > h2:first-child { margin-top: 0; }
.project-body .card h3 { margin-top: 11px; margin-bottom: 9px; }
.action { display: flex; align-items: flex-start; gap: 4px; padding: 6px 10px 9px 6px; }
.action > div { min-width: 0; flex: 1; }
.action-title { display: block; padding-top: 8px; color: var(--ink); font-size: 14px; line-height: 1.4; }
.action p { font-size: 12px; color: var(--muted); margin: 4px 0 2px; }
.check { display: grid; place-items: center; min-width: 44px; min-height: 44px; background: transparent; border: 0; border-radius: 6px; color: #526571; }
.check.overdue { color: var(--red); }
.done .check { color: #176536; }
.done .action-title { text-decoration: line-through; color: var(--muted); }
.risk-card { color: var(--ink); }
.risk-card p, .project-body .card p { font-size: 14px; }
.empty { background: var(--surface); box-shadow: none; color: var(--muted); font-size: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
.filters a { display: flex; align-items: center; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.filters .selected { background: var(--green); border-color: var(--green); color: #fff; }
.form-wrap { max-width: 600px; margin: 0 auto; }
.form-wrap > .back { margin-bottom: 12px; }
.form-wrap h1 { margin-bottom: 14px; }
.context-page main { padding-top: 14px; }
.data-form { margin-top: 20px; padding: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 550; font-size: 14px; margin-bottom: 7px; }
.optional { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; min-width: 0; min-height: 48px; border: 1px solid #cddbd4; border-radius: 8px; background: #fff; padding: 11px 12px; color: var(--ink); font-size: 16px; }
textarea { min-height: 114px; resize: vertical; }
.form-actions { display: flex; gap: 10px; margin-top: 22px; }
.form-actions .button { flex: 1; }
.errorlist, .error { color: var(--red); font-size: 14px; padding-left: 18px; }
.notice { display: flex; align-items: center; gap: 10px; background: #edf7f0; border: 1px solid #d1e5d8; border-radius: 8px; padding: 12px; margin: 10px 0 16px; font-size: 14px; }
.login-wrap { max-width: 420px; margin: 40px auto; }
.login-wrap h1 { margin: 12px 0; }
.login-wrap .small { margin-top: 18px; }
.add-screen { padding: 0; margin: 0; border: 0; width: 100%; max-width: none; height: 100dvh; max-height: 100%; inset: 0; background: #f8faf9; color: var(--ink); overflow-y: auto; }
.add-screen::backdrop { background: #173d324d; }
.add-inner { padding: 14px 18px calc(var(--nav-height) + 26px + env(safe-area-inset-bottom)); }
.add-inner > .back { margin-bottom: 13px; }
.add-inner h2 { font-size: 27px; font-weight: 700; letter-spacing: -.7px; margin-bottom: 7px; }
.add-project-name { font-size: 15px; font-weight: 590; margin: 0 0 2px; }
.add-inner > p.muted { font-size: 14px; margin: 0; }
.add-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.add-list a { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 14px; min-height: 78px; box-shadow: 0 2px 7px #193e3003; }
.add-list a > .icon:first-child { width: 29px; height: 29px; flex-basis: 29px; }
.add-list a > span { flex: 1; min-width: 0; }
.add-list strong { display: block; font-size: 16px; font-weight: 450; color: var(--ink); }
.add-list small { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
details.card summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
@media (min-width: 700px) {
  body { background: #f7f9f8; }
  .top { min-height: 95px; padding: 24px; }
  .brand img { width: 300px; }
  .account-name { display: inline; }
  main { padding: 28px 24px 110px; }
  h1 { font-size: 36px; }
  h2 { font-size: 20px; }
  .heading { margin-bottom: 22px; }
  .today-heading .create-project { width: auto; height: auto; margin: 0; padding: 11px 15px; }
  .today-heading .create-project span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .stats { gap: 14px; margin: 20px 0 14px; }
  .stats > div { padding: 18px 22px; display: flex; align-items: center; gap: 20px; }
  .stats span { font-size: 14px; margin: 0; }
  .stats strong { font-size: 36px; }
  .dashboard { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 26px; }
  .section-title { margin-top: 14px; }
  .card { padding: 20px; }
  .attention h3 { font-size: 20px; margin: 16px 0; }
  .task-link { padding: 16px; }
  .task-link strong { font-size: 16px; }
  .project-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  .project-card h3 { font-size: 21px; }
  .bottom { min-height: 70px; }
  .bottom a { flex-direction: row; gap: 9px; max-width: 190px; font-size: 14px; }
  .backbar { margin-bottom: 20px; }
  .project-page .heading { display: flex; }
  .project-page .attention { max-width: 720px; }
  .project-page .attention .start { display: flex; gap: 15px; }
  .project-page .attention .button { width: auto; }
  .add-button { position: static; border-radius: 8px; box-shadow: none; }
  .parameters { max-width: 720px; }
  .parameter { min-height: 72px; padding: 15px 18px; column-gap: 14px; }
  .parameter-label { font-size: 14px; }
  .parameter strong { font-size: 18px; }
  .parameter-source { display: block; grid-column: 2 / 4; color: var(--muted); margin-top: 5px; }
  .project-body { margin-top: 25px; }
  .project-body section > h2:first-child { margin-top: 0; }
  .action { padding: 12px; gap: 8px; }
  .action-title { font-size: 16px; }
  .action p { font-size: 13px; }
  .data-form { padding: 25px; }
  .add-screen { width: 490px; max-width: calc(100vw - 60px); max-height: calc(100dvh - 70px); height: auto; margin: auto; border-radius: 18px; box-shadow: 0 20px 80px #13362c30; }
  .add-inner { padding: 22px 25px 25px; }
  .add-screen .bottom { position: sticky; padding-bottom: 8px; }
}
@media (max-width: 359px) {
  .brand img { width: 214px; }
  .top { gap: 6px; padding-left: 14px; padding-right: 14px; }
  main { padding-left: 14px; padding-right: 14px; }
  h1 { font-size: 26px; }
  h2 { font-size: 17px; }
  .stats > div { padding-left: 10px; padding-right: 9px; }
  .stats span { font-size: 12px; }
  .parameter { grid-template-columns: 21px minmax(0,1fr); }
  .parameter .badge { grid-column: 2; justify-self: start; margin-top: 5px; }
  .parameter-icon .icon { width: 20px; height: 20px; }
  .add-list a { gap: 10px; padding: 13px; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .icon-button, .card, .add-list a { transition: background-color .15s, border-color .15s; }
  .button:hover { background: var(--green-dark); }
  .button.secondary:hover { background: #edf5f1; }
  a.card:hover, .add-list a:hover { border-color: #afc9bc; }
}

/* Contextual add action shares the bottom bar and never covers project content. */
.nav-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 90px; min-height: 51px; padding: 0 14px; border: 0; background: transparent; color: var(--green); font-size: 13px; font-weight: 550; }
.nav-add-icon { display: grid; place-items: center; width: 33px; height: 30px; border-radius: 8px; background: var(--green); color: #fff; }
.nav-add .icon { width: 20px; height: 20px; }
@media(min-width: 700px) { .nav-add { flex-direction: row; gap: 8px; min-width: 145px; font-size: 14px; } }
