body:not([data-section="checklists"]) #checklists {
  display: none !important;
}

body[data-section="submit"] .workspace > :not(.topbar):not(.workspace-grid),
body[data-section="submit"] .workspace-grid > :not(#submit):not(#submissionFormPanel) {
  display: none !important;
}

body[data-section="submit"] .workspace-grid {
  grid-template-columns: minmax(0, 1fr);
}

#submit.home-completion-panel {
  display: none;
  scroll-margin-top: 110px;
}

body[data-section="submit"] #submit.home-completion-panel {
  display: block;
}

body[data-section="submit"].submission-open #submit.home-completion-panel {
  display: none;
}

body[data-section="submit"] #submissionFormPanel {
  grid-column: 1 / -1;
  width: min(100%, 980px);
  margin: 0 auto;
  scroll-margin-top: 110px;
}

body[data-section="checklists"] .workspace > :not(.topbar):not(.workspace-grid),
body[data-section="checklists"] .workspace-grid > :not(#checklists) {
  display: none !important;
}

body[data-section="checklists"] .workspace-grid {
  grid-template-columns: minmax(0, 1fr);
}

body[data-section="checklists"] #newEntryBtn,
body[data-section="checklists"] #exportBtn {
  display: none !important;
}

.home-completion-panel {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  box-shadow: none;
}

.home-completion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.home-completion-header h2,
.home-completion-header p {
  margin: 0;
}

.home-completion-header h2 {
  font-size: 1.1rem;
}

.home-completion-header > div > p:last-child {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.home-completion-actions,
.submission-form-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-completion-actions .primary-button,
.home-completion-actions .secondary-button {
  min-height: 38px;
  padding: 8px 13px;
}

.home-completion-content {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.6fr);
  gap: 20px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.home-completion-stages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  padding-right: 20px;
  border-right: 1px solid var(--line);
}

.home-stage-card {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.home-stage-card[data-stage="l2"],
.home-hall-stage[data-stage="l2"] {
  --stage-color: var(--blue);
}

.home-stage-card[data-stage="l3"],
.home-hall-stage[data-stage="l3"] {
  --stage-color: var(--accent);
}

.home-stage-card header,
.home-hall-card > header,
.home-hall-stage > span:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.home-stage-card header > span {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-stage-card small,
.home-hall-stage small {
  color: var(--muted);
  font-size: 0.74rem;
}

.home-stage-card > strong {
  font-size: 1.8rem;
  line-height: 1;
}

.home-stage-card .bar-track span,
.home-hall-stage .home-hall-bar i {
  background: var(--stage-color);
}

.home-completion-halls {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 12px;
  min-width: 0;
}

.home-hall-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 2px 12px;
  border-left: 1px solid var(--line);
}

.home-hall-card > header strong {
  font-size: 1.05rem;
}

.home-hall-stage {
  display: grid;
  gap: 4px;
}

.home-hall-stage > span:first-child b {
  color: var(--muted);
  font-size: 0.72rem;
}

.home-hall-stage > span:first-child strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.home-hall-bar,
.directory-completion-bar {
  display: block;
  width: 100%;
  height: 5px;
  overflow: hidden;
  background: #e5ebef;
}

.home-hall-bar i,
.directory-completion-bar i {
  display: block;
  height: 100%;
}

body[data-app] .directory-metrics.with-completion {
  grid-template-columns: repeat(5, minmax(108px, 1fr));
}

body[data-app] [data-index-panel="equipment"] .directory-table {
  min-width: 980px;
}

.directory-completion-button {
  display: grid;
  gap: 5px;
  width: 100%;
  min-width: 138px;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.directory-completion-button:hover strong,
.directory-completion-button:focus-visible strong {
  color: var(--accent-dark);
}

.directory-completion-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.directory-completion-button > span:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.directory-completion-button small,
.directory-completion-empty {
  color: var(--muted);
  font-size: 0.7rem;
  white-space: nowrap;
}

.directory-completion-bar i {
  background: var(--accent);
}

.directory-completion-status[data-status="Finished"] {
  color: var(--green-dark);
}

.directory-completion-status[data-status="In Progress"] {
  color: #7b4c0d;
}

.checklist-progress-panel {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 24px;
  border-top: 3px solid var(--accent);
  overflow: hidden;
}

.checklist-progress-header,
.checklist-results-heading,
.checklist-pagination,
.checklist-detail-header,
.checklist-phase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.checklist-progress-header h2,
.checklist-detail-header h3,
.checklist-phase-header h4 {
  margin: 0;
}

.checklist-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(104px, 1fr)) minmax(180px, 1.4fr);
  margin: 24px -24px 0;
  border-block: 1px solid var(--line);
  background: var(--panel-soft);
}

