        /* 管理画面スタイル */
        /* スクロールバーを全体的に細く控えめに（アプリ側と統一） */
        * { scrollbar-width: thin; scrollbar-color: rgba(25, 68, 142, 0.25) transparent; }
        *::-webkit-scrollbar { width: 6px; height: 6px; }
        *::-webkit-scrollbar-track { background: transparent; }
        *::-webkit-scrollbar-thumb { background-color: rgba(25, 68, 142, 0.25); border-radius: 3px; }
        body { background-color: #f5f5f7; color: #1d1d1f; margin: 0; }
        .admin-container { max-width: 960px; margin: 0 auto; padding: 20px; }
        .admin-card { background: white; border-radius: 12px; padding: 24px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); margin-bottom: 20px; }
        .admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
        .admin-account-label { font-size: 0.85em; color: #666; }

        /* タブナビゲーション */
        .tab-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; background: #e5e5ea; padding: 4px; border-radius: 10px; }
        .tab-btn { flex: 1 1 auto; min-width: 0; padding: 10px 12px; border: none; background: transparent; color: #666; font-weight: 600; font-size: 0.85em; border-radius: 8px; cursor: pointer; transition: all 0.2s; white-space: nowrap; text-align: center; }
        .tab-btn.active { background: white; color: #1d1d1f; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
        .tab-btn:hover:not(.active) { color: #1d1d1f; }
        .tab-content { display: none; }
        .tab-content.active { display: block; }
        .tab-more-wrapper { position: relative; flex: 1 1 auto; min-width: 0; }
        .tab-more-btn { width: 100%; padding: 10px 12px; border: none; background: transparent; color: #666; font-weight: 600; font-size: 0.85em; border-radius: 8px; cursor: pointer; white-space: nowrap; text-align: center; }
        .tab-more-btn:hover { color: #1d1d1f; }
        .tab-more-btn.has-active { background: white; color: #1d1d1f; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
        .tab-dropdown { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 10; margin-top: 4px; overflow: hidden; min-width: 140px; }
        .tab-dropdown.show { display: block; }
        .tab-dropdown-item { display: block; width: 100%; padding: 10px 16px; border: none; background: transparent; color: #666; font-weight: 600; font-size: 0.85em; cursor: pointer; text-align: left; transition: background 0.15s; }
        .tab-dropdown-item:hover { background: #f5f5f7; }
        .tab-dropdown-item.active { color: #007aff; background: #e8f0fe; }

        /* ツールチップ */
        .tooltip-term { border-bottom: 1px dotted #666; cursor: help; position: relative; }
        .tooltip-term:hover::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: #333;
            color: white;
            padding: 6px 10px;
            border-radius: 4px;
            font-size: 0.75em;
            white-space: nowrap;
            z-index: 100;
            margin-bottom: 4px;
        }

        /* テーブル */
        table { width: 100%; border-collapse: collapse; margin-top: 15px; font-size: 0.9em; }
        th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; }
        th { font-weight: 600; color: #666; font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.5px; }
        td { vertical-align: top; }

        /* バッジ */
        .status-badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 0.8em; font-weight: bold; }
        .status-unused { background: #e3f2fd; color: #1976d2; }
        .status-used { background: #e8f5e9; color: #388e3c; }
        .status-open { background: #fff3e0; color: #e65100; }
        .status-in_progress { background: #e3f2fd; color: #1565c0; }
        .status-resolved { background: #e8f5e9; color: #2e7d32; }
        .status-closed { background: #f5f5f5; color: #757575; }
        .category-bug { background: #fce4ec; color: #c62828; }
        .category-feature { background: #e8eaf6; color: #283593; }
        .category-other { background: #f5f5f5; color: #616161; }

        /* ボタン */
        .btn-danger { background-color: #ff3b30; color: white; border: none; padding: 5px 10px; border-radius: 6px; cursor: pointer; font-size: 0.85em; }
        .btn-danger:hover { background-color: #d32f2f; }
        .btn-action { background-color: #007aff; color: white; border: none; padding: 5px 10px; border-radius: 6px; cursor: pointer; font-size: 0.85em; }
        .btn-action:hover { background-color: #0056b3; }
        .btn-secondary { background-color: #8e8e93; color: white; border: none; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 0.85em; }
        .btn-secondary:hover { background-color: #636366; }

        /* フォーム */
        .form-row { margin-bottom: 12px; }
        .form-row label { display: block; font-weight: 600; font-size: 0.85em; color: #666; margin-bottom: 4px; }
        .form-row input, .form-row textarea, .form-row select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 0.95em; box-sizing: border-box; }
        .form-row input[type="checkbox"] { width: auto; padding: 0; border: none; border-radius: 0; }
        .form-row textarea { resize: vertical; min-height: 100px; font-family: inherit; }
        .form-row select { appearance: auto; }
        .msg { margin-bottom: 10px; font-weight: bold; font-size: 0.9em; min-height: 20px; }

        /* 権限チェックボックスグリッド */
        .perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
        .perm-grid label { display: flex !important; align-items: center; gap: 6px; font-weight: normal !important; font-size: 0.9em; margin-bottom: 0 !important; color: #333 !important; cursor: pointer; }

        /* モーダル */
        .modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 100; justify-content: center; align-items: center; }
        .modal-overlay.show { display: flex; }
        .modal-content { background: white; border-radius: 12px; padding: 24px; max-width: 600px; width: 90%; max-height: 80vh; overflow-y: auto; }

        /* ログイン */
        #loginSection { max-width: 400px; margin: 100px auto; }
        #adminDashboard { display: none; }

        /* 統計カード */
        .stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
        .stat-card { background: #f5f5f7; border-radius: 8px; padding: 14px; text-align: center; }
        .stat-card .stat-value { font-size: 1.8em; font-weight: 700; color: #1d1d1f; }
        .stat-card .stat-label { font-size: 0.8em; color: #666; margin-top: 2px; }

        /* レスポンシブ */
        @media (max-width: 768px) {
            .admin-container { padding: 12px; }
            .admin-card { padding: 16px; }
            table { font-size: 0.8em; }
            th, td { padding: 8px 6px; }
            .stats-row { grid-template-columns: repeat(2, 1fr); }
        }

        /* トグル可能な詳細 */
        .expandable-row { cursor: pointer; }
        .expandable-row:hover { background: #fafafa; }

        /* ユーティリティ（インラインstyle反復の共通化・Stage 6） */
        .section-desc { color: #666; margin-bottom: 15px; font-size: 0.9em; }
        .section-divider { border: none; border-top: 1px solid #ddd; margin: 30px 0; }
        .kpi-value { font-size: 24px; font-weight: bold; margin: 0; }
