/* =========================================================
   ROC 社内ポータル / portal.css
   ========================================================= */
:root {
  --bg: #F3F5F8;
  --surface: #FFFFFF;
  --surface2: #F7F9FB;
  --line: #E4E8EE;
  --line2: #EEF1F5;
  --ink: #0F1B2D;
  --ink2: #344054;
  --ink3: #475467;
  --muted: #5D6878;
  --faint: #8A94A3;
  --brand: #004097;
  --brand-d: #00306F;
  --brand-soft: #EAF0F8;
  --brand-line: #BFD0E6;
  --hot: #C2410C;
  --warn-bg: #FFF1D6;
  --warn: #7A4A00;
  --ok: #1E6B3A;
  --ok-bg: #E7F4EC;
  --danger: #B42318;
  --danger-bg: #FDECE7;
  --avatar: #D7E1EE;
  --r: 14px;
  --r-sm: 9px;
  --shadow: 0 10px 30px rgba(15, 27, 45, .14);
  --font: 'Archivo', 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.6; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-d); text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.nowrap { display: inline-block; white-space: nowrap; }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink2); font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--surface2); text-decoration: none; color: var(--ink); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-d); color: #fff; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #24324a; color: #fff; }
.btn-danger { color: var(--danger); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--surface2); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 12px; }
.btn-block { width: 100%; }
.ib { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; flex: none; }
.ib:hover { background: var(--brand-soft); color: var(--brand); }
.ib.sm { width: 32px; height: 32px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap; }
.chip-test { background: var(--warn-bg); color: var(--warn); }
.chip-prep { background: var(--line2); color: var(--ink3); }
.chip-new { background: var(--ok-bg); color: var(--ok); }
.chip-dev { background: #F1EAFB; color: #6B3FB0; }
.chip-pin { background: var(--brand); color: #fff; }
.chip-soft { background: var(--brand-soft); color: var(--brand); }
.chip-gray { background: var(--line2); color: var(--ink2); }
.chip-hidden { background: #F2F4F7; color: var(--muted); border: 1px dashed var(--faint); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hot); display: inline-block; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--hot); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- 入力 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .field > label, .lbl { font-size: 13px; font-weight: 700; color: var(--ink); }
.field small, .hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.inp, .sel, .ta { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #DCE2EA; border-radius: 10px; background: #fff; font-size: 14px; }
.ta { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.7; }
.inp:focus, .sel:focus, .ta:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 64, 151, .12); }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid #DCE2EA; border-radius: 10px; overflow: hidden; }
.seg button { height: 42px; border: 0; border-left: 1px solid #DCE2EA; background: #fff; font-size: 13px; color: var(--ink2); cursor: pointer; padding: 0 8px; }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--brand); color: #fff; font-weight: 700; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.leavebox { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid #F1D9A8; border-radius: 12px; background: #FFFBF2; }
.msg { padding: 12px 14px; border-radius: 10px; font-size: 13px; line-height: 1.7; }
.msg-info { background: var(--brand-soft); color: var(--brand-d); }
.msg-warn { background: var(--warn-bg); color: var(--warn); }
.msg-ok { background: var(--ok-bg); color: var(--ok); }
.msg-err { background: var(--danger-bg); color: var(--danger); }

/* ---------- 入口（ログインなど） ---------- */
/* 左（上）は白地にロゴ、右（下）はコーポレートカラーの地にログインの案内 */
body.gatepage { background: var(--brand); }
.gate { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.gate-brand { background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; padding: 48px 40px; }
.gate-brand-in { width: 100%; max-width: 400px; }
.gate-logo { width: 240px; max-width: 70%; display: block; }
.gate-copy { margin: 28px 0 6px; font-size: 26px; font-weight: 700; letter-spacing: .02em; color: var(--ink); }
.gate-sub { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.gate-main { background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; padding: 48px 40px; }
.gate-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.gate-h { margin: 0; font-size: 26px; line-height: 1.45; color: #fff; }
.gate-p { margin: 0; color: rgba(255, 255, 255, .86); line-height: 1.8; }
.gate-notes { margin: 0; padding: 16px 16px 16px 34px; border-radius: 12px; background: rgba(255, 255, 255, .10); color: rgba(255, 255, 255, .86); font-size: 13px; line-height: 1.8; }
.gate-who { margin: 0; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .10); font-size: 13px; color: rgba(255, 255, 255, .9); word-break: break-all; }
.gate-who b { color: #fff; }
.gate-small { margin: 0; font-size: 12px; color: rgba(255, 255, 255, .72); }
.gate-lock { display: inline-flex; width: 52px; height: 52px; border-radius: 14px; background: #fff; color: var(--danger); align-items: center; justify-content: center; }
.gate .btn-primary { background: #fff; border-color: #fff; color: var(--brand); }
.gate .btn-primary:hover { background: #EAF0F8; color: var(--brand-d); }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; border: 0; border-radius: 12px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 20, 60, .25); }
.gbtn:hover { background: #F2F5F9; text-decoration: none; color: var(--ink); }
.gate a:not(.btn):not(.gbtn) { color: #fff; text-decoration: underline; }
@media (max-width: 760px) {
  .gate { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .gate-brand { padding: 32px 24px 28px; justify-content: flex-start; }
  .gate-logo { width: 150px; }
  .gate-copy { font-size: 20px; margin-top: 16px; }
  .gate-sub { font-size: 13px; }
  .gate-main { align-items: flex-start; padding: 32px 24px calc(32px + env(safe-area-inset-bottom)); }
  .gate-h { font-size: 22px; }
}

/* ---------- 読み込み中 ---------- */
.boot-loading { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--muted); }
.skeleton { background: linear-gradient(90deg, #EEF1F5 0%, #F6F8FB 50%, #EEF1F5 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- 全体の枠 ---------- */
.shell { display: flex; align-items: stretch; min-height: 100vh; }
.side { flex: 0 0 316px; width: 316px; background: var(--surface); border-right: 1px solid var(--line); padding: 14px 12px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side > * { flex-shrink: 0; }   /* 項目が多くても、検索などがつぶれないように */
.mainwrap { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.brandrow { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 6px; color: var(--ink); }
.brandrow:hover { text-decoration: none; color: var(--ink); }
.brandlogo { display: block; height: 32px; width: auto; flex: none; }
.brandtxt { display: flex; flex-direction: column; min-width: 0; padding-left: 10px; border-left: 1px solid var(--line); line-height: 1.35; }
.brandtxt small { font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: .02em; white-space: nowrap; }
.brandtxt b { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: .04em; white-space: nowrap; }
.searchbtn { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface2); color: var(--muted); font-size: 13px; cursor: pointer; text-align: left; width: 100%; }
.searchbtn kbd { margin-left: auto; font-family: inherit; font-size: 11px; padding: 1px 6px; border: 1px solid #DCE2EA; border-radius: 5px; background: #fff; }
.navgroup { display: flex; flex-direction: column; gap: 2px; }
.navhead { display: flex; align-items: center; gap: 4px; min-height: 28px; margin: 0 2px 2px 10px; font-size: 11px; font-weight: 700; color: var(--brand); letter-spacing: .08em; }
.navhead span { flex: 1; }
.navhead .grip { flex: none; padding: 2px 0; }
.navtoggle { width: calc(100% - 12px); border: 0; background: none; padding: 0 6px 0 0; cursor: pointer; text-align: left; font-family: inherit; border-radius: 6px; }
.navtoggle:hover { color: var(--brand-d); }
.navtoggle svg { transition: transform .15s ease; flex: none; }
.navcnt { display: none; font-size: 10px; font-weight: 700; color: var(--brand); opacity: .6; }
.navgroup.closed .navlist { display: none; }
.navgroup.closed .navtoggle svg { transform: rotate(-90deg); }
.navgroup.closed .navcnt { display: inline; }
.navlist { display: flex; flex-direction: column; gap: 1px; }
.navrow { position: relative; display: flex; align-items: center; border-radius: 9px; }
.navrow .navitem { flex: 1; min-width: 0; }
.navacts { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: none; align-items: center; gap: 0; }
.navrow:hover .navacts, .navrow:focus-within .navacts { display: flex; }
.navrow:hover .navitem, .navrow:focus-within .navitem { background: #F1F4F8; }
.navrow.has-acts:hover .navitem, .navrow.has-acts:focus-within .navitem { padding-right: 36px; }
/* サブリンクのある行：ほかの行と同じ見た目で、押すと中のリンクが開きます */
.navparent { width: 100%; border: 0; background: none; font-family: inherit; text-align: left; cursor: pointer; }
/* 開発中のリンク：少し薄い色。押すと説明が出ます */
.navdev .nm, .navdev svg { opacity: .62; }
button.navsub { width: 100%; border: 0; background: none; font-family: inherit; text-align: left; cursor: pointer; }
.devlink { border: 0; background: none; padding: 0; font: inherit; font-size: 13.5px; line-height: 1.45; color: var(--ink3); cursor: pointer; text-align: left; }
.devlink:hover { color: var(--brand); text-decoration: underline; }
.devinfo { display: flex; align-items: flex-start; gap: 14px; }
.devinfo-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #F1EAFB; color: #6B3FB0; display: inline-flex; align-items: center; justify-content: center; }
.devinfo p { margin: 0 0 6px; line-height: 1.7; }
.devinfo-sum { font-weight: 700; }
.devinfo-what { font-size: 13px; color: var(--ink2); white-space: pre-wrap; }
.navsubs { display: flex; flex-direction: column; gap: 1px; margin: 0 0 4px 19px; padding-left: 10px; border-left: 1.5px solid var(--line); }
.navsubs[hidden] { display: none; }
.navsub { display: flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; color: var(--ink2); text-decoration: none; }
.navsub:hover { background: #F1F4F8; color: var(--ink); text-decoration: none; }
.navsub .nm { flex: 1; min-width: 0; line-height: 1.4; padding: 6px 0; overflow-wrap: anywhere; }
.extmark { display: inline-flex; color: var(--faint); flex: none; }
.navsub-edit { margin-left: 30px; min-height: 34px; font-size: 12.5px; }
.lrow.lsub { margin-left: 40px; min-height: 36px; }
.lrow.lsub .ln a { font-size: 13px; font-weight: 500; }
.subedit { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface2); }
.subedit-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.subedit-row { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.subedit-row .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.subedit-row .nm b { font-size: 13px; }
.subedit-row .nm small { font-size: 11px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.subedit-row.is-hidden { opacity: .55; }
.ib.xs { width: 28px; height: 28px; border-radius: 7px; }
.ib.xs.faint { opacity: .45; }
.chip.xs { height: 17px; padding: 0 5px; font-size: 10px; border-radius: 4px; flex: none; }
.lockmark { display: inline-flex; color: var(--brand); flex: none; }
@media (hover: none) {
  .navacts { display: flex; position: static; transform: none; padding-right: 2px; }
  .navrow .navitem { padding-right: 4px; }
  .navrow:hover .navitem { padding-right: 4px; background: none; }
}
.navitem { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 9px; color: var(--ink2); font-size: 13px; text-decoration: none; position: relative; }
.navitem:hover { background: #F1F4F8; color: var(--ink); text-decoration: none; }
.navitem.on { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.navitem .nm { flex: 1; min-width: 0; line-height: 1.4; padding: 9px 0; overflow-wrap: anywhere; }   /* 長い名前は省略せず2行に */
.navitem.hiddenitem { opacity: .55; }
.navempty { margin: 0 10px; font-size: 12px; color: var(--muted); }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-top: 1px solid var(--line2); position: relative; }
.side-user .who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.side-user .who b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .who span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-btn { position: relative; flex: none; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; display: inline-flex; }
.av-btn:hover .av { box-shadow: 0 0 0 2px var(--brand-line); }
/* プロフィールに未入力の項目があるときの目印 */
.todo-dot { position: absolute; top: -1px; right: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--hot); border: 2px solid #fff; }
.todo-cnt { margin-left: auto; flex: none; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--warn-bg); color: var(--hot); font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; }
.todo-msg { display: flex; align-items: flex-start; gap: 8px; }
.photoedit.need, .field.need, .need-kana .field:nth-child(3), .need-kana .field:nth-child(4) { background: #FFF8EC; box-shadow: 0 0 0 1px #F3D19A; border-radius: 10px; padding: 8px 10px; }

.topbar { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 60px; padding: 8px 28px; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.crumb { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
.crumb b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.crumb b { color: var(--ink); font-size: 15px; }
.topact { display: flex; align-items: center; gap: 8px; flex: none; }
.bellwrap { position: relative; }
.bell-dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--hot); border: 2px solid #fff; }
.mobile-only { display: none !important; }
.editbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 28px; background: var(--brand-soft); border-bottom: 1px solid var(--brand-line); font-size: 13px; color: var(--brand-d); }
.editbar .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.content { padding: 20px 28px 64px; display: flex; flex-direction: column; gap: 22px; width: 100%; max-width: 1480px; }

/* ---------- アバター ---------- */
.av { flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--avatar); color: var(--ink); font-weight: 700; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-org { border-radius: 10px; background: var(--brand); color: #fff; }
.avs { display: flex; align-items: center; }
.avs .av { border: 2px solid #fff; margin-left: -8px; }
.avs .av:first-child { margin-left: 0; }

/* ---------- ホームの見出し ---------- */

/* ---------- ホームの3列 ---------- */
.cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.col-board { flex: 999 1 520px; min-width: 0; }
.col-side { flex: 1 1 360px; max-width: 432px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.card-pad { padding: 16px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card-h h2 { margin: 0; font-size: 14px; font-weight: 700; }
.card-h a, .card-h button.linkish { font-size: 12px; }
.linkish { border: 0; background: none; padding: 0; color: var(--brand); cursor: pointer; font-size: 13px; }
.linkish:hover { text-decoration: underline; }

/* ---------- 見出しとリンク ---------- */
.sec { padding: 12px 8px 8px; }
.sec.is-hidden { opacity: .6; }
.sec-h { display: flex; align-items: center; gap: 6px; margin: 0 6px 6px; padding: 2px 0 8px; border-bottom: 1px solid var(--line2); min-height: 34px; }
.sec-h h2 { flex: 1; margin: 0; font-size: 15px; font-weight: 700; color: var(--brand); }
.sec-h .cnt { font-size: 11px; color: var(--muted); }
.lrow { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 0 0 6px; border-radius: 8px; position: relative; }
.lrow:hover { background: #F3F6FA; }
.lrow .ico { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.lrow .ln { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.lrow .ln a { font-size: 13.5px; color: var(--ink); line-height: 1.45; }
.lrow .ln a:hover { color: var(--brand); }
.lrow .src { font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; line-height: 16px; }
.lrow.is-hidden { opacity: .55; }
.lrow.is-hidden .ln a { text-decoration: line-through; }
.grip { display: inline-flex; color: var(--faint); cursor: grab; padding: 4px 2px; flex: none; }
.grip:active { cursor: grabbing; }
.addrow { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; padding: 0 10px; border: 1px dashed var(--brand-line); border-radius: 8px; color: var(--brand); font-size: 13px; font-weight: 700; background: none; width: 100%; cursor: pointer; }
.addrow:hover { background: var(--brand-soft); }
.addsec { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; border: 1.5px dashed #9FB6D6; border-radius: var(--r); color: var(--brand); font-size: 14px; font-weight: 700; background: none; width: 100%; cursor: pointer; }
.addsec:hover { background: var(--brand-soft); }
.dragging { opacity: .4; }
.drop-before { box-shadow: inset 0 3px 0 var(--brand); }
.drop-after { box-shadow: inset 0 -3px 0 var(--brand); }
.drop-into { outline: 2px dashed var(--brand); outline-offset: -2px; }
.editing .lrow { border: 1px dashed transparent; }
.editing .lrow:hover { border-color: var(--brand-line); background: #FAFCFF; }

/* ---------- 掲示板 ---------- */
.board-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 10px; }
.board-h h2 { margin: 0; font-size: 17px; }
.tabs { display: flex; gap: 4px; padding: 0 14px; border-bottom: 1px solid var(--line2); overflow-x: auto; }
.tabs button { flex: none; height: 42px; padding: 0 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; }
.tabs button[aria-selected="true"] { border-bottom-color: var(--brand); color: var(--brand); font-weight: 700; }
.post { display: flex; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line2); cursor: pointer; }
.post:hover { background: #FAFBFD; }
.post:last-child { border-bottom: 0; }
.post-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 12px; color: var(--muted); }
.post-meta b { color: var(--ink); }
.post-t { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.5; margin: 0; }
.post-x { margin: 0; font-size: 13px; color: var(--ink3); line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; word-break: break-word; }
.post-f { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.post-f .n { display: inline-flex; align-items: center; gap: 4px; }
.likebtn { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink2); font-size: 12px; cursor: pointer; }
.likebtn:hover { border-color: var(--brand-line); color: var(--brand); }
.likebtn.on { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand); font-weight: 700; }
.thumbs { display: flex; gap: 6px; margin-top: 4px; }
.thumbs img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.board-empty { padding: 40px 18px; text-align: center; color: var(--muted); font-size: 13px; }
.more { display: flex; justify-content: center; padding: 14px; }

/* ---------- 右の小さな枠 ---------- */
.place { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; }
.place > span { font-size: 13px; }
.place .r { display: flex; align-items: center; gap: 8px; }
.place b { font-size: 13px; }
.ev { display: flex; gap: 12px; align-items: center; padding: 6px 0; }
.ev + .ev { border-top: 1px solid var(--line2); }
.evdate { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 46px; height: 50px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); line-height: 1.1; }
.evdate small { font-size: 10px; font-weight: 700; }
.evdate b { font-size: 18px; }
.evdate.t-rest { background: var(--ok-bg); color: var(--ok); }
.evdate.t-closed { background: var(--danger-bg); color: var(--danger); }
.evdate.t-allhands { background: var(--warn-bg); color: var(--warn); }
.evtxt { display: flex; flex-direction: column; line-height: 1.45; min-width: 0; }
.evtxt b { font-size: 13px; }
.evtxt > span:last-child { font-size: 11px; color: var(--muted); }
.evt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.evrep { display: inline-flex; align-items: center; gap: 2px; font-size: 10px; font-weight: 700; color: var(--brand); }
.evdate.t-portal { background: var(--brand); color: #fff; }
.ev-full { padding: 8px 0; }
.ev-full .evtxt b { font-size: 14px; }
.ev-full .evtxt > span:last-child { font-size: 12px; }
.evedit { margin-left: auto; flex: none; }
.evlist { display: flex; flex-direction: column; gap: 2px; }
.evmonth { margin: 14px 0 4px; font-size: 14px; color: var(--brand); }
.evmonth:first-child, .evlist > .msg + .evmonth { margin-top: 0; }
.evmonth + .ev { border-top: 0; }
.evlegend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; color: var(--muted); }
.evlegend .chip + * { margin-right: 8px; }
.page-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.evdate.t-bd { background: #FFF4E5; color: #9A5B00; }
.evdate b.mo-only { font-size: 15px; }
/* 予定の画面（年間・月・一覧） */
.evbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; border-bottom: 1px solid var(--line); min-height: 48px; }
.evtabs { display: flex; gap: 2px; }
.evtabs button { border: 0; background: none; height: 48px; padding: 0 16px; font: inherit; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.evtabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }
.evtools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 4px 0; }
.evtools .sel { width: auto; height: 36px; }
.evbody { display: flex; flex-direction: column; gap: 18px; }
.hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kpi2 { position: relative; background: var(--brand); color: #fff; border-radius: var(--r); padding: 16px 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 4px; min-height: 116px; }
.kpi2 small { font-size: 12px; opacity: .88; font-weight: 700; }
.kpi2 b { font-size: 42px; line-height: 1.05; font-family: Archivo, var(--font); letter-spacing: -.02em; }
.kpi2 b span { font-size: 15px; margin-left: 4px; }
.kpi2 em { font-style: normal; font-size: 11px; opacity: .9; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.kpi2 em .tag { font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: rgba(255,255,255,.2); }
.kpi2-edit { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: rgba(255,255,255,.14); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.kpi2-edit:hover { background: rgba(255,255,255,.26); }
.next { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.next small { font-size: 12px; color: var(--muted); font-weight: 700; }
.next .t { font-size: 17px; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.next .cd { font-size: 13px; color: var(--brand); font-weight: 700; white-space: nowrap; }
.next .g { color: #7A4A00; font-weight: 700; }
.next .cd big { font-size: 26px; font-family: Archivo, var(--font); }
.next p { margin: 0; font-size: 12px; color: var(--muted); }
/* 12か月：6か月×2段 */
.months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; }
.mo { min-width: 0; border: 0; border-left: 1px solid var(--line2); background: #fff; font: inherit; text-align: left; min-height: 132px; padding: 8px 8px 10px; display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
.mo:nth-child(6n+1) { border-left: 0; }
.mo:nth-child(n+7) { border-top: 1px solid var(--line2); }
.mo:hover { background: #FAFCFF; }
.mo .mh { font-size: 11px; color: var(--muted); font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; }
.mo .mh b { font-size: 13px; color: var(--ink2); }
.mo.now .mh b { color: var(--brand); }
.mo .mh i { font-style: normal; color: var(--faint); font-weight: 500; }
.mo.now { background: #F5F8FD; }
.mo.now .mh { color: var(--brand); }
.mo .mo-bd { margin-top: auto; }
.pill { display: block; font-size: 11px; line-height: 1.4; padding: 4px 6px; border-radius: 6px; font-weight: 700; border: 0; text-align: left; font-family: inherit; word-break: break-word; }
.pill small { display: block; font-weight: 500; font-size: 10px; opacity: .85; }
button.pill { cursor: pointer; width: 100%; }
.p-rest { background: var(--ok-bg); color: var(--ok); }
.p-ev { background: #F1EAFB; color: #6B3FB0; }
.p-in { background: var(--brand-soft); color: var(--brand); }
.p-bd { background: #FFF4E5; color: #9A5B00; }
.p-closed { background: var(--danger-bg); color: var(--danger); }
.p-all { background: var(--warn-bg); color: var(--warn); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-rest { background: #BFE3CB; } .lg-ev { background: #D9C8F3; } .lg-in { background: var(--brand-line); } .lg-bd { background: #F5D9A8; }
.longs-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.longs-h h2 { margin: 0 6px 0 0; font-size: 15px; }
.longs-h .lgd { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.longs-h .lgd .d { display: inline-flex; align-items: center; justify-content: center; height: 20px; padding: 0 6px; border-radius: 5px; font-size: 11px; font-weight: 700; background: var(--ok-bg); color: var(--ok); }
.longs-h .lgd .d.pto { background: #FFF1C2; color: #7A4A00; outline: 1.5px dashed #D9A400; outline-offset: -1.5px; }
.longs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.lh { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.lh.past { opacity: .6; }
.lh.is-hidden { opacity: .5; border-style: dashed; }
.lh .h { display: flex; align-items: flex-start; gap: 8px; }
.lh .h b { flex: 1; min-width: 0; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.lh .h .chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; padding-top: 2px; }
.lh .h .ib { margin: -4px -6px 0 0; }
.ptopick { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface2); }
.ptopick small { font-size: 11px; font-weight: 700; color: var(--muted); }
.ptorow { display: flex; flex-wrap: wrap; gap: 6px; }
.ptorow button { height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 12.5px; cursor: pointer; }
.ptorow button[aria-pressed="true"] { background: #FFF1C2; border-color: #D9A400; color: #7A4A00; font-weight: 700; }
.ptomid { font-size: 12px; color: var(--ok); font-weight: 700; padding: 2px 0; }
.lh p { margin: 0; font-size: 12px; color: var(--muted); }
.lh p .cpy { white-space: nowrap; }
.strip { display: flex; gap: 3px; }
.strip .d { flex: 1 1 0; min-width: 0; border-radius: 7px; text-align: center; padding: 5px 0 6px; font-size: 10px; line-height: 1.3; background: var(--ok-bg); color: var(--ok); }
.strip .d b { display: block; font-size: 13px; font-family: Archivo, var(--font); }
.strip .d.pto { background: #FFF1C2; color: #7A4A00; outline: 1.5px dashed #D9A400; outline-offset: -1.5px; }
.lh .tip { font-size: 12px; font-weight: 700; color: #7A4A00; background: #FFF8E1; border-radius: 8px; padding: 7px 10px; }
.calnav { display: flex; align-items: center; gap: 8px; }
.calnav b { font-size: 17px; min-width: 7.5em; text-align: center; }
.calrow { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.calrow > * { min-width: 0; }
.cal { display: flex; flex-direction: column; gap: 10px; }
.gridwrap { overflow-x: auto; }
.grid7 { display: grid; grid-template-columns: repeat(7, minmax(92px, 1fr)); border-top: 1px solid var(--line2); border-left: 1px solid var(--line2); min-width: 644px; }
.grid7 .w { font-size: 11px; font-weight: 700; color: var(--muted); padding: 6px 8px; border-right: 1px solid var(--line2); border-bottom: 1px solid var(--line2); background: var(--surface2); }
.grid7 .w.sun { color: var(--danger); } .grid7 .w.sat { color: #1D5FBF; }
.grid7 .c { min-height: 96px; border-right: 1px solid var(--line2); border-bottom: 1px solid var(--line2); padding: 5px 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.c .n { font-size: 12px; font-weight: 700; color: var(--ink2); font-family: Archivo, var(--font); }
.c.out { background: #FBFCFD; } .c.out .n { color: #C3CAD3; }
.c.sun .n, .c.hol .n { color: var(--danger); } .c.sat .n { color: #1D5FBF; }
.c.out.sun .n, .c.out.hol .n, .c.out.sat .n { opacity: .45; }
.c.rest { background: #F3FAF5; }
.c.today { box-shadow: inset 0 0 0 2px var(--brand); }
.c .ho { font-size: 10px; color: var(--danger); line-height: 1.3; }
.c .pill { font-size: 10.5px; padding: 2px 5px; }
.c .bd { display: flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; color: #9A5B00; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.monthonly { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: var(--surface2); }
.monthonly small { font-size: 11px; color: var(--muted); font-weight: 700; margin-right: 4px; }
.monthonly .pill { width: auto; display: inline-block; }
/* ホームの「今日はお誕生日」 */
.bday { background: linear-gradient(135deg, #FFF6E8 0%, #FFFFFF 72%); border: 1px solid #F5D9A8; border-radius: var(--r); padding: 16px; }
.bday .card-h h2 { display: flex; align-items: center; gap: 6px; }
.bday .who { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.bday .who .t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.bday .who b { font-size: 14px; }
.bday .who .t span { font-size: 12px; color: var(--muted); }
.bday .mini { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px dashed #F0D7A6; }
.bday .mini small { width: 100%; }
.bday .mini > span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink2); background: #fff; border: 1px solid #F3E2C4; border-radius: 999px; padding: 2px 10px 2px 3px; }
/* 社内の予定の絵文字・誕生日の入力 */
.emopick { display: flex; flex-wrap: wrap; gap: 4px; }
.emopick button { min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 17px; cursor: pointer; }
.emopick button:first-child { font-size: 12px; color: var(--muted); }
.emopick button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.birthrow { display: flex; gap: 8px; max-width: 280px; }
.birthrow .sel { flex: 1; }
/* 天気 */
.wx.alarm { border-color: #F2B8AE; box-shadow: inset 0 3px 0 var(--danger); }
.wx-src { font-size: 11px !important; color: var(--muted); }
/* 日付（天気の枠の上） */
.wx-head { align-items: center; }
.wx-date { display: flex; align-items: baseline; gap: 2px; font-size: 18px !important; font-variant-numeric: tabular-nums; }
.wx-date time { display: inline-flex; align-items: baseline; gap: 2px; }
.wx-date small { font-size: 12px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.wx-date .wd { font-size: 14px; color: var(--ink2); }
.wx-date .wd.sun { color: var(--danger); } .wx-date .wd.sat { color: #1D5FBF; }
.wx-only-date .card-h { margin-bottom: 0; }
.wx-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.wx-foot .wx-at { margin: 0; }
/* 週間予報 */
.wx-tabs { margin-bottom: 12px; }
.wk { display: flex; flex-direction: column; }
.wk-row { display: grid; grid-template-columns: 52px 32px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line2); }
.wk-row.today { background: #F5F8FD; border-radius: 8px; }
.wk-d { display: flex; flex-direction: column; line-height: 1.2; }
.wk-d b { font-size: 14px; font-variant-numeric: tabular-nums; }
.wk-d small { font-size: 11px; color: var(--muted); }
.wk-d.sun b, .wk-d.sun small { color: var(--danger); } .wk-d.sat b, .wk-d.sat small { color: #1D5FBF; }
.wk-tel { font-size: 13px; color: var(--ink2); overflow-wrap: anywhere; }
.wk-pop { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.wx-body { display: flex; flex-direction: column; gap: 10px; }
.wx-spot { display: flex; flex-direction: column; gap: 8px; }
.wx-spot + .wx-spot { padding-top: 10px; border-top: 1px solid var(--line2); }
.wx-main { display: flex; align-items: center; gap: 12px; }
.wx-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.wx-city { display: flex; align-items: baseline; gap: 6px; }
.wx-city b { font-size: 14px; white-space: nowrap; }
.wx-city small { white-space: nowrap; }
.wx-at { margin-left: 8px; font-size: 11px; font-weight: 500; color: var(--muted); }
.wx-t small { font-size: 10px; color: var(--muted); margin-right: 2px; }
.wx-city small { font-size: 11px; color: var(--muted); }
.wx-tel { font-size: 12px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wx-num { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.35; flex: none; }
.wx-now { font-size: 24px; font-weight: 700; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.wx-now small { font-size: 15px; font-weight: 700; margin-left: 1px; }
.wx-sub { display: inline-flex; align-items: baseline; gap: 8px; }
.wx-sub .wx-t b { font-size: 12px; }
.wx-t { display: inline-flex; align-items: baseline; gap: 3px; white-space: nowrap; }
.wx-t b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wx-t .hi { color: #C2410C; }
.wx-t .lo { color: #1D5FBF; }
.wx-t .sep { color: var(--faint); font-size: 12px; }
.wx-pop { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.wx-next { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 9px; background: var(--surface2); }
.wx-next > small { font-size: 11px; color: var(--muted); flex: none; }
.wx-next .wx-tel { flex: 1; }
.wx-next .wx-t b { font-size: 13px; }
.wxi { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.wxi-sun { color: #E39B00; }
.wxi-cloud { color: #7D8A9C; }
.wxi-rain { color: #2F6FD0; }
.wxi-snow { color: #5AA0D8; }
.wxi-sub { position: absolute; right: -4px; bottom: -3px; display: inline-flex; background: #fff; border-radius: 50%; padding: 1px; }
.wx-warn { display: flex; align-items: flex-start; gap: 6px; padding: 7px 10px; border-radius: 9px; background: var(--warn-bg); color: var(--warn) !important; font-size: 12px; font-weight: 700; line-height: 1.5; text-decoration: none !important; }
.wx-warn.on { background: var(--danger-bg); color: var(--danger) !important; }
.wx-warn svg { flex: none; margin-top: 2px; }

/* ---------- 右から出る枠（ドロワー） ---------- */
.scrim { position: fixed; inset: 0; background: rgba(15, 27, 45, .42); z-index: 80; animation: fade .15s ease; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100%); background: #fff; z-index: 81; display: flex; flex-direction: column; box-shadow: var(--shadow); animation: slidein .2s ease; }
.drawer.wide { width: min(760px, 100%); }
.drawer-h { display: flex; align-items: flex-start; gap: 14px; padding: 16px 12px 14px 24px; border-bottom: 1px solid var(--line); }
.drawer-h .tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.drawer-h .tt small { font-size: 12px; color: var(--muted); }
.drawer-h .tt h2 { margin: 0; font-size: 20px; line-height: 1.4; word-break: break-word; }
.drawer-b { flex: 1; overflow-y: auto; padding: 22px 24px; display: flex; flex-direction: column; gap: 20px; }
.drawer-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--surface2); }
.drawer-f .r { display: flex; gap: 8px; margin-left: auto; }
.modal { position: fixed; z-index: 81; left: 50%; top: 6vh; transform: translateX(-50%); width: min(720px, calc(100% - 24px)); max-height: 88vh; background: #fff; border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow); animation: pop .16s ease; }
.modal.sm { width: min(460px, calc(100% - 24px)); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slidein { from { transform: translateX(40px); } to { transform: none; } }
@keyframes pop { from { transform: translateX(-50%) scale(.98); opacity: .5; } to { transform: translateX(-50%); opacity: 1; } }

/* 説明書 */
.gsec { display: flex; flex-direction: column; gap: 8px; }
.gsec h3 { margin: 0; font-size: 14px; color: var(--brand); }
.gsec p { margin: 0; color: var(--ink2); line-height: 1.85; white-space: pre-wrap; }
.gsec ul { margin: 0; padding-left: 20px; color: var(--ink2); line-height: 1.9; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps .no { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps .st { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; color: var(--ink2); white-space: pre-wrap; }
.steps img { border-radius: 10px; border: 1px solid var(--line); max-height: 320px; object-fit: contain; align-self: flex-start; }
.ginfo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ginfo > div { padding: 14px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ginfo small { font-size: 12px; color: var(--muted); }
.ginfo b { font-size: 14px; word-break: break-word; }
.gempty { padding: 24px; border: 1px dashed #C9D2DE; border-radius: 12px; text-align: center; color: var(--muted); }
.stepedit { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface2); }
.stepedit .bar { display: flex; align-items: center; gap: 6px; }
.stepedit .bar b { flex: 1; font-size: 13px; }
.imgpick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.imgpick img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* アイコン選び */
.iconpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.iconpick button { height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink2); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.iconpick button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.urlcheck { font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.urlcheck.ok { color: var(--ok); }
.urlcheck.login { color: var(--brand); }
.urlcheck.warn, .urlcheck.ng { color: var(--danger); }
.pickgrid { display: flex; flex-wrap: wrap; gap: 6px; }
.pickgrid label { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 17px; font-size: 12px; cursor: pointer; background: #fff; }
.pickgrid label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.pickgrid input { margin: 0; accent-color: var(--brand); }

/* 投稿の詳細 */
.pd-meta { display: flex; align-items: center; gap: 10px; }
.pd-meta .who { display: flex; flex-direction: column; line-height: 1.4; }
.pd-meta .who b { font-size: 14px; }
.pd-meta .who span { font-size: 12px; color: var(--muted); }
.pd-body { font-size: 14px; color: var(--ink2); line-height: 1.9; word-break: break-word; }
.pd-body p { margin: 0 0 .6em; white-space: pre-wrap; }
.pd-body ul, .pd-body ol { margin: 0 0 .6em; padding-left: 24px; }
.pd-body li { margin: .1em 0; }
.pd-body i { font-style: italic; }
.pd-body s { color: var(--muted); }
.pd-imgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pd-imgs img { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; }
.pd-imgs.one { grid-template-columns: 1fr; }
.pd-imgs.one img { height: auto; max-height: 420px; object-fit: contain; background: var(--surface2); }
.reads { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.reads .bar { height: 8px; border-radius: 4px; background: var(--line2); overflow: hidden; }
.reads .bar i { display: block; height: 8px; background: var(--brand); }
.reads details summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ink2); }
.namelist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.namelist span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 4px; border-radius: 15px; background: var(--surface2); font-size: 12px; }
.cmt { display: flex; gap: 10px; align-items: flex-start; }
.cmt + .cmt { margin-top: 12px; }
.cmt .cb { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface2); }
.cmt .cb .h { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.cmt .cb .h b { color: var(--ink); }
.cmt .cb p { margin: 4px 0 0; font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(15,27,45,.86); display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* 投稿フォーム */
.asgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.asopt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #DCE2EA; border-radius: 12px; cursor: pointer; background: #fff; }
.asopt:has(input:checked) { border: 2px solid var(--brand); background: #F5F8FD; padding: 11px 13px; }
.asopt input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.asopt.disabled { opacity: .5; cursor: not-allowed; }
.asopt .t { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.asopt .t b { font-size: 14px; }
.asopt .t span { font-size: 12px; color: var(--muted); }
.editor { border: 1px solid #DCE2EA; border-radius: 10px; overflow: hidden; background: #fff; }
.editor:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 64, 151, .12); }
.editor .tb { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 4px 6px; border-bottom: 1px solid var(--line2); background: var(--surface2); }
.editor .tb button { width: 34px; height: 34px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--ink2); font-weight: 700; }
.editor .tb button:hover { background: var(--line2); }
.editor .tb button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); }
.editor .tb-sep { width: 1px; height: 20px; margin: 0 4px; background: #DCE2EA; }
.editor .tb-hint { margin-left: auto; padding: 0 6px; font-size: 11px; color: var(--faint); white-space: nowrap; }
.rte-link { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; border-bottom: 1px solid var(--line2); background: #FAFCFF; }
.rte-link[hidden] { display: none; }
.rte-link .inp { height: 34px; flex: 1 1 180px; min-width: 0; font-size: 13px; }
.rte { min-height: 180px; max-height: 50vh; overflow-y: auto; padding: 12px 14px; line-height: 1.8; font-size: 14px; color: var(--ink); word-break: break-word; outline: none; white-space: pre-wrap; }
.rte.is-empty::before { content: attr(data-placeholder); color: var(--faint); pointer-events: none; display: block; height: 0; }
.rte ul, .rte ol { margin: 0; padding-left: 24px; }
.rte blockquote, .pd-body blockquote { margin: 0 0 .6em; padding: 2px 0 2px 12px; border-left: 3px solid #C9D3E1; color: var(--ink3); white-space: pre-wrap; }
.rte blockquote { margin: 0; }
.rte a, .pd-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.upl { display: flex; flex-wrap: wrap; gap: 8px; }
.upl .it { position: relative; width: 96px; height: 72px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.upl .it img { width: 100%; height: 100%; object-fit: cover; }
.upl .it button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(15,27,45,.7); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.upl .add { width: 96px; height: 72px; border: 1px dashed var(--brand-line); border-radius: 8px; background: #fff; color: var(--brand); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 700; }
.preview-as { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--surface2); font-size: 12px; color: var(--muted); flex-wrap: wrap; }

/* ---------- メンバー ---------- */
.page-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.page-h h1 { margin: 0; font-size: 24px; }
.page-h p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters .inp, .filters .sel { width: auto; min-width: 200px; height: 40px; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mcard { display: flex; gap: 12px; align-items: center; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; text-align: left; width: 100%; }
.mcard:hover { border-color: var(--brand-line); box-shadow: 0 4px 14px rgba(15,27,45,.06); }
.mcard .t { display: flex; flex-direction: column; line-height: 1.45; min-width: 0; }
.mcard .t b { font-size: 14px; }
.mcard .t span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mgroup h2 { margin: 6px 0 10px; font-size: 15px; color: var(--brand); display: flex; align-items: baseline; gap: 8px; }
.mgroup h2 small { font-size: 12px; color: var(--muted); font-weight: 500; }
.profile { display: flex; gap: 18px; align-items: center; }
.profile .t { display: flex; flex-direction: column; gap: 2px; }
.profile .t h3 { margin: 0; font-size: 22px; }
.profile .t span { color: var(--muted); font-size: 13px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; word-break: break-word; }

/* メンバー（組織ごと・拠点ごと・五十音） */
.seg-sm { display: inline-grid; }
.seg-sm button { height: 40px; padding: 0 14px; }
.dir { display: flex; flex-direction: column; gap: 26px; }
.jump { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; margin-top: -8px; scrollbar-width: thin; }
.jump:empty { display: none; }
.jump a { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink2); font-size: 12px; font-weight: 700; text-decoration: none; }
.jump a:hover { border-color: var(--brand-line); color: var(--brand); text-decoration: none; }
.jump a small { color: var(--faint); font-weight: 500; }
.mgroup { scroll-margin-top: 76px; }
.msub { margin-top: 16px; }
.msub h3 { margin: 0 0 8px; font-size: 13px; color: var(--ink2); display: flex; align-items: baseline; gap: 8px; padding-left: 10px; border-left: 3px solid var(--brand-line); }
.msub h3 small { font-size: 11px; color: var(--muted); font-weight: 500; }
.mchips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 2px; }
.mchips:empty { display: none; }
.mbase { font-size: 11px; color: var(--muted); }
.namegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.namegrid-all { grid-column: 1 / -1; margin-top: -2px; }
.namegrid-all small { font-size: 12px; color: var(--muted); }
.with-ib { display: flex; align-items: center; gap: 4px; }
.with-ib .ib { color: var(--brand); }

/* 社員台帳（組織ごと） */
.issues { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: -8px; }
.issues:empty { display: none; }
.issues-l { font-size: 12px; font-weight: 700; color: var(--warn); margin-right: 2px; }
.issue { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid #F1D9A8; border-radius: 16px; background: var(--warn-bg); color: var(--warn); font-size: 12px; font-weight: 700; cursor: pointer; }
.issue b { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.issue.on { background: var(--warn); border-color: var(--warn); color: #fff; }
.issue.on b { color: var(--warn); }
.ledger { display: flex; flex-direction: column; gap: 14px; }
.lg-group { overflow: hidden; }
.lg-ghw { display: flex; align-items: center; gap: 8px; padding-right: 12px; border-bottom: 1px solid var(--line2); background: var(--surface2); }
.lg-gh { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; border: 0; background: none; cursor: pointer; text-align: left; font-family: inherit; }
.lg-gh b { font-size: 15px; color: var(--brand); }
.lg-gh small { font-size: 12px; color: var(--muted); }
.lg-gh svg { color: var(--muted); transition: transform .15s ease; flex: none; }
.lg-group.closed .lg-gh svg { transform: rotate(-90deg); }
.lg-group.closed .lg-gb { display: none; }
.lg-group.closed .lg-ghw { border-bottom: 0; }
.lg-lead { margin-left: 8px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lg-sub { border-top: 1px solid var(--line2); }
.lg-sh { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 22px; background: #FBFCFE; border-bottom: 1px solid var(--line2); }
.lg-sh b { font-size: 13px; color: var(--ink2); padding-left: 10px; border-left: 3px solid var(--brand-line); }
.lg-sh small { font-size: 11px; color: var(--muted); }
.lg-sh .lg-lead { flex: 1; }
.lg-sh .btn, .lg-ghw .btn { flex: none; }
.lg-list { display: flex; flex-direction: column; }
.lg-row { display: grid; grid-template-columns: 22px 36px minmax(180px, 1.6fr) minmax(90px, .8fr) 64px minmax(170px, 1.3fr) 96px auto; align-items: center; gap: 12px; min-height: 58px; padding: 6px 16px 6px 10px; border-bottom: 1px solid var(--line2); cursor: pointer; }
.lg-row:last-child { border-bottom: 0; }
.lg-row:hover { background: #FAFBFD; }
.lg-row.retired { opacity: .7; }
.lg-row .grip { visibility: hidden; }
.lg-row:hover .grip, .lg-list.sorting .grip { visibility: visible; }
.lg-nm { min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.lg-n1 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.lg-n1 b { font-size: 14px; }
.lg-nm .sub { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-nm .sub { display: none; }
.lg-yk { font-size: 13px; color: var(--ink2); }
.lg-bs { font-size: 12px; color: var(--ink3); }
.lg-ml { font-size: 12px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lg-seen { font-size: 11px; color: var(--muted); text-align: right; white-space: nowrap; }
.lg-ord { display: flex; gap: 2px; }
.lg-list.sorting { background: #F8FBFF; }
.lg-list.sorting .lg-row { cursor: default; }

/* ---------- 表（台帳・履歴） ---------- */
.tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 700; color: var(--muted); font-size: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface2); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #FAFBFD; }
.tbl .nm { display: flex; align-items: center; gap: 10px; }
.tbl .nm b { font-size: 13px; }
.tbl .sub { font-size: 11px; color: var(--muted); }
.tbl .num { text-align: right; white-space: nowrap; }
.st-active { color: var(--ok); font-weight: 700; }
.st-leave { color: var(--warn); font-weight: 700; }
.st-retired { color: var(--muted); }
.orgrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface2); }
.orgrow .sel { flex: 1 1 160px; height: 40px; }
.orgrow .main { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.photoedit { display: flex; align-items: center; gap: 16px; }
.tree { display: flex; flex-direction: column; gap: 6px; }
.tree .node { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.tree .node.child { margin-left: 28px; }
.tree .node.off { opacity: .55; }
.tree .node .nm { flex: 1; min-width: 0; font-weight: 700; }
.tree .node .nm small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.twocol { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.twocol > * { flex: 1 1 380px; min-width: 0; }

/* 取り込み */
.steps-card { display: flex; flex-direction: column; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kpi { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: flex; flex-direction: column; gap: 2px; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi b { font-size: 22px; }

/* 検索 */
.palette { position: fixed; z-index: 85; left: 50%; top: 10vh; transform: translateX(-50%); width: min(640px, calc(100% - 24px)); background: #fff; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; max-height: 76vh; }
.palette .q { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 60px; border-bottom: 1px solid var(--line); }
.palette .q input { flex: 1; border: 0; outline: none; font-size: 17px; background: transparent; }
.palette .res { overflow-y: auto; padding: 8px; }
.palette .grp { margin: 8px 12px 4px; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.palette .hit { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--ink); cursor: pointer; text-decoration: none; }
.palette .hit:hover, .palette .hit.sel { background: var(--brand-soft); text-decoration: none; color: var(--ink); }
.palette .hit .t { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.palette .hit .t b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette .hit .t span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette .foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--line); background: var(--surface2); font-size: 11px; color: var(--muted); }
.palette .none { padding: 26px; text-align: center; color: var(--muted); font-size: 13px; }

/* お知らせ（ベル） */
.pop { position: absolute; right: 0; top: calc(100% + 6px); width: min(380px, calc(100vw - 24px)); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: 60; overflow: hidden; }
.pop-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line2); font-size: 13px; font-weight: 700; }
.pop-list { max-height: 60vh; overflow-y: auto; }
.pop-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line2); cursor: pointer; font-size: 13px; text-align: left; width: 100%; border-left: 0; border-right: 0; border-top: 0; background: #fff; }
.pop-item:hover { background: var(--surface2); }
.pop-item .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pop-item .t span { font-size: 11px; color: var(--muted); }
.pop-empty { padding: 26px 14px; text-align: center; color: var(--muted); font-size: 13px; }
.menu { position: absolute; z-index: 60; bottom: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 8px; color: var(--ink2); font-size: 13px; border: 0; background: none; cursor: pointer; text-align: left; text-decoration: none; }
.menu a:hover, .menu button:hover { background: var(--surface2); text-decoration: none; }

/* トースト */
.toasts { position: fixed; z-index: 95; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 24px); }
.toast { pointer-events: auto; max-width: 560px; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 13px; box-shadow: var(--shadow); animation: pop2 .2s ease; display: flex; gap: 12px; align-items: center; }
.toast.err { background: var(--danger); }
.toast button { border: 0; background: rgba(255,255,255,.18); color: #fff; border-radius: 6px; padding: 4px 10px; cursor: pointer; font-size: 12px; font-weight: 700; }
@keyframes pop2 { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- スマホ ---------- */
.bottomnav { display: none; }
@media (max-width: 1240px) {
  .col-side { max-width: none; flex-basis: 100%; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .col-side > * { flex: 1 1 280px; }
}
@media (max-width: 980px) {
  .side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 82; transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow); width: min(316px, 88vw); }
  .bottomnav .todo-dot { top: 2px; right: auto; left: 58%; }
  .side.open { transform: none; }
  .mobile-only { display: inline-flex !important; }
  .desk-only { display: none !important; }
  .topbar { padding: 8px 12px; }
  .content { padding: 14px 14px 96px; gap: 18px; }
  .editbar { padding: 10px 14px; }
  .col-board { order: -1; flex-basis: 100%; }
  .topact .btn-primary span { display: none; }
  .topact .btn-primary { width: 40px; padding: 0; }
  .bottomnav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: 4px 6px calc(6px + env(safe-area-inset-bottom)); }
  .bottomnav a, .bottomnav button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; color: var(--muted); font-size: 10px; font-weight: 500; border: 0; background: none; text-decoration: none; position: relative; cursor: pointer; }
  .bottomnav .on { color: var(--brand); font-weight: 700; }
  .bottomnav .badge { position: absolute; top: 0; left: 55%; height: 16px; min-width: 16px; font-size: 10px; padding: 0 4px; }
          .hero { grid-template-columns: 1fr; }
  .calrow { grid-template-columns: 1fr; }
  .evbar { border-bottom: 0; }
  .evtabs { width: 100%; border-bottom: 1px solid var(--line); }
  .evtabs button { flex: 1; }
  .months { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mo { min-height: 104px; border-left: 1px solid var(--line2); }
  .mo:nth-child(6n+1) { border-left: 1px solid var(--line2); }
  .mo:nth-child(3n+1) { border-left: 0; }
  .mo:nth-child(n+4) { border-top: 1px solid var(--line2); }
  .grid7 { grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 0; }
  .grid7 .w { padding: 5px 4px; text-align: center; }
  .grid7 .c { min-height: 68px; padding: 3px; gap: 2px; }
  .c .pill { font-size: 9.5px; padding: 1px 3px; }
  .c .ho { font-size: 9px; }
  .c .bd { font-size: 9.5px; gap: 2px; }
  .calnav b { min-width: 6.5em; }
  .editor .tb-hint { display: none; }
  .page-acts { width: 100%; }
      .row2, .row3, .ginfo, .asgrid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 90px 1fr; }
  .drawer, .drawer.wide { width: 100%; }
  .drawer-h { padding: 12px 8px 12px 16px; }
  .drawer-b { padding: 18px 16px; }
  .drawer-f { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .modal { top: 0; height: 100%; max-height: none; width: 100%; border-radius: 0; }
  .filters .inp, .filters .sel { min-width: 0; flex: 1 1 140px; }
  .filters .seg-sm { flex: 1 1 100%; display: grid; }
  .namegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-row { grid-template-columns: 18px 36px minmax(0, 1fr) auto; gap: 10px; padding: 8px 10px 8px 6px; }
  .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mcard { flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 14px 8px 12px; }
  .mcard .t { align-items: center; width: 100%; }
  .mcard .t span { max-width: 100%; }
  .mcard .mchips { justify-content: center; }
  .dir { gap: 22px; }
  .lg-yk, .lg-bs, .lg-ml, .lg-seen { display: none; }
  .lg-nm .sub { display: block; }
  .lg-lead { display: none; }
  .lg-sh { padding-left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
