:root {
  --bg: #f6f1ea;
  --surface: #ffffff;
  --surface-soft: #ffffff;
  --ink: #2a1f17;
  --ink-soft: #5a4a3d;
  --muted: #887567;
  --accent: #8b5a3c;
  --accent-deep: #70452e;
  --line: #e4d9ce;
  --line-strong: #cfbca9;
  --green: #35644a;
  --amber: #8a641d;
  --red: #9a3f35;
  --blue: #315d78;
  --shadow: 0 1px 0 rgba(58, 40, 25, .02), 0 1px 3px rgba(58, 40, 25, .04);
  --radius: 14px;
  --font-serif: "Newsreader", Georgia, serif;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .52;
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(139, 90, 60, .32);
  outline-offset: 3px;
}

.environment-bar {
  min-height: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 8px 20px;
  background: var(--ink);
  color: #f9f3ec;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .035em;
  text-align: center;
}

.environment-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: #d8b090;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(216, 176, 144, .14);
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: .04em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.1;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.status-pill,
.role-pill,
.count-pill,
.immutable-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  line-height: 1;
}

.status-pill::before {
  width: 7px;
  height: 7px;
  margin-right: 7px;
  background: var(--amber);
  border-radius: 50%;
  content: "";
}

.status-ready::before {
  background: var(--green);
}

.status-error::before {
  background: var(--red);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 72px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr);
  gap: 64px;
  align-items: end;
  padding: 78px 0 62px;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: 34px;
  right: 54px;
  width: 246px;
  height: 246px;
  border: 1px solid rgba(139, 90, 60, .2);
  border-radius: 50%;
  content: "";
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .17em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -.025em;
}

h1 {
  max-width: 800px;
  font-size: clamp(46px, 6vw, 72px);
  line-height: .99;
}

h1 em {
  color: var(--accent);
  font-weight: 500;
}

h2 {
  font-size: clamp(36px, 5vw, 55px);
  line-height: 1.02;
}

h3 {
  font-size: 30px;
  line-height: 1.08;
}

h4 {
  font-size: 25px;
  line-height: 1.1;
}

.hero-lede {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.hero-note {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 24px 0 10px;
  border-top: 1px solid var(--line-strong);
}

.hero-note-number {
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 18px;
}

.hero-note strong {
  display: block;
  margin-bottom: 5px;
}

.hero-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.mode-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 32px;
  padding: 7px;
  background: #e9ded3;
  border-radius: 16px;
}

.mode-tab {
  min-height: 72px;
  padding: 13px 18px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  border-radius: 11px;
  text-align: left;
}

.mode-tab span,
.mode-tab small {
  display: block;
}

.mode-tab span {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
}

.mode-tab small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
}

.mode-tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 4px 18px rgba(70, 47, 31, .08);
}

.mode-tab.active small {
  color: var(--accent);
}

.notice {
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 12px;
}

.notice p {
  margin: 3px 0 0;
  color: var(--ink-soft);
}

.notice-error {
  border-left-color: var(--red);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr);
  gap: 42px;
  padding: 42px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.auth-intro {
  padding: 20px 16px;
}

.auth-intro > p:not(.eyebrow) {
  max-width: 600px;
  color: var(--ink-soft);
  font-size: 16px;
}

.feature-list {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
}

.feature-list span {
  color: var(--ink);
  font-weight: 750;
}

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 30px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
}

.security-note > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.security-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-card {
  align-self: center;
  min-height: 360px;
  padding: 34px;
}

.auth-card h3 {
  margin-bottom: 24px;
}

.step-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.step-label span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

label {
  display: block;
  margin: 16px 0 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  border-radius: 9px;
  transition: border-color .16s ease, box-shadow .16s ease;
}

textarea {
  min-height: 82px;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--accent);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 90, 60, .11);
  outline: 0;
}

input::placeholder,
textarea::placeholder {
  color: #ad9c90;
}

.code-input {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .2em;
  text-align: center;
}

.button {
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: white;
}

