.tabs { overflow: hidden; }
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 4px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-2);
}
.tabs__tab {
  flex: 0 0 auto;
  min-height: 56px;
  padding: 0 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.9688rem;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.tabs__tab:hover { color: var(--ink); }
.tabs__tab[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.tabs__count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 100px;
  background: var(--line-soft);
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: center;
}
.tabs__tab[aria-selected="true"] .tabs__count { background: var(--brand-tint); color: var(--brand); }
.tabs__panel { padding: 22px 24px 26px; }
.tabs__panel:focus-visible { outline-offset: -4px; }
.tabs__panel .tabs__definitions.definitions { padding: 0; }
.tab-lead { font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
.tab-subtitle { margin-top: 28px; font-size: 1.0625rem; font-weight: 700; }
.tab-subtitle + .tab-subtitle__lead.tab-lead,
.tab-subtitle + .tab-subtitle__questions.questions,
.tab-subtitle + .tab-subtitle__proposals.proposals { margin-top: 12px; }
.person { display: flex; flex-direction: column; gap: 2px; }
.person__name { font-weight: 600; }
.person__post { color: var(--muted); font-size: 0.9375rem; }
.tags {
  margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
}
.tags li {
  padding: 4px 11px;
  border-radius: 100px;
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-size: 0.875rem;
  font-weight: 500;
}
.link-list {
  margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px;
}
.link-list a { font-weight: 500; }
.link-list__meta { display: block; color: var(--muted-3); font-size: 0.875rem; }
.files {
  margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px;
}
.file {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 120px 11.5rem 40px;
  align-items: center;
  gap: 14px 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.file--outdated { background: var(--surface-alt); }
.file--outdated .file__name { color: var(--muted); }
.file__format {
  width: 54px;
  height: 44px;
  border-radius: 9px;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.file__main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.file__name { font-weight: 500; color: var(--ink); line-height: 1.4; }
.file__name:hover { color: var(--brand); }
.file__type,
.file__date { font-size: 0.875rem; color: var(--muted-3); }
.file__date { display: flex; flex-direction: column; }
.file__date time { color: var(--ink); font-weight: 500; }
.file .file__badge.badge { justify-self: start; }
.file__download {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  border: 1px solid var(--line-3);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.file__download:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 24px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 2px;
  width: 2px;
  background: var(--line-2);
}
.timeline__item:last-child::before { display: none; }
.timeline__item--done::before { background: var(--green); }
.timeline__dot {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line-3);
  background: var(--surface);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline__item--done .timeline__dot { background: var(--green); border-color: var(--green); }
.timeline__item--current .timeline__dot { border-color: var(--brand); box-shadow: 0 0 0 5px var(--brand-tint); }
.timeline__item--current .timeline__dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}
.timeline__body { min-width: 0; padding-top: 3px; }
.timeline__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.timeline__date { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.timeline__state { font-size: 0.8125rem; color: var(--muted-3); }
.timeline__item--current .timeline__state { color: var(--brand); font-weight: 600; }
.timeline__title {
  margin-top: 4px; font-size: 1rem; font-weight: 700; color: var(--ink);
}
.timeline__item--todo .timeline__title { color: var(--muted); }
.timeline__text {
  margin-top: 4px; font-size: 0.9375rem; line-height: 1.5; color: var(--muted);
}
.timeline__pubs {
  margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px;
}
.timeline__pubs li {
  display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; color: var(--brand);
}
.timeline__pubs svg { flex: 0 0 auto; }
.timeline__decision {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--green-tint);
  font-size: 0.9375rem;
  color: var(--ink);
}
.consult-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--brand-tint-2);
  border: 1px solid #D6E3FA;
}
.consult-summary__main {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.consult-summary__dates { font-size: 1rem; color: var(--ink); }
.consult-summary .consult-summary__btn.btn { gap: 8px; }
.tabs__panel .tabs__stat-tiles.stat-tiles { margin-top: 16px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.questions {
  margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 8px;
}
.questions li {
  padding-left: 4px; font-size: 0.9688rem; line-height: 1.5; color: var(--ink);
}
.proposals {
  margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px;
}
.proposal {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.proposal__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.proposal__num { font-size: 0.875rem; font-weight: 700; color: var(--muted); }
.proposal__author { font-weight: 600; color: var(--ink); }
.proposal__date { font-size: 0.875rem; color: var(--muted-3); }
.proposal__head .proposal__head-badge.badge { margin-left: auto; }
.proposal__question { font-size: 0.875rem; line-height: 1.45; color: var(--muted-3); }
.proposal__text { font-size: 0.9688rem; line-height: 1.55; color: var(--ink); }
.proposal__answer {
  margin-top: 4px;
  padding: 12px 14px;
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
  background: var(--surface-alt);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.proposal__answer-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand);
}
.results {
  margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px;
}
.result {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.result__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px dashed var(--line-3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.result--done .result__icon { border: 0; background: var(--green); }
.result__title { font-size: 1rem; font-weight: 700; color: var(--ink); }
.result__when {
  margin-top: 2px; font-size: 0.875rem; font-weight: 600; color: var(--muted-3);
}
.result--done .result__when { color: var(--green); }
.result__text {
  margin-top: 6px; font-size: 0.9375rem; line-height: 1.5; color: var(--muted);
}
.definitions { padding: 6px 24px 18px; }
.definitions__row {
  display: grid;
  grid-template-columns: minmax(140px, 300px) minmax(0, 1fr);
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}
.definitions__row:last-child { border-bottom: 0; }
.definitions__term {
  font-size: 0.9063rem;
  font-weight: 500;
  color: var(--muted-3);
}
.definitions--wide .definitions__row { grid-template-columns: minmax(180px, 340px) minmax(0, 1fr); }
.definitions__value {
  min-width: 0;
  font-size: 0.9688rem;
  line-height: 1.5;
  color: var(--ink);
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 14px;
}
@media (max-width: 1200px) {
  .definitions__row,
  .definitions--wide .definitions__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

@media (max-width: 900px) {
  .definitions { padding: 4px 18px 14px; }
}

@media (max-width: 1200px) {
  .tabs__panel .tabs__stat-tiles.stat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .file {
    grid-template-columns: 54px minmax(0, 1fr) 40px;
    grid-template-areas:
    "format main   download"
    "format date   download"
    "format badge  download";
    gap: 6px 14px;
  }
  .file__format { grid-area: format; align-self: start; }
  .file__main { grid-area: main; }
  .file__date { grid-area: date; flex-direction: row; gap: 6px; }
  .file .file__badge.badge { grid-area: badge; }
  .file__download { grid-area: download; align-self: start; }
}

@media (max-width: 600px) {
  .tabs__list { padding: 0 8px; }
  .tabs__tab { min-height: 46px; padding: 0 10px; font-size: 0.9375rem; }
  .tabs__panel { padding: 18px 16px 22px; }
  .tabs__panel .tabs__stat-tiles.stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consult-summary { padding: 14px; }
  .consult-summary .consult-summary__btn.btn { width: 100%; }
  .proposal,
  .result { padding: 14px; }
  .proposal__head .proposal__head-badge.badge { margin-left: 0; }
  .file { padding: 12px; column-gap: 12px; }
  .file__format { width: 44px; height: 38px; }
  .file { grid-template-columns: 44px minmax(0, 1fr) 40px; }
}
