/*
 * "Set up my budget" (29 Nov 2026), plus the small pieces that came with real budgets:
 * the sample-money banner, the pot picker when adding a spend, and the greeting on the computer.
 * Colours come from the theme variables in base.css, so every pastel theme repaints this too.
 */

/* ---------- the set-up screens ---------- */
html.setting-up, html.setting-up body { overflow: hidden; }
.setup { position: fixed; inset: 0; z-index: 100; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(70% 50% at 0% 0%, var(--hero-1), transparent 70%),
    radial-gradient(60% 50% at 100% 100%, var(--hero-2), transparent 70%),
    var(--bg); color: var(--ink); font-family: var(--fb); }
.setup[hidden] { display: none; }
.s-wrap { max-width: 640px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 16px calc(40px + env(safe-area-inset-bottom)); }
.s-card { background: var(--card); border-radius: 24px; padding: 26px 22px 24px;
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px color-mix(in srgb, var(--accent-d) 55%, transparent); }
.s-card h1 { font-family: var(--fd); font-weight: 600; font-size: 1.75rem; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 6px; outline: none; }
.s-card h2 { font-family: var(--fd); font-weight: 600; font-size: 1.2rem; margin: 0 0 2px; }
.s-card h2 small, .sl small { font-family: var(--fb); font-weight: 600; font-size: .78rem; color: var(--ink-3); }
.s-why { margin: 0 0 18px; color: var(--ink-2); font-size: .95rem; line-height: 1.5; font-weight: 500; }

/* the steps along the top */
.s-top { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; }
.s-steps { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.s-steps span { font-size: .74rem; font-weight: 700; color: var(--ink-3); padding-top: 9px; position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-steps span::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.s-steps .done::before, .s-steps .on::before { background: var(--accent); }
.s-steps .on { color: var(--ink); }
.s-x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink-2); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }

