/* marry 編集室。
   白い紙に黒い字・細い線・角は丸めない。色を使うのは 2 か所だけ：
   「知らせ」（必ず＝赤、できれば＝茶、済み＝緑）と、「プレビュー」（本番の記事ページの色）。
   スマホを先に作り、広い画面では幅を使う（原稿とプレビューを並べる）。 */
:root {
  --paper: #fff;
  --ink: #1a1a1a;
  --sub: #6b6b6b;
  --line: #e3e3e3;
  --edge: #b5b5b5;
  --wash: #f5f5f5;
  --must: #c4291c;
  --should: #8a5a00;
  --ok: #1b7a46;
  --tap: 44px;
  --pad: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
@media (min-width: 760px) and (hover: hover) { :root { --tap: 36px; --pad: 24px; } }
* { box-sizing: border-box; border-radius: 0; }
html { scrollbar-gutter: stable; } /* スクロールの棒が出たり消えたりしても、横に動かない */
body { margin: 0; font-size: 15px; }
main { max-width: 820px; margin: 0 auto; padding: 16px var(--pad) calc(120px + env(safe-area-inset-bottom)); }
/* 記事の画面は、どのタブ・どの見せ方でも外枠の幅を変えない（切り替えで画面ぜんたいが横に動かないように）。
   1 列の中身（指摘・履歴・直すだけ・プレビューだけ）は、原稿と同じ左端にそろえる */
main:has(.article) { max-width: 1480px; }
.article > .toolbar ~ * { max-width: 760px; min-height: calc(100dvh - var(--tb, 45px)); } /* 中身が短くても、帯を上に留めたまま切り替えられる高さを保つ */
.article > .toolbar ~ .split { max-width: none; }
.article > .toolbar ~ :not(.split, .editor, .pv-pane) { padding-top: 16px; }
.article > .toolbar ~ * > h3:first-child { margin-top: 0; }
main.center { display: grid; place-items: center; min-height: 100dvh; padding-bottom: 16px; }
h1 { font-size: 20px; margin: 0; line-height: 1.4; font-weight: 700; }
h2 { font-size: 16px; margin: 0 0 8px; font-weight: 700; }
h3 { font-size: 14px; margin: 20px 0 6px; font-weight: 700; }
p { margin: 0 0 10px; }
a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
.boot { text-align: center; padding: 40px; color: var(--sub); }
.muted { color: var(--sub); font-size: 13px; }
.hint { color: var(--sub); font-size: 13px; margin: 4px 0 12px; }
.empty { color: var(--sub); padding: 40px 0; }
.warn { border-left: 2px solid var(--should); padding: 2px 0 2px 12px; font-size: 14px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* 押すもの */
button, .btn, input, select, textarea { font: inherit; color: inherit; }
button, .btn {
  min-height: var(--tap); padding: 0 16px; border: 1px solid var(--edge); background: var(--paper);
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
button:disabled { opacity: .4; cursor: not-allowed; }
button.primary, .btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
button.big { width: 100%; min-height: 48px; margin-top: 12px; }
button.link { border: 0; background: none; padding: 0 2px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
button.danger { color: var(--must); }
button.icon { min-width: var(--tap); padding: 0; border-color: transparent; font-size: 18px; color: var(--sub); }
@media (hover: hover) {
  button:not(:disabled, .primary, .link):hover, .btn:not(.primary):hover { background: var(--wash); }
  button.primary:not(:disabled):hover, .btn.primary:hover { background: #000; }
  button.icon:hover { color: var(--ink); }
}

input, select, textarea {
  width: 100%; min-height: var(--tap); padding: 8px 10px; border: 1px solid var(--edge); background: var(--paper);
  font-size: 16px; font-weight: 400; -webkit-appearance: none; appearance: none;
}
@media (min-width: 760px) and (hover: hover) { input, select, textarea { font-size: 15px; } }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 0; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
select { padding-right: 32px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231a1a1a' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center; }
textarea { resize: vertical; line-height: 1.7; display: block; }
input[type="checkbox"] { -webkit-appearance: auto; appearance: auto; width: 18px; min-height: 18px; height: 18px; padding: 0; accent-color: var(--ink); flex: none; margin: 3px 0 0; }
label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 4px; }
label em { font-style: normal; font-size: 12px; color: var(--must); margin-left: 6px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; line-height: 1.6; cursor: pointer; }
label.check.big { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
label.field { margin: 0; }
label.field > span { display: block; color: var(--sub); font-weight: 500; margin-bottom: 2px; }

/* 切り替えのボタン（つながった形） */
.seg { display: inline-flex; border: 1px solid var(--edge); flex: none; }
.seg button { border: 0; min-height: 32px; padding: 0 12px; font-size: 13px; color: var(--sub); }
.seg button + button { border-left: 1px solid var(--edge); }
.seg button.on { background: var(--ink); color: #fff; }
@media (hover: none) { .seg button { min-height: 40px; } }

/* 上の帯 */
header.top { display: flex; align-items: center; gap: 20px; min-height: 52px; padding: 0 var(--pad); padding-top: env(safe-area-inset-top); border-bottom: 1px solid var(--line); }
.brand { font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; font-size: 34px; font-weight: 600; letter-spacing: .02em; text-decoration: none; margin: 0; white-space: nowrap; }
.brand span { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif; font-size: 12px; font-weight: 500; letter-spacing: .08em; margin-left: 8px; color: var(--sub); }
.brand.small { font-size: 20px; }
header.top nav { display: flex; gap: 18px; align-self: stretch; }
header.top nav a { display: inline-flex; align-items: center; text-decoration: none; color: var(--sub); font-size: 14px; font-weight: 600; white-space: nowrap; }
header.top nav a.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
header.top > button { margin-left: auto; font-size: 13px; color: var(--sub); }
header.top .who { display: block; max-width: 7em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: var(--tap); }
.subnav { position: sticky; top: 0; z-index: 4; background: var(--paper); margin-bottom: 8px; }
.settings section { scroll-margin-top: 56px; }
.recheck { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }

.card { padding: 24px 0; border-top: 1px solid var(--line); }
.card:first-child, .back + .card { border-top: 0; padding-top: 8px; }
.form { max-width: 620px; }
.login { width: min(100%, 340px); border: 0; padding: 0; }
.login .brand { margin-bottom: 8px; }
.back { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; font-size: 13px; color: var(--sub); }
.back:hover { color: var(--ink); }

/* 知らせ（次にやること・作業中・止まっている） */
.next, .notice { border-left: 2px solid var(--ink); padding: 2px 0 2px 12px; margin: 12px 0 16px; font-size: 14px; }
.next strong { display: block; font-size: 12px; color: var(--sub); font-weight: 600; }
.next p { margin: 0; }
.next .btn, .next button { margin-top: 10px; }
.next button.link { margin-top: 0; min-height: 0; } /* 文の中のリンクは、行の高さを変えない */
.next.err { border-left-color: var(--must); }
.next.err strong { color: var(--must); }
.steps { display: flex; list-style: none; padding: 0; margin: 10px 0 8px; max-width: 520px; }
.steps li { flex: 1; padding-top: 6px; border-top: 2px solid var(--line); color: var(--sub); font-size: 13px; }
.steps li.done { border-color: var(--ink); color: var(--ink); }
.steps li.done::before { content: "✓ "; }
.steps li.now { border-color: var(--ink); color: var(--ink); font-weight: 700; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .steps li.now { animation: none; } }

/* 切り替え（下線の付く文字） */
.tabs { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs > * { flex: none; min-height: 44px; padding: 0; border: 0; background: none; color: var(--sub); text-decoration: none; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.tabs > .on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.tabs > :hover { color: var(--ink); background: none !important; }
.count { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tabs .count { color: var(--ink); background: var(--wash); padding: 0 6px; line-height: 20px; }

/* 一覧 */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 4px; }
.list { list-style: none; margin: 0; padding: 0; }
.row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; min-height: 76px; }
.row img, .thumb-empty { width: 56px; height: 56px; object-fit: cover; flex: none; background: var(--wash); }
.row-main { flex: 1; min-width: 0; }
.row-title { display: block; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.row:hover .row-title { text-decoration: underline; text-underline-offset: 3px; }
.row-sub { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; color: var(--sub); font-size: 13px; margin-top: 2px; }
.flag { font-weight: 600; color: var(--ink); }
.flag.must { color: var(--must); }

.chip { display: inline-flex; align-items: center; padding: 3px 6px; font-size: 12px; font-weight: 600; line-height: 1.2; border: 1px solid var(--edge); white-space: nowrap; }
.chip.must, .chip.err { border-color: var(--must); color: var(--must); }
.chip.ok, .chip.done, .chip.st-approved, .chip.st-published { border-color: var(--ok); color: var(--ok); }
.chip.st-review { border-color: var(--should); color: var(--should); }

/* 記事 */
.head-row { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin-bottom: 8px; }
.head-row .danger { margin-left: auto; min-height: 32px; font-size: 13px; }
.theme { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.toolbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); background: var(--paper); border-bottom: 1px solid var(--line); }
.toolbar .tabs { flex: 1; min-width: 0; border-bottom: 0; }
.modes .w { display: none; }
.modes .w + button:not(.w) { border-left: 0; } /* 狭い画面では「プレビュー」1 つだけが見える */

/* 保存・承認・公開のボタン：狭い画面では親指の届く下、広い画面では上の帯の右 */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; gap: 10px; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
.bar button { flex: 1; min-height: 48px; }
.bar .count { font-weight: 500; opacity: .75; }
@media (min-width: 760px) {
  main { padding-bottom: 48px; }
  .toolbar .bar { position: static; padding: 0; border: 0; flex: none; }
  .toolbar .bar button { flex: none; min-height: 36px; }
}

/* 原稿（直す側）：タイトル・見出し・文は、枠のある入力欄にする（ここに打てる、と見て分かるように）。
   字の大きさと太さで、見出しか文かを見分ける */
.editor { padding-top: 16px; min-width: 0; }
.editor > .warn { margin-bottom: 16px; }
.in-title, .in-h2, .in-p { resize: none; overflow: hidden; }
@media (hover: hover) { .editor :is(input, textarea):hover { border-color: var(--ink); } }
.in-title { font-size: 24px; font-weight: 700; line-height: 1.5; }
.in-h2 { font-size: 19px; font-weight: 700; }
.in-p { font-size: 16px; line-height: 1.9; min-height: 0; }
.meta { display: grid; gap: 12px; padding: 14px 0 16px; margin: 4px 0 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.meta textarea, .meta input { font-size: 14px; }
.hero { display: flex; gap: 12px; align-items: center; }
.hero img, .hero .thumb-empty { width: 64px; height: 64px; object-fit: cover; }
.hero p { margin: 0; display: grid; font-size: 13px; }
.block { padding: 5px 0; scroll-margin-top: 80px; }
.block.t-h2 { margin-top: 18px; }
.block.t-img, .block.t-link, .block.t-ig, .block.t-yt { padding-top: 10px; padding-bottom: 10px; }
.block-row { display: flex; align-items: flex-start; gap: 4px; }
.block-row > :first-child { flex: 1; min-width: 0; }
.more { flex: none; letter-spacing: .05em; }
.in-img img { height: 200px; width: auto; max-width: 100%; object-fit: contain; object-position: left; } /* 高さを先に決めておく（写真が読み込まれるたびに下の文が動かないように） */ /* 大きく見るのはプレビューで。ここでは、どの写真かが分かればよい */
.slot { border: 1px dashed var(--edge); padding: 24px 12px; text-align: center; color: var(--sub); }
.slot span { font-weight: 600; font-size: 13px; }
.slot p { margin: 4px 0 0; font-size: 13px; }
.in-link { border: 1px solid var(--line); padding: 12px; display: grid; gap: 10px; }
.in-link a { font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.actions button, .actions select { min-height: 36px; font-size: 13px; padding-top: 0; padding-bottom: 0; width: auto; }
@media (hover: none) { .actions button, .actions select { min-height: 40px; } }
details { margin-top: 6px; }
details > label { margin-top: 10px; }
summary { cursor: pointer; padding: 8px 0; color: var(--sub); font-size: 13px; }
.add-end { width: 100%; margin-top: 20px; border-style: dashed; color: var(--sub); min-height: 48px; }

/* 指摘：色は左の線と「必ず」の字だけ */
.finding { border-left: 2px solid var(--edge); padding: 2px 0 4px 12px; margin: 10px 0 12px; font-size: 14px; }
.finding.sev-must { border-left-color: var(--must); }
.finding.sev-should { border-left-color: var(--should); }
.finding.resolved, .finding.dismissed { border-left-color: var(--line); color: var(--sub); }
.finding-top { display: flex; gap: 8px; align-items: center; }
.chip.sev { border: 0; padding: 0; font-size: 12px; }
.sev-must .chip.sev { color: var(--must); }
.sev-should .chip.sev { color: var(--should); }
.finding-msg { margin: 2px 0; font-weight: 600; overflow-wrap: anywhere; }
.finding-sug { margin: 0; color: var(--sub); }
.blockers { margin: 8px 0; padding-left: 1.2em; color: var(--must); font-size: 14px; }
.quote { border-left: 2px solid var(--line); padding-left: 10px; color: var(--sub); font-size: 13px; max-height: 6.5em; overflow: hidden; }

/* 並べる：左が原稿（ページ全体でスクロール）、右がプレビュー（枠の中でスクロール）。スクロールは互いに合わせる */
.pv-pane { min-width: 0; padding-top: 12px; }
.pv-head { display: none; }
@media (min-width: 760px) {
  .pv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--sub); }
  .pv-scroll { background: var(--wash); border: 1px solid var(--line); padding: 20px; }
  .pv-pane.phone .pv, .pv-pane.phone .pv-extra { max-width: 390px; }
}
@media (min-width: 1040px) {
  .modes .w { display: inline-flex; }
  .modes .w + button:not(.w) { border-left: 1px solid var(--edge); }
  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .split > .editor { padding-right: 32px; padding-bottom: 40px; }
  .split > .pv-pane { position: sticky; top: var(--tb, 45px); height: calc(100dvh - var(--tb, 45px)); display: flex; flex-direction: column; padding: 0 0 16px 24px; border-left: 1px solid var(--line); }
  .split .pv-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .split .pv [data-k], .split .pv-extra [data-k] { cursor: pointer; }
}

/* プレビューの中身：ここだけは本番の記事ページ（marry）の色・文字・形に合わせる。
   元は marry/tools/prod/articles-2026.css。道具の決まり（白黒・角なし）はここには及ぼさない */
.pv {
  --m-bg: #fff9fa; --m-blush: #fdeef1; --m-pink-2: #f6bccb; --m-pink-3: #ec8fab; --m-rose: #c63d6f; --m-ink: #4a2c36; --m-sub: #876670; --m-line: #f5dbe2;
  --m-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  container-type: inline-size; margin: 0 auto; padding: 24px 16px 36px; background: var(--m-bg); color: var(--m-ink);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif; -webkit-font-smoothing: antialiased;
}
.pv-ttl { font-family: var(--m-serif); font-weight: 600; font-size: clamp(21px, 4.6cqi, 29px); line-height: 1.65; letter-spacing: .03em; margin: 0 0 18px; overflow-wrap: anywhere; }
.pv-hero { border-radius: 20px; overflow: hidden; background: var(--m-blush); margin-bottom: 28px; }
.pv-hero img { width: 100%; }
.pv-body h2 { font-family: var(--m-serif); font-weight: 600; font-size: clamp(18px, 3.8cqi, 22px); line-height: 1.7; letter-spacing: .04em; margin: 2.6em 0 1.1em; padding: 13px 18px; background: var(--m-blush); border-left: 4px solid var(--m-pink-3); border-radius: 14px; overflow-wrap: anywhere; }
.pv-body > h2:first-child { margin-top: 0; }
.pv-body p { font-size: 16px; line-height: 2.05; letter-spacing: .02em; margin: 0 0 1.05em; overflow-wrap: anywhere; white-space: pre-line; }
.pv-body figure { margin: 1.8em 0; }
.pv-body figure img { width: 100%; border-radius: 16px; background: var(--m-blush); }
.pv-body figcaption { text-align: right; font-size: 11.5px; line-height: 1.5; color: var(--m-sub); margin-top: 8px; }
.pv-body .pv-link { margin: 0 0 14px; font-size: 14.5px; white-space: normal; }
.pv-link a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border: 1px solid var(--m-pink-3); border-radius: 16px; background: #fff; color: var(--m-rose); font-weight: 700; line-height: 1.6; text-decoration: none; }
.pv-link a::after { content: "→"; flex: none; }
.pv-pr { display: inline-block; font-size: 11px; font-weight: 700; line-height: 1.5; padding: 0 5px; margin-right: 8px; border: 1px solid currentColor; border-radius: 3px; vertical-align: 1px; }
.pv-embed { display: grid; gap: 4px; justify-items: center; margin: 1.8em 0; padding: 18px 16px; border: 1px solid var(--m-line); border-radius: 16px; background: #fff; font-size: 13px; color: var(--m-sub); text-align: center; overflow-wrap: anywhere; }
.pv-embed strong { color: var(--m-ink); font-size: 14px; }
.pv-embed a { color: var(--m-rose); }
.pv-slot { display: grid; gap: 4px; padding: 36px 14px; border: 1px dashed var(--m-pink-3); border-radius: 16px; text-align: center; font-size: 13px; color: var(--m-sub); }
.pv-wait img { opacity: .55; }
.pv-wait-note { font-size: 12px !important; line-height: 1.6 !important; color: #8a5a00; margin: 6px 0 0 !important; }
.pv-tags { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--m-line); }
.pv-tags > span { font-size: 12px; letter-spacing: .12em; color: var(--m-sub); }
.pv-tags ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.pv-tags li { padding: 5px 14px; border: 1px solid var(--m-line); border-radius: 99px; background: #fff; font-size: 13px; }
.pv-tags li::before { content: "#"; margin-right: 2px; color: var(--m-pink-3); }
.pv-ph { color: #c8aab3; }
.pv .now, .pv-extra .now { outline: 2px solid var(--ink); outline-offset: 5px; }
/* 記事のページには出ないもの（検索結果での見え方）は、紙の外に置く */
.pv-extra { margin: 16px auto 0; }
.pv-serp { display: grid; gap: 2px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); }
.pv-serp-lb { font-size: 12px; color: var(--sub); margin-bottom: 6px; }
.pv-serp-url { font-size: 12px; color: var(--sub); }
.pv-serp strong { font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.pv-serp p { margin: 2px 0 0; font-size: 13px; line-height: 1.6; color: var(--sub); overflow-wrap: anywhere; }
.pv-serp p.pv-ph { color: #b5b5b5; }

/* 小窓（狭い画面では下から、広い画面では真ん中に） */
.sheet-back { position: fixed; inset: 0; z-index: 20; background: rgb(0 0 0 / .4); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--paper); width: min(100%, 520px); max-height: 90dvh; overflow: auto; padding: 12px 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 10px 40px rgb(0 0 0 / .2); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.sheet-head h2 { margin: 0; }
.sheet-head .icon { margin-right: -10px; font-size: 22px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid button { min-height: 52px; }
.menu { display: grid; }
.menu button { justify-content: flex-start; min-height: 50px; padding: 0; border: 0; border-top: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.menu button:first-child { border-top: 0; }
.howto { padding-left: 1.3em; margin: 0 0 12px; font-size: 14px; }
@media (min-width: 700px) { .sheet-back { align-items: center; } }

/* 履歴・テーマの案・設定 */
.log { list-style: none; margin: 0; padding: 0; }
.log li { padding: 10px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; font-size: 14px; }
.ideas { list-style: none; padding: 0; margin: 0; }
.ideas h3 { margin-top: 0; font-size: 15px; }
.ideas p { font-size: 14px; }
.route { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.route strong, .route input { grid-column: 1 / -1; }
.route strong { font-size: 13px; }
.price { display: grid; grid-template-columns: minmax(0, 1fr) 76px 76px var(--tap); gap: 6px; margin-bottom: 6px; }
.dest { border-top: 1px solid var(--line); margin-top: 16px; }
.big-num { font-size: 28px; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.meter { height: 6px; background: var(--wash); margin: 8px 0 16px; max-width: 620px; }
.meter span { display: block; height: 100%; background: var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
th { color: var(--sub); font-weight: 600; }
.settings .bar { position: sticky; bottom: 0; padding-left: 0; padding-right: 0; }
.settings .bar button { flex: none; min-width: 200px; }

#toast { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top)); transform: translate(-50%, -12px); z-index: 30; background: var(--ink); color: #fff; padding: 10px 16px; font-size: 14px; max-width: calc(100vw - 32px); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: var(--must); }
#toast.act { pointer-events: auto; display: flex; align-items: center; gap: 14px; }
#toast button { min-height: 32px; padding: 0 10px; background: none; border-color: rgb(255 255 255 / .6); color: #fff; }
.keys { margin-top: 12px; }
@media (hover: none) { .keys { display: none; } } /* キーの説明は、キーボードのある画面だけ */
@media (prefers-reduced-motion: reduce) { #toast { transition: none; } }

/* 帯の中の保存の状態・一覧の知らせのリンク */
.saved { display: none; white-space: nowrap; }
@media (min-width: 760px) { .saved { display: inline; } }
.notice a { margin-left: 10px; }

/* 承認の前のまとめ */
.sum { display: flex; gap: 12px; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.sum img, .sum .thumb-empty { width: 72px; height: 72px; object-fit: cover; flex: none; }
.sum strong { display: block; line-height: 1.5; overflow-wrap: anywhere; }
.sum p { margin: 2px 0 0; overflow-wrap: anywhere; }

/* 版の違い：消えた字は赤、足した字は緑 */
.diff-item { padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.diff-top { display: flex; gap: 8px; font-size: 12px; color: var(--sub); margin-bottom: 6px; }
.diff-top strong { color: var(--ink); }
.diff-old, .diff-new { margin: 0 0 4px; padding-left: 10px; border-left: 2px solid var(--line); overflow-wrap: anywhere; }
.diff-old { color: var(--sub); border-left-color: var(--must); }
.diff-new { border-left-color: var(--ok); }
del { background: #fbe3df; color: var(--must); }
ins { background: #dff1e6; color: #0f5a31; text-decoration: none; }
.diff-imgs { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; color: var(--sub); }
.diff-imgs img, .diff-imgs .thumb-empty { width: 56px; height: 56px; object-fit: cover; }
