/* ============================= 升幅 顏色控制 ============================= */

body.mode-international .stock .change.up {
  color: rgb(2, 150, 106);
}
body.mode-international .stock .change.down {
  color: #d33;
}

body.mode-cn .stock .change.up {
  color: #d33;
}
body.mode-cn .stock .change.down {
  color: rgb(2, 150, 106);
}

.settings-panel {
  padding: 0px 8px;
  width: 100%;
  font-size: 100%;
}

.settings-title {
  font-weight: 500;
  margin-bottom: 20px;
  text-align: left;
  border-bottom: 1px dashed #ddd;
  padding-bottom: 8px;
}

.settings-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 20px 0 40px 0;
}

.settings-label {
  color: #888;
  font-size: 14px;
}

/* segmented buttons */
.option-group {
  display: flex;
  background: #f2f2f2;
  border-radius: 12px;
  padding: 2px;
  gap: 2px;
}

.option-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 6px 4px;
  font-size: 12px;
  border-radius: 10px;
  color: #777;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

/* active */
.option-btn.active {
  background: #fff;
  color: #111;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ============================= 評級顏色控制 ============================= */

/* default：綠買紅賣 */
body.rating-buy-green .rating.buy {
  color: rgb(2, 150, 106);
}

body.rating-buy-green .rating.sell {
  color: #d33;
}

/* 反轉：紅買綠賣 */
body.rating-buy-red .rating.buy {
  color: #d33;
}

body.rating-buy-red .rating.sell {
  color: rgb(2, 150, 106);
}

/* ============================= 設定頁確認按鈕 ============================= */

.settings-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  border-top: 1px dashed #ddd;
  padding: 20px 0;
}

.settings-confirm-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 12px;
  background: #999;
  color: #fff;
  font-size: 14px;

  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.settings-confirm-btn:hover {
  background: #666;
}

.settings-confirm-btn:active {
  transform: translateY(1px);
}

/* =========================================================Contact Section（Phase 1）
   ========================================================= */

.contact-section {
}

.contact-desc {
  margin: 20px 0 25px 0;
  font-size: 95%;
  color: #666;
  margin-bottom: 36px;
}

.contact-form {
  padding-left: 10px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-row label {
  font-size: 0.8rem;
  color: #888;
}

.form-row input,
.form-row textarea {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #aaa;
}

.form-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-start;
}

.contact-submit {
  padding: 8px 18px;
  border-radius: 12px;
  border: none;
  background: #666;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.contact-submit:hover {
  background: #f5bf0f;
  color: #000;
}


/* ============================= Column Drag List ============================= */

.drag-list {
  list-style: none;
  padding: 0;
  margin: 6px 0;
}

.drag-list li {
  padding: 6px 20px;
  margin-bottom: 5px;
  background: #f5f5f5;
  border-radius: 10px;
  cursor: grab;
  font-size: 14px;
}

.drag-list li.dragging {
  opacity: 0.5;
}

.drag-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drag-handle {
  cursor: grab;
  color: #999;
  font-size: 16px;
  user-select: none;
}

.drag-list li.dragging .drag-handle {
  cursor: grabbing;
}

.drag-label {
  flex: 1;
  color: #333;
}

/* =============================排序按鈕（▲ ▼）
   ============================= */

.drag-list li {
  display: flex;
  align-items: center;
}

.order-btns {
  display: flex;
  flex-direction: column;
  margin-left: auto;
}

.order-btns button {
  border: none;
  background: none;
  font-size: 110%;
  cursor: pointer;
  line-height: 1;
  padding: 0px;
  color: #999;
  display: hidden;
}

.order-btns button:active {
  opacity: 0.5;
}
