﻿/* =========================================================================
   Project Studio — 共通スタイル（P002 の正本）
   出自: input/deliverables/screen-design/mockups/style.css（P001）の写しから出発し、
   P002 のデザイン調整はこの file に直接入れる（P001 側は凍結）。PS 固有の部品は ps-app.css。
   ★Phase 29（2026-09-26・決定234）でデザインを刷新した。手本は docs/mockups/refresh-issue.html
     （G9001 の見本を写したもの）。色は「空は青、鞠は朱」: 紺＝ヘッダー、藍＝押せる・選ばれている、
     朱＝鞠だけ（ロゴの i の点と「あなたの番」の ●）。状態の 4 色（未解決・処理済み・完了・エラー）の意味は変えない。
   ★フォントだけ Google Fonts を参照する（決定36）。
   ========================================================================= */

/* ★決定36: Noto Sans JP（Google Fonts CDN）。届かない環境は body の後続フォントに落ちる
   ★500（Medium）は件名などに使う（決定144）。足していないと 500 を指定しても 400 の字形で描かれる（実測済み）
   ★決定234: Jost（ロゴ・課題番号・版・英字の添え書き）。Noto Sans JP と同じ SIL OFL で、課金する製品にも使える */
@import url("https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600&family=Noto+Sans+JP:wght@400;500;700&display=swap");

/* ---- 1. デザイントークン ------------------------------------------------ */
:root {
  /* --- 刷新の色（決定234。手本の :root と同じ値） --- */
  /* 藍（押せる・選ばれている） */
  --c-accent:         #417ba7;   /* 白い文字で 4.55:1 */
  --c-accent-hover:   #386d95;
  --c-accent-ink:     #2d5f86;   /* 薄い地の上の藍の文字（5.8:1） */
  --c-accent-soft:    #e6eef6;   /* 選ばれている地（選んだ行・押されたトグル） */
  --c-accent-softer:  #f2f6fa;   /* ホバーの地 */
  --c-accent-line:    #a9c2d8;   /* 押されたトグルの枠 */
  --c-ring:           rgba(65, 123, 167, .30);   /* フォーカスの輪 */
  /* 紺（ヘッダー） */
  --c-navy:           #142f49;
  --c-navy-ink:       #e9f0f6;
  --c-navy-weak:      #a3b8cc;
  --c-sky:            #a9cbe8;   /* 紺の上の「いまここ」の印（紺の上で 8.1:1） */
  --g-navy:           linear-gradient(100deg, #1d4669 0%, #173a58 34%, #132d47 100%);
  /* 鞠（朱）— 鞠のためだけに使う（ロゴの i の点・「あなたの番」の ●・フッターのひとこと） */
  --c-ball:           #eb6101;
  /* 地・面・線・文字（藍に少し寄せた無彩色） */
  --c-ground:         #eaf0f6;
  --c-surface:        #ffffff;
  --c-surface-2:      #f6f8fb;
  --c-line:           #e2e8ef;
  --c-line-soft:      #edf1f5;
  --c-line-strong:    #cfd9e3;
  --c-ink:            #1e2a37;
  --c-ink-2:          #465567;
  --c-muted:          #5f6d7e;   /* 白の上で 5.3:1 */
  --c-faint:          #7a8696;
  --c-disabled-bg:    #f1f4f7;
  --c-disabled-fg:    #a0abb8;
  /* ★状態の 4 色は変えない（色の意味はそのまま）。札は地を薄く・文字を濃くして読みやすく（どれも 6:1 以上）。点は元の色 */
  --c-active:         #00a7ea;   --c-active-bg:   #dff3fc;   --c-active-fg:   #06587d;
  --c-resolved:       #ebb800;   --c-resolved-bg: #fbf0c9;   --c-resolved-fg: #6b5000;
  --c-closed:         #aaaaaa;   --c-closed-bg:   #eeeeee;   --c-closed-fg:   #555555;
  --c-error:          #c0392b;   --c-error-bg:    #fdf3f1;   --c-error-line:  #efcdc8;
  /* 形と影 */
  --r-sm:             6px;
  --r-md:             8px;
  --r-lg:             12px;
  --sh-panel:         0 1px 2px rgba(20, 40, 64, .05), 0 4px 14px rgba(20, 40, 64, .045);
  --sh-pop:           0 18px 44px rgba(12, 28, 44, .22), 0 3px 10px rgba(12, 28, 44, .10);
  /* 書体（本文は Noto Sans JP のまま＝決定36。ロゴ・番号・英字の添え書きは Jost） */
  --f-text:           "Noto Sans JP", "Meiryo", "メイリオ", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "MS PGothic", sans-serif;
  --f-brand:          "Jost", "Futura", "Century Gothic", "Avenir Next", "Segoe UI", "Noto Sans JP", sans-serif;
  /* 印（線で描いた 16px の絵。CSS の mask で文字の色に塗る — 画面の文字は開きタグのすぐ後ろに置いたまま） */
  --i-help:     url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6.2'/%3E%3Cpath d='M6.3 6.3a1.8 1.8 0 1 1 2.5 1.7c-.5.2-.8.6-.8 1.1v.5M8 11.6v.1'/%3E%3C/svg%3E");
  --i-spark:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 1.8c.4 2.9 1.4 3.9 4.3 4.3-2.9.4-3.9 1.4-4.3 4.3-.4-2.9-1.4-3.9-4.3-4.3 2.9-.4 3.9-1.4 4.3-4.3Z'/%3E%3Cpath d='M12.6 10.4c.2 1.3.6 1.7 1.9 1.9-1.3.2-1.7.6-1.9 1.9-.2-1.3-.6-1.7-1.9-1.9 1.3-.2 1.7-.6 1.9-1.9Z'/%3E%3C/svg%3E");
  --i-user:     url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='5.5' r='2.7'/%3E%3Cpath d='M2.8 13.6c.6-2.6 2.6-4 5.2-4s4.6 1.4 5.2 4'/%3E%3C/svg%3E");
  --i-logout:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 13.5H3.8a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1h2.7M10.5 11l3-3-3-3M13.5 8H6'/%3E%3C/svg%3E");
  --i-folder:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.2 4.4a1.2 1.2 0 0 1 1.2-1.2h2.8l1.4 1.6h5a1.2 1.2 0 0 1 1.2 1.2v5.6a1.2 1.2 0 0 1-1.2 1.2H3.4a1.2 1.2 0 0 1-1.2-1.2Z'/%3E%3C/svg%3E");
  --i-users:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='5.6' r='2.4'/%3E%3Cpath d='M1.8 13.2c.4-2.3 2.1-3.6 4.2-3.6s3.8 1.3 4.2 3.6M10.6 3.4a2.3 2.3 0 0 1 0 4.4M12.2 9.8c1.1.5 1.8 1.6 2 3.1'/%3E%3C/svg%3E");
  --i-building: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13.6V3.4a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v10.2M10 6.4h2.2a1 1 0 0 1 1 1v6.2M1.8 13.6h12.4M5.4 5h2.2M5.4 7.6h2.2M5.4 10.2h2.2'/%3E%3C/svg%3E");
  --i-gear:     url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='2.2'/%3E%3Cpath d='M8 1.8v1.6M8 12.6v1.6M1.8 8h1.6M12.6 8h1.6M3.6 3.6l1.1 1.1M11.3 11.3l1.1 1.1M3.6 12.4l1.1-1.1M11.3 4.7l1.1-1.1'/%3E%3C/svg%3E");
  --i-check-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.2 8.4l3.2 3.1L12.8 5'/%3E%3C/svg%3E");
  --i-chev-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%235f6d7e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  /* ★29-2（決定236）: 一覧・右ペイン・モーダルの印（手本 docs/mockups/refresh-issue.html の symbol と同じ形）。優先度は棒 3 本（高＝3・中＝2・低＝1。薄い棒は mask の透明度） */
  --i-fold     : url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.5 4 4.5 8l4 4M12.5 4l-4 4 4 4'/%3E%3C/svg%3E");
  --i-chev-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4l4 4-4 4'/%3E%3C/svg%3E");
  --i-open     : url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 2.8h4.2V7M13 3 7.6 8.4'/%3E%3Cpath d='M11.5 9.5v2.7a1 1 0 0 1-1 1H3.8a1 1 0 0 1-1-1V5.5a1 1 0 0 1 1-1h2.7'/%3E%3C/svg%3E");
  --i-trash    : url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.8 4.3h10.4M6.3 4.3V2.9h3.4v1.4M4.2 4.3l.6 8.6a1 1 0 0 0 1 .9h4.4a1 1 0 0 0 1-.9l.6-8.6M6.7 6.8v4.4M9.3 6.8v4.4'/%3E%3C/svg%3E");
  --i-tree     : url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2.2' width='5' height='3.6' rx='1'/%3E%3Crect x='9' y='10.2' width='5' height='3.6' rx='1'/%3E%3Cpath d='M4.5 5.8V12h4.5'/%3E%3C/svg%3E");
  --i-sliders  : url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5h6.3M11.8 4.5h1.7M2.5 11.5h2.2M7.7 11.5h5.8'/%3E%3Ccircle cx='10.3' cy='4.5' r='1.5'/%3E%3Ccircle cx='6.2' cy='11.5' r='1.5'/%3E%3C/svg%3E");
  --i-plus     : url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3v10M3 8h10'/%3E%3C/svg%3E");
  --i-lock     : url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.3' y='7.2' width='9.4' height='6.6' rx='1.5'/%3E%3Cpath d='M5.4 7.2V5.3a2.6 2.6 0 0 1 5.2 0v1.9'/%3E%3C/svg%3E");
  --i-search   : url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7' cy='7' r='4.6'/%3E%3Cpath d='M10.4 10.4 14 14'/%3E%3C/svg%3E");
  --i-upload   : url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 10.5V3M5 6l3-3 3 3M3 10.5v1.8a1.2 1.2 0 0 0 1.2 1.2h7.6a1.2 1.2 0 0 0 1.2-1.2v-1.8'/%3E%3C/svg%3E");
  --i-edit     : url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.8 2.7a1.6 1.6 0 0 1 2.3 2.3l-7.6 7.6-3 .7.7-3Z'/%3E%3C/svg%3E");
  --i-clip     : url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.2 7.6 8 12.8a3.2 3.2 0 0 1-4.5-4.5l5.6-5.6a2.1 2.1 0 0 1 3 3L6.5 11.3a1 1 0 0 1-1.5-1.5l4.9-4.9'/%3E%3C/svg%3E");
  --i-prio-3   : url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11' fill='black'%3E%3Crect x='0' y='6' width='3' height='5' rx='.8' fill-opacity='1'/%3E%3Crect x='4' y='3' width='3' height='8' rx='.8' fill-opacity='1'/%3E%3Crect x='8' y='0' width='3' height='11' rx='.8' fill-opacity='1'/%3E%3C/svg%3E");
  --i-prio-2   : url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11' fill='black'%3E%3Crect x='0' y='6' width='3' height='5' rx='.8' fill-opacity='1'/%3E%3Crect x='4' y='3' width='3' height='8' rx='.8' fill-opacity='1'/%3E%3Crect x='8' y='0' width='3' height='11' rx='.8' fill-opacity='.25'/%3E%3C/svg%3E");
  --i-prio-1   : url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11' fill='black'%3E%3Crect x='0' y='6' width='3' height='5' rx='.8' fill-opacity='1'/%3E%3Crect x='4' y='3' width='3' height='8' rx='.8' fill-opacity='.25'/%3E%3Crect x='8' y='0' width='3' height='11' rx='.8' fill-opacity='.25'/%3E%3C/svg%3E");
  /* ★29-3a（決定237）: ファイル・実績の印（ダウンロード・移動・ファイル・「すべて」の重なった紙）。手本 docs/mockups/refresh-files.html */
  --i-download : url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2.5v7.4M4.9 6.9 8 10l3.1-3.1M2.8 11v1.5a1 1 0 0 0 1 1h8.4a1 1 0 0 0 1-1V11'/%3E%3C/svg%3E");
  --i-move     : url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.2 12V4.4a1.2 1.2 0 0 1 1.2-1.2h2.8l1.4 1.6h5a1.2 1.2 0 0 1 1.2 1.2v1.3'/%3E%3Cpath d='M7.4 11.2h6.4M11.4 8.8l2.4 2.4-2.4 2.4'/%3E%3C/svg%3E");
  --i-file     : url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 1.9h5.1l3.1 3.1v8.3a.8.8 0 0 1-.8.8H4a.8.8 0 0 1-.8-.8V2.7a.8.8 0 0 1 .8-.8Z'/%3E%3Cpath d='M9 1.9v3.2h3.2'/%3E%3C/svg%3E");
  --i-stack    : url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2.3 14 5.2 8 8.1 2 5.2Z'/%3E%3Cpath d='M2 8.1l6 2.9 6-2.9M2 10.9l6 2.9 6-2.9'/%3E%3C/svg%3E");
  /* ★29-3c（決定239）: ツアーの札の再生の印・ヘルプの「はじめに」の丸の中のチェック・AI の答えの丸の空色のきらめき。手本 docs/mockups/refresh-help.html・refresh-aihelp.html */
  --i-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6.2'/%3E%3Cpath d='M6.8 5.7v4.6l3.7-2.3Z'/%3E%3C/svg%3E");
  --i-checkcircle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6.2'/%3E%3Cpath d='M5.5 8.2l1.7 1.7 3.3-3.5'/%3E%3C/svg%3E");
  --i-spark-sky: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a9cbe8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 1.8c.4 2.9 1.4 3.9 4.3 4.3-2.9.4-3.9 1.4-4.3 4.3-.4-2.9-1.4-3.9-4.3-4.3 2.9-.4 3.9-1.4 4.3-4.3Z'/%3E%3Cpath d='M12.6 10.4c.2 1.3.6 1.7 1.9 1.9-1.3.2-1.7.6-1.9 1.9-.2-1.3-.6-1.7-1.9-1.9 1.3-.2 1.7-.6 1.9-1.9Z'/%3E%3C/svg%3E");
  /* ★32-1（決定246）: サポートに問い合わせの吹き出し（自分のメニューの項目） */
  --i-support: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.2 2.6h7.6a1.6 1.6 0 0 1 1.6 1.6v5.2a1.6 1.6 0 0 1-1.6 1.6H7.4l-2.8 2.4V11h-.4a1.6 1.6 0 0 1-1.6-1.6V4.2a1.6 1.6 0 0 1 1.6-1.6Z'/%3E%3Cpath d='M5.4 5.8h5.2M5.4 8.1h3.4'/%3E%3C/svg%3E");

  /* --- 前からの名前（画面・部品があちこちで使う）→ 刷新の色へ（決定234。名前を残し、値だけ差し替えた） --- */
  --c-header-bg:      var(--c-navy);
  --c-header-fg:      var(--c-navy-ink);
  --c-header-border:  transparent;   /* ★決定234: ヘッダーの下の線はやめた（紺の帯の下は地の色） */
  --c-footer-bg:      transparent;   /* ★決定234: フッターの帯をやめて地の色 */
  --c-footer-fg:      var(--c-muted);
  --c-pane-bg:        var(--c-surface);
  --c-pane-head-bg:   var(--c-surface-2);
  --c-left-bg:        var(--c-surface);
  --c-section-bg:     var(--c-surface-2);
  --c-section-fg:     var(--c-ink-2);
  --c-text:           var(--c-ink);
  --c-text-weak:      var(--c-muted);
  --c-link:           var(--c-accent-ink);
  --c-arrow:          var(--c-accent);
  --c-leader:         #c4d1de;
  --c-border:         var(--c-line);
  --c-border-strong:  var(--c-line-strong);
  --c-label-bg:       var(--c-surface-2);
  --c-btn-bg:         var(--c-accent);
  --c-btn-fg:         #ffffff;
  --c-btn2-bg:        var(--c-surface);
  --c-btn2-fg:        var(--c-accent-ink);
  --c-btn-disabled:   var(--c-disabled-bg);
  --c-btn-disabled-fg:var(--c-disabled-fg);
  --c-row-selected:   var(--c-accent-soft);
  --c-row-hover:      var(--c-accent-softer);
  --c-row-zebra:      #fbfcfd;
  --c-marker:         var(--c-accent);
  --c-auth-bg:        var(--c-ground);
  --c-page-bg:        var(--c-ground);
  --c-input-bg:       var(--c-surface);
  --c-input-focus-bg: var(--c-surface);
  --c-badge-fg:       #ffffff;
  --c-modal-veil:     rgba(13, 30, 48, .44);

  /* 寸法 */
  --h-header:         52px;   /* ★決定234: 40 → 52px（紺の帯） */
  --h-footer:         30px;   /* ★決定234: 帯をやめて、地の色に小さな文字 */
  --w-gutter:         12px;   /* 画面の両脇と、ヘッダーの下の隙間 */
  --w-panelgap:       10px;   /* パネルどうしの隙間（＝つまみの幅） */
  /* ★決定109: ペイン境界は可動。既定値をここに置き、つまみが書き換える */
  --w-left:           248px;  /* 可動域 180〜400 */
  --w-right:          560px;  /* 可動域 420〜画面幅の 50%（決定89。上限は各型の data-ps-max） */
  --w-folder:         230px;  /* SC-FIL-01 のフォルダーペイン。可動域 160〜360（Phase 11） */
  --w-center-min:     560px;  /* ★中央の下限。件名が全角約10文字読める線 */
  /* ★決定221: 最小の画面幅（旧 --w-min 1180px を body の min-width にしていた）は持たない。
     ペインの下限の合計が画面に入らないときは、ペインの並び（.ps-main）だけが横にスクロールする */
  --fs-base:          13px;
  --fs-small:         12px;
  --fs-header:        14px;

  /* ボタンの角丸（★決定234: 3 → 8px。押せるものは四角・絞り込みの札は丸い） */
  --r-btn:            8px;

  /* --- 一覧の表示密度（★決定234: 1 行 30 → 36px。1920×1032 で見える行は 26 → 22 件） --- */
  --h-filterbar:      52px;   /* 中央の帯（1 段のとき）の高さ */
  --h-listhead:       36px;   /* 一覧の列見出しの帯 */
}
/* ★決定221（PSTUD-49）: 幅 1600px 未満の画面（1920×1080 の 125% ＝ 1536・iPad Air の横 ＝ 1180 など）では、
   画面の両脇の余白とパネルどうしの隙間を 8px に詰め、右ペインのはじめの幅を 500px にして、一覧に幅を回す（決定234） */
@media (max-width: 1599px) {
  :root { --w-gutter: 8px; --w-panelgap: 8px; --w-right: 500px; }
}

/* ---- 2. リセットと土台 -------------------------------------------------- */
* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  /* ★決定68-a/b: ページ全体は縦にも横にもスクロールしない */
  overflow: hidden;
}

