:root {
  --history-bg: #11110f;
  --history-panel: #191917;
  --history-panel-raised: #1e1e1b;
  --history-panel-deep: #151513;
  --history-line: #30302d;
  --history-line-strong: #41403c;
  --history-text: #f4f2ee;
  --history-muted: #a39f98;
  --history-accent: #ff6a16;
  --history-accent-strong: #ff7a28;
  --history-danger: #ff745f;
  --history-green: #61c995;
}

.app-shell.history-route-active > .main-shell {
  display: none;
}

.history-route-shell {
  box-sizing: border-box;
  display: flex;
  width: calc(100% - var(--sidebar-width));
  min-width: 0;
  min-height: 100dvh;
  margin-left: var(--sidebar-width);
  flex: 0 0 auto;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  background: var(--history-bg);
}

.history-center-root {
  display: flex;
  box-sizing: border-box;
  height: calc(100dvh - var(--topbar-height));
  min-width: 0;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  padding: var(--section-gap) var(--page-gutter) 24px;
  color: var(--history-text);
  font-family: inherit;
}

.history-route-shell > .history-center-root {
  flex: 1;
}

.history-center-page {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.history-center-heading { margin: 0 0 22px; }

.history-center-heading h1 {
  margin: 0;
  color: #fbfaf7;
  font-size: 32px;
  font-weight: 760;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.history-center-heading p {
  margin: 8px 0 0;
  color: #aaa59e;
  font-size: 15px;
  line-height: 1.45;
}

.history-center-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(168px, 1fr)) minmax(330px, 1.75fr);
  gap: 14px;
  margin-bottom: 22px;
}

