/* 2026-10-23 all-R01: 担当・社内期日の明示編集（一覧は2回目）。 */
.pr-tasks .pr-taskedit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin: 8px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.pr-tasks .pr-taskedit > label { display: flex; flex-direction: column; gap: 4px; min-width: 0; cursor: default; }
.pr-tasks .pr-taskedit input, .pr-tasks .pr-taskedit select { box-sizing: border-box; min-width: 0; width: 100%; min-height: 44px; font-size: 16px; border-radius: 6px; }
.pr-taskedit__actions { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.pr-tasks .pr-taskedit button, .pr-tasks > ul > .pr-task > button.nx-btn { min-height: 44px; border-radius: 6px; }
.pr-tasks .pr-taskedit [hidden] { display: none; }
.pr-tasks .pr-taskedit > :first-child, .pr-taskedit__actions, .pr-taskedit > [role=status] { grid-column: 1 / -1; }
.pr-tasks .pr-task { border-radius: 6px; min-width: 0; }
/* 10/25 Z3: チェック欄のラベル全体と削除をPCでも押せる大きさにする。 */
.pr-tasks .pr-task > label { min-height: 44px; align-items: center; }
/* R19C-6: 暗い表示の未チェック枠を見つけやすくする。押せる範囲とチェック済みの色は保つ。 */
@media (prefers-color-scheme: dark) {
  :root:not([data-scheme="light"]) .pr-tasks .pr-task > label input[type="checkbox"]:not(:checked):not(:focus-visible) { outline: 1px solid var(--ink-2); outline-offset: 1px; }
}
:root[data-scheme="dark"] .pr-tasks .pr-task > label input[type="checkbox"]:not(:checked):not(:focus-visible) { outline: 1px solid var(--ink-2); outline-offset: 1px; }
.pr-tasks .pr-task > .pr-x { min-width: 44px; min-height: 44px; }
.pr-tasks .pr-task > label span, .pr-tasks .pp-who { overflow-wrap: anywhere; }
.pr-tasks .pr-task > .pr-taskedit { grid-column: 1 / -1; margin-left: 0; justify-self: stretch; }
.pr-tasks input:focus-visible, .pr-tasks select:focus-visible, .pr-tasks button:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
@media (max-width: 760px) {
  .ntask .nx-q, .pr-tasks .nx-q { min-width: 44px; min-height: 44px; }
  /* 2026-10-23 all-R01・3回目: 台帳10/14のスマホの枠・ボタンは6px。PCの既存値は保つ。 */
  .pr-tasks { border-radius: 6px; }
  .pr-tasks .pr-taskedit { grid-template-columns: minmax(0, 1fr); }
  .pr-tasks .pr-task > label { min-height: 44px; font-size: 16px; }
  .pr-tasks .pr-task > .pr-x { min-width: 44px; min-height: 44px; border-radius: 6px; }
  .pr-tasks .pr-taskedit > label { font-size: 16px; }
}

/* 2026-10-23 all-R01・2回目: 従来の.ppの絞り込みを作業担当に適用しない。 */
.ntask-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; border-bottom: 1px solid var(--line); }
.ntask-switch a, .ntask-pages a, .ntask-history, .ntask-message a, .ntask-preparation a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 8px; overflow-wrap: anywhere; }
.ntask-switch a[aria-current] { color: var(--acc); font-weight: 700; border-bottom: 2px solid var(--acc); }
.ntask .nx-judge__head { position: relative; }
.ntask-history { float: right; }
.ntask-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ntask-filter select { width: min(100%, 320px); min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; padding: 8px; background: var(--sheet); color: var(--ink); font-size: 16px; }
.ntask-filter button { min-height: 44px; border-radius: 6px; }
.ntask-total { color: var(--ink-2); margin: 16px 0 8px; }
.ntask-group { margin: 20px 0; }
.ntask-group h2 { font-size: 18px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.ntask-group h2 small { font-size: 14px; font-weight: 400; color: var(--ink-2); }
.ntask-rows { list-style: none; padding: 0; margin: 0; }
.ntask-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(100px, .3fr) minmax(100px, .3fr); gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ntask-row > * { min-width: 0; overflow-wrap: anywhere; }
.ntask-date { font-size: 14px; white-space: nowrap; }
.ntask-date strong { display: block; color: var(--bad); }
.ntask-name { display: flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 700; }
.ntask-content p { margin: 0; font-size: 14px; color: var(--ink-2); }
.ntask-stage { font-size: 13px; color: var(--ink-2); }
.ntask-person { font-size: 14px; }
.ntask-person > span { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.ntask-zero { color: var(--ink-2); font-size: 14px; }
.ntask-pages { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px; }
.ntask-message { border: 1px solid var(--line); border-radius: 6px; padding: 12px; overflow-wrap: anywhere; }
.ntask-preparation { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 8px; }
.ntask-preparation summary { min-height: 44px; padding: 8px; cursor: pointer; }
.ntask-preparation li { overflow-wrap: anywhere; }
.ntask a:focus-visible, .ntask select:focus-visible, .ntask button:focus-visible, .ntask summary:focus-visible, .ntask-switch a:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.pr-tasks .pr-task.is-task-target { outline: 2px solid var(--acc); outline-offset: 2px; }
.pr-tasks [data-task-heading]:focus, .pr-tasks > h3:focus { outline: 2px solid var(--acc); outline-offset: 2px; }
@media (hover: hover) { .ntask-name:hover, .ntask-switch a:hover { color: var(--acc); } }
@media (max-width: 760px) {
  .ntask-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; }
  .ntask-date, .ntask-content { grid-column: 1 / -1; }
  .ntask-date strong { display: inline; margin-left: 8px; }
  .ntask-person, .ntask-content p { font-size: 16px; }
  .ntask-filter label { flex-basis: 100%; }
  .ntask-filter select { flex: 1; width: 0; }
}

/* 10/25 W1: 件数帯は6区分。PCは同じ行、スマホは既存の3列を保つ。 */
@media (min-width: 761px) { .pp-kpi { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.pp-kpi [data-task-overdue-count] { display: inline-flex; align-items: center; min-width: 32px; min-height: 32px; }
@media (max-width: 760px) { .pp-kpi [data-task-overdue-count] { min-width: 44px; min-height: 44px; } }

/* 10/25 W3-6: 土日の小さな文字を薄くしない。既存の透明な44pxの当たりは保つ。 */
.pp-tl__day.is-we b, .pp-tl__day.is-we small { opacity: 1; }

/* 10/29 台帳: AI・人の統合タスク管理。10/29 改修で作り直し: カードの枠・タイトルの切り替え・列の見出しで絞り込み・表の下で1行追加・メモ */
.ntm-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.ntm-board input, .ntm-board select, .ntm-board button, .ntm-board textarea { min-height: 44px; border-radius: 6px; font-size: 16px; }
.ntm-check { display: inline-flex; flex-direction: row; align-items: center; min-height: 44px; gap: 8px; }
.ntm-check input[type=checkbox] { width: 22px; min-width: 22px; height: 22px; min-height: 22px; accent-color: var(--acc); }
.ntm-ai { flex: none; border: 1px solid var(--line); padding: 0 5px; border-radius: 4px; color: var(--acc); font-size: 11px; font-weight: 700; line-height: 1.6; }

/* カードの枠（ほかのメニューと同じ紙の面） */
.ntm-card { margin: 0 0 24px; padding: 12px 16px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--sheet); box-shadow: 0 1px 0 rgba(0, 0, 0, .03), 0 12px 28px -22px rgba(30, 20, 10, .45); }

/* タイトルの帯: 左に選ぶ欄、右に「＋ タイトルを追加」「ステータス設定」 */
.ntm-titlebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ntm-title-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-width: 0; flex: 1 1 420px; }
.ntm-title-pick > label { font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--ink-3); }
.ntm-title-pick select { flex: 1 1 320px; min-width: 0; max-width: 720px; min-height: 48px !important; padding: 6px 12px; border: 1px solid var(--line-2, var(--line)); background: var(--sheet); color: var(--ink); font-family: var(--serif, inherit); font-size: 21px !important; font-weight: 700; letter-spacing: .02em; }
.ntm-titlebar__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ntm-mini { min-height: 36px !important; padding: 0 12px; font-size: 13px !important; }
.ntm-mini-link { display: inline-flex; align-items: center; min-height: 36px; padding: 0 4px; font-size: 13px; font-weight: 700; color: var(--acc); }
.ntm-title-sub { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); }
.ntm-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 8px 0 2px; padding-left: 10px; font-size: 13px; color: var(--ink-3); }
.ntm-sub__right { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; margin-left: auto; }
/* 見出しの ▼（絞り込み・並べ替えの小さな一覧） */
.ntm-hf { position: relative; display: inline-block; }
.ntm-hf > summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; cursor: pointer; color: inherit; border-radius: 6px; padding: 0 4px; margin-left: -4px; }
.ntm-hf > summary::-webkit-details-marker { display: none; }
.ntm-hf__v { font-size: 9px; opacity: .7; }
.ntm-hf.is-on > summary { color: var(--acc); }
.ntm-hf > summary b { padding: 0 6px; border-radius: 999px; font-size: 11px; color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); letter-spacing: 0; }
@media (hover: hover) { .ntm-hf > summary:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); } }
.ntm-hf[open] > summary { background: color-mix(in srgb, var(--acc) 10%, transparent); }
.ntm-hf__menu { position: absolute; top: calc(100% + 4px); left: -4px; z-index: 20; min-width: 150px; max-height: 320px; overflow: auto; padding: 4px; border: 1px solid var(--line-2, var(--line)); border-radius: 8px; background: var(--sheet); box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .45); text-transform: none; letter-spacing: 0; }
.ntm-hf__menu a { display: flex; align-items: center; min-height: 36px; padding: 0 10px; border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.ntm-hf__menu a.is-on { color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, transparent); }
.ntm-hf__menu a.is-on::before { content: "✓"; margin-right: 6px; }
@media (hover: hover) { .ntm-hf__menu a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); } }
.ntm-hf__menu hr { margin: 4px 2px; border: 0; border-top: 1px solid var(--line); }
.ntm-hsort { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.ntm-hsort.is-on { color: var(--acc); } .ntm-hsort.is-on::after { content: " ↑"; }
.ntm-headacts { display: flex; justify-content: flex-end; gap: 4px; }
.ntm-hbtn { min-height: 28px !important; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--sheet); color: var(--ink-2); font-size: 12px !important; font-weight: 700; cursor: pointer; }
.ntm-hbtn:disabled { opacity: .45; cursor: default; }
@media (hover: hover) { .ntm-hbtn:not(:disabled):hover { border-color: var(--acc); color: var(--acc); } }
.ntm-bulk__right { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-left: auto; }
.ntm-toggle { display: inline-flex; align-items: center; min-height: 36px; font-size: 13px; font-weight: 700; color: var(--acc); }
.ntm-count { font-size: 13px; color: var(--ink-3); }

