:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --panel: #ffffff;
  --ink: #17201b;
  --muted: #66716a;
  --line: #dce2dc;
  --accent: #1f6f5b;
  --accent-dark: #164f41;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.auth-pending .topbar,
.auth-pending .layout {
  display: none;
}

.auth-panel {
  align-items: center;
  display: none;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.auth-pending .auth-panel {
  display: flex;
}

.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(20, 35, 28, 0.12);
  max-width: 440px;
  padding: 28px;
  width: 100%;
}

.auth-card h1 {
  margin-bottom: 8px;
}

.user-button-host {
  align-items: center;
  display: inline-flex;
  min-height: 38px;
}

.topbar {
  align-items: center;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 20px 28px;
}

.topbar-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 4px;
  text-transform: uppercase;
}

h1 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
}

.build-version {
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0 0;
}

.build-version span {
  display: block;
}

.build-version.warning {
  color: #8a5a00;
  font-weight: 700;
}

.status {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: inline-flex;
  font-size: 14px;
  gap: 7px;
  padding: 8px 10px;
}

.status.ok {
  border-color: #b6d7c8;
  color: var(--accent-dark);
}

.status.warning {
  border-color: #e2c45c;
  color: #73540a;
}

.status.offline {
  border-color: #e6b6b2;
  color: #9f1d15;
}

.tracker-status-dot {
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(31, 111, 91, 0.13);
  display: inline-block;
  flex: 0 0 auto;
  height: 10px;
  width: 10px;
}

.status.warning .tracker-status-dot {
  background: #d79b00;
  box-shadow: 0 0 0 3px rgba(215, 155, 0, 0.16);
}

.status.offline .tracker-status-dot {
  background: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.14);
}

.refresh-button,
.topbar-settings,
.icon-button {
  align-items: center;
  background: #eef2ee;
  border: 1px solid #c7d0c9;
  color: var(--accent-dark);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  min-height: 0;
  padding: 0;
  width: 38px;
}

.refresh-button {
  color: var(--accent-dark);
}

.refresh-icon {
  background: currentColor;
  display: block;
  height: 22px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='black' d='M24.6 8.1V3h3.4v11h-11v-3.4h5.3A9.7 9.7 0 1 0 25.7 18h3.5A13.1 13.1 0 1 1 24.6 8.1z'/%3E%3C/svg%3E") center / contain no-repeat;
  transform-origin: center;
  width: 22px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='black' d='M24.6 8.1V3h3.4v11h-11v-3.4h5.3A9.7 9.7 0 1 0 25.7 18h3.5A13.1 13.1 0 1 1 24.6 8.1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.refresh-button.is-spinning .refresh-icon {
  animation: refresh-spin 0.8s linear infinite;
}

@keyframes refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.refresh-button:hover,
.topbar-settings:hover,
.icon-button:hover {
  background: #dfe8e2;
}

.refresh-button:disabled:hover {
  background: #eef2ee;
}

.layout {
  margin: 0 auto;
  max-width: 1440px;
  padding: 24px;
}

