:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --line: #d9dee7;
  --text: #17202c;
  --muted: #667085;
  --brand: #1769e0;
  --brand-strong: #0d4ea8;
  --success: #14845b;
  --success-bg: #e8f6ef;
  --danger: #c5332b;
  --danger-bg: #fff0ee;
  --warning: #a76105;
  --warning-bg: #fff5df;
  --pending: #5d5fef;
  --pending-bg: #eef0ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 0 28px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 180px;
}

.brand a {
  font-size: 18px;
  font-weight: 760;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.nav a {
  padding: 8px 10px;
  border-radius: 6px;
  color: #344054;
  white-space: nowrap;
}

.nav a.active,
.nav a:hover {
  background: #eaf2ff;
  color: var(--brand-strong);
}

.page {
  width: min(1480px, calc(100% - 40px));
  margin: 24px auto 48px;
}

.footer {
  width: min(1480px, calc(100% - 40px));
  margin: -24px auto 32px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.security-alert {
  margin-bottom: 18px;
  padding: 13px 16px;
  border: 1px solid #ffc8c1;
  border-radius: 8px;
  background: var(--danger-bg);
  color: var(--danger);
  font-weight: 760;
}

.success-note {
  border-color: #a6dec3;
  background: var(--success-bg);
  color: var(--success);
}

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

.page-header h1 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
}

.page-header p {
  margin: 0;
  color: var(--muted);
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-link,
.secondary-link,
.filter-actions button,
.form-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
}

.secondary-link {
  background: var(--panel);
  color: var(--brand-strong);
}

.filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filters.compact {
  grid-template-columns: repeat(2, minmax(180px, 260px)) auto;
}

.filter-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #344054;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd6e2;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

input,
select {
  height: 38px;
  padding: 0 10px;
}

textarea {
  padding: 10px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #bad7ff;
  border-color: var(--brand);
}

.filter-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-actions a,
.form-actions a {
  color: var(--muted);
  font-weight: 650;
}

.login-body {
  min-height: 100vh;
  background: #eef2f7;
}

.login-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(18, 32, 52, 0.10);
}

.login-brand {
  margin-bottom: 22px;
}

.login-brand h1 {
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: 0;
}

.login-brand p {
  margin: 0;
  color: var(--muted);
}

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

.login-form button {
  min-height: 42px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
}

.metric {
  min-height: 104px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 650;
}

.metric strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.metric strong.metric-text {
  font-size: 18px;
  line-height: 1.3;
}

.metric.success {
  border-color: #b8e4d0;
  background: var(--success-bg);
}

.metric.danger {
  border-color: #ffc8c1;
  background: var(--danger-bg);
}

.metric.warning {
  border-color: #f2d8a0;
  background: var(--warning-bg);
}

.metric.pending {
  border-color: #cfd3ff;
  background: var(--pending-bg);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.compact-actions {
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  margin-top: 0;
}

.action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-weight: 760;
}

.action.success {
  color: var(--success);
  border-color: #b8e4d0;
}

.action.danger {
  color: var(--danger);
  border-color: #ffc8c1;
}

.action.warning {
  color: var(--warning);
  border-color: #f2d8a0;
}

.action.pending {
  color: var(--pending);
  border-color: #cfd3ff;
}

.flow-list,
.status-note {
  display: grid;
  gap: 12px;
}

.flow-list div,
.status-note {
  padding: 14px;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  background: #fafbfc;
}

.flow-list strong,
.flow-list span,
.status-note p {
  display: block;
}

.flow-list span,
.status-note p {
  margin: 4px 0 0;
  color: var(--muted);
}

.table-shell {
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.operation-log-table table {
  min-width: var(--log-table-min-width, 1180px);
}

.operation-log-table td span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid #edf0f5;
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f9fafc;
  color: #4b5565;
  font-size: 13px;
  white-space: nowrap;
}

td {
  color: #202938;
}

tbody tr:hover {
  background: #f8fbff;
}

.problem-row {
  background: #fffafa;
}

.material-link {
  color: var(--brand-strong);
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.status-badge,
.priority-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 760;
  white-space: nowrap;
}

.status-success {
  background: var(--success-bg);
  color: var(--success);
}

.status-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.status-warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.status-pending {
  background: var(--pending-bg);
  color: var(--pending);
}

.priority-high {
  background: var(--danger-bg);
  color: var(--danger);
}

.priority-medium {
  background: var(--warning-bg);
  color: var(--warning);
}

.priority-low {
  background: #eef6f2;
  color: var(--success);
}

.empty {
  padding: 36px 12px;
  text-align: center;
  color: var(--muted);
}

.detail-panel,
.material-form,
.readonly-summary {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-panel {
  padding: 18px;
}

.detail-alert {
  border-color: #ffc8c1;
}

.detail-status {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
}

.detail-item {
  min-height: 74px;
  padding: 12px;
  background: #fafbfc;
  border: 1px solid #eef1f6;
  border-radius: 6px;
}

.detail-item span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
}

