﻿/* =========================================================================
   Project Studio — PS 固有の追加スタイル
   ★ps.css（P001 の写し）に手を入れずに、ここへ足す・上書きする。
   ★:root の配色トークンは増やさない。色は ps.css のトークンだけを使う。
   ★P002 Phase 29（決定234）で見た目を刷新した（角丸・札・枠のある欄。手本 P002 の docs/mockups/refresh-issue.html）。
     テンプレートには決定T11 で写した（鞠の飾りは写していない）
   ========================================================================= */

/* ---- ヘッダー（LY-01）は ps.css の §4（★P002 決定234 で紺の帯に作り直した。ログアウトは自分のメニューの中のフォーム） ---- */
/* ★テンプレート（決定T11）: 管理メニューに見える項目が 1 つも無い人（M＝テンプレートの管理の項目は A だけ）には、
   区切りの線も、狭い画面で丸の中に出す空の群も出さない（P002 は M にも「プロジェクト」があるので起きない） */
.ps-nav--admin:not(:has(> a:not([hidden]))) + .ps-header__div,
.ps-menu__admin:not(:has(> a:not([hidden]))) { display: none !important; }
/* ★テンプレート（決定T11）: ロゴの字はプロジェクト名なので長いこともある — ヘッダーでは画面の幅の 36% までにして、はみ出す分は … で切る
   （全文は title と読み上げの名前＝aria-label） */
.ps-brand { min-width: 0; max-width: 36vw; }
.ps-brand .wm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ---- LT-3 単一ペイン型の器 -------------------------------------------------
   固定ヘッダー ／ 画面見出し ／ 中央1枚（本文が縦にスクロール）／ 下端の操作行 ／ 固定フッター */
.ps-single {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--c-pane-bg);   /* ★パネル構成（ps.css）: LT-3 の1枚もパネル */
}
.ps-single .ps-pane__body { padding: 10px 16px; }

/* ---- LT-4 ①認証の姿: KSP-001 ログイン画面のサイズ感に寄せる ------------------
   参考: input/reference/screens/Login-KSP.png（カード幅 480px・上下余白 50px・ロゴ ／ 題 ／ 欄 ／ 右寄せボタン ／ 右下に version） */
.ps-card--auth {
  max-width: 480px;
  padding: 44px 52px 12px 52px;
  color: var(--c-text);
}
.ps-card--auth.ps-card--wide { max-width: 560px; }
.ps-auth__brand {
  display: flex; align-items: center; gap: 8px;
  height: 36px;
  margin-bottom: 14px;
}
.ps-auth__brand img { display: block; }
.ps-auth__brand .ps-auth__mark { height: 28px; width: auto; }
.ps-auth__brand .ps-auth__wordmark { height: 15px; width: auto; }
.ps-auth__title {
  margin: 0 0 30px 0;
  font-size: 20px; font-weight: 500; color: var(--c-text);
  letter-spacing: .04em;
}
.ps-auth__lead { margin: -20px 0 22px 0; font-size: var(--fs-small); color: var(--c-text-weak); line-height: 1.6; }
.ps-card--auth .ps-field { margin-bottom: 14px; }
.ps-card--auth .ps-field__label { flex: 0 0 120px; font-size: 11px; }
.ps-card--auth .ps-input { background: transparent; }
.ps-card--auth .ps-input:focus { background: var(--c-input-focus-bg); }
.ps-auth__actions {
  display: flex; justify-content: flex-end; align-items: center; gap: 12px;
  margin-top: 26px;
}
.ps-auth__actions .ps-action { min-width: 96px; height: 36px; padding: 0 16px; font-size: var(--fs-base); }
.ps-auth__links { display: flex; gap: 14px; margin-right: auto; }
.ps-auth__links a { font-size: var(--fs-small); color: var(--c-link); text-decoration: none; }
.ps-auth__links a:hover { text-decoration: underline; }
.ps-auth__links button {
  background: none; border: none; padding: 0; font: inherit; font-size: var(--fs-small);
  color: var(--c-link); cursor: pointer;
}
.ps-auth__links button:hover { text-decoration: underline; }
.ps-auth__version {
  margin-top: 26px;
  text-align: right;
  font-size: 11px; color: var(--c-text-weak);
}
/* カードの上端に置く1行の案内（common.md §4.5 sc-aut-01-lbl-notice）と、利用者エラー */
.ps-auth__notice { margin: 0 0 16px 0; font-size: var(--fs-small); color: var(--c-text-weak); }
.ps-auth__error  {
  margin: 0 0 16px 0; padding: 8px 12px;
  font-size: var(--fs-small); color: var(--c-error); background: var(--c-error-bg);
  border: 1px solid var(--c-error-line); border-radius: var(--r-md);
}
.ps-otp-input { font-size: 20px; letter-spacing: .5em; text-align: center; }
.ps-check { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); cursor: pointer; }
.ps-check input { margin: 0; accent-color: var(--c-accent); }

/* ---- 開発用 /StyleGuide ---------------------------------------------------- */
.ps-styleguide { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px 16px; }
.ps-styleguide h2 {
  font-size: var(--fs-base); margin: 18px 0 8px 0; padding: 4px 10px;
  background: var(--c-section-bg); color: var(--c-section-fg); font-weight: 500; border-radius: var(--r-sm);
}
.ps-styleguide h2:first-child { margin-top: 0; }
.ps-styleguide__note { font-size: var(--fs-small); color: var(--c-text-weak); margin: 0 0 8px 0; }
.ps-styleguide__box { border: 1px solid var(--c-border); padding: 10px 12px; margin-bottom: 6px; }
.ps-styleguide__two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ps-styleguide__cap { font-size: 11px; color: var(--c-text-weak); margin: 0 0 6px 0; }
.ps-styleguide code { font-size: 11px; background: var(--c-label-bg); padding: 0 3px; }
.ps-styleguide__frame {
  display: flex; height: 260px; border: 1px solid var(--c-border-strong);
}
.ps-styleguide__frame .ps-main { min-height: 0; }

/* ---- ボタンの見た目のリンク（画面遷移する「新規作成」「キャンセル」） ------------------ */
a.ps-excel, a.ps-action { display: inline-flex; text-decoration: none; text-align: center; box-sizing: border-box; }
a.ps-excel:hover, a.ps-action:hover { text-decoration: none; }
/* 下端の操作行の左に出す利用者エラー。★長い文は文の中で折り返し、ボタンは右に 1 行でそろえる（決定 T12。前は「保存する」だけが次の行へ落ちた）。
   幅の基準を 0 にして残りの幅を取り、最低 8em は残す（それも入らない狭さでは、前と同じくボタンが次の行へ回る＝押せなくならない）。
   切れ目の無い長い英数字（英字だけの名前・メールアドレスなど）もその場で折り返す — 折り返さないとボタンの下へはみ出して隠れる（P002 の Tester の指摘） */
.ps-actionbar .ps-field__error { margin: 0; flex: 1 1 0; min-width: 8em; overflow-wrap: anywhere; }
.ps-actionbar .ps-field__error:empty { min-width: 0; }

/* ---- 欄の並びの手直し ------------------------------------------------------------
   複数行（textarea）はラベルを上端にそろえる（baseline だと最終行にぶら下がる） */
.ps-field:has(> .ps-field__body > textarea) { align-items: flex-start; }
.ps-field:has(> .ps-field__body > textarea) > .ps-field__label { padding-top: 8px; }
/* 右ペインのラベル列: 「顧客（相手先組織）*」「プロジェクトの状態」が折り返さない幅 */
.ps-right .ps-field__label { flex: 0 0 124px; }