body {
  /* ★決定36: Google Fonts の Noto Sans JP（全デバイスで同じ見た目）。
     届かない環境では OS 標準の日本語フォントに落ちる */
  font-family: var(--f-text);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--c-text);
  /* ★決定234: 地は上から少しだけ濃くした空の色 */
  background: linear-gradient(180deg, #e2eaf3 0, #eaf0f6 200px, #edf2f7 100%) var(--c-ground);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; }
:where(a, button, [tabindex]):focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
/* 線で描く印（<svg class="ps-i"><use href="#ps-i-…"></svg>。形は _Layout の symbol） */
.ps-i {
  width: 16px; height: 16px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* ---- 3. 画面の骨格（3ペイン） ------------------------------------------ */
.ps-app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.ps-main {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;            /* ★これが無いと子のスクロールが効かない */
  /* ★決定234: パネルの影が切れないよう、画面の両脇の余白は padding で取る（ps.js のつまみは padding を引いて数える） */
  padding: var(--w-gutter) var(--w-gutter) 0 var(--w-gutter);
  /* ★決定221: ペインの下限の合計が画面に入らないとき（iPad の横でファイルの画面を左ペインを開いたまま見る・
     150% の拡大など）は、ペインの並びだけを横にスクロールさせる（ヘッダーとフッターは動かない）。
     切れて手が届かない所を作らない。縦ははみ出させない（スクロールはペインの中＝決定68-c） */
  overflow-x: auto;
  overflow-y: hidden;
}
/* ★決定234: ペインは白い面（角丸 12px・薄い影）。地の上に浮かべる */
.ps-left, .ps-center, .ps-right, .ps-folder, .ps-single, .ps-leftstrip, .ps-rightstrip {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-panel);
}
/* 角丸の外へ中身を出さない（中のスクロールは各領域が持つ） */
.ps-center, .ps-right, .ps-single { overflow: hidden; }

/* ---- 4. 固定ヘッダー（LY-01。★決定234: 紺の帯。手本 docs/mockups/refresh-issue.html） ---------------- */
.ps-header {
  position: relative; z-index: 20;
  flex: 0 0 var(--h-header);
  height: var(--h-header);
  display: flex; align-items: center; gap: 4px;
  padding: 0 14px 0 22px;
  background: var(--g-navy);
  color: var(--c-header-fg);
}
.ps-header :focus-visible { outline-color: var(--c-sky); }
/* ロゴ: 「Project Studıo」の i の点が朱の鞠（決定234 ⑤）。字は Jost 500 */
.ps-brand {
  display: inline-flex; align-items: baseline;
  margin-right: 26px; padding: 4px 2px;
  color: #f4f7fa; border-radius: 6px;
}
.wm { font-family: var(--f-brand); font-size: 23px; font-weight: 500; line-height: 1; letter-spacing: -.005em; white-space: nowrap; }
.wm-i { display: inline-grid; justify-items: center; align-items: baseline; }
.wm-i > * { grid-area: 1 / 1; }
.wm-anchor { display: block; width: 0; height: 1ex; position: relative; }
.wm-ball {
  position: absolute; left: 0; bottom: calc(100% + .11em);
  width: .2em; height: .2em; border-radius: 50%;
  background: var(--c-ball); transform: translateX(-50%);
}
.ps-brand:hover .wm-ball { animation: ps-bob .9s ease-in-out 1; }
@keyframes ps-bob { 0%, 100% { transform: translate(-50%, 0); } 45% { transform: translate(-50%, -.24em); } }
.ps-header__spacer { flex: 1 1 auto; }
.ps-nav { display: flex; align-items: center; }
/* 群0 業務メニュー（左に大きく）。いまの画面は空色の下線 */
.ps-nav--work { align-self: stretch; gap: 2px; }
.ps-nav--work a {
  position: relative; display: inline-flex; align-items: center;
  padding: 0 14px; color: #bccddd;
  font-size: 14px; font-weight: 500; letter-spacing: .06em; text-decoration: none; white-space: nowrap;
}
.ps-nav--work a:hover { color: #ffffff; background: rgba(255, 255, 255, .06); }
.ps-nav--work a[aria-current="page"] { color: #ffffff; }
.ps-nav--work a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0;
  height: 3px; border-radius: 3px 3px 0 0; background: var(--c-sky);
}
/* 群1 管理メニュー（右に小さく）と、群2 のヘルプ */
.ps-nav--admin { gap: 2px; }
.ps-nav--admin a,
.ps-nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 9px; border: 0; border-radius: 7px; background: none;
  color: var(--c-navy-weak); font-size: 12.5px; line-height: 1.4; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.ps-nav--admin a:hover,
.ps-nav__link:hover { color: #ffffff; background: rgba(255, 255, 255, .08); }
.ps-nav--admin a[aria-current="page"],
.ps-nav__link[aria-current="page"] { color: #ffffff; background: rgba(255, 255, 255, .10); }
.ps-header__div { flex: 0 0 1px; width: 1px; height: 22px; margin: 0 10px; background: rgba(255, 255, 255, .16); }
/* 群2 個人メニュー（はじめに・ヘルプ・AI に質問・自分のメニュー） */
.ps-nav--personal { gap: 4px; }
/* 文字の前に印を描く（印の絵は :root の --i-*） */
.ps-nav__link--help::before,
.ps-menu__item::before {
  content: ""; flex: 0 0 16px; width: 16px; height: 16px;
  background: currentColor;
  -webkit-mask: var(--ico, var(--i-help)) no-repeat center / contain;
  mask: var(--ico, var(--i-help)) no-repeat center / contain;
}
.ps-nav__link--help { --ico: var(--i-help); }
/* 自分のメニュー: 丸（頭文字）＋メールアドレス（P001 決定231）。押すと下に 個人設定・ログアウト */
.ps-userbtn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 8px 0 4px; margin-left: 6px;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--c-navy-ink); font: inherit; font-size: 12.5px; cursor: pointer;
}
.ps-userbtn:hover,
.ps-userbtn[aria-expanded="true"] { background: rgba(255, 255, 255, .08); }
.ps-userbtn .ps-avatar { --av: 28px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .18); }
.ps-userbtn__mail { color: #d3dfeb; white-space: nowrap; }
.ps-userbtn__chev { width: 12px; height: 12px; opacity: .7; }
.ps-menu {
  position: absolute; top: calc(100% - 2px); right: 14px; z-index: 60;
  width: 272px; padding: 6px;
  background: var(--c-surface); color: var(--c-ink);
  border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--sh-pop);
}
.ps-menu__who { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--c-line); }
.ps-menu__whotext { display: grid; min-width: 0; line-height: 1.5; }
.ps-menu__name { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-menu__mail { font-size: 12px; color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-menu form { margin: 0; }
.ps-menu__item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border: 0; border-radius: var(--r-md); background: none;
  color: var(--c-ink); font: inherit; font-size: 13px; line-height: 1.4; text-align: left; text-decoration: none; cursor: pointer;
}
.ps-menu__item:hover { background: var(--c-accent-softer); }
.ps-menu__item::before { background: var(--c-muted); }
.ps-menu__item[aria-current="page"] { color: var(--c-accent-ink); font-weight: 500; }
.ps-menu__item--mysettings { --ico: var(--i-user); }
.ps-menu__item--logout     { --ico: var(--i-logout); }
.ps-menu__item--project    { --ico: var(--i-folder); }
.ps-menu__item--staff      { --ico: var(--i-users); }
.ps-menu__item--customers  { --ico: var(--i-building); }
.ps-menu__item--settings   { --ico: var(--i-gear); }
.ps-menu__item--aihelp     { --ico: var(--i-spark); }
.ps-menu__item--support    { --ico: var(--i-support); }   /* サポートに問い合わせ（32-1・決定246） */
/* 狭いときだけ出す管理メニュー（下の「画面の幅に合わせる」） */
.ps-menu__admin { display: none; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--c-line); }
/* ---- ヘッダーを画面の幅に合わせる（★決定234。実測: iPad の横 1180px でも「はじめに」の札まで 1,091px で入る） ---- */
@media (max-width: 1440px) { .ps-userbtn__mail { display: none; } }
@media (max-width: 1320px) { .ps-nav--admin a { padding: 6px 6px; font-size: 12px; } .ps-brand { margin-right: 12px; } }
/* 管理メニューが入らない幅では、ヘッダーから隠して自分のメニュー（丸）の中に出す（押せなくしない） */
@media (max-width: 1100px) {
  .ps-nav--admin, .ps-header__div { display: none; }
  .ps-menu__admin { display: block; }
}

