/* Slim Shady-era sticker aesthetic: stark white, acid yellow, alarm red,
   hard black borders and offset shadows, halftone dots. All original CSS —
   the energy of the era, none of its artwork. */
:root {
  --ink: #111111;
  --paper: #ffffff;
  --yellow: #ffd21f;
  --red: #e03a1e;
  --green: #1d9e4b;
  --orange: #ff7a1a;
  --muted: #4d4d4d;
  --panel-2: #fff3b0;
  --line: #111111;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  background-image: radial-gradient(#11111118 1.2px, transparent 1.2px);
  background-size: 14px 14px;
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, system-ui, sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px 4px; max-width: 560px; margin: 0 auto;
}
.brand { display: flex; gap: 10px; align-items: center; font-family: "Arial Black", Impact, sans-serif; font-size: 22px; letter-spacing: .5px; text-transform: uppercase; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px;
  background: var(--yellow); color: var(--ink); border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink); font-weight: 900;
}
.name-sticker {
  background: var(--red); color: #fff; font-family: "Comic Sans MS", "Chalkboard SE", sans-serif;
  font-size: 12px; text-transform: none; letter-spacing: 0; padding: 4px 8px;
  border: 2px solid var(--ink); transform: rotate(-4deg); box-shadow: 2px 2px 0 var(--ink);
}
.window-label { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 700; }
main { max-width: 560px; margin: 0 auto; padding: 12px 16px 40px; }
.error-banner { background: var(--red); color: #fff; padding: 10px 12px; border: 3px solid var(--ink); font-weight: 700; }
.hero { padding: 22px 4px 8px; }
.hero-label { color: var(--muted); margin: 0; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.hero-amount {
  font-family: "Arial Black", Impact, sans-serif; font-size: 64px; line-height: 1.05; margin: 4px 0 18px;
  font-variant-numeric: tabular-nums; text-shadow: 4px 4px 0 var(--yellow);
}
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 84px 1fr 76px; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.bar-row span { color: var(--muted); }
.bar { height: 12px; background: #fff; border: 2px solid var(--ink); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--yellow); transition: width .4s ease; }
#barCommitted { background: var(--orange); }
#barSpent { background: var(--ink); }
.ask-card, .panel, .verdict {
  background: var(--paper); border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink); margin-top: 22px; padding: 18px;
}
.ask-card h1 { font-family: "Arial Black", Impact, sans-serif; font-size: 30px; margin: 0 0 14px; text-transform: uppercase; }
form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
input, textarea, .deeper select {
  font: inherit; color: var(--ink); background: #fff;
  border: 2px solid var(--ink); border-radius: 0; padding: 13px 12px; width: 100%;
}
input:focus, textarea:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
button {
  font: inherit; cursor: pointer; border: 3px solid var(--ink); border-radius: 0;
  padding: 13px; font-weight: 900; background: #fff; color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink); text-transform: uppercase; letter-spacing: .4px;
}
button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.ask-btn { background: var(--yellow); font-size: 17px; }
.verdict-word {
  font-family: "Arial Black", Impact, sans-serif; font-size: 92px; line-height: .95; margin: 0;
  text-transform: uppercase;
}
.verdict.yes .verdict-word { color: var(--green); text-shadow: 5px 5px 0 var(--ink); }
.verdict.no .verdict-word { color: var(--red); text-shadow: 5px 5px 0 var(--ink); }
.verdict-sub { font-size: 18px; margin: 10px 0; font-weight: 600; }
.bars-box { background: var(--yellow); border: 3px solid var(--ink); padding: 12px 14px; margin: 12px 0; transform: rotate(-.5deg); }
.bars-label { margin: 0 0 6px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
.bars-lines { margin: 0; font-family: Georgia, serif; font-style: italic; font-size: 17px; line-height: 1.45; }
.reasons { margin: 10px 0; padding-left: 18px; color: var(--muted); display: grid; gap: 4px; }
.path { background: var(--panel-2); border: 2px solid var(--ink); padding: 12px; font-weight: 700; }
.record-btn { background: var(--green); color: #fff; width: 100%; margin-top: 10px; }
.no-override { color: var(--red); font-weight: 900; text-transform: uppercase; margin-bottom: 0; }
.panel h2 { font-size: 19px; margin: 0 0 12px; font-family: "Arial Black", Impact, sans-serif; text-transform: uppercase; }
.panel h3 { font-size: 14px; color: var(--muted); margin: 16px 0 8px; text-transform: uppercase; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.rows li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px dotted #999; padding-bottom: 8px; }
.rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.rows .meta { color: var(--muted); font-size: 13px; }
.rows b { font-variant-numeric: tabular-nums; }
.verdict-tag { font-weight: 900; }
.verdict-tag.yes { color: var(--green); }
.verdict-tag.no { color: var(--red); }
.spend-form { grid-template-columns: 1fr 110px; }
.spend-form button { grid-column: 1 / -1; }
footer { color: var(--muted); font-size: 13px; text-align: center; margin-top: 22px; font-weight: 600; }
.meta-line { color: var(--muted); font-size: 13px; }
.tree { display: grid; gap: 14px; margin-top: 12px; }
.tree-branch { border-top: 3px dashed var(--ink); padding-top: 12px; display: grid; gap: 14px; }
.branch-label { color: var(--red); font-family: "Arial Black", Impact, sans-serif; font-size: 16px; text-transform: uppercase; }
.tree-q { margin: 0 0 8px; font-size: 14px; color: var(--muted); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { padding: 9px 13px; box-shadow: 3px 3px 0 var(--ink); }
.chips button.selected { background: var(--yellow); }
.save-profile { background: var(--yellow); width: 100%; margin-top: 16px; }
.save-profile:disabled { opacity: .35; cursor: not-allowed; }
.insight { margin-top: 16px; background: var(--panel-2); border: 2px solid var(--ink); padding: 14px; }
.archetype { font-family: "Arial Black", Impact, sans-serif; font-size: 21px; margin: 0 0 8px; text-transform: uppercase; }
.draft-box, .blot-box { margin-top: 16px; display: grid; gap: 10px; }
.draft-box label { color: var(--ink); font-size: 15px; }
textarea { resize: vertical; }
.draft-note { background: var(--panel-2); border: 2px solid var(--ink); padding: 12px; margin: 0; font-size: 14px; }
.blot-img { width: 120px; height: 72px; }
.blot-prompt { font-size: 16px; margin: 0; font-weight: 600; }
.level-list { margin: 0; padding-left: 18px; display: grid; gap: 16px; }
.level-list p { color: var(--muted); font-size: 14px; margin: 6px 0; }
.level-state { color: var(--red); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.level-link { color: var(--ink); font-size: 14px; font-weight: 700; }
.levels input[type="file"] { border: 0; padding: 6px 0; box-shadow: none; }
#applyMonth { background: var(--yellow); }
.candidate { display: flex; gap: 8px; align-items: center; color: var(--ink); margin: 6px 0; }
.candidate input { width: auto; }
@media (prefers-reduced-motion: reduce) { .bar i { transition: none; } }
.character-box { border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); margin-top: 16px; background: #fff; }
.character-box svg { display: block; width: 100%; height: auto; }
.char-caption { margin: 0; padding: 10px 12px; border-top: 3px solid var(--ink); font-weight: 700; background: var(--yellow); }
.dial { display: grid; gap: 6px; color: var(--ink); }
.dial input[type="range"] { accent-color: var(--red); box-shadow: none; border: 0; padding: 0; }
.tabs {
  position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr 1fr 1fr;
  max-width: 560px; margin: 10px auto 0; padding: 0 16px; gap: 8px; background: transparent;
}
.tabs .tab { background: #fff; font-size: 15px; padding: 11px 6px; }
.tabs .tab.active { background: var(--ink); color: var(--yellow); }
@keyframes cani-blink {
  0% { box-shadow: 3px 3px 0 var(--ink); }
  100% { box-shadow: 0 0 0 5px var(--red), 3px 3px 0 var(--ink); }
}
.chips.unfilled button, select.unfilled {
  animation: cani-blink .55s ease-in-out infinite alternate;
}
select.unfilled { border-color: var(--red); }
@media (prefers-reduced-motion: reduce) {
  .chips.unfilled button, select.unfilled { animation: none; outline: 3px solid var(--red); }
}
.shame-btn { background: var(--red); color: #fff; width: 100%; margin-top: 10px; }
.shame-score { display: inline-block; background: var(--red); color: #fff; font-weight: 900; padding: 5px 10px; border: 2px solid var(--ink); transform: rotate(-2deg); text-transform: uppercase; font-size: 13px; }
.ess-row {
  display: grid; grid-template-columns: 24px 1fr auto 110px; gap: 10px;
  align-items: center; width: 100%; margin: 10px 0; font-weight: 700;
}
.ess-row span:first-of-type { text-align: left; }
.ess-row input[type="number"] {
  width: 110px; min-width: 110px; max-width: 110px; flex: 0 0 110px;
  text-align: right; justify-self: end; box-sizing: border-box;
}
.ess-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--red); }
#saveEssentials { background: var(--yellow); margin-top: 8px; }
.paypal-btn { background: #0070ba; color: #fff; border-color: #111; width: 100%; margin-top: 10px; }
.paypal-area { margin-top: 12px; border: 3px solid var(--ink); padding: 12px; background: #e8f4fc; display: grid; gap: 10px; }
.paypal-area a { font-weight: 900; color: #0070ba; }
#paypalCapture { background: #0070ba; color: #fff; }
.goal-health { margin-top: 16px; border: 3px solid var(--red); background: #fff; padding: 14px; box-shadow: 5px 5px 0 var(--ink); }
.goal-health p { margin: 6px 0; }
#realignBtn { background: var(--red); color: #fff; }
.verdict-duo { font-weight: 900; text-transform: uppercase; font-size: 14px; background: var(--ink); color: var(--yellow); display: inline-block; padding: 6px 10px; }
.kept-chip { display: inline-block; background: var(--green); color: #fff; font-weight: 900; padding: 5px 10px; border: 2px solid var(--ink); text-transform: uppercase; font-size: 13px; margin-left: 8px; }
