/* ===========================================================================
   管理画面の枠（サイドナビ）の上書き ── 2026-09-06

   `common/member/course-shell.php` をそのまま管理画面でも使っている。
   **course-shell.css は会員画面の読み物向けの幅**（.cs は max-width 1400px）で、
   管理画面の横長のテーブルには狭い。ここでは**幅と器の作法だけ**を上書きする。

   ▲ **course-shell.css より後に読むこと。**
      admin_shell_open() が cs_shell_open() のあとに <link> を出している。
   ▲ 色・角丸・罫は上書きしない。規約（--ui-*）のまま。
   =========================================================================== */

/* 🔴 **管理画面では `position: sticky` が全部死んでいた**（2026-09-07 に実測）。
   `css/admin/common.css` の冒頭に

       html, body { overflow-x: hidden; max-width: 100vw; }

   があり、**`overflow` が `visible` でなくなると html / body がスクロールの器になる。**
   すると sticky は「動かない器」に貼り付くので、**貼り付いたまま一緒に流れていく。**
   実測では、サイドナビ（`.cs-side`）・ヘッダ（`.header-new`）・下書き編集の
   プレビューが**3つとも効いていなかった**（会員画面では効いている）。

   **`hidden` を `clip` にすると直る。** `clip` はスクロールの器を作らないので、
   横にはみ出したぶんを切る働きだけが残り、sticky は生きる
   （`overflow-x: clip` ＋ `overflow-y: visible` は visible のまま。仕様の例外）。
   ▲ **ここは shell.css なので、効くのはサイドナビが入っている管理画面だけ。**
      旧レイアウトの画面には届かない。
   ▲ Chrome 90 / Safari 16 以降。管理画面なので問題にしない。 */
html, body { overflow-x: clip; }

/* 管理画面は一覧とテーブルが主役。本文幅で頭打ちにしない */
.cs {
  max-width: none;
  padding: 12px 16px 32px;
}

/* sticky が生き返ったので、ヘッダ（`.header-new--slim` ＝ 61px）の下に置く。
   会員画面の 12px のままだと、貼り付いた先がヘッダの裏になる。 */
.cs-side { --cs-side-top: 70px; }   /* top と max-height の両方がこの値から決まる（course-shell.css） */

/* ページ側の器（.admin）は自前で max-width: 90rem と上下マージンを持っている。
   サイドナビの中に入ると左に寄って見えるので、枠の中では外す。 */
