@font-face {
  font-family: Onest;
  src: url("/fonts/Onest.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: Onest, system-ui, sans-serif;
  color: #252521;
  background: #f6f7f8;
  font-synthesis: none;
  --ink: #252521;
  --muted: #6c726e;
  --line: #e5e8e5;
  --accent: #a6491b;
  --accent-soft: #fbefe7;
  --green: #28774e;
  --red: #b73c39;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
[hidden] {
  display: none !important;
}
button {
  border: 0;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.05px;
  font-weight: 650;
  line-height: 1.2;
}
h2 {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.45px;
  line-height: 1.35;
}
h3 {
  font-size: 15px;
  font-weight: 650;
}
p {
  line-height: 1.65;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:focus-visible {
  outline: 3px solid #9d70d0;
  outline-offset: 3px;
}
input,
textarea,
select {
  color: var(--ink);
  background: #fff;
  border: 1px solid #dce1dd;
  border-radius: 9px;
  min-height: 44px;
  padding: 10px 12px;
  max-width: 100%;
}
input::placeholder,
textarea::placeholder {
  color: #858c86;
}
input:not([type="checkbox"]),
textarea {
  width: 100%;
}
textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.6;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 550;
}
select {
  cursor: pointer;
}
form {
  display: grid;
  gap: 19px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.14s ease,
    transform 0.14s ease;
}
.button.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.button.danger {
  background: #fff4f3;
  color: var(--red);
  border-color: #f1d4d1;
}
.button.subtle {
  background: #f5f7f5;
}
.button:active:not(:disabled) {
  transform: translateY(1px);
}
.button .icon {
  width: 17px;
  height: 17px;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: transparent;
  color: var(--muted);
}
.icon-button:hover {
  background: #edf0ed;
  color: var(--ink);
}
.text-button {
  padding: 7px 0;
  background: none;
  color: var(--accent);
  font-size: 13px;
  text-align: left;
  min-height: 36px;
  font-weight: 550;
}
.auth {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  background:
    radial-gradient(ellipse at 50% 20%, #fff7ef 0, transparent 60%), #f5f7f5;
}
.auth-brand,
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.5px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 36px;
  border-radius: 12px 12px 12px 4px;
  background: var(--accent);
  color: white;
  font-size: 29px;
  font-weight: 650;
  line-height: 1;
  padding-bottom: 5px;
}
.brand-qa {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 500;
  margin-left: 5px;
}
.login-card {
  max-width: 445px;
  width: 100%;
  margin-top: 35px;
  padding: 34px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 14px 45px #263d2810;
}
.login-card h1 {
  font-size: 27px;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}
.login-card form {
  margin-top: 28px;
}
.login-footnote {
  font-size: 12px;
  color: var(--muted);
  margin-top: 23px;
}
.auth-footer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 28px;
}
.form-error {
  font-size: 13px;
  color: var(--red);
  background: #fff4f2;
  border-radius: 8px;
  line-height: 1.5;
}
.form-error:not(:empty) {
  padding: 11px 12px;
}
.form-error:empty {
  display: none;
}
.workspace {
  display: flex;
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: white;
  border-right: 1px solid var(--line);
  padding: 30px 18px 16px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  padding-left: 12px;
}
.project-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 35px 0 23px;
  padding: 15px 12px;
  background: #f6f7f5;
  border: 1px solid #edf0eb;
  border-radius: 10px;
}
.project-label strong {
  font-size: 13px;
  font-weight: 600;
  display: block;
}
.project-label span:not(.project-dot) {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.project-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
nav {
  display: grid;
  gap: 6px;
}
.nav-button {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 12px 11px;
  min-height: 44px;
  border-radius: 9px;
  color: var(--muted);
  background: none;
  font-size: 12px;
  font-weight: 550;
}
.nav-button[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}
.nav-button:hover:not([aria-current="page"]) {
  background: #f7f8f6;
}
.nav-button .icon {
  width: 19px;
  height: 19px;
}
.nav-count {
  margin-left: auto;
  font-size: 12px;
  min-width: 21px;
  line-height: 21px;
  text-align: center;
  background: #ffffffb3;
  border-radius: 5px;
}
.nav-count:empty {
  display: none;
}
.sidebar-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: auto;
  padding: 24px 12px;
  color: var(--muted);
}
.sidebar-note > .icon {
  margin-top: 2px;
  width: 18px;
  height: 18px;
}
.sidebar-note p {
  font-size: 12px;
  line-height: 1.6;
}
.sidebar-note span:not([data-icon]) {
  font-size: 12px;
  color: #858c86;
}
.account {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 7px 0;
  border-top: 1px solid var(--line);
}
.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ebeee7;
  color: #526442;
  font-size: 12px;
  font-weight: 650;
}
.account strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.account span:not(.avatar) {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.account .icon-button {
  margin-left: auto;
  width: 30px;
  height: 36px;
}
.main-wrap {
  margin-left: 240px;
  width: calc(100% - 240px);
}
.topbar {
  height: 86px;
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: #ffffffed;
  position: sticky;
  top: 0;
  z-index: 5;
}
.run-control {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.run-control label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.run-control select {
  font-weight: 550;
  border: 0;
  padding: 0 24px 0 0;
  min-height: 25px;
  max-width: 280px;
  font-size: 13px;
  background: transparent;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sync-state {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.sync-state:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #59a373;
  border-radius: 50%;
  margin-right: 6px;
}
.sync-state.offline-state:before {
  background: #bc7038;
}
main {
  max-width: 1170px;
  padding: 38px 38px 70px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 15px;
}
.breadcrumb > span:first-child {
  margin: 0 7px;
  color: #a4aaa3;
}
.page-heading h1 {
  margin-bottom: 9px;
}
.page-heading > .muted {
  margin-top: 10px;
}
.heading-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.heading-actions .button {
  min-height: 36px;
  padding: 8px 11px;
  font-size: 12px;
}
.run-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.summary {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 23px;
}
.progress-area {
  flex: 1;
  min-width: 120px;
}
.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 10px;
}
.progress-label strong {
  font-weight: 600;
}
.progress-track {
  height: 5px;
  background: #edf0eb;
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 4px;
  transition: width 0.2s ease;
}
.summary-counts {
  display: flex;
  gap: 24px;
}
.summary-stat {
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
}
.summary-stat strong {
  display: block;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.2;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-bottom: 5px;
}
.summary-stat.bad strong {
  color: var(--red);
}
.closed-notice {
  font-size: 12px;
  padding: 12px 15px;
  margin-bottom: 16px;
  border: 1px solid #dfd8ec;
  background: #f3f0f8;
  border-radius: 8px;
  color: #66517f;
}
.tools {
  display: flex;
  gap: 12px;
  margin-bottom: 21px;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  position: relative;
  flex: 1;
  max-width: 390px;
}
.search > .icon {
  position: absolute;
  left: 12px;
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.search input {
  padding-left: 39px;
  font-weight: 400;
  font-size: 12px;
  min-height: 40px;
}
.tools > select {
  font-size: 12px;
  min-height: 40px;
  max-width: 230px;
}
.section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: clip;
  margin-bottom: 13px;
}
.section > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 19px 20px;
  min-height: 65px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.section > summary::-webkit-details-marker {
  display: none;
}
.section > summary .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
  color: #959c93;
}
.section[open] > summary .icon {
  transform: rotate(90deg);
}
.section-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 450;
  color: var(--muted);
  white-space: nowrap;
}
.section-complete {
  color: var(--green);
}
.case-list {
  border-top: 1px solid #edf0eb;
}
.case-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 67px;
  padding: 13px 20px;
  border-bottom: 1px solid #f0f2ee;
}
.case-row:last-child {
  border-bottom: 0;
}
.case-row:hover {
  background: #fcfdfb;
}
.check-wrap {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 32px;
}
.check-wrap input {
  appearance: none;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  border-radius: 5px;
  background: white;
  border: 1.5px solid #cdd4cd;
  cursor: pointer;
}
.check-wrap input:checked {
  background: var(--green);
  border-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10 3 3 7-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.case-main {
  flex: 1;
  min-width: 0;
}
.case-title {
  display: block;
  background: none;
  padding: 0;
  text-align: left;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.65;
  font-weight: 450;
  white-space: normal;
  min-height: 28px;
}
.case-row.passed .case-title {
  color: #667267;
}
.case-sub {
  font-size: 12px;
  color: #8a9289;
  margin-top: 3px;
  line-height: 1.5;
}
.case-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.5;
  border-radius: 5px;
  padding: 4px 7px;
  background: #f0f2ee;
  color: #6d756c;
  white-space: nowrap;
}
.badge:before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge.passed,
.badge.verified {
  background: #edf6ee;
  color: #36714b;
}
.badge.failed,
.badge.critical,
.badge.high {
  background: #fff0ed;
  color: #ad443a;
}
.badge.blocked {
  background: #fff4df;
  color: #956425;
}
.badge.skipped {
  background: #f1eef7;
  color: #77628f;
}
.badge.open {
  background: #fff0ed;
  color: #ad443a;
}
.badge.in_progress {
  background: #edf2fb;
  color: #486a9d;
}
.badge.fixed {
  background: #f2eefb;
  color: #7859aa;
}
.badge.closed {
  background: #f1eef7;
  color: #77628f;
}
.comment-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  color: #81897f;
  font-size: 12px;
  min-height: 34px;
  min-width: 34px;
  border-radius: 7px;
}
.comment-button .icon {
  width: 16px;
  height: 16px;
}
.comment-button:hover {
  background: #edf0eb;
}
.status-button {
  background: none;
  padding: 0;
  min-height: 32px;
}
.report-list {
  display: grid;
  gap: 12px;
}
.report-card {
  display: block;
  text-align: left;
  width: 100%;
  padding: 21px 23px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
}
.report-card:hover {
  border-color: #bfc8bc;
}
.report-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
}
.report-id {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.report-top .badge:last-child {
  margin-left: auto;
}
.report-card h3 {
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.report-footer {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 13px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.report-footer .icon {
  width: 13px;
  height: 13px;
}
.footer-count {
  display: flex;
  align-items: center;
  gap: 4px;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
  border: 1px dashed #d6ddd3;
  border-radius: 14px;
  padding: 58px 20px;
  min-height: 250px;
}
.empty > .icon {
  width: 34px;
  height: 34px;
  color: #b5bfb0;
  margin-bottom: 19px;
}
.empty h2 {
  font-size: 20px;
  margin-bottom: 10px;
}
.empty p {
  max-width: 370px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}
.timeline {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 22px;
}
.timeline-item {
  display: flex;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid #edf0eb;
}
.timeline-item:last-child {
  border-bottom: 0;
}
.timeline-item .avatar {
  width: 28px;
  height: 28px;
  font-size: 12px;
}
.timeline-item p {
  font-size: 12px;
}
.timeline-item .muted {
  font-size: 12px;
  margin-top: 4px;
}
.offline {
  padding: 13px 16px;
  border-radius: 9px;
  background: #fff3dd;
  color: #805927;
  font-size: 12px;
  margin-bottom: 18px;
}
.sheet {
  border: 0;
  border-radius: 16px;
  margin: auto;
  width: min(620px, calc(100% - 28px));
  max-height: calc(100dvh - 36px);
  padding: 0;
  background: white;
  color: var(--ink);
  box-shadow: 0 24px 100px #0003;
}
.sheet::backdrop,
.media-dialog::backdrop {
  background: #15221480;
  backdrop-filter: blur(2px);
}
.sheet-inner {
  padding: 25px 28px 28px;
}
.sheet-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.sheet-heading h2 {
  padding-top: 7px;
  overflow-wrap: anywhere;
}
.sheet-heading .icon-button {
  margin-right: -9px;
}
.sheet p.muted {
  font-size: 12px;
}
.sheet-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.help-block {
  background: #f6f8f4;
  border-radius: 9px;
  padding: 14px 15px;
  margin-bottom: 20px;
}
.help-block p {
  font-size: 12px;
  white-space: pre-wrap;
}
.help-block strong {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
  font-weight: 500;
}
.field-hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.6;
}
.upload-label {
  border: 1px dashed #ccd4c9;
  border-radius: 9px;
  padding: 15px;
  background: #fbfcfa;
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}
.upload-label > .icon {
  width: 21px;
  height: 21px;
}
.upload-label input {
  max-width: 100%;
  padding: 6px 0;
  border: 0;
  font-size: 12px;
  min-height: 30px;
  background: transparent;
}
.upload-label input::file-selector-button {
  background: #edf0eb;
  border: 0;
  border-radius: 5px;
  padding: 6px 8px;
  font-family: inherit;
  color: var(--ink);
  margin-right: 9px;
}
.file-list {
  font-size: 12px;
  overflow-wrap: anywhere;
  font-weight: 400;
  line-height: 1.6;
}
.detail-label {
  font-size: 12px;
  color: var(--muted);
  margin: 20px 0 7px;
}
.detail-text {
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.detail-badges {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.report-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.report-status select {
  min-height: 38px;
  font-size: 12px;
}
.thread {
  display: grid;
  gap: 16px;
  margin: 18px 0 24px;
}
.comment {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfdfb;
}
.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.comment-meta strong {
  font-weight: 600;
  color: #545e51;
}
.comment p {
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.75;
}
.attachments {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.attachment {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  max-width: 100%;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  padding: 7px 9px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.attachment.image-attachment {
  padding: 0;
  width: 100px;
  height: 76px;
}
.attachment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.attachment .icon {
  width: 15px;
  height: 15px;
}
.media-dialog {
  width: min(1100px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  border: 0;
  border-radius: 12px;
  background: #101610;
  padding: 45px 16px 16px;
}
.media-dialog > .icon-button {
  position: absolute;
  right: 7px;
  top: 5px;
  color: white;
}
.media-dialog img,
.media-dialog video {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 110px);
  margin: auto;
  object-fit: contain;
}
.media-dialog p {
  color: white;
  font-size: 12px;
  text-align: center;
  margin-top: 12px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 20px;
  border-radius: 9px;
  background: #283e2d;
  color: white;
  box-shadow: 0 5px 25px #0002;
  z-index: 100;
  font-size: 12px;
  max-width: calc(100% - 30px);
  line-height: 1.6;
}
.toast.error {
  background: #8e3b32;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 23px 0;
}
.inline-note {
  padding: 11px 13px;
  background: #fff8e9;
  border-radius: 8px;
  color: #83602a;
  font-size: 12px;
  line-height: 1.6;
}
.case-links {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.case-links button {
  font-size: 12px;
}
.loading {
  padding: 50px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.account-actions {
  display: grid;
  gap: 10px;
}
.account-actions .button {
  justify-content: flex-start;
}
.run-context {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.run-context span {
  background: #f2f5f0;
  border-radius: 5px;
  padding: 5px 8px;
}
.no-results {
  font-size: 13px;
  color: var(--muted);
  padding: 30px 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (hover: hover) {
  .button.primary:hover {
    background: #8c3d16;
  }
  .button:not(.primary):not(.danger):hover {
    background: #f1f4ee;
  }
}
@media (min-width: 1450px) {
  main {
    padding-top: 44px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 216px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .main-wrap {
    margin-left: 216px;
    width: calc(100% - 216px);
  }
  main {
    padding: 29px 24px 60px;
  }
  .topbar {
    padding: 0 24px;
  }
  .sync-state {
    display: none;
  }
  .summary-counts {
    gap: 15px;
  }
  .summary {
    padding: 18px;
    gap: 20px;
  }
  .case-row {
    padding: 12px 15px;
  }
  .case-actions {
    gap: 5px;
  }
}
@media (max-width: 760px) {
  .workspace {
    display: block;
  }
  .sidebar {
    position: relative;
    width: 100%;
    padding: 15px 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  .brand {
    font-size: 19px;
    padding: 0;
    gap: 8px;
  }
  .brand-mark {
    width: 29px;
    height: 31px;
    font-size: 25px;
    border-radius: 10px 10px 10px 3px;
  }
  .project-label,
  .sidebar-note {
    display: none;
  }
  .sidebar nav {
    display: flex;
    order: 3;
    flex-basis: 100%;
    gap: 3px;
    padding: 2px 0 8px;
    overflow: auto;
  }
  .nav-button {
    min-height: 42px;
    white-space: nowrap;
    font-size: 12px;
    padding: 9px 10px;
    gap: 7px;
    flex: 1;
    justify-content: center;
  }
  .nav-button .icon {
    width: 17px;
    height: 17px;
  }
  .nav-count {
    min-width: 17px;
    line-height: 18px;
    margin-left: 0;
  }
  .account {
    padding: 0;
    border: 0;
    margin-left: auto;
    gap: 7px;
  }
  .account .avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .account strong {
    font-size: 12px;
  }
  .account span:not(.avatar) {
    font-size: 12px;
  }
  .account .icon-button {
    width: 27px;
  }
  .main-wrap {
    margin: 0;
    width: 100%;
  }
  .topbar {
    height: 76px;
    padding: 12px 16px;
    gap: 8px;
  }
  .run-control select {
    max-width: 170px;
    font-size: 12px;
  }
  .top-actions {
    gap: 3px;
  }
  .top-actions .button {
    font-size: 12px;
    padding: 9px 10px;
  }
  .top-actions .icon-button {
    width: 32px;
  }
  .top-actions .button .icon {
    width: 14px;
    height: 14px;
  }
  .run-control label {
    font-size: 12px;
  }
  main {
    padding: 25px 16px 55px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
    margin-bottom: 21px;
  }
  .page-heading h1 {
    font-size: 27px;
    letter-spacing: -0.8px;
  }
  .breadcrumb {
    margin-bottom: 12px;
  }
  .page-heading .muted {
    font-size: 12px;
  }
  .heading-actions {
    width: 100%;
  }
  .summary {
    padding: 16px;
    gap: 17px;
    display: block;
    border-radius: 11px;
  }
  .summary-counts {
    margin-top: 16px;
    justify-content: space-between;
  }
  .summary-stat {
    font-size: 12px;
  }
  .summary-stat strong {
    font-size: 18px;
  }
  .tools {
    gap: 8px;
    margin-bottom: 16px;
  }
  .tools > select {
    font-size: 12px;
    max-width: 145px;
    padding: 8px;
  }
  .search input {
    font-size: 12px;
    min-width: 0;
  }
  .section > summary {
    padding: 16px 13px;
    font-size: 12px;
    gap: 8px;
  }
  .case-row {
    padding: 12px 10px;
    gap: 7px;
    align-items: flex-start;
  }
  .case-title {
    font-size: 12px;
    min-height: 32px;
  }
  .check-wrap {
    width: 27px;
    min-height: 32px;
  }
  .case-actions {
    flex-direction: column;
    gap: 1px;
    align-items: flex-end;
  }
  .case-sub {
    font-size: 12px;
  }
  .badge {
    font-size: 12px;
    padding: 4px 6px;
  }
  .case-actions .badge.pending {
    font-size: 0;
    padding: 7px;
  }
  .case-actions .badge.pending:before {
    width: 6px;
    height: 6px;
  }
  .section-count {
    font-size: 12px;
  }
  .report-card {
    padding: 17px 16px;
  }
  .report-card h3 {
    font-size: 14px;
  }
  .report-footer {
    gap: 10px;
  }
  .report-top {
    gap: 7px;
  }
  .empty {
    padding: 39px 20px;
    min-height: 240px;
  }
  .empty h2 {
    font-size: 19px;
  }
  .empty p {
    font-size: 12px;
  }
  .sheet {
    max-height: calc(100dvh - 16px);
    width: calc(100% - 16px);
    border-radius: 13px;
  }
  .sheet-inner {
    padding: 17px 18px 24px;
  }
  .sheet-heading {
    gap: 12px;
    margin-bottom: 19px;
  }
  .sheet-heading h2 {
    font-size: 19px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-actions .button {
    flex: 1;
  }
  form {
    gap: 17px;
  }
  .timeline {
    padding: 5px 15px;
  }
  .timeline-item p {
    font-size: 12px;
  }
  .login-card {
    padding: 27px 24px;
  }
  .login-card h1 {
    font-size: 25px;
  }
  .auth {
    padding-top: 28px;
  }
  .form-actions {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .topbar select {
    max-width: 155px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
progress {
  display: block;
  width: 100%;
  height: 6px;
  appearance: none;
  border: none;
  background: #edf0eb;
  border-radius: 4px;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: #edf0eb;
  border-radius: 4px;
}
progress::-webkit-progress-value {
  background: var(--green);
  border-radius: 4px;
  transition: width 0.2s ease;
}
progress::-moz-progress-bar {
  background: var(--green);
  border-radius: 4px;
}
.report-card > .case-title {
  font-size: 15px;
  font-weight: 600;
}
.image-attachment span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.report-status {
  flex-wrap: wrap;
}
.report-status .form-error {
  flex-basis: 100%;
}
.detail-text + form {
  margin-top: 20px;
}
.sheet h3 + form {
  margin-top: 15px;
}
.case-title,
.case-sub,
.report-card p,
#run-meta {
  overflow-wrap: anywhere;
}
#run-meta {
  max-width: 540px;
}
.search {
  flex-direction: row;
}
.search > [data-icon] {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  color: var(--muted);
  pointer-events: none;
}
.search > [data-icon] .icon {
  width: 17px;
  height: 17px;
}
.section > summary:before {
  content: "›";
  color: #929b8e;
  font-size: 20px;
  line-height: 1;
  width: 13px;
  transform-origin: center;
  transition: transform 0.15s ease;
}
.section[open] > summary:before {
  transform: rotate(90deg);
}
.saved-message {
  font-size: 12px;
  color: var(--green);
  margin: 10px 0;
}
.sheet section > h3 {
  margin-top: 12px;
}

/* Задания месяца используют существующие шрифт, цвета и кнопки портала. */
.plan-intro, .plan-notes p { max-width: 72ch; }
.plan-intro { margin-bottom: 12px; }
.plan-budget { font-weight: 600; font-variant-numeric: tabular-nums; }
.plan-links, .week-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.week-picker p { flex-basis: 100%; }
.week-picker [aria-pressed="true"] { background: var(--accent); color: white; }
.week-list { margin: 28px 0; border-top: 1px solid var(--line); }
.week-row { display: grid; grid-template-columns: 90px minmax(0,1fr) 140px; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.week-number { font-size: 14px; color: var(--muted); padding-top: 5px; }
.week-main h2 { margin-bottom: 8px; }
.week-main p + p { margin-top: 8px; }
.week-budget { display: flex; flex-direction: column; gap: 6px; font-variant-numeric: tabular-nums; font-size: 14px; }
.week-budget span { color: var(--muted); }
.week-budget strong { font-size: 18px; }
.plan-notes { margin: 28px 0; }
.plan-notes h2 { margin-bottom: 12px; }
.plan-notes p + p { margin-top: 10px; }
.section-instructions { padding: 0 20px 18px; max-width: 85ch; color: var(--muted); font-size: 14px; }
.table-scroll { overflow-x: auto; }
.reference-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.reference-table th, .reference-table td { padding: 14px 20px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
.reference-table th { font-weight: 600; }
.reference-table tbody th { width: 30%; }
::selection { color: var(--ink); background: #f5d7c4; }
@media (max-width: 700px) {
 .week-row { grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
 .week-number { grid-column: 1 / -1; }
 .week-main { min-width: 0; }
 .week-main h2 { font-size: 19px; }
 .week-budget { max-width: 95px; }
 .plan-links .button { white-space: normal; text-align: center; }
 .reference-table th, .reference-table td { padding: 12px; }
}

@media (max-width: 700px) {
 .week-number { grid-column: 1; grid-row: 1; }
 .week-main { grid-column: 1 / -1; grid-row: 2; }
 .week-budget { grid-column: 2; grid-row: 1; max-width: none; text-align: right; }
 .week-budget strong { font-size: 16px; }
 input, select, textarea { font-size: 16px; }
}

.start-guide { display: grid; grid-template-columns: 150px minmax(0, 1fr); max-width: 900px; margin: 0; }
.start-guide dt, .start-guide dd { padding: 16px 0; border-bottom: 1px solid var(--line); line-height: 1.65; }
.start-guide dt { font-weight: 600; padding-right: 24px; }
.start-guide dd { margin: 0; max-width: 72ch; }
@media (max-width: 700px) {
 .start-guide { grid-template-columns: minmax(0, 1fr); }
 .start-guide dt { border: 0; padding: 16px 0 4px; }
 .start-guide dd { padding: 0 0 16px; }
}

.run-advanced { border-top: 1px solid var(--line); padding-top: 14px; }
.run-advanced > summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.run-advanced[open] > summary { margin-bottom: 12px; }

.form-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 10px 40px 10px 12px;
  line-height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%236c726e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
.form-select:hover:not(:disabled) { border-color: #aeb8b0; }

.section-instructions h3 { color: var(--ink); margin-bottom: 8px; }
.section-instructions p + p { margin-top: 8px; }
.test-accounts { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 20px; margin: 12px 0; }
.test-accounts dt { color: var(--muted); }
.test-accounts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.test-address { font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
 .test-accounts { grid-template-columns: minmax(0, 1fr); gap: 4px; }
 .test-accounts dd + dt { margin-top: 8px; }
}

.case-label { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.case-description { margin: 10px 0; font-size: 14px; line-height: 1.65; max-width: 72ch; }
.case-description strong { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
.case-description p { white-space: pre-wrap; }

.quick-start { max-width: 78ch; margin: 24px 0 32px; }
.quick-start h2 { margin-bottom: 12px; }
.quick-start ol { margin: 0; padding-left: 24px; }
.quick-start li { line-height: 1.65; padding-left: 4px; }
.quick-start li + li { margin-top: 10px; }
@media (max-width: 700px) {
 .case-actions .badge.pending { font-size: 12px; padding: 6px 8px; }
 .case-actions .badge.pending::before { display: none; }
 .case-main .case-title { font-size: 14px; line-height: 1.6; }
}