.checklist-summary > div {
  display: grid;
  align-content: center;
  min-height: 86px;
  padding: 14px 18px;
  border-right: 1px solid var(--line);
}

.checklist-summary > div:last-child {
  border-right: 0;
}

.checklist-summary span,
.checklist-hall-item span,
.checklist-results-heading span,
.checklist-asset-meta,
.checklist-asset-result span,
.checklist-detail-meta,
.checklist-check-meta,
.checklist-updated {
  color: var(--muted);
  font-size: 0.78rem;
}

.checklist-summary strong {
  margin-top: 4px;
  font-size: 1.35rem;
  line-height: 1.1;
}

.checklist-summary-progress .bar-track {
  margin-top: 8px;
}

.checklist-hall-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 20px 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.checklist-hall-item {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px 16px;
  background: var(--panel);
}

.checklist-hall-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.checklist-hall-item strong {
  font-size: 0.95rem;
}

.checklist-hall-item .bar-track span,
.checklist-reference-progress .bar-track span {
  background: var(--blue);
}

.checklist-definition-summary {
  margin: 24px 0 6px;
  border-top: 1px solid var(--line);
}

.checklist-definition-summary > header,
.checklist-definition-phase > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.checklist-definition-summary > header {
  padding: 20px 0 12px;
}

.checklist-definition-summary h3,
.checklist-definition-summary h4,
.checklist-definition-summary p {
  margin: 0;
}

.checklist-definition-summary > header > span,
.checklist-definition-row span {
  color: var(--muted);
  font-size: 0.76rem;
}

.checklist-definition-phase {
  margin-top: 10px;
}

.checklist-definition-phase > header {
  padding: 10px 0 8px;
}

.checklist-definition-phase h4 {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.checklist-definition-rows {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.checklist-definition-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.8fr) minmax(116px, 0.65fr) minmax(90px, 0.5fr) minmax(180px, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  min-height: 62px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

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

.checklist-definition-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.checklist-definition-row > div:first-child strong {
  overflow-wrap: anywhere;
  font-size: 0.84rem;
}

.checklist-definition-row [data-result="passed"] {
  color: var(--green-dark);
}

.checklist-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(132px, 1fr));
  gap: 10px;
  align-items: end;
  padding: 16px 0 20px;
  border-bottom: 1px solid var(--line);
}

.checklist-filters > label:not(.search-field) {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.checklist-filters select {
  width: 100%;
  min-width: 0;
}

.checklist-search {
  width: 100%;
  min-width: 0;
}

.checklist-results-heading {
  padding: 18px 0 10px;
}

.checklist-results-heading > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.checklist-export-toolbar {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.3fr);
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.checklist-export-selection {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.checklist-export-selection span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.74rem;
}

.checklist-export-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.checklist-export-actions .text-button,
.checklist-export-actions .primary-button {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 0.75rem;
}

.checklist-asset-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.checklist-asset-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 72px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
}

