/* static/style.css */

/* =========================
   Doraemon-ish Palette
   - Blue (main)
   - White (base)
   - Red (accent)
   - Yellow (accent)
========================= */
:root{
  --bg: #f6f9ff;             /* 全体背景（ほんのり青み） */
  --panel: #ffffff;          /* カード白 */
  --text: #0f172a;           /* 濃紺 */
  --muted: #5b6b84;          /* サブテキスト */
  --border: rgba(15, 23, 42, 0.10);

  --blue: #2f6fdb;           /* メインブルー */
  --blue-2: #1f56b6;         /* 濃い青 */
  --blue-soft: #eaf2ff;      /* KPI背景など */

  --red: #ff3b30;            /* 赤（ドラえもんの首輪っぽい） */
  --yellow: #ffd60a;         /* 黄色（鈴っぽい） */

  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

/* =========================
   Base
========================= */
*{ box-sizing:border-box; }
[hidden]{ display:none !important; }
html,body{
  margin:0; padding:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", Segoe UI, Roboto, Arial;
  color: var(--text);
  background: var(--bg);
}

/* container */
.container{
  width:min(1100px, 92vw);
  margin:0 auto;
}

/* =========================
   Header (青 + 赤ライン)
========================= */
.nav{
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, var(--blue), var(--blue-2));
  color:#fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  border-bottom: 6px solid var(--red); /* ★赤ラインでドラえもん感 */
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 18px;
}

/* バッジ：黄色を鈴っぽく */
.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
}

.brand .badge{
  background: rgba(255, 214, 10, 0.20);
  border: 1px solid rgba(255, 214, 10, 0.35);
}

/* 右上の “Tablet Optimized” は白っぽく */
.nav .badge:last-child{
  background: rgba(255,255,255,0.14);
}

/* =========================
   Layout
========================= */
.hero{
  padding: 22px 0 6px;
}

.hero-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.main{
  padding: 14px 0 40px;
}

.main-grid{
  display:grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
}

@media (max-width: 920px){
  .hero-grid, .main-grid{
    grid-template-columns: 1fr;
  }
}

/* =========================
   Panel / Card
========================= */
.panel{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pad{ padding: 18px; }

.section-title{
  font-weight: 900;
  color: var(--blue-2);
  margin-bottom: 10px;
  display:flex;
  align-items:center;
  gap: 10px;
}

/* ★タイトル左に“黄色の鈴”っぽい点 */
.section-title::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 214, 10, 0.22);
}

/* =========================
   Typography
========================= */
.h-title{
  margin:0 0 8px;
  font-size: 34px;
  line-height: 1.15;
  color: var(--blue-2);
  letter-spacing: .2px;
}

