/* Parcel — Settings view (#/settings, #/settings/connect/:service) and its sheets.
   Page styles are scoped under .view-settings; sheets live in the overlay root, so they're scoped
   under .set-sheet. Tokens only, except the Appearance previews, which draw fixed light and dark
   palettes on purpose (they're pictures of each theme). */

/* ============================================================== page */
.view-settings .set-page,
.view-settings .set-guide { padding-top: var(--sp-3); }
.view-settings .list-section + .list-section { margin-top: var(--sp-7); }
.view-settings .list-footer { text-wrap: pretty; }

/* One centred form column at every width, like iPadOS / macOS Settings (DECISIONS §10). Settings and its
   setup guides share it, so the two screens line up. */
.view-settings .set-column { max-width: 680px; margin-inline: auto; }
/* In the sidebar layout Settings is a top-level page: its large title lines up with that column too. */
.page[data-route="/settings"] > .page-header { max-width: 680px; margin-inline: auto; }

/* Action rows (Reset sample data): no chevron; destructive rows are system red (listRow destructive). */
.view-settings .set-action-row.is-busy .list-row-inner { pointer-events: none; }
.view-settings .set-action-row.is-busy .list-row-title { opacity: .5; }

/* ---------------------------------------------------------------- appearance */
.view-settings .set-ap-row { padding: 18px 8px 14px; }
.view-settings .set-ap {
  --ap-w: 74px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
@media (min-width: 768px) {
  .view-settings .set-ap { --ap-w: 84px; max-width: 480px; margin-inline: auto; }
}
.view-settings .set-ap-option {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  min-width: 0; padding: 4px 2px 2px;
  border-radius: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.view-settings .set-ap-option:focus-visible { outline-offset: 0; }
@media (hover: hover) and (pointer: fine) {
  .view-settings .set-ap-option:not(.is-selected):hover .set-ap-preview { outline-color: var(--fill); }
}
.view-settings .set-ap-preview {
  position: relative; display: block; flex: none;
  width: var(--ap-w); aspect-ratio: 74 / 132;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 0 0 var(--hairline) var(--sep);
  outline: 2.5px solid transparent; outline-offset: 3px;
  transition: outline-color var(--dur-fast) linear, transform var(--dur-press) var(--ease);
}
.view-settings .set-ap-option:active .set-ap-preview { transform: scale(.96); }
.view-settings .set-ap-option.is-selected .set-ap-preview { outline-color: var(--accent); }
.view-settings .set-ap-half { position: absolute; inset: 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.view-settings .set-ap-label {
  font-size: var(--fs-subhead); line-height: var(--lh-subhead); letter-spacing: var(--ls-subhead);
  color: var(--label);
}
.view-settings .set-ap-option.is-selected .set-ap-label { font-weight: var(--w-semibold); }
.view-settings .set-ap-radio {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--label-3);
  color: #fff;
  transition: background-color var(--dur-fast) linear, box-shadow var(--dur-fast) linear;
}
.view-settings .set-ap-radio .icon { opacity: 0; transform: scale(.6); transition: opacity var(--dur-fast) linear, transform var(--dur) var(--ease); }
.view-settings .set-ap-option.is-selected .set-ap-radio { background: var(--accent); box-shadow: none; }
.view-settings .set-ap-option.is-selected .set-ap-radio .icon { opacity: 1; transform: none; }

/* Mini Parcel screen inside each preview (fixed palettes: an illustration of each theme). */
.view-settings .mini {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 4px;
  padding: 11% 7% 0;
  background: var(--m-bg);
}
.view-settings .mini.is-light {
  --m-bg: #F2F2F7; --m-card: #FFFFFF; --m-label: #1C1C1E; --m-label-2: rgba(60, 60, 67, .42); --m-label-3: rgba(60, 60, 67, .2);
  --m-green: #34C759; --m-green-2: rgba(52, 199, 89, .22); --m-blue: #007AFF; --m-bar: #F9F9FB; --m-sep: rgba(60, 60, 67, .16);
}
.view-settings .mini.is-dark {
  --m-bg: #000000; --m-card: #1C1C1E; --m-label: #F2F2F7; --m-label-2: rgba(235, 235, 245, .5); --m-label-3: rgba(235, 235, 245, .2);
  --m-green: #30D158; --m-green-2: rgba(48, 209, 88, .26); --m-blue: #0A84FF; --m-bar: #161618; --m-sep: rgba(84, 84, 88, .5);
}
.view-settings .mini-title { flex: none; width: 46%; height: 6%; min-height: 5px; max-height: 7px; margin: 2px 0 3px 2%; border-radius: 3px; background: var(--m-label); }
.view-settings .mini-card { display: flex; border-radius: 6px; background: var(--m-card); }
.view-settings .mini-hero { flex: none; align-items: center; justify-content: space-between; gap: 4px; padding: 7% 7%; }
.view-settings .mini-hero-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; }
.view-settings .mini-ring {
  flex: none; width: 34%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(var(--m-green) 0 72%, var(--m-green-2) 72% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3px));
}
.view-settings .mini-line { display: block; height: 3px; border-radius: 2px; background: var(--m-label-2); }
.view-settings .mini-line.is-thick { height: 5px; background: var(--m-label); }
.view-settings .mini-line.is-faint { background: var(--m-label-3); }
.view-settings .mini-line.is-green { background: var(--m-green); }
.view-settings .mini-tiles { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.view-settings .mini-tile { flex-direction: column; gap: 3px; padding: 11% 12%; }
.view-settings .mini-list { flex: none; flex-direction: column; gap: 5px; padding: 8% 8%; }
.view-settings .mini-tabbar {
  margin: auto -8% 0; height: 12%;
  display: flex; align-items: flex-start; justify-content: space-around;
  padding: 5% 10% 0;
  background: var(--m-bar);
  box-shadow: 0 -1px 0 var(--m-sep);
}
.view-settings .mini-tab { width: 6px; height: 6px; border-radius: 2px; background: var(--m-label-3); }
.view-settings .mini-tab.is-on { background: var(--m-blue); }

/* ---------------------------------------------------------------- colophon */
.view-settings .set-colophon {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  margin-top: var(--sp-9);
  text-align: center;
}
.view-settings .set-colophon-icon {
  display: block; width: 52px; height: 52px; margin-bottom: 8px;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 var(--hairline) var(--sep);
}
.view-settings .set-colophon-icon svg { display: block; width: 100%; height: 100%; }
.view-settings .set-colophon-name { font-size: var(--fs-subhead); line-height: var(--lh-subhead); font-weight: var(--w-semibold); }
.view-settings .set-colophon-line { font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); }