.page-tabs {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.tab-button {
  background: transparent;
  border-radius: 8px 8px 0 0;
  color: var(--muted);
  flex: 0 0 auto;
  min-height: 38px;
  white-space: nowrap;
}

.tab-button:hover,
.tab-button.active {
  background: var(--panel);
  color: var(--accent-dark);
}

.tab-button.active {
  border: 1px solid var(--line);
  border-bottom-color: var(--panel);
  margin-bottom: -1px;
}

.review-tab {
  margin-left: auto;
}

.tab-button.has-alert {
  color: #b42318;
  font-weight: 700;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-button.hidden,
.tab-panel.hidden {
  display: none;
}

.recent-updates-tab {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.recent-tab-icon {
  background:
    conic-gradient(
      from -18deg,
      #0f3f34 0deg 24deg,
      transparent 24deg 34deg,
      #174f41 34deg 58deg,
      transparent 58deg 70deg,
      #1f6f5b 70deg 94deg,
      transparent 94deg 106deg,
      #4a927c 106deg 130deg,
      transparent 130deg 142deg,
      #7eb49f 142deg 166deg,
      transparent 166deg 178deg,
      #b8d5ca 178deg 202deg,
      transparent 202deg 214deg,
      #d9e6e0 214deg 238deg,
      transparent 238deg 360deg
    );
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  height: 18px;
  mask: radial-gradient(circle, transparent 0 42%, #000 45% 100%);
  width: 18px;
  -webkit-mask: radial-gradient(circle, transparent 0 42%, #000 45% 100%);
}

.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.mobile-sort-row {
  align-items: center;
  display: none;
  gap: 7px;
  margin: 0 0 10px;
}

.mobile-sort-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mobile-sort-row .sort-button {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  min-height: 30px;
  padding: 5px 9px;
}

.mobile-sort-row .sort-button.active {
  background: #edf5f1;
  border-color: #b6d7c8;
  color: var(--accent-dark);
}

input,
select {
  border: 1px solid var(--line);
  border-radius: 8px;
  flex: 1;
  font: inherit;
  min-height: 42px;
  padding: 10px 12px;
}

select {
  background: #ffffff;
  color: var(--ink);
  flex: 0 0 130px;
}

button {
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  min-height: 42px;
  padding: 10px 16px;
}

button:hover {
  background: var(--accent-dark);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button:disabled:hover {
  background: var(--accent);
}

a {
  color: var(--accent-dark);
}

.sort-button {
  background: transparent;
  border-radius: 4px;
  color: #3b453f;
  min-height: 0;
  padding: 0;
  text-align: left;
}

.sort-button:hover {
  background: transparent;
  color: var(--accent-dark);
}

.table-shell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
}

.workspace {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.8fr);
}

table {
  border-collapse: collapse;
  min-width: 1080px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef2ee;
  color: #3b453f;
  font-size: 13px;
}

.icon-column {
  padding-left: 6px;
  padding-right: 6px;
  width: 42px;
}

td {
  font-size: 14px;
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover,
tbody tr.selected {
  background: #edf5f1;
}

tbody tr.updated-today {
  background: #fff8df;
  box-shadow: inset 4px 0 0 #d59b23;
}

tbody tr.updated-today td:first-child::before {
  color: #8a5a00;
  content: "Today";
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 3px;
  text-transform: uppercase;
}

tbody tr.updated-today:hover,
tbody tr.updated-today.selected {
  background: #fff1bf;
}

.construction-warning-row {
  box-shadow: inset 4px 0 0 #b42318;
}

.expanded-detail-row,
.expanded-detail-row:hover {
  background: #fbfcfb;
  cursor: default;
}

.expanded-detail-row td {
  border-bottom: 12px solid #f3f6f4;
  padding: 0;
}

.pending-action {
  font-weight: 700;
}

.quiet-action {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.detail-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 420px;
  padding: 18px;
}

.section-title-row {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 10px;
  margin-top: 16px;
}

.section-title-row h3 {
  margin: 0;
}

.add-task-button {
  align-items: center;
  background: var(--accent);
  border: 0;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 700;
  height: 30px;
  justify-content: center;
  line-height: 1;
  min-height: 0;
  padding: 0;
  width: 30px;
}

.add-task-button:hover {
  background: var(--accent-dark);
}

.expanded-detail {
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  min-height: 0;
  padding: 12px 18px 16px;
}

.review-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.review-header h2 {
  margin: 0 0 4px;
}

.add-date-button {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  min-height: 42px;
  padding: 0;
  width: 42px;
}

.add-date-form {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(180px, 1fr) 170px minmax(180px, 1fr) auto auto;
  margin-top: 14px;
}

.add-date-form.hidden {
  display: none;
}

.review-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

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

.date-column {
  align-content: start;
  display: grid;
  gap: 12px;
}

.date-column > h3 {
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  margin-top: 0;
  padding-bottom: 8px;
}

.date-subsection {
  display: grid;
  gap: 8px;
}

.date-subsection > h4 {
  color: var(--accent-dark);
  font-size: 13px;
  margin: 0;
}

.upload-panel {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
}

.upload-label {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.upload-panel input {
  flex: 0 1 320px;
  min-height: 36px;
  padding: 6px 8px;
}

.upload-panel button {
  font-size: 13px;
  min-height: 34px;
  padding: 7px 10px;
}

.upload-panel-modal {
  align-items: stretch;
  border-top: 0;
  display: grid;
  margin-top: 16px;
  padding-top: 0;
}

.upload-panel-modal input {
  flex: initial;
  width: 100%;
}

.review-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.review-item summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 8px 12px;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  padding: 12px;
}

.review-summary-actions {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-self: end;
}

.review-item details[open] summary {
  border-bottom: 1px solid var(--line);
}

.review-date,
.review-subject {
  margin: 0;
}

.review-subject {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.confidence-badge {
  border: 1px solid #d8cda8;
  border-radius: 999px;
  color: #725d16;
  font-size: 12px;
  padding: 5px 8px;
  white-space: nowrap;
}

.confidence-badge.high {
  background: #edf5f1;
  border-color: #97b9a9;
  color: var(--accent-dark);
}

.confidence-badge.medium {
  background: #fffaf0;
  border-color: #d8cda8;
  color: #725d16;
}

.confidence-badge.low {
  background: #fff4f2;
  border-color: #e4a29b;
  color: #8f1d14;
}

.review-grid {
  display: grid;
  gap: 8px 14px;
  grid-template-columns: 100px minmax(0, 1fr);
  margin: 12px;
}

.review-grid dt {
  color: var(--muted);
  font-size: 13px;
}

.review-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.parser-issues {
  background: #fffaf0;
  border: 1px solid #ead9aa;
  border-radius: 8px;
  margin: 0;
  padding: 10px;
}

.review-gap-row {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 12px;
}

.parser-issues h3,
.review-corrections h3 {
  border-top: 0;
  margin: 0 0 8px;
  padding-top: 0;
}

.parser-issues ul {
  color: #725d16;
  margin: 0;
  padding-left: 18px;
}

.review-actions {
  display: flex;
  gap: 8px;
  margin: 12px;
}

.review-triage-section {
  display: grid;
  gap: 8px;
}

.review-triage-section > h3 {
  border-top: 0;
  margin: 4px 0 0;
  padding-top: 0;
}

.review-corrections {
  align-items: start;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 10px;
}

.review-corrections button {
  justify-self: start;
}

.correction-feedback {
  color: var(--muted);
  font-size: 13px;
  grid-column: 1 / -1;
  margin: 0;
}

.review-resolved {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.recent-updates-list {
  display: grid;
  gap: 10px;
}

.recent-update {
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.recent-update.update-status {
  box-shadow: inset 3px 0 0 var(--accent);
}

.recent-update.update-import {
  box-shadow: inset 3px 0 0 #8fa79a;
}

.recent-update-heading {
  align-items: baseline;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.recent-update-heading h3 {
  border-top: 0;
  font-size: 14px;
  margin: 0;
  padding-top: 0;
}

.recent-update-time {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  white-space: nowrap;
}

.recent-update .review-grid dt {
  font-size: 11px;
}

.recent-update .review-grid dd {
  font-size: 12px;
}

.parser-example-settings summary {
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 700;
}

.parser-examples-list {
  display: grid;
  gap: 8px;
}

.parser-example {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

.parser-example summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.parser-fields h3 {
  border-top: 0;
  margin: 10px 12px 0;
  padding-top: 0;
}

.objection-settings {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  margin: 12px;
  padding-top: 12px;
}

.delete-button {
  background: #b42318;
  justify-self: end;
}

.delete-button:hover {
  background: #8f1d14;
}

.archive-item {
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  padding: 8px 10px;
}

.archive-item.has-alert {
  border-color: #e4a29b;
  box-shadow: inset 4px 0 0 #b42318;
}

.archive-table {
  min-width: 900px;
}

.archive-table th:nth-child(5),
.archive-table td:nth-child(5) {
  min-width: 220px;
  white-space: nowrap;
}

.archive-heading-row {
  align-items: baseline;
  display: flex;
  gap: 14px;
}

.archive-heading-row h2,
.archive-heading-row .muted {
  font-size: 20px;
  line-height: 1.3;
  margin: 14px 0;
}

.archive-alert-row {
  box-shadow: inset 4px 0 0 #b42318;
}

.archive-title {
  align-items: center;
  display: flex;
  gap: 8px;
}

.alert-button {
  background: #b42318;
  border-radius: 50%;
  font-weight: 700;
  height: 30px;
  min-height: 0;
  padding: 0;
  width: 30px;
}

.alert-button:hover {
  background: #8f1d14;
}

.date-item {
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  min-height: 0;
  padding: 8px 10px;
  position: relative;
}

.billing-item {
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.billing-kind {
  background: #eef2ee;
  border: 1px solid #c7d0c9;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  padding: 4px 8px;
}

.date-item h3 {
  align-items: flex-start;
  border-top: 0;
  display: flex;
  font-size: 13px;
  gap: 6px;
  line-height: 1.3;
  margin: 0 28px 6px 0;
  padding-top: 0;
}

.date-heading-text {
  min-width: 0;
}

.date-item .review-grid {
  gap: 5px 10px;
  margin: 0;
}

.date-item .review-grid dt,
.date-item .review-grid dd {
  font-size: 12px;
}

.date-title-link {
  color: var(--accent-dark);
  font-weight: 700;
}

.sitting-date {
  border-color: #73b390;
  box-shadow: inset 3px 0 0 var(--accent);
}

.flagged-date {
  border-color: #d59b2d;
  box-shadow: inset 3px 0 0 #d59b2d;
}

.date-dismiss {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  height: 24px;
  line-height: 1;
  min-height: 0;
  padding: 0;
  position: absolute;
  right: 8px;
  top: 8px;
  width: 24px;
}

.date-dismiss:hover {
  color: var(--ink);
}

.date-flag-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #8a958d;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 18px;
  justify-content: center;
  min-height: 0;
  padding: 0;
  width: 18px;
}

.date-flag-button:hover,
.date-flag-button.active {
  color: #b57b16;
}

.date-flag-icon {
  display: block;
  height: 15px;
  position: relative;
  width: 14px;
}

.date-flag-icon::before {
  background: currentColor;
  border-radius: 1px;
  content: "";
  height: 15px;
  left: 1px;
  position: absolute;
  top: 0;
  width: 2px;
}

.date-flag-icon::after {
  background: transparent;
  border: 2px solid currentColor;
  border-left: 0;
  border-radius: 1px 3px 3px 1px;
  content: "";
  height: 7px;
  left: 3px;
  position: absolute;
  top: 1px;
  width: 9px;
}

.date-flag-button.active .date-flag-icon::after {
  background: #d59b2d;
  border-color: #d59b2d;
}

.link-button {
  background: transparent;
  border: 0;
  color: var(--accent-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 0;
  padding: 0;
  text-align: left;
}

.link-button:hover {
  text-decoration: underline;
}

.review-text {
  margin: 12px;
}

.review-text h3 {
  margin-top: 12px;
}

.review-text pre {
  background: #f3f5f3;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #26312b;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  max-height: 320px;
  overflow: auto;
  padding: 10px;
  white-space: pre-wrap;
}

.correspondence-panel {
  min-height: 0;
}

.correspondence-panel > h3 {
  font-size: 15px;
  margin: 10px 0 8px;
  text-align: center;
}

.correspondence-panel .review-grid {
  gap: 5px 12px;
  margin: 8px 12px 10px;
}

.correspondence-panel .review-grid dt,
.correspondence-panel .review-grid dd {
  font-size: 12px;
}

.correspondence-context {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0 0 12px;
}

.correspondence-context p {
  margin: 0 0 4px;
}

.correspondence-context p:last-child {
  margin-bottom: 0;
}

.correspondence-context strong {
  color: var(--ink);
  font-weight: 700;
}

.correspondence-text h3 {
  font-size: 13px;
  margin-bottom: 8px;
}

.correspondence-content {
  background: #f7f8f6;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #26312b;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  max-height: 260px;
  overflow: auto;
  padding: 12px;
}

.correspondence-content p {
  margin: 0 0 12px;
  white-space: pre-line;
}

.correspondence-content p:last-child {
  margin-bottom: 0;
}

.correspondence-content strong {
  color: var(--text);
  font-weight: 700;
}

.tracked-date-indicator {
  align-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  color: var(--accent-dark);
  cursor: help;
  display: inline-flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  height: 16px;
  justify-content: center;
  line-height: 1;
  margin-left: 4px;
  vertical-align: -2px;
  white-space: nowrap;
  width: 16px;
}

.attachment-list {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  padding-left: 20px;
}

.detail-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.compact-detail-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 380px;
}

.compact-detail-meta {
  min-width: 0;
}

.compact-detail-tools {
  align-content: start;
  border-left: 2px solid #ffffff;
  display: grid;
  gap: 10px;
  justify-items: end;
  padding-left: 18px;
}

.detail-kicker {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
}

.detail-actions {
  align-items: flex-start;
  display: flex;
  gap: 10px;
}

.detail-ref {
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  text-decoration: none;
}

.detail-meta-link {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.detail-meta-link:hover {
  text-decoration: underline;
}

.table-link {
  color: var(--ink);
  font-weight: 400;
  text-decoration: none;
}

.has-pending-action .table-link {
  font-weight: 700;
}

.table-link:hover,
.detail-ref:hover {
  text-decoration: underline;
}

.file-cell {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.file-flags {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.priority-button {
  background: transparent;
  border: 0;
  color: #7a8580;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  min-height: 0;
  padding: 0;
}

.priority-button.active {
  color: #d59b2d;
}

.file-billing-button {
  background: transparent;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  min-height: 0;
  padding: 0;
  text-shadow: 0 0 1px #52615a;
}

.file-billing-button.active {
  color: var(--accent-dark);
  text-shadow: none;
}

.pending-badge {
  align-items: center;
  background: #eef2ee;
  border: 1px solid #c7d0c9;
  border-radius: 999px;
  color: transparent;
  display: none;
  font-size: 11px;
  font-weight: 800;
  height: 18px;
  justify-content: center;
  line-height: 1;
  min-width: 18px;
  padding: 0 5px;
}

.pending-badge.active {
  background: #fff4d6;
  border-color: #d59b2d;
  color: #8a5a00;
  display: inline-flex;
}

.muted {
  color: var(--muted);
  margin: 0;
}

.sort-filter-row,
.sort-filter-row:hover {
  background: #f7faf8;
  cursor: default;
}

.sort-filter-row td {
  border-bottom: 1px solid #c7d0c9;
  color: var(--muted);
  font-size: 13px;
  padding: 8px 14px;
}

.settle-deadline {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  gap: 8px;
}

.settle-deadline input {
  height: 18px;
  width: 18px;
}

h2 {
  font-size: 20px;
  line-height: 1.3;
  margin: 14px 0;
}

h3 {
  border-top: 1px solid var(--line);
  font-size: 15px;
  margin: 14px 0 8px;
  padding-top: 12px;
}

.meta-grid {
  display: grid;
  gap: 8px 14px;
  grid-template-columns: 92px minmax(0, 1fr);
  margin: 0;
}

.meta-grid dt {
  color: var(--muted);
  font-size: 13px;
}

.meta-grid dd {
  margin: 0;
}

.editable-meta-grid input,
.editable-meta-grid textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  min-height: 30px;
  padding: 5px 8px;
  width: 100%;
}

.editable-meta-grid textarea {
  min-height: 56px;
  resize: vertical;
}

.eapps-details {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 10px;
}

.eapps-details summary {
  color: var(--accent-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.eapps-details .review-grid {
  margin-top: 6px;
}

.eapps-section {
  margin-top: 12px;
}

.eapps-section h3 {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}

.perit-cell,
.perit-detail {
  align-items: flex-start;
  display: grid;
  gap: 6px;
  justify-items: start;
}

.perit-detail {
  justify-items: end;
}

.perit-number {
  margin: 0;
}

.icon-row {
  display: flex;
  gap: 6px;
}

.icon-cell {
  padding-left: 6px;
  padding-right: 6px;
  text-align: center;
  vertical-align: middle;
  width: 42px;
}

.icon-cell .document-button {
  margin: 0 auto;
}

.construction-status {
  line-height: 1.35;
}

.approved-medal-icon {
  background: #d59b2d;
  border: 1px solid #a97816;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #f7dda0;
  display: inline-block;
  height: 14px;
  margin-right: 2px;
  position: relative;
  top: 2px;
  width: 14px;
}

.approved-medal-icon::before,
.approved-medal-icon::after {
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 6px solid #8fa79a;
  content: "";
  position: absolute;
  top: 11px;
}

.approved-medal-icon::before {
  left: 1px;
  transform: rotate(18deg);
}

.approved-medal-icon::after {
  right: 1px;
  transform: rotate(-18deg);
}

.construction-light {
  border-radius: 50%;
  display: inline-block;
  height: 10px;
  width: 10px;
}

.construction-light.green {
  background: #1f8f56;
}

.construction-light.green-notes {
  background: #1f8f56;
  box-shadow: 0 0 0 2px #cfe8d9;
}

.construction-light.red-notes {
  background: #b42318;
}

.construction-note {
  color: var(--muted);
  font-size: 12px;
}

.folder-link {
  align-items: center;
  border: 1px solid #c7d0c9;
  border-radius: 4px;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  width: 30px;
}

.folder-link:hover {
  background: #edf5f1;
}

.document-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #c7d0c9;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  min-height: 0;
  padding: 0;
  width: 30px;
}

.document-button:hover {
  background: #edf5f1;
}

.document-icon {
  border: 1.5px solid var(--accent-dark);
  border-radius: 2px;
  display: block;
  height: 13px;
  position: relative;
  width: 11px;
}

.document-icon::after {
  background: var(--accent-dark);
  content: "";
  height: 2px;
  left: 2px;
  position: absolute;
  top: 3px;
  width: 5px;
  box-shadow: 0 4px 0 var(--accent-dark);
}

.sync-button {
  align-items: center;
  background: #eef2ee;
  border: 1px solid #c7d0c9;
  border-radius: 4px;
  color: var(--accent-dark);
  cursor: pointer;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  min-height: 0;
  padding: 0;
  width: 30px;
}

.sync-button:not(:disabled):hover,
.sync-text-button:not(:disabled):hover {
  background: #dfe8e2;
}

.sync-button:disabled,
.sync-text-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.sync-text-button {
  align-items: center;
  background: #eef2ee;
  border: 1px solid #c7d0c9;
  color: var(--accent-dark);
  display: inline-flex;
  gap: 6px;
}

.sync-icon {
  display: inline-block;
  height: 18px;
  position: relative;
  transform-origin: center;
  width: 18px;
}

.sync-icon::before {
  border: 2px solid #c7d0c9;
  border-radius: 50%;
  content: "";
  inset: 1px;
  position: absolute;
}

.sync-icon::after {
  background: var(--accent-dark);
  content: "";
  inset: 0;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='black' d='M12.4 7.7a9.9 9.9 0 0 1 12.8 3.8l-2.8 1.6a6.7 6.7 0 0 0-8.4-2.6 6.9 6.9 0 0 0-3.5 4.3h4.1l-5.7 6.5-5.8-6.5h4a10.1 10.1 0 0 1 5.3-7.1Zm10.7 3.1 5.8 6.5h-4a10.1 10.1 0 0 1-18.1 3.3l2.8-1.6a6.7 6.7 0 0 0 8.4 2.6 6.9 6.9 0 0 0 3.5-4.3h-4.1l5.7-6.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  position: absolute;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='black' d='M12.4 7.7a9.9 9.9 0 0 1 12.8 3.8l-2.8 1.6a6.7 6.7 0 0 0-8.4-2.6 6.9 6.9 0 0 0-3.5 4.3h4.1l-5.7 6.5-5.8-6.5h4a10.1 10.1 0 0 1 5.3-7.1Zm10.7 3.1 5.8 6.5h-4a10.1 10.1 0 0 1-18.1 3.3l2.8-1.6a6.7 6.7 0 0 0 8.4 2.6 6.9 6.9 0 0 0 3.5-4.3h-4.1l5.7-6.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sync-button.is-syncing .sync-icon,
.sync-text-button.is-syncing .sync-icon {
  animation: sync-spin 0.8s linear infinite;
}

@keyframes sync-spin {
  to {
    transform: rotate(-360deg);
  }
}

.folder-link.disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.copy-button {
  align-items: center;
  background: #eef2ee;
  border: 1px solid #c7d0c9;
  border-radius: 4px;
  color: var(--accent-dark);
  display: inline-flex;
  height: 26px;
  justify-content: center;
  min-height: 0;
  padding: 0;
  width: 30px;
}

.copy-button:hover,
.copy-button.copied {
  background: #dfe8e2;
}

.copy-button.disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.copy-icon {
  border: 2px solid currentColor;
  border-radius: 2px;
  display: block;
  height: 14px;
  position: relative;
  width: 12px;
}

.copy-icon::before {
  border: 2px solid currentColor;
  border-radius: 2px;
  content: "";
  height: 14px;
  left: 4px;
  position: absolute;
  top: -6px;
  width: 12px;
}

.folder-icon {
  background: linear-gradient(#f7d56f, #dca832);
  border: 1px solid #9d7624;
  border-radius: 2px;
  display: block;
  height: 14px;
  position: relative;
  width: 19px;
}

.folder-icon::before {
  background: #f3ce63;
  border: 1px solid #9d7624;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  content: "";
  height: 5px;
  left: 1px;
  position: absolute;
  top: -6px;
  width: 9px;
}

.settings-button {
  align-items: center;
  background: #eef2ee;
  border: 1px solid #c7d0c9;
  border-radius: 4px;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  min-height: 0;
  padding: 0;
  width: 30px;
}

.billing-button {
  align-items: center;
  background: #eef2ee;
  border: 1px solid #c7d0c9;
  border-radius: 4px;
  color: #6c756f;
  display: inline-flex;
  font-weight: 700;
  height: 26px;
  justify-content: center;
  min-height: 0;
  padding: 0;
  width: 30px;
}

.billing-button:hover,
.billing-button.active {
  background: #e7f4ed;
  border-color: #8bbda7;
  color: var(--accent-dark);
}

.full-view-button {
  background: #eef2ee;
  color: var(--accent-dark);
  font-size: 13px;
  min-height: 30px;
  padding: 6px 10px;
}

.full-view-button:hover {
  background: #dfe8e2;
}

.construction-button {
  background: #dfe8e2;
  color: var(--accent-dark);
  font-size: 13px;
  min-height: 30px;
  padding: 6px 10px;
}

.construction-button:hover {
  background: #cfe0d5;
}

.settings-button:hover {
  background: #dfe8e2;
}

.settings-icon {
  background:
    radial-gradient(circle at center, #eef2ee 0 3px, var(--accent-dark) 4px 6px, transparent 7px),
    repeating-conic-gradient(var(--accent-dark) 0deg 18deg, transparent 18deg 36deg);
  border-radius: 50%;
  display: block;
  height: 16px;
  width: 16px;
}

.settings-panel {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
}

.settings-panel h3 {
  border-top: 0;
  margin: 0 0 2px;
  padding-top: 0;
}

.settings-field {
  display: grid;
  gap: 5px;
}

.settings-field span {
  color: var(--muted);
  font-size: 13px;
}

.settings-field input {
  min-width: 0;
  width: 100%;
}

.settings-field textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  min-height: 74px;
  padding: 10px 12px;
  resize: vertical;
  width: 100%;
}

.settings-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: auto auto auto auto;
  justify-content: start;
}

.compact-settings-actions {
  grid-template-columns: 1fr;
  justify-items: stretch;
  width: 220px;
}

.settings-actions button {
  font-size: 13px;
  min-height: 34px;
  padding: 7px 10px;
}

.assign-folder-field {
  background: #eef2ee;
  border: 1px solid #c7d0c9;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 8px 10px;
}

.assign-folder-heading,
.settings-field-heading {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.assign-folder-field span {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.auto-folder-action {
  background: transparent;
  border: 0;
  color: var(--accent-dark);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-style: italic;
  font-weight: 500;
  min-height: 0;
  padding: 0;
}

.auto-folder-action:hover {
  text-decoration: underline;
}

.assign-folder-field input {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  flex: initial;
  font-size: 12px;
  min-height: 22px;
  padding: 0;
  width: 100%;
}

.assign-folder-field:focus-within {
  outline: 2px solid #8bbda7;
  outline-offset: 2px;
}

.settings-toggle-field {
  align-items: center;
  background: #eef2ee;
  border: 1px solid #c7d0c9;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
}

.settings-toggle-field > span:first-child {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.toggle-switch {
  display: inline-flex;
  height: 22px;
  position: relative;
  width: 40px;
}

.toggle-switch input {
  flex: initial;
  height: 1px;
  margin: 0;
  min-height: 0;
  opacity: 0;
  padding: 0;
  position: absolute;
  width: 1px;
}

.toggle-slider {
  background: #c7d0c9;
  border-radius: 999px;
  cursor: pointer;
  inset: 0;
  position: absolute;
  transition: background 0.16s ease;
}

.toggle-slider::before {
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(23, 32, 27, 0.25);
  content: "";
  height: 18px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform 0.16s ease;
  width: 18px;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(18px);
}

.confirmation-modal {
  display: grid;
  gap: 16px;
}

.confirmation-modal p {
  line-height: 1.45;
  margin: 0;
}

.confirmation-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.secondary-button {
  background: #eef2ee;
  color: var(--accent-dark);
}

.secondary-button:hover {
  background: #dfe8e2;
}

.archive-button {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  text-align: center;
}

.archive-icon {
  border: 2px solid currentColor;
  border-top-width: 6px;
  display: inline-block;
  height: 16px;
  position: relative;
  width: 18px;
}

.archive-icon::before {
  background: currentColor;
  content: "";
  height: 2px;
  left: 4px;
  position: absolute;
  top: 3px;
  width: 6px;
}

.folder-path {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  overflow-wrap: anywhere;
}

.modal-backdrop {
  align-items: center;
  background: rgba(23, 32, 27, 0.28);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 10;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(23, 32, 27, 0.18);
  font-size: 13px;
  max-width: 520px;
  padding: 18px;
  width: min(100%, 520px);
}

#tracker-settings-panel .modal-panel {
  font-size: 12px;
}

.full-view-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(23, 32, 27, 0.18);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 18px;
  width: min(1200px, 100%);
}

.full-detail {
  border: 0;
  min-height: 0;
  padding: 0;
}

.full-detail-heading {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.full-detail-heading h2 {
  margin-top: 0;
}

.full-meta-grid {
  grid-template-columns: 120px minmax(0, 1fr);
}

.full-meta-grid dt,
.full-meta-grid dd {
  font-size: 13px;
}

.archive-item .review-grid {
  gap: 5px 10px;
  margin: 8px 0;
}

.archive-item .review-grid dt,
.archive-item .review-grid dd {
  font-size: 12px;
}

.compact-actions {
  margin: 8px 0 0;
}

.small-button {
  font-size: 12px;
  min-height: 30px;
  padding: 6px 9px;
}

.modal-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.modal-header h2 {
  margin: 0;
}

.settings-download {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.settings-download h3 {
  border-top: 1px solid var(--line);
  margin: 0;
}

.settings-download ol {
  color: var(--muted);
  margin: 0;
  padding-left: 20px;
}

.settings-download li + li {
  margin-top: 5px;
}

.notification-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-inline-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.global-setting-toggle {
  max-width: 340px;
}

.download-button {
  background: var(--accent);
  border-radius: 8px;
  color: #ffffff;
  display: inline-block;
  justify-self: start;
  padding: 10px 14px;
  text-decoration: none;
}

.download-button:hover {
  background: var(--accent-dark);
}

.notification-tray {
  bottom: 18px;
  display: grid;
  gap: 10px;
  max-width: min(380px, calc(100vw - 24px));
  position: fixed;
  right: 18px;
  z-index: 20;
}

.tracker-toast {
  background: #17201b;
  border: 1px solid #3a4940;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(23, 32, 27, 0.24);
  color: #ffffff;
  display: grid;
  gap: 4px;
  overflow-wrap: anywhere;
  padding: 12px 14px;
}

.tracker-toast-title {
  font-weight: 700;
  margin: 0;
}

.tracker-toast-body {
  color: #dbe5dd;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.requirements {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.requirement {
  align-items: start;
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 20px minmax(0, 1fr);
  padding: 10px;
}

.requirement input {
  min-height: 18px;
  margin-top: 2px;
}

.requirement p {
  margin: 0;
}

.requirement.completed {
  color: var(--muted);
  opacity: 0.68;
}

.requirement.completed p {
  text-decoration: line-through;
}

.requirement-source {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 5px;
}

@media (max-width: 700px) {
  body {
    font-size: 14px;
  }

  .topbar,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    gap: 12px;
    padding: 14px 16px;
  }

  .topbar-actions {
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 0;
  }

  .topbar-actions .status {
    min-width: 0;
    white-space: nowrap;
  }

  #health.status {
    flex: 0 0 34px;
    font-size: 0;
    gap: 0;
    height: 34px;
    justify-content: center;
    padding: 0;
    width: 34px;
  }

  #last-email-check.status {
    flex: 1 1 168px;
    font-size: 12px;
    justify-content: center;
    padding: 7px 8px;
  }

  .topbar-actions .refresh-button,
  .topbar-actions .topbar-settings {
    flex: 0 0 34px;
    height: 34px;
    width: 34px;
  }

  h1 {
    font-size: 22px;
  }

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

  .review-header,
  .review-item summary {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .compact-detail-grid,
  .add-date-form,
  .dates-grid,
  .upload-panel,
  .review-gap-row,
  .review-corrections,
  .objection-settings {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .compact-detail-tools {
    border-left: 0;
    border-top: 2px solid #ffffff;
    justify-items: start;
    padding-left: 0;
    padding-top: 12px;
  }

  .review-header {
    flex-direction: column;
  }

  .archive-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .archive-heading-row h2,
  .archive-heading-row .muted {
    font-size: 17px;
    margin: 0;
  }

  .layout {
    padding: 12px;
  }

  .notification-tray {
    bottom: 12px;
    left: 12px;
    max-width: none;
    right: 12px;
  }

  .page-tabs {
    gap: 3px;
    margin: 0 -12px 12px;
    padding: 0 12px;
  }

  .tab-button {
    border-radius: 7px 7px 0 0;
    font-size: 12px;
    min-height: 32px;
    padding: 7px 9px;
  }

  .archive-tab {
    margin-left: 0;
  }

  input,
  select {
    font-size: 14px;
    min-height: 38px;
    padding: 8px 10px;
  }

  select {
    flex-basis: auto;
  }

  button {
    font-size: 14px;
    min-height: 38px;
    padding: 8px 12px;
  }

  table {
    min-width: 760px;
  }

  body.mobile-compact-lists #overview-panel .mobile-sort-row {
    display: flex;
  }

  body.mobile-compact-lists :is(#overview-panel, #construction-panel, #appeals-panel) .table-shell {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow-x: visible;
  }

  body.mobile-compact-lists :is(#overview-panel, #construction-panel, #appeals-panel) table,
  body.mobile-compact-lists :is(#overview-panel, #construction-panel, #appeals-panel) tbody {
    display: block;
    min-width: 0;
    width: 100%;
  }

  body.mobile-compact-lists :is(#overview-panel, #construction-panel, #appeals-panel) thead {
    display: none;
  }

  body.mobile-compact-lists :is(#overview-panel, #construction-panel, #appeals-panel) tbody tr:not(.expanded-detail-row) {
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 7px 8px;
    grid-template-areas:
      "file file perit perit"
      "location location location location"
      "project project project project"
      "corr status deadline action";
    grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
    margin-bottom: 8px;
    padding: 9px;
  }

  body.mobile-compact-lists :is(#overview-panel, #construction-panel, #appeals-panel) tbody tr:not(.expanded-detail-row) td {
    border-bottom: 0;
    min-width: 0;
    padding: 0;
  }

  body.mobile-compact-lists :is(#overview-panel, #construction-panel, #appeals-panel) tbody tr:not(.expanded-detail-row) td:nth-child(1) {
    grid-area: file;
  }

  body.mobile-compact-lists :is(#overview-panel, #construction-panel, #appeals-panel) tbody tr:not(.expanded-detail-row) td:nth-child(2) {
    grid-area: perit;
    justify-self: end;
  }

  body.mobile-compact-lists :is(#overview-panel, #construction-panel, #appeals-panel) tbody tr:not(.expanded-detail-row) td:nth-child(3) {
    color: var(--ink);
    grid-area: location;
    line-height: 1.35;
  }

  body.mobile-compact-lists :is(#overview-panel, #construction-panel, #appeals-panel) tbody tr:not(.expanded-detail-row) td:nth-child(4) {
    color: var(--muted);
    grid-area: project;
    line-height: 1.35;
  }

  body.mobile-compact-lists :is(#overview-panel, #construction-panel, #appeals-panel) tbody tr:not(.expanded-detail-row) td:nth-child(5) {
    font-size: 11px;
    grid-area: status;
  }

  body.mobile-compact-lists :is(#overview-panel, #construction-panel, #appeals-panel) tbody tr:not(.expanded-detail-row) td:nth-child(6) {
    grid-area: corr;
  }

  body.mobile-compact-lists :is(#overview-panel, #construction-panel, #appeals-panel) tbody tr:not(.expanded-detail-row) td:nth-child(7) {
    font-size: 11px;
    grid-area: deadline;
    white-space: nowrap;
  }

  body.mobile-compact-lists :is(#overview-panel, #construction-panel, #appeals-panel) tbody tr:not(.expanded-detail-row) td:nth-child(8) {
    font-size: 11px;
    grid-area: action;
    line-height: 1.3;
  }

  body.mobile-compact-lists :is(#overview-panel, #construction-panel, #appeals-panel) .file-cell {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 7px;
  }

  body.mobile-compact-lists :is(#overview-panel, #construction-panel, #appeals-panel) .file-flags {
    order: -1;
  }

  body.mobile-compact-lists :is(#overview-panel, #construction-panel, #appeals-panel) .perit-cell {
    align-items: center;
    display: flex;
    gap: 6px;
    justify-content: flex-end;
  }

  body.mobile-compact-lists :is(#overview-panel, #construction-panel, #appeals-panel) .perit-number {
    font-size: 12px;
    white-space: nowrap;
  }

  body.mobile-compact-lists :is(#overview-panel, #construction-panel, #appeals-panel) .icon-row {
    align-items: center;
    display: flex;
    gap: 4px;
  }

  body.mobile-compact-lists :is(#overview-panel, #construction-panel, #appeals-panel) .folder-link {
    display: none;
  }

  body.mobile-compact-lists :is(#overview-panel, #construction-panel, #appeals-panel) .copy-button {
    height: 22px;
    width: 24px;
  }

  body.mobile-compact-lists :is(#overview-panel, #construction-panel, #appeals-panel) .document-button {
    height: 24px;
    width: 28px;
  }

  body.mobile-compact-lists :is(#overview-panel, #construction-panel, #appeals-panel) .expanded-detail-row {
    display: block;
    margin: -4px 0 10px;
  }

  body.mobile-compact-lists :is(#overview-panel, #construction-panel, #appeals-panel) .expanded-detail-row td {
    border-bottom: 0;
    display: block;
    padding: 0;
  }

  th,
  td {
    padding: 8px 9px;
  }

  th {
    font-size: 11px;
  }

  td {
    font-size: 12px;
  }

  .expanded-detail-row td {
    border-bottom-width: 8px;
  }

  .expanded-detail {
    border-left: 0;
    border-right: 0;
    padding: 10px;
    width: calc(100vw - 44px);
  }

  body.mobile-compact-lists :is(#overview-panel, #construction-panel, #appeals-panel) .expanded-detail {
    width: auto;
  }

  .detail-panel {
    min-height: 0;
  }

  .compact-detail-grid {
    gap: 10px;
  }

  .detail-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .detail-ref {
    font-size: 14px;
  }

  .meta-grid {
    gap: 5px 8px;
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .meta-grid dt,
  .meta-grid dd {
    font-size: 12px;
    line-height: 1.35;
  }

  h2 {
    font-size: 17px;
    margin: 10px 0;
  }

  h3 {
    font-size: 13px;
    margin: 10px 0 6px;
    padding-top: 9px;
  }

  .requirements {
    gap: 6px;
  }

  .requirement {
    gap: 8px;
    grid-template-columns: 18px minmax(0, 1fr);
    padding: 8px;
  }

  .requirement p {
    font-size: 12px;
    line-height: 1.35;
  }

  .requirement-source {
    font-size: 11px;
  }

  .folder-link,
  .document-button,
  .sync-button,
  .copy-button,
  .settings-button,
  .billing-button {
    height: 24px;
    width: 28px;
  }

  .priority-button,
  .file-billing-button {
    font-size: 16px;
  }

  .file-flags {
    gap: 6px;
  }

  body.mobile-compact-lists :is(#overview-panel, #construction-panel, #appeals-panel) .copy-button {
    height: 22px;
    width: 24px;
  }
}
