    /* 一覧の複数選択（共通部品 bulk-select.js） */
    .bulk-cell { width: 34px; text-align: center; }
    .bulk-cell input { width: 16px; height: 16px; cursor: pointer; }
    .bulk-card-check { display: flex; align-items: center; padding-right: 10px; }
    .bulk-card-check input { width: 18px; height: 18px; cursor: pointer; }

    /* ⚠️ 選択が0件のときは出さない（JS側で display:none）。
       常に出ていると一覧の下端が隠れて邪魔になる。 */
    #bulkBar {
        position: fixed; left: 50%; transform: translateX(-50%);
        bottom: 18px; z-index: 60;
        display: flex; align-items: center; gap: 10px;
        background: #1b4332; color: #fff;
        padding: 10px 14px; border-radius: 999px;
        box-shadow: 0 6px 24px rgba(0,0,0,.25);
        font-size: 13px; max-width: calc(100vw - 24px);
    }
    #bulkBar .bulk-count { font-weight: 700; white-space: nowrap; }
    #bulkBar select {
        background: #fff; color: #1b4332; border: none; border-radius: 6px;
        padding: 5px 8px; font-size: 13px; max-width: 40vw;
    }
    #bulkBar button {
        border: none; border-radius: 999px; padding: 6px 14px;
        font-size: 13px; cursor: pointer; white-space: nowrap;
    }
    #bulkBar .bulk-go { background: #d4af37; color: #1b4332; font-weight: 700; }
    #bulkBar .bulk-clear { background: transparent; color: #cfe3d8; text-decoration: underline; }
    /* 取り消せない操作。色で分ける（文言だけだと押し間違える） */
    #bulkBar .bulk-danger { background: #dc2626; color: #fff; font-weight: 600; }

    /* お気に入りのフォルダ帯 */
    .fav-folder-bar {
        display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
        margin-bottom: 10px;
    }
    .fav-chip-wrap { display: inline-flex; align-items: center; }
    .fav-chip {
        border: 1px solid #ebebeb; background: #fff; color: #525252;
        border-radius: 999px; padding: 5px 12px; font-size: 12.5px; cursor: pointer;
        display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    }
    .fav-chip:hover { background: #f0fdf4; border-color: #2d6a4f; }
    .fav-chip.is-on { background: #1b4332; border-color: #1b4332; color: #fff; }
    .fav-chip-n { font-size: 11px; opacity: .75; }
    .fav-chip-add { border-style: dashed; color: #2d6a4f; }
    .fav-chip-manage { color: #737373; }
    .fav-chip-edit {
        border: none; background: transparent; color: #737373;
        cursor: pointer; font-size: 12px; padding: 2px 4px;
    }
    .fav-chip-edit:hover { color: #dc2626; }

    /* フォルダの編集モード。帯ごと色を変えて「今は編集中」を見えるようにする。
       ⚠ 編集に入ったことが分からないと、✕ を押すのが怖くなる。 */
    .fav-folder-bar.is-editing {
        background: #fffbeb; border: 1px dashed #d4af37;
        border-radius: 10px; padding: 8px 10px;
    }
    .fav-chip-manage { color: #2d6a4f; border-color: #cfe3d8; background: #f0fdf4; }
    .fav-chip-manage.is-on { background: #d4af37; border-color: #d4af37; color: #1b4332; font-weight: 700; }
    .fav-chip-edit {
        border: 1px solid #e5e5e5; background: #fff; color: #737373;
        border-radius: 999px; width: 24px; height: 24px; margin-left: 4px;
        cursor: pointer; font-size: 12px; line-height: 1; padding: 0;
        display: inline-flex; align-items: center; justify-content: center;
    }
    .fav-chip-edit:hover { color: #1b4332; border-color: #2d6a4f; background: #f0fdf4; }
    .fav-chip-edit.is-danger:hover { color: #dc2626; border-color: #dc2626; background: #fef2f2; }
    .fav-folder-hint { width: 100%; font-size: 12px; color: #737373; margin: 2px 0 0; }

    /* 共通モーダル（ブラウザの prompt / confirm / alert の置き換え）
       ⚠ ブラウザ標準ダイアログは、見た人が「エラーが出た」と読む。
       アプリ内のモーダルで統一すること。 */
    .ui-modal {
        display: none; position: fixed; inset: 0; z-index: 10000;
        background: rgba(0,0,0,.4); align-items: center; justify-content: center; padding: 16px;
    }
    .ui-modal.is-open { display: flex; }
    .ui-modal-card {
        background: #fff; border-radius: 12px; padding: 24px 26px;
        max-width: 420px; width: 100%; box-shadow: 0 8px 32px rgba(0,0,0,.16);
    }
    /* 複数行のときだけ広げる。⚠️ 一律に広げない。40文字の1行入力
       （会員番号など）が横に間延びして、何を入れる欄か分かりにくくなる。 */
    .ui-modal-card.is-wide { max-width: 720px; }
    .ui-modal-title { font-size: 16px; font-weight: 700; color: #1a1a1a; margin: 0 0 8px; }
    .ui-modal-note { font-size: 13px; color: #737373; line-height: 1.6; margin: 0 0 12px; white-space: pre-line; }
    .ui-modal-note:empty { display: none; }
    .ui-modal-input {
        width: 100%; border: 1px solid #d4d4d4; border-radius: 8px;
        padding: 10px 12px; font-size: 15px; color: #1a1a1a; box-sizing: border-box;
    }
    .ui-modal-input:focus { outline: none; border-color: #2d6a4f; box-shadow: 0 0 0 3px rgba(45,106,79,.12); }
    .ui-modal-error { font-size: 12px; color: #dc2626; margin: 6px 0 0; min-height: 16px; }
    .ui-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
    .ui-btn-ghost {
        background: #f3f4f6; color: #525252; border: none; border-radius: 8px;
        padding: 10px 20px; font-size: 14px; font-weight: 500; cursor: pointer;
    }
    .ui-btn-primary {
        background: #1b4332; color: #fff; border: none; border-radius: 8px;
        padding: 10px 24px; font-size: 14px; font-weight: 600; cursor: pointer;
    }
    .ui-btn-primary:disabled { opacity: .5; cursor: default; }

    /* トースト：押さなくても消える短い知らせ。操作を止めない */
    .ui-toast-host {
        /* ヘッダー（sticky）の下に出す。上に重ねるとロゴを隠す */
        position: fixed; top: 68px; left: 50%; transform: translateX(-50%);
        z-index: 10001; display: flex; flex-direction: column; gap: 8px;
        align-items: center; pointer-events: none; width: max-content; max-width: 92vw;
    }
    .ui-toast {
        pointer-events: auto; cursor: pointer;
        background: #1b4332; color: #fff; border-radius: 999px;
        padding: 10px 18px; font-size: 13.5px; line-height: 1.5;
        box-shadow: 0 6px 20px rgba(0,0,0,.18); white-space: pre-line;
        animation: uiToastIn .18s ease-out;
    }
    .ui-toast.is-error { background: #dc2626; }
    .ui-toast.is-info { background: #334155; }
    @keyframes uiToastIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

    /* ご意見・不具合の窓（会員が送る。届くのは管理者だけ） */
    .fb-modal { display: none; position: fixed; inset: 0; z-index: 9998; background: rgba(0,0,0,.4);
        align-items: center; justify-content: center; padding: 16px; }
    .fb-modal.is-open { display: flex; }
    .fb-card { background: #fff; border-radius: 12px; width: 100%; max-width: 460px; max-height: 88vh;
        overflow-y: auto; padding: 22px 22px 20px; box-shadow: 0 8px 32px rgba(0,0,0,.12); }
    .fb-title { font-size: 16px; font-weight: 700; color: #1a1a1a; margin: 0 0 6px; }
    .fb-note { font-size: 12.5px; color: #737373; line-height: 1.7; margin: 0 0 14px; }
    .fb-label { font-size: 13px; font-weight: 600; color: #1a1a1a; margin: 14px 0 6px; }
    .fb-req { font-size: 11px; color: #dc2626; font-weight: 500; margin-left: 4px; }
    .fb-kinds { display: grid; gap: 8px; }
    .fb-kind { text-align: left; font-size: 13.5px; padding: 10px 12px; color: #1a1a1a; background: #fff;
        border: 1px solid #ebebeb; border-radius: 8px; cursor: pointer; font-family: inherit; }
    .fb-kind[aria-pressed="true"] { border-color: #1b4332; background: #f0f7f3; font-weight: 600; }
    .fb-text { width: 100%; box-sizing: border-box; min-height: 110px; padding: 9px 11px; font-size: 14px;
        line-height: 1.7; color: #1a1a1a; border: 1px solid #ebebeb; border-radius: 8px; resize: vertical;
        font-family: inherit; outline: none; }
    .fb-text:focus { border-color: #1b4332; }
    .fb-error { color: #dc2626; font-size: 13px; margin: 8px 0 0; }
    .fb-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
    .fb-btn { height: 38px; padding: 0 18px; font-size: 13.5px; font-weight: 600; border-radius: 8px;
        cursor: pointer; font-family: inherit; }
    .fb-btn-sub { color: #525252; background: #fff; border: 1px solid #ebebeb; }
    .fb-btn-main { color: #fff; background: #1b4332; border: 1px solid #1b4332; }
    /* 送信中は押せない見た目にする（色を抜く・カーソルも変える） */
    .fb-btn:disabled { background: #d4d4d4; border-color: #d4d4d4; color: #fff; cursor: not-allowed; }
    .fb-review { background: #fafaf8; border: 1px solid #ebebeb; border-radius: 10px; padding: 14px; margin-top: 10px; }
    .fb-review dt { font-size: 11.5px; color: #737373; margin-top: 10px; }
    .fb-review dt:first-child { margin-top: 0; }
    .fb-review dd { margin: 3px 0 0; font-size: 13.5px; color: #1a1a1a; line-height: 1.7;
        white-space: pre-wrap; word-break: break-word; }
    @media (max-width: 520px) {
        .fb-modal { align-items: flex-end; padding: 0; }
        .fb-card { border-radius: 14px 14px 0 0; max-width: none; }
        .fb-actions { flex-direction: column-reverse; }
        .fb-btn { width: 100%; height: 44px; }
    }

    /* スマホは下タブがあるので、その上に重ねる */
    @media (max-width: 640px) {
        #bulkBar { bottom: 72px; padding: 8px 12px; gap: 8px; }
    }