.button-primary:hover:not(:disabled) {
  background: var(--accent-deep);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button-secondary:hover:not(:disabled) {
  border-color: var(--accent);
}

.button-text {
  background: transparent;
  color: var(--accent);
}

.button-text:hover:not(:disabled) {
  background: rgba(139, 90, 60, .07);
}

.button-full {
  width: 100%;
  margin-top: 16px;
}

.button-small {
  min-height: 36px;
  padding: 7px 10px;
}

.form-message {
  min-height: 21px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.form-message.is-error {
  color: var(--red);
}

.form-message.is-success {
  color: var(--green);
}

.muted {
  color: var(--muted);
}

.optional {
  color: var(--muted);
  font-weight: 500;
}

.workspace {
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.workspace-header h2 {
  font-size: clamp(38px, 5vw, 58px);
}

.workspace-header p:last-child {
  margin-bottom: 0;
}

.workspace-actions {
  display: flex;
  gap: 8px;
}

.member-summary {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 16px;
  margin: 28px 0;
}

.balance-card,
.summary-note {
  min-height: 190px;
  padding: 28px;
  border-radius: var(--radius);
}

.balance-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--accent);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.balance-card > span {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.balance-card strong {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: clamp(52px, 7vw, 76px);
  font-weight: 600;
  line-height: 1;
}

.balance-card small {
  color: var(--muted);
}

.summary-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.summary-note h3 {
  font-size: 27px;
}

.summary-note p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
}

.subtabs,
.staff-nav {
  display: flex;
  gap: 4px;
  margin: 32px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.subtab,
.staff-nav-button {
  min-height: 43px;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.subtab.active,
.staff-nav-button.active {
  background: var(--surface-soft);
  color: var(--accent);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 22px;
  margin: 34px 0 20px;
}

.section-heading h3 {
  font-size: 34px;
}

.section-heading p:not(.eyebrow) {
  max-width: 680px;
  margin: 7px 0 0;
  color: var(--muted);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.store-item {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 23px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 15px;
  overflow: hidden;
}

.store-item::before {
  width: 46px;
  height: 4px;
  margin-bottom: 22px;
  background: var(--accent);
  border-radius: 4px;
  content: "";
}

.store-item h4 {
  margin-bottom: 7px;
}

.store-item > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.offer-pill {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 8px;
  border: 1px solid var(--accent);
  background: var(--surface);
  color: var(--accent);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.store-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}

.store-price strong {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1;
}

.store-price s {
  color: var(--muted);
}

.store-item .button {
  width: 100%;
  margin-top: 13px;
}

.timeline,
.claim-list,
.admin-list {
  border-top: 1px solid var(--line);
}

.timeline-row,
.claim-row,
.admin-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 15px;
  align-items: start;
  padding: 17px 2px;
  border-bottom: 1px solid var(--line);
}

.timeline-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  font-weight: 800;
}

.timeline-copy strong,
.claim-copy strong,
.admin-row strong {
  display: block;
}

.timeline-copy small,
.claim-copy small,
.admin-row small {
  color: var(--muted);
}

.points-change {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  white-space: nowrap;
}

.points-positive {
  color: var(--green);
}

.points-negative {
  color: var(--red);
}

.claim-row {
  grid-template-columns: 1fr auto;
}

.claim-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 13px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.claim-actions {
  min-width: 250px;
}

.claim-actions input {
  min-height: 40px;
  margin-bottom: 7px;
}

.state-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  background: #eee6de;
  color: var(--ink-soft);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.state-claimed {
  background: #f4ead2;
  color: var(--amber);
}

.state-fulfilled {
  background: #e1ede5;
  color: var(--green);
}

.state-expired,
.state-cancelled {
  background: #f0e0de;
  color: var(--red);
}

.identity-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.identity-line .eyebrow {
  margin: 0;
}

.role-pill {
  border-color: rgba(139, 90, 60, .3);
  background: rgba(139, 90, 60, .08);
  color: var(--accent);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}

.input-action {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.search-results {
  margin-top: 16px;
}

.search-result {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.search-result strong,
.search-result small {
  display: block;
}

.search-result small {
  color: var(--muted);
}

.search-result > span:last-child {
  color: var(--accent);
  font-weight: 800;
}

.referral-editor.is-empty {
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
}

.selected-member {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.selected-member span,
.selected-member strong,
.selected-member small {
  display: block;
}

.selected-member span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.selected-member strong {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: 27px;
}

.selected-member small {
  color: var(--muted);
}

.referral-state {
  margin: 18px 0;
  padding: 14px;
  background: var(--surface-soft);
  border-radius: 10px;
}

.referral-state p {
  margin: 3px 0;
  font-size: 13px;
}

.referral-state.is-locked {
  border-left: 3px solid var(--red);
}

.heading-with-control {
  align-items: flex-end;
}

.compact-control {
  min-width: 180px;
  margin: 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 13px;
}

.metric span,
.metric strong {
  display: block;
}

.metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.metric strong {
  margin-top: 3px;
  font-family: var(--font-serif);
  font-size: 35px;
  line-height: 1;
}

.owner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.owner-card {
  box-shadow: none;
}

.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.compact-heading {
  padding-bottom: 0;
  border-bottom: 0;
}

.compact-copy {
  margin: 8px 0 0;
  font-size: 13px;
}

.card-divider {
  height: 1px;
  margin: 30px 0 24px;
  background: var(--line);
}

.immutable-pill {
  border-color: rgba(139, 90, 60, .24);
  color: var(--accent);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

.form-grid label {
  margin-bottom: 0;
}

.span-2 {
  grid-column: 1 / -1;
}

.checkbox-label {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.admin-list {
  margin-top: 24px;
  max-height: 360px;
  overflow-y: auto;
}

.admin-row {
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.process-card {
  display: grid;
  grid-template-columns: 1.4fr minmax(300px, .6fr);
  gap: 28px;
  align-items: end;
  margin-top: 18px;
  box-shadow: none;
}

.process-card p:not(.eyebrow, .form-message) {
  margin-bottom: 0;
  color: var(--muted);
}

.process-card form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.process-card label {
  margin: 0;
}

.process-card .form-message {
  grid-column: 1 / -1;
}

.qr-frame {
  min-height: 190px;
  display: grid;
  place-items: center;
  margin: 18px 0;
}

.qr-frame img {
  width: 188px;
  height: 188px;
  padding: 6px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.secret-details {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
}

.secret-details code {
  display: block;
  margin-top: 7px;
  padding: 10px;
  background: var(--surface-soft);
  color: var(--ink);
  border-radius: 8px;
  overflow-wrap: anywhere;
}

.empty-state {
  padding: 44px 18px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  border-radius: 13px;
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 23px;
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  width: min(360px, calc(100% - 40px));
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 10px;
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 13px;
  animation: toast-in .2s ease-out;
}

.toast.error {
  border-left-color: var(--red);
}

.toast.success {
  border-left-color: var(--green);
}

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 58px;
  }

  .hero-note {
    max-width: 620px;
  }

  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-intro {
    padding-bottom: 0;
  }

  .auth-card {
    max-width: 580px;
    width: 100%;
  }

  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owner-grid,
  .process-card {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-card form {
    max-width: 620px;
  }
}

@media (max-width: 740px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 72px;
  }

  .header-status {
    display: none;
  }

  .hero {
    padding: 46px 0 42px;
  }

  .hero::after {
    right: -100px;
  }

  h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .hero-lede {
    font-size: 16px;
  }

  .mode-switcher {
    gap: 4px;
    padding: 5px;
  }

  .mode-tab {
    min-height: 64px;
    padding: 10px 12px;
  }

  .mode-tab span {
    font-size: 19px;
  }

  .mode-tab small {
    display: none;
  }

  .auth-layout,
  .workspace {
    padding: 22px;
    border-radius: var(--radius);
  }

  .auth-intro {
    padding: 8px 2px;
  }

  .auth-card {
    min-height: 0;
    padding: 24px;
  }

  .workspace-header {
    display: block;
  }

  .workspace-actions {
    margin-top: 18px;
  }

  .member-summary,
  .two-column {
    grid-template-columns: 1fr;
  }

  .balance-card,
  .summary-note {
    min-height: 155px;
  }

  .store-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
  }

  .heading-with-control {
    display: block;
  }

  .compact-control {
    margin-top: 16px;
  }

  .timeline-row {
    grid-template-columns: auto 1fr;
  }

  .points-change {
    grid-column: 2;
  }

  .claim-row {
    grid-template-columns: 1fr;
  }

  .claim-actions {
    min-width: 0;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-card form {
    grid-template-columns: 1fr;
  }

  .process-card .form-message {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .environment-bar {
    padding-inline: 12px;
    font-size: 10px;
    letter-spacing: .02em;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .brand strong {
    font-size: 18px;
  }

  .feature-list li {
    grid-template-columns: 72px 1fr;
  }

  .workspace {
    padding: 18px;
  }

  .workspace-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .staff-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }

  .staff-nav-button {
    padding-inline: 4px;
    font-size: 11px;
    white-space: normal;
  }

  .section-heading {
    display: block;
  }

  .count-pill {
    margin-top: 12px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .input-action {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
