:root {
  font-family:
    Inter,
    'Microsoft YaHei UI',
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: #183528;
  background: #f4f6f4;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f4f6f4;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.governance {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 30px 18px;
  border-right: 1px solid #dfe7e1;
  background: #fff;
}

.brand {
  display: grid;
  gap: 4px;
  padding: 0 14px 28px;
}

.brand strong {
  color: #185b3d;
  font-size: 28px;
  letter-spacing: 0.08em;
}

.brand span {
  color: #718077;
  font-size: 13px;
}

.nav-item {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  padding: 13px 14px;
  border-radius: 10px;
  color: #56675d;
  font-weight: 700;
}

.nav-item.active {
  color: #185b3d;
  background: #eaf3ed;
}

.sidebar-note {
  margin: auto 14px 0;
  color: #7b8981;
  font-size: 12px;
  line-height: 1.65;
}

.workspace {
  min-width: 0;
}

.page-header {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 30px 20px;
  border-bottom: 1px solid #dfe7e1;
  background: #fff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.page-header h1 {
  margin-bottom: 6px;
  font-size: 28px;
}

.page-header p {
  margin-bottom: 0;
  color: #66776d;
  font-size: 14px;
}

.reviewer {
  display: flex;
  gap: 9px;
  align-items: center;
  white-space: nowrap;
  font-weight: 700;
}

.reviewer-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #edf2ef;
}

.filters {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 14px 30px;
  border-bottom: 1px solid #dfe7e1;
  background: #fff;
}

.filter-tab,
.refresh-button {
  margin: 0;
  padding: 9px 14px;
  border: 1px solid #d8e1db;
  border-radius: 8px;
  color: #4f6156;
  background: #fff;
  font-weight: 700;
}

.filter-tab.active {
  border-color: #cfe2d6;
  color: #185b3d;
  background: #eaf3ed;
}

.refresh-button {
  margin-left: auto;
}

.message {
  margin: 16px 30px 0;
  padding: 12px 16px;
  border-radius: 8px;
}

.error {
  border: 1px solid #efc8c2;
  color: #983829;
  background: #fff2f0;
}

.notice {
  border: 1px solid #cbe0d2;
  color: #185b3d;
  background: #edf7f0;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(280px, 350px) minmax(520px, 1fr);
  gap: 0;
  min-height: calc(100vh - 137px);
  margin: 20px 30px 40px;
  overflow: hidden;
  border: 1px solid #dfe7e1;
  border-radius: 12px;
  background: #fff;
}

.queue-panel {
  min-width: 0;
  border-right: 1px solid #dfe7e1;
  background: #fafbfa;
}

.queue-heading {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid #e3e9e5;
}

.queue-heading h2 {
  margin-bottom: 0;
  font-size: 16px;
}

.queue-heading span {
  color: #7b8981;
  font-size: 12px;
}

.queue-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.queue-card {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 14px;
  overflow: hidden;
  border: 1px solid #dfe7e1;
  border-radius: 10px;
  color: #183528;
  text-align: left;
  background: #fff;
}

.queue-card:hover,
.queue-card.active {
  border-color: #4c8b6b;
  box-shadow: 0 4px 16px rgb(33 88 59 / 8%);
}

.queue-card.active {
  background: #f2f8f4;
}

.queue-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.queue-arrow {
  color: #64756b;
  font-size: 20px;
}

.queue-card strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.queue-summary,
.queue-applicant {
  overflow: hidden;
  color: #67786e;
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kind-badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 6px;
  color: #246344;
  background: #e4f2e9;
  font-size: 12px;
  font-weight: 800;
}

.kind-entity_change {
  color: #8a5317;
  background: #fff0d5;
}

.kind-public_listing {
  color: #255fa0;
  background: #e5f0ff;
}

.review-detail {
  min-width: 0;
  padding: 18px;
}

.detail-heading {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #e3e9e5;
}

.detail-heading h2 {
  margin: 6px 0 2px;
  font-size: 24px;
}

.detail-heading p,
.application-id {
  margin-bottom: 0;
  color: #66776d;
  overflow-wrap: anywhere;
}

.application-id {
  max-width: 42%;
  font-size: 12px;
  text-align: right;
}

.fact-section {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #e0e7e2;
  border-radius: 10px;
}

.fact-section h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

dl {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 92px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
  overflow-wrap: anywhere;
}

dt {
  color: #718077;
}

dd {
  margin: 0;
}

.pending {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #e0b978;
  border-radius: 8px;
  color: #79501c;
  background: #fff8ea;
}

.pending button {
  flex: 0 0 auto;
  margin: 0;
  padding: 9px 12px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #8f641f;
}

.global-pending {
  margin: 16px 30px 0;
}

.review-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #dfe7e1;
}

.outcome-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.outcome-group legend,
.review-form > label {
  margin-bottom: 8px;
  padding: 0;
  font-weight: 800;
}

.outcome-group legend {
  grid-column: 1 / -1;
}

.outcome-option {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d5dfd8;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.outcome-option:has(input:checked) {
  border-color: #2b7651;
  color: #185b3d;
  background: #eef7f1;
}

.outcome-option input {
  accent-color: #1c6947;
}

textarea {
  min-height: 94px;
  padding: 12px;
  border: 1px solid #cbd8d0;
  border-radius: 8px;
  resize: vertical;
}

.primary-action {
  justify-self: end;
  min-width: 210px;
  margin: 0;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #236b49;
  font-weight: 800;
}

.empty,
.detail-empty {
  margin: 0;
  padding: 28px;
  color: #718077;
  text-align: center;
}

.detail-empty {
  align-self: center;
}

@media (max-width: 920px) {
  .governance {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    flex-direction: row;
    align-items: center;
    min-height: auto;
    padding: 12px 18px;
    border-right: 0;
    border-bottom: 1px solid #dfe7e1;
  }

  .brand {
    margin-right: auto;
    padding: 0;
  }

  .brand span,
  .sidebar-note,
  .nav-item:not(.active) {
    display: none;
  }

  .nav-item {
    margin: 0;
  }

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

  .queue-panel {
    border-right: 0;
    border-bottom: 1px solid #dfe7e1;
  }
}

@media (max-width: 640px) {
  .page-header,
  .filters {
    padding-right: 16px;
    padding-left: 16px;
  }

  .reviewer,
  .queue-heading span {
    display: none;
  }

  .filters {
    flex-wrap: wrap;
  }

  .refresh-button {
    margin-left: 0;
  }

  .workbench {
    margin: 14px 16px 28px;
  }

  .global-pending {
    margin-right: 16px;
    margin-left: 16px;
  }

  .review-detail {
    padding: 18px;
  }

  .detail-heading {
    display: block;
  }

  .application-id {
    display: block;
    max-width: none;
    margin-top: 12px;
    text-align: left;
  }

  dl,
  .outcome-group {
    grid-template-columns: 1fr;
  }

  dd {
    margin-bottom: 8px;
  }

  .pending {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action {
    justify-self: stretch;
  }
}