/* welcome */
.s-hello { margin-top: 6vh; }
.s-mark { display: block; width: 56px; height: 56px; border-radius: 16px; margin-bottom: 18px; box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--accent-d) 60%, transparent); }
.s-hello p { color: var(--ink-2); font-size: 1rem; line-height: 1.55; margin: 0 0 16px; }
.s-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.s-list li { position: relative; padding-left: 28px; font-weight: 700; font-size: .95rem; }
.s-list li::before { content: '\2713'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; color: #fff; background: var(--good); }

/* buttons */
.s-go { display: block; width: 100%; min-height: 54px; border: 0; border-radius: 16px; cursor: pointer; font: inherit; font-weight: 800; font-size: 1.02rem; color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent-d)); box-shadow: 0 12px 24px -12px var(--accent-d), inset 0 1px 0 rgb(255 255 255 / .25); margin-top: 22px; }
.s-alt { display: block; width: 100%; min-height: 50px; margin-top: 10px; border: 0; border-radius: 16px; cursor: pointer; font: inherit; font-weight: 700; font-size: .95rem; color: var(--accent-d); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.s-nav { display: flex; gap: 10px; margin-top: 22px; }
.s-nav .s-go { margin-top: 0; flex: 1; }
.s-back { flex: none; min-height: 54px; padding: 0 20px; border: 0; border-radius: 16px; cursor: pointer; font: inherit; font-weight: 700; color: var(--ink-2); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.s-add { border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent); background: none; color: var(--accent-d); font: inherit; font-weight: 700; font-size: .92rem; border-radius: 14px; min-height: 46px; width: 100%; cursor: pointer; margin-top: 10px; }
.setup button:focus-visible, .setup input:focus-visible, .setup select:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

/* fields */
.sf { display: block; margin: 0 0 16px; }
.sl { display: block; font-size: .86rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.sh { display: block; font-size: .8rem; color: var(--ink-3); font-weight: 600; margin-top: 6px; }
.se { display: block; font-size: .84rem; color: var(--over-ink); font-weight: 700; margin-top: 6px; }
.setup input, .setup select { width: 100%; min-height: 50px; border: 1.5px solid var(--line); border-radius: 13px; background: var(--bg-2); color: var(--ink);
  font: inherit; font-size: 16px; font-weight: 600; padding: 0 14px; -webkit-appearance: none; appearance: none; }
.setup select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='2'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }
.setup input[type=date] { display: block; min-width: 0; }
.setup input::placeholder { color: var(--ink-3); font-weight: 500; }
.setup input:focus, .setup select:focus { border-color: var(--accent); background-color: var(--card); outline: none; }
.bad input, .bad select { border-color: var(--over); background-color: var(--over-bg); }
/* money boxes: "$" in front (or "%" behind for interest) */
.sm { display: flex; align-items: center; position: relative; }
.sm i { position: absolute; left: 14px; font-style: normal; font-weight: 700; color: var(--ink-3); pointer-events: none; }
.sm i + input { padding-left: 28px; }
.sm input + i { left: auto; right: 14px; }
.sm input:first-child { padding-right: 30px; }

/* how often you're paid */
.s-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 15px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.s-seg button { min-height: 46px; border: 0; border-radius: 11px; background: none; font: inherit; font-weight: 700; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.s-seg button[aria-checked=true] { background: var(--card); color: var(--ink); box-shadow: 0 4px 12px -6px color-mix(in srgb, var(--ink) 40%, transparent); }

/* rows: bills, pots, goals, debts, owns */
.s-rows { display: grid; gap: 10px; }
.s-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 48px 14px 14px; border-radius: 16px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.s-row label { display: block; min-width: 0; }
.s-row .sl { font-size: .76rem; color: var(--ink-2); margin-bottom: 5px; }
.s-row .s-c1 { grid-column: 1 / -1; }
.s-row input, .s-row select { background-color: var(--card); min-height: 46px; }
.s-row.bad { box-shadow: inset 0 0 0 1.5px var(--over); }
.s-row .se { grid-column: 1 / -1; margin-top: 0; }
.s-del { position: absolute; top: 10px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: var(--ink-3); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.s-del:hover { background: color-mix(in srgb, var(--over) 10%, transparent); color: var(--over); }
.s-pot { padding-left: 34px; }
.s-dot { position: absolute; left: 13px; top: 22px; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 3px var(--card); }
.s-note { font-size: .84rem; color: var(--ink-3); font-weight: 600; margin: 12px 0 0; }
.s-sec { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
.s-sec:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }

/* pay - bills - pots = spare */
.s-sum { margin-top: 18px; border-radius: 16px; padding: 14px 16px; background: linear-gradient(160deg, var(--hero-1), var(--hero-2)); color: var(--hero-ink); }
.s-sum div { display: flex; justify-content: space-between; font-weight: 600; font-size: .92rem; padding: 3px 0; }
.s-sum b { font-variant-numeric: tabular-nums; }
.s-sum .tot { border-top: 1px solid color-mix(in srgb, var(--hero-ink) 18%, transparent); margin-top: 6px; padding-top: 9px; font-weight: 800; font-size: 1.05rem; }
.s-sum .tot.neg { color: var(--over-ink); }
.s-warn { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--over-bg); color: var(--over-ink); font-weight: 700; font-size: .86rem; line-height: 1.45; }

@media (min-width: 620px) {
  .s-wrap { padding-top: 40px; }
  .s-card { padding: 34px 34px 30px; }
  .s-card h1 { font-size: 2rem; }
  .s-row { grid-template-columns: 1.6fr 1fr 1fr; align-items: end; padding-top: 12px; }
  .s-row .s-c1 { grid-column: auto; }
  .s-pot { grid-template-columns: 1.6fr 1fr; }
  .s-4 { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .s-del { top: auto; bottom: 14px; }
  .s-dot { top: auto; bottom: 31px; }
}
@media (prefers-reduced-motion: no-preference) {
  .s-card { animation: s-in .35s cubic-bezier(.2,.7,.2,1); }
  @keyframes s-in { from { opacity: 0; transform: translateY(10px); } }
}

/* ---------- sample-money banner (both layouts) ---------- */
.sample { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px 12px 10px 14px; border-radius: 14px; font-size: .86rem; font-weight: 700; line-height: 1.4;
  background: color-mix(in srgb, var(--accent) 10%, var(--card)); color: var(--accent-d); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); }
.sample[hidden] { display: none; }
.sample button { margin-left: auto; border: 0; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 800; font-size: .84rem; color: #fff; cursor: pointer; background: linear-gradient(180deg, var(--accent), var(--accent-d)); }
.ph .sample { margin: 0 18px 10px; }
.desk .sample { margin-bottom: 16px; }

/* ---------- which pot, when adding a spend ---------- */
.potpick { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 10px 0 12px; }
.potpick[hidden] { display: none; }
.potpick .ppl { flex-basis: 100%; font-size: .78rem; font-weight: 700; color: var(--ink-3); }
.potpick button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 13px 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  font: inherit; font-weight: 700; font-size: .84rem; color: var(--ink); cursor: pointer; }
.potpick button i { width: 10px; height: 10px; border-radius: 50%; }
.potpick button[aria-pressed=true] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--card)); box-shadow: inset 0 0 0 1px var(--accent); }

