/* 全体 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 24px;
  background: #f5f5f7;
  color: #111;
}

header h1 {
  margin: 0 0 16px;
  font-size: 24px;
}

/* タブ数選択 */
.tab-count {
  margin-bottom: 20px;
}

.tab-count label {
  margin-right: 16px;
  font-size: 16px;
  cursor: pointer;
}

/* タブカードエリア */
.tab-cards {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

/* タブカード */
.tab-card {
  flex: 1;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: grab;
}

.tab-card:active {
  cursor: grabbing;
}

.tab-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

/* 中身画像エリア（ダミー） */
.image-placeholder {
  height: 120px;
  background: #e5e5ea;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 14px;
  margin-bottom: 12px;
}

/* 背景色選択 */
.color-select button {
  margin-right: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
}

.color-select button.active {
  border-color: #007aff;
  background: #e6f0ff;
}

/* プレビュー */
.preview {
  margin-bottom: 24px;
}

.preview h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.preview-box {
  height: 200px;
  background: #ffffff;
  border-radius: 12px;
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

/* 操作ボタン */
.actions-left button {
  padding: 10px 18px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between; /* 左箱と右箱を両端へ */
  gap: 12px;
}

.actions-left {
  display: flex;
  gap: 12px;
  flex-wrap: wrap; /* 画面が狭い時の保険 */
}

#publishBtn { background: #34c759; color: #fff; }   /* 公開：緑 */
#unpublishBtn { background: #ff3b30; color: #fff; } /* 停止：赤 */

#runBtn {
  background: #34c759; /* 緑：実行 */
  color: #111;
}

#packBtn {
  background: #007aff; /* 青：確定保存 */
  color: #fff;
}

#importPackBtn {
  background: #34c759; /* 取込＝実行系なので緑 */
  color: #fff;
}

#applyBtn,
#editBtn {
  background: #d1d1d6; /* 休眠 */
  color: #fff;
}
/* 右の「公開系」だけグループ化して目立たせる */
.pub-actions{
  margin-left: auto;
  display: inline-flex;
  gap: 14px;                 /* ← 少し広げる */
  padding: 16px 18px;        /* ← 枠を大きく */
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 14px;
  background: rgba(255,255,255,0.75);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  backdrop-filter: blur(6px);
}
/* 右3つだけ“押せる感”を上げる */
.pub-actions button{
  padding: 14px 22px;        /* ← デカくなる核心 */
  font-size: 18px;           /* ← 読みやすさUP */
  font-weight: 800;
  border-radius: 10px;
  border: none;
}
/* 押した時の気持ちよさ（共通） */
.pub-actions button:active{
  transform: translateY(1px);
}
.pub-actions button:hover{
  filter: brightness(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

/* ===== 中身（JPG/PNG）選択ボタンを目立たせる ===== */
.select-content-btn {
  width: 100%;                /* 横幅いっぱい */
  padding: 14px 16px;
  margin: 12px 0;
  font-size: 15px;
  font-weight: 700;

  border-radius: 10px;
  border: 2px solid #0a84ff;  /* 太め・青枠 */
  background: #f0f6ff;       /* 薄い青 */
  color: #0a84ff;

  cursor: pointer;
}

.select-content-btn:hover {
  background: #e6f0ff;
}

.select-content-btn:active {
  transform: translateY(1px);
}

/* ===== Actions Panel バランス修正版 ===== */

.actions-row {
  grid-template-columns: 180px 110px 1fr;
}

.actions-row input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;   /* ちょうどいい */
  border-radius: 8px;
  box-sizing: border-box;
}

.actions-row select {
  font-size: 13px;
  padding: 6px;
}