@font-face {
  font-family: "Guiqin Sans";
  src: url("msyh-regular-subset.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Guiqin Sans";
  src: url("msyh-bold-subset.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --p-bg: #f6f8f8;
  --p-surface: #e9eff0;
  --p-ink: #1c2b2f;
  --p-muted: #5a6a6e;
  --p-accent: #0b6b65;
  --p-accent-ink: #ffffff;
  --p-action: #0b6b65;
  --p-action-ink: #ffffff;
  --p-inv-bg: #1c2b2f;
  --p-inv-surface: #2a3b3f;
  --p-inv-ink: #f6f8f8;
  --p-inv-muted: #a8b7ba;
  --p-inv-accent: #f6f8f8;
  --p-inv-accent-ink: #1c2b2f;
  --p-inv-action: #f6f8f8;
  --p-inv-action-ink: #1c2b2f;
  --font-display: "Guiqin Sans", "Microsoft YaHei", sans-serif;
  --font-text: "Guiqin Sans", "Microsoft YaHei", sans-serif;
  --font-mono: "DM Mono", "Microsoft YaHei", monospace;
  --display-weight: 500;
  --display-tracking: -0.025em;
  --display-tracking-xl: -0.035em;
  --success: #0b6b65;
  --success-bg: #dff2ed;
  --warning: #8c5a09;
  --warning-bg: #fff2d7;
  --danger: #a23c2d;
  --danger-bg: #fbe8e4;
  --paper: #ffffff;
  --ink-soft: #324549;
  --line-strong: rgba(28, 43, 47, 0.2);
}

body {
  font-family: var(--font-text);
  background: var(--p-bg);
}

h1,
h2,
h3,
h4,
.t-stat {
  font-family: var(--font-display);
}

button,
input,
textarea {
  font-family: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

input,
textarea {
  border: 0;
  outline: 0;
}

textarea {
  resize: vertical;
}

svg.lucide {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.nav {
  border-bottom-color: rgba(28, 43, 47, 0.09);
  background: rgba(246, 248, 248, 0.97);
}

.nav__logo {
  letter-spacing: -0.02em;
  font-weight: 600;
}

.nav__link {
  font-size: 15px;
}

.nav__actions .btn {
  height: 40px;
}

.nav__toggle.lucide {
  display: grid;
  place-items: center;
}

.nav__toggle svg {
  width: 22px;
  height: 22px;
}

.btn {
  gap: 8px;
  padding-inline: 20px;
}

.btn-icon {
  width: 17px !important;
  height: 17px !important;
}

.btn--primary {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.btn--primary:hover {
  background: #075a55;
}

.btn--secondary {
  background: transparent;
}

.btn--secondary:hover {
  background: rgba(28, 43, 47, 0.045);
}

.btn--sm {
  padding-inline: 14px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--muted);
  background: var(--paper);
  transition: background-color 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease);
}

.icon-button:hover {
  color: var(--ink);
  background: var(--p-surface);
  border-color: var(--line-strong);
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

.section-kicker {
  color: var(--p-accent);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pill {
  height: 30px;
  gap: 7px;
  border-color: rgba(28, 43, 47, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font-size: 12px;
}

.pill svg {
  width: 14px;
  height: 14px;
}

.pill b {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.pill--quiet {
  background: transparent;
}

/* Hero */
.hero {
  overflow: hidden;
}

.hero > .wrap {
  padding-top: 10px;
}

.hero__text {
  padding-top: 8px;
}

.hero h1 {
  max-width: 9.5ch;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero .hero__lead {
  max-width: 34ch;
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px !important;
  font-size: 13px;
  color: var(--muted);
}

.hero__proof svg {
  width: 15px;
  height: 15px;
  color: var(--success);
}

.entry__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--p-accent);
  font-size: 13px;
  font-weight: 600;
}

.status-dot,
.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--p-accent);
  box-shadow: 0 0 0 3px rgba(11, 107, 101, 0.12);
}

.hero__art {
  background: #e7edec;
  border: 1px solid rgba(28, 43, 47, 0.06);
}

.hero__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 58% at 20% 15%, rgba(255, 255, 255, 0.9), transparent 70%),
    linear-gradient(135deg, rgba(204, 220, 217, 0.58), transparent 55%);
  pointer-events: none;
}

.hero-art-drift {
  position: absolute;
  left: 56px;
  top: 48px;
  width: calc(100% - 40px);
  min-width: 560px;
  height: calc(100% - 72px);
  min-height: 540px;
}

.mock-console {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(28, 43, 47, 0.08);
  border-radius: 13px;
  background: #f9fbfb;
  box-shadow: 0 24px 64px -30px rgba(23, 44, 47, 0.35);
}

.mock-nav {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 16px;
  gap: 8px;
  border-bottom: 1px solid rgba(28, 43, 47, 0.08);
  background: #ffffff;
  font-size: 11px;
  color: var(--muted);
}

.mock-logo,
.mock-nav-user {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 6px;
  background: var(--p-accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.mock-nav-name {
  color: var(--ink);
  font-weight: 600;
}

.mock-nav-meta {
  margin-left: auto;
}

.mock-nav-user {
  border-radius: 50%;
  background: #dce7e5;
  color: var(--p-accent);
}

.mock-body {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  height: calc(100% - 48px);
}

.mock-rail {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 9px;
  border-right: 1px solid rgba(28, 43, 47, 0.08);
  background: #f1f6f5;
}

.mock-rail span {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 31px;
  padding: 0 8px;
  border-radius: 6px;
  color: #6d7b7e;
  font-size: 10px;
}

.mock-rail span.is-active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(28, 43, 47, 0.06);
  font-weight: 600;
}

.mock-rail svg {
  width: 13px;
  height: 13px;
}

.mock-main {
  padding: 18px 18px 16px;
  overflow: hidden;
}

.mock-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mock-topline > div {
  display: grid;
  gap: 3px;
}

.mock-kicker {
  color: #879497;
  font-size: 9px;
}

.mock-topline strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mock-chip {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success);
  font-size: 9px;
  font-weight: 600;
}

.mock-search {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  margin-top: 14px;
  padding: 0 10px;
  border: 1px solid rgba(28, 43, 47, 0.09);
  border-radius: 6px;
  background: #ffffff;
  color: #8a9699;
  font-size: 10px;
}

.mock-search svg {
  width: 12px;
  height: 12px;
}

.mock-search kbd {
  margin-left: auto;
  border: 0;
  color: #a2acae;
  font: 9px var(--font-mono);
}

.mock-rooms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.mock-room {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(28, 43, 47, 0.08);
  border-radius: 7px;
  background: #ffffff;
}

.mock-room-icon {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 5px;
  background: #ecf2f1;
  color: var(--p-accent);
}

.mock-room-icon svg {
  width: 12px;
  height: 12px;
}

.mock-room > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.mock-room strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mock-room small {
  overflow: hidden;
  color: #8b9799;
  font-size: 8px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mock-score {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font: 600 8px var(--font-mono);
}

.mock-score.good {
  color: var(--success);
  background: var(--success-bg);
}

.mock-score.warn {
  color: var(--warning);
  background: var(--warning-bg);
}

.mock-checklist {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(28, 43, 47, 0.08);
  border-radius: 8px;
  background: #ffffff;
}

.mock-copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 10px;
}

.mock-copy strong {
  font-weight: 600;
}

.mock-copy span {
  color: #8b9799;
}

.mock-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 9px;
}

.mock-bar i {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--p-accent) 0 84%, #e5eceb 84%);
}

