:root {
  --primary: #06c755;

  /*
   * デフォルト背景色
   * 部屋が未判定の場合に使用
   */
  --bg: #f5f3ef;

  --card-bg: #ffffff;
  --text: #333333;
}

body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;

  padding: 12px;
  padding-bottom: 40px;

  background: var(--bg);

  margin: 0;

  color: var(--text);

  transition:
    background-color 0.25s ease;
}

h1.room-title {
  font-size: 18px;
  margin: 0 0 12px 0;
  color: var(--text);
}

h2 {
  font-size: 16px;
  margin: 0 0 10px 0;
  color: #555;
}

.status-bar {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
  min-height: 14px;
}

.search-box {
  width: 100%;
  padding: 10px;

  box-sizing: border-box;

  border: 1px solid #ccc;
  border-radius: 8px;

  font-size: 15px;

  margin-bottom: 12px;
}

.tabs {
  display: flex;

  overflow-x: auto;

  gap: 8px;

  margin-bottom: 12px;
  padding-bottom: 4px;

  border-bottom: 2px solid #ddd;
}

.tab-btn {
  padding: 8px 14px;

  background: #e0e0e0;

  border: none;
  border-radius: 16px;

  font-weight: bold;
  font-size: 13px;

  cursor: pointer;
  white-space: nowrap;

  color: #666;
}

.tab-btn.active {
  background: var(--primary);
  color: white;
}

.category-section {
  display: none;
}

.category-section.active {
  display: block;
}

.param-card {
  background: var(--card-bg);

  padding: 12px;

  border-radius: 10px;

  margin-bottom: 12px;

  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.1);
}

.param-title {
  font-weight: bold;
  font-size: 14px;

  margin-bottom: 8px;

  display: block;
}

.input-row {
  display: flex;

  gap: 8px;

  align-items: center;

  margin-bottom: 8px;
}

.input-row input[type="number"],
.input-row input[type="text"],
.input-row select {
  padding: 8px;

  border: 1px solid #ccc;
  border-radius: 6px;

  font-size: 14px;
}

.input-row input[type="text"] {
  flex: 1;
}

.btn-grid {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 8px;
}

.cmd-btn {
  padding: 10px 8px;

  background: var(--card-bg);

  color: var(--text);

  border: 1px solid #d0d0d0;
  border-radius: 8px;

  font-size: 13px;
  font-weight: 500;

  cursor: pointer;

  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05);

  text-align: center;

  line-height: 1.3;

  word-break: break-all;
}

.cmd-btn:active {
  background: #e6f9ed;

  border-color: var(--primary);

  color: var(--primary);
}

#toast {
  position: fixed;

  left: 50%;
  bottom: 20px;

  transform:
    translateX(-50%);

  background: #333;

  color: #fff;

  padding: 8px 16px;

  border-radius: 20px;

  font-size: 13px;

  z-index: 999;

  opacity: 0.95;

  display: none;

  white-space: nowrap;
}
