/* ==========================================================================
   LINEでええやんボード DEMO — 追加スタイル
   app.css（本番のデザインシステム v2「未来の和モダン」）の上に重ねる。
   ここには ①デモ固有のUI ②追加10機能が共有する部品 だけを置く。
   トークン（--green / --gold / --radius …）は app.css のものをそのまま使う。
   ========================================================================== */

/* ---------- 手動テーマ切替（app.css は prefers-color-scheme のみ） ---------- */
/* data-theme="dark" が付いたら、OS設定に関係なくダークのトークンを適用する。 */
:root[data-theme="dark"] {
  --bg: #0a100b;
  --card: rgba(24, 34, 27, .92);
  --card-solid: #18221b;
  --glass: rgba(20, 30, 23, .62);
  --text: #e9efe9;
  --text-2: #9fb1a1;
  --text-3: #8a9a8e;
  --gold-text: #e0c25a;
  --border: rgba(140, 200, 160, .12);
  --overlay: rgba(0, 0, 0, .62);
  --dot: rgba(110, 180, 140, .07);
  --green-soft: rgba(18, 146, 76, .18);
  --gold-soft: rgba(201, 162, 39, .16);
  --st-inbox: #7d8798;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35), 0 3px 12px rgba(0, 0, 0, .3);
  --shadow-2: 0 6px 16px rgba(0, 0, 0, .45), 0 18px 48px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #eef2ec;
  --card: rgba(255, 255, 255, .92);
  --card-solid: #ffffff;
  --glass: rgba(255, 255, 255, .68);
  --text: #16211a;
  --text-2: #61705f;
  --text-3: #7a8a7c;
  --gold-text: #9a7b1c;
  --border: rgba(20, 60, 35, .10);
  --overlay: rgba(12, 24, 16, .48);
  --dot: rgba(14, 92, 49, .07);
  --green-soft: rgba(18, 146, 76, .10);
  --gold-soft: rgba(201, 162, 39, .12);
  --st-inbox: #8a94a6;
  --shadow-1: 0 1px 2px rgba(16, 42, 25, .05), 0 3px 10px rgba(16, 42, 25, .06);
  --shadow-2: 0 4px 12px rgba(16, 42, 25, .10), 0 14px 40px rgba(16, 42, 25, .14);
  color-scheme: light;
}

/* ==========================================================================
   1. デモの入口（ロール選択ゲート）
   ========================================================================== */

.boot--picker { overflow-y: auto; align-items: flex-start; }

.demo-gate {
  width: 100%; max-width: 440px; margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 18px 40px; text-align: center;
}
.demo-gate__logo img { width: 232px; max-width: 72%; height: auto; }
.demo-gate__tag {
  display: inline-block; margin: 6px 0 10px;
  font-size: 10.5px; font-weight: 900; letter-spacing: .18em;
  color: var(--gold-text); background: var(--gold-soft);
  border: 1px solid rgba(201, 162, 39, .35); border-radius: 999px; padding: 3px 12px;
}
.demo-gate h1 { font-size: 22px; font-weight: 800; letter-spacing: .01em; }
.demo-gate > p {
  font-size: 12.5px; line-height: 1.85; color: var(--text-2);
  font-weight: 600; margin: 10px 0 20px; text-wrap: pretty;
}
.demo-gate > p b { color: var(--green-2); }

.demo-gate__roles { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.demo-role {
  position: relative; display: block; width: 100%;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-1); padding: 14px 16px 13px;
  transition: transform .16s var(--spring), box-shadow .2s, border-color .2s;
}
.demo-role:hover { border-color: rgba(18, 146, 76, .3); box-shadow: var(--shadow-2); }
.demo-role:active { transform: scale(.985); }
.demo-role:focus-visible { outline: 3px solid var(--green-3); outline-offset: 2px; }
.demo-role__badge {
  display: inline-block; font-size: 10.5px; font-weight: 800;
  color: var(--text-2); background: var(--bg);
  border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; margin-bottom: 7px;
}
.demo-role__badge.is-primary {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, var(--green-3), var(--green-2));
}
.demo-role b { display: block; font-size: 16px; font-weight: 800; }
.demo-role__desc {
  display: block; font-size: 12px; line-height: 1.7; color: var(--text-2);
  font-weight: 600; margin-top: 4px;
}
.demo-gate__foot {
  font-size: 11.5px; line-height: 1.8; color: var(--text-3);
  font-weight: 600; margin-top: 20px;
}
.demo-gate__foot b { color: var(--green-2); }
@media (max-width: 420px) { .pc-only { display: none; } }

