/* save the date の見た目（モックの I2 送り・7 回目、mock/i2.html の <style> を移した）。土台は base.css */
/* I2 送り・磨き込み（5 回目）: I の骨組み（1 カラム・段の中を横に送る・右端の鱗の背）はそのまま。
   暗いときは店の黒、明るいときは /sm/（プロフのページ）の明るい表示の紙の色。灯るのは「いま読んでいる段の縦線」と「その段のいまの 1 枚」と「その鱗」だけ。
   月の変わり目に明朝の見出し。丸い物はキャラの丸と鱗だけにして、ほかは角を絞った */
:root {
  /* 明るい表示 = /sm/ の明るい表示に寄せた（地は紙の #e6e5e9、字は #1d1a20、薄い字は #5a5561。2026-12-03 ユーザー） */
  --bg: #e6e5e9; --card: #efeef1; --text: #1d1a20; --mute: #5a5561; --rule: #bdbac4; --knob: #b4b1bb;
  --edge: rgba(29, 26, 32, .16); --dim: .62; --screen: #161618;
  --sans: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "BIZ UDPGothic", Meiryo, sans-serif;
  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --r: 5px; --gut: 14px; --half: 300px;
  --focus: #1d1a20; --sv-bg: #0f0f12; --sv-fg: #f1f1f4;
  --off: linear-gradient(150deg, #2b2e35, #15161a 55%, #1d1f24);
  --dark-edge: transparent; --dark-edge-sel: transparent;
}
[data-theme="dark"] {
  /* 暗い表示 = 店の黒 */
  --bg: #0f0f12; --card: #18181c; --text: #f1f1f4; --mute: #8f929d; --rule: #2a2a31; --knob: #45474f;
  --edge: rgba(255, 255, 255, .085); --dim: .42;
  --focus: #f1f1f4;
  --off: linear-gradient(150deg, #24252b, #0b0b0d 55%, #16161a);
  --dark-edge: rgba(255, 255, 255, .42); --dark-edge-sel: rgba(255, 255, 255, .92);
}
html { background: var(--bg); }
[data-theme="dark"] { color-scheme: dark; }
body { background: var(--bg); color: var(--text); font: 400 13px/1.6 var(--sans); min-height: 100vh; }
.wrap { max-width: calc(var(--half) * 2); margin: 0 auto; padding: 0 var(--gut) 64px; }
.wrap.has-spine { padding-right: 34px; }

/* 頭 */
.top { display: flex; align-items: flex-start; gap: 12px; padding: 28px 0 0; }
.brand { flex: 1; min-width: 0; }
.name { margin: 0; font: 800 30px/1.15 var(--serif); letter-spacing: .01em; }
.addr { margin: 5px 0 0; color: var(--mute); font-size: 11px; letter-spacing: .04em; }
.icon-btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: var(--r); background: none; color: var(--text); }
.about { margin: 14px 0 18px; padding: 0; list-style: none; color: var(--mute); font-size: 11.5px; line-height: 1.75; }
.cats { display: flex; gap: 10px; overflow-x: auto; margin: 0 calc(var(--gut) * -1); padding: 2px var(--gut) 6px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { --c: var(--text); flex: none; display: grid; place-content: center; justify-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2px var(--c), 0 0 0 1px var(--e, transparent); text-decoration: none; line-height: 1.15; }
.cat b { font-size: 12px; font-weight: 600; }
.cat small { margin-top: 2px; color: var(--mute); font-size: 9.5px; font-variant-numeric: tabular-nums; }
.cat[aria-current="page"] { background: var(--c); color: var(--on); }
.cat[aria-current="page"] small { color: inherit; opacity: .78; }
/* 編（シドのように編が 2 つ以上あるキャラを選んだときだけ）: 丸の下に文字の並び。選んだ編はキャラ色の下線。
   編の印（𓆙 など）は、編を選んだときに下の 1 行にだけ出す（プロフのページの印と同じ。省略しない） */
.arcs { display: flex; align-items: center; overflow-x: auto; margin: 4px calc(var(--gut) * -1) 0; padding: 0 var(--gut); scrollbar-width: none; white-space: nowrap; }
.arcs::-webkit-scrollbar { display: none; }
.rm { flex: none; display: inline-block; line-height: 44px; color: var(--mute); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.rm small { display: inline-block; margin-left: 4px; font-size: 10px; font-weight: 400; font-variant-numeric: tabular-nums; }
.rm[aria-current="page"] { color: var(--text); text-decoration: underline 2px var(--c); text-underline-offset: 7px; }
.rm.rm-zero { opacity: .5; }
.sep { flex: none; margin: 0 10px; color: var(--rule); }
.arc-cap { display: flex; align-items: baseline; gap: 10px; margin: 0; color: var(--mute); font-size: 10.5px; letter-spacing: .06em; }
.arc-cap .g { color: var(--text); font-size: 15px; letter-spacing: .02em; white-space: nowrap; }
/* 𓆙・𓆕 は代わりのフォントで小さく出るので、ほかの印と高さを揃える（プロフのページと同じ） */
.hg { display: inline-block; font-size: 1.8em; line-height: .75; vertical-align: -.12em; }
/* 部屋（CpArchive の部屋の題）: 選んだ編に部屋が 2 つ以上あるときだけ、編の印の下にもう一段。編の並びより小さく細い字 */
.talks { display: flex; align-items: center; overflow-x: auto; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); scrollbar-width: none; white-space: nowrap; }
.talks::-webkit-scrollbar { display: none; }
.tk { flex: none; display: inline-block; line-height: 44px; color: var(--mute); font-size: 12px; text-decoration: none; }
.tk small { display: inline-block; margin-left: 4px; font-size: 10px; font-variant-numeric: tabular-nums; }
.tk[aria-current="page"] { color: var(--text); font-weight: 600; text-decoration: underline 1.5px var(--c); text-underline-offset: 7px; }
.tk.tk-zero { opacity: .5; }
.talks .sep { margin: 0 8px; }
/* ハッシュタグで絞っているとき: 丸の下に 1 行。× で外す */
.tagbar { display: flex; align-items: center; gap: 12px; margin: 10px 0 0; }
.tagbar p { flex: 1; min-width: 0; margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.tagbar b { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.tagbar small { color: var(--mute); font-size: 11px; }
.tagbar .x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: var(--r); color: var(--text); }

/* 月の見出し（と固定）: 明朝の大字はここだけ */
.sec-h { margin: 64px 0 20px; font: 800 20px/1.2 var(--serif); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.sec-h.first { margin-top: 30px; }

/* 1 段 = 1 投稿。帯を画面の左端まで流すので、段も左の余白ぶん広げる（content-visibility の切り抜きの内に入れる） */
.entry { margin-left: calc(var(--gut) * -1); padding-left: var(--gut); scroll-margin-top: 14px; content-visibility: auto; contain-intrinsic-size: auto 640px; }
.entry + .entry { margin-top: 60px; }
.eh { position: relative; padding-left: 13px; }
.eh::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; background: color-mix(in srgb, var(--c) 45%, var(--bg)); box-shadow: 0 0 0 1px var(--e, transparent); transition: background .3s; }
.entry.is-cur .eh::before, .single .eh::before { background: var(--c); }
.when { display: flex; flex-wrap: wrap; gap: 0 1em; margin: 0; color: var(--mute); font-size: 11px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.when .sep { margin: 0 .5em; }
/* 編・部屋・ハッシュタグは小さい行の中の字だけ（枠も地色も付けない）。押せる所は上下に広げる */
.wl { color: inherit; text-decoration: none; padding: 14px 2px 6px; }
.wl:hover, .wl:focus-visible { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.tgs .wl + .wl { margin-left: .9em; }
.t { margin: 2px 0 0; font-size: 14px; font-weight: 600; line-height: 1.5; }
.t a { color: inherit; text-decoration: none; }
.t a:hover, .t a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
/* 本文: 作者の文。一覧では 3 行を超えたら畳み、「続きを読む」で開く。1 投稿のページでは全部出す */
.body { margin: 8px 0 0 16px; }
.body > * + * { margin-top: 8px; }
.body.after { margin-top: 12px; }
.tx { margin: 0; color: color-mix(in srgb, var(--text) 86%, var(--bg)); font-size: 13px; line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; }
.tx.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.txw.open .tx.clamp { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }
.rd { display: none; align-items: center; gap: 4px; min-height: 44px; margin: -6px 0 -12px; padding: 0; border: 0; background: none; color: var(--mute); font-size: 12px; font-weight: 600; }
.txw.over .rd, .txw.open .rd { display: inline-flex; }
.rd .ic, .fold-btn .ic { width: 14px; height: 14px; transition: transform .2s; }
.txw.open .rd .ic, .fold-btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
.ref, .lks a { color: var(--text); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.lks { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 0; padding: 0; list-style: none; }
.lks a { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; font-size: 12.5px; }
.lks .ic { width: 12px; height: 12px; color: var(--mute); }
/* 畳んでおく文（作者が畳んだ所。今の /z/ の「元ネタ」）: 見出しの札だけ出し、押すと開く */
.fold-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--text); }
.fold-btn > span { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 9px 0 12px; border: 1px solid var(--rule); border-radius: 2px; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.fold-btn .ic { color: var(--mute); }
.fold-body { margin: 0 0 4px; padding: 2px 0 2px 12px; border-left: 1px solid var(--rule); }
.fold-body > * + * { margin-top: 6px; }
/* 畳む所の中の帯: 左は畳む所の罫に揃え（画面の端まで流さない）、右は外の帯と同じ所で地に溶かす */
.fold-body .body { margin-left: 0; }
.fold-body .grp { margin-top: 8px; }
.fold-body .railbox { margin-left: 0; }
.fold-body .rail { padding-left: 0; scroll-padding-left: 0; }
.fold-body .railbox > .vl { left: 0; }
.entry.locked .t { color: var(--mute); }

/* 送りの帯: 左は画面の端まで流れ、右は地に溶ける。いまの 1 枚だけ灯り、のぞいている次の 1 枚は沈む */
.grp { margin-top: 12px; }
.railbox { position: relative; margin: 0 0 0 calc(var(--gut) * -1); }
.railbox.multi::after { content: ""; position: absolute; z-index: 2; top: 0; right: 0; bottom: 0; width: 20px; background: linear-gradient(to right, transparent, var(--bg)); pointer-events: none; transition: opacity .2s; }
.railbox.at-end::after { opacity: 0; }
.rail { display: flex; align-items: stretch; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gut); overscroll-behavior-x: contain; margin: 0; padding: 0 0 0 var(--gut); list-style: none; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail li { display: flex; flex: 0 0 72%; max-width: 280px; scroll-snap-align: start; container-type: inline-size; transition: opacity .25s; }
.multi .rail li:not(.on) { opacity: var(--dim); }
.multi .rail li:not(.on) .shot { cursor: pointer; }
/* 1 段の画面はどれも同じ高さの枠（いちばん長い 1 枚、9:19.5 まで）。短い 1 枚の下は消えた画面の色 */
.shot { position: relative; display: flex; flex-direction: column; justify-content: flex-start; flex: 1; width: 100%; max-height: calc(100cqw * 19.5 / 9); padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: var(--screen); cursor: zoom-in; align-self: stretch; text-align: start; }
.shot::before { content: ""; position: absolute; z-index: 1; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--edge); pointer-events: none; }
.shot img { display: block; flex: none; width: 100%; height: auto; aspect-ratio: auto 9 / 19.5; }
.more { display: none; }
.cut .shot::after { content: ""; position: absolute; z-index: 1; inset: auto 0 0; height: 14%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.cut .more { display: block; position: absolute; z-index: 2; left: 50%; bottom: 12px; width: 9px; height: 9px; margin-left: -4.5px; border: solid var(--mute); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.railbox > .vl { left: var(--gut); background: none; border-radius: var(--r); }
/* 枚ごとのぼかし: その 1 枚の画面にだけ重ねる */
.rail li[data-veil] { position: relative; }
.rail li > .vl { border-radius: var(--r); }
/* 中扉: スクショのあいだの文は、帯の途中の札になる（場面の区切り）。60 字までは縦の明朝、それより長いと横書き */
/* 札は帯の高さを決めない（高さはスクショで決まる）。縦の文は、字数で札の幅を変えて列を収める */
.rail li.card { position: relative; flex: 0 0 auto; width: 84px; }
.rail li.card.v2 { width: 104px; }
.rail li.card.v3 { width: 124px; }
.rail li.card:not(.v) { width: 56%; max-width: 220px; }
.cd { position: absolute; inset: 0; display: grid; place-items: center; padding: 22px 12px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--edge); overflow: hidden; }
.cd::before { content: ""; position: absolute; top: 0; left: 50%; width: 18px; height: 2px; margin-left: -9px; background: var(--c); box-shadow: 0 0 0 1px var(--e, transparent); }
.cd p { margin: 0; max-height: 100%; overflow-wrap: anywhere; }
.card.v .cd p { overflow-x: auto; writing-mode: vertical-rl; font: 800 15px/1.75 var(--serif); letter-spacing: .1em; }
.card:not(.v) .cd { place-items: start; }
.card:not(.v) .cd p { overflow-y: auto; font-size: 13px; line-height: 1.75; }
.multi .rail li.card:not(.on) { cursor: pointer; }

/* 帯の下: 目盛り（10 枚まで）といまの位置、PC は前後のボタン */
.rf { display: flex; align-items: center; gap: 12px; min-height: 34px; margin-top: 6px; }
.ticks { display: flex; flex-wrap: wrap; gap: 4px; }
.ticks i { width: 12px; height: 2px; background: var(--rule); transition: background .2s, width .2s; }
.ticks i.on { width: 20px; background: var(--c); box-shadow: 0 0 0 1px var(--e, transparent); }
.ticks i.c { width: 4px; }
.pos { margin-left: auto; color: var(--mute); font-size: 12px; font-variant-numeric: tabular-nums; }
.pos b { color: var(--text); font-weight: 600; }
.nav { display: none; gap: 6px; }
.nav button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--rule); border-radius: var(--r); background: none; color: var(--text); }
.nav button:disabled { opacity: .3; }
.nav .ic { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .nav { display: flex; } }
.entry:has(.railbox[data-veiled]) .nav { visibility: hidden; }

/* 鍵: 電源の切れた画面。中は見えない */
.off { position: relative; display: grid; justify-items: center; align-content: center; gap: 12px; width: 72%; max-width: 280px; aspect-ratio: 9 / 12; margin-top: 12px; padding: 18px; border-radius: var(--r); background: var(--off); color: #e9eaee; text-align: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); overflow: hidden; }
.off::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .06) 42%, transparent 52%); pointer-events: none; }
.off > .ic { width: 28px; height: 28px; color: var(--va); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--va) 60%, transparent)); }
.off p { margin: 0; font-size: 12px; color: #b9bcc6; }
.btn { min-height: 44px; padding: 0 18px; border: 0; border-radius: 2px; background: #f1f1f4; color: #111216; font-weight: 600; }

.empty { padding: 40px 0; color: var(--mute); text-align: center; }
.end { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 56px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--mute); font-size: 12px; }
/* 足もとのボタン: 左に投稿（直す）、親指側の右に「上へ」。閲覧者が押しそうにならないよう、字の色は控えめ（Fable の勧め） */
.end-acts { display: flex; gap: 12px; margin-left: auto; }
/* 見た目は 32px の小さい箱と 15px の絵（7 回目の返事「鉛筆マークが大きい」）。押せる所は ::after で 44px のまま */
.end .icon-btn { position: relative; display: grid; place-items: center; width: 32px; height: 32px; min-height: 0; color: var(--mute); }
.end .icon-btn::after { content: ""; position: absolute; inset: -6px; }
.end .icon-btn .ic { width: 15px; height: 15px; }
.end .icon-btn:hover, .end .icon-btn:focus-visible { color: var(--text); }
.end.solo { margin-top: 24px; padding-top: 0; border-top: 0; }
/* 非公開で置いた投稿（作者だけに見える）: 小さい行の頭に印 */
.prv { padding: 0 6px; border: 1px dashed var(--mute); border-radius: 2px; color: var(--text); font-size: 10.5px; line-height: 17px; letter-spacing: .08em; }
/* 開いた鍵つきの投稿（作者・合言葉を通した人）: 非公開の札と同じ大きさで、枠は実線（段 6 の返事「出す」） */
.prv.lkd { border-style: solid; }

/* 右端の鱗の背: 1 投稿 1 枚、上から新しい順。重ねて葺く（下の鱗の付け根に上の鱗が被さる）。
   いまの鱗だけ色が満ちて左へ出る。触れると題の札、縦になぞると飛ぶ。月の変わり目に小さな刻み */
.spine { position: fixed; z-index: 15; right: max(2px, calc(50vw - var(--half) - 40px)); top: 50%; width: 28px; height: min(62vh, calc(var(--n) * 11px + 16px)); transform: translateY(-50%); touch-action: none; cursor: ns-resize; }
.spine { opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.spine.shown { opacity: 1; visibility: visible; transition: opacity .25s; }
.spine::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 1px; background: var(--rule); }
.sc { position: absolute; left: 8px; width: 12px; height: 14px; margin-top: -7px; border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%; background: color-mix(in srgb, var(--c) 55%, var(--bg)); box-shadow: 0 0 0 1px var(--e, transparent); transition: transform .2s ease, background .2s, box-shadow .2s; }
.sc.alt { transform: translateX(-4px); }
.sc.lock { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--mute); }
.sc.cur { z-index: 999 !important; background: var(--c); transform: translateX(-7px); box-shadow: 0 0 0 1px var(--e, transparent), 0 0 8px 1px color-mix(in srgb, var(--va) 70%, transparent); }
.sc.lock.cur { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--text), 0 0 8px 1px color-mix(in srgb, var(--va) 50%, transparent); }
.mt { position: absolute; left: 22px; width: 6px; height: 1px; background: var(--mute); }
.spine:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.spine-tip { position: fixed; z-index: 16; right: calc(max(2px, 50vw - var(--half) - 40px) + 34px); max-width: min(68vw, 320px); margin: 0; padding: 6px 11px; border-radius: 2px; background: var(--text); color: var(--bg); font-size: 12px; line-height: 1.4; transform: translateY(-50%); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spine-tip small { margin-right: .8em; opacity: .7; font-variant-numeric: tabular-nums; }

/* 1 投稿のページ: 読むための面なので、帯を一覧より大きく */
.phead { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 14px 0 18px; }
.back { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -10px; color: var(--text); }
.home { justify-self: center; display: grid; place-items: center; min-height: 44px; padding: 0 10px; color: var(--text); font: 800 14px/1 var(--serif); letter-spacing: .02em; text-decoration: none; }
.single .t { font-size: 17px; font-weight: 700; }
.single .rail li { flex-basis: 80%; max-width: 340px; }
.single .off { width: 80%; max-width: 340px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rule); }
.pager a { display: grid; align-content: center; gap: 2px; min-width: 0; min-height: 44px; padding: 2px 0 2px 11px; border-left: 3px solid var(--c); color: var(--text); text-decoration: none; font-size: 12px; }
.pager a span { color: var(--mute); font-size: 11px; }
.pager a b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager .older { padding: 2px 11px 2px 0; border-left: 0; border-right: 3px solid var(--c); text-align: right; }

