@charset "UTF-8";

/* =========================================
 * Reset & Variables (Executive Dashboard)
 * ========================================= */

body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f8fafc;
  color: #334155;
  line-height: 1.5;
  font-size: 14px;
}
:root {
  --sidebar-bg: #0f172a; /* Slate 900 */
  --sidebar-text: #94a3b8; /* Slate 400 */
  --sidebar-active: #ffffff;
  --primary: #2563eb; /* Blue 600 */
  --primary-hover: #1d4ed8; /* Blue 700 */
  --accent: #ca8a04; /* Yellow/Gold 600 */
  --bg-main: #f8fafc; /* Slate 50 */
  --card-bg: #ffffff;
  --border: #e2e8f0; /* Slate 200 */
  --text-main: #334155; /* Slate 700 */
  --text-muted: #64748b; /* Slate 500 */
}

/* =========================================
 * Layout (SaaS Dashboard)
 * ========================================= */
.dashboard {
  display: flex;
  height: 100vh;
  overflow: hidden;
}
@media (max-width: 900px) {
  .dashboard { flex-direction: column; overflow: auto; height: auto; }
}

/* =========================================
 * Left Sidebar
 * ========================================= */
.sidebar {
  width: 280px;
  height: 100vh;
  overflow-y: auto;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  padding: 24px;
  flex-shrink: 0;
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.brand__logo { width: 32px; height: 32px; background: var(--accent); border-radius: 4px; }
.brand__name { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: 1px; text-transform: uppercase; }
.brand__sub { font-size: 11px; color: var(--sidebar-text); }

.nav-section { margin-bottom: 30px; }
.nav-heading { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #475569; margin-bottom: 12px; }

.variant { display: flex; flex-direction: column; gap: 4px; }
.variant__btn { background: transparent; border: none; color: var(--sidebar-text); text-align: left; padding: 8px 12px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 500; transition: 0.2s; }
.variant__btn:hover { background: #1e293b; color: #fff; }
.variant__btn.is-active { background: var(--primary); color: #fff; }

.progress { display: flex; flex-direction: column; gap: 8px; }
.progress__step { padding: 8px 12px; border-radius: 6px; font-size: 13px; font-weight: 500; transition: 0.2s; cursor: default; }
.progress__step.is-active { color: var(--sidebar-active); font-weight: 600; background: #1e293b; border-left: 3px solid var(--accent); padding-left: 9px; }

.mt-auto { margin-top: auto; }
.authbar { font-size: 12px; }
.authbar a { color: var(--sidebar-text); text-decoration: none; }
.authbar a:hover { color: #fff; }

/* =========================================
 * Main Workspace
 * ========================================= */
.workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-main);
}
.workspace-header {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  flex-shrink: 0;
}
.header-title { font-size: 18px; font-weight: 600; color: var(--text-main); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.saved { font-size: 12px; color: #10b981; font-weight: 500; display: none; align-items: center; gap: 6px; }
.dot { width: 6px; height: 6px; background: #10b981; border-radius: 50%; display: inline-block; }

.workspace-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.form-panel {
  flex: 1;
  max-width: 760px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  padding: 40px;
}
.preview-panel {
  width: 380px;
  background: transparent;
  flex-shrink: 0;
}
/* プレビュー拡幅（+200px）＝画面幅に応じて段階適用（広幅固定だと1440px画面で
 * フォーム下に折り返すため）。.paperはwidth:100%+aspect-ratio(A4)＝縦は自動で比率維持 */
@media (min-width: 1300px) { .preview-panel { width: 480px; } }
@media (min-width: 1600px) { .preview-panel { width: 580px; } }

/* 縦積み時：サイドバーは幅280px・高さ100vh固定のままだと、モバイルの初期表示が
 * 丸1画面ぶんナビだけになり、プレビュー列(380px固定)も画面幅を超える。
 * 全幅・高さなりに戻し、各パネルの内部スクロールも解除してページの自然スクロールへ。
 * ※ このブロックは .sidebar / .workspace* / .preview-panel の定義より後に置くこと。 */
@media (max-width: 900px) {
  .sidebar { width: auto; height: auto; overflow-y: visible; }
  .workspace { overflow: visible; }
  .workspace-header { padding: 0 16px; }
  .workspace-content { padding: 20px 16px; gap: 20px; overflow-y: visible; }
  .form-panel { padding: 24px 16px; }
  .preview-panel { width: 100%; }
}

/* =========================================
 * Form Elements
 * ========================================= */
.step { display: none; animation: fadeIn 0.2s; }
.step.is-active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.step__title { font-size: 20px; font-weight: 600; color: var(--text-main); margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
/* 他スキン（01/04/05/06/08）と同じ1カラム化。これが無いと2カラムのままで、
 * 入力欄の固有幅×2＝約432pxがフォーム列の下限になり、狭い端末ではみ出す。 */
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.mt-4 { margin-top: 20px; }
/* min-width:0 が無いと入力欄の固有幅が列の下限として残る。幅指定は本体 rirekisy.jp と同じ */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; min-width: 0; }

.field label { font-size: 12px; font-weight: 600; color: var(--text-main); }
.field input, .field select, .field textarea {
  background: #fff; border: 1px solid #cbd5e1; padding: 10px 12px; border-radius: 6px; font-size: 14px; font-family: inherit; color: var(--text-main); transition: 0.15s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.flex-inputs { display: flex; gap: 10px; }
.flex-inputs input { flex: 1; }

/* Buttons */
.btn { font-family: inherit; font-size: 13px; font-weight: 500; padding: 8px 16px; border-radius: 6px; cursor: pointer; transition: 0.15s; border: 1px solid transparent; display: inline-flex; justify-content: center; align-items: center; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); }
.btn--outline { background: #fff; border-color: #cbd5e1; color: var(--text-main); }
.btn--outline:hover { background: #f8fafc; border-color: #94a3b8; }
.ai-btn, .photo__btn, .addrow, .edu-autocalc-btn { width: max-content; }
.addrow { width: 100%; border-style: dashed; }

.subhead--toggle { font-size: 13px; font-weight: 600; color: var(--primary); cursor: pointer; display: inline-block; margin-top: 10px; }
.subhead--toggle:hover { text-decoration: underline; }
.collapse { display: none; }

/* Dynamic Items */
.items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.item { border: 1px solid var(--border); border-radius: 6px; padding: 20px; position: relative; background: #fafafa; }
.item__del { position: absolute; top: 12px; right: 12px; background: none; border: none; color: #ef4444; font-size: 12px; font-weight: 500; cursor: pointer; }
.item__del:hover { text-decoration: underline; }

/* Baito specific */

.days { display: flex; gap: 4px; }
.day { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; font-size: 12px; color: var(--text-muted); }
.day.is-on { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Form Nav */
.nav { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 24px; margin-top: 32px; }
.btn--prev.is-hidden { visibility: hidden; }

/* =========================================
 * Preview Side
 * ========================================= */
.preview-panel .step__title { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); border-bottom: none; margin-bottom: 16px; }
.paper { background: #fff; border: 1px solid var(--border); border-radius: 4px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); width: 100%; aspect-ratio: 1/1.414; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 13px; }
.legal-wrap { margin-top: 20px; font-size: 12px; }
.legal-link { color: var(--text-muted); text-decoration: underline; }

/* =========================================
 * Modals
 * ========================================= */

.authm, .pmodal, .modal, .edu-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.authm__backdrop, .pmodal__backdrop, .modal__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,0.8); }
.authm__box, .pmodal__box, .modal__box, .edu-modal__box { background: #fff; border-radius: 8px; padding: 32px; width: 90%; max-width: 480px; position: relative; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.authm__x, .pmodal__x, .modal__close, .edu-modal__x { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 20px; color: var(--text-muted); cursor: pointer; }

.authm__switch { display: flex; gap: 16px; margin-top: 24px; font-size: 13px; justify-content: center; }
.authm__switch a { color: var(--primary); text-decoration: none; font-weight: 500; }
#authMsg { color: #ef4444; font-size: 13px; font-weight: 500; margin-top: 12px; }
#authMsg.is-ok { color: #10b981; }

.pm-sec { display: flex; flex-direction: column; gap: 12px; align-items: center; }
#pmPreviewImg { max-width: 100%; border-radius: 4px; }
.pm-pick { background: transparent; border: 2px solid transparent; cursor: pointer; border-radius: 4px; overflow: hidden; }
.pm-pick.is-active { border-color: var(--primary); }
.pm-pick img { width: 120px; display: block; }

/* SEO Content */
.seo-content { width: 100%; margin-top: 40px; padding: 40px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); text-align: left; }
.seo-content h2 { font-size: 18px; color: var(--text-main); font-weight: 600; border-bottom: 1px solid var(--border); padding-bottom: 15px; margin-bottom: 25px; }
.seo-content h3 { font-size: 15px; color: var(--text-main); margin-top: 30px; margin-bottom: 15px; font-weight: 600; }
.seo-content p { color: var(--text-muted); margin-bottom: 20px; line-height: 1.8; font-size: 14px; }
.seo-content dl { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.seo-content dt { font-weight: 600; color: var(--text-main); margin-bottom: 8px; margin-top: 20px; font-size: 14px; }
.seo-content dd { margin-bottom: 20px; margin-left: 0; padding-left: 16px; border-left: 3px solid var(--border); color: var(--text-muted); line-height: 1.8; font-size: 14px; }

/* =========================================
 * §3 共通スイープ修正（01基準 → Executive Dashboardテーマへ翻案）
 * 07は .btn/.btn--primary/.btn--outline 体系でモーダルボタンが既に整形済（§3-3・同幅・破壊的は対応済）。
 * ここで補うのは §3-1/2/4/6/7/8/9/10 のみ。配色は07のトークン（--primary:#2563eb / スレート系 / --accent ゴールド）。
 * すべてCSSのみ・インラインstyleは足さない（既存の width:100% 等はHTMLから撤去しCSS化）。
 * ========================================= */

/* §3-1 AI志望動機モーダル(#modal)はエンジンが .is-open で開く（hidden属性は外さない）。 */

/* §3-2 学歴自動計算モーダルの select/number 整形＋レイアウト整頓（07のフィールド体裁に合わせる） */
.edu-modal__box h3 { font-size: 16px; font-weight: 600; color: var(--text-main); margin-bottom: 18px; }
.edu-modal__box > label { display: block; margin-bottom: 12px; font-size: 13px; color: var(--text-main); }

.edu-modal__box select,
.edu-modal__box input[type="number"] {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
}

.edu-modal__box select:focus,
.edu-modal__box input[type="number"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.edu-sub-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; color: var(--text-main); }

.edu-sub-row input[type="number"] { width: 76px; }
.edu-sub-hint { color: var(--text-muted); font-size: 12px; }

/* 汎用モーダルのヘッダー ×（閉じる）＝枠なしの控えめクローズ（.btn未付与の裸ボタンを整える） */
.modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal__head button[data-close] {
  background: none; border: none; color: var(--text-muted);
  font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px;
}
.modal__head button[data-close]:hover { color: var(--text-main); }

/* §3-9 「自動計算」ボタンが直下の学歴入力枠と密着していたので余白を確保 */
.edu-autocalc-btn { margin-bottom: 16px; }

/* §3-8 削除ボタン（絶対配置のテキストリンク）が入力欄に重なる → 上部帯を確保 */
.item { padding-top: 36px; }

/* §3-6 サイドバーのログイン/新規登録リンク（本番は auth.js が状態で上書き）。ダーク地に合わせる。 */
.authbar { display: flex; gap: 12px; align-items: center; }
.authbar__btn { background: var(--primary); border: none; color: #fff; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 500; }
.authbar__btn:hover { background: var(--primary-hover); }

/* §3-4/§3-5 認証モーダルの中身（本物文言・07の配色）＋作成/スキップ同幅（インラインwidth撤去→CSS化） */
#authSubmit { width: 100%; }
.authm__skip { display: block; width: 100%; margin-top: 10px; }
.authm__title { font-size: 18px; font-weight: 600; color: var(--text-main); text-align: center; margin: 0 0 6px; }
.authm__lead { font-size: 12.5px; color: var(--text-muted); text-align: center; margin: 0 0 20px; line-height: 1.7; }
.authm__box .field { margin-bottom: 14px; }
.authm__box .field label { display: block; font-size: 12px; font-weight: 600; color: var(--text-main); margin-bottom: 4px; }
.authm__consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.6; color: var(--text-main); margin: 8px 0 16px; }

.authm__consent a { color: var(--primary); }
.authm__optin { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-main); margin: 10px 0 4px; cursor: pointer; }
.authm__optin-desc { font-size: 13px; color: var(--primary); font-weight: 600; line-height: 1.6; text-align: center; margin: 2px 0 8px; }
.authm__note { font-size: 11px; color: var(--text-muted); line-height: 1.7; margin: 0 0 16px; }
.authm__forgot { text-align: right; font-size: 12px; margin: -6px 0 14px; }
.authm__forgot a { color: var(--primary); text-decoration: none; }
.authm__forgot a:hover { text-decoration: underline; }
.authm__forgot-lead { font-size: 12px; color: var(--text-muted); line-height: 1.7; margin: 0 0 16px; }
/* 既存の .authm__switch は flex 行組みだが、本物文言は説明文＋リンクなので中央寄せの行に上書き */
.authm__switch { display: block; text-align: center; font-size: 12.5px; color: var(--text-muted); margin-top: 20px; line-height: 1.9; }
.authm__switch a { color: var(--primary); font-weight: 600; text-decoration: none; }
.authm__switch a:hover { text-decoration: underline; }

/* §3-10 プログレス完了ステップ ＝ 明色（ダークサイドバー：保留スレート→完了ライト→現在ホワイト+ゴールド左線） */
.progress__step.is-done { color: #cbd5e1; }

/* =========================================
 * 職務経歴書対応（履歴書⇄職務経歴書トグル）
 * data-doc（#app）× data-only で書類別UIをCSS切替（エンジン app.js v29 契約）
 * ※07は例文ボタン/モーダル非搭載（ハイクラスは例文を必要としない＝方針）
 * ========================================= */
[data-doc="resume"] [data-only="career"] { display: none !important; }
[data-doc="career"] [data-only="resume"] { display: none !important; }

/* 「次へ」ボタンの英語表記固定：エンジン(app.js)が show() のたびに #next を
 * 「次へ」「PDFダウンロード」へ書き換えるため、実テキストを font-size:0 で不可視化し
 * ::after の英語ラベルを表示（周囲の英語UIと統一・表示のみの英語化） */
.btn--next { font-size: 0; }
.btn--next::after { content: "Continue"; font-size: 13px; }
/* 最終ステップ（アクティブな書類フォームの最後の step）では Download 表記 */
[data-doc="resume"]:has(#form .step[data-step="6"].is-active) .btn--next::after,
[data-doc="career"]:has(#formCareer .step[data-step="5"].is-active) .btn--next::after { content: "Download PDF"; }

/* 書類切替トグル（ダークサイドバー・SaaS調） */
.doctoggle { display: inline-flex; align-items: center; gap: 10px; }
.doctoggle__label { font-size: 13px; font-weight: 600; color: var(--sidebar-text); cursor: pointer; white-space: nowrap; transition: color .15s; }
.doctoggle__label.is-active { color: var(--sidebar-active); }
.doctoggle__sw { width: 44px; height: 24px; border-radius: 999px; background: #1e293b; border: 1px solid #334155; position: relative; cursor: pointer; padding: 0; }
.doctoggle__knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); transition: transform .2s; }
[data-doc="career"] .doctoggle__knob { transform: translateX(20px); }

/* ステップ内リード文 */
.step__lead { font-size: 13px; color: var(--text-muted); margin: -12px 0 24px; line-height: 1.7; }

/* エンジンが .paper へ差し込む案内文（strong+div）が flex-row で横並びになるため縦組みへ */
.paper { flex-direction: column; gap: 6px; text-align: center; }

/* mpModal本物化: mpm__* (Rirekisy parity) */

.mpm__logout{background:none;border:0;color:var(--text-muted);text-decoration:underline;cursor:pointer;font-size:13px;font-family:inherit;}
.mpm__email{font-size:12.5px;color:var(--text-muted);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

.mpm__item{border:1px solid var(--border);border-radius:10px;padding:12px 14px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;}

.mpm__type{display:inline-block;font-weight:700;font-size:11.5px;color:var(--primary);border:1px solid var(--primary);border-radius:999px;padding:1px 9px;margin-bottom:4px;}
.mpm__fmt{font-weight:700;color:var(--text-main);font-size:13.5px;}
.mpm__date{font-size:12px;color:var(--text-muted);margin-top:2px;}
.mpm__btn{display:inline-block;padding:8px 14px;border-radius:9px;font-size:13px;font-weight:700;text-decoration:none;cursor:pointer;font-family:inherit;border:1px solid var(--border);background:var(--card-bg);color:var(--text-main);transition:border-color .15s,filter .15s;}
.mpm__btn:hover{border-color:var(--primary);}
.mpm__btn--dl{background:var(--accent);color:#fff;border-color:var(--accent);}
.mpm__btn--edit{background:var(--primary);color:#fff;border-color:var(--primary);}
.mpm__btn--dl:hover{filter:brightness(1.03);}
.mpm__empty{font-size:13.5px;color:var(--text-muted);line-height:1.8;}
.mpm__empty a{color:var(--primary-hover);font-weight:700;}

.mpm__new{display:inline-block;font-size:13px;color:var(--primary-hover);font-weight:700;text-decoration:none;}

.mpm__foot{margin-top:20px;padding-top:14px;border-top:1px solid var(--border);text-align:right;}
.mpm__delete{background:none;border:0;color:var(--text-muted);font-size:12px;cursor:pointer;font-family:inherit;text-decoration:underline;padding:0;}
.mpm__delete:hover{color:#d05a5a;}
.mpm__delete:disabled{opacity:.6;cursor:default;}

/* AI生成モーダルのボタン間隔（閉じる/生成する）を確保 */
.modal__foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }

/* 法務モーダルのリンク（利用規約/プライバシーへ実ページ誘導） */
.legal-links { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.legal-links a { color: var(--accent, var(--primary, #2563eb)); font-weight: 700; text-decoration: none; border: 1px solid var(--line-strong, var(--border, #d5d5d5)); border-radius: 10px; padding: 13px 16px; text-align: center; transition: border-color .12s; }
.legal-links a:hover { border-color: var(--accent, var(--primary, #2563eb)); }

/* 規約/プラポリ内の補助リンク（運営会社・お問い合わせ）＝テキストリンク */
.legal-sub { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 16px 0 0; font-size: 13px; }
.legal-sub a { color: var(--text-muted); text-decoration: underline; }
.legal-sub a:hover { color: var(--primary); }

/* =========================================
 * 証明写真モーダル（レイアウト）
 * 本体 rirekisy.jp と同一のクラス契約。囲み（.pm-choose/.pm-canvas-wrap/
 * .pm-actions/.pm-preview/.pm-compare）ごとに並びを決める。これが無いと
 * canvas と同じ行にボタンが流れ込み、「選び直す」が写真の右へ回り込む。
 * ========================================= */
.pm-sec[hidden] { display: none; }
.pmodal__box { max-height: calc(100vh - 36px); overflow-y: auto; }
.pmodal__title { font-size: 17px; font-weight: 800; color: var(--text-main); text-align: center; margin: 0 0 4px; }
.pmodal__lead { font-size: 12px; color: var(--text-muted); text-align: center; line-height: 1.7; margin: 0 0 16px; }

.pm-choose { display: flex; flex-direction: column; gap: 10px; }

.pm-canvas-wrap { display: flex; justify-content: center; margin: 4px 0 14px; }
#pmCanvas { width: 270px; height: 360px; max-width: 100%; touch-action: none; cursor: grab; }

.pm-actions { display: flex; gap: 10px; margin-top: 4px; }
.pm-actions .pm-btn { flex: 1; width: auto; }
.pm-actions--col { flex-direction: column; }
.pm-actions--col .pm-btn { width: 100%; }

.pm-preview { display: flex; justify-content: center; margin-bottom: 14px; }
.pm-preview img { width: 180px; height: 240px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }

.pm-gender { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 14px; font-size: 13px; color: var(--text-main); }
.pm-gender__label { font-weight: 700; font-size: 12px; color: var(--text-muted); }
.pm-gender label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }

.pm-note { font-size: 11px; color: var(--text-muted); line-height: 1.7; margin: 12px 0 0; text-align: left; }

.pm-loading { text-align: center; padding: 30px 0; color: var(--text-muted); font-size: 13px; line-height: 1.8; }
.pm-spinner { width: 40px; height: 40px; border: 4px solid var(--border); border-top-color: var(--primary); border-radius: 50%; margin: 0 auto 16px; animation: pmspin .9s linear infinite; }
@keyframes pmspin { to { transform: rotate(360deg); } }

.pm-compare { display: flex; gap: 12px; margin-bottom: 16px; }
.pm-compare .pm-pick { flex: 1; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; background: var(--card-bg); border: 2px solid var(--border); border-radius: 6px; cursor: pointer; font-family: inherit; }
.pm-compare .pm-pick img { width: 100%; max-width: none; aspect-ratio: 3/4; object-fit: cover; border-radius: 6px; display: block; }
.pm-compare .pm-pick span { font-size: 12.5px; font-weight: 700; color: var(--text-main); }
.pm-compare .pm-pick.is-active { border-color: var(--primary); }

.pm-btn--ai { background:var(--accent);color:#fff;border-color:var(--accent); }
.pm-btn--ghost { background: none; border: none; color: var(--text-muted); text-decoration: underline; font-size: 12.5px; padding: 6px; box-shadow: none; }

/* 狭い画面でも canvas(270x360) を縮めない。photo.js はドラッグ量を canvas の
 * 実ピクセルとして扱うため、CSSで縮小すると操作量と表示がずれ、3:4も崩れる。
 * そこでキャンバスではなくモーダル側の幅・余白で270pxを確保する。 */
@media (max-width: 460px) {
  .pmodal__box { width: calc(100% - 16px); padding-left: 14px; padding-right: 14px; }
}
