:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-2: #f0f4f1;
  --ink: #202623;
  --muted: #66706b;
  --line: #d9dfd8;
  --green: #1f7a5a;
  --green-2: #dff1e9;
  --gold: #b86e18;
  --gold-2: #fff1d9;
  --red: #bc3d32;
  --red-2: #fee4df;
  --blue: #2f6f9f;
  --blue-2: #deedf7;
  --purple: #7257a5;
  --purple-2: #ece6f7;
  --shadow: 0 18px 50px rgba(32, 38, 35, 0.08);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-screen {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: #17211d;
}

.login-panel {
  width: min(460px, 100%);
  padding: 22px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-brand {
  padding: 0 0 18px;
  border-bottom-color: var(--line);
  color: var(--ink);
}

.login-brand small {
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

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

.side-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 16px;
  background: #17211d;
  color: #eef5f1;
}

.brand-block {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 0 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-block strong,
.brand-block small {
  display: block;
}

.brand-block small {
  margin-top: 3px;
  color: rgba(238, 245, 241, 0.68);
}

.nav-tabs {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.nav-tab {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(238, 245, 241, 0.76);
  text-align: left;
}

.nav-tab svg,
.button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.nav-tab.active,
.nav-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.workspace {
  min-width: 0;
  padding: 24px;
}

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

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

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

h2 {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 15px;
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-block {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
}

.month-control {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

.month-control input {
  width: 135px;
  border: 0;
  color: var(--ink);
  background: transparent;
}

.button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
}

.button.secondary {
  background: var(--ink);
}

.button.ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button.warning {
  background: var(--gold);
}

.button.danger {
  background: var(--red);
}

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

.profile-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.cols-2 {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

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

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel.pad {
  padding: 16px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.panel-body {
  padding: 16px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric {
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metric .label {
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.metric small {
  color: var(--muted);
}

.score-strip {
  display: grid;
  gap: 10px;
}

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

.score-bar {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 10px;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #85a844);
}

.score-bar b {
  text-align: right;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge.green {
  background: var(--green-2);
  color: var(--green);
}

.badge.gold {
  background: var(--gold-2);
  color: var(--gold);
}

.badge.red {
  background: var(--red-2);
  color: var(--red);
}

.badge.blue {
  background: var(--blue-2);
  color: var(--blue);
}

.badge.purple {
  background: var(--purple-2);
  color: var(--purple);
}

.flow {
  display: grid;
  gap: 8px;
}

.flow-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 46px;
}

.step-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

.flow-step.done .step-dot {
  background: var(--green);
  color: #fff;
}

.flow-step.current .step-dot {
  background: var(--gold);
  color: #fff;
}

.table-wrap {
  width: 100%;
  overflow: auto;
}

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

.result-table {
  min-width: 1500px;
}

.result-table th,
.result-table td {
  min-width: 64px;
  word-break: normal;
}

.result-table th:nth-child(3),
.result-table td:nth-child(3) {
  min-width: 180px;
}

.result-table th:nth-child(12),
.result-table td:nth-child(12) {
  min-width: 210px;
}

.result-table th:nth-child(13),
.result-table td:nth-child(13),
.result-table th:nth-child(14),
.result-table td:nth-child(14) {
  min-width: 240px;
}

td input,
td select {
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

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

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  background: #fbfcfb;
}

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

.muted-row td {
  background: #f7f8f6;
  color: var(--muted);
}

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

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

.compact-form .button {
  grid-column: 1 / -1;
}

.click-row {
  cursor: pointer;
}

.click-row:hover td,
.selected-row td {
  background: #f0f4f1;
}

.selected-row td:first-child {
  box-shadow: inset 4px 0 0 var(--green);
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.field > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.field select[multiple] {
  min-height: 112px;
}

.field textarea {
  min-height: 86px;
  resize: vertical;
}

.switch-field {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.switch-field input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.switch-field span {
  color: var(--ink);
  font-size: 14px;
}

.reviewer-checkbox-grid {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.reviewer-choice {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  cursor: pointer;
}

.reviewer-choice:hover,
.reviewer-choice:has(input:checked) {
  border-color: rgba(31, 122, 90, 0.45);
  background: var(--green-2);
}

.reviewer-choice input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.reviewer-choice span {
  min-width: 0;
}

.reviewer-choice strong,
.reviewer-choice small {
  display: block;
}

.reviewer-choice strong {
  font-size: 14px;
  line-height: 1.25;
}

.reviewer-choice small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.source-picker {
  display: grid;
  gap: 8px;
  max-height: 430px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.source-choice {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--ink);
  line-height: 1.45;
  cursor: pointer;
}

.source-choice-main {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  cursor: pointer;
}

.source-choice:hover {
  border-color: rgba(31, 122, 90, 0.35);
  background: var(--green-2);
}

.source-choice:has(input:checked) {
  border-color: rgba(31, 122, 90, 0.45);
  background: var(--green-2);
}

.source-choice input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.source-fact-field {
  display: none;
  gap: 6px;
  margin-left: 30px;
}

.source-choice:has(input:checked) .source-fact-field {
  display: grid;
}

.source-fact-field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.source-fact-field textarea {
  width: 100%;
  min-height: 72px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  resize: vertical;
}

.source-fact-field input[type="number"] {
  width: 140px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.source-actions {
  display: flex;
  justify-content: flex-end;
}

.source-choice span {
  min-width: 0;
}

.rule-meta {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.rule-meta b,
.rule-meta em {
  display: inline-block;
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  font-style: normal;
}

.rule-meta b {
  background: var(--gold-2);
  color: var(--gold);
}

.rule-meta em {
  background: var(--blue-2);
  color: var(--blue);
}

.dimension-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.score-input-row {
  display: grid;
  grid-template-columns: auto minmax(96px, 140px) auto;
  gap: 8px;
  align-items: center;
}

.score-input-row input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
}

.field-hint {
  color: var(--muted);
  line-height: 1.5;
}

.dimension-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.calc-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: #202623;
  color: #fff;
}

.calc-box small {
  color: rgba(255, 255, 255, 0.68);
}

.calc-score {
  font-size: 36px;
  line-height: 1;
  font-weight: 900;
}

.deduction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.deduction-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.deduction-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.basis-block {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.basis-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.chip-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.basis-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.hook-line {
  display: block;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--gold-2);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.result-hero {
  display: grid;
  gap: 10px;
}

.result-hero h3 {
  font-size: 17px;
}

.result-hero strong {
  font-size: 48px;
  line-height: 1;
}

.fact-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.fact-list.compact {
  margin-top: 10px;
}

.fact-list p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
}

.fact-list small {
  color: var(--muted);
}

.review-detail-list,
.appeal-item-list,
.appeal-record-list,
.feedback-list {
  display: grid;
  gap: 10px;
}

.review-detail-card,
.appeal-record {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.review-detail-card p,
.appeal-record p,
.appeal-item p,
.feedback-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.dimension-head small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.appeal-item {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.appeal-form,
.appeal-feedback-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.appeal-form textarea,
.appeal-feedback-form textarea {
  width: 100%;
  min-height: 72px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
}

.appeal-feedback-form select,
.appeal-feedback-form input {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.appeal-record .appeal-feedback-form {
  grid-template-columns: minmax(140px, 0.35fr) minmax(0, 1fr) auto;
}

.feedback-list {
  padding: 10px;
  border-radius: 8px;
  background: var(--surface-2);
}

.bonus-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: #fbfcfb;
}

.bonus-form {
  display: grid;
  gap: 12px;
}

.bonus-picker {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.bonus-choice {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.bonus-choice:hover,
.bonus-choice:has(input:checked) {
  border-color: rgba(31, 122, 90, 0.45);
  background: var(--green-2);
}

.bonus-choice-main {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  cursor: pointer;
}

.bonus-choice-main input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.bonus-detail-field {
  display: none;
  grid-template-columns: minmax(96px, 140px) minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-left: 30px;
}

.bonus-choice:has(input:checked) .bonus-detail-field {
  display: grid;
}

.bonus-detail-field textarea {
  min-height: 72px;
}

.text-button {
  display: inline-flex;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--red);
  font-weight: 800;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  overflow: auto;
  padding-bottom: 6px;
}

.status-card {
  min-height: 112px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.status-card strong {
  display: block;
  margin: 8px 0 6px;
}

.status-card small {
  color: var(--muted);
}

.empty {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

#toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
    height: auto;
    min-width: 0;
    max-width: 100vw;
    overflow: hidden;
  }

  .nav-tabs {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
  }

  .topbar,
  .grid.cols-2 {
    grid-template-columns: 1fr;
    display: grid;
  }

  .metric-row,
  .grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .workspace {
    padding: 16px;
  }

  .metric-row,
  .grid.cols-3,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .top-actions {
    justify-content: stretch;
    min-width: 0;
    max-width: 100%;
  }

  .button,
  .month-control {
    width: 100%;
  }

  .user-block {
    width: 100%;
    justify-content: space-between;
    min-width: 0;
  }

  .user-block .button {
    width: auto;
  }

  .score-bar {
    grid-template-columns: 88px minmax(0, 1fr) 52px;
  }

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

  .score-input-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .bonus-form {
    grid-template-columns: 1fr;
  }

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

  .appeal-form,
  .appeal-feedback-form {
    grid-template-columns: 1fr;
  }
}

/* 2026 operations workspace — system fusion edition */
:root {
  --bg: #eef1ed;
  --surface-2: #f5f7f4;
  --ink: #1d2923;
  --muted: #6d7771;
  --line: #dfe4df;
  --green: #257252;
  --green-2: #e2f0e8;
  --gold: #a96a1f;
  --gold-2: #fff3df;
  --shadow: 0 10px 28px rgba(23, 43, 33, 0.045);
}

body {
  background: var(--bg);
  letter-spacing: 0.005em;
}

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

.side-nav {
  display: flex;
  flex-direction: column;
  padding: 20px 14px 16px;
  background: #14271e;
}

.brand-block {
  gap: 11px;
  min-height: 62px;
  padding: 0 7px 20px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: #f3c44f;
  color: #17271f;
  font-family: Georgia, "Songti SC", serif;
  font-size: 22px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.brand-block strong {
  font-size: 15px;
  letter-spacing: 0.04em;
}

.brand-block small {
  margin-top: 5px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.nav-tabs {
  gap: 5px;
  margin-top: 20px;
}

.nav-tab {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 46px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.nav-tab strong {
  font-size: 13px;
  font-weight: 650;
}

.nav-tab .nav-code {
  color: rgba(238, 245, 241, 0.38);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.nav-tab em {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f3c44f;
  color: #243329;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.nav-tab.active,
.nav-tab:hover {
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.095);
}

.nav-tab.active .nav-code {
  color: #f3c44f;
}

.policy-card {
  margin-top: auto;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
}

.policy-card small,
.policy-card strong {
  display: block;
}

.policy-card small {
  color: rgba(238, 245, 241, 0.48);
  font-size: 10px;
}

.policy-card strong {
  margin-top: 5px;
  color: #f4f7f5;
  font-size: 11px;
}

.policy-card p {
  margin: 9px 0 0;
  color: rgba(238, 245, 241, 0.56);
  font-size: 10px;
  line-height: 1.55;
}

.workspace {
  padding: 24px 26px 34px;
}

.topbar {
  align-items: center;
  min-height: 72px;
  margin-bottom: 20px;
}

.eyebrow,
.section-kicker {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1 {
  margin-top: 3px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 27px;
  letter-spacing: 0.02em;
}

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

.user-block {
  gap: 9px;
}

.user-avatar,
.person-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green-2);
  color: var(--green);
  font-family: Georgia, "Songti SC", serif;
  font-size: 14px;
  font-weight: 900;
}

.person-avatar.large {
  width: 42px;
  height: 42px;
  font-size: 17px;
}

.user-copy small,
.user-copy strong {
  display: block;
}

.user-copy small {
  color: var(--muted);
  font-size: 9px;
}

.user-copy strong {
  margin-top: 2px;
  font-size: 12px;
}

.month-control,
.button,
.field input,
.field select,
.field textarea {
  border-radius: 7px;
}

.panel,
.metric {
  border-color: var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.panel-head {
  min-height: 58px;
  padding: 10px 15px;
}

.panel-head h2 {
  margin: 3px 0 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 16px;
}

.button.compact {
  min-height: 32px;
  padding: 0 10px;
  font-size: 11px;
}

.badge {
  min-height: 22px;
  padding: 0 7px;
  font-size: 10px;
}

.operations-metrics {
  gap: 10px;
  margin-bottom: 11px;
}

.operations-metrics .metric {
  min-height: 104px;
  padding: 15px;
  background: #fff;
  box-shadow: none;
}

.metric.green {
  border-top: 3px solid var(--green);
}

.metric.gold {
  border-top: 3px solid #d39a4c;
}

.operations-metrics .metric strong {
  margin: 9px 0 5px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 28px;
}

.operations-metrics .metric small {
  font-size: 10px;
}

.operations-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(285px, 0.72fr);
  gap: 11px;
  margin-bottom: 11px;
}

.review-board,
.flow-panel,
.risk-list {
  overflow: hidden;
}

.review-board-head,
.review-board-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.5fr) 1fr 1.15fr 0.9fr 92px;
  align-items: center;
  gap: 11px;
  padding: 0 14px;
}

.review-board-head {
  min-height: 36px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.review-board-row {
  width: 100%;
  min-height: 62px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
  transition: background 150ms ease, padding 150ms ease;
}

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

.review-board-row:hover {
  padding-left: 18px;
  background: #f7faf7;
}

.board-person {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.board-person strong,
.board-person small {
  display: block;
}

.board-person strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-person small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lowest-note {
  margin-left: 5px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
}

.flow-list {
  padding: 6px 14px 4px;
}

.flow-list > div {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  position: relative;
}

.flow-list > div > span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  z-index: 1;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.flow-list > div.done > span {
  background: var(--green);
  color: #fff;
}

.flow-list > div.current > span {
  background: #e0a548;
  color: #fff;
  box-shadow: 0 0 0 5px var(--gold-2);
}

.flow-list strong,
.flow-list small {
  display: block;
}

.flow-list strong {
  font-size: 11px;
}

.flow-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.flow-list em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.wide-link {
  width: calc(100% - 28px);
  min-height: 35px;
  margin: 5px 14px 14px;
  border: 0;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.wide-link:hover {
  background: var(--green-2);
}

.operations-bottom-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 11px;
  margin-bottom: 16px;
}

.formula-panel {
  padding: 18px;
  background: #17271f;
  color: #fff;
}

.formula-panel > span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
}

.formula-panel h2 {
  margin: 7px 0 8px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 17px;
}

.formula-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  line-height: 1.65;
}

.risk-list > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 51px;
  padding: 0 15px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.risk-list > button:last-child {
  border-bottom: 0;
}

.risk-list > button:hover {
  background: var(--gold-2);
}

.risk-list button strong {
  font-size: 11px;
}

.risk-list button small {
  color: var(--gold);
  font-size: 9px;
}

.result-details {
  overflow: hidden;
}

.result-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 15px;
  cursor: pointer;
  list-style: none;
}

.result-details summary small,
.result-details summary strong {
  display: block;
}

.result-details summary small {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.result-details summary strong {
  margin-top: 3px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 16px;
}

.library-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.library-tools select,
.library-tools input {
  min-height: 35px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 10px;
}

.library-tools input {
  width: 220px;
}

.deduction-card {
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.deduction-card:hover {
  border-color: #b9d9c9;
  box-shadow: 0 9px 20px rgba(23, 43, 33, 0.06);
  transform: translateY(-1px);
}

.deduction-card.is-hidden {
  display: none;
}

/* Three-column scoring workspace */
.scoring-layout {
  display: grid;
  grid-template-columns: 235px minmax(500px, 1fr) 300px;
  gap: 11px;
  align-items: start;
}

.task-queue,
.score-workbench,
.score-context > .panel {
  overflow: hidden;
}

.queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.queue-head span,
.queue-head strong {
  display: block;
}

.queue-head div > span {
  color: var(--muted);
  font-size: 9px;
}

.queue-head strong {
  margin-top: 4px;
  font-size: 12px;
}

.queue-select {
  padding: 9px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.queue-select label {
  font-size: 9px;
}

.queue-select select {
  min-height: 34px;
  font-size: 10px;
}

.queue-list {
  max-height: 690px;
  overflow-y: auto;
  padding: 6px;
}

.queue-list > button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 61px;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.queue-list > button:hover {
  background: var(--surface-2);
}

.queue-list > button.active {
  border-color: #b9d9c9;
  background: var(--green-2);
}

.queue-list strong,
.queue-list small {
  display: block;
}

.queue-list strong {
  font-size: 11px;
}

.queue-list small {
  max-width: 115px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-list .badge {
  min-height: 20px;
  padding: 0 6px;
  font-size: 8px;
}

.score-person-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
}

.dimension-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 5px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.dimension-tabs button {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.dimension-tabs button:hover {
  background: #fff;
}

.dimension-tabs button.active {
  border-color: #b9d9c9;
  background: #fff;
  color: var(--green);
}

.dimension-tabs span {
  font-size: 10px;
  font-weight: 800;
}

.dimension-tabs strong {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-family: Georgia, "Songti SC", serif;
  font-size: 21px;
}

.dimension-tabs small {
  font-size: 9px;
}

.score-form {
  display: block;
}

.simple-score-section,
.simple-evidence-section {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.simple-score-intro {
  margin: -2px 0 13px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

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

.score-level-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 82px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.score-level-card:hover,
.score-level-card.selected {
  border-color: rgba(31, 122, 90, 0.5);
  background: var(--green-2);
}

.score-level-card:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.68;
}

.score-level-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.score-level-value {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
  font-family: Georgia, "Songti SC", serif;
  font-size: 17px;
  font-weight: 900;
}

.score-level-value.green { background: var(--green-2); color: var(--green); }
.score-level-value.blue { background: var(--blue-2); color: var(--blue); }
.score-level-value.gold { background: var(--gold-2); color: var(--gold); }
.score-level-value.red { background: var(--red-2); color: var(--red); }

.score-level-card strong,
.score-level-card small {
  display: block;
}

.score-level-card strong {
  font-size: 12px;
}

.score-level-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.simple-evidence-section.is-hidden {
  display: none;
}

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

.simple-evidence-grid label {
  display: grid;
  gap: 6px;
}

.simple-evidence-grid label > span {
  font-size: 11px;
  font-weight: 800;
}

.simple-evidence-grid textarea {
  min-height: 92px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  resize: vertical;
  font-size: 11px;
  line-height: 1.55;
}

.score-reference-card {
  overflow: hidden;
}

.score-reference-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.score-reference-card summary::-webkit-details-marker {
  display: none;
}

.score-reference-card summary small,
.score-reference-card summary strong {
  display: block;
}

.score-reference-card summary small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
}

.score-reference-card summary strong {
  font-size: 12px;
}

.score-reference-card summary svg {
  width: 17px;
  transition: transform 150ms ease;
}

.score-reference-card[open] summary svg {
  transform: rotate(180deg);
}

.score-reference-card > div {
  padding: 0 14px 14px;
  border-top: 1px solid var(--line);
}

.score-reference-card > div p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.score-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--line);
  background: var(--gold-2);
}

.score-notice p {
  margin: 0;
  color: var(--gold);
  font-size: 10px;
}

.score-summary-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 102px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.score-number {
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  column-gap: 7px;
}

.score-number > span,
.score-number p {
  grid-column: 1 / -1;
}

.score-number > span {
  color: var(--muted);
  font-size: 10px;
}

.score-number > strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: 36px;
  line-height: 1;
}

.score-number > small {
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
}

.score-number p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.score-rule {
  min-width: 175px;
  padding: 11px 13px;
  border-radius: 8px;
  background: var(--surface-2);
  text-align: right;
}

.score-rule span,
.score-rule strong,
.score-rule small {
  display: block;
}

.score-rule span,
.score-rule small {
  color: var(--muted);
  font-size: 9px;
}

.score-rule strong {
  margin: 5px 0;
  color: var(--green);
  font-size: 15px;
}

.score-record-section {
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.section-head h2 {
  margin: 3px 0 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 15px;
}

.score-record-section .source-picker {
  max-height: 430px;
  padding: 7px;
  border-radius: 7px;
  background: var(--surface-2);
}

.score-record-section .source-choice {
  background: #fff;
}

.score-comment {
  display: grid;
  gap: 6px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
}

.score-comment > span {
  font-size: 11px;
  font-weight: 800;
}

.score-comment textarea {
  min-height: 82px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  resize: vertical;
  font-size: 11px;
  line-height: 1.55;
}

.score-comment textarea:focus {
  border-color: var(--green);
  outline: 0;
}

.score-comment small {
  color: var(--muted);
  font-size: 9px;
  text-align: right;
}

.score-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 68px;
  padding: 10px 15px;
}

.score-footer > div {
  margin-right: auto;
}

.score-footer > div span,
.score-footer > div strong {
  display: block;
}

.score-footer > div span {
  color: var(--muted);
  font-size: 9px;
}

.score-footer > div strong {
  margin-top: 2px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 24px;
}

.privacy-note {
  color: var(--muted);
  font-size: 9px;
}

.score-context {
  display: grid;
  gap: 11px;
}

.score-context > .panel {
  padding: 14px;
}

.context-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  font-size: 11px;
  font-weight: 800;
}

.context-card p,
.score-context .panel.pad > p,
.score-context li {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.62;
}

.score-context h2 {
  font-family: Georgia, "Songti SC", serif;
  font-size: 15px;
}

.score-context .basis-list {
  font-size: 10px;
}

.score-context .badge {
  white-space: normal;
}

.low-rule-card {
  background: #17271f;
  color: #fff;
}

.low-rule-card span,
.low-rule-card strong {
  display: block;
}

.low-rule-card > span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
}

.low-rule-card strong {
  margin: 7px 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 21px;
}

.low-rule-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  line-height: 1.6;
}

.empty-state {
  display: grid;
  justify-items: center;
  max-width: 560px;
  margin: 80px auto;
  padding: 42px;
  text-align: center;
}

/* Employee archive and workflow */
.organization-bar {
  margin-bottom: 11px;
}

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

.organization-form .table-wrap,
.organization-form .top-actions {
  grid-column: 1 / -1;
}

.people-admin-grid {
  display: grid;
  grid-template-columns: minmax(430px, 0.9fr) minmax(540px, 1.1fr);
  gap: 11px;
  align-items: start;
}

.people-list-panel,
.profile-panel {
  overflow: hidden;
}

.people-list-panel .compact-form {
  grid-template-columns: 1fr 1fr;
}

.user-create-panel {
  display: grid;
  gap: 14px;
}

.user-batch-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.user-batch-copy strong,
.user-batch-copy small {
  display: block;
}

.user-batch-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

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

.user-batch-actions .button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 11px;
}

.people-list-panel table {
  min-width: 720px;
}

.profile-panel > .form-grid {
  gap: 11px;
}

.deadline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 62px;
  margin-bottom: 11px;
  padding: 10px 14px;
}

.deadline-bar > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.deadline-bar > div > span:not(.badge) {
  color: var(--muted);
  font-size: 10px;
}

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

.workflow-board article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 320px;
  padding: 18px;
}

.workflow-board article.active {
  border-color: #d9b474;
  background: var(--gold-2);
}

.workflow-step {
  color: #dfe4df;
  font-family: Georgia, serif;
  font-size: 37px;
  font-weight: 900;
  line-height: 1;
}

.workflow-board article.active .workflow-step {
  color: #e8c58e;
}

.workflow-board .badge {
  margin-top: 20px;
}

.workflow-board h2 {
  margin: 12px 0 8px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 18px;
}

.workflow-board article > strong {
  font-size: 11px;
}

.workflow-board p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.workflow-board footer {
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.workflow-deadline-panel {
  margin-top: 11px;
}

@media (max-width: 1320px) {
  .app-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .scoring-layout {
    grid-template-columns: 220px minmax(460px, 1fr);
  }

  .score-context {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .people-admin-grid {
    grid-template-columns: minmax(390px, 0.9fr) minmax(470px, 1.1fr);
  }
}

@media (max-width: 1020px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
    height: auto;
  }

  .policy-card {
    display: none;
  }

  .nav-tabs {
    display: flex;
  }

  .nav-tab {
    min-width: 132px;
  }

  .operations-overview-grid,
  .operations-bottom-grid,
  .people-admin-grid,
  .scoring-layout {
    grid-template-columns: 1fr;
  }

  .task-queue {
    max-height: 420px;
  }

  .score-context {
    grid-column: auto;
  }

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

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

@media (max-width: 680px) {
  .workspace {
    padding: 15px;
  }

  .topbar,
  .deadline-bar,
  .score-summary-block,
  .score-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions,
  .user-block {
    width: 100%;
  }

  .review-board {
    overflow-x: auto;
  }

  .review-board-head,
  .review-board-row {
    min-width: 760px;
  }

  .score-rule {
    min-width: 0;
    text-align: left;
  }

  .privacy-note {
    margin-right: auto;
  }

  .score-context,
  .workflow-board,
  .organization-form {
    grid-template-columns: 1fr;
  }

  .score-level-grid,
  .simple-evidence-grid {
    grid-template-columns: 1fr;
  }

  .user-batch-tools,
  .user-batch-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .organization-form .table-wrap,
  .organization-form .top-actions {
    grid-column: auto;
  }
}