.cs-main > .admin,
.cs-main .admin {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* 🔴 **サイドナビの幅は会員画面と同じ 212px のまま。ここで詰めないこと。**
   2026-09-06 に「管理画面は1画面に詰める作りだから」と 196px にしたが、
   **ラベルが折り返して2行になった**（ユーザー指摘）。

   会員画面より管理画面のラベルの方が長い（「ライティングサミット」
   「管理者アカウント一覧」＝各10文字）。幅の内訳はこうなっている。

     212px − 左右の余白20 − 項目の余白18 − アイコンと隙間23 ＝ 文字に約151px
     196px − 同上                                          ＝ 文字に約135px

   0.82rem（≒13.1px）×10文字 ＝ 約131px なので、**196px では収まらない。**
   幅を変えるなら、いちばん長いラベルで1行に収まるかを先に計算すること。 */

/* ── サイドナビの項目を1行に収める（2026-09-06・/admin/bugfix/ #39）────────
   🔴 **「ライティングサミット」「スピーキングサミット」が2行に折り返していた。**

   幅を詰めるのではなく（前回それで折り返した）、**余白と級数だけを詰める。**
   管理画面のラベルは会員画面より長い（最長は「受講期限延長（講師都合）」＝12字、
   「Myモデルアンサー登録状況」＝12字相当）。

     212px − サイドナビの左右余白20 − 項目の余白14 − アイコン16 − 隙間7 ＝ 155px
     別タブ（↗つき）は さらに ↗ 8.8 と隙間7 を引いて               ＝ 139px
     0.8rem（12.8px）× 12字 ＝ 153.6px  → 155px に収まる
     0.8rem × 10字         ＝ 128px    → 139px に収まる（別タブの講座名）

   ▲ **項目を足したら、全94項目が1行に収まるかを計算してから入れること。**
      計算スクリプトは docs/ongoing/2026-09-06_admin-design-unification.md の §5.5 ④。
   ▲ **幅（212px）は会員画面と同じ。ここを触らない。** */
.cs-side__item {
  padding: 7px 7px;
  gap: 7px;
  font-size: var(--ui-fs-meta);  /* 12px（2026-10-08 ユーザー判断 7-A。会員の .cs-side__item と同じ段） */
}
.cs-side__ext { font-size: 0.55rem; }

/* ── 管理画面のページ見出し（2026-09-06・共有）──────────────────
   ダッシュボード各ページの1行目（見出し ＋ 不具合報告）は**どの画面でも同じ
   markup**なので、画面ごとの CSS に書かない（規約の「CSS の置き場」）。
   ここは枠と同じく全ページに届く1本なので、ここに置いてある。

   ▲ **不具合報告は副次（灰の枠）。** 規約の赤は「押すと元に戻せないもの」だけ。 */
.ax-page-hd {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 8px;
}
.ax-page-hd__h1 {
  font-size: var(--ui-fs-page);
  font-weight: 800;
  color: var(--ui-ink-head);
  margin: 0;
}
/* ── 管理画面の見出しの段（2026-10-06・ユーザー了承「規約を作って乱れにくく」）──
   段は3つだけ：題（ページ＝`.ax-page-hd__h1`、タブ＝`.detail-topbar__title`）／
   小見出し `.ax-h2` ／ 小さい見出し `.ax-h3`。規約 design-standard.md「級数」の管理画面の段。
   ▲ class の無い見出しの既定値は、まずタブの中（`#detail-content`）だけ。
      Bootstrap の h4（黒・24px・500）が出ていた。管理画面全体の素の見出し（h3 648か所ほか）は
      測ってから広げる。class 付きの見出しは各画面の決まりが勝つ。 */
.ax-h2,
#detail-content :is(h2, h3):not([class]) {
  font-size: var(--ui-fs-lead);
  font-weight: var(--ui-fw-head);
  line-height: 1.4;
  color: var(--ui-ink-head);
  margin: 20px 0 8px;
}
.ax-h3,
#detail-content :is(h4, h5):not([class]) {
  font-size: var(--ui-fs-card);
  font-weight: var(--ui-fw-head);
  line-height: 1.4;
  color: var(--ui-ink-head);
  margin: 16px 0 6px;
}
/* ── 状態（点＋文字・塗らない）── 2026-10-06 ─────────────────────
   会員画面の `.mui-status` と同じ形の管理画面用（管理画面は ui.css を読めない）。
   色は会員画面と同じ2つだけ：要対応＝オレンジ（`--todo`）、済み・公開中＝空色（`--done`）。
   それ以外（予約済み・下書き・対象外）は灰のまま（2026-10-06 ユーザー「オレンジ・空色で統一」）。 */
.ax-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--ui-fs-meta);
  font-weight: 700;
  color: var(--ui-ink-muted);
  white-space: nowrap;
}
.ax-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.ax-status--todo { color: var(--orange-600); }
/* 済みは灰（2026-10-07 夜 ユーザー判断）。押せる物が全部青い文字になったので、空色だとリンクに見える。
   ほかの灰（予約済み・下書き）より一段濃い灰にして見分ける */
.ax-status--done { color: var(--ui-ink); }
/* 進み具合を3段で見せる一覧だけの2つ（2026-11-04 ユーザー判断・マイエッセイの添削）。
   済みの灰と「担当が付いた」の灰が並んで見分けられなかったため。
   作業中＝赤（`--busy`）、完了＝緑（`--ok`。規約の「完了」の色）。ほかの画面へは広げない */