/* ---- 人の丸（アバター。★決定234）: 頭文字 1 字。色は利用者の番号から 8 色のうち 1 つ（CAvatar）。白い字で 4.7:1 以上 ---- */
.ps-avatar {
  --av: 22px;
  flex: 0 0 var(--av); width: var(--av); height: var(--av); border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--av-bg, #6f86a0); color: #ffffff;
  font-family: var(--f-brand); font-size: calc(var(--av) * .5); font-weight: 500; line-height: 1;
}
/* 頭文字は data-initial（名前＝利用者の入れた値。画面の文字にはしない） */
.ps-avatar::before { content: attr(data-initial); }
.ps-avatar--lg { --av: 36px; }
.ps-avatar[data-c="0"] { --av-bg: #3f6f99; }
.ps-avatar[data-c="1"] { --av-bg: #4a7d5f; }
.ps-avatar[data-c="2"] { --av-bg: #76589a; }
.ps-avatar[data-c="3"] { --av-bg: #8a6a3a; }
.ps-avatar[data-c="4"] { --av-bg: #3a7a80; }
.ps-avatar[data-c="5"] { --av-bg: #5561a3; }
.ps-avatar[data-c="6"] { --av-bg: #95577a; }
.ps-avatar[data-c="7"] { --av-bg: #5f6b7a; }
/* 朱の鞠（「あなたの番」の ●・フッターのひとこと） */
.ps-ball { display: inline-block; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--c-ball); }

/* ---- 5. 固定フッター（LY-06。★決定234: 帯をやめて地の色に小さな文字。左にひとこと） ------------------ */
.ps-footer {
  flex: 0 0 var(--h-footer);
  height: var(--h-footer);
  display: flex; align-items: center; gap: 16px;
  padding: 0 calc(var(--w-gutter) + 12px);
  background: var(--c-footer-bg);
  color: var(--c-footer-fg);
  font-size: 11.5px;
  line-height: 1;
}
.ps-footer__motto { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .08em; white-space: nowrap; }
.ps-footer__motto::before { content: ""; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--c-ball); }
.ps-footer__spacer { flex: 1 1 auto; }
/* ★決定79: 右に powered by Leapcom ＋ version */
.ps-footer__by, .ps-footer__ver { font-family: var(--f-brand); font-size: 12px; letter-spacing: .06em; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---- 6. 左ペイン（連動フィルター3段） ---------------------------------- */
.ps-left {
  flex: 0 0 var(--w-left);
  width: var(--w-left);
  overflow-y: auto;          /* ★画面内スクロール（決定68-c） */
  overflow-x: hidden;
  padding: 0 8px 14px;
}
/* 軸の見出し（★決定234: 帯をやめて小さな太字。軸と軸の間は細い線）。
   ★29-2（決定236）: 右端に英字の小さな添え書き（h2 の data-en を CSS が描く。Jost の大文字）。見出しの文字は日本語の語だけのまま —
     読み上げの名前にもテストにも入らないように、::after の内容は読み上げない形（/ ""）。英語の画面では出さない（同じ語が 2 つ並ぶため） */
.ps-filter__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin: 0;
  padding: 12px 8px 6px;
  font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: .04em;
  color: var(--c-ink-2);
}
.ps-filter__head[data-en]::after {
  content: attr(data-en);
  content: attr(data-en) / "";
  flex: 0 0 auto;
  font-family: var(--f-brand); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-faint); white-space: nowrap;
}
html[lang="en"] .ps-filter__head[data-en]::after { content: none; }
/* 担当者の「● 自分」の札（一覧の朱の ● の見本を兼ねる）と、AI の仲間の「AI」の札（29-2・決定236） */
.ps-me {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px;
  height: 18px; padding: 0 7px 0 5px;
  border: 1px solid var(--c-line-strong); border-radius: 999px; background: var(--c-surface);
  font-size: 10.5px; font-weight: 400; line-height: 1; color: var(--c-muted); white-space: nowrap;
}
.ps-me::before { content: ""; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--c-ball); }
.ps-aitag {
  flex: 0 0 auto; padding: 0 5px; border-radius: 4px;
  background: var(--c-navy); color: var(--c-navy-ink);
  font-family: var(--f-brand); font-size: 10px; font-weight: 600; letter-spacing: .08em; line-height: 16px;
}
.ps-filter__list + .ps-filter__head { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--c-line-soft); }
.ps-filter__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.ps-filter__item { margin: 0; }
.ps-filter__link {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 30px;
  padding: 3px 8px;
  background: transparent;
  border: none;
  border-radius: var(--r-md);
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  color: var(--c-muted);
  text-align: left;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.ps-filter__link:hover { background: var(--c-accent-softer); color: var(--c-ink); }
.ps-filter__name { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ★選ばれている（＝一覧に出ている）ことの印（2026-08-22 ユーザー指示・決定43）。
   ★決定234: 点線と ▶ をやめ、選べる行の頭に ☑（複数選べる軸）と ◉（1 つだけ選ぶ軸＝.ps-filter__list--single。決定114）を描く。
   ガイドを読まなくても「プロジェクトは 1 つだけ」が形で分かる */
.ps-filter__leader,
.ps-filter__mark { display: none; }
.ps-filter__link.is-selectable::before {
  content: ""; flex: 0 0 16px; width: 16px; height: 16px; box-sizing: border-box;
  border: 1.5px solid #b6c3d1; border-radius: 4px;
  background: var(--c-surface) no-repeat center / 11px;
  transition: background-color .12s, border-color .12s;
}
.ps-filter__link.is-selectable.is-selected::before {
  background-color: var(--c-accent); border-color: var(--c-accent); background-image: var(--i-check-white);
}
.ps-filter__link.is-selected { color: var(--c-ink); }
.ps-filter__list--single .ps-filter__link.is-selectable::before { border-radius: 50%; }
.ps-filter__list--single .ps-filter__link.is-selectable.is-selected::before { background: var(--c-surface); border: 5px solid var(--c-accent); }
.ps-filter__list--single .ps-filter__link.is-selected { background: var(--c-accent-soft); color: var(--c-accent-ink); font-weight: 500; }
.ps-filter__list--single .ps-filter__link.is-selected:hover { background: #dce7f2; }
/* My Task は鍵の印が頭（丸は付けない） */
.ps-filter__link[data-mytask="true"]::before { display: none; }
.ps-filter__more {
  display: block;
  margin: 2px auto 0 auto;
  background: none; border: none; font: inherit;
  color: var(--c-text-weak); font-size: var(--fs-small);
  cursor: pointer; padding: 2px 8px;
}

/* ---- 6.5 ★左ペインを畳む（決定221・PSTUD-49。LT-1＝課題・ファイル・実績） -------------
   左ペインの上の「◂ 畳む」で畳み、残った細い帯「▸ 絞り込み」で開く（ファイルの右ペインの帯 .ps-rightstrip と同じ形）。
   畳んだかどうかはブラウザーごと・画面ごとの Cookie（ps.leftfold.<画面の id>）で、サーバーが .is-leftfolded を付けて描く */
/* ★29-2（決定236・手本）: 左の頭に小さな見出し「絞り込み」と、« の印だけのボタン。ボタンの文字（◂ 畳む）は読み上げとテストのために残し、見た目は印だけ（文字の大きさ 0） */
.ps-left__foldrow { display: flex; align-items: center; gap: 8px; padding: 12px 2px 2px 8px; }
.ps-left__title { flex: 1 1 auto; min-width: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--c-ink-2); }
.ps-left__fold {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; padding: 0; margin-left: auto;
  border: none; border-radius: var(--r-md); background: transparent;
  font: inherit; font-size: 0; line-height: 0; color: var(--c-muted); cursor: pointer;
}
.ps-left__fold::after {
  content: ""; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: var(--i-fold) center / 14px no-repeat; mask: var(--i-fold) center / 14px no-repeat;
}
.ps-left__fold:hover { color: var(--c-accent-ink); background: var(--c-accent-softer); }
.ps-left__foldrow + .ps-filter__head { padding-top: 6px; }
/* 帯の右の隙間はパネルどうしの隙間と同じ（つまみの代わり）。★ps.js のつまみは margin も幅に数える */
.ps-leftstrip { flex: 0 0 40px; width: 40px; display: none; margin-right: var(--w-panelgap); }
.ps-leftstrip 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-leftstrip button:hover { color: var(--c-accent-ink); background: var(--c-accent-softer); }
.ps-main.is-leftfolded > .ps-left,
.ps-main.is-leftfolded > .ps-splitter--left { display: none; }
.ps-main.is-leftfolded > .ps-leftstrip { display: block; }

/* ---- 7. 中央ペイン ------------------------------------------------------ */
.ps-center {
  flex: 1 1 auto;
  /* ★決定109: 中央ペインの下限。件名が全角約10文字読める線（§4.6） */
  min-width: var(--w-center-min);
  display: flex;
  flex-direction: column;
}
/* ★縦の予算を稼ぐため1段にまとめた。軸ラベルは消していない */
.ps-center__bar {
  flex: 0 0 auto;
  min-height: var(--h-filterbar);
  display: flex; align-items: center; gap: 18px;
  padding: 10px 16px;
}
/* ★決定234: 枠のある欄（地は薄い灰・触ると白と藍の輪）。検索の押しボタンは欄の右端の中に置く */
.ps-search { position: relative; display: flex; align-items: center; flex: 0 0 auto; }
.ps-search input[type="search"] {
  width: 240px; height: 34px; padding: 0 42px 0 34px;
  font: inherit; font-size: 13px; line-height: normal;
  border: 1px solid var(--c-line-strong); border-radius: 10px;
  background: var(--c-surface-2); color: var(--c-ink); outline: none;
  transition: border-color .12s, box-shadow .12s, background .12s;
}
.ps-search input[type="search"]::placeholder { color: var(--c-faint); }
.ps-search input[type="search"]:hover { border-color: #b8c6d4; }
.ps-search input[type="search"]:focus { background: var(--c-surface); border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-ring); }
/* ★29-4（決定240）: 空のときは消す印（×）の場所も取らない。Chrome は空でも × の場所を右に空けていて、薄い字がそのぶん早く切れていた
   （英語の 1920 で課題一覧の Keyword / Issue No.）。字を入れると × は出る */
.ps-search input[type="search"]:placeholder-shown::-webkit-search-cancel-button { display: none; }
.ps-search button {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 26px; display: grid; place-items: center; padding: 0;
  border: none; border-radius: 7px;
  background: var(--c-btn-bg); color: var(--c-btn-fg); cursor: pointer;
}
.ps-search button:hover { background: var(--c-accent-hover); }
.ps-search button .ps-i { width: 14px; height: 14px; }
/* ★29-2（手本）: 欄の左に虫めがねの印（飾り。押すのは右端の藍のボタン） */
.ps-search::before {
  content: ""; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 15px; height: 15px; background: var(--c-faint); pointer-events: none;
  -webkit-mask: var(--i-search) center / 15px no-repeat; mask: var(--i-search) center / 15px no-repeat;
}

.ps-toggles { display: flex; align-items: center; gap: 18px; flex: 1 1 auto; }
.ps-toggle__group { display: flex; align-items: center; gap: 8px; }
.ps-toggle__axis {           /* ★軸のラベル（申し送り1）。1段化のため横に置いた */
  font-size: var(--fs-small);
  color: var(--c-text-weak);
  white-space: nowrap;
}
.ps-toggle__set { display: flex; gap: 4px; }
/* ★決定95: トグル（状態）とアクションボタンを見分けられるようにした。
   トグルは塗らない（塗りはアクションボタンの印）。
   ★決定234: 形でも分ける — トグル（絞り込み）は丸い札。押されている＝薄い藍の地・藍の文字（太め）・藍寄りの枠。
     操作ボタンは角 8px の四角で、主な操作は藍の塗り */
.ps-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 28px; min-width: 42px; padding: 0 11px;
  font: inherit; font-size: 12.5px; line-height: 1;
  background: var(--c-surface); color: var(--c-muted);
  border: 1px solid var(--c-line-strong);
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.ps-toggle:hover { border-color: #aebfcf; color: var(--c-ink-2); }
.ps-toggle[aria-pressed="true"] {
  color: var(--c-accent-ink);
  background: var(--c-accent-soft);
  border-color: var(--c-accent-line);
  font-weight: 500;
}
.ps-toggle[aria-pressed="true"]:hover { background: #dce7f2; }
.ps-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--c-ring); }
/* ★29-2（決定236・手本）: 札の印。優先度＝棒 3 本（高＝3・中＝2・低＝1）、状態＝札と同じ色の点（押されていないときは輪だけ）、
   親子＝木の印、詳細な条件＝つまみの印と開閉の山。★印は CSS で描く（ボタンの文字は開きタグのすぐ後ろのまま＝テストと読み上げ）。
   優先度は課題の登録・開く（MD-ISU-02・03）の札も同じ（id の末尾で当てる） */
[id$="-chk-priority-high"]::before, [id$="-chk-priority-normal"]::before, [id$="-chk-priority-low"]::before {
  content: ""; flex: 0 0 11px; width: 11px; height: 11px; background: currentColor;
  -webkit-mask: var(--i-prio-2) center / 11px no-repeat; mask: var(--i-prio-2) center / 11px no-repeat;
}
[id$="-chk-priority-high"]::before { -webkit-mask-image: var(--i-prio-3); mask-image: var(--i-prio-3); }
[id$="-chk-priority-low"]::before { -webkit-mask-image: var(--i-prio-1); mask-image: var(--i-prio-1); }
#sc-isu-01-chk-status-active::before, #sc-isu-01-chk-status-resolved::before, #sc-isu-01-chk-status-closed::before {
  content: ""; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--dot);
}
#sc-isu-01-chk-status-active { --dot: var(--c-active); }
#sc-isu-01-chk-status-resolved { --dot: var(--c-resolved); }
#sc-isu-01-chk-status-closed { --dot: var(--c-closed); }
#sc-isu-01-chk-status-active[aria-pressed="false"]::before, #sc-isu-01-chk-status-resolved[aria-pressed="false"]::before,
#sc-isu-01-chk-status-closed[aria-pressed="false"]::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--dot); }
#sc-isu-01-chk-tree-top::before, #sc-isu-01-chk-advanced::before {
  content: ""; flex: 0 0 14px; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: var(--i-tree) center / 14px no-repeat; mask: var(--i-tree) center / 14px no-repeat;
}
#sc-isu-01-chk-advanced::before { -webkit-mask-image: var(--i-sliders); mask-image: var(--i-sliders); }
#sc-isu-01-chk-advanced::after {
  content: ""; flex: 0 0 12px; width: 12px; height: 12px; background: currentColor; transition: transform .15s;
  -webkit-mask: var(--i-chev-down) center / 12px no-repeat; mask: var(--i-chev-down) center / 12px no-repeat;
}
#sc-isu-01-chk-advanced[aria-pressed="true"]::after { transform: rotate(180deg); }
/* 一覧が狭いとき（125% で左ペインを開いたまま・iPad の横）は、帯の札の印（優先度の棒・木）を外して 1 段に収める（見本の §17 ②。状態の点は残す）。
   700px 未満では一覧のバーの「詳細な条件」の印も外す（器は .ps-center＝container-type は下の §「狭いとき」） */
@container (width < 800px) {
  [id^="sc-isu-01-chk-priority-"]::before, #sc-isu-01-chk-tree-top::before { display: none; }
}
@container (width < 700px) {
  #sc-isu-01-chk-advanced::before { display: none; }
}
/* ★KSP-002 の「Excel 出力」ボタンは実測 #4786b5（緑ではない）。主ボタンと同じ扱いにした（★決定234: 形は主ボタンと同じ四角・塗り） */
.ps-excel {
  margin-left: auto; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 16px;
  background: var(--c-btn-bg); color: var(--c-btn-fg);
  border: 1px solid var(--c-btn-bg); border-radius: var(--r-btn);
  font: inherit; font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: background .12s, border-color .12s;
}
.ps-excel:hover { background: var(--c-accent-hover); border-color: var(--c-accent-hover); }
.ps-excel:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--c-ring); }