/* ============================================================== setup guide */
.view-settings .set-hero {
  display: flex; flex-direction: column; align-items: center;
  padding: var(--sp-2) var(--sp-4) 0;
  text-align: center;
}
.view-settings .set-hero .icon-tile { box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.view-settings .set-hero-title {
  margin-top: 14px;
  font-size: var(--fs-title1); line-height: var(--lh-title1); letter-spacing: var(--ls-title1); font-weight: var(--w-bold);
}
.view-settings .set-hero-lead {
  max-width: 30em; margin-top: 6px;
  font-size: var(--fs-callout); line-height: var(--lh-callout); letter-spacing: var(--ls-callout);
  color: var(--label-2);
  text-wrap: balance;
}
.view-settings .set-hero-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; }
.view-settings .set-hero-ms {
  position: relative;
  display: inline-flex; align-items: center; gap: 2px;
  height: 24px; padding: 0 7px 0 10px;
  border-radius: var(--r-full);
  background: var(--accent-tint); color: var(--accent-text);
  font-size: 12px; line-height: 1; font-weight: var(--w-semibold);
  white-space: nowrap;
  transition: opacity var(--dur-press) linear;
}
.view-settings .set-hero-ms::after { content: ""; position: absolute; inset: -10px -4px; }
.view-settings .set-hero-ms:active { opacity: .55; }
@media (hover: hover) and (pointer: fine) { .view-settings .set-hero-ms:hover { background: var(--accent-tint-hover); } }
.view-settings .set-guide .list-section { margin-top: var(--sp-7); }
.view-settings .set-guide .set-hero + .list-section { margin-top: var(--sp-8); }

