:root {
  --bg: #f4f6f9; --card: #fff; --text: #1d2733; --muted: #667585; --line: #e1e6ec;
  --primary: #1f5fbf; --primary-d: #164a96; --danger: #c0392b; --ok: #1e8e5a; --warn: #b9770e;
  --radius: 10px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif; font-size: 15px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.35; }
h2 { font-size: 1.1rem; } h3 { font-size: 1rem; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .right { text-align: right; }
.hidden { display: none !important; }

/* header */
.hd { background: #14316b; color: #fff; position: sticky; top: 0; z-index: 10; }
.hd-in { max-width: 1040px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 14px; min-height: 52px; flex-wrap: wrap; }
.brand { color: #fff; font-weight: 700; letter-spacing: .02em; padding: 8px 0; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
.nav a { color: #d6e2ff; padding: 14px 10px; font-size: .92rem; border-bottom: 3px solid transparent; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav a.on { color: #fff; border-bottom-color: #7fb0ff; }
.who { font-size: .85rem; color: #d6e2ff; display: flex; gap: 10px; align-items: center; }
.who button { background: transparent; border: 1px solid #5c78b5; color: #fff; padding: 4px 10px; border-radius: 6px; cursor: pointer; }

main { max-width: 1040px; margin: 0 auto; padding: 18px 16px 60px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.card > h2:first-child { margin-top: 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 160px; }

/* forms */
label { display: block; font-size: .85rem; color: var(--muted); margin: 10px 0 3px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date],
input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #c9d1da; border-radius: 7px; font: inherit; background: #fff; color: inherit; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #9cc0ff; border-color: var(--primary); }
input[readonly] { background: #f1f4f7; }
.chk { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-size: .9rem; margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

button, .btn { font: inherit; border-radius: 7px; border: 1px solid #c9d1da; background: #fff; color: var(--text);
  padding: 7px 14px; cursor: pointer; display: inline-block; }
button:hover, .btn:hover { background: #f1f4f8; text-decoration: none; }
button.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
button.primary:hover { background: var(--primary-d); }
button.danger { color: var(--danger); border-color: #e6b8b2; }
button.sm { padding: 3px 9px; font-size: .85rem; }
button:disabled { opacity: .55; cursor: default; }

.msg { padding: 9px 12px; border-radius: 7px; margin: 10px 0; font-size: .9rem; }
.msg.err { background: #fdecea; color: #8e2a20; } .msg.ok { background: #e8f6ee; color: #14633f; }

/* badges */
.badge { display: inline-block; font-size: .72rem; padding: 1px 8px; border-radius: 99px; background: #e7edf6; color: #36506f; vertical-align: middle; white-space: nowrap; }
.badge.contract { background: #fff1d6; color: #7a5200; }
.badge.gray { background: #e8eaed; color: #555; }
.badge.pin { background: #fde3e1; color: #9a2c22; }
.badge.type-法人 { background: #dfe9ff; color: #1b4a9c; }
.badge.type-部署 { background: #e5f4ea; color: #1d6b41; }
.badge.type-店舗 { background: #fdeede; color: #8a4b0b; }
.badge.type-担当 { background: #efe8fb; color: #5a3a96; }
.badge.type-グループ { background: #fdf1da; color: #8a5a00; }
.badge.type-チーム { background: #dcf3f1; color: #0b6b66; }

/* notices */
.notice { border-top: 1px solid var(--line); padding: 8px 0; }
.notice:first-of-type { border-top: 0; }
.notice summary { cursor: pointer; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.notice .date { color: var(--muted); font-size: .82rem; min-width: 5.5em; }
.notice .body { white-space: pre-wrap; padding: 8px 0 4px 0; color: #2b3945; overflow-wrap: anywhere; }

/* org tree */
.tree, .tree ul { list-style: none; margin: 0; padding-left: 22px; }
.tree { padding-left: 0; }
.tree li { position: relative; }
.node { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 7px; }
.node:hover { background: #f0f4fa; }
.tg { width: 24px; height: 24px; padding: 0; line-height: 1; border-radius: 6px; font-size: .8rem; flex: none; }
.tg.ph { visibility: hidden; }
.node a.nm { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.node .cnt { margin-left: auto; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.tree ul { border-left: 2px solid var(--line); margin-left: 11px; }
.node .nmw { flex: 1; min-width: 0; }
.node .nmw .alias { display: inline-block; }
.node .badge { flex: none; white-space: nowrap; }
/* スマホ幅では法人格(株式会社など)を隠す */
@media screen and (max-width: 600px) { .corp { display: none; } }
/* スマホ: 階層の字下げを減らし、名称が縦に折れないようにする(別称は名称の下に表示) */
@media (max-width: 600px) {
  .tree ul { padding-left: 10px; margin-left: 9px; }
  .node { gap: 6px; padding: 7px 2px; align-items: flex-start; }
  .node .tg { width: 28px; height: 28px; }
  .node .badge { font-size: .68rem; padding: 2px 6px; margin-top: 4px; }
  .node a.nm { overflow-wrap: break-word; word-break: normal; line-height: 1.4; }
  .node .nmw { padding-top: 2px; }
  .node .nmw .alias { display: block; font-size: .78rem; line-height: 1.35; }
  .node .cnt { font-size: .78rem; margin-top: 4px; }
}

/* people */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.person { display: block; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; color: var(--text); }
a.person:hover { border-color: #9cb8e6; text-decoration: none; background: #f8faff; }
.person .pn { font-weight: 700; } .person .ps { font-size: .85rem; color: var(--muted); } .person .pd { font-size: .85rem; margin-top: 3px; }
.person.retired { background: #f4f4f5; color: #777; }
.crumb { font-size: .88rem; color: var(--muted); margin-bottom: 6px; }
dl.kv { display: grid; grid-template-columns: 8.5em 1fr; gap: 8px 12px; margin: 0; }
dl.kv dt { color: var(--muted); font-size: .88rem; } dl.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { dl.kv { grid-template-columns: 1fr; gap: 0; } dl.kv dd { margin-bottom: 8px; } }

/* tables */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; white-space: nowrap; }
tr.retired td { color: #888; background: #fafafa; }

/* dialog / toast */
dialog { border: 0; border-radius: 12px; padding: 0; width: min(680px, 94vw); max-height: 92vh; box-shadow: 0 12px 40px rgba(0,0,0,.28); }
dialog::backdrop { background: rgba(20, 30, 50, .45); }
.dlg-in { padding: 20px; max-height: 92vh; overflow: auto; }
.dlg-ft { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.aff-row { display: grid; grid-template-columns: 1fr 140px auto auto; gap: 6px; align-items: center; margin-bottom: 6px; }
@media (max-width: 560px) { .aff-row { grid-template-columns: 1fr 1fr; } }
#toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: #1d2733; color: #fff; padding: 9px 16px;
  border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; max-width: 90vw; }
#toast.show { opacity: .96; }

/* login */
.login { max-width: 400px; margin: 9vh auto 0; }
.login h1 { font-size: 1.25rem; text-align: center; }
.login .card { padding: 24px; }

.suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin: 2px 0 0; padding: 4px 0; list-style: none;
  background: var(--card, #fff); border: 1px solid var(--line, #ccd); border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.15); max-height: 320px; overflow-y: auto; }
.suggest li { padding: 8px 12px; cursor: pointer; display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.suggest li:hover, .suggest li.on { background: rgba(31,78,121,.1); }
.suggest.hidden { display: none; }
.row.grow-wrap { position: relative; }

/* ---- 組織図(ツリー図) ---- */
.chart-head { display: flex; align-items: baseline; gap: 12px; }
.chart-wrap { overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.oc { display: block; width: max-content; --ln: #7a8794; }
.oc ul { list-style: none; margin: 0; padding: 0; }
.oc .top, .oc .cols { display: flex; justify-content: center; }
.oc .top > li { text-align: center; }
.oc .cols { padding-top: 22px; position: relative; align-items: flex-start; }
.oc .cols::before { content: ''; position: absolute; top: 0; left: 50%; height: 22px; border-left: 1px solid var(--ln); }
.oc .cols > li { position: relative; padding: 22px 6px 0; text-align: center; flex: 0 0 auto; display: flex; flex-direction: column; align-items: stretch; }
.oc .cols > li::before, .oc .cols > li::after { content: ''; position: absolute; top: 0; width: 50%; height: 22px; border-top: 1px solid var(--ln); }
.oc .cols > li::before { right: 50%; }
.oc .cols > li::after { left: 50%; border-left: 1px solid var(--ln); }
.oc .cols > li:first-child::before, .oc .cols > li:last-child::after { border-top: 0; }
.oc .cols > li:last-child::before { border-right: 1px solid var(--ln); }
.oc .cols > li:only-child::before, .oc .cols > li:only-child::after { display: none; }
.oc .cols > li:only-child::after { display: block; border-top: 0; }
.oc .stack { margin: 0 0 0 22px; text-align: left; }
.oc .cols > li > .stack { margin-top: 0; }
.oc .stack > li { position: relative; padding: 8px 0 0 16px; }
.oc .stack > li::before { content: ''; position: absolute; left: 0; top: 24px; width: 16px; border-top: 1px solid var(--ln); }
.oc .stack > li::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; border-left: 1px solid var(--ln); }
.oc .stack > li:last-child::after { bottom: auto; height: 24px; }
.oc .ob { display: inline-flex; flex-direction: column; gap: 1px; min-width: 128px; max-width: 168px; padding: 6px 10px; border: 1.5px solid #5b6b7a; border-radius: 6px;
  background: #eef3f9; color: #1d2733; text-align: center; font-size: 13px; line-height: 1.35; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.oc .ob:hover { text-decoration: none; border-color: var(--primary); }
.oc .ob-t { font-size: 10px; color: #566676; }
.oc .ob-n { font-weight: 700; overflow-wrap: anywhere; word-break: normal; text-wrap: balance; line-height: 1.35; }
.oc .ob-c { font-size: 11px; color: #3a4a5a; }
.oc .ob-m { font-size: 10px; color: #3a4a5a; border-top: 1px dotted #9aa8b5; margin-top: 3px; padding-top: 2px; }
/* 枠の色は種類(法人・部署など)ではなく階層(深さ)で決める: 同じ階層なら同じ色 */
.oc .ob.lv-0 { background: #fff3d6; border-color: #c9a24a; }
.oc .ob.lv-1 { background: #e3e6f8; border-color: #7f8bc9; }
.oc .ob.lv-2 { background: #d3e5f8; border-color: #5b8fc7; }
.oc .ob.lv-3 { background: #e2f3e8; border-color: #6aa97f; }
.oc .ob.lv-4 { background: #f1e9f8; border-color: #a184c2; }
.oc .ob.lv-5 { background: #f4f4f4; border-color: #8a8a8a; }
.oc .stack .ob { text-align: left; align-items: flex-start; }
@media print {
  .chart-page { break-after: page; page-break-after: always; margin-bottom: 0; }
  .chart-page:last-of-type { break-after: auto; page-break-after: auto; }
  .hd, .no-print, #toast { display: none !important; }
  body { background: #fff; }
  main { padding: 0 !important; max-width: none !important; }
  .chart-wrap { border: 0; padding: 0; overflow: visible; }
  .chart-head { margin-bottom: 6px; }
  .oc .ob:hover { border-color: inherit; }
}

.chart-page { margin-bottom: 18px; }

/* ---- 顔写真・履歴・デバイス ---- */
.ph { display: inline-block; flex: none; aspect-ratio: 3 / 4; background: #e9edf2; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.ph svg, .ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-sm { width: 45px; } .ph-lg { width: 120px; }
.person.pc { display: flex; gap: 11px; align-items: flex-start; }
.person .pbody { min-width: 0; flex: 1; }
.dhead { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.dhead > div:last-child { flex: 1; min-width: 240px; }
.pcrop { border: 1px solid var(--line); border-radius: 6px; touch-action: none; cursor: grab; max-width: 100%; }
.er { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; align-items: end; padding: 8px 0; border-bottom: 1px dashed var(--line); }
h3 { margin: 18px 0 6px; font-size: 1rem; }
@media print { .ph-sm { width: 30px; } }

.hprompt { border: 1px solid #f0b429; background: #fffbea; border-radius: 6px; margin: 12px 0; padding: 8px 12px; }
.hprompt legend { font-weight: 600; padding: 0 6px; }

/* 組織図: 管理者のドラッグ並べ替え */
.oc .ob[draggable=true] { cursor: grab; }
.oc .ob.dragging { opacity: .35; }
.oc .ob.drop-before { box-shadow: -5px 0 0 0 var(--primary); }
.oc .ob.drop-after { box-shadow: 5px 0 0 0 var(--primary); }
.oc .stack .ob.drop-before { box-shadow: 0 -5px 0 0 var(--primary); }
.oc .stack .ob.drop-after { box-shadow: 0 5px 0 0 var(--primary); }

.alias{color:#666;font-size:.85em}
.oc .ob .ob-a{display:block;font-size:.75em;color:#555}

.steps{padding-left:1.3em;margin:0 0 10px}.steps li{margin-bottom:8px}
.badges{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:6px}
.badge-link{display:inline-block;line-height:0}.badge-link img{height:40px;width:auto}
.badge-text{display:inline-block;line-height:1.4;padding:10px 14px;border:1px solid #888;border-radius:8px;background:#000;color:#fff;font-size:.9em}
.qr{width:200px;height:200px;margin:10px auto;background:#fff;padding:8px;border-radius:8px;border:1px solid #ccc}.qr svg{width:100%;height:100%;display:block}

/* スマホ: ハンバーガーメニュー */
.menu-btn { display: none; }
@media (max-width: 720px) {
  .hd-in { gap: 0; }
  .brand { flex: 1; font-size: .95rem; padding: 14px 0; }
  .menu-btn { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 10px; background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
  .menu-btn span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav, .who { display: none; width: 100%; flex: none; }
  .menu-open .nav { display: flex; flex-direction: column; gap: 0; border-top: 1px solid rgba(255,255,255,.2); }
  .nav a { padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 1rem; }
  .nav a.on { border-bottom-color: rgba(255,255,255,.12); background: rgba(255,255,255,.12); padding-left: 10px; }
  .menu-open .who { display: flex; justify-content: space-between; align-items: center; padding: 10px 4px 14px; }
}
@media print { .menu-btn { display: none !important; } }

.ft{text-align:center;padding:16px 0 24px}
@media print{.ft{display:none}}

.orginfo{background:#fff;border:1px solid var(--line,#dde3ee);border-radius:8px;padding:10px 14px;margin:8px 0 12px}

/* 法人の枠: 法人名を大きく、代表取締役はそれより小さく */
.oc .ob.t-法人 .ob-n { font-size: 14px; }
.oc .ob.t-法人 { max-width: 200px; }
/* 法人の下に法人を横並びにするとき: 親の枠は子の列の中央に置き、親子をつなぐ線は子の列の幅に合わせる */
.oc .stack + .cols.sub, .oc .ob + .cols.sub { margin-top: 0; }
.oc .cols > li > .cols.sub { align-self: stretch; }
.oc .cols > li:has(> .cols.sub) > .ob { align-self: center; }
.oc .stack > li:has(> .cols.sub) > .ob { align-self: flex-start; }
.oc .ob-a { overflow-wrap: anywhere; text-wrap: balance; }
.oc .ob .ob-r { font-size: 11px; font-weight: 400; color: #3a4a5a; margin-top: 1px; }

/* 組織管理: ドラッグで並べ替え・入れ子 */
.node[draggable=true] { cursor: grab; }
.node.dragging { opacity: .4; }
.node.drop-before { box-shadow: 0 -3px 0 0 var(--primary); }
.node.drop-after { box-shadow: 0 3px 0 0 var(--primary); }
.node.drop-in { outline: 2px dashed var(--primary); outline-offset: -2px; background: #eef4ff; }

/* 組織図の拡大縮小・横スライド */
.chart-wrap { overflow-x: auto; overflow-y: hidden; cursor: grab; max-width: 100%; }
.chart-wrap.panning { cursor: grabbing; user-select: none; }
.chart-wrap .ob { cursor: pointer; }
.zoombar .sm { min-width: 2.2em; }
@media print { .chart-wrap { overflow: visible !important; cursor: auto; max-width: none; } }

/* ---- チャット ---- */
.nbadge { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 6px; border-radius: 99px; background: #e5484d; color: #fff; font-size: .72rem; line-height: 18px; text-align: center; font-weight: 700; vertical-align: middle; }
.nbadge[hidden] { display: none; }
.lnk { background: none; border: 0; padding: 0; color: var(--primary); cursor: pointer; font-size: inherit; }
.lnk:hover { background: none; text-decoration: underline; }
.chat { display: grid; grid-template-columns: 300px 1fr; gap: 14px; align-items: stretch; height: calc(100vh - 150px); min-height: 420px; }
.chat .card { margin: 0; display: flex; flex-direction: column; min-height: 0; padding: 14px; }
.ch-side .ch-list { list-style: none; margin: 10px 0 0; padding: 0; overflow-y: auto; flex: 1; }
.ch-item { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 9px 8px; border-radius: 8px; color: var(--text); border-bottom: 1px solid var(--line); }
.ch-item:hover { background: #f1f4f8; text-decoration: none; }
.ch-item.on { background: #e7efff; }
.ch-kind { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-prev { grid-column: 1; color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-side-r { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ch-side-r .nbadge { margin: 0; }
.ch-hd { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ch-back { display: none; }
.ch-msgs { flex: 1; overflow-y: auto; padding: 10px 2px; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.ch-day { text-align: center; margin: 8px 0 2px; font-size: .75rem; color: var(--muted); }
.ch-day span { background: #e9eef4; padding: 2px 10px; border-radius: 99px; }
.ch-m { max-width: 78%; align-self: flex-start; }
.ch-m.mine { align-self: flex-end; text-align: right; }
.ch-nm { font-size: .75rem; color: var(--muted); margin: 0 0 1px 6px; }
.ch-b { display: inline-block; text-align: left; background: #eef1f5; padding: 7px 11px; border-radius: 14px; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.ch-m.mine .ch-b { background: var(--primary); color: #fff; }
.ch-m.mine .ch-b a { color: #fff; text-decoration: underline; }
.ch-b.del { background: transparent; border: 1px dashed #c9d1da; color: var(--muted); }
.ch-meta { font-size: .7rem; color: var(--muted); margin: 1px 6px 0; }
.ch-img { display: block; max-width: min(260px, 100%); max-height: 260px; border-radius: 8px; margin-top: 4px; }
.ch-file { display: inline-block; margin-top: 2px; }
.ch-form { border-top: 1px solid var(--line); padding-top: 10px; }
.ch-in { display: flex; gap: 8px; align-items: flex-end; }
.ch-in textarea { min-height: 38px; max-height: 140px; resize: none; flex: 1; }
.ch-chip { display: inline-block; background: #eef1f5; border-radius: 99px; padding: 2px 10px; font-size: .85rem; margin-bottom: 6px; }
.ch-tabs { display: flex; gap: 6px; margin-bottom: 4px; }
.ch-tabs button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pk-list, .gp-mem { list-style: none; margin: 8px 0 0; padding: 0; max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.gp-mem { max-height: 140px; padding: 6px 10px; }
.pk-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; margin: 0; color: var(--text); cursor: pointer; border-bottom: 1px solid var(--line); }
.pk-row:hover { background: #f1f4f8; }
@media (max-width: 760px) {
  .chat { grid-template-columns: 1fr; height: calc(100vh - 120px); }
  .chat.has-room .ch-side { display: none; }
  .chat:not(.has-room) .ch-main { display: none; }
  .ch-back { display: inline; }
  .ch-m { max-width: 88%; }
}
.menu-btn { position: relative; }
.has-unread .menu-btn::after { content: ""; position: absolute; top: 4px; right: 2px; width: 10px; height: 10px; border-radius: 50%; background: #e5484d; border: 2px solid #14316b; }
@media (min-width: 761px) { .has-unread .menu-btn::after { display: none; } }
.ch-dot { width: 9px; height: 9px; border-radius: 50%; background: #9aa7b5; display: inline-block; margin-top: 4px; }
.ch-mention { position: absolute; left: 0; right: 0; bottom: 100%; background: #fff; z-index: 5; box-shadow: 0 -4px 14px rgba(0,0,0,.12); margin: 0 0 4px; }
.ch-form { position: relative; }
.ch-mention .pk-row { width: 100%; border: 0; border-radius: 0; text-align: left; background: #fff; }
.ch-mention .pk-row.on, .ch-mention .pk-row:hover { background: #e7efff; }
.ch-mention-tag { background: rgba(31,95,191,.14); color: var(--primary-d); border-radius: 4px; padding: 0 3px; font-weight: 600; }
.ch-mention-tag.me { background: #fff3c4; color: #7a5200; }
.ch-m.mine .ch-mention-tag { background: rgba(255,255,255,.25); color: #fff; }

/* 組織図の枠: 法人格(株式会社など)は小さく1行目、名称は2行目 */
.oc .ob-n .ob-corp { display: block; font-size: 10px; font-weight: 400; line-height: 1.2; opacity: .9; }