.detail-item strong {
  font-size: 15px;
  word-break: break-word;
}

.material-form {
  padding: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.full-field {
  margin-top: 4px;
}

.checkbox-row {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 38px;
}

.checkbox-row input {
  width: 16px;
  height: 16px;
}

.form-actions {
  margin-top: 18px;
}

.form-error {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #ffc8c1;
  border-radius: 8px;
  background: var(--danger-bg);
  color: var(--danger);
  font-weight: 700;
}

.import-panel,
.result-panel {
  margin-bottom: 18px;
}

.import-note {
  margin: 4px 0 16px;
  padding: 12px 14px;
  border: 1px solid #cfd6e2;
  border-radius: 8px;
  background: #f9fafc;
  color: var(--muted);
}

.confirm-import {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.confirm-import button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
}

.confirm-import a {
  color: var(--muted);
  font-weight: 650;
}

.import-stats {
  margin-bottom: 14px;
}

.result-panel {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.result-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.result-meta div {
  padding: 12px;
  background: #fafbfc;
  border: 1px solid #eef1f6;
  border-radius: 6px;
}

.result-meta span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
}

.import-errors {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #f2d8a0;
  border-radius: 8px;
  background: var(--warning-bg);
}

.import-errors h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.import-errors ul {
  margin: 0;
  padding-left: 20px;
}

.image-preview-card {
  display: grid;
  grid-template-columns: minmax(260px, 36%) 1fr;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.image-preview-media,
.image-detail-media,
.material-screenshot {
  border: 1px solid #e4e9f2;
  border-radius: 8px;
  background: #f9fafc;
}

.image-preview-media {
  align-self: start;
  overflow: hidden;
}

.image-preview-media img,
.image-detail-media img,
.material-screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

.image-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid #e4e9f2;
  color: var(--muted);
}

.image-meta span {
  word-break: break-word;
}

.image-meta a {
  flex: 0 0 auto;
  color: var(--brand-strong);
  font-weight: 700;
}

.image-preview-form .form-grid {
  margin-bottom: 10px;
}

.image-detail-layout {
  display: grid;
  grid-template-columns: minmax(320px, 42%) 1fr;
  gap: 18px;
  align-items: start;
}

.image-detail-media {
  overflow: hidden;
}

.compact-detail {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.material-screenshot {
  max-width: 720px;
  margin-bottom: 18px;
  overflow: hidden;
}

.material-screenshot span {
  display: block;
  padding: 10px 12px;
  border-bottom: 1px solid #e4e9f2;
  color: var(--muted);
  font-weight: 700;
}

.table-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.table-actions a {
  color: var(--brand-strong);
  font-weight: 700;
}

.reject-reason {
  max-width: 320px;
  color: #4b5565;
}

.btn-small,
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #cfd6e2;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn-small:hover,
.action-btn:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
}

.action-btn.success {
  border-color: #b8e4d0;
  color: var(--success);
}

.action-btn.warning {
  border-color: #f2d8a0;
  color: var(--warning);
}

.action-btn.pending {
  border-color: #cfd3ff;
  color: var(--pending);
}

.detail-table,
.data-table {
  min-width: 0;
}

.detail-table td:first-child {
  width: 120px;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.readable-text {
  max-width: 680px;
  color: #344054;
  white-space: normal;
  word-break: break-word;
}

.reason-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.audit-workbench {
  border-color: #bed7ff;
  background: #fbfdff;
}

.audit-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.audit-summary-grid div {
  min-height: 76px;
  padding: 12px;
  border: 1px solid #e3eafa;
  border-radius: 8px;
  background: #fff;
}

.audit-summary-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 700;
}

.audit-summary-grid strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
  word-break: break-word;
}

.fix-suggestion {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #f2d8a0;
  border-radius: 8px;
  background: var(--warning-bg);
}

.fix-suggestion strong {
  display: block;
  margin-bottom: 6px;
  color: var(--warning);
}

.record-action-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #ffc8c1;
  border-radius: 8px;
  background: #fff8f7;
}

.record-action-strip strong,
.record-action-strip span {
  display: block;
}

.record-action-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--danger);
  border-radius: 6px;
  background: var(--danger);
  color: #fff;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.fix-suggestion p,
.operation-guide p {
  margin: 0;
  color: #344054;
}

.audit-components table {
  min-width: 1280px;
}

.audit-components th:first-child,
.audit-components td:first-child {
  width: 48px;
  text-align: center;
}

.audit-components td:nth-child(2) {
  width: 240px;
}

.audit-components td:nth-child(5) {
  min-width: 320px;
}

.audit-components td:nth-child(6) {
  min-width: 320px;
}

.audit-components td strong,
.audit-components td span {
  display: block;
}

.element-value {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  word-break: break-word;
}

.audit-row-actions {
  align-items: flex-start;
}