/* Checklist */
.view-settings .set-steps-progress {
  font-size: 13px; line-height: 18px; color: var(--label-2);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.view-settings .set-steps-progress.is-done { color: var(--green-text); font-weight: var(--w-semibold); }
.view-settings .set-steps-ready { color: var(--green-text); }
.view-settings .set-step {
  position: relative;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 16px 14px 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-press) linear;
}
.view-settings .set-step + .set-step::before {
  content: ""; position: absolute; top: 0; right: 0; left: 54px;
  height: var(--hairline); background: var(--sep);
}
.view-settings .set-step:active { background: var(--row-pressed); }
@media (hover: hover) and (pointer: fine) {
  .view-settings .set-step:hover { background: var(--fill-4); }
  .view-settings .set-step:active { background: var(--row-pressed); }
}
/* The tick: a full 44pt button around a 28px circle. Negative margins keep the circle where it sits. */
.view-settings .set-step-check {
  position: relative; flex: none;
  display: grid; place-items: center;
  width: var(--hit); height: var(--hit);
  margin: -11px -8px -8px;
  border-radius: 50%;
  color: var(--label-2);
  -webkit-tap-highlight-color: transparent;
}
.view-settings .set-step-check:focus-visible { outline-offset: -5px; }
.view-settings .set-step-circle {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--label-3);
  transition: background-color var(--dur-fast) linear, box-shadow var(--dur-fast) linear;
}
.view-settings .set-step-num, .view-settings .set-step-tick { grid-area: 1 / 1; }
.view-settings .set-step-num {
  font-family: var(--font-rounded);
  font-size: 14px; line-height: 1; font-weight: var(--w-semibold);
  font-variant-numeric: tabular-nums;
}
.view-settings .set-step-tick { color: #fff; opacity: 0; transform: scale(.5); }
.view-settings .set-step.is-done .set-step-circle { background: var(--green); box-shadow: none; }
.view-settings .set-step.is-done .set-step-num { opacity: 0; }
.view-settings .set-step.is-done .set-step-tick { opacity: 1; transform: none; }
.view-settings .set-step.just-done .set-step-circle { animation: set-pop 420ms var(--ease-out); }
.view-settings .set-step.just-done .set-step-tick { transition: opacity 120ms linear, transform 380ms var(--ease-out); }
@keyframes set-pop { 0% { transform: scale(.82); } 55% { transform: scale(1.12); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .view-settings .set-step.just-done .set-step-circle { animation: none; }
}
.view-settings .set-step-body { flex: 1 1 auto; min-width: 0; }
.view-settings .set-step-title {
  font-size: var(--fs-headline); line-height: var(--lh-headline); letter-spacing: var(--ls-headline); font-weight: var(--w-semibold);
  transition: color var(--dur-fast) linear;
}
.view-settings .set-step.is-done .set-step-title { color: var(--label-2); }
.view-settings .set-step-opt {
  display: inline-block; vertical-align: 2px;
  margin-left: 8px; padding: 2px 7px;
  border-radius: var(--r-full);
  background: var(--fill-3); color: var(--label-2);
  font-size: 11px; line-height: 14px; font-weight: var(--w-semibold); letter-spacing: 0;
}
.view-settings .set-step-text {
  margin-top: 3px;
  font-size: var(--fs-subhead); line-height: var(--lh-subhead); letter-spacing: var(--ls-subhead);
  color: var(--label-2);
  text-wrap: pretty;
}
.view-settings .set-step-extras { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.view-settings .set-step-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; }
.view-settings .set-step-link {
  display: inline-flex; align-items: center; gap: 3px;
  min-height: 32px;
  font-size: var(--fs-subhead); line-height: var(--lh-subhead); font-weight: var(--w-medium);
  color: var(--accent-text);
  transition: opacity var(--dur-press) linear;
}
.view-settings .set-step-link:active { opacity: .45; }
@media (hover: hover) and (pointer: fine) { .view-settings .set-step-link:hover { text-decoration: underline; text-underline-offset: 2px; } }

/* Nothing to set up yet */
.view-settings .set-none { display: flex; align-items: flex-start; gap: 15px; padding: 13px 16px 14px; }
.view-settings .set-none .icon-tile { margin-top: -2px; }
.view-settings .set-none-title { font-size: var(--fs-headline); line-height: var(--lh-headline); font-weight: var(--w-semibold); letter-spacing: var(--ls-headline); }
.view-settings .set-none-body { margin-top: 3px; font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label-2); }

/* What Parcel will do */
.view-settings .set-does .list-row-main { padding-block: 12px; }
.view-settings .set-does .list-row-title { font-size: var(--fs-callout); line-height: var(--lh-callout); letter-spacing: var(--ls-callout); text-wrap: pretty; }

/* Milestone chip (page + sheets) */
.set-mchip {
  display: inline-grid; place-items: center; flex: none;
  width: 29px; height: 29px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--tone, var(--accent)) 16%, transparent);
  color: var(--tone-text, var(--accent-text));
  font-family: var(--font-rounded);
  font-size: 12px; line-height: 1; font-weight: var(--w-bold); letter-spacing: 0;
}
.set-mchip.is-small { width: auto; height: 20px; padding: 0 6px; border-radius: 6px; font-size: 11px; }