.ax-status--busy { color: var(--ui-danger-ink); }
.ax-status--ok   { color: var(--ui-ok-ink); }
/* ── detail.php の1行目（戻る ＋ ページ名）── 2026-09-07 に共有へ移した ────
   🔴 **まったく同じ33行が、6本の detail.php にインラインで複製されていた**
      （app / free-counselling / summit / private / speaking-summit / newsletter。
      md5 まで一致）。規約の「CSS の置き場」＝ 複数の画面が使う markup は共有へ。

   ▲ **「ダッシュボードへ」は副次（灰の枠）にした**（規約：戻る＝副次）。
      それまでは薄い青の面＋青枠で、ページの中でいちばん目立つ押しものになっていた。
      見た目は副次のボタン（`.ax-btn--outline`）と揃えてある。
   ▲ **まだ寄せていないものが2本ある**（kuins / myessay は同じ markup に加えて
      その画面固有の CSS を同じ <style> に持っている）。**その画面を触るときに寄せる。**
      p1pdesk は 2026-09-15 に寄せた（`.pd-detail-topbar` を廃止）。 */
.detail-wrap { padding: 8px 14px 24px; }
.detail-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0 10px;
  border-bottom: 1px solid var(--ui-line);
  margin-bottom: 10px;
}
.detail-topbar__back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--ui-fs-meta);
  font-weight: 700;
  color: var(--ui-secondary-ink);
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid var(--ui-secondary-line);
  border-radius: var(--ui-r-ctl);
  background: transparent;
  white-space: nowrap;
}
button.detail-topbar__back { font-family: inherit; line-height: inherit; cursor: pointer; }
.detail-topbar__back[hidden] { display: none; }
/* 模試の枠（admin/mocktest/detail.php）は、戻るボタンを1行目に出す。タブの中の同じボタンは隠す（2026-10-14） */
.detail-wrap--listback #detail-content [data-detail-back] { display: none; }
.detail-topbar__back:hover {
  background: var(--ui-action-bg);
  color: var(--ui-secondary-ink);
  text-decoration: none;
}
.detail-topbar__title {
  font-size: var(--ui-fs-card);
  font-weight: 700;
  color: var(--ui-ink-head);
}

/* ── 管理画面の器（タイル）── 2026-09-06・共有 ────────────────────
   🔴 **同じ器が3つのダッシュボードで別々に定義されていた**
      （`.admin-tile` ／ `.s-tile` ／ `.p-tile`。値まで同じ）。
      **新しく作る画面はこの `.ax-tile` を使う。** 既存の3つは、その画面を
      どのみち触るときに寄せる（規約「同じ役割の部品を作り直さない」）。

   規約：器の角丸は12px、**器に影は付けない**（罫で分ける）。
   級数は2段だけ（見出し `--ui-fs-card` ／ それ以外 `--ui-fs-meta`）。 */