/* ==========================================================================
   2. デモであることの明示
   ========================================================================== */

.demo-chip {
  font-size: 9.5px; font-weight: 900; letter-spacing: .12em;
  color: var(--gold-text); background: var(--gold-soft);
  border: 1px solid rgba(201, 162, 39, .38); border-radius: 999px;
  padding: 2px 7px; margin-left: 7px; vertical-align: 2px; flex: none;
}

/* 新機能バッジ（ドロワー・その他シート） */
.new-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  margin-left: 6px; vertical-align: 3px; flex: none;
  box-shadow: 0 0 0 3px var(--gold-soft);
}

/* ==========================================================================
   3. 追加10機能が共有する部品
   （どのページも同じ語彙で作る＝1つのプロダクトに見せるための土台）
   ========================================================================== */

/* --- セクション見出し --- */
.dsec { margin-top: 20px; }
.dsec:first-child { margin-top: 10px; }
.dsec__head {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px;
}
.dsec__title { font-size: 14px; font-weight: 800; letter-spacing: .01em; }
.dsec__sub { font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.dsec__act { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--green-2); flex: none; }

/* --- KPIタイル --- */
.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpi-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 720px) {
  .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpi-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.kpi {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-1); padding: 13px 14px 12px; min-width: 0;
  position: relative; overflow: hidden;
}
.kpi::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--hairline); opacity: .8;
}
/* 3列に並ぶと「稼働中クライアント数」等が途中で切れて意味が読めなくなったので、
   1行に押し込めず2行まで折り返す（グリッドの行は伸びて揃うので高さは崩れない）。 */
.kpi__label {
  font-size: 11px; font-weight: 700; color: var(--text-2); line-height: 1.35;
  display: flex; align-items: flex-start; gap: 4px; min-width: 0;
}
.kpi__val {
  font-size: 24px; font-weight: 800; line-height: 1.15; margin-top: 5px;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.kpi__val small { font-size: 13px; font-weight: 700; color: var(--text-2); margin-left: 2px; }
.kpi__sub { font-size: 11px; font-weight: 700; color: var(--text-3); margin-top: 3px; }
.kpi__delta { font-size: 11.5px; font-weight: 800; }
.kpi__delta.up { color: var(--st-done); }
.kpi__delta.down { color: var(--red); }
.kpi__delta.flat { color: var(--text-3); }
.kpi--accent .kpi__val { color: var(--green-2); }
.kpi--gold .kpi__val { color: var(--gold-text); }
.kpi--warn .kpi__val { color: var(--red); }

/* --- スパークライン／棒グラフ（SVG不要の軽量バー） --- */
.dspark { display: flex; align-items: flex-end; gap: 3px; height: 34px; margin-top: 8px; }
.dspark i {
  flex: 1; min-width: 2px; border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--green-3), var(--green-2));
  opacity: .85;
}
.dspark i.is-now { background: linear-gradient(180deg, var(--gold-2), var(--gold)); opacity: 1; }

.bars { display: flex; flex-direction: column; gap: 9px; }
.bar__row { display: grid; grid-template-columns: minmax(74px, 30%) 1fr auto; gap: 9px; align-items: center; }
.bar__name {
  font-size: 12px; font-weight: 700; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.bar__track { display: block; height: 9px; border-radius: 999px; background: var(--border); overflow: hidden; }
/* ★ display:block を必ず指定する。<i>/<span> で書かれると inline のまま幅も高さも効かず、
   バーが全部空に見える（実際に発生した）。 */
.bar__fill {
  display: block; height: 100%; min-width: 2px; border-radius: 999px;
  background: linear-gradient(90deg, var(--green-2), var(--green-3));
  transition: width .7s cubic-bezier(.3, .9, .3, 1);
}
.bar__val {
  font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--text-2); white-space: nowrap;
}