/* 表: 区切りは淡い線と余白、1行おきにごく淡い地（太い黒線は使わない） */
.ntm-tablewrap { overflow-x: auto; }
.ntm-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.ntm-table th { position: sticky; top: 0; z-index: 1; padding: 6px 10px; text-align: left; vertical-align: middle; font-size: 12px; font-weight: 800; letter-spacing: .05em; color: var(--ink-3); background: var(--sheet); border-bottom: 1px solid var(--line-2, var(--line)); white-space: nowrap; }
.ntm-table th label { display: flex; flex-direction: column; gap: 4px; }
.ntm-table th select { min-height: 32px !important; padding: 2px 6px; font-size: 13px !important; font-weight: 600; color: var(--ink); background: var(--sheet-2, var(--sheet)); border: 1px solid var(--line); max-width: 140px; }
.ntm-sort { color: inherit; text-decoration: none; }
.ntm-sort::after { content: " ↕"; opacity: .45; }
.ntm-sort.is-on { color: var(--acc); } .ntm-sort.is-on::after { content: " ↑"; opacity: 1; }
.ntm-table td { padding: 10px; vertical-align: top; border-bottom: 1px solid var(--line); }
.ntm-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--ink) 2.5%, transparent); }
.ntm-table tbody tr:last-child td { border-bottom: 0; }
.ntm-row.is-done td { color: var(--ink-3); }
@media (hover: hover) { .ntm-table tbody tr.ntm-row:hover td { background: color-mix(in srgb, var(--acc) 7%, transparent); } }
/* PC は列の幅を決めて内容の列を広く（日時・担当は細く）。幅は見出しの右端の取っ手で変えられる（next-taskboard.js） */
@media (min-width: 901px) {
  .ntm-table { table-layout: fixed; }
  .ntm-table col[data-col="check"] { width: 34px; } .ntm-table col[data-col="work"] { width: 92px; }
  .ntm-table col[data-col="due"] { width: 118px; } .ntm-table col[data-col="who"] { width: 84px; }
  .ntm-table col[data-col="st"] { width: 92px; } .ntm-table col[data-col="pr"] { width: 70px; } .ntm-table col[data-col="act"] { width: 168px; }
  .ntm-table td { overflow: hidden; } .ntm-table th { overflow: visible; }
  .ntm-c-work, .ntm-c-due { white-space: normal !important; }
  .ntm-table th { position: sticky; }
  .ntm-grip { position: absolute; top: 0; right: -4px; z-index: 2; width: 9px; height: 100%; cursor: col-resize; touch-action: none; }
  .ntm-grip::after { content: ""; position: absolute; top: 25%; bottom: 25%; left: 4px; width: 1px; background: var(--line-2, var(--line)); }
  .ntm-table.is-resizing, .ntm-table.is-resizing * { cursor: col-resize !important; user-select: none; }
  @media (hover: hover) { .ntm-grip:hover::after { width: 3px; left: 3px; background: var(--acc); } }
  .ntm-c-work { font-size: 13px; } .ntm-c-who { font-size: 13px; overflow-wrap: anywhere; }
}
.ntm-c-check { width: 30px; padding-right: 0 !important; }
.ntm-c-check .ntm-check { min-height: 28px; }
.ntm-c-work { width: 120px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.ntm-c-due { width: 150px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ntm-c-due strong { display: block; font-size: 12px; color: var(--bad); }
.ntm-c-who { width: 110px; }
.ntm-c-st { width: 104px; } .ntm-c-pr { width: 72px; }
.ntm-c-act { width: 170px; }
.ntm-task-name { display: flex; align-items: baseline; gap: 6px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.ntm-task-title { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.ntm-st { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.ntm-st[data-st="doing"] { background: color-mix(in srgb, var(--acc) 15%, transparent); color: var(--acc); }
.ntm-st[data-st="hold"] { background: color-mix(in srgb, #b45309 15%, transparent); color: #9a4a08; }
.ntm-st[data-st="done"] { background: transparent; color: var(--ink-3); border: 1px solid var(--line); }
.ntm-m-pr[data-p="high"] { color: var(--bad); font-weight: 800; }
.ntm-m-pr[data-p="low"] { color: var(--ink-3); }
.ntm-row-actions { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 4px; }
.ntm-row-actions .nx-btn { min-height: 32px !important; padding: 0 10px; font-size: 13px !important; }
.ntm-empty td { padding: 24px 10px !important; text-align: center; color: var(--ink-3); background: transparent !important; }
/* メモ（作業の下に小さく） */
.ntm-memos { list-style: none; margin: 6px 0 0; padding: 6px 0 0 10px; border-left: 2px solid color-mix(in srgb, var(--acc) 35%, transparent); display: grid; gap: 3px; }
.ntm-memos li { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); overflow-wrap: anywhere; }
.ntm-memos li span { margin-left: 8px; font-size: 11.5px; color: var(--ink-3); }
.ntm-memos__more { color: var(--ink-3) !important; }
.ntm-memos--all { margin: 0 0 8px; max-height: 40vh; overflow: auto; }

/* 表の下の「＋ 項目を追加」と入れる欄 */
.ntm-additem { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 10px; min-height: 46px !important; border: 1.5px dashed color-mix(in srgb, var(--acc) 55%, transparent); background: color-mix(in srgb, var(--acc) 5%, transparent); color: var(--acc); font-weight: 800; cursor: pointer; }
@media (hover: hover) { .ntm-additem:hover { background: color-mix(in srgb, var(--acc) 10%, transparent); } }
.ntm-add { margin-top: 12px; padding: 14px; border: 1px solid color-mix(in srgb, var(--acc) 35%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--acc) 4%, var(--sheet)); }
.ntm-add__h { margin: 0 0 8px; font-size: 15px; }
.ntm-add__grid { display: grid; grid-template-columns: 170px minmax(0, 2fr) 170px repeat(3, minmax(0, 1fr)); gap: 8px; }
.ntm-add label, .ntm-add__title { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.ntm-add__title { margin-bottom: 8px; }
.ntm-add input, .ntm-add select, .ntm-dialog textarea { box-sizing: border-box; width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--line); background: var(--sheet); color: var(--ink); font-weight: 400; }

.ntm-dialog { box-sizing: border-box; width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 32px); overflow: auto; background: var(--sheet); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.ntm-dialog::backdrop { background: #0008; }
.ntm-dialog label { display: flex; flex-direction: column; gap: 4px; margin: 12px 0; min-width: 0; }
.ntm-dialog input:not([type=checkbox]), .ntm-dialog select { box-sizing: border-box; width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--line); background: var(--sheet); color: var(--ink); }
.ntm-dialog [hidden] { display: none; }
.ntm-dialog .ntm-check { flex-direction: row; }
.ntm-dialog__note { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.ntm-status-form { display: grid; grid-template-columns: minmax(0, 1fr) 75px auto auto; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); }
.ntm-board [role=alert], .ntm-board [role=status] { overflow-wrap: anywhere; }
.ntm-board input:focus-visible, .ntm-board select:focus-visible, .ntm-board textarea:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
/* 左端の資料室の扉（固定・PC で幅48px見える）にチェックが重ならないよう、PC は枠を扉の幅だけ右へ */
@media (min-width: 641px) { .ntm-board .ntm-card, .ntm-board .ntm-top { margin-left: 32px; } }

/* スマホ・狭い幅: 表を1件ずつのカードに積む（見出しの絞り込みは上にまとめて出す） */
@media (max-width: 900px) {
  .ntm-card { padding: 14px 12px 16px; border-radius: 10px; }
  .ntm-table, .ntm-table tbody, .ntm-table tr, .ntm-table td { display: block; width: auto; }
  .ntm-table thead tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-bottom: 10px; }
  .ntm-table thead th { position: static; padding: 0; border: 0; background: transparent; }
  .ntm-table thead tr { display: flex !important; flex-wrap: wrap; align-items: center; gap: 0 14px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
  .ntm-table thead th { width: auto !important; }
  .ntm-table thead th.ntm-c-text { display: none; }
  .ntm-table thead th.ntm-c-act { display: none; }
  .ntm-sub { padding-left: 0; } .ntm-sub__right { margin-left: 0; }
  /* スマホの角は 6px（next.css の共通の決まり・10/14）。枠・窓・一覧・札・ボタンをそろえる */
  .ntm-card, .ntm-dialog, .ntm-hf__menu, .ntm-add, .ntm-additem, .ntm-st, .ntm-ai, .ntm-hbtn, .ntm-title-pick select, .ntm-hf > summary b, .ntm-panel .pr-box { border-radius: 6px; }
  .ntm-hf > summary, .ntm-hsort { min-height: 44px; } .ntm-hbtn { min-height: 44px !important; font-size: 14px !important; padding: 0 12px; }
  .ntm-hf__menu a { min-height: 44px; }
  .ntm-table th select { max-width: none; width: 100%; min-height: 44px !important; font-size: 15px !important; }
  .ntm-table tbody tr { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr); gap: 2px 10px; padding: 12px 6px; border-bottom: 1px solid var(--line); }
  .ntm-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--ink) 2.5%, transparent); }
  .ntm-table tbody td { padding: 2px 0; border: 0; background: transparent !important; width: auto !important; }
  .ntm-c-check { grid-row: 1 / span 4; }
  .ntm-c-check .ntm-check { min-height: 44px; }
  .ntm-c-text { grid-column: 2 / -1; grid-row: 1; }
  .ntm-c-work, .ntm-c-due, .ntm-c-who, .ntm-c-st, .ntm-c-pr { font-size: 13px; white-space: normal; }
  td.ntm-c-work::before, td.ntm-c-due::before, td.ntm-c-who::before, td.ntm-c-st::before, td.ntm-c-pr::before { content: attr(data-label) "：" ; color: var(--ink-3); font-size: 12px; }
  .ntm-c-due strong { display: inline; margin-left: 6px; }
  .ntm-c-act { grid-column: 2 / -1; }
  .ntm-row-actions { justify-content: flex-start; flex-wrap: wrap; }
  .ntm-row-actions .nx-btn { min-height: 44px !important; }
  .ntm-add__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ntm-add__text { grid-column: 1 / -1; }
  .ntm-status-form { grid-template-columns: minmax(0, 1fr) 75px; }
  .ntm-bulk__right { margin-left: 0; }
  .ntm-sort, .ntm-task-title, .ntm-toggle, .ntm-mini-link { display: inline-flex; align-items: center; min-height: 44px; }   /* 指で押せる大きさ */
}

/* 10/29 P5-01: 今日の作業・ホームの AI の作業から着く「次にやること」の欄。上の固定の帯に見出しが隠れないように */
#pr-acts { scroll-margin-top: 96px; }
#pr-acts.is-task-target { outline: 2px solid var(--acc); outline-offset: 2px; }

/* 10/29 右の欄（資料の要点）。PC の広い画面は表の右に並べ、狭い画面は右から、スマホは上にかぶさる */
.ntm-panel-toggle[aria-expanded="true"] { color: var(--acc); border-color: var(--acc); }
.ntm-panel { box-sizing: border-box; padding: 12px 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--sheet); }
.ntm-panel[hidden] { display: none !important; }
.ntm-panel__head { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.ntm-panel__head h2 { margin: 0; font-size: 16px; }
.ntm-panel__head .ntm-mini-link { margin-left: auto; }
.ntm-panel__x { min-width: 36px; min-height: 36px; border: 0; background: transparent; color: var(--ink-3); font-size: 20px; cursor: pointer; }
.ntm-panel__note { margin: 8px 0 6px; font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.ntm-panel .pr__grid.is-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ntm-panel .pr-box { margin: 0; }
.ntm-panel .pr-box > h3 { display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.ntm-panel .pr-box > h3::after { content: "▾"; margin-left: auto; font-size: 12px; color: var(--ink-3); transition: transform .15s; }
.ntm-panel .pr-box.is-folded > h3::after { transform: rotate(-90deg); }
.ntm-panel .pr-box.is-folded > :not(h3) { display: none !important; }
.ntm-panel .pr-box > h3:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
@media (min-width: 1101px) {
  .ntm-layout.is-panel { display: grid; grid-template-columns: minmax(0, 1fr) clamp(380px, 34vw, 480px); gap: 14px; align-items: start; }
  .ntm-layout.is-panel .ntm-panel { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; }
}
@media (max-width: 1100px) {
  .ntm-panel { position: fixed; z-index: 9000; top: 0; right: 0; bottom: 0; width: min(460px, 100%); max-height: none; overflow: auto; border-radius: 0; box-shadow: -16px 0 36px -18px rgba(0, 0, 0, .55); }
}
@media (max-width: 760px) {
  .ntm-panel { top: 0; left: 0; right: 0; bottom: auto; width: auto; max-height: 85vh; border-bottom: 1px solid var(--line); box-shadow: 0 16px 36px -18px rgba(0, 0, 0, .6); }
  .ntm-panel__x { min-width: 44px; min-height: 44px; }
}

/* 右の欄の期限は欄の幅に合わせて、日付・内容・残りの3列（種類は内容の上に小さく） */
.ntm-panel .pr-dates li { grid-template-columns: 46px minmax(0, 1fr) auto; }
.ntm-panel .pr-dates__k { grid-column: 2; grid-row: 1; font-size: 11px; } .ntm-panel .pr-dates__l { grid-column: 2; }
.ntm-panel .pr-dates__d { grid-row: 1 / span 2; } .ntm-panel .pr-dates li > .pr-left { grid-column: 3; grid-row: 1 / span 2; align-self: center; }

/* 10/30 見直し: 行を詰めて境界をはっきり（メールの一覧のように）・ステータスの色・完了は緑の枠で薄く・期限切れは日付を赤・メモの書いた人はアイコンに当てて出す */
.ntm-table { font-size: 13.5px; }
.ntm-table th { background: color-mix(in srgb, var(--ink) 4%, var(--sheet)); border-bottom: 1px solid var(--line-2, var(--line)); }
.ntm-table td { padding: 7px 10px; border-bottom: 1px solid var(--line-2, var(--line)); }
.ntm-table tbody tr:nth-child(even) td { background: transparent; }
.ntm-task-name { font-weight: 700; line-height: 1.45; }
.ntm-c-due.is-late { color: var(--bad); font-weight: 800; }
/* ステータスの色（会社ごとに選べる。next_taskboard.COLORS） */
.ntm-st { --stc: #6b7280; color: #fff; background: var(--stc); border: 0; font-weight: 700; }
.ntm-st[data-color="gray"] { --stc: #6b7280; } .ntm-st[data-color="blue"] { --stc: #2563a8; } .ntm-st[data-color="teal"] { --stc: #0f766e; }
.ntm-st[data-color="green"] { --stc: #2f7d32; } .ntm-st[data-color="amber"] { --stc: #a35a00; } .ntm-st[data-color="red"] { --stc: #b42318; } .ntm-st[data-color="purple"] { --stc: #6d3fb3; }
.ntm-st[data-st="doing"], .ntm-st[data-st="hold"], .ntm-st[data-st="done"] { color: #fff; background: var(--stc); border: 0; }
/* 完了の行: 左に緑の帯と薄い緑の地、文字は灰色に（取り消し線は使わない） */
.ntm-row.is-done td { color: var(--ink-3); background: color-mix(in srgb, #2f7d32 6%, var(--sheet)) !important; }
.ntm-row.is-done td:first-child { box-shadow: inset 4px 0 0 #2f7d32; }
.ntm-row.is-done .ntm-st { opacity: .85; } .ntm-row.is-done .ntm-task-name { font-weight: 600; }
/* メモの書いた人・日（小さな人のアイコン。当てると出る） */
.ntm-memo-who { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 6px; vertical-align: -3px; border-radius: 50%; color: var(--ink-3); cursor: default; }
.ntm-memo-who svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ntm-memo-who::after { content: attr(data-meta); position: absolute; left: 50%; bottom: calc(100% + 6px); z-index: 30; transform: translateX(-50%); padding: 3px 8px; border-radius: 6px; background: var(--ink); color: var(--sheet); font-size: 11.5px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; }
.ntm-memo-who:focus-visible::after { opacity: 1; } .ntm-memo-who:focus-visible { outline: 2px solid var(--acc); }
@media (hover: hover) { .ntm-memo-who:hover::after { opacity: 1; } .ntm-memo-who:hover { color: var(--acc); } }
.ntm-memos li span:not(.ntm-memo-who) { margin-left: 8px; }
/* 編集・メモの窓をボタンのそばに小さく（項目名は左・入れる欄は右） */
.ntm-dialog.is-pop { position: fixed; inset: auto; margin: 0; width: 440px; max-height: calc(100vh - 16px); padding: 10px 14px 12px; border-radius: 6px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); }
.ntm-dialog.is-pop::backdrop { background: rgba(0, 0, 0, .06); }
.ntm-dialog.is-pop h2 { margin: 0 0 6px; font-size: 14px; }
.ntm-dialog.is-pop label { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); align-items: center; gap: 8px; margin: 4px 0; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.ntm-dialog.is-pop input:not([type=checkbox]), .ntm-dialog.is-pop select, .ntm-dialog.is-pop textarea { min-height: 34px !important; padding: 4px 8px; font-size: 14px !important; font-weight: 400; }
.ntm-dialog.is-pop .ntm-toolbar { justify-content: flex-end; margin: 8px 0 0; }
.ntm-dialog.is-pop .ntm-toolbar .nx-btn { min-height: 36px !important; font-size: 14px !important; }
.ntm-dialog.is-pop .ntm-dialog__note { margin: 0 0 6px; }
.ntm-dialog.is-pop [data-date-only], .ntm-dialog.is-pop [data-date-clear] { grid-column: 2; }
.ntm-colorpick { min-width: 5em; }

/* 右の欄を開いているあいだ（PC）: 1段目に作業・対応内容とメモ、2段目に 対応日時・いつまで・担当・ステータス・優先度・メモ・編集 を、上の見出しの真下にそろえて1行で */
@media (min-width: 1101px) {
  .ntm-layout.is-panel .ntm-table, .ntm-layout.is-panel .ntm-table thead, .ntm-layout.is-panel .ntm-table tbody { display: block; width: auto; }
  .ntm-layout.is-panel .ntm-table tr { display: grid; grid-template-columns: 30px 96px 112px 86px 96px 56px minmax(0, 1fr); column-gap: 8px; align-items: center; }
  .ntm-layout.is-panel .ntm-table th, .ntm-layout.is-panel .ntm-table td { display: block; width: auto !important; padding: 0; border: 0; background: transparent; overflow: visible; }
  .ntm-layout.is-panel .ntm-table thead tr { padding: 6px 8px; background: color-mix(in srgb, var(--ink) 4%, var(--sheet)); border-bottom: 1px solid var(--line-2, var(--line)); }
  .ntm-layout.is-panel .ntm-table th { position: static; }
  .ntm-layout.is-panel .ntm-table th.ntm-c-text { display: none; }
  .ntm-layout.is-panel .ntm-c-check { grid-column: 1; } .ntm-layout.is-panel .ntm-c-work { grid-column: 2; } .ntm-layout.is-panel .ntm-c-due { grid-column: 3; }
  .ntm-layout.is-panel .ntm-c-who { grid-column: 4; } .ntm-layout.is-panel .ntm-c-st { grid-column: 5; } .ntm-layout.is-panel .ntm-c-pr { grid-column: 6; } .ntm-layout.is-panel .ntm-c-act { grid-column: 7; }
  .ntm-layout.is-panel .ntm-table tbody tr { row-gap: 4px; padding: 8px; border-bottom: 1px solid var(--line-2, var(--line)); }
  .ntm-layout.is-panel .ntm-table tbody td.ntm-c-check { grid-row: 1 / span 2; align-self: start; }
  .ntm-layout.is-panel .ntm-table tbody td.ntm-c-text { grid-column: 2 / -1; grid-row: 1; }
  .ntm-layout.is-panel .ntm-table tbody td:not(.ntm-c-check):not(.ntm-c-text) { grid-row: 2; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ntm-layout.is-panel .ntm-row.is-done { background: color-mix(in srgb, #2f7d32 6%, var(--sheet)); box-shadow: inset 4px 0 0 #2f7d32; }
  .ntm-layout.is-panel .ntm-row.is-done td { box-shadow: none; }
  .ntm-layout.is-panel .ntm-row-actions { justify-content: flex-start; }
  .ntm-layout.is-panel .ntm-row-actions .nx-btn { min-height: 28px !important; padding: 0 8px; font-size: 12px !important; }
  .ntm-layout.is-panel .ntm-grip { display: none; }
  .ntm-layout.is-panel .ntm-hf > summary, .ntm-layout.is-panel .ntm-hsort { font-size: 12px; }
  /* 10/30: 0件の案内は2行の組みの外。細い列に入って1文字ずつ縦に並んだ */
  .ntm-layout.is-panel .ntm-table tbody tr.ntm-empty td:not(.ntm-c-check):not(.ntm-c-text) { grid-column: 1 / -1; grid-row: auto; white-space: normal; overflow: visible; font-size: inherit; }
}
.ntm-linkbtn { justify-self: start; min-height: 32px !important; padding: 0 2px; border: 0; background: transparent; color: var(--acc); font-size: 13px !important; font-weight: 700; text-decoration: underline; cursor: pointer; }
@media (max-width: 900px) {
  /* スマホは行全体を1つの地にする（セルごとに塗るとまだらに見えた） */
  .ntm-table tbody tr.ntm-row.is-done { background: color-mix(in srgb, #2f7d32 6%, var(--sheet)); box-shadow: inset 4px 0 0 #2f7d32; }
  .ntm-row.is-done td { background: transparent !important; box-shadow: none !important; }
}
/* 10/30 タイトルの帯の見直し: タイトルは大きく広く・「タイトルの追加・編集」は小さく・案件のページは右上に小さく・参加の準備の開け閉めは表の右上・ステータス設定は見出しの一覧の上 */
.ntm-card, .ntm-top { position: relative; }
.ntm-titlebar { padding-top: 14px; }
.ntm-title-pick { flex: 1 1 100%; flex-wrap: nowrap; }
.ntm-title-pick select { flex: 1 1 auto; max-width: none; min-height: 52px !important; font-size: 23px !important; padding: 4px 12px; }
.ntm-titleedit { flex: none; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--sheet); color: var(--ink-2); font-size: 12.5px; font-weight: 700; white-space: nowrap; cursor: pointer; }
@media (hover: hover) { .ntm-titleedit:hover { border-color: var(--acc); color: var(--acc); } }
.ntm-caselink { position: absolute; top: 8px; right: 14px; font-size: 12px; font-weight: 700; color: var(--ink-3); text-decoration: none; }
@media (hover: hover) { .ntm-caselink:hover { color: var(--acc); text-decoration: underline; } }
.ntm-panel-toggle { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--acc) 45%, var(--line)); border-radius: 6px; background: color-mix(in srgb, var(--acc) 6%, var(--sheet)); color: var(--acc); font-size: 12.5px; font-weight: 800; cursor: pointer; }
.ntm-panel-toggle[aria-expanded="true"] { background: var(--acc); color: #fff; border-color: var(--acc); }
/* 10/30 TB01: 暗色の --acc は明るい水色で白い文字が読めない（比 1.48）。ほかの札と同じく地は変えず暗い文字に */
@media (prefers-color-scheme: dark) { :where(:root:not([data-scheme="light"])) .ntm-panel-toggle[aria-expanded="true"] { color: #0d1117; } }
:where(:root[data-scheme="dark"]) .ntm-panel-toggle[aria-expanded="true"] { color: #0d1117; }
@media (hover: hover) { .ntm-panel-toggle:hover { border-color: var(--acc); } }
.ntm-hf__set { display: flex; align-items: center; width: 100%; min-height: 36px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--acc); font-size: 13px; font-weight: 800; text-align: left; white-space: nowrap; cursor: pointer; }
@media (hover: hover) { .ntm-hf__set:hover { background: color-mix(in srgb, var(--acc) 10%, transparent); } }
.ntm-dialog__h3 { margin: 10px 0 4px; font-size: 14px; }
@media (max-width: 760px) {
  .ntm-titlebar { padding-right: 0; padding-top: 18px; }
  .ntm-title-pick { flex-wrap: wrap; }
  .ntm-title-pick select { font-size: 19px !important; min-height: 48px !important; flex-basis: 100%; }
  .ntm-titleedit, .ntm-panel-toggle, .ntm-hf__set { min-height: 44px; }
  .ntm-caselink { top: 6px; right: 12px; min-height: 0; }
}
@media (min-width: 761px) { .ntm-board .ntm-titleedit, .ntm-board .ntm-panel-toggle { min-height: 30px !important; font-size: 12.5px !important; } }
/* 10/30 タスクの表は枠の中でスクロールし、上の項目名は常に固定（右の欄を開いていても畳んでいても。スマホはページごと） */
@media (min-width: 901px) {
  .ntm-tablewrap { max-height: max(320px, calc(100dvh - 300px)); overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line-2, var(--line)); border-radius: 6px; }
  .ntm-table th { position: sticky; top: 0; z-index: 3; }
  .ntm-layout.is-panel .ntm-table thead { position: sticky; top: 0; z-index: 3; }
  .ntm-tablewrap .ntm-table tbody tr:last-child td { border-bottom: 0; }
}

/* 10/30 タスク管理の見直し（2回目）
   ・左右の余白はできるだけ狭く（左は資料室の扉の幅だけ空ける）
   ・タイトルの帯は表と右の欄の両方の上に大きく（右の欄の見出しはその下）
   ・作業の内容は白い枠に、メモは枠の外
   ・右の欄を開いているときは、対応日時〜編集の行を上に太字で、作業の内容をその下に
   ・表と右の欄の境はドラッグ（と左右の矢印）で幅を変えられる */
:root { --ntm-box: color-mix(in srgb, #fff 80%, var(--sheet)); }
@media (prefers-color-scheme: dark) { :root:not([data-scheme="light"]) { --ntm-box: color-mix(in srgb, var(--ink) 7%, var(--sheet)); } }
:root[data-scheme="dark"] { --ntm-box: color-mix(in srgb, var(--ink) 7%, var(--sheet)); }
.nx-judge.ntm-board { width: calc(100% - 32px); }
.ntm-top { margin: 0 0 12px; padding: 4px 16px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--sheet); box-shadow: 0 1px 0 rgba(0, 0, 0, .03), 0 12px 28px -22px rgba(30, 20, 10, .45); }
.ntm-top .ntm-titlebar { padding-bottom: 0; border-bottom: 0; }
.ntm-top .ntm-title-pick select { max-width: none; }
.ntm-card > [data-task-message]:empty + .ntm-sub { margin-top: 0; }
.ntm-task-box { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--ntm-box); }
.ntm-row.is-done .ntm-task-box { background: transparent; }
.ntm-split { display: none; }
@media (min-width: 1101px) {
  .ntm-layout.is-panel { grid-template-columns: minmax(0, 1fr) 14px var(--ntm-pw, clamp(380px, 34vw, 480px)); gap: 0; }
  .ntm-layout.is-panel .ntm-split:not([hidden]) { display: block; position: relative; align-self: stretch; min-height: 200px; cursor: col-resize; touch-action: none; }
  .ntm-layout.is-panel .ntm-split::before { content: ""; position: absolute; top: 0; bottom: 0; left: 6px; width: 2px; border-radius: 2px; background: var(--line); }
  .ntm-layout.is-panel .ntm-split:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; border-radius: 6px; }
  .ntm-layout.is-panel .ntm-split.is-drag::before { background: var(--acc); }
  @media (hover: hover) { .ntm-layout.is-panel .ntm-split:hover::before { background: var(--acc); } }
  .ntm-layout.is-panel .ntm-table tbody td.ntm-c-text { grid-row: 2; }
  .ntm-layout.is-panel .ntm-table tbody td:not(.ntm-c-check):not(.ntm-c-text) { grid-row: 1; font-weight: 700; }
  .ntm-layout.is-panel .ntm-table tbody td:not(.ntm-c-check):not(.ntm-c-text) .ntm-row-actions .nx-btn { font-weight: 700; }
}
.ntm-dialog label.ntm-bulkdue, .ntm-dialog.is-pop label.ntm-bulkdue { display: flex; flex-direction: row; align-items: center; gap: 8px; margin: 6px 0 2px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.ntm-bulkdue input[type=checkbox] { width: 20px; height: 20px; min-height: 20px; margin: 0; accent-color: var(--acc); }
/* 10/30 タスク管理の見直し（3回目）
   ・右の欄も左と同じ丸い枠。見出し「参加の準備」と各項目の状態の一覧は固定、その下の内側の枠だけがスクロール
   ・右の欄を開いているあいだ（PC）は、左右の枠の高さをそろえ、下の端もそろえる（画面の下近くまで） */
@media (min-width: 1101px) { .ntm-panel { border-radius: 12px; box-shadow: 0 1px 0 rgba(0, 0, 0, .03), 0 12px 28px -22px rgba(30, 20, 10, .45); } }
.ntm-panel__scroll { margin-top: 8px; padding: 0 10px 10px; border: 1px solid var(--line-2, var(--line)); border-radius: 10px; overflow: auto; overscroll-behavior: contain; }
.ntm-panel__scroll .ntm-panel__note { margin: 8px 0; }
.ntm-psum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.ntm-psum[hidden] { display: none; }
.ntm-psum__i { display: grid; align-content: start; gap: 1px; min-width: 0; min-height: 52px; padding: 5px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--ntm-box); color: var(--ink); text-align: left; cursor: pointer; }
.ntm-psum__k { font-size: 11px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.ntm-psum__v { font-size: clamp(12.5px, 1vw, 14px); font-weight: 800; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ntm-psum__i small { font-size: 10.5px; line-height: 1.3; color: var(--ink-3); overflow-wrap: anywhere; }   /* 「合わない・要確認3」は2行になってよい（切らない） */
.ntm-psum__i.is-hot .ntm-psum__v, .ntm-psum__i.is-ng .ntm-psum__v { color: var(--bad); }
.ntm-psum__i.is-warn .ntm-psum__v { color: var(--warn); }
.ntm-psum__i.is-ok .ntm-psum__v { color: var(--ok); }
@media (hover: hover) { .ntm-psum__i:hover { border-color: var(--acc); } }
.ntm-psum__i:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
@media (min-width: 1101px) {
  .ntm-layout.is-panel { height: max(520px, calc(100dvh - 100px)); align-items: stretch; }
  .ntm-layout.is-panel .ntm-card { display: flex; flex-direction: column; min-height: 0; margin-bottom: 0; }
  .ntm-layout.is-panel .ntm-tablewrap { flex: 1 1 auto; min-height: 0; max-height: none; }
  .ntm-layout.is-panel .ntm-panel { position: relative; top: auto; display: flex; flex-direction: column; min-height: 0; max-height: none; height: 100%; overflow: hidden; }
  .ntm-layout.is-panel .ntm-panel__scroll { flex: 1 1 auto; min-height: 0; }
  .ntm-layout.is-panel .ntm-split:not([hidden]) { min-height: 0; }
  .ntm-layout.is-panel + * { margin-top: 24px; }
}
@media (max-width: 1100px) {
  .ntm-panel { display: flex; flex-direction: column; }
  .ntm-panel__scroll { flex: 1 1 auto; min-height: 0; }
}
@media (max-width: 760px) {
  .ntm-psum { grid-template-columns: repeat(6, minmax(0, 1fr)); }   /* 3つ＋2つ。2段目に空きを作らない */
  .ntm-psum__i { grid-column: span 2; } .ntm-psum__i:nth-child(n+4) { grid-column: span 3; }
  .ntm-panel__scroll, .ntm-psum__i { border-radius: 6px; }
}
/* 10/30 参加の準備の項目を足す・消す（右の欄の中だけ）。「−」は行の左端、「＋」は欄の下 */
.ntm-panel .pr-cond, .ntm-panel .pr-doc, .ntm-panel .pr-askg li { position: relative; padding-left: 34px; }
.pr-del { position: absolute; left: 2px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 26px; height: 26px; min-height: 26px !important; padding: 0; border: 1px solid var(--line-2, var(--line)); border-radius: 6px; background: var(--sheet); color: var(--ink-3); font-size: 16px !important; font-weight: 800; line-height: 1; cursor: pointer; }
@media (hover: hover) { .pr-del:hover { border-color: var(--bad); color: var(--bad); } }
.pr-del:focus-visible, .pr-add:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.pr-addwrap { margin-top: 8px; }
.pr-add { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 34px !important; border: 1.5px dashed color-mix(in srgb, var(--acc) 45%, var(--line)); border-radius: 6px; background: transparent; color: var(--acc); font-size: 18px !important; font-weight: 800; cursor: pointer; }
@media (hover: hover) { .pr-add:hover { background: color-mix(in srgb, var(--acc) 8%, transparent); } }
.pr-addform { display: grid; gap: 6px; padding: 10px; border: 1px solid color-mix(in srgb, var(--acc) 35%, var(--line)); border-radius: 6px; background: var(--ntm-box); }
.pr-addform label { display: grid; grid-template-columns: 6em minmax(0, 1fr); align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.pr-addform .cs__in { min-height: 34px !important; font-size: 14px !important; }
.pr-addform__acts { display: flex; justify-content: flex-end; gap: 6px; }
.pr-addform__acts .nx-btn { min-height: 34px !important; font-size: 13px !important; }
.pr-userto { display: inline-block; margin-top: 2px; font-size: 11px; color: var(--acc); font-weight: 700; }
@media (max-width: 760px) {
  .pr-addform label { grid-template-columns: minmax(0, 1fr); }
  .pr-del { width: 30px; height: 30px; min-height: 30px !important; }
  .ntm-panel .pr-cond, .ntm-panel .pr-doc, .ntm-panel .pr-askg li { padding-left: 38px; }
}
/* 10/30 工事のフォーマット（試作）: 段の見出し・作業の中身の説明・承認の記録とボタン・フォーマットの札 */
.ntm-stagehead td { padding: 10px 10px 4px !important; border-bottom: 2px solid color-mix(in srgb, var(--acc) 35%, var(--line)) !important; background: transparent !important; }
.ntm-stagehead b { font-size: 13.5px; font-weight: 800; color: var(--ink); letter-spacing: .02em; }
.ntm-stagehead span { margin-left: 10px; font-size: 12px; color: var(--ink-3); }
.ntm-task-detail { margin: 3px 0 0; font-size: 12px; font-weight: 500; line-height: 1.55; color: var(--ink-2); overflow-wrap: anywhere; }
.ntm-task-detail.is-check { color: var(--warn); }
.ntm-appr { display: inline-block; margin: 4px 0 0; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink-2); }
.ntm-appr.is-requested { background: var(--warn-soft); color: var(--warn); }
.ntm-appr.is-approved { background: var(--ok-soft); color: var(--ok); }
.ntm-appr.is-returned { background: var(--bad-soft); color: var(--bad); }
.ntm-row.is-approval .ntm-task-name { color: var(--acc); }
.ntm-row-actions .ntm-apbtn { min-height: 30px !important; padding: 0 10px; font-size: 12.5px !important; white-space: nowrap; }
.ntm-fmt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 8px 0 0; font-size: 12px; color: var(--ink-3); }
.ntm-fmt__chip { padding: 1px 8px; border-radius: 6px; background: color-mix(in srgb, var(--acc) 12%, transparent); color: var(--acc); font-weight: 800; }
.ntm-fmt__pref { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-weight: 700; color: var(--ink-2); }
.ntm-fmt__pref input { width: 18px; height: 18px; min-height: 18px !important; margin: 0; accent-color: var(--acc); }
.ntm-apmsg { margin: 4px 0 0; font-size: 12.5px; color: var(--bad); }
@media (min-width: 1101px) {
  .ntm-layout.is-panel .ntm-table tbody tr.ntm-stagehead { display: block; padding: 0; border-bottom: 0; }
  .ntm-layout.is-panel .ntm-table tbody tr.ntm-stagehead td:not(.ntm-c-check):not(.ntm-c-text) { display: block; grid-row: auto; white-space: normal; overflow: visible; font-size: inherit; font-weight: inherit; }
}
@media (max-width: 900px) {
  .ntm-table tbody tr.ntm-stagehead { display: block; padding: 0; background: transparent; border: 0; }
  .ntm-table tbody tr.ntm-stagehead td { display: block; padding: 12px 4px 4px !important; }
  .ntm-table tbody tr.ntm-stagehead td::before { content: none !important; }
  .ntm-fmt__pref { margin-left: 0; }
}
.ntm-task-detail { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }   /* 長い説明は3行まで（全文は当てると出る） */
.ntm-apacts { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0 8px; vertical-align: middle; }
.ntm-apacts:empty { display: none; }
/* 10/30 必要書類: 工事は 申請・入札・技術資料・契約 に分ける。1件ずつ担当を選べる。状態の一覧は6つのとき3つずつ2段 */
.pr-docg + .pr-docg { margin-top: 10px; }
.pr-docg h4 { margin: 6px 0 2px; font-size: 12.5px; font-weight: 800; color: var(--ink-2); }
.pr-docg h4 small { font-weight: 700; color: var(--ink-3); }
.pr-doc__who { display: block; margin-top: 4px; min-height: 28px !important; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--sheet); color: var(--ink-2); font-size: 12px !important; }
.ntm-psum.is-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .ntm-psum.is-6 .ntm-psum__i, .ntm-psum.is-6 .ntm-psum__i:nth-child(n+4) { grid-column: auto; } }   /* 6つは3つずつ2段（3列の中で1つずつ） */
/* 10/30 第2版: 期限の根拠（発注者の期限・社内の期限・結果の後・日程）。社内の日程が過ぎたら要調整 */
.ntm-task-basis { display: flex; align-items: baseline; gap: 6px; margin: 3px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--ink-3); overflow-wrap: anywhere; }
.ntm-task-basis span { flex: none; padding: 0 5px; border: 1px solid var(--line); border-radius: 4px; font-size: 10.5px; font-weight: 700; color: var(--ink-2); }
.ntm-task-basis.is-adj { color: var(--bad); font-weight: 700; }
.ntm-due-adj { color: var(--bad); font-weight: 800; }
.ntm-due-after { color: var(--ink-3); font-weight: 700; }
/* 10/30 第2版: 承認の札（目的つき）・再確認・承認待ちの入口 */
.ntm-apchip { padding: 1px 8px; border-radius: 6px; font-weight: 800; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink-2); }
.ntm-apchip.is-requested { background: var(--warn-soft); color: var(--warn); }
.ntm-apchip.is-approved { background: var(--ok-soft); color: var(--ok); }
.ntm-apchip.is-returned, .ntm-apchip.is-stale { background: var(--bad-soft); color: var(--bad); }
.ntm-appr.is-stale { background: var(--bad-soft); color: var(--bad); }
.ntm-apwait { color: var(--warn); }
.ntm-apwait.is-on { color: var(--acc); }
.pr-doc__recv { display: inline-flex; align-items: center; gap: 5px; margin: 4px 0 0 8px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.pr-doc__recv input { width: 16px; height: 16px; min-height: 16px !important; margin: 0; accent-color: var(--acc); }
/* 10/30 第2版（試作）: 技術者の配置と重なり */
.ntm-eng { margin-top: 6px; display: grid; gap: 4px; }
.ntm-eng__a { margin: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.ntm-eng__a b { color: var(--ink); }
.ntm-eng__warn { display: block; color: var(--bad); font-weight: 700; font-size: 12px; }
.ntm-eng__unk { display: block; color: var(--warn); font-weight: 700; font-size: 12px; }
.ntm-eng__x { min-height: 22px !important; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--sheet); color: var(--ink-3); font-size: 12px !important; cursor: pointer; }
.ntm-eng__add { justify-self: start; min-height: 30px !important; padding: 0 10px; font-size: 12.5px !important; }
/* 10/30 第2版（試作）: 期限の知らせの設定と、今日が知らせる日の印 */
.ntm-due-soon { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; background: var(--warn-soft); color: var(--warn); font-size: 11px; font-weight: 800; }
.ntm-ntf { position: relative; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.ntm-ntf > summary { cursor: pointer; list-style: none; padding: 0 4px; border-radius: 6px; }
.ntm-ntf > summary::-webkit-details-marker { display: none; }
.ntm-ntf > summary::after { content: " ▾"; font-size: 10px; }
.ntm-ntf__menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; width: 280px; display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line-2, var(--line)); border-radius: 8px; background: var(--sheet); box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .45); font-size: 12.5px; }
.ntm-ntf__menu label { display: flex; align-items: center; gap: 6px; }
.ntm-ntf__menu input { width: 16px; height: 16px; min-height: 16px !important; margin: 0; accent-color: var(--acc); }
.ntm-ntf__menu select { min-height: 28px !important; font-size: 12.5px !important; padding: 0 4px; }
.ntm-ntf__menu p { margin: 0; font-size: 11.5px; font-weight: 500; color: var(--ink-3); line-height: 1.5; }
@media (max-width: 760px) { .ntm-ntf__menu { right: auto; left: 0; width: min(280px, calc(100vw - 48px)); } }
@media (max-width: 760px) {   /* 10/30 第2版: スマホで設定のチェックを押しやすく */
  .ntm-fmt__pref, .ntm-ntf__menu label { min-height: 40px; }
  .ntm-fmt__pref input, .ntm-ntf__menu input { width: 22px; height: 22px; min-height: 22px !important; }
  .ntm-ntf > summary { display: inline-flex; align-items: center; min-height: 40px; }
}
/* 10/30 第2版: 社内の期限が過ぎている作業の件数は帯に1回だけ。行は短い札と「?」 */
.ntm-adjbar { margin: 8px 0 0; padding: 6px 10px; border-radius: 6px; background: var(--bad-soft); color: var(--bad); font-size: 12.5px; font-weight: 700; line-height: 1.6; }
.ntm-task-basis.is-adj span { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); color: var(--bad); }
.ntm-task-basis .nx-q { margin-left: 2px; }
/* 第3版（試作）: 技術者の登録の窓（自社の技術者／協力会社） */
.ntm-engreg-open { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 40%, var(--line)); }
.ntm-engreg__tabs { display: flex; gap: 4px; margin: 4px 0 8px; }
.ntm-engreg__tabs button { min-height: 34px !important; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--sheet); color: var(--ink-2); font-size: 13px !important; font-weight: 700; cursor: pointer; }
.ntm-engreg__tabs button[aria-selected="true"] { border-color: var(--acc); color: var(--acc); background: color-mix(in srgb, var(--acc) 8%, var(--sheet)); }
.ntm-engreg__list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; max-height: 30vh; overflow: auto; }
.ntm-engreg__list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.ntm-engreg__list li span { color: var(--ink-3); font-size: 12px; flex: 1 1 auto; min-width: 0; }
.ntm-engreg__none { color: var(--ink-3); border-style: dashed !important; }
/* 第3版（試作）: 表のその場の編集（押すとそのマスのそばに小さな窓）・ペンの印・メモを右に・通知するの切り替え */
.ntm-inl { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; max-width: 100%; padding: 2px 6px; margin: -2px -6px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ntm-inl::after { content: "▾"; font-size: 9px; color: var(--ink-3); }
@media (hover: hover) { .ntm-inl:hover { border-color: var(--line-2, var(--line)); background: color-mix(in srgb, var(--acc) 5%, transparent); } }
.ntm-inl:focus-visible, .ntm-pen:focus-visible, .ntm-ntfsw:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.ntm-pen { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; min-height: 26px !important; margin-left: 6px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--sheet); color: var(--ink-3); cursor: pointer; vertical-align: middle; }
.ntm-pen svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
@media (hover: hover) { .ntm-pen:hover { color: var(--acc); border-color: var(--acc); } }
.ntm-textedit { width: 100%; min-height: 34px !important; padding: 4px 8px; border: 1px solid var(--acc); border-radius: 6px; font-size: 14px !important; font-weight: 700; }
/* メモを右に出すのは、作業の内容の列に幅があるときだけ（狭いと内容もメモも縦に細く折れた。1151 で列 247px） */
.ntm-textgrid { container-type: inline-size; }   /* 表のマスは入れ物にできないので、内側の div で幅を測る */
@container (min-width: 480px) {
  .ntm-textgrid.has-memo > .ntm-textgrid__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 38%); gap: 10px; align-items: start; }
  .ntm-textgrid.has-memo > .ntm-textgrid__in > .ntm-memos { margin-top: 0; }
}
.ntm-ntfsw { display: inline-flex; align-items: center; gap: 6px; min-height: 30px !important; padding: 0 6px 0 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--sheet); color: var(--ink-2); font-size: 12px !important; font-weight: 700; white-space: nowrap; cursor: pointer; }
.ntm-ntfsw__k { position: relative; width: 30px; height: 16px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 18%, transparent); transition: background .15s; }
.ntm-ntfsw__k::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--sheet); transition: transform .15s; }
.ntm-ntfsw[aria-checked="true"] { border-color: var(--acc); color: var(--acc); }
.ntm-ntfsw[aria-checked="true"] .ntm-ntfsw__k { background: var(--acc); }
.ntm-ntfsw[aria-checked="true"] .ntm-ntfsw__k::after { transform: translateX(14px); }
.ntm-pop { position: absolute; z-index: 9600; width: max-content; min-width: 180px; max-width: min(340px, calc(100vw - 16px)); max-height: 70vh; overflow: auto; display: grid; gap: 6px; padding: 8px; border: 1px solid var(--line-2, var(--line)); border-radius: 8px; background: var(--sheet); color: var(--ink); box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .5); font-size: 13px; }
.ntm-pop__list { display: grid; gap: 2px; }
.ntm-pop__o { display: flex; align-items: center; min-height: 34px !important; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font-size: 13.5px !important; font-weight: 600; text-align: left; cursor: pointer; }
.ntm-pop__o.is-on { color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, transparent); }
.ntm-pop__o.is-on::before { content: "✓"; margin-right: 6px; }
.ntm-pop__o.is-none, .ntm-pop__o.is-text { color: var(--ink-2); }
@media (hover: hover) { .ntm-pop__o:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); } }
.ntm-pop__in, .ntm-pop__dt, .ntm-pop__acts, .ntm-pop__quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ntm-pop__in input, .ntm-pop__dt input { min-height: 34px !important; padding: 2px 8px; border: 1px solid var(--line-2, var(--line)); border-radius: 6px; background: var(--sheet); color: var(--ink); font-size: 14px !important; }
.ntm-pop__in input { flex: 1 1 120px; min-width: 0; }
.ntm-pop__acts .nx-btn, .ntm-pop__in .nx-btn { min-height: 34px !important; padding: 0 12px; font-size: 13px !important; }
.ntm-pop__h { margin: 2px 0 0; font-size: 12px; font-weight: 800; color: var(--ink-2); }
.ntm-pop__chk { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 4px; font-size: 13px; overflow-wrap: anywhere; }
.ntm-pop__chk input { width: 18px; height: 18px; min-height: 18px !important; margin: 0; accent-color: var(--acc); flex: none; }
.ntm-pop__msg { margin: 0; color: var(--bad); font-size: 12.5px; }
.ntm-pop__msg:empty { display: none; }
.ntm-pop__note { margin: 0; font-size: 11.5px; color: var(--ink-3); }
.ntm-pop__st[data-color]::after { content: ""; width: 10px; height: 10px; margin-left: auto; border-radius: 50%; background: var(--stc, var(--ink-3)); }
.ntm-pop__st[data-color="gray"] { --stc: #6b7280; } .ntm-pop__st[data-color="blue"] { --stc: #2563a8; } .ntm-pop__st[data-color="teal"] { --stc: #0f766e; }
.ntm-pop__st[data-color="green"] { --stc: #2f7d32; } .ntm-pop__st[data-color="amber"] { --stc: #a35a00; } .ntm-pop__st[data-color="red"] { --stc: #b42318; } .ntm-pop__st[data-color="purple"] { --stc: #6d3fb3; }
@media (max-width: 760px) {
  .ntm-inl, .ntm-ntfsw, .ntm-pop__o, .ntm-pop__chk { min-height: 44px !important; }
  .ntm-pen { width: 34px; height: 34px; min-height: 34px !important; }
  .ntm-textgrid.has-memo { grid-template-columns: minmax(0, 1fr); }
  .ntm-pop__in input, .ntm-pop__dt input { min-height: 44px !important; font-size: 16px !important; }
  .ntm-pop__chk input { width: 22px; height: 22px; min-height: 22px !important; }
}
/* 第3版（試作）: その場の編集のとき、操作の列は「通知する」が入る幅に・担当は折らない */
.ntm-inl { white-space: nowrap; }
@media (min-width: 901px) {
  .ntm-table--inl col[data-col="act"] { width: 262px; }
  .ntm-table--inl col[data-col="who"] { width: 104px; }
  .ntm-table--inl .ntm-c-act { width: 262px; }
}
@media (min-width: 1101px) {   /* 右の欄を開いているときは、切り替えの文字を隠してつまみだけ（「編集」まで入るように） */
  .ntm-layout.is-panel .ntm-ntfsw__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ntm-layout.is-panel .ntm-ntfsw { padding: 0 6px; }
}
/* 第3版（試作）の幅の直し: 「通知する」は鈴と切り替えだけ（文字は読み上げと吹き出し）。担当・いつまで・ステータス・優先度・対応日時は最小幅で折らない。作業の内容が残りを使う */
.ntm-ntfsw { gap: 4px; padding: 0 5px 0 6px; }
.ntm-ntfsw__b { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.ntm-table--inl td.ntm-c-work, .ntm-table--inl td.ntm-c-due, .ntm-table--inl td.ntm-c-who, .ntm-table--inl td.ntm-c-st, .ntm-table--inl td.ntm-c-pr { white-space: nowrap; }
.ntm-table--inl .ntm-inl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 901px) {
  .ntm-table--inl { table-layout: fixed; }
  .ntm-table--inl col[data-col="check"] { width: 40px; }
  .ntm-table--inl col[data-col="work"] { width: 128px; }
  .ntm-table--inl col[data-col="due"] { width: 138px; }
  .ntm-table--inl col[data-col="who"] { width: 118px; }
  .ntm-table--inl col[data-col="st"] { width: 112px; }
  .ntm-table--inl col[data-col="pr"] { width: 72px; }
  .ntm-table--inl col[data-col="act"], .ntm-table--inl .ntm-c-act { width: 196px; }
  .ntm-table--inl col[data-col="text"] { width: auto; }
}
@media (min-width: 901px) and (max-width: 1440px) {   /* 狭い PC では、ほかの列を少し詰めて作業の内容を広く */
  .ntm-table--inl col[data-col="work"] { width: 108px; }
  .ntm-table--inl col[data-col="due"] { width: 124px; }
  .ntm-table--inl col[data-col="who"] { width: 104px; }
  .ntm-table--inl col[data-col="st"] { width: 104px; }
  .ntm-table--inl col[data-col="pr"] { width: 62px; }
  .ntm-table--inl col[data-col="act"], .ntm-table--inl .ntm-c-act { width: 184px; }
}
/* 第3版（10/30 の指摘）: 日時は時刻を下の行に小さく・表の文字は太字・操作は右端・担当と優先度も丸い札 */
.ntm-dt { display: inline-flex; flex-direction: column; line-height: 1.25; font-variant-numeric: tabular-nums; }
.ntm-dt__t { font-size: .84em; opacity: .85; }
.ntm-table--inl td { font-weight: 700; }
.ntm-table--inl .ntm-task-detail, .ntm-table--inl .ntm-memos li { font-weight: 600; }
.ntm-table--inl .ntm-row-actions { justify-content: flex-end; }
@media (min-width: 1101px) { .ntm-layout.is-panel .ntm-table--inl .ntm-row-actions { justify-content: flex-end; } .ntm-layout.is-panel .ntm-table--inl td.ntm-c-act { justify-self: end; } }
:root { --who0: #2f5d8a; --who0s: #e3ecf5; --who1: #2f6b4f; --who1s: #e2efe7; --who2: #7a4b8c; --who2s: #efe6f3; --who3: #8a5a2b; --who3s: #f3eadf; --who4: #2b6f74; --who4s: #e0eff0; --who5: #8a3b55; --who5s: #f4e3e9; }
@media (prefers-color-scheme: dark) { :root:not([data-scheme="light"]) { --who0: #a9c7e6; --who0s: #22303d; --who1: #a6d6bb; --who1s: #1f2f27; --who2: #d6b7e3; --who2s: #2f2535; --who3: #e3c39e; --who3s: #33291e; --who4: #9fd5d8; --who4s: #1d3031; --who5: #e8b0c2; --who5s: #36222a; } }
:root[data-scheme="dark"] { --who0: #a9c7e6; --who0s: #22303d; --who1: #a6d6bb; --who1s: #1f2f27; --who2: #d6b7e3; --who2s: #2f2535; --who3: #e3c39e; --who3s: #33291e; --who4: #9fd5d8; --who4s: #1d3031; --who5: #e8b0c2; --who5s: #36222a; }
.ntm-who { display: inline-block; max-width: 100%; padding: 1px 10px; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 800; line-height: 1.7;
  background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink-2); }
.ntm-who[data-c="0"] { background: var(--who0s); color: var(--who0); } .ntm-who[data-c="1"] { background: var(--who1s); color: var(--who1); }
.ntm-who[data-c="2"] { background: var(--who2s); color: var(--who2); } .ntm-who[data-c="3"] { background: var(--who3s); color: var(--who3); }
.ntm-who[data-c="4"] { background: var(--who4s); color: var(--who4); } .ntm-who[data-c="5"] { background: var(--who5s); color: var(--who5); }
.ntm-who[data-c="t"] { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2, var(--line)); color: var(--ink-2); }
.ntm-table--inl .ntm-m-pr { display: inline-block; min-width: 2.4em; padding: 1px 10px; border-radius: 999px; text-align: center; font-size: 12.5px; font-weight: 800; line-height: 1.7; }
.ntm-table--inl .ntm-m-pr[data-p="high"] { background: var(--bad-soft); color: var(--bad); }
.ntm-table--inl .ntm-m-pr[data-p="mid"] { background: var(--warn-soft); color: var(--warn); }
.ntm-table--inl .ntm-m-pr[data-p="low"] { background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink-2); }
@media (min-width: 1101px) {   /* 右の欄を開いた2行の組みでも、日時・担当・札が切れない */
  .ntm-layout.is-panel .ntm-table--inl tbody td.ntm-c-work, .ntm-layout.is-panel .ntm-table--inl tbody td.ntm-c-due { overflow: visible !important; text-overflow: clip !important; font-size: 12px !important; }
}
/* 札が縮まないよう: 札の余白を詰め、担当・優先度の列を広げる（担当は苗字で短くなる前提。それでも長い手入力の名前だけ「…」） */
.ntm-who, .ntm-table--inl .ntm-m-pr { padding: 1px 8px; font-size: 12px; }
.ntm-table--inl .ntm-m-pr { min-width: 0; }
.ntm-table--inl .ntm-inl { padding: 2px 4px; margin: -2px -4px; gap: 2px; }
@media (min-width: 901px) {
  .ntm-table--inl col[data-col="who"] { width: 132px; }
  .ntm-table--inl col[data-col="pr"] { width: 70px; }
}
@media (min-width: 901px) and (max-width: 1440px) {
  .ntm-table--inl col[data-col="who"] { width: 124px; }
  .ntm-table--inl col[data-col="work"] { width: 104px; }
  .ntm-table--inl col[data-col="pr"] { width: 66px; }
}
@media (min-width: 1101px) {   /* 右の欄を開いた2行の組み: 担当と優先度に札の入る幅を */
  .ntm-layout.is-panel .ntm-table.ntm-table--inl tr { grid-template-columns: 30px 92px 106px 118px 96px 62px minmax(0, 1fr); }
}
@media (min-width: 1101px) {   /* 右の欄を開いた2行の組みでは、操作のマスの決め打ちの幅を外す（列から左へはみ出して優先度に重なった） */
  .ntm-layout.is-panel .ntm-table--inl td.ntm-c-act { width: auto !important; min-width: 0; justify-self: stretch; }
}
@media (min-width: 1101px) and (max-width: 1280px) {   /* 狭い PC で右の欄を開いたときは列を詰め、通知・メモ・編集の場所を空ける */
  .ntm-layout.is-panel .ntm-table.ntm-table--inl tr { grid-template-columns: 30px 94px 100px 98px 88px 52px minmax(0, 1fr); column-gap: 6px; }
  .ntm-layout.is-panel .ntm-table--inl .ntm-row-actions { gap: 4px; }
}
/* 第4版（試作）: 容量メーター・添付・クリップの印・ごみ箱 */
.ntm-meter { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.ntm-meter__bar { width: 64px; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 12%, transparent); overflow: hidden; }
.ntm-meter__bar i { display: block; height: 100%; background: var(--acc); }
.ntm-meter.is-warn { color: var(--warn); } .ntm-meter.is-warn .ntm-meter__bar i { background: var(--warn); }
.ntm-meter.is-full { color: var(--bad); } .ntm-meter.is-full .ntm-meter__bar i { background: var(--bad); }
.ntm-meter-note { margin: 6px 0 0; padding: 4px 10px; border-radius: 6px; background: var(--warn-soft); color: var(--warn); font-size: 12.5px; font-weight: 700; }
.ntm-meter-note.is-full { background: var(--bad-soft); color: var(--bad); }
.ntm-att { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.ntm-att li { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 4px 2px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--sheet); font-size: 12px; }
.ntm-att li a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22em; color: var(--acc); font-weight: 700; }
.ntm-att li small { color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.ntm-att__x { min-height: 22px !important; width: 22px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--ink-3); font-size: 13px !important; cursor: pointer; }
@media (hover: hover) { .ntm-att__x:hover { color: var(--bad); background: var(--bad-soft); } }
.ntm-clip { display: inline-grid; place-items: center; width: 30px; height: 30px; min-height: 30px !important; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--sheet); color: var(--ink-2); cursor: pointer; }
.ntm-clip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .ntm-clip:hover { color: var(--acc); border-color: var(--acc); } }
.ntm-clip:focus-visible, .ntm-att__x:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.ntm-pop__link input[type=url] { flex: 1 1 100%; }
.ntm-trash__now { display: grid; gap: 4px; margin: 4px 0 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.ntm-trash__now span { font-size: 12px; color: var(--ink-3); }
.ntm-trash__now .nx-btn { justify-self: start; min-height: 34px !important; font-size: 13px !important; }
.ntm-trash__list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; max-height: 40vh; overflow: auto; }
.ntm-trash__list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.ntm-trash__list li span { flex: 1 1 auto; font-size: 12px; color: var(--ink-3); }
.ntm-trash__list .nx-btn { min-height: 32px !important; font-size: 13px !important; }
.ntm-trash__none { color: var(--ink-3); border-style: dashed !important; }
@media (max-width: 760px) { .ntm-clip { width: 44px; height: 44px; min-height: 44px !important; } .ntm-att__x { width: 34px; min-height: 34px !important; } }
/* 第4版: ファイルを選ぶ欄は隠し、日本語のボタンと選んだ名前を出す */
.ntm-filein { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.ntm-filepick { min-height: 34px !important; padding: 0 12px; font-size: 13px !important; cursor: pointer; }
.ntm-filepick.is-off { opacity: .5; cursor: default; pointer-events: none; }
.ntm-filein:focus-visible + .ntm-filepick { outline: 2px solid var(--acc); outline-offset: 1px; }
.ntm-filename { flex: 1 1 120px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--ink-2); }

