@charset "UTF-8";
/* ============================================================
   YOGA FIRE ｜ AI Pricing Command - 共通デザインレイヤー
   各画面の <style> の後に読み込むこと（後勝ちで上書きする）
   ============================================================ */

/* ------------------------------------------------------------
   1. デザイントークン
   ------------------------------------------------------------ */
:root{
  --bg:#f5f7fb; --surface:#fff; --surface2:#f8fafc; --text:#172033;
  --muted:#667085; --line:#e4e7ec; --primary:#2563eb; --primary-soft:#eff6ff;
  --danger:#d92d20; --danger-soft:#fff1f0; --success:#067647; --success-soft:#ecfdf3;
  --warning:#b54708; --warning-soft:#fffaeb; --nav:#101828;

  --fire-red:#ff3b1f;
  --fire-orange:#ff7a00;
  --fire-yellow:#ffc400;
  --fire-dark:#32120b;
  --yf-ink:#161616;
  --yf-cream:#fff8f4;
}

/* ------------------------------------------------------------
   2. ベース
   ------------------------------------------------------------ */
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Hiragino Sans","Noto Sans JP",sans-serif;
  background:var(--bg);color:var(--text);font-size:14px;
}
h1{font-size:24px;letter-spacing:-.02em;margin:0 0 18px}
h2{font-size:16px;margin:0 0 10px}
h3{font-size:14px}
.note,.login-sub{color:var(--primary)}

/* ------------------------------------------------------------
   3. ヘッダー
   ------------------------------------------------------------ */
