.widget-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.widget-box__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6b7280;
  margin: 0 0 1rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 540px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

.calc-label {
  font-size: 0.83rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.35rem;
  display: block;
}

.calc-sub {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
  display: block;
}

.calc-slider {
  width: 100%;
  accent-color: #00c853;
  cursor: pointer;
  font: inherit;
}

.calc-value-display {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
}

.calc-result-box {
  background: #fff;
  border: 2px solid #bbf7d0;
  border-radius: 8px;
  padding: 1rem;
}

.calc-result-label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.calc-result-value {
  font-size: 2rem;
  font-weight: 800;
  color: #15803d;
  line-height: 1;
}

.calc-result-sub {
  font-size: 0.8rem;
  color: #374151;
  margin-top: 0.35rem;
  line-height: 1.45;
}

.ts-input {
  font: inherit;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1rem;
}

.ts-result {
  background: #fff;
  border: 2px solid #bbf7d0;
  border-radius: 8px;
  padding: 1rem;
}

.ts-result__main {
  font-size: 1.75rem;
  font-weight: 800;
  color: #15803d;
  line-height: 1;
}

.ts-row {
  margin-bottom: 1rem;
}

.ts-help {
  font-size: 0.75rem;
  color: #6b7280;
  display: block;
}

.ts-note {
  font-size: 0.78rem;
  color: #92400e;
  background: #fef3c7;
  border-radius: 5px;
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
  display: none;
}

.candle-patterns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
}

@media (max-width: 580px) {
  .candle-patterns {
    grid-template-columns: 1fr;
  }
}

.candle-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.25rem 1rem;
  text-align: center;
  background: #fff;
}

.candle-card__name {
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0.6rem 0 0.2rem;
  color: #111;
}

.candle-card__signal {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.candle-card__signal--neutral { background: #fef9c3; color: #854d0e; }
.candle-card__signal--bull    { background: #dcfce7; color: #15803d; }
.candle-card__signal--bear    { background: #fee2e2; color: #b91c1c; }

.candle-card__desc {
  font-size: 0.8rem;
  color: #4b5563;
  line-height: 1.5;
  text-align: left;
}

.emotion-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}

.emotion-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.45;
}

.emotion-list label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  cursor: pointer;
}

.emotion-list input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #ef4444;
  cursor: pointer;
}

.emotion-counter {
  font-size: 0.83rem;
  font-weight: 600;
  color: #6b7280;
  margin-top: 0.5rem;
}

.emotion-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 0.7rem 1rem;
  margin-top: 0.75rem;
  color: #dc2626;
  font-size: 0.85rem;
  font-weight: 600;
  display: none;
}

.summary-steps {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  counter-reset: step;
}

.summary-steps li {
  display: flex;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid #f3f4f6;
  counter-increment: step;
}

.summary-steps li::before {
  content: counter(step);
  min-width: 2rem;
  height: 2rem;
  background: #00c853;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.summary-step__title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #111;
}

.summary-step__detail {
  font-size: 0.82rem;
  color: #6b7280;
  margin-top: 0.15rem;
  line-height: 1.45;
}

.clock-time {
  font-size: 2.8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #111;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.clock-time span {
  font-size: 1.4rem;
  font-weight: 400;
  color: #6b7280;
  margin-left: 0.25rem;
}