/* ═══ 第5版（試作）: 1作業1行の見渡す形（.ntd-*）。字は小さめにそろえ、行を詰めて1画面に多く入れる ═══ */
.ntd-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 8px; }
.ntd-kpi { display: flex; flex-wrap: wrap; gap: 6px; }
.ntd-k { display: inline-flex; align-items: baseline; gap: 4px; min-height: 26px; padding: 0 11px; border: 1px solid var(--line-2, var(--line)); border-radius: 999px; background: var(--sheet); color: var(--ink-2); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.ntd-k em { font-style: normal; font-size: 13.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ntd-k[data-kf="late"]:not(:disabled) { background: var(--bad-soft); color: var(--bad); border-color: transparent; } .ntd-k[data-kf="late"] em { color: var(--bad); }
.ntd-k[data-kf="today"]:not(:disabled), .ntd-k[data-kf="adj"] { background: var(--warn-soft); color: var(--warn); border-color: transparent; } .ntd-k[data-kf="today"] em, .ntd-k[data-kf="adj"] em { color: var(--warn); }
.ntd-k[aria-pressed="true"] { outline: 2px solid var(--acc); outline-offset: 1px; }
.ntd-k:disabled { opacity: .55; cursor: default; }
@media (hover: hover) { .ntd-k:not(:disabled):hover { border-color: var(--acc); } }
.ntd-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.ntd-sel { font-size: 12px; color: var(--ink-3); }
.ntd-add { min-height: 28px !important; padding: 0 12px !important; font-size: 12.5px !important; }
.ntd-wrap { overflow-x: auto; }
.ntd-table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.35; }
.ntd-table th { position: sticky; top: 0; z-index: 2; padding: 4px 6px; border-bottom: 1px solid var(--line-2, var(--line)); background: var(--sheet-2); color: var(--ink-3); font-size: 11px; font-weight: 700; text-align: left; white-space: nowrap; }
.ntd-table th .ntm-hf > summary, .ntd-table th .ntm-hsort { min-height: 0; padding: 0; font-size: 11px; }
.ntd-table td { height: 27px; padding: 2px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.ntd-c-chk { width: 26px; } .ntd-c-chk .ntm-check { min-width: 0; min-height: 0; }
.ntd-c-name { width: 100%; max-width: 1px; overflow: hidden; text-overflow: ellipsis; }
.ntd-c-case { max-width: 15em; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.ntd-c-case a { color: var(--ink); text-decoration: none; }
@media (hover: hover) { .ntd-c-case a:hover { color: var(--acc); text-decoration: underline; } }
.ntd-name { cursor: pointer; font-weight: 700; color: var(--ink); }
.ntd-name:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; border-radius: 3px; }
@media (hover: hover) { .ntd-name:hover .ntd-text { color: var(--acc); } }
.ntd-mark { display: inline-block; margin-right: 5px; padding: 0 4px; border: 1px solid var(--line-2, var(--line)); border-radius: 4px; color: var(--ink-3); font-size: 10px; font-weight: 700; vertical-align: 1px; }
.ntd-chip { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; background: var(--paper-2); color: var(--ink-2); vertical-align: 1px; }
.ntd-chip.is-requested, .ntd-chip.is-adj { background: var(--warn-soft); color: var(--warn); }
.ntd-chip.is-approved { background: var(--ok-soft); color: var(--ok); }
.ntd-chip.is-returned, .ntd-chip.is-bad, .ntd-chip.is-stale { background: var(--bad-soft); color: var(--bad); }
.ntd-d { font-variant-numeric: tabular-nums; font-weight: 700; } .ntd-d small { margin-left: 3px; color: var(--ink-3); font-size: 10px; font-weight: 700; }
.ntd-c-due.is-late .ntd-d, .ntd-c-due.is-late .ntd-d small { color: var(--bad); }
.ntd-c-due.is-today .ntd-d, .ntd-c-due.is-soon .ntd-d { color: var(--warn); }
.ntd-table .ntm-inl { min-height: 0; padding: 1px 2px; font-size: 12px; }
.ntd-table .ntm-who, .ntd-table .ntm-st { font-size: 11px; padding: 1px 8px; }
.ntd-table .ntm-m-pr::before { content: "●"; margin-right: 1px; font-size: 10px; }
.ntd-c-ic { width: 1%; color: var(--ink-3); }
.ntd-ic { width: 13px; height: 13px; margin-left: 3px; fill: none; stroke: currentColor; stroke-width: 1.5; vertical-align: -2px; }
.ntd-ic.is-on { color: var(--acc); }
.ntd-g td { height: 22px; padding: 2px 6px; background: var(--sheet-2); color: var(--ink-2); font-size: 11px; font-weight: 700; }
.ntd-g td span { margin-left: 6px; color: var(--ink-3); font-weight: 700; }
.ntd-row.is-open td { background: color-mix(in srgb, var(--acc) 5%, var(--sheet)); }
.ntd-row.is-done .ntd-text { color: var(--ink-3); }
@media (hover: hover) { .ntd-row:hover td { background: color-mix(in srgb, var(--acc) 5%, transparent); } }
.ntd-det td { padding: 2px 6px 8px; height: auto; white-space: normal; background: color-mix(in srgb, var(--acc) 5%, var(--sheet)); }
.ntd-det__in { display: grid; gap: 4px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.ntd-det__in p { margin: 0; }
.ntd-det__basis span { margin-right: 6px; padding: 0 6px; border-radius: 4px; background: var(--paper-2); font-size: 10.5px; font-weight: 700; }
.ntd-det__basis.is-adj span { background: var(--warn-soft); color: var(--warn); }
.ntd-det__detail.is-check { color: var(--warn); }
.ntd-det__in .ntm-memos { margin: 0; } .ntd-memo-meta { margin-left: 6px; color: var(--ink-3); font-size: 10.5px; }
.ntd-det__acts { display: flex; flex-wrap: wrap; gap: 4px; }
.ntd-det__acts .ntm-hbtn { min-height: 24px !important; font-size: 11.5px !important; }
.ntd-det__acts .ntm-ntfsw[aria-checked="true"] { border-color: var(--acc); color: var(--acc); }
.ntd-none td { padding: 10px 6px; color: var(--ink-3); }
/* すべてのタイトル: 右は「この先の締切」「人ごとの残り」 */
.ntd-side { box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--sheet-2); font-size: 12px; }
.ntd-side h2 { margin: 2px 0 6px; font-size: 12px; font-weight: 800; }
.ntd-side h2 ~ h2 { margin-top: 14px; }
.ntd-side ul { list-style: none; margin: 0; padding: 0; }
.ntd-ahead li, .ntd-people li a { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px dashed var(--line); font-weight: 700; }
.ntd-ahead li > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.ntd-ahead .ntd-ahead-w { display: flex; justify-content: flex-end; gap: 4px; }
.ntd-ahead .ntd-ahead-w > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ntd-ahead .ntd-ahead-w > small { flex: none; font-size: 11px; font-weight: 700; }
.ntd-ahead li.is-today .ntd-d { color: var(--warn); }
.ntd-people li a { color: var(--ink); text-decoration: none; align-items: center; }
.ntd-people li a[aria-current] { color: var(--acc); }
.ntd-people b, .ntd-people .is-late { color: var(--bad); }
@media (hover: hover) { .ntd-people li a:hover { color: var(--acc); } }
.ntd-meter span { display: block; height: 5px; border-radius: 9px; background: var(--line-2, var(--line)); overflow: hidden; margin-bottom: 3px; }
.ntd-meter i { display: block; height: 5px; background: var(--acc); }
.ntd-meter.is-warn i { background: var(--warn); } .ntd-meter.is-full i { background: var(--bad); }
.ntd-meter { color: var(--ink-3); font-size: 11px; }
.ntd-none { color: var(--ink-3); }
@media (min-width: 1101px) {
  .ntm-layout.ntd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 10px; align-items: start; }
  .ntm-layout.ntd-layout .ntd-side { position: sticky; top: 84px; }
}
.ntd-k { min-height: 26px !important; font-size: 12px !important; line-height: 1.4 !important; }
.ntd-table .ntm-check { min-height: 0; } .ntd-table .ntm-check input[type=checkbox] { width: 15px; min-width: 15px; height: 15px; min-height: 15px; }
.ntd-table .ntm-inl { min-height: 0; margin: -1px -2px; padding: 0 2px; overflow: visible; }
.ntd-table .ntm-inl::after { content: none; }
.ntd-table .ntm-who { max-width: 7em; line-height: 1.5; }
/* 狭い画面: 1行を2段（上: 印と作業名／下: いつまで・担当・状態） */
@media (max-width: 900px) {
  .ntd-table, .ntd-table tbody { display: block; }
  .ntd-table thead { display: block; } .ntd-table thead tr { display: flex; flex-wrap: wrap; gap: 0 12px; padding: 4px 0; border-bottom: 1px solid var(--line); }
  .ntd-table thead th { position: static; padding: 0; border: 0; background: transparent; }
  .ntd-table thead th.ntd-c-name, .ntd-table thead th.ntd-c-case, .ntd-table thead th.ntd-c-ic, .ntd-table thead th.ntd-c-work { display: none; }
  .ntd-table thead th .ntm-hf > summary, .ntd-table thead th .ntm-hsort { min-height: 44px; font-size: 13px; }
  .ntd-row { display: grid; grid-template-columns: 30px auto auto auto auto minmax(0, 1fr) auto; align-items: center; gap: 2px 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
  .ntd-row[hidden], .ntd-det[hidden], .ntd-g[hidden] { display: none; }
  .ntd-row td { display: block; height: auto; padding: 0; border: 0; max-width: none; }
  .ntd-row .ntd-c-chk { grid-column: 1; grid-row: 1 / 3; }
  .ntd-row .ntd-c-name { grid-column: 2 / 7; grid-row: 1; width: auto; white-space: normal; font-size: 13px; }
  .ntd-row .ntd-c-ic { grid-column: 7; grid-row: 1; }
  .ntd-row .ntd-c-case, .ntd-row .ntd-c-work { display: none; }
  .ntd-row .ntd-c-due { grid-column: 2; grid-row: 2; } .ntd-row .ntd-c-who { grid-column: 3; grid-row: 2; }
  .ntd-row .ntd-c-st { grid-column: 4; grid-row: 2; } .ntd-row .ntd-c-pr { grid-column: 5; grid-row: 2; }
  .ntd-g, .ntd-det, .ntd-none { display: block; } .ntd-g td, .ntd-det td, .ntd-none td { display: block; } .ntd-det td:first-child { display: none; }
  .ntd-table .ntm-inl { min-height: 32px; }
  .ntd-c-chk .ntm-check { min-width: 30px; min-height: 32px; }
}
@media (min-width: 901px) {
  .ntd-c-due, .ntd-c-work, .ntd-c-who, .ntd-c-st, .ntd-c-pr { width: 1%; }
  .ntd-table .ntm-inl { max-width: none; }
}
/* 第5版: 参加の準備（右の欄）も同じ細かさ。上にまとめの札、下はタブで1つずつ・1項目1行 */
.ntd-on .ntm-panel { font-size: 12px; }
.ntd-on .ntm-panel__head h2 { font-size: 14px; }
.ntd-on .ntm-psum { gap: 4px; }
.ntd-on .ntm-psum__i { padding: 4px 6px; font-size: 11px; }
.ntd-on .ntm-psum__v { font-size: 13px; }
.ntd-on .ntm-panel__note { margin: 4px 0; font-size: 11px; }
.ntd-ptabs { display: flex; gap: 2px; margin: 4px 0 6px; border-bottom: 1px solid var(--line-2, var(--line)); }
.ntd-ptabs button { min-height: 28px !important; padding: 0 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--ink-3); font: inherit; font-size: 12px !important; font-weight: 700; cursor: pointer; }
.ntd-ptabs button[aria-selected="true"] { border-bottom-color: var(--acc); color: var(--acc); }
@media (hover: hover) { .ntd-ptabs button:hover { color: var(--acc); } }
.ntd-on .ntm-panel .pr-box[data-ptab] { padding: 0; border: 0; background: transparent; box-shadow: none; }
.ntd-on .ntm-panel .pr-box[data-ptab] > h3 { display: none; }
.ntd-on .ntm-panel .pr-box[data-ptab] li { padding-top: 3px; padding-bottom: 3px; font-size: 12px; }
.ntd-on .ntm-panel .pr-box[data-ptab] p { font-size: 11.5px; }
/* 第5版: 参加の準備のタブの中は1項目1行（日程・条件・書類） */
.ntd-on .ntm-panel .pr-dates li { display: grid; grid-template-columns: 3.4em 4.6em minmax(0, 1fr) auto; align-items: baseline; gap: 6px; padding: 3px 4px; min-height: 0; }
.ntd-on .ntm-panel .pr-dates li > * { margin: 0; grid-column: auto; grid-row: auto; align-self: baseline; }
.ntd-on .ntm-panel .pr-dates__d small { margin-left: 2px; font-size: 10px; }
.ntd-on .ntm-panel .pr-dates__k { font-size: 10.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ntd-on .ntm-panel .pr-dates__l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ntd-on .ntm-panel .pr-left { font-size: 10.5px; white-space: nowrap; }
.ntd-on .ntm-panel .pr-doc { display: grid; grid-template-columns: 4.2em minmax(0, 1fr) auto auto; align-items: center; gap: 6px; padding: 3px 0 3px 26px; }
.ntd-on .ntm-panel .pr-doc__st { min-height: 22px !important; padding: 0 4px; font-size: 11px !important; }
.ntd-on .ntm-panel .pr-doc > div { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ntd-on .ntm-panel .pr-doc > div > b { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.ntd-on .ntm-panel .pr-doc > div > p { flex: 1 1 0; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); font-size: 11px; }
.ntd-on .ntm-panel .pr-doc__who { max-width: 6.5em; min-height: 22px !important; padding: 0 2px; font-size: 11px !important; }
.ntd-on .ntm-panel .pr-doc__recv { display: inline-flex; align-items: center; gap: 2px; font-size: 0; white-space: nowrap; }
.ntd-on .ntm-panel .pr-doc__recv::after { content: "受付"; font-size: 11px; }
.ntd-on .ntm-panel .pr-doc__recv input { width: 13px; height: 13px; min-height: 0; }
.ntd-on .ntm-panel .pr-to { font-size: 10.5px; white-space: nowrap; }
.ntd-on .ntm-panel .pr-del { width: 20px; height: 20px; min-width: 0; min-height: 0 !important; font-size: 12px; top: 50%; transform: translateY(-50%); }
.ntd-on .ntm-panel .pr-docg h4, .ntd-on .ntm-panel .pr-askg h4 { margin: 6px 0 2px; font-size: 11px; }
.ntd-on .ntm-panel .pr-cond { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 3px 0 3px 26px; }
.ntd-on .ntm-panel .pr-cond > div { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.ntd-on .ntm-panel .pr-cond > div > b { white-space: nowrap; font-size: 12px; }
.ntd-on .ntm-panel .pr-cond > div > p, .ntd-on .ntm-panel .pr-cond > div > q { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--ink-3); }
.ntd-on .ntm-panel .pr-doc > div > b { flex: 0 0 auto; max-width: 55%; }
.ntd-on .ntm-panel .pr-doc > div > p { display: none; }
.ntd-on .ntm-panel .pr-doc__who { flex: 0 0 auto; }
.ntd-on .ntm-panel .pr-cond > button, .ntd-on .ntm-panel .pr-cond > label { min-height: 22px !important; padding: 0 6px !important; font-size: 11px !important; }
.ntd-on .ntm-panel .pr-add { min-height: 26px !important; padding: 0; font-size: 14px !important; }
.ntd-on .ntm-panel .pr-del { font-size: 12px !important; }
.ntd-on .ntm-panel .pr-mini { min-height: 22px !important; padding: 0 6px !important; font-size: 11px !important; }
.ntd-table .ntm-who { min-width: 3.4em; text-align: center; flex-shrink: 0; } .ntd-table .ntd-c-who .ntm-inl { overflow: visible; }
.ntm-apprs > summary b { margin-left: 4px; color: var(--ink); }
/* ═══ 10/30 の直し（第5版の行） ═══ */
.ntd-namebox { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ntd-namebox .ntd-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ntd-row.is-open .ntd-namebox .ntd-name { white-space: normal; overflow: visible; }
.ntd-c-name { overflow: visible; }
.ntd-racts { flex: none; display: inline-flex; gap: 3px; }
.ntd-mini { min-height: 20px !important; padding: 0 6px; border: 1px solid var(--line-2, var(--line)); border-radius: 5px; background: var(--sheet); color: var(--ink-3); font: inherit; font-size: 10.5px !important; font-weight: 700; line-height: 1.5; cursor: pointer; }
@media (hover: hover) { .ntd-mini:not(:disabled):hover { border-color: var(--acc); color: var(--acc); } }
.ntd-mini:disabled { opacity: .5; cursor: default; }
.ntd-icb { display: inline-grid; place-items: center; width: 22px; height: 22px; min-height: 22px !important; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--ink-3); opacity: .55; cursor: pointer; }
.ntd-icb svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.ntd-icb.is-on { color: var(--acc); opacity: 1; }
@media (hover: hover) { .ntd-icb:hover { opacity: 1; background: color-mix(in srgb, var(--acc) 8%, transparent); color: var(--acc); } }
.ntd-icb:focus-visible { outline: 2px solid var(--acc); opacity: 1; }
.ntd-c-ic { white-space: nowrap; }
/* メモ・添付は閉じていても1行下に（目立たせる） */
.ntd-row.has-sub td { border-bottom: 0; }
.ntd-sub td { padding: 0 6px 4px; border-bottom: 1px solid var(--line); white-space: normal; }
.ntd-sub__in { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 11.5px; }
.ntd-memos { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.ntd-memos li { color: var(--ink); font-weight: 600; }
.ntd-memo-ic { display: inline-block; margin-right: 5px; padding: 0 5px; border-radius: 4px; background: var(--warn-soft); color: var(--warn); font-size: 10px; font-weight: 800; }
.ntd-att { margin: 0; }
.ntd-att li { font-size: 11.5px; }
/* 開いた中身は大きく見やすく */
.ntd-det__body { font-size: 13px; font-weight: 500; color: var(--ink); white-space: pre-wrap; line-height: 1.7; }
.ntd-det__in .ntd-det__detail { font-size: 12.5px; }
/* 編集の窓: 上＝件名、下＝広い詳しい内容 */
.ntd-edit { width: min(640px, calc(100vw - 32px)); }
.ntd-edit form { display: grid; gap: 8px; }
.ntd-edit__title { min-height: 40px; padding: 0 10px; border: 1px solid var(--line-2, var(--line)); border-radius: 6px; background: var(--sheet); color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; }
.ntd-edit__body { min-height: 200px; padding: 8px 10px; border: 1px solid var(--line-2, var(--line)); border-radius: 6px; background: var(--sheet); color: var(--ink); font: inherit; font-size: 14px; line-height: 1.7; resize: vertical; }
/* 優先: ●の中に高・中・低（赤・オレンジ・青） */
.ntd-pr { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: 10.5px; font-weight: 800; line-height: 1; }
.ntd-pr[data-p="high"] { background: #c0392b; } .ntd-pr[data-p="mid"] { background: #e67e22; } .ntd-pr[data-p="low"] { background: #2e6fb5; }
/* 担当の登録の10色 */
[data-wc="red"] { --wcb: #fde2df; --wcf: #a52a1f; } [data-wc="orange"] { --wcb: #fde7d3; --wcf: #a5520c; } [data-wc="amber"] { --wcb: #fbefc8; --wcf: #7d5a00; }
[data-wc="green"] { --wcb: #dcf1e2; --wcf: #23663d; } [data-wc="teal"] { --wcb: #d6efec; --wcf: #0f5f58; } [data-wc="sky"] { --wcb: #dceef8; --wcf: #1d5e82; }
[data-wc="blue"] { --wcb: #dde6fa; --wcf: #2448a0; } [data-wc="indigo"] { --wcb: #e3e0f8; --wcf: #3d3592; } [data-wc="purple"] { --wcb: #efe0f6; --wcf: #6d2e8a; } [data-wc="pink"] { --wcb: #fbe0ec; --wcf: #9a2459; }
.ntm-who[data-wc] { background: color-mix(in srgb, var(--wcf) 18%, var(--sheet)); color: color-mix(in srgb, var(--wcf) 75%, var(--ink)); box-shadow: none; }   /* 明暗どちらでも読める混ぜ方 */
.ntm-pop__o[data-wc] { color: var(--wcf); }
.ntm-pop__o[data-wc]::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--wcf); }
.ntd-swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 4px 0 8px; }
.ntd-sw { min-height: 28px !important; padding: 0; border: 2px solid transparent; border-radius: 999px; background: color-mix(in srgb, var(--wcf) 18%, var(--sheet)); color: color-mix(in srgb, var(--wcf) 75%, var(--ink)); font: inherit; font-size: 11px !important; font-weight: 800; cursor: pointer; }
.ntd-sw[aria-checked="true"] { border-color: var(--wcf); }
@media (max-width: 900px) {
  .ntd-sub, .ntd-sub td { display: block; } .ntd-sub td:first-child { display: none; } .ntd-sub td { padding: 0 0 6px 36px; }
  .ntd-row .ntd-c-ic { grid-row: 1; }
  .ntd-mini { min-height: 32px !important; padding: 0 10px; font-size: 12px !important; }
  .ntd-icb { width: 36px; height: 36px; }
}
/* 10/30: 参加の準備の「確認」の下書き。ボタンと文面を小さく（周りと同じ細かさ） */
.ntd-on .ntm-panel .pr-draft__go { min-height: 26px !important; padding: 0 10px !important; font-size: 11.5px !important; }
.ntd-on .ntm-panel .pr-draft textarea, .ntd-on .ntm-panel .pr-draft pre, .ntd-on .ntm-panel .pr-draft p { font-size: 11.5px !important; line-height: 1.6; }
.ntd-on .ntm-panel .pr-draft textarea { padding: 6px 8px; }
.ntd-on .ntm-panel .pr-draft .nx-btn { min-height: 24px !important; padding: 0 8px !important; font-size: 11px !important; }
.ntd-on .ntm-panel .pr-askg li { font-size: 12px; }
/* 狭い画面は件名を優先（メモ・編集は件名を押して開いたときに出す） */
@media (max-width: 900px) {
  .ntd-namebox { flex-wrap: wrap; } .ntd-namebox .ntd-name { white-space: normal; }
  .ntd-racts { display: none; } .ntd-row.is-open .ntd-racts { display: inline-flex; }
}
/* ═══ 10/30 上を詰める（見出し・切り替え・容量・履歴を1行）・ごみ箱は印だけ ═══ */
.ntd-head { margin: 0 0 8px; }
.ntd-crumbs { margin: 0 0 2px; font-size: 11.5px; }
.ntd-head__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.ntd-head__row h1 { margin: 0; font-size: 24px; font-weight: 900; line-height: 1.2; }
.ntd-switch { display: inline-flex; padding: 2px; border: 1px solid var(--line-2, var(--line)); border-radius: 999px; background: var(--sheet-2); }
.ntd-switch a { display: inline-flex; align-items: center; min-height: 28px; padding: 0 14px; border-radius: 999px; color: var(--ink-2); font-size: 13px; font-weight: 700; text-decoration: none; }
.ntd-switch a[aria-current] { background: var(--sheet); color: var(--acc); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
@media (hover: hover) { .ntd-switch a:not([aria-current]):hover { color: var(--acc); } }
.ntd-hmeter { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--ink-3); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.ntd-hmeter__bar { display: inline-block; width: 90px; height: 4px; border-radius: 9px; background: var(--line-2, var(--line)); overflow: hidden; }
.ntd-hmeter__bar i { display: block; height: 4px; background: var(--acc); }
.ntd-hmeter.is-warn .ntd-hmeter__bar i { background: var(--warn); } .ntd-hmeter.is-full .ntd-hmeter__bar i { background: var(--bad); }
.ntd-hist { min-height: 30px !important; padding: 0 12px !important; font-size: 12.5px !important; }
.ntd-on ~ .ntm-top, .ntd-head + .ntm-top { margin-bottom: 8px; }
.ntd-trash { position: absolute; top: 4px; right: 12px; display: inline-flex; align-items: center; gap: 2px; min-height: 26px !important; padding: 0 4px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-3); cursor: pointer; }
.ntd-trash svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ntd-trash b { min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px; background: var(--ink-3); color: var(--sheet); font-size: 10px; line-height: 15px; text-align: center; }
.ntd-trash::after { content: attr(data-tip); position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; display: none; width: max-content; padding: 4px 8px; border-radius: 6px; background: var(--ink); color: var(--sheet); font-size: 11.5px; font-weight: 700; }
.ntd-trash:focus-visible { outline: 2px solid var(--acc); } .ntd-trash:focus-visible::after { display: block; }
@media (hover: hover) { .ntd-trash:hover { color: var(--acc); background: color-mix(in srgb, var(--acc) 8%, transparent); } .ntd-trash:hover::after { display: block; } }
.ntm-top:has(.ntd-trash) .ntm-caselink { right: 46px; }
.ntm-top:has(.ntd-trash) .ntm-titlebar { padding-top: 26px; }
@media (max-width: 760px) {
  .ntd-head__row h1 { font-size: 20px; } .ntd-hmeter { margin-left: 0; order: 5; } .ntd-hist { margin-left: auto; }
  .ntd-switch a, .ntd-hist { min-height: 40px !important; }
  .ntd-trash { min-height: 40px !important; min-width: 40px; justify-content: center; }
}
@media (min-width: 641px) { .ntm-board .ntd-head { margin-left: 32px; } }
.ntm-top:has(.ntd-trash) .ntm-titlebar { padding-top: 22px; }
/* 参加の準備を開いて表が狭いときは件名を優先（メモ・編集は行に当てたとき・開いたときに出す） */
@media (min-width: 901px) {
  .ntm-layout.is-panel .ntd-racts { display: none; }
  .ntm-layout.is-panel .ntd-row.is-open .ntd-racts, .ntm-layout.is-panel .ntd-row:focus-within .ntd-racts { display: inline-flex; }
}
@media (min-width: 901px) and (hover: hover) { .ntm-layout.is-panel .ntd-row:hover .ntd-racts { display: inline-flex; } }
/* ═══ 10/30 試作: 容量メーター（大きく・押すとファイルの管理）・ファイルの管理・対応完了（クローズ） ═══ */
.ntd-hmeter { gap: 10px; padding: 4px 10px; border: 1px solid var(--line-2, var(--line)); border-radius: 999px; background: var(--sheet); font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.ntd-hmeter__bar { width: 150px; height: 8px; }
.ntd-hmeter__bar i { height: 8px; }
.ntd-hmeter b { color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.ntd-hmeter.is-warn { border-color: var(--warn); } .ntd-hmeter.is-full { border-color: var(--bad); }
@media (hover: hover) { .ntd-hmeter:hover { border-color: var(--acc); } }
.ntd-hmeter:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.ntd-files { width: min(920px, calc(100vw - 24px)); }
.ntd-files__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.ntd-files__head h2 { margin: 0; font-size: 18px; }
.ntd-files__use { color: var(--ink-3); font-size: 12px; } .ntd-files__use b { color: var(--ink); }
.ntd-files__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 10px 0 6px; font-size: 12px; }
.ntd-files__tools input[type=search] { flex: 1 1 14em; min-width: 0; min-height: 32px; padding: 0 8px; border: 1px solid var(--line-2, var(--line)); border-radius: 6px; background: var(--sheet); color: var(--ink); font: inherit; }
.ntd-files__sort { display: inline-flex; padding: 2px; border: 1px solid var(--line-2, var(--line)); border-radius: 999px; }
.ntd-files__sort button { min-height: 26px !important; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-size: 12px !important; font-weight: 700; cursor: pointer; }
.ntd-files__sort button[aria-pressed="true"] { background: var(--sheet-2); color: var(--acc); }
.ntd-files__tr { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); }
.ntd-files__wrap { max-height: 52vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.ntd-files__t { width: 100%; border-collapse: collapse; font-size: 12px; }
.ntd-files__t th { position: sticky; top: 0; padding: 4px 6px; background: var(--sheet-2); color: var(--ink-3); font-size: 11px; text-align: left; white-space: nowrap; }
.ntd-files__t td { padding: 3px 6px; border-top: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.ntd-files__n { max-width: 18em; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.ntd-files__s { text-align: right; font-variant-numeric: tabular-nums; }
.ntd-files__c { max-width: 18em; overflow: hidden; text-overflow: ellipsis; } .ntd-files__c small { display: block; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.ntd-files__in { margin-left: 6px; padding: 0 5px; border-radius: 4px; background: var(--paper-2); color: var(--ink-3); font-size: 10px; }
.ntd-files__none { padding: 12px 6px; color: var(--ink-3); }
.ntd-empty { color: var(--bad) !important; }
.ntd-closedbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 0; padding: 6px 10px; border-radius: 8px; background: var(--ok-soft); color: var(--ok); font-size: 13px; font-weight: 700; }
.ntd-closedbar .nx-btn { min-height: 28px !important; padding: 0 12px !important; font-size: 12.5px !important; }
.ntd-close { color: var(--ok) !important; }
.ntd-ends { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
@media (max-width: 760px) {
  .ntd-hmeter__bar { width: 90px; }
  .ntd-files__t th:nth-child(4), .ntd-files__t td:nth-child(4), .ntd-files__t th:nth-child(5), .ntd-files__t td:nth-child(5) { display: none; }
  .ntd-files__sort button, .ntd-files__tools input[type=search] { min-height: 40px !important; }
}
.ntd-hmeter { min-height: 34px !important; border-radius: 999px !important; }
.ntd-files__tr { flex-direction: row !important; white-space: nowrap; }
.ntd-files__tr input { width: 15px; height: 15px; min-height: 0; margin: 0; }
@media (max-width: 760px) { .ntd-hmeter { min-height: 40px !important; } }
/* 10/30 点検 tbclose2: 長い名前でも「戻す」が切れない（省略は名前だけ） */
.ntd-files__n { overflow: visible; max-width: none; }
.ntd-files__nb { display: flex; align-items: center; gap: 6px; max-width: 22em; min-width: 0; }
.ntd-files__nb a { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ntd-files__nb .ntd-files__in, .ntd-files__nb .ntd-mini { flex: none; margin-left: 0; }
@media (max-width: 760px) { .ntd-files__nb { max-width: 13em; } }

/* 作業を開いた詳細のコメント。件数の印だけを表に出す。 */
.ntc-count { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-3); font: inherit; font-size: 11px; cursor: pointer; }
.ntc-count.is-unread { color: var(--acc); background: var(--acc-soft, var(--sheet-2)); font-weight: 800; }
.ntc-count:focus-visible { outline: 2px solid var(--acc); }
.ntc-comments { min-width: 0; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink); }
.ntc-comments h3 { margin: 0 0 4px; font-size: 12px; }
.ntc-comments ol { margin: 0; padding: 0; list-style: none; }
.ntc-comments li { margin: 0; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ntc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--ink-3); font-size: 11px; }
.ntc-meta button { margin-left: auto; }
.ntc-comments li p { margin: 3px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ntc-comments form { display: flex; align-items: flex-end; gap: 6px; margin-top: 6px; }
.ntc-comments textarea { flex: 1; min-width: 0; width: 100%; max-width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--sheet); color: var(--ink); font: inherit; resize: vertical; }
.ntc-comments [role=alert]:empty { display: none; }
@media (hover: hover) { .ntc-count:hover { color: var(--acc); } }
@media (max-width: 760px) {
  .ntc-count, .ntc-comments button { min-height: 40px !important; min-width: 40px; }
  .ntd-row:has(.ntc-count) { column-gap: 4px; }
  .ntd-row .ntd-c-ic:has(.ntc-count) { display: flex; width: auto; justify-content: flex-end; }
}

/* 2026-10-31: タスク管理の開いた詳細を表と同じ小ささに。
   承認・差し戻し・承認を頼むは行のメモ・編集と同じ小さなボタン（大きく浮いていた）。承認の帯は横いっぱいに伸ばさず中身の幅だけ */
.ntd-det__in .ntm-appr { justify-self: start; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 100%; padding: 2px 4px 2px 8px; border-radius: 6px; }
.ntd-mini.is-go { border-color: var(--acc); color: var(--acc); }
/* 頭の作業名を外したので、内容が無い作業はコメントから始まる。そのときは上の線と余白を付けない */
.ntd-det__in > .ntc-comments:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
/* 投稿は入力欄のすぐ右下に、編集の「保存」と同じ形で（右の端に小さく離れていた） */
.ntc-comments form { flex-direction: column; align-items: stretch; gap: 4px; }
.ntc-comments .ntc-post { align-self: flex-end; min-height: 28px !important; padding: 0 14px !important; font-size: 12.5px !important; }
@media (max-width: 760px) { .ntc-comments .ntc-post { min-height: 40px !important; } }

/* 10/31 試作: 技術者の山積表（台帳 10/30）。1人1行・月の横棒。確定＝塗り・候補＝枠・重なり＝赤。業務の表なので字は小さく密に */
.ntm-yama { width: min(1180px, calc(100vw - 24px)); }
.ntm-yama__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.ntm-yama__head h2 { margin: 0; font-size: 18px; }
.ntm-yama__head > .ntd-mini { margin-left: auto; }
.ntm-yama__span { color: var(--ink-3); font-size: 12px; }
.ntm-yama__key { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: 11.5px; }
.ntm-yama__key i { display: inline-block; width: 18px; height: 9px; margin-left: 6px; border-radius: 2px; }
.ntm-yama__key i.is-fix { background: var(--acc); } .ntm-yama__key i.is-cand { box-shadow: inset 0 0 0 1.5px var(--acc); } .ntm-yama__key i.is-over { background: var(--bad); }
.ntm-yama__wrap { margin-top: 8px; max-height: 64vh; overflow: auto; border: 1px solid var(--line); border-radius: 6px; }
.ntm-yama__t { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; font-size: 11.5px; }
.ntm-yama__t th, .ntm-yama__t td { padding: 3px 6px; border-top: 1px solid var(--line); vertical-align: top; text-align: left; }
.ntm-yama__t thead th { position: sticky; top: 0; z-index: 2; background: var(--sheet-2, var(--sheet)); color: var(--ink-3); font-size: 11px; }
.ntm-yama__t tfoot th, .ntm-yama__t tfoot td { position: sticky; bottom: 0; z-index: 2; background: var(--sheet-2, var(--sheet)); font-size: 11px; }
.ntm-yama__who { width: 11em; font-weight: 700; color: var(--ink); }
/* 横に送っても名前は左に残す */
.ntm-yama__t tbody .ntm-yama__who { position: sticky; left: 0; z-index: 1; background: var(--sheet); }
.ntm-yama__t thead .ntm-yama__who, .ntm-yama__t tfoot .ntm-yama__who { left: 0; z-index: 3; }
.ntm-yama__who b, .ntm-yama__who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ntm-yama__who small { color: var(--ink-3); font-size: 10px; font-weight: 500; }
.ntm-yama__tr { position: relative; }
.ntm-yama__axis { position: relative; height: 1.5em; }
.ntm-yama__m { position: absolute; top: 0; padding-left: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ntm-yama__m small { margin-right: 2px; font-size: 9.5px; }
.ntm-yama__m.is-now { color: var(--acc); font-weight: 800; }
.ntm-yama__axis.is-free .ntm-yama__m { color: var(--ink); font-weight: 800; }
.ntm-yama__axis.is-free .ntm-yama__m.is-zero { color: var(--bad); }
.ntm-yama__lane { position: relative; height: calc(var(--lanes, 1) * 19px + 3px); }
.ntm-yama__grid { position: absolute; top: -3px; bottom: -3px; border-left: 1px solid var(--line); }
.ntm-yama__today { position: absolute; top: -3px; bottom: -3px; border-left: 2px solid var(--acc); opacity: .55; }
.ntm-yama__bar { position: absolute; top: calc(var(--lane, 0) * 19px + 2px); height: 16px; box-sizing: border-box; padding: 0 4px; overflow: hidden; border-radius: 3px; font-size: 10.5px; font-weight: 700; line-height: 16px; white-space: nowrap; text-overflow: ellipsis; text-decoration: none; }
.ntm-yama__bar.is-fix { background: var(--acc); color: var(--sheet); }
.ntm-yama__bar.is-cand { background: var(--sheet); color: var(--acc); box-shadow: inset 0 0 0 1.5px var(--acc); }
.ntm-yama__bar.is-over.is-fix { background: var(--bad); color: var(--sheet); }
.ntm-yama__bar.is-over.is-cand { background: var(--bad-soft); color: var(--bad); box-shadow: inset 0 0 0 1.5px var(--bad); }
.ntm-yama__bar.is-tmp { background: repeating-linear-gradient(135deg, var(--sheet), var(--sheet) 4px, color-mix(in srgb, var(--acc) 18%, var(--sheet)) 4px, color-mix(in srgb, var(--acc) 18%, var(--sheet)) 8px); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--acc); }
.ntm-yama__bar.is-tmp.is-over { box-shadow: inset 0 0 0 2px var(--bad); color: var(--bad); }
.ntm-yama__bar em { margin-right: 3px; font-style: normal; opacity: .85; }
tr.is-over > .ntm-yama__who b { color: var(--bad); }
.ntm-yama__nodate { margin: 2px 0 0; color: var(--ink-3); font-size: 10.5px; }
.ntm-yama__nodate a { color: inherit; }
.ntm-yama__sim { display: grid; gap: 2px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; }
.ntm-yama__sim .ntm-yama__axis { color: var(--ink-3); font-size: 10.5px; }
.ntm-yama__say { margin: 2px 0 0; color: var(--ink-2); font-weight: 700; } .ntm-yama__say.is-over { color: var(--bad); }
@media (max-width: 760px) {
  .ntm-yama__head > .ntd-mini { min-height: 40px !important; }
  .ntm-yama__who { width: 6.5em; }
  .ntm-yama__bar { position: absolute; }
  .ntm-yama__sim { overflow-x: auto; } .ntm-yama__sim .ntm-yama__lane, .ntm-yama__sim .ntm-yama__axis { min-width: 520px; }
}
/* 凡例は1語ずつ（説明は「?」の吹き出しへ畳んだ） */
.ntm-yama__key { flex-wrap: wrap; }
.ntm-yama__key em { margin-left: 8px; padding: 0 3px; border-radius: 3px; background: var(--sheet-2); color: var(--ink); font-style: normal; font-weight: 800; }
.ntm-yama__key .nx-q { margin-left: 6px; }
/* 10/31 「項目を追加」の担当・ステータス: 表のマスと同じ窓を開くボタン（見た目は入力欄にそろえる） */
.ntm-add__pick { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.ntm-pickbtn { box-sizing: border-box; display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; min-height: 38px; padding: 8px 26px 8px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--sheet); color: var(--ink); font: inherit; font-size: 14px; font-weight: 400; text-align: left; cursor: pointer; position: relative; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ntm-pickbtn::after { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); }
.ntm-pickbtn[data-color]::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--stc, var(--ink-3)); }
.ntm-pickbtn[data-color="gray"] { --stc: #6b7280; } .ntm-pickbtn[data-color="blue"] { --stc: #2563a8; } .ntm-pickbtn[data-color="teal"] { --stc: #0f766e; }
.ntm-pickbtn[data-color="green"] { --stc: #2f7d32; } .ntm-pickbtn[data-color="amber"] { --stc: #a35a00; } .ntm-pickbtn[data-color="red"] { --stc: #b42318; } .ntm-pickbtn[data-color="purple"] { --stc: #6d3fb3; }
.ntm-pickbtn[data-wc] { color: color-mix(in srgb, var(--wcf) 75%, var(--ink)); font-weight: 700; }
/* ステータスの登録の7色（表の札と同じ色） */
.ntd-sw[data-sc="gray"] { --wcf: #6b7280; } .ntd-sw[data-sc="blue"] { --wcf: #2563a8; } .ntd-sw[data-sc="teal"] { --wcf: #0f766e; } .ntd-sw[data-sc="green"] { --wcf: #2f7d32; }
.ntd-sw[data-sc="amber"] { --wcf: #a35a00; } .ntd-sw[data-sc="red"] { --wcf: #b42318; } .ntd-sw[data-sc="purple"] { --wcf: #6d3fb3; }
.ntm-pop__msg { margin: 4px 0 0; color: var(--bad); font-size: 12px; }
.ntm-pop__msg:empty { display: none; }
@media (max-width: 900px) { .ntm-pickbtn { min-height: 44px; } }
/* 11/1 タスク管理の上の一文（期待を上げすぎない）とマニュアルへのリンク。毎日見る画面なので小さく1行 */
.ntm-intro { margin: 4px 0 0; font-size: 12px; color: var(--ink-3); }
.ntm-intro a { margin-left: 8px; color: var(--acc); font-weight: 700; }
@media (max-width: 900px) { .ntm-intro a { padding: 13px 4px; margin: -13px 0; } }   /* 押す広さは44px前後・行の高さは変えない */
/* 11/1 insp-clickT2-03: スマホでは表のマスを箱（display:block・grid の子）に変えるので、.ntd-table td の height:27px が「固定の高さ」になり、
   メモ・添付の行が 27px のまま下の詳細に重なって添付を押せなかった（表のマスのときは最低の高さとして働く）。狭い画面だけ中身に合わせる */
@media (max-width: 900px) { .ntd-table td { height: auto; min-height: 27px; } }