/* ---- 表の列幅（ps.css の mk/xs/sm/md/lg/num/act に足す） -------------------------
   氏名のように「全角 10 文字前後を切らずに見せたい」列。社員管理の氏名列（ユーザー指摘: md の倍） */
.ps-c--xl { width: 264px; }

/* ---- LT-1 課題一覧（SC-ISU-01。6-1） -------------------------------------------
   _Search 部分ビューは「列見出しの帯 ＋ 一覧のスクロール領域」の 2 要素を返す。
   差し込み先の器を display: contents にして、ps-center の flex の子として並べる */
.ps-listarea { display: contents; }
/* ★右ペインの差し込み先も同じ理由で display: contents。
   _Detail が返す 操作ボタン／属性表／時系列／記録欄 は、どれも .ps-right（flex 列）の
   直接の子である前提で書かれている（.ps-timeline の flex:1 1 auto + min-height:0 + overflow-y:auto）。
   器が普通の block のままだと flex の連鎖が切れ、時系列がスクロールせずに伸び続けて、
   コメントの多い課題では下端の記録欄（登録者・処理者・確認者）が画面の外へ出てしまう（決定68-c 違反）。 */
#sc-isu-01-pnl-detailbody { display: contents; }
/* モーダル・フォームの中で欄を親いっぱいに広げる */
.ps-input--block { width: 100%; box-sizing: border-box; }
textarea.ps-input--block { resize: vertical; }
/* 登録モーダルの利用者エラー */
.ps-modal__body .ps-field__error { display: block; margin-top: 6px; }

/* ---- 右ペインの時系列（7-1。決定46: コメントの編集・削除は各投稿から） --------------
   meta は 日時・投稿者 を左に寄せ、操作（編集・削除）を右端に置く（ps.css の space-between を上書き） */
.ps-post__meta { justify-content: flex-start; gap: 10px; }
.ps-post__actions { margin-left: auto; display: flex; gap: 10px; }
.ps-post__actions button {
  border: none; background: none; padding: 0; cursor: pointer;
  font-size: 11px; color: var(--c-link);
}
.ps-post__actions button:hover { text-decoration: underline; }
.ps-post__edited { font-size: 11px; color: var(--c-text-weak); }

/* MD-ISU-03 の状態変更モード（決定47）: 編集不可の優先度トグル */
.ps-toggle:disabled { opacity: .55; cursor: default; }

/* ---- メンションの @補完（7-2。FN-ISU-12・決定41。部品は ps.js の PS.mention） --------
   候補はコメント欄の真上に全幅で出す（欄はモーダル最下部にあるため上向き。キャレット追従はしない） */
.ps-mention__wrap { position: relative; display: block; }
.ps-mention__pop {
  position: absolute; left: 0; right: 0; bottom: 100%; z-index: 30;
  max-height: 168px; overflow-y: auto;
  padding: 4px;
  background: var(--c-pane-bg);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  box-shadow: var(--sh-pop);
}
.ps-mention__pop[hidden] { display: none; }
.ps-mention__item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 6px 8px; border: none; border-radius: 7px; background: none; cursor: pointer;
  font-size: var(--fs-base); font-family: inherit; text-align: left;
}
.ps-mention__item.is-active, .ps-mention__item:hover { background: var(--c-row-selected); }
.ps-mention__name { font-weight: bold; white-space: nowrap; }
.ps-mention__sub {
  font-size: 11px; color: var(--c-text-weak);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 確定したメンションの表示（欄の下。×で外せる） */
.ps-mention__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.ps-mention__chips[hidden] { display: none; }
.ps-mention__cap { font-size: 11px; color: var(--c-text-weak); }
.ps-mention__chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px;
  border: 1px solid var(--c-accent-line); border-radius: 999px; color: var(--c-accent-ink);
  background: var(--c-accent-soft); font-size: 12px;
}
.ps-mention__chip button {
  border: none; background: none; padding: 0; cursor: pointer;
  color: inherit; font-size: 11px; line-height: 1;
}
/* 時系列（右ペイン）の本文中のメンションの色付け */
.ps-mention { padding: 0 4px; border-radius: 4px; background: var(--c-accent-soft); color: var(--c-accent-ink); font-weight: 500; }

/* ---- 添付ファイル（FN-ISU-13/15。7-3。手本: docs/mockups/issue-attachment.html） ----------------- */
/* 本体が数行ぶん高くなる項目は、ラベルを上端にそろえる（ps-field の既定は baseline なので下がってしまう） */
.ps-field--top { align-items: flex-start; }
/* 書く面の添付の欄: 「ファイルを選ぶ」＋ ここへドロップ。選んだものは下にチップで並ぶ（保存で確定＝決定22） */
.ps-files { display: block; }
.ps-files__drop {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border: 1.5px dashed #c5d2de; border-radius: 10px; background: #fafbfd;
}
/* ★P002 29-2（決定236・手本）: 置き場の左に上向きの矢印の印 */
.ps-files__drop::before {
  content: ""; flex: 0 0 18px; width: 18px; height: 18px; background: var(--c-faint);
  -webkit-mask: var(--i-upload) center / 18px no-repeat; mask: var(--i-upload) center / 18px no-repeat;
}
.ps-files__drop.is-over { border-color: var(--c-accent); background: var(--c-row-selected); }
.ps-files__hint { font-size: 12px; color: var(--c-text-weak); }
.ps-files__list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ps-files__list:empty { display: none; }
/* 添付 1 件（書く面でも時系列でも同じ見た目。時系列では名前がダウンロードのリンク） */
.ps-file {
  display: inline-flex; align-items: center; gap: 6px; max-width: 320px;
  padding: 4px 9px 4px 8px; border: 1px solid var(--c-border); border-radius: var(--r-md);
  background: var(--c-surface); font-size: 12px; line-height: 1.5;
}
/* ★P002 29-2（手本）: 添付の頭にクリップの印 */
.ps-file::before {
  content: ""; flex: 0 0 13px; width: 13px; height: 13px; background: var(--c-muted);
  -webkit-mask: var(--i-clip) center / 13px no-repeat; mask: var(--i-clip) center / 13px no-repeat;
}
.ps-file--new { border-color: var(--c-accent-line); background: var(--c-accent-softer); }
.ps-file__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-file__name a { color: var(--c-accent-ink); }
.ps-file__size { color: var(--c-text-weak); white-space: nowrap; }
.ps-file__del {
  border: none; background: none; padding: 0; cursor: pointer;
  color: inherit; font-size: 11px; line-height: 1;
}
/* 読む面（時系列）の添付の並び */
.ps-post__files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ---- 「詳細な条件」の枠（軸7〜11。7-4b。issue-list.md §5.1 規則2: ②と③のあいだ） -------------
   トグルの意味は左3軸と同じ「押されている＝一覧に出る」（決定58）。開閉しても一覧の列構成は変わらない */
.ps-adv {
  flex: 0 0 auto;
  margin: 0 16px 12px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface-2);
  padding: 10px 14px;
  display: grid; grid-template-columns: 84px 1fr; gap: 8px 12px; align-items: center;
}
.ps-adv[hidden] { display: none; }
.ps-adv__label { font-size: var(--fs-small); color: var(--c-text-weak); text-align: right; white-space: nowrap; }
.ps-adv__body { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.ps-adv__body .ps-toggle { flex: 0 0 auto; }
.ps-adv input[type="date"] {
  font: inherit; font-size: var(--fs-small); height: 30px; padding: 0 8px;
  border: 1px solid var(--c-border-strong); border-radius: var(--r-md); background: var(--c-surface); color: var(--c-text); outline: none;
}
.ps-adv input[type="date"]:focus { border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-ring); }
.ps-adv__sep { font-size: var(--fs-small); color: var(--c-text-weak); }
.ps-adv__spacer { flex: 1 1 auto; }