.violation-action-stack {
  display: grid;
  gap: 8px;
  width: min(340px, 100%);
}

.inline-update-form,
.inline-appeal-form {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  background: #fff;
}

.inline-update-form label {
  gap: 4px;
  font-size: 12px;
}

.inline-update-form input,
.inline-update-form textarea {
  font-size: 12px;
}

.inline-update-form input[type="file"] {
  height: auto;
  min-height: 38px;
  padding: 7px 9px;
  background: #f9fafc;
}

.advanced-id-input {
  padding: 8px;
  border: 1px dashed #d6deea;
  border-radius: 6px;
  background: #fbfcfe;
}

.advanced-id-input summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.advanced-id-input input {
  margin-top: 8px;
}

.advanced-id-input input + input {
  margin-top: 6px;
}

.inline-update-form button,
.inline-appeal-form button,
.table-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #cfd6e2;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.inline-update-form button {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.derived-update-form {
  border-color: #f2d8a0;
  background: var(--warning-bg);
}

.remove-component-form {
  border-color: #ffc8c1;
  background: var(--danger-bg);
}

.inline-update-form .danger-button,
.remove-component-form .danger-button {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.row-action-title {
  color: #202938;
  font-size: 12px;
  font-weight: 760;
}

.inline-update-form p,
.inline-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.operation-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.operation-guide div {
  padding: 12px 14px;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  background: #fafbfc;
}

.operation-guide strong {
  display: block;
  margin-bottom: 6px;
}

.copy-block {
  margin-bottom: 10px;
}

.copy-block textarea {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
}

.compact-copy {
  margin-top: 12px;
}

.appeal-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e3eafa;
  border-radius: 8px;
  background: #fff;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid #cfd6e2;
  background: #fff;
  color: #344054;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.secondary-button:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
}

.readonly-note {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  background: #fafbfc;
}

.readonly-note strong {
  display: block;
  margin-bottom: 4px;
}

.readonly-note p {
  margin: 0;
  color: var(--muted);
}

.table-actions form,
.detail-actions form {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mono-cell {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  word-break: break-all;
}

.table-actions button,
.detail-actions button,
.bulk-toolbar button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #cfd6e2;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  font-weight: 650;
  cursor: pointer;
}

.table-actions button:hover,
.detail-actions button:hover,
.bulk-toolbar button:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
}

.dashboard-metrics {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.dashboard-section {
  margin-top: 18px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.operator-panel {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: 14px;
  align-items: end;
  border-color: #bed7ff;
  background: #fbfdff;
}

.operator-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

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

.section-heading h2 {
  margin: 0;
  font-size: 18px;
}

.section-heading a {
  color: var(--brand-strong);
  font-weight: 700;
}

.issue-list {
  display: grid;
  gap: 8px;
}

.issue-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #edf0f5;
  border-radius: 6px;
  background: #fafbfc;
}

.issue-list strong {
  color: var(--danger);
}

.compact-table {
  border: 0;
}

.compact-table table {
  min-width: 620px;
}

.compact-empty {
  padding: 18px 10px;
}

.bulk-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.bulk-toolbar span {
  color: var(--muted);
  font-weight: 760;
}

.bulk-toolbar select {
  width: 120px;
}

.bulk-toolbar input {
  width: 240px;
}

.row-check {
  width: 16px;
  height: 16px;
}

.detail-actions {
  margin-bottom: 16px;
}

.timeline-panel {
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #eef1f6;
  border-radius: 8px;
  background: #fafbfc;
}

.timeline-panel h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.timeline-panel ul {
  margin: 0;
  padding-left: 20px;
  color: #344054;
}

.timeline-panel li + li {
  margin-top: 6px;
}

.readonly-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
}

.readonly-summary span {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

.readonly-summary strong {
  word-break: break-word;
}

.muted-copy {
  margin: 0 0 10px;
  color: var(--muted);
}

.copy-row {
  overflow-x: auto;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.copy-row code,
.code-panel {
  color: #344054;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  word-break: break-all;
}

.oauth-box {
  display: grid;
  gap: 12px;
}

.code-panel {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.empty-cell {
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1100px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .nav {
    justify-content: flex-start;
  }

  .filters,
  .filters.compact,
  .metric-grid,
  .dashboard-metrics,
  .quick-actions,
  .dashboard-grid,
  .detail-grid,
  .form-grid,
  .readonly-summary,
  .operator-panel,
  .image-preview-card,
  .image-detail-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  th {
    top: 118px;
  }
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 24px, 1480px);
    margin-top: 16px;
  }

  .page-header,
  .header-actions,
  .record-action-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .filters,
  .filters.compact,
  .metric-grid,
  .dashboard-metrics,
  .quick-actions,
  .dashboard-grid,
  .detail-grid,
  .form-grid,
  .readonly-summary,
  .operator-panel,
  .image-preview-card,
  .image-detail-layout,
  .compact-detail {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: static;
  }

  th {
    position: static;
  }
}
