:root {
  --bg: oklch(97.6% 0.006 250);
  --surface: oklch(100% 0 0);
  --ink: oklch(24% 0.025 255);
  --muted: oklch(48% 0.025 255);
  --line: oklch(90.5% 0.008 250);
  --line-strong: oklch(84% 0.012 250);
  --accent: oklch(46% 0.14 258);
  --accent-ink: oklch(99% 0 0);
  --tint: color-mix(in oklab, var(--ink) 4%, transparent);
  --radius: 8px;

  --hold-fg: oklch(44% 0.17 27);   --hold-bg: oklch(95.5% 0.035 27);
  --exam-fg: oklch(43% 0.11 68);   --exam-bg: oklch(95.5% 0.055 88);
  --rel-fg: oklch(40% 0.11 152);   --rel-bg: oklch(95.5% 0.04 152);
  --inb-fg: oklch(43% 0.13 250);   --inb-bg: oklch(95.5% 0.03 250);
  --wait-fg: oklch(43% 0.14 305);  --wait-bg: oklch(95.5% 0.03 305);
  --ent-fg: oklch(40% 0.09 195);   --ent-bg: oklch(95.5% 0.03 195);
  --na-fg: oklch(45% 0.02 255);    --na-bg: oklch(94% 0.008 255);
  --err-fg: oklch(32% 0.03 255);   --err-bg: oklch(90% 0.01 255);

  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 14px/1.5 var(--sans); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
::selection { background: color-mix(in oklab, var(--accent) 24%, white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }

.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1480px; margin: 0 auto; padding: 18px 28px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
h1 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }
.top-sub { margin: 0; color: var(--muted); }
.badge-mock { margin-left: auto; background: var(--exam-bg); color: var(--exam-fg); font-weight: 600; font-size: 12px; padding: 3px 10px; border-radius: 99px; }

.lang {
  position: fixed; top: 50%; right: 0; transform: translateY(-50%); z-index: 100;
  display: flex; flex-direction: column; width: 38px;
  border: 1px solid var(--line-strong); border-right: 0; border-radius: 8px 0 0 8px; overflow: hidden;
  background: var(--surface); box-shadow: -2px 2px 10px color-mix(in oklab, var(--ink) 14%, transparent);
}
.lang button { font: inherit; font-size: 12.5px; font-weight: 600; padding: 9px 0; background: var(--surface); color: var(--muted); border: 0; cursor: pointer; }
.lang button + button { border-top: 1px solid var(--line-strong); }
.lang button[aria-pressed="true"] { background: var(--ink); color: white; }
.lang button:hover:not([aria-pressed="true"]) { background: var(--tint); color: var(--ink); }
.lang button:focus-visible { outline-offset: -3px; }
.neg { color: var(--hold-fg); }

main { max-width: 1480px; margin: 0 auto; padding: 24px 52px 64px 28px; }

.input-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.input-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
label { font-weight: 600; display: block; margin-bottom: 6px; }
textarea {
  width: 100%; resize: vertical; min-height: 120px; padding: 10px 12px; font: 14px/1.6 var(--mono);
  color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 6px;
}
textarea:focus { background: var(--surface); outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
textarea::placeholder { color: oklch(68% 0.01 255); font-family: var(--font-sans, system-ui, sans-serif); font-style: italic; font-size: 13px; opacity: 1; }
.parse-line { min-height: 22px; margin-top: 8px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.parse-line b { color: var(--ink); font-weight: 650; }
.parse-line .warn { color: var(--exam-fg); }
.parse-line .bad { color: var(--hold-fg); }
.parse-issues { margin: 6px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 12.5px; display: flex; flex-direction: column; gap: 2px; }
.parse-issues li { font-family: var(--mono); }
.parse-issues .i-bad { color: var(--hold-fg); }
.parse-issues .i-warn { color: var(--exam-fg); }
.actions { display: flex; flex-direction: column; gap: 10px; padding-top: 26px; }
.hint { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; max-width: 36ch; }

.btn {
  font: inherit; font-weight: 600; padding: 8px 16px; border-radius: 6px; cursor: pointer;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong);
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover:not(:disabled) { background: var(--tint); border-color: color-mix(in oklab, var(--ink) 30%, var(--line-strong)); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); padding: 10px 16px; }
.btn.primary:hover:not(:disabled) { background: color-mix(in oklab, var(--accent) 88%, black); }
.btn.sm { padding: 3px 10px; font-size: 12.5px; }

.results { margin-top: 28px; }
.progress { display: flex; align-items: center; gap: 12px; min-height: 28px; margin-bottom: 14px; color: var(--muted); }
.bar { flex: 0 0 220px; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s cubic-bezier(.22,1,.36,1); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fchip {
  font: inherit; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 10px; border-radius: 99px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); font-weight: 550;
}
.fchip .n { font-weight: 700; }
.fchip[aria-pressed="true"] { background: var(--ink); color: white; border-color: var(--ink); }
.fchip:hover:not([aria-pressed="true"]) { background: var(--tint); }
.fchip.zero { opacity: .45; }
.fchip svg { width: 14px; height: 14px; }

.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.collapsed-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.collapsed-bar span { color: var(--muted); }
.collapsed-bar { cursor: pointer; }
.collapsed-bar b { color: var(--ink); }
.input-block.collapsed { padding: 12px 20px; }
.search { flex: 1 1 320px; max-width: 440px; }
.search input {
  font: inherit; width: 100%; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink);
}
.search input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.search { margin: 0; font-weight: 400; }
.toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; min-width: 1120px; }
.grid th {
  text-align: left; font-weight: 600; font-size: 12.5px; color: var(--muted); padding: 10px 9px; background: var(--bg);
  border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0;
}
.grid th button { font: inherit; font-weight: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.grid th button:hover { color: var(--ink); }
.grid td { padding: 11px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid tr.main-row { cursor: pointer; }
.grid tr.main-row:hover td { background: color-mix(in oklab, var(--ink) 2.5%, transparent); }
.grid tr.main-row.open td { background: color-mix(in oklab, var(--accent) 4%, transparent); border-bottom-color: transparent; }
.grid tr.detail-row > td { padding: 0; background: color-mix(in oklab, var(--accent) 4%, transparent); }
.grid tbody tr:last-child td { border-bottom: 0; }

.mawb { font-family: var(--mono); font-weight: 650; font-size: 14px; letter-spacing: .01em; white-space: nowrap; }
.sub { color: var(--muted); font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.expander { all: unset; cursor: pointer; display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 4px; color: var(--muted); }
.expander:hover { background: var(--tint); color: var(--ink); }
.expander svg { width: 14px; height: 14px; transition: transform .18s cubic-bezier(.22,1,.36,1); }
.open .expander svg { transform: rotate(90deg); }

.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 99px;
  font-weight: 650; font-size: 12.5px; white-space: nowrap; line-height: 1.6;
}
.chip svg { width: 13px; height: 13px; flex: none; }
.s-HOLD { background: var(--hold-bg); color: var(--hold-fg); }
.s-EXAM { background: var(--exam-bg); color: var(--exam-fg); }
.s-RELEASED { background: var(--rel-bg); color: var(--rel-fg); }
.s-INBOND { background: var(--inb-bg); color: var(--inb-fg); }
.s-AWAITING { background: var(--wait-bg); color: var(--wait-fg); }
.s-ENTERED { background: var(--ent-bg); color: var(--ent-fg); }
.s-NOT_ARRIVED { background: var(--na-bg); color: var(--na-fg); }
.s-NOT_FOUND, .s-ERROR { background: var(--err-bg); color: var(--err-fg); }
.s-PENDING { background: var(--na-bg); color: var(--na-fg); }

.c-light { width: 44px; text-align: center; padding-left: 8px; padding-right: 0; }
.grid th:first-child { text-align: center; padding-left: 8px; padding-right: 0; }
.light { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-top: 3px; background: var(--c); box-shadow: 0 0 0 3px color-mix(in oklab, var(--c) 20%, transparent); }
.light { --c: #f5b800; }
.l-HOLD { --c: #ff1f1f; }
.l-RELEASED { --c: #00c853; }
.l-PENDING { background: transparent; border: 2px solid var(--line-strong); box-shadow: none; }
.pct { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 600; }
.pct-n { min-width: 3.4ch; text-align: right; font-variant-numeric: tabular-nums; }
.pct-bar { display: block; width: 64px; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; flex: none; }
.pct-bar > i { display: block; height: 100%; border-radius: 99px; background: currentColor; }
.pct.full { color: var(--rel-fg); }
.pct.part { color: var(--exam-fg); }
.pct.over { color: var(--inb-fg); }
.pct.zero { color: var(--na-fg); }
.mix { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; color: var(--muted); }
.mix span { white-space: nowrap; }
.mix b { font-weight: 700; color: var(--ink); }

.tags { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 1px 7px; border-radius: 4px; line-height: 1.6; }
.tag svg { width: 12px; height: 12px; flex: none; }
.tag.danger { background: var(--hold-bg); color: var(--hold-fg); }
.tag.warn { background: var(--exam-bg); color: var(--exam-fg); }
.tag.info { background: var(--na-bg); color: var(--na-fg); }
.ok { color: var(--rel-fg); }
.warn-t { color: var(--exam-fg); font-weight: 600; }

.spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid color-mix(in oklab, var(--muted) 30%, transparent); border-top-color: var(--muted); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } .bar > i, .expander svg { transition: none; } }

.detail { padding: 16px 20px 20px 54px; display: grid; gap: 18px; }
.detail p { margin: 0; }
.detail h3 { margin: 0 0 8px; font-size: 13px; font-weight: 650; color: var(--muted); }
.explain { margin: 0; max-width: 90ch; font-size: 14px; }
.mini { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.mini th { font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; padding: 6px 10px; background: var(--bg); border-bottom: 1px solid var(--line); white-space: nowrap; }
.mini td { padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mini tr:last-child td { border-bottom: 0; }
.mini .mono, .mono { font-family: var(--mono); font-size: 13px; }
.mini-wrap { overflow-x: auto; }
.house-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.house-tools input { font: inherit; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 6px; width: 220px; }
.house-tools select { font: inherit; padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); }
.pager { display: flex; gap: 8px; align-items: center; margin-top: 8px; color: var(--muted); }
.timeline { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.timeline li { display: grid; grid-template-columns: 112px 40px 1fr; gap: 10px; padding: 2px 0; }
.timeline .code { font-family: var(--mono); font-weight: 650; }
.timeline .code.hold { color: var(--hold-fg); }
.timeline .code.rel { color: var(--rel-fg); }
.hk { color: var(--muted); }
.err-line { color: var(--hold-fg); }

.empty { padding: 36px; text-align: center; color: var(--muted); margin: 0; }
.foot { color: var(--muted); font-size: 12.5px; margin: 14px 2px 0; max-width: 100ch; }

@media (max-width: 860px) {
  main { padding: 16px 48px 48px 14px; }
  .top-inner { padding: 14px; }
  .input-grid { grid-template-columns: 1fr; gap: 12px; }
  .actions { flex-direction: row; flex-wrap: wrap; align-items: center; padding-top: 0; }
  .hint { flex-basis: 100%; max-width: none; }
  .detail { padding: 14px 14px 18px; }
  .bar { flex-basis: 120px; }
}

.split.yes { font-weight: 650; color: var(--inb-fg); }
.split.no { color: var(--muted); }

.part-events + .part-events { margin-top: 14px; }
.detail h4 { margin: 0 0 6px; font-size: 13px; font-weight: 650; }

.parts-total td { font-weight: 600; border-top: 2px solid var(--line-strong); }
.mawb { user-select: all; cursor: text; }
.grid td { user-select: text; }

.nav-link { text-decoration: none; padding: 5px 12px; font-size: 13px; }
.ports-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.ports-tabs button { font: inherit; padding: 7px 16px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--surface); cursor: pointer; font-weight: 550; }
.ports-tabs button[aria-selected="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.ports-tabs .n { font-weight: 400; opacity: .8; }
.ports-tools { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.ports-tools .search { flex: 0 1 360px; }
.ports-check, .ports-editor { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; }
.ports-editor input { font: inherit; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); width: 160px; }
.ports-hint { margin: 0 0 12px; }
.ports-grid td { vertical-align: top; }
.ports-full { color: var(--muted); }
.ports-input { font: inherit; width: 100%; min-width: 220px; padding: 5px 9px; border: 1px solid transparent; border-radius: 6px; background: color-mix(in oklab, var(--ink) 3.5%, transparent); }
.ports-input:hover { border-color: var(--line-strong); }
.ports-input:focus { outline: 2px solid var(--accent); outline-offset: 0; background: var(--surface); border-color: var(--accent); }
.ports-msg { font-size: 12px; min-height: 0; margin-top: 2px; color: var(--muted); }
.ports-msg.ok { color: var(--rel-fg); }
.ports-msg.bad { color: var(--hold-fg); }
.ports-old { color: var(--muted); text-decoration: line-through; }


.batch-tag { margin-left: 8px; padding: 2px 10px; border-radius: 99px; background: color-mix(in oklab, var(--ink) 6%, transparent); color: var(--ink); font-size: 12.5px; font-weight: 550; }
.batch-tag:empty { display: none; }
.batch-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.batch-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.batch-row:last-child { border-bottom: 0; }
.batch-row.current { background: color-mix(in oklab, var(--accent) 5%, transparent); }
.batch-main { all: unset; flex: 1; min-width: 0; display: grid; gap: 3px; cursor: pointer; padding: 4px 0; }
.batch-main:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.batch-name { font-weight: 600; }
.batch-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.bchip { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; }
.batch-acts { display: flex; gap: 6px; flex: none; }
.batch-edit { flex: 1; display: flex; gap: 8px; align-items: center; }
.batch-edit input { flex: 1; font: inherit; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); }
.batch-err { font-size: 12px; }
.batch-empty { padding: 20px; text-align: center; }

.batch-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.batch-filters .search { flex: 1 1 220px; max-width: 320px; }
.batch-date { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.batch-date input { font: inherit; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink); }

.batch-panel { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; }
.batch-panel .batch-head { font-weight: 650; font-size: 15px; }
.batch-panel .batch-more { display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 10px; padding: 6px 2px; border: 0; background: transparent; color: var(--accent, #2f5bd1); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; text-align: left; }
.batch-panel .batch-more::before { content: "\25B8"; font-size: 11px; }
.batch-panel .batch-more[aria-expanded="true"]::before { content: "\25BE"; }
.batch-panel .batch-more:hover { text-decoration: underline; }
.batch-panel .batch-more-body[hidden] { display: none; }
.batch-panel .batch-total { font-weight: 400; color: var(--muted); }
.batch-panel .batch-datebar .btn { margin: 0; height: 34px; display: inline-flex; align-items: center; }
.batch-panel .batch-range { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px; color: var(--muted); }
.batch-panel .batch-range input { font: inherit; font-size: 14px; color: var(--muted); border: 0; background: transparent; padding: 0; outline: 0; width: 8.5em; }
.batch-panel .batch-range:focus-within { border-color: var(--accent); }
.batch-panel .batch-range-sep { padding: 0 4px; }
.batch-panel .batch-recent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.batch-panel .batch-recent:empty { display: none; }
.batch-chip { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; height: 30px; padding: 0 10px; border: 1px solid var(--line-strong, #ccc); border-radius: 99px; background: var(--surface, #fff); color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.batch-chip:hover { background: color-mix(in srgb, currentColor 7%, transparent); }
.batch-chip.current, .batch-chip.current:hover { border-color: var(--accent, var(--focus, #2f5bd1)); background: var(--accent, var(--focus, #2f5bd1)); color: var(--accent-ink, #fff); }
.batch-chip.current .batch-chip-n { color: inherit; opacity: .85; }
.batch-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-chip-n { color: var(--muted, #777); font-size: 12px; }
.batch-panel .batch-range { cursor: pointer; }
.batch-panel .batch-range input { cursor: pointer; width: 6.5em; }

.rp-pop { position: fixed; z-index: 1000; background: var(--surface, #fff); color: var(--ink, #222); border: 1px solid var(--line-strong, #ccc); border-radius: 8px; box-shadow: 0 8px 28px rgba(0, 0, 0, .18); padding: 14px 16px 12px; font-size: 14px; font-weight: 400; max-width: calc(100vw - 16px); }
.rp-pop[hidden] { display: none; }
.rp-head { display: flex; justify-content: space-between; margin-bottom: -30px; position: relative; z-index: 1; }
.rp-nav { width: 30px; height: 30px; border: 1px solid var(--line-strong, #ccc); border-radius: 6px; background: var(--surface, #fff); color: inherit; cursor: pointer; font-size: 15px; line-height: 1; }
.rp-nav:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.rp-months { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.rp-title { text-align: center; font-weight: 600; height: 30px; line-height: 30px; margin-bottom: 8px; }
.rp-grid { display: grid; grid-template-columns: repeat(7, 34px); gap: 2px; }
.rp-wd { text-align: center; font-size: 12px; color: var(--muted, #777); height: 24px; line-height: 24px; }
.rp-cell { height: 32px; }
.rp-day { border: 0; background: transparent; color: inherit; font: inherit; border-radius: 6px; cursor: pointer; padding: 0; }
.rp-day:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.rp-day.rp-today { font-weight: 700; box-shadow: inset 0 0 0 1px var(--accent, var(--focus, #2f5bd1)); }
.rp-day.rp-in { background: color-mix(in srgb, var(--accent, var(--focus, #2f5bd1)) 16%, transparent); border-radius: 0; }
.rp-day.rp-pv { background: color-mix(in srgb, var(--accent, var(--focus, #2f5bd1)) 16%, transparent); border-radius: 0; }
.rp-day.rp-pv-end, .rp-day.rp-start, .rp-day.rp-end { background: var(--accent, var(--focus, #2f5bd1)); color: #fff; border-radius: 6px; }
.rp-presets { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line, #ddd); }
.rp-preset { flex: 1; height: 34px; border: 1px solid var(--accent, var(--focus, #2f5bd1)); border-radius: 6px; background: transparent; color: var(--accent, var(--focus, #2f5bd1)); font: inherit; cursor: pointer; }
.rp-preset:hover { background: color-mix(in srgb, var(--accent, var(--focus, #2f5bd1)) 10%, transparent); }
.batch-panel .batch-datebar { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; display: flex; font-weight: 400; text-transform: none; letter-spacing: 0; cursor: default; }
.batch-panel .batch-sub { margin: 6px 0 10px; }
.batch-panel .batch-filters { margin-bottom: 10px; }
.batch-panel .batch-list { max-height: 270px; }

.report-links { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.report-links .btn { text-decoration: none; }

.xc-th .xc-refresh { font: inherit; margin-left: 4px; padding: 0 5px; line-height: 1.3; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); color: inherit; cursor: pointer; }
.xc-th .xc-refresh:hover:not(:disabled) { color: var(--ink); border-color: var(--ink); }
.xc-th .xc-refresh:disabled { cursor: progress; opacity: .6; }
.xc-th .xc-refresh.busy { animation: xc-spin 1s linear infinite; }
@keyframes xc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .xc-th .xc-refresh.busy { animation: none; } }
.xc-s { font-weight: 600; }