.ax-tile {
  background: var(--ui-surface);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-r-card);
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.ax-tile__hd {
  padding: 5px 10px;
  background: var(--ui-surface-head);
  border-bottom: 1px solid var(--ui-line);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
/* 🔴 **受講生が書いたものを載せる器**（2026-09-12）。同じ形の器が並ぶと、
      どれが受講生の言葉でどれがこちらのメモかが読み取れなかった。
   ▲ **色は足さない。** 見出しの帯を沈んだ灰（`--ui-surface-sunken`）に落として、
      こちらが書く器（青みの帯）と役割で分けるだけにしてある。 */
.ax-tile--voice > .ax-tile__hd {
  background: var(--ui-surface-sunken);
}

.ax-tile__hd-title {
  font-size: var(--ui-fs-card);
  font-weight: 700;
  color: var(--ui-ink-head);
  white-space: nowrap;
}
/* 見出しの中の「第◯週」「◯名」「AEST」など。
   ▲ **2026-09-12 に1段落とした。** 色だけ落として級数を見出しと同じにしていたが、
      題名の隣に同じ大きさで並ぶので、どちらが題名か読み取りづらかった。 */
.ax-tile__hd-sub {
  font-size: var(--ui-fs-meta);
  font-weight: 400;
  color: var(--ui-ink-muted);
}
/* 件数バッジ。**塗るのは「こちらが手を動かすもの」だけ。** 数値バッジだけがピル */
.ax-tile__hd-cnt {
  font-size: var(--ui-fs-meta);
  background: var(--ui-danger-line);
  color: var(--ui-ink-on-fill);
  border-radius: var(--ui-r-pill);
  padding: 1px 7px;
  font-weight: 700;
  flex-shrink: 0;
}
.ax-tile__hd-cnt--quiet {
  background: var(--ui-surface-sunken);
  color: var(--ui-ink-muted);
  border: 1px solid var(--ui-line);
}
/* タイル右上のリンク（2026-10-07 ユーザー判断。会員の `.mui-tile__link` と同じ決まり）
   ▲ 見に行くもの（詳細・全画面・一覧）はこの細い字。色は操作のボタンと同じ。
      語のあとのアイコンは 別のページ＝fa-chevron-right／新しいタブ＝fa-arrow-up-right-from-square。
   ▲ 操作するもの（新規投稿など、その場で開くもの）は `.ax-btn--action.ax-btn--sm` に
      `.ax-tile__hd-end` を付けて右へ寄せる。1タイルに1つまで。 */
.ax-tile__hd-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: none;
  background: none;
  font-size: var(--ui-fs-meta);
  font-weight: 400;
  color: var(--ui-action);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.ax-tile__hd-link:hover { color: var(--ui-action); text-decoration: underline; text-underline-offset: 0.25em; }
.ax-tile__hd-link > i { font-size: 0.65rem; }
/* 管理画面の押せる物は「青い文字」1つ（2026-10-07 夜 ユーザー判断・規約）。
   <a> でも <button> でも同じ見た目。別タブだけ後ろに ↗。削除だけ赤（--danger）。
   例外：フォームの送信・保存・キャンセルは .ax-btn のまま */
.ax-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: var(--ui-fs-meta);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ui-action);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}
.ax-link:hover { color: var(--ui-action); background: none; text-decoration: underline; text-underline-offset: 0.25em; }
.ax-link > i { font-size: 0.65rem; }
.ax-link--danger,
.ax-link--danger:hover { color: var(--ui-danger-ink); }
.ax-link:disabled { opacity: 0.5; cursor: not-allowed; text-decoration: none; }
.ax-tile__hd-end { margin-left: auto; }
.ax-tile__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 8px;
}
.ax-tile__body::-webkit-scrollbar { width: 4px; }
.ax-tile__body::-webkit-scrollbar-track { background: transparent; }
.ax-tile__body::-webkit-scrollbar-thumb { background: var(--ui-line-strong); border-radius: 2px; }
.ax-empty { font-size: var(--ui-fs-meta); color: var(--ui-ink-muted); padding: 8px 2px; margin: 0; }

/* ── 一覧の表（.atbl）── 2026-09-07 に css/admin/dashboard.css から移した ────
   🔴 **`/admin/` でしか読まれていなかったのに、`/admin/newsletter/` が
      同じ表を持っていた**（あちらは同じ値をインラインで書き直していた）。
      規約の「CSS の置き場」＝**複数の画面が使う markup は共有へ**。
   ▲ **これ以外の見た目はセルに書かない。** インラインはどの <link> よりも
      後に来るので、規約へ寄せた値を黙って打ち消す。
   ▲ 右寄せ・折り返し禁止は Bootstrap の text-end / text-nowrap を使う。 */