/* ---- 並び替え（FN-REF-11。7-4c。一覧のバーのドロップダウン 1 つ） ------------------------ */
.ps-sort { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.ps-sort__label { font-size: var(--fs-small); color: var(--c-text-weak); white-space: nowrap; }
.ps-sort select {
  font: inherit; font-size: 12.5px; height: 30px; padding: 0 30px 0 10px;
  min-width: 90px; border: 1px solid var(--c-border-strong); border-radius: var(--r-md);
  -webkit-appearance: none; appearance: none;
  background: var(--c-surface) var(--i-chev-down) no-repeat right 9px center / 12px; color: var(--c-text); outline: none; cursor: pointer;
}
.ps-sort select:focus-visible { border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-ring); }
/* 「自分の順序」のときだけ行をドラッグできる（FN-REF-22） */
.ps-list.is-sortable .ps-row { cursor: grab; }
.ps-list.is-sortable .ps-row.is-dragging { opacity: .5; cursor: grabbing; }
.ps-list.is-sortable .ps-row.is-dropbefore { box-shadow: inset 0 2px 0 0 var(--c-accent); }
.ps-list.is-sortable .ps-row.is-dropafter { box-shadow: inset 0 -2px 0 0 var(--c-accent); }

/* ---- 保存した検索条件（FN-REF-14。7-4d） -------------------------------------------- */
.ps-savedcond {
  flex: 0 0 auto; min-width: 110px; max-width: 190px;
  font: inherit; font-size: 12.5px; height: 30px; padding: 0 30px 0 10px;
  border: 1px solid var(--c-border-strong); border-radius: var(--r-md);
  -webkit-appearance: none; appearance: none;
  background: var(--c-surface) var(--i-chev-down) no-repeat right 9px center / 12px; color: var(--c-text); outline: none; cursor: pointer;
}
.ps-savedcond:focus-visible { border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-ring); }
/* MD-REF-01 の中の保存済み一覧（名前と × だけ。独立した管理画面を持たないため） */
.ps-condlist { display: flex; flex-direction: column; gap: 2px; }
.ps-condlist__item {
  display: flex; align-items: center; gap: 6px;
  font-size: var(--fs-small); padding: 2px 0;
  border-bottom: 1px solid var(--c-border);
}
.ps-condlist__name { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-condlist__del {
  flex: 0 0 auto; border: none; background: none; padding: 0; cursor: pointer;
  color: var(--c-text-weak); font-size: 11px; line-height: 1;
}
.ps-condlist__empty { font-size: 11px; color: var(--c-text-weak); }

/* 課題の削除（FN-ISU-18。誤登録の訂正手段なので、ほかの操作ボタンと見分けが付くようにする） */
.ps-action--danger { margin-left: auto; color: var(--c-error); border-color: var(--c-error-line); }
.ps-action--danger:hover:not(:disabled) { background: var(--c-error-bg); border-color: var(--c-error); }

/* ---- 通知先欄（FN-NTF-01。9-1。手本: docs/mockups/issue-notify.html） ------------------
   ★各チップに「なぜ入っているか」を添える（決定76）— 送ったら取り消せないので、外していいか判断できるように。
   契機7（完了からの復帰）で入った人は灰色・× を持たない（D-47） */
.ps-notify { display: block; }
.ps-notify__list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.ps-notify__list:empty { display: none; }
.ps-notify__chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px;
  border: 1px solid var(--c-accent-line); border-radius: 999px; color: var(--c-accent-ink);
  background: var(--c-accent-soft); font-size: 12px; line-height: 1.5;
}
.ps-notify__chip.is-locked {
  border-color: var(--c-border-strong); color: var(--c-ink-2); background: var(--c-surface-2);
}
.ps-notify__why { font-size: 11px; color: var(--c-text-weak); }
.ps-notify__chip button {
  border: none; background: none; padding: 0; cursor: pointer; color: inherit; font-size: 11px; line-height: 1;
}
.ps-notify__add {
  font: inherit; font-size: 12px; height: 28px; padding: 0 28px 0 12px; min-width: 180px;
  border: 1px solid var(--c-border-strong); border-radius: 999px;
  -webkit-appearance: none; appearance: none;
  background: var(--c-surface) var(--i-chev-down) no-repeat right 10px center / 12px; color: var(--c-text); outline: none; cursor: pointer;
}
.ps-notify__empty { font-size: 12px; color: var(--c-text-weak); }

/* ---- 詳細の変更を開くリンクと、変更前・変更後の並べ（決定86。MD-ISU-05） ---------
   ★詳細は 1 行に収まらない。20 文字で切った from→to は、冒頭が同じだと左右が
   同じ文字列に見えて何も伝えないので、時系列は「詳細を変更した」だけを出し、
   全文はこのモーダルで並べて見せる（_ChangeDetail が当時の全文を返す）。 */
.ps-changelink {
  border: none; background: none; padding: 0; cursor: pointer;
  font: inherit; color: var(--c-link); text-decoration: underline;
}
.ps-changelink:hover { color: var(--c-accent); }

.ps-diff { display: flex; gap: 10px; align-items: stretch; }
.ps-diff__col { flex: 1 1 50%; min-width: 0; display: flex; flex-direction: column; }
.ps-diff__label {
  font-size: var(--fs-small); font-weight: 500; color: var(--c-text-weak);
  padding: 0 0 6px 0;
}
.ps-diff__body {
  flex: 1 1 auto; min-height: 180px; max-height: 46vh; overflow-y: auto;
  border: 1px solid var(--c-border); border-radius: 10px; background: var(--c-surface-2);
  padding: 10px 12px; white-space: pre-wrap; word-break: break-word; line-height: 1.8;
}
.ps-diff__body:empty::before { content: "（なし）"; color: var(--c-text-weak); }

/* ---- MD-ISU-03 課題の作業場（決定90） ------------------------------------
   左＝課題情報（既定は読み取り専用）／右＝これまでのコメント（読むだけ）＋新しいコメント。
   ★幅は割合（決定89 と同じ考え方。px の固定値だと画面が大きいほど相対的に狭くなる）。
     ただし単に引き伸ばすと詳細欄の 1 行が全角 90 文字近くになって読めないので、
     広げた分は「横に並べる」ことに使う。上限 1700px は 1 列あたりが読める幅に収まる線。 */
.ps-modal--xl .ps-modal__box {
  width: 80vw;
  max-width: 1700px;
  height: 80vh;
}
/* ★本文はスクロールしない。中の「これまでのコメント」だけが伸び縮みしてスクロールし、
   「新しいコメント」は常に見えている（書きながら流れを追えるように） */
.ps-editgrid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 0 24px;
  min-height: 0;
  overflow: hidden;
}
.ps-editgrid__col { display: flex; flex-direction: column; min-height: 0; }
.ps-editgrid__col--info { overflow-y: auto; padding-right: 6px; }
.ps-editgrid__new { flex: 0 0 auto; }
/* ★地は灰色（決定106）。この画面では「灰色の地＝読むだけ」（.ps-input.is-locked と同じ --c-label-bg）。
   右列で白いのは「新しいコメント」の欄だけになり、どこに書くかがひと目で分かる */