.checklist-asset-open {
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) minmax(130px, 0.85fr) minmax(102px, 0.7fr) minmax(170px, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 72px;
  padding: 12px 16px 12px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.checklist-export-check {
  display: grid;
  place-items: center;
  align-self: stretch;
  cursor: pointer;
}

.checklist-export-check input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--accent);
}

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

.checklist-asset-row:hover,
.checklist-asset-row.active,
.checklist-asset-row.export-selected {
  background: var(--accent-soft);
}

.checklist-asset-open:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.checklist-asset-name,
.checklist-asset-result,
.checklist-asset-count {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.checklist-asset-name strong,
.checklist-asset-meta,
.checklist-asset-result span,
.checklist-asset-count span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checklist-asset-result strong,
.checklist-asset-count strong {
  font-size: 0.9rem;
}

.checklist-status {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.checklist-status[data-status="Finished"] {
  border-color: #9bcab8;
  background: #e4f4eb;
  color: var(--green-dark);
}

.checklist-status[data-status="In Progress"] {
  border-color: #dfc083;
  background: #fff2d3;
  color: #7b4c0d;
}

.checklist-status[data-status="Not Started"] {
  border-color: #c7d2db;
  background: #edf2f6;
  color: #405b6d;
}

.checklist-pagination {
  min-height: 60px;
  border-bottom: 1px solid var(--line);
}

.checklist-pagination span {
  color: var(--muted);
  font-size: 0.8rem;
}

.checklist-empty {
  padding: 40px 20px;
  color: var(--muted);
  text-align: center;
}

.checklist-detail {
  min-width: 0;
  padding-top: 22px;
}

.checklist-detail-header {
  align-items: flex-start;
  padding-bottom: 18px;
}

.checklist-detail-header > div:first-child {
  min-width: 0;
}

.checklist-detail-header h3,
.checklist-detail-header p {
  overflow-wrap: anywhere;
}

.checklist-detail-header p {
  margin: 6px 0 0;
}

.checklist-detail-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(90px, 1fr));
  border-block: 1px solid var(--line);
  background: var(--panel-soft);
}

.checklist-detail-summary > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
}

.checklist-detail-summary > div:last-child {
  border-right: 0;
}

.checklist-detail-summary span {
  color: var(--muted);
  font-size: 0.72rem;
}

.checklist-phase {
  margin-top: 22px;
}

.checklist-phase-header {
  padding-bottom: 10px;
}

.checklist-phase-header span {
  color: var(--muted);
  font-size: 0.78rem;
}

.checklist-checks {
  display: grid;
  border-top: 1px solid var(--line);
}

.checklist-check-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.8fr) minmax(116px, 0.7fr) minmax(170px, 1fr) minmax(120px, 0.7fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}

.checklist-check-name {
  min-width: 0;
}

.checklist-check-name strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
}

.checklist-check-results {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 0.76rem;
}

.checklist-check-results [data-result="passed"] {
  color: var(--green-dark);
}

.checklist-check-results [data-result="failed"] {
  color: var(--red);
}

.checklist-check-results [data-result="na"] {
  color: var(--muted);
}

.checklist-source-link {
  justify-self: end;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.checklist-source-link:hover,
.checklist-source-link:focus-visible {
  text-decoration: underline;
}

.checklist-heading-actions,
.checklist-detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.checklist-overview-link {
  gap: 8px;
  text-decoration: none;
}

.checklist-save-notice {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.checklist-save-notice[data-tone="success"] {
  color: var(--green-dark);
}

.checklist-save-notice[data-tone="warning"] {
  color: #7b4c0d;
}

.checklist-browser-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.72fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: start;
  min-width: 0;
  margin-top: 8px;
}

.checklist-browser {
  min-width: 0;
}

.checklist-browser .checklist-filters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 10px;
}

.checklist-browser .checklist-search {
  grid-column: 1 / -1;
}

.checklist-browser .checklist-asset-list {
  max-height: 62vh;
  overflow-y: auto;
}