.mock-bar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--p-accent);
}

.mock-bar span:last-child {
  color: var(--p-accent);
  font-weight: 700;
}

.mock-pills {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.mock-pills span {
  flex: 1;
  padding: 6px;
  border-radius: 5px;
  background: #f2f6f5;
  color: #718083;
  font-size: 8px;
  text-align: center;
}

.mock-pills b {
  color: var(--ink);
  font-family: var(--font-mono);
}

.mock-float {
  position: absolute;
  left: 22px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 255px;
  padding: 12px 13px;
  border: 1px solid rgba(28, 43, 47, 0.08);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 32px -18px rgba(28, 43, 47, 0.3);
  font-size: 10px;
}

.mock-float-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: none;
  border-radius: 7px;
  background: var(--success-bg);
  color: var(--success);
}

.mock-float-icon svg {
  width: 14px;
  height: 14px;
}

.mock-float > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.mock-float strong {
  font-weight: 600;
}

.mock-float small {
  color: #8a9699;
  font-size: 8px;
}

.mock-float > svg {
  width: 15px;
  height: 15px;
  margin-left: auto;
  color: var(--success);
}

/* Workspace */
.workspace-section {
  background: #eef3f3;
}

.workspace-section > .wrap,
.history-section > .wrap,
.help-section > .wrap {
  height: auto;
}

