:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #111827;
  --muted: #667085;
  --subtle: #98a2b3;
  --line: #e4e9f1;
  --line-strong: #d3dae6;
  --blue: #2563eb;
  --blue-dark: #1749b0;
  --blue-soft: #eaf1ff;
  --green: #0f9f6e;
  --red: #d92d20;
  --amber: #b54708;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 30px rgba(16, 24, 40, .05);
  --radius: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% -20%, rgba(37, 99, 235, .08), transparent 32rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Thai", "Leelawadee UI", Tahoma, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, label, select, input[type="file"] { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 12px;
  top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  transform: translateY(calc(-100% - 24px));
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

.shell { width: min(1400px, calc(100% - 48px)); margin: 0 auto; }

.masthead {
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.masthead-inner { display: flex; align-items: center; justify-content: space-between; }

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(20px, 1.75vw, 24px);
  font-weight: 750;
  letter-spacing: -.04em;
}
.brand-name { display: block; }

.header-meta { display: flex; align-items: center; gap: 20px; }
.locale-switcher { display: inline-flex; align-items: center; }
.locale-switcher select {
  min-height: 34px;
  max-width: 108px;
  padding: 0 26px 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 650;
  outline: none;
}
.locale-switcher select:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.system-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.system-status i { width: 8px; height: 8px; border-radius: 50%; background: #f79009; box-shadow: 0 0 0 4px #fff4e5; }
.system-status.is-ready i { background: var(--green); box-shadow: 0 0 0 4px #e8f7f1; }
.system-status.is-error i { background: var(--red); box-shadow: 0 0 0 4px #feeceb; }
.system-status.is-ready > span { display: none; }
.task-log-link, .logout-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, opacity .16s ease, transform .16s ease;
}
.task-log-link:hover, .logout-link:hover:not([aria-disabled="true"]) { color: var(--ink); border-bottom-color: #b7c2d2; }
.task-log-link:active, .logout-link:active:not([aria-disabled="true"]) { transform: translateY(1px); }
.logout-link[aria-disabled="true"] { cursor: wait; opacity: .48; pointer-events: none; }

.tab-bar { position: sticky; top: 0; z-index: 20; background: rgba(245, 247, 251, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.tabs { height: 54px; display: flex; align-items: stretch; gap: 30px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  flex: 0 0 auto;
  border: 0;
  padding: 0 2px;
  background: transparent;
  color: var(--muted);
  font-weight: 650;
  cursor: pointer;
}
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 4px 4px 0 0; background: var(--blue); transform: scaleX(0); transition: transform .18s ease; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--blue); }
.tab.is-active::after { transform: scaleX(1); }

.page { padding-top: 38px; padding-bottom: 72px; }
.tabpanel { animation: panel-in .24s ease both; }
.tabpanel[hidden] { display: none; }
#panel-bi { margin-top: -20px; }
@keyframes panel-in { from { opacity: 0; transform: translateY(5px); } }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.section-heading h1 { margin: 1px 0 6px; font-size: clamp(27px, 2.4vw, 36px); line-height: 1.15; letter-spacing: -.045em; }
.section-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 14px; }
.eyebrow, .step-label { margin: 0; color: var(--blue); font-size: 10px; line-height: 1.4; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px 0; }
.panel-heading h2 { margin: 4px 0 0; font-size: 18px; line-height: 1.3; letter-spacing: -.025em; }

.daily-overview { display: grid; grid-template-columns: minmax(320px, 1.55fr) repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; margin-bottom: 20px; }
.daily-overview > * { min-width: 0; }
.upload-panel { min-height: 0; overflow: hidden; border-color: #dbe3ef; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 18px 44px rgba(31, 51, 82, .07); }
.daily-overview > .metric-card { align-self: stretch; display: flex; flex-direction: column; justify-content: center; height: auto; min-height: 0; padding: 24px 22px; }
.daily-overview > .metric-card::after { right: -24px; bottom: -30px; width: 82px; height: 82px; border-width: 12px; }
.upload-heading { align-items: center; padding: 24px 28px 0; }
.upload-heading h2 { margin-top: 0; font-size: 20px; letter-spacing: -.03em; }
.process-panel { min-height: 640px; overflow: hidden; }
.dropzone {
  position: relative;
  min-height: 190px;
  margin: 18px 28px 0;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #9fb5dc;
  border-radius: 14px;
  background: #f8fbff;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--blue); background: #f2f6ff; box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .08); }
.dropzone.is-disabled { cursor: not-allowed; opacity: .63; box-shadow: none; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone strong { margin-top: 10px; font-size: 15px; }
.dropzone > span:not(.upload-glyph) { margin-top: 3px; color: var(--muted); font-size: 12px; }
.dropzone em { max-width: 90%; margin-top: 12px; overflow: hidden; color: var(--blue); font-size: 12px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.upload-glyph { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #cfddf7; border-radius: 12px; color: var(--blue); background: #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, .08); }
.upload-glyph svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.upload-progress { margin: 16px 28px 0; padding: 12px 14px 13px; border: 1px solid #e2e8f2; border-radius: 10px; background: #fbfcfe; }
.upload-progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.upload-progress-meta strong { color: var(--ink); font-size: 11px; font-variant-numeric: tabular-nums; }
.upload-progress-track { height: 6px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: #e8eef9; }
.upload-progress-track span { width: 100%; height: 100%; display: block; border-radius: inherit; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .32s ease, background-color .18s ease; }
.upload-progress.is-success .upload-progress-track { background: #e8f7f1; }
.upload-progress.is-success .upload-progress-track span { background: var(--green); }
.upload-progress.is-error { border-color: #f3d0cc; background: #fff9f8; }
.upload-progress.is-error .upload-progress-track { background: #fbe5e2; }
.upload-progress.is-error .upload-progress-track span { background: var(--red); }

.primary-button {
  min-height: 44px;
  margin: 0 24px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(37, 99, 235, .18);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.upload-footer { min-height: 70px; margin: 0 28px; padding: 15px 0 20px; display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.upload-panel .primary-button { width: auto; min-width: 118px; min-height: 40px; margin: 0; padding: 0 18px; border-radius: 9px; font-size: 13px; box-shadow: 0 4px 12px rgba(37, 99, 235, .16); white-space: nowrap; }
.primary-button:hover:not(:disabled) { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 9px 22px rgba(37, 99, 235, .23); }
.primary-button:disabled { cursor: not-allowed; color: #8a94a6; background: #e8ecf3; box-shadow: none; }
.primary-button.compact { margin: 20px 0 0; white-space: nowrap; }
.service-hint { min-width: 0; min-height: 18px; margin: 0; flex: 1 1 auto; color: var(--muted); font-size: 12px; }

.trace-heading { align-items: center; }
.trace-terminal-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.trace-live-state { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; font-weight: 700; white-space: nowrap; }
.trace-live-state.is-live, .trace-live-state.is-running { color: #175cd3; }
.trace-live-state.is-complete, .trace-live-state.is-success { color: #087a55; }
.trace-live-state.is-review { color: #9a4b0a; }
.trace-live-state.is-error { color: #b42318; }
.trace-refresh-button { min-height: 30px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 4px; color: #344054; background: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; font-weight: 700; cursor: pointer; }
.trace-refresh-button:hover:not(:disabled) { border-color: #98a2b3; background: #f9fafb; }
.trace-refresh-button:disabled { cursor: not-allowed; opacity: .45; }

.trace-log-frame { margin: 0 24px 24px; overflow: hidden; border: 1px solid #30363d; border-radius: 6px; background: #080b10; }
.trace-log-heading { min-height: 34px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #30363d; color: #8b949e; background: #11161d; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; }
.trace-log-heading > span { font-variant-numeric: tabular-nums; }
.trace-log { min-height: 440px; max-height: 560px; margin: 0; padding: 15px 16px 20px; overflow: auto; color: #d1d5db; background: #080b10; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; font-variant-ligatures: none; line-height: 1.65; tab-size: 2; white-space: pre; overscroll-behavior: contain; scrollbar-color: #444c56 #080b10; scrollbar-gutter: stable; }
.trace-log::selection { color: #fff; background: #264f78; }
.task-log-dialog { width: min(1040px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--surface); box-shadow: 0 28px 80px rgba(16, 24, 40, .28); }
.task-log-dialog::backdrop { background: rgba(15, 23, 42, .46); backdrop-filter: blur(3px); }
.task-log-dialog[open] { animation: panel-in .18s ease both; }
.task-log-panel { min-height: 0; border: 0; box-shadow: none; }
.task-log-dialog .trace-log { height: min(560px, calc(100dvh - 190px)); min-height: 320px; max-height: none; }

.metric-grid { display: grid; gap: 16px; margin: 20px 0; }
.bi-metrics { grid-template-columns: repeat(4, 1fr); margin-top: 0; }
.metric-card { position: relative; min-height: 128px; padding: 21px 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.metric-card::after { content: ""; position: absolute; right: -28px; bottom: -40px; width: 100px; height: 100px; border: 16px solid rgba(37, 99, 235, .035); border-radius: 50%; }
.metric-card > span { display: block; color: var(--muted); font-size: 11px; font-weight: 720; letter-spacing: .06em; }
.metric-card strong { position: relative; z-index: 1; display: block; margin-top: 9px; font-size: clamp(24px, 2vw, 31px); line-height: 1.1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.metric-card small { position: relative; z-index: 1; display: block; margin-top: 8px; color: var(--subtle); font-size: 11px; }
.accent-card { color: #fff; border-color: var(--blue); background: linear-gradient(135deg, #2868ed, #1649bb); }
.accent-card > span, .accent-card small { color: rgba(255, 255, 255, .78); }
.accent-card::after { border-color: rgba(255, 255, 255, .08); }

.table-panel { overflow: hidden; }
.table-heading { align-items: center; flex-wrap: wrap; padding-bottom: 18px; }
.history-heading-actions { min-width: 0; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px 12px; }
.history-month-control { min-width: 0; display: inline-flex; align-items: center; gap: 5px; }
.history-month-label { margin-right: 2px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .035em; white-space: nowrap; }
.history-month-field { width: 128px; flex: 0 0 auto; }
.history-month-field input { width: 100%; min-height: 34px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: #fff; font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; }
.history-month-step, .history-month-current, .history-empty-jump { min-height: 34px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--muted); background: #fff; font-size: 11px; font-weight: 700; cursor: pointer; }
.history-month-step { width: 32px; padding: 0; font-size: 18px; line-height: 1; }
.history-month-current { padding: 0 10px; }
.history-month-step:hover:not(:disabled), .history-month-current:hover:not(:disabled), .history-empty-jump:hover { color: var(--blue); border-color: #a9c1f5; background: var(--blue-soft); }
.history-month-step:disabled, .history-month-current:disabled { color: var(--subtle); background: #f3f5f8; cursor: not-allowed; opacity: .7; }
.history-empty-content { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 12px; }
.history-empty-jump { min-height: 30px; padding: 0 9px; color: var(--blue); }
.monthly-history-panel { border-color: #dbe3ef; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 18px 44px rgba(31, 51, 82, .06); }
.monthly-panel-toolbar { min-height: 52px; padding: 12px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.monthly-panel-title { margin: 0; color: var(--ink); font-size: 18px; line-height: 1.3; letter-spacing: -.025em; }
.monthly-panel-toolbar .trace-live-state { display: inline-flex; align-items: center; gap: 7px; min-height: 26px; padding: 0 9px; border: 1px solid #dbe6f8; border-radius: 999px; background: #fff; }
.monthly-panel-toolbar .trace-live-state::before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(37, 99, 235, .09); }
.monthly-history-panel .table-scroll { border-top: 0; }
.monthly-table { min-width: 820px; }
.monthly-table th, .monthly-table td { padding-left: 22px; padding-right: 22px; }
.monthly-table th:first-child, .monthly-table td:first-child { width: 18%; }
.monthly-table th:last-child, .monthly-table td:last-child { width: 12%; }
.text-button { min-height: 34px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--muted); font-weight: 650; cursor: pointer; }
.text-button:hover { color: var(--blue); border-color: #a9c1f5; }
.download-link { color: var(--blue); font-size: 12px; font-weight: 700; text-decoration: none; }
.download-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.table-scroll { overflow: auto; border-top: 1px solid var(--line); }
.pagination-bar { min-height: 58px; padding: 11px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); background: #fbfcfe; }
.pagination-summary, .pagination-page { color: var(--muted); font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; }
.pagination-actions { display: flex; align-items: center; gap: 10px; }
.pagination-page { min-width: 76px; text-align: center; }
.pagination-button { min-height: 32px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--muted); background: #fff; font-size: 11px; font-weight: 700; cursor: pointer; }
.pagination-button:hover:not(:disabled) { color: var(--blue); border-color: #a9c1f5; background: var(--blue-soft); }
.pagination-button:disabled { color: var(--subtle); background: #f3f5f8; cursor: not-allowed; opacity: .7; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); background: #fbfcfe; font-size: 10px; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
td { font-size: 13px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafcff; }
.job-failure-code { max-width: 180px; margin-top: 4px; overflow: hidden; display: block; color: #b42318; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 8px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.filename { max-width: 260px; overflow: hidden; display: block; font-weight: 620; text-overflow: ellipsis; }
.cell-subtle { color: var(--muted); }
.empty-cell, .empty-state { padding: 40px 20px !important; color: var(--muted); text-align: center !important; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 99px; background: #eef2f7; color: #475467; font-size: 11px; font-weight: 700; }
.status-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-chip.success { color: #087a55; background: #e9f8f2; }
.status-chip.running { color: #175cd3; background: #eaf1ff; }
.status-chip.review { color: #9a4b0a; background: #fff3e3; }
.status-chip.failed { color: #b42318; background: #feeceb; }
.status-chip.current { box-shadow: inset 0 0 0 1px #9de0c7; }
.job-review-link { display: inline-flex; padding: 0; flex-direction: column; align-items: flex-start; gap: 5px; border: 0; color: #9a4b0a; background: transparent; text-align: left; cursor: pointer; }
.job-review-progress { font-size: 9px; font-weight: 800; text-decoration: underline; text-decoration-color: #efcf8c; text-underline-offset: 3px; }
.job-review-link:hover { color: #7a3b08; }
.job-review-link:hover .job-review-progress { text-decoration-color: currentColor; }
.job-review-link:hover .status-chip { box-shadow: inset 0 0 0 1px #e5ba63; }

.daily-price-review-panel { margin: 0 0 20px; overflow: hidden; scroll-margin-top: 18px; border: 1px solid #f1d49c; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 14px 32px rgba(146, 93, 13, .08); }
.daily-price-review-panel:focus-visible { outline: 3px solid rgba(168, 90, 10, .2); outline-offset: 3px; }
.daily-price-review-header { padding: 18px 20px 16px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #f5e4bf; background: linear-gradient(100deg, #fffaf0, #fff); }
.daily-price-review-title-block { min-width: 0; flex: 1 1 auto; display: grid; gap: 5px; }
.daily-price-review-title-block .step-label { color: #a85a0a; }
.daily-price-review-title-block h2 { margin: 0; color: #3c280e; font-size: 18px; letter-spacing: -.025em; }
.daily-price-review-title-block p { margin: 0; color: #7a5a2c; font-size: 11px; line-height: 1.5; }
.daily-price-review-metrics { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(78px, 1fr)); gap: 8px; }
.daily-price-review-metrics > div { min-width: 78px; padding: 8px 10px; border: 1px solid #ead9b4; border-radius: 9px; background: rgba(255, 255, 255, .82); }
.daily-price-review-metrics > div.is-review { border-color: #f0c970; background: #fff7e5; }
.daily-price-review-metrics dt { color: #7a6340; font-size: 9px; font-weight: 750; }
.daily-price-review-metrics dd { margin: 2px 0 0; color: #3c280e; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.daily-price-review-metrics .is-review dd { color: #a85a0a; }
.daily-price-review-toolbar { min-height: 58px; padding: 10px 14px 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.daily-price-review-message { min-width: 0; margin: 0; color: var(--muted); font-size: 10px; font-weight: 650; line-height: 1.45; }
.daily-price-review-message.is-error { color: #b42318; }
.daily-price-review-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.daily-price-review-cancel, .daily-price-review-finalize { min-height: 34px; padding: 0 12px; border-radius: 8px; font-size: 10px; font-weight: 800; cursor: pointer; transition: border-color .16s ease, color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.daily-price-review-cancel { border: 1px solid #d7dfec; color: #475467; background: #fff; }
.daily-price-review-cancel:hover:not(:disabled) { border-color: #a9b5c7; color: var(--ink); background: #f8fafc; }
.daily-price-review-finalize { border: 1px solid #a85a0a; color: #fff; background: #a85a0a; box-shadow: 0 5px 14px rgba(168, 90, 10, .18); }
.daily-price-review-finalize:hover:not(:disabled) { border-color: #854507; background: #854507; }
.daily-price-review-cancel:disabled, .daily-price-review-finalize:disabled { border-color: #d7dde7; color: #667085; background: #e9edf3; box-shadow: none; cursor: not-allowed; }
.daily-price-review-scroll { max-width: 100%; overflow: auto; }
.daily-price-review-table { width: 100%; min-width: 1080px; border-collapse: collapse; }
.daily-price-review-table th { padding: 10px 12px; color: #735d39; background: #fffaf0; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.daily-price-review-table td { padding: 10px 12px; border-top: 1px solid #f0f1f4; color: var(--ink); font-size: 10px; vertical-align: middle; }
.daily-price-review-row:hover td { background: #fffdf8; }
.daily-price-review-row.is-complete td { background: #fbfefc; }
.daily-price-review-row.is-complete:hover td { background: #f5fcf8; }
.daily-price-review-table code { color: #475467; font-size: 10px; font-weight: 750; }
.daily-price-review-candidates { min-width: 180px; white-space: normal; }
.daily-price-review-candidate { display: block; color: #475467; font-size: 9px; line-height: 1.45; white-space: nowrap; }
.daily-price-review-none { color: var(--subtle); font-size: 9px; }
.daily-price-review-input { width: 112px; min-height: 34px; padding: 0 9px; border: 1px solid #cfd7e3; border-radius: 8px; color: var(--ink); background: #fff; font-size: 11px; font-variant-numeric: tabular-nums; }
.daily-price-review-input:focus-visible { border-color: #a85a0a; outline: 3px solid rgba(168, 90, 10, .16); outline-offset: 1px; }
.daily-price-review-input:disabled { color: #667085; background: #f6f7f9; cursor: not-allowed; }
.daily-price-review-row-actions { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.daily-price-review-status { display: inline-flex; min-height: 24px; padding: 0 8px; align-items: center; border-radius: 99px; font-size: 9px; font-weight: 800; }
.daily-price-review-status.is-pending { color: #9a4b0a; background: #fff1cf; }
.daily-price-review-status.is-complete { color: #087a55; background: #e9f8f2; }
.daily-price-review-save { min-height: 30px; padding: 0 9px; border: 1px solid #d7c39a; border-radius: 7px; color: #82500f; background: #fff; font-size: 9px; font-weight: 800; cursor: pointer; transition: border-color .16s ease, color .16s ease, background-color .16s ease; }
.daily-price-review-save:hover:not(:disabled) { border-color: #c48628; color: #6c3d08; background: #fff9ec; }
.daily-price-review-save:disabled { border-color: #d7dde7; color: #98a2b3; background: #f2f4f7; cursor: not-allowed; }
.daily-price-review-empty { margin: 0; padding: 24px 18px; color: var(--muted); font-size: 11px; text-align: center; }
.daily-price-review-pagination { min-height: 48px; padding: 8px 14px 8px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.daily-price-review-pagination > div { display: flex; align-items: center; gap: 8px; }
.daily-price-review-pagination button { min-height: 30px; padding: 0 9px; border: 1px solid #d7dfec; border-radius: 7px; color: #475467; background: #fff; font-size: 9px; font-weight: 750; cursor: pointer; }
.daily-price-review-pagination button:hover:not(:disabled) { border-color: #a9b5c7; color: var(--ink); background: #f8fafc; }
.daily-price-review-pagination button:disabled { color: #98a2b3; background: #f2f4f7; cursor: not-allowed; }
.daily-price-review-pagination strong { min-width: 70px; color: #475467; text-align: center; }
.daily-price-review-panel.is-busy { opacity: .74; }
.daily-price-review-panel.is-retryable { border-color: #e5bf6d; }
.daily-price-review-panel.is-processing { border-color: #c9dafa; }
.daily-price-review-cancel:focus-visible, .daily-price-review-finalize:focus-visible, .daily-price-review-save:focus-visible, .daily-price-review-pagination button:focus-visible, .job-review-link:focus-visible { outline: 3px solid rgba(37, 99, 235, .2); outline-offset: 2px; }
.daily-price-review-confirm-dialog { width: min(430px, calc(100% - 32px)); max-width: none; padding: 0; overflow: hidden; border: 1px solid #e0d2b8; border-radius: 14px; color: var(--ink); background: #fff; box-shadow: 0 28px 80px rgba(16, 24, 40, .3); }
.daily-price-review-confirm-dialog::backdrop { background: rgba(15, 23, 42, .48); backdrop-filter: blur(3px); }
.daily-price-review-confirm-dialog[open] { animation: panel-in .16s ease both; }
.daily-price-review-confirm-copy { padding: 22px 22px 18px; }
.daily-price-review-confirm-copy h2 { margin: 0; font-size: 18px; line-height: 1.3; letter-spacing: -.025em; }
.daily-price-review-confirm-copy > p { margin: 10px 0 0; color: #344054; font-size: 13px; line-height: 1.6; }
.daily-price-review-confirm-copy .daily-price-review-confirm-note { margin-top: 8px; color: var(--muted); font-size: 11px; }
.daily-price-review-confirm-copy .daily-price-review-confirm-error { padding: 9px 10px; border-radius: 8px; color: #b42318; background: #feeceb; font-size: 11px; font-weight: 650; }
.daily-price-review-confirm-actions { padding: 14px 18px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); background: #fbfcfe; }
.daily-price-review-confirm-actions button { min-height: 38px; padding: 0 15px; border-radius: 9px; font-size: 11px; font-weight: 800; cursor: pointer; }
.daily-price-review-confirm-cancel { border: 1px solid #d3dae6; color: #344054; background: #fff; }
.daily-price-review-confirm-cancel:hover:not(:disabled) { border-color: #98a2b3; background: #f8fafc; }
.daily-price-review-confirm-submit { border: 1px solid #b54708; color: #fff; background: #b54708; box-shadow: 0 5px 14px rgba(181, 71, 8, .16); }
.daily-price-review-confirm-submit:hover:not(:disabled) { border-color: #8f3a07; background: #8f3a07; }
.daily-price-review-confirm-actions button:disabled { opacity: .58; cursor: wait; box-shadow: none; }
.daily-price-review-confirm-actions button:focus-visible { outline: 3px solid rgba(37, 99, 235, .2); outline-offset: 2px; }

.split-heading { align-items: center; }
.report-controls { display: flex; align-items: flex-end; gap: 10px; }
.report-controls label, .month-picker { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 650; }
input[type="month"], input[type="date"], select { min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); background: #fff; outline: none; }
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.month-picker { min-width: 164px; }
.bi-heading { justify-content: flex-end; align-items: flex-start; margin-bottom: 15px; }
.bi-heading .month-picker { width: 92px; min-width: 0; gap: 2px; font-size: 8px; letter-spacing: .02em; }
.bi-heading .month-picker select { width: 92px; min-height: 26px; padding: 0 20px 0 7px; border-radius: 7px; font-size: 9px; }

.chart-panel { margin-bottom: 20px; }
.chart-data-range { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.company-chart-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr); gap: 28px; padding: 24px; }
.ranking-chart { min-height: 300px; display: flex; flex-direction: column; gap: 15px; justify-content: center; }
.rank-row { display: grid; grid-template-columns: minmax(100px, 180px) minmax(110px, 1fr) 100px; align-items: center; gap: 12px; }
.rank-label { overflow: hidden; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.rank-track { height: 8px; overflow: hidden; border-radius: 99px; background: #edf1f6; }
.rank-track i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #79a4ff, var(--blue)); transform-origin: left; animation: grow .5s ease both; }
@keyframes grow { from { transform: scaleX(0); } }
.rank-value { text-align: right; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

.donut-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-left: 28px; border-left: 1px solid var(--line); }
.donut { width: 190px; height: 190px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#d8e0ec 0 100%); }
.donut > div { width: 118px; height: 118px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.donut strong { font-size: 19px; letter-spacing: -.04em; }
.donut span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.donut-legend { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 20px; }
.legend-item { min-width: 0; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.legend-item i { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 2px; }
.legend-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.matrix-panel { margin-bottom: 20px; }
.matrix-scroll table { min-width: 760px; }
.matrix-scroll th:first-child, .matrix-scroll td:first-child { position: sticky; left: 0; z-index: 2; background: #fff; box-shadow: 1px 0 var(--line); }
.matrix-scroll th:first-child { background: #fbfcfe; z-index: 3; }
.matrix-scroll td:not(:first-child) { text-align: right; }
.matrix-total { font-weight: 750; background: #f8fbff !important; }

.usage-panel { min-height: 58vh; }
.company-page-heading { align-items: center; }
.company-page-title { min-width: 0; flex: 1 1 auto; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; }
.company-page-title h1 { flex: 0 0 auto; }
.section-heading .company-fixed-companies { min-width: 0; margin: 0 0 6px; color: #8b95a7; font-size: 11px !important; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.company-refresh { min-width: 94px; }
.company-service-banner { margin-bottom: 16px; padding: 13px 16px; display: flex; align-items: center; gap: 10px; border: 1px solid #f7c9c5; border-radius: 12px; color: #9c2b22; background: #fff5f4; }
.company-service-banner strong { font-size: 13px; }
.company-service-banner span { color: #b34a41; font-size: 12px; }
.company-report-setup { overflow: hidden; }
.company-setup-heading { padding: 22px 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.company-setup-heading h2 { margin: 0; font-size: 18px; line-height: 1.3; letter-spacing: -.025em; }
.company-month-field { width: clamp(150px, 16vw, 180px); flex: 0 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; }
.company-month-field > span { color: var(--muted); font-size: 10px; font-weight: 750; white-space: nowrap; }
.company-month-field input { width: 100%; min-height: 38px; padding: 0 10px; border-radius: 9px; font-size: 12px; }
.company-report-card-row { display: grid; grid-template-columns: minmax(320px, 1.35fr) repeat(3, minmax(0, 1fr)); gap: 16px; padding: 18px 24px 24px; align-items: stretch; }
.company-report-card-row > * { min-width: 0; }
.company-source-card { min-width: 0; min-height: 224px; padding: 20px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #dbe3ef; border-radius: 16px; background: var(--surface); box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 18px 44px rgba(31, 51, 82, .07); }
.company-card-heading h3 { margin: 0; font-size: 17px; line-height: 1.3; letter-spacing: -.025em; }
.company-source-current { margin: 14px 0 12px; padding: 10px 12px; display: grid; gap: 5px; border: 1px solid #d7e8dc; border-radius: 10px; background: #f7fbf8; }
.company-source-current-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.company-source-current-label { color: var(--muted); font-size: 10px; font-weight: 750; }
.company-source-current strong { color: var(--ink); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.company-source-current > span:last-child { color: var(--muted); font-size: 10px; line-height: 1.4; }
.company-source-action { width: 100%; margin-top: auto; display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.company-excel-dropzone { position: relative; min-width: 0; min-height: 92px; padding: 17px 18px; display: flex; align-items: center; gap: 14px; border: 1px dashed #9fb5dc; border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.company-excel-dropzone:hover, .company-excel-dropzone.is-over { border-color: var(--blue); background: #f6f9ff; box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .08); }
.company-excel-dropzone.is-disabled { cursor: not-allowed; opacity: .62; box-shadow: none; }
.company-excel-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.company-upload-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border: 1px solid #cfddf7; border-radius: 10px; color: var(--blue); background: #f8fbff; }
.company-upload-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.company-upload-copy { min-width: 0; display: grid; gap: 3px; }
.company-upload-copy strong { font-size: 13px; }
.company-upload-copy > span { color: var(--muted); font-size: 10px; }
.company-upload-copy em { overflow: hidden; color: var(--blue-dark); font-size: 11px; font-style: normal; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.company-upload-button { width: clamp(92px, 40%, 112px); min-width: 92px; min-height: 40px; align-self: flex-end; padding: 0 7px; display: flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--blue); border-radius: 10px; color: #fff; background: var(--blue); box-shadow: 0 8px 20px rgba(37, 99, 235, .21); font-size: 10px; font-weight: 800; white-space: nowrap; cursor: pointer; transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.company-upload-button b { font-size: 17px; line-height: 1; }
.company-upload-button:hover:not(:disabled) { border-color: var(--blue-dark); background: var(--blue-dark); box-shadow: 0 11px 24px rgba(23, 73, 176, .24); transform: translateY(-1px); }
.company-upload-button:active:not(:disabled) { box-shadow: 0 4px 12px rgba(37, 99, 235, .16); transform: translateY(0) scale(.985); }
.company-upload-button:disabled { border-color: #d7dde7; color: #667085; background: #e9edf3; box-shadow: none; cursor: not-allowed; }
.company-source-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 9px; color: #b42318; background: #feeceb; font-size: 11px; font-weight: 650; }
.company-source-status { margin: 12px 0 0; padding: 10px 12px; border: 1px solid #cfe1f9; border-radius: 9px; color: #1554a0; background: #f3f8ff; font-size: 11px; font-weight: 650; line-height: 1.45; }
.company-review-panel { margin: 0 24px 24px; overflow: hidden; border: 1px solid #d7dfec; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.company-review-header { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.company-review-title-block { min-width: 0; flex: 1 1 auto; display: grid; gap: 6px; }
.company-review-header h3 { margin: 0; font-size: 15px; letter-spacing: -.015em; }
.company-review-file { min-width: 0; margin: 0; display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.company-review-file span { flex: 0 0 auto; padding-top: 1px; font-weight: 700; }
.company-review-file strong { min-width: 0; color: #344054; font-size: 11px; font-weight: 750; overflow-wrap: anywhere; }
.company-review-metrics { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(72px, 1fr)); gap: 8px; }
.company-review-metrics div { min-width: 72px; padding: 8px 10px; border: 1px solid #e1e6ee; border-radius: 9px; background: #fff; }
.company-review-metrics div.is-pending { border-color: #f6d58a; background: #fffbeb; }
.company-review-metrics dt { color: var(--muted); font-size: 9px; font-weight: 700; }
.company-review-metrics dd { margin: 2px 0 0; color: var(--ink); font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.company-review-metrics .is-pending dd { color: #9a4b0a; }
.company-review-toolbar { min-height: 58px; padding: 10px 14px 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.company-review-selection { min-width: 0; display: flex; align-items: center; gap: 10px; }
.company-review-selection > span { min-width: 60px; color: var(--muted); font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.company-review-delete-selected { min-height: 34px; padding: 0 12px; border: 1px solid #d92d20; border-radius: 8px; color: #fff; background: #d92d20; font-size: 10px; font-weight: 800; cursor: pointer; transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.company-review-delete-selected:hover:not(:disabled) { border-color: #b42318; background: #b42318; box-shadow: 0 5px 14px rgba(180, 35, 24, .17); }
.company-review-delete-selected:disabled { border-color: #d7dde7; color: #98a2b3; background: #f2f4f7; cursor: not-allowed; }
.company-review-actions { flex: 0 0 auto; display: flex; gap: 8px; }
.company-review-discard, .company-review-activate { min-height: 34px; padding: 0 12px; border-radius: 8px; font-size: 10px; font-weight: 800; cursor: pointer; transition: border-color .16s ease, color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.company-review-discard { border: 1px solid #d7dfec; color: #475467; background: #fff; }
.company-review-discard:hover:not(:disabled) { border-color: #a9b5c7; color: var(--ink); background: #f8fafc; }
.company-review-activate { border: 1px solid var(--blue); color: #fff; background: var(--blue); box-shadow: 0 5px 14px rgba(37, 99, 235, .17); }
.company-review-activate:hover:not(:disabled) { border-color: var(--blue-dark); background: var(--blue-dark); }
.company-review-discard:disabled, .company-review-activate:disabled { border-color: #d7dde7; color: #667085; background: #e9edf3; box-shadow: none; cursor: not-allowed; }
.company-review-scroll { max-width: 100%; overflow: auto; }
.company-review-table { width: 100%; min-width: 880px; border-collapse: collapse; }
.company-review-table th { padding: 9px 11px; color: #667085; background: #f8fafc; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.company-review-table td { padding: 10px 11px; border-top: 1px solid #edf0f4; color: var(--ink); font-size: 10px; vertical-align: middle; }
.company-review-select-column, .company-review-select-cell { width: 42px; padding-right: 5px !important; text-align: center !important; }
.company-review-checkbox { width: 15px; height: 15px; margin: 0; vertical-align: middle; accent-color: var(--blue); cursor: pointer; }
.company-review-checkbox:disabled { cursor: not-allowed; }
.company-review-row:hover td { background: #f8fbff; }
.company-review-row.is-pending td { background: #fffcf3; }
.company-review-row.is-pending:hover td { background: #fff8e7; }
.company-review-row.is-selected td:first-child { box-shadow: inset 3px 0 var(--blue); }
.company-review-tour { font-weight: 800; white-space: nowrap; }
.company-review-raw { max-width: 220px; color: #475467; overflow-wrap: anywhere; }
.company-review-input { min-height: 34px; border: 1px solid #cfd7e3; border-radius: 8px; color: var(--ink); background: #fff; font-size: 11px; }
.company-review-room-input { width: min(210px, 100%); padding: 0 9px; }
.company-review-quantity-input { width: 72px; padding: 0 8px; font-variant-numeric: tabular-nums; }
.company-review-input:focus-visible { border-color: var(--blue); outline: 3px solid rgba(37, 99, 235, .16); outline-offset: 1px; }
.company-review-status { display: inline-flex; min-height: 24px; padding: 0 8px; align-items: center; border-radius: 99px; color: #087a55; background: #e9f8f2; font-size: 9px; font-weight: 800; white-space: nowrap; }
.company-review-status.is-pending { color: #9a4b0a; background: #fff1cf; }
.company-review-row-actions { display: flex; gap: 6px; white-space: nowrap; }
.company-review-save, .company-review-delete { min-height: 30px; padding: 0 9px; border-radius: 7px; background: #fff; font-size: 9px; font-weight: 800; cursor: pointer; transition: border-color .16s ease, color .16s ease, background-color .16s ease; }
.company-review-save { border: 1px solid #a9c0ec; color: var(--blue-dark); }
.company-review-save:hover:not(:disabled) { border-color: var(--blue); background: #f3f7ff; }
.company-review-delete { border: 1px solid #f0c4c0; color: #b42318; }
.company-review-delete:hover:not(:disabled) { border-color: #dc6b62; background: #fff5f4; }
.company-review-save:disabled, .company-review-delete:disabled { border-color: #d7dde7; color: #98a2b3; background: #f2f4f7; cursor: not-allowed; }
.company-review-empty { margin: 0; padding: 24px 18px; color: var(--muted); font-size: 11px; text-align: center; }
.company-review-pagination { min-height: 48px; padding: 8px 14px 8px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.company-review-pagination > div { display: flex; align-items: center; gap: 8px; }
.company-review-pagination button { min-height: 30px; padding: 0 9px; border: 1px solid #d7dfec; border-radius: 7px; color: #475467; background: #fff; font-size: 9px; font-weight: 750; cursor: pointer; }
.company-review-pagination button:hover:not(:disabled) { border-color: #a9b5c7; color: var(--ink); background: #f8fafc; }
.company-review-pagination button:disabled { color: #98a2b3; background: #f2f4f7; cursor: not-allowed; }
.company-review-pagination strong { min-width: 70px; color: #475467; text-align: center; }
.company-review-discard:focus-visible, .company-review-activate:focus-visible, .company-review-delete-selected:focus-visible, .company-review-save:focus-visible, .company-review-delete:focus-visible, .company-review-checkbox:focus-visible, .company-review-pagination button:focus-visible { outline: 3px solid rgba(37, 99, 235, .18); outline-offset: 2px; }
.company-review-panel.is-busy { opacity: .72; }
.company-review-confirm-dialog { width: min(430px, calc(100% - 32px)); max-width: none; padding: 0; overflow: hidden; border: 1px solid #e0e5ed; border-radius: 14px; color: var(--ink); background: #fff; box-shadow: 0 28px 80px rgba(16, 24, 40, .3); }
.company-review-confirm-dialog::backdrop { background: rgba(15, 23, 42, .48); backdrop-filter: blur(3px); }
.company-review-confirm-dialog[open] { animation: panel-in .16s ease both; }
.company-review-confirm-copy { padding: 22px 22px 18px; }
.company-review-confirm-copy h2 { margin: 0; font-size: 18px; line-height: 1.3; letter-spacing: -.025em; }
.company-review-confirm-copy > p { margin: 10px 0 0; color: #344054; font-size: 13px; line-height: 1.6; }
.company-review-confirm-copy .company-review-confirm-note { margin-top: 8px; color: var(--muted); font-size: 11px; }
.company-review-confirm-copy .company-review-confirm-error { padding: 9px 10px; border-radius: 8px; color: #b42318; background: #feeceb; font-size: 11px; font-weight: 650; }
.company-review-confirm-actions { padding: 14px 18px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); background: #fbfcfe; }
.company-review-confirm-actions button { min-height: 38px; padding: 0 15px; border-radius: 9px; font-size: 11px; font-weight: 800; cursor: pointer; }
.company-review-confirm-cancel { border: 1px solid #d3dae6; color: #344054; background: #fff; }
.company-review-confirm-cancel:hover:not(:disabled) { border-color: #98a2b3; background: #f8fafc; }
.company-review-confirm-submit { border: 1px solid #d92d20; color: #fff; background: #d92d20; box-shadow: 0 5px 14px rgba(180, 35, 24, .16); }
.company-review-confirm-submit:hover:not(:disabled) { border-color: #b42318; background: #b42318; }
.company-review-confirm-actions button:disabled { opacity: .58; cursor: wait; box-shadow: none; }
.company-review-confirm-actions button:focus-visible { outline: 3px solid rgba(37, 99, 235, .2); outline-offset: 2px; }
.company-report-confirm-dialog { width: min(410px, calc(100% - 32px)); max-width: none; padding: 0; overflow: hidden; border: 1px solid #dfe5ee; border-radius: 16px; color: var(--ink); background: #fff; box-shadow: 0 24px 72px rgba(16, 24, 40, .24); }
.company-report-confirm-dialog::backdrop { background: rgba(15, 23, 42, .42); backdrop-filter: blur(3px); }
.company-report-confirm-dialog[open] { animation: panel-in .16s ease both; }
.company-report-confirm-copy { padding: 24px 24px 20px; }
.company-report-confirm-copy h2 { margin: 0; font-size: 19px; line-height: 1.3; letter-spacing: -.025em; }
.company-report-confirm-description { margin: 12px 0 0; color: var(--ink); font-size: 15px; font-weight: 750; line-height: 1.45; font-variant-numeric: tabular-nums; }
.company-report-confirm-note { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.company-report-confirm-error { margin: 12px 0 0; padding: 9px 10px; border-radius: 8px; color: #b42318; background: #feeceb; font-size: 11px; font-weight: 650; line-height: 1.45; }
.company-report-confirm-actions { padding: 14px 18px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); background: #fbfcfe; }
.company-report-confirm-actions button { min-height: 38px; padding: 0 15px; border-radius: 9px; font-size: 11px; font-weight: 800; cursor: pointer; transition: border-color .16s ease, color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.company-report-confirm-cancel { border: 1px solid #d3dae6; color: #344054; background: #fff; }
.company-report-confirm-cancel:hover:not(:disabled) { border-color: #98a2b3; background: #f8fafc; transform: translateY(-1px); }
.company-report-confirm-submit { border: 1px solid var(--blue); color: #fff; background: var(--blue); box-shadow: 0 5px 14px rgba(37, 99, 235, .17); }
.company-report-confirm-submit:hover:not(:disabled) { border-color: var(--blue-dark); background: var(--blue-dark); transform: translateY(-1px); }
.company-report-confirm-actions button:active:not(:disabled) { transform: translateY(0) scale(.985); }
.company-report-confirm-actions button:disabled { opacity: .58; cursor: wait; box-shadow: none; }
.company-report-confirm-actions button:focus-visible { outline: 3px solid rgba(37, 99, 235, .2); outline-offset: 2px; }
.company-period-button { min-width: 0; min-height: 224px; padding: 16px; display: flex; flex-direction: column; align-items: stretch; gap: 9px; border: 1px solid #d7dfec; border-radius: 16px; color: var(--muted); background: #fff; cursor: pointer; text-align: left; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.company-period-button:hover:not(:disabled) { border-color: #8cacf3; background: #f8fbff; box-shadow: 0 10px 24px rgba(37, 99, 235, .11); transform: translateY(-2px); }
.company-period-button:active:not(:disabled) { box-shadow: 0 4px 12px rgba(37, 99, 235, .1); transform: translateY(0) scale(.985); }
.company-period-button:disabled { cursor: not-allowed; color: #667085; background: #fafbfc; box-shadow: none; }
.company-period-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.company-period-state { padding: 3px 7px; border-radius: 99px; color: var(--muted); background: #eef2f7; font-size: 9px; font-weight: 750; }
.company-period-state.is-complete { color: #087a55; background: #e9f8f2; }
.company-period-state.is-in-progress { color: #9a4b0a; background: #fff3e3; }
.company-period-state.is-unavailable { color: #b42318; background: #feeceb; }
.company-period-range { color: var(--ink); font-size: 23px; line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.company-period-detail { display: grid; gap: 3px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.company-period-detail span:last-child { font-variant-numeric: tabular-nums; }
.company-period-cta { width: clamp(72px, 34%, 94px); min-width: 72px; min-height: 38px; align-self: center; margin-top: auto; padding: 0 8px; display: flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--blue); border-radius: 9px; color: #fff; background: var(--blue); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 18px rgba(37, 99, 235, .2); font-size: 11px; font-weight: 800; white-space: nowrap; transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.company-period-cta b { font-size: 16px; line-height: 1; transition: transform .18s ease; }
.company-period-button:hover:not(:disabled) .company-period-cta { border-color: var(--blue-dark); background: var(--blue-dark); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 22px rgba(23, 73, 176, .24); }
.company-period-button:hover:not(:disabled) .company-period-cta b { transform: translateX(2px); }
.company-period-button:disabled .company-period-cta { border-color: #d7dde7; color: #475467; background: #e9edf3; box-shadow: none; }
.company-report-error { margin: 0 24px 24px; padding: 10px 12px; border-radius: 9px; color: #b42318; background: #feeceb; font-size: 11px; font-weight: 650; }
.company-job-panel { margin-top: 20px; padding: 22px 24px 24px; }
.company-job-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.company-job-header h2 { margin: 4px 0 0; font-size: 20px; letter-spacing: -.03em; }
.company-job-header .step-label[hidden] + h2 { margin-top: 0; }
.company-job-header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.company-job-summary { min-width: 122px; display: grid; justify-items: end; gap: 4px; }
.company-job-summary strong { font-size: 21px; letter-spacing: -.04em; }
.status-chip.review { color: #9a4b0a; background: #fff3e3; }
.company-progress-wrap { margin-top: 20px; }
.company-progress-wrap > div:first-child { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.company-progress-wrap > div:first-child strong { color: var(--ink); }
.company-progress-track { height: 7px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: #edf1f6; }
.company-progress-track span { width: 100%; height: 100%; display: block; border-radius: inherit; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.company-job-meta { margin: 17px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.company-job-meta > div { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.company-job-meta dt { color: var(--muted); font-size: 10px; }
.company-job-meta dd { margin: 4px 0 0; overflow: hidden; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.company-result-scroll { margin: 18px -24px -24px; }
.company-result-table { min-width: 1120px; }
.company-result-table th, .company-result-table td { padding-top: 12px; padding-bottom: 12px; }
.company-result-table .company-period-column, .company-period-result-cell { text-align: center; }
.company-name-cell { font-weight: 750; }
.company-period-result { font-size: 10px; font-weight: 750; white-space: nowrap; }
.company-period-result.is-complete { color: #087a55; }
.company-period-result.is-waiting { color: var(--blue); }
.company-period-result.is-pending, .company-period-result.is-empty { color: var(--muted); }
.company-period-result.is-failed { color: #b42318; }
.company-problem-list { max-width: 280px; display: grid; gap: 4px; white-space: normal; }
.company-problem { font-size: 10px; font-weight: 750; line-height: 1.35; }
.company-problem small { margin-left: 5px; color: inherit; opacity: .72; font-weight: 600; }
.company-problem .company-problem-detail { display: block; margin: 3px 0 0; opacity: .86; font-weight: 500; }
.company-problem.is-warning { color: #9a4b0a; }
.company-problem.is-error { color: #b42318; }
.company-generated-at-cell { font-size: 10px; font-weight: 750; white-space: nowrap; }
.company-result-row.is-review td { background: #fffbeb; }
.company-result-row.is-failed td { background: #fff6f5; }
.company-result-row.is-review:hover td { background: #fff7d6; }
.company-result-row.is-failed:hover td { background: #feeceb; }
.company-history-panel { margin-top: 20px; }
.company-history-count { color: var(--muted); font-size: 11px; }
.company-history-table { min-width: 980px; }
.company-detail-button { min-height: 30px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--blue); background: #fff; font-size: 10px; font-weight: 750; cursor: pointer; }
.company-detail-button:hover { border-color: #a9c1f5; background: var(--blue-soft); }
.page-footer { width: min(1400px, calc(100% - 48px)); margin: -38px auto 28px; display: flex; justify-content: flex-start; gap: 20px; color: var(--muted); font-size: 10px; }
.toast { position: fixed; z-index: 60; right: 24px; bottom: 24px; max-width: min(390px, calc(100vw - 32px)); padding: 12px 16px; border: 1px solid #cdd8eb; border-radius: 11px; color: #fff; background: #172033; box-shadow: 0 14px 35px rgba(16, 24, 40, .2); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.is-error { background: #8f241c; border-color: #a73930; }

:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 3px; }

@media (max-width: 960px) {
  .company-chart-grid { grid-template-columns: 1fr; }
  .bi-metrics { grid-template-columns: repeat(2, 1fr); }
  .donut-wrap { padding: 26px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .report-controls { width: 100%; }
  .split-heading { align-items: flex-start; flex-direction: column; }
  .company-report-card-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .monthly-panel-toolbar { align-items: flex-start; }
  .monthly-panel-toolbar .history-heading-actions { max-width: calc(100% - 160px); }
}

@media (min-width: 701px) {
  .daily-overview .upload-heading { padding: 12px 18px 0; }
  .daily-overview .upload-heading h2 { font-size: 17px; }
  .daily-overview .dropzone {
    min-height: 72px;
    margin: 8px 18px 0;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-rows: repeat(3, min-content);
    column-gap: 10px;
    row-gap: 0;
    align-content: center;
    align-items: center;
    text-align: left;
  }
  .daily-overview .dropzone .upload-glyph {
    grid-row: 1 / span 3;
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }
  .daily-overview .dropzone .upload-glyph svg { width: 16px; height: 16px; }
  .daily-overview .dropzone strong {
    margin-top: 0;
    font-size: 12px;
    line-height: 1.3;
  }
  .daily-overview .dropzone > span:not(.upload-glyph) {
    margin-top: 1px;
    font-size: 10px;
    line-height: 1.25;
  }
  .daily-overview .dropzone em {
    max-width: 100%;
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.25;
  }
  .daily-overview .upload-progress {
    margin: 8px 18px 0;
    padding: 8px 10px 9px;
  }
  .daily-overview .upload-progress-meta { font-size: 10px; }
  .daily-overview .upload-progress-meta strong { font-size: 10px; }
  .daily-overview .upload-progress-track { height: 5px; margin-top: 6px; }
  .daily-overview .upload-footer {
    min-height: 44px;
    margin: 0 18px;
    padding: 6px 0 10px;
    gap: 10px;
  }
  .daily-overview .service-hint { min-height: 14px; font-size: 10px; }
  .daily-overview .upload-panel .primary-button {
    min-width: 96px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 11px;
  }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 28px, 1400px); }
  .masthead { height: 64px; }
  .system-status span { display: none; }
  .header-meta { gap: 8px; }
  .locale-switcher select { min-height: 32px; max-width: 78px; padding-left: 7px; padding-right: 20px; font-size: 10px; }
  .task-log-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .tabs { height: 50px; gap: 24px; }
  .page { padding-top: 26px; padding-bottom: 50px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .bi-heading { width: 100%; align-items: flex-end; flex-direction: row; margin-bottom: 13px; }
  #panel-bi { margin-top: -10px; }
  .daily-overview { grid-template-columns: 1fr; gap: 14px; margin-bottom: 16px; }
  .upload-heading { padding: 20px 20px 0; }
  .upload-heading h2 { font-size: 18px; }
  .dropzone { min-height: 190px; margin: 16px 20px 0; padding: 24px 16px; }
  .upload-progress { margin-left: 20px; margin-right: 20px; }
  .upload-footer { min-height: 72px; margin: 0 20px; padding: 14px 0 20px; gap: 12px; }
  .upload-panel .primary-button { min-width: 112px; min-height: 42px; padding: 0 16px; }
  .metric-card { min-height: 112px; }
  .daily-overview > .metric-card { height: auto; min-height: 0; }
  .process-panel { min-height: 0; }
  .trace-log-frame { margin-left: 18px; margin-right: 18px; }
  .trace-log { min-height: 400px; max-height: 520px; }
  .report-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .report-controls .primary-button { grid-column: 1 / -1; margin-top: 0; }
  .report-controls input { width: 100%; }
  .rank-row { grid-template-columns: 105px minmax(80px, 1fr) 75px; gap: 8px; }
  .company-chart-grid { padding: 18px; }
  .panel-heading { padding-left: 18px; padding-right: 18px; }
  .table-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .table-heading .history-heading-actions { width: 100%; justify-content: space-between; }
  .monthly-panel-toolbar { padding-left: 18px; padding-right: 18px; align-items: stretch; flex-direction: column; gap: 10px; }
  .monthly-panel-toolbar .history-heading-actions { width: 100%; max-width: none; justify-content: space-between; }
  .history-month-control { max-width: 100%; }
  .history-month-field { width: min(128px, 34vw); }
  .monthly-table { min-width: 760px; }
  .company-page-heading { gap: 14px; }
  .company-refresh { width: 100%; }
  .company-setup-heading { padding-left: 18px; padding-right: 18px; }
  .company-report-card-row { padding-left: 18px; padding-right: 18px; }
  .company-source-action { width: 100%; }
  .company-upload-button { width: 104px; min-width: 104px; min-height: 42px; }
  .company-review-header { flex-direction: column; gap: 12px; }
  .company-review-title-block { width: 100%; }
  .company-review-metrics { width: 100%; }
  .company-review-toolbar { align-items: stretch; flex-direction: column; }
  .company-review-selection { justify-content: space-between; }
  .company-review-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .company-review-scroll { overflow: visible; }
  .company-review-table, .company-review-table tbody { min-width: 0; display: block; }
  .company-review-table thead { display: none; }
  .company-review-table tbody { padding: 10px; display: grid; gap: 10px; }
  .company-review-row { padding: 10px 12px; display: grid; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
  .company-review-row.is-pending { border-color: #f6d58a; background: #fffcf3; }
  .company-review-table .company-review-row td { min-width: 0; padding: 7px 0; display: grid; grid-template-columns: 86px minmax(0, 1fr); align-items: center; gap: 10px; border: 0; border-bottom: 1px solid #edf0f4; background: transparent; }
  .company-review-table .company-review-row td::before { content: attr(data-label); color: var(--muted); font-size: 9px; font-weight: 750; }
  .company-review-table .company-review-row td:last-child { border-bottom: 0; }
  .company-review-table .company-review-row .company-review-select-cell { width: auto; padding-right: 0 !important; text-align: left !important; }
  .company-review-raw { max-width: none; }
  .company-review-room-input { width: 100%; }
  .company-review-row-actions { justify-content: flex-end; }
  .company-review-pagination { align-items: stretch; flex-direction: column; }
  .company-review-pagination > div { justify-content: space-between; }
  .company-review-confirm-dialog { width: calc(100% - 20px); }
  .daily-price-review-header { align-items: stretch; flex-direction: column; gap: 12px; }
  .daily-price-review-metrics { width: 100%; }
  .daily-price-review-toolbar { align-items: stretch; flex-direction: column; }
  .daily-price-review-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .daily-price-review-scroll { overflow: visible; }
  .daily-price-review-table, .daily-price-review-table tbody { min-width: 0; display: block; }
  .daily-price-review-table thead { display: none; }
  .daily-price-review-table tbody { padding: 10px; display: grid; gap: 10px; }
  .daily-price-review-row { padding: 10px 12px; display: grid; border: 1px solid #ecd8ac; border-radius: 10px; background: #fff; }
  .daily-price-review-row.is-complete { border-color: #b6e1cd; }
  .daily-price-review-table .daily-price-review-row td { min-width: 0; padding: 7px 0; display: grid; grid-template-columns: 86px minmax(0, 1fr); align-items: center; gap: 10px; border: 0; border-bottom: 1px solid #edf0f4; background: transparent; white-space: normal; }
  .daily-price-review-table .daily-price-review-row td::before { content: attr(data-label); color: var(--muted); font-size: 9px; font-weight: 750; }
  .daily-price-review-table .daily-price-review-row td:last-child { border-bottom: 0; }
  .daily-price-review-candidates { min-width: 0; }
  .daily-price-review-input { width: 100%; }
  .daily-price-review-row-actions { justify-content: flex-end; }
  .daily-price-review-pagination { align-items: stretch; flex-direction: column; }
  .daily-price-review-pagination > div { justify-content: space-between; }
  .daily-price-review-confirm-dialog { width: calc(100% - 20px); }
  .company-setup-heading { align-items: center; }
  .company-month-field { width: min(180px, 52vw); }
  .company-report-card-row { grid-template-columns: 1fr; gap: 14px; padding-top: 16px; padding-bottom: 18px; }
  .company-source-card, .company-period-button { min-height: 204px; }
  .company-review-panel { margin-left: 18px; margin-right: 18px; }
  .company-report-error { margin-left: 18px; margin-right: 18px; }
  .company-report-confirm-dialog { width: calc(100% - 20px); }
  .company-job-panel { padding-left: 18px; padding-right: 18px; }
  .company-job-header { align-items: flex-start; flex-direction: column; gap: 14px; }
  .company-job-summary { justify-items: start; }
  .company-job-meta { grid-template-columns: 1fr 1fr; }
  .company-result-scroll { margin-left: 0; margin-right: 0; overflow: visible; }
  .company-result-table, .company-result-table tbody { min-width: 0; display: block; }
  .company-result-table thead { display: none; }
  .company-result-table tbody { display: grid; gap: 10px; }
  .company-result-table .company-result-row { padding: 11px 13px; display: grid; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
  .company-result-table .company-result-row td { min-width: 0; padding: 8px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: right; white-space: normal; }
  .company-result-table .company-result-row td::before { content: attr(data-label); flex: 0 0 auto; color: var(--muted); font-size: 10px; font-weight: 700; text-align: left; }
  .company-result-table .company-result-row .company-name-cell { padding-top: 2px; font-size: 14px; text-align: left; }
  .company-result-table .company-result-row .company-name-cell::before { display: none; }
  .company-result-table .company-result-row td:last-child { border-bottom: 0; }
  .company-problem-list { max-width: 68%; justify-items: end; }
  .company-result-row.is-review, .company-result-row.is-review td { background: #fffbeb; }
  .company-result-row.is-failed, .company-result-row.is-failed td { background: #fff6f5; }
  .pagination-bar { align-items: stretch; flex-direction: column; gap: 9px; }
  .pagination-actions { justify-content: space-between; }
  .pagination-button { flex: 0 0 auto; }
  .pagination-page { flex: 1 1 auto; align-self: center; }
  .page-footer { width: min(100% - 28px, 1400px); flex-direction: column; gap: 4px; }
}

@media (max-width: 430px) {
  .bi-metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bi-metrics .metric-card { padding: 17px; }
  .bi-metrics .metric-card strong { font-size: 23px; }
  .trace-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .trace-terminal-actions { width: 100%; align-items: flex-start; flex-direction: column; }
  .trace-live-state { white-space: normal; overflow-wrap: anywhere; }
  .trace-log-frame { margin-left: 14px; margin-right: 14px; }
  .trace-log { min-height: 360px; padding: 13px; font-size: 10px; }
  .history-heading-actions { align-items: flex-start; flex-direction: column; }
  .history-month-control { width: 100%; }
  .history-month-label { min-width: 48px; }
  .history-month-field { min-width: 0; flex: 1 1 auto; width: auto; }
  .monthly-panel-toolbar .history-heading-actions { align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
