/* The account: actions, standing, and the seeker's devices. */
@layer components {

.account p:first-child { margin-top: 0; }

/* The account panelled rather than poured: each business in its own
   section under a ruled heading, two columns where the window allows —
   the money and the post on one side, the seeker's own things on the
   other. */
.settings {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
@media (min-width: 62rem) {
  .settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.settings__panel { padding: 1.5rem; }
.settings__panel > :last-child { margin-bottom: 0; }
.settings__panel h2 {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 0.7rem;
  font-size: 1.15rem;
}
/* The rule runs out from the heading to the edge of the panel, so each
   business announces itself without a second box inside the first. */
.settings__panel h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.settings__note {
  margin: 0 0 0.9rem;
  color: var(--ink-dim);
  font-size: 0.92rem;
  line-height: 1.55;
}
.settings__panel .button { margin-top: 0; }

/* A second voice inside a panel: what the controls under it are for,
   set apart from the prose above by a hairline of space rather than
   another rule. */
.settings__subheading {
  margin: 1.4rem 0 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* The till and the door out stand under the grid, narrower than it and
   centred, so the page ends on one column rather than two. */
.settings__panel--below {
  max-width: 42rem;
  margin: 1.25rem auto 0;
}
.settings__panel--danger h2 { color: var(--alert); }
.settings__panel--danger h2::after { background: color-mix(in srgb, var(--alert) 30%, transparent); }

.account__actions {
  display: grid;
  gap: 0.75rem;
  max-width: 22rem;
  margin: 2rem auto 0;
}
.account__actions form { margin: 0; }
.account__actions .button { margin-top: 0; }
.account__signout { width: 100%; }

/* What iOS says about push wears the reachable__channel rows (forms.css);
   the account's own part is where they sit and the silence nobody asked
   for. */
/* The panel's rows shed their bottom margins (margin-none-block-end, in
   the markup — iOS reveals one of three, and :last-of-type would only
   ever find the hidden last), so the room above the email row's rule is
   said here, matching the 1.2rem the rule keeps below itself. */
.reachable--panel { margin-top: 1.1rem; margin-bottom: 1.2rem; }
/* The seal's wardrobe: a shelf of icons, the worn one ringed in gold. */
.wardrobe { display: flex; flex-wrap: wrap; gap: 1rem 1.15rem; margin-top: 1.2rem; }
.wardrobe__choice {
  display: grid; justify-items: center; gap: 0.4rem;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-ui); font-size: 0.75rem; letter-spacing: 0.03em;
  color: var(--ink-dim);
}
.wardrobe__seal {
  width: 3.4rem; height: 3.4rem; border-radius: 24%;
  box-shadow: var(--shadow);
}
.wardrobe__choice[aria-pressed="true"] { color: var(--ink); }
.wardrobe__choice[aria-pressed="true"] .wardrobe__seal {
  outline: 2px solid var(--gold); outline-offset: 2px;
}

.standing__nothing {
  margin: 1.1rem 0 0; padding: 0.8rem 1rem;
  border-left: 3px solid var(--gold-dim); border-radius: 4px;
  color: var(--ink-dim); font-size: 0.9rem; line-height: 1.55;
}

/* The seeker's devices: one row per sitting, the way out at the end. */
.sittings { list-style: none; margin: 0; padding: 0; }
.sittings__sitting {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line);
}
.sittings__sitting:last-child { border-bottom: none; }
.sittings__what { display: flex; flex-direction: column; gap: 0.15rem; }
.sittings__seen { font-size: 0.85rem; }
.sittings .button { margin-top: 0; }

@media (max-width: 760px) {
  .account__staff { display: inline-flex; }
}

}