.ps-editgrid .ps-timeline {
  flex: 1 1 auto; min-height: 120px;
  margin-top: 0; padding: 0 8px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-label-bg);
}
.ps-editgrid .ps-timeline .ps-post:first-child { border-top: none; }
.ps-editgrid .ps-timeline:empty::before {
  content: "まだコメントはありません。";
  display: block; padding: 10px 2px; color: var(--c-text-weak); font-size: var(--fs-small);
}
/* 区画が見分けられるように、項目の間隔をモーダルの中だけ広げる */
.ps-editgrid .ps-field { margin-bottom: 12px; }
.ps-editgrid .ps-section { margin-top: 4px; }
/* 区画見出しの右端に置く操作（.ps-section::after の横罫線より後ろへ回す） */
.ps-section__action { order: 1; }
/* ★読み取り専用の欄（決定90）。「直せない」は点線の下辺と薄い地で示すが、
   ★文字は薄くしない — ここは読むための面であり、詳細を読み通せることが要る。
   （ps.css の .ps-input:disabled は文字も薄くするので、そちらを上書きする） */
.ps-input.is-locked,
.ps-input.is-locked:disabled {
  background: var(--c-label-bg);
  border: 1px solid transparent;   /* ★P002 決定234: 読むだけ＝灰の地で枠なし（書ける欄だけが白地に枠） */
  box-shadow: none;
  color: var(--c-text);
  cursor: default;
}

/* ---- SC-HLP-01 ヘルプ（利用者ガイド。決定108） ------------------------------
   左＝目次・右＝本文（LT-2 と同じ「左で選び右で読む」）。本文の中身は
   tools/Generate-UserGuideHtml.ps1 が docs/user-guide.md から生成する。 */
/* ★P002 決定234: ヘルプも白い面（角丸 12px・薄い影）に載せる（.ps-main の余白の中） */
.ps-help { display: flex; min-height: 0; flex: 1 1 auto; }
.ps-help { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--sh-panel); overflow: hidden; }
.ps-help__toc {
  flex: 0 0 250px; overflow-y: auto; padding: 10px 0 20px 0;
  background: var(--c-left-bg); border-right: 1px solid var(--c-border-strong);
}
.ps-help__toc a {
  display: block; padding: 4px 14px 4px 18px; font-size: var(--fs-base);
  color: var(--c-text); text-decoration: none; border-left: 3px solid transparent;
}
.ps-help__toc a:hover { background: var(--c-row-hover); }
.ps-help__toc a.is-current { border-left-color: var(--c-accent); background: var(--c-row-selected); font-weight: bold; }
.ps-help__toc a.is-sub { padding-left: 34px; font-size: var(--fs-small); color: var(--c-text-weak); }
.ps-help__tochead { margin: 8px 14px 4px 14px; font-size: var(--fs-small); color: var(--c-text-weak); }
.ps-help__body { flex: 1 1 auto; overflow-y: auto; min-width: 0; scroll-behavior: smooth; }
.ps-help__page { max-width: 820px; padding: 6px 32px 60px 32px; }
.ps-help__page h1 { font-size: 17px; margin: 14px 0 4px 0; }
.ps-help__page .ps-help__lead { color: var(--c-text-weak); margin: 0 0 10px 0; }
.ps-help__page h2 {
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; margin: 34px 0 10px 0; padding-top: 14px; border-top: 1px solid var(--c-border);
}
.ps-help__page h2::before { content: ""; flex: 0 0 3px; width: 3px; height: 15px; background: var(--c-accent); }
.ps-help__page h3 { font-size: var(--fs-base); margin: 20px 0 6px 0; }
.ps-help__page p, .ps-help__page li { font-size: var(--fs-base); line-height: 1.9; }
.ps-help__page ul, .ps-help__page ol { margin: 6px 0; padding-left: 22px; }
.ps-help__page li { margin: 2px 0; }
/* 画面イメージ: 縮小して流れを止めない。押すと原寸が別タブで開く */
.ps-help__shot { display: block; margin: 10px 0; width: fit-content; cursor: zoom-in; }
.ps-help__shot img {
  display: block; max-width: 100%; max-height: 420px;
  border: 1px solid var(--c-border); border-radius: var(--r-md); box-shadow: var(--sh-panel);
}
.ps-help__page table { border-collapse: collapse; margin: 8px 0; font-size: var(--fs-base); }
.ps-help__page th, .ps-help__page td { border: 1px solid var(--c-border-strong); padding: 4px 12px; text-align: left; }
.ps-help__page th { background: var(--c-label-bg); font-weight: bold; }
.ps-help__page code {
  font-family: Consolas, monospace; font-size: 12px;
  background: var(--c-label-bg); border: 1px solid var(--c-border); padding: 0 4px;
}
.ps-help__page pre {
  margin: 8px 0; padding: 8px 12px; overflow-x: auto;
  background: var(--c-label-bg); border: 1px solid var(--c-border);
}
.ps-help__page pre code { background: none; border: none; padding: 0; white-space: pre; line-height: 1.6; }
.ps-help__page hr { border: none; border-top: 1px solid var(--c-border); margin: 26px 0; }

/* ---- LT-1 の拡張（P002 Phase 11 から写した。T5） ----------------
   ①任意の 4 つ目のペイン .ps-folder（Section Folder）とツリー .ps-tree*
   ②右ペインを畳む（ViewData RightFoldable）: .ps-right__fold ／ .ps-rightstrip ／ .ps-main.is-folded
   ③モーダルの中サイズ .ps-modal--md
   ★②③は T5 のときにここへ写し漏れていた（_LayoutLT1 は帯を描くのに、隠す規則が無かった）。決定T11 で P002 の今の形を足した */
.ps-folder {
  flex: 0 0 var(--w-folder);
  width: var(--w-folder);
  overflow-y: auto; overflow-x: hidden;
  padding: 0 8px 12px 8px;
}
.ps-folder .ps-filter__head { margin-top: 10px; }
.ps-treearea { display: block; }
.ps-tree, .ps-tree ul { list-style: none; margin: 0; padding: 0; }
.ps-tree { padding: 0; }
.ps-tree ul { padding-left: 14px; }
.ps-tree__item { margin: 0; }
.ps-tree__row { display: flex; align-items: baseline; gap: 2px; }
.ps-tree__twist {
  flex: 0 0 auto; width: 14px; height: 14px; line-height: 12px;
  margin-top: 6px; padding: 0; font: inherit; font-size: 11px;
  border: 1px solid var(--c-border-strong); border-radius: 4px; background: var(--c-pane-bg); color: var(--c-text-weak);
  cursor: pointer;
}
.ps-tree__twist:hover { border-color: var(--c-accent); color: var(--c-accent); }
.ps-tree__twist.is-leaf { visibility: hidden; }
.ps-tree__link { padding: 4px 2px; }
.ps-tree__count { flex: 0 0 auto; color: var(--c-text-weak); font-size: 11px; }
.ps-tree__item.is-collapsed > ul { display: none; }
.ps-tree__row.is-selected { background: var(--c-row-selected); border-radius: var(--r-md); }
.ps-tree__row.is-selected .ps-tree__link { font-weight: 500; }
.ps-tree__row.is-selected .ps-tree__link { color: var(--c-text); }
.ps-tree__row.is-selected .ps-filter__leader,
.ps-tree__row.is-selected .ps-filter__mark { visibility: hidden; }
.ps-tree__ops { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0 0 0; }
.ps-tree__ops .ps-action { white-space: nowrap; }
.ps-right__fold {
  margin-right: auto; align-self: center;
  font: inherit; font-size: 11.5px; line-height: 20px; padding: 0 9px;
  border: 1px solid var(--c-border); border-radius: 999px;
  background: var(--c-surface); color: var(--c-text-weak); cursor: pointer;
}
.ps-right__fold:hover { color: var(--c-accent-ink); border-color: var(--c-accent-line); background: var(--c-accent-softer); }
.ps-rightstrip { flex: 0 0 40px; width: 40px; display: none; }
.ps-rightstrip button {
  width: 100%; height: 100%; border: none; border-radius: var(--r-lg); background: transparent; cursor: pointer;
  font: inherit; font-size: 12px; color: var(--c-text-weak); letter-spacing: .2em;
  writing-mode: vertical-rl; padding: 14px 0 0 0; text-align: left;
}
.ps-rightstrip button:hover { color: var(--c-accent-ink); background: var(--c-accent-softer); }
.ps-main.is-folded .ps-right,
.ps-main.is-folded .ps-splitter--right { display: none; }
.ps-main.is-folded .ps-rightstrip { display: block; }
/* 追加のモーダル: sm(480) と lg(900) の間 */
.ps-modal--md .ps-modal__box { max-width: 640px; }