/* ============================================================== sheets (overlay root) */
.set-sheet .set-sheet-body { padding-top: 8px; }
.set-sheet .list-section + .list-section { margin-top: var(--sp-6); }
.set-sheet .list-footer { text-wrap: pretty; }

/* Store name */
.set-sheet .set-name-field { display: flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 8px 0 16px; }
.set-sheet .set-name-input { flex: 1 1 auto; min-width: 0; height: 48px; font-size: var(--fs-body); letter-spacing: var(--ls-body); color: var(--label); }
.set-sheet .set-name-input:focus-visible { outline: none; }
.set-sheet .set-name-field { transition: box-shadow 150ms linear; }
.set-sheet .set-name-field:focus-within { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); }
.set-sheet .set-name-clear { position: relative; display: none; place-items: center; width: 30px; height: 30px; flex: none; color: var(--label-3); --knockout: var(--bg-2); }
.set-sheet .set-name-clear::after { content: ""; position: absolute; inset: -7px; }   /* 44pt target */
.set-sheet .set-name-field.has-value .set-name-clear { display: grid; }
.set-sheet .set-name-clear:active { opacity: .5; }
@media (hover: hover) and (pointer: fine) { .set-sheet .set-name-clear:hover { color: var(--label-2); } }

/* Field rows (payment fees): the value being edited turns accent, like an iOS picker value. */
.set-sheet .set-field-row { cursor: text; }
.set-sheet .set-field-row .inline-field { font-variant-numeric: tabular-nums; color: var(--label-2); }
.set-sheet .set-field-row .inline-input { color: var(--label-2); font-variant-numeric: tabular-nums; }
.set-sheet .set-field-row .inline-input:focus-visible { outline: none; }
.set-sheet .set-field-row:focus-within .inline-field,
.set-sheet .set-field-row:focus-within .inline-input { color: var(--accent-text); }
.set-sheet .set-error { color: var(--red-text); }