.workspace-head,
.history-actions,
.workspace-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.workspace-head {
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 32px;
}

.workspace-head h2 {
  max-width: 570px;
  margin-top: 8px;
  font-size: clamp(30px, 2.4vw + 12px, 44px);
  letter-spacing: -0.04em;
}

.workspace-meta {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.workspace {
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  min-height: 730px;
  border: 1px solid rgba(28, 43, 47, 0.11);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 16px 50px -38px rgba(28, 43, 47, 0.4);
}

.dorm-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid rgba(28, 43, 47, 0.1);
  background: #f5f8f8;
}

.dorm-list__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 20px 14px;
}

.dorm-list__head h3 {
  font: 600 17px/1.35 var(--font-text);
  letter-spacing: -0.02em;
}

.dorm-list__head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.dorm-list__head .icon-button {
  width: 34px;
  height: 34px;
  border-color: transparent;
  background: transparent;
}

.dorm-list__head .icon-button:hover {
  background: #e9efef;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin: 0 16px;
  padding: 0 11px;
  border: 1px solid rgba(28, 43, 47, 0.11);
  border-radius: 7px;
  background: #ffffff;
  color: #879396;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}

.search-box:focus-within {
  border-color: var(--p-accent);
  box-shadow: 0 0 0 3px rgba(11, 107, 101, 0.08);
}

.search-box svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.search-box input {
  width: 100%;
  min-width: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.search-box input::placeholder {
  color: #9aa5a7;
}

.search-shortcut {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(28, 43, 47, 0.1);
  border-radius: 4px;
  color: #99a3a5;
  font: 11px var(--font-mono);
}

.filter-row {
  display: flex;
  gap: 5px;
  padding: 12px 16px 9px;
}

.filter-chip {
  flex: 1;
  height: 30px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}

.filter-chip:hover {
  color: var(--ink);
  background: #e8eeee;
}

.filter-chip.is-active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(28, 43, 47, 0.08);
  font-weight: 600;
}

.dorm-list__scroll {
  flex: 1;
  min-height: 0;
  max-height: 526px;
  overflow-y: auto;
  padding: 4px 9px 10px;
  scrollbar-width: thin;
}

.dorm-list__scroll::-webkit-scrollbar {
  width: 5px;
}

.dorm-list__scroll::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: #cad4d4;
}

.dorm-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 10px 6px;
  color: #839093;
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.dorm-group-label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(28, 43, 47, 0.07);
}

.dorm-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease);
}

.dorm-row:hover {
  background: #edf3f3;
}

.dorm-row.is-active {
  border-color: rgba(11, 107, 101, 0.12);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(28, 43, 47, 0.06);
}

.dorm-row__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #e7eeee;
  color: #718184;
}

.dorm-row.is-active .dorm-row__icon {
  background: var(--success-bg);
  color: var(--p-accent);
}

.dorm-row__icon svg {
  width: 15px;
  height: 15px;
}

.dorm-row__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dorm-row__copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dorm-row__copy span {
  overflow: hidden;
  color: #849093;
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dorm-row__status {
  display: grid;
  gap: 3px;
  justify-items: end;
}

.dorm-row__status .score-mini {
  font: 600 11px var(--font-mono);
  color: var(--p-accent);
}

.dorm-row__status .done-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.dorm-row__status .pending-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid #aab4b5;
}

.dorm-list__empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.dorm-list__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border-top: 1px solid rgba(28, 43, 47, 0.08);
  color: #879396;
  font-size: 10px;
}

.dorm-list__foot .online-dot {
  flex: none;
  width: 6px;
  height: 6px;
  box-shadow: none;
}

.text-button {
  padding: 4px;
  color: var(--p-accent);
  font-size: 11px;
  font-weight: 600;
}

.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dorm-list__foot .text-button {
  margin-left: auto;
}

.inspection {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 24px 0;
}

.inspection__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(28, 43, 47, 0.08);
}

.inspection-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inspection-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex: none;
  border-radius: 9px;
  background: var(--p-ink);
  color: white;
  font: 500 19px var(--font-mono);
}

.inspection-title .section-kicker {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
  font-weight: 500;
}