/* =====================================================================
   ★刷新の共通の部品（P002 Phase 29 の 29-2〜29-3b。決定234〜238）。テンプレートには決定T11 で写した
   人の丸の大きさ・印だけのボタン・件数は数を大きく・「〜を追加」の ＋・操作ボタンの印・進む先の ›
   ★id と「id の要素のすぐ中の文字」は前のまま（テストと読み上げが読む）。印は CSS で描く
   ===================================================================== */

/* ---- 人の丸の大きさ（丸そのものは ps.css の .ps-avatar。頭文字と色は CAvatar だけが決める） ---- */
.ps-avatar--xs { --av: 18px; }
.ps-avatar--chip { --av: 20px; }
.ps-avatar--md { --av: 24px; }
.ps-avatar--post { --av: 32px; }
/* 人がいない所（担当者のいない課題など）は点線の丸 */
.ps-avatar--none { background: transparent; border: 1.5px dashed #bcc8d4; }

/* ---- 印だけのボタン（ごみ箱・鉛筆）。語は title と読み上げ（ボタンの文字は大きさ 0 で残す — 押したときの e.target はボタンのまま） ---- */
.ps-iconbtn {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0;
  border: 1px solid transparent; border-radius: var(--r-md); background: transparent;
  font: inherit; font-size: 0; line-height: 0; color: var(--c-muted); cursor: pointer;
  transition: background .12s, color .12s;
}
.ps-iconbtn:hover { background: var(--c-accent-softer); color: var(--c-accent-ink); }
.ps-iconbtn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--c-ring); }
.ps-iconbtn--danger:hover { background: var(--c-error-bg); color: var(--c-error); }
.ps-iconbtn--trash::before {
  content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--i-trash) center / 16px no-repeat; mask: var(--i-trash) center / 16px no-repeat;
}
.ps-iconbtn--edit::before {
  content: ""; width: 15px; height: 15px; background: currentColor;
  -webkit-mask: var(--i-edit) center / 15px no-repeat; mask: var(--i-edit) center / 15px no-repeat;
}
.ps-iconbtn:disabled { opacity: .35; cursor: default; }
.ps-iconbtn:disabled:hover { background: transparent; color: var(--c-muted); }

/* ---- 一覧の件数は数を大きく（Jost。形は辞書の <キー>.One／.Other＝「{0} 件」。サーバーは CommonModels.CountParts・JS は PS.setCount）---- */
.ps-center__bar .ps-count, .ps-listbar .ps-count { display: inline-flex; align-items: baseline; gap: 3px; font-size: 12.5px; color: var(--c-muted); }
.ps-center__bar .ps-count b, .ps-listbar .ps-count b { font-family: var(--f-brand); font-size: 17px; font-weight: 500; line-height: 1; color: var(--c-ink); font-variant-numeric: tabular-nums; }
/* 「＋ 新規作成」「＋ 追加する」 */
.ps-add::before {
  content: ""; flex: 0 0 15px; width: 15px; height: 15px; background: currentColor;
  -webkit-mask: var(--i-plus) center / 15px no-repeat; mask: var(--i-plus) center / 15px no-repeat;
}
.ps-action--sm.ps-add::before { flex-basis: 13px; width: 13px; height: 13px; -webkit-mask-size: 13px; mask-size: 13px; }
/* 操作ボタンの印（開く・ダウンロード・名前や説明の変更＝鉛筆・移動・別の画面で開く）。語はボタンの中のまま */
.ps-action--open::before, .ps-action--dl::before, .ps-action--edit::before, .ps-action--move::before, .ps-action--goto::before {
  content: ""; flex: 0 0 15px; width: 15px; height: 15px; background: currentColor;
  -webkit-mask: var(--i-open) center / 15px no-repeat; mask: var(--i-open) center / 15px no-repeat;
}
.ps-action--dl::before { -webkit-mask-image: var(--i-download); mask-image: var(--i-download); }
.ps-action--edit::before { -webkit-mask-image: var(--i-edit); mask-image: var(--i-edit); }
.ps-action--move::before { -webkit-mask-image: var(--i-move); mask-image: var(--i-move); }
/* 一覧のバーの副ボタン（社員管理の「Excel 出力」。決定T15＝P002 決定259 を写した）。
   高さと字の大きさは、となりの「新規作成」（ps-excel＝34px・13px）にそろえる */
.ps-center__bar .ps-toggles > .ps-action { height: 34px; padding: 0 14px; font-size: 13px; }
/* 別の画面へ進むボタン（各種設定の「開く」）の後ろの › */
.ps-action--next::after {
  content: ""; flex: 0 0 13px; width: 13px; height: 13px; margin-right: -3px; background: currentColor;
  -webkit-mask: var(--i-chev-right) center / 13px no-repeat; mask: var(--i-chev-right) center / 13px no-repeat;
}

/* =====================================================================
   ★管理と設定（P002 29-3b・決定238。手本 P002 の docs/mockups/refresh-usermgr.html・refresh-settings.html・refresh-mysettings.html）
   LT-2: 「検索フィルター」「結果リスト」の見出しは読み上げだけ・件数は数を大きく・状態は札・人は頭文字の丸＋名前・
   右ペインの題は 18px・1 つだけ選ぶ欄はつながった切りかえ・表は角の丸い枠。LT-3: 余白を広く・進む先はカード
   ===================================================================== */

