/* Web 版 (PC 画面) で足すスタイル. 基本は共通コアの app.css */
.ed-badge { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); margin-left: 4px; }
.ed-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.ed-nav a { color: var(--muted); text-decoration: none; padding: 5px 10px; border-radius: 8px; font-size: 13px; }
.ed-nav a:hover { background: var(--soft); color: var(--ink); }
.ed-nav a.on { background: var(--soft); color: var(--ink); font-weight: 700; }
.ed-user { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; }
.topbar .jobchip { display: none !important; }
.ed-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.ed-card .ed-acts { margin-top: 10px; gap: 6px; }
.ed-card { cursor: default; }
.ed-switch { display: flex; align-items: center; gap: 8px; margin: 6px 0; cursor: pointer; }
.ed-switch input { width: 18px; height: 18px; accent-color: var(--accent); }
.ed-qr { display: grid; justify-items: center; gap: 4px; }
.ed-qr svg { background: #fff; border-radius: 8px; }
.ed-cal { position: relative; height: 14px; width: 160px; background: var(--soft); border-radius: 4px; overflow: hidden; }
.ed-cal i, .ed-cal b { position: absolute; left: 0; height: 7px; }
.ed-cal i { top: 0; background: #94a3b8; }
.ed-cal b { bottom: 0; background: var(--accent); }
.ed-wrap td { white-space: normal !important; }
code { font-family: var(--mono); font-size: .92em; background: var(--soft); padding: 1px 5px; border-radius: 4px; }

/* 共通コアの画面のうち、Web 版では使わないもの (映像解析・YouTube の取り込み) を隠す */
#draft, label:has(> #unv), label.f:has(> #vUrl) { display: none !important; }

/* 動画 (個人シート・チーム分析・コーチ用): 画面に固定. 3 つの使い方
   分析と並べる = 左に 動画 / 試合の流れ / ピッチ図・タイムスタンプ、右に分析 (スクロール)
   動画＋ピッチ図 = 画面いっぱいに 動画 (左・大) と ピッチ図・タイムスタンプ (右)
   動画＋タイムスタンプ = 画面いっぱいに 動画 (左・大) と タイムスタンプ (右) */
:root { --vsw: clamp(480px, 56vw, 1200px); --vstop: 56px; }
.vside { position: fixed; left: 0; top: var(--vstop); bottom: 0; width: var(--vsw); z-index: 30; display: grid; gap: 6px 8px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr);
  grid-template-areas: "main main" "flow flow" "play list";
  padding: 8px 10px 10px 14px; background: var(--bg); border-right: 1px solid var(--line); overflow: hidden; }
.vside[hidden] { display: none; }
.vs-main { grid-area: main; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 4px; }
.vs-flowbox { grid-area: flow; min-width: 0; }
.vs-play { grid-area: play; min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.vs-list { grid-area: list; min-height: 0; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.vside :is(video, .ytv) { width: 100%; max-height: max(280px, calc(100vh - var(--vstop) - 330px)); aspect-ratio: 16 / 9; object-fit: contain; background: #000; border-radius: 8px; flex: none; }
.vs-ctrl { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; flex: none; }
.vs-ctrl .btn.sm { padding: 3px 8px; }
.vs-ctrl .seg button { padding: 2px 8px; font-size: 12px; }
.vs-mode button { white-space: nowrap; }
/* 動画＋ピッチ図 / 動画＋タイムスタンプ: 画面いっぱい (分析は隠す) */
.vside[data-mode="pitch"], .vside[data-mode="list"] { right: 0; width: auto; border-right: 0; }
.vside[data-mode="pitch"] { grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); grid-template-rows: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  grid-template-areas: "main play" "main list" "flow flow"; }
.vside[data-mode="list"] { grid-template-columns: minmax(0, 2.1fr) minmax(320px, 1fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "main list" "flow flow"; }
.vside[data-mode="list"] .vs-play { display: none; }
.vside[data-mode="pitch"] :is(video, .ytv), .vside[data-mode="list"] :is(video, .ytv) { max-height: calc(100vh - var(--vstop) - 140px); }
body.vs-on.vs-full main { display: none; }
#vsFlow svg { display: block; cursor: pointer; }
.vs-flow .vs-mk { cursor: pointer; }
.vs-key i { display: inline-block; width: 10px; height: 8px; border-radius: 2px; vertical-align: middle; margin: 0 2px 0 6px; }
.vs-key i.g { background: #2fa56b; } .vs-key i.r { background: #d92d20; opacity: .6; }
.vs-key b { font-weight: 400; margin-left: 6px; } .vs-key b.y { color: #d4a017; } .vs-key b.o { color: #f79009; }
.vs-play #vsPitch { flex: 1; min-height: 0; }
.vs-play #vsPitch svg { width: 100%; height: 100%; display: block; }
.vs-cap { margin-bottom: 2px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-pulse { animation: vsPulse 1.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes vsPulse { from { opacity: .9; transform: scale(.6); } to { opacity: 0; transform: scale(1.6); } }
.vs-flt { padding: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.vs-flt .seg { flex-wrap: nowrap; } .vs-flt .seg button { padding: 2px 7px; font-size: 12px; white-space: nowrap; }
.vs-rows { flex: 1; min-height: 0; overflow-y: auto; font-size: 12.5px; }
.vs-row { display: grid; grid-template-columns: auto auto auto minmax(0, 1fr) auto; gap: 6px; padding: 4px 8px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: baseline; }
.vs-row:hover { background: var(--soft); }
.vs-m { display: flex; gap: 3px; justify-content: flex-end; white-space: nowrap; }
.vs-m span { font-size: 11px; padding: 0 5px; border-radius: 99px; background: var(--soft); color: var(--ink); font-variant-numeric: tabular-nums; }
.vs-m .m-xg { background: #e8f3ec; color: #17663a; font-weight: 700; }
.vs-m .m-kp { background: #fdf3d0; color: #8a6100; font-weight: 700; }
.vs-m .m-as, .vs-m .m-bc { background: #fde68a; color: #6b4e00; }
.vs-row.on { background: color-mix(in srgb, var(--accent) 18%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
.vs-row.k-goal b { background: #fde68a; }
.vs-row.k-bad span:last-child { color: #b54708; }
.vs-row.k-chance span:last-child, .vs-row.k-goal span:last-child { font-weight: 700; }
body.vs-on main { max-width: none; margin-left: var(--vsw); padding-left: 20px; }
@media (max-width: 1000px) {   /* 狭い画面: 動画と試合の流れを上に固定して、分析はその下でスクロール */
  .vside, .vside[data-mode] { right: 0; width: auto; bottom: auto; height: 46vh; border-right: 0; border-bottom: 1px solid var(--line);
    grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "main" "flow"; }
  .vside :is(video, .ytv), .vside[data-mode] :is(video, .ytv) { max-height: calc(46vh - 120px); }
  .vs-play, .vs-list, .vs-mode, .vs-flowbox .vs-cap { display: none !important; }
  body.vs-on main, body.vs-on.vs-full main { display: block; margin-left: 0; padding-left: 16px; padding-top: calc(46vh + 16px); }
}

@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
  .ed-user { margin-left: 0; }
}
@media print {
  body * { visibility: hidden; }
  #printbox, #printbox * { visibility: visible; }
  #printbox { position: absolute; left: 0; top: 0; width: 100%; }
  #printbox button { display: none; }
}

/* チーム (テナント)・権限 */
.ed-tenant { font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--soft); }
#edTenant { font-weight: 700; max-width: 200px; }
.perm-t th { font-size: 11px; white-space: normal; max-width: 90px; }
.perm-t td { text-align: center; }

/* 「分析と並べる」: 動画・タイムスタンプ・試合の流れ・ピッチ図が全部見える配置 (見比べるため)
   左の列 = [動画 | タイムスタンプ] / 試合の流れ / ピッチ図 (横長)。右 = 分析 (スクロール) */
:root { --vsw: clamp(560px, 55vw, 1250px); }
.vside:not([data-mode="pitch"]):not([data-mode="list"]) {
  overflow: hidden; grid-template-columns: minmax(0, 1fr) clamp(220px, 30%, 330px);
  grid-template-rows: auto auto minmax(140px, 1fr); grid-template-areas: "main list" "flow flow" "play play"; }
.vside:not([data-mode="pitch"]):not([data-mode="list"]) :is(video, .ytv) { max-height: max(220px, calc(100vh - var(--vstop) - 340px)); }
.vside:not([data-mode="pitch"]):not([data-mode="list"]) .vs-ctrl { flex-wrap: nowrap; overflow-x: auto; }
.vside:not([data-mode="pitch"]):not([data-mode="list"]) .vs-ctrl .btn.sm { padding: 2px 7px; }
.vside:not([data-mode="pitch"]):not([data-mode="list"]) .vs-play { min-height: 190px; }
.vside:not([data-mode="pitch"]):not([data-mode="list"]) .vs-list { max-height: calc(100vh - var(--vstop) - 260px); }
.vside:not([data-mode="pitch"]):not([data-mode="list"]) .vs-ctrl .vs-mode button { padding: 2px 6px; }
/* 右の分析: 列が狭くても読めるように、横に並べる数を自動で減らす (文字が縦に細くならない) */
body.vs-on main .grid.g2, body.vs-on main .grid.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
body.vs-on main .grid.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
body.vs-on main .kpi { padding: 10px 12px; }
body.vs-on main .kpi .v { font-size: 26px; }
body.vs-on main .kpi .l { font-size: 13px; }
body.vs-on main .rep-box, body.vs-on main .insights li, body.vs-on main p { line-height: 1.7; }
body.vs-on main .tablewrap { overflow-x: auto; }
@media (max-width: 1000px) {
  .vside:not([data-mode="pitch"]):not([data-mode="list"]) { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "main" "flow"; }
  .vside:not([data-mode="pitch"]):not([data-mode="list"]) :is(video, .ytv) { max-height: calc(46vh - 120px); }
}

/* 「並べる」(2026-11-21 改): 上 = 動画 (横いっぱい) / 下 = 左 2/3 にピッチ図、右 1/3 にタイムスタンプ (小さく)。試合の流れの帯は出さない */
.vside:not([data-mode="pitch"]):not([data-mode="list"]) {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(170px, 1fr); grid-template-areas: "main main" "play list"; }
.vside:not([data-mode="pitch"]):not([data-mode="list"]) .vs-flowbox { display: none; }
.vside:not([data-mode="pitch"]):not([data-mode="list"]) :is(video, .ytv) { max-height: max(240px, calc(100vh - var(--vstop) - 270px)); }
.vside:not([data-mode="pitch"]):not([data-mode="list"]) .vs-list { max-height: none; }
.vside:not([data-mode="pitch"]):not([data-mode="list"]) .vs-rows { font-size: 11.5px; }
.vside:not([data-mode="pitch"]):not([data-mode="list"]) .vs-row { display: flex; flex-wrap: wrap; gap: 0 6px; padding: 4px 6px; line-height: 1.45; }
.vside:not([data-mode="pitch"]):not([data-mode="list"]) .vs-row > span.sub:nth-child(2) { display: none; }   /* 試合時間は省く (狭いので) */
.vside:not([data-mode="pitch"]):not([data-mode="list"]) .vs-row > span:nth-child(4) { flex-basis: 100%; }    /* プレーは 2 行目 */
.vside:not([data-mode="pitch"]):not([data-mode="list"]) .vs-flt .seg button { padding: 2px 5px; font-size: 11px; }
@media (max-width: 1000px) {
  .vside:not([data-mode="pitch"]):not([data-mode="list"]) { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); grid-template-areas: "main"; }
  .vside:not([data-mode="pitch"]):not([data-mode="list"]) :is(video, .ytv) { max-height: calc(46vh - 60px); }
}

/* ================= ブランドの画面 (チームの色・ロゴ). html[data-brand="on"] のときだけ。オフならいつもの画面 ================= */
html[data-brand="on"] .topbar { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 64px; padding: 6px 18px;
  background: linear-gradient(180deg, var(--brand), var(--brand2)); border-bottom: 3px solid var(--brand2); color: var(--brand-ink); box-shadow: 0 4px 18px rgba(0,0,0,.35); }
html[data-brand="on"] .tb-left { display: flex; align-items: center; gap: 10px; justify-content: flex-end; min-width: 0; }
html[data-brand="on"] .tb-right { display: flex; align-items: center; gap: 10px; justify-content: flex-start; min-width: 0; }
html[data-brand="on"] .tb-left .brand { margin-right: auto; color: var(--brand-ink); }
html[data-brand="on"] .tb-left .brand .logo { display: none; }
html[data-brand="on"] .ed-badge { background: rgba(255,255,255,.2); color: var(--brand-ink); }
html[data-brand="on"] .ed-nav a { color: var(--brand-ink); opacity: .85; font-weight: 700; font-size: 14px; letter-spacing: .04em; padding: 8px 12px; border-radius: 6px; position: relative; }
html[data-brand="on"] .ed-nav a:hover { opacity: 1; background: rgba(255,255,255,.12); color: var(--brand-ink); }
html[data-brand="on"] .ed-nav a.on { opacity: 1; background: transparent; color: var(--brand-ink); }
html[data-brand="on"] .ed-nav a.on::before { content: ""; position: absolute; left: 50%; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-ink); transform: translateX(-50%); }
html[data-brand="on"] .ed-user { margin-left: auto; color: var(--brand-ink); }
html[data-brand="on"] .ed-user .sub { color: inherit; opacity: .75; }
html[data-brand="on"] .ed-tenant { background: rgba(0,0,0,.2); color: var(--brand-ink); }
html[data-brand="on"] .x-burger { color: var(--brand-ink); border-color: rgba(255,255,255,.35); background: transparent; }
.brand-crest { display: flex; justify-content: center; align-self: start; height: 86px; margin-top: -4px; z-index: 26; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
.brand-crest img { height: 100%; width: auto; max-width: 120px; object-fit: contain; }
.crest-txt { width: 70px; height: 80px; display: grid; place-items: center; border-radius: 0 0 35px 35px; background: var(--brand2); color: var(--brand-ink); font-weight: 900; font-size: 22px; border: 3px solid var(--brand-ink); }
html[data-brand="on"] .topbar.m-top { display: flex; }
html[data-brand="on"] .topbar.m-top .brand-crest { position: absolute; left: 50%; transform: translateX(-50%); top: 2px; height: 52px; }
html[data-brand="on"] .topbar.m-top .crest-txt { width: 44px; height: 50px; font-size: 15px; }
html[data-brand="on"] .topbar.m-top .m-brand, html[data-brand="on"] .topbar.m-top .logo { display: none; }
html[data-brand="on"] .topbar.m-top a, html[data-brand="on"] .topbar.m-top button { color: var(--brand-ink); }
html[data-brand="on"] .btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
html[data-brand="on"] .tab.on, html[data-brand="on"] .seg button.on, html[data-brand="on"] .chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
html[data-brand="on"] .tab.on { box-shadow: inset 0 -3px 0 var(--brand2); }
html[data-brand="on"] .panel { border-top: 2px solid var(--brand-soft); }
html[data-brand="on"] h1, html[data-brand="on"] h2 { letter-spacing: .02em; }
/* ホームの見出し */
.b-hero { display: flex; gap: 28px; align-items: center; padding: 28px 32px; margin: -4px 0 18px; border-radius: 14px; color: var(--brand-ink);
  background: radial-gradient(circle at 15% 30%, rgba(255,255,255,.14), transparent 45%), linear-gradient(120deg, var(--brand), var(--brand2) 70%, #0b0d12); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.b-hero-crest img { height: 130px; width: auto; filter: drop-shadow(0 8px 14px rgba(0,0,0,.45)); }
.b-hero-crest .crest-txt { width: 110px; height: 128px; font-size: 34px; }
.b-hero-team { font-size: 34px; font-weight: 900; letter-spacing: .04em; line-height: 1.2; }
.b-hero-tag { font-size: 16px; opacity: .9; margin-top: 6px; }
.b-hero-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.b-hero-links a { color: var(--brand-ink); text-decoration: none; padding: 7px 14px; border-radius: 999px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.25); font-weight: 700; font-size: 13px; }
.b-hero-links a:hover { background: rgba(0,0,0,.4); }
.b-matches { margin-bottom: 18px; }
.b-sec { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: .08em; margin-bottom: 8px; }
.b-mrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.b-mcard { display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--ink); border-top: 3px solid var(--brand); }
.b-mcard:hover { border-color: var(--brand); transform: translateY(-1px); }
.b-mcat { font-size: 11px; color: var(--accent); font-weight: 800; }
.b-mvs { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.b-mcrest img { height: 34px; }
.b-mopp { font-weight: 800; }
.b-mname { font-size: 12px; color: var(--muted); }
.b-mdate { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) {
  html[data-brand="on"] .topbar { grid-template-columns: 1fr; } .brand-crest { display: none; }
  .b-hero { flex-direction: column; text-align: center; } .b-hero-links { justify-content: center; }
}
/* 管理: ブランドの見本 */
.br-prev { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.br-prev-bar { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px; background: linear-gradient(180deg, var(--pv), var(--pv2)); color: #fff; font-weight: 700; font-size: 12px; }
.br-prev-crest { height: 44px; display: grid; place-items: center; min-width: 40px; } .br-prev-crest img { height: 44px; }
.br-prev-body { padding: 16px; background: #fff; color: #111; } .br-prev-body.dark { background: #0f1218; color: #e6e9ef; }

/* 最近の試合のカード: [ロゴ 略称] VS 相手 / 日付 / 大会名 */
.b-mcard .b-mvs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; font-size: 17px; }
.b-mus { display: flex; align-items: center; gap: 6px; min-width: 0; } .b-mus img { height: 34px; width: auto; } .b-mus b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-vs { font-size: 13px; font-weight: 900; color: var(--accent); letter-spacing: .06em; }
.b-mopp { font-weight: 800; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-mcard .b-mdate { font-size: 14px; color: var(--ink); font-weight: 700; margin-top: 4px; }
.b-mcard .b-mcat { font-size: 12px; color: var(--muted); font-weight: 400; }

/* ===== ブランドの画面: 上の帯を 1 行の細い帯に (動画を大きくするため)。ロゴは帯から少しはみ出して真ん中に ===== */
html[data-brand="on"] .topbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 96px; min-height: 0; height: 46px; padding: 0 14px; position: sticky; }
html[data-brand="on"] .brand-crest { position: absolute; left: 50%; top: 3px; transform: translateX(-50%); height: 52px; margin: 0; }
html[data-brand="on"] .brand-crest img { max-width: 90px; }
html[data-brand="on"] .crest-txt { width: 44px; height: 50px; font-size: 15px; border-width: 2px; border-radius: 0 0 22px 22px; }
html[data-brand="on"] .tb-left .brand { font-size: 12px; font-weight: 700; gap: 4px; opacity: .9; margin-right: auto; white-space: nowrap; }
html[data-brand="on"] .tb-left .brand .ed-badge { font-size: 9px; padding: 0 5px; margin-left: 2px; }
html[data-brand="on"] .ed-nav { flex-wrap: nowrap; gap: 0; }
html[data-brand="on"] .ed-nav a { font-size: 13px; padding: 5px 9px; white-space: nowrap; }
html[data-brand="on"] .ed-nav a.on::before { top: 0; }
html[data-brand="on"] .ed-user { gap: 6px; font-size: 12px; }
html[data-brand="on"] .x-burger { height: 30px; padding: 0 8px; }
/* チームを選ぶ欄: 白地に黒い文字 (帯の色の上でも読めるように) */
html[data-brand="on"] #edTenant { color: #111; background: #fff; border: 1px solid rgba(0,0,0,.25); border-radius: 6px; padding: 2px 6px; font-size: 12px; }
html[data-brand="on"] #edTenant option { color: #111; background: #fff; }
@media (max-width: 1100px) { html[data-brand="on"] .tb-left .brand { display: none; } }

/* タイムスタンプ: ゴールをキーパスより目立たせる (色だけ・大きさは同じ) */
.vs-row.k-goal b { background: #dc2626; color: #fff; }
.vs-row.k-goal span:last-child { color: #b91c1c; }
.vs-m .m-kp { background: transparent; color: #8a6100; }

/* ===== ブランドの画面の上の帯: メニューはロゴに寄せて左右に (左 = 試合一覧〜コーチへの提案、右 = 相手の分析から先)。
   左の端に「Soccer Analyzer Web」、右の端に名前・≡。右側が入りきるように、すき間を少し詰める ===== */
html[data-brand="on"] .topbar { column-gap: 84px; padding: 0 10px; }
html[data-brand="on"] .tb-left { justify-content: flex-end; gap: 6px; }
html[data-brand="on"] .tb-left .brand { margin-right: auto; }
html[data-brand="on"] .tb-right { gap: 6px; }
html[data-brand="on"] .ed-nav a { padding: 5px 7px; }
html[data-brand="on"] .ed-user { min-width: 0; flex-shrink: 1; }
html[data-brand="on"] .ed-user > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-brand="on"] #edTenant { max-width: 150px; }
html[data-brand="on"] .x-burger { flex-shrink: 0; }
@media (max-width: 1299px) { html[data-brand="on"] .ed-nav a { font-size: 12px; padding: 5px 6px; } html[data-brand="on"] .ed-user .sub { display: none; } }

/* ================================================================ 文字の大きさ (2026-11-28)
   上のバーの「文字 標準/大/特大」で切り替え。中身ごと拡大する (zoom) ので、図と文字の並びはくずれない。
   変えない画面: 記録 (tag)・作戦ボード (board)・位置合わせ (calib)・進行状況 (status)・チャット (画面の高さぴったりに作っている)
   上のバーと左の動画パネルも変えない (#app の中だけ拡大する)。元に戻す: 「標準」にする or backups/ui-20261128-before-fontsize */
.fs-btn { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 8px; height: 34px; padding: 0 10px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; flex: none; margin-left: 6px; }
html[data-brand="on"] .fs-btn { color: var(--brand-ink); border-color: rgba(255,255,255,.35); background: transparent; height: 30px; font-size: 12px; padding: 0 8px; }
html[data-fs="l"] { --fsz: 1.15; }
html[data-fs="xl"] { --fsz: 1.3; }
html:is([data-fs="l"], [data-fs="xl"]) body:not([data-page="chat"]):not([data-tab="tag"]):not([data-tab="board"]):not([data-tab="calib"]):not([data-tab="status"]) #app > * { zoom: var(--fsz); }
/* 文字を大きくしたら横の並びを減らす (箱が細くなって表がはみ出さないように) */
:where(html[data-fs="l"], html[data-fs="xl"]) .grid.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); }
:where(html[data-fs="l"], html[data-fs="xl"]) .grid.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
:where(html[data-fs="l"], html[data-fs="xl"]) .grid.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); }
/* 表の見出しは折り返してよい (箱の幅に収める) */
:where(html[data-fs="l"], html[data-fs="xl"]) table.t th { white-space: normal; }