/* 一覧の列見出し（★軸ラベルを置くために追加した帯） */
.ps-list__head {
  flex: 0 0 var(--h-listhead);
  height: var(--h-listhead);
  display: grid;
  align-items: center;
  gap: 0 14px;
  padding: 0 16px;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-surface-2);
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
  color: var(--c-text-weak);
}
.ps-list__wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;          /* ★画面内スクロール（決定68-c） */
  padding: 0 0 10px 0;
}
.ps-list { list-style: none; margin: 0; padding: 0; }
/* =====================================================================
   一覧（決定102 — 1件1行に確定。案B・案Cは削除した）
   ===================================================================== */
.ps-row {
  position: relative;
  display: grid;
  align-items: center;
  gap: 0 14px;
  /* ★プロジェクト列は「名前の先頭5文字程度」。全体は title でホバー表示。
     ★この幅は暫定であり、実物を見て調整してよい。
     ★決定106: 1プロジェクトだけに絞られている場合はこの列を隠す */
  /* ★決定152: 社内限定かどうかを課題1件ごとに示す。★印は社内限定のときだけ出すため、
     専用の列を持たない（件名の直前にインラインで置く）。列構成は 4-0-1 のままである */
  /* ★決定221（PSTUD-49）: 状態の列は 74 → 62px（「処理済み」「Resolved」も入る）。空いた 12px は件名へ。
     件名の列は minmax(0, 1fr) — 1fr（下限が中身の幅）だと、親子の子の行で件名＋進み具合が縮まず、担当者と状態が右へはみ出した */
  /* ★29-2（決定236・手本）: 左端は鞠の列（14px）、担当者は丸だけ（26px）、状態は 1 文字の札（36px）— 件名を広く（iPad・125%・150% でも件名が読めるように） */
  grid-template-columns: 14px 84px 92px minmax(0, 1fr) 26px 36px;
  grid-template-areas: "m p n t a s";
  /* ★決定234: 1 件の高さ 30 → 36px・文字 13 → 13.5px（1920×1032 で見える行は 26 → 22 件。目で追いやすく、押す所も大きく） */
  height: 36px;
  line-height: 21px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--c-line-soft);
  padding: 0 16px;
  cursor: pointer;
  overflow: hidden;
}
.ps-row:hover { background: var(--c-row-hover); }
/* 交互色。横に長い行を目で追いやすくする */
.ps-row:nth-child(even) { background: var(--c-row-zebra); }
.ps-row:nth-child(even):hover { background: var(--c-row-hover); }
.ps-row.is-selected,
.ps-row.is-selected:nth-child(even) { background: var(--c-row-selected); }
/* ★決定234: 選んだ行は左端に藍の縦線 */
.ps-row.is-selected::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c-accent); }

