:root {
  --brand: #17374a;
  --brand-hover: #102d3e;
  --ink: #171d24;
  --muted: #5f6c77;
  --line: #cbd7df;
  --soft-line: #e3e9ed;
  --surface: #f2f5f7;
  --selected: #e2ebf0;
  --danger: #a72732;
  --success: #236044;
  --warning: #795515;
  font:
    13px/1.6 -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}
a {
  color: var(--brand);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--brand-hover);
}
button,
input,
textarea {
  caret-color: var(--brand);
}
::selection {
  background: #d2e4ee;
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid #587f99;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 7px;
  font-weight: 650;
}
h2 {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 14px;
  font-weight: 600;
}
h3 {
  font-size: 15px;
  margin-bottom: 10px;
  font-weight: 600;
}
p {
  margin-bottom: 12px;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: #fff;
}
.skip-link:focus {
  top: 8px;
}
.topbar {
  height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 20px;
  background: #fff;
  position: relative;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  min-width: 0;
  line-height: 1.4;
}
.brand img {
  object-fit: contain;
  flex: 0 0 38px;
}
.brand-product {
  color: var(--muted);
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-size: 14px;
  font-weight: 400;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  min-width: 0;
}
.header-actions a {
  text-decoration: none;
}
.header-name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.initial-loading {
  min-height: calc(100dvh - 64px);
  display: grid;
  place-content: center;
  color: var(--muted);
}
.auth-stage {
  min-height: calc(100dvh - 64px);
  background: var(--surface);
  padding: 38px 20px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.auth-panel {
  width: min(430px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 28px;
}
.auth-panel.auth-wide {
  width: min(560px, 100%);
}
.auth-panel h1 {
  font-size: 20px;
  margin-bottom: 5px;
}
.auth-intro {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 13px;
}
.auth-footer {
  color: var(--muted);
  font-size: 12px;
  margin: 22px 0 0;
  text-align: center;
  max-width: 560px;
}
.tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.tab {
  padding: 10px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: var(--muted);
}
.tab[aria-selected="true"] {
  border-bottom-color: var(--brand);
  color: var(--brand);
  font-weight: 600;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
  min-width: 0;
}
.field > label {
  font-weight: 500;
  font-size: 13px;
}
.organization-locator details {
  position: relative;
  --locator-row-height: 36px;
}
.organization-locator summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid #71899a;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  list-style: none;
}
.organization-locator summary::-webkit-details-marker {
  display: none;
}
.organization-locator summary span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.organization-locator summary::after {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-right: 3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}
.organization-locator details[open] summary::after {
  transform: rotate(225deg);
}
.organization-menu-viewport {
  position: absolute;
  z-index: 8;
  top: calc(100% + 4px);
  left: 0;
  width: max-content;
  max-width: min(100%, calc(100vw - 32px));
  overflow-x: auto;
  overflow-y: hidden;
  --record-viewport-limit: 60vh;
  padding: 0;
  border: 1px solid #71899a;
  border-radius: 5px;
  background: #fff;
}
.organization-menu {
  display: flex;
  align-items: flex-start;
  width: max-content;
  font-size: 13px;
}
.organization-column-viewport {
  flex: 0 0 224px;
  width: 224px;
  max-width: calc(100vw - 56px);
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid var(--line);
}
.organization-column-viewport:last-child {
  border-right: 0;
}
.organization-menu [role="group"][hidden] {
  display: none;
}
.organization-menu [role="treeitem"] {
  outline-offset: -2px;
}
.organization-option-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--locator-row-height);
  padding: 6px 8px 6px 11px;
  line-height: 20px;
  cursor: pointer;
  transition:
    background-color 100ms ease-out,
    color 100ms ease-out;
}
.organization-option-label {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.organization-current {
  display: none;
  flex: none;
  font-size: 11px;
}
.organization-menu [aria-selected="true"] > .organization-option-row {
  background: var(--selected, #e2ebf0);
}
.organization-menu
  [aria-selected="true"]
  > .organization-option-row
  .organization-current {
  display: inline;
}
.organization-menu .is-active > .organization-option-row,
.organization-menu [aria-expanded="true"] > .organization-option-row {
  background: var(--brand);
  color: #fff;
}
.organization-expander {
  flex: none;
  align-self: stretch;
  width: 32px;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.organization-expander::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(-45deg);
}
.organization-expander[aria-expanded="true"]::after {
  transform: rotate(-45deg);
}
@media (prefers-reduced-motion: reduce) {
  .organization-option-row {
    transition: none;
  }
}
@media (max-width: 700px) {
  .organization-locator details {
    --locator-row-height: 44px;
  }
  .organization-locator summary {
    min-height: 44px;
  }
  .organization-expander {
    min-width: 44px;
    min-height: 44px;
  }
}
.required {
  color: var(--danger);
  margin-left: 3px;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 11px;
  background: #fff;
  border: 1px solid #71899a;
  border-radius: 5px;
  color: var(--ink);
  box-shadow: none;
}
input::placeholder,
textarea::placeholder {
  color: #6d7882;
  opacity: 1;
}
input:hover,
select:hover,
textarea:hover {
  border-color: #71899a;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
}
input[readonly] {
  background: var(--surface);
}
textarea {
  resize: vertical;
  min-height: 100px;
}
[aria-invalid="true"] {
  border-color: var(--danger) !important;
}
.field-hint,
.field-error {
  font-size: 12px;
  line-height: 1.5;
}
.field-hint {
  color: var(--muted);
}
.field-error {
  color: var(--danger);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.quantity-unit-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, 28%);
  gap: 12px;
  min-width: 0;
}
.quantity-unit-fields .field {
  min-width: 0;
}
.full-span {
  grid-column: 1 / -1;
}
.sms-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}
.sms-row .button {
  min-height: 40px;
  padding: 8px 12px;
  white-space: nowrap;
}
.button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 15px;
  border: 1px solid #aabac6;
  border-radius: 5px;
  background: #fff;
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  line-height: 1.45;
}
.button:hover {
  background: #edf2f5;
  border-color: #71899a;
  color: var(--brand);
}
.button.primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.button.primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}
.button.danger {
  color: var(--danger);
  border-color: #d4aeb2;
}
.button.danger:hover {
  background: #fcf0f1;
}
.button.small {
  font-size: 12px;
  min-height: 30px;
  padding: 5px 10px;
}
.button.block {
  width: 100%;
  margin-top: 5px;
  min-height: 42px;
}
.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: inherit;
}
.link-button:hover {
  color: #366b8a;
}
.claim-work-code {
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 19px;
  font-size: 13px;
}
.check-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 1px 0 17px;
  font-size: 12px;
}
.check-row input {
  margin: 4px 0 0;
  width: 15px;
  height: 15px;
  accent-color: var(--brand);
  flex: 0 0 15px;
}
.form-message {
  padding: 10px 12px;
  margin-bottom: 16px;
  border: 1px solid #d9b4b9;
  border-radius: 5px;
  background: #fdf3f4;
  color: #922331;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.form-message.success {
  color: var(--success);
  background: #f0f7f3;
  border-color: #b7d3c2;
}
.notice {
  padding: 12px 15px;
  background: #f1f5f8;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 13px;
  margin-bottom: 20px;
}
.notice p:last-child {
  margin-bottom: 0;
}
.invite-preview {
  color: var(--brand);
  overflow-wrap: anywhere;
  font-weight: 500;
}
.layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  min-height: calc(100dvh - 64px);
}
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-button {
  text-align: left;
  width: 100%;
  border: 0;
  background: transparent;
  color: #455563;
  border-radius: 5px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
}
.nav-button:hover {
  background: #e7edf1;
  color: var(--brand);
}
.nav-button[aria-current="page"] {
  color: var(--brand);
  background: #dfe9ef;
  font-weight: 600;
}
.nav-section {
  font-size: 12px;
  color: var(--muted);
  padding: 18px 14px 7px;
}
.side-bottom {
  margin-top: auto;
  padding: 40px 14px 0;
  color: var(--muted);
  font-size: 12px;
}
.side-bottom .link-button {
  font-size: 12px;
}
.main-content {
  padding: 22px 24px 30px;
  min-width: 0;
  max-width: 1700px;
  width: 100%;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.page-heading .button {
  flex-shrink: 0;
}
.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.toolbar input {
  width: 240px;
}
.toolbar select {
  width: 150px;
}
.toolbar input,
.toolbar select {
  min-height: 36px;
  height: 36px;
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 13px;
}
.toolbar .toolbar-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.section {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.section-heading h2 {
  margin: 0;
}
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
  line-height: 1.55;
}
th {
  background: #f2f5f7;
  color: #4d5b66;
  font-weight: 500;
  white-space: nowrap;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 10px 11px;
  vertical-align: top;
  border-bottom: 1px solid var(--soft-line);
  overflow-wrap: anywhere;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fafcfd;
}
.cell-title {
  font-weight: 550;
  color: var(--ink);
}
.cell-detail {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
  max-width: 38ch;
  white-space: pre-line;
}
.cell-detail.clamp {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.actions .link-button {
  font-size: 12px;
  min-height: 28px;
  white-space: nowrap;
}
.numeric {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.badge {
  font-size: 12px;
  line-height: 1.5;
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  background: #e9eef2;
  color: #4c5f6e;
  white-space: nowrap;
  font-weight: 400;
}
.badge.success {
  background: #e9f4ee;
  color: #236044;
}
.badge.warning {
  background: #faf1dc;
  color: #795515;
}
.badge.danger {
  background: #fbecef;
  color: #a72732;
}
.badge.blue {
  background: #e6eff6;
  color: #255477;
}
.count-badge {
  min-width: 20px;
  padding: 1px 5px;
  background: var(--brand);
  color: #fff;
  border-radius: 4px;
  font-size: 11px;
  text-align: center;
}
.empty {
  padding: 42px 22px;
  text-align: center;
  background: #fafcfd;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.empty h2 {
  font-size: 16px;
  margin-bottom: 7px;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}
.empty .button {
  margin-top: 17px;
}
.skeleton {
  border-radius: 4px;
  background: #e9eef1;
  min-height: 18px;
  margin-bottom: 14px;
}
.skeleton.line {
  width: 62%;
}
.skeleton.row {
  min-height: 55px;
}
.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 22px;
}
.summary-item {
  padding: 14px 18px;
  border-right: 1px solid var(--line);
}
.summary-item:last-child {
  border-right: 0;
}
.summary-label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 5px;
}
.summary-value {
  font-size: 24px;
  line-height: 1.5;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr);
  gap: 30px;
}
.definition-list {
  margin: 0;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  font-size: 13px;
}
.definition-list dt,
.definition-list dd {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--soft-line);
}
.definition-list dt {
  color: var(--muted);
}
.definition-list dd {
  overflow-wrap: anywhere;
}
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.plain-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--soft-line);
}
.plain-list p {
  margin-bottom: 4px;
}
.muted {
  color: var(--muted);
}
.small-text {
  font-size: 12px;
}
.quiet-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 13px;
}
.notification {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 17px;
  justify-content: space-between;
  align-items: flex-start;
}
.notification h2 {
  font-size: 15px;
  margin-bottom: 6px;
}
.notification p {
  color: #465561;
  font-size: 13px;
  white-space: pre-line;
  margin-bottom: 7px;
}
.notification .notification-meta {
  color: var(--muted);
  font-size: 12px;
}
.notification.read h2 {
  font-weight: 500;
  color: #53616d;
}
.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
}
.security-pane {
  min-width: 0;
}
.security-pane + .security-pane {
  border-left: 1px solid var(--line);
  padding-left: 34px;
}
.security-pane .field {
  max-width: 420px;
}
.menu-toggle {
  display: none;
}
dialog {
  width: min(540px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid #aebdc8;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 18px 60px rgba(16, 45, 62, 0.2);
}
dialog.wide {
  width: min(720px, calc(100% - 32px));
}
dialog::backdrop {
  background: rgba(18, 34, 44, 0.44);
}
.dialog-header {
  padding: 15px 20px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.dialog-header h2 {
  margin: 0;
  font-size: 16px;
}
.dialog-close {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  white-space: nowrap;
  font-size: 13px;
  padding: 7px 0 7px 12px;
  border: 0;
  background: #fff;
  color: var(--muted);
}
.dialog-body {
  padding: 18px 20px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 12px;
}
.dialog-description {
  white-space: pre-wrap;
  max-width: 70ch;
  overflow-wrap: anywhere;
}
.privacy-copy {
  font-size: 13px;
}
.privacy-copy h3 {
  margin-top: 21px;
}
.privacy-copy h3:first-child {
  margin-top: 0;
}
.privacy-copy p {
  color: #465561;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 36px);
  background: var(--brand);
  color: #fff;
  padding: 11px 20px;
  border-radius: 6px;
  z-index: 50;
  box-shadow: 0 5px 18px rgba(16, 45, 62, 0.17);
  font-size: 13px;
}
.noscript {
  padding: 20px;
  text-align: center;
  color: var(--danger);
}
@media (min-width: 1600px) {
  .main-content {
    padding-right: 50px;
    padding-left: 42px;
  }
}
@media (max-width: 1000px) {
  .topbar {
    padding: 0 20px;
  }
  .layout {
    grid-template-columns: 174px minmax(0, 1fr);
  }
  .sidebar {
    padding-right: 10px;
    padding-left: 10px;
  }
  .main-content {
    padding: 26px 22px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .security-grid {
    grid-template-columns: 1fr;
  }
  .security-pane + .security-pane {
    border-left: 0;
    padding: 25px 0 0;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 700px) {
  .topbar {
    padding: 0 15px;
    gap: 10px;
  }
  .brand {
    font-size: 14px;
    gap: 8px;
  }
  .brand img {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .brand-product {
    display: block;
    margin: 1px 0 0;
    padding: 0;
    border: 0;
    font-size: 11px;
  }
  .header-actions {
    gap: 10px;
    font-size: 12px;
  }
  .header-name {
    display: none;
  }
  .header-actions > a {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .layout {
    display: block;
  }
  .sidebar {
    position: absolute;
    top: 64px;
    left: 0;
    width: 220px;
    z-index: 9;
    min-height: calc(100dvh - 64px);
    box-shadow: 8px 8px 24px rgba(23, 55, 74, 0.12);
  }
  .sidebar:not(.open) {
    display: none;
  }
  .nav-button {
    min-height: 44px;
  }
  .main-content {
    padding: 24px 17px 32px;
  }
  h1 {
    font-size: 20px;
  }
  .page-heading {
    margin-bottom: 21px;
  }
  .page-heading .button {
    padding: 9px 11px;
    min-height: 40px;
  }
  .button,
  .button.small {
    min-height: 44px;
  }
  .link-button {
    min-height: 44px;
  }
  input:not([type="checkbox"]),
  select,
  .sms-row .button {
    min-height: 44px;
  }
  .auth-stage {
    padding: 24px 16px;
  }
  .auth-panel {
    padding: 25px 22px;
  }
  .auth-wide {
    margin: 0;
  }
  .auth-links .link-button {
    min-height: 44px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    gap: 9px;
  }
  .toolbar input {
    width: 100%;
    flex-basis: 100%;
    min-height: 42px;
  }
  .toolbar select {
    flex: 1;
    width: auto;
    min-height: 42px;
  }
  .toolbar .toolbar-count {
    flex-basis: 100%;
    margin: 2px 0 0;
  }
  .summary-strip {
    grid-template-columns: 1fr;
    margin-bottom: 24px;
  }
  .summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 17px;
  }
  .summary-item:last-child {
    border-bottom: 0;
  }
  .summary-label {
    margin-bottom: 0;
  }
  .summary-value {
    font-size: 22px;
  }
  .table-wrap {
    border: 0;
    border-radius: 0;
    overflow: visible;
  }
  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }
  thead {
    display: none;
  }
  tbody tr {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    margin-bottom: 12px;
  }
  tbody tr:hover {
    background: #fff;
  }
  td,
  tr:last-child td {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    padding: 6px 0;
    border: 0;
  }
  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
  }
  .actions {
    gap: 8px 15px;
  }
  .actions .link-button {
    min-height: 44px;
    min-width: 44px;
  }
  .notification {
    display: block;
  }
  .notification .button {
    margin-top: 5px;
  }
  .section-heading {
    align-items: flex-start;
  }
  .definition-list {
    grid-template-columns: 93px minmax(0, 1fr);
  }
  .dialog-header {
    padding: 16px 18px;
  }
  .dialog-body {
    padding: 20px 18px;
  }
  dialog {
    max-height: calc(100dvh - 24px);
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a,
  input,
  select,
  textarea {
    transition:
      background-color 0.15s,
      border-color 0.15s,
      color 0.15s;
  }
}

.organization-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.organization-workspace,
.organization-tree {
  min-width: 0;
}
.member-management-level {
  display: inline-block;
  min-width: 3em;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.member-primary-org,
.member-identity-region {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.member-identity-region {
  display: inline-block;
  max-width: 240px;
}
.member-residence-address {
  display: inline-block;
  max-width: 230px;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.member-select-table th,
.member-select-table td {
  padding: 8px;
}
.member-selection-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 0 0 10px;
}
.member-selection-toolbar .primary {
  margin-left: auto;
}
.selection-count {
  color: var(--ink);
  font-size: 13px;
}
.selection-hint {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 12px;
}
.member-select-control {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}
.member-select-control input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}
.member-select-table th:first-child,
.member-select-table td:first-child {
  width: 44px;
  padding: 4px 6px;
  text-align: center;
}
.member-select-table tbody tr.is-selected {
  background: var(--selected);
}
.collection-category-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.collection-category-switch [aria-pressed="true"] {
  color: var(--brand);
  background: var(--selected);
  border-color: var(--brand);
  font-weight: 600;
}
.collection-category-fields {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.collection-category-fields legend {
  padding: 0 4px;
  font-size: 13px;
}
.collection-category-fields .check-row {
  min-height: 44px;
  margin: 0;
}
.member-collection-categories {
  display: inline-block;
  min-width: 72px;
  max-width: 150px;
  overflow-wrap: anywhere;
}
.collection-invite-category {
  color: var(--brand);
  font-weight: 600;
}
.member-filter-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  padding: 3px 5px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  white-space: nowrap;
}
.member-filter-trigger::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}
.member-filter-trigger:hover,
.member-filter-trigger.is-active {
  background: var(--selected);
  color: var(--brand);
}
.member-filter-trigger.is-active {
  font-weight: 600;
}
.member-filter-toolbar {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.member-filter-toolbar.is-fallback {
  display: flex;
}
.member-filter-toolbar .member-filter-trigger {
  border: 1px solid var(--line);
  padding-inline: 10px;
}
.member-filter-status {
  margin: 0 0 10px;
  font-size: 12px;
}
.member-filter-pane {
  position: fixed;
  inset: auto;
  width: min(320px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid #71899a;
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
}
.member-filter-pane h3 {
  font-size: 14px;
  margin-bottom: 12px;
}
.member-filter-pane .dialog-actions {
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}
.member-filter-pane .button {
  padding-inline: 10px;
}
.member-region-pane {
  width: 594px;
  max-width: calc(100vw - 24px);
}
.member-region-cascade {
  display: flex;
  align-items: flex-start;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior: contain;
}
.member-region-group {
  flex: 0 0 188px;
  width: 188px;
  min-width: 0;
  border-right: 1px solid var(--soft-line);
}
.member-region-group > h4 {
  margin: 0;
  padding: 0 8px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.member-region-group > .table-viewport {
  --record-viewport-limit: 48vh;
}
.member-region-column {
  list-style: none;
  margin: 0;
  padding: 0;
}
.member-region-column > li {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--soft-line);
}
.member-region-choice,
.member-region-expand {
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.member-region-choice {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.member-region-expand {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
}
.member-region-expand::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.member-region-column > .is-active {
  background: var(--selected);
}
.member-region-choice:focus-visible,
.member-region-expand:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}
.member-row-actions {
  display: flex;
  justify-content: center;
}
.member-action-trigger {
  min-height: 44px;
  min-width: 60px;
  padding-inline: 12px;
  white-space: nowrap;
}
.member-action-pane {
  position: fixed;
  inset: auto;
  width: 176px;
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px);
  overflow: hidden;
  margin: 0;
  padding: 4px;
  border: 1px solid #71899a;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}
.member-action-pane .table-viewport {
  --record-viewport-limit: 65vh;
}
.member-action-items .link-button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  text-align: left;
  font-size: 13px;
}
.member-action-items .link-button:hover,
.member-action-items .link-button:focus-visible {
  background: var(--selected);
}
@media (min-width: 701px) {
  .member-select-table th,
  .member-select-table td {
    text-align: center;
    vertical-align: middle;
  }
  .member-select-table .cell-detail {
    margin-inline: auto;
  }
  .member-select-table .actions {
    justify-content: center;
  }
}
@media (max-width: 700px) {
  .member-filter-toolbar:not(.is-fallback) {
    display: none;
  }
  .member-filter-trigger {
    min-height: 44px;
  }
  .member-selection-list .table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
  }
  .member-select-table {
    display: table;
    min-width: 1100px;
  }
  .member-select-table thead {
    display: table-header-group;
  }
  .member-select-table tbody {
    display: table-row-group;
  }
  .member-select-table tr {
    display: table-row;
    width: auto;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .member-select-table tbody td {
    display: table-cell;
    width: auto;
    padding: 8px;
    vertical-align: middle;
  }
  .member-select-table td::before {
    display: none;
  }
}
.bulk-member-summary {
  padding-left: 22px;
  font-size: 12px;
  color: var(--muted);
}
.bulk-member-summary li {
  overflow-wrap: anywhere;
}
.member-count,
.toolbar .toolbar-count.member-count {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}
.management-level-directory {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.management-level-directory > summary {
  cursor: pointer;
  color: var(--brand);
  min-height: 44px;
  align-content: center;
  font-weight: 600;
}
.management-catalog-fields {
  border: 0;
  min-width: 0;
  padding: 0;
  margin: 0;
}
.management-scope-fields {
  min-width: 0;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.management-scope-tree,
.management-scope-tree ul {
  list-style: none;
  padding-left: 12px;
  margin: 0;
}
.management-scope-tree .check-row {
  min-height: 44px;
  margin: 0;
  padding: 6px 0;
}
.management-scope-tree label {
  overflow-wrap: anywhere;
}
.management-level-confirmation:not(:empty) {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.member-birthday {
  white-space: nowrap;
}
.dialect-region-fields {
  min-width: 0;
  margin: 18px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.dialect-region-fields legend {
  padding: 0 5px;
  font-weight: 600;
}
.dialect-region-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.dialect-region-grid .field {
  min-width: 0;
  margin-bottom: 8px;
}
.dialect-region-source {
  margin: 4px 0 0;
}
.dialect-region-feedback p {
  margin-bottom: 8px;
}
.member-dialect-region {
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .dialect-region-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.notification-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid transparent;
  border-radius: 5px;
  background: #fff;
  color: var(--brand);
}
.notification-trigger:hover {
  background: var(--selected);
}
.notification-trigger .count-badge {
  position: absolute;
  top: -3px;
  right: -5px;
  font-size: 10px;
  line-height: 1.6;
}
.notification-trigger[data-refresh-error] {
  border-color: var(--danger);
}
.deletion-toolbar .field {
  min-width: 160px;
  margin-bottom: 0;
}
.deletion-toolbar {
  align-items: flex-end;
}
.deletion-reason,
.deletion-account {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  max-width: 46ch;
}
.deletion-account {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.review-reason {
  margin: 8px 0;
  font-size: 13px;
}
.organization-tree {
  padding: 16px 12px;
  max-height: min(650px, 70vh);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.organization-tree h2 {
  font-size: 14px;
  margin-bottom: 12px;
}
.organization-tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.organization-tree ul ul {
  margin-left: 9px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}
.org-tree-branch summary {
  cursor: pointer;
  padding: 8px 2px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.org-tree-branch summary:focus-visible {
  outline: 3px solid #587f99;
  outline-offset: 2px;
}
.org-tree-entry {
  margin: 0 0 4px;
}
.org-tree-select {
  width: 100%;
  min-height: 34px;
  text-align: left;
  padding: 6px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--brand);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.org-tree-select:hover {
  background: var(--selected);
}
.org-tree-select[aria-current="location"] {
  background: var(--selected);
  font-weight: 600;
}
.organization-breadcrumbs {
  margin-bottom: 18px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.organization-breadcrumbs ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.organization-breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--muted);
}
.organization-heading {
  flex-wrap: wrap;
  align-items: flex-start;
}
.organization-heading > div:first-child {
  flex: 1 1 260px;
  min-width: 0;
}
.organization-heading h2 {
  margin-bottom: 4px;
}
.organization-heading p {
  margin-bottom: 0;
}
.organization-maintenance {
  flex: 0 1 auto;
  max-width: 100%;
  font-size: 13px;
}
.organization-maintenance summary {
  width: fit-content;
  min-height: 44px;
  padding: 10px 0;
  color: var(--brand);
  cursor: pointer;
}
.organization-maintenance[open] .actions {
  padding: 4px 0 12px;
}
.member-section-heading {
  flex-wrap: wrap;
}
.member-heading-controls {
  gap: 12px;
  justify-content: flex-end;
}
.workspace-panel-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 16px;
  margin-bottom: 12px;
}
.workspace-invitation-scope {
  flex: 1 1 240px;
  margin: 0;
  overflow-wrap: anywhere;
}
.organization-children {
  margin-top: 0;
}
.organization-children .actions,
.team-invitations td .actions {
  flex-wrap: nowrap;
}
.team-invitations td:nth-child(3),
.team-invitations td:nth-child(4) {
  white-space: nowrap;
}
.job-title-manager {
  padding-top: 12px;
  margin-bottom: 18px;
  border-top: 1px solid var(--line);
}
.job-title-manager summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--brand);
  margin-bottom: 14px;
}
.job-title-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.job-title-confirm {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.authorization-note {
  margin-top: 8px;
}
.table-viewport {
  overflow-y: scroll;
  max-height: 70vh;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) var(--surface);
  overscroll-behavior: contain;
}
.table-viewport::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.table-viewport::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 4px;
}
.table-viewport::-webkit-scrollbar-track {
  background: var(--surface);
}
dialog .table-viewport {
  --record-viewport-limit: 35vh;
}
.workspace-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: 12px 0;
}
.workspace-tab {
  padding: 8px 14px;
  min-height: 44px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.workspace-tab[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 600;
}
.team-workspace [role="tabpanel"][hidden] {
  display: none;
}
.team-workspace [role="tabpanel"] > .section {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.recent-activities li {
  padding: 6px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 16px;
  line-height: 1.45;
}
.recent-activities p {
  flex: 1 1 240px;
  margin: 0;
}
.recent-activities .small-text {
  font-size: 11px;
  white-space: nowrap;
}
.invite-organization-picker .organization-tree {
  max-height: 280px;
  overflow-y: auto;
}
.table-viewport thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
}
@media (max-width: 1100px) {
  .organization-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .organization-tree {
    max-height: 300px;
    overflow: auto;
  }
}
@media (max-width: 700px) {
  .org-tree-select,
  .org-tree-branch summary {
    min-height: 44px;
  }
  .organization-heading .actions {
    width: 100%;
  }
  .organization-heading .actions .button {
    flex: 1 1 auto;
  }
  .organization-breadcrumbs li {
    max-width: 100%;
  }
  .job-title-actions .button {
    flex: 1 1 auto;
  }
}
.message-fields {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.message-recipient {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.message-recipient input {
  width: 16px;
  height: 16px;
  flex: none;
}
.message-recipient .cell-detail {
  display: block;
}
.message-preview,
.notification p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.scene-filters {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(120px, 0.8fr) minmax(
      200px,
      1.4fr
    );
  gap: 0 12px;
  margin-bottom: 12px;
}
.scene-region-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 12px;
  min-width: 0;
}
.scene-filters > .scene-region-fields {
  grid-column: 1 / -1;
}
.scene-filter-actions {
  grid-column: 1 / -1;
}
.scene-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
}
.scene-address {
  max-width: 40ch;
  overflow-wrap: anywhere;
}
.scene-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.scene-media-grid figure {
  min-width: 0;
  margin: 0;
}
.scene-media-grid img,
.scene-media-grid video {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  background: var(--surface);
}
.scene-media-grid figcaption {
  margin-top: 5px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.scene-actions {
  flex-wrap: wrap;
}
.scene-recovery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.scene-recovery p {
  flex-basis: 100%;
  margin-bottom: 0;
}
.scene-upload-progress {
  margin-top: 12px;
}
.scene-capability .field-hint {
  display: block;
  margin-top: 3px;
  font-weight: 400;
}
@media (max-width: 700px) {
  .scene-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .scene-filters > .field:nth-child(3) {
    grid-column: 1 / -1;
  }
  .scene-region-fields {
    gap: 0 8px;
  }
  .scene-pagination {
    justify-content: space-between;
    gap: 8px;
  }
  .scene-media-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Dense reading without extra cards; consent stays in document flow. */
.scene-collection-history {
  display: block;
  max-width: 32ch;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.equipment-issue-page {
  min-width: 0;
}
.auth-panel.equipment-recipient {
  width: min(920px, 100%);
  max-width: 920px;
}
.equipment-issue-photo {
  margin-top: 12px;
}
.agreement-copy {
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.agreement-number {
  text-align: right;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.agreement-copy > h2 {
  text-align: center;
  font-size: 18px;
}
.agreement-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.retained-agreement + .retained-agreement {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
@media print {
  @page {
    size: A4;
    margin: 16mm;
    @bottom-center {
      content: "第 " counter(page) " 页";
      font-size: 10px;
      color: #536471;
    }
  }
  body.printing-agreement {
    background: #fff;
  }
  body.printing-agreement > :not(#dialog) {
    display: none !important;
  }
  body.printing-agreement #dialog {
    position: static !important;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }
  body.printing-agreement #dialog::backdrop {
    display: none;
  }
  body.printing-agreement #dialog .dialog-header,
  body.printing-agreement .retained-agreement:not(.agreement-print-target),
  body.printing-agreement .agreement-tools,
  body.printing-agreement .retained-agreement > [role] {
    display: none !important;
  }
  body.printing-agreement #dialog .dialog-body {
    padding: 0;
    height: auto;
    max-height: none;
    overflow: visible;
  }
  body.printing-agreement .retained-agreement {
    padding: 0;
    margin: 0;
    border: 0;
  }
  body.printing-agreement .agreement-copy {
    font-size: 13px;
    color: #152e3e;
  }
  body.printing-agreement .agreement-copy h2,
  body.printing-agreement .agreement-copy h3,
  body.printing-agreement .agreement-copy h4 {
    break-after: avoid;
  }
  body.printing-agreement .agreement-signatures,
  body.printing-agreement .agreement-photo {
    break-inside: avoid;
  }
  body.printing-agreement .agreement-signatures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.agreement-copy p {
  margin-bottom: 8px;
}
.agreement-copy section + section {
  margin-top: 16px;
}
.agreement-copy h3 {
  margin-bottom: 6px;
  font-size: 14px;
}
.agreement-important {
  color: var(--ink);
  font-weight: 600;
}
.agreement-parties {
  display: grid;
  grid-template-columns: minmax(5em, 9em) minmax(0, 1fr);
  gap: 4px 12px;
  margin: 12px 0 18px;
}
.agreement-parties dt {
  color: var(--muted);
}
.agreement-parties dd {
  margin: 0;
}
.agreement-signatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin-top: 20px;
}
.agreement-seal {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: contain;
}
.agreement-finish {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.action-fields {
  min-width: 0;
  margin: 12px 0;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.action-fields legend {
  padding: 0 8px 0 0;
  font-size: 13px;
  font-weight: 650;
}
.action-fields .form-grid {
  gap: 8px 14px;
}
.action-fields .check-row {
  align-items: flex-start;
  margin: 9px 0;
  font-size: 12px;
}
.action-fields .check-row input {
  margin-top: 3px;
  flex: 0 0 auto;
}
.action-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.equipment-unit {
  min-width: 0;
  padding: 8px 2px;
  border-bottom: 1px solid var(--line);
}
.equipment-unit summary {
  cursor: pointer;
  padding: 5px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.equipment-unit .form-grid {
  margin-top: 8px;
}
.scene-person-manual {
  margin-top: 6px;
}
.equipment-directory-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.equipment-directory-row > div {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.choice-picker {
  position: relative;
}
.bank-picker > summary {
  display: block;
  min-height: 36px;
  padding: 8px 28px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  background: white;
  overflow-wrap: anywhere;
}
.bank-picker > summary::after {
  content: "⌄";
  position: absolute;
  right: 10px;
}
.choice-popover {
  position: absolute;
  z-index: 15;
  top: 100%;
  left: 0;
  right: 0;
  min-width: min(280px, 100%);
  padding: 8px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px #16334b1c;
}
.choice-popover > input {
  width: 100%;
  margin-bottom: 6px;
}
.choice-popover .table-viewport {
  --record-viewport-limit: 40vh;
}
.bank-option {
  display: block;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  width: 100%;
  padding: 7px 8px;
  min-height: 32px;
  font: inherit;
  cursor: pointer;
}
.bank-option:hover,
.bank-option:focus-visible {
  background: #e7f0f7;
  color: #164e73;
  outline-offset: -2px;
}
.bank-option[aria-selected="true"] {
  background: #dceaf4;
  font-weight: 600;
}
.agreement-photo {
  margin: 10px 0;
}
.agreement-photo img {
  display: block;
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
}
.agreement-photo figcaption {
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.handwriting-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 2;
  border: 1px solid var(--line);
  background: #fff;
  touch-action: none;
  cursor: crosshair;
  border-radius: 4px;
}
.handwriting-page > p {
  margin: 8px 0;
}
.agreement-hand-signature {
  display: block;
  width: 210px;
  max-width: 100%;
  height: 84px;
  color: #102b3e;
}
.project-memberships {
  min-width: 0;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}
.project-memberships legend {
  padding: 0;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
}
.project-membership-options {
  border: 1px solid var(--line);
  border-radius: 5px;
}
.project-membership-options .check-row {
  align-items: center;
  min-height: 44px;
  gap: 10px;
  margin: 0;
  padding: 6px 8px;
  cursor: pointer;
}
.project-membership-options .check-row + .check-row {
  border-top: 1px solid var(--soft-line);
}
.project-membership-options input {
  margin: 0;
}
.project-membership-options span {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (min-width: 701px) {
  .member-select-table {
    min-width: 1100px;
  }
  .member-management-level,
  .member-birthday,
  .member-dialect-region {
    max-width: none;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }
  .member-select-table .cell-detail {
    overflow-wrap: normal;
  }
  .member-select-table .actions {
    min-width: 120px;
    gap: 4px 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
  }
}
@media (max-width: 700px) {
  .main-content {
    padding: 20px 16px 28px;
  }
  .page-heading {
    margin-bottom: 18px;
  }
  .page-heading .button,
  .toolbar input,
  .toolbar select {
    min-height: 44px;
    height: auto;
  }
  .bank-picker > summary,
  .bank-option {
    min-height: 44px;
  }
  .agreement-signatures {
    grid-template-columns: minmax(0, 1fr);
  }
}