.history-center-summary article,
.history-center-summary aside {
  box-sizing: border-box;
  min-height: 112px;
  border: 1px solid var(--history-line);
  border-radius: 8px;
  background: linear-gradient(135deg, #1d1d1b, #191917);
}

.history-center-metric {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.history-center-metric > i {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  place-items: center;
  border-radius: 50%;
  background: #31231b;
  color: #ff7b22;
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-style: normal;
  font-weight: 300;
  line-height: 1;
}

.history-center-metric.metric-week > i { background: #2d241d; color: #ff9d60; }
.history-center-metric.metric-due > i { background: #332119; color: #ff7b22; }
.history-center-metric.metric-storage > i { background: #282826; color: #d8d6d1; }

.history-center-metric div { min-width: 0; }

.history-center-metric span {
  display: block;
  color: #b9b4ad;
  font-size: 14px;
  line-height: 1.35;
}

.history-center-metric strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 31px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -.025em;
  white-space: nowrap;
}

.history-center-summary aside {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border-color: #80400e;
  background: linear-gradient(115deg, #211914, #241812);
  padding: 18px 20px;
}

.history-center-flow-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--history-accent);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
}

.history-center-summary aside strong {
  display: block;
  color: #f3e4d7;
  font-size: 14px;
  font-weight: 700;
}

.history-center-summary aside span {
  display: block;
  margin-top: 7px;
  color: #c7ad9e;
  font-size: 13px;
  line-height: 1.75;
}

.history-center-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.9fr) repeat(4, minmax(128px, .68fr)) auto auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.history-center-filters label { min-width: 0; }

.history-center-filters input,
.history-center-filters select {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  border: 1px solid #45413d;
  border-radius: 6px;
  outline: none;
  background: #181816;
  color: #eeeae4;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
}

.history-center-filters select { appearance: auto; cursor: pointer; }
.history-center-filters input::placeholder { color: #969189; }

.history-center-filters input:focus,
.history-center-filters select:focus {
  border-color: #d8631c;
  box-shadow: 0 0 0 2px rgb(255 106 22 / 16%);
}

.history-center-search input {
  padding-left: 43px;
  background: #181816 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%239f9a92' stroke-width='1.8'%3E%3Ccircle cx='7.3' cy='7.3' r='5.1'/%3E%3Cpath d='m11.2 11.2 4.2 4.2'/%3E%3C/svg%3E") 15px center/18px no-repeat;
}

.history-center-root button {
  min-height: 42px;
  padding: 0 23px;
  border: 1px solid var(--history-accent);
  border-radius: 6px;
  background: var(--history-accent);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.history-center-root button:hover:not(:disabled) {
  border-color: var(--history-accent-strong);
  background: var(--history-accent-strong);
}

.history-center-root button:active:not(:disabled) { transform: translateY(1px); }

.history-center-root button.secondary,
.history-center-root button:disabled {
  border-color: #54514c;
  background: #1d1d1a;
  color: #ded8d0;
}

.history-center-root button.secondary:hover:not(:disabled) {
  border-color: #77716a;
  background: #282724;
}

.history-center-root button:disabled { cursor: not-allowed; opacity: .55; }

.history-center-results {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--history-line);
  border-radius: 8px;
  background: var(--history-panel);
}

.history-center-table-wrap { flex: 1; overflow: auto; }

.history-center-results table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
}

.history-center-results th {
  height: 50px;
  padding: 0 17px;
  border-bottom: 1px solid #30353b;
  background: #20201e;
  color: #bbb6af;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.history-center-results th:first-child { min-width: 260px; }
.history-center-results th:nth-child(2) { min-width: 118px; }
.history-center-results th:nth-child(3) { min-width: 144px; }
.history-center-results th:nth-child(4) { min-width: 155px; }
.history-center-results th:nth-child(5) { min-width: 98px; }
.history-center-results th:nth-child(6) { min-width: 100px; }
.history-center-results th:last-child { min-width: 220px; }

.history-center-results td {
  height: 76px;
  padding: 9px 17px;
  border-bottom: 1px solid #2d2d2a;
  color: #e3ded7;
  font-size: 14px;
  vertical-align: middle;
}

.history-center-results tbody tr:last-child td { border-bottom: 0; }
.history-center-results tbody tr:hover td { background: rgb(255 255 255 / 1.5%); }

.history-center-product {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 230px;
}

.history-center-product strong {
  display: block;
  max-width: 240px;
  overflow: hidden;
  color: #f5f2ec;
  font-size: 15px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-center-product small,
.history-center-deadline + small,
.history-center-results td small {
  display: block;
  margin-top: 5px;
  color: #918c85;
  font-size: 12px;
  line-height: 1.25;
}

.history-center-thumb {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border: 1px solid #3c3a36;
  border-radius: 6px;
  background: #282825;
}

.history-center-thumb img { width: 100%; height: 100%; object-fit: cover; }
.history-center-thumb-empty { color: #a8a39b; font-size: 12px; }

.history-center-source,
.history-center-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 30px;
  padding: 0 10px;
  border-radius: 5px;
  background: #2a2926;
  color: #ddd7d0;
  font-size: 13px;
  white-space: nowrap;
}

.history-center-source.source-main,
.history-center-source.source-batch { background: #542b08; color: #ffab68; }
.history-center-source.source-sku { background: #2c2b28; color: #d6d0c8; }
.history-center-source.source-canvas { background: #2a332a; color: #a6d0a6; }
.history-center-source.source-suite { background: #3a2a22; color: #dfb08f; }

.history-center-deadline { display: block; font-size: 14px; font-weight: 650; }
.history-center-deadline.due_soon,
.history-center-deadline.today,
.history-center-deadline.overdue { color: var(--history-danger); }
.history-center-deadline.scheduled { color: #ffbf7b; }
.history-center-deadline.muted { color: #a8a29a; font-weight: 400; }

.history-center-status.completed { color: var(--history-green); }
.history-center-status.partial { color: #ffc278; }
.history-center-status.failed,
.history-center-status.cancelled { color: #ff9788; }

.history-center-actions { display: flex; gap: 10px; white-space: nowrap; }
.history-center-actions button { min-height: 36px; padding: 0 15px; font-size: 13px; }

.history-center-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 18px;
  border-top: 1px solid #30353b;
  color: #aaa59e;
  font-size: 14px;
}

.history-center-pagination > div { display: flex; align-items: center; gap: 8px; }
.history-center-pagination button { min-width: 34px; min-height: 34px; padding: 0; }
.history-center-pagination strong { min-width: 64px; color: #eee9e1; font-weight: 600; text-align: center; }

.history-center-empty {
  display: grid;
  min-height: 360px;
  flex: 1;
  place-items: center;
  align-content: center;
  padding: 32px;
  color: #9e9991;
  text-align: center;
}

.history-center-empty strong { color: #f1ede6; font-size: 16px; }

.history-center-empty p {
  max-width: 460px;
  margin: 9px 0 16px;
  font-size: 13px;
  line-height: 1.7;
}

.history-center-empty.is-error strong { color: #ff9b89; }

.history-center-dialog {
  box-sizing: border-box;
  width: min(900px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 72px));
  padding: 0;
  border: 1px solid #49453f;
  border-radius: 10px;
  background: #1b1b19;
  color: #eee9e2;
  box-shadow: 0 24px 70px rgb(0 0 0 / 72%);
}

.history-center-dialog::backdrop { background: rgb(0 0 0 / 70%); }

.history-center-dialog header,
.history-center-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #393632;
}

.history-center-dialog footer { justify-content: flex-end; border-top: 1px solid #393632; border-bottom: 0; }
.history-center-dialog header span { color: var(--history-accent); font-size: 12px; }
.history-center-dialog h2 { margin: 3px 0 0; font-size: 19px; }

.history-center-dialog header button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c5beb6;
  font-size: 27px;
}

.history-center-dialog-body { max-height: calc(100vh - 230px); overflow: auto; padding: 18px; }

.history-center-dialog dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 0 18px;
}

.history-center-dialog dl div { padding: 10px; border-radius: 6px; background: #252421; }
.history-center-dialog dt { color: #9e9890; font-size: 11px; }
.history-center-dialog dd { margin: 5px 0 0; color: #f0ece5; font-size: 13px; }
.history-center-dialog h3 { margin: 18px 0 8px; font-size: 13px; }

.history-center-dialog pre {
  max-height: 130px;
  margin: 0;
  overflow: auto;
  padding: 12px;
  border-radius: 6px;
  background: #252421;
  color: #ddd7cf;
  font: 12px/1.7 inherit;
  white-space: pre-wrap;
}

.history-center-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.history-center-gallery a { display: grid; gap: 6px; color: #aaa49d; font-size: 11px; text-decoration: none; }
.history-center-gallery img { display: block; width: 100%; height: 130px; border-radius: 5px; background: #252421; object-fit: contain; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 1440px) {
  .history-center-summary { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
  .history-center-summary aside { grid-column: 1 / -1; min-height: auto; }
  .history-center-filters { grid-template-columns: minmax(230px, 1.7fr) repeat(4, minmax(110px, .75fr)) auto auto; }
}

@media (max-width: 1100px) {
  .history-center-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-center-summary aside { grid-column: 1 / -1; }
  .history-center-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .history-center-search { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .history-route-shell {
    width: 100%;
    margin-left: 0;
  }

  .history-center-root { padding: 20px 14px; }
  .history-center-heading h1 { font-size: 28px; }
  .history-center-heading p { font-size: 14px; }
  .history-center-summary { gap: 10px; }
  .history-center-summary article { min-height: 90px; padding: 13px; gap: 10px; }
  .history-center-metric > i { width: 42px; height: 42px; flex-basis: 42px; font-size: 27px; }
  .history-center-metric strong { font-size: 24px; }
  .history-center-metric span { font-size: 12px; }
  .history-center-summary aside { padding: 15px; }
  .history-center-filters { grid-template-columns: 1fr 1fr; gap: 9px; }
  .history-center-search { grid-column: 1 / -1; }
  .history-center-filters button { min-height: 40px; padding: 0 12px; }
  .history-center-dialog dl { grid-template-columns: repeat(2, 1fr); }
}

/* History route refresh: keep the application shell untouched and style only
   the content mounted by history-center.js. */
.history-route-shell {
  --history-bg: #121823;
  --history-grid: rgb(148 163 184 / 7%);
  --history-panel: rgb(29 38 52 / 70%);
  --history-panel-raised: rgb(35 46 62 / 78%);
  --history-panel-deep: rgb(18 25 36 / 84%);
  --history-line: rgb(148 163 184 / 18%);
  --history-line-strong: rgb(148 163 184 / 28%);
  --history-text: #edf4ff;
  --history-muted: #a6b4c7;
  --history-accent: #ff6b1a;
  --history-accent-strong: #f47a31;
  --history-danger: #ef7180;
  --history-green: #1b9c79;
  background-color: var(--history-bg);
  background-image:
    linear-gradient(var(--history-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--history-grid) 1px, transparent 1px),
    radial-gradient(circle at 82% 0%, rgb(37 99 235 / 12%), transparent 30%);
  background-position: 0 0, 0 0, 0 0;
  background-size: 28px 28px, 28px 28px, auto;
}

html[data-theme="light"] .history-route-shell {
  --history-bg: #f5f8fc;
  --history-grid: rgb(71 85 105 / 5%);
  --history-panel: rgb(255 255 255 / 72%);
  --history-panel-raised: rgb(255 255 255 / 87%);
  --history-panel-deep: rgb(246 249 253 / 92%);
  --history-line: rgb(148 163 184 / 24%);
  --history-line-strong: rgb(100 116 139 / 28%);
  --history-text: #162236;
  --history-muted: #65748a;
  --history-accent: #f45d19;
  --history-accent-strong: #df4f0e;
  --history-danger: #d64057;
  --history-green: #087d61;
  background-image:
    linear-gradient(var(--history-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--history-grid) 1px, transparent 1px),
    radial-gradient(circle at 82% 0%, rgb(37 99 235 / 8%), transparent 30%);
}

.history-center-root {
  padding: 20px var(--page-gutter) 22px;
  color: var(--history-text);
}

.history-center-heading { margin: 0 0 16px; }
.history-center-heading h1 { color: var(--history-text); font-size: 30px; font-weight: 760; }
.history-center-heading p { margin-top: 7px; color: var(--history-muted); font-size: 14px; }

.history-center-summary {
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(166px, .82fr));
  gap: 12px;
  margin-bottom: 14px;
}

.history-center-summary article,
.history-center-summary aside,
.history-center-filters,
.history-center-results {
  border: 1px solid var(--history-line);
  border-radius: 17px;
  background: var(--history-panel);
  box-shadow: 0 12px 32px rgb(15 23 42 / 10%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.history-center-summary article {
  position: relative;
  min-height: 104px;
  overflow: hidden;
  background: var(--history-panel);
}

.history-center-metric { gap: 13px; padding: 17px; }
.history-center-metric > i {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border-radius: 12px;
  background: rgb(37 99 235 / 13%);
  color: #2575eb;
  font-size: 24px;
}
.history-center-metric.metric-week > i { background: rgb(244 93 25 / 12%); color: var(--history-accent); }
.history-center-metric.metric-due > i { background: rgb(126 87 194 / 14%); color: #7653ba; }
.history-center-metric.metric-storage > i { background: rgb(22 163 74 / 13%); color: #16805a; }
.history-center-metric > i svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.history-center-metric span { color: var(--history-muted); font-size: 13px; }
.history-center-metric strong { color: var(--history-text); margin-top: 7px; font-size: 29px; }

.history-center-metric.metric-total {
  isolation: isolate;
  border-color: rgb(96 165 250 / 48%);
  background:
    radial-gradient(circle at 78% 30%, rgb(111 255 149 / 82%) 0 8%, transparent 8.5%),
    radial-gradient(circle at 88% 78%, rgb(158 91 255 / 74%) 0 11%, transparent 11.5%),
    radial-gradient(circle at 61% 84%, rgb(255 121 82 / 90%) 0 13%, transparent 13.5%),
    radial-gradient(rgb(255 255 255 / 38%) 1px, transparent 1.5px),
    linear-gradient(135deg, #166be3, #2f92ff);
  background-position: 0 0, 0 0, 0 0, 72% 28%, 0 0;
  background-size: auto, auto, auto, 12px 12px, auto;
  box-shadow: 0 15px 32px rgb(37 99 235 / 24%);
}
.history-center-metric.metric-total::before,
.history-center-metric.metric-total::after { content: ""; position: absolute; z-index: -1; display: block; transform: rotate(28deg); }
.history-center-metric.metric-total::before { right: 78px; bottom: -25px; width: 92px; height: 92px; background: rgb(255 107 66 / 88%); border-radius: 22px; }
.history-center-metric.metric-total::after { right: 24px; top: -30px; width: 72px; height: 72px; background: rgb(123 90 255 / 80%); border-radius: 50% 18px 50% 18px; }
.history-center-metric.metric-total > * { position: relative; z-index: 1; }
.history-center-metric.metric-total > i { background: rgb(255 255 255 / 18%); color: #fff; }
.history-center-metric.metric-total span { color: rgb(239 247 255 / 88%); }
.history-center-metric.metric-total strong { color: #fff; }

.history-center-summary aside {
  grid-column: 1 / -1;
  min-height: auto;
  align-items: center;
  border-color: var(--history-line);
  background: var(--history-panel);
  padding: 13px 16px;
}
.history-center-flow-icon { width: 32px; height: 32px; flex-basis: 32px; border-radius: 10px; background: rgb(37 99 235 / 12%); color: #2575eb; font-family: inherit; font-size: 16px; font-style: normal; }
.history-center-summary aside strong { color: var(--history-text); }
.history-center-summary aside span { margin-top: 3px; color: var(--history-muted); line-height: 1.5; }

.history-center-filters {
  grid-template-columns: minmax(230px, 1.65fr) repeat(4, minmax(118px, .8fr)) auto auto;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px;
}
.history-center-filters input,
.history-center-filters select {
  height: 40px;
  border-color: var(--history-line);
  border-radius: 10px;
  background-color: rgb(255 255 255 / 30%);
  color: var(--history-text);
  font-size: 13px;
}
html[data-theme="light"] .history-center-filters input,
html[data-theme="light"] .history-center-filters select { background-color: rgb(255 255 255 / 66%); }
html[data-theme="light"] .history-center-filters select { color-scheme: light; }
html[data-theme="dark"] .history-center-filters input,
html[data-theme="dark"] .history-center-filters select {
  border-color: #455d7e;
  background-color: #26364b;
  color: #f4f8ff;
}
html[data-theme="dark"] .history-center-filters select { color-scheme: dark; }
html[data-theme="dark"] .history-center-filters select option {
  background-color: #182438;
  color: #f4f8ff;
}
.history-center-filters input::placeholder { color: var(--history-muted); }
.history-center-filters input:focus,
.history-center-filters select:focus { border-color: #438cf3; box-shadow: 0 0 0 3px rgb(37 117 235 / 14%); }
.history-center-search input {
  background-color: rgb(255 255 255 / 30%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2365748a' stroke-width='1.8'%3E%3Ccircle cx='7.3' cy='7.3' r='5.1'/%3E%3Cpath d='m11.2 11.2 4.2 4.2'/%3E%3C/svg%3E");
  background-position: 14px center;
  background-size: 18px;
  background-repeat: no-repeat;
}
html[data-theme="light"] .history-center-search input { background-color: rgb(255 255 255 / 66%); }

.history-center-root button { min-height: 40px; border-radius: 10px; background: var(--history-accent); border-color: var(--history-accent); font-size: 13px; }
.history-center-root button:hover:not(:disabled) { border-color: var(--history-accent-strong); background: var(--history-accent-strong); }
.history-center-root button.secondary,
.history-center-root button:disabled { border-color: var(--history-line); background: rgb(255 255 255 / 25%); color: var(--history-text); }
html[data-theme="light"] .history-center-root button.secondary,
html[data-theme="light"] .history-center-root button:disabled { background: rgb(248 250 252 / 85%); }
.history-center-root button.secondary:hover:not(:disabled) { border-color: var(--history-line-strong); background: var(--history-panel-raised); }

.history-center-results { border-radius: 17px; background: var(--history-panel); }
.history-center-table-wrap { scrollbar-color: rgb(100 116 139 / 40%) transparent; }
.history-center-results table { min-width: 1450px; }
.history-center-results th {
  height: 46px;
  padding: 0 12px;
  border-bottom-color: var(--history-line);
  background: rgb(148 163 184 / 10%);
  color: var(--history-muted);
  font-size: 12px;
  font-weight: 650;
}
.history-center-results td {
  height: 72px;
  padding: 8px 12px;
  border-bottom-color: var(--history-line);
  color: var(--history-text);
  font-size: 13px;
}
.history-center-results tbody tr:hover td { background: rgb(37 99 235 / 5%); }
.history-col-id { width: 116px; }
.history-col-title { width: 248px; }
.history-col-shop { width: 150px; }
.history-col-owner { width: 120px; }
.history-col-image { width: 106px; }
.history-col-status { width: 92px; }
.history-col-count { width: 70px; }
.history-col-duration { width: 96px; }
.history-col-finished { width: 142px; }
.history-col-actions { width: 192px; }
.history-center-results th:first-child,
.history-center-results th:nth-child(2),
.history-center-results th:nth-child(3),
.history-center-results th:nth-child(4),
.history-center-results th:nth-child(5),
.history-center-results th:nth-child(6),
.history-center-results th:last-child { min-width: 0; }
.history-center-id { color: var(--history-muted); font-family: inherit; font-size: 12px; }
.history-center-root .history-center-title { display: block; min-height: 0; max-width: 235px; overflow: hidden; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--history-text); font-size: 13px; font-weight: 650; line-height: 1.45; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.history-center-root .history-center-title:hover { background: transparent; color: #2575eb; text-decoration: underline; }
.history-center-owner { display: block; color: var(--history-text); font-size: 13px; font-weight: 600; }
.history-center-results td small { margin-top: 3px; color: var(--history-muted); font-size: 11px; }
.history-center-root .history-center-media { display: inline-flex; min-height: 0; align-items: center; gap: 5px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--history-muted); font-weight: 500; }
.history-center-root .history-center-media:hover:not(:disabled) { background: transparent; color: #2575eb; }
.history-center-media img { display: block; width: 42px; height: 42px; border: 1px solid var(--history-line); border-radius: 8px; background: var(--history-panel-deep); object-fit: cover; }
.history-center-media-empty { color: var(--history-muted); }
.history-center-status { min-width: 0; height: 24px; padding: 0 8px; border-radius: 6px; background: rgb(100 116 139 / 12%); color: var(--history-muted); font-size: 12px; }
.history-center-status.completed { background: rgb(16 185 129 / 13%); color: var(--history-green); }
.history-center-status.partial { background: rgb(245 158 11 / 13%); color: #a46105; }
.history-center-status.failed,
.history-center-status.cancelled { background: rgb(239 68 68 / 12%); color: var(--history-danger); }
.history-center-count { color: var(--history-text); font-variant-numeric: tabular-nums; }
.history-center-actions { gap: 6px; }
.history-center-actions button { min-height: 30px; padding: 0 10px; border-radius: 8px; font-size: 12px; }
.history-center-pagination { min-height: 54px; padding: 0 16px; border-top-color: var(--history-line); color: var(--history-muted); font-size: 12px; }
.history-center-pagination strong { color: var(--history-text); }
.history-center-pagination button { min-width: 30px; min-height: 30px; border-radius: 8px; }

.history-center-empty { color: var(--history-muted); }
.history-center-empty strong { color: var(--history-text); }
.history-center-empty.is-error strong { color: var(--history-danger); }
.history-center-dialog { border-color: var(--history-line); border-radius: 17px; background: var(--history-panel-raised); color: var(--history-text); box-shadow: 0 24px 70px rgb(15 23 42 / 32%); backdrop-filter: blur(18px); }
.history-center-dialog::backdrop { background: rgb(15 23 42 / 48%); }
.history-center-dialog header,
.history-center-dialog footer { border-color: var(--history-line); }
.history-center-dialog header span { color: #2575eb; }
.history-center-dialog h2,
.history-center-dialog dd { color: var(--history-text); }
.history-center-dialog header button { color: var(--history-muted); }
.history-center-dialog dl div,
.history-center-dialog pre,
.history-center-gallery img { background: var(--history-panel-deep); }
.history-center-dialog dt,
.history-center-gallery a { color: var(--history-muted); }
.history-center-dialog pre { color: var(--history-text); }

@media (max-width: 1440px) {
  .history-center-summary { grid-template-columns: minmax(240px, 1.1fr) repeat(3, minmax(145px, .85fr)); }
  .history-center-filters { grid-template-columns: minmax(210px, 1.4fr) repeat(4, minmax(104px, .8fr)) auto auto; }
}

@media (max-width: 1100px) {
  .history-center-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-center-metric.metric-total { grid-column: 1 / -1; }
  .history-center-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .history-center-search { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .history-route-shell {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
  }
  .history-center-root { padding: 16px 12px 18px; }
  .history-center-summary { grid-template-columns: 1fr; gap: 10px; }
  .history-center-metric.metric-total { grid-column: auto; }
  .history-center-summary aside { grid-column: auto; }
  .history-center-filters { grid-template-columns: 1fr 1fr; padding: 9px; gap: 8px; }
}