/* ★29-2（決定234 ①・236）: 鞠の列。担当者があなたで完了でない課題（あなたの番）にだけ朱の ●（朱はこの ● だけに使う） */
.ps-row__marker { grid-area: m; justify-self: center; width: 10px; height: 10px; border-radius: 50%; }
.ps-row.is-mine .ps-row__marker { background: var(--c-ball); box-shadow: 0 0 0 3px rgba(235, 97, 1, .13); }
.ps-row__project,
.ps-row__no { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-row__project  { grid-area: p; color: var(--c-ink-2); }
.ps-row__no       { grid-area: n; color: var(--c-text-weak); font-family: var(--f-brand); font-size: 13px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.ps-row__title    { grid-area: t; display: flex; align-items: center; min-width: 0; align-self: stretch; white-space: nowrap; }
/* 担当者は丸だけ（名前は title と読み上げ）。AI の仲間の作業中・順番待ちの点は丸の右下 */
.ps-row__assignee { grid-area: a; justify-self: center; position: relative; display: inline-grid; place-items: center; width: 24px; height: 24px; }
.ps-row__assignee .ps-aiw-dot { position: absolute; right: -3px; bottom: -2px; margin: 0; box-shadow: 0 0 0 2px var(--c-surface); }
.ps-row__nobody { color: var(--c-faint); }
.ps-badge         { grid-area: s; }

/* ★社内限定の印（決定152）。社内限定のときだけ、件名の直前に出す。
   ★色域を持たない。地は表ヘッダーと同じ無彩色、枠線で本文と切り分ける。
   Status バッジの3色は使わない（状態の色域を侵さない）。 */
.ps-scope {
  display: inline-block;
  margin-right: 6px;
  padding: 0 6px;
  border: 1px solid var(--c-border-strong);
  border-radius: 5px;
  background: var(--c-label-bg);
  color: var(--c-ink-2);
  font-size: 11px;
  line-height: 16px;
  vertical-align: 1px;
}

/* 列見出し。本文の行と同じ列構成を使う */
.ps-list__head {
  grid-template-columns: 14px 84px 92px minmax(0, 1fr) 26px 36px;
  grid-template-areas: "m p n t a s";
}
.ps-col--m { grid-area: m; }
.ps-col--p { grid-area: p; }
.ps-col--n { grid-area: n; }
.ps-col--t { grid-area: t; }
.ps-col--a { grid-area: a; }
.ps-col--s { grid-area: s; }

/* Status バッジ（3色）。★決定234: 色の地に白い字（処理済みは 1.8:1）をやめ、薄い地に濃い字＋元の色の点（どれも 6:1 以上） */
.ps-badge {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 22px; padding: 0 8px;
  border-radius: 6px;
  background: var(--bg, var(--c-closed-bg));
  color: var(--fg, var(--c-closed-fg));
  font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap;
}
.ps-badge::before { content: ""; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--c-closed)); }
.ps-badge--active   { --bg: var(--c-active-bg);   --fg: var(--c-active-fg);   --dot: var(--c-active); }
.ps-badge--resolved { --bg: var(--c-resolved-bg); --fg: var(--c-resolved-fg); --dot: var(--c-resolved); }
.ps-badge--closed   { --bg: var(--c-closed-bg);   --fg: var(--c-closed-fg);   --dot: var(--c-closed); }
/* ★29-2（決定236）: 一覧の状態は 1 文字の札（未・済・完）。元の語は title と読み上げ（ps-visually-hidden）。点は札と同じ色 */
.ps-badge--short { padding: 0 7px 0 6px; gap: 4px; }
.ps-row > .ps-badge { justify-self: start; }
.ps-badge--lg { height: 26px; padding: 0 11px 0 10px; font-size: 13px; }



/* ---- 7.5 ★ペイン境界のつまみ（決定109） ----------------------------------
   ★モックアップ専用の仕掛けではなく設計そのものである。
   ドラッグ中もページ全体はスクロールしない（決定68） */
.ps-splitter {
  flex: 0 0 var(--w-panelgap);
  width: var(--w-panelgap);
  /* ★パネル構成: つまみはパネル間の隙間そのもの。地の色のままにする */
  background: transparent;
  cursor: col-resize;
  position: relative;
  touch-action: none;
}
/* ★決定234: ふだんは真ん中に点々だけ、触ると藍の細い線 */
.ps-splitter:hover,
.ps-splitter.is-dragging { background: linear-gradient(var(--c-accent), var(--c-accent)) center / 2px calc(100% - 28px) no-repeat; }
.ps-splitter::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 28px;
  margin: -14px 0 0 -2px;
  background: radial-gradient(circle at 2px 2px, #9aabbd 1.3px, transparent 1.7px) 0 0 / 4px 6px repeat-y;
  opacity: .8;
  transition: opacity .15s;
}
.ps-splitter:hover::after,
.ps-splitter.is-dragging::after { opacity: 0; }
/* ドラッグ中は文字選択を止める */
body.is-resizing { user-select: none; cursor: col-resize; }
/* ★決定221: 指で操作する画面（iPad など）では、見た目は 4px のまま、つかめる所だけ左右 8px ずつ広げる。
   左ペインの「◂ 畳む」（48×20px）も、見た目はそのまま、押せる所だけ広げる（Quinn 27-1 の質問。約 66×38px） */
@media (pointer: coarse) {
  .ps-splitter { z-index: 1; }
  .ps-splitter::before { content: ""; position: absolute; top: 0; bottom: 0; left: -8px; right: -8px; }
  .ps-left__fold { position: relative; }
  .ps-left__fold::before { content: ""; position: absolute; top: -10px; bottom: -8px; left: -12px; right: -6px; }
}

/* ---- 8. 右ペイン -------------------------------------------------------- */
.ps-right {
  flex: 0 0 var(--w-right);
  width: var(--w-right);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.ps-right__actions {         /* ★スクロールしない */
  flex: 0 0 auto;
  display: flex; justify-content: flex-start; align-items: center; gap: 6px;
  flex-wrap: wrap; row-gap: 6px;   /* ★右ペインを狭めても押せなくならない */
  padding: 12px 12px 12px 14px;
  border-bottom: 1px solid var(--c-line);
}
/* 操作ボタン（★決定234: 角 8px の四角。主な操作は藍の塗り、ほかは白地に藍の文字） */
.ps-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 30px; min-width: 60px; padding: 0 12px;
  font: inherit; font-size: 12.5px; font-weight: 500; line-height: 1; white-space: nowrap;
  background: var(--c-btn2-bg); color: var(--c-btn2-fg);
  border: 1px solid var(--c-line-strong); border-radius: var(--r-btn); cursor: pointer;
  transition: background .12s, border-color .12s, color .12s, box-shadow .12s;
}
.ps-action:hover:not(:disabled) { border-color: var(--c-accent); background: var(--c-accent-softer); }
.ps-action:active:not(:disabled) { background: var(--c-accent-soft); }
.ps-action:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--c-ring); }
.ps-action--primary { background: var(--c-btn-bg); color: var(--c-btn-fg); border-color: var(--c-btn-bg); }
.ps-action--primary:hover:not(:disabled) { background: var(--c-accent-hover); border-color: var(--c-accent-hover); }
.ps-action--primary:active:not(:disabled) { background: #2f5f84; }
.ps-action:disabled {
  color: var(--c-btn-disabled-fg); background: var(--c-btn-disabled);
  border-color: var(--c-line); cursor: not-allowed;
}

.ps-attrs { flex: 0 0 auto; padding: 12px 14px 0 14px; }   /* ★スクロールしない */
.ps-attrs table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ps-attrs th, .ps-attrs td {
  border: 1px solid var(--c-line);
  padding: 6px 10px;
  font-weight: normal;
  font-size: var(--fs-base);
  vertical-align: top;
}
.ps-attrs th { background: var(--c-label-bg); color: var(--c-text-weak); font-size: var(--fs-small); text-align: right; width: 108px; white-space: nowrap; }
.ps-attrs td.is-status { background: var(--c-active-bg); color: var(--c-active-fg); font-weight: 500; }

/* ★画面内スクロール。
   ★4-0-3 で .ps-pane__body を同じ規則に加えた（LT-2 / LT-3 のペインの本文）。
   「右ペインの中だけが縦にスクロールする」という同一の領域であり、
   スクロールする領域の種類を増やしていない（layout-standard.md §9 の3種のまま）。 */
.ps-timeline,
.ps-pane__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0 16px;
  margin-top: 10px;
}
.ps-post { border-top: 1px solid var(--c-border); padding: 10px 2px; }
.ps-post__meta { display: flex; justify-content: space-between; color: var(--c-text-weak); font-size: var(--fs-small); }
.ps-post__body { margin: 8px 0; white-space: pre-line; line-height: 1.75; }
.ps-post__change { text-align: right; color: var(--c-text-weak); font-size: var(--fs-small); border-top: 1px dashed var(--c-border); padding-top: 6px; }