.h-sub{
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

.help{
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* =========================
   Buttons (青ベース + 赤/黄アクセント)
========================= */
.controls{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 6px;
}

.btn{
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .06s ease, filter .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 16px rgba(47,111,219,0.18);
  background: var(--blue);
  color:#fff;
}

.btn:hover{ filter: brightness(1.03); }
.btn:active{ transform: translateY(1px); }
.btn:disabled{
  cursor: wait;
  opacity: 0.68;
  filter: grayscale(0.12);
  transform: none;
}

.btn.ghost{
  background: #fff;
  color: var(--blue-2);
  border: 2px solid rgba(47,111,219,0.22);
  box-shadow: none;
}

.inline-dl{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.btn.icon-only{
  width: 42px;
  height: 42px;
  padding: 0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}

.btn.icon-only svg{
  width: 20px;
  height: 20px;
  display:block;
}

.done-info-list{
  display:grid;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
}

.done-info-box{
  border: 1px solid rgba(47,111,219,0.16);
  background: rgba(47,111,219,0.06);
  border-radius: 14px;
  padding: 12px;
  text-align: left;
}

.done-info-label{
  font-weight: 900;
  color: var(--blue-2);
  margin-bottom: 8px;
}

.done-info-value{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  overflow-wrap:anywhere;
}

.copy-icon-btn{
  width: 42px;
  height: 42px;
  padding: 0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}

.copy-icon-btn svg{
  width: 20px;
  height: 20px;
}

.copy-toast{
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  pointer-events: none;
  background: rgba(15,23,42,0.92);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 100;
}

.copy-toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.howto-wrap{
  max-width: 980px;
}

.howto-section{
  margin-top: 14px;
}

.howto-flow {
  margin: 10px 0 14px;
}

.howto-flow .exp-step-status {
  width: 100%;
}

.howto-list{
  margin: 8px 0 0;
  line-height: 1.85;
}

.howto-preview{
  margin: 12px auto 4px;
  max-width: 520px;
  border: 1px solid rgba(47,111,219,0.14);
  border-radius: 14px;
  padding: 12px;
  background: rgba(47,111,219,0.04);
}

.howto-preview-title{
  font-weight: 900;
  color: var(--blue-2);
  margin-bottom: 10px;
  text-align: center;
}

.howto-canvas-demo{
  width: min(420px, 100%);
  aspect-ratio: 1 / 1;
  margin: 14px auto 0;
  border-radius: 18px;
  border: 2px solid rgba(47,111,219,0.24);
  background: #fff;
  position: relative;
  overflow: hidden;
}

.howto-demo-stroke{
  position:absolute;
  inset: 22%;
  border: 8px solid rgba(15,23,42,0.92);
  border-radius: 50%;
  transform: rotate(-8deg);
}

/* 推定ボタン：メインブルー（そのまま） */
#btnPredict{
  background: var(--blue);
  box-shadow: 0 10px 16px rgba(47,111,219,0.22);
}


/* ★消去/戻すを“黄色”系に寄せてもドラえもん感UP */
#btnClear.btn.ghost, #btnUndo.btn.ghost{
  border-color: rgba(255, 214, 10, 0.55);
  color: #7a5b00;
  background: rgba(255, 214, 10, 0.14);
}

/* =========================
   KPI
========================= */
.kpis{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.kpi{
  background: var(--blue-soft);
  border: 1px solid rgba(47,111,219,0.16);
  border-radius: 16px;
  padding: 12px 14px;
}

.kpi .label{
  font-weight: 900;
  color: var(--blue-2);
  font-size: 13px;
}

.kpi .value{
  font-size: 34px;
  font-weight: 900;
  margin: 6px 0 2px;
  color: var(--blue-2);
}

.kpi .hint{
  font-size: 12px;
  color: var(--muted);
}

/* =========================
   Pills（状態/品質）: 青 + 黄色アクセント
========================= */
.pills{ display:flex; gap: 10px; flex-wrap: wrap; }

.pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  background: rgba(47,111,219,0.10);
  border: 1px solid rgba(47,111,219,0.18);
  color: var(--blue-2);
}

.pill::before{
  content:"";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--yellow); /* ★鈴っぽい */
}

/* =========================
   Advice Box（黄色の左ラインを追加）
========================= */
.advice{
  background: rgba(255, 214, 10, 0.12);
  border: 1px solid rgba(255, 214, 10, 0.35);
  border-left: 8px solid var(--yellow); /* ★画像の黄色アクセント */
  border-radius: 14px;
  padding: 12px 12px;
  color: #473400;
  line-height: 1.55;
}

/* =========================
   Canvas Area（白〜薄グレー + 枠太め）
========================= */
.canvas-wrap{ padding: 16px; }

.canvas-box{
  border-radius: 16px;
  background: #f3f4f6; /* ★白(若干グレー) */
  border: 3px solid rgba(47,111,219,0.28); /* ★青枠太め */
  overflow:hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}

/* canvasは親にフィット */
#drawCanvas{
  width: 100%;
  height: 520px;
  display:block;
  touch-action: none; /* タブレットでスクロール抑制 */
}