/* Live example card */
.set-sheet .set-preview {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  margin-top: var(--sp-5);
  padding: 14px 16px;
  border-radius: var(--r-list);
  background: var(--bg-2);
  text-align: left;
  transition: opacity var(--dur-fast) linear;
}
.set-sheet .set-preview.is-stale { opacity: .4; }
.set-sheet .set-preview-row { justify-content: space-between; }
.set-sheet .set-preview-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.set-sheet .set-preview-title {
  font-size: var(--fs-body); line-height: var(--lh-body); letter-spacing: var(--ls-body); font-weight: var(--w-semibold);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.set-sheet .set-margin-preview .set-preview-title {
  font-size: var(--fs-callout); line-height: var(--lh-callout);
  white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.set-sheet .set-preview-label { font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label-2); }
.set-sheet .set-preview-value {
  font-family: var(--font-rounded);
  font-size: var(--fs-title3); line-height: var(--lh-title3); font-weight: var(--w-bold); letter-spacing: -0.3px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.set-sheet .set-preview-end { flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.set-sheet .set-preview-caption { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--label-2); }
.set-sheet .set-thumb { flex: none; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; }
.set-sheet .set-thumb svg { display: block; width: 100%; height: 100%; }
.set-sheet .set-fee-preview { flex-direction: column; align-items: flex-start; gap: 2px; margin-top: var(--sp-6); }
.set-sheet .set-fee-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.set-sheet .set-fee-amount {
  font-family: var(--font-rounded);
  font-size: var(--fs-title2); line-height: var(--lh-title2); font-weight: var(--w-bold); letter-spacing: -0.3px;
  font-variant-numeric: tabular-nums;
}
.set-sheet .set-fee-share { font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label-2); }

/* One big number */
.set-sheet .set-num { display: flex; flex-direction: column; align-items: center; padding-top: 20px; }
.set-sheet .set-num-value {
  display: flex; align-items: baseline; justify-content: center;
  max-width: 100%;
  font-family: var(--font-rounded);
  font-size: 60px; line-height: 66px; font-weight: var(--w-bold); letter-spacing: -1.4px;
  font-variant-numeric: tabular-nums;
  color: var(--label);
  cursor: text;
}
.set-sheet .set-num-field { display: inline-grid; min-width: 0; }
.set-sheet .set-num-field > * { grid-area: 1 / 1; font: inherit; letter-spacing: inherit; }
.set-sheet .set-num-mirror { visibility: hidden; white-space: pre; padding: 0 1px; }
.set-sheet .set-num-input {
  width: 0; min-width: 100%; padding: 0;   /* the mirror sizes the column, the input fills it */
  text-align: center;
  color: inherit; caret-color: var(--accent);
  background: transparent;
}
.set-sheet .set-num-input:focus-visible { outline: none; }
.set-sheet .set-num-unit {
  margin-left: 10px;
  font-family: var(--font);
  font-size: var(--fs-title3); line-height: var(--lh-title3); font-weight: var(--w-semibold); letter-spacing: var(--ls-title3);
  color: var(--label-2);
  white-space: nowrap;
}
.set-sheet .set-num-stepper { display: flex; justify-content: center; margin-top: 14px; }
.set-sheet .set-num-stepper .stepper-control { height: 44px; border-radius: 12px; }
.set-sheet .set-num-stepper .stepper-btn { width: 76px; height: 44px; border-radius: 12px; }
.set-sheet .set-num-stepper .stepper-btn svg { width: 22px; height: 22px; }
.set-sheet .set-num-stepper .stepper-sep { height: 22px; }
.set-sheet .set-num-range {
  margin-top: 10px; text-align: center;
  font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2);
}
.set-sheet .set-num-range.is-error { color: var(--red-text); }
.set-sheet .set-num .set-preview { margin-top: var(--sp-6); }
.set-sheet .set-num-hint {
  margin: 16px auto 0; max-width: 440px; padding: 0 4px;
  text-align: center;
  font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label-2);
  text-wrap: pretty;
}

/* What's coming */
.set-sheet .set-ms-intro {
  padding: 0 4px 16px;
  font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label-2);
  text-wrap: pretty;
}
.set-sheet .set-ms-list { padding: 18px 16px 2px; border-radius: var(--r-list); background: var(--bg-2); }
.set-sheet .set-ms-item { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; }
.set-sheet .set-ms-rail { position: relative; display: flex; justify-content: center; }
.set-sheet .set-ms-item:not(:last-child) .set-ms-rail::after {
  content: ""; position: absolute; top: 28px; bottom: -16px; left: 50%;
  width: 2px; margin-left: -1px; border-radius: 1px;
  background: var(--fill);
}
.set-sheet .set-ms-dot {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 22px; height: 22px; margin-top: 1px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--label-3);
  background: var(--bg-2);
}
.set-sheet .set-ms-dot.is-done { background: var(--green); box-shadow: none; color: #fff; }
.set-sheet .set-ms-head { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.set-sheet .set-ms-now { font-size: 12px; line-height: 16px; font-weight: var(--w-semibold); color: var(--green-text); }
.set-sheet .set-ms-title {
  margin-top: 4px;
  font-size: var(--fs-headline); line-height: var(--lh-headline); letter-spacing: var(--ls-headline); font-weight: var(--w-semibold);
}
.set-sheet .set-ms-text {
  margin-top: 2px;
  font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label-2);
  text-wrap: pretty;
}
.set-sheet .set-ms-item.is-focus:not(.is-now) .set-ms-dot { box-shadow: inset 0 0 0 2px var(--accent); }
.set-sheet .set-ms-item.is-focus:not(.is-now) .set-ms-dot::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
}

