:root {
  --bg-0: #07151d;
  --bg-1: #102331;
  --bg-2: #15384c;
  --panel: rgba(8, 21, 29, 0.78);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #eef8ff;
  --muted: #aac4d4;
  --accent: #36e2bf;
  --accent-2: #f7c95d;
  --danger: #ff7a7a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, #1e4a62 0%, transparent 32%),
    radial-gradient(circle at 80% 30%, #11403f 0%, transparent 36%),
    linear-gradient(145deg, var(--bg-0), var(--bg-1) 45%, var(--bg-2));
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.orb-a {
  width: 280px;
  height: 280px;
  background: #2ad6ff;
  top: -40px;
  right: 8%;
}

.orb-b {
  width: 220px;
  height: 220px;
  background: #55ff8e;
  bottom: -20px;
  left: 5%;
}

.layout {
  position: relative;
  z-index: 1;
  width: min(1160px, 94vw);
  margin: 24px auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
  align-items: start;
}

.hero {
  grid-column: 1 / -1;
  padding: 18px 20px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: linear-gradient(130deg, rgba(26, 52, 66, 0.9), rgba(12, 34, 46, 0.8));
}

.hero h1 {
  margin: 0 0 6px;
  letter-spacing: 0.08em;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.hero-config-btn {
  flex-shrink: 0;
  padding: 8px 12px;
}

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

.panel {
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: var(--panel);
  backdrop-filter: blur(8px);
  padding: 14px;
}

.panel-title {
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--accent-2);
}

.input-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-panel-head {
  margin-bottom: 0;
}

.input-ai-btn {
  flex-shrink: 0;
}

.left-stack {
  grid-column: 1 / 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: start;
  min-width: 0;
  width: 100%;
}

.left-stack > .panel {
  width: 100%;
}

.stat-panel {
  grid-column: 2 / 3;
  align-self: start;
  min-width: 0;
}

.issue-panel {
  align-self: stretch;
  width: 100%;
}

.warning-box {
  width: 100%;
  min-height: 120px;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px;
  background: rgba(4, 19, 28, 0.45);
  color: var(--muted);
  font-size: 13px;
}

.warning-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.warning-list li {
  border-left: 3px solid rgba(255, 122, 122, 0.7);
  padding-left: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.warning-meta {
  color: #ffd678;
  font-size: 12px;
}

.warning-text {
  color: #ffd7d7;
  font-size: 13px;
  word-break: break-word;
}

textarea {
  width: 100%;
  min-height: 310px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 14, 20, 0.72);
  color: var(--text);
  padding: 12px;
  line-height: 1.55;
  font-size: 15px;
}

textarea:focus {
  outline: 2px solid rgba(54, 226, 191, 0.5);
  border-color: transparent;
}

.button-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.button-row-primary {
  margin-left: auto;
  justify-content: flex-end;
}

.button-row-secondary .btn {
  min-width: 86px;
}

.button-row-primary .btn {
  min-width: 116px;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  color: #021117;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(120deg, #3de2a0, #39d3e2);
}

.btn-secondary {
  background: linear-gradient(120deg, #ffe178, #f0b55e);
}

.btn-danger {
  background: linear-gradient(120deg, #ff9688, #ff6f74);
}

.parse-msg {
  min-height: 20px;
  font-size: 13px;
  color: var(--muted);
}

.date-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

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

.btn-date {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  padding: 7px 11px;
  font-size: 13px;
}

.btn-date.active {
  background: linear-gradient(120deg, #4adfa9, #35d0cf);
  color: #042022;
}

.btn-ai-validate {
  background: linear-gradient(120deg, #4fa7ff, #2dd7f1);
  color: #031522;
  border: 1px solid rgba(165, 232, 255, 0.7);
  box-shadow:
    0 0 0 1px rgba(4, 29, 46, 0.35) inset,
    0 6px 16px rgba(46, 166, 255, 0.3);
}

.btn-ai-validate:hover {
  filter: brightness(1.07);
}

#statDate {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 40px 6px 10px;
  background: rgba(7, 18, 25, 0.72);
  color: var(--text);
  color-scheme: dark;
}

.date-input-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

#statDate::-webkit-calendar-picker-indicator {
  opacity: 0;
  width: 26px;
}

.date-picker-btn {
  position: absolute;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid rgba(91, 226, 244, 0.8);
  background:
    linear-gradient(rgba(73, 222, 236, 0.2), rgba(73, 222, 236, 0.2)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b7f6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3Cline x1='8' y1='14' x2='8.01' y2='14'/%3E%3Cline x1='12' y1='14' x2='12.01' y2='14'/%3E%3Cline x1='16' y1='14' x2='16.01' y2='14'/%3E%3Cline x1='8' y1='18' x2='8.01' y2='18'/%3E%3Cline x1='12' y1='18' x2='12.01' y2='18'/%3E%3Cline x1='16' y1='18' x2='16.01' y2='18'/%3E%3C/svg%3E")
      center / 14px 14px no-repeat;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(10, 26, 39, 0.35) inset;
}

.date-picker-btn:hover {
  background-color: rgba(65, 212, 227, 0.28);
}

.date-picker-btn:focus-visible {
  outline: 2px solid rgba(54, 226, 191, 0.55);
  outline-offset: 1px;
}

.date-picker-btn:active {
  transform: translateY(1px);
}

.date-picker-btn,
.date-picker-btn * {
  cursor: pointer;
}

.date-info {
  color: var(--muted);
  font-size: 12px;
}

.total-hero {
  background: linear-gradient(115deg, #ffd95a 0%, #ff9f43 52%, #ff6f61 100%);
  border-radius: 14px;
  padding: 12px 14px;
  color: #2a1200;
  margin-bottom: 8px;
  box-shadow: 0 8px 28px rgba(255, 159, 67, 0.35);
}

.total-label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  opacity: 0.88;
}

.total-hero strong {
  display: block;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.meta-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.meta-stats strong {
  color: #d9f5ff;
  font-size: 15px;
}

.tables {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

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

.panel-head .panel-title {
  margin-bottom: 0;
}

.btn-brief-report {
  padding: 7px 10px;
  font-size: 12px;
}

.brief-actions-row {
  margin-bottom: 0;
}

.brief-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.brief-meta span:last-child {
  color: #ffd678;
  font-weight: 700;
}

.batch-brief-wrap {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.batch-brief-table th:nth-child(1),
.batch-brief-table td:nth-child(1) {
  width: 88px;
  text-align: center;
  font-size: 12px;
}

.batch-brief-table th:nth-child(2),
.batch-brief-table td:nth-child(2) {
  width: 90px;
  text-align: center;
}

.batch-brief-table td:nth-child(2) {
  font-size: 13px;
  font-weight: 700;
  color: #ffcf84;
  text-shadow: 0 0 12px rgba(255, 175, 74, 0.2);
}

.batch-brief-table .col-center {
  text-align: center;
}

.batch-brief-table th {
  background: rgba(10, 27, 36, 0.94);
}

.batch-brief-table td {
  vertical-align: middle;
}

.batch-brief-table .brief-row {
  cursor: pointer;
}

.batch-brief-table .brief-row:hover {
  background: rgba(54, 226, 191, 0.08);
}

.batch-brief-raw {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.4;
  font-size: 12px;
  color: var(--muted);
  font-family: inherit;
}

.table-wrap h2 {
  margin: 0;
  font-size: 16px;
  color: var(--accent);
}

.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.table-head-meta {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.table-head-meta strong {
  color: #d9f5ff;
  font-size: 15px;
}

.number-table th,
.number-table td {
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  overflow: hidden;
}

th,
td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 8px;
  text-align: left;
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.06);
}

.result-panel {
  grid-column: 1 / -1;
  overflow: hidden;
  min-width: 0;
}

.ledger-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.ledger-wrap {
  max-height: none;
  overflow-x: hidden;
  overflow-y: visible;
  border: none;
  border-radius: 0;
  min-width: 0;
}

.ledger-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
}

.ledger-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(10, 27, 36, 0.98);
}

.ledger-table td {
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ledger-table td[rowspan] {
  vertical-align: top;
}

.ledger-table th,
.ledger-table td {
  font-size: 12px;
  line-height: 1.45;
  padding: 8px 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.ledger-table tr > *:last-child {
  border-right: none;
}

.ledger-table col.col-batch-id {
  width: 7%;
}

.ledger-table col.col-time {
  width: 10%;
}

.ledger-table col.col-total {
  width: 8%;
}

.ledger-table col.col-count {
  width: 8%;
}

.ledger-table col.col-raw {
  width: 24%;
}

.ledger-table col.col-source {
  width: 21%;
}

.ledger-table col.col-number {
  width: 8%;
}

.ledger-table col.col-amount {
  width: 8%;
}

.ledger-table col.col-item-seq {
  width: 6%;
}

.ledger-table .col-center {
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.ledger-table .col-total,
.ledger-table .col-count,
.ledger-table .col-number,
.ledger-table .col-amount,
.ledger-table .col-item-seq {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.batch-cell {
  background: rgba(255, 255, 255, 0.04);
  vertical-align: top !important;
}

.batch-total {
  font-weight: 700;
  color: #ffd678;
}

.batch-count {
  color: #98d7ff;
}

.batch-raw {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  max-width: none;
  line-height: 1.45;
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
}

.batch-warning {
  margin-top: 6px;
  color: var(--danger);
  font-size: 12px;
}

.ledger-batch-main-row {
  scroll-margin-top: 90px;
}

.ledger-batch-main-row.jump-highlight td {
  background: rgba(54, 226, 191, 0.16);
}

@media (max-width: 1280px) {
  .ledger-table col.col-time {
    width: 0 !important;
  }

  .ledger-table th.col-time,
  .ledger-table td.col-time {
    display: none;
  }
}

@media (max-width: 640px) {
  .ledger-table th,
  .ledger-table td {
    font-size: 11px;
    padding: 6px 4px;
  }

  .ledger-table col.col-batch-id {
    width: 7%;
  }

  .ledger-table col.col-total {
    width: 11%;
  }

  .ledger-table col.col-count {
    width: 11%;
  }

  .ledger-table col.col-raw {
    width: 21%;
  }

  .ledger-table col.col-source {
    width: 23%;
  }

  .ledger-table col.col-number {
    width: 10%;
  }

  .ledger-table col.col-amount {
    width: 10%;
  }

  .ledger-table col.col-item-seq {
    width: 7%;
  }
}

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  padding: 12px;
}

.hidden {
  display: none !important;
}

.modal-card {
  width: min(860px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: #0b2634;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 12px;
}

.report-modal-card {
  width: min(980px, 96vw);
}

.report-text {
  width: 100%;
  min-height: 54vh;
  max-height: 64vh;
  resize: vertical;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-head h3 {
  margin: 0;
}

.btn-close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-tip {
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
}

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

.modal-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.modal-grid input {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(4, 19, 28, 0.82);
  color: var(--text);
  padding: 7px 8px;
}

.modal-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.parse-date-card {
  width: min(560px, 94vw);
}

.ai-config-card {
  width: min(620px, 95vw);
}

.ai-choice-card {
  width: min(760px, 96vw);
}

.ai-choice-preview {
  min-height: 220px;
  max-height: 52vh;
  overflow: auto;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px;
  background: rgba(4, 19, 28, 0.72);
  color: #d8eefc;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.ai-request-card {
  width: min(920px, 96vw);
}

.ai-request-text {
  min-height: 360px;
  max-height: 62vh;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.parse-date-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.data-modal-card {
  width: min(980px, 96vw);
}

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

.data-io-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(4, 19, 28, 0.55);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.data-io-card h4 {
  margin: 0;
  font-size: 16px;
  color: #d9f5ff;
}

.data-io-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.data-modal-card,
.data-text,
.error-log-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(85, 220, 228, 0.55) rgba(255, 255, 255, 0.08);
}

.data-modal-card::-webkit-scrollbar,
.data-text::-webkit-scrollbar,
.error-log-list::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.data-modal-card::-webkit-scrollbar-track,
.data-text::-webkit-scrollbar-track,
.error-log-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.data-modal-card::-webkit-scrollbar-thumb,
.data-text::-webkit-scrollbar-thumb,
.error-log-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(101, 236, 242, 0.78), rgba(61, 171, 183, 0.78));
  border-radius: 10px;
  border: 2px solid rgba(8, 24, 34, 0.35);
}

.data-modal-card::-webkit-scrollbar-thumb:hover,
.data-text::-webkit-scrollbar-thumb:hover,
.error-log-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(131, 248, 255, 0.9), rgba(78, 194, 207, 0.9));
}

.data-actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.data-file-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(4, 19, 28, 0.75);
  color: var(--text);
  padding: 8px 10px;
  font-size: 13px;
}

.data-file-name {
  margin-top: -2px;
  margin-bottom: 8px;
  color: #98d7ff;
  font-size: 12px;
  word-break: break-all;
}

.data-text {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(4, 19, 28, 0.75);
  color: var(--text);
  padding: 10px;
  line-height: 1.5;
  font-size: 13px;
}

.data-transfer-text {
  min-height: 120px;
  max-height: 240px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.error-log-card {
  width: min(980px, 96vw);
}

.error-log-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  margin-bottom: 10px;
}

.error-log-list {
  max-height: 60vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(4, 19, 28, 0.65);
}

.error-log-transfer {
  min-height: 110px;
}

.clear-confirm-card {
  width: min(460px, 92vw);
}

.brief-context-menu {
  position: fixed;
  z-index: 90;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(7, 24, 35, 0.96);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.brief-context-menu button {
  border: none;
  background: transparent;
  color: #e8f7ff;
  text-align: left;
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
}

.brief-context-menu button + button {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.brief-context-menu button:hover {
  background: rgba(62, 208, 224, 0.2);
}

.error-log-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 6px 10px;
  align-items: start;
}

.error-log-time {
  color: #ffd678;
  font-size: 12px;
}

.error-log-source {
  color: #98d7ff;
  font-size: 12px;
}

.error-log-message {
  color: var(--text);
  font-size: 13px;
  word-break: break-word;
}

.error-log-detail {
  grid-column: 1 / -1;
  white-space: pre-wrap;
  color: #c9e6f5;
  font-size: 12px;
  margin: 0;
  word-break: break-word;
}

.error-log-empty {
  color: var(--muted);
  text-align: center;
  padding: 20px 8px;
}

.empty-row {
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .left-stack,
  .stat-panel,
  .issue-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .total-hero strong {
    font-size: 28px;
  }

  .tables {
    grid-template-columns: 1fr;
  }

  .ledger-wrap {
    max-height: none;
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }

  .hero-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .action-row {
    width: 100%;
    grid-template-columns: 1fr auto;
  }

  .data-io-grid {
    grid-template-columns: 1fr;
  }

  .table-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .error-log-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