.inspection-title h3 {
  margin-top: 2px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.inspection-head-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.state-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 29px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 11px;
  font-weight: 600;
}

.state-pill svg {
  width: 13px;
  height: 13px;
}

.state-pill.is-done {
  background: var(--success-bg);
  color: var(--success);
}

.more-menu {
  position: absolute;
  z-index: 5;
  right: 0;
  top: 45px;
  width: 186px;
  padding: 5px;
  border: 1px solid rgba(28, 43, 47, 0.1);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 32px -14px rgba(28, 43, 47, 0.25);
}

.more-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 36px;
  padding: 0 9px;
  border-radius: 5px;
  text-align: left;
  color: var(--ink);
  font-size: 12px;
}

.more-menu button:hover {
  background: var(--p-surface);
}

.more-menu svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.score-summary {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 0 16px;
}

.score-ring {
  --pct: calc(var(--score) * 1%);
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(var(--p-accent) 0 var(--pct), #e7eeee var(--pct) 100%);
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #ffffff;
}

.score-ring > * {
  position: relative;
}

.score-ring span {
  align-self: end;
  color: var(--ink);
  font: 600 24px/1 var(--font-mono);
  letter-spacing: -0.05em;
}

.score-ring small {
  align-self: start;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.score-summary-text {
  display: grid;
  gap: 4px;
}

.score-label {
  width: max-content;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--success-bg);
  color: var(--success);
  font-size: 10px;
  font-weight: 700;
}

.score-summary-text strong {
  font-size: 16px;
  font-weight: 600;
}

.score-summary-text p {
  color: var(--muted);
  font-size: 11px;
}

.score-marks {
  display: flex;
  gap: 5px;
  align-items: center;
}

.score-marks span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(28, 43, 47, 0.11);
  border-radius: 5px;
  color: #a3adaf;
  font-size: 10px;
  font-weight: 600;
}

.score-marks .mark-a.is-on {
  background: var(--p-ink);
  border-color: var(--p-ink);
  color: white;
}

.score-marks .mark-b.is-on {
  background: var(--p-accent);
  border-color: var(--p-accent);
  color: white;
}

.score-marks .mark-c.is-on {
  background: var(--warning);
  border-color: var(--warning);
  color: white;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.score-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(28, 43, 47, 0.1);
  border-radius: 9px;
  background: #fbfcfc;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}

.score-card:focus-within {
  border-color: rgba(11, 107, 101, 0.35);
  background: #ffffff;
}

.score-card__top {
  display: grid;
  grid-template-columns: 28px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.area-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #e9f0ef;
  color: var(--p-accent);
}

.area-icon svg {
  width: 14px;
  height: 14px;
}

.score-card__top label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.area-note {
  overflow: hidden;
  color: #899598;
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.score-value {
  color: var(--p-accent);
  font: 600 13px/1 var(--font-mono);
}

.score-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-top: 11px;
}

.score-option {
  display: grid;
  gap: 1px;
  justify-items: center;
  min-width: 0;
  height: 43px;
  padding: 5px 2px;
  border: 1px solid rgba(28, 43, 47, 0.09);
  border-radius: 6px;
  background: #ffffff;
  color: #647276;
  transition: border-color 120ms var(--ease), background-color 120ms var(--ease), color 120ms var(--ease);
}

.score-option:hover {
  border-color: rgba(11, 107, 101, 0.25);
  background: #f2f8f7;
}

.score-option b {
  font: 600 12px/1.3 var(--font-mono);
}

.score-option span {
  font-size: 9px;
}

.score-option.is-selected {
  border-color: var(--p-accent);
  background: var(--p-accent);
  color: white;
}

.score-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.note-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  color: #7a878a;
  font-size: 9px;
}

.note-toggle:hover,
.note-toggle.has-note {
  color: var(--p-accent);
}

.note-toggle svg {
  width: 11px;
  height: 11px;
}

.area-status {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--success);
  font-size: 9px;
}

.area-status svg {
  width: 11px;
  height: 11px;
}

.area-status.is-warn {
  color: var(--warning);
}

.area-note-field {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(28, 43, 47, 0.07);
}

.area-note-field label {
  display: block;
  margin-bottom: 4px;
  color: #7a878a;
  font-size: 9px;
}

.area-note-field input {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  border: 1px solid rgba(28, 43, 47, 0.1);
  border-radius: 5px;
  background: #ffffff;
  color: var(--ink);
  font-size: 11px;
}