/* =========================
   Debug area
========================= */
.result-card{
  border-radius: 14px;
  background: rgba(15,23,42,0.03);
  border: 1px solid rgba(15,23,42,0.06);
  padding: 12px;
}

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

#debugBox{
  background: rgba(15,23,42,0.03);
  border: 1px dashed rgba(47,111,219,0.25);
  border-radius: 12px;
  padding: 10px;
  color: rgba(15,23,42,0.78);
}

/* =========================
   Footer
========================= */
.footer{
  padding: 18px 0 40px;
  color: var(--muted);
  text-align:center;
}

/* =========================
   Chat UI
========================= */

.chat-panel{ display:flex; flex-direction:column; gap:10px; }

.chat-history{
  height: 520px;              /* 右側カラムと揃えるなら canvas 高さに合わせる */
  overflow-y: auto;
  padding: 10px;
  border-radius: 14px;
  background: rgba(15,23,42,0.03);
  border: 1px solid rgba(15,23,42,0.06);
}

.chat-msg{
  display:flex;
  margin: 10px 0;
}

.chat-msg .bubble{
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 16px;
  line-height: 1.55;
  font-size: 13px;
  border: 1px solid rgba(15,23,42,0.08);
  background: #fff;
  box-shadow: 0 6px 16px rgba(15,23,42,0.06);
  white-space: pre-wrap;
}

/* user = 右寄せ */
.chat-msg.user{ justify-content:flex-end; }
.chat-msg.user .bubble{
  background: rgba(47,111,219,0.10);
  border-color: rgba(47,111,219,0.18);
  color: var(--blue-2);
}

/* assistant = 左寄せ */
.chat-msg.assistant{ justify-content:flex-start; }
.chat-msg.assistant .bubble{
  background: rgba(255, 214, 10, 0.12);
  border-color: rgba(255, 214, 10, 0.35);
  color: #473400;
}

/* system = 中央 */
.chat-msg.system{ justify-content:center; }
.chat-msg.system .bubble{
  background: rgba(255,255,255,0.8);
  color: var(--muted);
  font-weight: 700;
}

/* 小さなサムネ（描画の証拠として貼る用：任意） */
.chat-thumb{
  margin-top: 8px;
  width: 140px;
  height: 90px;
  border-radius: 12px;
  border: 2px solid rgba(47,111,219,0.20);
  background: #f3f4f6;
  overflow:hidden;
}
.chat-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

/* 入力欄（任意） */
.chat-input{
  display:flex;
  gap:10px;
  align-items:center;
}
.chat-input input{
  flex:1;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.12);
  padding: 10px 14px;
  font-size: 13px;
  outline: none;
  background: #fff;
}
.chat-input input:focus{
  border-color: rgba(47,111,219,0.35);
  box-shadow: 0 0 0 4px rgba(47,111,219,0.10);
}

/* =========================
   Chat UI (new)
========================= */

/* チャットパネル全体 */
.chat-panel{
  display:flex;
  flex-direction: column;
  min-height: 520px;          /* 右下が小さすぎるのを防ぐ */
}

/* ヘッダ：タイトル＋小ボタン */
.chat-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.chat-actions{
  display:flex;
  gap: 8px;
}

/* 小さめボタン（チップ） */
.btn.chip{
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 999px;
}

/* 送信ボタンを“青”で主役に */
.btn.send{
  padding: 10px 14px;
  border-radius: 12px;     /* 入力欄と合わせる */
  box-shadow: 0 10px 16px rgba(47,111,219,0.18);
}

/* 履歴エリア */
.chat-history{
  flex: 1;
  overflow: auto;
  background: rgba(15,23,42,0.02);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 16px;
  padding: 12px;
}

/* スクロールバー（任意：見やすく） */
.chat-history::-webkit-scrollbar{
  width: 10px;
}
.chat-history::-webkit-scrollbar-thumb{
  background: rgba(47,111,219,0.25);
  border-radius: 999px;
}
.chat-history::-webkit-scrollbar-track{
  background: transparent;
}

