/* ミセミッケ 画面スタイル（Phase1）。単一ファイル・依存なし・ライトのみ。
   構成: トークン → リセット → ベース → レイアウト → コンポーネント → ユーティリティ → スマホ → 動きの抑制
   インラインstyleは使わない（CSP: style-src 'self'）。値は docs/uiux/final_spec.md §3.4〜3.6。 */

:root {
  color-scheme: light;
  --bg: #F4F4F8; --surface: #FFFFFF; --surface-raised: #FAFAFD; --surface-sunken: #ECECF3;
  --ink: #15151F; --ink-soft: #4A4A60; --ink-faint: #6E6E86;
  --line: #E3E3EC; --line-strong: #C9C9D8; --control-border: #8A8AA0;
  --accent: #4B4BDC; --accent-hover: #3F3FC8; --accent-soft: #EDEDFC; --accent-ink: #3A3ABF;
  --ok-ink: #176B40; --ok-bg: #E8F6EE;
  --warn-ink: #8A5A00; --warn-bg: #FFF4DC;
  --danger-ink: #C62839; --danger-bg: #FDECEE;
  --info-ink: var(--ink-soft); --info-bg: var(--surface-raised);
  --r-control: 8px; --r-card: 12px;
  --shadow-pop: 0 8px 24px -12px rgba(21, 21, 31, 0.25);
  --shadow-bar: 0 -8px 24px -12px rgba(21, 21, 31, 0.25);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "BIZ UDPGothic", "Meiryo", "Noto Sans JP", sans-serif;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* リセット（最小） */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.7 var(--font); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

/* ベース */
h1 { font-size: 22px; font-weight: 700; line-height: 1.4; text-wrap: balance; word-break: auto-phrase; overflow-wrap: anywhere; }
h2 { font-size: 16px; font-weight: 700; line-height: 1.5; text-wrap: balance; word-break: auto-phrase; }
.small { font-size: 13px; line-height: 1.6; }
.caption { font-size: 12px; line-height: 1.5; }
.num { font-variant-numeric: tabular-nums; }
.soft { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.metric { font-size: 28px; font-weight: 700; line-height: 1.2; }
.metric-sm { font-size: 20px; font-weight: 700; line-height: 1.2; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.m-only { display: none; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 30; padding: 10px 16px; border-radius: var(--r-control); background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; color: #fff; }

/* レイアウト */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.page { padding-top: 24px; padding-bottom: 64px; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 32px; }
.narrow { max-width: 720px; }
.cols { display: grid; gap: 24px; align-items: start; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-left: -4px; padding: 0 4px; font-size: 14px; }
.page-head { display: grid; gap: 6px; margin-bottom: 16px; }
.meta { color: var(--ink-soft); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 4px; }
@media (min-width: 1120px) {
  .cols--form { grid-template-columns: minmax(0, 640px) minmax(0, 1fr); }
}
@media (min-width: 960px) {
  .cols--result { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ヘッダー・ユーザーメニュー */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 18px; font-weight: 700; text-decoration: none; letter-spacing: 0.02em; }
.wordmark:hover { color: var(--ink); }
.tabs { display: flex; gap: 4px; margin-right: auto; }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-bottom: 3px solid transparent; color: var(--ink-soft); font-size: 14px; font-weight: 700; text-decoration: none; }
.tabs a:hover { color: var(--ink); background: var(--surface-sunken); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.menu { position: relative; }
.menu > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: var(--r-control); font-size: 14px; cursor: pointer; list-style: none; max-width: 60vw; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu > summary::after { content: ""; flex: none; width: 7px; height: 7px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg) translateY(-2px); }
.menu > summary:hover { background: var(--surface-sunken); }
.menu__panel { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 200px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-pop); }
.menu__panel .btn { width: 100%; justify-content: flex-start; }

/* 利用状況の帯（全ページ・ヘッダー直下） */
.usage { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.6; }
.usage .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 20px; padding-top: 10px; padding-bottom: 10px; }
.usage strong { font-weight: 700; font-variant-numeric: tabular-nums; }
.usage__nums { color: var(--ink-soft); }
.usage__nums strong { color: var(--ink); }
.usage__note { color: var(--ink-soft); font-size: 13px; }
.usage[data-usage-level="over"], .usage[data-usage-level="cap_near"] { background: var(--warn-bg); border-bottom-color: transparent; }
.usage[data-usage-level="capped"] { background: var(--danger-bg); border-bottom-color: transparent; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 24px; border: 1px solid var(--control-border); border-radius: var(--r-control); background: transparent; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; }
.btn:hover { color: var(--ink); border-color: var(--ink-soft); }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn--text { border-color: transparent; color: var(--accent); padding: 0 12px; }
.btn--text:hover { color: var(--accent-hover); border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.btn[disabled] { opacity: 0.5; cursor: default; transform: none; }
.btn--sm { padding: 0 14px; font-size: 14px; }  /* 高さは44pxのまま（タップ領域） */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.js-only { display: none !important; }
.js .js-only { display: inline-flex !important; }

/* フォーム */
.field + .field { margin-top: 20px; }
.label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.input { display: block; width: 100%; min-height: 44px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--control-border); border-radius: var(--r-control); font-size: 15px; line-height: 1.4; }
.input:hover { border-color: var(--ink-soft); }
.input::placeholder { color: var(--ink-faint); opacity: 1; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%234A4A60' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input[aria-invalid="true"] { border-color: var(--danger-ink); }
.field-error { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; color: var(--danger-ink); font-size: 13px; font-weight: 700; line-height: 1.6; }
.field-error > svg { flex: none; width: 16px; height: 16px; margin-top: 3px; }
.fieldset > .field-error { margin: 0 0 8px; }
.hint { margin-top: 6px; color: var(--ink-faint); font-size: 13px; line-height: 1.6; }
.fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.fieldset > legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--control-border); border-radius: var(--r-control); cursor: pointer; }
.choice:hover { border-color: var(--ink-soft); }
.choice:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); }
.choice input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }
.choice__title { display: block; font-weight: 700; line-height: 1.5; }
.choice__desc { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.disclosure > summary { display: flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 700; cursor: pointer; list-style: none; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::before { content: ""; flex: none; width: 7px; height: 7px; margin: 0 12px 0 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.disclosure[open] > summary::before { transform: rotate(45deg); }
.disclosure > :not(summary) { margin-top: 4px; }
/* 除外一覧の「探した内容を見る」（Instagram未特定の根拠）。入れ子の開閉なので控えめに */
.why { margin-top: 6px; }
.why > summary { display: inline-block; min-height: 24px; color: var(--accent-ink); font-size: 13px; font-weight: 700; cursor: pointer; }
.why__body { margin-top: 6px; padding: 8px 12px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--r-control); color: var(--ink-soft); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.why__body p { margin: 4px 0; }
.why__body ul { margin: 2px 0 6px; padding-left: 18px; list-style: disc; }
.form-foot { margin-top: 24px; display: grid; gap: 12px; }

/* カード・見出しまわり */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.card > h2 { margin-bottom: 12px; }
.card--hero { border-color: var(--control-border); }
.card p + .btn-row, .card .btn-row:not(:first-child) { margin-top: 16px; }
details.card { padding: 4px 24px; }
details.card[open] { padding-bottom: 20px; }
.rules { display: grid; gap: 8px; padding-left: 20px; list-style: disc; font-size: 14px; color: var(--ink-soft); }
.runs-left { font-size: 14px; color: var(--ink-soft); }

/* バナー（info / ok / warn / danger） */
.banner { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border: 1px solid transparent; border-radius: var(--r-control); font-size: 14px; line-height: 1.7; }
.banner > svg { flex: none; width: 18px; height: 18px; margin-top: 3px; }
.banner__body { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.banner__body .small, .banner .soft { color: var(--ink-soft); }
.banner a:not(.btn) { color: inherit; font-weight: 700; }
.banner .btn { margin-top: 8px; }
.banner .btn:not(.btn--primary) { background: var(--surface); }
.banner--info { background: var(--info-bg); color: var(--ink); border-color: var(--line); }
.banner--ok { background: var(--ok-bg); color: var(--ok-ink); }
.banner--warn { background: var(--warn-bg); color: var(--warn-ink); }
.banner--danger { background: var(--danger-bg); color: var(--danger-ink); }

/* 状態チップ（色だけに頼らず文字を持つ） */
.chip { display: inline-flex; align-items: center; padding: 1px 10px; border-radius: var(--r-control); font-size: 13px; font-weight: 700; line-height: 1.7; white-space: nowrap; }
.chip--wait, .chip--expired { background: var(--surface-sunken); color: var(--ink-soft); }
.chip--run, .chip--show { background: var(--accent-soft); color: var(--accent-ink); }
.chip--ok { background: var(--ok-bg); color: var(--ok-ink); }
.chip--warn { background: var(--warn-bg); color: var(--warn-ink); }
.chip--danger { background: var(--danger-bg); color: var(--danger-ink); }

/* 直近の実行 */
.recent > li { display: grid; gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); }
.recent > li:first-child { border-top: 0; padding-top: 0; }
.recent__title { font-weight: 700; overflow-wrap: anywhere; }
.recent__line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--ink-soft); }
.recent__more { margin-top: 8px; font-size: 14px; }
.recent a, table.stack td.act a, .recent__more a { display: inline-flex; align-items: center; min-height: 44px; }

/* 進捗 */
progress { display: block; width: 100%; height: 8px; border: 0; border-radius: 4px; background: var(--surface-sunken); overflow: hidden; appearance: none; -webkit-appearance: none; }
progress::-webkit-progress-bar { background: var(--surface-sunken); border-radius: 4px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 4px; transition: width 0.3s; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 4px; }
progress:not([value]) { background: repeating-linear-gradient(-45deg, var(--accent) 0 10px, var(--accent-soft) 10px 20px); background-size: 28px 100%; animation: stripes 0.9s linear infinite; }
progress:not([value])::-webkit-progress-bar { background: transparent; }
@keyframes stripes { to { background-position: 28px 0; } }
.progress-block { display: grid; gap: 12px; }
.progress-block .phase { color: var(--ink-soft); }

/* 件数カード */
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: baseline; }
.kv dd { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.kv dt.kv__main { font-weight: 700; }
.kv dt.kv__sub { padding-left: 14px; color: var(--ink-soft); font-size: 14px; }
.kv dd.kv__sub { color: var(--ink-soft); font-size: 14px; font-weight: 400; }
.card .note { margin-top: 12px; color: var(--ink-soft); font-size: 13px; }
.card .banner { margin-top: 12px; }

/* 表（PC） */
.table-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { padding: 10px 12px; background: var(--surface-raised); color: var(--ink-faint); font-size: 13px; font-weight: 700; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
table.data td { padding: 10px 12px; border-top: 1px solid var(--line); line-height: 1.5; vertical-align: top; overflow-wrap: anywhere; }
table.data tbody tr:first-child td { border-top: 0; }
table.data td.n, table.data th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.data .name { font-weight: 700; }
table.data a { word-break: break-all; }
.empty-row { color: var(--ink-soft); }
.attribution { color: var(--ink-faint); font-size: 12px; line-height: 1.5; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 12px; }

/* 顧客からのフィードバック（#22）。JSなしでも成立する: 理由の欄は常に出ていて、ラジオ＋送信ボタンで送る。JSがあるときは「違う」で開く */
table.stack--fb tbody.shop + tbody.shop tr:first-child td { border-top: 1px solid var(--line); }
td.fb { min-width: 190px; }
.fb__actions { display: flex; flex-wrap: nowrap; gap: 8px; }
.fb__actions form, .fb__form { display: contents; }
.fb__btn { min-width: 44px; padding: 0 12px; white-space: nowrap; }
.fb__btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.fb__btn--ok[aria-pressed="true"]::before { content: "✓"; }
.fb__btn--wrong[aria-pressed="true"]::before { content: "×"; }
.fb__status { margin-top: 6px; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.5; }
.fb__status a { font-weight: 400; }
.fb__prior { display: block; font-size: 12px; font-weight: 400; color: var(--ink-soft); }
.fb__clear { min-height: 44px; margin-top: 2px; padding: 0 8px; font-size: 13px; }
.fb-panel-row td { padding: 12px 16px 16px; background: var(--surface-raised); border-top: 0 !important; }
.js .fb-panel-row:not(.is-open) { display: none; }
.fb-reasons { margin: 0; padding: 0; border: 0; min-width: 0; }
.fb-reasons > legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.fb-reasons__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.fb-reason { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 8px 14px; background: var(--surface); border: 1px solid var(--control-border); border-radius: var(--r-control); cursor: pointer; }
.fb-reason:hover { border-color: var(--ink-soft); }
.fb-reason input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fb-reason:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); }
.fb-reason:has(input:checked) .fb-reason__title::before { content: "✓ "; }
.fb-reason:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.fb-reason__title { font-size: 14px; font-weight: 700; line-height: 1.4; }
.fb-reason__hint { color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.fb-note { margin-top: 12px; max-width: 520px; }
.fb-submit { margin-top: 12px; }
/* JSがあるときは、指やマウスで理由を押せば即保存されるので送信ボタンは出さない。「その他」の選択中とキーボード操作中だけ出す */
.js .fb-form:not(:has(input[value="other"]:checked)) .fb-note { display: none; }
.js .fb-form:not(:has(input[value="other"]:checked)):not(:has(.fb-reason input:focus-visible)) .fb-submit { display: none; }
.fb-summary { margin-bottom: 12px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.fb-summary__line { font-size: 15px; }
.fb-summary .note { margin-top: 4px; }
td.fb-url { min-width: 280px; }
/* 除外一覧の根拠（チェーン・フランチャイズ・除外キーワード）と、チェーンではないときの「採用する」 */
.basis { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.chain-form .hint { margin-top: 4px; font-size: 12px; }
.url-form .label { font-size: 13px; margin-bottom: 4px; }
.url-form__row { display: flex; flex-wrap: wrap; gap: 8px; }
.url-form__row .input { flex: 1 1 200px; width: auto; min-width: 0; }
.url-form__row .btn { flex: 0 0 auto; white-space: nowrap; }
.url-form .hint { margin-top: 4px; font-size: 12px; }
.section-head + .fb-summary, .fb-summary + .banner { margin-top: 0; }
.section-head + .fb-summary + .banner, .fb-summary + .banner { margin-bottom: 12px; }

/* スマホ下部固定のCSV保存バー（PCでは出さない。スマホ側の規則は @media 内） */
.csv-bar { display: none; }

/* 認証・エラー（中央カード） */
.auth { max-width: 400px; margin: 48px auto 0; }
.auth .card { padding: 32px 24px; }
.auth h1 { margin-bottom: 20px; }
.auth .wordmark-lg { display: block; margin-bottom: 8px; font-size: 18px; font-weight: 700; color: var(--ink-soft); }
.auth .btn-row { margin-top: 24px; }
.auth .banner { margin: 0 0 20px; }
.btn--block { width: 100%; }

/* スマホ */
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 20px; }
  .wrap { padding: 0 16px; }
  .page { padding-top: 16px; padding-bottom: 48px; }
  .small, .meta, .hint, .choice__desc, .usage__note, .field-error { font-size: 14px; }
  .metric { font-size: 24px; }
  .card { padding: 16px; }
  details.card { padding: 2px 16px; }
  details.card[open] { padding-bottom: 16px; }
  .site-header .wrap { flex-wrap: wrap; row-gap: 0; }
  .site-header .wordmark { margin-right: auto; }
  .tabs { order: 3; width: 100%; margin: 0; }
  .tabs a { flex: 1; justify-content: center; }
  .usage { font-size: 13px; }
  .usage__defn { display: none; }
  .auth { margin-top: 24px; }
  .auth .card { padding: 24px 16px; }
  .btn--sm-block { width: 100%; }
  .has-csv-bar .page { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  html:has(.has-csv-bar) { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }  /* フォーカスした欄が下部固定バーに隠れない */
  .has-csv-bar .csv-main { display: none; }
  .csv-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--shadow-bar); }
  .csv-bar__meta { display: grid; gap: 0; min-width: 0; flex: none; font-size: 14px; font-weight: 700; line-height: 1.4; }
  .csv-bar__meta .caption { color: var(--ink-soft); font-weight: 400; font-size: 13px; }
  .csv-bar .btn { flex: 1; }
  .m-only { display: inline; }
  .banner { padding: 12px; }

  /* 表を1店舗1カードにする。display:block で表の意味が落ちるため role をテンプレートで明示している */
  .table-scroll { overflow: visible; background: transparent; border: 0; border-radius: 0; }
  table.stack, table.stack tbody { display: block; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr { display: block; margin-bottom: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
  table.stack td { display: block; padding: 0; border: 0; font-size: 14px; line-height: 1.6; }
  table.stack tbody tr:first-child td { border-top: 0; }
  table.stack td + td { margin-top: 4px; }
  table.stack td[data-label]::before { content: attr(data-label) "　"; color: var(--ink-faint); font-size: 13px; }
  table.stack td.name { font-size: 16px; font-weight: 700; }
  table.stack td.name::before, table.stack td.addr::before { content: none; }
  table.stack td.ig { margin-top: 10px; margin-bottom: 6px; }
  table.stack td.ig::before { content: none; }
  table.stack td.mini:empty { display: none; }
  table.stack td.ig a { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 6px; text-align: center; min-height: 44px; padding: 6px 16px; border: 1px solid var(--control-border); border-radius: var(--r-control); color: var(--ink); font-weight: 700; text-decoration: none; word-break: normal; }
  table.stack td.ig .handle { white-space: nowrap; }
  table.stack td.mini { display: inline-block; margin: 0 14px 0 0; font-size: 13px; color: var(--ink-soft); }
  table.stack td.mini + td.mini { margin-top: 0; }
  table.stack td.n { text-align: left; }
  table.stack td.act { margin-top: 10px; }
  table.stack td.act::before { content: none; }
  /* フィードバック付きの結果表: 1店舗（tbody）を1カードにし、確認欄と理由欄をカードの下に続ける */
  table.stack--fb tbody.shop { margin-bottom: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
  table.stack--fb tbody.shop tr { margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; }
  table.stack--fb tbody.shop + tbody.shop tr:first-child td { border-top: 0; }
  table.stack td.fb { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
  table.stack td.fb::before { content: none; }
  .fb__actions { flex-wrap: nowrap; }
  .fb__actions .btn { flex: 1; }
  .fb__status { font-size: 14px; }
  .fb-panel-row td { margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-control); }
  .fb-reasons__grid { grid-template-columns: 1fr; }
  .fb-submit { width: 100%; }
  table.stack td.fb-url { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
  table.stack td.fb-url::before { content: none; }
  table.stack td.fb-url:empty { display: none; }
  .chain-form .btn { width: 100%; }
  .fb-summary { padding: 12px; }
  .url-form__row .input { flex-basis: 100%; }
  .url-form__row .btn { flex: 1 1 auto; }
}

/* 動きの抑制 */
@media (prefers-reduced-motion: reduce) {
  progress:not([value]) { animation: none; }
  progress::-webkit-progress-value { transition: none; }
  .btn:active { transform: none; }
}
.fb-url__teach { margin-top: 12px; }