.ps-right__foot { flex: 0 0 auto; padding: 10px 14px 12px 14px; border-top: 1px solid var(--c-line); }  /* ★スクロールしない */
.ps-right__foot table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ps-right__foot th, .ps-right__foot td {
  border: 1px solid var(--c-line);
  padding: 5px 10px; font-weight: normal; font-size: var(--fs-base);
}
.ps-right__foot th { background: var(--c-label-bg); color: var(--c-text-weak); font-size: var(--fs-small); text-align: right; width: 108px; white-space: nowrap; }

/* ---- 9. 補助 ------------------------------------------------------------ */
.ps-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}


/* =====================================================================
   入力欄と共通部品（`B-4` の決着。正本: layout-standard.md §4.8）
   ★3状態を「色だけ」で分けない。地の有無・線の種類（実線/無し/点線）で分ける
   ★決定234: 下線だけの欄をやめて枠のある欄にした（角 8px・触ると藍の輪）。3 状態の分け方（決定110）は変えない
   ===================================================================== */
.ps-field { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.ps-field__label {
  flex: 0 0 108px; text-align: right;
  font-size: 12.5px; color: var(--c-ink-2);
}
.ps-field__label .ps-req { color: var(--c-error); font-weight: bold; margin-left: 2px; }
.ps-field__body { flex: 1 1 auto; min-width: 0; }
.ps-field__error {
  display: block; margin-top: 4px;
  font-size: 12px; color: var(--c-error);
}

/* ---- 編集可能: 白い地 ＋ 実線の枠 ------------------------------------------ */
.ps-input {
  width: 100%; min-height: 32px; font: inherit; font-size: var(--fs-base); line-height: 1.5;
  color: var(--c-text);
  background: var(--c-input-bg);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md);
  padding: 5px 10px;
  outline: none;
  transition: border-color .12s, box-shadow .12s, background .12s;
}
.ps-input:hover { border-color: #b8c6d4; }
.ps-input:focus {
  background: var(--c-input-focus-bg);
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-ring);
}
select.ps-input {
  padding: 4px 26px 4px 8px;
  -webkit-appearance: none; appearance: none;
  background: var(--c-input-bg) var(--i-chev-down) no-repeat right 8px center / 12px;
  cursor: pointer;
}
textarea.ps-input { resize: vertical; min-height: 46px; line-height: 1.7; padding: 7px 10px; }

/* ---- 読み取り専用: 地なし・線なし。文字だけ -----------------------------
   ★Phase 5 は .ps-readonly だけを使う。.ps-input[readonly] は使わない（決定229）。
   ★.ps-input[readonly] の側は 4-0 からそのまま引き継いでいる。撤去は総仕上げで行う。 */
.ps-input[readonly],
.ps-readonly {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding: 3px 6px;
  cursor: default;
}

/* ---- 無効: 灰の地 ＋ 点線の枠（★線の種類が違う） ------------------------ */
.ps-input:disabled,
.ps-input[disabled] {
  background: var(--c-btn-disabled);
  border: 1px dashed var(--c-border-strong);
  color: var(--c-btn-disabled-fg);
  cursor: not-allowed;
}

/* ---- エラー ------------------------------------------------------------- */
.ps-field.is-error .ps-input {
  background: var(--c-error-bg);
  border-color: var(--c-error);
}

/* ---- 密集した配置（2列組。KSP-002 の詳細情報パネルと同じ形） ------------ */
.ps-fieldgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

/* ---- カタログのページ枠 ------------------------------------------------- */
.ps-catalog { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px 16px; }
.ps-catalog h2 {
  font-size: var(--fs-base); margin: 18px 0 8px 0; padding: 5px 10px;
  background: var(--c-section-bg); color: var(--c-section-fg); font-weight: 500; border-radius: var(--r-sm);
}
.ps-catalog h2:first-child { margin-top: 0; }
.ps-catalog__note { font-size: var(--fs-small); color: var(--c-text-weak); margin: 0 0 8px 0; }
.ps-catalog__box { border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 10px 12px; margin-bottom: 6px; }
.ps-catalog__two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ps-catalog__cap { font-size: 11px; color: var(--c-text-weak); margin: 0 0 6px 0; }


/* =====================================================================
   4-0-3 レイアウト型のカタログで追加した部品
   正本: deliverables/screens/layout-types.md
   ★色はすべて CSS 変数を使う（値は §1。決定234 で刷新）
   ===================================================================== */

/* ---- 画面見出し（.ps-pagehead。★LT-2 / LT-3 が使う。LT-1 は持たない） ---
   ★決定234: 見出しは白い帯をやめ、地の上に文字だけ（下のパネルが白い面） */
.ps-pagehead {
  flex: 0 0 auto;
  display: flex; align-items: baseline; gap: 14px;
  padding: 14px calc(var(--w-gutter) + 8px) 0 calc(var(--w-gutter) + 8px);
  margin: 0;
  background: transparent;
}
.ps-pagehead__title { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: .02em; color: var(--c-text); }
.ps-pagehead__desc  { font-size: var(--fs-small); color: var(--c-text-weak); }
.ps-pagehead + .ps-main { padding-top: 10px; }

/* ---- ★決定152: プロジェクトコンテキストバーは廃止した ------------
   帯そのものは無くなったが、役割は消していない。
   「社内限定かどうか」は課題1件ごとに示す。★社内限定のときだけ、
   一覧では件名の直前に、右ペインでは件名の値の直前に、印（.ps-scope）を出す。
   ★社外可視のときは何も出さない。★色を1つも使わず、文字がそのまま値である。 */

/* ---- ペインの本文 ------------------------------------------------------
   ★スクロールの指定は 4-0-1 の .ps-timeline と同じ規則にまとめてある（§8）。
   ここでは余白だけを足す。★決定68 の min-height: 0 もそちらで効いている */
.ps-pane__body { margin-top: 4px; padding-top: 10px; padding-bottom: 14px; }

/* ---- 下端の操作行（KSP-002 の「Excel 出力」「ラベル発行」と同じ位置） -- */
.ps-actionbar {
  flex: 0 0 auto;
  display: flex; justify-content: flex-end; align-items: center; gap: 8px;
  flex-wrap: wrap;              /* ★右ペインを狭めても押せなくならない */
  padding: 10px 14px;
  border-top: 1px solid var(--c-line);
  background: var(--c-surface-2);
}
.ps-actionbar .ps-action,
.ps-actionbar .ps-excel { height: 34px; padding: 0 16px; font-size: 13px; }

/* ---- 区画見出し（KSP-002 の「検索フィルター」「結果リスト」の形。★決定234: 太字・藍の縦線・細い横罫） ------ */
.ps-section {
  display: flex; align-items: center; gap: 8px;
  margin: 18px 0 10px 0;
  font-size: var(--fs-base); font-weight: 700; letter-spacing: .03em; color: var(--c-text);
}
.ps-section:first-child { margin-top: 4px; }
/* ★中央ペインの区画見出し（検索フィルター／結果リスト。KSP-002 と同じ構成）:
   バーやリストの左右 padding 16px に合わせる */
.ps-center > .ps-section { margin: 12px 16px 4px 16px; }
.ps-center > .ps-section:first-child { margin-top: 12px; }
.ps-section::before { content: ""; flex: 0 0 3px; width: 3px; height: 13px; border-radius: 2px; background: var(--c-accent); }
.ps-section::after  { content: ""; flex: 1 1 auto; border-bottom: 1px solid var(--c-border); }

/* ---- マスタ一覧の表（LT-2 / LT-3 の一覧。★決定234: 1 行 36px・見出しは薄い地） ---- */
.ps-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13.5px; }
.ps-table th, .ps-table td {
  border-bottom: 1px solid var(--c-line-soft);
  padding: 0 10px; height: 36px; line-height: 21px;
  text-align: left; font-weight: normal; vertical-align: middle;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ps-table th:first-child, .ps-table td:first-child { padding-left: 16px; }
.ps-table th:last-child, .ps-table td:last-child { padding-right: 16px; }
.ps-table thead th {
  position: sticky; top: 0; z-index: 1;
  height: var(--h-listhead); line-height: 15px;
  background: var(--c-label-bg); color: var(--c-text-weak);
  font-size: 12px; font-weight: 500;
  border-bottom: 1px solid var(--c-line);
}
.ps-table tbody tr { cursor: pointer; }
.ps-table tbody tr:nth-child(even) { background: var(--c-row-zebra); }
.ps-table tbody tr:hover,
.ps-table tbody tr:nth-child(even):hover { background: var(--c-row-hover); }
.ps-table tbody tr.is-selected,
.ps-table tbody tr.is-selected:nth-child(even) { background: var(--c-row-selected); box-shadow: inset 3px 0 0 var(--c-accent); }
.ps-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.ps-table__marker { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--c-marker); opacity: .55; }
/* 右ペインの中に置く入れ子の表 */
.ps-table--sub th, .ps-table--sub td { height: 30px; font-size: var(--fs-small); }
.ps-table--sub th:first-child, .ps-table--sub td:first-child { padding-left: 10px; }
.ps-table--sub th:last-child, .ps-table--sub td:last-child { padding-right: 10px; }

/* ---- 列幅（table-layout: fixed の colgroup で使う） -------------------- */
.ps-c--mk  { width: 22px; }
.ps-c--xs  { width: 62px; }
.ps-c--sm  { width: 88px; }
.ps-c--md  { width: 132px; }
.ps-c--lg  { width: 190px; }
.ps-c--num { width: 96px; }
.ps-c--act { width: 150px; }

