body.page-tools-change {
  background: linear-gradient(180deg, #fff7ed 0%, var(--bg) 320px);
}
body.page-tools-change .reveal {
  opacity: 1 !important;
  transform: none !important;
}
body.page-tools-change .reveal.is-visible {
  opacity: 1 !important;
}

.ch-hero {
  border-radius: 20px;
  padding: 22px 20px;
  background: linear-gradient(145deg, #ffedd5 0%, #fff7ed 55%, #f8fafc 100%);
  border: 1px solid #fdba74;
  margin-bottom: 20px;
  text-align: center;
}
.ch-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  color: #9a3412;
}
.ch-hero-lead {
  margin: 0 auto;
  max-width: 520px;
  color: #374151;
  font-size: 0.94rem;
  line-height: 1.5;
}
.ch-result-label {
  margin: 16px 0 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c2410c;
}
.ch-result-value {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 900;
  color: #9a3412;
  line-height: 1.1;
}
.ch-result-value.is-short {
  color: #dc2626;
}
.ch-result-value.is-ok {
  color: #15803d;
}
.ch-result-hint {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: #6b7280;
}

.ch-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 600px) {
  .ch-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}
.ch-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.ch-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 1.15rem;
  font-weight: 700;
}
.ch-field input:focus {
  outline: 2px solid #fb923c;
  border-color: #f97316;
}
.ch-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.ch-preset-btn {
  border: 1px solid #fed7aa;
  background: #fff;
  color: #9a3412;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.ch-preset-btn:hover {
  background: #ffedd5;
}

.ch-notes-title {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #374151;
}
.ch-notes-hint {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.ch-notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 480px) {
  .ch-notes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 720px) {
  .ch-notes-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.ch-note-btn {
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 12px 8px;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  color: #1f2937;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.ch-note-btn:active {
  transform: scale(0.97);
}
.ch-note-btn[data-denom="500000"] {
  background: linear-gradient(160deg, #e9d5ff, #ddd6fe);
  border-color: #a78bfa;
}
.ch-note-btn[data-denom="200000"] {
  background: linear-gradient(160deg, #fecdd3, #fda4af);
  border-color: #fb7185;
}
.ch-note-btn[data-denom="100000"] {
  background: linear-gradient(160deg, #bbf7d0, #86efac);
  border-color: #4ade80;
}
.ch-note-btn[data-denom="50000"] {
  background: linear-gradient(160deg, #bfdbfe, #93c5fd);
  border-color: #60a5fa;
}
.ch-note-btn[data-denom="20000"] {
  background: linear-gradient(160deg, #fde68a, #fcd34d);
  border-color: #fbbf24;
}
.ch-note-btn[data-denom="10000"] {
  background: linear-gradient(160deg, #fed7aa, #fdba74);
  border-color: #fb923c;
}
.ch-note-btn[data-denom="5000"],
.ch-note-btn[data-denom="2000"],
.ch-note-btn[data-denom="1000"],
.ch-note-btn[data-denom="500"] {
  background: #f3f4f6;
  border-color: #d1d5db;
  font-size: 0.82rem;
}
.ch-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.ch-action-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.88rem;
}
.ch-action-btn--primary {
  background: #ea580c;
  color: #fff;
  border-color: #ea580c;
}
.ch-action-btn--danger {
  color: #b91c1c;
  border-color: #fecaca;
}

.ch-stack {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px dashed var(--border);
  min-height: 48px;
}
.ch-stack-empty {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.ch-stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ch-stack-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}
.ch-stack-chip button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #9ca3af;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.ch-breakdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.ch-breakdown-table th,
.ch-breakdown-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.ch-breakdown-table th {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.ch-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.ch-summary-row strong {
  font-weight: 800;
}