/* ---- LT-2 の一覧（中央） ---- */
/* LT-2 の中央を器にする（一覧の幅で列を出し分ける。LT-1 の中央と同じ @container の決まりがそのまま効く＝狭いと帯の見出しを隠す） */
.ps-pagehead + .ps-main > .ps-center { container-type: inline-size; }
/* 「検索フィルター」「結果リスト」は画面に出さない（帯から始める。読み上げの名前には残す） */
.ps-pagehead + .ps-main > .ps-center > .ps-section {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* 行の頭の四角い印はやめる（選んだ行は左の藍の線と地で分かる。要素と読み上げの「選択」は残す） */
.ps-table .ps-table__marker { display: none; }
.ps-table > colgroup > col.ps-c--mk { width: 6px; }
.ps-table tr > td:first-child:has(> .ps-table__marker),
.ps-table tr > th:first-child:has(> [id$="-col-marker"]) { padding: 0; }
/* 状態の列は札（課題の状態と同じ色の意味: 動いている＝空色／終わった＝灰） */
.ps-table td > .ps-badge { vertical-align: middle; }
/* 終わったもの（ログインできない人など）の行は、字を薄く */
.ps-table tbody tr.is-off > td { color: var(--c-faint); }
/* コード・日時・お金は Jost */
.ps-table .ps-code, .ps-table .ps-when, .ps-table .ps-money {
  font-family: var(--f-brand); letter-spacing: .02em; font-variant-numeric: tabular-nums;
}
.ps-table .ps-code { font-size: 13px; letter-spacing: .04em; color: var(--c-ink-2); }
/* 人は頭文字の丸＋名前（管理の表は名前そのものが中身なので、丸だけにはしない） */
.ps-table td > .ps-avatar { vertical-align: middle; margin: -2px 8px 0 0; }
.ps-table--sub td > .ps-avatar { --av: 20px; margin-right: 7px; }

/* 社員管理（SC-ADM-01）の一覧: 氏名（丸＋名前） ｜ メールアドレス ｜ ユーザーの種類 ｜ ログイン ｜ 参加プロジェクト。
   一覧が狭いとき（iPad の横・125%）は、右ペインでも見られる列を隠して主の列に幅を回す */
#sc-adm-01-grd-users > colgroup > col:nth-child(2) { width: 280px; }
/* ★ユーザーの種類（「一般ユーザー（M）」）は 132px（ps-c--md）だと 1920 でも … で切れた（刷新で字が 13.5px・余白 10px に）— テンプレートで撮って見つけた（決定T11）。
   P002 の撮影の DB には M の人がいなかったので、P002 の画像には出ていない */
#sc-adm-01-grd-users > colgroup > col:nth-child(4) { width: 150px; }
#sc-adm-01-grd-users > colgroup > col:nth-child(5) { width: 76px; }
#sc-adm-01-grd-users > colgroup > col:nth-child(6) { width: 124px; }
@container (width < 900px) {
  #sc-adm-01-grd-users > colgroup > col:nth-child(2) { width: 210px; }
}
@container (width < 760px) {
  /* 参加プロジェクトは最後の列なので、隠しても列の対応はずれない */
  #sc-adm-01-grd-users > colgroup > col:nth-child(6) { width: 0; }
  #sc-adm-01-grd-users tr > :nth-child(6) { display: none; }
  #sc-adm-01-grd-users > colgroup > col:nth-child(2) { width: 190px; }
  /* ユーザーの種類は狭くても 150px のまま（P002 は 122px — 「一般ユーザー（M）」が切れる。右ペインに種類は出ないので、ここで読めるように）。
     iPad の横（一覧 約 650px）でもメールアドレスに約 230px 残る */
}

/* ---- LT-2 の右ペイン: 見出しは 18px の題・1 つだけ選ぶ欄はつながった切りかえ ---- */
.ps-pagehead + .ps-main > .ps-right { container-type: inline-size; }
.ps-pagehead + .ps-main > .ps-right > .ps-pane__body { padding: 16px 18px 18px; margin-top: 0; }
.ps-pagehead + .ps-main > .ps-right h3.ps-section[id$="-lbl-sec-detail"] {
  margin: 0 0 16px; font-size: 18px; font-weight: 500; line-height: 1.5; letter-spacing: .01em; color: var(--c-ink);
  overflow-wrap: anywhere;
}
.ps-pagehead + .ps-main > .ps-right h3.ps-section[id$="-lbl-sec-detail"]::before,
.ps-pagehead + .ps-main > .ps-right h3.ps-section[id$="-lbl-sec-detail"]::after { content: none; }
/* 人の詳細は題の前に、その人の丸（ヘッダーの自分の丸・一覧の丸と同じ。丸は題の要素の外。新規登録の空のフォームには出さない） */
.ps-detailhead { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.ps-pagehead + .ps-main > .ps-right .ps-detailhead > h3.ps-section[id$="-lbl-sec-detail"] { margin: 0; }
.ps-detailhead > .ps-avatar { --av: 36px; }
/* 1 つだけ選ぶ欄（する／しない・可／不可 など）＝つながった切りかえ（押されている＝白く浮く。絞り込みの丸い札とは形で分ける） */
.ps-right .ps-field .ps-toggle__set[data-ps-single],
.ps-single .ps-field .ps-toggle__set[data-ps-single],
.ps-modal .ps-toggle__set[data-ps-single] {
  display: flex; flex-wrap: wrap; gap: 2px; width: fit-content; max-width: 100%; padding: 3px; border-radius: 10px; background: #eaeff4;
}
.ps-right .ps-field .ps-toggle__set[data-ps-single] > .ps-toggle,
.ps-single .ps-field .ps-toggle__set[data-ps-single] > .ps-toggle,
.ps-modal .ps-toggle__set[data-ps-single] > .ps-toggle {
  height: 28px; min-width: 56px; padding: 0 14px;
  border: 0; border-radius: 7px; background: transparent; color: var(--c-muted); font-size: 13px; font-weight: 400;
}
.ps-right .ps-field .ps-toggle__set[data-ps-single] > .ps-toggle:hover:not(:disabled),
.ps-single .ps-field .ps-toggle__set[data-ps-single] > .ps-toggle:hover:not(:disabled),
.ps-modal .ps-toggle__set[data-ps-single] > .ps-toggle:hover:not(:disabled) { color: var(--c-ink); background: transparent; }
.ps-right .ps-field .ps-toggle__set[data-ps-single] > .ps-toggle[aria-pressed="true"],
.ps-single .ps-field .ps-toggle__set[data-ps-single] > .ps-toggle[aria-pressed="true"],
.ps-modal .ps-toggle__set[data-ps-single] > .ps-toggle[aria-pressed="true"] {
  background: var(--c-surface); color: var(--c-accent-ink); font-weight: 500;
  box-shadow: 0 1px 2px rgba(20, 40, 64, .12), 0 0 0 1px rgba(65, 123, 167, .25);
}
.ps-right .ps-field .ps-toggle__set[data-ps-single] > .ps-toggle:disabled,
.ps-single .ps-field .ps-toggle__set[data-ps-single] > .ps-toggle:disabled { opacity: .55; cursor: not-allowed; }
.ps-right .ps-field .ps-toggle__set[data-ps-single] + .ps-note,
.ps-single .ps-field .ps-toggle__set[data-ps-single] + .ps-note { margin-top: 6px; }
/* 欄の並び: ラベルと切りかえ・入力欄の縦の中心をそろえる */
.ps-pagehead + .ps-main > .ps-right .ps-field { margin-bottom: 12px; }
.ps-pagehead + .ps-main > .ps-right .ps-field__label,
.ps-single .ps-field__label { line-height: 34px; }
.ps-pagehead + .ps-main > .ps-right .ps-field:has(> .ps-field__body > .ps-readonly) .ps-field__label,
.ps-single .ps-field:has(> .ps-field__body > .ps-readonly) .ps-field__label { line-height: 26px; }

/* ---- 入れ子の表（右ペイン・LT-3）: 角の丸い枠の中に。行は選べないので指の形にしない ---- */
.ps-table--sub, .ps-single .ps-table {
  border: 1px solid var(--c-line); border-radius: 10px; border-collapse: separate; border-spacing: 0; overflow: hidden;
  background: var(--c-surface);
}
.ps-table--sub thead th, .ps-single .ps-table thead th { height: 32px; font-size: 11.5px; }
.ps-table--sub tbody tr, .ps-single .ps-table tbody tr { cursor: default; }
.ps-table--sub tbody tr:hover, .ps-single .ps-table tbody tr:hover { background: transparent; }
.ps-table--sub tbody tr:nth-child(even):hover, .ps-single .ps-table tbody tr:nth-child(even):hover { background: var(--c-row-zebra); }
.ps-table--sub td { height: 36px; }
.ps-table--sub tbody tr:last-child > td, .ps-single .ps-table tbody tr:last-child > td { border-bottom: 0; }
.ps-table--sub tfoot td { height: 44px; border-top: 1px solid var(--c-line); border-bottom: 0; background: var(--c-surface-2); }
.ps-table--sub td .ps-input { min-height: 28px; height: 28px; padding: 2px 8px; font-size: 12.5px; }
.ps-table--sub td select.ps-input { padding: 0 24px 0 8px; background-position: right 7px center; }
.ps-table--sub td > .ps-iconbtn { width: 28px; height: 28px; vertical-align: middle; }
.ps-table--sub td > .ps-action--sm.ps-add { height: 28px; }
/* 状態の語の前に、課題の状態と同じ色の点（件数の表は id の末尾 -lbl-detail-count-active／resolved／closed、
   参加しているものの表は td[data-state]＝"open"／"closed"。P002 の社員・顧客の右ペインが手本） */
[id$="-lbl-detail-count-active"]::before, [id$="-lbl-detail-count-resolved"]::before, [id$="-lbl-detail-count-closed"]::before,
td[data-state]::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--c-active);
}
[id$="-lbl-detail-count-resolved"]::before { background: var(--c-resolved); }
[id$="-lbl-detail-count-closed"]::before, td[data-state="closed"]::before { background: var(--c-closed); }

