/* ============================================================
   CareLink — applicant_form.css
   カスタムスタイル（Tailwind補完用）
   ブランドカラー: Green #5BAD3E / Orange #E07828 / Blue #3B7EC8
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
  --cl-green:        #5BAD3E;
  --cl-green-dark:   #4a9030;
  --cl-green-light:  #edf7e9;
  --cl-orange:       #E07828;
  --cl-orange-light: #fdf3ea;
  --cl-orange-dark:  #92400e;
  --cl-blue:         #3B7EC8;
  --cl-blue-dark:    #2a65a8;
  --cl-blue-light:   #eaf2fc;
  --cl-red:          #e03a3a;
  --cl-red-light:    #fef0f0;
  --cl-red-dark:     #b91c1c;
}

/* ── ページアイコン ── */
.cl-page-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(180deg, var(--cl-orange), var(--cl-blue));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(91,173,62,0.25);
}

/* ── カード ── */
.cl-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  overflow: hidden;
}

@keyframes cl-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cl-card-header {
  padding: 14px 20px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fafafa;
}

.cl-card-body {
  padding: 20px 22px;
}

/* ── ステップ番号 ── */
.cl-step {
  width: 22px;
  height: 22px;
  background: var(--cl-blue);
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── バッジ ── */
.cl-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.cl-badge-blue {
  background: var(--cl-blue-light);
  color: var(--cl-blue);
}
.cl-badge-red {
  background: var(--cl-red-light);
  color: var(--cl-red);
}
.cl-badge-green {
  background: var(--cl-green-light);
  color: var(--cl-green-dark);
}
.cl-badge-warning {
  background: var(--cl-orange-light);
  color: var(--cl-orange-dark);
}

/* ── 求人リンク ── */
.cl-job-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.cl-job-link:hover {
  background: var(--cl-green-light);
  border-color: rgba(91,173,62,0.25);
}
.cl-job-link-icon {
  width: 36px;
  height: 36px;
  background: var(--cl-orange-light);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cl-orange);
}
.cl-job-link-title {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--cl-green-dark);
  line-height: 1.5;
}
.cl-job-link-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 3px;
}

/* ── ワーカー表示 ── */
.cl-worker-display {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 8px 13px;
  flex: 1;
  min-width: 0;
}

/* ── アラート ── */
.cl-alert {
  border-radius: 12px;
  padding: 13px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cl-alert-error {
  background: var(--cl-red-light);
  border: 1px solid rgba(224,58,58,0.18);
  color: #b91c1c;
}
.cl-alert-success {
  background: var(--cl-green-light);
  border: 1px solid rgba(91,173,62,0.22);
  color: #166534;
}
.cl-alert-warning {
  background: var(--cl-orange-light);
  border: 1px solid rgba(224,120,40,0.22);
  color: var(--cl-orange-dark);
}
.cl-alert-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cl-alert-icon-error {
  background: rgba(224,58,58,0.1);
  color: var(--cl-red);
}
.cl-alert-icon-success {
  background: rgba(91,173,62,0.15);
  color: var(--cl-green);
}
.cl-alert-icon-warning {
  background: rgba(224,120,40,0.15);
  color: var(--cl-orange);
}

/* エラー箇条書きの点 */
.cl-bullet-error {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cl-red);
  flex-shrink: 0;
  display: inline-block;
}

/* 判定中 */
.cl-alert-validating {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
}
.cl-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #e5e7eb;
  border-top-color: var(--cl-green);
  border-radius: 50%;
  display: inline-block;
  animation: cl-spin 0.7s linear infinite;
}
@keyframes cl-spin {
  to { transform: rotate(360deg); }
}

/* ── ボタン ── */
.cl-btn-blue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--cl-blue);
  color: white;
  border: none;
  border-radius: 9px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.cl-btn-blue:hover {
  background: var(--cl-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59,126,200,0.28);
}

.cl-btn-orange {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  background: var(--cl-orange);
  color: white;
  border: none;
  border-radius: 9px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.cl-btn-orange:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(224,120,40,0.32);
}
.cl-btn-red {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--cl-red);
  color: white;
  border: none;
  border-radius: 9px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.cl-btn-red:hover {
  background: var(--cl-red-dark);
  transform: translateY(-1px);
}
.cl-btn-orange {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--cl-orange);
  color: white;
  border: none;
  border-radius: 9px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.cl-btn-orange:hover {
  background: var(--cl-orange-dark);
  transform: translateY(-1px);
}

