/* Pulse (More, App, Look, Style): calm warm white and near-black, one bright orange-red used sparingly, light figures.
   Colours are in styles.css; this file designs every part of the app for it, so Pulse is a whole look, not a Home page.
   Every rule starts with html:root[data-style='pulse'], which is as specific as the rules shared by the other styles
   (html[data-style]:not([data-style='classic'])), and this file comes last, so Pulse's choice wins.

   The rules of the look:
   - one accent: orange-red marks what is live or chosen once (today, the + button, progress, a focus ring); everything
     else is ink on white. A chosen chip or option is ink, not orange.
   - figures are light (weight 400-500) and large; words are medium (600-700) and small; labels are small capitals.
   - a label starts with a small square dot; a card that opens more has a round arrow.
   - surfaces: white cards with a hairline, a near-black card for the one figure that matters, soft grey for the rest. */

html:root[data-style='pulse'] {
  --p-soft: color-mix(in srgb, var(--ink) 6%, var(--surface)); /* the soft grey fill: quiet buttons, icon tiles, tracks */
  --p-soft-2: color-mix(in srgb, var(--ink) 11%, var(--surface));
  --p-edge: color-mix(in srgb, var(--ink) 13%, transparent); /* a field's edge: a little stronger than a card's hairline */
  --phone-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317181b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2.5' width='10' height='19' rx='2.6'/%3E%3Cpath d='M11 18.5h2'/%3E%3C/svg%3E");
}
html:root[data-style='pulse'][data-theme='dark'] {
  --phone-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3f2ee' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2.5' width='10' height='19' rx='2.6'/%3E%3Cpath d='M11 18.5h2'/%3E%3C/svg%3E");
}

/* ---------- type ---------- */
html:root[data-style='pulse'] .title { font-size: 32px; font-weight: 700; letter-spacing: -0.045em; }
html:root[data-style='pulse'] .section-title { display: flex; align-items: center; gap: 8px; margin: 28px 4px 0; font-size: 11.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }
html:root[data-style='pulse'] .section-title::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); }
html:root[data-style='pulse'] .sheet .section-title { margin-top: 22px; }
html:root[data-style='pulse'] .sheet h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.03em; }
html:root[data-style='pulse'] .flabel { font-size: 11px; letter-spacing: 0.09em; }
html:root[data-style='pulse'] .stepq { font-size: 24px; font-weight: 700; letter-spacing: -0.035em; }
html:root[data-style='pulse'] .phonehead .model { font-size: 26px; font-weight: 700; letter-spacing: -0.045em; }
html:root[data-style='pulse'] .sub { font-size: 13.5px; }

/* ---------- the top bar: the mark in ink, "Sample data" a quiet tag with a dot ---------- */
html:root[data-style='pulse'] .brandmark { width: 38px; height: 38px; border-radius: 12px; background: var(--tile-dark); border: 0; box-shadow: none; }
html:root[data-style='pulse'] .brandmark img { filter: grayscale(1) brightness(2.4); }
html:root[data-style='pulse'] .brandtext b { font-weight: 700; letter-spacing: -0.03em; }
html:root[data-style='pulse'] .brandsub { color: var(--ink-3); font-weight: 600; }
html:root[data-style='pulse'] .brandsub .pill { background: transparent; color: var(--ink-2); border: 1px solid var(--p-edge); font-weight: 700; letter-spacing: 0.02em; }
html:root[data-style='pulse'] .brandsub .pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
html:root[data-style='pulse'] .syncchip { font-weight: 700; }

/* ---------- buttons: ink for the main one, soft grey for the rest, white with a hairline for the quiet ones ---------- */
html:root[data-style='pulse'] .btn { font-weight: 700; letter-spacing: -0.01em; box-shadow: 0 10px 20px -14px color-mix(in srgb, var(--btn-bg) 90%, transparent); }
html:root[data-style='pulse'] .btn.soft { background: var(--p-soft); color: var(--ink); box-shadow: none; }
html:root[data-style='pulse'] .btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--p-edge); box-shadow: none; }
html:root[data-style='pulse'] .btn.danger { box-shadow: none; }
html:root[data-style='pulse'] .btn.small { border-radius: 999px; }
html:root[data-style='pulse'] .iconbtn { border-radius: 999px; background: var(--surface); border-color: var(--p-edge); color: var(--ink); }