.evidence {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid rgba(28, 43, 47, 0.08);
}

.evidence__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.evidence__head h3 {
  font: 600 13px/1.35 var(--font-text);
  letter-spacing: -0.01em;
}

.evidence__head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.evidence-count {
  color: #849093;
  font: 11px var(--font-mono);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}

.photo-add,
.photo-item {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 7px;
}

.photo-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 1px dashed rgba(28, 43, 47, 0.2);
  background: #f8fbfa;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}

.photo-add:hover,
.photo-add:focus-within {
  border-color: var(--p-accent);
  background: #f0f7f6;
}

.photo-add-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--p-accent);
}

.photo-add-icon svg {
  width: 13px;
  height: 13px;
}

.photo-add strong {
  max-width: 86%;
  margin-top: 3px;
  overflow: hidden;
  font-size: 9px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.photo-add > span:last-of-type {
  color: #8a9699;
  font-size: 7px;
}

.photo-item {
  background: var(--p-surface);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.photo-item button {
  position: absolute;
  right: 4px;
  top: 4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(17, 28, 31, 0.76);
  color: white;
}

.photo-item button svg {
  width: 12px;
  height: 12px;
}

.photo-error {
  margin-top: 7px;
  color: var(--danger);
  font-size: 11px;
}

.inspection-note {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 2px 8px;
  margin-top: 13px;
  padding: 9px 11px;
  border: 1px solid rgba(28, 43, 47, 0.08);
  border-radius: 7px;
  background: #f9fbfb;
}

.note-icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #ecf1f1;
  color: #627175;
}

.note-icon svg {
  width: 13px;
  height: 13px;
}

.inspection-note label {
  font-size: 10px;
  font-weight: 600;
}

.inspection-note label span {
  color: #96a0a2;
  font-weight: 400;
}

.inspection-note textarea {
  width: 100%;
  min-height: 36px;
  max-height: 84px;
  padding: 1px 50px 1px 0;
  background: transparent;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.6;
}

.inspection-note textarea::placeholder {
  color: #98a3a5;
}

.char-count {
  position: absolute;
  right: 11px;
  bottom: 9px;
  color: #a1abad;
  font: 9px var(--font-mono);
}

.inspection-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: auto -24px 0;
  padding: 13px 24px;
  border-top: 1px solid rgba(28, 43, 47, 0.08);
  background: #ffffff;
}

.save-state {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #7d898c;
  font-size: 10px;
}

.save-state svg {
  width: 13px;
  height: 13px;
}

.save-state.is-saved {
  color: var(--success);
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-buttons .btn {
  height: 38px;
  padding-inline: 14px;
  font-size: 11px;
}

.action-buttons .btn--secondary {
  color: #68777a;
}

/* History */
.history-section {
  background: var(--p-bg);
}

.history-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  overflow: hidden;
  min-height: 470px;
  border: 1px solid rgba(28, 43, 47, 0.1);
  border-radius: 12px;
  background: var(--paper);
}

.history-visual {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background: #dfe6e5;
}

.history-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 56%;
  transition: transform 600ms var(--ease);
}

.history-visual:hover > img {
  transform: scale(1.02);
}

.history-visual__overlay {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(20, 35, 38, 0.82);
  color: white;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.history-visual__overlay > span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}

.history-visual__overlay svg {
  width: 15px;
  height: 15px;
}

.overlay-count {
  color: rgba(255, 255, 255, 0.68);
}

.overlay-count strong {
  color: white;
  font: 600 17px var(--font-mono);
}

.evidence-strip {
  position: absolute;
  z-index: 2;
  left: 16px;
  top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: min(92%, 310px);
}

.evidence-photo,
.evidence-upload {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 6px;
  background: rgba(22, 37, 40, 0.77);
  color: white;
  backdrop-filter: blur(5px);
}

.evidence-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
}

.evidence-photo--desk img {
  object-position: 60% 66%;
}

.evidence-photo--floor img {
  object-position: 86% 78%;
}

.evidence-photo--bath img {
  object-position: 48% 35%;
}

.evidence-photo span {
  position: absolute;
  left: 5px;
  bottom: 5px;
  padding: 2px 4px;
  border-radius: 3px;
  background: rgba(20, 34, 37, 0.7);
  font-size: 8px;
}