/* スモールボタン */
.cl-btn-blue-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 13px;
  background: var(--cl-blue);
  color: white;
  border: none;
  border-radius: 7px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.cl-btn-blue-sm:hover {
  background: var(--cl-blue-dark);
  transform: translateY(-1px);
}

.cl-btn-green-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 13px;
  background: var(--cl-green);
  color: white;
  border: none;
  border-radius: 7px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.cl-btn-green-sm:hover {
  background: var(--cl-green-dark);
  transform: translateY(-1px);
}
.cl-btn-orange-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 13px;
  background: var(--cl-orange);
  color: white;
  border: none;
  border-radius: 7px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.cl-btn-orange-sm:hover {
  background: var(--cl-orange-dark);
  transform: translateY(-1px);
}
.cl-btn-red-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 13px;
  background: var(--cl-red);
  color: white;
  border: none;
  border-radius: 7px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.cl-btn-red-sm:hover {
  background: var(--cl-red-dark);
  transform: translateY(-1px);
}

.cl-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: white;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.cl-btn-back:hover {
  background: #f9fafb;
  color: #374151;
}

/* ── 仕切り線 ── */
.cl-divider {
  height: 1px;
  background: #f3f4f6;
  margin: 18px 0;
}

/* ── モーダル ── */
.cl-modal-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(180deg, var(--cl-orange), var(--cl-blue));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cl-modal-close {
  width: 32px;
  height: 32px;
  background: #f3f4f6;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  cursor: pointer;
  transition: background 0.2s;
}
.cl-modal-close:hover {
  background: #e5e7eb;
  color: #374151;
}

/* ============================================================
   CareLink — action_bar.css
   求人詳細ページ アクションバー / Pattern 3 ツールバー
============================================================ */

/* ── アクションバー全体 ── */
.cl-action-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin-bottom: 4px;
}

/* ── ツールバー ── */
.cl-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── ボタン共通 ── */
.cl-toolbar-btn__icon {
  font-size: 16px;
  line-height: 1;
}

.cl-toolbar-btn__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ── 縦区切り線 ── */
.cl-toolbar-divider {
  width: 1px;
  height: 32px;
  background: #e5e7eb;
  margin: 0 4px;
  flex-shrink: 0;
}

/* ── 警告テキスト ── */
.cl-action-warn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #E07828;
  padding: 6px 11px;
  background: #fdf3ea;
  border: 1px solid rgba(224, 120, 40, 0.2);
  border-radius: 7px;
  white-space: nowrap;
}

/* ── カード見出し（h2） ── */
.cl-h2-blue {
  color: var(--cl-blue);
}
.cl-h2-orange {
  color: var(--cl-orange);
}
.cl-h2-green {
  color: var(--cl-green);
}
.cl-h2-red {
  color: var(--cl-red);
}
/* Email builder UI — .eb- prefix avoids clashes with DaisyUI / Tailwind. */

:root {
  --eb-c-green-dk:   #1e5c1e;
  --eb-c-green:      #2d7a2d;
  --eb-c-green-lt:   #4caf50;
  --eb-c-green-pale: #e8f5e9;
  --eb-c-orange:     #f5a623;
  --eb-c-gray-900:   #1a1a1a;
  --eb-c-gray-700:   #374151;
  --eb-c-gray-500:   #6b7280;
  --eb-c-gray-300:   #d1d5db;
  --eb-c-gray-200:   #e5e7eb;
  --eb-c-gray-100:   #f3f4f6;
  --eb-c-gray-50:    #f9fafb;
  --eb-c-white:      #ffffff;
  --eb-topbar-h:     54px;
  --eb-left-w:       250px;
  --eb-right-w:      368px;
  --eb-max-width:    1200px;
  --eb-workspace-h:  min(800px, calc(100vh - 200px));
  --eb-font:         'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
}

.eb * { box-sizing: border-box; }
.eb label { font-size: 12px; }
.eb {
  display: flex;
  flex-direction: column;
  min-height: 80vh;
  max-width: var(--eb-max-width);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
  font-family: var(--eb-font);
  background: var(--eb-c-gray-100);
  color: var(--eb-c-gray-900);
}

/* ─── トップバー ──────────────────────────────────── */
.eb-topbar {
  min-height: var(--eb-topbar-h);
  background: var(--eb-c-white);
  border-bottom: 1px solid var(--eb-c-gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 8px 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  flex-shrink: 0;
  z-index: 200;
}
.eb-topbar-left, .eb-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.eb-topbar-left .eb-template-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(420px, 48vw);
}