/* ---------- chips: white with a hairline; the chosen one soft grey with an ink edge (the one ink pill is the tab control) ---------- */
html:root[data-style='pulse'] .chip { background: var(--surface); border: 1px solid var(--p-edge); color: var(--ink-2); font-weight: 600; box-shadow: none; }
html:root[data-style='pulse'] .chip[aria-pressed='true'], html:root[data-style='pulse'] .chip[aria-checked='true'] { background: var(--p-soft-2); color: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 0.5px var(--ink); font-weight: 700; }
html:root[data-style='pulse'] .newtag { background: var(--ink); color: var(--bg); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- tab controls: a white track with a hairline; the chosen part is an ink pill, like the open tab ---------- */
html:root[data-style='pulse'] .seg { background: var(--surface); border: 1px solid var(--p-edge); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; --plate-bg: var(--ink); --plate-hi: transparent; }
html:root[data-style='pulse'] .seg button, html:root[data-style='pulse'] .seg-copy { font-weight: 600; }
html:root[data-style='pulse'] .seg .lens-mag .seg-copy { color: var(--bg); font-weight: 700; } /* the words inside the pill */
html:root[data-style='pulse'] .seg .lens-tint { box-shadow: 0 8px 16px -10px rgba(0, 0, 0, 0.45); }

/* ---------- fields: a firmer edge; typing turns it ink with an orange glow ---------- */
html:root[data-style='pulse'] .field { border-radius: 14px; border-color: var(--p-edge); }
html:root[data-style='pulse'] .field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
html:root[data-style='pulse'] :focus-visible { outline-color: var(--ink); }

/* ---------- pills ---------- */
html:root[data-style='pulse'] .pill { border-radius: 999px; font-weight: 700; font-size: 11.5px; }
html:root[data-style='pulse'] .pill.gray { background: var(--p-soft); border: 0; }
html:root[data-style='pulse'] .pill.blue { background: var(--p-soft); color: var(--ink); }

/* ---------- cards, rows and icons: icons are ink on soft grey; only a warning keeps its colour ---------- */
html:root[data-style='pulse'] .card { box-shadow: 0 1px 2px rgba(23, 24, 27, 0.03); }
html:root[data-style='pulse'] .row .t, html:root[data-style='pulse'] .acctop .t { font-weight: 600; }
html:root[data-style='pulse'] .row .ico:not(.warn):not(.bad):not(.good), html:root[data-style='pulse'] .choice .ico { background: var(--p-soft); color: var(--ink); }
html:root[data-style='pulse'] .choice { border-radius: 20px; }
html:root[data-style='pulse'] .choice b { font-weight: 600; }
html:root[data-style='pulse'] .row .tick.on { background: var(--ink); color: var(--bg); }
html:root[data-style='pulse'] .switch[aria-checked='true'] { background: var(--ink); }
html:root[data-style='pulse'] .switch[aria-checked='true']::after { background: var(--surface); }
html:root[data-style='pulse'][data-theme='dark'] .switch[aria-checked='true']::after { background: var(--bg); }
html:root[data-style='pulse'] .kv b { font-weight: 600; }
html:root[data-style='pulse'] .kvs { padding: 4px 16px; }

/* ---------- picking one of several: a white card; the chosen one has an ink edge ---------- */
html:root[data-style='pulse'] .bigchoice, html:root[data-style='pulse'] .tile { border: 1px solid var(--p-edge); border-radius: 18px; }
html:root[data-style='pulse'] .bigchoice b { font-weight: 600; }
html:root[data-style='pulse'] .bigchoice[aria-checked='true'], html:root[data-style='pulse'] .tile[aria-checked='true'] { background: var(--surface); color: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
html:root[data-style='pulse'] .bigchoice[aria-checked='true'] span { color: var(--ink-2); }

/* ---------- the steps: a thin orange progress line, the question large and calm ---------- */
html:root[data-style='pulse'] .stepbar { height: 4px; background: var(--p-soft); }
html:root[data-style='pulse'] .stepcount { font-weight: 600; letter-spacing: 0.02em; }
html:root[data-style='pulse'] .scanbig { background: var(--tile-dark); color: var(--tile-dark-ink); border: 0; border-radius: 24px; padding: 26px 16px; }
html:root[data-style='pulse'] .scanbig svg { color: var(--brand); }
html:root[data-style='pulse'] .scanbig b { font-weight: 600; letter-spacing: -0.02em; }
html:root[data-style='pulse'] .scanbig span { color: var(--tile-dark-dim); }

/* ---------- Stock and Sales lists ---------- */
html:root[data-style='pulse'] .phone::before { width: 46px; height: 46px; border-radius: 15px; background: var(--p-soft) var(--phone-glyph) center / 22px no-repeat; }
/* the model's number in its tile ("15", "SE"): every row tells itself apart at a glance */
html:root[data-style='pulse'] .phone[data-mark]::before { content: attr(data-mark); display: grid; place-items: center; background-image: none; font-size: 18px; font-weight: 500; letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
html:root[data-style='pulse'] .picking .phone[data-mark]::before { display: none; } /* picking: the tick takes the tile's place */
html:root[data-style='pulse'] .phone .model { font-weight: 600; letter-spacing: -0.02em; }
html:root[data-style='pulse'] .phone .money b { font-weight: 600; letter-spacing: -0.02em; }
html:root[data-style='pulse'] .phone .money span { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }
html:root[data-style='pulse'] .phone[aria-pressed='true'] { background: var(--p-soft); }
html:root[data-style='pulse'] .phone[aria-pressed='true'] > svg { background: var(--ink); border-color: var(--ink); color: var(--bg); }
html:root[data-style='pulse'] .cards { border-radius: 24px; }
html:root[data-style='pulse'] .daybar { background: transparent; padding: 14px 16px 4px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
html:root[data-style='pulse'] .daybar .num { letter-spacing: 0.02em; text-transform: none; color: var(--ink-2); }
html:root[data-style='pulse'] .sortpick { color: var(--ink); }
/* the Sales summary: on the near-black card, light figures */
html:root[data-style='pulse'] .card.sumcard { background: var(--tile-dark); color: var(--tile-dark-ink); border: 0; padding: 18px; row-gap: 16px; }
html:root[data-style='pulse'] .sumcard b { font-size: 24px; font-weight: 400; letter-spacing: -0.045em; }
html:root[data-style='pulse'] .sumcard span { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tile-dark-dim); }
html:root[data-style='pulse'] .sumcard .good-t { color: #7fe0a8; }
html:root[data-style='pulse'] .sumcard .bad-t { color: #ff9b8a; }
html:root[data-style='pulse'] .selbar { background: var(--tile-dark); color: var(--tile-dark-ink); border: 0; }
html:root[data-style='pulse'] .selbar .iconbtn, html:root[data-style='pulse'] .selbar .btn.ghost { background: rgba(255, 255, 255, 0.1); color: var(--tile-dark-ink); border: 0; }
html:root[data-style='pulse'] .selbar .btn:not(.ghost) { background: var(--brand); color: #17181b; }

/* ---------- a figure that matters: the near-black card, the figure light and large, its label with a dot ---------- */
html:root[data-style='pulse'] .result { text-align: left; padding: 18px; border-radius: 24px; background: var(--tile-dark); }
html:root[data-style='pulse'] .rlabel { display: flex; align-items: center; gap: 7px; font-weight: 600; }
html:root[data-style='pulse'] .rlabel::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--brand); }
html:root[data-style='pulse'] .rval { font-size: 44px; font-weight: 400; letter-spacing: -0.055em; line-height: 1.1; margin-top: 4px; }
html:root[data-style='pulse'] .result .good-t { color: #7fe0a8; }
html:root[data-style='pulse'] .result .bad-t { color: #ff9b8a; }
html:root[data-style='pulse'] .perf .val { font-weight: 400; letter-spacing: -0.055em; }
html:root[data-style='pulse'] .trio b, html:root[data-style='pulse'] .bucket b { font-weight: 500; letter-spacing: -0.035em; }
html:root[data-style='pulse'] .bucket { background: var(--surface); border-color: var(--p-edge); }
html:root[data-style='pulse'] .bucket.hot { background: var(--tile-dark); }
html:root[data-style='pulse'] .bucket.hot b { color: var(--tile-dark-ink); }
html:root[data-style='pulse'] .bucket.hot span { color: #ffb38a; }
html:root[data-style='pulse'] .bar { height: 8px; border: 0; background: var(--p-soft); }
html:root[data-style='pulse'] .bar > i { background: var(--brand); }
/* the chart: ink bars and line; the orange is the point you are looking at */
html:root[data-style='pulse'] .achart { color: var(--ink); }
html:root[data-style='pulse'] .achart .col.pos { opacity: 0.82; }
html:root[data-style='pulse'] .achart .col.dim { opacity: 0.2; }
html:root[data-style='pulse'] .achart .area { opacity: 0.06; fill: var(--ink); }
html:root[data-style='pulse'] .achart .trace { stroke: var(--ink); }
html:root[data-style='pulse'] .achart .dot { fill: var(--brand); }

/* ---------- more figures, all light: the chart's readout, the tiles in reports and the performance card ---------- */
html:root[data-style='pulse'] .activity .readout .val { font-weight: 400; letter-spacing: -0.05em; }
html:root[data-style='pulse'] .mini b, html:root[data-style='pulse'] .astat b, html:root[data-style='pulse'] .rp-tile b { font-weight: 500; letter-spacing: -0.035em; }
html:root[data-style='pulse'] .mini span, html:root[data-style='pulse'] .astat span, html:root[data-style='pulse'] .rp-tile span { font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
html:root[data-style='pulse'] .astat { background: var(--p-soft); }
html:root[data-style='pulse'] .rp-worth .wval { font-size: clamp(30px, 10vw, 40px); font-weight: 400; letter-spacing: -0.05em; }
html:root[data-style='pulse'] .rp-finish { border: 1px solid var(--ink); }
html:root[data-style='pulse'] .rp-finhead b { font-weight: 700; }
html:root[data-style='pulse'] .rbar { height: 6px; border: 0; background: var(--p-soft); }
html:root[data-style='pulse'] .rbar i { background: var(--ink); }
html:root[data-style='pulse'] .rp-hbar .b { height: 6px; background: var(--p-soft); }
html:root[data-style='pulse'] .rp-hbar .b i { background: var(--ink); }
html:root[data-style='pulse'] .rp-hbar > b { font-weight: 600; }
html:root[data-style='pulse'] .askavatar { background: var(--tile-dark); color: var(--brand); }

/* ---------- notes on Home (month end, backup): a white card, the title after an amber dot ---------- */
html:root[data-style='pulse'] .backupnote { background: var(--surface); border: 1px solid var(--line); }
html:root[data-style='pulse'] .backupnote b { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
html:root[data-style='pulse'] .backupnote b::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 2px; background: #f5a524; }

/* ---------- sheets ---------- */
html:root[data-style='pulse'] .sheet { border-radius: 30px 30px 0 0; }
html:root[data-style='pulse'] .grab { width: 36px; opacity: 0.25; }
html:root[data-style='pulse'] .sellhead { border-radius: 20px; }
html:root[data-style='pulse'] .sellhead .model { font-weight: 600; }
html:root[data-style='pulse'] .toast { font-weight: 600; }

/* ---------- Ask ---------- */
html:root[data-style='pulse'] .askitem { border-color: var(--p-edge); }
html:root[data-style='pulse'] .askhello b { font-weight: 700; letter-spacing: -0.03em; }

/* ---------- Pulse: an ask bar, a dark card with light figures and a bright today, small square dots and round arrows ---------- */
html[data-style='pulse']:not([data-style='classic']) { --r-l: 22px; --r-xl: 26px; }
html[data-style='pulse'] .greet .title { font-size: clamp(22px, 7vw, 28px); font-weight: 700; }
html[data-style='pulse'] .askbar { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-3); font-size: 14px; font-weight: 600; text-align: left; box-shadow: var(--shadow-1); }
html[data-style='pulse'] .askbar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-style='pulse'] .askbar:active { transform: scale(0.98); }
/* the label of a card or tile: a small square dot in a colour, then the words */
html[data-style='pulse'] .pdot { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
html[data-style='pulse'] .pdot::before, html[data-style='pulse'] .stat .lbl::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--dot, var(--brand)); }
html[data-style='pulse'] .phead { display: flex; align-items: center; gap: 8px; width: 100%; }
html[data-style='pulse'] .phead .pdot { flex: 1; min-width: 0; }
/* the round arrow at the top right: this opens more */
html[data-style='pulse'] .parrow { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink-2); }
html[data-style='pulse'] .pchg { flex: none; font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--surface); color: var(--ink); }
html[data-style='pulse'] .pchg.down { background: transparent; color: #ff9b8a; border: 1px solid rgba(255, 155, 138, 0.4); }
html[data-style='pulse'] .pfig { display: flex; align-items: baseline; gap: 2px; font-weight: 400; letter-spacing: -0.045em; line-height: 1.05; white-space: nowrap; }
html[data-style='pulse'] .pfig i { font-style: normal; font-size: 0.42em; font-weight: 600; letter-spacing: 0; opacity: 0.6; }
/* the dark card: the week's profit */
html[data-style='pulse'] .hero.pulsehero { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 18px 16px; background: var(--tile-dark); color: var(--tile-dark-ink); border: 0; }
html[data-style='pulse'] .pulsehero::before { display: none; }
html[data-style='pulse'] .pulsehero .pdot { color: var(--tile-dark-dim); }
html[data-style='pulse'] .pulsehero .parrow { border-color: rgba(255, 255, 255, 0.16); color: var(--tile-dark-ink); }
html[data-style='pulse'] .pulsehero .pfig { font-size: clamp(40px, 15vw, 58px); margin-top: 4px; }
html[data-style='pulse'] .pmeta { display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tile-dark-dim); }
html[data-style='pulse'] .pmeta b { font-weight: 700; letter-spacing: 0.02em; color: var(--tile-dark-ink); }
html[data-style='pulse'] .pulsehero .herowk { width: 100%; margin-top: 10px; }
html[data-style='pulse'] .pulsehero .herobars { max-width: none; height: 70px; gap: 5px; }
html[data-style='pulse'] .pulsehero .herobar i { border-radius: 4px; background: rgba(255, 255, 255, 0.2); }
html[data-style='pulse'] .pulsehero .herobar.today i { background: var(--brand); }
html[data-style='pulse'] .pulsehero .herobar.neg i { background: #ff9b8a; opacity: 0.6; }
html[data-style='pulse'] .pulsehero .herobar.none i { background: rgba(255, 255, 255, 0.1); }
html[data-style='pulse'] .pulsehero .herobar span { color: var(--tile-dark-dim); }
html[data-style='pulse'] .pulsehero .herobar.today span { color: var(--tile-dark-ink); }
/* the wide card: what the week sold for, cost and the fees */
html[data-style='pulse'] .pulsetrio { display: flex; flex-direction: column; gap: 12px; width: 100%; padding: 16px 18px; text-align: left; }
html[data-style='pulse'] .pulsetrio .pdot { color: var(--ink-3); --dot: var(--teal); }
html[data-style='pulse'] .ptrio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
html[data-style='pulse'] .ptrio > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
html[data-style='pulse'] .ptrio small { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
html[data-style='pulse'] .ptrio .pfig { font-size: clamp(17px, 5.6vw, 24px); overflow: hidden; text-overflow: ellipsis; }
/* the four tiles: light figures, a dot and a round arrow; profit this month on a deep green */
html[data-style='pulse']:not([data-style='classic']) .stats .stat:nth-child(n) .val { font-weight: 400; letter-spacing: -0.05em; }
html[data-style='pulse']:not([data-style='classic']) .stat .lbl svg { display: none; }
html[data-style='pulse']:not([data-style='classic']) .stat .lbl .go { display: grid; place-items: center; width: 28px; height: 28px; margin-left: auto; border-radius: 50%; border: 1px solid var(--line); flex: none; }
html[data-style='pulse']:not([data-style='classic']) .stat .lbl .go svg { display: none; }
html[data-style='pulse']:not([data-style='classic']) .stat .lbl .go::after { content: ''; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
html[data-style='pulse'] { --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E"); }
html[data-style='pulse']:not([data-style='classic']) .stats .stat:nth-child(1) { --dot: var(--brand); background: var(--tile-dark); color: var(--tile-dark-ink); border-color: transparent; }
html[data-style='pulse']:not([data-style='classic']) .stats .stat:nth-child(1) .lbl, html[data-style='pulse']:not([data-style='classic']) .stats .stat:nth-child(1) .hint { color: var(--tile-dark-dim); }
html[data-style='pulse']:not([data-style='classic']) .stats .stat:nth-child(1) .val { color: var(--tile-dark-ink); }
html[data-style='pulse']:not([data-style='classic']) .stats .stat:nth-child(1) .lbl .go { border-color: rgba(255, 255, 255, 0.16); }
html[data-style='pulse']:not([data-style='classic']) .stats .stat:nth-child(2) { --dot: #7fe0a8; background: var(--tile-good); color: var(--tile-good-ink); border-color: transparent; }
html[data-style='pulse']:not([data-style='classic']) .stats .stat:nth-child(2) .lbl, html[data-style='pulse']:not([data-style='classic']) .stats .stat:nth-child(2) .hint, html[data-style='pulse']:not([data-style='classic']) .stats .stat:nth-child(2) .fullline, html[data-style='pulse']:not([data-style='classic']) .stats .stat:nth-child(2) .fullline b { color: var(--tile-good-dim); }
html[data-style='pulse']:not([data-style='classic']) .stats .stat:nth-child(2) .val { color: var(--tile-good-ink); }
html[data-style='pulse']:not([data-style='classic']) .stats .stat:nth-child(2) .lbl .go { border-color: rgba(255, 255, 255, 0.2); }
html[data-style='pulse']:not([data-style='classic']) .stats .stat:nth-child(3) { --dot: #3d7bff; }
html[data-style='pulse']:not([data-style='classic']) .stats .stat:nth-child(4) { --dot: #f5a524; }

/* More's search: a pill like Home's ask bar */
html:root[data-style='pulse'] .moresearch { border-radius: 999px; padding: 0 12px 0 16px; box-shadow: var(--shadow-1); }
html:root[data-style='pulse'] .searchclear { background: var(--p-soft); color: var(--ink-2); }

/* ---------- depth: the near-black cards catch a little of the accent, like a light behind them ---------- */
html:root[data-style='pulse'] {
  --p-glow: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 58%);
  --p-glow-soft: radial-gradient(110% 80% at 100% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 60%);
}
html:root[data-style='pulse'] .hero.pulsehero, html:root[data-style='pulse'] .result, html:root[data-style='pulse'] .card.sumcard { background: var(--p-glow), var(--tile-dark); }
html:root[data-style='pulse']:not([data-style='classic']) .stats .stat:nth-child(1) { background: var(--p-glow-soft), var(--tile-dark); }
html:root[data-style='pulse']:not([data-style='classic']) .stats .stat:nth-child(2) { background: radial-gradient(110% 80% at 100% 0%, rgba(127, 224, 168, 0.18), transparent 60%), var(--tile-good); }
html:root[data-style='pulse'] .pulsehero .herobar.today i { box-shadow: 0 0 18px -2px color-mix(in srgb, var(--brand) 70%, transparent); }

/* ---------- the bars float over the page: frosted, so what scrolls under them shows softly ---------- */
html:root[data-style='pulse'] { --nav-bg: rgba(255, 255, 255, 0.8); --nav-blur: blur(22px) saturate(170%); }
html:root[data-style='pulse'][data-theme='dark'] { --nav-bg: rgba(35, 35, 39, 0.82); }
html:root[data-style='pulse'] .topbar { background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
html.lite:root[data-style='pulse'] .topbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }

/* ---------- a phone that has waited: a small dot on its tile, amber after two weeks, red after a month ---------- */
html:root[data-style='pulse'] .phone[data-age] { position: relative; }
html:root[data-style='pulse'] .phone[data-age]::after { content: ''; position: absolute; left: 54px; top: calc(50% - 27px); width: 10px; height: 10px; border-radius: 50%; background: #f5a524; box-shadow: 0 0 0 2.5px var(--surface); }
html:root[data-style='pulse'] .phone[data-age='old']::after { background: var(--bad); }
html:root[data-style='pulse'] .picking .phone[data-age]::after { display: none; }

/* =====================================================================================================================
   More colour (both modes): a family of colours beside the orange, used for icons, the phone tiles, Home's tiles and the
   chosen things, so the look is warm and lively; text stays ink on white (or white on ink) wherever it is read.
   ===================================================================================================================== */
html:root[data-style='pulse'] {
  --c1: #ff5a1f; --c2: #16a34a; --c3: #2f6bff; --c4: #7c4dff; --c5: #e8457c; --c6: #0d9488; --c7: #d97706; /* orange, green, blue, violet, pink, teal, amber */
  --t1: #ffe9df; --t2: #dcf5e4; --t3: #e3ebff; --t4: #ece6ff; --t5: #fde4ec; --t6: #d8f3ef; --t7: #fdefd7; /* their soft tints */
  --i1: #c2350a; --i2: #12773a; --i3: #1f4fd6; --i4: #5b2fd9; --i5: #b8275a; --i6: #0b6e65; --i7: #9a4f04; /* their ink, for text on a tint */
}
html:root[data-style='pulse'][data-theme='dark'] {
  --c1: #ff6a3d; --c2: #22c55e; --c3: #5b8cff; --c4: #9b7bff; --c5: #f0679a; --c6: #2dd4bf; --c7: #f5a524;
  --t1: rgba(255, 106, 61, 0.18); --t2: rgba(34, 197, 94, 0.17); --t3: rgba(91, 140, 255, 0.18); --t4: rgba(155, 123, 255, 0.18); --t5: rgba(240, 103, 154, 0.17); --t6: rgba(45, 212, 191, 0.16); --t7: rgba(245, 165, 36, 0.17);
  --i1: #ff9b7a; --i2: #6ee39a; --i3: #9db8ff; --i4: #c2adff; --i5: #f7a3c2; --i6: #7ee8d8; --i7: #f8c775;
}

/* icons in lists and choices: a solid colour tile with a white icon, a different colour down the list (as iOS settings) */
html:root[data-style='pulse'] .row .ico:not(.warn):not(.bad):not(.good), html:root[data-style='pulse'] .choice .ico { background: var(--tile-c, var(--c1)); color: #ffffff; border-radius: 11px; }
html:root[data-style='pulse'] .group > :nth-child(7n + 1) { --tile-c: var(--c1); --tile-t: var(--t1); --tile-i: var(--i1); }
html:root[data-style='pulse'] .group > :nth-child(7n + 2) { --tile-c: var(--c3); --tile-t: var(--t3); --tile-i: var(--i3); }
html:root[data-style='pulse'] .group > :nth-child(7n + 3) { --tile-c: var(--c2); --tile-t: var(--t2); --tile-i: var(--i2); }
html:root[data-style='pulse'] .group > :nth-child(7n + 4) { --tile-c: var(--c4); --tile-t: var(--t4); --tile-i: var(--i4); }
html:root[data-style='pulse'] .group > :nth-child(7n + 5) { --tile-c: var(--c5); --tile-t: var(--t5); --tile-i: var(--i5); }
html:root[data-style='pulse'] .group > :nth-child(7n + 6) { --tile-c: var(--c6); --tile-t: var(--t6); --tile-i: var(--i6); }
html:root[data-style='pulse'] .group > :nth-child(7n + 7) { --tile-c: var(--c7); --tile-t: var(--t7); --tile-i: var(--i7); }
html:root[data-style='pulse'] .choice:nth-child(7n + 2) { --tile-c: var(--c3); }
html:root[data-style='pulse'] .choice:nth-child(7n + 3) { --tile-c: var(--c2); }
html:root[data-style='pulse'] .choice:nth-child(7n + 4) { --tile-c: var(--c4); }
html:root[data-style='pulse'] .choice:nth-child(7n + 5) { --tile-c: var(--c5); }
html:root[data-style='pulse'] .choice:nth-child(7n + 6) { --tile-c: var(--c6); }
html:root[data-style='pulse'] .choice:nth-child(7n + 7) { --tile-c: var(--c7); }

/* each iPhone number has its own colour in its tile */
html:root[data-style='pulse'] .phone[data-mark]::before { background: var(--mt, var(--p-soft)); color: var(--mi, var(--ink)); font-weight: 600; }
html:root[data-style='pulse'] .phone:is([data-mark='11'], [data-mark='4'], [data-mark='18']) { --mt: var(--t3); --mi: var(--i3); }
html:root[data-style='pulse'] .phone:is([data-mark='12'], [data-mark='5'], [data-mark='19']) { --mt: var(--t2); --mi: var(--i2); }
html:root[data-style='pulse'] .phone:is([data-mark='13'], [data-mark='6'], [data-mark='20']) { --mt: var(--t4); --mi: var(--i4); }
html:root[data-style='pulse'] .phone:is([data-mark='14'], [data-mark='7'], [data-mark='21']) { --mt: var(--t1); --mi: var(--i1); }
html:root[data-style='pulse'] .phone:is([data-mark='15'], [data-mark='8'], [data-mark='22']) { --mt: var(--t6); --mi: var(--i6); }
html:root[data-style='pulse'] .phone:is([data-mark='16'], [data-mark='SE'], [data-mark='X']) { --mt: var(--t5); --mi: var(--i5); }
html:root[data-style='pulse'] .phone:is([data-mark='17'], [data-mark='XR'], [data-mark='XS'], [data-mark='10']) { --mt: var(--t7); --mi: var(--i7); }

/* Home: the two light tiles are tinted, In stock blue and Days to sell amber */
html:root[data-style='pulse']:not([data-style='classic']) .stats .stat:nth-child(3) { --dot: var(--c3); background: var(--t3); border-color: transparent; }
html:root[data-style='pulse']:not([data-style='classic']) .stats .stat:nth-child(4) { --dot: var(--c7); background: var(--t7); border-color: transparent; }
html:root[data-style='pulse']:not([data-style='classic']) .stats .stat:nth-child(3) .val { color: var(--i3); }
html:root[data-style='pulse']:not([data-style='classic']) .stats .stat:nth-child(4) .val { color: var(--i7); }
html:root[data-style='pulse']:not([data-style='classic']) .stats .stat:nth-child(3) .lbl, html:root[data-style='pulse']:not([data-style='classic']) .stats .stat:nth-child(3) .hint { color: var(--i3); }
html:root[data-style='pulse']:not([data-style='classic']) .stats .stat:nth-child(4) .lbl, html:root[data-style='pulse']:not([data-style='classic']) .stats .stat:nth-child(4) .hint { color: var(--i7); }
html:root[data-style='pulse']:not([data-style='classic']) .stats .stat:nth-child(n + 3) .lbl .go { border-color: currentColor; opacity: 0.6; }
/* the week's bars on the dark card: orange, today brightest */
html:root[data-style='pulse'] .pulsehero .herobar i { background: color-mix(in srgb, var(--brand) 45%, transparent); }
html:root[data-style='pulse'] .pulsehero .herobar.none i { background: rgba(255, 255, 255, 0.12); }
/* the sold, cost and fees card: each figure in its own colour */
html:root[data-style='pulse'] .ptrio > span:nth-child(1) .pfig { color: var(--i2); }
html:root[data-style='pulse'] .ptrio > span:nth-child(2) .pfig { color: var(--i3); }
html:root[data-style='pulse'] .ptrio > span:nth-child(3) .pfig { color: var(--i1); }
/* chosen filters and quiet buttons carry the accent's tint again */
html:root[data-style='pulse'] .chip[aria-pressed='true'], html:root[data-style='pulse'] .chip[aria-checked='true'] { background: var(--t1); color: var(--i1); border-color: color-mix(in srgb, var(--c1) 55%, transparent); box-shadow: none; }
html:root[data-style='pulse'] .btn.soft { background: var(--t1); color: var(--i1); }
html:root[data-style='pulse'] .bigchoice[aria-checked='true'], html:root[data-style='pulse'] .tile[aria-checked='true'] { background: var(--t1); color: var(--i1); border-color: var(--c1); box-shadow: inset 0 0 0 1px var(--c1); }
html:root[data-style='pulse'] .bigchoice[aria-checked='true'] span { color: var(--i1); }
html:root[data-style='pulse'] .section-title::before { background: var(--c1); }
html:root[data-style='pulse'] .avatar { background: linear-gradient(140deg, var(--c1), var(--c5)); color: #ffffff; }
html:root[data-style='pulse'] .bar > i, html:root[data-style='pulse'] .stepbar i { background: linear-gradient(90deg, var(--c1), var(--c5)); }

/* =====================================================================================================================
   The tab bar: a solid white bar (dark grey in dark mode), the open tab a soft orange pill with its name, and the + a flat
   orange circle that sits in the bar instead of standing out of it.
   ===================================================================================================================== */
html:root[data-style='pulse'] { --nav-bg: var(--surface); --nav-blur: none; --plate-bg: var(--t1); --plate-hi: transparent; --lens-tint: var(--t1); --tab-ink: var(--ink-3); --tab-ink-on: var(--i1); }
html:root[data-style='pulse'][data-theme='dark'] { --nav-bg: #232327; }
html:root[data-style='pulse'] .nav-surface { border: 1px solid var(--line); box-shadow: 0 12px 30px -16px rgba(23, 24, 27, 0.35); }
html:root[data-style='pulse'] .nav-bar .tab[aria-current='page'] span { font-weight: 700; }
html:root[data-style='pulse'] .nav-add { width: 50px; height: 50px; margin: -25px 0 0 -25px; color: #ffffff; background: var(--brand); box-shadow: 0 8px 16px -8px color-mix(in srgb, var(--brand) 80%, transparent); }
html:root[data-style='pulse'] .nav-add svg { width: 24px; height: 24px; }