/* ---------- greeting on the computer ---------- */
.desk .topbar .hi h1 { font-family: var(--fd); font-weight: 600; font-size: 1.5rem; letter-spacing: -.01em; margin: 0; white-space: nowrap; }
.desk .topbar .hi p { margin: 3px 0 0; font-family: var(--fb); font-size: .84rem; font-weight: 600; color: var(--ink-3); white-space: nowrap; }

/* ---------- computer layout from the locked design (29 Nov 2026): top menu, pots strip, three cards ---------- */
.desk { grid-template-columns: minmax(0, 1fr) !important; }
.desk .main > * { max-width: 1180px; }
.desk .dtop { display: flex; align-items: center; gap: 40px; margin-bottom: 22px; }
.desk .logo { font-family: var(--fd); font-size: 26px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.desk .logo i { color: var(--accent); font-style: normal; }
.desk .dnav { display: flex; gap: 6px; }
.desk .dnav .nav { position: relative; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 8px 12px; border-radius: 10px; }
.desk .dnav .nav:hover { color: var(--ink); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.desk .dnav .nav.on { color: var(--ink); font-weight: 800; }
.desk .dnav .nav.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -2px; height: 3px; border-radius: 3px; background: var(--accent); }
.desk .dsp { flex: 1; }
.desk .ddate { font-size: 14px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.desk .ghost { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer; color: var(--ink-2);
  background: linear-gradient(180deg, var(--card), var(--bg-2)); box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--ink) 30%, transparent); }
.desk .ghost svg { width: 20px; height: 20px; }
.desk .afford .go2 { width: 100%; height: 48px; margin-top: 10px; border: 0; border-radius: 15px; cursor: pointer; font: inherit; font-weight: 800; font-size: .95rem; background: none;
  color: var(--hero-ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--hero-ink) 18%, transparent); }
.desk .afford .go2[hidden], .desk .afford .go[hidden] { display: none; }

