/* =============================================================================
   public/css/app.css — 画面の見た目（色・文字・余白・部品の形）
   色・文字の大きさなどは、デジタル庁デザインシステムのデザイントークンの値（--key など）を使う。
   キーカラーを LEDGER_KEY_COLOR で変えた時は、サーバが <style id="key-color"> を後から足して上書きする。
   ============================================================================= */
/* 色・文字・角丸・影はデジタル庁デザインシステム（DADS）のデザイントークン @digital-go-jp/design-tokens 2.0.1（MIT）の値。
   キーカラーは Green 900。LEDGER_KEY_COLOR を設定するとサーバが --key 系を差し替える（serveIndex） */
:root {
  --key: #115a36; --key-hover: #0c472a; --key-active: #032213; --key-50: #e6f5ec; --key-100: #c2e5d1; --key-200: #9bd4b5; --key-600: #259d63;
  --gray-50: #f2f2f2; --gray-100: #e6e6e6; --gray-200: #cccccc; --gray-300: #b3b3b3; --gray-420: #949494; --gray-536: #767676; --gray-600: #666666; --gray-700: #4d4d4d; --gray-800: #333333; --gray-900: #1a1a1a;
  --link: #00118f; --link-visited: #8b008b; --focus: #ffd43d;
  --error: #ce0000; --error-border: #ec0000; --error-bg: #fdeeee; --success: #197a4b; --warn: #c74700; --warn-bg: #fbf5e0; --warn-border: #b78f00;
  --elev-1: 0 2px 8px 1px rgba(0,0,0,0.1), 0 1px 5px 0 rgba(0,0,0,0.3); --elev-2: 0 2px 12px 2px rgba(0,0,0,0.1), 0 1px 6px 0 rgba(0,0,0,0.3);
  /* 旧来の名前（画面の各所で使っている）は DADS の値へ寄せる */
  --navy: var(--key-hover); --accent: var(--key); --bg: var(--gray-50); --paper: #ffffff; --ink: var(--gray-900); --muted: var(--gray-600);
  --line: var(--gray-200); --field: var(--gray-600);
  /* カード・アプリの札の枠（地の色との境目が見えるよう、文字の色を 50% 混ぜた濃さ。地の色とのコントラスト比 3 前後。どの配色でも文字の色から決まる） */
  --card-line: color-mix(in srgb, var(--ink) 50%, var(--paper)); --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06); /* 欄・カードに少し影を付けて、地から浮かせる */ --danger: var(--error); --ok: var(--success); --radius: 8px;
  --on-key: #ffffff; /* キーカラーで塗った所の文字の色（ダークの配色では濃い色にする） */
  /* カーソルを当てた所の背景（キーの色を 20% 混ぜた濃さ。薄すぎて見えにくかったため。コントラスト強めの配色は黄色） */
  --hover-bg: color-mix(in srgb, var(--key) 20%, var(--paper));
  /* グラフの系列色（検証済みの既定パレット。順番が色覚多様性への配慮なので入れ替えない） */
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100; --series-5: #e87ba4; --series-6: #008300; --series-7: #6250d6; --series-8: #e34948;
  --chart-grid: #e1e0d9; --chart-axis: #c3c2b7; --chart-muted: #898781;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo UI", Meiryo, sans-serif; font-size: 16px; line-height: 1.7; letter-spacing: 0.02em; }