/* ============================================================== forced colours (Windows High Contrast)
   Box-shadow rings vanish there, so circles and chips get real borders; filled states use Highlight. */
@media (forced-colors: active) {
  .view-settings .set-step-circle { border: 1.5px solid CanvasText; box-shadow: none; }
  .view-settings .set-step.is-done .set-step-circle { forced-color-adjust: none; background: Highlight; border-color: Highlight; color: HighlightText; }
  .view-settings .set-step.is-done .set-step-tick { color: HighlightText; }
  .view-settings .set-step-opt, .set-mchip, .view-settings .set-hero-ms { border: 1px solid CanvasText; }
  /* The Appearance previews are pictures of each theme: keep their colours, mark the choice with Highlight. */
  .view-settings .set-ap-preview { forced-color-adjust: none; }
  .view-settings .set-ap-option.is-selected .set-ap-preview { outline-color: Highlight; }
  .view-settings .set-ap-radio { border: 1.5px solid CanvasText; box-shadow: none; }
  .view-settings .set-ap-option.is-selected .set-ap-radio { forced-color-adjust: none; background: Highlight; border-color: Highlight; color: HighlightText; }
  .set-sheet .set-ms-dot { border: 2px solid CanvasText; box-shadow: none; }
  .set-sheet .set-ms-dot.is-done { forced-color-adjust: none; background: Highlight; border-color: Highlight; color: HighlightText; }
  .set-sheet .set-ms-item:not(:last-child) .set-ms-rail::after { background: CanvasText; }
  .set-sheet .set-ms-item.is-focus:not(.is-now) .set-ms-dot::after { background: CanvasText; }
  .set-sheet .set-name-field:focus-within { outline: 2px solid Highlight; }
}

/* ============================================================== M1.5 additions */
/* Your store: a big row at the top, like the Apple ID card in iOS Settings. */
.view-settings .set-store .list-row-inner { min-height: 80px; }
.view-settings .set-store-logo {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px;
}
.view-settings .set-store-logo .brand-logo { display: block; width: 52px; height: 52px; }
.view-settings .set-store-logo .icon-tile { border-radius: 12px; }
.view-settings .set-store-row .list-row-title { font-size: var(--fs-title3); line-height: var(--lh-title3); letter-spacing: var(--ls-title3); font-weight: var(--w-semibold); }
.view-settings .set-store-row .list-row-subtitle { margin-top: 1px; }

/* Go live (DECISIONS §31): what the built store waits for, the essentials' progress, and the sample's way on. */
.view-settings .set-live-row { padding: 14px 16px 16px; }
.view-settings .set-live-body { display: flex; flex-direction: column; gap: 14px; }
.view-settings .set-live-head { display: flex; align-items: flex-start; gap: 12px; }
.view-settings .set-live-head .icon-tile { margin-top: 1px; }
.view-settings .set-live-title {
  font-size: var(--fs-headline); line-height: var(--lh-headline); letter-spacing: var(--ls-headline); font-weight: var(--w-semibold);
  text-wrap: balance;
}
.view-settings .set-live-text { margin-top: 2px; font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label-2); text-wrap: pretty; }
.view-settings .set-live-action .list-row-title { color: var(--accent-text); font-weight: var(--w-medium); }
.view-settings .set-live-action[hidden] { display: none; }
.view-settings .set-live .list-footer[hidden] { display: none; }
/* The action row sits under a custom row: its separator runs edge to edge from the text inset. */
.view-settings .set-live-row + .set-live-action::before { left: 16px; }

