/* 既存画面から読み取った値（layout-v2 の寸法・色）をもとに再現 */
:root {
  --side-w: 250px;
  --head-h: 60px;
  --border: #E7E7E7;
  --page-bg: #F8F9FB;
  --text: #1F1F1F;
  --text-sub: #9A9EAD;
  --active-bg: #E6F4FF;
  --active: #1677FF;
  --main: #08bf5a;
  --main-weak: #f4fbf2;
  --main-strong: #23814d;
  --link: #5799DB;
  --link-weak: #edf4fb;
  --error: #f44336;
  --error-weak: #fdebe9;
  --warn: #fea600;
  --warn-weak: #fef5e4;
  --gray: #888888;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: #fff;
  color: #333;
  font-family: "Lucida Grande", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Meiryo, sans-serif;
  font-size: 14px;
}
button { font-family: inherit; cursor: pointer; }
a { color: var(--link); }

/* ===== 提案用のバー（L Messageの画面の外） ===== */
.pbar {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; gap: 20px;
  height: 56px; padding: 0 20px;
  background: #222; color: #fff;
  font-family: "Noto Sans JP", sans-serif;
}
.pbar__title { font-size: 14px; font-weight: 600; white-space: nowrap; }
.pbar__issues { display: flex; gap: 6px; flex: 1; }
.pbar__issue {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid #555; background: transparent; color: #ddd; font-size: 13px;
}
.pbar__issue.is-active { background: var(--main); border-color: var(--main); color: #fff; font-weight: 700; }
.pbar__check { font-size: 12px; color: #ccc; display: flex; align-items: center; gap: 6px; white-space: nowrap; }

/* 説明のバー：今の課題と提案をカードで並べ、見ている方を強調する */
.pdesc {
  display: grid; grid-template-columns: 250px 1fr 1fr 250px; gap: 14px; align-items: stretch;
  padding: 12px 20px; background: #fffdf5; border-bottom: 1px solid #f0e6c8;
  font-family: "Noto Sans JP", sans-serif; font-size: 13px; line-height: 20px; color: #222;
}
.pdesc__no { display: inline-block; font-size: 12px; font-weight: 700; color: #1677ff; background: #e6f4ff; padding: 0 8px; border-radius: 10px; }
.pdesc__no.is-new { color: #fff; background: var(--warn); }
.pdesc__name { font-size: 17px; font-weight: 700; line-height: 26px; margin-top: 6px; }
.pdesc__free { grid-column: span 2; align-self: center; }
.pdesc__free a { display: block; margin-top: 4px; cursor: pointer; }
.pcard { background: #fff; border: 1px solid #eadfbf; border-top: 4px solid #d9c9a0; border-radius: 6px; padding: 8px 12px; opacity: .5; transition: opacity .15s; }
.pcard:hover { opacity: .85; }
.pcard.is-on { opacity: 1; border-color: var(--error); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.pcard.is-after.is-on { border-color: var(--main); }
.pcard__label { font-size: 12px; font-weight: 700; color: var(--error); margin-bottom: 2px; }
.pcard.is-after .pcard__label { color: var(--main-strong); }
.mode { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.mode__now { font-size: 12px; color: #555; }
.mode__now b { color: #222; }
.mode__btns { display: flex; gap: 6px; }
.mode__btn { flex: 1; height: 44px; border-radius: 6px; border: 2px solid #ccc; background: #fff; color: #555; font-size: 14px; font-weight: 700; }
.mode__btn.is-on { background: #444; border-color: #444; color: #fff; }
.mode__btn.is-after.is-on { background: var(--main); border-color: var(--main); }
.mode__btn.is-call { border-color: var(--main); color: var(--main-strong); animation: call 1.6s ease-in-out infinite; }
@keyframes call { 50% { box-shadow: 0 0 0 5px rgba(8,191,90,.25); } }

/* 修正後で変えた箇所の強調 */
.show-changes .chg.is-cur { outline: 2px dashed var(--warn); outline-offset: 2px; position: relative; }
.show-changes .chg.pop.is-cur { position: absolute; }  /* 配信数のポップアップは浮かせたまま強調する */
.show-changes .chg.is-cur::after {
  content: "改善" attr(data-no);
  position: absolute; top: -10px; right: -6px; z-index: 5;
  background: var(--warn); color: #fff; font-size: 11px; font-weight: 700;
  padding: 1px 6px; border-radius: 8px; font-family: "Noto Sans JP", sans-serif;
}

/* ===== L Message の枠 ===== */
.lme { display: flex; min-width: 1280px; min-height: calc(100vh - 56px); }
.side {
  width: var(--side-w); flex-shrink: 0; background: #fff; border-right: 1px solid var(--border);
  font-family: "Noto Sans JP", sans-serif; position: relative;
}
.side__logo { cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; height: 60px; }
.side__logo b { font-size: 22px; font-weight: 700; color: var(--main); letter-spacing: .5px; font-family: "Lato", "Noto Sans JP", sans-serif; }
.side__menu { padding: 0 8px 48px; display: flex; flex-direction: column; gap: 4px; }
.side__label { font-size: 12px; color: var(--text-sub); margin: 10px 0; padding-left: 10px; }
.mi {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px; border-radius: 4px; font-size: 14px; color: var(--text); text-decoration: none; cursor: pointer;
}
.mi:hover { background: #F5F5F5; }
.mi.is-active { background: var(--active-bg); color: var(--active); }
.mi__inner { display: flex; align-items: center; gap: 12px; }
.mi__icon { width: 16px; font-size: 16px; text-align: center; }
.mi__arrow { color: var(--text-sub); font-size: 14px; }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9999px;
  background: #FF4D4F; color: #fff; font-size: 10px; line-height: 1;
}
.mi-wrap { position: relative; }
.sub {
  display: none; position: absolute; left: calc(100% - 6px); top: 0; z-index: 20; width: max-content;
  background: #fff; border-radius: 8px; padding: 4px; box-shadow: 0 5px 5px rgba(0,0,0,.2);
}
.mi-wrap:hover > .sub, .mi-wrap.is-open > .sub { display: block; }
.sub a { display: flex; align-items: center; height: 32px; padding: 0 8px; border-radius: 4px; font-size: 14px; color: var(--text); text-decoration: none; cursor: pointer; }
.sub a:hover { background: #F5F5F5; }
.side__toggle {
  position: absolute; right: -18px; bottom: 35px; width: 35px; height: 35px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,.1); color: #666;
}

.right { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.head {
  height: var(--head-h); flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; background: #fff; border-bottom: 1px solid var(--border);
  font-family: "Noto Sans JP", sans-serif; position: relative;
}
.head__left { display: flex; align-items: center; gap: 12px; }
.acct {
  display: flex; align-items: center; gap: 10px; width: 280px; height: 36px; padding: 0 10px;
  border: 1px solid #d9d9d9; border-radius: 4px; font-size: 12px; color: var(--text);
}
.acct__ava { width: 22px; height: 22px; border-radius: 50%; background: #e8efe2; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--main-strong); }
.acct i:last-child { margin-left: auto; font-size: 12px; }
.qr { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: #555; }
.head__right { display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.upg { border: 1px solid var(--active); color: var(--active); background: #fff; border-radius: 4px; padding: 4px 10px; font-size: 14px; font-weight: 500; }
.hicon { display: flex; flex-direction: column; align-items: center; font-size: 10px; color: var(--text); gap: 2px; background: none; border: 0; padding: 4px; border-radius: 4px; }
.hicon i { font-size: 17px; }
.hicon.is-open { background: #f0f0f0; }
.user {
  display: flex; align-items: center; gap: 10px; width: 210px; height: 40px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 4px; font-size: 12px; color: var(--text);
}
.user__ava { width: 24px; height: 24px; border-radius: 50%; background: #ddd; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.user i:last-child { margin-left: auto; }

.content { flex: 1; padding: 0 24px 40px; background: #fff; position: relative; }
.content.is-gray { background: var(--page-bg); padding-top: 14px; }

/* ===== 共通部品 ===== */
.h1 { font-size: 22px; font-weight: 700; color: #222; margin: 16px 0 14px; }
.h3 { font-size: 18px; font-weight: 700; color: #000; margin: 10px 0; }
.card { background: #fff; border-radius: 4px; padding: 16px; }
.card.is-line { border: 1px solid var(--border); }
.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px;
  border: 1px solid #d0d0d0; border-radius: 3px; background: #fff; color: #333; font-size: 12px; white-space: nowrap;
}
.btn.is-blue { background: #6ea3e3; border-color: #6ea3e3; color: #fff; font-weight: 700; }
.btn.is-green { background: var(--main); border-color: var(--main); color: #fff; font-weight: 700; }
.btn.is-red { background: #f05050; border-color: #f05050; color: #fff; font-weight: 700; }
.btn.is-red-line { color: #f05050; border-color: #f05050; }
.btn.is-gray { background: #7f8c8d; border-color: #7f8c8d; color: #fff; font-weight: 700; }
.btn.is-ghost-green { color: var(--main); border-color: var(--main); }
.btn.is-big { height: 36px; font-size: 14px; padding: 0 18px; }
.btn:disabled { opacity: .45; cursor: default; }
.muted { color: var(--gray); }
.small { font-size: 12px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { background: #f2f2f2; font-size: 13px; font-weight: 700; text-align: left; padding: 10px 12px; color: #333; }
.tbl td { font-size: 13px; padding: 10px 12px; border-bottom: 1px solid #eee; }
.tbl.is-green th { background: var(--main); color: #fff; }
.empty { text-align: center; color: #666; font-size: 13px; padding: 12px; border-bottom: 1px solid #eee; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.pill.is-ok { background: var(--main-weak); color: var(--main-strong); }
.pill.is-warn { background: var(--warn-weak); color: #b67700; }
.pill.is-err { background: var(--error-weak); color: #a10000; }
.pill.is-gray { background: #f0f0f0; color: #666; }

/* ===== ホーム ===== */
.notice { background: #f4f4f4; padding: 16px; max-width: 1180px; }
.notice table { width: 100%; border-collapse: collapse; }
.notice th { background: #7f8c8d; color: #fff; font-size: 13px; padding: 7px 10px; text-align: left; }
.notice td { font-size: 12px; font-weight: 700; padding: 5px 10px; border-bottom: 1px solid #ddd; background: #fff; }
.notice .new { background: #f9b52b; color: #fff; font-size: 10px; padding: 1px 6px; margin-right: 4px; }
.home-tbl { max-width: 1180px; }
.home-tbl th { background: var(--main); color: #fff; font-size: 13px; padding: 10px 10px 10px 30px; text-align: left; }
.home-tbl th:first-child { border-radius: 5px 0 0 5px; }
.home-tbl th:last-child { border-radius: 0 5px 5px 0; }
.home-tbl td { font-size: 13px; font-weight: 700; color: #51595c; padding: 7px 8px 7px 30px; border-bottom: 1px solid #eee; }
.home-tbl td a { color: var(--link); }
.status-box { width: 500px; height: 200px; background: #f4f4f4; padding: 16px; }
.status-row { display: flex; align-items: center; gap: 10px; background: #fff; padding: 8px; }
.status-row span:first-child { width: 320px; background: #5bc0de; color: #fff; font-size: 11px; font-weight: 700; text-align: center; padding: 3px; border-radius: 3px; }
.todo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 1180px; }
.todo__card { border: 1px solid #e0e0e0; border-radius: 6px; padding: 14px 16px; background: #fff; cursor: pointer; text-align: left; }
.todo__card:hover { border-color: var(--main); }
.todo__label { font-size: 12px; color: var(--gray); display: flex; align-items: center; gap: 6px; }
.todo__num { font-size: 24px; font-weight: 700; color: #222; margin: 6px 0 2px; }
.todo__num small { font-size: 13px; font-weight: 400; }
.todo__card.is-err .todo__num { color: var(--error); }
.todo__go { font-size: 12px; color: var(--link); }
.setup { max-width: 1180px; border: 1px solid #e0e0e0; border-radius: 6px; padding: 14px 16px; margin-top: 12px; }
.setup__bar { height: 6px; background: #f0f0f0; border-radius: 3px; margin: 8px 0 12px; }
.setup__bar span { display: block; height: 100%; background: var(--main); border-radius: 3px; }
.setup__steps { display: flex; gap: 10px; }
.setup__step { flex: 1; font-size: 13px; padding: 10px 12px; border-radius: 4px; background: #f8f8f8; display: flex; align-items: center; gap: 8px; }
.setup__step.is-done { color: var(--gray); }
.setup__step.is-done i { color: var(--main); }
.setup__step.is-next { background: var(--main-weak); border: 1px solid var(--main); font-weight: 700; }
.notice-line { max-width: 1180px; display: flex; align-items: center; gap: 10px; font-size: 13px; background: #f8f8f8; padding: 8px 12px; border-radius: 4px; margin-top: 12px; }

/* ===== ステップ配信 ===== */
.title-card { background: #fff; border-radius: 4px; padding: 14px 20px; margin-bottom: 14px; max-width: 1140px; }
.title-card h2 { font-size: 17px; font-weight: 700; margin: 0 0 6px; padding-bottom: 6px; border-bottom: 1px solid #ddd; color: #222; }
.title-card p { margin: 0; font-size: 12px; color: #333; }
.split { display: flex; gap: 14px; max-width: 1140px; }
.split__left { width: 250px; background: #fff; border-radius: 4px; padding: 14px 10px; min-height: 520px; }
.split__main { flex: 1; background: #fff; border-radius: 4px; padding: 14px; min-height: 520px; }
.folder { font-size: 12px; padding: 8px 14px; border-radius: 3px; background: #fff; margin-top: 4px; cursor: pointer; }
.split__left .folder:first-of-type { margin-top: 12px; }
.folder.is-active { background: #f5f5f5; }
.tbl-head { display: flex; background: #f5f5f5; font-size: 12px; padding: 8px 12px; margin-top: 14px; }
.tbl-head span { flex: 1; }
.tbl-head span:first-child { flex: 2; }
.tmpl-empty { text-align: center; padding: 34px 20px 10px; }
.tmpl-empty h3 { font-size: 16px; margin: 10px 0 4px; color: #222; }
.tmpl-empty p { margin: 0 0 20px; color: var(--gray); font-size: 14px; line-height: 22px; }
.tmpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: left; }
.tmpl { border: 1px solid #e0e0e0; border-radius: 6px; padding: 14px; background: #fff; cursor: pointer; }
.tmpl:hover { border-color: var(--main); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.tmpl__tag { font-size: 12px; color: var(--main-strong); background: var(--main-weak); padding: 1px 8px; border-radius: 10px; }
.tmpl__name { font-size: 14px; font-weight: 700; margin: 8px 0 6px; color: #222; }
.tmpl__flow { font-size: 12px; color: var(--gray); line-height: 18px; }

/* ===== 配信エラー ===== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid #e0e0e0; }
.tabs span { padding: 8px 10px; font-size: 13px; color: #333; }
.tabs span.is-active { color: var(--main); border-bottom: 2px solid var(--main); font-weight: 700; }
.err-wrap { display: flex; border: 1px solid #e0e0e0; border-top: 0; min-height: 470px; }
.err-cats { width: 130px; border-right: 1px solid #e0e0e0; font-size: 12px; }
.err-cats div { padding: 9px 8px; }
.err-cats div.is-active { background: #f5f5f5; font-weight: 700; }
.err-cats .badge { margin-left: 6px; }
.err-main { flex: 1; display: flex; flex-direction: column; }
.err-main .tbl th { background: #f5f5f5; }
.err-main .tbl td:nth-child(2), .err-main .tbl td:nth-child(3), .err-main .tbl td:last-child { white-space: nowrap; }
.err-foot { margin-top: auto; border-top: 1px solid #e0e0e0; padding: 8px 10px; display: flex; gap: 12px; align-items: center; font-size: 12px; }
.fix { font-size: 12px; line-height: 18px; }
.fix b { display: block; color: #222; }

/* ===== 友だちリスト・詳細 ===== */
.search { display: flex; gap: 8px; align-items: center; }
.search__in { width: 160px; height: 30px; border: 1px solid #ddd; border-radius: 3px; font-size: 11px; padding: 0 8px; color: #aaa; display: flex; align-items: center; justify-content: space-between; }
.result-bar { display: flex; justify-content: space-between; align-items: center; background: #f4f4f4; padding: 10px 14px; margin: 8px 0 12px; font-size: 13px; }
.seg { display: inline-flex; border: 1px solid #d0d0d0; border-radius: 4px; overflow: hidden; }
.seg span { padding: 6px 14px; font-size: 13px; border-left: 1px solid #d0d0d0; background: #fff; }
.seg span:first-child { border-left: 0; }
.seg span.is-active { background: var(--main-weak); color: var(--main-strong); font-weight: 700; }
.ava { width: 22px; height: 22px; border-radius: 50%; background: #c9d3dc; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; vertical-align: middle; margin-right: 6px; }
.fd { max-width: 660px; padding-top: 16px; }
.fd__top { display: flex; align-items: center; justify-content: space-between; }
.fd__title { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; color: #222; }
.fd__title i { font-size: 13px; color: var(--link); }
.fd__btns { display: flex; gap: 6px; position: relative; }
.fd__who { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.fd__who .ava { width: 32px; height: 32px; font-size: 14px; }
.fd__tabs { display: flex; border-bottom: 1px solid #eee; font-size: 12px; }
.fd__tabs span { padding: 9px 12px; white-space: nowrap; }
.fd__tabs span.is-active { background: #eef5ff; color: var(--active); border-bottom: 2px solid var(--active); }
.fd .card { box-shadow: 0 1px 4px rgba(0,0,0,.06); margin-top: 12px; }
.fd .card h4 { margin: 0 0 10px; font-size: 15px; color: #222; }
.kv { width: 100%; border-collapse: collapse; font-size: 11px; border: 1px solid #e5e5e5; }
.kv td { padding: 8px; border-bottom: 1px solid #e5e5e5; }
.kv td:first-child { width: 120px; background: #fafafa; border-right: 1px solid #e5e5e5; }
.menu-pop { position: absolute; right: 0; top: 36px; background: #fff; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.15); padding: 4px; z-index: 30; width: 220px; }
.menu-pop button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 9px 10px; font-size: 13px; border-radius: 4px; text-align: left; }
.menu-pop button:hover { background: #f5f5f5; }
.menu-pop .is-danger { color: var(--error); }
.menu-pop hr { border: 0; border-top: 1px solid #eee; margin: 4px 0; }

/* これからの予定 */
.tl { position: relative; padding-left: 18px; }
.tl::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: #e0e0e0; }
.tl__item { position: relative; padding: 0 0 14px; }
.tl__item::before { content: ""; position: absolute; left: -17px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--main); }
.tl__item.is-stop::before { background: #b4b4b4; }
.tl__item.is-err::before { background: var(--error); }
.tl__when { font-size: 12px; color: var(--gray); }
.tl__what { font-size: 14px; color: #222; font-weight: 700; margin: 2px 0; }
.tl__why { font-size: 12px; color: #555; }
.tl__acts { display: flex; gap: 6px; margin-top: 6px; }
.tl__acts .btn { height: 26px; font-size: 12px; padding: 0 10px; }

/* ===== 一斉配信の作成 ===== */
.bc { padding-top: 6px; }
.bc__top { display: flex; justify-content: space-between; align-items: center; }
.bc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: #f8f8f8; padding: 10px; max-width: 1220px; }
.bc__grid .card { padding: 14px; }
.lbl { font-size: 12px; font-weight: 700; color: #333; margin-bottom: 8px; }
.inp { height: 34px; border: 1px solid #ddd; border-radius: 3px; display: flex; align-items: center; padding: 0 10px; font-size: 12px; color: #333; }
.radio { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; margin-right: 10px; }
.radio i { color: #ccc; }
.radio.is-on { color: var(--main); font-weight: 700; }
.radio.is-on i { color: var(--main); }
.hint { font-size: 11px; background: #f0f0f0; padding: 6px 8px; margin: 10px 0; color: #444; }
.target-box { background: #f0f0f0; min-height: 70px; padding: 10px; font-size: 13px; margin-top: 8px; }
.quota { border: 1px solid var(--main); background: var(--main-weak); border-radius: 6px; padding: 12px 14px; margin-top: 10px; font-size: 13px; }
.quota__row { display: flex; justify-content: space-between; margin: 3px 0; }
.quota__row b { font-size: 15px; }
.qbar { height: 8px; background: #e2e2e2; border-radius: 4px; overflow: hidden; display: flex; margin: 8px 0 4px; }
.qbar span:first-child { background: #9fdcb8; }
.qbar span:nth-child(2) { background: var(--main); }
.pop {
  position: absolute; top: 52px; right: 300px; z-index: 40; width: 300px;
  background: #fff; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.16); padding: 12px; font-family: "Noto Sans JP", sans-serif;
}
.pop__head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.pop__head .btn { height: 22px; font-size: 11px; padding: 0 8px; }
.pop__two { display: flex; gap: 8px; }
.pop__box { flex: 1; border: 1px solid #e5e5e5; border-radius: 4px; padding: 8px; font-size: 11px; }
.pop__box b { font-size: 15px; }
.pop__box small { display: block; color: var(--gray); font-size: 10px; margin-top: 4px; }
.pop__big { font-size: 28px; font-weight: 700; color: #222; }
.pop__big small { font-size: 13px; font-weight: 400; color: #555; }
.pop details { font-size: 12px; margin-top: 8px; color: #555; }
.pop details summary { cursor: pointer; color: var(--link); }

/* ===== 1:1チャット ===== */
.chat { display: flex; gap: 10px; padding: 10px 0; height: calc(100vh - 56px - 60px - 130px); min-height: 520px; }
.chat__list { width: 270px; background: #fff; border: 1px solid #eee; display: flex; flex-direction: column; }
.chat__filter { margin: 8px; display: flex; gap: 6px; }
.chat__filter span { flex: 1; font-size: 11px; background: #f2f2f2; padding: 6px 8px; border-radius: 3px; }
.chat__search { margin: 0 8px 8px; font-size: 11px; color: #aaa; background: #f2f2f2; border-radius: 3px; padding: 6px 10px; }
.chat__friend { display: flex; gap: 8px; padding: 9px 10px; font-size: 12px; align-items: center; }
.chat__friend.is-active { background: #f2f2f2; }
.chat__friend .ava { width: 34px; height: 34px; font-size: 14px; }
.chat__friend small { display: block; color: #888; font-size: 11px; }
.chat__dot { margin-left: auto; width: 10px; height: 10px; border-radius: 50%; background: var(--error); }
.chat__sender { margin-top: auto; border-top: 1px solid #eee; padding: 8px 10px; font-size: 12px; }
.chat__main { flex: 1; background: #fff; border: 1px solid #eee; display: flex; flex-direction: column; min-width: 0; }
.chat__head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #eee; font-size: 13px; }
.chat__head a { font-weight: 700; }
.chat__msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 300px; font-size: 12px; line-height: 18px; }
.msg__body { border: 1px solid #e5e5e5; border-radius: 4px; padding: 8px 10px; background: #fff; white-space: pre-wrap; }
.msg.is-in .msg__body { background: #f2f2f2; border-color: #f2f2f2; }
.msg.is-out { align-self: flex-end; }
.msg__time { font-size: 10px; color: #888; margin-top: 2px; }
.msg.is-pending .msg__body { border-style: dashed; color: #888; }
.chat__input { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid #eee; }
.chat__input input { flex: 1; height: 30px; border: 1px solid #ddd; border-radius: 15px; padding: 0 12px; font-size: 12px; }
.chat__to { font-size: 12px; color: #555; padding: 6px 12px 0; display: flex; align-items: center; gap: 6px; }
.chat__to b { color: #222; background: var(--link-weak); padding: 1px 8px; border-radius: 10px; }
.circle-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #ddd; background: #fff; display: flex; align-items: center; justify-content: center; color: #666; }
.circle-btn.is-green { background: var(--main); border-color: var(--main); color: #fff; }
.chat__info { width: 170px; background: #fff; border: 1px solid #eee; padding: 10px; font-size: 11px; }
.chat__info dt { color: #555; margin-top: 10px; }
.chat__info dd { margin: 3px 0 0; font-size: 12px; color: #222; }

/* ===== モーダル・トースト ===== */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 2000; display: flex; align-items: center; justify-content: center; }
.modal { background: #fff; border-radius: 6px; width: 520px; padding: 24px; position: relative; font-size: 14px; line-height: 22px; }
.modal h3 { margin: 0 0 12px; font-size: 16px; text-align: center; }
.modal__close { position: absolute; right: 14px; top: 10px; border: 0; background: none; font-size: 20px; color: #888; }
.modal__foot { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.modal .warnbox { background: var(--error-weak); color: #a10000; padding: 10px 12px; border-radius: 4px; font-size: 13px; }
.toast {
  position: fixed; left: 50%; top: 130px; transform: translateX(-50%); z-index: 3000;
  background: #222; color: #fff; padding: 10px 16px; border-radius: 6px; font-size: 13px;
  display: flex; align-items: center; gap: 14px; font-family: "Noto Sans JP", sans-serif;
}
.toast button { background: none; border: 0; color: #7fd8a6; font-weight: 700; font-size: 13px; }
.tutorial {
  position: fixed; right: 24px; bottom: 16px; background: #1fc7a0; color: #fff; border-radius: 6px;
  padding: 8px 14px; font-size: 11px; line-height: 16px; z-index: 50; font-family: "Noto Sans JP", sans-serif;
}
.tutorial b { font-size: 14px; display: block; }

/* ===== メニューから開く画面（pages.js） ===== */
[data-act] { cursor: pointer; }
.b, b.b { font-weight: 700; }
.u { text-decoration: underline; }
.center { text-align: center; }
.nw { white-space: nowrap; }
.cut { display: inline-block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.cut2 { white-space: pre-wrap; line-height: 20px; }
.op { font-size: 16px; color: #888; margin-left: 12px; }
.op:hover { color: #333; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }
.in { height: 34px; width: 100%; border: 1px solid #d9d9d9; border-radius: 3px; padding: 0 10px; font-size: 13px; font-family: inherit; background: #fff; color: #333; display: flex; align-items: center; }
textarea.in { height: auto; padding: 8px 10px; line-height: 20px; resize: vertical; display: block; }
.fl { display: flex; justify-content: space-between; align-items: flex-end; margin: 14px 0 6px; font-size: 13px; }
.cnt { font-size: 11px; color: var(--gray); }
.btn.is-sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn.is-blue-line { color: var(--link); border-color: var(--link); }
.btn.is-yellow { background: #f9b52b; border-color: #f9b52b; color: #fff; font-weight: 700; height: 26px; font-size: 11px; margin: 10px 0 0 14px; }
.btn.is-line { border-color: #333; }
.pill.is-yel { background: #f9b52b; color: #fff; border-radius: 2px; font-size: 10px; }
.tbl-row { display: flex; font-size: 13px; padding: 12px; border-bottom: 1px solid #eee; }
.tbl-row span { flex: 1; }
.tbl-row span:first-child { flex: 2; }

/* 一覧 */
.lb__bar { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.lb__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.h1.is-b { font-size: 18px; color: #555; margin: 14px 0 8px; }
.b-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.lb { display: flex; gap: 20px; }
.lb__main { flex: 1; min-width: 0; }
.lb__main .lb__bar { margin-top: 0; }
.fp-b { width: 290px; flex-shrink: 0; }
.fp-b__head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; color: #333; margin: 6px 0 10px; }
.fp-b__head i { margin-left: 12px; color: #555; font-size: 16px; }
.fp-b .folder { background: #fff; border: 1px solid #f0f0f0; font-weight: 700; padding: 10px 12px; }
.fp-b .folder.is-active { background: #f5f5f5; }
.tbl.is-green th { font-size: 12px; }
.w-title { display: flex; justify-content: space-between; align-items: center; font-size: 18px; font-weight: 700; color: #222; padding: 14px 0 12px; border-bottom: 1px solid #eee; }
.split.is-w { max-width: none; gap: 0; }
.split.is-w .split__left { border-right: 1px solid #eee; border-radius: 0; width: 230px; padding-left: 0; }
.split.is-w .split__main { padding-top: 0; }
.tg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #888; white-space: nowrap; }
.tg i { width: 30px; height: 16px; border-radius: 8px; background: #ccc; position: relative; }
.tg i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: left .15s; }
.tg.is-on { color: var(--main-strong); font-weight: 700; }
.tg.is-on i { background: var(--main); }
.tg.is-on i::after { left: 16px; }
.nodata { padding: 40px 0; color: #666; line-height: 22px; }
.nodata i { font-size: 40px; color: #ddd; }
.banner { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(90deg, #12c6c1, #23d68a); color: #fff; border-radius: 6px; padding: 12px 16px; font-size: 12px; margin-bottom: 14px; }
.banner u { color: #ffe86b; }
.banner .yel { color: #ffe86b; }
.banner .btn { width: 180px; justify-content: center; color: #12a8a3; font-weight: 700; font-size: 14px; border: 0; }

/* 作成ダイアログ */
.modal h3.is-left { text-align: left; }
.modal__foot.is-split { justify-content: space-between; }
.tagf { display: flex; align-items: center; gap: 24px; margin: 12px 0; font-size: 13px; }
.tagf .in { width: 200px; }
.tagbox { background: #f5f5f5; border-radius: 4px; padding: 12px; height: 230px; overflow-y: auto; }
.tagrow { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; }
.qr-t { display: flex; gap: 10px; font-size: 13px; }
.qr-t label { flex: 1; border: 1px solid #ddd; border-radius: 3px; padding: 6px 10px; }

/* テンプレート・ステップ配信の編集 */
.ed-top { display: flex; gap: 20px; align-items: flex-end; padding: 10px 0 14px; border-bottom: 1px solid #e5e5e5; }
.ed-top > div:first-child { min-width: 300px; }
.nf { flex: 1; max-width: 400px; }
.nf .fl { margin-top: 0; }
.h4 { font-size: 14px; font-weight: 700; margin: 16px 0 0; }
.tbl.is-msg td { vertical-align: top; }
.tbl.is-msg .ops { white-space: nowrap; }
.mtypes { display: flex; gap: 8px; margin-bottom: 14px; }
.mtypes button { width: 170px; height: 32px; border: 1px solid #ddd; background: #fff; font-size: 12px; font-weight: 700; color: #555; }
.mtypes button.is-on { background: var(--main); border-color: var(--main); color: #fff; }
.tabs.is-green span.is-active { color: var(--main); }
.mrow { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-top: 16px; }
.mrow span { margin-right: 20px; }
textarea.in.mta { height: 200px; max-width: 1240px; }
.mbtn { width: 100px; justify-content: center; margin-top: 10px; background: #eee; border-color: #eee; }
.mbtn.is-save { background: var(--main-weak); color: var(--main); border-color: var(--main-weak); }
.timing { display: flex; align-items: center; gap: 8px; font-size: 13px; background: #f8f8f8; padding: 10px 12px; margin-bottom: 12px; max-width: 1240px; }
.timing b { margin-right: 10px; }
.timing select.in { width: 90px; }

/* あいさつメッセージ */
.g-head { display: flex; align-items: center; gap: 10px; font-size: 16px; padding-top: 6px; }
.g-pill { background: var(--main); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 3px; }
.g-head a { font-size: 12px; }
.g-info, .g-url, .g-card { background: #fff; border-radius: 4px; padding: 14px; margin-top: 12px; max-width: 520px; font-size: 13px; }
.g-info i { color: var(--main); font-size: 20px; margin-right: 6px; }
.g-url { display: flex; gap: 20px; align-items: center; }
.g-url > div { flex: 1; }
.g-qr { font-size: 56px; }
.urlbox { display: flex; align-items: center; justify-content: space-between; background: #f5f5f5; border: 1px solid #e5e5e5; border-radius: 3px; padding: 6px 10px; font-size: 12px; margin: 6px 0; }
.g-tabs { max-width: 520px; margin-top: 14px; }
.g-tabs span.is-active { color: var(--active); border-color: var(--active); }
.g-sec { font-weight: 700; font-size: 13px; margin: 14px 0 0; }
.g-card { max-width: 520px; border: 1px solid #eee; }
.g-card__h { font-weight: 700; font-size: 12px; margin-bottom: 10px; }
.g-tools { background: #f5f5f5; padding: 8px; display: flex; gap: 6px; }
.g-test { display: flex; gap: 24px; margin-top: 14px; max-width: 720px; font-size: 13px; }

/* スマホのプレビュー */
.ph { width: 160px; flex-shrink: 0; border: 6px solid #222; border-radius: 20px; overflow: hidden; background: #8fa9d8; display: flex; flex-direction: column; position: relative; }
.ph__notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); background: #222; color: #fff; font-size: 8px; padding: 1px 12px 3px; border-radius: 0 0 8px 8px; z-index: 2; }
.ph__chat { height: 170px; padding: 18px 8px 6px; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; overflow: hidden; }
.ph__msg { align-self: flex-start; max-width: 92%; background: #fff; border-radius: 10px; padding: 5px 8px; font-size: 9px; line-height: 13px; white-space: pre-wrap; }
.ph__sys { align-self: center; background: rgba(0,0,0,.25); color: #fff; border-radius: 8px; padding: 2px 8px; font-size: 8px; }
.ph__bar { background: #fff; text-align: center; font-size: 9px; padding: 6px 4px; border-top: 1px solid #ddd; }
.ph.is-sm { width: 240px; }
.ph.is-sm .ph__chat { height: 300px; }
.ph.is-sm .ph__msg { font-size: 11px; line-height: 16px; }
.ph.is-form { width: 280px; background: #fff; }
.rv { position: relative; aspect-ratio: 2500 / 1686; }
.rv img { width: 100%; height: 100%; display: block; }
.rv__a { position: absolute; border: 1px solid rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; }
.rv__a.is-num { background: rgba(0,0,0,.35); color: #fff; font-size: 22px; font-weight: 700; }
.rv__a.is-sel { background: rgba(8,191,90,.75); }
.ph .rv__a[data-act]:hover { background: rgba(255,255,255,.3); }

/* リッチメニュー一覧 */
.rl__top { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 14px; }
.rl { display: flex; gap: 14px; }
.rl__fold { width: 230px; background: #fff; border-radius: 6px; padding: 14px; min-height: 560px; position: relative; }
.rl__fold .folder { display: flex; justify-content: space-between; padding: 10px 12px; }
.rl__foot { position: absolute; left: 14px; right: 14px; bottom: 14px; text-align: center; font-size: 12px; background: #f5f5f5; padding: 8px; border-radius: 4px; }
.rl__main { flex: 1; background: #fff; border-radius: 6px; padding: 14px; display: flex; flex-direction: column; }
.rl__bottom { margin-top: auto; padding-top: 14px; display: flex; gap: 8px; }
.tbl.is-rich th { background: #f5f5f5; font-size: 12px; }
.tbl.is-rich td { vertical-align: middle; }
.tbl.is-rich td a.b { color: var(--link); }
.vline { border-left: 1px solid #eee; border-right: 1px solid #eee; }
.rthumb { width: 96px; margin-top: 6px; }

/* リッチメニュー編集 */
.re-top { display: flex; justify-content: space-between; align-items: flex-end; background: #fff; border-radius: 6px; padding: 16px 20px; margin-bottom: 14px; }
.re-top__nf { display: flex; gap: 8px; width: 640px; }
.re { display: flex; gap: 14px; }
.re__steps { width: 190px; white-space: nowrap; flex-shrink: 0; background: #fff; border-radius: 6px; padding: 20px 18px; align-self: stretch; }
.re__step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #aaa; }
.re__step span { width: 18px; height: 18px; border-radius: 50%; background: #aaa; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.re__step.is-on { color: var(--main); }
.re__step.is-on span { background: var(--main); }
.re__line { width: 1px; height: 16px; background: #ccc; margin: 4px 0 4px 9px; }
.re__main { flex: 1; background: #fff; border-radius: 6px; padding: 16px; display: flex; flex-direction: column; min-height: 560px; }
.re__h { background: #f5f5f5; font-size: 13px; font-weight: 700; padding: 8px 12px; }
.re__body { flex: 1; padding: 16px 0; }
.re__row { display: flex; gap: 20px; align-items: flex-start; }
.re__lbl { font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.re__img { width: 140px; margin-bottom: 8px; }
.re__pv { width: 200px; background: #f5f5f5; padding: 8px; flex-shrink: 0; }
.hintbox { position: relative; border: 1px solid var(--main); border-radius: 6px; padding: 22px 16px 14px; margin-top: 30px; font-size: 11px; width: 330px; }
.hintbox__tag { position: absolute; top: -11px; left: 6px; background: var(--main); color: #fff; font-weight: 700; padding: 2px 12px; border-radius: 8px 8px 0 0; }
.hintbox__sizes { display: flex; justify-content: space-around; font-weight: 700; margin-top: 10px; font-size: 12px; }
.lays { display: grid; grid-template-columns: repeat(3, 104px); gap: 8px; }
.lay { background: #f5f5f5; padding: 8px; border: 2px solid transparent; border-radius: 4px; position: relative; }
.lay.is-on { border-color: var(--main); }
.lay.is-on::after { content: "✓"; position: absolute; right: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--main); color: #fff; font-size: 10px; text-align: center; line-height: 16px; }
.lay__box { position: relative; height: 56px; background: #fff; border: 1px solid #999; }
.lay__box span { position: absolute; border: 1px solid #999; }
.lay__box.is-manual { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 700; }
.area { border: 1px solid #ddd; border-radius: 4px; margin-top: 10px; width: 560px; }
.area__head { display: flex; justify-content: space-between; background: #f5f5f5; padding: 8px 12px; font-size: 12px; font-weight: 700; }
.area__tabs { display: flex; align-items: center; gap: 4px; font-size: 11px; padding: 6px 8px 0; border-bottom: 1px solid #eee; }
.area__tabs span { padding: 6px 8px; color: #555; white-space: nowrap; }
.area__tabs span.is-active { color: var(--main); border-bottom: 2px solid var(--main); font-weight: 700; }
.area__tabs .btn { margin-left: auto; margin-bottom: 4px; }
.acts { display: flex; gap: 6px; padding: 10px 8px; background: #f8f8f8; }
.act { flex: 1; background: #fff; border: 1px solid #ddd; border-radius: 4px; text-align: center; font-size: 9px; line-height: 12px; padding: 8px 2px; }
.act i { display: block; font-size: 16px; margin-bottom: 6px; color: #333; }
.act.is-on { border-color: var(--main); background: var(--main-weak); }
.area__body { padding: 10px; }
.area__sum { margin: 0 10px 10px; border: 1px solid #ddd; border-radius: 3px; padding: 6px 10px; font-size: 11px; }
.area__sumrow { display: flex; justify-content: space-between; gap: 10px; }
.re__set { display: flex; flex-direction: column; gap: 20px; }
.re__opt { border-left: 4px solid var(--main); padding-left: 10px; font-size: 12px; }
.radio2 { margin-right: 14px; font-size: 12px; }
.tip { background: var(--main-weak); color: var(--main-strong); padding: 8px 10px; border-radius: 4px; font-size: 12px; }
.re__foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eee; padding-top: 12px; gap: 10px; }
.re__next { background: #5b9bd5; border-color: #5b9bd5; color: #fff; width: 130px; justify-content: center; font-weight: 700; }
.imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.imgs > div { border: 2px solid transparent; }
.imgs > div:hover { border-color: var(--main); }

/* 自動応答の作成 */
.ar { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 60px; max-width: 1240px; }
.sec-h { border-left: 4px solid var(--main); padding-left: 10px; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.ar__row { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.ar__box { background: #f5f5f5; padding: 10px; font-size: 12px; margin-top: 10px; line-height: 22px; }
.ar__kv { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; font-size: 13px; }
.ar__kv > span:first-child { width: 100px; flex-shrink: 0; background: #eee; text-align: center; padding: 6px; font-size: 12px; font-weight: 700; }
.ar__chk { margin-left: 114px; }
.ar__sum { margin: 10px 0 0 14px; font-size: 13px; background: #f8f8f8; padding: 8px 12px; max-width: 600px; white-space: pre-wrap; }
.ar__back, .ar__ok { width: 130px; justify-content: center; }
.ar__back { background: #f2f2f2; border-color: #f2f2f2; margin-right: 16px; }

/* フォームの編集 */
.fe { display: flex; gap: 30px; margin: 16px 0; }
.fe__qs { flex: 1; max-width: 640px; }
.fq { border: 1px solid #e5e5e5; border-radius: 4px; padding: 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; }
.fq__head { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.fq__head select.in { width: 170px; }
.fq__head .op { margin-left: auto; }
.fpv { padding: 14px; height: 420px; overflow-y: auto; font-size: 12px; }
.fpv__title { font-weight: 700; font-size: 14px; border-bottom: 2px solid var(--main); padding-bottom: 6px; margin-bottom: 12px; }
.fpv__q { margin-bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.fpv__opt { display: block; }
.req { background: var(--error); color: #fff; font-size: 9px; padding: 0 4px; border-radius: 2px; margin-left: 4px; align-self: flex-start; }
.fpv__send { width: 100%; justify-content: center; }

/* CSV・予約・商品・チャット設定・チャット管理 */
.csv-tabs { display: flex; gap: 4px; border-bottom: 1px solid #ccc; margin-top: 14px; }
.csv-tabs span { padding: 6px 14px; font-size: 12px; font-weight: 700; color: var(--link); border-radius: 3px 3px 0 0; }
.csv-tabs span.is-active { background: #7f8c8d; color: #fff; }
.cals { display: flex; gap: 14px; flex-wrap: wrap; }
.cal { width: 380px; border: 1px solid #ddd; border-radius: 4px; padding: 14px; font-size: 12px; }
.cal__head { background: #f5f5f5; text-align: center; font-weight: 700; padding: 6px; position: relative; }
.cal__head i { position: absolute; left: 10px; top: 8px; }
.cal__btn { width: 100%; justify-content: center; margin: 8px 0 12px; }
.cal-tip { display: inline-flex; gap: 14px; align-items: center; border: 1px solid #6ea3e3; color: #4a86c5; font-weight: 700; font-size: 12px; padding: 8px 12px; border-radius: 3px; margin-bottom: 14px; }
.cal-tip.is-green { border-color: var(--main); color: var(--main); }
.shop-tabs { display: flex; background: var(--main); border-radius: 3px; margin-top: 14px; }
.shop-tabs span { color: #fff; font-weight: 700; font-size: 13px; padding: 10px 16px; border-right: 1px dashed rgba(255,255,255,.7); }
.shop-tabs span.is-active { background: #0a9b4b; }
.seg2 { display: inline-flex; background: #eee; border-radius: 3px; padding: 2px; font-size: 11px; }
.seg2 span { padding: 4px 18px; }
.seg2 .is-on { background: #7f8c8d; color: #fff; border-radius: 3px; }
.cs { display: flex; gap: 14px; background: #f5f5f5; padding: 14px; min-height: 520px; }
.cs__menu { width: 170px; background: #fff; font-size: 12px; }
.cs__menu div { padding: 12px; }
.cs__menu div.is-active { background: var(--active-bg); color: var(--active); border-right: 2px solid var(--active); }
.cs__main { flex: 1; background: #fff; border-radius: 6px; padding: 16px; font-size: 13px; }
.st { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.st .in { width: 260px; border-width: 1.5px; }
.st__dot { width: 18px; height: 18px; border-radius: 50%; position: relative; overflow: hidden; }
.st__dot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.talk-bulk { margin-top: 20px; font-size: 13px; }
.talk-bulk div { display: flex; align-items: center; gap: 10px; margin-top: 6px; }

/* ===== 上のバーのまとまり ===== */
.pbar__grp { font-size: 12px; color: #bbb; margin: 0 2px 0 10px; white-space: nowrap; }
.pbar__grp:first-child { margin-left: 0; }
.pbar__issues { align-items: center; }
.pbar__issue.is-new { border-color: var(--warn); color: #ffd27a; }
.pbar__issue.is-new.is-active { background: var(--warn); border-color: var(--warn); color: #fff; }
.pbar__title small { display: block; font-size: 10px; font-weight: 400; color: #999; }

/* ===== 新機能A：送る相手のおすすめ ===== */
.reco { margin-top: 4px; font-size: 13px; }
.reco__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.reco__opts { display: flex; flex-direction: column; gap: 6px; }
.reco__opt { display: flex; flex-direction: column; gap: 4px; border: 1px solid #ddd; border-radius: 6px; padding: 10px 12px; }
.reco__opt.is-on { border-color: var(--main); background: var(--main-weak); }
.reco__opt.is-over .reco__left { color: var(--error); font-weight: 700; }
.reco__name { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.reco__name i { color: #bbb; }
.reco__opt.is-on .reco__name i { color: var(--main); }
.reco__tag { background: var(--main); color: #fff; font-size: 12px; padding: 0 8px; border-radius: 10px; white-space: nowrap; }
.reco__nums { display: flex; gap: 14px; align-items: center; font-size: 12px; color: #555; }
.reco__nums b { font-size: 16px; color: #222; }
.reco__left { font-size: 12px; color: var(--main-strong); }
.reco__why { margin: 8px 0; background: #fffbe8; border-radius: 4px; padding: 8px 10px; font-size: 12px; display: flex; gap: 8px; }
.reco__why i { color: #e0a100; margin-top: 2px; }
.reco__err { margin: 8px 0; border: 1px solid var(--error); background: var(--error-weak); color: #a10000; border-radius: 4px; padding: 10px 12px; font-size: 13px; }
.reco__err b { display: block; }
.reco__err div { margin-top: 8px; }

/* ===== 新機能B・C：成果レポートと次の一手 ===== */
.rep__meta { display: flex; gap: 18px; align-items: baseline; font-size: 13px; color: #555; margin-bottom: 14px; }
.rep__meta b { font-size: 16px; color: #222; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 1220px; }
.kpi { border: 1px solid #e0e0e0; border-radius: 6px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: #666; }
.kpi b { font-size: 26px; color: #222; }
.kpi b small { font-size: 14px; }
.kpi.is-main { border-color: var(--main); background: var(--main-weak); }
.rep__diff { font-weight: 700; }
.rep__diff.is-up { color: var(--main-strong); }
.rep__diff.is-down { color: var(--error); }
.rep__fun { max-width: 1220px; margin-top: 12px; }
.fun__row { display: grid; grid-template-columns: 110px 1fr 80px 50px 180px; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; }
.fun__bar { height: 14px; background: #f0f0f0; border-radius: 3px; overflow: hidden; }
.fun__bar span { display: block; height: 100%; background: var(--main); }
.fun__n b { font-size: 15px; }
.fun__p { color: var(--gray); font-size: 12px; }
.rep__empty { text-align: center; padding: 60px 20px; border: 1px dashed #ccc; border-radius: 6px; max-width: 1220px; color: #555; }
.rep__empty i { font-size: 36px; color: #bbb; }
.rep__empty h3 { margin: 10px 0 4px; font-size: 16px; color: #222; }
.next { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 1220px; }
.next__card { border: 1px solid #e0e0e0; border-radius: 6px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.next__who { font-size: 13px; font-weight: 700; color: #333; display: flex; gap: 6px; align-items: center; }
.next__who i { color: var(--main); }
.next__n { font-size: 26px; font-weight: 700; color: #222; }
.next__n small { font-size: 13px; font-weight: 400; }
.next__what { font-size: 12px; color: #555; flex: 1; line-height: 18px; }
.next__card .btn { align-self: flex-start; }