.evidence-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-style: dashed;
  background: rgba(20, 34, 37, 0.6);
}

.evidence-upload svg {
  width: 18px;
  height: 18px;
  margin-bottom: 3px;
}

.evidence-upload strong {
  font-size: 8px;
  font-weight: 600;
}

.evidence-upload span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 7px;
}

.history-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  background: #ffffff;
}

.history-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(28, 43, 47, 0.08);
}

.history-panel__head h3 {
  font: 600 18px/1.35 var(--font-text);
  letter-spacing: -0.02em;
}

.history-panel__head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.history-list {
  display: flex;
  flex-direction: column;
  max-height: 400px;
  overflow-y: auto;
}

.history-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 80px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(28, 43, 47, 0.07);
}

.history-row:last-child {
  border-bottom: 0;
}

.history-score {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  font: 600 12px var(--font-mono);
}

.history-score.is-warn {
  background: var(--warning-bg);
  color: var(--warning);
}

.history-row__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.history-row__copy strong {
  font-size: 13px;
  font-weight: 600;
}

.history-row__copy p {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.history-row__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #899598;
  font-size: 10px;
}

.history-row__meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.history-row__meta svg {
  width: 12px;
  height: 12px;
}

.history-row__meta button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #7f8c8f;
}

.history-row__meta button:hover {
  background: var(--p-surface);
  color: var(--ink);
}

.history-row__meta button svg {
  width: 15px;
  height: 15px;
}

.history-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px;
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eef3f3;
  color: #829093;
}

.empty-icon svg {
  width: 21px;
  height: 21px;
}

.history-empty h3 {
  margin-top: 13px;
  font: 600 15px/1.4 var(--font-text);
}

.history-empty p {
  max-width: 270px;
  margin: 5px 0 12px;
  color: var(--muted);
  font-size: 11px;
}

.history-empty .link {
  font-size: 11px;
  color: var(--p-accent);
  text-decoration: none;
}

/* Help */
.help-section {
  background: #eef3f3;
}

.help-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 34px;
}

.help-head h2 {
  max-width: 560px;
  margin-top: 8px;
  font-size: clamp(30px, 2.4vw + 12px, 44px);
  letter-spacing: -0.04em;
}

.help-head > p {
  max-width: 38ch;
  justify-self: end;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.help-card {
  min-height: 178px;
  padding: 20px;
  border: 1px solid rgba(28, 43, 47, 0.09);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.72);
}

.help-card--accent {
  border-color: transparent;
  background: var(--p-ink);
  color: var(--p-inv-ink);
}

.help-number {
  display: block;
  color: #899598;
  font: 500 11px var(--font-mono);
}

.help-card--accent .help-number {
  color: #9fb3b6;
}

.help-card h3 {
  margin-top: 38px;
  font: 600 17px/1.4 var(--font-text);
  letter-spacing: -0.02em;
}

.help-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.help-card--accent p {
  color: #b7c5c7;
}

/* Closing */
.footer.closing {
  background: var(--p-bg);
}

.footer.closing .close--type {
  justify-content: center;
}

.footer.closing .section-head {
  max-width: 760px;
}

.footer.closing .section-head h2 {
  font-size: clamp(34px, 4vw + 8px, 62px);
  letter-spacing: -0.045em;
}

.footer.closing .section-head > p:last-child {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.footer.closing .btn--wide {
  max-width: 420px;
}

.footer__legal .credits {
  margin-left: auto;
}

.footer__legal .credits summary {
  cursor: pointer;
  color: var(--muted);
}

.footer__legal .credits p {
  max-width: 500px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.footer-button {
  padding: 0;
  font-size: var(--t-small);
  color: inherit;
}

.footer-button:hover {
  color: var(--action);
}

.footer .closing__links {
  margin-top: 28px;
}

.footer .closing__links .footer__lede {
  font-size: 20px;
}

/* Toast and modal */
.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 210px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: #1c2b2f;
  color: white;
  box-shadow: 0 12px 30px -12px rgba(20, 35, 38, 0.45);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.toast.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
}

.toast-icon svg {
  width: 14px;
  height: 14px;
}

.modal {
  width: min(650px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 40px));
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  overflow: visible;
}

.modal::backdrop {
  background: rgba(19, 31, 34, 0.58);
  backdrop-filter: blur(3px);
}