.atbl { width:100%; border-collapse:collapse; font-size:var(--ui-fs-meta); }
.atbl th { background:var(--ui-surface-sunken); font-weight:700; color:var(--ui-ink); padding:3px 5px; text-align:left; border-bottom:1px solid var(--ui-line); white-space:nowrap; position:sticky; top:0; z-index:1; }
.atbl td { padding:3px 5px; border-bottom:1px solid var(--ui-line); vertical-align:middle; }
.atbl tr:last-child td { border-bottom:none; }
.atbl__sub  { color: var(--ui-ink-muted); }
/* 表の中の小さな印（L / R など）。**色ではなく文字で区別する**ので1種類だけ。 */
.atbl__chip { display: inline-block; padding: 0 5px; font-size: var(--ui-fs-meta);
              font-weight: 700; line-height: 1.6; border-radius: var(--ui-r-ctl);
              background: transparent; border: 1px solid var(--ui-line-strong);
              color: var(--ui-ink-muted); }
.atbl__key  { color: var(--ui-ink-head); font-weight: 700; }
.atbl__code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
              color: var(--ui-ink-head); font-weight: 700; }
/* 期限が近い・手を打つ必要がある値。会員画面のペースバーと同じ扱いで
   --ui-danger-ink を借りている（規約に「注意」の役割が無いため）。 */
.atbl__due  { color: var(--ui-danger-ink); font-weight: 700; }
/* 行が薄くなる（解除済み・無効）。**色を足さずに濃度だけ落とす。** */
.atbl tr.is-off td { opacity: .5; }

/* ── 数字の並び（見出しの中に置く「送信 1,655件」など）── 2026-09-07 に移した ──
   /admin/ のニュースレタータイルと /admin/newsletter/ が同じ markup を使う。
   ▲ **開封率と解除の数字に色を付けない**（2026-09-06・/admin/bugfix/ #44）。
      緑と赤で「良い／悪い」を決めつけていたが、**良し悪しはその時の配信内容による。** */
.nl-stat-strip { display: flex; flex-wrap: wrap; gap: 0 10px; margin-left: 10px; }
.nl-stat-chip { font-size: var(--ui-fs-meta); color: var(--ui-ink-muted); white-space: nowrap; }
.nl-stat-chip strong { color: var(--ui-ink-head); font-weight: 700; }

/* ── 管理画面のボタン（.ax-btn）── 2026-09-07 ─────────────────────
   🔴 **会員画面の `.mui-btn`（css/member/ui.css）は管理画面では読めない**
      （`ui.css` 末尾の `[hidden] { display:none !important }` が全ページに効いて
      しまうため。docs の Step B を読む）。**同じ役割を同じ形で書けるように、
      管理画面用の1組をここに置く。** 新しく作る画面はこれを使い、
      `.sa-btn` `.img-hd-btn` のような画面ごとのボタンを作らないこと。

   規約：**ブルー以外を当てるのは購入と取消の2つだけ。塗りは1画面に1個。**
     既定（.ax-btn）      … 主要。紺の塗り。その画面でいちばん重い行動
     --outline           … 副次。灰の枠。戻る・表示切替・取り消しではない操作
     --danger            … 取消。赤の**枠だけ**（塗らない）
     --sm                … 一覧の行に置く小さい版
   ▲ **ボタンに影を付けない。ピルにしない**（ピルは数値バッジだけ）。 */
.ax-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 16px;
  font-size: var(--ui-fs-meta);
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--ui-r-ctl);
  border: 1px solid var(--ui-primary);
  background: var(--ui-primary);
  color: var(--ui-ink-on-fill);
  transition: background 0.15s;
}
.ax-btn:hover {
  background: var(--ui-primary-hover);
  border-color: var(--ui-primary-hover);
  color: var(--ui-ink-on-fill);
  text-decoration: none;
}
.ax-btn:disabled, .ax-btn.is-loading { opacity: 0.5; cursor: not-allowed; }

.ax-btn--outline {
  background: transparent;
  border-color: var(--ui-secondary-line);
  color: var(--ui-secondary-ink);
}
.ax-btn--outline:hover {
  background: var(--ui-action-bg);
  border-color: var(--ui-secondary-line);
  color: var(--ui-secondary-ink);
}

/* 表示切替で、いま選んでいる方（2026-09-17）。**副次の枠に操作の青の枠と薄い面を足すだけ。**
   塗らない（塗りは主要の1個だけ）。キャンペーンの PC／スマホ、メッセージの要返信／すべて。
   押せる側には `aria-pressed` か、リンクなら `aria-current` を付ける。 */
