/* LINE案件整理の体験版。色は common/base.css のトークンだけを使う */
.lcb { display: grid; grid-template-columns: 384px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); background: var(--paper); }
.mswitch { display: none; }

/* ───────── 左：LINEグループ（再現） ───────── */
.chat-col { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-right: 1px solid var(--line-2); background: var(--surface); }
.chat-ctrl { padding: 14px 16px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.ctrl-cap { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.ctrl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.ctrl-row .btn-accent { flex: 1 1 auto; min-height: 44px; }
.ctrl-row .btn-accent .ico { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.ctrl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 8px; font-size: 12px; color: var(--ink-3); line-height: 1.55; }
.ctrl-meta .num { font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.ctrl-reset { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--brand-2); min-height: 28px; text-decoration: underline; text-underline-offset: 3px; }
.ctrl-meta #batchNote { flex-basis: 100%; }
.ctrl-msg { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--ok); }
.ctrl-msg[hidden] { display: none; }
.ctrl-done { margin-top: 10px; padding: 12px 14px; border-radius: var(--r-m, 10px); background: var(--ok-soft); border: 1px solid var(--ok); }
.ctrl-done[hidden] { display: none; }
.ctrl-done b { display: block; font-size: 15px; color: var(--ok); }
.ctrl-done p { margin: 4px 0 10px; font-size: 13px; line-height: 1.65; color: var(--ink-2); }
.ctrl-done .btn { min-height: 44px; width: 100%; }
.chat-ctrl.is-done .ctrl-row, .chat-ctrl.is-done .ctrl-cap, .chat-ctrl.is-done .ctrl-reset { display: none; }
.resolved-note { display: flex; align-items: flex-start; gap: 8px; margin: 14px 20px 0; padding: 10px 12px; border-radius: var(--r-s); background: var(--ok-soft); border: 1px solid var(--ok); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.55; }
.resolved-note .ico { width: 20px; height: 20px; flex: none; stroke: var(--ok); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }

.line { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.line-tabs { display: flex; gap: 2px; padding: 0 8px; background: var(--sunken); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.line-tabs::-webkit-scrollbar { display: none; }
.line-tabs button {
  flex: 1 0 auto; position: relative; padding: 10px 10px 9px; font-size: 13px; font-weight: 600; color: var(--ink-3);
  border-bottom: 2.5px solid transparent; white-space: nowrap;
}
.line-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ok); }
.line-tabs .dot { position: absolute; top: 7px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.line-head { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: #2f4250; color: #fff; }
.line-head .gicon { width: 30px; height: 30px; border-radius: 50%; background: #5d7687; display: grid; place-items: center; flex: none; }
.line-head .gicon svg { width: 17px; height: 17px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.line-head b { font-size: 14px; font-weight: 600; display: block; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-head small { font-size: 11.5px; color: #c4d1da; }
.line-head > div { min-width: 0; }
.line-log { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 12px 16px; background: #8ea4b5; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.line-day { text-align: center; margin: 6px 0 10px; }
.line-day span { display: inline-block; padding: 2px 10px; border-radius: 999px; background: rgba(32, 50, 62, .32); color: #fff; font-size: 11.5px; }

.lm { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; margin-bottom: 12px; }
.lm.own { grid-template-columns: minmax(0, 1fr); justify-items: end; }
.lm-face { width: 34px; height: 34px; border-radius: 50%; background: #eef2f5; color: var(--brand-2); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.lm-who { font-size: 11.5px; color: #f1f5f8; margin-bottom: 2px; }
.lm-row { display: flex; align-items: flex-end; gap: 6px; max-width: 100%; }
.lm.own .lm-row { flex-direction: row-reverse; }
.lm-bubble {
  max-width: 252px; padding: 8px 12px; border-radius: 18px; background: #fff; color: #1d2a33; font-size: 14px; line-height: 1.55;
  white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 1px 1px rgba(0, 0, 0, .06);
}
.lm.own .lm-bubble { background: #c5ecaa; }
.lm-bubble.attach { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.lm-bubble.attach svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lm-bubble.photo { width: 168px; height: 112px; padding: 0; display: grid; place-items: center; color: #4f6574; font-size: 12px; background: linear-gradient(135deg, #e6edf1, #c9d6de); }
.lm-bubble.sticker { background: transparent; box-shadow: none; border: 1.5px dashed rgba(255, 255, 255, .75); color: #fff; }
.lm-quote { display: block; font-size: 12px; color: var(--ink-3); border-left: 3px solid var(--line-2); padding-left: 7px; margin-bottom: 5px; }
.lm-time { font-size: 10.5px; color: #eef3f6; white-space: nowrap; flex: none; }
.lm-judge {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin-top: 5px; padding: 3px 9px 3px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--ink-2); font-size: 11.5px; font-weight: 600; line-height: 1.4; text-align: left;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.lm-judge.anim { animation: judge-in .3s ease-out; }
button.lm-judge:hover { background: #fff; text-decoration: underline; text-underline-offset: 2px; }
.lm-judge i { width: 8px; height: 8px; border-radius: 2px; background: var(--tag, var(--line-2)); flex: none; }
.lm-judge span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lm-judge em { font-style: normal; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.lm-judge.review { background: var(--accent); color: #fff; }
.lm-judge.review em { color: #fde3c5; }
.lm-judge.pending { background: rgba(255, 255, 255, .78); color: var(--ink-3); }
.lm-judge.pending i { background: transparent; border: 2px solid var(--ink-3); border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes judge-in { from { opacity: 0; transform: translateY(-3px); } }
.lm.fresh .lm-bubble { animation: pop-in .35s ease-out; }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }

.composer { display: flex; gap: 8px; align-items: center; padding: 9px 10px calc(9px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.composer input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); font-size: 14.5px; }
.composer input::placeholder { color: var(--ink-3); }
.composer .send { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; flex: none; }
.composer .send:disabled { background: var(--line-2); }
.composer .send svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linejoin: round; }

/* ───────── 右：案件ボード ───────── */
.board-col { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.board-head { display: flex; align-items: center; gap: 16px; padding: 0 16px 0 20px; background: var(--brand); color: var(--on-brand); min-height: 52px; flex: none; }
.board-brand { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.board-brand b { color: #fff; font-size: 15px; }
.board-brand span { font-size: 12px; color: var(--on-brand-2); }
.board-tabs { display: flex; gap: 4px; margin-left: auto; align-self: stretch; }
.board-tabs button { display: flex; align-items: center; gap: 7px; padding: 0 14px; color: var(--on-brand); font-weight: 600; font-size: 14px; border-bottom: 3px solid transparent; white-space: nowrap; }
.board-tabs button:hover { background: rgba(255, 255, 255, .06); }
.board-tabs button[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); background: rgba(255, 255, 255, .08); }
.board-tabs .ico { width: 17px; height: 17px; }
.count { min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; text-align: center; line-height: 21px; }
.count.zero { background: rgba(255, 255, 255, .14); color: var(--on-brand-2); }
.count.bump, .mcount.bump { animation: bump .5s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

.board { flex: 1; min-height: 0; display: grid; }
.board .split { display: grid; grid-template-columns: minmax(300px, 340px) minmax(0, 1fr); min-height: 0; height: 100%; }
.board .pane-list { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.board .pane-head { padding: 18px 18px 12px; border-bottom: 1px solid var(--line); }
.board .pane-title { font-size: 19px; font-weight: 700; }
.board .pane-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.board .scroll { overflow-y: auto; min-height: 0; flex: 1; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.board .search { position: relative; margin-top: 12px; }
.board .search input { width: 100%; height: 40px; padding: 0 12px 0 36px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--paper); font-size: 14px; }
.board .search .ico { position: absolute; left: 11px; top: 11px; color: var(--ink-3); width: 18px; height: 18px; }
.board .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.board .filters select { width: 100%; min-width: 0; height: 36px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--surface); font-size: 13px; }

.board .row, .board .q-row, .board .vendor-row { display: block; width: 100%; text-align: left; padding: 13px 18px 13px 15px; border-left: 3px solid transparent; border-bottom: 1px solid var(--line); }
.board .row:hover, .board .q-row:hover, .board .vendor-row:hover { background: #fbfaf6; }
.board .row[aria-selected="true"], .board .vendor-row[aria-selected="true"] { background: var(--brand-soft); border-left-color: var(--accent); }
.board .q-row[aria-selected="true"] { background: var(--accent-soft); border-left-color: var(--accent); }
.board .row-top { display: flex; align-items: center; gap: 8px; }
.board .row-name { font-weight: 700; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .row-time { margin-left: auto; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.board .row-case { font-size: 13px; color: var(--ink-2); margin-top: 1px; }
.board .row-last { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .badge { display: inline-flex; align-items: center; height: 21px; padding: 0 7px; border-radius: 4px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--sunken); color: var(--ink-2); }
.board .badge.work { background: var(--accent-soft); color: var(--accent-deep); }
.board .badge.wait { background: var(--brand-soft); color: var(--brand-2); }
.board .badge.done { background: var(--ok-soft); color: var(--ok); }
.board .badge.alert { background: var(--accent); color: #fff; }
.board .q-meta { display: flex; gap: 8px; font-size: 12px; color: var(--ink-3); }
.board .q-meta span:last-child { margin-left: auto; white-space: nowrap; }
.board .q-text { margin-top: 3px; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.board .vendor-row { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.board .vendor-row span { margin-left: auto; font-size: 12.5px; color: var(--ink-3); font-weight: 400; }

.board .pane-detail { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--paper); }
.board .detail-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 18px 28px 16px; flex: none; }
.board .back { display: none; align-items: center; gap: 4px; color: var(--brand-2); font-weight: 600; margin-bottom: 6px; min-height: 34px; }
.board .back .ico { width: 20px; height: 20px; }
.board .detail-title { font-size: 22px; font-weight: 700; line-height: 1.35; }
.board .detail-title small { font-size: 15px; font-weight: 500; margin-left: 2px; }
.board .detail-sub { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.board .steps { display: flex; gap: 3px; margin-top: 14px; list-style: none; }
.board .steps li { flex: 1; min-width: 0; font-size: 11.5px; color: var(--ink-3); padding-top: 7px; border-top: 3px solid var(--line-2); white-space: nowrap; overflow: hidden; }
.board .steps li.past { border-top-color: var(--brand-2); color: var(--ink-2); }
.board .steps li.now { border-top-color: var(--accent); color: var(--accent-deep); font-weight: 700; }
.board .thread { padding: 18px 28px 36px; min-width: 0; }
.board .legend { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 8px; }

.board .day { display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; font-size: 12px; color: var(--ink-3); }
.board .day:first-child { margin-top: 0; }
.board .day::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.board .msg { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; margin-bottom: 14px; max-width: 700px; }
.board .msg.flash .bubble { animation: flash 1.6s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--accent); } }
.board .face { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-2); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.board .face.own { background: var(--accent-soft); color: var(--accent-deep); }
.board .msg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 12px; color: var(--ink-3); }
.board .msg-who { font-weight: 700; color: var(--ink-2); font-size: 12.5px; }
.board .bubble { display: inline-block; max-width: 100%; margin-top: 3px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 3px var(--r-l) var(--r-l) var(--r-l); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.board .bubble.attach { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); background: var(--sunken); border-color: transparent; }
.board .msg-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 3px; font-size: 12px; color: var(--ink-3); }
.board .linkish { color: var(--ink-3); min-height: 26px; font-size: 12px; }
.board .linkish:hover { color: var(--brand-2); text-decoration: underline; text-underline-offset: 2px; }
.board .tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--tag, var(--ink-2)); min-height: 26px; text-align: left; }
.board .tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--tag, var(--line-2)); flex: none; }
.board button.tag:hover { text-decoration: underline; text-underline-offset: 2px; }

.board .ask { max-width: 720px; width: 100%; margin: 0 auto; padding: 28px 28px 40px; }
.board .progress { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.board .skip { margin-left: auto; color: var(--brand-2); min-height: 32px; font-size: 13.5px; font-weight: 600; }
.board .skip:hover { text-decoration: underline; text-underline-offset: 2px; }
.board .ask-title { font-size: 22px; font-weight: 700; line-height: 1.35; }
.board .ask-card { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 18px; }
.board .ask-from { font-size: 12.5px; color: var(--ink-3); }
.board .ask-body { font-size: 18px; font-weight: 600; line-height: 1.6; margin-top: 3px; overflow-wrap: anywhere; white-space: pre-wrap; }
.board .ctx { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: 13px; color: var(--ink-2); }
.board .ctx-title { font-size: 11.5px; color: var(--ink-3); margin-bottom: 3px; }
.board .ctx p { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; padding: 1px 0; }
.board .ctx b { font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.board .ai-note { margin-top: 12px; padding-left: 11px; border-left: 3px solid var(--accent); font-size: 13px; color: var(--ink-2); }
.board .choices { display: grid; gap: 8px; margin-top: 18px; }
.board .choice { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1px 14px; width: 100%; text-align: left; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r-m); padding: 12px 16px; transition: border-color .12s, background .12s; }
.board .choice:hover { border-color: var(--brand-2); background: var(--brand-soft); }
.board .choice b { font-size: 16px; }
.board .choice > span { grid-column: 1; font-size: 13px; color: var(--ink-2); }
.board .choice .go { grid-column: 2; grid-row: 1 / span 2; color: var(--brand-2); font-weight: 700; font-size: 13.5px; white-space: nowrap; font-style: normal; }
.board .choice.first { border-color: var(--brand-2); }
.board .choice-tag { font-size: 11.5px; color: var(--accent-deep); font-weight: 700; margin-left: 8px; }
.board .ask-more { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.board .ask-more .btn { width: 100%; white-space: normal; line-height: 1.3; }

.board .empty { display: grid; place-items: center; text-align: center; padding: 48px 24px; color: var(--ink-2); height: 100%; }
.board .empty h2 { font-size: 17px; color: var(--ink); margin-top: 10px; }
.board .empty p { font-size: 13.5px; margin-top: 4px; max-width: 340px; }
.board .empty .ico { width: 38px; height: 38px; color: var(--ink-3); stroke-width: 1.3; margin: 0 auto; }

/* 案件を選ぶ小窓 */
.modal { position: fixed; inset: 0; background: rgba(22, 36, 44, .4); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 16px; }
.sheet { background: var(--surface); border-radius: var(--r-l); width: min(540px, 100%); max-height: 78vh; display: flex; flex-direction: column; box-shadow: var(--shadow-l); }
.sheet-head { padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 17px; }
.sheet-head .msg-quote { font-size: 13px; color: var(--ink-2); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet .search { position: relative; margin-top: 10px; }
.sheet .search input { width: 100%; height: 40px; padding: 0 12px 0 36px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--paper); font-size: 14px; }
.sheet .search .ico { position: absolute; left: 11px; top: 11px; color: var(--ink-3); }
.sheet .scroll { overflow-y: auto; min-height: 0; flex: 1; }
.sheet-foot { padding: 12px 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pick { display: block; width: 100%; text-align: left; padding: 11px 20px; border-bottom: 1px solid var(--line); }
.pick:hover { background: var(--brand-soft); }
.pick b { display: block; }
.pick span { font-size: 13px; color: var(--ink-2); }

/* ───────── 1180px 未満：案件ボードは1列（一覧 ⇄ 詳細） ───────── */
@media (max-width: 1179px) {
  .lcb { grid-template-columns: 344px minmax(0, 1fr); }
  .board .split { grid-template-columns: minmax(0, 1fr); }
  .board .split.detail-open .pane-list, .board .split:not(.detail-open) .pane-detail { display: none; }
  .board .split.review .pane-list { display: none; }
  .board .split.review .pane-detail { display: flex; }
  .board .pane-list { border-right: 0; }
  .board .row, .board .q-row, .board .vendor-row { border-left: 0; padding-left: 18px; }
  .board .row[aria-selected="true"], .board .vendor-row[aria-selected="true"] { background: none; }
  .board .back { display: inline-flex; }
  .board-brand span { display: none; }
}

/* ───────── 900px 未満：LINEグループと案件ボードを切り替える ───────── */
@media (max-width: 899px) {
  .lcb { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .mswitch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .mswitch button { height: 38px; border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--ink-3); display: flex; align-items: center; justify-content: center; gap: 6px; }
  .mswitch button[aria-selected="true"] { background: var(--brand); color: #fff; }
  .mcount { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11.5px; line-height: 19px; }
  .mcount:empty { display: none; }
  .lcb[data-view="chat"] .board-col, .lcb[data-view="board"] .chat-col { display: none; }
  .chat-col { border-right: 0; }
  .board-head { padding: 0 6px 0 14px; gap: 8px; min-height: 48px; }
  .board-brand { display: none; }
  .board-tabs { margin-left: 0; flex: 1; }
  .board-tabs button { flex: 1; justify-content: center; }
  .board-tabs { gap: 0; }
  .board-tabs button { padding: 0 9px; font-size: 13px; gap: 5px; }
  .board-tabs .ico { display: none; }
}
@media (max-width: 640px) {
  .resolved-note { margin: 12px 14px 0; }
  .ctrl-done { margin-top: 0; padding: 10px 12px; }
  .ctrl-done p { margin: 2px 0 8px; font-size: 12.5px; }
  .ctrl-reset { min-height: 44px; min-width: 64px; padding: 0 6px; }
  .ctrl-row .btn-s { min-height: 44px; }
  .ctrl-row .btn-accent { min-height: 44px; }
  .mswitch button { min-height: 44px; }
  .line-tabs button { min-height: 44px; }
  .composer input, .composer .send { min-height: 44px; }
  .composer .send { width: 44px; }
  button.lm-judge { min-height: 44px; padding-top: 6px; padding-bottom: 6px; font-size: 12.5px; }
  .board .skip { min-height: 44px; }
  .chat-ctrl { padding: 10px 12px 10px; }
  .ctrl-cap { display: none; }
  .ctrl-row { margin-top: 0; gap: 6px; }
  .ctrl-row .btn-accent { min-height: 42px; padding: 0 12px; }
  .ctrl-row .btn-s { padding: 0 10px; }
  .ctrl-meta { margin-top: 6px; }
  .ctrl-meta #batchNote { display: none; }
  .lm-bubble { max-width: 230px; }
  .board .pane-head { padding: 14px 16px 10px; }
  .board .row, .board .q-row, .board .vendor-row { padding: 12px 16px; }
  .board .detail-head { padding: 8px 16px 12px; }
  .board .detail-title { font-size: 19px; }
  .board .steps li { font-size: 0; padding-top: 4px; }
  .board .steps li.now { font-size: 11.5px; flex: 2.6; }
  .board .thread { padding: 14px 14px 28px; }
  .board .msg { grid-template-columns: 30px minmax(0, 1fr); gap: 8px; }
  .board .face { width: 30px; height: 30px; font-size: 12px; }
  .board .ask { padding: 16px 14px 28px; }
  .board .ask-title { font-size: 19px; }
  .board .ask-body { font-size: 16.5px; }
  .board .ask-card { padding: 12px 14px; }
  .board .choice { padding: 11px 14px; }
  .board .choice .go { display: none; }
  .board .search input, .sheet .search input, .composer input { font-size: 16px; }
  .modal { align-items: flex-end; padding: 0; }
  .sheet { width: 100%; border-radius: var(--r-l) var(--r-l) 0 0; max-height: 86vh; }
}

/* 付け替えの知らせと「元に戻す」 */
.undo-bar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--ok-soft); border-bottom: 1px solid var(--ok); font-size: 14px; font-weight: 600; flex: none; }
.undo-bar[hidden] { display: none; }
.undo-bar .ico { width: 20px; height: 20px; flex: none; stroke: var(--ok); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.undo-bar .undo-text { flex: 1; min-width: 0; line-height: 1.5; }
.undo-bar .btn { flex: none; }
.undo-x { width: 32px; height: 32px; flex: none; border-radius: 8px; font-size: 20px; color: var(--ink-3); }
/* 進み具合は見るだけ */
.board .steps { cursor: default; user-select: none; }
.board .steps-note { margin-top: 4px; font-size: 11.5px; color: var(--ink-3); }
.compose-note { margin: 0; padding: 6px 12px 0; background: var(--surface); border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.compose-note + .composer { border-top: 0; padding-top: 4px; }
