    /**
     * ============================================
     * Mail Task UI Design System (v1.0)
     * ============================================
     */
    /* Design tokens は static/css/tokens.css へ移設（tokens.css を本ファイルより前に読み込むこと=base_v2.html で配線済）。値変更なし=視覚無風。 */

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        font-size: 13px;
        line-height: 1.5;
        color: var(--color-text-main);
        background-color: var(--color-bg);
        overflow: hidden;
    }

    a {
        color: var(--color-primary);
        text-decoration: none;
    }
    a:hover {
        color: var(--color-primary-hover);
    }

    button, input {
        border: none;
        background: none;
        outline: none;
    }

    /* ========== プレースホルダー色（グローバル） ========== */
    input::placeholder,
    textarea::placeholder {
        color: var(--text-placeholder);
        opacity: 1;
    }

    /* ========== レイアウト構造 ========== */
    .app-container {
        display: flex;
        height: 100vh;
    }

    /* ========== サイドバー ========== */
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 240px;
        height: 100vh;
        background-color: var(--color-surface);
        border-right: 1px solid var(--color-border);
        z-index: 20;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .sidebar-header {
        height: 52px;
        padding: 0 16px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid var(--color-border);
    }

    /* ========== サイドバーロゴ ========== */
    .sidebar-logo-link {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        text-decoration: none;
    }

    .sidebar-logo {
        max-width: 180px;
        max-height: 36px;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    /* 折りたたみ時：ロゴを非表示 */
    .sidebar.collapsed .sidebar-logo-link {
        display: none;
    }

    .sidebar-app {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .sidebar-app-icon {
        width: 28px;
        height: 28px;
        border-radius: 999px;
        background: var(--color-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--color-on-primary);
        font-size: 16px;
        flex-shrink: 0;
    }

    .sidebar-title {
        font-size: 14px;
        font-weight: 700;
        color: var(--color-text-main);
    }

    .sidebar-subtitle {
        font-size: 11px;
        color: var(--color-text-sub);
        margin-top: 2px;
    }

    .sidebar-user {
        margin: 8px 12px 4px;
        padding: 8px 10px;
        border-radius: 8px;
        background: var(--color-bg);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .sidebar-user-avatar {
        width: 32px;
        height: 32px;
        border-radius: 999px;
        background: var(--color-primary);
        color: var(--color-on-primary);
        font-size: 16px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .sidebar-user-main {
        min-width: 0;
    }

    .sidebar-user-name {
        font-size: 13px;
        font-weight: 600;
        color: var(--color-text-main);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sidebar-user-email {
        font-size: 11px;
        color: var(--color-text-sub);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sidebar-body {
        flex: 1;
        overflow-y: auto;
        margin-top: 4px;
        /* スクロール手がかり(1): つまみを細く常時表示する。
           macOS の overlay スクロールバーは既定で非表示のため、下に続きがあること自体が
           見えなかった (ノート PC でコーチング節が沈む事故の一因・2026-09-05)。 */
        scrollbar-width: thin;
        scrollbar-color: var(--color-border-muted) transparent;
    }

    .sidebar-body::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar-body::-webkit-scrollbar-track {
        background: transparent;
    }

    .sidebar-body::-webkit-scrollbar-thumb {
        background-color: var(--color-border-muted);
        border-radius: 999px;
    }

    /* スクロール手がかり(2): 下端に続きがあるときだけフェードを出す。
       .has-more は Sidebar.tsx の effect が scrollHeight/scrollTop/clientHeight から付ける。
       position: sticky なので .sidebar-body のスクロールポート下端に貼り付く
       (absolute だと内容と一緒に流れてしまう)。負の margin で行高を足さない。 */
    .sidebar-body.has-more::after {
        content: '';
        display: block;
        position: sticky;
        bottom: 0;
        height: 24px;
        margin-top: -24px;
        background: linear-gradient(to bottom, transparent, var(--color-surface));
        pointer-events: none;
    }

    .divider {
        height: 1px;
        background: var(--color-border);
        margin: 8px 0 10px;
    }

    .nav-section {
        margin-bottom: 10px;
    }

    .nav-section-title {
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        color: var(--color-text-muted);
        padding: 4px 12px;
        margin-bottom: 4px;
        letter-spacing: 0.05em;
    }

    .nav-item {
        display: flex;
        align-items: center;
        padding: 10px 12px;
        margin: 0 8px;
        border-radius: 8px;
        color: var(--color-text-main);
        text-decoration: none;
        transition: all 0.2s;
    }
    /* サイドバー disabled リンク */
    .nav-item.disabled {
        pointer-events: none;
        color: #9ca3af !important;
        cursor: not-allowed;
    }
    .nav-item.disabled .nav-item-icon {
        stroke: #9ca3af;
    }

    .nav-item:hover {
        background-color: var(--color-bg);
        color: var(--color-text-main);
    }

    .nav-item.active {
        background-color: var(--color-primary-soft);
        color: var(--color-primary);
        font-weight: 600;
    }

    .nav-item-icon {
        margin-right: 12px;
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .nav-item-sub {
        padding-left: 32px;  /* サブメニュー用のインデント */
    }

    .nav-item-badge {
        margin-left: auto;
        background-color: var(--color-primary);
        color: var(--color-on-primary);
        font-size: 11px;
        font-weight: 600;
        padding: 2px 6px;
        border-radius: 10px;
        min-width: 18px;
        text-align: center;
    }

    .nav-item.active .nav-item-badge {
        background-color: var(--color-primary);
        color: var(--color-on-primary);
    }

    .nav-item-incomplete {
        margin-left: auto;
        background-color: #f59e0b;
        color: var(--color-on-primary);
        font-size: 10px;
        font-weight: 600;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-footer {
        padding: 8px 12px 12px;
        border-top: 1px solid var(--color-border);
        margin-top: 4px;
    }

    .logout-button {
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 8px 10px;
        border-radius: 6px;
        background: var(--color-bg);
        color: var(--color-text-sub);
        font-size: 13px;
        font-weight: 500;
        text-decoration: none;
        border: 1px solid var(--color-border);
        transition: background 0.1s, color 0.1s;
    }

    .logout-button:hover {
        background: var(--color-border);
        color: var(--color-text-main);
    }

    /* ========== メインコンテンツエリア ========== */
    .main-content {
        margin-left: 240px;
        flex: 1;
        display: flex;
        flex-direction: column;
        height: 100vh;
        overflow: hidden;
        background-color: var(--color-bg);
    }

    /* ========== ヘッダー ========== */
    .header {
        position: sticky;
        top: 0;
        height: 52px;
        background-color: var(--bg-header);
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
        z-index: 30;
        display: flex;
        align-items: center;
        padding: 0 24px;
        gap: 16px;
    }

    .header-title {
        font-size: 16px;
        font-weight: 600;
        color: var(--color-text-main);
        margin: 0;
    }

    .header-actions {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .header-icon {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--color-text-sub);
        cursor: pointer;
        border-radius: 4px;
        transition: background-color 0.2s;
    }

    .header-icon:hover {
        background-color: var(--bg-hover);
    }

    /* キーボード操作でも現在位置が分かるようにする (ベル/設定はリンク・ヘルプは button) */
    .header-icon:focus-visible {
        outline: 2px solid var(--color-primary);
        outline-offset: 2px;
    }

    /* ヘッダー通知ベル: 未読件数バッジを重ねるための基準 */
    .header-icon-notification {
        position: relative;
    }

    /* 見た目は .nav-item-badge と同一トークン (サイドバーのバッジと揃える) */
    .header-icon-badge {
        position: absolute;
        top: -2px;
        right: -4px;
        background-color: var(--color-primary);
        color: var(--color-on-primary);
        font-size: 11px;
        font-weight: 600;
        line-height: 1.4;
        padding: 0 5px;
        border-radius: 10px;
        min-width: 18px;
        text-align: center;
        pointer-events: none;
    }

    .header-inquiry-link {
        cursor: pointer;
        text-decoration: none;
        padding: 6px 14px;
        background: var(--color-primary-soft);
        color: var(--color-primary-hover);
        border-radius: 6px;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.2;
        transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
    }

    .header-inquiry-link:hover {
        background: var(--color-primary-light);
        color: var(--color-primary-hover);
    }

    .header-inquiry-link:focus-visible {
        outline: none;
        box-shadow: 0 0 0 2px var(--color-primary-light);
    }

    /* ========== ヘッダー内ユーザー情報 ========== */
    .header-user {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 4px 8px;
        border-radius: 4px;
        transition: background-color 0.2s;
        text-decoration: none;
        color: inherit;
        cursor: pointer;
    }

    .header-user:hover {
        background-color: var(--bg-hover);
    }

    .header-user-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: var(--color-primary);
        color: var(--color-on-primary);
        font-size: 14px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .header-user-info {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .header-user-name {
        font-size: 13px;
        font-weight: 600;
        color: var(--color-text-main);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-user-email {
        font-size: 11px;
        color: var(--color-text-sub);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* ========== コンテンツスクロール領域 ========== */
    /* sticky の基準はこの容器の content box 上端。padding を変えるときは
       --content-scroller-pad-top も同じ値に変える（既定 24px は tokens.css
       の :root と同値なのでここでは再宣言しない）。 */
    .content-scroller {
        flex: 1;
        overflow-y: auto;
        padding: 24px;
    }

    /* ========== 共通フッター (法務リンク) ========== */
    /* 全画面に常時出るが操作対象ではないので、1行・小さめ・低コントラストに抑える */
    .app-footer {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 2px 8px;
        margin-top: 16px;
        padding-top: 8px;
        border-top: 1px solid var(--color-border);
        font-size: 11px;
        line-height: 1.4;
        color: var(--color-text-muted);
    }

    .app-footer__link {
        color: var(--color-text-sub);
        text-decoration: none;
    }

    .app-footer__link:hover {
        color: var(--color-primary);
        text-decoration: underline;
    }

    .app-footer__sep {
        color: var(--color-border-muted);
    }

    /* ========== ページタイトル ========== */
    .page-title {
        font-size: 20px;
        font-weight: 700;
        color: var(--color-text-main);
        margin-bottom: 24px;
        display: none;
        align-items: center;
        gap: 8px;
    }

    .page-title svg {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

    .page-description {
        font-size: 14px;
        color: var(--color-text-sub);
        margin-top: 4px;
        display: none; /* すべての画面でサブタイトルを非表示 */
    }

    /* ========== カード ========== */
    .card {
        background-color: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: 6px;
        box-shadow: var(--shadow-sm);
        padding: 16px;
        margin-bottom: 16px;
    }

    .card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
    }

    .card-header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
    }

    .row-actions {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
    }

    .selection-bar {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 16px;
        margin-bottom: 8px;
        border: 1px solid var(--color-primary);
        border-radius: var(--radius-md);
        background: var(--color-primary-soft);
    }

    .selection-bar-count {
        font-weight: 600;
        color: var(--color-text-main);
    }

    .selection-bar-progress {
        color: var(--color-text-muted);
    }

    .card-title {
        font-size: 14px;
        font-weight: 600;
        color: var(--color-text-main);
    }

    .card-form {
        background-color: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: 8px;
        box-shadow: var(--shadow-md);
        padding: 40px;
        margin-bottom: 16px;
    }

    /* ========== ボタン ========== */
    .btn {
        padding: 8px 16px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        transition: all 0.2s;
        text-decoration: none;
        border: none;
        /* 日本語は任意の文字間で改行できるため、幅の詰まった容器（一覧の操作列等）で
           flex item が最小幅まで縮むとラベルが 1 文字ずつ割れる。共通側で禁止する。
           min-width: max-content は付けない（nowrap があれば自動最小サイズが
           全文幅になるため不要で、過剰指定は親の溢れを招く）。 */
        white-space: nowrap;
    }

    .btn-primary {
        background-color: var(--color-primary);
        color: var(--color-on-primary);
        box-shadow: var(--shadow-md);
    }

    .btn-primary:hover {
        background-color: var(--color-primary-hover);
        color: var(--color-on-primary);
    }

    .btn-secondary {
        background-color: var(--color-surface);
        color: var(--color-text-main);
        border: 1px solid var(--color-border);
    }

    .btn-secondary:hover {
        background-color: var(--bg-hover);
    }

    .btn .btn-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 600;
        background: var(--color-primary);
        color: var(--color-surface);
    }

    .btn.is-active {
        background: var(--color-primary-soft);
        color: var(--color-primary);
        border-color: var(--color-primary);
    }

    /* ========== トグルスイッチ共通スタイル ========== */
    .realtime-sync-toggle {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-left: 12px;
    }

    .toggle-switch {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 26px;
    }

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .toggle-slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--color-border-muted);
        transition: 0.3s;
        border-radius: 26px;
    }

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 20px;
        width: 20px;
        left: 3px;
        bottom: 3px;
        background-color: var(--color-surface);
        transition: 0.3s;
        border-radius: 50%;
    }

    .toggle-switch input:checked + .toggle-slider {
        background-color: var(--color-primary);
    }

    .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(24px);
    }

    .toggle-switch input:disabled + .toggle-slider {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .toggle-label {
        font-size: 14px;
        font-weight: 500;
        color: var(--color-text-main);
        user-select: none;
    }

    .btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        background-color: var(--status-neutral-bg);
        color: var(--status-neutral-text);
    }

    .btn-sm {
        height: 24px;
        padding: 0 12px;
        font-size: 12px;
    }

    .btn-lg {
        height: 40px;
        padding: 0 20px;
        font-size: 14px;
    }

    .btn-danger {
        background-color: var(--color-danger-text);
        color: var(--color-on-primary);
    }

    .btn-danger:hover {
        background-color: var(--color-danger-hover);
    }

    .btn-outline {
        background-color: transparent;
        color: var(--color-text-main);
        border: 1px solid var(--color-border);
    }

    .btn-outline:hover:not(:disabled) {
        background-color: var(--bg-hover);
        border-color: var(--color-text-sub);
        /* color はそのまま (text-main) — Primary 以外は無彩色維持 */
    }

    .btn-ghost {
        background-color: transparent;
        color: var(--color-text-main);
    }

    .btn-ghost:hover {
        background-color: var(--bg-hover);
    }

    /* テキスト型 danger（白背景・赤字）。破壊操作のテキストリンク用。 */
    .btn-link-danger {
        background-color: transparent;
        color: var(--color-danger-text);
        border: none;
    }

    .btn-link-danger:hover:not(:disabled) {
        background-color: var(--color-danger-bg);
    }

    /* ========== ボタングループ ========== */
    .btn-group {
        display: inline-flex;
        gap: 0;
        border-radius: 4px;
        overflow: hidden;
    }

    .btn-group .btn {
        border-radius: 0;
        margin: 0;
    }

    .btn-group .btn:first-child {
        border-top-left-radius: 4px;
        border-bottom-left-radius: 4px;
    }

    .btn-group .btn:last-child {
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
    }

    .btn-group .btn.active {
        background-color: var(--color-primary);
        color: var(--color-on-primary);
    }

    /* ========== トグルボタン ========== */
    .btn-toggle {
        width: 48px;
        height: 24px;
        background-color: var(--status-neutral-bg);
        border-radius: 24px;
        position: relative;
        cursor: pointer;
        transition: background-color 0.3s;
        padding: 0;
        border: none;
    }

    .btn-toggle::after {
        content: '';
        position: absolute;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background-color: var(--color-surface);
        top: 3px;
        left: 3px;
        transition: left 0.3s;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .btn-toggle.active {
        background-color: var(--color-primary);
    }

    .btn-toggle.active::after {
        left: 27px;
    }

    /* ========== 新規作成ボタン ========== */
    /* primary の「＋」（ActionBar の icon: 'plus'）。旧 .btn-new-deal は案件一覧の ActionBar 化で廃止 */
    .btn .plus-icon {
        font-size: 16px;
        font-weight: 500;
        line-height: 1;
    }

    .table-container {
        overflow-x: auto;
    }

    /* ========== テーブルラッパー ========== */
    .table-wrapper {
        background-color: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: 12px;
        box-shadow: var(--shadow-sm);
        overflow: hidden;
    }

    /* ========== データテーブル（Clean & Professional） ========== */
    .data-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        color: var(--text-primary);
        font-family: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    }

    .data-table th,
    .data-table td {
        padding: 12px 16px;
        border-bottom: 1px solid var(--border-light);
        vertical-align: middle;
    }

    .data-table th {
        font-size: 12px;
        font-weight: 600;
        color: var(--text-secondary);
        text-align: left;
        background: var(--bg-primary);
        white-space: nowrap;
    }

    .data-table th a {
        color: inherit;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    .data-table th a:hover {
        color: var(--text-primary);
    }

    .data-table td .cell-text {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        white-space: normal;
        word-break: break-word;
    }

    /* ── 列ごとの折り返し（列設定の「折り返し」ON）──
       設計: docs/requests/2026-09-07_relation_cf_display_and_view_column_settings.md §11.4
       等高が崩れるのは ON にした列の行だけ。テキストは normal + anywhere、
       チップは wrap で全件（`+N` は出さない = FE 側で maxVisible を無効化する）。
       ページ CSS の単一行省略（.contacts-table / .companies-table）は
       `td:not(.col-wrap)` 側で書いてあるので、ここが衝突なく勝つ。 */
    .data-table td.col-wrap {
        white-space: normal;
        overflow: visible;
        vertical-align: top;
    }

    .data-table td.col-wrap .cell-text {
        display: block;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
        word-break: normal;
        -webkit-line-clamp: none;
        max-width: 100%;
    }

    .data-table td.col-wrap .chip-overflow-list,
    .data-table td.col-wrap .chip-overflow-list__items {
        flex-wrap: wrap;
        white-space: normal;
        overflow: visible;
    }

    .data-table td.col-wrap .chip-overflow-list__chip {
        white-space: normal;
        overflow: visible;
    }

    .data-table td.col-wrap .chip-overflow-list__label {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
    }

    /* 列幅ドラッグのグラバーを右端に重ねるための基準（部品は ColumnResizeHandle） */
    .data-table th.col-resizable {
        position: relative;
    }

    .data-table tbody tr {
        transition: background-color 0.15s;
    }

    .data-table tbody tr:hover {
        background: var(--bg-hover);
    }

    .data-table tbody tr:last-child td {
        border-bottom: none;
    }

    /* DataTable 拡張（common.css から移設・値不変。common の .data-table base 撤去と同時のため同詳細度衝突なし） */
    .data-table tbody tr.row-clickable {
        cursor: pointer;
    }

    .data-table th.sortable {
        cursor: pointer;
        user-select: none;
    }

    .data-table th.sortable:hover {
        color: var(--text-primary);
    }

    .sort-indicator {
        display: inline-flex;
        margin-left: 4px;
        font-size: 10px;
        opacity: 0.8;
    }

    .sort-indicator-idle {
        opacity: 0.35;
        transition: opacity 0.15s;
    }

    .data-table th.sortable:hover .sort-indicator-idle {
        opacity: 0.7;
    }

    .data-table-loading td,
    .data-table-empty td {
        text-align: center;
        padding: 40px 16px;
        color: var(--text-secondary);
    }

    /* 会社/案件セル */
    .company-cell {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .company-logo {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        background: var(--bg-hover);
        border: 1px solid var(--border-light);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 600;
        color: var(--text-secondary);
        flex-shrink: 0;
    }

    .cell-stack {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    /* テーブル内リンク（会社名・案件名用） */
    .table-link-name {
        color: var(--text-primary);
        font-weight: 600;
        text-decoration: none;
        transition: color 0.15s;
    }

    .table-link-name:hover,
    .table-link-name:focus-visible {
        color: var(--primary-blue);
        text-decoration: underline;
        text-underline-offset: 2px;
    }

    /* ステータスチップ */
    .status-chip {
        display: inline-flex;
        align-items: center;
        padding: 2px 8px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 600;
        border: none;
    }

    /* 担当者セル */
    .assignee {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .assignee-avatar {
        width: 24px;
        height: 24px;
        border-radius: 999px;
        background: var(--bg-hover);
        color: var(--text-secondary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 600;
        flex-shrink: 0;
    }

    /* 数値・日付 */
    .num {
        text-align: right;
        font-variant-numeric: tabular-nums;
    }

    .subtext {
        font-size: 12px;
        color: var(--text-tertiary);
    }

    /* ========== 角丸テーブル ========== */
    .table-rounded {
        border-radius: 6px;
        overflow: hidden;
    }

    .table-rounded .data-table {
        border-radius: 6px;
    }

    /* ========== テーブル内リンク ========== */
    .table-link {
        color: var(--color-primary);
        text-decoration: underline;
        transition: color 0.2s;
    }

    .table-link:hover {
        color: var(--color-primary-hover);
    }

    /* ========== ステータスバッジ ========== */
    .badge {
        display: inline-flex;
        align-items: center;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 11px;
        font-weight: 600;
    }

    .badge-success {
        background-color: var(--color-success-bg);
        color: var(--color-success-text);
    }

    .badge-warning {
        background-color: var(--color-warning-bg);
        color: var(--color-warning-text);
    }

    .badge-info {
        background-color: var(--color-info-bg);
        color: var(--color-info-text);
    }

    .badge-neutral {
        background-color: var(--color-neutral-bg);
        color: var(--color-neutral-text);
    }

    .badge-danger {
        background: var(--color-danger-bg);
        color: var(--color-danger-text);
    }

    /* 押せない状態表示。色は design-system の --color-* トークンだけを使う。 */
    .status-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        height: 22px;
        padding: 0 8px;
        border-radius: 999px;
        font-size: 12px;
        white-space: nowrap;
        border: 1px solid;
        cursor: default;
    }

    .status-badge::before {
        content: "";
        width: 6px;
        height: 6px;
        flex: 0 0 6px;
        border-radius: 50%;
        background: currentColor;
    }

    .status-badge--ok {
        color: var(--color-success-text);
        background: var(--color-success-bg);
        border-color: var(--color-success-text);
    }

    .status-badge--running {
        color: var(--color-warning-text);
        background: var(--color-warning-bg);
        border-color: var(--color-warning-text);
    }

    .status-badge--error {
        color: var(--color-danger-text);
        background: var(--color-danger-bg);
        border-color: var(--color-danger-text);
    }

    /* ========== フォーム ========== */
    .form-group {
        margin-bottom: 16px;
    }

    .form-label {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: var(--color-text-sub);
        margin-bottom: 4px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        width: 100%;
        padding: 8px 10px;
        border: 1px solid var(--color-border);
        border-radius: 4px;
        font-size: 13px;
        font-family: inherit;
        background: var(--color-surface);
        color: var(--color-text-main);
    }

    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        outline: none;
        border-color: var(--color-primary);
        box-shadow: var(--focus-ring);
    }

    /* 入力前グレー効果（オプション） */
    .form-input.placeholder-gray:placeholder-shown {
        background: var(--bg-hover);
    }

    .form-input.placeholder-gray:placeholder-shown:focus {
        background: var(--color-surface);
    }

    /* ========== セクションラベル ========== */
    .section-label {
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        color: var(--color-text-sub);
        letter-spacing: 0.5px;
        margin-bottom: 8px;
    }

    /* ========== ページヘッダー（CRM/Mailer互換） ========== */
    .page-header-crm,
    .page-header-mailer {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 0 0 16px 0;
        background: transparent;
        border-bottom: 1px solid var(--color-border);
        margin-bottom: 16px;
    }

    .page-header-crm .header-left,
    .page-header-mailer .header-left {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .page-header-crm .page-title,
    .page-header-mailer .page-title {
        font-size: 20px;
        font-weight: 700;
        color: var(--color-text-main);
        margin: 0;
        display: none;
        align-items: center;
        gap: 8px;
    }

    .page-header-crm .page-description,
    .page-header-mailer .page-description {
        font-size: 14px;
        color: var(--color-text-sub);
        margin: 0;
        display: none; /* すべての画面でサブタイトルを非表示 */
    }

    .page-header-crm .header-right,
    .page-header-mailer .header-right {
        display: flex;
        align-items: center;
        /* ボタン間隔の単一定義元。ページ側で gap / marginRight を書かない
           (docs/specs/003_design_system.md §8・方針書 A-2)。 */
        gap: 12px;
        /* 設計書 §6 規則 5: 狭幅でも折り返さず、ActionBar 側で段階的に縮約する。 */
        flex-wrap: nowrap;
        min-width: 0;
    }

    /* React の段 1 を Jinja ヘッダーへ差し込む枠（`createPortal` の差し込み先）。
       display:contents なので、空のときは gap を増やさず、差し込まれたボタンは
       header-right の直接の子として並ぶ
       （規約 2026-09-22_action_placement_and_top_bar_capacity.md §横展開）。 */
    .header-actions-portal {
        display: contents;
    }

    /* header-right とその直下のキャプションを右寄せで縦に積む（設計書 §6 規則 3）。 */
    .page-header-crm .header-right-stack {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
        min-width: 0;
    }

    .action-caption {
        font-size: 12px;
        color: var(--color-text-sub);
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: right;
    }

    .action-bar-context,
    .action-bar-filters {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: nowrap;
        min-width: 0;
        padding: 0 0 12px;
    }

    .action-bar-spacer {
        flex: 1 1 auto;
        min-width: 8px;
    }

    @media (max-width: 1279px) {
        .action-caption {
            display: none;
        }
    }

    .page-body {
        display: flex;
        flex-direction: column;
        gap: 24px;
        width: 100%;
    }

    /* II 中央寄せ狭幅型: 単一フォームの設定画面・長文・ウィザードのページ root に付ける。
       padding は持たない (.content-scroller が 24px を供給)。
       幅の数字はここ以外に書かない (方針書 A-1 / 003 §8「ページ構造」)。 */
    .page-narrow {
        width: 100%;
        max-width: 760px;
        margin: 0 auto;
    }

    /* ========== ビュートグルボタン（ボタン型） ========== */
    .view-toggle-group {
        display: inline-flex;
        gap: 0;
        background: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: 4px;
        padding: 4px;
    }

    .view-toggle-btn {
        padding: 6px 16px;
        font-size: 13px;
        font-weight: 500;
        background: transparent;
        border: none;
        border-radius: 4px;
        color: var(--color-text-sub);
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
    }

    /* active と hover の背景が同じだと選択状態が分かりづらいので、active は薄青で強調 */
    .view-toggle-btn:hover:not(.active) {
        background: var(--bg-hover);
    }

    .view-toggle-btn.active,
    .view-toggle-btn[aria-pressed="true"],
    .view-toggle-btn[aria-current="true"],
    .view-toggle-btn[aria-current="page"] {
        background: var(--color-primary-soft);
        color: var(--color-primary);
        font-weight: 600;
        box-shadow: var(--shadow-sm);
    }

    .view-toggle-btn:focus-visible {
        outline: 2px solid rgba(0, 121, 107, 0.35);
        outline-offset: 2px;
    }

    /* ========== タブナビゲーション（タブ型） ========== */
    /* flex-wrap: タブ(保存ビュー/ピン留めセグメント)が増えて横幅を超えたとき、
       収縮ではなく折り返しで逃がす。nowrap のままだとカード外へはみ出す。 */
    .tab-navigation {
        display: flex;
        gap: 0;
        border-bottom: 1px solid var(--color-border);
        flex-wrap: wrap;
    }

    /* flex-shrink: 0 = 幅不足でタブ自身が潰れるのを防ぐ。
       潰れた flex アイテム内の日本語は1文字ずつ縦積みになり、行全体が
       アイテムの高さまで引き伸ばされる(align-items:stretch)ため、タブ行が
       縦に膨張してレイアウトが崩れる。 */
    .tab-item {
        padding: 12px 20px;
        font-size: 13px;
        font-weight: 500;
        background: transparent;
        border: none;
        border-bottom: 2px solid transparent;
        color: var(--color-text-sub);
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .tab-item:hover {
        color: var(--color-text-main);
        background: var(--bg-hover);
    }

    .tab-item.active {
        color: var(--color-primary);
        border-bottom-color: var(--color-primary);
        font-weight: 600;
    }

    /* KPI の3面（インサイト / 目標 / MRR推移表）共通タブ。
       タブ本体は共通 .tab-navigation / .tab-item を使い、ここは下余白だけ。
       3面が別バンドルなのでページ CSS ではなく共通側に置く
       (templates/partials/kpi_tabs.html)。 */
    .kpi-page-tabs {
        margin-bottom: 16px;
    }

    /* ========== ページネーション ========== */
    /* .table-rounded スコープ = Jinja2テーブル用。bare .pagination = React 用（common.css から移設） */
    .table-rounded .pagination,
    .table-rounded .forms-pagination {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 24px;
        border-top: 1px solid var(--color-border);
        background-color: var(--bg-hover);
    }

    .table-rounded .pagination-info {
        font-size: 11px;
        color: var(--color-text-sub);
    }

    /* React Pagination（common.css から移設・値不変。.table-rounded 無しで適用） */
    .pagination {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 12px;
        align-items: center;
    }

    .pagination-info {
        padding: 6px 12px;
        color: var(--text-secondary);
        font-size: 13px;
    }

    .pagination-buttons {
        display: flex;
        gap: 4px;
    }

    .pagination-btn {
        padding: 4px 12px;
        border-radius: 4px;
        border: 1px solid var(--color-border);
        background-color: var(--color-surface);
        color: var(--color-text-sub);
        font-size: 11px;
        cursor: pointer;
        transition: all 0.2s;
        text-decoration: none;
        display: inline-block;
    }

    .pagination-btn:hover:not(:disabled) {
        background-color: var(--bg-hover);
        border-color: var(--color-primary);
        color: var(--color-primary);
    }

    .pagination-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        background-color: var(--status-neutral-bg);
        color: var(--status-neutral-text);
    }

    /* ========== ユーティリティ ========== */
    .text-primary {
        color: var(--color-text-main);
    }

    .text-secondary {
        color: var(--color-text-sub);
    }

    .text-tertiary {
        color: var(--color-text-muted);
    }

    .flex {
        display: flex;
    }

    .flex-center {
        display: flex;
        align-items: center;
    }

    .gap-8 {
        gap: 8px;
    }

    .gap-12 {
        gap: 12px;
    }

    .gap-16 {
        gap: 16px;
    }

    /* ========== Toast通知 ========== */
    .toast-container {
        position: fixed;
        top: 24px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2000;
        display: flex;
        flex-direction: column;
        gap: 12px;
        pointer-events: none;
        width: min(600px, calc(100vw - 32px));
    }

    .toast {
        --toast-bg: var(--bg-primary);
        --toast-text: var(--text-primary);
        width: 100%;
        padding: 16px 20px;
        border-radius: 8px;
        border: none;
        background: var(--toast-bg);
        color: var(--toast-text);
        box-shadow: var(--shadow-lg);
        font-size: 15px;
        font-weight: 500;
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        pointer-events: auto;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .toast.show {
        opacity: 1;
        transform: translateY(0);
    }

    .toast-icon {
        font-size: 18px;
        line-height: 1.2;
        color: currentColor;
        flex-shrink: 0;
    }

    .toast-message {
        flex: 1;
    }

    .toast-success {
        --toast-bg: var(--status-success-bg);
        --toast-text: var(--status-success-text);
    }

    .toast-error {
        --toast-bg: var(--status-danger-bg);
        --toast-text: var(--status-danger-text);
    }

    .toast-warning {
        --toast-bg: var(--status-warning-bg);
        --toast-text: var(--status-warning-text);
    }

    .toast-info {
        --toast-bg: var(--status-info-bg);
        --toast-text: var(--status-info-text);
    }

    @media (max-width: 640px) {
        .toast-container {
            top: 16px;
            width: calc(100vw - 24px);
        }

        .toast {
            padding: 14px 16px;
            font-size: 14px;
        }
    }

    /* ========== ユーザーモーダル ========== */
    .user-modal-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .user-modal-overlay.show {
        display: flex;
        align-items: flex-start;
        justify-content: flex-end;
        padding-top: 60px;
        padding-right: 24px;
    }

    .user-modal {
        background: var(--color-surface);
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        min-width: 280px;
        max-width: 320px;
        overflow: hidden;
        animation: slideDown 0.2s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .user-modal-header {
        padding: 16px;
        border-bottom: 1px solid var(--color-border);
    }

    .user-modal-user {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .user-modal-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--color-primary);
        color: var(--color-on-primary);
        font-size: 16px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .user-modal-info {
        flex: 1;
        min-width: 0;
    }

    .user-modal-name {
        font-size: 14px;
        font-weight: 600;
        color: var(--color-text-main);
        margin-bottom: 4px;
    }

    .user-modal-email {
        font-size: 12px;
        color: var(--color-text-sub);
    }

    .user-modal-body {
        padding: 8px;
    }

    .user-modal-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 12px;
        border-radius: 4px;
        text-decoration: none;
        color: var(--color-text-main);
        transition: background-color 0.2s;
        cursor: pointer;
    }

    .user-modal-item:hover {
        background-color: var(--bg-hover);
    }

    .user-modal-item-icon {
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .user-modal-item-icon svg {
        width: 18px;
        height: 18px;
    }

    .user-modal-item-text {
        flex: 1;
        font-size: 13px;
    }

    .user-modal-logout {
        color: var(--color-danger-text);
    }

    .user-modal-logout:hover {
        background-color: var(--color-danger-bg);
    }

    /* ========== サイドバー折りたたみ機能 ========== */
    .sidebar-footer {
        position: relative;
    }

    .sidebar-toggle {
        position: absolute;
        bottom: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border-radius: 8px;
        transition: all 0.2s ease;
        z-index: 10;
        color: var(--color-text-sub);
        background: var(--color-bg);
        border: 1px solid var(--color-border);
        font-size: 16px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .sidebar-toggle:hover {
        background: var(--color-border);
        border-color: var(--color-border-muted);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        transform: translateY(-1px);
    }

    .sidebar-toggle:active {
        transform: translateY(0);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    .sidebar {
        transition: width 0.3s ease;
    }

    .sidebar.collapsed {
        width: 64px;
    }

    .sidebar.collapsed .sidebar-header {
        justify-content: center;
        padding: 0 8px;
    }

    .sidebar.collapsed .sidebar-app > div:not(.sidebar-app-icon) {
        display: none;
    }

    .sidebar.collapsed .sidebar-user {
        justify-content: center;
        padding: 8px;
    }

    .sidebar.collapsed .sidebar-user-main {
        display: none;
    }

    .sidebar.collapsed .nav-section-title {
        display: none;
    }

    .sidebar.collapsed .nav-item {
        justify-content: center;
        padding: 10px;
    }

    .sidebar.collapsed .nav-item-text {
        display: none;
    }

    .sidebar.collapsed .nav-item-icon {
        margin-right: 0;
    }

    .sidebar.collapsed .nav-item-icon {
        margin-right: 0;
    }

    .sidebar.collapsed .sidebar-footer {
        padding: 8px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .sidebar.collapsed .logout-button {
        padding: 8px;
        justify-content: center;
        width: auto;
        min-width: 36px;
    }

    .sidebar.collapsed .logout-button > span:last-child {
        display: none;
    }

    .sidebar.collapsed .sidebar-toggle {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 8px;
    }

    .main-content.sidebar-collapsed {
        margin-left: 64px;
    }

    /* ========== Marketplace 契約プラン名バッジ (表示のみ・機能ゲートなし) ========== */
    /* 契約プランは状態の表示であって操作ではない。枠と塗りを持たせるとサイドバーで
       最も目立つ要素になり、視覚的な重みが実際の重要度と逆転するので、ナビより弱い
       1行に留める。左端はナビのラベルと揃える。 */
    .sidebar-plan-badge {
        display: flex;
        align-items: baseline;
        gap: 6px;
        /* 折りたたみボタンは .sidebar に absolute で浮いているので、その分の
           居場所をここで空ける（重なり回避）。 */
        margin: 0 8px var(--sidebar-toggle-reserve) 0;
        /* 文字の左端をナビのアイコン列(x=20px)に合わせる。
           footer padding 12px + margin-left 0 + padding-left 8px = 20px。 */
        padding: 6px 12px 6px 8px;
        border-radius: 8px;
        color: var(--color-text-sub);
        text-decoration: none;
        font-size: 12px;
        transition: background-color 0.2s ease, color 0.2s ease;
        min-width: 0;
    }
    .sidebar-plan-badge:hover {
        background-color: var(--color-bg);
        color: var(--color-text-main);
    }
    .sidebar-plan-badge-label {
        flex: 0 0 auto;
    }
    .sidebar-plan-badge-name {
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .sidebar.collapsed .sidebar-footer {
        flex-direction: column;
        gap: 8px;
    }
    /* 64px 幅にテキスト行の置き場は無い。プランの正式な確認先は設定画面なので、
       折りたたみ時は出さない。 */
    .sidebar.collapsed .sidebar-plan-badge {
        display: none;
    }

    /* 席数超過 / 当月配信数の告知 (AppShell が #app-shell-notice-mount へ portal)。
       どちらもソフトリミットなので操作は止まらない。警告色ではなく info 系の
       控えめな 1 行に留める。 */
    .app-shell-seat-notice,
    .app-shell-usage-notice,
    .app-shell-integration-notice {
        margin: 0 0 12px 0;
        padding: 8px 12px;
        border: 1px solid var(--color-info-border);
        border-radius: 8px;
        background-color: var(--color-info-bg);
        color: var(--color-info-text);
        font-size: 13px;
        line-height: 1.6;
    }
    /* 席数超過はソフトリミット (招待も利用も止まらない)。濃い全幅の帯だと本文より
       先に目に入り強すぎたため、薄い注意色の細い帯にする (9/6 ウォーク指摘 9)。
       横幅はページ内容と同じ (.content-scroller の padding の内側 = 全幅)。 */
    .app-shell-seat-notice {
        width: 100%;
        border-color: color-mix(in srgb, var(--color-warning-text) 30%, transparent);
        background-color: var(--color-warning-bg);
        color: var(--color-warning-text);
    }
    .app-shell-seat-notice a,
    .app-shell-usage-notice a,
    .app-shell-integration-notice a {
        color: inherit;
        font-weight: 600;
        text-decoration: underline;
    }

    /* 連携の停止 / 切断 (設計 2026-09-08 §6.6)。席数・配信数と違い**実際に
       取り込みが止まっている**ので warning 系にする。それでも「2 時間続いてから」
       の猶予を通ってきた告知なので、danger の全幅帯にはしない。 */
    .app-shell-integration-notice {
        width: 100%;
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        border-color: var(--color-warning-text);
        background-color: var(--color-warning-bg);
        color: var(--color-warning-text);
    }
    /* 「今週は表示しない」「今日は表示しない」（設計 D12 / §6.6）。告知に恒久的な
       画面占有は釣り合わないので閉じられるようにする。地の色を奪わない字だけの
       ボタン。**帯ごとに別クラスを作らない**（同じ見た目を 2 定義に割ると、
       片方だけ直した瞬間に告知どうしで見た目が食い違う）。 */
    .app-shell-seat-notice {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
    }
    .app-shell-notice-dismiss {
        appearance: none;
        flex-shrink: 0;
        border: none;
        background: none;
        padding: 0;
        color: inherit;
        font-size: 12px;
        font-family: inherit;
        cursor: pointer;
        text-decoration: underline;
    }

    /* 閾値を「超えた」ときだけ一段強める。それでも送信は止まっていないので、
       danger ではなく warning に留める。 */
    .app-shell-usage-notice.is-over {
        border-color: var(--color-warning-text);
        background-color: var(--color-warning-bg);
        color: var(--color-warning-text);
    }

    /* ========== メール詳細モーダル - iframe隔離用スタイル ========== */
    .email-detail-body-text {
        white-space: pre-wrap;
        word-break: break-word;
    }
    .email-detail-body-html-wrapper {
        border: 1px solid var(--color-border);
        border-radius: 4px;
        overflow: hidden;
        max-height: 400px;
    }

    .email-detail-body-html-iframe {
        width: 100%;
        height: 400px;
        border: none;
        display: block;
        background: var(--color-surface);
    }

    /* ============================================
       Plan 114: AppShell モバイル対応 (FF ON 時のみ適用)
       ============================================ */

    /* ハンバーガーボタン: デスクトップは非表示、モバイルでのみ flex */
    .hamburger-button {
        display: none;
        background: transparent;
        border: none;
        padding: 8px;
        cursor: pointer;
        color: var(--color-text-main);
        margin-right: 4px;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        -webkit-tap-highlight-color: transparent;
    }
    .hamburger-button:hover { background: var(--color-bg-hover); }
    .hamburger-button:active { background: var(--color-border); }

    @media (max-width: 767px) {
        /* AppShell モード時のみ: モバイルレイアウト適用 */
        body.app-shell-react .hamburger-button {
            display: flex;
        }

        /* サイドバー: 通常は非表示、open 時にスライドイン */
        body.app-shell-react .sidebar {
            position: fixed;
            top: 0;
            left: 0;
            height: 100vh;
            height: 100dvh;
            width: 280px;
            max-width: 85vw;
            z-index: 100;
            transform: translateX(-100%);
            transition: transform 0.28s ease;
            box-shadow: 0 0 16px rgba(0, 0, 0, 0.25);
            padding-bottom: env(safe-area-inset-bottom);
        }
        body.app-shell-react .sidebar.sidebar-mobile-open {
            transform: translateX(0);
        }

        /* メインコンテンツ: モバイルではサイドバー margin なし */
        body.app-shell-react .main-content {
            margin-left: 0 !important;
        }

        /* 半透明オーバーレイ (drawer 開放時) */
        body.app-shell-react .sidebar-mobile-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 99;
            -webkit-tap-highlight-color: transparent;
        }

        /* ヘッダー: padding 縮小 + safe-area 対応 */
        body.app-shell-react .header {
            padding: 0 12px;
            padding-right: max(12px, env(safe-area-inset-right));
            padding-left: max(12px, env(safe-area-inset-left));
        }
        body.app-shell-react .header-title {
            font-size: 15px;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* ユーザー情報テキスト非表示 (アバターのみ) */
        body.app-shell-react .header-user-info {
            display: none;
        }

        /* お問い合わせリンク: モバイルではテキストを CSS で短縮 */
        body.app-shell-react .header-inquiry-link {
            font-size: 0;
            padding: 8px;
        }
        body.app-shell-react .header-inquiry-link::before {
            content: '?';
            font-size: 16px;
            font-weight: 700;
            display: inline-block;
            width: 20px;
            height: 20px;
            line-height: 20px;
            text-align: center;
            border: 1.5px solid currentColor;
            border-radius: 50%;
        }

        /* コンテンツスクローラー: padding 縮小 */
        body.app-shell-react .content-scroller {
            padding: 12px;
            --content-scroller-pad-top: 12px;
        }

        /* テーブル横スクロール (中身がはみ出す場合の救済) */
        body.app-shell-react .content-scroller table {
            display: block;
            overflow-x: auto;
            max-width: 100%;
            -webkit-overflow-scrolling: touch;
        }
    }

    /* ==========================================================================
       アプリ共通レイアウト / フィードバック / モーダル / フィルタ UI
       (2026-07-20 Step4: frontend/src/styles/common.css から verbatim 移管し
        common.css を廃止。読み込みは base_v2.html の本ファイル link に一本化)
       ========================================================================== */

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.page-header-title {
  margin: 0 0 6px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

/* 空状態 */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* 元は絵文字前提のクラスで、サイズは font-size でのみ決まっていた。
   width/height 未指定の inline SVG は既定で width:100% になり、
   viewBox のアスペクト比で高さも比例してコンテナ幅まで膨張するため、
   SVG を入れても壊れないようクラス側でサイズを固定する。
   32px 指定の呼び出し側はインライン style を使っており、そちらが優先される。 */
.empty-state-icon > svg {
  width: 48px;
  height: 48px;
}

.empty-state-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.empty-state-text {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* フィルターバー */
.filter-bar {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

/* ===== Spinner / Skeleton（共通ローディング） ===== */
.spinner-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px;
  color: var(--color-text-muted, #94a3b8);
}

.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: cmn-spin 0.8s linear infinite;
}

.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
.spinner-lg { width: 36px; height: 36px; border-width: 3px; }
.spinner-label { font-size: 13px; }

@keyframes cmn-spin {
  to { transform: rotate(360deg); }
}

.skeleton-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0;
}

.skeleton-bar {
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--color-border) 25%, var(--color-neutral-bg) 50%, var(--color-border) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 確認ダイアログ */
.confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.confirm-dialog {
  background: var(--color-surface);
  border-radius: 10px;
  padding: 24px;
  min-width: 340px;
  max-width: 440px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.confirm-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.confirm-message {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
  white-space: pre-line;
}

/* 確認ダイアログに差し込む追加入力（入金日など）。message の下・操作の上 */
.confirm-extra {
  margin-top: -8px;
  margin-bottom: 20px;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Modal（共通） */
.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: 9999;
}

.modal-content {
  background: var(--color-surface);
  border-radius: 10px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

/* a11y: 開いた直後はダイアログ本体（tabIndex=-1）へフォーカスを置く。
   本体は操作要素ではないので枠線のフォーカスリングは出さない（ダイアログの出現自体が合図）。
   中の各ボタン・入力欄のフォーカス表示は従来どおり */
.modal-content:focus {
  outline: none;
}

/* サイズ修飾子は .modal-content と複合させ詳細度を (0,2,0) に上げる。
   一部ページの無スコープ `.modal-content { max-width: … }` が Vite の読み込み順で
   共有 <Modal> の lg/md/sm 幅を上書きする事故（例: 一部の CRM 詳細ページで lg 900px→560px に
   潰れ、内部の grid が 1 文字折返しに崩れる）を、読み込み順に依存せず防ぐ。 */
.modal-content.modal-content-sm {
  max-width: 500px;
}

.modal-content.modal-content-md {
  max-width: 700px;
}

.modal-content.modal-content-lg {
  max-width: 900px;
}

.modal-content.modal-content-xl {
  max-width: 1200px;
}

/* オプトイン: モバイル幅で全画面シート化（fullBleedOnMobile を渡したモーダルのみ）。
   サイズ修飾子を (0,2,0) に上げたため、こちらも複合セレクタで詳細度を揃える
   （source 順で lg/md/sm より後に置き、size 指定と併用時もモバイル全画面が勝つ）。 */
@media (max-width: 768px) {
  .modal-content.modal-content-mobile-full {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

/* タイトル行の右端（閉じるボタンの手前）に置く操作。margin-left: auto で右へ寄せる */
.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: 8px;
  flex-shrink: 0;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 0;
  word-break: break-word;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .page-body {
    padding: 16px;
  }

  .page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .table-wrapper {
    overflow-x: auto;
  }
}

/* ==========================================================================
   フィルタ UI 共通スタイル（FilterPopover / chips / saved-view tabs）
   全ページで FilterPopover を使うため、共通コンポーネントが依存する
   class はここに集約する。ページ固有の style はここを上書きする形で
   各 page の styles.css に置く（specificity を上げて）。

   注意: CrmDeals/styles.css と Emails/styles.css には歴史的な経緯で
   ここと重複する定義（filter-btn / filter-chips 等）が一部残っている。
   両者は cascade 順（design-system.css 先 → page styles.css 後）でページ別 override
   として機能している箇所もあるため、安易に削除すると視覚回帰を招く。
   削除する場合は各ページで定義差分を検証してから行うこと。
   ========================================================================== */

/* ── FilterPopover trigger ボタン ── */
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  background: var(--bg-primary);
  font-family: inherit;
}
.filter-btn-dashed {
  border: 1px dashed var(--color-border-muted);
  color: var(--color-text-sub);
}
.filter-btn-dashed:hover {
  border-color: var(--color-text-muted);
  background-color: var(--bg-hover);
}
.filter-btn-active {
  background: var(--color-neutral-bg);
  border: 1px solid var(--color-text-sub);
  color: var(--color-text-main);
  font-weight: 600;
}
.filter-btn b { font-weight: 600; }
.filter-btn i { font-size: 10px; opacity: 0.6; font-style: normal; }
.filter-btn-active i { opacity: 1; }

/* ── filter-bar 内の divider ── */
.filter-bar .divider {
  width: 1px;
  height: 24px;
  background-color: var(--border-light);
}

/* ── filter chips（Deals stage chips / Activities 種別 chips など） ── */
.filter-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: var(--bg-hover);
  color: var(--text-secondary);
  font-family: inherit;
}
.filter-chip:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.filter-chip.active {
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: 0 2px 8px rgba(0, 121, 107, 0.25);
}
.filter-chip.active:hover {
  background: var(--color-primary-hover);
}
.filter-chips-label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-right: 4px;
  font-weight: 500;
}

/* ── filter 内テキスト系アクション（クリア等） ── */
.text-action-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  font-family: inherit;
}
.text-action-btn:hover { color: var(--color-text-sub); }
.text-action-btn.clear:hover { color: var(--color-danger-text); }

/* 折り畳みパネル内で効いている絞り込みの件数。閉じていても分かるようにする */
.filter-applied-badge {
  display: inline-block;
  min-width: 16px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 8px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  font-weight: 600;
}

/* ── popover 内 input/select 用ヘルパー ── */
.filter-input, .filter-select { width: 100%; }
.filter-amount { width: 80px; min-width: 80px; }

/* ==========================================================================
   一覧上部の共有部品（設計書 docs/specs/2026-09-23_deals_list_toolbar_redesign.md §4・§5・§9）
   - .action-bar-lead      段 1 左の可視コンテキスト（対象の選択・表示形式の切替）
   - .view-switch          枠なしのテキストセグメント（表示形式・表示密度）
   - .filter-chip--*       絞り込みチップ（未適用 = 実線の細枠 / 適用中 = アクセントの薄い塗り）
   - .add-filter-menu      「＋ 条件」の項目選択
   - .action-indicator-*   ボタン内の連携状態（点 + 淡色の短い文言 + 詳細ツールチップ）
   既存の .view-toggle-group / .filter-btn* / 修飾子なしの .filter-chip は他画面が使うので変えない。
   ========================================================================== */

/* ── 段 1 左 ── */
.action-bar-lead {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  min-width: 0;
  flex-wrap: nowrap;
}
.action-bar-lead-divider {
  width: 1px;
  height: 20px;
  flex: 0 0 1px;
  background: var(--color-border);
}

/* ── 枠なしテキストセグメント ── */
.view-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
}
.view-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-sub);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.view-switch-btn:hover {
  background: var(--color-bg-hover);
  color: var(--color-text-main);
}
.view-switch-btn.is-active,
.view-switch-btn[aria-pressed="true"] {
  background: var(--color-neutral-bg);
  color: var(--color-text-main);
  font-weight: 700;
}
.view-switch-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.view-switch-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
/* 段 3 右の小さい版（カンバンの表示密度） */
.view-switch--sm .view-switch-btn {
  height: 26px;
  padding: 0 8px;
  font-size: 12px;
}

/* ── 絞り込みチップ ──
   修飾子なしの .filter-chip（活動の種別ピル等）の見た目を全部上書きする。 */
.filter-chip.filter-chip--outline,
.filter-chip.filter-chip--active {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 30px;
  max-width: 100%;
  padding: 0;
  border: 1px solid var(--color-border-muted);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-main);
  box-shadow: none;
  font-size: 13px;
  font-weight: 400;
  cursor: default;
  transition: none;
}
.filter-chip.filter-chip--outline:hover {
  background: var(--color-bg-hover);
  color: var(--color-text-main);
}
.filter-chip.filter-chip--active,
.filter-chip.filter-chip--active:hover {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.filter-chip-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  height: 100%;
  padding: 0 11px;
  border: none;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.filter-chip-trigger:focus-visible,
.filter-chip-remove:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.filter-chip--active .filter-chip-trigger {
  padding-right: 4px;
}
.filter-chip-static {
  display: inline-flex;
  align-items: center;
  padding: 0 4px 0 11px;
  white-space: nowrap;
}
.filter-chip-value {
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.filter-chip-caret {
  font-size: 10px;
  color: var(--color-text-sub);
}
.filter-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 4px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-primary);
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.filter-chip-remove:hover {
  background: var(--color-primary-hover-soft);
}

/* チップのポップオーバー内（見出し・選択肢・フッター） */
.filter-popover-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-main);
}
.filter-popover-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}
.filter-popover-footer .btn {
  margin-left: auto;
}
.filter-popover-remove {
  padding: 0;
  border: none;
  background: none;
  color: var(--color-text-sub);
  font-family: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.filter-popover-remove:hover {
  color: var(--color-text-main);
}
.filter-option-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 240px;
  overflow-y: auto;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px;
  font-size: 13px;
  color: var(--color-text-main);
  cursor: pointer;
}
.filter-option-divider {
  margin: 2px 0;
  border-top: 1px solid var(--color-border);
}
.filter-option-note {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-text-sub);
}
.filter-range {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-range-sep {
  font-size: 12px;
  color: var(--color-text-sub);
}
/* 範囲の下限 > 上限（開始 > 終了）。入力欄の直下に出し、呼び出し側は「適用」を止める */
.filter-range-error {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-danger-text);
}
.filter-input[aria-invalid="true"] {
  border-color: var(--color-danger-text);
}

/* ── 「＋ 条件」 ── */
.add-filter-menu {
  position: relative;
  display: inline-flex;
}
.add-filter-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-sub);
  font-family: inherit;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}
.add-filter-menu-trigger:hover,
.add-filter-menu-trigger[aria-expanded="true"] {
  background: var(--color-neutral-bg);
  color: var(--color-text-main);
}
.add-filter-menu-trigger:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.add-filter-menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  width: 300px;
  max-width: calc(100vw - 32px);
  max-height: min(480px, 70vh);
  padding: 8px 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
}
.add-filter-menu-search {
  flex: 0 0 auto;
  margin: 2px 10px 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--color-border-muted);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text-main);
  font-family: inherit;
  font-size: 13px;
}
.add-filter-menu-search:focus {
  outline: none;
  border-color: var(--color-primary);
}
.add-filter-menu-list {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}
.add-filter-menu-sublist {
  margin: 0;
  padding: 0;
  list-style: none;
}
.add-filter-menu-group {
  padding: 8px 14px 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-sub);
}
.add-filter-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--color-text-main);
  white-space: nowrap;
  cursor: pointer;
}
.add-filter-menu-item-label {
  overflow: hidden;
  text-overflow: ellipsis;
}
.add-filter-menu-item.is-highlighted {
  background: var(--color-bg-hover);
}
.add-filter-menu-item.is-checked {
  color: var(--color-primary);
}
.add-filter-menu-item.is-checked.is-highlighted {
  background: var(--color-primary-soft);
}
.add-filter-menu-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  font-size: 11.5px;
  color: var(--color-primary);
}
.add-filter-menu-check svg {
  width: 14px;
  height: 14px;
}
.add-filter-menu-empty {
  padding: 8px 14px;
  font-size: 12px;
  color: var(--color-text-sub);
}

/* ── ボタン内の連携状態 ── */
.action-indicator-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--color-text-sub);
}
.action-indicator-dot--ok {
  background: var(--color-success-text);
}
.action-indicator-dot--running {
  background: var(--color-warning-text);
}
.action-indicator-dot--error {
  background: var(--color-danger-text);
}
/* 5 字までを想定した固定の最大幅。外部データでボタン幅を変えない（9/22 規約 規則 3） */
.action-indicator-text {
  max-width: 5.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-sub);
}
.action-indicator-text--error {
  color: var(--color-danger-text);
}
.action-indicator-anchor {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}
.action-indicator-tooltip {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 1300;
  width: max-content;
  max-width: min(460px, calc(100vw - 32px));
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  text-align: left;
  white-space: normal;
}
.action-indicator-tooltip[hidden] {
  display: none;
}
.action-indicator-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0;
  font-size: 12.5px;
}
.action-indicator-detail-row {
  display: contents;
}
.action-indicator-detail dt {
  color: var(--color-text-sub);
  white-space: nowrap;
}
.action-indicator-detail dd {
  margin: 0;
  color: var(--color-text-main);
  overflow-wrap: anywhere;
}
