* { margin:0; padding:0; box-sizing:border-box; font-family:"Yu Gothic","Hiragino Kaku Gothic ProN","Meiryo",sans-serif; }
  :root{
    --navy:#1B2A41; --blue:#205888; --blue-dk:#184868; --blue-lt:#E4ECF2;
    --terra:#C06448; --terra-lt:#F7E9E2;
    --teal:#19A7A0; --teal-lt:#E1F5F4; --amber:#D98A1F; --amber-lt:#FBF1E2;
    --gray:#5C6B82; --gray-lt:#8A98AC; --line:#E3E8EF; --bg:#F4F6FA; --ice:#F0F8F8;
    --green:#1E9E6A; --green-lt:#E5F4EC; --red:#D9534F;
  }
  body{ background:#fff; }
  .win{ margin:0 auto; }
  .win{ width:100%; max-width:1100px; background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; box-shadow:0 8px 30px rgba(20,40,80,.10); }
  .bar{ height:38px; background:#F2F4F8; border-bottom:1px solid var(--line); display:flex; align-items:center; padding:0 14px; gap:7px; }
  .dot{ width:11px; height:11px; border-radius:50%; }
  .url{ flex:1; margin-left:12px; height:22px; background:#fff; border:1px solid var(--line); border-radius:11px; font-size:11px; color:var(--gray-lt); display:flex; align-items:center; padding:0 12px; }
  .app{ display:flex; min-height:700px; }
  .side{ width:200px; background:#EDF1F7; color:#1A1A1A; padding:18px 0; }
  .brand{ font-weight:700; font-size:15px; padding:0 18px 14px; color:#2D6CDF; display:flex; align-items:center; gap:8px; border-bottom:1px solid #DCE4EF; margin-bottom:10px; }
  .brand .mk{ width:20px; height:20px; border:2px solid var(--blue); border-radius:5px; display:inline-block; }
  .nav{ font-size:13.5px; font-weight:400; color:#1A1A1A; padding:10px 18px; display:flex; align-items:center; gap:9px; }
  .nav.on{ background:#DCE6F4; color:#1A1A1A; font-weight:400; border-left:3px solid var(--blue); padding-left:15px; }
  .nav-ico{ flex:0 0 auto; width:16px; height:16px; opacity:1; color:var(--blue); }
  .nav.on .nav-ico{ opacity:1; color:var(--blue); }
  .nav-label{ flex:1 1 auto; }
  .main{ flex:1; padding:22px 26px; background:#fff; }
  .h1{ font-size:18px; font-weight:700; color:var(--navy); margin-bottom:3px; }
  .sub{ font-size:12px; color:var(--gray); margin-bottom:16px; }
  .row{ display:flex; gap:14px; }
  .card{ border:1px solid var(--line); border-radius:10px; padding:14px 16px; background:#fff; }
  .btn{ background:var(--blue); color:#fff; font-weight:700; font-size:13px; border-radius:8px; padding:9px 18px; display:inline-flex; align-items:center; gap:7px; }
  .btn.amber{ background:var(--amber); }
  .btn.ghost{ background:#fff; color:var(--blue); border:1.5px solid var(--blue); }
  .chip{ font-size:11px; font-weight:700; padding:3px 10px; border-radius:20px; }
  .chip.blue{ background:var(--blue-lt); color:var(--blue-dk); }
  .chip.teal{ background:var(--teal-lt); color:var(--teal); }
  .chip.amber{ background:var(--amber-lt); color:var(--amber); }
  .chip.green{ background:var(--green-lt); color:var(--green); }
  .chip.gray{ background:#EEF1F6; color:var(--gray); }
  .input{ border:1px solid var(--line); border-radius:8px; padding:10px 12px; font-size:13px; color:var(--navy); background:#fff; }
  table{ width:100%; border-collapse:collapse; font-size:12.5px; }
  th{ text-align:left; color:var(--gray-lt); font-size:11px; font-weight:700; padding:8px 10px; border-bottom:1px solid var(--line); }
  td{ padding:10px; border-bottom:1px solid #EFF2F7; color:var(--navy); }
  .muted{ color:var(--gray-lt); }

/* ===== 画像 ===== */
.logo-img{ height:22px; width:auto; }

/* ===== レスポンシブ ===== */
@media (max-width: 900px){
  .app{ flex-direction:column; min-height:0; }
  .side{ width:100%; padding:12px 0; display:flex; flex-direction:column; }
  .side .nav{ display:inline-flex; }
  .main{ padding:18px 16px; }
  .row{ flex-direction:column; }
  .h1{ font-size:16px; }
  .win{ border-radius:10px; }
}
@media (max-width: 560px){
  .bar{ height:34px; padding:0 10px; }
  .url{ font-size:10px; }
  .main{ padding:14px 12px; }
  table{ font-size:11.5px; }
  th,td{ padding:7px 6px; }
  .btn{ font-size:12px; padding:8px 12px; }
}
/* テーブルは横スクロール可能に */
.table-wrap{ width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }

/* ===== モバイル微調整 ===== */
@media (max-width: 900px){
  /* メイン業務画面を先に、サイドバーを後ろに */
  .app{ display:flex; flex-direction:column; }
  .app .main{ order:1; }
  .app .side{ order:2; }
  /* サイドバーのナビを折返し横並びに */
  .side > div[style], .side .nav{ flex-wrap:wrap; }
  .side{ flex-direction:row; flex-wrap:wrap; align-items:flex-start; gap:4px; padding:10px 12px; }
  /* チップ・ボタン群の折返し */
  .row, .table-wrap{ width:100%; }
}
/* チップ群はどの幅でも折返す */
td, .card { overflow-wrap:anywhere; }

/* ===== ナビをリンク化した際の見た目維持 ===== */
a.nav{ text-decoration:none; cursor:pointer; }
a.nav:hover{ background:#DCE6F4; color:#1A1A1A; }
a.nav.on:hover{ background:#DCE6F4; }

/* ===== 新ページ用 共通追加 ===== */
.brand-ai{ color:#E8842B; }
.dot-r{ background:#F4655B; } .dot-y{ background:#F5BD4F; } .dot-g{ background:#63C75A; }
/* 新サイドバー（settings用） */
.side-nav{ flex:0 0 auto; }
.side-ai{ margin:12px; background:#fff; border-radius:10px; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,.2); display:flex; flex-direction:column; }
.side-ai-hd{ background:#205888; padding:10px 13px; font-size:14px; font-weight:700; color:#fff; display:flex; align-items:center; gap:7px; }
.side-ai-bd{ padding:12px 11px 8px; max-height:300px; overflow-y:auto; display:flex; flex-direction:column; }
.ai-chat-empty{ font-size:12.5px; line-height:1.6; padding:6px 2px; }
.ai-bub{ font-size:13.5px; line-height:1.6; padding:9px 12px; margin-bottom:9px; max-width:88%; word-break:break-word; }
.ai-bub-q{ align-self:flex-end; background:#205888; color:#fff; border-radius:12px 12px 4px 12px; }
.ai-bub-a{ align-self:flex-start; background:#EEF1F6; color:#1B2A41; border-radius:12px 12px 12px 4px; }
.ai-bub-thinking{ color:#7A8AA0; font-style:italic; }
.side-ai-ft{ padding:8px 10px 11px; display:flex; gap:7px; align-items:flex-end; border-top:1px solid #EEF1F6; }
.side-ai-input{ flex:1; background:#F4F6FA; border:1px solid #E3E8EF; border-radius:9px; padding:9px 10px; font-size:13.5px; line-height:1.5; color:#1B2A41; resize:none; font-family:inherit; max-height:120px; }
.side-ai-input:focus{ outline:none; border-color:#5A8DE0; background:#fff; }
.side-ai-send{ flex:0 0 auto; background:#2D6CDF; color:#fff; border:none; border-radius:9px; padding:9px 14px; font-size:13px; font-weight:700; cursor:pointer; }
.side-ai-send:hover{ background:#225BC4; }
.side-ai-send:disabled{ background:#A9B6CC; cursor:not-allowed; }
.side{ display:flex; flex-direction:column; }
.side .side-nav{ flex:1; }

/* ===== アドレスバー廃止後の角丸調整 ===== */
.win > .app{ border-radius:12px; overflow:hidden; }
@media (max-width:900px){ .win > .app{ border-radius:10px; } }

/* ===== モバイルヘッダー＆ハンバーガー ===== */
.mobile-hd{ display:none; }
.m-menu{ display:none; }
@media (max-width:900px){
  .mobile-hd{
    display:flex; align-items:center; justify-content:space-between;
    background:var(--navy); color:#fff; padding:11px 14px; position:sticky; top:0; z-index:40;
  }
  .mobile-hd .m-brand{ display:flex; align-items:center; gap:8px; font-weight:700; font-size:15px; }
  .mobile-hd .m-brand img{ height:22px; width:auto; }
  .m-burger{ background:none; border:none; cursor:pointer; padding:6px; display:flex; flex-direction:column; gap:4px; }
  .m-burger span{ display:block; width:22px; height:2px; background:#fff; border-radius:2px; }
  /* オフキャンバスメニュー */
  .m-menu{
    display:block; position:fixed; inset:0; z-index:50;
    background:rgba(10,18,32,.55); opacity:0; pointer-events:none; transition:opacity .2s;
  }
  .m-menu.open{ opacity:1; pointer-events:auto; }
  .m-menu-panel{
    position:absolute; top:0; right:0; height:100%; width:74%; max-width:300px;
    background:var(--navy); color:#fff; padding:18px 0; transform:translateX(100%); transition:transform .22s;
    box-shadow:-6px 0 24px rgba(0,0,0,.3); overflow-y:auto;
  }
  .m-menu.open .m-menu-panel{ transform:translateX(0); }
  .m-menu-hd{ display:flex; align-items:center; justify-content:space-between; padding:0 18px 14px; border-bottom:1px solid #2A3B57; margin-bottom:10px; }
  .m-menu-hd .m-brand{ display:flex; align-items:center; gap:8px; font-weight:700; font-size:15px; }
  .m-menu-hd .m-brand img{ height:22px; }
  .m-close{ background:none; border:none; color:#AEB9CC; font-size:22px; cursor:pointer; line-height:1; }
  .m-menu a.m-nav{ display:flex; align-items:center; gap:9px; color:#AEB9CC; text-decoration:none; font-size:14px; padding:12px 20px; }
  .m-menu a.m-nav.on{ background:#22324C; color:#fff; border-left:3px solid var(--blue); padding-left:17px; }
  .m-menu a.m-nav:hover{ background:#22324C; color:#fff; }
  /* モバイルでは元サイドバーのナビ部分は隠す（ヘッダーメニューに集約） */
  .app .side .side-nav, .app .side > div:not(.side-ai):not(.brand){ }
}

/* ===== 張りぼて選択UI ===== */
.opt-radio{ cursor:pointer; }
.opt-mark{ display:inline-block; width:14px; height:14px; border:2px solid var(--gray-lt); border-radius:50%; position:relative; vertical-align:-2px; margin-right:4px; }
.opt-radio.is-on .opt-mark{ border-color:var(--blue); }
.opt-radio.is-on .opt-mark::after{ content:""; position:absolute; inset:2px; background:var(--blue); border-radius:50%; }
/* 選択ボックスの枠ハイライト（既存の選択スタイルに上乗せ） */
.opt-radio.is-on{ outline:2px solid var(--blue); outline-offset:-1px; }
/* ON/OFFトグルチップ */
.toggle-chip{ cursor:pointer; user-select:none; }
.toggle-chip::before{ content:"● ON"; }
.toggle-chip.is-on{ background:var(--green-lt); color:var(--green); }
.toggle-chip:not(.is-on){ background:#EEF1F6; color:var(--gray); }
.toggle-chip:not(.is-on)::before{ content:"○ OFF"; }
.toggle-chip{ font-size:0; } /* 元テキスト隠して::beforeで表示 */
.toggle-chip::before{ font-size:11px; }
/* チェックボックス（ログイン保持など） */
.auth-check.is-checked .auth-box{ background:var(--blue); border-color:var(--blue); position:relative; }
.auth-check.is-checked .auth-box::after{ content:"✓"; color:#fff; font-size:10px; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
.auth-check{ cursor:pointer; user-select:none; }
/* button要素をリンク/装飾と同一に（既存.btnの見た目を継承） */
button.btn{ border:none; font:inherit; cursor:pointer; }

/* ===== 「次へ」導線 ===== */
.next-row{ display:flex; justify-content:flex-end; margin-top:18px; }
.next-link{ text-decoration:none; }
@media (max-width:560px){ .next-row{ justify-content:stretch; } .next-link{ width:100%; justify-content:center; } }

/* ===== フルロゴ画像（テキスト一体型）サイズ調整 ===== */
/* サイドバー上部（濃紺） */
.brand{ padding:0 16px 14px !important; }
.brand-logo{ height:30px; width:auto; display:block; }
/* スマホヘッダー帯 */
.m-brand-logo{ height:24px; width:auto; display:block; }
/* スマホメニュー見出し */
.m-menu-hd .m-brand-logo{ height:24px; width:auto; }
/* ログイン/再設定カード（白背景） */
.auth-logo-full{ height:34px; width:auto; display:block; }
.auth-logo{ justify-content:center; }

/* ===== アクション作成（outreach_mail）追加セクション ===== */
.om-card{ margin-bottom:14px; }
.om-card-ttl{ font-size:13px; font-weight:700; color:var(--navy); margin-bottom:4px; }
.om-card-note{ font-size:11.5px; margin-bottom:10px; }
.om-opt-row, .om-dt-row{ display:flex; gap:12px; flex-wrap:wrap; }
.om-opt{ flex:1; min-width:200px; border:1px solid var(--line); border-radius:9px; padding:12px 14px; cursor:pointer; }
.om-opt-sub{ font-size:11px; margin-top:3px; }
.om-dt-opt{ border:1px solid var(--line); border-radius:9px; padding:10px 16px; cursor:pointer; }
.om-dt-fields{ display:flex; gap:14px; margin-top:12px; flex-wrap:wrap; }
.om-dt-field{ display:flex; flex-direction:column; gap:5px; }
.om-dt-label{ font-size:11px; font-weight:700; color:var(--gray); }
.om-input{ font-size:13px; }
.om-react{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.om-react-tx{ font-size:12.5px; color:var(--navy); }

/* ===== 顧客リスト 操作ドロップダウン ===== */
.cl-dd{ position:relative; display:inline-block; }
.cl-dd-menu{
  position:absolute; right:0; top:calc(100% + 6px); min-width:180px;
  background:#fff; border:1px solid var(--line); border-radius:10px;
  box-shadow:0 8px 24px rgba(20,40,80,.14); padding:6px; z-index:20;
  opacity:0; visibility:hidden; transform:translateY(-4px); transition:.15s;
}
.cl-dd.open .cl-dd-menu{ opacity:1; visibility:visible; transform:translateY(0); }
.cl-dd-item{ display:block; padding:9px 12px; font-size:13px; color:var(--navy); text-decoration:none; border-radius:7px; }
.cl-dd-item:hover{ background:var(--bg); }
.cl-dd-del{ color:var(--red); }

/* ===== 外部リスト取り込みボタン ===== */
.ci-btn-row{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.ci-import{ cursor:pointer; }

/* ===== 認証フォーム input（装飾は枠ラッパーが担当） ===== */
.auth-input{ display:flex; align-items:center; }
.auth-input-field{ border:none; outline:none; background:transparent; width:100%; font-size:13px; color:var(--navy); font-family:inherit; }
.auth-input-field::placeholder{ color:var(--gray-lt); }
.auth-input-pw .auth-input-field{ flex:1; }

/* ===== アクション設定 追加分 ===== */
.om-divider{ border-top:1px solid var(--line); margin:16px 0 12px; }
.om-subsec{ margin-top:8px; }
.om-kind-list{ display:flex; flex-direction:column; gap:9px; }
.om-kind{ display:flex; align-items:center; gap:10px; font-size:13px; color:var(--navy); }

/* ===== コンバージョン チェック列 ===== */
.conv-chk{ width:36px; text-align:center; }

/* ===== アクション設定 input類 ===== */
.om-name-input, .om-subj-input{ width:100%; font-size:13px; }
.om-body-input{ width:100%; font-size:13px; line-height:1.7; resize:vertical; font-family:inherit; }
.om-kind-select{ width:100%; max-width:360px; font-size:13px; background:#fff; }
select.input{ -webkit-appearance:auto; appearance:auto; cursor:pointer; }
input.input, textarea.input{ font-family:inherit; }

/* ===== ダッシュボード アクション履歴 ===== */
.db-target-link{ color:var(--blue); font-weight:700; text-decoration:none; }
.db-target-link:hover{ text-decoration:underline; }
.db-dt{ font-size:11px; color:var(--gray-lt); margin-left:6px; }

/* ===== 営業リスト 追加 ===== */
.cl-temp-select{ font-size:12.5px; padding:5px 8px; background:#fff; cursor:pointer; }
.cl-last-dt{ font-size:12.5px; color:var(--navy); }
.cl-last-act{ font-size:11px; }

/* ===== リスト収集 追加 ===== */
.ci-wish-input{ width:100%; font-size:13px; line-height:1.6; resize:vertical; font-family:inherit; }
.ci-clear{ cursor:pointer; }

/* ===== コンバージョン ツールバー ===== */
.conv-toolbar{ display:flex; justify-content:flex-end; margin-bottom:12px; }

/* コンバージョン 操作左寄せ */
.conv-toolbar-left{ justify-content:flex-start !important; }

/* ===== リスト収集 取り込み対比カード＆項目編集 ===== */
.ci-import-card{ margin-top:14px; background:var(--bg); border-style:dashed; }
.ci-import-ttl{ font-size:13px; font-weight:700; color:var(--navy); margin-bottom:4px; }
.ci-import-note{ font-size:11.5px; margin-bottom:10px; }
.ci-item-chip{ display:inline-flex; align-items:center; gap:5px; }
.ci-item-x{ cursor:pointer; color:var(--gray-lt); font-weight:700; margin-left:2px; }
.ci-item-x:hover{ color:var(--red); }
.ci-additem{ cursor:pointer; }
.ci-additem-input{ font-size:12px; padding:5px 8px; width:160px; }

/* ===== 営業リスト 検索窓 ===== */
.cl-search{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:14px; }
.cl-search-input{ flex:1; min-width:200px; font-size:13px; }
.cl-search-action{ font-size:13px; background:#fff; cursor:pointer; min-width:180px; }
.cl-search-btn{ cursor:pointer; }
/* アクション設定: 反響につなぐを本文下インライン化 */
.om-react-inline{ margin-top:12px; padding-top:12px; border-top:1px solid var(--line); }
.om-react-inline .om-card-ttl{ margin-bottom:6px; }
@media (max-width:560px){ .cl-search-input,.cl-search-action{ width:100%; flex:none; } }

/* ===== トップバー（ログインユーザー表示） ===== */
.topbar{ display:flex; justify-content:flex-end; align-items:center; gap:10px; margin-bottom:16px; }
.topbar-manual{ display:inline-flex; align-items:center; gap:7px; padding:6px 13px; border:1px solid var(--line); border-radius:999px; background:#fff; text-decoration:none; transition:background .15s, border-color .15s; }
.topbar-manual:hover{ background:#F0F5FF; border-color:var(--blue); }
.topbar-manual-ic{ font-size:14px; line-height:1; }
.topbar-manual-tx{ font-size:12.5px; font-weight:700; color:var(--navy); white-space:nowrap; }
.topbar-user{ display:flex; align-items:center; gap:8px; padding:5px 10px; border:1px solid var(--line); border-radius:999px; background:#fff; }
.topbar-avatar{ width:26px; height:26px; border-radius:50%; background:var(--blue); color:#fff; font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.topbar-name{ font-size:13px; font-weight:700; color:var(--navy); }
.topbar-caret{ font-size:10px; color:var(--gray-lt); }
.topbar-logout{ font-size:12px; color:var(--gray); text-decoration:none; margin-left:2px; }
.topbar-logout:hover{ color:var(--navy); text-decoration:underline; }
/* ロゴリンク */
.brand-link, .m-brand-link{ display:inline-flex; align-items:center; text-decoration:none; cursor:pointer; }
.brand-link img{ display:block; }
@media (max-width:900px){ .topbar{ margin-bottom:12px; } }
@media (max-width:560px){ .topbar-name{ display:none; } }

/* 操作ユーザー列 */
.col-user{ font-size:12px; white-space:nowrap; }

/* フラッシュメッセージ（PHP化で追加） */
.flash-ok{ background:#E5F4EC; border:1px solid #B7E0C8; color:#1E7A4D; font-size:13px; border-radius:8px; padding:10px 14px; margin-bottom:14px; }
.flash-err{ background:#FDECEA; border:1px solid #F5C6C0; color:#B23B32; font-size:13px; border-radius:8px; padding:10px 14px; margin-bottom:14px; }

/* オペレーションメニュー（全画面共通・PHP化で追加） */
.cl-head{ display:flex; flex-direction:column; align-items:stretch; gap:8px; }
.cl-head .h1{ margin:0; }
/* 1段目：オペレーションメニュー（右寄せ） */
.cl-ops{ display:flex; gap:8px; flex-wrap:wrap; }
.cl-ops-row{ justify-content:flex-end; }
/* 2段目：タイトル（左）＋グループ選択（右・同じ高さ） */
.cl-head-main{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; border-bottom:1px solid var(--line,#E3E8F0); }
.cl-head-main .h1{ padding:6px 0 9px 10px; border-left:4px solid var(--blue,#2D6CDF); line-height:1.3; }
.cl-head-group{ display:flex; align-items:center; gap:6px; margin-left:auto; }
.cl-op-btn{ display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:600; color:var(--navy,#1B2A4A); background:#fff; border:1.5px solid var(--line,#E3E8F0); border-radius:8px; padding:7px 14px; text-decoration:none; white-space:nowrap; transition:border-color .15s, background .15s; }
.cl-op-btn:hover{ border-color:#5A8DE0; background:#F7FAFF; }
.cl-op-btn::before{ content:'›'; font-size:14px; color:#9AA8BF; font-weight:700; }

/* 営業グループ等のタブ（営業リスト・フィードバック状況など共通） */
.cl-head-group .cl-tab-group-select{ margin:0; }
.cl-head-group .cl-tab-glabel{ margin:0; }
.cl-tabs{ display:flex; gap:4px; flex-wrap:wrap; align-items:center; border-bottom:2px solid var(--line,#E3E8F0); margin:6px 0 16px; }
.cl-tab{ font-size:13px; color:var(--gray,#5A6B85); text-decoration:none; padding:9px 16px; border-radius:8px 8px 0 0; position:relative; top:2px; border:2px solid transparent; border-bottom:none; white-space:nowrap; }
.cl-tab:hover{ background:#F4F6FA; color:var(--navy,#1B2A4A); }
.cl-tab.on{ color:#2D6CDF; font-weight:700; background:#fff; border-color:var(--line,#E3E8F0); border-bottom:2px solid #fff; }
.cl-tab-group-select{ font-size:13px; color:var(--navy,#1B2A4A); padding:7px 30px 7px 12px; border-radius:8px; border:2px solid var(--line,#E3E8F0); background:#fff; margin:0 0 2px 6px; max-width:280px; cursor:pointer; }
.cl-tab-group-select.on{ color:#2D6CDF; font-weight:700; border-color:#2D6CDF; }
.cl-tab-glabel{ font-size:13px; font-weight:700; color:var(--navy,#1B2A4A); margin-right:2px; }

/* ===== 右下フロート型 AIアシスタント ===== */
.ai-fab-wrap{ position:fixed; right:24px; bottom:24px; z-index:900; }
.ai-fab{ display:inline-flex; align-items:center; gap:8px; background:#205888; color:#fff; border:none; border-radius:28px; padding:13px 20px; font-size:14px; font-weight:700; cursor:pointer; box-shadow:0 6px 18px rgba(0,0,0,.28); transition:transform .12s, box-shadow .15s; }
.ai-fab:hover{ transform:translateY(-2px); box-shadow:0 8px 22px rgba(0,0,0,.34); }
.ai-fab-ico{ font-size:18px; line-height:1; }

.ai-float{ width:460px; max-width:calc(100vw - 32px); height:560px; max-height:calc(100vh - 48px); background:#fff; border-radius:14px; box-shadow:0 12px 36px rgba(0,0,0,.32); display:flex; flex-direction:column; overflow:hidden; }
.ai-float-hd{ background:#205888; color:#fff; padding:13px 16px; display:flex; align-items:center; justify-content:space-between; }
.ai-float-ttl{ font-size:15px; font-weight:700; }
.ai-float-x{ background:none; border:none; color:#fff; font-size:22px; line-height:1; cursor:pointer; padding:0 4px; }
.ai-float-x:hover{ opacity:.8; }
.ai-float-bd{ flex:1; overflow-y:auto; padding:16px 14px; display:flex; flex-direction:column; background:#F7F9FC; }
.ai-float-bd .ai-chat-empty{ font-size:14px; line-height:1.7; padding:8px 4px; }
.ai-float-bd .ai-bub{ font-size:14.5px; line-height:1.7; padding:11px 14px; margin-bottom:11px; max-width:86%; word-break:break-word; }
.ai-float-bd .ai-bub-q{ align-self:flex-end; background:#205888; color:#fff; border-radius:14px 14px 4px 14px; }
.ai-float-bd .ai-bub-a{ align-self:flex-start; background:#fff; color:#1B2A41; border:1px solid #E3E8EF; border-radius:14px 14px 14px 4px; }
.ai-float-bd .ai-bub-thinking{ color:#7A8AA0; font-style:italic; }
.ai-float-ft{ display:flex; gap:9px; align-items:flex-end; padding:12px 14px; border-top:1px solid #EEF1F6; background:#fff; }
.ai-float-input{ flex:1; background:#F4F6FA; border:1px solid #E3E8EF; border-radius:10px; padding:11px 13px; font-size:14.5px; line-height:1.5; color:#1B2A41; resize:none; font-family:inherit; max-height:140px; }
.ai-float-input:focus{ outline:none; border-color:#5A8DE0; background:#fff; }
.ai-float-send{ flex:0 0 auto; background:#2D6CDF; color:#fff; border:none; border-radius:10px; padding:11px 18px; font-size:14px; font-weight:700; cursor:pointer; }
.ai-float-send:hover{ background:#225BC4; }
.ai-float-send:disabled{ background:#A9B6CC; cursor:not-allowed; }

@media (max-width:560px){
  .ai-fab-wrap{ right:16px; bottom:16px; }
  .ai-float{ width:calc(100vw - 24px); height:calc(100vh - 80px); }
}

/* ===== タスク10：ログアウトをサイドナビ最下部に ===== */
.side .side-nav{ display:flex; flex-direction:column; }
.nav-logout{ margin-top:auto; border-top:1px solid #DCE4EF; color:#1A1A1A; }
.nav-logout:hover{ background:#DCE6F4; color:#1A1A1A; }
@media (max-width:900px){ .nav-logout{ margin-top:0; } }
.m-nav-logout{ border-top:1px solid #2A3B57; margin-top:6px; }

/* 配信停止マーク（営業先名の横に表示） */
.unsub-chip{ display:inline-block; font-size:10.5px; font-weight:700; color:#B23B3B; background:#FBE9E9; border:1px solid #F0C9C9; border-radius:20px; padding:2px 8px; margin-left:6px; vertical-align:middle; }

/* ===== メールプレビューのモーダル ===== */
.mailprev-overlay{ position:fixed; inset:0; background:rgba(20,30,50,.5); display:flex; align-items:center; justify-content:center; z-index:1000; padding:20px; }
.mailprev-overlay[hidden]{ display:none; }
.mailprev{ width:100%; max-width:680px; max-height:88vh; display:flex; flex-direction:column; background:#fff; border-radius:14px; box-shadow:0 20px 60px rgba(20,40,80,.30); overflow:hidden; }
.mailprev-hd{ display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid var(--line); }
.mailprev-ttl{ font-size:16px; font-weight:700; color:var(--navy); }
.mailprev-x{ border:none; background:transparent; font-size:22px; line-height:1; color:var(--gray-lt); cursor:pointer; padding:0 4px; }
.mailprev-x:hover{ color:var(--navy); }
.mailprev-note{ font-size:12px; color:var(--gray); background:#F0F8F8; border-bottom:1px solid var(--line); padding:10px 20px; }
.mailprev-body{ padding:18px 20px; overflow:auto; }
.mailprev-field{ margin-bottom:16px; }
.mailprev-label{ font-size:12px; font-weight:700; color:var(--gray); margin-bottom:6px; }
.mailprev-subject{ font-size:15px; font-weight:700; color:var(--navy); padding:10px 12px; background:#F7F9FC; border:1px solid var(--line); border-radius:8px; word-break:break-word; }
.mailprev-text{ font-size:13.5px; line-height:1.7; color:var(--ink,#26324A); padding:14px 14px; background:#F7F9FC; border:1px solid var(--line); border-radius:8px; white-space:pre-wrap; word-break:break-word; }
.mailprev-ft{ padding:12px 20px; border-top:1px solid var(--line); display:flex; justify-content:flex-end; }

/* フォーム営業不可チップ（営業先名の横／配信停止チップと同じ位置・形式） */
.noform-chip{ display:inline-block; font-size:10.5px; font-weight:700; color:#B26A00; background:#FBF1E0; border:1px solid #EAD3AE; border-radius:20px; padding:2px 8px; margin-left:6px; vertical-align:middle; }

/* 数値列の右寄せ（直近のアクション／アクション状況の対象件数・フィードバック件数など） */
table th.num-col, table td.num-col{ text-align:right; }
