:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #243830;
  background: #f5f5ef;
  font-synthesis: none;
  --green: #174b3b;
  --muted: #63756c;
  --line: #dde3d9;
  --paper: #fffefa;
  --gold: #b18b43;
  --red: #a14035;
}
* {
  box-sizing: border-box;
}
.copy-notice {
  padding: 6px 12px;
  background: #edf1e8;
  color: #4a5b50;
  border-bottom: 1px solid #dce3d8;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--green);
  border-radius: 8px;
  padding: 9px 15px;
  line-height: 1.4;
  font-weight: 600;
}
button:hover {
  background: #eaf0e6;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
button.danger {
  color: var(--red);
}
button.link {
  border: 0;
  padding: 3px 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}
a {
  color: var(--green);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.25;
  margin-bottom: 8px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
  margin-bottom: 16px;
}
h3 {
  font-size: 16px;
  margin-bottom: 10px;
}
.muted,
small,
.help {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.help {
  font-size: 13px;
  margin: 6px 0 0;
}
input,
select,
textarea {
  border: 1px solid #cbd6cb;
  background: white;
  border-radius: 7px;
  padding: 10px 12px;
  min-width: 0;
  max-width: 100%;
  color: #21372d;
  width: 100%;
}
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #b9d9c7;
  outline-offset: 1px;
  border-color: var(--green);
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  vertical-align: middle;
  flex-shrink: 0;
}
label {
  display: block;
  font-weight: 550;
  font-size: 13px;
  margin-bottom: 6px;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
input[type="date"] {
  min-width: 0;
}
.shell {
  display: grid;
  grid-template-columns: 218px 1fr;
  min-height: 100vh;
}
.sidebar {
  padding: 30px 20px;
  background: #143e32;
  color: #e6ede4;
  position: fixed;
  inset: 0 auto 0 0;
  width: 218px;
  display: flex;
  flex-direction: column;
}
.wordmark {
  font-size: 24px;
  letter-spacing: 2px;
  font-weight: 750;
  color: #fff;
}
.brand-sub {
  font-size: 12px;
  color: #b5c8b7;
  margin: 1px 0 38px;
  letter-spacing: 2px;
}
.side-label {
  font-size: 10px;
  color: #94b39e;
  letter-spacing: 2px;
  padding: 0 14px;
  margin-bottom: 10px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav button {
  border: 0;
  color: #c9d9ca;
  background: transparent;
  text-align: left;
  font-weight: 500;
  padding: 12px 14px;
  display: flex;
  gap: 13px;
  align-items: center;
}
.nav button.active {
  background: #315a45;
  color: #fff;
}
.nav button:hover {
  background: #244f3d;
}
.nav-icon {
  font-size: 17px;
  width: 20px;
  text-align: center;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid #3b5949;
  padding-top: 18px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.avatar {
  width: 33px;
  height: 33px;
  background: #c4d3b8;
  color: var(--green);
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
}
.sidebar-foot small {
  color: #bad0bc;
}
.logout {
  margin-left: auto !important;
  color: #c9d9ca;
  border: 0;
  background: transparent;
  padding: 5px;
}
.main {
  grid-column: 2;
  padding: 28px 40px 50px;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
}
.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 25px;
  font-size: 12px;
  gap: 12px;
}
.topline .eyebrow {
  letter-spacing: 2px;
  color: var(--muted);
}
.env {
  background: #eee8d8;
  color: #7b6331;
  padding: 4px 9px;
  border-radius: 4px;
  white-space: nowrap;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 7px 0 25px;
}
.page-head p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.page-head .right {
  display: flex;
  gap: 9px;
  align-items: center;
}
.day-date {
  width: 150px !important;
  background: transparent;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}
.quick-action {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  border-color: #d8e0d2;
  background: #fffefa;
  box-shadow: 0 2px 0 #e8ecdf;
}
.quick-action .symbol {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eaf0e3;
  font-size: 22px;
  font-weight: 400;
  flex-shrink: 0;
}
.quick-action strong {
  font-size: 16px;
  display: block;
}
.quick-action small {
  font-weight: 400;
  display: block;
  margin-top: 2px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 25px;
}
.metric {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 20px 24px;
  border-radius: 0;
  font-weight: 400;
  position: relative;
}
.metric + .metric:before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  border-left: 1px solid var(--line);
}
.metric-label {
  font-size: 12px;
  color: var(--muted);
}
.metric strong {
  display: block;
  font-size: 32px;
  line-height: 1.7;
  font-weight: 650;
  letter-spacing: -1px;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.metric small {
  font-size: 11px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}
.section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.section-head {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.section-head h2 {
  margin: 0;
  font-size: 16px;
}
.section-body {
  padding: 18px 22px;
}
.section-body p:last-child {
  margin-bottom: 0;
}
.report-row {
  display: flex;
  gap: 13px;
  padding: 17px 21px;
  border-bottom: 1px solid #e9ede4;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.report-row:last-child {
  border: 0;
}
.report-row:hover {
  background: #f2f6ec;
}
.report-symbol {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #edf1e6;
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 15px;
  flex-shrink: 0;
}
.report-main {
  flex: 1;
  min-width: 0;
}
.report-title {
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.report-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.report-end {
  text-align: right;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 650;
}
.badge {
  display: inline-block;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  background: #e9efe2;
  color: #45653e;
  font-weight: 500;
  line-height: 1.7;
}
.badge.amber {
  background: #f3ebd6;
  color: #866929;
}
.badge.red {
  background: #f7e7df;
  color: #95483a;
}
.empty {
  padding: 30px 22px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.empty strong {
  color: #304d3c;
  display: block;
  font-size: 15px;
  margin-bottom: 5px;
}
.notice {
  padding: 13px 17px;
  border-left: 3px solid #bba66c;
  background: #f1eddf;
  font-size: 13px;
  color: #675c3b;
  border-radius: 0 6px 6px 0;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.notice.error {
  border-color: var(--red);
  color: var(--red);
  background: #faeee8;
}
.notice button {
  margin: 7px 7px 0 0;
}
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filters input {
  max-width: 260px;
}
.filters select {
  width: auto;
  min-width: 120px;
}
.table-wrap {
  overflow: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}
.data-table th {
  text-align: left;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  background: #eff2e9;
  padding: 12px 18px;
}
.data-table td {
  padding: 14px 18px;
  border-top: 1px solid #e5eadf;
}
.data-table tbody tr {
  cursor: pointer;
}
.data-table tbody tr:hover {
  background: #f0f5e8;
}
.pager {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  font-size: 12px;
}
.work-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.work-item p {
  margin: 5px 0;
  font-size: 13px;
}
.work-item .actions {
  margin-top: 8px;
}
.login {
  max-width: 400px;
  margin: 10vh auto;
  padding: 35px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.login .wordmark {
  color: var(--green);
  font-size: 28px;
}
.login h1 {
  font-size: 23px;
  margin: 30px 0 8px;
}
.login label {
  margin-top: 17px;
}
.login button {
  width: 100%;
  margin-top: 23px;
}
.login small {
  display: block;
  margin-top: 17px;
}
.login .error {
  color: var(--red);
  margin-top: 12px;
}
dialog {
  border: 0;
  padding: 0;
  color: inherit;
  background: var(--paper);
  box-shadow: 0 20px 90px #0c2e3a44;
  border-radius: 13px;
  max-height: 92dvh;
  width: min(830px, calc(100% - 32px));
  max-width: 100%;
}
dialog::backdrop {
  background: #102c2370;
  backdrop-filter: blur(2px);
}
.dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 19px 25px;
  gap: 15px;
}
.dialog-head h2 {
  margin: 0;
  font-size: 20px;
}
.dialog-head .subtitle {
  font-size: 12px;
  color: var(--muted);
}
.close {
  font-size: 23px;
  font-weight: 400;
  border: 0;
  background: transparent;
  padding: 0 5px;
  line-height: 1.5;
}
.dialog-body {
  padding: 23px 25px;
}
.dialog-foot {
  position: sticky;
  bottom: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 14px 25px;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 2;
}
.dialog-foot .primary {
  margin-left: auto;
}
.form-section {
  padding-bottom: 23px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.form-section:last-child {
  border: 0;
  margin-bottom: 0;
}
.form-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.step {
  width: 23px;
  height: 23px;
  background: #e5ecde;
  border-radius: 50%;
  font-size: 11px;
  display: grid;
  place-items: center;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.field {
  margin-bottom: 15px;
}
.check {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
}
.check label {
  margin: 0;
}
.check-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.participant {
  display: grid;
  grid-template-columns: 1fr 85px 105px 30px;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
  font-size: 13px;
}
.participant small {
  display: block;
}
.participant input {
  font-size: 13px;
}
.participant button {
  padding: 4px;
  border: 0;
}
.participant select {
  padding: 9px 5px;
  font-size: 12px;
}
.form-note {
  font-size: 12px;
  color: var(--muted);
  background: #eff3e9;
  padding: 10px 12px;
  border-radius: 5px;
  margin-bottom: 15px;
}
.money {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.4px;
}
.amount-input {
  font-size: 25px;
  letter-spacing: -0.7px;
}
.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.pill {
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 12px;
}
.detail-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.detail-fields {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  font-size: 13px;
  margin: 15px 0;
}
.detail-fields dt {
  color: var(--muted);
}
.detail-fields dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.history {
  border-left: 2px solid #d5dfca;
  margin: 15px 0 0 6px;
  padding-left: 18px;
}
.history-item {
  position: relative;
  margin-bottom: 20px;
  font-size: 13px;
}
.history-item:before {
  content: "";
  position: absolute;
  left: -23px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #85a373;
}
.history-item details {
  margin-top: 5px;
}
.raw {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  background: #eef2e8;
  padding: 12px;
  border-radius: 5px;
}
.picker-search {
  position: sticky;
  top: 70px;
  background: var(--paper);
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  z-index: 1;
}
.picker-list {
  max-height: 50vh;
  overflow: auto;
  padding: 0 20px;
}
.picker-item {
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 2px;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}
.picker-item small {
  display: block;
}
.picker-item input {
  width: 20px;
}
.attachments {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.attachment {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 8px 12px;
  max-width: 100%;
  font-size: 12px;
  overflow-wrap: anywhere;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #153c30;
  color: white;
  border-radius: 7px;
  padding: 12px 22px;
  z-index: 20;
  box-shadow: 0 5px 25px #10291b33;
  display: none;
  font-size: 13px;
  max-width: 85vw;
}
.offline {
  background: #f4e3d4;
  border-bottom: 1px solid #cfb48b;
  text-align: center;
  padding: 8px;
  font-size: 12px;
}
.loading {
  padding: 40px;
  color: var(--muted);
}
.roster-name {
  font-weight: 650;
}
.pending-bar {
  padding: 12px;
  background: #f4ebd4;
  font-size: 13px;
  position: sticky;
  top: 70px;
  z-index: 3;
}
.draft-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.no-wrap {
  white-space: nowrap;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.spaced {
  justify-content: space-between;
}
.mb {
  margin-bottom: 18px;
}
@media (min-width: 1500px) {
  .main {
    padding-left: 60px;
    padding-right: 60px;
  }
}
@media (max-width: 1100px) {
  .main {
    padding: 25px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .metrics .metric {
    padding: 17px;
  }
  .quick-action {
    padding: 16px;
    gap: 10px;
  }
  .quick-action small {
    font-size: 11px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    width: 100%;
    padding: 18px 20px 12px;
    display: block;
  }
  .wordmark {
    font-size: 21px;
  }
  .brand-sub {
    display: none;
  }
  .side-label {
    display: none;
  }
  .sidebar-foot {
    position: absolute;
    right: 16px;
    top: 16px;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .sidebar-foot .avatar {
    width: 29px;
    height: 29px;
  }
  .sidebar-foot .user-name {
    font-size: 12px;
  }
  .sidebar-foot small {
    display: none;
  }
  .nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
    margin: 16px -8px 0;
    scrollbar-width: none;
  }
  .nav button {
    font-size: 12px;
    padding: 8px 11px;
    gap: 5px;
    white-space: nowrap;
  }
  .nav-icon {
    font-size: 14px;
    width: 15px;
  }
  .main {
    padding: 18px 16px 35px;
  }
  .topline {
    padding-bottom: 18px;
    font-size: 10px;
  }
  .env {
    font-size: 10px;
  }
  .page-head {
    margin: 4px 0 20px;
    align-items: start;
  }
  h1 {
    font-size: 25px;
  }
  .page-head .right {
    flex-direction: column;
    align-items: end;
    gap: 8px;
  }
  .page-head p {
    font-size: 12px;
    max-width: 210px;
  }
  .day-date {
    width: 140px !important;
    padding: 7px;
  }
  .quick-actions {
    gap: 7px;
    margin-bottom: 18px;
  }
  .quick-action {
    padding: 13px 9px;
    display: block;
    border-radius: 8px;
  }
  .quick-action .symbol {
    width: 30px;
    height: 30px;
    font-size: 18px;
    margin-bottom: 8px;
    border-radius: 7px;
  }
  .quick-action strong {
    font-size: 13px;
  }
  .quick-action small {
    font-size: 10px;
    margin-top: 3px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 18px;
  }
  .metric {
    padding: 13px 16px !important;
  }
  .metric strong {
    font-size: 27px;
  }
  .metric + .metric:before {
    top: 16px;
    bottom: 16px;
  }
  .metric:nth-child(3) {
    border-top: 1px solid var(--line);
  }
  .metric:nth-child(4) {
    border-top: 1px solid var(--line);
  }
  .metric:nth-child(3):before {
    display: none;
  }
  .metric-label {
    font-size: 11px;
  }
  .dashboard-grid {
    gap: 18px;
  }
  .dashboard-aside {
    display: block;
  }
  .dashboard-aside .section {
    margin-bottom: 18px;
  }
  .section-head {
    padding: 15px 16px;
  }
  .section-body {
    padding: 16px;
  }
  .report-row {
    padding: 15px;
    gap: 10px;
  }
  .report-title {
    font-size: 13px;
  }
  .report-end {
    font-size: 12px;
  }
  .report-meta {
    font-size: 11px;
    gap: 5px;
  }
  .section-head h2 {
    font-size: 15px;
  }
  .grid3 {
    grid-template-columns: 1fr 1fr;
  }
  .grid2 {
    gap: 12px;
  }
  .filters {
    gap: 7px;
  }
  .filters input {
    max-width: none;
    flex: 1;
    min-width: 130px;
  }
  .filters select {
    font-size: 12px;
    min-width: 100px;
  }
  .filters button {
    font-size: 12px;
  }
  .notice {
    font-size: 12px;
  }
  .dialog-body {
    padding: 18px 17px;
  }
  .dialog-head {
    padding: 15px 17px;
  }
  .dialog-foot {
    padding: 12px 17px;
  }
  .dialog-head h2 {
    font-size: 18px;
  }
  dialog {
    width: calc(100% - 16px);
    max-height: 96dvh;
    border-radius: 10px;
  }
  .participant {
    grid-template-columns: minmax(75px, 1fr) 64px 78px 22px;
    gap: 4px;
  }
  .participant select {
    font-size: 11px;
    padding: 8px 2px;
  }
  .participant input {
    font-size: 12px;
    padding: 8px;
  }
  .grid2 .field {
    min-width: 0;
  }
  .detail-fields {
    grid-template-columns: 85px 1fr;
    font-size: 12px;
  }
  .login {
    margin: 7vh 18px;
    padding: 26px;
  }
  .page-head .actions {
    justify-content: flex-end;
  }
  .form-section {
    padding-bottom: 16px;
    margin-bottom: 16px;
  }
  #toast {
    bottom: 20px;
    font-size: 12px;
  }
  .data-table td,
  .data-table th {
    padding: 12px;
  }
  .pending-bar {
    top: 61px;
  }
  .picker-search {
    top: 61px;
  }
  .sidebar .logout {
    font-size: 11px;
  }
  .metric small {
    font-size: 10px;
  }
  .quick-action .symbol {
    font-family: Georgia, serif;
  }
}

.field label input,
.field label select,
.field label textarea {
  display: block;
  margin-top: 6px;
}

.business-details {
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf7;
  overflow: hidden;
}
.business-details > summary {
  padding: 11px 13px;
  cursor: pointer;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  list-style-position: inside;
}
.details-body {
  padding: 13px;
  border-top: 1px solid var(--line);
}
.business-person {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 13px;
  background: #fffefa;
}
.business-person > .row {
  margin-bottom: 12px;
}
.business-person .grid2 {
  gap: 12px;
}
.template-import textarea {
  min-height: 140px;
}
.identity-control {
  margin: 12px 0;
  min-width: 0;
}
.identity-control label {
  display: block;
}
.identity-control input {
  display: block;
  width: 100%;
  margin-top: 6px;
}
.identity-matches,
.identity-selected {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 8px;
  background: #f4f7ed;
}
.identity-selected small,
.identity-candidate small {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.identity-candidate {
  display: block;
  width: 100%;
  text-align: left;
  margin: 8px 0;
  background: white;
  white-space: normal;
}
.identity-matches .pill-row {
  margin-top: 12px;
}
.attendance-block {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.attendance-block h3 {
  margin: 0 0 15px;
}
.attendance-block .row h3 {
  margin-bottom: 0;
}
.attendance-block > .row {
  margin-bottom: 15px;
}
.class-identifiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  margin: 12px 0 6px;
  background: #f4f5ef;
  border-radius: 8px;
}
.class-identifiers small,
.class-identifiers strong {
  display: block;
  overflow-wrap: anywhere;
}
.class-attendance-summary {
  padding: 16px;
  margin-top: 16px;
  border: 1px solid #d6e2c2;
  background: #f4f8ed;
  border-radius: 10px;
}
.attendance-total strong {
  font-size: 30px;
  margin: 0 8px;
  color: var(--green);
}
.attendance-countline {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
  font-size: 13px;
}
.registered-attendee {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  flex-wrap: wrap;
}
.registered-attendee .row-main {
  flex: 1;
  min-width: 140px;
}
.registered-attendee small {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.other-participation-row {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) 110px 95px;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.picker-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  margin: 10px 0;
}
.picker-group legend {
  color: var(--green);
  font-size: 13px;
}
.picker-item:has(input:disabled) {
  opacity: 0.65;
}
@media (max-width: 500px) {
  .other-participation-row {
    grid-template-columns: 1fr 1fr;
  }
  .other-participation-row > strong {
    grid-column: 1 / -1;
  }
  .class-identifiers {
    grid-template-columns: 1fr;
  }
  .identity-matches .pill-row > button {
    flex: 1 1 100%;
  }
}
.template-import .form-note {
  margin-top: 12px;
}
@media (max-width: 500px) {
  .business-person {
    padding: 10px;
  }
  .details-body {
    padding: 10px;
  }
  .business-details > summary {
    font-size: 12px;
  }
  .business-person .grid2 {
    grid-template-columns: 1fr;
  }
}
/* Field reconciliation keeps each source visible, including on narrow screens. */
.alignment-table {
  min-width: 780px;
}
#editor:has(.alignment-table) {
  width: min(1080px, 95vw);
}
@media (max-width: 680px) {
  .alignment-table,
  .alignment-table tbody,
  .alignment-table tr,
  .alignment-table td {
    display: block;
    min-width: 0;
    width: auto;
  }
  .alignment-table thead {
    display: none;
  }
  .alignment-table tr {
    padding: 12px 0;
    border-bottom: 1px solid #dce3dc;
  }
  .alignment-table td {
    padding: 6px 12px;
    border: 0;
  }
  .alignment-table td::before {
    display: block;
    font-size: 12px;
    color: #66736c;
    margin-bottom: 4px;
  }
  .alignment-table td:nth-child(1)::before {
    content: "字段";
  }
  .alignment-table td:nth-child(2)::before {
    content: "上次基准";
  }
  .alignment-table td:nth-child(3)::before {
    content: "平台当前采用值";
  }
  .alignment-table td:nth-child(4)::before {
    content: "SaaS 最新值";
  }
  .alignment-table td:nth-child(5)::before {
    content: "判断 / 操作";
  }
}
.alignment-table td {
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}
.alignment-table .pill-row {
  flex-wrap: wrap;
  gap: 4px;
}
.source-snapshot {
  margin: 12px 0;
}
.source-values {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(0, 3fr);
  gap: 8px 16px;
  overflow-wrap: anywhere;
}
.source-values dt {
  color: var(--muted, #66736c);
}
.source-values dd {
  margin: 0;
  white-space: pre-wrap;
}
#source-import-form textarea {
  min-height: 180px;
}
#source-preview {
  margin-top: 16px;
}

.entry-main {
  width: min(100%, 1000px);
  margin: 0 auto;
  padding: 24px 20px 48px;
}
.entry-main .wordmark {
  color: var(--green);
}
.entry-main > nav {
  margin: 18px 0 28px;
}
.entry-main .page-head {
  margin-top: 26px;
}
