/* G00 V5 structure and DS01 tokens, served locally with system fonts. */
body.kq-overview-theme {
  --ink: #191c1e;
  --ink2: #474554;
  --muted: #787585;
  --paper: #f8f9fb;
  --panel: #fff;
  --line: #e5e7eb;
  --violet: #6558d9;
  --violet2: #f0edff;
  --green: #187454;
  --green2: #eaf6f0;
  --amber: #7f4400;
  --amber2: #fff6e7;
  --red: #ba1a1a;
  --red2: #fff0ed;
  --shadow: 0 1px 8px rgb(0 0 0 / 4%);
  --radius: 8px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.kq-overview-theme .shell { grid-template-columns: 256px minmax(0, 1fr); }
body.kq-overview-theme .side,
body.kq-overview-theme .side:hover,
body.kq-overview-theme .side:focus-within {
  position: sticky;
  top: 0;
  width: 256px;
  height: 100vh;
  padding: 0;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  background: #fff;
  color: var(--ink2);
  border-right: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: none;
}
body.kq-overview-theme .side .brand {
  gap: 10px;
  padding: 20px;
  border-bottom: 1px solid #f0f1f3;
  flex-shrink: 0;
}
body.kq-overview-theme .brand strong { color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: -.3px; }
body.kq-overview-theme .brand span { color: var(--muted); font-size: 12px; }
body.kq-overview-theme .brand .mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 8px;
  background: var(--violet);
  color: #fff;
  font-size: 16px;
  box-shadow: none;
}
body.kq-overview-theme .side > .brand > span:not(.mark),
body.kq-overview-theme .side .nav-title,
body.kq-overview-theme .side .nav button span,
body.kq-overview-theme .side .side-foot { opacity: 1; visibility: visible; white-space: normal; }
body.kq-overview-theme .side .nav { display: block; flex: 1; min-height: 0; margin: 0; padding: 12px; overflow-y: auto; }
body.kq-overview-theme .side .nav-title { padding: 0 12px 4px; color: #9ca3af; font-size: 11px; font-weight: 500; letter-spacing: 0; }
body.kq-overview-theme .side .nav > .nav-title:not(:first-child) { display: none; }
body.kq-overview-theme .side .nav button { display: flex; justify-content: flex-start; align-items: center; gap: 8px; min-height: 36px; padding: 8px 12px; border-radius: 4px; color: #5f6473; font-size: 13px; line-height: 18px; }
body.kq-overview-theme .side .nav button[data-category] { display: none; }
body.kq-overview-theme .side .nav button > span { display: block; min-width: 0; }
body.kq-overview-theme .side .nav button > i { flex: 0 0 18px; width: 18px; font-size: 17px; }
body.kq-overview-theme .nav button:hover { background: #f8f9fb; color: var(--ink); }
body.kq-overview-theme .nav button.active,
body.kq-overview-theme .workspace-nav-group .nav-tool.active { background: var(--violet2); color: #4c3dbf; font-weight: 600; }
body.kq-overview-theme .side .workspace-quicknav { display: block; }
body.kq-overview-theme .workspace-nav-group { margin: 12px 0 0; }
body.kq-overview-theme .workspace-nav-group b { padding: 0 12px 4px; color: #9ca3af; font-size: 11px; font-weight: 500; letter-spacing: 0; }
body.kq-overview-theme .workspace-nav-group .nav-tool i { color: inherit; }
body.kq-overview-theme .side .side-foot { padding: 12px 20px; margin: 0; border-top: 1px solid #f0f1f3; color: var(--muted); font-size: 11px; }
body.kq-overview-theme .live { color: var(--green); }
body.kq-overview-theme .live b { background: var(--green); box-shadow: 0 0 0 3px var(--green2); }
body.kq-overview-theme .content { min-width: 0; }
body.kq-overview-theme .topbar { height: 56px; min-height: 56px; top: 0; gap: 12px; padding: 0 16px; background: #fff; border: 0; box-shadow: var(--shadow); backdrop-filter: none; }
body.kq-overview-theme .crumb { order: -2; color: var(--muted); font-size: 12px; }
body.kq-overview-theme .command { flex: 1; min-width: 100px; max-width: 320px; margin-left: auto; }
body.kq-overview-theme .command input { height: 32px; border: 0; border-radius: 4px; background: #f3f4f6; font-size: 12px; }
body.kq-overview-theme .command .search { top: 6px; }
body.kq-overview-theme .command .key { top: 5px; }
body.kq-overview-theme .refresh { flex-shrink: 0; width: 30px; height: 30px; border-radius: 4px; }
body.kq-overview-theme .portal-account { display: contents; }
body.kq-overview-theme .portal-account select { order: -3; max-width: 180px; min-width: 0; background: #f3f4f6; }
body.kq-overview-theme .portal-account button,
body.kq-overview-theme .portal-account select { height: 30px; border-color: var(--line); border-radius: 4px; color: var(--ink2); font-family: inherit; font-weight: 500; }
body.kq-overview-theme .portal-account .primary { background: var(--violet); border-color: var(--violet); color: #fff; }
body.kq-overview-theme .portal-account .name { max-width: 120px; color: var(--ink2); }
body.kq-overview-theme main { width: 100%; max-width: none; margin: 0; padding: 16px; }
body.kq-overview-theme :is(button, a, input, select, summary, [tabindex]):focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

/* Keep navigation, store identity and loading feedback visible in every workspace. */
body.kq-overview-theme .shell.focus-mode {grid-template-columns:256px minmax(0,1fr);}
body.kq-overview-theme .shell.focus-mode .topbar {display:flex;}
body.kq-overview-theme .shell.focus-mode .frame-top {display:flex;min-height:44px;padding:6px 12px;background:#fff;}
body.kq-overview-theme .shell.focus-mode .frame-loading {display:flex;min-height:32px;}
body.kq-overview-theme .shell.focus-mode .frame-loading.ready {display:none;}
body.kq-overview-theme .frame-loading.error {color:var(--red);background:var(--red2);}
body.kq-overview-theme .frame-loading.error i {animation:none;}
body.kq-overview-theme .shell.focus-mode main { height:calc(100vh - 56px);padding:0; }
body.kq-overview-theme .shell.focus-mode #view-frame,
body.kq-overview-theme .shell.focus-mode .frame-wrap { height: 100%; min-height: 0; }
body.kq-overview-theme .shell.focus-mode .frame-wrap iframe { flex: 1; min-height: 0; width: 100%; }

#operations-overview { --ops-card-pad: 16px; --ops-gap: 12px; min-width: 0; color: var(--ink, #191c1e); font-size: 13px; line-height: 18px; }
#operations-overview *,
#operations-overview *::before,
#operations-overview *::after { box-sizing: border-box; }
#operations-overview[hidden],
#operations-overview [hidden] { display: none !important; }
#operations-overview button,
#operations-overview input,
#operations-overview select { font: inherit; }
#operations-overview button { cursor: pointer; }
#operations-overview button:disabled { cursor: default; opacity: .5; }
#operations-overview :is(button, input, select, summary, [tabindex]):focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
#operations-overview input[type="checkbox"] { width: 14px; height: 14px; flex-shrink: 0; margin: 0; accent-color: var(--violet); }
#operations-overview .ops-panel { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; padding: 12px; border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
#operations-overview .ops-hero { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; }
#operations-overview .ops-hero > div:first-child { min-width: 0; }
#operations-overview .eyebrow { display: none; }
#operations-overview .ops-hero h1 { display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin: 0; color: var(--ink); font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: -.2px; }
#operations-overview .ops-design-badge {padding:0 6px;background:#e4dfff;color:#342968;font-size:12px;line-height:20px;font-weight:600;letter-spacing:0;}
body.kq-overview-theme .portal-shop-label {order:-4;color:var(--muted);font-size:11px;margin-right:-8px;white-space:nowrap;}
#operations-overview .ops-hero p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 16px; }
#operations-overview .ops-right { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; }
#operations-overview .ops-right > span { overflow-wrap: anywhere; }
#operations-overview .ops-button,
#operations-overview .ops-right button,
#operations-overview .ops-layout-actions button,
#operations-overview .ops-layout-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 28px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink2); font-size: 12px; font-weight: 500; line-height: 16px; }
#operations-overview :is(.ops-button, .ops-right button, .ops-layout-actions button, .ops-layout-controls button):hover:not(:disabled) { border-color: #c6c0ff; background: #f0edff; color: #4c3dbf; }
#operations-overview #ops-refresh,
#operations-overview .ops-button.primary,
#operations-overview .ops-layout-actions .primary { border-color: var(--violet); background: var(--violet); color: #fff; }
#operations-overview :is(#ops-refresh, .ops-button.primary, .ops-layout-actions .primary):hover:not(:disabled) { background: #5245bd; border-color: #5245bd; color: #fff; }
#operations-overview #ops-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-width: 0; width: 100%; margin: 0; padding: 0; border: 0; }
#operations-overview #ops-filters > legend { padding: 0; color: var(--muted); font-size: 12px; }
#operations-overview .ops-filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
#operations-overview .ops-filter-row:last-child { margin-left: auto; }
#operations-overview .ops-filter-label,
#operations-overview .ops-filter > b { color: var(--muted); font-size: 11px; font-weight: 500; }
#operations-overview .ops-filter-note { color: var(--muted); font-size: 12px; }
#operations-overview .ops-segment { display: inline-flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 2px; border: 0; border-radius: 4px; background: #f3f4f6; }
#operations-overview .ops-segment button { min-height: 26px; padding: 4px 8px; border: 0; border-radius: 3px; background: transparent; color: var(--ink2); font-size: 12px; font-weight: 500; line-height: 16px; }
#operations-overview .ops-segment button:hover:not(:disabled) { background: #ebe9f5; color: #4c3dbf; }
#operations-overview .ops-segment button.active,
#operations-overview .ops-segment button[aria-pressed="true"] { background: #fff; color: #4c3dbf; font-weight: 600; box-shadow: 0 1px 3px rgb(0 0 0 / 6%); }
#operations-overview .ops-shop-menu { position: relative; flex-shrink: 0; color: var(--ink2); font-size: 12px; }
#operations-overview .ops-shop-menu > summary { display: flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 8px; border-radius: 4px; background: #f3f4f6; list-style: none; cursor: pointer; }
#operations-overview .ops-shop-menu > summary::-webkit-details-marker { display: none; }
#operations-overview .ops-shop-menu > summary::after { content: "⌄"; color: var(--muted); }
#operations-overview .ops-shop-menu[open] > summary { background: var(--violet2); }
#operations-overview .ops-shop-popover,
#operations-overview .ops-shop-menu > div { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; width: 256px; max-width: calc(100vw - 40px); padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgb(25 28 30 / 14%); }
#operations-overview .ops-shop-actions { display: flex; justify-content: space-between; margin-bottom: 4px; }
#operations-overview :is(#ops-all, #ops-none) { min-height: 24px; padding: 3px 6px; border: 0; border-radius: 4px; background: transparent; color: #4c3dbf; font-size: 12px; }
#operations-overview :is(#ops-all, #ops-none):hover { background: var(--violet2); }
#operations-overview #ops-shop-options { display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow-y: auto; }
#operations-overview #ops-shop-options label { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 6px; border-radius: 4px; color: var(--ink2); font-size: 12px; overflow-wrap: anywhere; cursor: pointer; }
#operations-overview #ops-shop-options label:hover { background: #f3f4f6; }
#operations-overview #ops-filters:disabled .ops-shop-menu > summary { opacity: .5; cursor: default; }
#operations-overview #ops-layout-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin: 0; padding: 6px 8px; border: 0; border-radius: 4px; background: #f3f4f6; }
#operations-overview .ops-layout-controls,
#operations-overview .ops-layout-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
#operations-overview .ops-layout-controls { min-width: 0; color: var(--ink2); font-size: 11px; }
#operations-overview .ops-settings { display: flex; flex: 1; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-width: 0; margin: 0; padding: 0; border: 0; color: var(--ink2); font-size: 11px; }
#operations-overview .ops-settings label { display: inline-flex; align-items: center; gap: 4px; }
#operations-overview .ops-settings select { min-height: 24px; max-width: 116px; padding: 2px 20px 2px 6px; border: 0; border-radius: 3px; background: #fff; color: var(--ink); font-size: 11px; }
#operations-overview .ops-settings > span { color: var(--muted); font-size: 11px; }
#operations-overview .ops-layout-message { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
#operations-overview .ops-layout-message:empty { display: none; }
#operations-overview .ops-layout-message.error { color: var(--red); }
#operations-overview .ops-layout-message.success { color: var(--green); }

#operations-overview .ops-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ops-gap); align-items: stretch; }
#operations-overview .ops-card { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: var(--ops-card-pad); border: 0; border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
#operations-overview .ops-card > header { display: flex; align-items: center; gap: 6px; min-width: 0; margin-bottom: 8px; }
#operations-overview .ops-no { display: none; }
#operations-overview .ops-card h2 { display: flex; align-items: center; gap: 4px; min-width: 0; margin: 0; color: var(--ink); font-size: 18px; line-height: 24px; font-weight: 600; overflow-wrap: anywhere; }
#operations-overview .ops-card h2 svg { flex: 0 0 20px; width: 20px; height: 20px; color: #4c3dbf; }
#operations-overview .ops-card-body { display: flex; flex: 1; flex-direction: column; min-width: 0; }
#operations-overview .ops-kpi { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 8px; }
#operations-overview .ops-kpi b { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px; max-width: 100%; color: var(--ink); font-size: 30px; font-weight: 600; line-height: 38px; letter-spacing: -.4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#operations-overview .ops-kpi b + b { color: #4c3dbf; font-size: 22px; line-height: 28px; }
#operations-overview .ops-kpi small { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 16px; letter-spacing: normal; }
#operations-overview .ops-kpi .warn,
#operations-overview .ops-kpi .warn small,
#operations-overview .warn { color: var(--amber); }
#operations-overview .ops-kpi .danger,
#operations-overview .ops-kpi .danger small,
#operations-overview .danger { color: var(--red); }
#operations-overview .ops-shop-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
#operations-overview .ops-shop-stats > div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 6px; min-width: 0; padding: 4px 6px; border-radius: 3px; background: #f3f4f6; color: var(--ink); font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; }
#operations-overview .ops-shop-stats .name { color: var(--ink2); }
#operations-overview .ops-shop-stats span { min-width: 0; overflow-wrap: anywhere; }
#operations-overview .ops-shop-stats > div > span:last-child { margin-left: auto; font-weight: 500; }
#operations-overview .ops-products { display: flex; flex-direction: column; gap: 6px; }
#operations-overview .ops-product-group { min-width: 0; padding: 4px 6px; border-radius: 4px; background: #f3f4f6; }
#operations-overview .ops-product-group > header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0 0 2px; color: var(--ink2); font-size: 12px; line-height: 16px; }
#operations-overview .ops-product-group > header strong { font-weight: 600; }
#operations-overview .ops-product-group .ops-shop-stats { display:flex;flex-wrap:wrap;gap: 2px 12px; }
#operations-overview [data-ops-card="02"] .ops-kpi b {font-size:18px;line-height:24px;}
#operations-overview .ops-product-group .ops-shop-stats > div { padding: 0; background: transparent; font-size: 11px; }
#operations-overview .ops-product-group .ops-shop-stats small { display: block; color: var(--muted); font-size: 10px; line-height: 14px; font-weight: 400; }
#operations-overview .ops-alert { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; margin: 0 0 8px; padding: 6px 8px; border-radius: 4px; background: #ffdad6; color: #93000a; font-size: 12px; line-height: 16px; }
#operations-overview .ops-alert strong,
#operations-overview .ops-alert b { color: #93000a; font-weight: 600; }
#operations-overview .ops-alert > small { flex-basis: 100%; font-size: 10px; line-height: 14px; }
#operations-overview .ops-mapping { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
#operations-overview .ops-mapping .ops-alert { justify-content: space-between; margin: 0; }
#operations-overview .ops-mapping-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; padding: 6px 8px; border-radius: 4px; background: #fff6e7; color: var(--amber); font-size: 12px; }
#operations-overview .ops-mapping :is(b, small) { font-size: 12px; font-weight: 500; }
#operations-overview .ops-mapping b { font-size: 18px; line-height: 24px; }
#operations-overview .ops-status-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 8px; padding: 6px 8px; border-radius: 4px; background: #fff6e7; color: var(--amber); font-size: 12px; }
#operations-overview .ops-status-strip b { font-size: 18px; line-height: 24px; font-weight: 600; }
#operations-overview .ops-ad-shops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
#operations-overview .ops-ad-shop { min-width: 0; padding: 6px; border-radius: 4px; background: #f3f4f6; }
#operations-overview .ops-ad-shop > header { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; color: var(--ink2); font-size: 12px; line-height: 16px; }
#operations-overview .ops-ad-shop > header strong { color: var(--ink); font-weight: 600; }
#operations-overview .ops-ad-shop > header small { color: var(--muted); font-size: 10px; line-height: 14px; overflow-wrap: anywhere; }
#operations-overview .ops-ad-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; color: var(--ink); font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; }
#operations-overview .ops-ad-metrics > div { display: flex; justify-content:space-between;gap:4px;flex-wrap:wrap;min-width: 0; }
#operations-overview .ops-ad-metrics span { color: var(--muted); font-size: 10px; }
#operations-overview .ops-ad-metrics small { color: var(--muted); font-size: 10px; }
#operations-overview .ops-ad-metrics b { font-weight: 600; overflow-wrap: anywhere; }
#operations-overview .ops-table { min-width: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
#operations-overview .ops-table > div { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; gap: 6px; padding: 6px 8px; border-bottom: 1px solid #edf0f3; color: var(--ink2); font-size: 12px; line-height: 16px; }
#operations-overview .ops-table > div:nth-child(even) { background: #f8f9fb; }
#operations-overview .ops-table > div:last-child { border-bottom: 0; }
#operations-overview .ops-table span { min-width: 0; white-space: normal; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
#operations-overview .ops-table span:first-child { color: var(--ink); }
#operations-overview .ops-table span:nth-child(n+2) { text-align: right; }
#operations-overview .ops-ad-row span small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 14px; overflow-wrap: anywhere; }
#operations-overview .ops-note,
#operations-overview .ops-ad-note,
#operations-overview .ops-ad-date { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 16px; overflow-wrap: anywhere; }
#operations-overview .ops-ad-note,
#operations-overview .ops-ad-date { margin: 0 0 6px; }
#operations-overview .ops-warning,
#operations-overview .ops-missing { margin: 6px 0; padding: 6px 8px; border: 0; border-radius: 4px; background: var(--amber2); color: var(--amber); font-size: 11px; line-height: 16px; overflow-wrap: anywhere; }
#operations-overview .ops-missing .ops-warning { margin: 4px 0 0; padding: 0; }
#operations-overview .ops-source-details,
#operations-overview .ops-product-details { margin-top: 8px; }
#operations-overview .ops-source-details { margin-top: auto; padding-top: 8px; }
#operations-overview :is(.ops-source-details, .ops-product-details) > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; min-height: 24px; border-radius: 3px; color: var(--muted); font-size: 11px; line-height: 16px; list-style: none; cursor: pointer; }
#operations-overview :is(.ops-source-details, .ops-product-details) > summary::-webkit-details-marker { display: none; }
#operations-overview :is(.ops-source-details, .ops-product-details) > summary::before { content: "›"; flex: 0 0 8px; width: 8px; color: var(--muted); font-size: 16px; line-height: 1; text-align: center; }
#operations-overview :is(.ops-source-details, .ops-product-details)[open] > summary::before { transform: rotate(90deg); }
#operations-overview :is(.ops-source-details, .ops-product-details) > summary:hover { color: #4c3dbf; }
#operations-overview .ops-source-row { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; padding: 6px 8px; border-radius: 4px; background: #f3f4f6; color: var(--muted); font-size: 11px; line-height: 16px; overflow-wrap: anywhere; }
#operations-overview .ops-source-row strong { color: var(--ink2); font-weight: 500; }
#operations-overview .ops-product-details .ops-table,
#operations-overview .ops-product-details .ops-products { margin-top: 6px; }
#operations-overview .ops-state { font-size: 11px; font-weight: 500; }
#operations-overview .ops-state.ok { color: var(--green); }
#operations-overview .ops-state.stale,
#operations-overview .ops-state.partial { color: var(--amber); }
#operations-overview .ops-state.error { color: var(--red); }
#operations-overview .ops-state.unknown,
#operations-overview .ops-state.not_configured { color: var(--muted); }
#operations-overview .ops-state.running { color: #4c3dbf; }
#operations-overview .ops-empty { padding: 16px 8px; color: var(--muted); font-size: 12px; line-height: 18px; text-align: center; overflow-wrap: anywhere; }
#operations-overview .ops-message { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; padding: 8px; border: 0; border-radius: 4px; background: #eeedf5; color: var(--ink2); font-size: 12px; line-height: 16px; }
#operations-overview .ops-message.loading { background: var(--violet2); color: #4c3dbf; }
#operations-overview .ops-message.error { background: var(--red2); color: var(--red); }
#operations-overview .ops-bottom { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 16px; overflow-wrap: anywhere; }
#operations-overview .ops-snapshot-line { margin: 0 0 8px; color: var(--muted); font-size: 11px; line-height: 16px; text-align: right; }
#operations-overview .ops-freshness { margin-top: 12px; padding: 12px 16px; border-radius: 8px; background: #fff; box-shadow: var(--shadow); color: var(--ink2); font-size: 11px; line-height: 16px; }
#operations-overview:has(.ops-grid[hidden]) .ops-freshness { display: none; }
#operations-overview .ops-freshness > summary { display: flex; align-items: center; gap: 8px; color: var(--ink2); font-size: 12px; font-weight: 500; cursor: pointer; }
#operations-overview .ops-freshness > h2 { margin: 0 0 8px; font-size: 14px; line-height: 20px; }
#operations-overview .ops-freshness details { margin-top: 8px; }
#operations-overview .ops-freshness table { width: 100%; margin-top: 8px; border-collapse: collapse; text-align: left; font-size: 11px; line-height: 16px; }
#operations-overview .ops-freshness th,
#operations-overview .ops-freshness td { padding: 5px 8px; border-bottom: 1px solid #edf0f3; overflow-wrap: anywhere; vertical-align: top; }
#operations-overview .ops-freshness th { background: #f3f4f6; color: var(--muted); font-weight: 500; }
#operations-overview .ops-freshness .ops-table { margin-top: 8px; }
#operations-overview .ops-freshness .ops-table small { display: block; font-size: 10px; line-height: 14px; color: var(--muted); }
#operations-overview .ops-card-tools { display: none; align-items: center; gap: 2px; margin-left: auto; }
#operations-overview.ops-editing .ops-card-tools { display: flex; }
#operations-overview .ops-card-tools button { display: inline-flex; align-items: center; justify-content: center; width: 24px; min-width: 24px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink2); font-size: 13px; line-height: 1; }
#operations-overview .ops-card-tools button:hover:not(:disabled) { background: var(--violet2); color: #4c3dbf; }
#operations-overview .ops-drag-handle { cursor: grab; touch-action: none; }
#operations-overview .ops-drag-handle:active { cursor: grabbing; }
#operations-overview.ops-editing .ops-card { outline: 1px dashed #c6c0ff; }
#operations-overview.ops-editing .ops-card > header { flex-wrap: wrap; }
#operations-overview .ops-card.ops-dragging { opacity: .55; outline-style: dashed; }
#operations-overview .ops-card.ops-drop-target { outline: 2px solid var(--violet); outline-offset: 2px; background: #fcfbff; }
#operations-overview.compact { --ops-card-pad: 12px; }
#operations-overview.compact .ops-card > header { margin-bottom: 6px; }
#operations-overview.compact .ops-shop-stats > div { padding: 2px 4px; }
#operations-overview.compact .ops-product-group { padding: 4px 6px; }
#operations-overview.compact .ops-table > div { padding: 4px 6px; }

@media (min-width: 768px) {
  #operations-overview .ops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  #operations-overview .ops-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) and (max-width: 1100px) {
  body.kq-overview-theme .command { max-width: 180px; }
  body.kq-overview-theme .crumb { display: none; }
  body.kq-overview-theme .portal-account select { max-width: 140px; }
  body.kq-overview-theme .portal-account .name { max-width: 80px; }
}
@media (max-width: 767px) {
  body.kq-overview-theme .shell.focus-mode {grid-template-columns:minmax(0,1fr);}
  body.kq-overview-theme .shell.focus-mode main {height:calc(100dvh - 184px);min-height:420px;}
  body.kq-overview-theme .shell { grid-template-columns: minmax(0, 1fr); }
  body.kq-overview-theme .shell .side { position: relative; width: 100%; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  body.kq-overview-theme .shell .side .brand { padding: 12px 16px; }
  body.kq-overview-theme .shell .side .nav { display: flex; flex: none; gap: 4px; padding: 6px 12px; overflow-x: auto; overflow-y: hidden; }
  body.kq-overview-theme .shell .side .nav-title,
  body.kq-overview-theme .shell .side .side-foot,
  body.kq-overview-theme .shell .workspace-nav-group b { display: none; }
  body.kq-overview-theme .shell .side .nav button { width: auto; flex: 0 0 auto; white-space: nowrap; }
  body.kq-overview-theme .shell .side .nav button span { white-space: nowrap; }
  body.kq-overview-theme .shell .side .workspace-quicknav,
  body.kq-overview-theme .shell .workspace-nav-group { display: flex; flex: 0 0 auto; gap: 4px; margin: 0; }
  body.kq-overview-theme .topbar { flex-wrap: wrap; height: auto; min-height: 56px; gap: 6px 8px; padding: 8px 12px; }
  body.kq-overview-theme .crumb { display: none; }
  body.kq-overview-theme .command { order: -1; max-width: none; min-width: 120px; }
  body.kq-overview-theme .portal-account select { max-width: 160px; }
  body.kq-overview-theme .portal-account .name { margin-left: auto; }
  body.kq-overview-theme main { padding: 12px; }
  #operations-overview .ops-panel { padding: 12px; }
  #operations-overview .ops-hero { align-items: flex-start; flex-wrap: wrap; }
  #operations-overview .ops-hero h1 { font-size: 18px; line-height: 26px; }
  #operations-overview .ops-english {display:none;}
  #operations-overview .ops-right { justify-content: flex-start; }
  #operations-overview .ops-filter-row:last-child { margin-left: 0; }
  #operations-overview .ops-settings { flex-basis: 100%; }
  #operations-overview #ops-layout-tools { justify-content: flex-start; }
  #operations-overview .ops-layout-message { flex-basis: 100%; }
  #operations-overview .ops-card h2 { font-size: 18px; }
  #operations-overview .ops-freshness { padding: 12px; overflow-x: auto; }
  #operations-overview .ops-freshness table { min-width: 540px; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.kq-overview-theme) { scroll-behavior: auto; }
  body.kq-overview-theme *,
  body.kq-overview-theme *::before,
  body.kq-overview-theme *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Workspace navigation floats over content; the overview retains its sidebar. */
body.kq-overview-theme .workspace-nav-edge { display: none; }
body.kq-overview-theme .shell.focus-mode { grid-template-columns: minmax(0, 1fr); }
body.kq-overview-theme .shell.focus-mode .content {
  height: 100vh; height: 100dvh; display: flex; flex-direction: column;
}
body.kq-overview-theme .shell.focus-mode .topbar { flex: 0 0 auto; }
body.kq-overview-theme .shell.focus-mode main { flex: 1; height: auto; min-height: 0; }
body.kq-overview-theme .shell.focus-mode .side {
  position: fixed; z-index: 50; inset: 0 auto 0 0;
  width: 256px; height: 100vh; height: 100dvh;
  transform: translateX(-100%); box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
body.kq-overview-theme .shell.focus-mode.workspace-nav-open .side {
  transform: translateX(0); box-shadow: 8px 0 24px rgba(25, 28, 30, .14);
}
body.kq-overview-theme .shell.focus-mode .workspace-nav-edge {
  display: block; position: fixed; z-index: 49; inset: 0 auto 0 0;
  width: 12px; padding: 0; border: 0; background: transparent;
  color: transparent; cursor: pointer;
}
body.kq-overview-theme .shell.focus-mode .workspace-nav-edge:focus-visible {
  color: var(--violet); background: #edeaff; outline-offset: -2px;
}
@media (hover: none), (max-width: 767px) {
  body.kq-overview-theme .shell.focus-mode .workspace-nav-edge {
    inset: 10px auto auto 8px; width: 32px; height: 32px;
    border: 1px solid var(--line); border-radius: 4px;
    color: var(--violet); background: #fff;
  }
  body.kq-overview-theme .shell.focus-mode .topbar { padding-left: 48px; }
  body.kq-overview-theme .shell.focus-mode .side .brand { padding: 20px; }
  body.kq-overview-theme .shell.focus-mode .side .nav {
    display: block; flex: 1; min-height: 0; padding: 12px; overflow: auto;
  }
  body.kq-overview-theme .shell.focus-mode .side .nav-title,
  body.kq-overview-theme .shell.focus-mode .side .side-foot,
  body.kq-overview-theme .shell.focus-mode .workspace-nav-group b { display: block; }
  body.kq-overview-theme .shell.focus-mode .side .workspace-quicknav,
  body.kq-overview-theme .shell.focus-mode .workspace-nav-group { display: block; margin-top: 12px; }
  body.kq-overview-theme .shell.focus-mode .side .nav button { width: 100%; }
}

.ops-fulfillment-scroll{overflow-x:auto;margin:12px 0}.ops-fulfillment-table{width:100%;border-collapse:collapse;font-size:12px;line-height:1.5}.ops-fulfillment-table th,.ops-fulfillment-table td{padding:8px 6px;border-bottom:1px solid #e8edf5;text-align:right;white-space:nowrap}.ops-fulfillment-table th:first-child{text-align:left}.ops-fulfillment-table thead th{color:#697586;font-weight:500}.ops-fulfillment-table tbody th{font-weight:500}.ops-fulfillment-table td:nth-child(3){color:#b42318}
