:root {
  color-scheme: light;
  --bg: #fafafa;
  --card: #fff;
  --fg: #18181b;
  --muted: #71717a;
  --soft: #f4f4f5;
  --border: #e4e4e7;
  --primary: #18181b;
  --on-primary: #fafafa;
  --hover: #ededee;
  --success: #087354;
  --success-bg: #eefaf4;
  --warning: #986011;
  --warning-bg: #fffaeb;
  --danger: #bd3434;
  --danger-bg: #fff1f1;
  --ring: #8b8b98;
  --radius: 10px;
  --shadow: 0 1px 2px #00000006, 0 8px 30px #00000004;
}
:root.dark {
  color-scheme: dark;
  --bg: #111113;
  --card: #17171a;
  --fg: #f0f0f1;
  --muted: #a3a3ad;
  --soft: #232327;
  --border: #303037;
  --primary: #ededf0;
  --on-primary: #17171a;
  --hover: #29292f;
  --success: #85dbb5;
  --success-bg: #18342a;
  --warning: #edd090;
  --warning-bg: #382d18;
  --danger: #ffaaaa;
  --danger-bg: #3a2326;
  --ring: #9999ad;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
:focus-visible {
  outline: 2px solid var(--ring);
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.4;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
}
h1 {
  font-size: 23px;
}
h2 {
  font-size: 16px;
}
h3 {
  font-size: 14px;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.icon {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid transparent;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 7px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.12s;
}
.btn:hover {
  opacity: 0.88;
}
.btn.outline {
  border-color: var(--border);
  background: var(--card);
  color: var(--fg);
}
.btn.ghost {
  background: transparent;
  color: var(--muted);
}
.btn.ghost:hover {
  background: var(--soft);
  color: var(--fg);
}
.btn.danger {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: transparent;
}
.btn.small {
  font-size: 12px;
  padding: 4px 10px;
  min-height: 29px;
}
.btn.icon-only {
  padding: 8px;
  min-width: 36px;
}
.link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--fg);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.link:hover {
  text-decoration: underline;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  height: 65px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 23px;
  border-bottom: 1px solid var(--border);
  flex: none;
}
.brand-mark {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 9px;
}
.brand strong {
  display: block;
  font-size: 14px;
}
.brand small {
  display: block;
  font-size: 11px;
}
.nav {
  padding: 21px 12px;
  overflow: auto;
}
.nav-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.13em;
  margin: 5px 12px 12px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  border-radius: 8px;
  margin: 3px 0;
  color: var(--muted);
}
.nav a:hover {
  background: var(--soft);
  color: var(--fg);
}
.nav a[aria-current="page"] {
  background: var(--hover);
  color: var(--fg);
  font-weight: 500;
}
.account {
  margin-top: auto;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 11px;
}
.avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: var(--soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 12px;
  flex: none;
}
.account-info {
  min-width: 0;
  flex: 1;
}
.account-info p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 500;
}
.workspace {
  padding-left: 248px;
}
.topbar {
  height: 65px;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 12px;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.role-label {
  color: var(--muted);
  font-size: 11px;
}
.mobile-menu {
  display: none;
}
main {
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px 32px 48px;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-head p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}
.eyebrow {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.grid {
  display: grid;
  gap: 20px;
}
.grid.two {
  grid-template-columns: 1fr 1fr;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 25px;
}
.metric {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.metric-label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.metric-value {
  font-size: 27px;
  letter-spacing: -0.04em;
  font-weight: 600;
  line-height: 1.4;
  margin: 12px 0 5px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.metric small {
  font-size: 11px;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  min-width: 0;
}
.card-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}
.card-head p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.card-body {
  padding: 22px;
}
.card-foot {
  padding: 15px 22px;
  border-top: 1px solid var(--border);
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  text-align: left;
  font-size: 13px;
}
th {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: var(--soft);
  white-space: nowrap;
}
th,
td {
  border-bottom: 1px solid var(--border);
  padding: 13px 20px;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: var(--bg);
}
td .secondary {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.number {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.truncate {
  display: block;
  max-width: 310px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.badge.success {
  background: var(--success-bg);
  color: var(--success);
}
.badge.warning {
  background: var(--warning-bg);
  color: var(--warning);
}
.badge.danger {
  background: var(--danger-bg);
  color: var(--danger);
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.toolbar input {
  max-width: 270px;
}
.toolbar > .row {
  flex: 1;
}
.toolbar input:not([type="checkbox"]):not([type="radio"]) {
  width: 240px;
}
.toolbar input[type="date"] {
  width: 145px;
}
.toolbar select {
  width: auto;
  min-width: 130px;
}
.pagination {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}
.notice {
  padding: 13px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--soft);
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.notice.warning {
  background: var(--warning-bg);
  color: var(--warning);
}
.notice.error {
  background: var(--danger-bg);
  color: var(--danger);
}
.notice.success {
  background: var(--success-bg);
  color: var(--success);
}
.empty {
  text-align: center;
  padding: 65px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.empty .empty-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--muted);
  margin-bottom: 5px;
}
.empty p {
  color: var(--muted);
  max-width: 430px;
  font-size: 13px;
}
.empty .btn {
  margin-top: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field.full {
  grid-column: 1/-1;
}
.field > label,
fieldset > legend {
  font-size: 12px;
  font-weight: 500;
}
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--card);
  color: var(--fg);
}
textarea {
  resize: vertical;
  line-height: 1.8;
  min-height: 90px;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
  flex: none;
}
label.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
}
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.help {
  font-size: 11px;
  color: var(--muted);
}
fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}
legend {
  padding: 0;
  margin-bottom: 8px;
}
dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--fg);
  background: var(--card);
  box-shadow: 0 20px 90px #0003;
}
dialog::backdrop {
  background: #0005;
  backdrop-filter: blur(2px);
}
.dialog-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 1;
}
.dialog-body {
  padding: 24px;
}
.dialog-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  bottom: 0;
  background: var(--card);
}
.dialog-head h2 {
  font-size: 17px;
}
.form-error {
  margin: 0 24px 16px;
}
.step-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.step {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.step-num {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 11px;
  color: var(--muted);
}
.step p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.summary-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.summary-list dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.summary-list dd {
  margin: 0;
  font-size: 13px;
}
.batch-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 15px 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  font-size: 12px;
}
.batch-summary span {
  color: var(--muted);
}
.tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}
.tab {
  padding: 11px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.tab.active {
  border-bottom-color: var(--fg);
  color: var(--fg);
  font-weight: 500;
}
.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr);
  gap: 24px;
  align-items: start;
}
.source-panel {
  position: sticky;
  top: 87px;
}
.source-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 2.05;
  font-size: 16px;
  min-height: 200px;
  max-height: 55vh;
  overflow: auto;
  padding: 28px;
  user-select: text;
}
.source-text::selection {
  background: #d7e6de;
  color: #18181b;
}
.source-text mark {
  background: var(--warning-bg);
  color: var(--warning);
}
.standard {
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--muted);
  line-height: 1.9;
}
.standard summary {
  cursor: pointer;
  color: var(--fg);
  font-weight: 500;
}
.standard details {
  margin-top: 15px;
}
.standard details > div {
  margin-top: 12px;
}
.annotation-form .card-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.question {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.question:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.question legend {
  font-size: 13px;
  max-width: 100%;
  margin-bottom: 10px;
}
.options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 11px;
  cursor: pointer;
}
.option:has(input:checked) {
  border-color: var(--fg);
  background: var(--soft);
  color: var(--fg);
}
.option input {
  width: 12px;
  height: 12px;
  margin: 0;
}
.work-actions {
  position: sticky;
  bottom: 0;
  padding: 16px 22px;
  background: var(--card);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-radius: 0 0 var(--radius) var(--radius);
}
.save-status {
  font-size: 11px;
  color: var(--muted);
}
.save-status.error {
  color: var(--danger);
}
.issue {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}
.issue blockquote {
  margin: 0 0 10px;
  border-left: 2px solid var(--muted);
  padding-left: 10px;
  font-size: 12px;
  white-space: pre-wrap;
}
.issue .field {
  margin-top: 10px;
}
.answer-preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.9;
}
.answer-preview h3 {
  margin: 14px 0 5px;
}
.ratings-review {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  font-size: 12px;
}
.sample-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sample-item {
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 12px;
  background: var(--card);
  text-align: left;
}
.sample-item small {
  display: block;
  margin-top: 5px;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--soft);
  padding: 15px;
  border-radius: 8px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.8;
  max-height: 350px;
  overflow: auto;
}
.code {
  font-family: ui-monospace, monospace;
  background: var(--soft);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 11px;
}
.login-layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-art {
  background: var(--soft);
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.login-art .brand {
  border: 0;
  padding: 0;
  height: auto;
}
.login-art-main {
  margin: 70px auto;
  max-width: 410px;
  position: relative;
}
.login-art-main h1 {
  font-size: 38px;
  line-height: 1.4;
  margin-bottom: 17px;
  font-weight: 500;
  letter-spacing: -0.06em;
}
.login-art-main p {
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}
.login-diagram {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.login-diagram div {
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 10px;
}
.login-diagram small {
  display: block;
  margin-top: 8px;
}
.login-art-footer {
  font-size: 11px;
  color: var(--muted);
}
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-form {
  width: 100%;
  max-width: 350px;
}
.login-form h1 {
  font-size: 25px;
  margin-bottom: 8px;
}
.login-form > p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 30px;
}
.login-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.login-form .btn {
  width: 100%;
  margin-top: 5px;
  min-height: 41px;
}
.login-foot {
  font-size: 11px;
  color: var(--muted);
  margin-top: 25px;
}
.initial-loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
.loading-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 25px;
}
.loading-bars div {
  height: 17px;
  max-width: 75%;
  background: var(--soft);
  border-radius: 5px;
}
.loading-bars div:nth-child(2) {
  max-width: 90%;
}
.loading-bars div:nth-child(3) {
  max-width: 55%;
}
#notifications {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 60;
  max-width: min(440px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  margin-top: 10px;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 8px 35px #0002;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  pointer-events: auto;
}
.toast.error {
  border-color: var(--danger);
  color: var(--danger);
}
.mobile-overlay {
  display: none;
}
.check-col {
  width: 35px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.following {
  margin-top: 24px;
}
.following-top {
  margin-top: 14px;
}
.following-bottom {
  margin-bottom: 20px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  main {
    padding-top: 38px;
  }
  .workbench {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 1150px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workbench {
    grid-template-columns: minmax(0, 1fr);
  }
  .source-panel {
    position: static;
  }
  .source-text {
    min-height: 160px;
    max-height: 400px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.16s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .workspace {
    padding-left: 0;
  }
  .topbar {
    padding: 0 18px;
    height: 59px;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .breadcrumb {
    gap: 5px;
  }
  .role-label {
    display: none;
  }
  .top-right {
    gap: 5px;
  }
  main {
    padding: 23px 18px 40px;
  }
  .page-head {
    margin-bottom: 22px;
    gap: 12px;
  }
  .page-head h1 {
    font-size: 21px;
  }
  .page-head .btn {
    font-size: 12px;
    padding: 7px 10px;
  }
  .page-head p {
    font-size: 12px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric-value {
    font-size: 23px;
  }
  .grid.two {
    grid-template-columns: 1fr;
  }
  .mobile-overlay.open {
    display: block;
    position: fixed;
    inset: 0;
    background: #0005;
    z-index: 25;
    border: 0;
    width: 100%;
    height: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .card-body {
    padding: 18px;
  }
  .card-head {
    padding: 17px 18px;
  }
  th,
  td {
    padding: 12px 15px;
  }
  .workbench {
    gap: 18px;
  }
  .source-text {
    padding: 22px;
    font-size: 15px;
  }
  .work-actions {
    padding: 14px 16px;
    flex-wrap: wrap;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .login-panel {
    padding: 28px;
  }
  .summary-list {
    gap: 15px;
  }
  .batch-summary {
    gap: 10px;
  }
  .truncate {
    max-width: 210px;
  }
  .dialog-body {
    padding: 20px;
  }
  .dialog-head {
    padding: 17px 20px;
  }
  dialog {
    max-height: calc(100dvh - 24px);
  }
  .check-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    align-items: stretch;
  }
  .toolbar input {
    max-width: none;
    flex: 1;
    min-width: 120px;
  }
  .toolbar select {
    min-width: 100px;
    max-width: 100%;
  }
  #notifications {
    right: 16px;
    bottom: 88px;
  }
  .source-panel .standard {
    font-size: 11px;
  }
  .breadcrumb span {
    max-width: 155px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Batch operations reuse the workspace's existing form and table primitives. */
progress {
  width: 100%;
  min-width: 120px;
  height: 8px;
  accent-color: var(--fg);
}
.allocation-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: 340px;
  overflow: auto;
}
.payment-batches {
  display: grid;
  gap: 10px;
  max-height: 250px;
  overflow: auto;
  padding: 12px 0;
}
.error-text {
  color: var(--danger);
  max-width: 310px;
  white-space: normal;
}
#job-table progress {
  max-width: 240px;
}
#job-table td {
  vertical-align: top;
}
input[type="file"] {
  max-width: 100%;
}
@media (max-width: 640px) {
  .allocation-people {
    grid-template-columns: 1fr;
  }
}

#bulk-preview table {
  min-width: 0;
}