.desk .card { background: linear-gradient(180deg, var(--card) 0%, var(--bg-2) 100%); border: 1px solid var(--line); border-radius: 26px; padding: 26px 28px;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgb(36 31 26 / .04), 0 30px 60px -34px color-mix(in srgb, var(--accent-d) 30%, transparent); }
.desk .month { margin-top: 22px; }
.desk .split-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.desk .split-h .lab { font-size: 14px; font-weight: 700; color: var(--ink-3); }
.desk .split-h .n { font-family: var(--fd); font-size: 52px; font-weight: 500; letter-spacing: -.03em; line-height: 1; margin-top: 6px; }
.desk .split-h .n span { font-size: 22px; color: var(--ink-2); letter-spacing: 0; font-weight: 400; }
.desk .kp { display: flex; gap: 36px; }
.desk .kp small { display: block; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.desk .kp b { font-family: var(--fd); font-size: 26px; font-weight: 500; }
.desk .bigbar { display: flex; gap: 6px; height: 80px; margin-top: 26px; }
.desk .bp { position: relative; display: flex; min-width: 0; padding: 0; border: 0; cursor: pointer; border-radius: 18px; overflow: hidden; font: inherit; text-align: left;
  box-shadow: inset 0 0 0 1px rgb(36 31 26 / .07), 0 8px 18px -12px rgb(60 45 25 / .35); }
.desk .bp .s { height: 100%; background-image: linear-gradient(180deg, rgb(255 255 255 / .42), rgb(255 255 255 / .05) 50%, rgb(0 0 0 / .08)); box-shadow: inset -1px 0 0 rgb(255 255 255 / .6); }
.desk .bp .l { flex: 1; height: 100%; background-image: linear-gradient(180deg, rgb(255 255 255 / .82), rgb(255 255 255 / .6)); }
.desk .bp .tag { position: absolute; left: 14px; top: 10px; right: 8px; font-weight: 800; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk .bp .tag b { display: block; font-family: var(--fd); font-size: 23px; font-weight: 600; }
.desk .bp .pace { position: absolute; top: 62%; bottom: 0; width: 3px; border-radius: 3px 3px 0 0; background: var(--ink); opacity: .55; }
.desk .bp:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.desk .key { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.desk .key i { display: inline-block; width: 22px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-right: 6px; }
.desk .key i.lt { background: linear-gradient(180deg, #F6F1E7, #E5DCCB); }
.desk .key .ln { display: inline-block; width: 3px; height: 12px; background: var(--ink); vertical-align: -1px; margin-right: 8px; }
.desk .key .w { margin-left: auto; color: var(--warn); font-weight: 700; }
.desk .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; margin-top: 22px; align-items: start; }
.desk .row3 .ch { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.desk .row3 .ch h4 { margin: 0; font-family: var(--fd); font-size: 22px; font-weight: 500; }
.desk .row3 .ch span { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.desk .bills .seg { display: flex; gap: 5px; margin-bottom: 12px; }
.desk .bills .seg i { flex: 1; height: 8px; border-radius: 6px; background: var(--line); }
.desk .bills .seg i.on { background: linear-gradient(90deg, #2F8B5B, #4FAF7C); }
.desk .bill { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.desk .bill:first-of-type { border-top: 0; }
.desk .tick { width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 2px solid var(--line); background: var(--card); flex: none; display: grid; place-items: center; cursor: pointer; }
.desk .tick:hover { border-color: var(--good); }
.desk .tick.on { background: var(--good); border-color: var(--good); }
.desk .tick svg { width: 14px; height: 14px; }
.desk .bill .t, .desk .sp-row .t { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; }
.desk .bill .t small, .desk .sp-row .t small { display: block; font-weight: 600; font-size: 12.5px; color: var(--ink-3); }
.desk .bill .t.done { color: var(--ink-3); }
.desk .bill b, .desk .sp-row b { font-size: 15px; }
.desk .sp-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.desk .sp-row:first-of-type { border-top: 0; padding-top: 0; }
.desk .ic2 { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; color: var(--ink-2); }
.desk .ic2 svg { width: 19px; height: 19px; }
.desk .again { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; font-weight: 700; color: var(--ink-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.desk .again button { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.desk .save-c .n { font-family: var(--fd); font-size: 46px; font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.desk .save-c .of { color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.desk .jar { margin-top: 18px; display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.desk .jar i { height: 34px; border-radius: 10px; background: linear-gradient(180deg, #FBE9EE, #F6DCE3); }
.desk .jar i.on { background: linear-gradient(180deg, #F4C1CD, #E492A6); box-shadow: inset 0 1px 0 rgb(255 255 255 / .5); }
.desk .hint { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--bg); font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.desk .hint b { color: var(--ink); }
.desk .more { margin-top: 12px; border: 0; background: none; padding: 6px 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; color: var(--accent-d); }
.desk .gtabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 14px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.desk .gtabs button { border: 0; background: none; padding: 9px 16px; border-radius: 10px; cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.desk .gtabs button[aria-pressed=true] { background: var(--card); color: var(--ink); box-shadow: 0 4px 12px -6px color-mix(in srgb, var(--ink) 40%, transparent); }
@media (max-width: 1180px) {
  .desk .dtop { gap: 20px; }
  .desk .row3 { grid-template-columns: 1fr 1fr; }
  .desk .row3 .save-c { grid-column: 1 / -1; }
  .desk .split-h { flex-wrap: wrap; }
}
.desk .split-h .lab { text-transform: none; letter-spacing: 0; margin: 0; }
.desk .row3 > .card { margin: 0; }
.desk .row3 .ch span, .desk .kp small { font-family: var(--fb); }
.desk .sp-row .rm { border: 0; background: none; width: 28px; height: 28px; border-radius: 50%; color: var(--ink-3); font-size: 18px; cursor: pointer; flex: none; }
.desk .sp-row .rm:hover { background: color-mix(in srgb, var(--over) 10%, transparent); color: var(--over); }