.ax-btn--outline.is-on,
.ax-btn--outline.is-on:hover {
  background: var(--ui-action-bg);
  border-color: var(--ui-action);
  color: var(--ui-ink-head);
}

/* 操作。青の枠（会員の `.mui-btn--action` と同じ役割。2026-10-07） */
.ax-btn--action {
  background: transparent;
  border-color: var(--ui-action);
  color: var(--ui-action);
}
.ax-btn--action:hover {
  background: var(--ui-action-bg);
  border-color: var(--ui-action);
  color: var(--ui-action);
}

.ax-btn--danger {
  background: var(--ui-surface);
  border-color: var(--ui-danger-line);
  color: var(--ui-danger-ink);
}
.ax-btn--danger:hover {
  background: var(--ui-danger-bg);
  border-color: var(--ui-danger-line);
  color: var(--ui-danger-ink);
}

.ax-btn--sm { padding: 3px 10px; font-size: var(--ui-fs-micro); }
.ax-btn--block { width: 100%; }

/* ── 2列（規約：ダッシュボードのタイルは最大2列）───────────────
   グリッドの直下は「列」で、その中は独立した flex 列。タイルを直接
   グリッドに置くと、隣の列の高いタイルに引きずられて空白ができる。 */
.ax-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  width: 100%;
}
.ax-col { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
/* サイドナビが出たまま2列だと窮屈になる幅では1列に落とす */
@media (max-width: 1150px) {
  .ax-cols { grid-template-columns: minmax(0, 1fr); }
}

/* ── ref.php のフェードインと実行ボタン ── 2026-09-06 に共有へ移した ──────
   🔴 **`admin/private/css/local.css` にしか無く、/admin/private/ のトップだけが
      読んでいた。** ところが `.btn--exec` を使っているのは summit / myessay /
      free-counselling / lr-track の ref.php で、**それらは detail.php 経由で
      開くので CSS が1本も届いていなかった**（規約の「CSS の置き場」で
      会員画面が3回踏んだのと同じ型）。枠と同じくここは全ページに届く。

   ▲ **実行ボタンは規約に寄せた。** グラデーション・影をやめ、
      取消の赤（--ui-danger-*）の**枠だけ**にしてある。塗らないのは
      「押すと元に戻せないもの」を目立たせるためではなく、
      **赤で塗ると押しやすく見える**から（規約の取消と同じ扱い）。 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
section.admin-content-60rem {
  padding: 0 0.5rem 4rem;
  animation: fadeIn 0.25s ease both;
}

.btn--exec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: var(--ui-fs-body);
  font-weight: 700;
  padding: 8px 22px;
  border-radius: var(--ui-r-ctl);
  border: 1px solid var(--ui-danger-line);
  background: var(--ui-surface);
  color: var(--ui-danger-ink);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s;
  -webkit-user-select: none;
  user-select: none;
}
.btn--exec:hover {
  background: var(--ui-danger-bg);
  color: var(--ui-danger-ink);
  text-decoration: none;
}
.btn--exec:disabled, .btn--exec.is-loading {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── フォーム部品（.ax-file / .ax-check / .ax-radio）── 2026-09-08・#73 ──────
   🔴 **ファイル選択・チェックボックス・ラジオを素のまま置かない。**
      ブラウザ既定の「ファイルを選択」は角が四角く、灰色のベベルが付いていて、
      その1個だけ**他所から持ってきた部品に見える**（/admin/newsletter/ の画像
      アップロードで指摘・#73）。

   規約：**選ぶものにも「部品6px」を当てる。色はブルーの中だけ。**
     .ax-file  … <input type="file"> そのものに付ける。中のボタンは
                 副次（`.ax-btn--outline`）と同じ灰の枠にそろえる
     .ax-check … <input type="checkbox">。`accent-color` を操作の青にする
     .ax-radio … <input type="radio">。同上
   ▲ 会員画面は同じものを `.mui-file` `.mui-check` `.mui-radio`（css/member/ui.css）
     で持つ。**管理画面は ui.css を読めない**（このファイルの冒頭を読む）。
   ▲ フォーカスリングは消さない。 */
.ax-file {
  display: block;
  width: 100%;
  border: 1px solid var(--ui-line-strong);
  border-radius: var(--ui-r-ctl);
  padding: 5px 10px;
  font-size: var(--ui-fs-meta);
  background: var(--ui-surface);
  color: var(--ui-ink);
  cursor: pointer;
}
.ax-file::file-selector-button {
  margin: 0 10px 0 0;
  padding: 5px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--ui-r-ctl);
  border: 1px solid var(--ui-secondary-line);
  background: transparent;
  color: var(--ui-secondary-ink);
  transition: background 0.15s;
}
.ax-file::file-selector-button:hover { background: var(--ui-action-bg); }
.ax-file:focus-visible {
  outline: none;
  border-color: var(--ui-action);
  box-shadow: var(--focus-ring);
}