/* ---- LT-3（ホーム・各種設定・個人設定）: 余白を広く・表は角の丸い枠 ---- */
.ps-single .ps-pane__body { padding: 18px 24px 24px; margin-top: 0; }
.ps-single .ps-section:first-child { margin-top: 0; }
.ps-single .ps-section { margin: 26px 0 12px; }
.ps-single .ps-formcol .ps-field { margin-bottom: 12px; }
/* 各種設定（SC-ADM-12）: 進む先はカード（印・名前・説明・開く ›）。印は項目の --ico（無ければ歯車。P002 の手本: .ps-gotolist__item--template { --ico: var(--i-stack); }） */
#sc-adm-12-pnl-gotolist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; max-width: 1100px; }
.ps-formcol:has(> #sc-adm-12-pnl-gotolist) { max-width: none; }
#sc-adm-12-pnl-gotolist > li {
  position: relative;
  display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: 40px 1fr auto; gap: 6px 14px; align-content: start;
  padding: 18px 18px 16px; border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-surface);
  box-shadow: 0 1px 2px rgba(20, 40, 64, .04);
}
/* 印の台（薄い藍の角丸）と、その上の印（台と印を 2 つの疑似要素で。印は CSS の mask） */
#sc-adm-12-pnl-gotolist > li::before {
  content: ""; grid-row: 1; grid-column: 1; width: 40px; height: 40px; border-radius: 10px;
  background: var(--c-accent-soft); box-shadow: inset 0 0 0 1px #dbe6f0;
}
#sc-adm-12-pnl-gotolist > li::after {
  content: ""; position: absolute; top: 28px; left: 28px; width: 20px; height: 20px; background: var(--c-accent);
  -webkit-mask: var(--ico, var(--i-gear)) center / 20px no-repeat; mask: var(--ico, var(--i-gear)) center / 20px no-repeat; pointer-events: none;
}
#sc-adm-12-pnl-gotolist .ps-gotolist__name { grid-row: 1; grid-column: 2; align-self: center; font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--c-ink); }
#sc-adm-12-pnl-gotolist .ps-gotolist__desc { grid-row: 2; grid-column: 2; font-size: 12.5px; line-height: 1.7; color: var(--c-muted); }
#sc-adm-12-pnl-gotolist > li > .ps-action { grid-row: 3; grid-column: 2; justify-self: start; margin-top: 8px; }
/* 個人設定（SC-HOM-02）: 氏名の欄の左に、自分の丸（ヘッダーの丸と同じ。頭文字は保存してある氏名の最初の 1 字） */
.ps-field__body--me { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ps-field__body--me > .ps-avatar { --av: 34px; }
.ps-field__body--me > .ps-input { flex: 1 1 200px; width: auto; }
.ps-field__body--me > .ps-note { flex: 1 0 100%; margin: 0 0 0 44px; }

/* =====================================================================
   ★入口と案内（P002 29-3c・決定239。手本 P002 の docs/mockups/refresh-login.html・refresh-error.html・refresh-help.html）
   ログインのロゴはヘッダーと同じ字（プロジェクト名）・版と番号は Jost・1 行の案内は薄い藍の枠・エラーは真ん中にそろえる・
   ヘルプの目次は左ペインの選び方・表は角の丸い枠。
   ★P002 の鞠の飾り（ログインのカードの右肩の点線の弧と鞠・エラーの「落ちた鞠」・見つかりませんの点線の輪）は写していない（決定T11）
   ===================================================================== */

/* ---- LT-4 ①認証の姿（SC-AUT-01 ログイン・02 ワンタイムパスワード・03 初期セットアップ） ---- */
.ps-auth__brand { align-items: baseline; gap: 9px; margin-bottom: 18px; }   /* マークの下端をロゴの字の並びの線（baseline）に */
.ps-auth__brand .ps-auth__mark { height: 24px; }
.ps-auth__wordmark { display: inline-flex; align-items: baseline; min-width: 0; color: var(--c-navy); }
.ps-auth__brand .ps-auth__wordmark { height: auto; }   /* 前の画像の高さ（15px）の規則を字のロゴには効かせない */
.ps-auth__wordmark .wm { font-size: 27px; }
/* ★テンプレート: プロジェクト名は長いこともあるので、カードの幅に入らなければ折り返す（ロゴの行の高さも合わせて伸ばす） */
.ps-auth__brand { height: auto; min-height: 36px; }
.ps-auth__wordmark .wm { white-space: normal; overflow-wrap: anywhere; line-height: 1.15; }
.ps-auth__title { margin-bottom: 28px; }
.ps-auth__version { font-family: var(--f-brand); color: var(--c-faint); letter-spacing: .02em; }
.ps-otp-input { font-family: var(--f-brand); font-size: 22px; font-weight: 500; letter-spacing: .42em; font-variant-numeric: tabular-nums; }
/* 1 行の案内（ログアウトしました・再送しました）は、利用者エラーと同じ形の薄い藍の枠 */
.ps-auth__notice {
  padding: 8px 12px; color: var(--c-accent-ink);
  background: var(--c-accent-softer); border: 1px solid var(--c-accent-line); border-radius: var(--r-md);
}
/* 案内の枠のすぐ下の説明は、題に寄せる負の上の余白（-20px）をやめる（枠の下の線に説明の 1 行目が重なる＝P002 Quinn 29-3c の NG 1） */
.ps-auth__notice + .ps-auth__lead { margin-top: 0; }

/* ---- LT-4 ②システムの姿（SC-SYS-01 エラー・SC-SYS-02 見つかりません） ----
   真ん中にそろえる。記録の番号は Jost の札（問い合わせで読み上げる・写す番号）。区切りの線はやめる */
#sc-sys-01-pnl-card, #sc-sys-02-pnl-card { max-width: 500px; padding: 30px 36px 26px; text-align: center; }
#sc-sys-01-pnl-card .ps-card__title, #sc-sys-02-pnl-card .ps-card__title { font-size: 19px; }
#sc-sys-01-pnl-card .ps-card__message, #sc-sys-02-pnl-card .ps-card__message { text-wrap: balance; }
#sc-sys-01-pnl-card .ps-card__ref {
  justify-content: center; align-items: center; gap: 10px;
  margin-top: 18px; padding-top: 0; border-top: 0;
}
#sc-sys-01-pnl-card .ps-card__refvalue {
  font-family: var(--f-brand); font-size: 15px; font-weight: 500; letter-spacing: .12em; color: var(--c-ink);
  padding: 3px 12px; background: var(--c-surface-2); border: 1px solid var(--c-line); border-radius: var(--r-md);
}
#sc-sys-01-pnl-card .ps-card__guide, #sc-sys-02-pnl-card .ps-card__guide { margin-top: 18px; }