.checklist-browser .checklist-asset-row {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0;
  min-height: 78px;
  padding: 0;
}

.checklist-browser .checklist-asset-open {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name status"
    "count notes";
  gap: 8px 12px;
  min-height: 78px;
  padding: 12px 14px 12px 2px;
}

.checklist-browser .checklist-asset-name {
  grid-area: name;
}

.checklist-browser .checklist-status {
  grid-area: status;
}

.checklist-browser .checklist-asset-count {
  grid-area: count;
  grid-template-columns: auto 1fr;
  align-items: baseline;
}

.checklist-asset-note-count {
  grid-area: notes;
  justify-self: end;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.checklist-asset-note-count[data-issues]:not([data-issues="0"]) {
  color: var(--red);
}

.checklist-detail {
  padding: 10px 0 0 22px;
  border-left: 1px solid var(--line);
}

.checklist-check-row {
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
}

.checklist-complete-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  background: var(--panel-soft);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.checklist-complete-control:has(input:checked) {
  border-color: #9bcab8;
  background: #e4f4eb;
  color: var(--green-dark);
}

.checklist-complete-control input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.checklist-notes {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 2px solid var(--line);
}

.checklist-note-form {
  display: grid;
  grid-template-columns: minmax(100px, 0.3fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.checklist-note-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.checklist-note-form label > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.checklist-note-form textarea {
  min-height: 72px;
}

.checklist-photo-field input[type="file"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

.checklist-photo-field {
  grid-column: 1 / 3;
  grid-row: 2;
}

.checklist-note-form > .primary-button {
  grid-column: 3;
  grid-row: 2;
}

.checklist-photo-field input[type="file"]::file-selector-button {
  min-height: 30px;
  margin-right: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--panel-soft);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.checklist-photo-draft {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 120px));
  gap: 8px;
}

.checklist-photo-draft[hidden] {
  display: none;
}

.checklist-photo-draft figure {
  min-width: 0;
  margin: 0;
}

.checklist-photo-draft img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 4px;
  object-fit: cover;
}

.checklist-photo-draft figcaption {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checklist-note-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.checklist-note {
  padding: 12px 14px;
  border-left: 3px solid var(--blue);
  background: var(--panel-soft);
}

.checklist-note[data-kind="Issue"] {
  border-left-color: var(--red);
  background: #fff7f5;
}

.checklist-note header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.checklist-note header span,
.checklist-note small {
  color: var(--muted);
  font-size: 0.72rem;
}

.checklist-note p {
  margin: 8px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.checklist-note-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 156px));
  gap: 8px;
  margin: 10px 0;
}

.checklist-note-photos a {
  display: grid;
  min-width: 0;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}

.checklist-note-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 4px;
  object-fit: cover;
}

.checklist-note-photos span {
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checklist-notes-empty {
  padding: 18px;
  border: 1px dashed var(--line-strong);
}

.checklist-reference-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 220px) auto;
  gap: 18px;
  align-items: center;
}

.checklist-reference-summary h3,
.checklist-reference-summary p {
  margin: 0;
}

.checklist-reference-summary p {
  margin-top: 4px;
}

.checklist-reference-progress {
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr);
  gap: 10px;
  align-items: center;
}

@media (max-width: 1120px) {
  body[data-app] .directory-metrics.with-completion {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .checklist-summary > div:nth-child(3),
  .checklist-summary > div:nth-child(6) {
    border-right: 0;
  }

  .checklist-filters {
    grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(140px, 1fr));
  }

  .checklist-asset-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .checklist-asset-open {
    grid-template-columns: minmax(220px, 1.6fr) minmax(120px, 0.8fr) minmax(100px, 0.65fr) minmax(146px, 0.9fr);
  }

  .checklist-asset-result {
    display: none;
  }
}

