    /* v6.8.9: 部署管理ページ独立化（/kansei/departments.html 専用 CSS）
       v6.8.10: コントロールカード + <div> グリッド化（v6.8.1 sites / v6.8.6 customers / v6.8.2 / v6.8.7 と同パターン）
       settings.css から部署管理関連スタイルを重複コピー（独立性最優先、共通化は将来検討）
       settings.css 側のスタイルは無変更で残置（他タブで参照されている可能性に配慮、最小変更原則） */

    /* v6.8.9 / v6.8.10: ページ全体レイアウト（max-width 1300px、左右 2 ペイン: データカード + 追加フォーム） */
    .container.gs-page { max-width: 1300px; }

    .dept-page-layout {
      display: grid;
      grid-template-columns: 1fr 320px;
      gap: 20px;
      align-items: start;
    }
    @media (max-width: 1000px) {
      .dept-page-layout { grid-template-columns: 1fr; }
    }

    .dept-list-card { padding: 0; }   /* v6.8.10: data-card に統合、内部の .data-table が枠を担当 */
    .dept-form-card { padding: 20px 24px; }

    /* v6.8.10: コントロールカード（v6.8.1 sites / v6.8.6 customers と同パターン） */
    .control-card {
      background: var(--color-surface, #ffffff);
      border: 1px solid var(--color-border, rgba(60,64,67,.14));
      border-radius: 20px;
      padding: 16px 20px;
      margin-bottom: 16px;
      box-shadow: var(--shadow-1, 0 1px 2px rgba(60,64,67,.12), 0 1px 3px 1px rgba(60,64,67,.08));
    }
    .control-row {
      display: flex;
      gap: 10px;
      align-items: center;
      flex-wrap: wrap;
    }

    /* 検索フィールド（虫眼鏡アイコン入りピル型、v6.8.1 sites からコピー） */
    .search-field {
      position: relative;
      flex: 1;
      min-width: 200px;
    }
    .search-icon {
      position: absolute;
      left: 16px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--color-text-faint, #80868b);
      pointer-events: none;
    }
    .search-input {
      width: 100%;
      height: 44px;
      padding: 0 18px 0 42px;
      border: 1px solid var(--color-border, rgba(60,64,67,.14));
      border-radius: 9999px;
      background: var(--color-surface, #ffffff);
      color: var(--color-text, #202124);
      font-size: 13px;
      font-family: inherit;
      outline: none;
      transition: border-color 180ms, box-shadow 180ms;
    }
    .search-input:focus {
      border-color: var(--color-primary, #1a73e8);
      box-shadow: 0 0 0 3px var(--color-primary-soft, rgba(26,115,232,.10));
    }
    .search-input::placeholder { color: var(--color-text-faint, #80868b); }

    /* コントロールバー内ボタン（共通 .gs-btn-pill 44px に揃える + アイコン余白） */
    .control-btn { gap: 6px !important; }
    .control-btn svg { flex-shrink: 0; }

    /* 「廃止を含める」ラベル + トグルセル（v6.8.1 sites と同パターン、最初のトグルだけ margin-left:auto で右寄せ） */
    .toggle-with-label {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 0 12px;
      height: 44px;
    }
    .toggle-with-label:first-of-type {
      /* v6.8.11: 「廃止を含める」を検索フィールドの右に寄せる、後続トグルは続けて並ぶ */
      margin-left: auto;
    }
    /* v6.8.11: 「退職・一時停止を表示」トグルは前トグルの直右、margin-left なし */
    .toggle-with-label.toggle-secondary { margin-left: 0; }
    .toggle-with-label .label-text {
      font-size: 13px;
      color: var(--color-text-muted, #5f6368);
      cursor: pointer;
      user-select: none;
    }

    /* v6.8.10: テーブルカード（コントロールカードと分離、v6.8.1 sites と同パターン） */
    .data-card {
      background: var(--color-surface, #ffffff);
      border: 1px solid var(--color-border, rgba(60,64,67,.14));
      border-radius: 20px;
      box-shadow: var(--shadow-1, 0 1px 2px rgba(60,64,67,.12), 0 1px 3px 1px rgba(60,64,67,.08));
      overflow: hidden;
    }
    .dept-count-info {
      padding: 10px 20px;
      font-size: 12px;
      color: var(--color-text-muted, #5f6368);
      border-top: 1px solid var(--color-divider, rgba(60,64,67,.10));
    }

    /* v6.8.10 / v6.8.11: データテーブル（<table> → <div> グリッド、v6.8.2 sites / v6.8.7 customers と同パターン）
       v6.8.11 列構成変更: 表示順 90px / 部署名+責任者 1fr / 所属人数 100px / 作成日 110px / 状態 90px / 操作 110px
       （v6.8.10 の「責任者」独立列を撤廃して「部署名 + 責任者」2 段表示 + 「状態」バッジ列を新設） */
    .data-table {
      --grid-cols: 90px minmax(0, 1fr) 100px 110px 90px 110px;
      width: 100%;
    }
    .data-table-header {
      display: grid;
      grid-template-columns: var(--grid-cols);
      gap: 12px;
      padding: 12px 20px;
      background: var(--color-surface-2, #f8fafd);
      border-bottom: 1px solid var(--color-divider, rgba(60,64,67,.10));
      font-size: 12px;
      font-weight: 500;
      color: var(--color-text-muted, #5f6368);
      letter-spacing: .02em;
      align-items: center;
    }
    .data-table-body { background: var(--color-surface, #ffffff); }

    .data-row {
      display: grid;
      grid-template-columns: var(--grid-cols);
      gap: 12px;
      padding: 12px 20px;
      border-bottom: 1px solid var(--color-divider, rgba(60,64,67,.10));
      align-items: center;
      font-size: 13px;
      color: var(--color-text, #202124);
      transition: background 180ms cubic-bezier(.2,0,0,1);
    }
    .data-row:last-child { border-bottom: none; }
    .data-row:hover { background: var(--color-surface-2, #f8fafd); }

    /* セル整形 */
    .col-num { text-align: center; }
    .col-status { display: flex; align-items: center; justify-content: center; }
    .col-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
    .cell-base {
      color: var(--color-text-muted, #5f6368);
      font-size: 13px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .cell-faint {
      color: var(--color-text-faint, #80868b);
      font-size: 13px;
    }
    .cell-dept {
      display: flex;
      align-items: center;
      gap: 4px;
      min-width: 0;
    }
    /* v6.8.11: 2 段表示テンプレート（部署名 + 責任者を縦階層化） */
    .cell-stack {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }
    .cell-stack .cell-primary {
      color: var(--color-text, #202124);
      font-size: 13px;
      font-weight: 500;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .cell-stack .cell-secondary {
      font-size: 11px;
      color: var(--color-text-faint, #80868b);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .cell-stack .cell-secondary.cell-faint {
      font-style: italic;
    }
    .dept-indent {
      color: var(--color-text-faint, #80868b);
      font-size: 13px;
      user-select: none;
      flex-shrink: 0;
      align-self: flex-start;
      margin-top: 1px;
    }
    .member-count {
      color: var(--color-text, #202124);
      font-variant-numeric: tabular-nums;
      font-weight: 500;
      font-size: 13px;
    }
    .member-count-unit {
      color: var(--color-text-faint, #80868b);
      font-size: 11px;
      margin-left: 2px;
    }

    /* v6.8.11: ステータスバッジ（DESIGN.md §0-2「色はドット」原則・薄背景 + ドットで強調） */
    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 3px 10px 3px 8px;
      border-radius: 9999px;
      font-size: 11px;
      font-weight: 500;
      line-height: 1;
    }
    .status-badge.active   { background: var(--color-green-soft, rgba(24,128,56,.10)); color: #137333; }
    .status-badge.archived { background: rgba(95,99,104,.10); color: #5f6368; }
    .status-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      flex-shrink: 0;
    }
    .status-dot.green { background: #188038; }
    .status-dot.gray  { background: #80868b; }

    /* 空 / ローディング / エラー行 */
    .data-row-empty {
      padding: 28px 20px;
      text-align: center;
      color: var(--color-text-muted, #5f6368);
      font-size: 13px;
    }

    /* v6.8.10: 編集ピル + 削除テキストボタン（操作列専用 30px ピル）
       v6.8.11 で削除ボタンの円形アイコン化を実装予定 */
    .btn-edit-pill {
      height: 30px;
      padding: 0 14px;
      border-radius: 9999px;
      border: 1px solid var(--color-border, rgba(60,64,67,.14));
      background: var(--color-surface, #fff);
      color: var(--color-text, #202124);
      font-size: 12px;
      font-weight: 500;
      font-family: inherit;
      cursor: pointer;
      transition: background 150ms, border-color 150ms;
    }
    .btn-edit-pill:hover {
      background: var(--color-surface-2, #f8fafd);
      border-color: var(--color-text-muted, #5f6368);
    }
    /* v6.8.11: .btn-danger-text を撤去 → .btn-delete-icon (円形ゴミ箱、v6.8.0 sites と同パターン) に置換 */
    .btn-delete-icon {
      width: 32px; height: 32px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      border: 1px solid rgba(217, 48, 37, 0.30);
      background: var(--color-surface, #fff);
      color: #d93025;
      cursor: pointer;
      padding: 0;
      transition: background 150ms, border-color 150ms;
    }
    .btn-delete-icon:hover {
      background: rgba(217, 48, 37, 0.08);
      border-color: rgba(217, 48, 37, 0.55);
    }
    .btn-delete-icon:focus-visible {
      outline: 2px solid #d93025;
      outline-offset: 2px;
    }
    .btn-delete-icon svg { width: 16px; height: 16px; display: block; }

    /* ===== フォーム要素（settings.css から重複コピー） ===== */
    .form-group { margin-bottom: 16px; }
    .form-group label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      color: var(--gray-600);
      margin-bottom: 6px;
    }
    .form-group input[type="text"],
    .form-group select {
      width: 100%;
      padding: 8px 12px;
      font-size: 14px;
      font-family: inherit;
      border: 1.5px solid var(--gray-200);
      border-radius: var(--radius-sm);
      background: #fff;
      color: var(--gray-800);
    }
    .form-group input[type="text"]:focus,
    .form-group select:focus {
      outline: none;
      border-color: var(--navy);
      box-shadow: 0 0 0 3px rgba(26,58,92,0.12);
    }
    .error-message {
      color: var(--danger);
      font-size: 13px;
      margin: 8px 0;
    }

    /* v6.8.10: 旧 .btn-edit / .btn-delete (紺色 / 赤ベタ塗り) を撤去
       新スタイル .btn-edit-pill / .btn-danger-text （30px ピル型）に置き換え */

    /* ===== v6.6.6 廃止バッジ + 廃止行グレーアウト（settings.css から重複コピー） =====
       v6.8.10: <tr.dept-list-row> → <div.data-row.dept-list-row> に変更したが、クラス名は維持で動作 */
    .data-row.dept-list-row.is-archived,
    .dept-list-row.is-archived { opacity: 0.55; }
    .data-row.dept-list-row.is-archived:hover,
    .dept-list-row.is-archived:hover { opacity: 0.8; }
    .badge-archived {
      display: inline-block;
      padding: 1px 8px;
      border-radius: 9999px;
      background: #eceff1;
      color: #5f6368;
      font-size: 11px;
      font-weight: 600;
      margin-left: 8px;
      letter-spacing: 0.02em;
    }
    .visibility-check {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      user-select: none;
      white-space: nowrap;
    }
    .visibility-check input[type="checkbox"] {
      width: 15px;
      height: 15px;
      margin: 0;
      accent-color: var(--color-primary, #1a73e8);
      cursor: pointer;
    }

    /* ===== 部署編集モーダル（settings.css から重複コピー） ===== */
    .dept-modal-overlay {
      position: fixed; top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.5);
      display: flex; align-items: center; justify-content: center;
      z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.25s;
    }
    .dept-modal-overlay.active { opacity: 1; pointer-events: auto; }
    .dept-modal {
      background: #fff; border-radius: 12px; padding: 28px 24px;
      width: 90%; max-width: 420px; box-shadow: var(--shadow-lg);
      transform: translateY(20px); transition: transform 0.25s;
    }
    .dept-modal-overlay.active .dept-modal { transform: translateY(0); }
    .dept-modal h3 {
      margin: 0 0 16px;
      font-size: 16px;
      font-weight: 700;
      color: var(--navy-dark);
    }
    .dept-modal-actions {
      display: flex;
      gap: 8px;
      justify-content: flex-end;
      margin-top: 16px;
    }

    /* ===== 確認モーダル（settings.css から重複コピー） ===== */
    .confirm-overlay {
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.55);
      display: flex; align-items: center; justify-content: center;
      z-index: 250; opacity: 0; pointer-events: none; transition: opacity 0.25s;
    }
    .confirm-overlay.active { opacity: 1; pointer-events: auto; }
    .confirm-box {
      background: #fff; border-radius: 12px; padding: 28px 24px;
      width: 90%; max-width: 420px; box-shadow: var(--shadow-lg);
      transform: translateY(20px); transition: transform 0.25s;
    }
    .confirm-overlay.active .confirm-box { transform: translateY(0); }
    .confirm-title {
      font-size: 16px; font-weight: 700; color: var(--navy-dark);
      margin: 0 0 12px;
    }
    .confirm-body {
      font-size: 14px; color: var(--gray-600); line-height: 1.6;
      margin-bottom: 20px;
      white-space: pre-wrap;
    }
    .confirm-actions {
      display: flex; gap: 8px; justify-content: flex-end;
    }
    .confirm-actions .btn-confirm-cancel {
      padding: 8px 20px; border: 1px solid var(--gray-300);
      background: #fff; color: var(--gray-600); border-radius: 6px;
      font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
    }
    .confirm-actions .btn-confirm-cancel:hover { background: var(--gray-100); }
    .confirm-actions .btn-confirm-ok {
      padding: 8px 20px; border: none;
      color: #fff; border-radius: 6px;
      font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
    }
    .confirm-actions .btn-confirm-ok.blue { background: var(--navy); }
    .confirm-actions .btn-confirm-ok.blue:hover { opacity: 0.9; }
    .confirm-actions .btn-confirm-ok.orange { background: #e67e22; }
    .confirm-actions .btn-confirm-ok.orange:hover { opacity: 0.9; }
    .confirm-actions .btn-confirm-ok.red { background: var(--danger); }
    .confirm-actions .btn-confirm-ok.red:hover { opacity: 0.9; }

    /* ===== トースト（settings.css から重複コピー） ===== */
    .toast {
      position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
      background: var(--navy-dark); color: #fff;
      padding: 12px 24px; border-radius: 40px;
      font-size: 14px; font-weight: 500;
      box-shadow: var(--shadow-md); z-index: 300;
      opacity: 0; transition: opacity 0.3s; pointer-events: none;
    }
    .toast.show { opacity: 1; }
    .toast.error { background: var(--danger); }

    /* ===== v6.8.8 D&D 並び替えスタイル（v6.8.10 で <div> グリッド対応に変更） ===== */
    .data-row.dept-list-row,
    .dept-list-row { transition: background 180ms; }
    /* ドラッグ中: 半透明 + サーフェス背景 */
    .data-row.dept-list-row.dragging,
    .dept-list-row.dragging {
      opacity: 0.4;
      background: var(--color-surface-2, #f8fafd);
    }
    /* ドロップ先: 上端に primary ライン（v6.8.10 で <td> セレクタ → 行自体の box-shadow に変更） */
    .data-row.dept-list-row.drag-over,
    .dept-list-row.drag-over {
      box-shadow: inset 0 2px 0 0 var(--color-primary, #1a73e8);
    }
    /* 表示順セル（ドラッグハンドル + 数値の横並び） */
    .cell-dept-order {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--color-text-muted, #5f6368);
      font-variant-numeric: tabular-nums;
    }
    .drag-handle {
      cursor: grab;
      color: var(--color-text-faint, #80868b);
      font-size: 16px;
      line-height: 1;
      user-select: none;
      letter-spacing: -2px;
    }
    .drag-handle:active { cursor: grabbing; }
    .order-number {
      min-width: 24px;
      text-align: center;
      font-size: 13px;
      font-weight: 500;
    }
    /* v6.8.10: display_order 未設定の薄色表示 */
    .order-number.order-unset {
      color: var(--color-text-faint, #80868b);
      font-weight: normal;
    }

    /* ===== v6.8.10: トグルスイッチ（v6.8.9 で追加・無変更で再利用） =====
       コントロールカード内の「廃止を含める」用、DESIGN.md §2-8 標準実装 */
    .toggle-switch {
      position: relative;
      width: 36px;
      height: 20px;
      display: inline-block;
      flex-shrink: 0;
      cursor: pointer;
    }
    .toggle-switch input { opacity: 0; width: 0; height: 0; }
    .toggle-slider {
      position: absolute;
      inset: 0;
      background: var(--gray-300, #c7c9cc);
      border-radius: 9999px;
      transition: background 180ms;
    }
    .toggle-slider::before {
      content: '';
      position: absolute;
      width: 16px; height: 16px;
      left: 2px; bottom: 2px;
      background: #fff;
      border-radius: 50%;
      transition: transform 180ms;
      box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    }
    .toggle-switch input:checked + .toggle-slider { background: var(--color-primary, #1a73e8); }
    .toggle-switch input:checked + .toggle-slider::before { transform: translateX(16px); }
    .toggle-switch input:focus-visible + .toggle-slider {
      outline: 2px solid var(--color-primary, #1a73e8);
      outline-offset: 2px;
    }

    /* v6.8.10 / v6.8.11: モバイル対応（v6.8.11 で 6 列構成変更に伴って列幅も調整） */
    @media (max-width: 1100px) {
      .data-table {
        --grid-cols: 80px minmax(0, 1fr) 80px 90px 80px 90px;
      }
      .data-table-header,
      .data-row {
        gap: 8px;
        padding: 12px 16px;
      }
    }
    @media (max-width: 600px) {
      .toggle-with-label,
      .toggle-with-label:first-of-type { margin-left: 0; }
      .search-field { min-width: 100%; }
    }
