/* v5 Settings. Layered on /v5/home.css, which holds every colour in its token
   block. Nothing in this file is a colour value; only var(--c-…). */

.set-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; align-items: start; max-width: 720px; }
.set-grid > section { scroll-margin-top: 16px; }
.set-grid > section[hidden] { display: none; }
.set-grid > .v5-note { margin: 0; }

/* a card: small grey label, the big answer, one sentence */
.set-k { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.set-big { font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin: 0; color: var(--c-ink); overflow-wrap: anywhere; }
.set-mid { font-size: 17px; font-weight: 600; line-height: 1.3; margin: 0; color: var(--c-ink); overflow-wrap: anywhere; }
.set-gap { margin-top: 18px; }
.set-say { font-size: 14px; line-height: 1.5; color: var(--c-ink-2); margin: 8px 0 0; }
.set-say b { color: var(--c-ink); font-weight: 600; }
.set-fine { font-size: 13px; color: var(--c-ink-3); margin: 10px 0 0; }
.set-h { font-size: 14px; font-weight: 700; color: var(--c-ink); margin: 20px 0 0; }

/* buttons: one dark for the thing to do, soft for everything else */
.set-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
/* the two shared button declarations in home.css own the fill, the ring, the
   radius and the states; only the small size is this screen's own */
.set-btn.sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.set-btn[disabled] { opacity: .6; cursor: default; transform: none; box-shadow: var(--clay-solid-lo); }

/* the shop's name: 16px in the box so an iPhone doesn't zoom in */
.set-field { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 0; }
.set-field input { flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 0 16px; border: 0; border-radius: var(--r-ctl);
  background: var(--c-sunk); color: var(--c-ink); font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none;
  box-shadow: var(--clay-ctl); }
.set-field input::placeholder { color: var(--c-ink-2); }   /* ink-3 is 3.75:1 on --c-sunk */

/* the connection's state: a green or red dot before the word */
.set-state { display: flex; align-items: center; gap: 10px; }
.set-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; }
.set-dot.on { background: var(--c-up); }
.set-dot.off { background: var(--c-down); }

/* rows with a button on the right: a date range not read, a Square account */
.set-rows { list-style: none; margin: 8px 0 0; padding: 0; }
.set-rows li { display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--c-line); }
.set-rows li:first-child { border-top: 0; }
.set-rows .who { min-width: 0; }
.set-rows .nm, .set-rows .ds { display: block; }
.set-rows .nm { font-size: 14.5px; font-weight: 600; color: var(--c-ink); }
.set-rows .ds { font-size: 13px; color: var(--c-ink-3); }
.set-two { display: inline-flex; gap: 8px; flex-wrap: wrap; }

/* the question before something is disconnected */
.set-ask { margin-top: 16px; padding: 15px 17px; border-radius: var(--r-tile); background: var(--c-sunk); box-shadow: var(--clay-down); }
.set-ask p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--c-ink-2); }
.set-ask b { color: var(--c-ink); font-weight: 600; }
/* ALREADY ON --c-sunk, so the quiet button inverts rather than matching its
   ground: card-coloured and RAISED out of the dent it is sitting in. Same
   1.37:1 step, the other way up, and it keeps the shared ring. */
.set-ask .set-btn.quiet, .v5 .set-ask .set-btn.quiet { background: var(--c-card); box-shadow: 0 0 0 1.5px var(--c-ring), var(--clay-up); }

/* what happened: it worked, or it plainly didn't */
.set-said:empty { display: none; }
.set-said { margin-top: 14px; }
.set-good, .set-bad { font-size: 14px; line-height: 1.5; margin: 0; }
.set-good { color: var(--c-up); }
.set-bad { color: var(--c-down); }
.set-good b, .set-bad b { font-weight: 700; }

@media (max-width: 760px) {
  .set-grid { gap: 12px; }
  .set-big { font-size: 24px; }
  .set-acts { flex-direction: column; align-items: stretch; }
  .set-field .set-btn { flex: 1 1 auto; }
}
/* granted Square permissions, and the disconnect choice */
.set-gap { margin-top: 16px; }
.set-perms { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.set-perms li { font-size: 14px; line-height: 1.4; color: var(--c-ink-2); padding-left: 16px; position: relative; }
.set-perms li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .55; }
.set-choice { display: grid; gap: 10px; margin: 12px 0 14px; }
.set-choice label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--c-ink-2); cursor: pointer; }
.set-choice input { margin-top: 3px; accent-color: var(--c-ink); }

/* Plan, inside the Account tile (Logan, 29 Oct) */
.set-plan { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--c-ring); scroll-margin-top: 80px; }
.set-plan:empty { display: none; }
.set-legal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 4px; row-gap: 0; margin: 12px 0 0; font-size: 12px; color: var(--c-ink-2); }
.set-legal a, .v5 .set-legal button { display: inline-flex; border: 0; background: none; box-shadow: none; font: inherit; font-size: 12px; cursor: pointer; margin: 0; width: auto; border-radius: 0; align-items: center; min-height: 44px; padding: 0 8px; color: var(--c-ink-2); text-decoration: none; }
.set-legal a:hover, .set-legal a:focus-visible, .v5 .set-legal button:hover, .v5 .set-legal button:focus-visible { text-decoration: underline; }
/* Two pairs that never break inside; on a phone they stack 2 + 2, so no dot ends a row */
.set-pair { display: inline-flex; align-items: center; column-gap: 4px; white-space: nowrap; }
@media (max-width: 520px) { .set-legal { flex-direction: column; } .set-mid-dot { display: none; } }

/* Your setup: a label and a small number box on one line, same sunk well as the shop's name. 16px so an iPhone doesn't zoom. */
.set-setup { margin: 14px 0 0; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.set-row + .set-err + .set-row { margin-top: 8px; }
.set-lab { font-size: 14px; font-weight: 600; color: var(--c-ink); margin: 0; }
.set-num { flex: 0 0 auto; width: 72px; box-sizing: border-box; min-height: 44px; padding: 0 10px; border: 0; border-radius: var(--r-ctl); background: var(--c-sunk); color: var(--c-ink);
  font: inherit; font-size: 16px; font-weight: 600; text-align: center; -webkit-appearance: none; appearance: none; box-shadow: var(--clay-ctl); }
.set-num:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.set-num[aria-invalid="true"] { box-shadow: 0 0 0 2px var(--c-down), var(--clay-ctl); }
.set-err { margin: 4px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--c-down); text-align: right; }
.set-err:empty { display: none; }