@media (max-width: 900px) {
  .checklist-browser-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .checklist-browser .checklist-asset-list {
    max-height: 440px;
  }

  .checklist-detail {
    padding: 22px 0 0;
    border-top: 2px solid var(--line);
    border-left: 0;
    scroll-margin-top: 88px;
  }
}

@media (max-width: 760px) {
  .home-completion-panel {
    padding: 16px;
  }

  .home-completion-header,
  .home-completion-content {
    grid-template-columns: 1fr;
  }

  .home-completion-header {
    align-items: stretch;
    flex-direction: column;
  }

  .home-completion-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .home-completion-actions .primary-button,
  .home-completion-actions .secondary-button {
    width: 100%;
  }

  .home-completion-stages {
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .home-hall-card {
    padding: 4px 10px;
  }

  .checklist-progress-panel {
    padding-inline: 16px;
  }

  .checklist-progress-header,
  .checklist-results-heading,
  .checklist-detail-header,
  .checklist-reference-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .checklist-progress-header,
  .checklist-results-heading,
  .checklist-detail-header {
    display: flex;
  }

  .checklist-heading-actions,
  .checklist-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .checklist-export-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .checklist-export-actions {
    justify-content: flex-start;
  }

  .checklist-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-inline: -16px;
  }

  .checklist-summary > div,
  .checklist-summary > div:nth-child(3) {
    border-right: 1px solid var(--line);
  }

  .checklist-summary > div:nth-child(even) {
    border-right: 0;
  }

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

  .checklist-definition-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .checklist-definition-row > div:last-child {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr;
    align-items: baseline;
  }

  .checklist-filters {
    grid-template-columns: 1fr 1fr;
  }

  .checklist-search {
    grid-column: 1 / -1;
  }

  .checklist-asset-row {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 88px;
  }

  .checklist-asset-open {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name status"
      "count count";
    min-height: 88px;
    padding: 12px 10px 12px 2px;
  }

  .checklist-asset-name {
    grid-area: name;
  }

  .checklist-status {
    grid-area: status;
  }

  .checklist-asset-count {
    grid-area: count;
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .checklist-asset-row > .checklist-asset-meta,
  .checklist-asset-result {
    display: none;
  }

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

  .checklist-detail-summary > div {
    border-bottom: 1px solid var(--line);
  }

  .checklist-detail-summary > div:nth-child(even) {
    border-right: 0;
  }

  .checklist-check-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }

  .checklist-check-name {
    grid-column: 1 / -1;
  }

  .checklist-check-row .checklist-status {
    grid-area: auto;
  }

  .checklist-complete-control {
    justify-self: end;
  }

  .checklist-source-link {
    justify-self: start;
  }

  .checklist-note-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .checklist-photo-field,
  .checklist-note-form > .primary-button {
    grid-column: auto;
    grid-row: auto;
  }

  .checklist-photo-draft,
  .checklist-note-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checklist-note-form .primary-button {
    width: 100%;
  }

  .checklist-reference-summary {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body[data-app][data-section="submit"] .topbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  body[data-app][data-section="submit"] #adminLogoutBtn {
    grid-column: 1;
  }

  body[data-app][data-section="submit"] #exportBtn {
    grid-column: 2;
  }

  body[data-app][data-section="submit"] #newEntryBtn {
    grid-column: 1 / -1;
  }

  body[data-app] .directory-metrics.with-completion {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-completion-stages,
  .home-completion-halls {
    grid-template-columns: minmax(0, 1fr);
  }

  .checklist-filters,
  .checklist-hall-summary {
    grid-template-columns: 1fr;
  }

  .checklist-definition-summary > header {
    align-items: start;
    flex-direction: column;
  }

  .checklist-definition-row {
    grid-template-columns: 1fr 1fr;
  }

  .checklist-definition-row > div:first-child,
  .checklist-definition-row > div:last-child {
    grid-column: 1 / -1;
  }

  .checklist-pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .checklist-export-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checklist-export-actions .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .checklist-pagination span {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
  }
}