/* 拡大表示・鍵・投稿画面 */
.sv-count { font-variant-numeric: tabular-nums; }
.sv-img { border-radius: 4px; }
.sv-close-low { border-radius: 2px; background: rgba(255, 255, 255, .12) !important; color: inherit; }
.sv-nextpost { color: #f1f1f4; }
.sv-nextcover { border-radius: 4px; background: #18181c; }
.lk-card { display: grid; gap: 14px; padding: 24px 20px 18px; border-radius: 6px; background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--edge), 0 30px 80px -20px rgba(0, 0, 0, .6); }
.lk-h { font: 800 19px/1.4 var(--serif); }
.lk-text, .lk-note { margin: 0; font-size: 12px; color: var(--mute); }
.lk-label { font-size: 12px; color: var(--mute); }
.lk-input { padding: 10px 12px; border: 1px solid var(--rule); border-radius: 2px; background: var(--bg); }
.lk-err { color: #e5534b; font-size: 12px; }
.lk-cancel, .lk-ok { min-height: 42px; padding: 0 18px; border: 1px solid var(--rule); border-radius: 2px; background: none; }
.lk-ok { border-color: var(--text); background: var(--text); color: var(--bg); font-weight: 600; }
.page-new { padding: 14px var(--gut) 0; }
.ad-h { font: 800 22px/1.3 var(--serif); }
.ad-who { margin: 0; flex-basis: 100%; padding-left: 50px; font-size: 11px; color: var(--mute); }
.ad-back { color: var(--text); }
.ad-label { font-size: 12px; color: var(--mute); font-weight: 600; }
.ad-input { padding: 11px 12px; border: 1px solid var(--rule); border-radius: 2px; background: var(--card); }
.ad-thumbs { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
.ad-thumb img { aspect-ratio: 9 / 19.5; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--edge); }
.ad-no { top: 6px; left: auto; right: 6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--text); color: var(--bg); font-weight: 700; }
.ad-pick { min-height: 44px; padding: 0 16px; border-radius: 2px; background: var(--text); color: var(--bg); font-weight: 600; }
.ad-sample { min-height: 44px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 2px; background: none; color: var(--text); font-size: 12px; }
.ad-hint { font-size: 11.5px; color: var(--mute); }
.ad-cover { border-radius: 4px; }
.ad-range { accent-color: var(--text); }
.ad-cat span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2px var(--c), 0 0 0 1px var(--e, transparent); font-size: 12px; font-weight: 600; }
.ad-cat input:checked + span { background: var(--c); color: var(--on); }
.ad-chip span, .ad-tag { border: 1px solid var(--rule); border-radius: 2px; background: none; color: var(--text); font-size: 13px; }
.ad-chip input:checked + span { border-color: var(--text); background: var(--text); color: var(--bg); font-weight: 600; }
.ad-tag[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: var(--bg); }
.ad-switches { padding: 4px 14px; border: 1px solid var(--rule); border-radius: 4px; background: var(--card); }
.ad-swtext { font-size: 13px; }
.ad-swtext .ic { width: 16px; height: 16px; }
.ad-swtext small { font-size: 11px; color: var(--mute); }
.ad-sw { border-radius: 12px; background: var(--knob); }
.ad-sw::after { border-radius: 50%; background: #fff; }
.ad-switch input:checked + .ad-sw { background: #34c759; }
.ad-err { color: #e5534b; font-size: 12px; }
.ad-foot { margin: 0 calc(var(--gut) * -1); padding-inline: var(--gut); background: var(--bg); box-shadow: 0 -1px 0 var(--rule); }
.ad-submit { border: 0; border-radius: 2px; background: var(--text); color: var(--bg); font-size: 15px; font-weight: 700; }
.toast { border-radius: 2px; background: var(--text); color: var(--bg); }
/* 投稿画面の 6 回目の部品（スクショの並び・札・分け方の見出し・細かい設定・足もと） */
.ad-glabel, .ad-more-sum { border-color: var(--rule); }
.ad-more-sum small, .ad-saved, .ad-state { color: var(--mute); }
.ad-label small { color: var(--mute); }
.ad-tilebtn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--edge); pointer-events: none; }
.ad-gap button { color: var(--mute); }
.ad-gap button:hover { color: var(--text); }
.ad-midcard button { border: 1px solid var(--rule); border-radius: var(--r); background: var(--card); }
.ad-midcard span { font: 800 12px/1.6 var(--serif); letter-spacing: .08em; }
.ad-tag.ad-newtalkbtn { border-style: dashed; color: var(--mute); }
/* 畳む所（任意の位置。7 回目）と、前にも出した画像の知らせ */
.ad-strip { --ad-fold: var(--mute); }
.ad-edge button { color: var(--mute); }
.ad-foldcard button { border-color: var(--mute); background: var(--card); }
.ad-foldcard small { color: var(--mute); }
.ad-choice { border-color: var(--rule); background: var(--card); }
.ad-choice small { color: var(--mute); }
.ad-take-none { border-color: var(--rule); color: var(--text); }
.ad-take .ad-no { width: 18px; height: 18px; font-size: 10px; }
.ad-dup { color: var(--text); }
.ad-dup .ic { color: var(--mute); }
.ad-sheet-card { border-radius: 8px 8px 0 0; background: var(--bg); color: var(--text); box-shadow: 0 -1px 0 var(--rule); }
.ad-sheet-h { font: 800 16px/1.4 var(--serif); }
.ad-sheet-foot { border-top: 1px solid var(--rule); }
.ad-sbtn { border-color: var(--rule); border-radius: 2px; }
.ad-sok { border-color: var(--text); background: var(--text); color: var(--bg); font-weight: 600; }
.ad-preview { border-color: var(--rule); border-radius: 2px; background: var(--bg); }
.ad-delete { border-radius: 2px; }
.ad-pv { margin-top: 4px; padding-bottom: 8px; }

@media (min-width: 720px) {
  :root { --gut: 24px; --half: 340px; }
  .wrap { padding-bottom: 80px; }
  .wrap.has-spine { padding-right: var(--gut); }
  .top { padding-top: 44px; }
  .name { font-size: 38px; }
  .cats { margin-inline: 0; padding-inline: 2px; }
  .sec-h { font-size: 22px; }
  .entry + .entry { margin-top: 72px; }
  .t { font-size: 15px; }
  .rail li { max-width: 300px; }
  .single .t { font-size: 20px; }
  .page-new { padding-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .sc, .ticks i, .rail li, .eh::before, .rd .ic, .fold-btn .ic { transition: none; }
}

/* 投稿画面の本番で足した物（段取りの 5）: 合言葉の 1 行・送った印・進み具合・止める・ログインし直す */
.ad-passrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin: -6px 0 4px; padding-left: 52px; font-size: 11.5px; color: var(--mute); }
.ad-passrow p { margin: 0; }
.ad-passrow.ad-warn p { color: #e5534b; }
.ad-passin { display: flex; gap: 8px; }
.ad-passin .ad-input { flex: 1; min-width: 0; }
.ad-passwarn { color: var(--text); }
.ad-flags .ad-flag-sent { background: #2f9e4f; }
.ad-prog { height: 2px; margin: -10px calc(var(--gut) * -1) 4px; background: var(--rule); overflow: hidden; }
.ad-prog i { display: block; height: 100%; width: 0; background: var(--text); transition: width .3s; }
.ad-stop { flex: none; min-height: 48px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 2px; background: var(--bg); color: var(--text); font-size: 13px; cursor: pointer; }
.ad-submit:disabled { opacity: .6; cursor: default; }
.ad-login { margin: 0; text-align: center; }
.ad-login .ad-linkbtn { font-size: 12px; color: var(--text); }
.ad-foot .ad-err { text-align: center; }
@media (prefers-reduced-motion: reduce) { .ad-prog i { transition: none; } }

/* 本番で足した物（段取りの 2） */
.noscript { margin: 40px 16px; color: var(--mute); text-align: center; }
.empty a { color: var(--text); text-underline-offset: 3px; }