/* キーボード操作の現在地: DADS のフォーカス表示（黒の枠 + 黄色の縁） */
:focus-visible { outline: 4px solid #000; outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus); }
/* 画面を開いた時にプログラムが見出し・本文へ移す印（show() の focus）は、操作する部品ではないので枠を出さない（開くたびに太い枠が出て、故障に見えるため） */
h1[tabindex="-1"]:focus, h1[tabindex="-1"]:focus-visible, main[tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
a[href^="http"]:visited { color: var(--link-visited); }
header { background: var(--hd-bg, var(--paper)); color: var(--hd-ink, var(--ink)); display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; padding: 0 20px; min-height: 50px; border-top: 4px solid var(--hd-top, var(--key)); border-bottom: 1px solid var(--hd-line, var(--line)); }
header .brand { font-weight: 700; font-size: 20px !important; color: var(--hd-accent, var(--key)); text-decoration: none; margin-right: 4px; letter-spacing: 0.04em; }
header .spacer { flex: 1; }
body.logged-out header > :not(.brand) { display: none; }
/* かわいい・癒しの配色（lib/themes.js）の背景の模様。地の部分だけに出る（カード・表・入力欄は白地のまま） */
body { background-image: var(--bg-pattern, none); background-attachment: fixed; }
#adminNav { display: contents; }
header a { color: var(--hd-ink, var(--ink)); font-size: 15px; text-decoration: none; padding: 12px 2px 9px; border-bottom: 3px solid transparent; }
header a:hover { color: var(--hd-accent, var(--key)); border-bottom-color: var(--hd-accent, var(--key-200)); }
header a[aria-current="page"] { color: var(--hd-accent, var(--key)); font-weight: 700; border-bottom-color: var(--hd-accent, var(--key)); }
header .brand[aria-current="page"] { border-bottom-color: transparent; }
header .who { font-size: 14px; color: var(--hd-ink, var(--gray-700)); }
header .who.demo { display: inline-flex !important; align-items: center; gap: 6px; } header .who .demo-as { font-size: 14px; min-height: 32px; padding: 2px 6px; max-width: 150px; } header .who.demo .muted { font-size: 12px; }
header details.navmenu { position: relative; }
header details.navmenu > summary { list-style: none; cursor: pointer; font-size: 15px; padding: 16px 2px 13px; border-bottom: 3px solid transparent; }
header details.navmenu > summary::-webkit-details-marker { display: none; }
header details.navmenu > summary::after { content: ' ▾'; font-size: 12px; }
header details.navmenu > summary:hover { color: var(--hd-accent, var(--key)); border-bottom-color: var(--hd-accent, var(--key-200)); }
header details.navmenu > summary.on { color: var(--hd-accent, var(--key)); font-weight: 700; border-bottom-color: var(--hd-accent, var(--key)); }
header .menu { position: absolute; top: 100%; left: 0; z-index: 30; min-width: 200px; background: var(--paper); border: 1px solid var(--line); border-radius: 0 0 8px 8px; box-shadow: var(--elev-2); display: flex; flex-direction: column; padding: 4px 0; }
header .menu a { color: var(--ink); padding: 10px 16px; border-bottom: 0; border-left: 3px solid transparent; white-space: nowrap; }
header .menu a:hover { background: var(--hover-bg); border-bottom: 0; }
header .menu a[aria-current="page"] { background: var(--key-50); border-left-color: var(--key); border-bottom: 0; }

/* 画面の中のメニュー（「その他の操作」など）。ボタンの見た目で開き、項目を縦に並べる */
details.dropmenu { position: relative; display: inline-block; }
details.dropmenu > summary { list-style: none; cursor: pointer; font-size: 16px; min-height: 36px; padding: 4px 16px; box-sizing: border-box; border: 1px solid var(--key); border-radius: 8px; background: var(--paper); color: var(--key); display: inline-flex; align-items: center; }
details.dropmenu > summary::-webkit-details-marker { display: none; }
details.dropmenu > summary::after { content: ' ▾'; font-size: 12px; margin-left: 4px; }
details.dropmenu > summary:hover { background: var(--hover-bg); }
details.dropmenu .menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 220px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--elev-2); display: flex; flex-direction: column; padding: 4px 0; }
details.dropmenu .menu a, details.dropmenu .menu button { justify-content: flex-start; text-align: left; border: 0; border-radius: 0; background: none; color: var(--ink); padding: 10px 16px; min-height: 0; text-decoration: none; white-space: nowrap; }
details.dropmenu .menu a:hover, details.dropmenu .menu button:hover { background: var(--hover-bg); }
main { max-width: 1600px; margin: 0 auto; padding: 14px 20px 20px; }
h1 { font-size: 22px; line-height: 1.4; margin: 0 0 10px; }
h2 { font-size: 18px; line-height: 1.4; margin: 16px 0 6px; }
h3 { font-size: 16px; line-height: 1.4; margin: 10px 0 4px; }
.card { background: var(--paper); border: 1px solid var(--line); border-color: var(--card-line); box-shadow: var(--card-shadow); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 10px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
/* 保存していない枠の目印（アプリ設定: 枠ごとに「● 未保存」と出る） */
.card.unsaved { position: relative; }
.tabs a.unsaved::after { content: ' ●'; color: var(--error); }
.card.unsaved::before { content: '● 未保存'; position: absolute; top: 10px; right: 14px; font-size: 13px; font-weight: bold; color: var(--error); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.app-card { display: block; background: var(--paper); border: 1px solid var(--line); border-color: var(--card-line); box-shadow: var(--card-shadow); border-top: 4px solid var(--key); border-radius: var(--radius); padding: 16px 20px; color: var(--ink); text-decoration: none; }
.app-card:hover { box-shadow: var(--elev-1); }
.app-card:hover .name { text-decoration: none; }
.app-card .name { font-weight: 700; font-size: 18px; color: var(--key); }
.app-card .meta { color: var(--muted); font-size: 14px; margin-top: 6px; }
/* ボタン: 既定は DADS の「枠線ボタン」（小 36px・角丸 6px）。.primary は「塗りボタン」、.small は最小（28px） */
button, .btn { font: inherit; font-size: 16px; line-height: 1.2; letter-spacing: 0.02em; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 36px; padding: 6px 16px; border: 1px solid var(--key); background: var(--paper); color: var(--key); border-radius: 6px; cursor: pointer; text-decoration: none; }
button:hover, .btn:hover { background: var(--hover-bg); text-decoration: none; } /* 下線は付けない（背景の色で示す） */
button:active, .btn:active { background: var(--key-100); }
button.primary, .btn.primary { background: var(--key); border-color: var(--key); color: var(--on-key); font-weight: 700; }
button.primary:hover, .btn.primary:hover { background: var(--key-hover); border-color: var(--key-hover); }
button.primary:active, .btn.primary:active { background: var(--key-active); }
button.danger { color: var(--error); border-color: var(--error); }
button.danger:hover { background: var(--error-bg); }
button.small, .btn.small { min-height: 28px; padding: 2px 10px; font-size: 14px; border-radius: 4px; }
/* ボタンは折り返さない（文字の長いボタンは横に伸ばす）。高さは入力欄（36px）にそろえ、表の中の小さいボタンは 28px にそろえる */
button, .btn { white-space: nowrap; min-height: 36px; padding-top: 4px; padding-bottom: 4px; }
button.small, .btn.small { min-height: 28px; }
/* 表の外では、小さいボタンも入力欄と同じ 36px にそろえる（横に並んだ入力欄・選択肢と高さが合うように）。表の中は 28px のまま */
:is(button, .btn).small:not(td *, th *, .chip *, dialog *, .ctl *) { min-height: 36px; }
.seg button { min-height: 36px; }
details.dropmenu > summary { min-height: 36px; white-space: nowrap; }
button:disabled, button:disabled:hover { background: var(--paper); color: var(--gray-420); border-color: var(--gray-420); text-decoration: none; cursor: not-allowed; }
button.primary:disabled { background: var(--gray-300); border-color: var(--gray-300); color: #fff; }
.login .btn.primary { min-height: 48px; padding: 8px 24px; border-radius: 8px; }
/* 入力欄: DADS の入力（枠 Gray 600・角丸 8px・高さ 40px） */
input, select, textarea { font: inherit; font-size: 16px; line-height: 1.4; border: 1px solid var(--field); border-radius: 6px; padding: 5px 10px; background: var(--paper); color: var(--ink); min-height: 36px; }
input:hover, select:hover, textarea:hover { border-color: #000; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 4px solid #000; outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus); }
input:disabled, select:disabled, textarea:disabled { background: var(--gray-50); border-color: var(--gray-420); color: var(--gray-700); }
input[type=checkbox], input[type=radio] { min-height: 0; width: 20px; height: 20px; accent-color: var(--key); vertical-align: -4px; }
input[type=file] { border: 0; padding: 0; min-height: 0; }
textarea { min-height: 96px; width: 100%; }
input[type=text], input[type=password], input[type=number], input[type=date] { width: 100%; max-width: 480px; }
/* 選択肢は、選んでいる項目が読める幅より縮めない（横に並べた時に押しつぶされないように） */
select { flex-shrink: 0; max-width: 100%; }
td select { min-width: max-content; }
/* 表の中の入力欄は、ふつうの名前が入る幅を下回らない。表が画面より広い時は横に動かして見る */
td > input[type=text], td > input:not([type]), td > input[type=email] { min-width: 8em; }
td > input[type=number] { min-width: 6em; }
td > input[type=date] { min-width: 10em; }
main :is(.card, div):has(> table), .tbl-x { overflow-x: auto; }
input.narrow { max-width: 220px; }
label.f, div.f { display: block; margin-bottom: 12px; }
label.f > span.lab, div.f > span.lab { display: block; font-weight: 700; margin-bottom: 3px; }
label.f > span.lab .req, div.f > span.lab .req { display: inline-block; color: var(--error); margin-left: 8px; font-weight: 400; font-size: 14px; }
.err { color: var(--error); font-size: 14px; margin-top: 4px; }
.err:empty { display: none; }
/* お知らせ帯・メンテナンスの帯（ヘッダーのすぐ下、全員の画面とログイン画面） */
#sysNotice:empty { display: none; }
.sysnotice { padding: 8px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.sysnotice.info { background: var(--key-50); color: var(--ink); }
.sysnotice.warn { background: var(--warn-bg); color: var(--ink); border-bottom-color: var(--warn-border); }
.notice { background: var(--warn-bg); border: 1px solid var(--warn-border); border-left-width: 6px; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; }
.alert { background: var(--error-bg); border: 1px solid var(--error-border); border-left-width: 6px; color: var(--error); padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; }
.alert.warn { background: var(--warn-bg); border-color: var(--warn-border); color: var(--ink); } .alert.warn li { margin: 4px 0; }
dialog.pp { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--elev-2); display: flex; flex-direction: column; }
dialog.pp::backdrop { background: rgba(0,0,0,.35); }
dialog.pp input[type=search] { flex: 1; min-width: 160px; }
.pp-list { overflow-y: auto; min-height: 120px; max-height: 55vh; border: 1px solid var(--line); border-radius: 6px; }
.pp-row { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--gray-100); background: var(--paper); text-align: left; justify-content: flex-start; border-radius: 0; min-height: 0; color: var(--ink); font-size: 15px; cursor: pointer; }
.pp-row:hover { background: var(--hover-bg); text-decoration: none; } .pp-row.on { background: var(--key-100); } .pp-row .nm { font-weight: 700; min-width: 7em; }
.pf { display: inline-flex; align-items: center; gap: 8px; } .pf-name { min-width: 6em; }
.toast { position: fixed; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 10px; max-width: min(480px, calc(100vw - 32px)); background: var(--gray-900); color: #fff; padding: 12px 20px; border-radius: var(--radius); box-shadow: var(--elev-2); z-index: 10; animation: toast-in .18s ease-out; transition: opacity .3s; }
.toast .ic { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-weight: 700; font-size: 14px; }
.toast.ok .ic { background: #2e9e5b; color: #fff; } .toast.err { background: #b3261e; } .toast.err .ic { background: var(--paper); color: #b3261e; }
.toast.busy .ic { border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; animation: toast-spin .8s linear infinite; width: 16px; height: 16px; }
.toast.out { opacity: 0; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .toast { right: 16px; left: 16px; bottom: 16px; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } .toast.busy .ic { animation: none; } }
/* 一覧の表は 1 画面の行数を確保するため 14px */
table.list { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 14px; line-height: 1.5; border: 1px solid var(--line); border-color: var(--card-line); }
table.list th, table.list td { border-bottom: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: middle; white-space: pre-wrap; }
table.list th { background: var(--gray-50); color: var(--ink); font-weight: 700; cursor: pointer; user-select: none; white-space: nowrap; border-bottom: 2px solid var(--gray-600); }
table.list th:hover { background: var(--gray-100); }
table.list th.nosort, table.list th.nosort:hover { cursor: default; background: var(--gray-50); }
table.list tr.rec:hover td { background: var(--hover-bg); cursor: pointer; }
table.list td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.list td.nowrap, .status { white-space: nowrap; } /* 日付・状態は途中で折り返さない */
/* 台帳の一覧: 1 件を 2 行までに収める。列は狭くしすぎず（1 文字ずつ折り返さない）、表は横に広がってよい */
table.list.recs td { min-width: 5em; } table.list.recs td.selcol { min-width: 0; }
table.list.recs .clip2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; max-width: 22em; white-space: normal; overflow-wrap: anywhere; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--gray-50); border: 1px solid var(--gray-420); border-radius: 999px; padding: 2px 12px; font-size: 14px; }
.rich h3 { font-size: 18px; margin: 8px 0 4px; } .rich h4 { font-size: 16px; margin: 6px 0 4px; } .rich p { margin: 4px 0; } .rich ul { margin: 4px 0; padding-left: 20px; }
.rich-prev { border: 1px dashed var(--gray-420); border-radius: 8px; padding: 4px 10px; margin-top: 4px; min-height: 24px; }
.thumb { max-width: 160px; max-height: 120px; display: block; margin: 4px 0; border: 1px solid var(--line); border-radius: 4px; }
.qr { width: 132px; height: 132px; }
.cal .ev[draggable="true"], .gantt .bar[draggable="true"] { cursor: grab; }
.cal .day.drop { outline: 3px dashed var(--key); outline-offset: -2px; }
.lay { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 16px; }
.lay > * { grid-column: span 4; min-width: 0; } .lay > .sp1 { grid-column: span 1; } .lay > .sp2 { grid-column: span 2; } .lay > .sp3 { grid-column: span 3; }
.lay > .lay-break { height: 0; } .lay-label { font-weight: 700; font-size: 17px; border-bottom: 2px solid var(--key-200); padding: 4px 0; margin: 10px 0 6px; }
.lay-group { border: 1px solid var(--line); border-color: var(--card-line); border-radius: 8px; padding: 4px 16px; margin: 8px 0; } .lay-group > summary { cursor: pointer; font-weight: 700; padding: 8px 0; color: var(--key-hover); }
@media (max-width: 700px) { .lay > .sp1, .lay > .sp2, .lay > .sp3 { grid-column: span 4; } }
.help { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 16px; }
.help-toc { position: sticky; top: 16px; background: var(--paper); border: 1px solid var(--line); border-color: var(--card-line); border-radius: var(--radius); padding: 12px 8px; font-size: 14px; line-height: 1.5; }
.help-toc .help-part { font-weight: 700; padding: 8px 8px 4px; color: var(--key-hover); }
.help-toc ul { list-style: none; margin: 0 0 8px; padding: 0; }
.help-toc a { display: block; padding: 5px 8px; border-radius: 4px; color: var(--ink); text-decoration: none; }
.help-toc a:hover { background: var(--hover-bg); text-decoration: underline; }
.help-toc a[aria-current="page"] { background: var(--key-50); color: var(--key-hover); font-weight: 700; box-shadow: inset 4px 0 0 var(--key); }
.help-body { max-width: 860px; } .help-body h3 { color: var(--key-hover); margin: 24px 0 8px; } .help-body p, .help-body li { max-width: 46em; }
.help-body ol.steps { padding-left: 1.6em; } .help-body ol.steps li { margin: 6px 0; } .help-body ul li { margin: 4px 0; } .help-body table.list { margin: 8px 0 16px; }
.help-note, .help-warn { border-left: 6px solid var(--key); background: var(--key-50); padding: 12px 16px; border-radius: 4px; margin: 12px 0; max-width: 46em; }
.help-warn { border-left-color: var(--error); background: var(--error-bg); }
@media (max-width: 800px) { .help { grid-template-columns: 1fr; } .help-toc { position: static; } }
.like { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }
.like-btn.on { background: var(--key-50); font-weight: 700; }
.like-users { font-size: 13px; }
.wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.wk .dayh { font-weight: 700; text-align: center; padding: 4px; font-size: 14px; }
.wk .dayh.sat { color: var(--link); } .wk .dayh.sun { color: var(--error); } .wk .dayh.today { background: var(--key); color: var(--on-key); border-radius: 6px; }
.wk .daycol { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; min-height: 260px; padding: 6px; cursor: copy; }
.evt { display: block; width: 100%; text-align: left; background: var(--key-50); border: 0; border-left: 4px solid var(--key); border-radius: 4px; padding: 4px 6px; margin: 0 0 6px; font-size: 13px; line-height: 1.4; color: var(--ink); cursor: pointer; min-height: 0; }
.evt:hover { background: var(--hover-bg); text-decoration: none; }
.evt .t { font-weight: 700; display: block; } .evt.busy { background: var(--gray-100); border-left-color: var(--gray-536); color: var(--gray-700); }
.series-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 12px; max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; } .series-list .cur { font-weight: 700; }
.cat-meeting { --cat: #1a73e8; } .cat-consult { --cat: #0b8a8a; } .cat-visitor { --cat: #8e44ad; } .cat-out { --cat: #e37400; } .cat-move { --cat: #8d6e63; }
.cat-trip { --cat: #d93025; } .cat-training { --cat: #188038; } .cat-desk { --cat: #5c6bc0; } .cat-off { --cat: #d81b60; } .cat-other { --cat: #757575; }
.evt[class*="cat-"] { border-left-color: var(--cat); background: color-mix(in srgb, var(--cat) 16%, var(--paper)); }
.evt[class*="cat-"]:hover { background: color-mix(in srgb, var(--cat) 26%, var(--paper)); }
.evt .cat-tag { display: inline-block; margin-left: 4px; padding: 0 4px; border-radius: 3px; font-size: 11px; line-height: 1.5; background: var(--cat); color: #ffffff; font-weight: 700; }
.evt.sm .cat-tag { display: none; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-chip { min-height: 32px; padding: 2px 12px; border-radius: 16px; border: 2px solid var(--cat); background: transparent; color: var(--ink); font-size: 14px; }
.cat-chip::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--cat); margin-right: 6px; vertical-align: 0; }
.cat-chip[aria-pressed="true"] { background: var(--cat); color: #ffffff; font-weight: 700; } .cat-chip[aria-pressed="true"]::before { background: #ffffff; }
.cat-dot { display: inline-block; padding: 0 6px; margin-right: 6px; border-radius: 3px; font-size: 12px; background: var(--cat); color: #ffffff; }
.evt.booking { border-left-color: #e25100; } .evt.pending { background: var(--warn-bg); }
.evt.leave { border-left-color: var(--muted); font-style: normal; }
.leave-mark { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 3px; background: var(--gray-100); border: 1px solid var(--line); color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.4; }
.evt.sm { padding: 1px 4px; margin: 0 0 3px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; justify-content: flex-start; gap: 4px; } .evt.sm > span:first-child { flex: none; } .evt.sm .t { display: inline; overflow: hidden; text-overflow: ellipsis; }
button.link { background: none; border: 0; padding: 0 2px; color: var(--link); min-height: 0; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; } button.link:hover { background: none; }
.seg { display: inline-flex; } .seg button { border-radius: 0; margin: 0; } .seg button:first-child { border-radius: 6px 0 0 6px; } .seg button:last-child { border-radius: 0 6px 6px 0; margin-left: -1px; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--key); color: var(--on-key); border-color: var(--key); }
.mon { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.mon .dayh { font-weight: 700; text-align: center; padding: 4px; font-size: 14px; } .mon .dayh.sat { color: var(--link); } .mon .dayh.sun { color: var(--error); }
.mcell { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; min-height: 112px; padding: 4px; cursor: copy; min-width: 0; }
.mcell.other { background: var(--gray-50); } .mcell.other .dnum { color: var(--muted); }
.mcell.sat .dnum { color: var(--link); } .mcell.sun .dnum { color: var(--error); }
.mcell.today { border: 2px solid var(--key); } .mcell.today .dnum { background: var(--key); color: var(--on-key); border-radius: 10px; padding: 0 6px; }
button.dnum { font-weight: 700; font-size: 13px; padding: 0 2px; margin-bottom: 2px; text-decoration: none; color: var(--ink); }
button.link.more { font-size: 12px; }
.grp-scroll { overflow-x: auto; } table.grp.grp-month { table-layout: auto; width: max-content; min-width: 100%; } table.grp.grp-month td.name { width: auto; } .grp-month th { min-width: 76px; font-size: 13px; text-align: center; } .grp-month th.name, .grp-month td.name { min-width: 130px; position: sticky; left: 0; background: var(--paper); z-index: 1; }
.grp-week th, .grp-week td.cell { min-width: 150px; } .grp-week td.cell .evt.sm { white-space: normal; display: block; } .grp-week td.cell .evt.sm .t { display: block; }
.grp-month td.cell { cursor: copy; vertical-align: top; padding: 3px; }
.grp-month th .wd { font-weight: 400; font-size: 12px; } .grp-month th.sat button, .grp-month th.sat { color: var(--link); } .grp-month th.sun button, .grp-month th.sun { color: var(--error); } .grp-month th.today { background: var(--key-50); }
@media (max-width: 640px) { .mcell { min-height: 64px; padding: 2px; } .mcell .evt.sm > span:first-child { display: none; } .mcell .evt.sm { font-size: 11px; padding: 1px 2px; } }
table.grp { width: 100%; border-collapse: collapse; background: var(--paper); table-layout: fixed; font-size: 13px; }
table.grp th, table.grp td { border: 1px solid var(--line); padding: 4px; vertical-align: top; }
table.grp th { background: var(--gray-50); font-size: 14px; } table.grp td.name { font-weight: 700; width: 120px; background: var(--gray-50); }
table.grp td.cell { cursor: copy; height: 56px; } table.grp td.cell:hover { background: var(--hover-bg); }
table.slots { border-collapse: collapse; background: var(--paper); font-size: 12px; table-layout: fixed; }
table.slots th, table.slots td { border: 1px solid var(--line); padding: 0; height: 40px; }
table.slots th { background: var(--gray-50); font-weight: 400; width: 34px; } table.slots th.fac { width: 180px; text-align: left; padding: 4px 8px; font-weight: 700; font-size: 14px; }
table.slots td.free { cursor: copy; } table.slots td.free:hover { background: var(--hover-bg); } table.slots td.slot-sel, .cal .day.slot-sel, .slot-sel { background: var(--key); opacity: 0.45; } /* 押したまま横に動かして選んでいる範囲（slotDragger） */ table.slots, .cal, .mon, .wk, table.grp { user-select: none; }
table.slots td.hourstart { border-left: 2px solid var(--gray-420); }
table.slots td.bk { background: var(--key-600); color: var(--on-key); padding: 2px 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
table.slots td.bk.pending { background: repeating-linear-gradient(45deg, #ffc700, #ffc700 6px, #ffd43d 6px, #ffd43d 12px); color: var(--ink); }
table.slots td.bk.mine { box-shadow: inset 0 0 0 2px var(--key-active); }
table.slots td.bk.busy { background: var(--gray-536, #767676); }
table.slots tr.free-row th { font-size: 13px; } table.slots td.allfree { background: #d4f2d6; cursor: copy; } table.slots td.allfree:hover { background: var(--key-200); } table.slots td.busyn { background: repeating-linear-gradient(45deg, #f0f0f0, #f0f0f0 4px, #e2e2e2 4px, #e2e2e2 8px); }
table.slots.tl th.fac { width: 140px; }
table.slots th.fac { position: sticky; left: 0; z-index: 1; background: var(--gray-50); box-shadow: 1px 0 0 var(--line); }
table.slots thead th { position: sticky; top: 0; z-index: 2; } table.slots thead th.fac { z-index: 3; } /* 下へスクロールしても時刻の見出しが見える */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin: 4px 0 10px; flex-wrap: wrap; }
.tabs a { padding: 8px 16px; color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a[aria-current="page"] { color: var(--key); border-bottom-color: var(--key); font-weight: 700; }
table.poll { border-collapse: collapse; background: var(--paper); font-size: 14px; }
table.poll th, table.poll td { border: 1px solid var(--line); padding: 6px 10px; text-align: center; }
table.poll th.opt { min-width: 120px; } table.poll td.nm { text-align: left; font-weight: 700; white-space: nowrap; }
table.poll .a-o { color: var(--key); font-weight: 700; font-size: 18px; } table.poll .a-t { color: #c74700; font-size: 18px; } table.poll .a-x { color: var(--gray-536); font-size: 18px; }
table.poll tr.tot td { background: var(--gray-50); font-weight: 700; } table.poll th.best { background: var(--key-50); } table.poll th.decided { background: var(--key); color: var(--on-key); }
.ans { display: inline-flex; gap: 2px; } .ans button { min-height: 32px; padding: 2px 10px; font-size: 16px; } .ans button[aria-pressed="true"] { background: var(--key); color: var(--on-key); }
.star { border: 0; background: transparent; min-height: 0; padding: 0 4px; font-size: 20px; line-height: 1; color: var(--gray-536); }
.star[aria-pressed="true"] { color: #d2a400; } .star:hover { background: transparent; color: #d2a400; text-decoration: none; }
.app-card .cat, .cat { display: inline-block; font-size: 12px; background: var(--key-50); color: var(--key-hover); border-radius: 999px; padding: 0 10px; margin-top: 4px; }
h2.cat-h { font-size: 18px; margin: 20px 0 8px; } button[aria-pressed="true"].small { background: var(--key); color: var(--on-key); }
.top-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.top-head .hello { font-size: 18px; font-weight: 700; } .top-head .date { color: var(--gray-700); font-size: 15px; font-weight: 400; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.dash2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; align-items: start; }
.panel2 { background: var(--paper); border: 1px solid var(--line); border-color: var(--card-line); box-shadow: var(--card-shadow); border-radius: var(--radius); padding: 10px 14px; }
.panel2 h2 { font-size: 16px; margin: 0 0 6px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
/* トップの欄: 機能へ移るリンク（「スケジュールへ」「すべて見る」）は小さなボタンに、欄の中の件名などは本文の色にして、見分けやすくする */
.panel2 h2 a.panel-go { flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--key); background: var(--key-50); border: 1px solid var(--key-200); border-radius: 999px; padding: 2px 10px 2px 12px; text-decoration: none; white-space: nowrap; }
.panel2 h2 a.panel-go::after { content: ' ›'; }
.panel2 h2 a.panel-go:hover { background: var(--key); color: var(--on-key); border-color: var(--key); }
.panel2 a:not([class]) { color: var(--ink); font-weight: 600; text-decoration: none; text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); text-underline-offset: 3px; }
.panel2 a:not([class]):hover { color: var(--key); text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 3px; } /* 下線はカーソルを当てた時だけ */
.dash2 > .wide { grid-column: 1 / -1; }
/* 上へ詰める並べ方（04-top.js の packGrid）。行は 4px 刻みで、欄の間は下の余白で空ける */
.dash2.packed { grid-auto-rows: 4px; row-gap: 0; align-items: start; } .dash2.packed > * { margin-bottom: 12px; }
.file-link .path { font-size: 12px; word-break: break-all; margin-top: 2px; }
.ann.done { opacity: .75; } .ann-files { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 14px; } .ann-reads { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 14px; } .ann-names { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 2px; }
.panel2.editing { outline: 2px dashed var(--key-200); outline-offset: -2px; cursor: grab; } .panel2.editing.dragging { opacity: .4; } .panel2.off { opacity: .55; }
.panel-tools { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: -6px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--gray-100); cursor: default; }
.panel-tools .grip { font-size: 18px; color: var(--muted); cursor: grab; padding: 0 4px; }
.layout-edit { border-top: 4px solid var(--key); margin-bottom: 12px; }
.panel2 ul { list-style: none; margin: 0; padding: 0; } .panel2 li { padding: 8px 0; border-bottom: 1px solid var(--gray-100); } .panel2 li:last-child { border-bottom: 0; }
.panel2 .when { color: var(--gray-700); font-size: 14px; display: inline-block; min-width: 110px; }
.panel2 .empty { color: var(--muted); font-size: 14px; }
.count { display: inline-block; min-width: 24px; padding: 0 8px; border-radius: 999px; background: var(--key); color: var(--on-key); font-size: 13px; font-weight: 700; text-align: center; }
.count.zero { background: var(--gray-200); color: var(--gray-700); }
.ann { border-left: 6px solid var(--key); background: var(--paper); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 12px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ann.important { border-left-color: var(--error); background: var(--error-bg); }
.ann .t { font-weight: 700; } .ann .b { white-space: pre-wrap; margin-top: 4px; }
/* たたんだお知らせ（見出しの 1 行）。押すと本文を開く */
.ann.compact { padding: 6px 16px; margin-bottom: 6px; }
.ann.compact > summary { cursor: pointer; list-style-position: inside; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ann.compact[open] { padding-bottom: 12px; } .ann.compact[open] > summary { white-space: normal; margin-bottom: 4px; }
.ann-list { margin-bottom: 12px; } .ann-more > summary { cursor: pointer; color: var(--link, #0017c1); margin: 4px 0 6px; }
.mini-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.mini-apps a { display: block; padding: 10px 12px; border: 1px solid var(--line); border-color: var(--card-line); border-top: 3px solid var(--key); border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px; }
.mini-apps a:hover { background: var(--hover-bg); }
.panel2 .mini-apps a { text-decoration: none; box-shadow: var(--card-shadow); } .panel2 .mini-apps a:hover { text-decoration: none; } /* アプリの札は下線を付けず、影で押せる形に見せる */
.kb-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.kb-side h2 { font-size: 15px; margin: 12px 0 6px; } .kb-side h2:first-child { margin-top: 0; }
.kb-side ul { list-style: none; margin: 0; padding: 0; } .kb-side li a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.kb-side li a:hover { background: var(--hover-bg); } .kb-side li a[aria-current="page"] { background: var(--key-50); color: var(--key); font-weight: 700; }
.kb-tags { display: flex; flex-wrap: wrap; gap: 6px; } .kb-tags a.chip { text-decoration: none; color: var(--ink); } .kb-tags a.chip.on { background: var(--key); border-color: var(--key); color: var(--on-key); } .kb-tags a.chip.on .muted { color: #fff; }
.kb-list { display: flex; flex-direction: column; gap: 8px; }
.kb-item { display: block; background: var(--paper); border: 1px solid var(--line); border-color: var(--card-line); border-radius: var(--radius); padding: 12px 16px; color: var(--ink); text-decoration: none; }
.kb-item:hover { background: var(--hover-bg); } .kb-item:hover .kb-title { text-decoration: underline; }
.kb-title { font-weight: 700; font-size: 17px; color: var(--key); } .kb-ex { margin: 4px 0; color: var(--gray-700); font-size: 14px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.kb-foot { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.kb-body { margin-top: 16px; line-height: 1.8; } .kb-files { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 8px; }
.kb-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; } .kb-editor textarea { width: 100%; max-width: none; }
@media (max-width: 760px) { .kb-wrap, .kb-editor { grid-template-columns: 1fr; } }
.feature-list label { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--gray-100); font-size: 16px; } .feature-list label:last-child { border-bottom: 0; }
.hr-steps { display: flex; gap: 0; list-style: none; padding: 0; margin: 12px 0; flex-wrap: wrap; }
.hr-steps li { padding: 6px 16px; border: 1px solid var(--gray-420); background: var(--paper); color: var(--gray-700); margin-right: -1px; font-size: 14px; }
.hr-steps li.past { background: var(--key-50); color: var(--key-hover); } .hr-steps li.cur { background: var(--key); color: var(--on-key); font-weight: 700; border-color: var(--key); }
.hr-table td { vertical-align: top; } .hr-table textarea { width: 100%; max-width: none; min-height: 56px; } .hr-table .w-num { width: 72px; min-width: 0; }
select.score { min-width: 64px; } .score-v { font-weight: 700; font-size: 18px; }
.hr-comment { margin-bottom: 12px; } .hr-comment .lab { font-weight: 700; margin-bottom: 4px; } .hr-comment textarea { width: 100%; max-width: none; min-height: 80px; } .hr-comment .body { white-space: pre-wrap; }
.hr-final .grade { font-size: 40px; font-weight: 700; color: var(--key); line-height: 1.1; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 16px; } .grid2 label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 14px; } .grid2 textarea, .grid2 input, .grid2 select { max-width: none; width: 100%; font-weight: 400; }
dl.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 12px; margin: 0; } dl.kv dt { color: var(--gray-700); } dl.kv dd { margin: 0; }
@media (max-width: 700px) { .hr-table thead { display: none; } .hr-table tr { display: block; border-bottom: 1px solid var(--line); } .hr-table td { display: block; border: 0; } dl.kv { grid-template-columns: 1fr; } }
.dir-table { table-layout: fixed; width: 100%; } .dir-table th:nth-child(1) { width: 20%; } .dir-table th:nth-child(2) { width: 15%; } .dir-table th:nth-child(3) { width: 12%; } .dir-table th:nth-child(4) { width: 9%; } .dir-table th:nth-child(6) { width: 120px; }
@media (max-width: 700px) { .dir-table { table-layout: auto; } .dir-table thead { display: none; } .dir-table tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; } table.list.dir-table td { display: inline-block; border: 0; padding: 2px 8px; } }
.dir-dept { font-size: 18px; margin: 20px 0 6px; padding: 4px 0 4px 8px; border-left: 4px solid var(--key); position: sticky; top: 0; z-index: 3; background: var(--bg); } /* スクロールしても、どの所属の人かが分かるように */ .dir-table td.ext { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.printonly { display: none; }
/* 受付の番号札を職員の端末で刷る時は、番号札だけを紙に出す（06-reception.js の printRecTicket） */
@media print { body.rec-ticket-mode main > *:not(#recTicket) { display: none !important; } body.rec-ticket-mode #recTicket { display: block; } }
@media print { header, .noprint, .toast { display: none !important; } .printonly { display: block; } body { background: var(--paper); } .dir-table { font-size: 11pt; } .tbl-x { overflow: visible; } table.list thead { display: table-header-group; } table.list tr { break-inside: avoid; } }
/* 印刷レイアウト（紙面は mm・pt で組む。画面では白い紙に影、印刷では紙そのもの） */
.ps-page { background: #fff; color: #000; box-shadow: var(--elev-1); margin: 0 auto 16px; line-height: 1.5; font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif; overflow: hidden; position: relative; }
.ps-free .ps-item { position: absolute; overflow: hidden; white-space: pre-wrap; word-break: break-all; padding: 0 0.8mm; }
.ps-free .ps-item.ps-border { border: 0.3mm solid #000; } .ps-free .ps-rect, .ps-free .ps-hline, .ps-free .ps-vline { padding: 0; }
.ps-lab { color: #333; font-weight: 400; }
.ps-title { font-size: 1.6em; font-weight: 700; text-align: center; margin-bottom: 4mm; }
.ps-text { white-space: pre-wrap; margin: 1mm 0; } .ps-sub { font-weight: 700; margin: 3mm 0 1mm; } .ps-block { margin: 2mm 0; }
.ps-break { break-after: page; height: 0; }
.ps-fields, .ps-table { width: 100%; border-collapse: collapse; } .ps-fields th, .ps-fields td, .ps-table th, .ps-table td { border: 0.3mm solid #000; padding: 1mm 1.5mm; vertical-align: top; text-align: left; white-space: pre-wrap; word-break: break-all; }
.ps-fields th { background: #eee; width: 28mm; font-weight: 400; } .ps-table th { background: #eee; font-weight: 400; } .ps-table td.num, .ps-table tfoot td.num { text-align: right; } .ps-table tfoot td { font-weight: 700; } .ps-empty { text-align: center !important; color: #555; }
.ps-table thead { display: table-header-group; } .ps-table tr { break-inside: avoid; }
.ps-stamps { border-collapse: collapse; } .ps-stamps th, .ps-stamps td { border: 0.3mm solid #000; text-align: center; font-weight: 400; padding: 0.5mm; } .ps-stamps td { height: 16mm; vertical-align: middle; } .ps-stamp-name { font-weight: 700; } .ps-stamp-date { font-size: 0.85em; }
.ps-img { display: inline-block; max-width: 100%; } .ps-free .ps-image { padding: 0; }
.ps-free .ps-stamps { width: 100%; height: 100%; background: #fff; } .ps-free .ps-stamps th { height: 5mm; } .ps-free .ps-stamps td { height: auto; }
.sheet-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 12px; } .sheet-wrap { overflow-x: auto; padding-bottom: 8px; }
.le-wrap { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 16px; align-items: start; } .le-side { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 140px); overflow-y: auto; position: sticky; top: 8px; }
.le-preview, .le-canvas { overflow: auto; background: var(--gray-100); padding: 12px; border-radius: var(--radius); max-height: calc(100vh - 140px); }
.le-block { background: var(--paper); border: 1px solid var(--line); border-color: var(--card-line); border-radius: var(--radius); padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; } .le-block textarea, .le-block input[type=text] { max-width: none; width: 100%; }
.le-bhead { gap: 6px; } .le-bhead strong { margin-right: auto; } .le-codes { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; } input.tiny { width: 72px; } .le-page label { white-space: nowrap; }
.le-page-free { margin: 0; } .le-item { cursor: move; outline: 1px dashed rgba(0,0,0,0.25); touch-action: none; } .le-item.le-sel { outline: 2px solid var(--key-600); z-index: 5; }
.le-item img { pointer-events: none; -webkit-user-drag: none; }
.le-handle { position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; background: var(--key-600); cursor: nwse-resize; display: none; } .le-sel .le-handle { display: block; }
@media (max-width: 900px) { .le-wrap { grid-template-columns: 1fr; } .le-side { position: static; max-height: none; } }
@media print { body.sheet-mode main { padding: 0; max-width: none; } body.sheet-mode .sheet-wrap { overflow: visible; padding: 0; } .ps-page { box-shadow: none; margin: 0; } .ps-free { break-after: page; } }
.todo-list { list-style: none; padding: 4px 20px; margin: 12px 0 0; } .todo { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--gray-100); } .todo:last-child { border-bottom: 0; }
.todo input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; } .todo-body { flex: 1; min-width: 0; } .todo-title { font-weight: 700; } .todo-title.done { text-decoration: line-through; color: var(--muted); font-weight: 400; }
.due { font-size: 13px; color: var(--gray-700); } .due.today { color: #a35b00; font-weight: 700; } .due.over { color: var(--error); font-weight: 700; }
.status.warn { background: #fff4e5; border-color: #f2b45a; color: #8a4b00; }
.status.mid { background: #eef4ff; border-color: #9db7f0; color: #0031d8; } .status.done { background: var(--gray-50); border-color: var(--line); color: var(--muted); } .status.bad { background: var(--error-bg); border-color: var(--error-border); color: var(--error); }
.inq-prog { display: flex; align-items: center; gap: 8px; } .inq-prog .inq-bar { flex: 1; } .inq-prog-t { font-size: 13px; font-weight: 700; white-space: nowrap; } .inq-prog.big .inq-bar { height: 20px; } .inq-prog.big .inq-prog-t { font-size: 15px; }
.inq-bar { position: relative; height: 12px; background: var(--gray-200); border-radius: 999px; overflow: hidden; min-width: 80px; } .inq-bar span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--key); } .inq-bar.wide { min-width: 60px; width: 200px; max-width: 40vw; } .inq-chart { width: 100%; max-width: 480px; } .inq-chart td:first-child { min-width: 0 !important; word-break: break-all; }
.inq-q { border: 1px solid var(--line); border-color: var(--card-line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; background: var(--gray-50); }
.inq-sum { margin-bottom: 16px; } .inq-chart td { padding: 3px 8px; border: 0; } .inq-chart td:first-child { min-width: 120px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; } .tpl-card { display: flex; flex-direction: column; gap: 8px; margin: 0; } .tpl-card p { margin: 0; } .tpl-hl { margin: 0; padding-left: 20px; font-size: 14px; } .tpl-make { border-top: 1px solid var(--line); padding-top: 10px; }
@media (max-width: 420px) { .tpl-grid { grid-template-columns: 1fr; } }
.ai-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 12px; }
.ai-side ul { list-style: none; padding: 0; margin: 12px 0 0; } .ai-side li a { display: block; padding: 6px 8px; border-radius: 6px; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ai-side li a[aria-current="page"] { background: var(--key-50); color: var(--key); font-weight: 700; } .ai-side li .muted { font-size: 12px; padding-left: 8px; }
.ai-log { display: flex; flex-direction: column; gap: 12px; min-height: 240px; margin-bottom: 12px; }
.ai-msg { max-width: 860px; border-radius: 12px; padding: 10px 14px; border: 1px solid var(--line); background: var(--paper); } .ai-msg.user { align-self: flex-end; background: var(--key-50); border-color: var(--key-200); } .ai-msg .who { font-size: 12px; font-weight: 700; color: var(--gray-700); margin-bottom: 4px; }
.ai-text { white-space: pre-wrap; line-height: 1.8; } .ai-cite { font-size: 12px; vertical-align: super; } .ai-src { margin-top: 8px; font-size: 14px; } .ai-src ol { margin: 4px 0 0; padding-left: 24px; }
.ai-input textarea { width: 100%; max-width: none; } .ai-hello { padding: 16px; border: 1px dashed var(--gray-420); border-radius: 8px; }
@media (max-width: 760px) { .ai-wrap { grid-template-columns: 1fr; } }
.live-info { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-color: var(--card-line); border-radius: var(--radius); padding: 12px 20px; } .live-code { font-size: 40px; font-weight: 700; letter-spacing: 0.15em; color: var(--key); font-variant-numeric: tabular-nums; }
.live-poll.draft { border-style: dashed; } .live-bars { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; } .live-bar { display: grid; grid-template-columns: minmax(80px, 30%) 1fr 6.5em; gap: 8px; align-items: center; } .live-bar .track { height: 16px; background: var(--gray-100); border-radius: 999px; overflow: hidden; } .live-bar .track span { display: block; height: 100%; background: var(--key); transition: width .4s; } .live-bar .num { font-variant-numeric: tabular-nums; font-size: 14px; white-space: nowrap; }
.live-bars.big .live-bar { grid-template-columns: minmax(120px, 30%) 1fr 7.5em; font-size: 28px; } .live-bars.big .track { height: 36px; } .live-bars.big .num { font-size: 24px; }
.live-texts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; } .live-tx { background: var(--key-50); border: 1px solid var(--key-200); border-radius: 8px; padding: 6px 10px; } .live-texts.big .live-tx { font-size: 24px; padding: 10px 16px; }
.live-q { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--gray-100); } .live-q:last-child { border-bottom: 0; } .live-q .likes { font-weight: 700; color: var(--key); min-width: 48px; } .live-q.answered { opacity: .6; } .live-q.hidden { opacity: .4; text-decoration: line-through; } .live-q.big { font-size: 26px; }
.live-choices { display: flex; flex-direction: column; gap: 8px; } .live-choices button { min-height: 52px; font-size: 18px; justify-content: flex-start; } .live-choices.rating { flex-direction: row; } .live-choices.rating button { flex: 1; justify-content: center; font-size: 22px; }
.live-part { max-width: 720px; margin: 0 auto; }
.live-stage { min-height: calc(100vh - 140px); display: flex; flex-direction: column; gap: 24px; background: var(--paper); border-radius: var(--radius); padding: 32px 40px; } .live-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; } .live-title { font-size: 22px; color: var(--gray-700); } .live-join { font-size: 28px; } .live-join b { color: var(--key); font-size: 48px; letter-spacing: .12em; } .live-question { font-size: 40px; margin: 0 0 16px; } .live-ctl { margin-top: auto; opacity: .6; } .live-ctl:hover { opacity: 1; }
:fullscreen .live-stage { min-height: 100vh; border-radius: 0; }
@media (max-width: 700px) { .live-stage { padding: 16px; } .live-question { font-size: 24px; } .live-bars.big .live-bar { font-size: 16px; } .live-join b { font-size: 32px; } }
.bd-bar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-color: var(--card-line); border-radius: var(--radius) var(--radius) 0 0; padding: 6px 8px; margin-top: 8px; }
.bd-colors { display: inline-flex; gap: 3px; margin: 0 6px; } .bd-color { width: 22px; height: 22px; min-height: 0; padding: 0; border: 2px solid; border-radius: 50%; }
.bd-stage { position: relative; height: calc(100vh - 230px); min-height: 360px; border: 1px solid var(--line); border-top: 0; overflow: hidden; background-color: #fafafa; background-image: radial-gradient(#d6d6d6 1px, transparent 1px); background-size: 24px 24px; touch-action: none; }
.bd-svg { width: 100%; height: 100%; display: block; outline: none; user-select: none; } .bd-svg:focus-visible { outline: 3px solid var(--key); outline-offset: -3px; }
.bd-item { cursor: move; } .bd-edit { position: absolute; z-index: 5; resize: none; border: 2px solid #1a73e8; background: rgba(255,255,255,.95); font-family: inherit; line-height: 1.35; padding: 8px; box-sizing: border-box; max-width: none; }
.bd-cursors { position: absolute; inset: 0; pointer-events: none; overflow: hidden; } .bd-cursor { position: absolute; left: 0; top: 0; width: 0; height: 0; transition: transform .12s linear; } .bd-cursor::before { content: ''; position: absolute; left: -1px; top: -1px; border-left: 10px solid #e8710a; border-bottom: 10px solid transparent; } .bd-cursor span { position: absolute; left: 10px; top: 10px; background: #e8710a; color: #fff; font-size: 12px; padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.bd-zoom { min-width: 3.5em; text-align: center; }
.warnbox { border-left: 6px solid var(--error); background: var(--error-bg); }
.chip button { border: 0; min-height: 0; padding: 0 4px; background: transparent; color: var(--gray-700); font-size: 14px; }
.muted { color: var(--muted); font-size: 14px; }
.login { max-width: 360px; margin: 80px auto; }
.fields-editor .frow { display: grid; grid-template-columns: 32px 1.2fr 1fr 160px 60px 60px 1.4fr 90px; gap: 6px; align-items: start; padding: 6px 0; border-bottom: 1px dashed var(--line); }
/* 1 項目のまとまり（行 + 説明・表示条件・拡張）。区切り線はまとまりの下にだけ引く */
.fields-editor .fgroup { border-bottom: 2px solid var(--line); padding: 4px 0 10px; }
.fields-editor .fgroup .frow { border-bottom: 0; }
.fields-editor .frow input, .fields-editor .frow select, .fields-editor .frow textarea { width: 100%; max-width: none; min-height: 0; }
.fields-editor .frow textarea { height: 56px; }
.fields-editor .head { font-size: 14px; color: var(--muted); font-weight: bold; }
.fields-editor .frow .ctl { display: flex; gap: 2px; }
.center { text-align: center; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 8px; }
.checks label { display: inline-block; margin-right: 12px; }
.badge { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--error); color: #fff; font-size: 13px; line-height: 22px; font-weight: 700; text-align: center; margin-left: 4px; }
.status { display: inline-block; padding: 1px 12px; border-radius: 999px; background: var(--key-50); border: 1px solid var(--key-200); color: var(--key-hover); font-weight: 700; font-size: 14px; }
.proc { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.lookup-box { position: relative; max-width: 480px; }
.lookup-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: var(--paper); border: 1px solid var(--gray-420); border-radius: var(--radius); box-shadow: var(--elev-2); max-height: 240px; overflow: auto; }
.lookup-list div { padding: 8px 12px; cursor: pointer; }
.lookup-list div:hover { background: var(--hover-bg); }
.files li { margin: 2px 0; }
.refval { color: var(--muted); font-size: 14px; }
.tilemap { position: relative; overflow: hidden; background: var(--gray-100); border: 1px solid var(--line); border-radius: var(--radius); user-select: none; touch-action: none; cursor: grab; }
.tilemap.dragging { cursor: grabbing; }
.tilemap .layer { position: absolute; left: 0; top: 0; }
.tilemap img.tile { position: absolute; width: 256px; height: 256px; pointer-events: none; image-rendering: auto; }
/* 地図のピン: 赤い大きめのしずく形（中に白い丸）。先端（回した後の下の角）が場所に来るよう、高さ + はみ出し（34 × 0.21 ≒ 7px）だけ上にずらす */
.tilemap .pin { position: absolute; width: 34px; height: 34px; margin: -41px 0 0 -17px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #d93025; border: 3px solid #ffffff; box-shadow: -2px 3px 6px rgba(0,0,0,.45); cursor: pointer; z-index: 1; }
.tilemap .pin::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #ffffff; }
.tilemap .pin.sel { background: #a50e0e; z-index: 2; box-shadow: 0 0 0 4px rgba(217,48,37,.35), -2px 3px 6px rgba(0,0,0,.45); }
.tilemap .pin:hover { filter: brightness(1.12); z-index: 3; }
.tilemap .ctl { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 3; }
.tilemap .ctl button { width: 36px; height: 36px; min-height: 0; padding: 0; font-size: 20px; line-height: 1; }
.tilemap .attr { position: absolute; right: 4px; bottom: 2px; font-size: 12px; color: #333; background: rgba(255,255,255,.8); padding: 0 4px; z-index: 3; }
.tilemap .popup { position: absolute; z-index: 4; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--elev-2); padding: 8px 12px; font-size: 14px; width: max-content; min-width: 140px; max-width: 280px; transform: translate(-50%, calc(-100% - 50px)); }
.tilemap .notile { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--muted); font-size: 14px; text-align: center; z-index: 1; pointer-events: none; }
.locwrap { max-width: 640px; }
.cfg { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 14px; padding: 2px 0 6px 32px; }
.cfg input, .cfg select { width: auto; max-width: 320px; }
.cfg textarea { width: 420px; min-height: 36px; height: 36px; }
.colrow { display: grid; grid-template-columns: 1fr 1fr 110px 60px 1.4fr 30px; gap: 4px; margin: 2px 0; }
.colrow input, .colrow select { width: 100%; max-width: none; }
table.sub { border-collapse: collapse; margin: 4px 0; }
table.sub th, table.sub td { border: 1px solid var(--gray-420); padding: 4px 6px; }
table.sub th { background: var(--gray-50); font-weight: 700; font-size: 14px; }
table.sub input, table.sub select { width: 100%; max-width: none; min-width: 80px; padding: 3px 8px; min-height: 36px; border-radius: 4px; font-size: 14px; }
table.sub td.calc { text-align: right; color: var(--muted); }
.calcval { font-weight: bold; padding: 6px 0; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal .dow { text-align: center; font-size: 14px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal .day { background: var(--paper); border: 1px solid var(--line); min-height: 100px; padding: 4px 6px; font-size: 13px; line-height: 1.5; }
.cal .day.other { background: var(--gray-50); color: var(--muted); }
.cal .day .n { font-weight: bold; margin-bottom: 2px; }
.cal .day.today { border: 2px solid var(--key); } .cal .day.today .n { color: var(--key); }
.cal .ev { display: block; background: var(--key-50); border-left: 4px solid var(--key); text-decoration: none; padding: 1px 4px; margin: 2px 0; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal .ev:hover { background: var(--hover-bg); text-decoration: underline; }
.comment { padding: 8px 0; border-bottom: 1px solid var(--line); }
.comment .who { font-weight: bold; }
.comment .body { white-space: pre-wrap; margin-top: 2px; }
.hist { font-size: 14px; }
.hist .h { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.hist .d { color: var(--muted); margin-left: 12px; }
.selcol { width: 24px; }
.fmt-red { background: #fdeeee; color: #a90000; } .fmt-orange { background: #ffeee2; color: #8b3200; } .fmt-yellow { background: #fbf5e0; color: #6e5600; }
.fmt-green { background: #e6f5ec; color: #0c472a; } .fmt-blue { background: #e8f1fe; color: #00118f; } .fmt-gray { background: #f2f2f2; color: #333333; }
.fmt-bold { font-weight: bold; }
tr.rec td.fmt-red, tr.rec td.fmt-orange, tr.rec td.fmt-yellow, tr.rec td.fmt-green, tr.rec td.fmt-blue, tr.rec td.fmt-gray { background-clip: padding-box; }
table.sheet td.editable { cursor: cell; }
table.sheet td.editable:hover { outline: 2px dashed var(--key); outline-offset: -2px; }
table.sheet td.editing { padding: 0; }
table.sheet td.editing input, table.sheet td.editing select { width: 100%; max-width: none; border-radius: 0; border: 2px solid var(--accent); }
table.sheet td.saved { animation: flashok 1s; }
@keyframes flashok { from { background: var(--key-100); } to { background: transparent; } }
.gantt { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-color: var(--card-line); border-radius: var(--radius); }
.gantt table { border-collapse: collapse; font-size: 13px; }
.gantt th, .gantt td { border-right: 1px solid var(--gray-100); padding: 0; height: 26px; }
.gantt th { background: var(--gray-50); color: var(--ink); font-weight: normal; min-width: 22px; text-align: center; position: sticky; top: 0; }
.gantt th.wk, .gantt td.wk { background: var(--gray-50); }
.gantt th.today, .gantt td.today { background: var(--warn-bg); }
.gantt td.name { position: sticky; left: 0; background: var(--paper); min-width: 220px; max-width: 260px; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-right: 1px solid var(--line); z-index: 1; }
.gantt .bar { display: block; height: 16px; margin: 5px 0; background: var(--key-600); border-radius: 3px; }
.gantt .bar.done { background: var(--gray-420); }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; border: 1px solid var(--line); }
.dash { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dash .panel { background: var(--paper); border: 1px solid var(--line); border-color: var(--card-line); box-shadow: var(--card-shadow); border-radius: var(--radius); padding: 12px 14px; min-height: 120px; position: relative; }
.dash .panel.full { grid-column: 1 / -1; }
.dash .panel h3 { margin: 0 0 8px; font-size: 16px; color: var(--ink); }
.dash .panel .tools { position: absolute; right: 8px; top: 8px; display: flex; gap: 4px; }
.dash .stat { font-size: 36px; font-weight: 700; color: var(--key); margin: 8px 0 2px; }
.dash .stat small { font-size: 14px; color: var(--muted); font-weight: normal; margin-left: 6px; }
.dash .legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; margin-top: 6px; }
.dash .legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--sw); margin-right: 5px; vertical-align: -1px; }
.dash svg text { font-family: inherit; }
.dash .pivot td.heat { text-align: right; }
.dash .tbl-wrap { overflow-x: auto; }
.chart-tip { position: fixed; z-index: 20; background: var(--paper); border: 1px solid var(--gray-420); border-radius: var(--radius); box-shadow: var(--elev-2); padding: 6px 10px; font-size: 14px; pointer-events: none; }
.panel-editor { background: var(--gray-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; margin-bottom: 10px; }
.panel-editor .row > * { margin-bottom: 4px; }
@media (max-width: 800px) { .dash { grid-template-columns: 1fr; } }
.related h3 { font-size: 16px; margin: 12px 0 4px; }
.sub { font-size: 14px; color: var(--muted); display: block; margin-top: 4px; }
.lk-cfg { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 14px; padding: 2px 0 4px 32px; }
.lk-cfg select, .lk-cfg input { width: auto; max-width: 260px; }
.arow { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr 40px; gap: 6px; padding: 4px 0; }
.arow select, .arow input { width: 100%; max-width: none; }
.arow .cfg { padding: 0 0 8px 0; border-bottom: 1px dashed var(--line); }
.arow .cfg select, .arow .cfg input { width: auto; max-width: 240px; }
.arow .cfg select[multiple] { min-width: 140px; }
.chart-bar { fill: var(--key-600); }
.chart-bar:hover { fill: var(--key); }
.chart-label { font-size: 13px; fill: var(--ink); }
.chart-val { font-size: 13px; fill: var(--muted); }
.notif { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: baseline; }
.notif.unread { font-weight: bold; background: var(--key-50); border-left: 4px solid var(--key); padding-left: 10px; margin-left: -14px; } /* 未読は太字だけでなく、色と左の線でも分かるように */
.notif .when { color: var(--muted); font-size: 14px; white-space: nowrap; font-weight: normal; }
tr.unread-row td { font-weight: bold; }
dl.meta { display: grid; grid-template-columns: 100px 1fr; gap: 4px 12px; font-size: 14px; color: var(--muted); margin: 0; }
dl.meta dd { margin: 0; }
@media (max-width: 800px) { .fields-editor .frow { grid-template-columns: 1fr 1fr; } }
/* 登録・更新のボタンの行は、入力欄の直後に置き、長い入力画面でも画面の下に出し続ける */
.form-actions { position: sticky; bottom: 0; z-index: 5; background: var(--bg); padding: 10px 0; margin: 0 0 16px; border-top: 1px solid var(--line); }
/* 背の低い画面でも、固定の「登録 / キャンセル」の帯が下の入力欄・一覧に重ならないよう、直前の内容の下に余白を空ける */
.form-actions { box-shadow: 0 -8px 8px -8px rgba(0,0,0,.15); } .form-actions + * { margin-top: 12px; }
form + .form-actions, .card + .form-actions { margin-top: 24px; }
/* 1101〜1360px（ノート PC の 1280px など）では、項目の間を少し詰めて 1 行に収める */
@media (min-width: 1101px) and (max-width: 1360px) { header { gap: 4px 11px; padding: 0 14px; } }
/* 幅の狭い画面（タブレット縦など）では、ヘッダーの項目の間を詰めて折り返しを減らす */
@media (max-width: 1100px) { header { gap: 2px 10px; padding: 0 12px; } header a, header details.navmenu > summary { font-size: 14px; } header .who .who-name, header .who.demo .muted { display: none; } }
/* 幅が狭くても、顔写真（名前のメニュー）は残す。設定とログアウトはこの中にあるので、隠すと入れなくなる */
/* 文字の長い中身を持つボタンは折り返してよい（予定・人を選ぶ一覧・リンク・投票の選択肢） */
.evt, .pp-row, button.link, .live-choices button, .mcell button { white-space: normal; }
/* 画面の色を選ぶ見本（00-base.js の themePicker） */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.theme-sw { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px; white-space: normal; text-align: left; border: 2px solid var(--line); background: var(--paper); color: var(--ink); min-height: 0; }
.theme-sw:hover { background: var(--paper); text-decoration: none; border-color: var(--key-200); }
.theme-sw.on { border-color: var(--key); box-shadow: 0 0 0 2px var(--key-200); }
.theme-prev { display: flex; gap: 6px; padding: 8px; border: 1px solid; border-radius: 6px; } .theme-prev > span { font-size: 12px; padding: 2px 8px; border-radius: 4px; font-weight: 700; }
.theme-name { font-weight: 700; font-size: 14px; } .theme-note { font-size: 12px; color: var(--muted); }

/* 入力アシスタント（public/js/31-assist.js）: 左のパネル。開いている間は本文を右へずらす。狭い画面では本文の上に重ねる */
#assistBtn { display: none; position: fixed; left: 12px; bottom: 12px; z-index: 24; padding: 6px 12px; min-height: 0; border-radius: 8px; background: var(--key); color: var(--on-key); border-color: var(--key); font-size: 14px; font-weight: 700; box-shadow: var(--elev-2); white-space: nowrap; }
body:not(.logged-out) #assistBtn { display: block; } body.assist-open #assistBtn, body:not(.logged-out) #assistBtn[hidden] { display: none; } /* 横書きの小さなボタンを左下に置く（縦書きの文字が重なり、本文の左端を隠していたため）。AI が使えず、入れられる欄も無い画面では出さない（assistTabSync） */
#assistBtn:hover { background: var(--key-hover); }
#assistPanel { display: none; position: fixed; left: 0; bottom: 0; width: 340px; z-index: 25; overflow-y: auto; background: var(--paper); border-right: 1px solid var(--line); box-shadow: var(--elev-2); padding: 12px 14px; }
body.assist-open #assistPanel { display: block; }
body.assist-open main { margin-left: 340px; }
@media print { #assistBtn, #assistPanel { display: none !important; } body.assist-open main { margin-left: auto; } }
@media (max-width: 900px) { #assistPanel { width: 100%; } body.assist-open main { margin-left: auto; } }
#assistPanel h2 { font-size: 17px; } #assistPanel h3 { font-size: 15px; margin: 4px 0 6px; }
.as-sec { border-top: 1px solid var(--line); padding: 10px 0; }
.as-note { font-size: 13px; margin: 6px 0 0; }
.as-res { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
.as-advice { font-size: 14px; line-height: 1.7; }
/* AI の答えの吹き出し（31-assist.js の assistBubble）。自分の質問は右、AI の答えは左 */
.as-chat { display: flex; flex-direction: column; gap: 10px; }
.as-bubble { display: flex; gap: 6px; align-items: flex-start; }
.as-bubble .as-body { padding: 8px 12px; border-radius: 12px; min-width: 0; overflow-wrap: anywhere; }
.as-bubble.me { justify-content: flex-end; }
.as-bubble.me .as-body { background: var(--key-50); color: var(--ink); border-top-right-radius: 4px; max-width: 85%; white-space: pre-wrap; font-size: 14px; }
.as-bubble.ai .as-body { background: var(--paper); border: 1px solid var(--line); border-top-left-radius: 4px; flex: 1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.as-who { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--key); color: var(--on-key); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.as-advice .as-h { font-weight: 700; color: var(--key); margin: 10px 0 2px; padding-left: 8px; border-left: 3px solid var(--key); line-height: 1.4; }
.as-advice .as-h:first-child { margin-top: 0; }
.as-advice .as-p { margin: 4px 0; white-space: pre-wrap; }
.as-advice .as-list { margin: 2px 0 6px; padding-left: 1.3em; }
.as-advice .as-list li { margin: 2px 0; }
.as-bubble .as-note { margin-top: 8px; font-size: 12px; }
.as-fill { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; font-size: 14px; }
.as-fill > span { display: flex; flex-direction: column; min-width: 0; } .as-val { white-space: pre-wrap; word-break: break-all; color: var(--gray-800); }

/* 顔写真（public/js/32-career.js）。無い時は名前の 1 文字目の丸 */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; object-fit: cover; flex-shrink: 0; vertical-align: middle; background: var(--key-50); color: var(--key-hover); font-weight: 700; border: 1px solid var(--line); }
header .who-menu > summary { display: inline-flex; align-items: center; gap: 6px; padding: 10px 2px 7px; font-size: 14px; color: var(--hd-ink, var(--gray-700)); }
header .who-menu .who-name { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
header .menu.menu-right { left: auto; right: 0; } header .who-dept { padding: 6px 16px; font-size: 13px; color: var(--muted); } header .who-dept:empty { display: none; }
.dir-name { white-space: nowrap; } .dir-name .avatar { margin-right: 8px; }
.si-photo { display: flex; flex-direction: column; align-items: center; }
.si-list { display: flex; flex-direction: column; gap: 2px; min-width: 260px; }
.si-row { display: grid; grid-template-columns: 6em 1fr; gap: 8px; }
.cr-row { border-bottom: 1px dashed var(--line); padding: 6px 0; }

/* なんでも検索（public/js/33-search.js） */
#hdrSearch { margin: 0 6px 0 0; } #hdrSearch input:focus { width: 14em; }
#hdrSearch input { transition: width .15s; width: 9em; min-height: 32px; padding: 3px 10px; font-size: 14px; border-radius: 16px; }
.ss-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; } .ss-kinds a { font-size: 14px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); text-decoration: none; }
.ss-kinds a:hover { border-color: var(--key); color: var(--key); }
.ss-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 10px; align-items: start; }
@media (max-width: 900px) { .ss-groups { grid-template-columns: 1fr; } #hdrSearch input { width: 9em; } }
.ss-group h2 { margin: 0 0 6px; font-size: 16px; } .ss-list { list-style: none; margin: 0; padding: 0; }
.ss-list li { padding: 5px 0; border-top: 1px solid var(--gray-100); } .ss-list li:first-child { border-top: 0; }
.ss-sub { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; } .ss-more a { font-size: 14px; }

/* アプリのアイコン（public/js/00-base.js の appIconEl）。文字は白（どの色も白とのコントラスト比 4.5 以上） */
.app-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 8px; color: #ffffff; font-weight: 700; line-height: 1.1; text-align: center; overflow: hidden; vertical-align: middle; letter-spacing: 0; object-fit: cover; }
img.app-icon { background: var(--paper); border: 1px solid var(--line); }
.app-card .name-row { display: flex; gap: 10px; align-items: center; min-width: 0; }
.mini-apps a { display: inline-flex; align-items: center; gap: 6px; }
.app-title { display: flex; align-items: center; gap: 10px; }
/* アプリ一覧（表）のアプリ名は折り返しで潰れないよう幅を確保する。説明の列が残りを使う */
.list .app-name-col { min-width: 18em; width: 28%; }
.list td.app-name-col .app-title { font-weight: 600; }
.icon-sw { width: 28px; height: 28px; min-height: 0; padding: 0; border-radius: 6px; border: 2px solid transparent; } .icon-sw.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--paper) inset; }

/* DB の保守（public/js/34-db-console.js） */
.dbc { display: grid; grid-template-columns: 300px 1fr; gap: 12px; align-items: start; }
@media (max-width: 900px) { .dbc { grid-template-columns: 1fr; } }
.dbc-side { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 8px; }
.dbc-list { max-height: 70vh; overflow-y: auto; border: 1px solid var(--line); border-color: var(--card-line); border-radius: 8px; background: var(--paper); }
.dbc-item { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; width: 100%; text-align: left; white-space: normal; border: 0; border-bottom: 1px solid var(--gray-100); border-radius: 0; background: transparent; color: var(--ink); padding: 6px 10px; min-height: 0; font-weight: 400; }
.dbc-item.on { background: var(--key-50); color: var(--key-hover); font-weight: 700; } .dbc-item:hover { background: var(--gray-50); }
.dbc-name { font-family: Consolas, monospace; font-size: 14px; overflow-wrap: anywhere; } .dbc-rows { font-size: 12px; color: var(--muted); text-align: right; }
.dbc-note { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.dbc-main { min-width: 0; } .dbc-main .seg { margin-bottom: 8px; }
.list.dbc-grid td { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-family: Consolas, monospace; }
.dbc-sql { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--gray-50); padding: 8px; border-radius: 6px; font-size: 13px; }
.dbc-sqlin { width: 100%; font-family: Consolas, monospace; font-size: 14px; }
.dbc-dlg { max-width: min(720px, 94vw); width: 100%; } .dbc-edit { max-height: 50vh; overflow-y: auto; }
.dbc-ai .pre-wrap { white-space: pre-wrap; line-height: 1.7; }
.symbol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; max-width: 520px; margin-top: 6px; }
.symbol-sw { width: 40px; height: 40px; padding: 0; border-radius: 8px; border: 2px solid transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; min-height: 0; }
.symbol-sw.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--bg); }
.app-icon svg { display: block; color: #fff; }
.copy-app-list { display: flex; flex-direction: column; gap: 4px; max-height: 40vh; overflow-y: auto; margin: 8px 0 12px; border: 1px solid var(--line); border-color: var(--card-line); border-radius: 8px; padding: 4px; background: var(--paper); }
.copy-app-item { display: flex; align-items: center; justify-content: flex-start; gap: 10px; text-decoration: none; text-align: left; border: 1px solid transparent; background: transparent; color: var(--text); padding: 6px 8px; border-radius: 6px; min-height: 0; font-weight: 400; }
.copy-app-item:hover { background: var(--key-50, #eef6f0); }
.copy-app-item.on { border-color: var(--key); background: var(--key-50, #eef6f0); font-weight: 700; }
.theme-group { grid-column: 1 / -1; font-weight: 700; margin: 10px 0 0; }
/* 出退勤（public/js/35-attendance.js） */
.att-punch { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.att-punch button { min-width: 7.5em; font-size: 17px; }
.att-ot { margin-top: 4px; }
.att-bar { height: 10px; border-radius: 5px; background: var(--gray-100); overflow: hidden; margin: 4px 0; }
.att-bar > span { display: block; height: 100%; background: var(--key); border-radius: 5px; }
.att-bar > span.near { background: var(--warn); } .att-bar > span.over { background: var(--error); }
.att-over { color: var(--error); }
.att-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.att-card { background: var(--paper); border: 1px solid var(--card-line); border-radius: var(--radius); padding: 8px 12px; box-shadow: var(--card-shadow); }
.att-card b { font-size: 20px; display: block; }
table.att-month tr.att-off td { background: var(--gray-50); color: var(--muted); }
tr.att-row-over td { background: var(--error-bg); }
.tilemap .map-layer { position: absolute; left: 8px; top: 8px; z-index: 3; min-height: 32px; padding: 2px 8px; font-size: 14px; background: var(--paper); border: 1px solid var(--card-line); border-radius: 6px; box-shadow: var(--card-shadow); width: auto; }

/* システム設定: ヘッダーのメニューの並び */
.nav-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.nav-cols h3 { margin: 0 0 6px; font-size: 15px; }
ol.nav-order { margin: 0; padding-left: 28px; }
ol.nav-order li { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px solid var(--line); }
ol.nav-order .nav-lab { flex: 1; }
/* 出退勤: 勤務形態（36-attendance-admin.js）・月の表の勤務と遅刻・早退 */
.att-month td.att-plan { white-space: nowrap; font-size: 14px; }
.att-late { color: var(--error); font-size: 12px; font-weight: 700; }
.att-wd { display: inline-flex; align-items: center; gap: 2px; margin-right: 6px; }
.att-prof-editor { background: var(--gray-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.sh-brushes { gap: 6px; margin-bottom: 8px; } .sh-brushes button[aria-pressed="true"] { background: var(--key); color: var(--on-key); border-color: var(--key); }
table.sh-grid th, table.sh-grid td.sh-cell { min-width: 34px; text-align: center; padding: 4px 2px; font-size: 13px; }
table.sh-grid td.sh-cell { cursor: pointer; color: var(--muted); user-select: none; }
table.sh-grid td.sh-cell.set { color: var(--ink); font-weight: 700; background: var(--key-50); }
table.sh-grid td.sh-cell.off { background: var(--gray-100); }
table.sh-grid td.sh-cell.pending { color: var(--ink); font-weight: 700; background: var(--warn-bg); outline: 2px solid var(--warn, #b45309); outline-offset: -2px; }
table.sh-grid td.sh-cell:hover { outline: 2px solid var(--key); outline-offset: -2px; }
table.sh-grid th.sat { color: var(--link); } table.sh-grid th.sun { color: var(--error); } table.sh-grid th .wd { font-weight: 400; font-size: 11px; }
/* データを SQL で調べる（37-data-sql.js） */
.dsql { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 16px; align-items: start; } .dsql > div { min-width: 0; }
.dsql aside { background: var(--paper); border: 1px solid var(--card-line); border-radius: var(--radius); padding: 10px 12px; max-height: 75vh; overflow: auto; }
.dsql-tables details { border-bottom: 1px solid var(--line); padding: 4px 0; } .dsql-tables summary { cursor: pointer; }
ul.dsql-cols { margin: 2px 0 6px; padding-left: 16px; font-size: 13px; } ul.dsql-cols button.link { font-family: monospace; }
@media (max-width: 800px) { .dsql { grid-template-columns: 1fr; } .dsql aside { max-height: 40vh; } }
/* 出退勤 第 2 段階: 月次の点検の項目・他律的業務の部署の選択 */
ul.att-issues { margin: 0; padding-left: 18px; font-size: 13px; } ul.att-issues li { margin: 1px 0; }
.att-heavy { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 10px; background: var(--paper); }
.att-rules input[type=number] { width: 5.5em; min-width: 0; } .att-rules td { white-space: nowrap; } .att-rules td label.att-wd { white-space: nowrap; }
.att-rules td:has(label.att-wd + label.att-wd) { white-space: normal; min-width: 14em; }
.att-numu { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
/* 出退勤 第 3 段階: 振替・代休・出張・研修の印、月の締め */
.att-tag { display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 8px; background: var(--gray-100); margin-top: 2px; white-space: nowrap; }
.att-tag[class*="cat-"] { background: color-mix(in srgb, var(--cat, var(--key)) 18%, var(--paper)); }
.att-close { border-left: 4px solid var(--warn); } .att-close.closed { border-left-color: var(--key); }
/* e ラーニング（38-elearning.js） */
.el-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-bottom: 12px; }
.el-card { display: block; background: var(--paper); border: 1px solid var(--card-line); border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 10px 14px; color: var(--ink); text-decoration: none; }
.el-card:hover { background: var(--hover-bg); text-decoration: none; }
.el-st { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--gray-100); color: var(--ink); white-space: nowrap; }
.el-st-done { background: var(--key); color: var(--on-key); } .el-st-failed { background: var(--error-bg); color: var(--error); } .el-st-watched { background: var(--warn-bg); color: var(--ink); } .el-st-watching { background: var(--key-100); color: var(--ink); }
.el-player { max-width: 960px; } .el-video { width: 100%; max-height: 70vh; background: #000; border-radius: var(--radius); }
fieldset.el-q { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; margin: 0 0 10px; } fieldset.el-q legend { font-weight: 700; padding: 0 4px; }
fieldset.el-q.ok { border-color: var(--success); border-width: 2px; } fieldset.el-q.ng { border-color: var(--error); border-width: 2px; }
fieldset.el-q.el-q-blank { border-color: var(--error); border-width: 2px; background: color-mix(in srgb, var(--error) 8%, transparent); }
.el-score { margin-top: 8px; padding: 10px 14px; border: 2px solid var(--line); border-radius: var(--radius); } .el-score.el-pass { border-color: var(--success); } .el-score.el-fail { border-color: var(--error); } .el-score-n { font-size: 32px; font-weight: 700; }
.el-q-text { margin-bottom: 4px; white-space: pre-wrap; } label.el-opt { display: block; padding: 4px 0; cursor: pointer; } .el-explain { margin-top: 6px; font-weight: 700; }
.el-optrow { margin: 4px 0; } .el-optrow input[type=text] { flex: 1; min-width: 0; } .el-done { border-left: 4px solid var(--key); } .el-pass { border-left-color: var(--key); }
/* @メンションの候補（39-mention.js） */
.mention-wrap { position: relative; } .mention-wrap > textarea { width: 100%; }
ul.mention-box { position: absolute; left: 0; top: 100%; z-index: 30; margin: 2px 0 0; padding: 4px 0; list-style: none; min-width: 240px; max-width: 100%; background: var(--paper); border: 1px solid var(--card-line); border-radius: var(--radius); box-shadow: var(--elev-1); }
ul.mention-box li { padding: 4px 12px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } ul.mention-box li.on, ul.mention-box li:hover { background: var(--hover-bg); }
/* 出張・旅費（40-travel.js） */
.trv-st { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--gray-100); color: var(--ink); white-space: nowrap; }
.trv-pending, .trv-claimed { background: var(--warn-bg); } .trv-ordered { background: var(--key-100); } .trv-settled { background: var(--key); color: var(--on-key); } .trv-rejected, .trv-returned { background: var(--error-bg); color: var(--error); } .trv-cancelled { color: var(--muted); }
table.kv th { text-align: left; white-space: nowrap; padding: 4px 16px 4px 0; color: var(--muted); font-weight: 700; vertical-align: top; } table.kv td { padding: 4px 0; white-space: pre-wrap; }
.trv-decide { border-left: 4px solid var(--key); } table.trv-lines td { vertical-align: middle; } table.trv-lines input[type=text] { min-width: 7em; }
.trv-print { background: #fff; color: #000; padding: 24px; max-width: 800px; } .trv-print h1 { font-size: 22px; text-align: center; border-bottom: 2px solid #000; padding-bottom: 6px; }
.trv-print-kv, .trv-print-lines { width: 100%; border-collapse: collapse; margin: 8px 0; } .trv-print-kv th, .trv-print-kv td, .trv-print-lines th, .trv-print-lines td { border: 1px solid #000; padding: 6px 8px; text-align: left; } .trv-print-kv th { width: 9em; background: #f0f0f0; } .trv-print-lines td.num { text-align: right; }
@media print { header, .no-print, #assistBtn { display: none !important; } .trv-print { padding: 0; } }
table.trv-lines input[type=number] { width: 6.5em; } table.trv-lines td:first-child { white-space: nowrap; }
/* 集計ボード（41-bi.js） */
iframe.bi-frame { width: 100%; height: calc(100vh - 190px); min-height: 560px; border: 1px solid var(--card-line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--card-shadow); }
/* 表のアプリ名は下線を付けない（行全体が押せるので、色と太さで示す） */
.list a.app-title { text-decoration: none; }
/* 画面の中の「✨ AI に〜を書いてもらう」ボタン（31-assist.js の assistButton） */
button.ai-btn, button.ai-btn:hover, button.ai-btn:focus { text-decoration: none; }
button.ai-btn { border-style: dashed; }
/* AI アシスタント: モードの説明・添付の札・答えの下の道具（24-ai.js） */
.ai-mode-desc { font-size: 13px; flex: 1; min-width: 12em; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ai-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--key-50); color: var(--ink); border-radius: 999px; padding: 2px 10px; font-size: 13px; }
.ai-chip button.link { padding: 0 2px; text-decoration: none; }
.ai-tools { margin-top: 6px; gap: 6px; }
.ai-mode-edit textarea { width: 100%; font-size: 13px; }
/* 入力した内容を消すボタン（00-base.js の clearBtn）。主な操作より目立たせない */
button.clear-btn { background: transparent; border-style: dashed; color: var(--muted); }
button.clear-btn:hover { color: var(--ink); }
/* キャリアシート: 項目ごとの見せ方の欄 */
.cr-head { margin-top: 4px; }
select.cr-vis { font-size: 13px; padding: 2px 6px; min-width: 0; width: auto; }
/* メモ帳（42-memo.js） */
.memo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; align-items: start; }
.memo-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 10px 12px; cursor: pointer; min-height: 80px; }
.memo-card.open { grid-column: 1 / -1; cursor: default; }
.memo-card .memo-body { white-space: pre-wrap; margin-top: 4px; font-size: 14px; overflow-wrap: anywhere; }
.memo-card .memo-at { font-size: 12px; margin-top: 6px; }
.memo-card:focus-visible { outline: 3px solid var(--key); }
.memo-yellow { background: color-mix(in srgb, #f6d860 22%, var(--paper)); }
.memo-green { background: color-mix(in srgb, #6cc08b 22%, var(--paper)); }
.memo-blue { background: color-mix(in srgb, #6aa5e0 22%, var(--paper)); }
.memo-pink { background: color-mix(in srgb, #e88fb4 22%, var(--paper)); }
.memo-gray { background: color-mix(in srgb, #9a9a9a 22%, var(--paper)); }
/* お知らせの重要度: 重要 = 赤い太字の見出し、緊急 = さらに大きな文字・太い枠でトップのいちばん上に出す */
.ann.important > .row .t, .ann.important > summary .t { color: var(--error); font-weight: 700; }
.ann.urgent { border: 2px solid var(--error); border-left-width: 8px; }
.ann.urgent > .row .t, .ann.urgent > summary .t { font-size: 1.35em; }
.ann.urgent .b { font-size: 1.1em; font-weight: 600; }
.ann-badge { display: inline-block; background: var(--error); color: #fff; font-size: 13px; font-weight: 700; border-radius: 4px; padding: 0 8px; margin-right: 8px; vertical-align: middle; }
.ann-badge.imp { background: transparent; color: var(--error); border: 1px solid var(--error); }
/* 添付欄の「画面の写しを貼り付け」枠（09-records.js） */
.paste-zone { flex: 1; min-width: 14em; border: 2px dashed var(--line); border-radius: var(--radius); padding: 6px 10px; font-size: 13px; color: var(--muted); cursor: text; display: flex; align-items: center; }
.paste-zone:focus, .paste-zone.over { border-color: var(--key); color: var(--ink); background: var(--key-50); outline: none; }
/* AI アシスタント「アプリを作る」の設計案の札 */
.ai-design { margin-top: 8px; }
.ai-design-fields { margin: 6px 0; padding-left: 20px; columns: 2 18em; font-size: 14px; }
/* ポイント（43-points.js） */
.pt-badge { display: inline-block; margin-left: 12px; font-size: 14px; font-weight: 600; background: var(--key-50); color: var(--ink); border-radius: 999px; padding: 2px 12px; text-decoration: none; vertical-align: middle; }
.pt-badge:hover { background: var(--hover-bg); }
.pt-num { font-size: 32px; font-weight: 800; color: var(--key); }
.pt-bar { height: 12px; background: var(--gray-200); border-radius: 999px; overflow: hidden; margin: 10px 0 4px; }
.pt-bar span { display: block; height: 100%; background: var(--key); }
.pt-missions { list-style: none; padding-left: 0; } .pt-missions li { padding: 4px 0; } .pt-missions li.done { color: var(--muted); }
tr.pt-me td { font-weight: 700; background: var(--key-50); }
.pt-title { display: inline-block; margin: 2px 8px 2px 0; padding: 1px 10px; border-radius: 999px; background: var(--key-50); font-weight: 600; }
th.pt-group { text-align: left; font-size: 13px; color: var(--muted); background: transparent; }
td.pt-minus { color: var(--danger); }
/* イラストボックス（44-illust.js） */
.illust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
button.illust-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--card-shadow); min-height: 0; }
button.illust-cell img { width: 100%; aspect-ratio: 1; object-fit: contain; }
button.illust-cell span { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.illust-dlg { width: min(720px, 94vw); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.illust-big { display: flex; justify-content: center; margin: 10px 0; }
.illust-big img { width: min(420px, 100%); height: auto; max-height: 55vh; object-fit: contain; }
.illust-big.checker { background: repeating-conic-gradient(var(--gray-200) 0% 25%, transparent 0% 50%) 50% / 20px 20px; border-radius: var(--radius); padding: 8px; }
/* 書式付きの入力欄（00-base.js の richEditor）と書式 */
.rt-editor { display: flex; flex-direction: column; gap: 4px; }
.rt-bar { display: flex; flex-wrap: wrap; gap: 4px; }
button.rt-btn { min-height: 28px; padding: 2px 10px; font-size: 13px; }
.rt-red { color: var(--error); font-weight: 700; }
.rt-big { font-size: 1.3em; font-weight: 700; }
.rt-editor .rich-prev { border: 1px dashed var(--line); border-radius: var(--radius); padding: 8px 12px; }
.comment .body .rich p, .ann .b .rich p { margin: 0.2em 0; }
.rt-bar button:nth-child(1) { font-weight: 800; } .rt-bar button:nth-child(2) { color: var(--error); font-weight: 800; } .rt-bar button:nth-child(3) { font-size: 15px; font-weight: 800; }
/* ホワイトボードの表（26-boards.js） */
.bd-table-tools { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border-left: 1px solid var(--line); }
.bd-table-tools[hidden] { display: none; }
textarea.bd-cell { padding: 4px 5px; line-height: 1.3; }
/* kintone から移す（public/js/45-kintone.js） */
.kt-pick { padding: 8px 0; border-top: 1px solid var(--line); }
.kt-pick:first-of-type { border-top: 0; }
.kt-pick input[type=file] { max-width: 100%; }
.kt-url { white-space: pre-wrap; word-break: break-all; font-size: 12px; background: var(--gray-50); color: var(--ink); padding: 8px; border-radius: 6px; }
.kt-notes { margin: 6px 0 10px; padding-left: 20px; font-size: 13px; }
/* メール（public/js/46-mail.js） */
.mail-login { max-width: 520px; display: flex; flex-direction: column; gap: 8px; }
.mail-login label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; }
.mail-login input, .mail-login select { max-width: 100%; }
.mail-bar { margin-bottom: 8px; gap: 8px; flex-wrap: wrap; }
.mail-wrap { display: grid; grid-template-columns: 180px 1fr; gap: 12px; align-items: start; }
.mail-folders { display: flex; flex-direction: column; gap: 2px; }
.mail-folders a { padding: 6px 10px; border-radius: 6px; text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }
.mail-folders a[aria-current] { background: var(--gray-100); font-weight: 700; }
.mail-list tr { cursor: pointer; }
.mail-list tr.unread td { font-weight: 700; }
.mail-list td.nowrap { white-space: nowrap; }
.mail-head { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0 0 10px; font-size: 14px; }
.mail-head dt { color: var(--muted); }
.mail-head dd { margin: 0; overflow-wrap: anywhere; }
.mail-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; border-top: 1px solid var(--line); padding-top: 10px; }
.mail-atts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.mail-compose label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; margin-bottom: 6px; }
.mail-compose input[type=text], .mail-compose textarea { max-width: none; width: 100%; font-weight: 400; }
@media (max-width: 720px) { .mail-wrap { grid-template-columns: 1fr; } .mail-folders { flex-direction: row; flex-wrap: wrap; } }
/* 電話メモ・在席表示・安否確認（public/js/47-office.js） */
.presence-chip { margin-left: 6px; font-size: 12px; }
.presence-bar { padding: 10px 14px; }
.phone-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.phone-memo.done { opacity: .65; }
.safety-banner { background: var(--error-bg); border: 2px solid var(--error); color: var(--error); font-weight: 700; padding: 10px 14px; border-radius: 8px; margin-bottom: 10px; }
.safety-banner a { color: var(--error); margin-right: 12px; }
.safety-me.urgent { border: 2px solid var(--error); }
.safety-choice { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.safety-opt { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; cursor: pointer; min-height: 44px; }
.safety-opt:has(input:checked) { border-color: var(--key); background: var(--gray-50); font-weight: 700; }
.safety-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; text-align: center; }
.safety-sum b { font-size: 22px; }
.safety-sum .warn b { color: var(--warn); }
.safety-sum .err b { color: var(--error); }
tr.safety-serious td { background: var(--error-bg); }
/* 項目の拡張（public/js/05-app-settings.js fieldExtPanel） */
.fext { width: 100%; margin-top: 4px; }
.fext summary { cursor: pointer; color: var(--link); font-size: 13px; }
.fext-grid { display: grid; grid-template-columns: max-content 1fr; gap: 6px 10px; align-items: center; padding: 6px 0 2px 8px; }
.fext-l { font-weight: 700; font-size: 13px; }
@media (max-width: 600px) { .fext-grid { grid-template-columns: 1fr; } }
/* 文字起こし（public/js/48-stt.js） */
.stt-live { max-height: 360px; overflow-y: auto; line-height: 1.8; }
.stt-live p { margin: 0 0 6px; }
.stt-meter { width: 120px; height: 8px; border-radius: 4px; background: var(--gray-100); overflow: hidden; }
.stt-meter span { display: block; height: 100%; width: 0; background: var(--key); transition: width .1s; }
/* チャット（public/js/49-chat.js） */
.chat-badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--error); color: #fff; font-size: 11px; font-weight: 700; text-align: center; line-height: 18px; }
.chat-badge[hidden] { display: none; }
.chat-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 12px; align-items: start; }
.chat-rooms { display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 220px); overflow-y: auto; }
.chat-search { flex: 1; min-width: 0; }
.chat-room { display: grid; grid-template-columns: 1fr auto; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); }
.chat-room.on { border-color: var(--key); box-shadow: inset 3px 0 0 var(--key); }
.chat-room-name { font-weight: 700; overflow-wrap: anywhere; }
.chat-room-last { grid-column: 1 / -1; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-main { background: var(--paper); border: 1px solid var(--card-line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; min-height: 420px; }
.chat-head { border-bottom: 1px solid var(--line); padding-bottom: 6px; gap: 6px; flex-wrap: wrap; }
.chat-back { display: none; text-decoration: none; }
.chat-members { font-size: 12px; margin: 4px 0; }
.chat-msgs { flex: 1; overflow-y: auto; max-height: calc(100vh - 340px); min-height: 260px; padding: 6px 2px; }
.chat-msg { margin: 0 0 10px; max-width: 85%; }
.chat-msg.mine { margin-left: auto; }
.chat-msg.mine .chat-body { background: var(--gray-100); }
.chat-meta { font-size: 12px; display: flex; gap: 6px; }
.chat-body { white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; margin-top: 2px; }
.chat-quote { font-size: 12px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 6px; margin-top: 2px; }
.chat-acts { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 2px; font-size: 12px; }
.chat-react { border: 1px solid var(--line); border-radius: 12px; padding: 0 8px; min-height: 24px; background: var(--paper); font-size: 12px; }
.chat-react.on { border-color: var(--key); }
.chat-stamp summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 12px; padding: 0 8px; }
.chat-stamp[open] span { display: inline-flex; gap: 2px; margin-left: 4px; }
.chat-stamp button { min-height: 28px; padding: 0 4px; border: 0; background: none; font-size: 16px; }
.chat-read { margin-left: auto; font-size: 12px; } .chat-read.is-read { color: var(--success); font-weight: 700; }
.chat-reply-bar { font-size: 13px; background: var(--gray-50); padding: 4px 8px; border-radius: 6px; margin-top: 4px; }
.chat-input { display: flex; gap: 6px; align-items: flex-end; margin-top: 6px; }
.chat-input textarea { flex: 1; max-width: none; }
.chat-input .mention-wrap { flex: 1; } /* チャットは入力欄が画面の下にあるので、候補は欄の上に出す */ .chat-input ul.mention-box { top: auto; bottom: 100%; margin: 0 0 2px; }
.chat-pending { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; } .chat-pending[hidden] { display: none; }
.chat-note { font-size: 12px; margin-top: 4px; }
.chat-files { margin-top: 3px; font-size: 14px; } .chat-file .muted { margin-left: 6px; font-size: 12px; }
.chat-main.chat-drop { outline: 3px dashed var(--key); outline-offset: -3px; }
.chat-hit { display: block; text-decoration: none; color: var(--ink); margin-bottom: 6px; }
@media (max-width: 720px) {
  .chat-wrap { grid-template-columns: 1fr; }
  .chat-wrap.has-room .chat-rooms { display: none; }
  .chat-wrap:not(.has-room) .chat-main { display: none; }
  .chat-back { display: inline; }
  .chat-msg { max-width: 100%; }
}
/* 一覧の見出しの並べ替えボタン（見た目は見出しの文字のまま。キーボードで押せるようにボタンにしている） */
table.list th .th-sort { all: unset; cursor: pointer; font: inherit; color: inherit; white-space: nowrap; }
table.list th .th-sort:focus-visible { outline: 4px solid #000; outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus); }
/* 「本文へ移動」: ふだんは隠し、Tab で選んだ時だけ左上に出す */
a.skip { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--paper, #fff); color: var(--link); padding: 8px 12px; border: 2px solid #000; border-radius: 4px; }
a.skip:focus { top: 8px; }
/* 「その他」の中: 分類ごとの列（02-router.js の groupMoreMenu）。狭い画面では 1 列に戻す */
#moreMenu .menu { flex-direction: row; align-items: stretch; padding: 4px 0 6px; } /* 列の区切り線を下までそろえる */
#moreMenu .menu .menu-col { display: flex; flex-direction: column; min-width: 190px; }
#moreMenu .menu .menu-col + .menu-col { border-left: 1px solid var(--line); }
#moreMenu .menu .menu-head { font-size: 12px; font-weight: 700; color: var(--muted); padding: 8px 16px 2px; white-space: nowrap; }
@media (max-width: 800px) { #moreMenu .menu { flex-direction: column; max-height: calc(100vh - 70px); overflow-y: auto; } #moreMenu .menu .menu-col + .menu-col { border-left: 0; border-top: 1px solid var(--line); } }
/* 文書管理（public/js/51-docs.js・52-docs-draft.js） */
.dcm-st { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--gray-100); color: var(--ink); white-space: nowrap; }
.dcm-circulating, .dcm-returned { background: var(--warn-bg); } .dcm-approved, .dcm-issued { background: var(--key-100); } .dcm-completed { background: var(--key); color: var(--on-key); } .dcm-cancelled, .dcm-disposed, .dcm-transferred { background: var(--gray-100); color: var(--muted, #666); }
.dcm-decide { border-left: 4px solid var(--key); } .dcm-ret { border-left: 4px solid #b45309; } .dcm-mailinfo { border-left: 4px solid var(--key); }
.dcm-stage { margin: 6px 0; } .dcm-consult { border-left: 4px solid #6b7280; } tr.dcm-now td { background: var(--key-100); } .dcm-ok { font-weight: 700; }
.dcm-print { background: #fff; color: #000; padding: 24px; max-width: 800px; } .dcm-print h1 { font-size: 22px; text-align: center; letter-spacing: .3em; border-bottom: 2px solid #000; padding-bottom: 6px; } .dcm-print h2 { font-size: 15px; border-bottom: 1px solid #000; margin: 14px 0 6px; }
.dcm-print-seal { margin-left: auto; border-collapse: collapse; } .dcm-print-seal th, .dcm-print-seal td { border: 1px solid #000; padding: 4px 8px; min-width: 76px; height: 64px; text-align: center; vertical-align: top; font-size: 12px; white-space: pre-line; } .dcm-print-seal th { height: auto; font-size: 11px; background: #f3f4f6; }
.dcm-stamp { white-space: pre-line; } .dcm-print-seal td { vertical-align: middle; } /* 決裁欄の印影（52-docs-draft.js）。紙の日付印に倣って赤い丸に姓と日付 */ .dcm-seal { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 54px; height: 54px; border: 2px solid #c8161d; border-radius: 50%; color: #c8161d; line-height: 1.1; margin: 2px auto; -webkit-print-color-adjust: exact; print-color-adjust: exact; } .dcm-seal-name { font-size: 12px; font-weight: 700; white-space: nowrap; letter-spacing: -0.05em; border-bottom: 1px solid #c8161d; padding: 0 2px; } .dcm-seal-date { font-size: 10px; } .dcm-seal-note { font-size: 9px; } .dcm-stamp-sub { font-size: 10px; } .dcm-print-kv { width: 100%; border-collapse: collapse; margin: 10px 0; } .dcm-print-kv th, .dcm-print-kv td { border: 1px solid #000; padding: 4px 8px; text-align: left; vertical-align: top; } .dcm-print-kv th { width: 10em; white-space: nowrap; background: #f3f4f6; }
@media print { header, .no-print, #assistBtn { display: none !important; } .dcm-print { padding: 0; } @page { size: A4; margin: 15mm; } }
/* 1366 幅の PC でも、ヘッダーを 1 段に収める（お試し用の利用者の切替・ヘルプが 2 段目に落ちないように。1366×768 以上だけで使う前提）。間を詰め、検索欄と切替を少し短くする */
@media (max-width: 1500px) { header { gap: 4px 10px; } #hdrSearch input { width: 9em; } #hdrSearch input:focus { width: 12em; } header .who .demo-as { max-width: 130px; } }
header .nav-unset { font-size: 12px; margin-left: 2px; font-weight: 400; } header .nav-unset[hidden] { display: none; }
tr.hr-miss > td { background: var(--error-bg); } tr.hr-miss > td:first-child { box-shadow: inset 4px 0 0 var(--error); }
.card[hidden] { display: none; }
/* トップの欄: 見出しをつかんで並べ替える（04-top.js）。落とす先の欄に枠を出す */
.panel2 h2.drag-head { cursor: grab; } .panel2.dragging { opacity: 0.5; } .panel2.drop-to { outline: 3px dashed var(--key); outline-offset: 2px; }

/* 利用者一覧（B-27）: 列の途中で折り返さず、1366 幅では表を横に動かして見る */
.users-tbl th, .users-tbl td { white-space: nowrap; }
.users-tbl td .muted { white-space: normal; }
/* --- 承認・確認の受信箱（B-02 / B-10 / B-40）・操作の結果の枠（B-71）・画面内のダイアログ（B-35）・在席（B-39）--- */
.inbox-band { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px; padding: 8px 12px; border: 1px solid var(--warn-border); background: var(--warn-bg); border-radius: var(--radius); }
.inbox-band .inbox-total { font-weight: 700; font-size: 16px; color: inherit; text-decoration: none; }
.inbox-band .inbox-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; color: inherit; text-decoration: none; font-size: 14px; }
.inbox-band .inbox-chip b { color: var(--error); }
.inbox-bar { margin: 8px 0; position: sticky; top: 0; background: var(--paper); padding: 6px 0; z-index: 2; }
.inbox-group { margin-top: 16px; }
.inbox-table td, .inbox-table th { vertical-align: top; }
.result-box { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0 12px; padding: 10px 14px; border: 1px solid var(--success); background: #eaf6ee; color: var(--ink); border-radius: var(--radius); }
.result-box .ic { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--success); color: #fff; font-weight: 700; }
.result-box .rb-text { flex: 1; overflow-wrap: anywhere; }
.ask-dlg { max-width: min(520px, 94vw); }
.ask-dlg .ask-row { margin-top: 10px; } .ask-dlg .ask-label { font-weight: 700; margin-bottom: 4px; }
.ask-dlg .ask-opt { display: block; padding: 3px 0; }
/* 在席の札を名前の横に並べる（名前のメニューの下に回り込むと、ヘッダーが 2 段になる） */
header .who { display: inline-flex; align-items: center; gap: 4px; flex-wrap: nowrap; white-space: nowrap; }
header .hdr-presence { white-space: nowrap; flex: none; font-size: 12px; padding: 1px 8px; margin-left: 4px; min-height: 0; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
header .hdr-presence.p-in { background: #eaf6ee; border-color: var(--success); } header .hdr-presence.p-out, header .hdr-presence.p-meeting, header .hdr-presence.p-trip { background: var(--warn-bg); border-color: var(--warn-border); } header .hdr-presence.p-leave, header .hdr-presence.p-home { background: #eee; }
/* ヘッダーに「承認」「チャット」「在席の状態」を足した分、1366 幅でも 1 段に収まるよう詰める（B-01 / B-39） */
@media (max-width: 1500px) { header { padding: 0 12px; gap: 4px 8px; } #hdrSearch { margin-right: 0; } #hdrSearch input { width: 6.5em; } header .who .demo-as { max-width: 104px; } header .hdr-presence { margin-left: 0; padding: 0 6px; } }
/* 人事給与（53〜56-payroll*.js）: 支給明細・源泉徴収票の印刷、計算の流れの帯 */
.pay-slip { background: #fff; color: #000; padding: 24px; max-width: 820px; } .pay-slip h1 { font-size: 20px; text-align: center; letter-spacing: .2em; border-bottom: 2px solid #000; padding-bottom: 6px; }
.pay-kv, .pay-lines { width: 100%; border-collapse: collapse; margin: 8px 0; } .pay-kv th, .pay-kv td, .pay-lines th, .pay-lines td { border: 1px solid #000; padding: 4px 8px; text-align: left; font-weight: 400; } .pay-kv th, .pay-lines th { background: #f0f0f0; white-space: nowrap; }
.pay-cols { display: flex; gap: 12px; } .pay-col { flex: 1; } .pay-col h3 { margin: 6px 0 0; font-size: 14px; } .pay-lines td.num, td.num.strong { text-align: right; font-variant-numeric: tabular-nums; } td.strong { font-weight: 700; } td.neg { color: var(--error); }
.pay-total th, .pay-total td { font-weight: 700; background: #f7f7f7; } .pay-net { display: flex; justify-content: space-between; align-items: baseline; border: 2px solid #000; padding: 8px 12px; margin: 10px 0; font-size: 18px; } .pay-net strong { font-size: 22px; }
.pay-notes { font-size: 13px; margin: 6px 0; } .pay-wh-tbl th { width: 60%; }
.pay-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 6px 0; flex-wrap: wrap; } .pay-steps li { padding: 4px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); } .pay-steps li.done { background: var(--key); color: var(--on-key); border-color: var(--key); }
@media print { header, .no-print, #assistBtn { display: none !important; } .pay-slip { padding: 0; } @page { size: A4; margin: 15mm; } }
/* 災害モード（public/js/60〜62-disaster*.js） */
.sysnotice.danger { background: var(--error); color: #fff; border-bottom-color: var(--error-border); font-weight: 700; }
.sysnotice.danger a { color: #fff; text-decoration: underline; }
header a.dz-entry { background: var(--error); color: #fff; border-radius: 6px; padding: 2px 10px; font-weight: 700; }
.dz-topbtns { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.dz-topbtn { display: block; background: var(--error); color: #fff; border: 3px solid var(--error-border); border-radius: 10px; padding: 14px 18px; font-size: 18px; text-decoration: none; box-shadow: var(--card-shadow); }
.dz-topbtn:hover, .dz-topbtn:focus-visible { filter: brightness(1.1); }
.dz-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 10px 0; }
.dz-card { display: block; background: var(--paper); border: 1px solid var(--card-line); border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 10px 14px; text-decoration: none; color: var(--ink); }
.dz-card:hover { border-color: var(--key); }
.dz-card .dz-n { font-size: 32px; font-weight: 700; line-height: 1.1; } .dz-card .dz-l { font-weight: 700; } .dz-card .dz-s { color: var(--muted); font-size: 13px; }
.dz-card.warn { border-color: var(--warn-border); background: var(--warn-bg); } .dz-card.danger { border-color: var(--error); background: var(--error-bg); } .dz-card.danger .dz-n { color: var(--error); }
.dz-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.dz-map { width: 100%; } .dz-simple { width: 100%; height: auto; }
.dz-legend { display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0; font-size: 13px; } .dz-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.dz-pick-map { height: 260px; margin-top: 6px; }
.dz-chrono { max-height: 380px; overflow: auto; }
.dz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 6px 0; } .dz-grid.dz-big { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.dz-cell { font-size: 13px; } .dz-cap { overflow: hidden; text-overflow: ellipsis; }
.dz-thumb { display: block; background: var(--gray-100); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; } .dz-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dz-drop { min-width: 16em; padding: 8px 12px; }
.tilemap .pin.dz-report { background: #d97706; } .tilemap .pin.dz-shelter { background: #1d4ed8; } .tilemap .pin.dz-inquiry { background: #7e22ce; }
.dz-print table { width: 100%; }
@media print { #sysNotice, .dz-topbtns { display: none !important; } }
tr.hr-edit > td { background: var(--key-50); } td.hr-changed { background: var(--key-50); }
/* 財務会計（63〜65-finance*.js）: 金額の表・科目の木・決議書の印刷 */
.fin-tbl td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } .fin-tbl td.strong { font-weight: 700; } .fin-tbl td.neg { color: var(--error); }
.fin-tbl tr.fin-total td { font-weight: 700; border-top: 2px solid var(--line); }
.fin-tree, .fin-tree ul { list-style: none; padding-left: 1.2em; margin: 2px 0; } .fin-tree li { margin: 3px 0; }
.fin-form .fld { display: flex; flex-direction: column; gap: 2px; margin: 0 0 8px; max-width: 46em; } .fin-form .fld .lbl { font-weight: 700; font-size: 14px; }
.fin-print { background: var(--paper); color: var(--ink); padding: 24px; max-width: 820px; } .fin-print h1 { font-size: 20px; text-align: center; letter-spacing: .2em; border-bottom: 2px solid var(--ink); padding-bottom: 6px; }
.fin-print-kv { width: 100%; border-collapse: collapse; } .fin-print-kv th, .fin-print-kv td { border: 1px solid var(--ink); padding: 4px 8px; text-align: left; font-weight: 400; white-space: pre-wrap; } .fin-print-kv th { width: 28%; }
@media print { header, .no-print, #assistBtn { display: none !important; } .fin-print { padding: 0; } .fin-report table { font-size: 10pt; } @page { size: A4; margin: 15mm; } }
button.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline dotted; }
.help-here { text-align: right; font-size: 13px; margin: 0 0 4px; } .help-goal-list { columns: 2; column-gap: 24px; padding-left: 1.2em; } .help-goal-list li { margin: 4px 0; break-inside: avoid; } .help-toc input[type=search] { margin-bottom: 8px; }
/* 住民検索（04-search.js）: 住民状態のバッジ。住民以外（転出・死亡・消除）と支援措置対象は強い配色にする（設計書 §5.3） */
.res-status { display: inline-block; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 700; white-space: nowrap; vertical-align: middle; }
.res-status.gone { background: var(--error); border-color: var(--error); color: #fff; }
table.list tr.here td { background: var(--warn-bg); font-weight: 700; }
/* 住民情報の権限（31-resident-access.js）: 付けたグループ・例外の札。期限切れは薄く出す */
.res-chip { display: inline-flex; align-items: center; gap: 4px; margin: 2px 6px 2px 0; padding: 1px 4px 1px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; white-space: nowrap; }
.res-chip.expired { opacity: 0.6; border-style: dashed; }

/* AI の手伝いの印（どれが AI の機能かを、画面のどこでも同じ見た目で示す） */
.ai-chip { display: inline-block; padding: 0 6px; border-radius: 4px; background: #6d28d9; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; vertical-align: 1px; letter-spacing: .5px; }
.ai-tip { margin: 0 0 12px; padding: 10px 14px; border: 1px solid #c4b5fd; border-left: 4px solid #6d28d9; border-radius: 6px; background: #f5f3ff; color: var(--ink); line-height: 1.7; }