/* 各メッセージ（左右レイアウト） */
.chat-msg{
  display:flex;
  margin: 10px 0;
}

/* バブル */
.chat-msg .bubble{
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 16px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: 0 8px 18px rgba(15,23,42,0.05);
  font-size: 14px;
}

/* user: 右寄せ＋青み */
.chat-msg.user{
  justify-content: flex-end;
}
.chat-msg.user .bubble{
  background: rgba(47,111,219,0.10);
  border-color: rgba(47,111,219,0.25);
  color: var(--blue-2);
  border-top-right-radius: 8px;
}

/* assistant: 左寄せ＋白 */
.chat-msg.assistant{
  justify-content: flex-start;
}
.chat-msg.assistant .bubble{
  background: #fff;
  border-top-left-radius: 8px;
}

/* system: 中央寄せ＋薄グレー */
.chat-msg.system{
  justify-content: center;
}
.chat-msg.system .bubble{
  background: rgba(255, 214, 10, 0.10);
  border-color: rgba(255, 214, 10, 0.30);
  color: #473400;
  font-weight: 700;
  text-align: center;
}

/* 描画サムネ */
.chat-thumb{
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,0.10);
  background: #fff;
}
.chat-thumb img{
  width: 100%;
  display:block;
}

/* 入力バー */
.chat-input{
  display:flex;
  gap: 10px;
  margin-top: 12px;
}

.chat-text{
  flex: 1;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.12);
  background: #fff;
  padding: 12px 12px;
  font-size: 14px;
  outline: none;
}
.chat-text:focus{
  border-color: rgba(47,111,219,0.45);
  box-shadow: 0 0 0 4px rgba(47,111,219,0.12);
}

.chat-help{
  margin-top: 10px;
}

/* =========================
   Chat Scroll Fix
========================= */

/* チャット履歴を固定高さ＋スクロール */
.chat-history{
  flex: 1;
  height: 320px;               /* ← 研究用に固定（必要なら変更） */
  max-height: 60vh;             /* 画面サイズに応じて拡張 */
  overflow-y: auto;
  background: rgba(15,23,42,0.02);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 16px;
  padding: 12px;
}

/* スクロールバーを研究デモ向けに綺麗に */
.chat-history::-webkit-scrollbar{
  width: 10px;
}
.chat-history::-webkit-scrollbar-thumb{
  background: rgba(47,111,219,0.35);
  border-radius: 999px;
}
.chat-history::-webkit-scrollbar-track{
  background: rgba(15,23,42,0.05);
}


/* ===== experiment layout ===== */
.exp-body {
  height: 100vh;
  overflow: hidden;
}

.exp-nav {
  position: sticky;
  top: 0;
  z-index: 20;
}

.exp-main {
  height: calc(100vh - 72px);
  padding: 12px 16px 16px;
  box-sizing: border-box;
}

.exp-layout {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.9fr);
  gap: 16px;
}

.exp-canvas-panel,
.exp-side {
  min-height: 0;
}

.exp-canvas-panel {
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.exp-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.exp-canvas-box {
  flex: 1;
  min-height: 0;
  border-radius: 18px;
  background: #fff;
  border: 2px solid rgba(31,86,182,0.22);
  overflow: hidden;
  position: relative;
  line-height: 0;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.03);
}

.exp-canvas-box canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.exp-side {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
}

.exp-result-panel {
  flex-shrink: 0;
}

.exp-history-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.chat-history {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  margin-top: 8px;
  margin-bottom: 12px;
}

.chat-input {
  display: flex;
  gap: 8px;
}

.chat-text {
  flex: 1;
}

@media (max-width: 980px) {
  .exp-body {
    height: auto;
    overflow: auto;
  }

  .exp-main {
    height: auto;
  }

  .exp-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .exp-layout .exp-canvas-box:not(.exp-centered-canvas) {
    min-height: 52vh;
  }

  .exp-side {
    grid-template-rows: auto auto;
  }
}