/* --- 進捗リング（目標・OKR / ダッシュボード） --- */
.dring { position: relative; width: 96px; height: 96px; flex: none; }
.dring svg { transform: rotate(-90deg); display: block; }
.dring__bg { fill: none; stroke: var(--border); stroke-width: 9; }
.dring__val {
  fill: none; stroke-width: 9; stroke-linecap: round;
  transition: stroke-dashoffset .9s cubic-bezier(.3, .8, .3, 1);
}
.dring__label {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.dring__label small { display: block; font-size: 10px; font-weight: 700; color: var(--text-3); }

/* --- リスト行（顧客台帳・請求書・工数など共通） --- */
.drow {
  display: flex; align-items: center; gap: 11px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-s);
  box-shadow: var(--shadow-1); padding: 11px 13px;
  width: 100%; text-align: left;
}
.drow + .drow { margin-top: 8px; }
.drow:active { transform: scale(.995); }
.drow__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.drow__main { flex: 1; min-width: 0; }
.drow__title {
  font-size: 13.5px; font-weight: 700; line-height: 1.45;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.drow__meta {
  font-size: 11.5px; color: var(--text-2); font-weight: 600; margin-top: 2px;
  display: flex; gap: 7px; flex-wrap: wrap;
}
.drow__right { flex: none; text-align: right; }
.drow__num { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.drow__note { font-size: 11px; color: var(--text-3); font-weight: 700; }

/* --- タイムライン（活動履歴・ふりかえり・通知） --- */
.tl { position: relative; padding-left: 22px; }
.tl::before {
  content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--green-soft), var(--border));
  border-radius: 2px;
}
.tl__item { position: relative; padding: 0 0 15px; }
.tl__item::before {
  content: ''; position: absolute; left: -20px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--card-solid); border: 2px solid var(--green-2);
}
.tl__item.is-muted::before { border-color: var(--st-inbox); }
.tl__item.is-gold::before { border-color: var(--gold); }
.tl__when { font-size: 10.5px; font-weight: 800; color: var(--text-3); letter-spacing: .03em; }
.tl__text { font-size: 12.5px; font-weight: 600; line-height: 1.65; margin-top: 2px; }
.tl__text b { font-weight: 800; }

/* --- セグメント切替（期間・スコープ） --- */
.dseg {
  display: inline-flex; background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto;
  scrollbar-width: none;
}
.dseg::-webkit-scrollbar { display: none; }
.dseg button {
  font-size: 12px; font-weight: 800; color: var(--text-2);
  padding: 7px 13px; border-radius: 9px; white-space: nowrap; flex: none;
  min-height: 34px;
}
.dseg button.is-on {
  background: var(--card-solid); color: var(--green-2); box-shadow: var(--shadow-1);
}
.dseg button:focus-visible { outline: 2px solid var(--green-3); outline-offset: 1px; }

/* --- 空状態 --- */
.dempty {
  text-align: center; padding: 40px 20px; color: var(--text-2);
}
.dempty svg { width: 40px; height: 40px; color: var(--green-2); opacity: .55; }
.dempty b { display: block; font-size: 14.5px; margin-top: 10px; }
.dempty span { display: block; font-size: 12px; color: var(--text-3); margin-top: 4px; line-height: 1.7; }

/* --- 説明カード（各機能の冒頭に置く「これは何か」） --- */
.dnote {
  background: linear-gradient(125deg, var(--card) 60%, color-mix(in srgb, var(--gold-soft) 55%, var(--card)));
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-1); padding: 12px 15px; margin: 10px 0 4px;
  font-size: 12.5px; line-height: 1.75; color: var(--text-2); font-weight: 600;
}
.dnote b { color: var(--green-2); }

/* ==========================================================================
   4. AI相棒（チャットUI）
   ========================================================================== */

.chat { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.chat__row { display: flex; gap: 9px; align-items: flex-end; }
.chat__row.is-me { flex-direction: row-reverse; }
.chat__ava {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-2), var(--green-3)); color: #fff;
}
.chat__ava svg { width: 17px; height: 17px; }
.chat__bubble {
  max-width: min(80%, 520px); padding: 11px 14px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-1);
  font-size: 13.5px; line-height: 1.75; word-break: break-word;
}
.chat__row.is-me .chat__bubble {
  background: linear-gradient(135deg, var(--green-2), var(--green-3));
  color: #fff; border-color: transparent;
}
.chat__bubble b { font-weight: 800; }
.chat__bubble ul { margin: 6px 0 0; padding-left: 18px; }
.chat__bubble li { margin: 3px 0; }
.chat__typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.chat__typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-3);
  animation: chatDot 1s infinite ease-in-out;
}
.chat__typing i:nth-child(2) { animation-delay: .16s; }
.chat__typing i:nth-child(3) { animation-delay: .32s; }
@keyframes chatDot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-sugs { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 4px; }
.chat-sug {
  font-size: 12px; font-weight: 700; color: var(--green-2);
  background: var(--green-soft); border: 1px solid rgba(18, 146, 76, .22);
  border-radius: 999px; padding: 8px 13px; min-height: 36px;
}
.chat-sug:active { transform: scale(.96); }