.eb-btn-back {
  padding: 6px 12px;
  border: 1px solid var(--eb-c-gray-300);
  border-radius: 7px;
  color: var(--eb-c-gray-700);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: background .15s;
}
.eb-btn-back:hover { background: var(--eb-c-gray-100); }

.eb-category-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .5px;
}
.eb-category-tag.eb-category-campaign   { background: #fef3c7; color: #92400e; }
.eb-category-tag.eb-category-newsletter { background: var(--eb-c-green-pale); color: var(--eb-c-green-dk); }

.eb-template-name  { font-size: 14px; font-weight: 700; }
.eb-save-indicator { font-size: 12px; color: var(--eb-c-gray-500); }

/* ─── ボタン ──────────────────────────────────────── */
.eb-btn {
  font-family: var(--eb-font);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.eb-btn-save {
  background: var(--eb-c-white);
  color: var(--eb-c-green);
  border: 1.5px solid var(--eb-c-green);
}
.eb-btn-save:hover    { background: var(--eb-c-green-pale); }
.eb-btn-preview {
  background: var(--eb-c-white);
  color: var(--eb-c-gray-700);
  border: 1px solid var(--eb-c-gray-300);
}
.eb-btn-preview:hover { background: var(--eb-c-gray-100); }

/* ─── ワークスペース ──────────────────────────────── */
.eb-workspace {
  flex: 1;
  display: grid;
  grid-template-columns: var(--eb-left-w) minmax(0, 1fr) var(--eb-right-w);
  overflow: hidden;
  min-height: 0;
  min-width: 0;
}
.eb-workspace--edit {
  grid-template-columns: var(--eb-left-w) minmax(0, 1fr);
}

/* ─── 左パネル ────────────────────────────────────── */
.eb-panel-left {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: var(--eb-c-white);
  border-right: 1px solid var(--eb-c-gray-200);
  height: var(--eb-workspace-h);
  min-height: 320px;
  overflow-y: auto;
  flex-shrink: 0;
  border-bottom: 1px solid var(--eb-c-gray-200);
}
.eb-panel-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--eb-c-gray-500);
  padding: 12px 12px 6px;
  border-bottom: 1px solid var(--eb-c-gray-100);
}
.eb-panel-label.eb-mt-3 { margin-top: 8px; }

/* カテゴリ＆ヘッダー色セレクター */
.eb-hs-selector-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.eb-hs-selector-col {
  flex: 1;
  min-width: 0;
}