.exp-page-title {
  margin-bottom: 14px;
}

.exp-title {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 900;
  color: var(--blue-2);
  line-height: 1.25;
}

.exp-subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* 正方形の描画エリア */
.square-canvas {
  width: 100%;
  max-width: min(72vh, 760px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.square-canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.exp-main-centered {
  min-height: calc(100vh - 72px);
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 16px 16px;
  overflow: auto;
}

.exp-nav-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.exp-step-status {
  width: min(900px, 94vw);
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(47,111,219,0.16);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15,23,42,0.06);
  padding: 8px 10px;
}

.exp-step-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.exp-step-item {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 10px;
  background: rgba(15,23,42,0.03);
  padding: 8px 10px;
  text-align: center;
}

.exp-step-item.is-active {
  border: 3px solid rgba(47,111,219,0.78);
  background: rgba(47,111,219,0.10);
  box-shadow: 0 0 0 3px rgba(47,111,219,0.14), inset 0 0 0 1px rgba(47,111,219,0.16);
}

.exp-step-item.is-complete {
  border-color: rgba(22,160,133,0.35);
  background: rgba(22,160,133,0.08);
}

.exp-step-index {
  font-size: 14px;
  font-weight: 900;
  color: var(--blue-2);
}

.exp-step-item.is-active .exp-step-index::after {
  content: "・現在";
}

.exp-step-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 0;
}

.exp-step-count {
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.3;
  margin-top: 2px;
}

.exp-step-arrow {
  display: flex;
  align-items: center;
  color: rgba(31,86,182,0.45);
  font-weight: 900;
}

.exp-prompt-panel {
  width: min(720px, 92vw);
  text-align: center;
}

.exp-prompt-panel .section-title {
  justify-content: center;
}

.exp-prompt-text {
  margin: 8px auto 16px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.exp-target-kpis,
.exp-feedback-box .kpis {
  max-width: 520px;
  margin: 0 auto;
}

.exp-feedback-box .advice {
  margin: 14px auto 0;
  max-width: 620px;
  text-align: left;
}

.exp-prompt-actions {
  justify-content: center;
  margin-top: 18px;
}

.exp-drawing-stage {
  width: min(900px, 94vw);
  max-height: none;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.exp-drawing-head {
  width: min(700px, 100%);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.exp-draw-instruction {
  font-weight: 900;
  color: var(--blue-2);
  line-height: 1.5;
}

.exp-draw-instruction.is-error {
  color: var(--red);
}

.exp-centered-canvas {
  flex: 0 1 auto;
  width: min(56vh, 700px, 88vw);
  height: min(56vh, 700px, 88vw);
  min-height: 0 !important;
  max-height: none;
  aspect-ratio: 1 / 1;
}

.exp-processing-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(246,249,255,0.72);
  backdrop-filter: blur(2px);
  border-radius: var(--radius);
  z-index: 5;
}

.exp-processing-overlay[hidden] {
  display: none;
}

.exp-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 4px solid rgba(47,111,219,0.18);
  border-top-color: var(--blue);
  animation: exp-spin .8s linear infinite;
}

.exp-processing-title {
  font-weight: 900;
  color: var(--blue-2);
  font-size: 16px;
}

.exp-processing-text {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}

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

@media (max-width: 720px) {
  .exp-main-centered {
    align-items: flex-start;
    height: auto;
    min-height: calc(100vh - 72px);
  }

  .exp-drawing-stage {
    max-height: none;
  }

  .exp-drawing-head {
    flex-direction: column;
    align-items: stretch;
  }

  .exp-drawing-head .controls {
    justify-content: center;
  }

  .exp-step-flow {
    flex-direction: column;
  }

  .exp-step-arrow {
    justify-content: center;
    transform: rotate(90deg);
    height: 8px;
  }
}