.chat-input {
  position: sticky; bottom: calc(var(--nav-h) + var(--safe-b)); z-index: 5;
  display: flex; gap: 8px; padding: 10px 0 4px;
  background: linear-gradient(180deg, transparent, var(--bg) 26%);
}
.chat-input .input { flex: 1; }

/* ==========================================================================
   5. LINE配信シミュレーター（端末プレビュー）
   ========================================================================== */

.phone {
  width: 100%; max-width: 340px; margin: 0 auto;
  background: #7a9ab5; border-radius: 26px; padding: 10px;
  box-shadow: var(--shadow-2); border: 1px solid rgba(0, 0, 0, .16);
}
.phone__bar {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px 10px; color: #fff;
}
.phone__bar b { font-size: 13px; font-weight: 700; }
.phone__screen {
  background: #8caac4; border-radius: 18px; padding: 12px 10px 0;
  min-height: 320px; display: flex; flex-direction: column; gap: 10px;
}
.ltalk { display: flex; gap: 7px; align-items: flex-end; }
.ltalk__ava { width: 30px; height: 30px; border-radius: 50%; background: #fff; flex: none; overflow: hidden; }
.ltalk__ava img { width: 100%; height: 100%; object-fit: cover; }
.ltalk__bubble {
  background: #fff; color: #111; border-radius: 4px 16px 16px 16px;
  padding: 9px 12px; font-size: 13px; line-height: 1.65; max-width: 78%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12); word-break: break-word; white-space: pre-wrap;
}
.ltalk--me { flex-direction: row-reverse; }
.ltalk--me .ltalk__bubble { background: #8de055; border-radius: 16px 4px 16px 16px; }
.lcard {
  background: #fff; border-radius: 12px; overflow: hidden; max-width: 78%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .16);
}
.lcard__img { display: block; width: 100%; height: auto; }
.lcard__body { padding: 10px 12px; }
.lcard__title { font-size: 13px; font-weight: 800; color: #111; }
.lcard__text { font-size: 12px; color: #444; line-height: 1.6; margin-top: 3px; }
.lcard__btn {
  display: block; text-align: center; font-size: 12.5px; font-weight: 700;
  color: #06c755; border-top: 1px solid #eee; padding: 9px;
}

/* リッチメニュー（6分割） */
.richmenu {
  margin-top: auto; background: #fff; border-radius: 12px 12px 0 0; overflow: hidden;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr);
  aspect-ratio: 2500 / 1686; border: 1px solid rgba(0, 0, 0, .1);
}
.richmenu__cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border-right: 1px solid rgba(0, 0, 0, .08); border-bottom: 1px solid rgba(0, 0, 0, .08);
  font-size: 10.5px; font-weight: 800; color: #16211a; text-align: center; padding: 4px; min-width: 0;
}
.richmenu__cell span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.richmenu__cell svg { width: 19px; height: 19px; color: var(--green-2); }
.richmenu__cell:nth-child(3n) { border-right: 0; }
.richmenu__cell.is-sel { background: var(--green-soft); box-shadow: inset 0 0 0 2px var(--green-2); }

/* ==========================================================================
   6. 請求書ビルダー（印刷レイアウト）
   ========================================================================== */

.inv-sheet {
  background: #fff; color: #16211a; border-radius: var(--radius);
  box-shadow: var(--shadow-2); padding: 26px 24px; font-size: 12.5px; line-height: 1.7;
  max-width: 720px; margin: 0 auto;
}
.inv-sheet h2 {
  font-size: 21px; font-weight: 800; letter-spacing: .22em; text-align: center;
  padding-bottom: 12px; border-bottom: 2px solid #0e5c31; margin-bottom: 18px;
}
.inv-sheet__top { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.inv-sheet__to { flex: 1; min-width: 210px; }
.inv-sheet__to b { font-size: 15px; border-bottom: 1px solid #16211a; padding-bottom: 2px; display: inline-block; }
.inv-sheet__from { font-size: 11.5px; text-align: right; color: #444; }
.inv-sheet__total {
  margin: 18px 0; padding: 12px 14px; background: #f2f6f1; border-radius: 10px;
  display: flex; align-items: baseline; gap: 12px;
}
.inv-sheet__total span { font-size: 12.5px; font-weight: 800; }
.inv-sheet__total b { font-size: 25px; font-weight: 800; margin-left: auto; font-variant-numeric: tabular-nums; }
.inv-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.inv-table th, .inv-table td { border: 1px solid #d8e0d6; padding: 8px 10px; font-size: 12px; }
.inv-table th { background: #eef3ec; font-weight: 800; text-align: left; }
.inv-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.inv-sheet__note { margin-top: 16px; font-size: 11.5px; color: #555; white-space: pre-wrap; }

@media print {
  body > *:not(#gbView) { display: none !important; }
  #gbView .container > *:not(.inv-print) { display: none !important; }
  .inv-sheet { box-shadow: none; border: 0; max-width: none; padding: 0; }
  .appbar, .tabbar, .fab, .toast { display: none !important; }
}

/* ==========================================================================
   7. ツアー・オーバーレイ
   ========================================================================== */

.tour-ov {
  position: fixed; inset: 0; z-index: 120; background: var(--overlay);
  backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px;
  animation: fadeIn .2s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.tour {
  background: var(--card-solid); border: 1px solid var(--border); border-radius: 22px;
  box-shadow: var(--shadow-2); max-width: 400px; width: 100%; padding: 22px 22px 18px;
  animation: cardIn .3s var(--spring) both;
}
.tour__step { font-size: 10.5px; font-weight: 900; letter-spacing: .12em; color: var(--gold-text); }
.tour__ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green-2); margin: 10px 0 12px;
}
.tour__ico svg { width: 26px; height: 26px; }
.tour h3 { font-size: 18px; font-weight: 800; }
.tour p { font-size: 13px; line-height: 1.8; color: var(--text-2); font-weight: 600; margin-top: 8px; }
.tour__dots { display: flex; gap: 5px; margin: 16px 0 12px; }
.tour__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--border); }
.tour__dots i.is-on { background: var(--green-2); width: 18px; border-radius: 999px; }
.tour__btns { display: flex; gap: 8px; }
.tour__btns .btn { flex: 1; }

/* ==========================================================================
   8. アクセシビリティの底上げ（本番CSSに無い分をここで補う）
   ========================================================================== */

:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--green-3);
  outline-offset: 2px;
  border-radius: 6px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--green-2); color: #fff; font-weight: 800; font-size: 13px;
  padding: 10px 16px; border-radius: 0 0 12px 12px; transition: top .18s;
}
.skip-link:focus { top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   9. PC（広い画面）での読みやすさ
   ========================================================================== */

@media (min-width: 900px) {
  .dsec__title { font-size: 15px; }
  .chat__bubble { font-size: 14px; }
}

/* ==========================================================================
   10. シート内の選択リスト（テーマ・デモアカウント切替などで使う）
   ========================================================================== */

.dlist { display: flex; flex-direction: column; gap: 8px; }
.dlistitem {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-s);
  box-shadow: var(--shadow-1); padding: 12px 14px; min-height: 56px;
}
.dlistitem:active { transform: scale(.99); }
.dlistitem__main { flex: 1; min-width: 0; }
.dlistitem__main b { display: block; font-size: 13.5px; font-weight: 800; }
.dlistitem__main span { display: block; font-size: 11.5px; color: var(--text-2); font-weight: 600; line-height: 1.65; margin-top: 2px; }
.dlistitem__right { flex: none; color: var(--green-2); display: flex; }
.dlistitem__right svg { width: 20px; height: 20px; }
.dlistitem.is-on { border-color: rgba(18,146,76,.35); background: color-mix(in srgb, var(--green-soft) 60%, var(--card)); }

/* ==========================================================================
   11. アプリバーのタイトル（追加機能はページ名が長い）
   「経営ダッシュボード」「LINE配信シミュレーター」等は 320px 幅で2行に折り返し、
   ヘッダーからはみ出して読めなくなった。1行＋省略記号に固定する。
   ========================================================================== */

.appbar__title { overflow: hidden; }
.appbar__title #gbTitle {
  flex: 0 1 auto; min-width: 4.5em;      /* 「ボ.」まで潰れないように下限を持たせる */
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.appbar__title .demo-chip { flex: none; }

/* ボードなど右側のボタンが多いページでは、狭い画面でタイトルが潰れる。
   デモである説明は入口・メニュー・各ページ冒頭にもあるので、チップの方を先に畳む。 */
@media (max-width: 430px) {
  .appbar__title .demo-chip { display: none; }
}

/* 起動スプラッシュのロゴ枠。元の縦長ロゴ(158px幅)前提だったので、横長ワードマーク用に広げる。 */
.boot__logo { width: 240px; max-width: 74vw; }