/* Customer emails: its envelope tile is drawn by the view, but sits like any icon tile. */
.view-settings .set-email-row .list-row-leading { margin-right: 15px; }

/* Narrow phones (320): titles and values wrap instead of cutting off ("Payment fees", "M1.5 · sample data"; V009). */
@media (max-width: 359px) {
  .view-settings .set-page .list-row-text { min-width: min-content; }
  .view-settings .set-page .list-row-title { white-space: normal; overflow: visible; overflow-wrap: normal; text-wrap: pretty; }
  .view-settings .set-page .list-row-value { white-space: normal; text-wrap: balance; }
}

/* A row that belongs to the row above it (Morning summary → Time): indented like iOS. */
.view-settings .set-sub-row .list-row-inner { padding-left: 61px; }
.view-settings .set-sub-row[hidden] { display: none; }

/* Header note ("3 of 27 steps done") on sections built by hand. */
.view-settings .list-header .set-steps-progress { margin-left: auto; }

/* Links inside list footers */
.view-settings .set-footer-link { color: var(--accent-text); font-weight: var(--w-medium); }
@media (hover: hover) and (pointer: fine) { .view-settings .set-footer-link:hover { text-decoration: underline; text-underline-offset: 2px; } }

/* Sample data: the two stories are a picker (checkmark on the chosen one). */
.view-settings .set-modes + .set-sample { margin-top: var(--sp-6); }
.view-settings .set-mode-row.is-busy .list-row-inner { pointer-events: none; }
.view-settings .set-mode-row.is-busy .list-row-title { opacity: .5; }

/* Guide hero: a plain "when" capsule for guides without a milestone (Legal). */
.view-settings .set-hero-when {
  display: inline-flex; align-items: center;
  height: 24px; padding: 0 10px;
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--orange) 14%, transparent); color: var(--orange-text);
  font-size: 12px; line-height: 1; font-weight: var(--w-semibold);
  white-space: nowrap;
}
.view-settings .set-guide .set-hero-lead { max-width: 32em; }

/* Customer emails picker: every row keeps its check's space; only the chosen one shows it. */
.set-sheet .set-pick .list-row-check { color: var(--accent); flex: none; }
.set-sheet .set-pick .list-row-check.is-hidden { visibility: hidden; }
.set-sheet .set-pick .list-row-main { padding-block: 12px; }

/* Morning summary time: the big number, in the rounded face, a little smaller than the money ones. */
.set-sheet .set-time-value { font-size: 52px; line-height: 60px; letter-spacing: -1px; }

/* How Parcel runs your store */
.set-sheet .set-choices { padding: 0; }
.set-sheet .set-choice { position: relative; padding: 12px 16px 13px; }
.set-sheet .set-choice + .set-choice::before {
  content: ""; position: absolute; top: 0; left: 16px; right: 0;
  height: var(--hairline); background: var(--sep);
}
.set-sheet .set-choice-label { font-size: var(--fs-footnote); line-height: var(--lh-footnote); color: var(--label-2); }
.set-sheet .set-choice-value { margin-top: 1px; font-size: var(--fs-body); line-height: var(--lh-body); letter-spacing: var(--ls-body); font-weight: var(--w-semibold); }
.set-sheet .set-choice-detail { margin-top: 2px; font-size: var(--fs-subhead); line-height: var(--lh-subhead); color: var(--label-2); text-wrap: pretty; }

/* Test settings sheet opened from Settings uses the Autopilot sheet styles (.ap-sheet). */

@media (forced-colors: active) {
  .view-settings .set-hero-when { border: 1px solid CanvasText; }
}

/* Subtitles in Settings wrap rather than cut off (they carry the what and when). */
.view-settings .set-page .list-row-subtitle,
.set-sheet .set-pick .list-row-subtitle { white-space: normal; overflow: visible; text-wrap: pretty; }
