/* ===== アンケート(幸せ意識度チェック / ライフメイクカルテ) ===== */
.hq { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.hq .q { font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.hq .q small { display: block; color: var(--muted); font-weight: 400; font-size: 11.5px; margin-top: 2px; }
.hbtns { display: flex; gap: 8px; }
.hbtn { flex: 1; padding: 8px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; cursor: pointer; font-weight: 700; font-size: 13px; color: var(--muted); transition: .12s; }
.hbtn:hover { border-color: #cfd6e6; }
.hbtn.on-yes { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.hbtn.on-no { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.chk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 14px; }
.chk { font-size: 13px; display: flex; align-items: center; gap: 7px; font-weight: 400; cursor: pointer; }
.chk input { width: 16px; height: 16px; accent-color: var(--brand); }
.verdict-box { padding: 12px 14px; border-radius: 10px; text-align: center; font-weight: 700; margin-bottom: 14px; font-size: 14px; }

/* =========================================================================
   Life Make Sales — Premium Design System v2
   配色: 深ネイビー × インディゴ→バイオレット × ゴールド
   ========================================================================= */
:root {
  /* 背景・面 */
  --bg: #f4f5fa;
  --bg-grad:
    radial-gradient(900px 420px at 85% -8%, rgba(124,108,246,.10) 0%, transparent 60%),
    radial-gradient(700px 380px at -10% 30%, rgba(201,163,92,.07) 0%, transparent 55%),
    var(--bg);
  --panel: #ffffff;
  --panel-2: #f8f9fd;

  /* 文字 */
  --ink: #101426;
  --ink-2: #3c4257;
  --muted: #828aa0;
  --line: #e9ebf4;
  --line-2: #dfe3ef;

  /* ブランド */
  --brand: #5b54e8;
  --brand-2: #7c6cf6;
  --brand-ink: #4338ca;
  --brand-soft: #eeedfd;
  --brand-grad: linear-gradient(135deg, #7c6cf6 0%, #5b54e8 55%, #4c3fe0 100%);

  /* ゴールド(アクセント) */
  --gold: #c9a35c;
  --gold-2: #e3c98f;
  --gold-grad: linear-gradient(135deg, #e7cf9b 0%, #c9a35c 60%, #ad8746 100%);

  /* セマンティック */
  --green: #0e9f6e; --green-soft: #e4f7ef;
  --amber: #d97f06; --amber-soft: #fdf2e0;
  --red: #e0254f;   --red-soft: #fde8ed;
  --sky: #0c93d8;   --sky-soft: #e3f3fc;
  --violet: #7c3aed;--violet-soft: #f1eafe;

  /* 影・形 */
  --shadow-xs: 0 1px 2px rgba(20,24,48,.05);
  --shadow-sm: 0 1px 2px rgba(20,24,48,.05), 0 2px 8px rgba(20,24,48,.05);
  --shadow:    0 1px 2px rgba(20,24,48,.04), 0 6px 18px rgba(20,24,48,.06), 0 16px 40px rgba(20,24,48,.05);
  --shadow-lg: 0 8px 24px rgba(20,24,48,.12), 0 32px 80px rgba(20,24,48,.18);
  --radius: 16px;
  --radius-sm: 11px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Noto Sans JP", "Inter", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  background: var(--bg-grad);
  background-attachment: fixed;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: #ded9ff; }

/* スクロールバー(上品に) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cdd2e4; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #b4bad2; }

#app { display: flex; min-height: 100vh; }

/* =========================================================================
   サイドバー — 深ネイビー × ゴールドの気品
   ========================================================================= */
.sidebar {
  width: 252px; flex-shrink: 0;
  background:
    radial-gradient(420px 220px at 50% -60px, rgba(124,108,246,.28) 0%, transparent 70%),
    linear-gradient(180deg, #11152e 0%, #0b0e22 100%);
  color: #c2cae0; display: flex; flex-direction: column;
  padding: 22px 14px 16px; position: sticky; top: 0; height: 100vh;
  border-right: 1px solid rgba(255,255,255,.04);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 10px 24px; }
.logo {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--gold-grad);
  display: grid; place-items: center; color: #1d1503; font-size: 17px; font-weight: 800;
  box-shadow: 0 4px 14px rgba(201,163,92,.45), inset 0 1px 0 rgba(255,255,255,.5);
}
.brand-name { font-weight: 700; font-size: 17.5px; color: #fff; letter-spacing: .3px; line-height: 1.25; }
.brand-name small { display: block; font-size: 10px; font-weight: 500; color: #8b94b5; letter-spacing: 1.6px; margin-top: 2px; }

.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav::-webkit-scrollbar { width: 5px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border: none; }
.nav-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1.6px;
  color: #5b6488; padding: 18px 14px 7px; font-weight: 700;
}
.nav-item {
  display: flex; align-items: center; gap: 12px; background: transparent; border: none;
  color: #9aa4c4; padding: 10.5px 14px; border-radius: 10px; cursor: pointer;
  font-size: 13.5px; font-weight: 500; font-family: inherit; text-align: left;
  transition: background .16s, color .16s; position: relative; width: 100%;
}
.nav-item .ico { width: 21px; text-align: center; font-size: 15.5px; opacity: .95; filter: grayscale(.25); transition: .16s; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item:hover .ico { filter: none; }
.nav-item.active {
  background: linear-gradient(135deg, rgba(124,108,246,.32), rgba(91,84,232,.22));
  color: #fff; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(151,135,255,.35);
}
.nav-item.active .ico { filter: none; }
.nav-item.active::before {
  content: ""; position: absolute; left: -14px; top: 22%; bottom: 22%;
  width: 3.5px; border-radius: 0 4px 4px 0; background: var(--gold-grad);
  box-shadow: 0 0 10px rgba(201,163,92,.6);
}
.sidebar-foot {
  font-size: 11px; color: #5b6488; padding: 14px 10px 4px; line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,.07); margin-top: 10px;
}
.sidebar-foot b { color: #9aa4c4; font-weight: 600; letter-spacing: .4px; }
.sidebar-foot a { color: #8b94b5; }

/* =========================================================================
   メイン / トップバー
   ========================================================================= */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 15px 32px; background: rgba(252,252,255,.78); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(225,228,240,.9); position: sticky; top: 0; z-index: 20;
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar h1 { font-size: 19px; font-weight: 800; letter-spacing: -.2px; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.view { padding: 28px 32px 64px; max-width: 1280px; width: 100%; animation: viewin .3s ease; }
@keyframes viewin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* =========================================================================
   ボタン
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--brand-grad); color: #fff;
  border: none; padding: 9.5px 17px; border-radius: 10px; cursor: pointer; font-size: 13.5px;
  font-weight: 700; font-family: inherit; letter-spacing: .2px; transition: .16s;
  box-shadow: 0 2px 6px rgba(91,84,232,.30), 0 6px 16px rgba(91,84,232,.18), inset 0 1px 0 rgba(255,255,255,.18);
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(91,84,232,.34), 0 10px 24px rgba(91,84,232,.24); }
.btn:active { transform: translateY(0); filter: brightness(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.ghost { background: #fff; color: var(--ink-2); border: 1px solid var(--line-2); box-shadow: var(--shadow-xs); }
.btn.ghost:hover { background: var(--panel-2); border-color: #c7cde2; color: var(--ink); filter: none; }
.btn.soft { background: var(--brand-soft); color: var(--brand-ink); box-shadow: none; }
.btn.soft:hover { background: #e3e0fc; filter: none; }
.btn.danger { background: #fff; color: var(--red); border: 1px solid #f5c2d0; box-shadow: none; }
.btn.danger:hover { background: var(--red-soft); filter: none; }
.btn.sm { padding: 6px 12px; font-size: 12.5px; box-shadow: none; border-radius: 8px; }
.btn.block { width: 100%; }
.icon-btn { background: none; border: none; font-size: 15px; cursor: pointer; color: var(--muted); padding: 6px; border-radius: 8px; transition: .15s; line-height: 1; }
.icon-btn:hover { color: var(--red); background: var(--red-soft); }

/* =========================================================================
   統計カード — 大きな数字とアイコンチップ
   ========================================================================= */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px,1fr)); gap: 14px; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 17px 18px 15px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.stat::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--brand-grad); opacity: 0; transition: opacity .18s;
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat:hover::after { opacity: 1; }
.stat .st-top { display: flex; align-items: center; justify-content: space-between; }
.stat .st-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 16.5px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.03); }
.stat .label { color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .4px; }
.stat .num { font-size: 28px; font-weight: 800; margin-top: 9px; letter-spacing: -.8px; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat .num.sm { font-size: 20.5px; }
.stat .sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.ic-blue   { background: var(--brand-soft); color: var(--brand); }
.ic-green  { background: var(--green-soft); color: var(--green); }
.ic-amber  { background: var(--amber-soft); color: var(--amber); }
.ic-red    { background: var(--red-soft);   color: var(--red); }
.ic-sky    { background: var(--sky-soft);   color: var(--sky); }
.ic-violet { background: var(--violet-soft);color: var(--violet); }

/* =========================================================================
   パネル
   ========================================================================= */
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 980px) { .grid-2 { grid-template-columns: 1fr; } }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 22px; margin-top: 18px;
}
.panel.tight { padding: 16px 18px; }
.panel h3 { font-size: 14.5px; font-weight: 800; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; letter-spacing: .1px; }
.panel h3 .pill { font-size: 10.5px; font-weight: 700; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); padding: 2px 9px; border-radius: 20px; letter-spacing: .3px; }
.section-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }

/* =========================================================================
   テーブル
   ========================================================================= */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: middle; }
th {
  color: var(--muted); font-weight: 700; font-size: 11px; letter-spacing: .8px; text-transform: uppercase;
  background: var(--panel-2); position: sticky; top: 0; border-bottom: 1px solid var(--line-2);
}
tbody tr { transition: background .12s; }
tbody tr:hover td { background: #f7f7fe; }
tbody tr:last-child td { border-bottom: none; }
.empty { color: var(--muted); text-align: center; padding: 44px 20px; font-size: 13.5px; }
.empty .em-ico { font-size: 32px; display: block; margin-bottom: 10px; opacity: .45; }

/* =========================================================================
   バッジ
   ========================================================================= */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3.5px 11px; border-radius: 20px;
  font-size: 11.5px; font-weight: 700; white-space: nowrap; letter-spacing: .2px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
.badge.gray   { background: #eef0f7; color: #5a6680; }
.badge.blue   { background: var(--brand-soft); color: var(--brand-ink); }
.badge.green  { background: var(--green-soft); color: #0b7d57; }
.badge.amber  { background: var(--amber-soft); color: #b16a06; }
.badge.red    { background: var(--red-soft);   color: #c11f45; }
.badge.sky    { background: var(--sky-soft);   color: #0a7cb6; }
.badge.violet { background: var(--violet-soft);color: var(--violet); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

/* =========================================================================
   フォーム
   ========================================================================= */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; font-weight: 700; letter-spacing: .2px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 13px; border: 1.5px solid var(--line-2); border-radius: 10px;
  font-size: 13.5px; font-family: inherit; background: #fff; color: var(--ink); transition: .15s;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #c4cbe0; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3.5px rgba(91,84,232,.13);
}
.field textarea { resize: vertical; min-height: 72px; line-height: 1.65; }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; align-items: center; }
.form-actions .spacer { flex: 1; }

/* 検索バー */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 380px; }
.search input {
  width: 100%; padding: 10px 13px 10px 36px; border: 1.5px solid var(--line-2); border-radius: 11px;
  font-size: 13.5px; background: #fff; font-family: inherit; transition: .15s;
}
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3.5px rgba(91,84,232,.13); }
.search .si { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; }
.filter-select { padding: 10px 13px; border: 1.5px solid var(--line-2); border-radius: 11px; font-size: 13px; background: #fff; color: var(--ink-2); font-family: inherit; }

/* =========================================================================
   モーダル
   ========================================================================= */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(13,16,38,.55); backdrop-filter: blur(5px);
  display: flex; align-items: flex-start; justify-content: center; padding: 44px 16px;
  z-index: 60; overflow-y: auto; animation: fade .16s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 680px; box-shadow: var(--shadow-lg); animation: pop .22s cubic-bezier(.2,.9,.3,1.1); }
.modal.wide { max-width: 840px; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 24px;
  border-bottom: 1px solid var(--line); position: sticky; top: 0;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-radius: 18px 18px 0 0; z-index: 2;
}
.modal-head h2 { font-size: 16.5px; font-weight: 800; letter-spacing: -.1px; }
.modal-body { padding: 24px; }
.modal-section-title { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: 1.2px; margin: 20px 0 10px; text-transform: uppercase; }

/* =========================================================================
   トースト
   ========================================================================= */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #181d3a, #101426); color: #fff; padding: 13px 22px;
  border-radius: 13px; font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.08);
  z-index: 100; display: flex; align-items: center; gap: 10px; animation: slideup .28s cubic-bezier(.2,.9,.3,1.1);
  max-width: min(92vw, 480px);
}
@keyframes slideup { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }

.hidden { display: none !important; }

/* =========================================================================
   カンバン（商談フロー）
   ========================================================================= */
.kanban { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 16px; }
.kcol {
  background: linear-gradient(180deg, #eef0f8, #ecEEf7);
  border: 1px solid var(--line); border-radius: 14px;
  min-width: 252px; width: 252px; flex-shrink: 0; padding: 12px;
  transition: .15s; display: flex; flex-direction: column;
}
.kcol-head { display: flex; justify-content: space-between; align-items: center; padding: 3px 5px 10px; }
.kcol-head .cnt { background: #fff; color: var(--muted); border-radius: 20px; padding: 1px 10px; font-size: 11.5px; font-weight: 800; border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.kcol-sum { font-size: 11px; color: var(--muted); padding: 0 5px 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kcol.drop-hover { background: var(--brand-soft); outline: 2px dashed var(--brand); outline-offset: -3px; }
.kcard {
  background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 13px;
  margin-bottom: 9px; cursor: grab; box-shadow: var(--shadow-xs);
  transition: transform .14s, box-shadow .14s; border-left: 3.5px solid var(--brand-2);
}
.kcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.kcard.dragging { opacity: .4; transform: rotate(1.2deg) scale(1.02); }
.kcard .kt { font-weight: 700; font-size: 13px; margin-bottom: 5px; color: var(--ink); line-height: 1.45; }
.kcard .kc { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.kcard .kbot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.kcard .kamount { font-size: 13.5px; font-weight: 800; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.kcard .kprob { font-size: 10.5px; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 1px 8px; font-weight: 700; }

/* =========================================================================
   音声入力
   ========================================================================= */
.mic-btn {
  display: inline-flex; align-items: center; gap: 6px; background: #fff;
  border: 1.5px solid var(--brand); color: var(--brand-ink); padding: 6px 13px;
  border-radius: 20px; cursor: pointer; font-size: 12px; font-weight: 700; font-family: inherit; transition: .15s;
}
.mic-btn:hover { background: var(--brand-soft); }
.mic-btn.recording { background: var(--red); border-color: var(--red); color: #fff; animation: pulse 1.3s infinite; }
.mic-btn:disabled { opacity: .45; cursor: not-allowed; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(224,37,79,.5); } 50% { box-shadow: 0 0 0 8px rgba(224,37,79,0); } }
.voice-hint { font-size: 11px; color: var(--muted); margin-left: 7px; }
.field-row-mic { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; gap: 8px; }
.voice-box {
  background: linear-gradient(135deg, #f4f1ff 0%, #edeffe 100%);
  border: 1px solid #ded9fb; border-radius: 14px; padding: 16px; margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.voice-box .vb-title { font-weight: 800; font-size: 13px; display: flex; align-items: center; gap: 7px; margin-bottom: 4px; color: var(--brand-ink); }
.voice-box .vb-desc { font-size: 11.5px; color: var(--ink-2); margin-bottom: 10px; }

/* =========================================================================
   進捗・チャート
   ========================================================================= */
.pbar { background: #e9ecf6; border-radius: 20px; height: 10px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(20,24,48,.06); }
.pbar > i { display: block; height: 100%; background: linear-gradient(90deg, #34d399, #0e9f6e); border-radius: 20px; transition: width .5s cubic-bezier(.3,.8,.3,1); }

.bar-chart { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 92px 1fr 60px; align-items: center; gap: 10px; }
.bar-row .bl { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.bar-track { background: #edeff7; border-radius: 9px; height: 26px; overflow: hidden; position: relative; box-shadow: inset 0 1px 2px rgba(20,24,48,.05); }
.bar-fill { height: 100%; border-radius: 9px; min-width: 3px; transition: width .55s cubic-bezier(.3,.8,.3,1); display: flex; align-items: center; }
.bar-row .bv { font-size: 12px; font-weight: 800; text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* リスト行 */
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--line); border-radius: 8px; transition: background .14s; }
.list-item:last-child { border-bottom: none; }
.li-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 14.5px; flex-shrink: 0; }
.li-main { flex: 1; min-width: 0; }
.li-title { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.li-right { font-size: 11.5px; color: var(--muted); text-align: right; white-space: nowrap; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.clickable { cursor: pointer; }
.clickable:hover { background: #f6f6fe; }
.clickable:active { background: var(--brand-soft); }

/* =========================================================================
   汎用
   ========================================================================= */
.list-link { color: var(--brand-ink); cursor: pointer; font-weight: 700; transition: .12s; }
.list-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.muted { color: var(--muted); }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.due-over { color: var(--red); font-weight: 800; }
.due-soon { color: var(--amber); font-weight: 800; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 9px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); font-weight: 700; }
.kv dd { color: var(--ink); }
.chip-row { display: flex; gap: 7px; flex-wrap: wrap; }
.avatar {
  width: 42px; height: 42px; border-radius: 12px; background: var(--brand-grad); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(91,84,232,.3);
}
.cand-card { border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 15px; margin-bottom: 9px; display: flex; align-items: center; gap: 12px; background: var(--panel-2); transition: .14s; }
.cand-card:hover { border-color: #c7cde2; background: #fff; }
.cand-card input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--brand); }
.checkbox-cell input { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; }
hr.sep { border: none; border-top: 1px dashed var(--line-2); margin: 18px 0; }
.inline-edit { width: 150px; padding: 7px 10px; border: 1.5px solid var(--line-2); border-radius: 9px; font-size: 13px; font-family: inherit; transition: .15s; }
.inline-edit:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91,84,232,.12); }

/* AI議事録 */
.chip { display: inline-block; background: var(--brand-soft); color: var(--brand-ink); font-size: 11px; font-weight: 700; padding: 2.5px 10px; border-radius: 999px; margin: 1px 4px 1px 0; box-shadow: inset 0 0 0 1px rgba(91,84,232,.12); }
.ai-box {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin: 4px 0; line-height: 1.75; font-size: 13.5px;
}
.ai-box h2 { font-size: 14.5px; margin: 12px 0 5px; color: var(--brand-ink); font-weight: 800; }
.ai-box h2:first-child, .ai-box h3:first-child { margin-top: 0; }
.ai-box h3 { font-size: 13.5px; margin: 10px 0 4px; font-weight: 800; }
.ai-box ul { padding-left: 20px; }
.action-row { padding: 7px 2px; border-bottom: 1px dashed var(--line-2); font-size: 13.5px; }
.action-row:last-of-type { border-bottom: none; }

details summary { cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--ink-2); padding: 8px 0; }
details summary:hover { color: var(--brand-ink); }

/* =========================================================================
   モバイル（ハンバーガー・1画面・カード化）
   ========================================================================= */
.hamburger { display: none; background: transparent; border: none; font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer; padding: 4px 10px; border-radius: 9px; }
.hamburger:hover { background: var(--brand-soft); }
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(13,16,38,.5); backdrop-filter: blur(2px); z-index: 65; }
body.nav-open .nav-overlay { display: block; animation: fade .2s ease; }

@media (max-width: 860px) {
  html, body { overflow-x: hidden; }
  #app { display: block; }
  .sidebar {
    position: fixed; left: 0; top: 0; height: 100%; width: 258px;
    transform: translateX(-100%); transition: transform .26s cubic-bezier(.3,.8,.3,1); z-index: 70;
    box-shadow: 0 0 60px rgba(0,0,0,.5);
  }
  body.nav-open .sidebar { transform: translateX(0) !important; }
  .main { width: 100%; min-height: 100vh; }
  .hamburger { display: inline-flex; align-items: center; }
  .topbar { padding: 11px 14px; gap: 10px; }
  .topbar h1 { font-size: 16px; overflow: hidden; text-overflow: ellipsis; }
  .view { padding: 16px 14px 56px; max-width: 100%; }
  .grid2 { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr !important; }
  .cards { grid-template-columns: 1fr 1fr; gap: 11px; }
  .stat .num { font-size: 24px; }
  .panel { padding: 16px; }
  .modal-overlay { padding: 14px 10px; }
  .modal-body { padding: 18px 16px; }
  th, td { padding: 9px 8px; font-size: 13px; }
  .search { max-width: none; }
  .toolbar { gap: 8px; }

  /* テーブル → カード型(横読み) */
  .table-wrap { overflow-x: visible; border: none; }
  .table-wrap table thead { display: none; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: auto !important; }
  .table-wrap tr {
    border: 1px solid var(--line); border-radius: 13px; margin-bottom: 10px;
    padding: 11px 14px; background: #fff; box-shadow: var(--shadow-xs);
  }
  .table-wrap td { border: none !important; padding: 4px 0 !important; text-align: left !important; white-space: normal !important; }
  .table-wrap td.right { text-align: left !important; }
  .table-wrap td .list-link { font-size: 14.5px; }
  .table-wrap select, .table-wrap select.inline-edit { width: 100% !important; max-width: 240px; }
  .table-wrap td.empty { text-align: center !important; }

  /* リスト行: 全文表示 */
  .li-title, .li-sub { white-space: normal; overflow: visible; text-overflow: clip; }
  .list-item { align-items: flex-start; }
  .li-right { flex-shrink: 0; padding-left: 8px; line-height: 1.4; }
}
@media (max-width: 430px) {
  .cards { grid-template-columns: 1fr; }
  .topbar-actions .btn { padding: 7px 11px; font-size: 12.5px; }
  .brand-name { font-size: 16px; }
}