/* ---- SC-HLP-01 ヘルプ: 目次は左ペインの選び方（今の章は薄い藍の地・藍の字・角丸。左の縦線はやめる）。
   本文: 題は 22px・章の見出しの印は角の丸い棒・表は管理の表と同じ角の丸い枠（横の線だけ・見出しの行は沈んだ地）。線は薄く ---- */
.ps-help__toc { border-right-color: var(--c-line); }
.ps-help__toc { padding: 4px 0 20px; }
.ps-help__tochead { margin: 12px 18px 6px; font-size: 12px; font-weight: 700; color: var(--c-ink-2); }
.ps-help__toc a { margin: 1px 8px; padding: 5px 10px; border-left: 0; border-radius: var(--r-md); line-height: 1.55; }
.ps-help__toc a:hover { background: var(--c-accent-softer); }
.ps-help__toc a.is-current { background: var(--c-accent-soft); color: var(--c-accent-ink); font-weight: 500; }
.ps-help__toc a.is-sub { padding-left: 24px; }
.ps-help__page { padding: 10px 40px 60px 40px; }
.ps-help__page h1 { font-size: 22px; font-weight: 700; margin: 20px 0 8px 0; letter-spacing: .02em; }
.ps-help__page h2 { font-size: 16px; margin: 40px 0 12px 0; padding-top: 20px; border-top-color: var(--c-line-soft); }
.ps-help__page h2::before { flex-basis: 4px; width: 4px; height: 16px; border-radius: 2px; }
.ps-help__page h3 { font-size: 14px; margin: 22px 0 6px 0; }
.ps-help__page hr { border-top-color: var(--c-line-soft); }
.ps-help__page table { border-collapse: separate; border-spacing: 0; border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; }
.ps-help__page th, .ps-help__page td { border: 0; border-bottom: 1px solid var(--c-line-soft); padding: 6px 14px; }
.ps-help__page tr:last-child > td { border-bottom: 0; }
.ps-help__page th { background: var(--c-surface-2); color: var(--c-ink-2); font-size: 12px; font-weight: 500; border-bottom-color: var(--c-line); }
.ps-help__page code { border-color: var(--c-line); border-radius: 4px; }
.ps-help__page pre { border-color: var(--c-line); border-radius: var(--r-md); }

/* =====================================================================
   MD-SUP-01 サポートに問い合わせ（決定T14＝P002 決定246 を写した。手本: P002 の docs/mockups/support.html）
   自分のメニューとエラー画面から開くモーダル（ps-modal--md＝640px）。欄は 種類（プルダウン）・内容 の 2 つ。
   その下に「一緒に送る情報」の薄い箱（2 列。URL と記録の番号は 1 行を使う）。送ったあとは同じモーダルの中で「送りました」
   ===================================================================== */
#md-sup-01-pnl-veil textarea { min-height: 150px; }
.ps-supinfo {
  margin: 4px 0 0; padding: 10px 14px 11px;
  background: var(--c-surface-2); border: 1px solid var(--c-line); border-radius: var(--r-md);
}
.ps-supinfo__title { margin: 0 0 4px; font-size: 12.5px; font-weight: 500; color: var(--c-ink-2); }
.ps-supinfo__list {
  display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr);
  column-gap: 12px; row-gap: 0; margin: 0;
  font-size: 12px; line-height: 1.85;
}
.ps-supinfo__list dt { color: var(--c-muted); white-space: nowrap; }
/* 値は 1 行（長い URL は … で切る。全文は title） */
.ps-supinfo__list dd { margin: 0; min-width: 0; color: var(--c-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-supinfo__list dd.is-wide { grid-column: 2 / -1; }
/* エラー画面から開いたときの記録の番号（エラー画面の札と同じ字） */
.ps-supinfo__list dd.is-refno { font-family: var(--f-brand); font-weight: 500; letter-spacing: .1em; }
#md-sup-01-pnl-veil .ps-note { margin-top: 10px; }
/* 送ったあと: 丸の中のチェック（藍）＋「送りました」＋控えの宛先 */
.ps-supdone { padding: 18px 0 8px; text-align: center; }
.ps-supdone::before {
  content: ""; display: block; width: 40px; height: 40px; margin: 0 auto 10px;
  background: var(--c-accent);
  -webkit-mask: var(--i-checkcircle) no-repeat center / contain;
  mask: var(--i-checkcircle) no-repeat center / contain;
}
.ps-supdone__title { margin: 0 0 6px; font-size: 16px; font-weight: 500; }
.ps-supdone__text { margin: 0; font-size: 13px; color: var(--c-ink-2); overflow-wrap: anywhere; }
/* SC-SYS-01 エラー: 記録の番号の下の「サポートに問い合わせる」 */
#sc-sys-01-pnl-card .ps-card__support { margin-top: 16px; }
#sc-sys-01-pnl-card .ps-card__support .ps-action { height: 36px; padding: 0 16px; font-size: 13px; }

/* ---- 英語の画面だけの幅の手当て（決定T10＝P002 20-8・20-15）。日本語の見た目は変えない ------------------------
   ★言語を足して文字が長くなり、切れたり 2 行に折れたりする所は、ここに html[lang="xx"] で足す（撮影で目で見て見つける） */
/* ★ヘッダー: 英語だけ、管理メニューを自分のメニュー（丸）へ移す幅を広げる（P002 決定235 ③ — 英語は語が長く、1100px の境のままだと
   1101〜1106px で丸の右が切れた）。日本語の見た目は変えない */
@media (max-width: 1130px) {
  html[lang="en"] .ps-nav--admin, html[lang="en"] .ps-header__div { display: none; }
  html[lang="en"] .ps-menu__admin { display: block; }
}
/* 社員管理の一覧の「Login」列（Allowed・Disabled が 76px に収まらない。★言語を問わない規則＝上の #sc-adm-01-grd-users より強い） */
html[lang="en"] #sc-adm-01-grd-users col:nth-child(5) { width: 88px; }
/* 初期セットアップ（SC-AUT-03）の項目名（Your organization name が 120px で 2 行に折れる） */
html[lang="en"] #sc-aut-03-frm-setup .ps-field__label { flex: 0 0 160px; }
/* ★CSS の content の文字は辞書から引けない。基準の言語で書いてある所は、言語ごとにここで上書きする（Tester T10 の気づき） */
html[lang="en"] .ps-diff__body:empty::before { content: "(none)"; }
html[lang="en"] .ps-editgrid .ps-timeline:empty::before { content: "No comments yet."; }