.modal-card {
  max-height: min(760px, calc(100vh - 40px));
  overflow-y: auto;
  padding: 22px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 30px 70px -25px rgba(16, 28, 31, 0.45);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.modal-head h2 {
  margin-top: 5px;
  font-size: 24px;
}

.modal-head .icon-button {
  flex: none;
}

.detail-summary {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding: 16px;
  border-radius: 9px;
  background: #f2f6f5;
}

.detail-total {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 84px;
  border-radius: 8px;
  background: white;
  color: var(--p-accent);
}

.detail-total strong {
  font: 600 30px var(--font-mono);
}

.detail-total span {
  color: var(--muted);
  font-size: 10px;
}

.detail-summary-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.detail-summary-copy strong {
  font-size: 16px;
}

.detail-summary-copy p {
  color: var(--muted);
  font-size: 11px;
}

.detail-areas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.detail-area {
  padding: 10px;
  border: 1px solid rgba(28, 43, 47, 0.08);
  border-radius: 7px;
}

.detail-area span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.detail-area strong {
  display: block;
  margin-top: 2px;
  font: 600 15px var(--font-mono);
}

.detail-note {
  margin-top: 12px;
  padding: 12px;
  border-left: 2px solid var(--p-accent);
  background: #f7f9f9;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.detail-photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.detail-photos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  cursor: zoom-in;
}

.modal--photo {
  width: min(950px, calc(100% - 32px));
}

.modal-card--photo {
  padding: 14px;
}

.modal-card--photo .modal-head {
  margin-bottom: 12px;
}

.modal-card--photo .modal-head h2 {
  font-size: 15px;
}

.modal-card--photo > img {
  width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border-radius: 7px;
  background: #e9eeee;
}

/* Accessible focus and interaction */
.score-option:focus-visible,
.filter-chip:focus-visible,
.note-toggle:focus-visible,
.text-button:focus-visible,
.dorm-row:focus-visible,
.photo-add:focus-within {
  outline: 2px solid var(--p-accent);
  outline-offset: 2px;
}

.photo-add input:focus-visible {
  outline: none;
}

/* Tablet */
@media (max-width: 1100px) {
  .hero-art-drift {
    left: 36px;
    min-width: 500px;
  }

  .workspace {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .inspection {
    padding-inline: 18px;
  }

  .inspection-actions {
    margin-inline: -18px;
    padding-inline: 18px;
  }
}

@media (max-width: 1023px) {
  .hero > .wrap {
    padding-top: 0;
  }

  .hero__text {
    padding-top: 0;
  }

  .hero__art {
    min-height: 300px;
  }

  .hero-art-drift {
    left: 32px;
    top: 30px;
    width: calc(100% - 52px);
    min-width: 0;
    min-height: 260px;
    height: calc(100% - 52px);
  }

  .mock-console {
    min-width: 0;
  }

  .mock-body {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .mock-rooms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mock-room:last-child {
    display: none;
  }

  .mock-main {
    padding: 14px;
  }

  .mock-checklist {
    margin-top: 11px;
  }

  .mock-float {
    display: none;
  }

  .workspace {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .score-grid {
    grid-template-columns: 1fr;
  }

  .score-card__top {
    grid-template-columns: 28px auto minmax(0, 1fr) auto;
  }

  .photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .history-layout {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  }

  .help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .workspace {
    display: block;
    min-height: 0;
    overflow: visible;
  }

  .dorm-list {
    border-right: 0;
    border-bottom: 1px solid rgba(28, 43, 47, 0.1);
  }

  .dorm-list__scroll {
    display: flex;
    gap: 7px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 14px 15px;
  }

  .dorm-group-label {
    display: none;
  }

  .dorm-row {
    flex: 0 0 196px;
    min-height: 55px;
    background: #ffffff;
  }

  .dorm-row:not(.is-active) {
    border-color: rgba(28, 43, 47, 0.07);
  }

  .dorm-list__foot {
    display: none;
  }

  .inspection {
    padding-top: 20px;
  }

  .score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-layout {
    grid-template-columns: 1fr;
  }

  .history-visual {
    min-height: 280px;
  }

  .history-panel {
    min-height: 390px;
  }
}

@media (max-width: 639px) {
  .nav__actions .nav__admin-link {
    display: none;
  }

  .hero {
    min-height: auto;
    height: auto !important;
  }

  .hero h1 {
    max-width: 10ch;
    font-size: clamp(40px, 11.5vw, 50px);
  }

  .hero .hero__lead {
    max-width: 35ch;
    font-size: 16px;
  }

  .hero__proof {
    margin-top: 16px !important;
  }

  .hero__art {
    min-height: 248px;
    margin-top: 8px !important;
  }

  .hero-art-drift {
    left: 18px;
    top: 18px;
    width: calc(100% - 18px);
    min-height: 236px;
    height: calc(100% - 36px);
  }

  .mock-nav {
    height: 39px;
    padding-inline: 11px;
  }

  .mock-body {
    grid-template-columns: 1fr;
    height: calc(100% - 39px);
  }

  .mock-rail {
    display: none;
  }

  .mock-main {
    padding: 11px;
  }

  .mock-topline strong {
    font-size: 14px;
  }

  .mock-search {
    height: 30px;
    margin-top: 9px;
  }

  .mock-rooms {
    gap: 6px;
    margin-top: 8px;
  }

  .mock-room {
    padding: 7px;
  }

  .mock-checklist {
    margin-top: 8px;
    padding: 9px;
  }

  .mock-pills {
    display: none;
  }

  .workspace-head {
    display: block;
    margin-bottom: 22px;
  }

  .workspace-meta {
    justify-content: flex-start;
    margin-top: 14px;
  }

  .workspace-head h2,
  .help-head h2 {
    font-size: 30px;
  }

  .workspace {
    margin-inline: -12px;
    border-radius: 10px;
  }

  .dorm-list__head {
    padding: 18px 16px 10px;
  }

  .search-box {
    margin-inline: 12px;
  }

  .filter-row {
    padding: 9px 12px 7px;
  }

  .dorm-list__scroll {
    padding-inline: 12px;
  }

  .dorm-row {
    flex-basis: 175px;
  }

  .inspection {
    padding: 17px 14px 0;
  }

  .inspection__head {
    padding-bottom: 14px;
  }

  .inspection-mark {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .inspection-title h3 {
    font-size: 19px;
  }

  .state-pill {
    padding-inline: 7px;
  }

  .score-summary {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 12px;
  }

  .score-ring {
    width: 60px;
    height: 60px;
  }

  .score-ring span {
    font-size: 20px;
  }

  .score-ring::before {
    inset: 5px;
  }

  .score-marks {
    display: none;
  }

  .score-summary-text strong {
    font-size: 14px;
  }

  .score-summary-text p {
    font-size: 10px;
  }

  .score-grid {
    grid-template-columns: 1fr;
  }

  .score-card {
    padding: 12px;
  }

  .score-option {
    height: 47px;
  }

  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .photo-add strong {
    font-size: 8px;
  }

  .inspection-actions {
    margin-inline: -14px;
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
  }

  .action-buttons {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
  }

  .action-buttons .btn {
    width: 100%;
  }

  .history-section .workspace-head {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .history-actions {
    width: 100%;
    justify-content: space-between;
  }

  .history-layout {
    margin-inline: -12px;
    border-radius: 10px;
  }

  .history-visual {
    min-height: 220px;
  }

  .history-panel {
    min-height: 370px;
    padding: 18px;
  }

  .history-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .history-row__meta > span {
    display: none;
  }

  .help-head {
    display: block;
  }

  .help-head > p {
    max-width: 36ch;
    margin-top: 14px;
  }

  .help-grid {
    grid-template-columns: 1fr;
  }

  .help-card {
    min-height: 150px;
  }

  .help-card h3 {
    margin-top: 24px;
  }

  .footer.closing {
    height: auto !important;
    min-height: 100svh;
  }

  .footer .closing__links .grid {
    row-gap: 26px;
  }

  .footer.closing .btn--wide {
    max-width: none;
  }

  .footer__legal {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer__legal .credits {
    margin-left: 0;
  }

  .toast {
    bottom: 80px;
  }

  .modal-card {
    padding: 16px;
  }

  .detail-summary {
    grid-template-columns: 1fr;
  }

  .detail-total {
    min-height: 72px;
  }

  .detail-areas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-photos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .actionbar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .history-visual > img {
    transition: none;
  }
}

@media print {
  .nav,
  .hero,
  .help-section,
  .actionbar,
  .toast,
  .inspection-actions {
    display: none !important;
  }

  .workspace-section,
  .history-section {
    height: auto !important;
    padding-block: 20px;
  }

  .workspace {
    display: block;
  }
}
