:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-2: #eef3f4;
  --ink: #182224;
  --muted: #657174;
  --line: #d9e1e3;
  --accent: #0f766e;
  --accent-2: #134e4a;
  --warn: #a16207;
  --danger: #b42318;
  --ok: #157347;
  --shadow: 0 12px 32px rgba(24, 34, 36, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: #162326;
  color: #f3fbfb;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #20363a;
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span,
.sidebar-footer span {
  color: #a8bbbf;
  font-size: 13px;
}

nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  border: 0;
  background: transparent;
  color: #d8e6e8;
  text-align: left;
  padding: 11px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
  background: #244044;
  color: #ffffff;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 4px;
  padding: 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

main {
  min-width: 0;
  padding: 24px;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.15;
}

.topbar p {
  color: var(--muted);
  margin-top: 5px;
}

.topbar-actions,
.approval-actions,
.dialog-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 13px;
  font-weight: 700;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--accent-2);
}

.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.button.danger {
  background: #fff4f2;
  color: var(--danger);
  border-color: #ffd7d2;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  font-size: 28px;
  margin-top: 4px;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(340px, 0.38fr) minmax(0, 0.62fr);
  gap: 16px;
  align-items: start;
}

.queue-panel,
.detail-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
}

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

.panel-heading {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h2,
.detail-header h2 {
  font-size: 18px;
}

.search-wrap {
  display: grid;
  gap: 4px;
}

.search-wrap label {
  color: var(--muted);
  font-size: 12px;
}

.search-wrap input {
  width: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
}

.email-list {
  max-height: calc(100vh - 235px);
  overflow: auto;
}

.email-item {
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 14px 16px;
  cursor: pointer;
}

.email-item:hover,
.email-item.active {
  background: var(--surface-2);
}

.email-item strong {
  display: block;
  overflow-wrap: anywhere;
}

.email-meta,
.email-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 7px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  background: #edf3f3;
  color: #304245;
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
}

.badge.high {
  background: #fff1f0;
  color: var(--danger);
}

.badge.medium {
  background: #fff7e6;
  color: var(--warn);
}

.badge.low {
  background: #eaf7ef;
  color: var(--ok);
}

.detail-panel {
  min-height: calc(100vh - 161px);
}

.empty-state {
  padding: 42px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.empty-state h2 {
  color: var(--ink);
}

.hidden {
  /* !important so this utility always wins over component display rules
     (e.g. .login-overlay/.user-menu set display:flex later in the file). */
  display: none !important;
}

.detail-view {
  padding: 18px;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.detail-header p {
  color: var(--muted);
  margin-top: 5px;
}

.confidence {
  min-width: 92px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  color: var(--muted);
}

.confidence strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
  gap: 14px;
  margin-top: 16px;
}

.section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-top: 14px;
}

.detail-grid .section {
  margin-top: 0;
}

.section-title h3 {
  font-size: 15px;
}

.section-title span {
  color: var(--muted);
  font-size: 13px;
}

.field-list {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 0.65fr);
  gap: 8px 12px;
  margin: 14px 0 0;
}

.field-list dt {
  color: var(--muted);
}

.field-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.missing-list {
  margin: 12px 0 0;
  padding-left: 19px;
  color: var(--danger);
}