.header{
  height:64px;padding:0 24px;background:linear-gradient(90deg,#fff 0%,#fff 72%,#fff7f2 100%);
  border-bottom:1px solid var(--line);position:sticky;top:0;z-index:30;
  box-shadow:0 1px 2px rgba(16,24,40,.04);
}
.header-right{color:var(--muted)}
.admin-badge{
  border:0;border-radius:999px;background:var(--nav);color:#fff;
  font-size:10px;font-weight:800;padding:4px 10px;letter-spacing:.04em;
  white-space:nowrap;align-self:center;
}

/* --- ロゴ（YOGA FIRE） --- */
.logo{display:flex;align-items:center;gap:11px;font-weight:inherit;font-size:17px;color:var(--nav)}
/* 画像ロゴ（assets/YOGAFIRE_logo.jpg：原寸 420x65） */
.yf-logo-img{display:block;height:30px;width:auto;image-rendering:auto}
.yf-mark{
  width:34px;height:38px;position:relative;display:inline-flex;align-items:center;justify-content:center;
  filter:drop-shadow(0 3px 6px rgba(255,79,0,.18));
}
.yf-mark svg{width:34px;height:38px;display:block}
.yf-brand{display:flex;flex-direction:column;line-height:1}
.yf-word{
  display:flex;align-items:baseline;gap:6px;
  font-size:20px;font-weight:950;letter-spacing:-.05em;color:var(--yf-ink);
}
.yf-word .fire{color:var(--fire-red);font-style:italic;text-shadow:1px 1px 0 #ffd6c7}
.yf-command{margin-top:3px;font-size:8.5px;font-weight:800;letter-spacing:.12em;color:#8a4b3c}
.yf-command b{color:var(--fire-red)}

/* ------------------------------------------------------------
   4. レイアウト・サイドバー
   ------------------------------------------------------------ */
.layout{min-height:calc(100vh - 64px)}
.sidebar{
  width:232px;border-right:1px solid var(--line);padding:18px 12px;background:#fff;
  position:sticky;top:64px;height:calc(100vh - 64px);overflow-y:auto;
}
.sidebar li{border:0;padding:0;margin:3px 0;border-radius:8px}
.sidebar li a{margin:0;padding:10px 12px;border-radius:8px;color:#475467;display:block}
.sidebar li a:hover{background:#f2f4f7;color:#101828}
.sidebar li.current{background:var(--primary-soft)}
.sidebar li.current a{color:var(--primary);font-weight:700}
.sidebar .group{padding:17px 12px 6px;color:#98a2b3;text-transform:none;font-size:11px}
.main{padding:28px 32px;min-width:0;max-width:1680px}

.breadcrumb{font-size:12px;color:var(--muted);margin-bottom:14px}
.breadcrumb a{color:var(--primary);text-decoration:none}
.breadcrumb a:hover{text-decoration:underline}

/* ------------------------------------------------------------
   5. カード・パネル・情報ボックス
   ------------------------------------------------------------ */
.card,.panel,.tab-panel,.login-box,.box{
  border:1px solid var(--line);border-radius:12px;background:#fff;
  box-shadow:0 1px 3px rgba(16,24,40,.04);
}
.card,.panel,.tab-panel{padding:20px;margin-bottom:20px}
.panel{border-width:1px}
.panel-title{border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:14px;font-size:15px}
.card-head{margin-bottom:14px}
.dashed{border:1px dashed #d0d5dd;border-radius:10px}

.fetch-status,.summary-box,.alert-box,.info-box,.flash,.progress,.preview-bar,.rule-preview,.readonly-notice{
  border:0;border-radius:9px;background:var(--surface2);padding:12px 14px;color:#475467;line-height:1.7;
}
.fetch-box,.check-box,.sentence-box,.drop-area,.placeholder,.demo-box,.empty-state,.log{
  border:1px solid var(--line);border-radius:10px;background:var(--surface2);color:#475467;
}
.fetch-box,.check-box,.sentence-box{padding:14px}
.alert-box,.fetch-status.attn{background:var(--warning-soft);color:#7a3c06}
.flash{background:var(--success-soft);color:var(--success)}
.flash-error{background:var(--danger-soft);color:var(--danger)}
.progress{background:var(--primary-soft);color:#1e40af}
.progress strong{font-size:16px;color:var(--primary)}
.error{border:0;border-radius:9px;background:var(--danger-soft);color:var(--danger);padding:11px 13px;font-weight:600}
.alert{color:var(--danger)}
.cell-sub,.sub,.status-sub{font-size:10px;line-height:1.5;margin-top:4px;color:var(--muted)}
.status-sub-alert{color:#9f251a}
.diff-down{color:var(--danger);font-size:13px;font-weight:700}

/* ------------------------------------------------------------
   6. フォーム
   ------------------------------------------------------------ */
label{color:#475467;font-size:12px;font-weight:600}
input[type=text],input[type=password],input[type=number],input[type=date],select,textarea{
  border:1px solid #d0d5dd;border-radius:8px;padding:9px 11px;min-height:40px;
  outline:none;transition:.15s;background:#fff;font-family:inherit;
}
input[type=text]:focus,input[type=password]:focus,input[type=number]:focus,
input[type=date]:focus,select:focus,textarea:focus{
  border-color:#84adff;box-shadow:0 0 0 3px #eff4ff;
}
textarea{min-height:auto}
.required{
  border:0;border-radius:999px;background:var(--danger-soft);color:var(--danger);
  font-size:10px;font-weight:800;padding:3px 8px;margin-left:6px;vertical-align:1px;
}
.form-actions{border-top:1px solid var(--line);padding-top:18px;gap:10px}
.kind-box,.mall-list,.shop-scope,.shop-scope-list,.item-box,.pick-box,.file-box,.modal-sec{
  border:1px solid var(--line);background:var(--surface2);border-radius:10px;padding:12px;
}
.shop-scope{border-top:1px solid var(--line)}
.set-inline select,.set-inline input[type=text]{min-height:34px;padding:5px 8px}
.kw-table input[type=text]{min-height:34px;padding:5px 8px}
/* WF-17「出品を記録」の商品ページURL欄。固定部分（ホストと店舗のパス）は入力欄の前後に置く。 */
.url-inline .url-fixed{
  display:flex;align-items:center;min-height:40px;padding:0 9px;
  border:1px solid #d0d5dd;border-radius:8px;background:var(--surface2);
  color:#475467;font-size:12px;font-weight:600;
}
.url-inline.url-pasted .url-fixed{color:#98a2b3;background:#f9fafb}

/* ------------------------------------------------------------
   7. ボタン
   ------------------------------------------------------------ */
.btn{
  border:1px solid #d0d5dd;border-radius:8px;background:#fff;padding:9px 14px;
  font-weight:600;color:#344054;transition:.15s;
}
.btn:hover{background:#f9fafb;border-color:#98a2b3}
.btn-primary,a.btn-primary{background:var(--primary);border-color:var(--primary);color:#fff}
.btn-primary:hover{background:#1d4ed8;border-color:#1d4ed8}
.btn-sm{padding:6px 10px;font-size:12px}
.btn-xs{padding:4px 8px;font-size:11px;border-radius:6px}
.btn-disabled,.btn-disabled:hover{color:#98a2b3;border-color:var(--line);background:#f9fafb;cursor:default}
.btn-block{display:block;width:100%}

/* ------------------------------------------------------------
   8. バッジ・タグ
   ------------------------------------------------------------ */
.badge{border:0;border-radius:999px;padding:3px 8px;font-weight:700;font-size:10px;background:#f2f4f7;color:#475467}
.badge-alert{background:var(--danger-soft);color:var(--danger)}
.badge-fill{background:var(--success-soft);color:var(--success)}
.badge-off{background:#f2f4f7;color:var(--muted)}
.review-tag,.learn-tag{
  border:0;border-radius:999px;background:var(--nav);color:#fff;
  font-size:10px;font-weight:700;padding:2px 8px;
}
.review-tag.data,.learn-tag.off{background:#f2f4f7;color:#475467}

/* ------------------------------------------------------------
   9. テーブル
   ------------------------------------------------------------ */
table{
  border-collapse:separate;border-spacing:0;font-size:12px;border:1px solid var(--line);
  border-radius:10px;overflow:hidden;background:#fff;
}
th,td{border:0;border-bottom:1px solid var(--line);padding:10px 9px}
th{background:var(--surface2);color:#475467;font-size:11px;font-weight:700}
tr:last-child td{border-bottom:0}
tr:hover td{background:#f9fbff}
.set-table th,.form-table th{background:var(--surface2);border-right:1px solid var(--line)}
.total-row td,.total-row:hover td{background:#f2f4f7;font-weight:800}
.lv1 td,.lv1:hover td{background:var(--surface2);font-weight:800}
/* 実行中の行（WF-29-2）。薄い青で「いま動いているもの」を目立たせる。 */
.row-current td,.row-current:hover td{background:#f7f9fc}
.row-draft td,.row-draft:hover td{background:#fcfcfd;color:#98a2b3}
tr.row-off td,tr.row-off:hover td{background:#f9fafb;color:#98a2b3}
.row-closed td,.row-closed:hover td{background:#f9fafb;color:#98a2b3}
/* 行全体を薄いグレーにしても、押せるボタンは薄くしない。
   a.btn は color:inherit（base.css）でセルの色をそのまま拾うため、
   そのままだと無効表示（.btn-disabled）と見分けが付かなくなる。 */
.row-draft td a.btn:not(.btn-disabled),
.row-off td a.btn:not(.btn-disabled),
.row-closed td a.btn:not(.btn-disabled){color:#344054}
.thumb,.thumb-item{border:1px solid var(--line);border-radius:7px;background:var(--surface2);color:#98a2b3}
.thumb{width:44px;height:44px}
.thumb-lg{width:96px;height:96px}
.num{text-align:right}

.pager{margin-top:14px}
.pager span,.pager a{
  display:inline-block;border:1px solid var(--line);border-radius:7px;margin:0 2px;
  background:#fff;padding:6px 10px;text-decoration:none;color:#475467;
}
.pager a{color:var(--primary)}
.pager .pager-current{background:var(--nav);border-color:var(--nav);color:#fff}
.pager .pager-off{color:#98a2b3}

/* ------------------------------------------------------------
   10. タブ
   ------------------------------------------------------------ */
.tabs{gap:6px;margin-bottom:14px}
.tabs .tab{
  border:1px solid var(--line);border-radius:999px;background:#fff;margin-right:0;
  padding:7px 14px;font-size:12px;font-weight:700;color:#475467;
}
.tabs .tab.current{background:var(--nav);color:#fff;border-color:var(--nav)}
.mode-tabs{gap:6px}
.mode-tabs a{
  border:1px solid var(--line);border-radius:10px 10px 0 0;background:var(--surface2);
  color:#475467;font-weight:700;
}
.mode-tabs a:last-child{border-right:1px solid var(--line)}
.mode-tabs a.current{background:#fff;color:var(--primary);border-bottom-color:#fff}

/* ------------------------------------------------------------
   11. モーダル
   ------------------------------------------------------------ */
/* .modal は全画面オーバーレイ（base.css）で、装飾が付くのは中身の箱の .modal-box。
   .modal に border-radius / box-shadow を当てないこと（見えないうえ紛らわしい）。 */
.modal-overlay,.backdrop{backdrop-filter:blur(2px)}
.modal{background:rgba(16,24,40,.45)}
.modal-box,.modal-wrap{border:0;border-radius:14px;box-shadow:0 24px 48px rgba(16,24,40,.2)}
.modal-header,.modal-head{background:#fff;border-bottom:1px solid var(--line);padding:16px 20px;font-size:16px}
/* .modal-box が自分で padding を持つので、その中の見出し・脚は横 padding を戻す。 */
.modal-box{padding:20px}
.modal-box .modal-head{padding:0 0 14px;margin-bottom:16px}
.modal-box .form-actions{padding:14px 0 0}
.modal-body{padding:20px}
.modal-footer,.modal-foot{border-top:1px solid var(--line);padding:14px 20px}

/* ------------------------------------------------------------
   12. フィルタ／一括操作バー
   ------------------------------------------------------------ */
.filter-bar,.opt-bar,.sort-ctrl{
  border:1px solid var(--line);border-radius:10px;background:var(--surface2);
  padding:10px 12px;color:#475467;
}
.bulk-bar{
  position:sticky;top:64px;z-index:20;border:1px solid #ffd2bf;background:#fff8f4;
  border-radius:10px;padding:10px 12px;margin:14px 0;box-shadow:0 4px 12px rgba(16,24,40,.05);
  display:flex;align-items:center;justify-content:space-between;gap:8px;
}
.yf-bulk-left{display:flex;align-items:center;gap:8px}
.yf-bulk-actions{display:flex;align-items:center;gap:8px}

.ux-filter-title{display:flex;justify-content:space-between;align-items:center;margin:10px 0 8px}
.ux-filter-title strong{font-size:13px}
.ux-filter-toggle{font-size:12px;color:var(--primary);cursor:pointer;font-weight:700}
.ux-advanced.hidden{display:none}

/* ------------------------------------------------------------
   13. KPI カード／クイックタブ
   ------------------------------------------------------------ */
.ux-summary{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;margin-bottom:16px}
.ux-kpi{background:#fff;border:1px solid var(--line);border-radius:10px;padding:14px;position:relative;overflow:hidden;min-height:86px}
.ux-kpi:first-child{background:linear-gradient(135deg,#fff7f2,#fff)}
.ux-kpi-label{font-size:11px;color:var(--muted);font-weight:700;margin-bottom:5px}
.ux-kpi-value{font-size:22px;font-weight:800;letter-spacing:-.03em}
.ux-kpi small{font-size:11px;color:var(--muted);font-weight:500}
.ux-kpi.attn{border-color:#fecaca;background:#fffafa}
.ux-kpi.attn .ux-kpi-value{color:var(--danger)}
.ux-kpi.attn::after{
  content:"";position:absolute;right:-18px;bottom:-28px;width:74px;height:74px;border-radius:50%;
  background:radial-gradient(circle,#ffb27d 0,#ff6b35 40%,transparent 70%);opacity:.16;
}
.ux-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 14px}
.ux-tab{
  border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 11px;
  font-size:12px;font-weight:700;color:#475467;cursor:pointer;
}
.ux-tab.active{background:var(--nav);color:#fff;border-color:var(--nav)}

/* 既存の .stats / .stat を KPI カードの見た目に合わせる */
.stats{gap:12px;margin-bottom:16px}
.stat{border:1px solid var(--line);border-radius:10px;padding:14px;box-shadow:0 1px 3px rgba(16,24,40,.04)}
.stat .stat-label{font-size:11px;color:var(--muted);font-weight:700;margin-bottom:5px}
.stat .stat-num{font-size:26px;font-weight:800;letter-spacing:-.03em}
.stat .stat-unit{font-size:11px;color:var(--muted);font-weight:500}
.stat .stat-sub{font-size:11px;color:var(--muted);margin-top:6px;line-height:1.6}
.stat.attn{border-color:#fecaca;background:#fffafa}
.stat.attn .stat-num{color:var(--danger)}

/* ------------------------------------------------------------
   14. YOGA FIRE コマンドコンソール
   ------------------------------------------------------------ */
.yf-console{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:14px 16px;margin-bottom:16px;border:1px solid #fed7aa;border-radius:12px;
  background:linear-gradient(90deg,#fffaf7,#fff);
}
.yf-console-left{display:flex;align-items:center;gap:14px;min-width:0}
.yf-console-title{font-size:13px;font-weight:800;color:#7c2d12;white-space:nowrap}
.yf-command-track{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-weight:900;font-size:12px}
.yf-step{
  display:inline-flex;align-items:center;gap:5px;padding:7px 10px;border-radius:8px;
  background:#fff;border:1px solid #f4c7b6;color:#7c2d12;
}
.yf-step.current{
  color:#fff;border-color:transparent;background:linear-gradient(135deg,#ff3b1f,#ff7a00);
  box-shadow:0 5px 12px rgba(255,76,24,.18);
}
.yf-arrow{color:#f97316;font-weight:950}
.yf-shortcut{
  font-size:11px;color:#9a3412;font-weight:800;background:#ffedd5;border-radius:8px;
  padding:7px 10px;white-space:nowrap;
}
.yf-primary-status{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  margin:0 0 14px;padding:12px 14px;border-radius:10px;background:#111827;color:#fff;
}
.yf-primary-status strong{font-size:13px}
.yf-primary-status span{font-size:11px;color:#d1d5db}
.yf-primary-status .hot{color:#ffb38f;font-weight:900}
.yf-table-hint{
  display:flex;align-items:center;justify-content:space-between;margin:12px 0 8px;
  font-size:11px;color:var(--muted);
}
.yf-flow{
  display:inline-flex;align-items:center;gap:7px;padding:5px 9px;border-radius:999px;
  background:#fff7ed;color:#9a3412;font-size:10px;font-weight:800;border:1px solid #fed7aa;
  margin-left:8px;vertical-align:middle;
}
.yf-flow .punch{color:var(--fire-red)}

/* ------------------------------------------------------------
   15. 発動ボタン（炎）
   ------------------------------------------------------------ */
.yf-action-flame{
  width:23px;height:27px;display:block;color:#ff4b20;
  filter:drop-shadow(0 2px 3px rgba(255,75,32,.22));
}
.yf-icon-fire{
  width:42px;height:42px;padding:0!important;display:inline-flex!important;
  align-items:center;justify-content:center;border:1px solid #ffd2bf!important;
  border-radius:10px!important;background:#fff8f4!important;cursor:pointer;
  transition:.15s;vertical-align:middle;
}
.yf-icon-fire:hover{
  background:#fff0e8!important;border-color:#ff9b75!important;
  transform:translateY(-1px);box-shadow:0 5px 12px rgba(255,76,24,.16);
}
.yf-icon-fire:hover .yf-action-flame{animation:yfFlicker .28s infinite alternate}
.yf-icon-fire:active{transform:scale(.95)}
.yf-icon-fire.large{width:48px}
.yf-icon-fire.large .yf-action-flame{width:27px;height:31px}
.yf-fire-col,.yf-action-cell{text-align:center!important}
.yf-mini-fire{
  display:inline-flex;align-items:center;justify-content:center;gap:4px;
  border:0;border-radius:8px;padding:7px 10px;color:#fff;text-decoration:none;
  font-weight:900;font-size:11px;cursor:pointer;
  background:linear-gradient(135deg,#ff3b1f,#ff7a00);
  box-shadow:0 3px 8px rgba(255,76,24,.18);
}
.yf-mini-fire:hover{filter:brightness(.96);transform:translateY(-1px)}
.yf-fire-btn{
  background:#fff8f4!important;border:1px solid #ffd2bf!important;
  box-shadow:none!important;color:#ff4b20!important;
}
.yf-fire-btn .flame{display:inline-block;margin-right:5px;transform-origin:50% 80%}
.yf-fire-btn:hover .flame{animation:yfFlicker .28s infinite alternate}
.yf-bulk-fire{font-size:13px!important;padding:9px 16px!important}
#recordPrimary.yf-fire-btn{min-width:52px;height:42px;padding:0!important;display:inline-flex;align-items:center;justify-content:center}
.yf-step.current .yf-action-flame{width:15px;height:18px;color:#fff;filter:none}
tr[data-state="open"] td:first-child{box-shadow:inset 3px 0 0 #ff8a5b}
tr[data-state="open"]:hover td{background:#fffaf7}

@keyframes yfFlicker{
  from{transform:rotate(-5deg) scale(.96)}
  to{transform:rotate(4deg) scale(1.09)}
}

/* ------------------------------------------------------------
   16. 発動エフェクト
   ------------------------------------------------------------ */
.yf-fire-overlay{
  pointer-events:none;position:fixed;inset:0;z-index:9999;display:none;
  align-items:center;justify-content:center;overflow:hidden;
  background:rgba(25,7,2,.10);backdrop-filter:blur(1px);
}
.yf-fire-overlay.show{display:flex;animation:yfOverlay .7s ease both}
.yf-burst{
  position:absolute;width:420px;height:420px;border-radius:50%;
  background:radial-gradient(circle at 50% 55%,#fff 0 4%,#ffe87a 5% 12%,#ff9a00 13% 26%,
    #ff3b1f 27% 40%,rgba(255,59,31,.20) 41% 57%,transparent 58%);
  filter:blur(.2px);transform:scale(.25);opacity:0;
  animation:yfBurst .72s cubic-bezier(.18,.8,.2,1) both;
}
.yf-fire-overlay::before,.yf-fire-overlay::after{
  content:"";position:absolute;left:10%;right:10%;height:70px;top:50%;
  background:linear-gradient(90deg,transparent,#ffb000 15%,#ff3b1f 50%,#ffb000 85%,transparent);
  filter:blur(14px);opacity:.65;transform:scaleX(.2);
  animation:yfSweep .65s ease-out both;
}
.yf-fire-overlay::after{filter:blur(30px);opacity:.35;height:120px}
.yf-fire-text{
  position:relative;z-index:2;text-align:center;color:#fff;
  font-weight:950;font-style:italic;font-size:42px;letter-spacing:-.04em;
  text-shadow:0 3px 0 #a81c0a,0 0 24px #ff9a00;
  transform:scale(.7);opacity:0;animation:yfText .58s .08s ease-out both;
}
.yf-fire-text small{
  display:block;margin-top:9px;font-size:13px;font-style:normal;letter-spacing:.08em;
  text-shadow:0 1px 5px rgba(0,0,0,.6);
}
.yf-fire-text .yf-action-flame{
  width:58px;height:68px;color:#ff5a22;margin:0 auto 8px;filter:drop-shadow(0 0 18px #ff9a00);
}
@keyframes yfBurst{0%{opacity:0;transform:scale(.2)}25%{opacity:1}100%{opacity:0;transform:scale(1.45)}}
@keyframes yfSweep{0%{transform:scaleX(.1);opacity:0}25%{opacity:.9}100%{transform:scaleX(1.35);opacity:0}}
@keyframes yfText{0%{opacity:0;transform:scale(.68) rotate(-3deg)}60%{opacity:1;transform:scale(1.04)}100%{opacity:1;transform:scale(1)}}
@keyframes yfOverlay{0%{background:rgba(25,7,2,0)}30%{background:rgba(25,7,2,.22)}100%{background:rgba(25,7,2,0)}}

/* ------------------------------------------------------------
   17. ログイン画面
   ------------------------------------------------------------ */
.login-box{padding:34px;border-radius:14px;box-shadow:0 12px 32px rgba(16,24,40,.08)}
.login-brand{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:16px}
.login-brand .yf-logo-img{height:40px}
.login-brand .yf-mark,.login-brand .yf-mark svg{width:40px;height:45px}
.login-brand .yf-word{font-size:27px}
.login-title{font-size:14px;font-weight:700;color:#475467;margin-bottom:6px}
.login-sub{margin-bottom:24px;font-size:9px;font-weight:800;letter-spacing:.12em;color:#8a4b3c}
.login-sub b{color:var(--fire-red)}
.demo-box{margin-top:22px;padding:14px}

/* ------------------------------------------------------------
   18. 提案実行の状況（WF-29）
   ------------------------------------------------------------ */
.page-status,.from-history{border:1px solid var(--line);border-radius:12px;padding:12px 14px}
.page-status{background:var(--surface)}
.from-history{background:var(--warning-soft);border-color:#fde68a;color:#7c4a02}
.prog-pct{font-size:32px;letter-spacing:-.02em}
.prog-bar{border:1px solid var(--line);border-radius:999px;background:var(--surface2)}
.prog-fill{border-radius:999px}
.prog-fill.run{background:var(--primary)}
.prog-fill.done{background:var(--success)}
.prog-fill.fail{background:var(--danger)}
.prog-fill.stop{background:#d0d5dd}
.prog-meta{gap:22px;color:var(--muted)}
.prog-meta b{color:var(--text)}
.chip{border-radius:999px;border-color:var(--line);font-weight:700;color:#475467}
.chip.active{background:var(--nav);border-color:var(--nav);color:#fff}
.log{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}

/* ------------------------------------------------------------
   19. YOGA｜判断を同期 ダイアログ（WF-17 / WF-16-2）

   「提案と異なる価格で採用する」で開く大きいダイアログ。外枠は base.css の
   .modal / .modal-box をそのまま使い、ここでは幅・高さと中の並びだけ足す
   （.modal-box より詳細度を高くする）。
   ------------------------------------------------------------ */
/* 高さは中身なり。画面に収まらなければ .modal（オーバーレイ）ごと縦にスクロールする。
   **本文だけを内側でスクロールさせない**（AIのセクションまで含めて上から順に読む画面なので、
   ヘッダと脚だけが残って本文が別枠で動くと読みにくい）。 */
.modal-box.yg-dialog{width:min(1040px,100%);padding:0}
.modal-box.yg-dialog .modal-head{padding:16px 20px;margin:0}
.modal-box.yg-dialog .form-actions{padding:14px 20px;border-top:1px solid var(--line);background:#fff}
.yg-target{font-size:10px;font-weight:700;color:#475467;margin-top:5px}
.yg-body{background:var(--surface2);padding:14px 20px;display:flex;flex-direction:column;gap:14px}
.yg-sec{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 14px}
.yg-sec h3{margin:0}
.yg-sec>.note:last-child{margin-bottom:0}
.yg-basic{display:grid;grid-template-columns:220px 1fr 1fr;gap:12px 18px;align-items:start}
.yg-basic-note{grid-column:1/-1;margin-top:0}
/* 出品予定の行から開いたときだけ出す商品ページURL欄。3列にまたがる。 */
.yg-url{grid-column:1/-1}
.yg-url>.note{margin-bottom:0}
.yg-pricewrap{display:flex;align-items:center;gap:8px}
.yg-pricewrap input{flex:1;font-weight:700}
.yg-pricewrap span{font-size:12px;font-weight:700;color:var(--muted)}
.yg-ref{font-size:11px;line-height:1.7;color:var(--muted)}
.yg-prompt{min-height:120px;resize:vertical}

/* AI への連携が未実装のセクション。**読めるが操作するものが無い**ことを見せる。
   判断プロンプトの欄も連携が付くまでは disabled なので、ここで無効表示にする
   （WF-16-2 のフル版・WF-17 の簡易版どちらの #yogaModal でも使う）。 */
.yg-todo{background:var(--surface2);border-style:dashed}
.yg-todo h3{color:var(--muted)}
.yg-prompt:disabled{background:var(--surface2);color:#98a2b3;cursor:default;resize:none}
.yg-prompt-foot .btn:disabled,.yg-prompt-foot .btn:disabled:hover{
  color:#98a2b3;border-color:var(--line);background:#f9fafb;cursor:default;
}


/* ------------------------------------------------------------
   21. PRICE FIGHT（WF-16-2）

   クラス名はワイヤー（wireframe/16-2_price_race.html）の `pr-*` をそのまま使う
   （あとからワイヤーと見比べられるように）。色・角丸・影は §1 のトークンに寄せ、
   ワイヤーの直書きの色は置き換えてある。
   ------------------------------------------------------------ */

/* --- 上部固定エリア（PRICE FIGHT 〜 QUICK ACCESS）---
   .main の padding（28px 32px）を打ち消して左右いっぱいに背景を敷き、
   下を流れるカードが横から覗かないようにする。ヘッダー（sticky・高さ64px）の直下に貼る。
   既定は固定ON。📌ボタンで解除したときだけ body.yf-nofix が付いて通常スクロールに戻る。 */
.pr-fixedhead{
  position:sticky;top:64px;z-index:20;
  margin:-28px -32px 14px;padding:28px 32px 12px;
  background:var(--bg);border-bottom:1px solid var(--line);
  box-shadow:0 6px 14px -8px rgba(16,24,40,.22);
}
.pr-fixedhead>:last-child{margin-bottom:0}
body.yf-nofix .pr-fixedhead{position:static;border-bottom:0;box-shadow:none}

.yf-pin{
  display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;margin-left:4px;
  border:1px solid #d0d5dd;border-radius:999px;background:var(--surface);color:#475467;
  padding:6px 11px;font-family:inherit;font-size:10px;font-weight:800;line-height:1.4;
  white-space:nowrap;cursor:pointer;
}
.yf-pin:hover{border-color:#98a2b3;background:var(--surface2)}
.yf-pin[aria-pressed="true"]{border-color:var(--nav);background:var(--nav);color:#fff}
.yf-pin .yf-pin-ico{font-size:11px;line-height:1}

/* --- RACE CLOCK / ACTION NOW --- */
.pr-battle-strip{
  display:grid;grid-template-columns:minmax(420px,.9fr) minmax(520px,1.1fr);
  gap:16px;align-items:stretch;width:100%;margin:0 0 16px;
}
.pr-raceclock,.pr-today-command{
  min-height:112px;padding:12px 20px;border-radius:12px;
  background:var(--nav);border:1px solid var(--nav);color:#fff;
}
.pr-raceclock{display:flex;flex-direction:column;justify-content:space-between}
.pr-raceclock-head{
  display:flex;justify-content:space-between;gap:8px;
  font-size:9px;letter-spacing:.14em;color:#98a2b3;font-weight:900;
}
.pr-live{color:#6ce9a6}
.pr-raceclock-body{display:flex;align-items:baseline;gap:13px;margin-top:5px}
.pr-raceclock-time{
  font:900 27px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.06em;
}
.pr-raceclock-date{font-size:10px;color:#98a2b3}
.pr-raceclock-age{
  margin-top:6px;padding-top:6px;border-top:1px solid #26344c;font-size:10px;color:#cbd5e1;
}
.pr-raceclock-age b{
  color:#ffb095;font:900 12px ui-monospace,SFMono-Regular,Consolas,monospace;
}

.pr-today-command{position:relative;display:grid;grid-template-rows:auto 1fr}
.pr-cmd-head{display:flex;align-items:center;width:100%;min-height:16px}
.pr-cmd-label{
  color:#98a2b3;font-size:10px;line-height:1;font-weight:900;
  letter-spacing:.20em;text-transform:uppercase;
}
.pr-cmd-status{
  position:absolute;top:12px;right:20px;color:#62e6a8;
  font-size:10px;line-height:1;font-weight:900;letter-spacing:.14em;
}
.pr-cmd-main{
  display:flex;align-items:center;gap:9px;flex-wrap:wrap;
  padding-top:12px;margin-top:10px;border-top:1px solid #344054;
  color:#fff;font-size:17px;line-height:1.15;font-weight:800;
}
.pr-cmd-arrow{color:#98a2b3;font-size:18px}
.pr-cmd-fire{font-size:24px;line-height:1}

/* --- KPI の5箱 --- */
.pr-kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin-bottom:14px}
.pr-kpi{
  background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:12px;
}
.pr-kpi.pr-on{background:var(--yf-cream);border-color:#fca58a}
.pr-kpi small{display:block;color:var(--muted);font-size:10px;font-weight:800}
.pr-kpi b{font-size:22px}
.pr-kpi.pr-hot b{color:var(--danger)}
.pr-kpi i{
  display:block;font-style:normal;font-size:10px;color:var(--muted);margin-top:5px;
}

/* --- 検索ツールバー --- */
.pr-toolbar{display:flex;gap:8px;margin:14px 0}
.pr-toolbar input{
  flex:1;border:1px solid #d0d5dd;border-radius:9px;padding:10px 12px;
  font-family:inherit;font-size:13px;background:var(--surface);
}
.pr-toolbar button{
  border:1px solid #d0d5dd;background:var(--surface);border-radius:9px;padding:9px 12px;
  font-weight:750;color:#475467;font-family:inherit;font-size:12px;cursor:pointer;
  white-space:nowrap;
}
.pr-toolbar button:hover:not(:disabled){background:var(--surface2);border-color:#98a2b3}
.pr-toolbar button:disabled{color:#98a2b3;background:var(--surface2);cursor:default}
.pr-toolbar button.pr-active{background:var(--nav);border-color:var(--nav);color:#fff}
.pr-toolbar .pr-toolbar-search{
  margin-right:6px;padding:9px 20px;background:#f2f4f7;font-weight:850;color:#344054;
}

/* --- QUICK ACCESS（観測グループのチップ）--- */
.pr-quick{
  background:var(--surface);border:1px solid var(--line);border-radius:11px;
  padding:10px 12px;margin:0 0 16px;display:flex;align-items:center;gap:10px;overflow-x:auto;
}
.pr-quick-title{
  font-size:9px;font-weight:900;color:#98a2b3;letter-spacing:.12em;white-space:nowrap;
}
.pr-chip{
  display:inline-flex;align-items:center;gap:4px;border:1px solid #d0d5dd;
  background:var(--surface);color:#344054;border-radius:999px;padding:7px 11px;
  font-size:10px;font-weight:800;white-space:nowrap;cursor:pointer;font-family:inherit;
}
.pr-chip.pr-active{background:var(--nav);border-color:var(--nav);color:#fff}
.pr-chip-alert{
  display:inline-block;margin-left:1px;border-radius:9px;background:#fee4e2;
  color:var(--danger);padding:1px 5px;font-size:8px;
}
.pr-chip.pr-active .pr-chip-alert{background:var(--fire-red);color:#fff}
.pr-quick-manage{
  margin-left:auto;padding-left:6px;font-size:10px;font-weight:800;color:#475467;
  white-space:nowrap;text-decoration:none;
}
.pr-quick-manage:hover{color:#344054;text-decoration:underline}

/* --- カード --- */
.pr-card{
  background:var(--surface);border:1px solid var(--line);border-radius:13px;
  margin-bottom:14px;box-shadow:0 1px 3px rgba(16,24,40,.04);
}
.pr-cardhead{
  display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 16px;
  background:#fafbfc;border-bottom:1px solid var(--line);border-radius:12px 12px 0 0;
}
.pr-product{font-size:14px;font-weight:850}
.pr-meta{font-size:10px;color:var(--muted);margin-top:4px}
.pr-shop{font-size:11px;color:#475467;font-weight:750;text-align:right}

.pr-core{
  display:grid;grid-template-columns:220px minmax(320px,1fr) 245px 92px;
  gap:15px;padding:15px 16px;align-items:stretch;
}

/* ② 自社の価格順位 → ④ 推奨後順位 */
.pr-rankbox{
  border:1px solid #e7e9ee;border-radius:10px;padding:12px;background:#fbfcfd;
}
.pr-ranktitle{font-size:10px;color:var(--muted);font-weight:800}
.pr-rankflow{display:flex;align-items:center;gap:10px;margin-top:8px}
.pr-rank{font-size:28px;font-weight:950}
.pr-rank span{font-size:11px;color:var(--muted);font-weight:700}
.pr-to{font-size:19px;color:#98a2b3}
.pr-rank.pr-first{color:var(--danger)}
.pr-rank.pr-lower{color:var(--success)}
.pr-ranknote{font-size:10px;color:var(--success);font-weight:750;margin-top:6px}
.pr-ranknote.pr-keep{color:var(--muted)}
.pr-ranknote.pr-hold{color:var(--danger);font-weight:900}
.pr-ranknote.pr-rank{color:var(--success);font-weight:900}

/* ① 登録ライバルの販売価格（安い順） */
.pr-race{border:1px solid #e7e9ee;border-radius:10px;overflow:hidden}
.pr-racetitle{
  padding:8px 10px;background:var(--surface2);font-size:10px;color:var(--muted);font-weight:850;
}
.pr-competitor{
  display:grid;grid-template-columns:28px 1fr 90px;align-items:center;
  padding:7px 10px;border-top:1px solid #f0f1f3;font-size:11px;
}
.pr-competitor.pr-self{
  background:var(--yf-cream);border-left:3px solid var(--fire-red);padding-left:7px;
}
.pr-place{font-weight:950;color:var(--muted)}
.pr-name{font-weight:700}
.pr-name i{font-style:normal;font-size:9px;color:var(--muted);margin-left:5px}
.pr-cp{font-weight:900;text-align:right;font-size:12px}
.pr-rowresult{
  display:inline-flex;align-items:center;gap:3px;margin-left:7px;padding:2px 7px;
  border-radius:999px;font-size:9px;font-weight:950;letter-spacing:.08em;vertical-align:middle;
}
.pr-rowresult.pr-win{color:var(--danger);background:var(--danger-soft);border:1px solid #fecdca}
.pr-rowresult.pr-lose{color:var(--success);background:var(--success-soft);border:1px solid #abefc6}

/* ③ YOGA FIRE 推奨価格 */
.pr-suggest{
  border:1px solid #ffd0bd;background:var(--yf-cream);border-radius:10px;padding:12px;
}
.pr-suggest small{display:block;font-size:10px;color:#9a3412;font-weight:850}
.pr-bigprice{font-size:25px;font-weight:950;color:#c4320a;margin:5px 0}
.pr-move{font-size:11px;color:#475467}
.pr-move b{color:var(--danger)}
.pr-move b.pr-up{color:var(--success)}
.pr-reason{
  border-top:1px solid #f2d7cc;margin-top:9px;padding-top:8px;
  font-size:10px;color:var(--muted);line-height:1.55;
}
.pr-reason strong{color:#344054}

/* 操作（🔥FIRE・YOGA・取消） */
.pr-action{
  position:relative;display:flex;align-items:center;justify-content:center;
  flex-direction:column;gap:7px;text-align:center;
}
.pr-fire{
  width:48px;height:48px;border:1px solid #ffc2aa;border-radius:50%;
  background:#fff0e9;font-size:27px;line-height:1;cursor:pointer;transition:.15s;
}
.pr-fire:hover{transform:scale(1.09);box-shadow:0 6px 15px rgba(255,59,31,.2)}
.pr-fire:active{transform:scale(.97)}
.pr-detail{display:block}
.pr-skip-btn{
  width:100%;min-height:27px;padding:4px 6px;border:1px solid #d0d5dd;border-radius:7px;
  background:var(--surface);color:var(--muted);font-size:9px;font-weight:900;
  letter-spacing:.05em;cursor:pointer;font-family:inherit;line-height:1.3;
}
.pr-skip-btn:hover{background:#f2f4f7;color:#344054;border-color:#98a2b3}
/* 「エクスポートへ」「エクスポート履歴へ」はリンクなので、box-sizing と text-align を
   足して <button> の .pr-skip-btn と同じ見た目にそろえる。**下線は出さず、文字は
   濃い黒**（既定のリンクの下線と、.pr-skip-btn の灰色（--muted）を上書きする）。 */
a.pr-skip-btn,a.pr-skip-btn:hover{
  display:block;box-sizing:border-box;text-align:center;
  text-decoration:none;color:#101828;
}
/* 「変更済にする」。押すと対応済になる操作なので、他のボタンと色で分ける。 */
.pr-skip-btn.pr-skip-hot{border-color:#fecdca;background:var(--danger-soft);color:var(--danger)}
.pr-skip-btn.pr-skip-hot:hover{border-color:#fda29b;background:#ffe4e1;color:var(--danger)}
.pr-undo-form{width:100%;margin:0}
.pr-fired-btn{font-family:inherit;line-height:1.5;cursor:pointer}
.pr-fired-btn:hover{background:var(--danger-soft)}
.pr-skip-memory{
  font-size:8.5px;color:var(--success);font-weight:800;line-height:1.25;
  max-width:88px;overflow-wrap:anywhere;
}
.pr-skip-memory a{color:var(--muted)}

/* 確認のポップオーバー（FIRE する？／記録を取り消す？） */
.pr-skip-pop{
  display:none;position:absolute;top:calc(100% + 6px);right:0;z-index:90;width:286px;
  padding:11px 12px;background:var(--surface);border:1px solid #d0d5dd;border-radius:10px;
  box-shadow:0 12px 28px rgba(16,24,40,.18);text-align:left;
}
.pr-skip-pop.pr-open{display:block}
.pr-skip-pop b{display:block;font-size:11px;color:#344054}
.pr-skip-pop small{
  display:block;margin-top:4px;font-size:10px;line-height:1.45;color:var(--muted);
}
.pr-skip-pop-foot{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}
.pr-skip-pop button{
  border:1px solid #d0d5dd;border-radius:7px;background:var(--surface);color:#475467;
  font-size:10px;font-weight:850;padding:5px 8px;cursor:pointer;font-family:inherit;
}
.pr-skip-pop button:hover{background:#f2f4f7}
.pr-skip-pop button.pr-pop-undo{background:var(--nav);border-color:var(--nav);color:#fff}

/* カードの脚 */
.pr-secondary{
  display:flex;flex-wrap:wrap;gap:16px;border-top:1px solid #eef0f3;padding:9px 16px;
  background:#fcfcfd;font-size:10px;color:var(--muted);border-radius:0 0 12px 12px;
}
.pr-secondary b{color:#344054}

/* ------------------------------------------------------------
   21-2. YOGA｜判断を同期 フル版（WF-16-2）

   §19 の簡易版（WF-17）に、ワイヤーのフル版ぶんの枠を足したもの。
   AI の区画は中身が未実装なので `.yg-todo` で「読めるが操作するものが無い」ことを見せる。

   **ここの AI 枠（.yg-todo / .yg-chat-log / .yg-empty / .yg-chat-input / .yg-chat-text /
   .yg-placeholder）と .yg-split / .yg-status / .yg-title / .yg-foot は
   WF-14-3 のモーダル（company/items/_form.blade.php の #ruleModal）でも使っている。**
   片方の画面だけを見て直すと、もう片方が崩れる。
   ------------------------------------------------------------ */
.modal-box.yg-full{width:min(1240px,100%)}
.modal-box.yg-full .modal-head{align-items:flex-start;gap:12px}
.yg-title{flex:1;min-width:0}
.yg-status{
  display:flex;align-items:center;gap:6px;font-size:9px;color:var(--muted);
  font-weight:850;white-space:nowrap;
}
.yg-split{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:stretch}
.yg-split>.yg-sec{display:flex;flex-direction:column;min-width:0}
.yg-split .yg-prompt{flex:1;min-height:180px}
.yg-prompt-foot{
  display:flex;justify-content:space-between;align-items:flex-end;margin-top:8px;gap:8px;
}
.yg-chat-log{
  flex:1;min-height:180px;max-height:320px;overflow-y:auto;border:1px solid var(--line);
  border-radius:10px;background:var(--surface2);padding:10px;display:flex;
}
.yg-empty{margin:auto;text-align:center;color:#98a2b3;font-size:10px;line-height:1.7}
.yg-chat-input{display:flex;gap:8px;margin-top:8px;align-items:flex-end}
.yg-chat-text{
  flex:1;height:48px;border:1px solid #d0d5dd;border-radius:10px;padding:7px 10px;
  font:inherit;font-size:11px;resize:none;background:var(--surface2);
}
.yg-placeholder{font-size:10px;color:#98a2b3;text-align:center;padding:14px 0;line-height:1.7}

/* チャットに吹き出しが並ぶとき（WF-14-3 の #ruleModal。WF-16-2 の YOGA は枠だけなので
   こちらの修飾子は付かない）。**.yg-chat-log / .yg-empty / .yg-chat-input の宣言は
   変えずに、「中身があるとき用」をここに足す。** 片方の画面だけ見て直さないこと。 */
.yg-chat-log.has-msg{display:block;flex-direction:unset}
.yg-msg{margin:0 0 8px;font-size:10px;line-height:1.7}
.yg-msg:last-child{margin-bottom:0}
.yg-msg-head{display:flex;align-items:center;gap:6px;margin-bottom:3px;color:var(--muted);font-size:9px}
.yg-msg-who{font-weight:850;color:#344054}
.yg-msg-ref{border:1px solid var(--line);border-radius:6px;padding:0 5px;background:#fff}
.yg-msg-body{
  border:1px solid var(--line);border-radius:10px;padding:7px 10px;background:#fff;
  white-space:pre-wrap;overflow-wrap:anywhere;
}
/* 自分の発言は右に寄せて色を変える（誰の発言かを文字を読まずに見分けられるように）。 */
.yg-msg-me{padding-left:16%}
.yg-msg-me .yg-msg-head{justify-content:flex-end}
.yg-msg-me .yg-msg-body{background:#eef4ff;border-color:#c7d7fe}
.yg-msg-ai{padding-right:16%}
/* 区切り行（「── 追加指示を解釈 ──」「── 版 N として採用 ──」）。 */
.yg-msg-divider{display:flex;align-items:center;gap:8px;color:#98a2b3;font-size:9px;margin:10px 0}
.yg-msg-divider::before,.yg-msg-divider::after{content:"";flex:1;border-top:1px dashed var(--line)}

/* AI からの質問（Q●・引用・選択肢チップ）。 */
.yg-ask{border:1px solid #c7d7fe;border-radius:10px;background:#f8faff;padding:7px 10px;margin-top:6px}
.yg-ask-head{display:flex;align-items:center;gap:6px;font-weight:850;color:#344054}
.yg-ask-code{
  border:1px solid var(--nav);background:var(--nav);color:#fff;font-size:9px;
  font-weight:850;padding:0 5px;line-height:1.6;
}
.yg-ask-quote{
  margin-top:4px;border-left:3px solid #c7d7fe;padding:0 0 0 7px;color:var(--muted);
  white-space:pre-wrap;overflow-wrap:anywhere;
}
.yg-ask-q{margin-top:4px;white-space:pre-wrap;overflow-wrap:anywhere}
.yg-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.yg-chip{
  border:1px solid #c7d7fe;border-radius:999px;background:#fff;color:#344054;
  font:inherit;font-size:10px;padding:2px 10px;cursor:pointer;
}
.yg-chip:hover{background:#eef4ff}
.yg-chip:disabled,.yg-chip:disabled:hover{color:#98a2b3;border-color:var(--line);background:#f9fafb;cursor:default}

/* ［チャットで修正］で指した項目のピン（入力欄の上）。 */
.yg-pick{
  display:flex;align-items:center;gap:6px;margin-top:8px;border:1px solid #c7d7fe;
  border-radius:8px;background:#f8faff;padding:3px 8px;font-size:9px;color:#344054;
}
.yg-pick button{
  border:none;background:none;color:var(--muted);font:inherit;cursor:pointer;padding:0;
}
.yg-pick button:hover{color:var(--danger)}

.yg-foot{align-items:center}
.yg-foot .yg-spacer{flex:1}
.yg-lack{font-size:10px;color:var(--danger);font-weight:800}
/* 設定価格・判断理由が埋まるまで登録できない（残件が出ているあいだは押せない）。 */
.yg-foot .btn:disabled,.yg-foot .btn:disabled:hover{
  color:#98a2b3;border-color:var(--line);background:#f9fafb;cursor:default;
}

/* ------------------------------------------------------------
   20. レスポンシブ
   ------------------------------------------------------------ */
@media(max-width:1200px){
  .sidebar{width:190px}
  .main{padding:22px 18px}
  .ux-summary{grid-template-columns:repeat(2,1fr)}
  .card{overflow-x:auto}
}
@media(max-width:1100px){
  .yf-console{align-items:flex-start;flex-direction:column}
  .yf-shortcut{align-self:flex-start}
}
@media(max-width:1180px){
  .pr-core{grid-template-columns:190px 1fr 220px 84px}
}
@media(max-width:1150px){
  .pr-battle-strip{grid-template-columns:1fr}
  .pr-kpis{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:1000px){
  /* カードの4列は横に並べきれないので、順位・レース表・推奨価格・操作を縦に積む。 */
  .pr-core{grid-template-columns:1fr}
  .pr-action{flex-direction:row;flex-wrap:wrap;justify-content:flex-start}
  .pr-action .pr-skip-btn,.pr-action .pr-undo-form{width:auto}
  .pr-skip-pop{right:auto;left:0}
  .yg-split{grid-template-columns:1fr}
}
@media(max-width:900px){
  .modal{padding:12px}
  .yg-basic{grid-template-columns:1fr}
  .pr-kpis{grid-template-columns:repeat(2,1fr)}
  /* 上部の固定をやめる（画面の半分以上を占めてしまうため）。 */
  .pr-fixedhead{position:static;margin:-22px -18px 14px;padding:22px 18px 12px}
}