/* ---- 件数の表示（KSP-002 の「件数： 0」） ------------------------------ */
.ps-count { font-size: var(--fs-small); color: var(--c-text-weak); white-space: nowrap; }

/* ---- 注記（軸の定義など） --------------------------------------------- */
.ps-note { margin: 4px 0 0 0; font-size: 12px; color: var(--c-text-weak); }

/* ---- 表の行の中に置く小さい操作ボタン ---------------------------------- */
.ps-action--sm { min-width: 0; height: 26px; padding: 0 9px; gap: 5px; font-size: 12px; }

/* ---- コピーのボタン（決定136） -----------------------------------------
   中身はアイコン 1 つだけ。読むための面のあちこちに置くので、地も枠も持たず
   置いた場所になじませる。押すと 1.2 秒だけチェックに変わる（ps.js が is-done を付ける）。
   ★合図の色は新しく足さずアクセント（＝「操作できる」の色）を使う。 */
.ps-copy {
  border: none; background: none; margin: 0; padding: 4px;
  line-height: 0; cursor: pointer; color: var(--c-text-weak);
  border-radius: var(--r-sm);
}
.ps-copy:hover { color: var(--c-accent-ink); background: var(--c-row-hover); }
.ps-copy svg { width: 14px; height: 14px; display: block; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ps-copy--lg { padding: 6px; border-radius: var(--r-md); }   /* 右ペインの操作ボタンの列に置くとき */
.ps-copy--lg svg { width: 16px; height: 16px; }
.ps-copy.is-done, .ps-copy.is-done:hover { color: var(--c-accent); background: none; }
.ps-copy .ps-copy__ok { display: none; }
.ps-copy.is-done .ps-copy__i { display: none; }
.ps-copy.is-done .ps-copy__ok { display: block; }


/* =====================================================================
   4-0-3 で追加した部品
   正本: deliverables/screens/layout-types.md
   ★スクロールする領域を増やしていない。LT-2 の中央リストは .ps-list__wrap、
     右ペインの本文は .ps-pane__body（4-0-3 で定義済み）をそのまま使う。
   ===================================================================== */

/* ---- 単一ペイン（LT-3）の中で入力フォームを読める幅に収める -------------
   ★画面幅いっぱいに入力欄を伸ばさない。ラベルと値が離れすぎて対応が読めなくなる。
   幅だけの指定であり、配色にも寸法トークンにも触れない。 */
.ps-formcol { max-width: 780px; }

/* ---- LT-2 の右ペイン（選んだ1件の詳細・編集） --------------------------
   ★右ペインは 500px（可動域 420〜900）。ラベル列を少しだけ詰める。
   ★LT-1 の右ペイン（課題の内容）と同じ .ps-right を使う。骨格は共通で、
     中に入るものが「課題の内容」か「選んだ1件の詳細・編集」かだけが違う。 */
.ps-right .ps-field__label { flex: 0 0 92px; }

/* ---- 別の画面へ進むための区画（管理画面どうしをつなぐ） ----------------
   ★決定136: 進む先を並べる場所であり、入力欄を置かない。
   ★狭い右ペインでも読めるよう、説明は名前とボタンの下の行へ折り返す */
.ps-gotolist { list-style: none; margin: 0; padding: 0; }
.ps-gotolist li {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 8px 0; border-bottom: 1px solid var(--c-border);
}
.ps-gotolist .ps-gotolist__name { flex: 1 1 auto; font-size: var(--fs-base); }
.ps-gotolist .ps-gotolist__desc { flex: 1 1 100%; font-size: 12px; color: var(--c-text-weak); }


/* =====================================================================
   Phase 5 / 5-0-2 で追加した部品
   正本: deliverables/screen-design/format.md ／ common.md
   ===================================================================== */

/* ---- ブランド資産（運用226・227。★決定234: ヘッダーのロゴは CSS の文字で描く＝上の .ps-brand。
   ★決定239（29-3c）: ログイン画面（_LayoutAuth）のロゴの字も同じ .wm。PS のマーク（ログイン画面）と favicon は /brand/ の SVG のまま） ---- */

/* ---- hidden を確実に効かせる --------------------------------------------
   ★.ps-nav などクラスで display を指定した要素は、
     そのままでは hidden 属性が効かない。出し分けは hidden で表すため徹底する。 */
[hidden] { display: none !important; }

/* ---- ★読み取り専用の値（format.md §7 ／ 決定229） -----------------------
   ★読み取り専用の値は <input readonly> で描かない。値を出すだけの要素で描く。
     ①入力欄の形だと「編集できそう」に見え、決定110 の3状態の区別が弱まる
     ②<input> は置換要素であり、値が空のときに印を描き足せない
   ★下の .ps-input[readonly] / .ps-readonly の規則は 4-0 から引き継いだものである。
     読み取り専用に使うのは .ps-readonly（非置換要素）だけとする。

   ★値が空のとき — 地も線も足さない（決定110 を変えない）。値の位置に
     ダッシュを1文字描くだけ。文字は CSS で描き、要素の textContent は空のままにする。
     ブラウザ操作テストは「id の要素が在る」＋「文字が空」で値なしを判定でき、
     ダッシュを値と読み違えない。 */
.ps-readonly.is-empty::after,
.ps-attrs td.is-empty::after,
.ps-table td.is-empty::after {
  content: "\2014";
  color: var(--c-faint);
}

/* ---- LT-4 中央カード型 --------------------------------------------------
   ①認証の姿は地が --c-auth-bg（5-7 で使う）。②システムの姿は通常の地。
   ★カードが縦に溢れないことを設計の条件とする（スクロール領域を持たない）。 */
.ps-lt4 {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}
.ps-lt4--auth { background: transparent; }   /* ★決定234: 地は body の空の色 */
.ps-card {
  width: 100%;
  max-width: 520px;
  background: var(--c-pane-bg);
  /* ★決定234: 枠は薄い線・角丸 16px・影（KSP の藍の枠をやめた） */
  border: 1px solid var(--c-line);
  border-radius: 16px;
  box-shadow: var(--sh-panel);
  padding: 26px 30px;
}
.ps-card--wide { max-width: 720px; }
.ps-card__title {
  margin: 0 0 12px 0;
  font-size: 18px; font-weight: 500; color: var(--c-text);
}
.ps-card__message { margin: 0; font-size: var(--fs-base); line-height: 1.7; }
.ps-card__ref {
  margin-top: 16px; padding-top: 10px;
  border-top: 1px solid var(--c-border);
  display: flex; align-items: baseline; gap: 10px;
}
.ps-card__ref .ps-card__reflabel { font-size: var(--fs-small); color: var(--c-text-weak); }
.ps-card__ref .ps-card__refvalue { font-size: var(--fs-base); letter-spacing: .08em; }
.ps-card__guide { margin: 14px 0 0 0; font-size: var(--fs-small); color: var(--c-text-weak); }

/* ---- モーダルの骨格（format.md §6.1） ----------------------------------
   ★LT-3 の①フォームをそのままモーダルの中に入れた形である。
   ★題と下端の確定行は固定。溢れる分は本文の中だけがスクロールする。
   ★背後の画面はスクロールしない（決定68）。URL を持たない（決定108）。 */
.ps-modal {
  position: fixed; inset: 0;
  background: var(--c-modal-veil);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  z-index: 100;
}
.ps-modal[hidden] { display: none; }
/* ★決定234: 角丸 16px と影で「重なった別の面」をひと目で分かるように（P001 決定232 ③の「影を落とさない」を改めた） */
.ps-modal__box {
  display: flex; flex-direction: column;
  width: 100%;
  max-height: calc(100vh - 64px);
  background: var(--c-pane-bg);
  border: 0;
  border-radius: 16px;
  box-shadow: var(--sh-pop);
  overflow: hidden;
  animation: ps-pop .16s ease-out;
}
@keyframes ps-pop { from { opacity: 0; transform: translateY(6px) scale(.985); } }
.ps-modal--sm .ps-modal__box { max-width: 480px; }
.ps-modal--lg .ps-modal__box { max-width: 900px; }

.ps-modal__head {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 14px 13px 24px;
  border-bottom: 1px solid var(--c-border);
}
.ps-modal__title { flex: 1 1 auto; margin: 0; font-size: 16px; font-weight: 500; letter-spacing: .02em; }
.ps-modal__close {
  flex: 0 0 auto;
  width: 30px; height: 30px; padding: 0;
  background: none; border: 1px solid transparent;
  color: var(--c-text-weak); font: inherit; font-size: 18px; line-height: 1;
  border-radius: var(--r-md);
  cursor: pointer;
}
.ps-modal__close:hover { background: var(--c-accent-softer); color: var(--c-accent-ink); }

/* ★本文だけがスクロールする（format.md §6.1） */
.ps-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 24px;
  font-size: var(--fs-base);
  line-height: 1.7;
}
.ps-modal__target {
  display: block;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: var(--c-label-bg);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  font-weight: 500;
}
.ps-modal__foot {
  flex: 0 0 auto;
  display: flex; justify-content: flex-end; align-items: center; gap: 8px;
  padding: 12px 16px 12px 24px;
  border-top: 1px solid var(--c-border);
  background: var(--c-surface-2);
}
.ps-modal__foot .ps-action { height: 36px; padding: 0 16px; font-size: 13px; }

/* ---- 送信中の覆い（PRG-01。決定138） -----------------------------------
   大きい添付を送っているあいだだけ出る。モーダル（z-index 100）より上に置き、
   ①どこまで送れたかを見せる ②送り終わるまで操作を通さない（二重送信を止める）
   の 2 つを 1 枚で受け持つ。DOM は ps.js が必要になったときに 1 度だけ作る。 */
.ps-upload {
  position: fixed; inset: 0;
  background: var(--c-modal-veil);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  z-index: 200;
}
.ps-upload[hidden] { display: none; }
.ps-upload__box {
  width: 100%; max-width: 420px;
  padding: 18px 22px;
  background: var(--c-pane-bg);
  border-radius: 16px;
  box-shadow: var(--sh-pop);
}
.ps-upload__title { font-size: 15px; font-weight: 500; }
.ps-upload__bar {
  height: 6px; margin: 12px 0 8px 0;
  background: var(--c-line);
  border-radius: 3px;
  overflow: hidden;
}
.ps-upload__fill { height: 100%; width: 0; background: var(--c-accent); transition: width .15s linear; }
.ps-upload__text { font-size: var(--fs-small); color: var(--c-text-weak); }
.ps-upload__note { margin: 8px 0 0 0; font-size: 11.5px; color: var(--c-text-weak); }

/* =====================================================================
   Phase 5 / 5-1 で追加した分（課題一覧 SC-ISU-01 の画面本体）
   正本: deliverables/screen-design/issue-list.md
   ===================================================================== */