.missing-list.ok {
  color: var(--ok);
  padding-left: 0;
  list-style: none;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.action-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.action-summary div {
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  min-width: 0;
}

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

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

.action-summary strong {
  margin-top: 4px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.tab {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.tab.active {
  border-color: var(--accent);
  color: var(--accent-2);
  background: #e8f6f4;
  font-weight: 800;
}

.draft-output,
.original-email {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin: 12px 0 0;
  max-height: 330px;
  overflow: auto;
  line-height: 1.45;
}

.approval-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfb;
  margin-top: 14px;
}

.approval-bar span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

dialog {
  width: min(720px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(15, 27, 30, 0.36);
}

form {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon-button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

label input,
label textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

@media (max-width: 1100px) {
  .workbench,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .email-list {
    max-height: 410px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  main {
    padding: 16px;
  }

  .topbar,
  .approval-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-summary {
    grid-template-columns: 1fr;
  }

  .field-list {
    grid-template-columns: 1fr;
  }

  .search-wrap input {
    width: 100%;
  }
}

/* --- Integration status chips --- */
.integration-status {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-right: 4px;
}

.chip {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.chip.live {
  background: rgba(21, 115, 71, 0.12);
  color: var(--ok);
  border-color: rgba(21, 115, 71, 0.3);
}

.chip.demo {
  background: var(--surface-2);
  color: var(--muted);
}

/* --- Execution result panel --- */
.execution-section {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #f8fafb;
}

.exec-badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.exec-badge.success { color: var(--ok); }
.exec-badge.error { color: var(--danger); }
.exec-badge.skipped { color: var(--muted); }

.exec-summary {
  margin: 4px 0 12px;
  font-size: 14px;
  font-weight: 600;
}

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

.exec-detail div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  min-width: 0;
}

.exec-detail span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.exec-detail strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.exec-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .exec-detail {
    grid-template-columns: 1fr;
  }
}

/* --- Auth: login gate, user chip, ghost button --- */
.button.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}
.button.ghost:hover { color: var(--ink); border-color: var(--muted); }

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
  margin-left: 4px;
  border-left: 1px solid var(--line);
}
.user-info { display: flex; flex-direction: column; line-height: 1.15; text-align: right; }
.user-info strong { font-size: 0.86rem; color: var(--ink); }
.user-info span { font-size: 0.72rem; color: var(--muted); }

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(160deg, var(--surface-2), var(--bg));
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand strong { display: block; color: var(--ink); }
.login-brand span { font-size: 0.75rem; color: var(--muted); }
.login-card h1 { margin: 4px 0 0; font-size: 1.35rem; color: var(--ink); }
#loginSubtitle { margin: 0 0 4px; color: var(--muted); font-size: 0.86rem; }
.login-card label { display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; color: var(--muted); }
.login-card input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
}
.login-card input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.login-card .button { justify-content: center; margin-top: 4px; }
.login-error {
  margin: 0;
  padding: 8px 10px;
  background: #fdecea;
  color: var(--danger);
  border-radius: 8px;
  font-size: 0.82rem;
}

/* --- Audit trail dialog --- */
.audit-dialog {
  width: min(640px, 92vw);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.audit-dialog::backdrop { background: rgba(24, 34, 36, 0.35); }
.audit-sub { margin: 2px 0 12px; color: var(--muted); font-size: 0.82rem; }
.audit-integrity { margin-bottom: 12px; font-size: 0.85rem; }
.audit-ok { color: var(--ok); font-weight: 600; }
.audit-broken { color: var(--danger); font-weight: 600; }
.audit-loading { color: var(--muted); }
.audit-list { max-height: 52vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.audit-row {
  display: flex;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--surface-2);
}
.audit-when { flex: 0 0 88px; font-size: 0.72rem; color: var(--muted); }
.audit-body { flex: 1; min-width: 0; }
.audit-line { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.audit-type { font-weight: 600; font-size: 0.82rem; color: var(--ink); }
.audit-actor { font-size: 0.76rem; color: var(--accent); }
.audit-detail { font-size: 0.78rem; color: var(--muted); word-break: break-word; }
.audit-empty { padding: 16px; color: var(--muted); text-align: center; }

/* --- Team & back office --- */
.team-dialog {
  width: min(860px, 94vw);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.team-dialog::backdrop { background: rgba(24, 34, 36, 0.35); }
.add-user-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}
.add-user-form input,
.add-user-form select {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--surface);
}
.add-user-form input { flex: 1; min-width: 130px; }
.button.small { padding: 5px 10px; font-size: 0.76rem; }
.temp-pw-banner {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #eefaf3;
  border: 1px solid #b6e3cd;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--ink);
}
.temp-pw-banner code {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.temp-pw-error { color: var(--danger); }
.team-table-wrap { max-height: 56vh; overflow: auto; }
.team-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.team-table th {
  text-align: left;
  padding: 8px 10px;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--surface);
}
.team-table td { padding: 9px 10px; border-bottom: 1px solid var(--surface-2); vertical-align: top; }
.team-emp strong { color: var(--ink); }
.team-email { color: var(--muted); font-size: 0.76rem; }
.team-sub { color: var(--muted); font-size: 0.72rem; }
.team-loading { color: var(--muted); text-align: center; padding: 16px; }
.pill {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 600;
  vertical-align: middle;
}
.pill.warn { background: #fdf1dc; color: var(--warn); }

/* --- View switch + load pipeline --- */
.view-switch { display: flex; gap: 4px; background: #0f1c1f; border: 1px solid rgba(255,255,255,0.14); border-radius: 9px; padding: 4px; }
.view-tab { flex: 1; border: 0; background: transparent; color: #cfe0e2; padding: 8px 6px; border-radius: 6px; font-weight: 700; font-size: 0.8rem; cursor: pointer; }
.view-tab.active { background: var(--accent); color: #fff; }

.pipeline { min-width: 0; }
.pipeline-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.pipeline-head p { color: var(--muted); margin-top: 4px; }
.pipeline-counts { display: flex; gap: 10px; color: var(--muted); font-size: 0.82rem; }
.pipeline-counts span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }

.load-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.board-lane { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; min-width: 0; }
.lane-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.lane-head h3 { font-size: 0.86rem; color: var(--ink); }
.lane-head span { color: var(--muted); font-size: 0.78rem; background: var(--surface); border-radius: 999px; padding: 1px 8px; }
.lane-cards { display: grid; gap: 8px; }
.lane-empty { color: var(--muted); font-size: 0.78rem; padding: 8px; text-align: center; }

.load-card { text-align: left; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--surface); border-radius: 8px; padding: 10px; cursor: pointer; display: grid; gap: 5px; }
.load-card:hover { box-shadow: var(--shadow); }
.load-card.tone-q { border-left-color: #0ea5a0; }
.load-card.tone-s { border-left-color: #2563eb; }
.load-card.tone-t { border-left-color: #a16207; }
.load-card.tone-b { border-left-color: #157347; }
.load-card-top { display: flex; justify-content: space-between; align-items: baseline; }
.load-value { font-weight: 800; color: var(--ink); }
.load-cust { font-weight: 700; color: var(--ink); font-size: 0.86rem; }
.load-lane { color: var(--muted); font-size: 0.78rem; overflow-wrap: anywhere; }
.load-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.next-hint { font-size: 0.72rem; color: var(--accent-2); font-weight: 600; }
.next-hint.done { color: var(--ok); }
.board-loading { color: var(--muted); padding: 24px; text-align: center; grid-column: 1 / -1; }

.stage-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 800; background: #e6f4f3; color: #0f5f59; }
.stage-badge.tone-s { background: #e7edfd; color: #1e40af; }
.stage-badge.tone-t { background: #fdf1dc; color: #92500a; }
.stage-badge.tone-b { background: #e6f5ec; color: #0f6b39; }

/* Load detail dialog */
.load-dialog { width: min(720px, 95vw); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.load-dialog::backdrop { background: rgba(24,34,36,0.4); }
.load-body { max-height: 72vh; overflow: auto; }
.load-progress { display: flex; align-items: center; gap: 5px; margin-bottom: 14px; }
.prog-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); }
.prog-dot.on { background: var(--accent); border-color: var(--accent); }
.prog-label { margin-left: 8px; color: var(--muted); font-size: 0.78rem; }
.load-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 16px; margin-bottom: 14px; }
.load-grid div { display: flex; flex-direction: column; }
.load-grid span { color: var(--muted); font-size: 0.72rem; }
.load-grid strong { font-size: 0.86rem; overflow-wrap: anywhere; }
.load-section { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.load-section h4 { font-size: 0.82rem; margin-bottom: 8px; color: var(--ink); }
.bid-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.bid-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 4px 6px; }
.bid-table td { padding: 5px 6px; border-top: 1px solid var(--surface-2); }
.bid-table tr.sel { background: #eefaf3; }
.bid-notes { color: var(--muted); }
.muted { color: var(--muted); }
.quote-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.quote-row label { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); }
.quote-row input { width: 110px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
.margin-note { color: var(--muted); font-size: 0.76rem; }
.load-template { background: #0f1c1f; color: #d7ebe9; border-radius: 8px; padding: 12px; font-size: 0.76rem; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow: auto; }
.payload-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.payload-row label { display: flex; flex-direction: column; gap: 3px; font-size: 0.76rem; color: var(--muted); }
.payload-row input, .payload-row select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
.load-action { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.advance-note { color: var(--muted); font-size: 0.76rem; }
.block-reason { color: var(--danger); font-size: 0.82rem; width: 100%; margin: 0 0 4px; }
.done-note { color: var(--ok); font-weight: 700; }
.load-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.load-timeline li { display: grid; grid-template-columns: 90px 1fr auto; gap: 8px; font-size: 0.78rem; align-items: baseline; }
.tl-when { color: var(--muted); }
.tl-actor { color: var(--muted); font-size: 0.72rem; }

@media (max-width: 900px) {
  .load-board { grid-template-columns: 1fr 1fr; }
}
