/* Matches Space v175 (e0ed35d): quiet headers, 20px panels and 12–13px controls.
   Scoped presentation only; content, access and hidden-state behaviour are unchanged. */
.atom-shop {
  --shop-ink: #161616;
  --shop-paper: #f9f8f3;
  --shop-blue: #054ff0;
  --shop-lime: #dcfc73;
  --shop-lilac: #e1d2f3;
  --shop-text: var(--shop-ink);
  --shop-surface: #ffffff;
  --shop-field-surface: #ffffff;
  --shop-muted: #696966;
  --shop-line: #e5e3dc;
  --shop-control-line: #696966;
  --shop-link: var(--shop-blue);
  --shop-focus: var(--shop-blue);
  max-width: 1180px;
  min-width: 0;
  margin: 0 auto;
  padding: 0 0 40px;
  color: var(--shop-text);
  font-family: HelveticaM, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.atom-shop *, .atom-shop *::before, .atom-shop *::after { box-sizing: border-box; }
.atom-shop[hidden], .atom-shop [hidden] { display: none !important; }
:root .atom-shop :is(h1, h2, h3, h4) {
  font-family: SpaceCore, 'De Fonte Plus', HelveticaM, Helvetica, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.08;
}
.atom-shop > header { margin: 0 0 26px; padding: 0 0 26px; border-bottom: 1px solid var(--shop-line); background: transparent; }
.atom-shop > header h2 { margin: 9px 0 14px; font-size: clamp(2rem, 3.6vw, 3.6rem); }
.atom-shop > header p { max-width: 78ch; margin: 0; line-height: 1.6; color: var(--shop-muted); }
.atom-shop > header .shop-eyebrow { color: var(--shop-link); font-size: .69rem; letter-spacing: .15em; font-weight: 700; }
.atom-shop .shop-notice { padding: 20px 24px; border-radius: 20px; background: var(--shop-lilac); color: var(--shop-ink); font-size: .9375rem; line-height: 1.65; }
.atom-shop .shop-balance { padding: 18px 24px; border-radius: 20px; background: var(--shop-lime); color: var(--shop-ink); font-weight: 700; font-size: .9375rem; }
.atom-shop > [role=status]:empty { display: none; }
.atom-shop > [role=status]:not(:empty) { padding: 16px 20px; border: 1px solid var(--shop-line); border-radius: 20px; background: var(--shop-surface); }
.atom-shop .shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; margin: 28px 0; }
.atom-shop .shop-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  margin: 16px 0;
  padding: 24px;
  border: 1px solid var(--shop-line);
  border-radius: 20px;
  background: var(--shop-surface);
  box-shadow: none;
}
.atom-shop .shop-grid .shop-card { margin: 0; }
.atom-shop .shop-card > * { min-width: 0; max-width: 100%; }
.atom-shop .shop-card h3 { font-size: 1.65rem; margin: 0; }
.atom-shop .shop-card p { margin: 0; line-height: 1.65; }
.atom-shop .shop-grid .shop-card > strong { padding: 7px 12px; border-radius: 13px; background: var(--shop-lime); color: var(--shop-ink); font-size: .875rem; font-variant-numeric: tabular-nums; }
.atom-shop .shop-card small { font-size: .8125rem; line-height: 1.65; }
.atom-shop > h3 { margin: 36px 0 18px; font-size: 1.65rem; }
.atom-shop button {
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  margin: 4px 8px 4px 0;
  padding: 11px 20px;
  border: 1px solid var(--shop-control-line);
  border-radius: 13px;
  background: var(--shop-surface);
  color: var(--shop-text);
  font: 400 .9375rem/1.4 HelveticaM, Helvetica, Arial, sans-serif;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  box-shadow: none;
}
.atom-shop .shop-grid .shop-card > button, .atom-shop .shop-form > button[type=submit] { background: var(--shop-blue); color: var(--shop-paper); border-color: var(--shop-blue); }
.atom-shop .shop-grid .shop-card > button { margin-top: auto; }
.atom-shop button:disabled { opacity: .55; cursor: not-allowed; }
.atom-shop button:not(:disabled):hover { text-decoration: underline; text-underline-offset: 4px; }
.atom-shop :is(button, input, textarea, a):focus-visible { outline: 3px solid var(--shop-focus); outline-offset: 4px; }
.atom-shop a { color: var(--shop-link); text-underline-offset: 4px; }
.atom-shop .shop-form { display: grid; gap: 18px; max-width: 900px; margin: 28px 0; padding: 24px; border: 1px solid var(--shop-line); border-radius: 20px; background: var(--shop-surface); }
.atom-shop .shop-form label { display: grid; gap: 8px; min-width: 0; font-size: .875rem; font-weight: 700; }
.atom-shop .shop-form :is(input:not([type=checkbox]), textarea) {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--shop-control-line);
  border-radius: 12px;
  background: var(--shop-field-surface);
  color: var(--shop-text);
  font: 400 1rem/1.45 HelveticaM, Helvetica, Arial, sans-serif;
  box-shadow: none;
}
.atom-shop .shop-form label:has(input[type=checkbox]) { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 12px; min-height: 44px; }
.atom-shop .shop-form input[type=checkbox] { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: var(--shop-blue); }
.atom-shop .shop-form textarea { min-height: 150px; resize: vertical; line-height: 1.65; }
.atom-shop .shop-form > button { justify-self: start; margin: 0; }
@media screen {
  :root[data-appearance=soft] .atom-shop { --shop-muted: #57545d; }
  :root[data-appearance=dark] .atom-shop, :root[data-theme=dark] .atom-shop {
    --shop-text: var(--shop-paper);
    --shop-surface: #242326;
    --shop-field-surface: #302e33;
    --shop-muted: #c2c0c6;
    --shop-line: #48464c;
    --shop-control-line: #c2c0c6;
    --shop-link: #a9c2ff;
    --shop-focus: #a9c2ff;
    color-scheme: dark;
  }
}
/* Keep module controls on brand surfaces even when the shared dark sheet loads later. */
@media screen {
  html:root[data-appearance=dark] .atom-shop :is(input:not([type=checkbox]), select, textarea),
  html:root[data-theme=dark] .atom-shop :is(input:not([type=checkbox]), select, textarea) {
    background: var(--shop-field-surface);
    color: var(--shop-text);
    border-color: var(--shop-control-line);
  }
  html:root[data-appearance=dark] .atom-shop a,
  html:root[data-theme=dark] .atom-shop a { color: var(--shop-link); }
  html:root[data-appearance=dark] .atom-shop :focus-visible,
  html:root[data-theme=dark] .atom-shop :focus-visible { outline-color: var(--shop-focus); }
}
@media (max-width: 720px) {
  .atom-shop :is(.shop-card, .shop-form) { padding: 22px; border-radius: 20px; }
}
@media (max-width: 420px) {
  .atom-shop .shop-grid { grid-template-columns: minmax(0, 1fr); }
  .atom-shop .shop-form > button { width: 100%; }
  .atom-shop :is(.shop-notice, .shop-balance) { padding: 18px 20px; }
}

.atom-shop .shop-card :is(p, small) { color: var(--shop-muted); }