/* ---- ①フィルターの帯の中で、余りをキーワード欄が吸収する --------
   ★中央ペインは 560px まで狭くなる。ボタン・札は縮めず、キーワード欄が縮む（下限 110px）。
   ★決定234: 欄のもとの幅は 160px — 折り返すかどうかは縮む前の幅で決まるので、大きいと iPad の横で札が次の行へ落ちた */
.ps-center__bar .ps-search { flex: 1 1 160px; min-width: 0; }
.ps-center__bar .ps-search input[type="search"] { width: 100%; flex: 1 1 auto; min-width: 110px; }
.ps-center__bar .ps-toggles { flex: 0 0 auto; gap: 18px; }

/* ---- ②一覧のバー -----------------------------------------------
   詳細な条件 ／ 保存した検索条件 ／ 保存 ／ 件数 ／ 並び ／ 課題を登録 */
.ps-listbar {
  flex: 0 0 auto;
  min-height: 44px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px 10px 16px;
}
.ps-listbar__sep { flex: 0 0 1px; width: 1px; height: 20px; margin: 0 4px; background: var(--c-line); }
.ps-listbar select.ps-input { flex: 1 1 auto; min-width: 90px; max-width: 180px; height: 30px; min-height: 30px; padding-top: 0; padding-bottom: 0; }
.ps-listbar .ps-count { flex: 0 0 auto; margin-left: 8px; }
.ps-listbar .ps-toggle__axis { flex: 0 0 auto; }
.ps-listbar .ps-excel { margin-left: auto; }
.ps-listbar .ps-field__error:empty { display: none; }   /* 空のときは隙間も取らない */

/* ---- ★決定221（PSTUD-49 ⑤）: 狭いときに帯をつぶさない・あふれさせない -------------------------
   ボタンは縮めない・折り返さない（「詳細な条件」が縦に折れて列の見出しに重なっていた）。縮むのはキーワード欄と、一覧のバーの 2 つの選択だけ */
.ps-center__bar .ps-toggle,
.ps-listbar > .ps-toggle, .ps-listbar > .ps-action, .ps-listbar > .ps-excel { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 1599px) {
  .ps-center__bar { gap: 10px; }
  .ps-center__bar .ps-toggles { gap: 10px; }
  .ps-center__bar .ps-toggle { padding: 0 9px; min-width: 0; }
  .ps-listbar select.ps-input, .ps-listbar .ps-sort select { min-width: 70px; }
  .ps-listbar > .ps-action { min-width: 0; }
}
/* ★29-2（見本の §10）: 640 → 760px。一覧（LT-1 の中央）そのものが 760px より狭いときは、帯の見出し（優先度・状態・親子／範囲／期間・更新の種類）を隠して
   キーワード欄の幅を残す。見出しは読み上げの名前（aria-labelledby）としては残る。★実績の列（ps-app.css）も同じ器で決める */
.ps-main[data-ps-leftfold] > .ps-center { container-type: inline-size; }
@container (width < 760px) {
  .ps-center__bar .ps-toggle__axis { display: none; }
}
/* ★決定234（手本の §17）: 一覧が 700px より狭いとき（iPad の横で左ペインを畳んだとき）は、区切り線と「並び」の文字を隠して詰める
   （「並び」は読み上げの名前としては残す）。保存した検索条件の欄も狭めて、帯とバーをそれぞれ 1 段に収める */
@container (width < 700px) {
  .ps-center__bar { gap: 8px; padding: 10px 12px 8px 12px; }
  .ps-listbar { gap: 6px; padding: 0 12px 10px 12px; }
  .ps-listbar__sep { display: none; }
  .ps-listbar .ps-sort__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ps-listbar select.ps-input.ps-savedcond { flex: 1 1 100px; min-width: 90px; }
  /* ★29-2: 状態の札に点が付いた分、キーワード欄のもとの幅を 120px に（見本の 1180 と同じく、帯を 1 段に収める。欄は残りの幅まで伸びる） */
  .ps-center__bar .ps-search { flex-basis: 120px; }
  /* キーワード欄の中の余白も詰める（186px の欄で「キーワード／課題番号」の薄い字が 1 字切れていた＝Quinn 29-1 の気づき ⑧） */
  .ps-center__bar .ps-search input[type="search"] { padding-left: 30px; padding-right: 38px; }
  .ps-center__bar .ps-search::before { left: 9px; }
}
/* ★決定234（手本の §17）: それでも入らないとき（左ペインを開いたままの iPad など）は、つぶさずに次の行へ折る。
   見本のままだと、iPad の横で「完了」が切れ「最上位だけ」「課題を登録」が一覧の外に出ていた（ページはスクロールしない＝決定68） */
.ps-center__bar, .ps-listbar, .ps-center__bar .ps-toggles { flex-wrap: wrap; row-gap: 8px; }

/* ---- 「詳細な条件」の折りたたみ（開いたとき 112px） ----------------------
   ★軸7〜11（filter-design.md §1.3）を3行に収める。 */
.ps-cond {
  flex: 0 0 auto;
  margin: 0 16px 12px;
  padding: 10px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface-2);
}
.ps-cond[hidden] { display: none; }
.ps-cond__row {
  display: flex; align-items: center; gap: 6px;
  min-height: 28px; margin-bottom: 8px;
  flex-wrap: nowrap; overflow: hidden;
}
.ps-cond__row:last-child { margin-bottom: 0; }
.ps-cond__axis {
  flex: 0 0 auto;
  font-size: var(--fs-small); color: var(--c-text-weak); white-space: nowrap;
}
.ps-cond__row .ps-input { flex: 0 1 150px; min-width: 80px; min-height: 28px; padding-top: 2px; padding-bottom: 2px; }
.ps-cond__gap { flex: 0 0 14px; }

/* ---- 左ペイン：同姓同名の候補にだけ添えるメールアドレス -----------------
   ★区別に使うのはメールアドレスであり、所属組織ではない（INV-5・決定139）。
   ★同姓同名でない候補には出さない。 */
.ps-filter__mail {
  display: block;
  margin: -2px 0 3px 33px;
  font-size: 11px; line-height: 14px;
  color: var(--c-text-weak);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---- 一覧：プロジェクト列を隠したとき（決定106） ------------------------
   ★隠した列の幅（84px）と列間（10px）は件名がすべて吸収する
     （layout-standard.md §4.4 規則4）。 */
.ps-center.is-nopro .ps-row,
.ps-center.is-nopro .ps-list__head {
  grid-template-columns: 14px 92px minmax(0, 1fr) 26px 36px;
  grid-template-areas: "m n t a s";
}
.ps-center.is-nopro .ps-row__project { display: none; }

/* ---- 一覧：自分の順序のときだけドラッグできる（FN-REF-22） -------------- */
.ps-list.is-sortable .ps-row { cursor: grab; }

/* ---- 0件のとき／何も選ばれていないとき ---------------------------------- */
.ps-list__empty,
.ps-right__empty {
  padding: 20px 16px;
  font-size: var(--fs-base);
  color: var(--c-text-weak);
}
/* ★29-2（決定236・手本）: 空のときは点線の弧と朱の鞠の小さな絵（文は今のまま） */
.ps-list__empty, .ps-right__empty { margin: 0; padding: 56px 20px 20px; text-align: center; }
.ps-list__empty::before, .ps-right__empty::before {
  content: ""; display: block; width: 150px; height: 64px; margin: 0 auto 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 64'%3E%3Cpath d='M6 60 C 40 4, 102 -4, 128 30' fill='none' stroke='%23b9c9d8' stroke-width='2' stroke-linecap='round' stroke-dasharray='0.5 7'/%3E%3Ccircle cx='134' cy='39' r='7' fill='%23eb6101'/%3E%3C/svg%3E") no-repeat center / contain;
}
.ps-right__empty { flex: 1 1 auto; min-height: 0; }

/* ---- 右ペイン：状態のセルの色（Status バッジの3色。色域を侵さない）。★決定234: 薄い地に濃い字 ----- */
.ps-attrs td.is-status--active   { background: var(--c-active-bg);   color: var(--c-active-fg);   font-weight: 500; }
.ps-attrs td.is-status--resolved { background: var(--c-resolved-bg); color: var(--c-resolved-fg); font-weight: 500; }
.ps-attrs td.is-status--closed   { background: var(--c-closed-bg);   color: var(--c-closed-fg);   font-weight: 500; }

/* ---- 右ペイン：時系列の3種（詳細／コメント／変更だけの記録） ------------
   ★詳細（Description）は課題の属性であり、コメントではない（決定37）。
     見え方だけを時系列の先頭に置く。 */
.ps-post--desc { border-top: none; }
.ps-post__label {
  display: inline-block;
  margin-bottom: 6px;
  padding: 0 7px;
  border: 1px solid var(--c-border);
  border-radius: 5px;
  background: var(--c-label-bg);
  color: var(--c-ink-2);
  font-size: 11.5px; line-height: 18px;
}
/* ★添付は親の種類（課題本体／コメント）で見せ方を分けない */
.ps-post__files { margin: 6px 0 0 0; padding: 0; list-style: none; }
.ps-post__files li { font-size: var(--fs-small); line-height: 20px; }
.ps-post__files a { color: var(--c-link); }
.ps-post--change .ps-post__body { display: none; }

/* ---- 動きを減らす設定の人には、揺れ・浮き上がりを出さない ---------------- */
@media (prefers-reduced-motion: reduce) {
  .ps-brand:hover .wm-ball, .ps-modal__box { animation: none; }
}

/* ---- モックアップの状態切り替え（設計そのものではない） -----------------
   ★接頭辞 demo- の id を持つ。画面の一部ではない。 */
.ps-demo__switch {
  position: fixed; left: 8px; bottom: 34px; z-index: 50;
  display: flex; flex-direction: column; gap: 3px;
  padding: 6px 8px;
  background: var(--c-pane-bg);
  border: 1px dashed var(--c-border-strong);
}
.ps-demo__switch .ps-demo__cap { margin: 0 0 2px 0; }

/* ---- モックアップの説明用（設計そのものではない） ----------------------
   ★画面の一部ではない。5-0-2 の実物を並べて見るための枠だけに使う。 */
.ps-demo { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px 16px; }
.ps-demo 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: normal;
}
.ps-demo h2:first-child { margin-top: 0; }
.ps-demo__note { font-size: var(--fs-small); color: var(--c-text-weak); margin: 0 0 8px 0; }
.ps-demo__box { border: 1px solid var(--c-border); padding: 10px 12px; margin-bottom: 10px; }
.ps-demo__cap { font-size: 11px; color: var(--c-text-weak); margin: 0 0 6px 0; }
.ps-demo__frame { border: 1px dashed var(--c-border-strong); }