/* カラープレビューバー */
.eb-hs-preview {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  border-radius: 6px;
}
.eb-hs-green  { background: linear-gradient(135deg, #2d6a2d, #1a4d1a); }
.eb-hs-blue   { background: linear-gradient(135deg, #1a3a5c, #0f2340); }
.eb-hs-dark   { background: linear-gradient(135deg, #2a2a2a, #111); }
.eb-hs-orange { background: linear-gradient(135deg, #F08C1F, #c96e0a); }

.eb-header-style-list { padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.eb-header-style-opt {
  border: 2px solid transparent;
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  transition: all .15s;
}
.eb-header-style-opt:hover  { border-color: var(--eb-c-green-lt); }
.eb-header-style-opt.eb-active { border-color: var(--eb-c-green); box-shadow: 0 0 0 3px rgba(45,122,45,.15); }

/* ブロックパレット */
#blockPalette { padding: 6px 8px; display: flex; flex-direction: column; gap: 3px; }
.eb-palette-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid var(--eb-c-gray-200);
  background: var(--eb-c-white);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--eb-c-gray-700);
  transition: all .15s;
  user-select: none;
}
.eb-palette-item:hover {
  border-color: var(--eb-c-green-lt);
  background: var(--eb-c-green-pale);
  color: var(--eb-c-green-dk);
  transform: translateX(2px);
}
.eb-palette-icon {
  width: 24px; height: 24px;
  background: var(--eb-c-gray-100);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

/* ─── 中央パネル ──────────────────────────────────── */
.eb-panel-center {
  overflow-y: auto;
  min-width: 0;
  padding: 16px;
  height: var(--eb-workspace-h);
  min-height: 320px;
  border-bottom: 1px solid var(--eb-c-gray-200);
  border-right: 1px solid var(--eb-c-gray-200);
}
.eb-email-canvas {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eb-canvas-subject {
  background: var(--eb-c-white);
  border: 1px solid var(--eb-c-gray-300);
  border-radius: 9px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.eb-canvas-subject-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.eb-canvas-subject-hint {
  margin-top: 0;
  line-height: 1.45;
  padding-left: 0;
}
.eb-canvas-subject-row label {
  font-size: 12px;
  font-weight: 700;
  color: var(--eb-c-gray-500);
  white-space: nowrap;
  padding-top: 6px;
}
.eb-subject-field {
  border: none;
  font-size: 14px;
  font-weight: 700;
  outline: none;
  flex: 1;
  font-family: var(--eb-font);
  line-height: 1.45;
  min-height: 2.25rem;
}

.eb-canvas-card {
  background: var(--eb-c-white);
  border: 1px solid var(--eb-c-gray-200);
  border-radius: 9px;
  padding: 14px;
}
.eb-canvas-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--eb-c-gray-700);
  margin-bottom: 10px;
}

/* ─── フィールドグリッド ──────────────────────────── */
.eb-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.eb-field-grid > .eb-field-grid-full { grid-column: 1 / -1; }
.eb-field-grid > .eb-field-grid-row  { grid-column: 1 / -1; display: flex; gap: 16px; flex-wrap: wrap; }
.eb-field-grid > .eb-field-grid-row > div        { flex: 1; min-width: 140px; }
.eb-field-grid > .eb-field-grid-row--3 > div     { min-width: 100px; }
.eb-field-grid label {
  font-size: 10px;
  font-weight: 700;
  color: var(--eb-c-gray-500);
}

/* ヘッダー設定ラベル（field-grid の label を上書き） */
.eb-header-field-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--eb-c-gray-500);
  margin-bottom: 3px;
}

/* ヒント文（/テキスト/ の説明など） */
.eb-field-hint {
  font-size: 11px;
  color: var(--eb-c-gray-400, #9ca3af);
  margin-top: 4px;
}

/* スペーサー */
.eb-mt-1 { margin-top: 0.25rem; }
.eb-mt-3 { margin-top: 12px; }

.eb-align-select-row { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.eb-align-select-row .eb-align-label  { font-size: 10px; font-weight: 600; color: var(--eb-c-gray-500); margin: 0; }
.eb-align-select-row .eb-align-select { width: auto; min-width: 72px; font-size: 11px; padding: 4px 6px; }

/* ─── ブロック ────────────────────────────────────── */
.eb-block-wrap {
  background: var(--eb-c-white);
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .15s;
  margin-bottom: 12px;
}
.eb-block-wrap:hover        { border-color: var(--eb-c-green-lt); }
.eb-block-wrap:focus-within { border-color: var(--eb-c-green); }
.eb-block-wrap.eb-block-ghost  { opacity: .3; }

.eb-block-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--eb-c-gray-50);
  border-bottom: 1px solid var(--eb-c-gray-100);
}
.eb-drag-handle         { font-size: 18px; color: var(--eb-c-gray-300); cursor: grab; line-height: 1; }
.eb-drag-handle:active  { cursor: grabbing; }
.eb-block-label         { font-size: 11px; font-weight: 700; color: var(--eb-c-gray-500); }
.eb-toolbar-right       { margin-left: auto; display: flex; gap: 3px; }
.eb-tb-btn {
  width: 22px; height: 22px;
  border-radius: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--eb-c-gray-500);
  transition: all .1s;
}
.eb-tb-btn:hover     { background: var(--eb-c-gray-200); }
.eb-btn-remove:hover { background: #fee2e2; color: #ef4444; }

.eb-block-fields {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.eb-field-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.eb-field-col    { flex: 1; min-width: 140px; }
.eb-field-col-sm { flex: 0 0 auto; min-width: 110px; }

.eb-field {
  display: block;
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--eb-c-gray-300);
  border-radius: 7px;
  font-size: 13px;
  font-family: var(--eb-font);
  color: var(--eb-c-gray-900);
  outline: none;
  transition: border-color .15s;
  background: var(--eb-c-white);
}
.eb-field:focus     { border-color: var(--eb-c-green); box-shadow: 0 0 0 3px rgba(45,122,45,.1); }
.eb-field-textarea  { resize: vertical; min-height: 80px; }
.eb-field-textarea.eb-textarea-autosize,
.eb-field.eb-textarea-autosize {
  resize: none;
  overflow-y: hidden;
  min-height: calc(1.45em * 3 + 14px); /* 3行分 */
  line-height: 1.45;
  field-sizing: content;
}
.eb-field-icon      { font-size: 18px; max-width: 60px; text-align: center; }
.eb-block-fields label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--eb-c-gray-500);
  margin-bottom: 3px;
}
.eb-block-hint {
  font-size: 12px;
  color: var(--eb-c-gray-500);
  font-style: italic;
  padding: 4px 0;
}

/* ─── カラーピッカー ──────────────────────────────── */
.eb-color-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.eb-color-picker {
  width: 34px; height: 30px;
  border: 1px solid var(--eb-c-gray-300);
  border-radius: 6px;
  cursor: pointer;
  padding: 2px;
  flex-shrink: 0;
}
.eb-color-hex {
  width: 76px;
  padding: 5px 8px;
  border: 1px solid var(--eb-c-gray-300);
  border-radius: 6px;
  font-size: 12px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  outline: none;
}
.eb-color-hex:focus   { border-color: var(--eb-c-green); }
/* ─── リスト ──────────────────────────────────────── */
.eb-list-items      { display: flex; flex-direction: column; gap: 5px; margin-bottom: 4px; }
.eb-list-item       { display: flex !important; gap: 6px; align-items: flex-start; }
.eb-btn-list-remove {
  border: none; background: none;
  cursor: pointer; color: #ef4444; font-size: 15px;
  flex-shrink: 0;
  margin-top: 6px;
}
.eb-btn-list-add {
  border: none; background: none;
  cursor: pointer; color: var(--eb-c-green);
  font-size: 12px; font-weight: 700;
  padding: 2px 0; text-align: left;
}
.eb-btn-list-add:hover { text-decoration: underline; }

/* ─── 画像ドロップゾーン ──────────────────────────── */
.eb-image-dropzone {
  border: 2px dashed var(--eb-c-gray-300);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.eb-image-dropzone:hover    { border-color: var(--eb-c-green-lt); background: var(--eb-c-green-pale); }
.eb-image-dropzone.eb-over     { border-color: var(--eb-c-green);    background: var(--eb-c-green-pale); }
.eb-image-dropzone.eb-uploading { opacity: .6; pointer-events: none; }
.eb-dropzone-hint  { font-size: 12px; color: var(--eb-c-gray-500); margin: 0; }
.eb-image-preview  { max-width: 100%; max-height: 180px; border-radius: 6px; margin-bottom: 8px; }

.eb-drop-hint-zone {
  border: 2px dashed var(--eb-c-gray-300);
  border-radius: 8px;
  padding: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--eb-c-gray-500);
  background: var(--eb-c-gray-50);
  margin-top: 4px;
}

/* ─── プレビューモーダル（枠は DaisyUI modal / ここは iframe のみカスタム） ─ */
.eb-preview-iframe {
  border: none;
  border-radius: var(--rounded-box, 0.5rem);
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
  background: var(--eb-c-white);
  transition: width .3s ease;
  min-height: 600px;
  height: calc(90vh - 140px);
}
.eb-preview-iframe.eb-device-mobile  { width: 375px; }
.eb-preview-iframe.eb-device-desktop { width: 100%; }

/* ─── トースト ────────────────────────────────────── */
.eb-builder-toast {
  position: fixed;
  bottom: 24px; right: 24px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  transform: translateY(60px);
  opacity: 0;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  z-index: 9999;
  pointer-events: none;
}
.eb-builder-toast.eb-show    { transform: translateY(0); opacity: 1; }
.eb-builder-toast.eb-success { background: var(--eb-c-green-dk); color: white; }
.eb-builder-toast.eb-error   { background: #b91c1c; color: white; }

/* ─── 狭いビューポート（管理画面 85% 幅内・小画面） ─── */
@media (max-width: 960px) {
  .eb-workspace--edit {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(320px, 1fr);
    overflow-x: hidden;
    overflow-y: auto;
    align-content: start;
  }
  .eb-panel-left {
    height: auto;
    max-height: min(420px, 42vh);
    border-right: none;
  }
  .eb-panel-center {
    height: auto;
    min-height: min(600px, 58vh);
    max-height: none;
  }
  .eb-topbar-left .eb-template-name {
    max-width: min(280px, 70vw);
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *



 */

/*# sourceMappingURL=application.css-19508b3c3bc18b37eb3cc5bae8e5b72e7fad6cc01632699f8c396c42a80a03fe.map */
