/* 単独で動かすための土台（claude.ai では Data ページが持っている部分） */
html, body { margin: 0; background: #fff; color: #111418; color-scheme: light; }
.ops-head {
  display: flex; align-items: center; gap: 16px; height: 48px; padding: 0 max(20px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid #e9ecf1; font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, system-ui, sans-serif;
}
.ops-brand { font-weight: 700; font-size: 16px; color: #111418; text-decoration: none; }
.ops-updated { margin-left: auto; font-size: 12.5px; color: #5b6272; white-space: nowrap; }
.ops-switch { font-size: 13px; color: #0047ff; text-decoration: none; white-space: nowrap; }
.ops-switch:hover { text-decoration: underline; }
.dash-select { appearance: auto; font: inherit; padding: 6px 10px; border: 1px solid #d5dae2; border-radius: 8px; background-color: #fff; color: #111418; }
.ops-loading-error { margin: 40px auto; max-width: 600px; padding: 16px; border: 1px solid #d0342c; border-radius: 8px; color: #d0342c; }
@media (max-width: 680px) {
  .ops-head { height: auto; flex-wrap: wrap; gap: 4px 12px; padding: 8px 16px; }
  .ops-updated { order: 3; width: 100%; margin-left: 0; }
}

/* 運用シート集計：白地＋青1色。端末がダークでも明るいまま（tomo の決まり）
   並び：操作 → 期間の合計 → 媒体別（4行の比較）→ 表 → 日別の推移 */
.ops {
  --ink: #111418;
  --muted: #5b6272;
  --faint: #b4bac6;
  --line: #e9ecf1;
  --line-strong: #d5dae2;
  --bg: #ffffff;
  --soft: #f6f7f9;
  --accent: #0047ff;
  --accent-soft: #edf2ff;
  --neg: #d0342c;
  --good: #1f7a3d;
  --meta: #1d5bd8;
  --tiktok: #16181d;
  --google: #d93025;
  --ly: #06a14f;
  color-scheme: light;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  padding-block: 20px 48px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  gap: 32px;
  font-variant-numeric: tabular-nums;
}
.ops > * { width: 100%; max-width: 1680px; margin-inline: auto; min-width: 0; }
.ops * { box-sizing: border-box; }
.ops .is-neg { color: var(--neg); }
.ops a { color: var(--accent); }
.ops button:focus-visible, .ops [role="button"]:focus-visible, .ops input:focus-visible, .ops select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ops-note { margin: 0; font-size: 13px; color: var(--muted); }

/* 操作 */
.ops-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
  background: var(--soft); border-radius: 10px; padding: 12px 14px;
}
.ops-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: var(--bg); }
.ops-seg button {
  appearance: none; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--ink);
  font: inherit; font-size: 15px; padding: 7px 14px; cursor: pointer; line-height: 1.3;
}
.ops-seg button:last-child { border-right: 0; }
.ops-seg button:hover { background: var(--soft); }
.ops-seg button.is-on { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.ops-seg-sm button { font-size: 14px; padding: 5px 12px; }
.ops-range { display: inline-flex; align-items: center; gap: 6px; }
.ops-range input {
  font: inherit; font-size: 14px; color: var(--ink); background: var(--bg); color-scheme: light;
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 8px; min-width: 0;
}
.ops-range-sep { color: var(--muted); }
.ops-filters { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-left: auto; }
.ops .ops-select { background-color: var(--bg); color: var(--ink); font-size: 15px; border-color: var(--line-strong); border-radius: 8px; min-width: 0; max-width: 100%; }
.ops-link { appearance: none; border: 0; background: none; color: var(--accent); font: inherit; font-size: 14px; padding: 4px 2px; cursor: pointer; }
.ops-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 期間の合計 */
.ops-summary { display: flex; flex-direction: column; gap: 10px; }
.ops-summary-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.ops-period { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: 0.01em; }
.ops-kpis {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-strong); border-radius: 10px; padding-block: 12px;
}
.ops-kpi { display: flex; flex-direction: column; gap: 2px; padding-inline: 20px; min-width: 0; }
.ops-kpi + .ops-kpi { border-left: 1px solid var(--line); }
.ops-kpi-label { font-size: 13px; color: var(--muted); }
.ops-kpi-val { font-size: clamp(18px, 1.7vw, 24px); font-weight: 700; line-height: 1.2; white-space: nowrap; }
.ops-kpi-hero .ops-kpi-val { font-size: clamp(24px, 2.4vw, 32px); }
.ops-kpi-diff { font-size: 13.5px; color: var(--muted); min-height: 1.4em; }
.ops-kpi-diff.is-good { color: var(--good); }
.ops-kpi-diff.is-bad { color: var(--neg); }
.ops-subkpis { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 32px; font-size: 15px; }
.ops-subkpis div { display: flex; gap: 10px; align-items: baseline; }
.ops-subkpis dt { white-space: nowrap; font-size: 13px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 6px; line-height: 1.6; }
.ops-subkpis dd { margin: 0; }
.ops-subkpis b { font-weight: 700; }
.ops-takeaway { margin: 0; font-size: 14.5px; color: var(--muted); }
.ops-takeaway b { color: var(--ink); font-weight: 700; }
.ops-takeaway b.is-neg { color: var(--neg); }

/* 見出し */
.ops-sec { display: flex; flex-direction: column; gap: 12px; }
.ops-sec-head { display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--line-strong); padding-bottom: 10px; }
.ops-sec-head-row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ops-h2 { margin: 0; font-size: 20px; font-weight: 700; }

/* 媒体別（4行の比較） */
.ops-mt { display: flex; flex-direction: column; }
.ops-mt-row {
  display: grid; align-items: center; column-gap: 20px;
  grid-template-columns: 136px minmax(190px, 1.6fr) repeat(4, minmax(84px, 1fr)) minmax(150px, 1.5fr);
  padding: 12px 12px; border-bottom: 1px solid var(--line);
}
.ops-mt-head { font-size: 13px; color: var(--muted); padding-block: 4px 8px; }
.ops-mt .ops-mt-head .num { font-size: 13px; }
.ops-mt .num { text-align: right; white-space: nowrap; font-size: 16px; }
.ops-mp { cursor: pointer; border-radius: 8px; }
.ops-mp:hover { background: var(--soft); }
.ops-mp.is-on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.ops-mp.is-dim { opacity: 0.45; }
.ops-mt-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; white-space: nowrap; }
.ops-mt-profit { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ops-mt-profit > b { font-size: 20px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.ops-mt-bar { display: block; height: 8px; position: relative; }
.ops-mt-sub { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 12px; }
.ops-mt-sub > span { white-space: nowrap; }
.ops-mt-sub b { color: var(--ink); font-weight: 600; }
.ops-mt-k { display: none; font-style: normal; font-size: 12px; color: var(--muted); margin-right: 6px; }
.ops-spark { position: relative; height: 38px; display: block; }
.ops-spark svg { display: block; max-width: 100%; }
.ops-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex: none; }
.ops-dot-meta { background: var(--meta); }
.ops-dot-tiktok { background: var(--tiktok); }
.ops-dot-google { background: var(--google); }
.ops-dot-ly { background: var(--ly); }
.ops-zero { stroke: var(--line-strong); stroke-width: 1; }
.ops-bar-pos { fill: #9aa2b1; }
.ops-bar-neg { fill: var(--neg); }
.ops-band { fill: var(--accent-soft); }
.ops-pbar-track { position: absolute; inset: 0; background: var(--soft); border-radius: 2px; }
.ops-pbar-zero { position: absolute; top: -2px; bottom: -2px; width: 1px; background: var(--muted); }
.ops-pbar { position: absolute; top: 0; bottom: 0; border-radius: 2px; }

/* 表 */
/* 表は画面の中で別にスクロールさせない（tomo 11/20）。縦はページごと動き、見出しと合計は画面の上に残る。横は列を詰めて幅に収める */
.ops-table-wrap { overflow: visible; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); }
.ops-table { border-collapse: separate; border-spacing: 0; font-size: 13px; width: 100%; }
.ops-table th, .ops-table td { padding: 7px 5px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); background: var(--bg); }
.ops-table thead th { position: sticky; z-index: 2; background: #fafbfc; }
.ops-table thead tr:first-child th { top: 0; height: 30px; padding-block: 0; line-height: 1.2; font-size: 12.5px; font-weight: 600; color: var(--muted); text-align: center; border-bottom: 0; }
.ops-table thead tr:nth-child(2) th { top: 30px; height: 44px; padding-block: 0; font-size: 12.5px; line-height: 1.25; white-space: normal; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.ops-table .ops-sticky { position: sticky; left: 0; z-index: 1; text-align: left; border-right: 1px solid var(--line-strong); min-width: 0; max-width: 14em; overflow: hidden; text-overflow: ellipsis; }
.ops-table thead .ops-sticky { z-index: 3; top: 0; vertical-align: bottom; padding-bottom: 9px; font-size: 13px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.ops-table .ops-gs { border-left: 1px solid var(--line-strong); }
.ops-table .ops-cf.ops-gs { border-left: 2px solid var(--ink); }
.ops-table tbody th { font-weight: 400; }
.ops-table tbody th .ops-dot { margin-right: 8px; vertical-align: 0; }
.ops-table tr.lv0 th, .ops-table tr.lv0 td { background: #f2f5fa; font-weight: 700; border-bottom: 1px solid var(--line-strong); position: sticky; top: 74px; z-index: 1; }
.ops-table tr.lv0 th.ops-sticky { z-index: 2; }
.ops-table tr.lv1 th { font-weight: 700; }
.ops-table tr.lv1 td { font-weight: 600; }
.ops-table:not(.is-date) tr.lv1 + tr.lv1 th, .ops-table tr.lv2 + tr.lv1 th, .ops-table tr.lv2 + tr.lv1 td, .ops-table:not(.is-date) tr.lv1 + tr.lv1 td { border-top: 1px solid var(--line-strong); }
.ops-table thead .ops-label-th, .ops-table tbody th { padding-left: 10px; }
.ops-table.is-date tbody th, .ops-table.is-date tbody td { padding-block: 6px; }
.ops-table.is-date tr.lv1 th { font-weight: 600; }
.ops-table.is-date tr.lv1 td { font-weight: 400; }
.ops-table.is-date tr.is-week th, .ops-table.is-date tr.is-week td { border-top: 1px solid var(--muted); }
/* 土曜は青、日曜と祝日は赤（日付の文字だけ・tomo 2026-11-24） */
.ops-table.is-date tr.is-sat > th { color: var(--accent); }
.ops-table.is-date tr.is-sun > th { color: var(--neg); }
.ops-table tr.lv2 th { padding-left: 20px; color: var(--muted); font-size: 12.5px; }
.ops-table tr.lv2 td { font-size: 12.5px; }
.ops-table td.is-faint { color: var(--faint); font-weight: 400; }
.ops-table tr.is-click { cursor: pointer; }
.ops-table tr:hover th, .ops-table tr:hover td { background: var(--accent-soft); }
.ops-table tr.lv0:hover th, .ops-table tr.lv0:hover td { background: #f2f5fa; }
.ops-table.hide-mp .mp { display: none; }
.ops-caret { appearance: none; border: 0; background: none; font: inherit; font-size: 12px; color: var(--muted); width: 16px; padding: 0; margin-right: 6px; cursor: pointer; }
.ops-empty { text-align: center !important; color: var(--muted); padding: 28px !important; }

/* 日別の推移 */
.ops-legend { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; color: var(--muted); }
.ops-legend li { display: inline-flex; align-items: center; gap: 6px; }
.ops-net-key { display: inline-block; width: 14px; height: 0; border-top: 2px solid var(--ink); }
.ops-chart { position: relative; min-height: 300px; }
.ops-chart svg { display: block; max-width: 100%; }
.ops-grid line { stroke: var(--line); stroke-width: 1; }
.ops-grid line.is-zero { stroke: var(--muted); }
.ops-axis text { font-size: 12px; fill: var(--muted); font-family: inherit; }
.ops-axis text.is-sat { fill: var(--accent); }
.ops-axis text.is-sun { fill: var(--neg); }
.ops-net { stroke: var(--ink); stroke-width: 2; }
.ops-fail { margin: 0; padding: 40px 0; text-align: center; color: var(--muted); }

/* 吹き出し */
.ops-tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 150px;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px;
  box-shadow: 0 6px 18px rgba(10, 20, 40, 0.12); font-size: 13px; color: var(--ink);
}
.ops-tip-head { font-weight: 700; margin-bottom: 4px; }
.ops-tip-row { display: flex; justify-content: space-between; gap: 14px; }
.ops-tip-row span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.ops-tip-row b { font-weight: 600; }

/* 決まり */
.ops-defs { border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; color: var(--muted); }
.ops-defs summary { cursor: pointer; color: var(--ink); font-weight: 600; }
.ops-defs dl { margin: 12px 0 0; display: flex; flex-direction: column; gap: 6px; max-width: 70em; }
.ops-defs dl div { display: grid; grid-template-columns: 11em 1fr; gap: 12px; }
.ops-defs dt { color: var(--ink); font-weight: 600; }
.ops-defs dd { margin: 0; }


/* ページの切り替え（ダッシュボード／日別一覧） */
.ops-topbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; border-bottom: 1px solid var(--line-strong); }
.ops-tabs { display: flex; gap: 4px; }
.ops-tabs button {
  appearance: none; border: 0; background: none; font: inherit; font-size: 17px; font-weight: 700; color: var(--muted);
  padding: 10px 16px 12px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.ops-tabs button:hover { color: var(--ink); }
.ops-tabs button.is-on { color: var(--accent); border-bottom-color: var(--accent); }
.ops-topbar .ops-filters { padding-bottom: 8px; }
.ops-page { display: flex; flex-direction: column; gap: 32px; }
.ops-page[hidden] { display: none !important; }
.ops-mt-body { display: flex; flex-direction: column; }
.ops-empty-line { margin: 0; padding: 18px 12px; color: var(--muted); font-size: 14px; }
.ops-month-bar { gap: 10px 12px; }
.ops-month-bar-label { font-size: 14px; color: var(--muted); }
.ops-month-seg { max-width: 100%; }
.ops-table-wrap-plain { max-height: none; }
.ops-rowlink { appearance: none; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 700; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.ops-rowlink:hover { text-decoration-color: var(--accent); }
.ops-month-table td.ops-month-go { text-align: right; padding-left: 20px; }
.ops-month-table tr.is-cur th { color: var(--accent); }


/* 今日・今月（メイン） */
.ops-topbar { border-bottom: 0; justify-content: flex-end; }
.ops-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ops-card { border: 1px solid var(--line-strong); border-radius: 12px; padding: 18px 22px 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; background: var(--bg); }
.ops-card-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ops-card-title { margin: 0; font-size: 20px; font-weight: 700; }
.ops-card-date { font-size: 15px; color: var(--muted); }
.ops-card-note { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.ops-card-hero { display: flex; flex-direction: column; gap: 2px; }
.ops-hero-val { font-size: clamp(28px, 2.7vw, 38px); font-weight: 700; line-height: 1.15; white-space: nowrap; }
.ops-ref { font-size: 13px; color: var(--muted); }
.ops-ref b, .ops-ref span { font-weight: 600; }
.ops-ref .is-neg { color: var(--neg); }
.ops-diff { white-space: nowrap; }
.ops-diff.is-good { color: var(--good); }
.ops-diff.is-bad { color: var(--neg); }
.ops-card-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.3fr); gap: 14px 22px; align-items: start; }
.ops-card-grid { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; border-left: 1px solid var(--line); padding-left: 20px; }
.ops-card-m { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding-right: 10px; }
.ops-card-m:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.ops-card-m dt { font-size: 13px; color: var(--muted); }
.ops-card-m dd { margin: 0; display: flex; flex-direction: column; gap: 1px; }
.ops-card-m dd > b { font-size: clamp(16px, 1.45vw, 20px); font-weight: 700; white-space: nowrap; }
.ops-card-sub { margin: 0; border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.ops-card-sub div { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.ops-card-sub dt { white-space: nowrap; font-size: 12.5px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 6px; line-height: 1.6; }
.ops-card-sub dd { margin: 0; }
.ops-card-sub b { font-weight: 700; }
.ops-sub-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.ops-sub-head .ops-legend { margin: 0; }
.ops-chart-head { margin-top: 12px; }
.ops-month-seg { flex-wrap: wrap; }
.ops-chart { min-height: 260px; }
.ops-bd tr.is-sel th { color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.ops-bd tr.is-dim th, .ops-bd tr.is-dim td { opacity: 0.45; }
.ops-bd tbody th .ops-dot { margin-right: 8px; }
@media (max-width: 960px) {
  .ops-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .ops-card { padding: 14px 14px 12px; }
  .ops-card-body { grid-template-columns: minmax(0, 1fr); }
  .ops-card-grid { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
  .ops-card-note { margin-left: 0; width: 100%; }
}

/* 列が幅に収まらないときだけ（draw.js が測って is-wide を付ける）、表を横にずらして見る。収まるときは表の中にスクロールを出さない */
.ops-table-wrap.is-wide { overflow-x: auto; }
/* 列の多い2つの表（日別・月別）は数字を少し小さく、幅の狭い字体の数字で */
/*   （id でなく class で当てる。狭い画面で上に重ねる見出しの写しにも同じ字の大きさが効くように） */
.ops-table.ops-table-dense { font-size: 12.5px; }  /* 狭い幅の .ops-table { font-size: 14px } に負けないように（前は id で勝っていた） */
.ops-table-dense td { font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "Hiragino Sans", sans-serif; padding-left: 4px; padding-right: 4px; }
.ops-table-month td { padding-left: 3px; padding-right: 3px; }  /* 累計の行は桁が多いので少しだけ詰める */
/* 横にずらす表は箱の中で sticky が効かないので、見出しと合計の行の写しを画面の上に重ねる（draw.js の floatHead）。縦のスクロールは増やさない */
.ops-float-head { position: fixed; top: 0; z-index: 20; overflow: hidden; background: var(--bg); box-shadow: 0 1px 0 var(--line-strong), 0 6px 10px rgba(17, 20, 24, 0.06); }
.ops-float-head[hidden] { display: none; }
.ops-table-wrap.is-wide .ops-table { width: max-content; min-width: 100%; }

/* 狭い幅 */
@media (max-width: 1000px) {
  .ops-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 16px; }
  .ops-kpi-hero { grid-column: 1 / -1; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
  .ops-kpi:nth-child(2) { border-left: 0; }
  .ops-filters { margin-left: 0; }
  .ops-topbar .ops-filters { margin-left: auto; }
  .ops-mt-row { grid-template-columns: 120px minmax(170px, 1.5fr) repeat(4, minmax(80px, 1fr)); }
  .ops-mt-head span:last-child { display: none; }
  .ops-mt-row .ops-spark { grid-column: 2 / -1; margin-top: 8px; }
}
@media (max-width: 680px) {
  .ops { gap: 30px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .ops-seg button { padding: 6px 10px; font-size: 14px; }
  .ops-tabs button { font-size: 16px; padding: 8px 12px 10px; }
  .ops-topbar .ops-filters { margin-left: 0; width: 100%; }
  #period-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  #period-seg button:nth-child(3n) { border-right: 0; }
  #period-seg button:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .ops-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 14px; }
  .ops-kpi { padding-inline: 14px; }
  .ops-kpi:nth-child(4) { border-left: 0; }
  .ops-kpi:nth-child(n+4) { border-top: 1px solid var(--line); padding-top: 12px; }
  .ops-mt-head { display: none !important; }
  .ops-mt-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; column-gap: 16px; padding: 14px 6px; }
  .ops-mt-name { grid-column: 1 / -1; }
  .ops-mt-profit { grid-column: 1 / -1; }
  .ops-mt .num { text-align: left; font-size: 15px; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
  .ops-mt-k { display: block; margin: 0; }
  .ops-mt-row .ops-spark { grid-column: 1 / -1; margin-top: 2px; }
  .ops-table { font-size: 14px; }
  .ops-table .ops-sticky { min-width: 8em; max-width: 10.5em; }
  .ops-defs dl div { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .ops-mp, .ops-seg button { transition: background-color 0.15s ease; }
}