.ax-check,
.ax-radio {
  width: 15px;
  height: 15px;
  margin: 0;
  vertical-align: -2px;
  accent-color: var(--ui-action);
  cursor: pointer;
}
.ax-check:focus-visible,
.ax-radio:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ── 入力欄（.ax-input / .ax-select / .ax-textarea）── 2026-09-10・myessay ────
   会員画面は `.mui-input` `.mui-select` `.mui-textarea`（css/member/ui.css）を
   持っているが、**管理画面はそれを読めない**（このファイルの冒頭）。
   ここに無かったので、画面ごとに高さ・角丸・枠の色を書き直していた
   （`/admin/myessay/` の割当セレクトと返信欄がそうだった）。**同じ役割なので
   ここに1組だけ置く。** 新しく作る画面はこれを使う。

   ▲ フォーカスリングは装飾ではない。**キーボードでいまどこにいるかの表示**
     なので消さない。 */
.ax-input,
.ax-select,
.ax-textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: var(--ui-fs-meta);
  color: var(--ui-ink);
  background: var(--ui-surface);
  border: 1px solid var(--ui-line-strong);
  border-radius: var(--ui-r-ctl);
  padding: 5px 9px;
}
.ax-input, .ax-select { height: 30px; }
.ax-textarea { padding: 7px 9px; line-height: 1.6; resize: vertical; }
.ax-input:focus,
.ax-select:focus,
.ax-textarea:focus {
  outline: none;
  border-color: var(--ui-action);
  box-shadow: var(--focus-ring);
}
.ax-input::placeholder,
.ax-textarea::placeholder { color: var(--ui-ink-muted); }

/* ── フォームの行（.ax-field / .ax-label / .ax-req / .ax-note）── 2026-09-17 ──────
   🔴 **ラベル・必須の印・補足の3つが、画面ごとに同じ値で作り直されていた**
      （`.cp-label` `.cp-req` `.cp-note`（クーポン）／`.ntc-label`（お知らせ）／
      `.ft-label` `.er-label`（資金移動・インボイス共有））。入力欄（`.ax-input`）は
      共有にしてあったのに、その上に置く文字が共有になっていなかった。
      **新しく作る画面はこれを使う。** 既存の `.cp-*` は、クーポンを触るときに寄せる。
   ▲ 必須の印は**塗らない。** 規約に「必須」の役割は無いので、取消の赤を文字だけ借りる。 */
.ax-field { margin-bottom: 12px; min-width: 0; }
.ax-field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
}
.ax-field-row > .ax-field { flex: 1 1 160px; }
.ax-label {
  display: block;
  font-size: var(--ui-fs-meta);
  font-weight: 700;
  color: var(--ui-ink-head);
  margin-bottom: 4px;
}
.ax-req {
  font-size: var(--ui-fs-micro);
  font-weight: 700;
  color: var(--ui-danger-ink);
  margin-left: 4px;
}
.ax-note {
  font-size: var(--ui-fs-micro);
  color: var(--ui-ink-muted);
  margin: 0 0 4px;
}
/* チェック・ラジオと文字の並び。印そのものは `.ax-check` `.ax-radio` */
.ax-check-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--ui-fs-meta);
  color: var(--ui-ink);
  cursor: pointer;
  margin: 0;
}