.session-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.session-badge--best   { background: #dcfce7; color: #15803d; }
.session-badge--good   { background: #dbeafe; color: #1d4ed8; }
.session-badge--decent { background: #ede9fe; color: #6d28d9; }
.session-badge--avoid  { background: #fef9c3; color: #854d0e; }
.session-badge--closed { background: #f3f4f6; color: #6b7280; }

.session-verdict {
  font-size: 0.875rem;
  color: #374151;
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

.session-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

.session-table th {
  text-align: left;
  padding: 0.35rem 0.5rem;
  color: #6b7280;
  font-weight: 600;
  border-bottom: 1px solid #e5e7eb;
}

.session-table td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}

.session-table tr.is-active td {
  background: #f0fdf4;
  font-weight: 600;
  color: #15803d;
}

.session-active-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00c853;
  margin-right: 4px;
  vertical-align: middle;
}

@media (max-width: 720px) {
  table.session-table {
    table-layout: auto;
  }
  table.session-table th,
  table.session-table td {
    overflow-wrap: normal;
    word-break: normal;
    padding: 0.5rem 0.4rem;
    font-size: 0.8rem;
  }
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  counter-reset: step;
}

.steps-list li {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
  counter-increment: step;
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.5;
}

.steps-list li:last-child {
  border-bottom: none;
}

.steps-list li::before {
  content: counter(step);
  min-width: 1.75rem;
  height: 1.75rem;
  background: #00c853;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.gold-status {
  display: inline-block;
  margin: 0.25rem 0 1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.gold-status.is-open { background: #dcfce7; border-color: #bbf7d0; color: #15803d; }
.gold-status.is-closed { background: #f3f4f6; color: #6b7280; }

.gold-note {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.gold-note p { margin: 0 0 0.5rem; }
.gold-note__date { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.gold-note__src { margin: 0.5rem 0 0; font-size: 0.8rem; color: var(--text-muted); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.is-up { color: var(--positive); }
.is-down { color: var(--negative); }

.gc, .mc { margin: 1rem 0; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.gc-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; }
.gc-qty, .gc-target, #mc-amount { padding: 0.35rem 0.5rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; }
.gc-qty { width: 4.5rem; }
.gc-target, #mc-amount { width: 7.5rem; }
.gc-eq { color: var(--text-muted); }
.gc-out { font-size: 1.75rem; font-weight: 600; }
.gc-chips, .gp-switch, .mc-seg { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.gc-chips { margin-top: 0.75rem; }
.gc-chip, .gp-switch button, .mc-seg button { padding: 0.25rem 0.75rem; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; font: inherit; font-size: 0.875rem; color: var(--text); cursor: pointer; }
.gc-chip[aria-pressed="true"], .gp-switch button[aria-pressed="true"], .mc-seg button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }
.gc-help { margin: 0.5rem 0 0; font-size: 0.8rem; color: var(--text-muted); }
.gc-reverse { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.gc-reverse summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.gc-reverse .gc-line { margin-top: 0.5rem; }
.gc-rline { margin: 0.5rem 0 0; }
.gc-rline output { font-weight: 600; }

.gp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: 1rem 0; }
.gp-panel { padding: 0.75rem 1rem; background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.gp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; }
.gp-title { font-weight: 600; }
.is-muted { color: var(--text-muted); }
.gp-plot { position: relative; margin-top: 0.5rem; }
.gp-chart { display: block; width: 100%; height: auto; touch-action: pan-y; cursor: crosshair; }
.gp-plot, .gp-chart { -webkit-tap-highlight-color: transparent; }
.gp-chart:focus { outline: none; }
.gp-chart:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.gp-chart text { font-size: 11px; fill: var(--text-muted); }
.gp-grid line { stroke: var(--line); stroke-width: 0.75; }
.gp-stop-a { stop-color: #e5a23a; stop-opacity: 0.45; }
.gp-stop-b { stop-color: #e5a23a; stop-opacity: 0; }
.gp-area { fill: url(#gp-fill); }
.gp-line { fill: none; stroke: #c9821b; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.gp-cross, .gp-dot { display: none; }
.gp-plot.is-hover .gp-cross { display: inline; stroke: var(--text-muted); stroke-width: 1; stroke-dasharray: 3 3; }
.gp-plot.is-hover .gp-dot { display: inline; fill: var(--surface); stroke: #c9821b; stroke-width: 2; }
.gp-tip { position: absolute; transform: translate(-50%, calc(-100% - 12px)); pointer-events: none; padding: 0.3rem 0.55rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1); font-size: 0.75rem; line-height: 1.35; white-space: nowrap; }
.gp-tip span { display: block; color: var(--text-muted); }
.gp-tip b { font-weight: 600; }
.gp-periods { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.125rem; margin-top: 0.5rem; }
.gp-periods button { min-width: 0; padding: 0.35rem 0.2rem; border: 0; border-radius: var(--radius-sm); background: transparent; font: inherit; font-size: 0.8rem; line-height: 1.35; color: var(--text); cursor: pointer; }
.gp-periods button span { display: block; font-size: 0.75rem; }
.gp-periods button span.is-muted { font-size: 0.68rem; line-height: 1.2; }
.gp-grid text { paint-order: stroke; stroke: var(--surface-soft); stroke-width: 4px; stroke-linejoin: round; }
.gp-periods button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.gp-ranges { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 0.75rem; font-size: 0.875rem; }
.gp-rlabel { font-size: 0.8rem; color: var(--text-muted); }
.gp-rbar { position: relative; height: 4px; margin: 0.5rem 0 0.25rem; border-radius: 2px; background: var(--line-strong); }
.gp-rbar i { position: absolute; top: -4px; width: 6px; height: 12px; margin-left: -3px; border-radius: 3px; background: var(--accent); }
.gp-rvals { display: flex; justify-content: space-between; }
.gp-card { padding: 0.75rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.gp-card .gold-status { margin: 0; }
.gp-name { margin: 0.5rem 0 0; font-weight: 600; }
.gp-sym { font-size: 0.8rem; font-weight: 400; color: var(--text-muted); }
.gp-price { margin: 0.125rem 0 0; font-size: 1.3rem; font-weight: 600; }
.gp-price #gp-chg { font-size: 0.85rem; }
.gp-cta { display: block; margin: 0.75rem 0; padding: 0.5rem; border-radius: var(--radius-md); background: var(--accent); color: #fff; font-weight: 600; text-align: center; text-decoration: none; }
.gp-cta:hover { background: var(--accent-dark); color: #fff; }
.gp-kv, .mc-kv { margin: 0; }
.gp-kv div, .mc-kv div { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.3rem 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.gp-kv div:last-child, .mc-kv div:last-child { border-bottom: 0; }
.gp-kv dt, .mc-kv dt { color: var(--text-muted); }
.gp-kv dd, .mc-kv dd { margin: 0; text-align: right; }
.gp-fine { margin: 0.5rem 0 0; font-size: 0.75rem; color: var(--text-soft); }

.mc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-bottom: 0.75rem; }
.mc-label { font-size: 0.875rem; color: var(--text-muted); }
.mc-out { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.mc-cap { margin: 0 0 0.25rem; font-size: 0.8rem; color: var(--text-muted); }
.mc-rung { display: grid; grid-template-columns: 3.25rem 1fr 5.5rem; align-items: center; gap: 0.5rem; padding: 0.1rem 0; font-size: 0.8rem; }
.mc-rung > span:last-child { text-align: right; }
.mc-rung.is-closed { opacity: 0.45; }
.mc-bar { position: relative; height: 12px; }
.mc-bar::before { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; border-left: 1px solid var(--line-strong); }
.mc-bar i { position: absolute; top: 0; height: 12px; border-radius: 3px; }
.mc-bar i.is-up { left: 50%; background: #97c459; }
.mc-bar i.is-down { right: 50%; background: #f09595; }
.mc-so { margin: 0.2rem 0; padding-top: 0.1rem; border-top: 1px dashed var(--negative); font-size: 0.75rem; color: var(--negative); }
.mc-so.is-quiet { border-color: var(--line-strong); color: var(--text-muted); }

@media (min-width: 601px) {
  .gp-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: 1.25rem; align-items: start; }
  .gp-card > :not(.gp-kv) { grid-column: 1; }
  .gp-card > .gp-kv { grid-column: 2; grid-row: 1 / span 5; }
}

@media (max-width: 600px) {
  .mc-out { grid-template-columns: 1fr; }
  .gp-chart text { font-size: 22px; }
  .gp-line { stroke-width: 3.5; }
  .gp-periods { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; position: relative; }
  .gp-periods::-webkit-scrollbar { display: none; }
  .gp-periods button { flex: 0 0 25%; scroll-snap-align: start; }
  .gp-ranges { gap: 0.75rem; }
}