/* ── Bootstrap のモーダル（.ax-modal）── 2026-09-17 ─────────────────────
   管理画面は Bootstrap 5.3 のモーダルを24本で使っている。中身の形は Bootstrap の
   既定のままか、画面ごとにグラデーションの帯・14px の角丸・濃い影を足していた
   （資金移動・インボイス共有）。**`.modal-content` に `ax-modal` を足すだけで
   器と同じ形になる**ようにここに置く。
   ▲ 影は残す。モーダルは本当に上に乗っているもの（規約「影」）。 */
.ax-modal {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-r-card);
  box-shadow: var(--ui-shadow-float);
  overflow: hidden;
}
.ax-modal .modal-header {
  padding: 8px 14px;
  background: var(--ui-surface-head);
  border-bottom: 1px solid var(--ui-line);
}
.ax-modal .modal-title {
  font-size: var(--ui-fs-card);
  font-weight: 700;
  color: var(--ui-ink-head);
}
.ax-modal .modal-body { padding: 14px; }
.ax-modal .modal-footer {
  padding: 8px 14px;
  gap: 6px;
  border-top: 1px solid var(--ui-line);
}
.ax-modal .modal-footer > * { margin: 0; }

/* ── 対象を選ぶ1行（.ax-pick）── 2026-10-06 ─────────────────────
   規約「2ペインにしない」の代わりの形：本文の上に1行の選択欄＋本文は1カラム。
   js/admin/pane-to-select.js が左の一覧から組み立てる（直接書いてもよい）。 */
.ax-pick { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.ax-pick__label { font-size: var(--ui-fs-meta); font-weight: 700; color: var(--ui-ink-head); margin: 0; white-space: nowrap; }
.ax-pick__select { flex: 1 1 280px; min-width: 0; max-width: 460px; }
/* 本文の高さを画面に合わせている画面（calc(100dvh - 210px)）では、選択欄の1行ぶん低くする */
.ax-pick + .ax-pick-layout { height: calc(100dvh - 256px); }

/* ── サイドナビの☆（お気に入り・2026-11-12）──────────
   付け外しは common/admin/nav.php の admin_shell_close() の JS。
   付いていない☆はマウスを重ねた行にだけ出す。付いた★はいつも出す。 */
.cs-side__item .ax-fav {
  margin-left: auto;
  padding: 2px;
  font-size: 0.7rem;
  color: var(--cs-blue);
  opacity: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.cs-side__item:hover .ax-fav,
.cs-side__item .ax-fav:focus-visible { opacity: 1; }
.cs-side__item .ax-fav:hover { color: var(--cs-blue); }
.cs-side__item .ax-fav.is-fav { opacity: 1; color: var(--cs-blue); }
.cs-side__item.is-on .ax-fav { color: var(--sky-300, #93c7e9); }
/* マウスを重ねられない端末（iPad など）では、☆をいつも薄く出す */
@media (hover: none) {
  .cs-side__item .ax-fav { opacity: 0.6; }
}
/* お気に入りに入っている★は塗り（2026-11-12 ユーザー指示）。
   自作アイコン（css/ds/icons.css・自動生成）の fa-star は線だけで、fa-solid を付けても塗りにならないので、
   同じ形に fill を足したものをここで当てる */
.cs-side__item .ax-fav.is-fav {
  --ijp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(-1.44 -1.44) scale(1.12)'%3E%3Cpath d='m12 2.8 2.9 5.9 6.5.95-4.7 4.6 1.1 6.45L12 17.65 6.2 20.7l1.1-6.45-4.7-4.6 6.5-.95z'/%3E%3C/g%3E%3C/svg%3E");
}
