/* RewardCode admin — shared styles.
   Indigo is carried over from the widget's default theme token so the admin
   and the thing it publishes read as one product. */

:root {
  --ground:      #f1f4f9;
  --paper:       #ffffff;
  --ink:         #1b2a4a;
  --ink-soft:    #5a6784;
  --ink-faint:   #8a94ab;
  --line:        #dce1ec;
  --line-soft:   #e9edf5;
  --field:       #f7f8fc;
  --brand:       #4f46e5;
  --brand-deep:  #3730a3;
  --brand-tint:  #eef1fe;
  --danger:      #b42318;
  --danger-bg:   #fef3f2;
  --danger-line: #fecdca;
  --ok:          #067647;
  --ok-bg:       #ecfdf3;
  --ok-line:     #abefc6;
  --warn:        #93370d;
  --warn-bg:     #fffaeb;
  --warn-line:   #fedf89;

  --radius:      10px;
  --radius-sm:   8px;
  --radius-lg:   14px;

  --shadow-sm:   0 1px 2px rgba(27, 42, 74, .06);
  --shadow-md:   0 2px 8px rgba(27, 42, 74, .07);
  --shadow-pop:  0 8px 24px rgba(27, 42, 74, .12);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink);
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; }

a { color: var(--brand); }

/* ================================================================ shell */

.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 6vh 20px 40px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 4px solid var(--brand);
  padding: 34px 32px 30px;
  box-shadow: var(--shadow-sm);
}

.wordmark {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 26px;
  text-decoration: none;
}
.wordmark span { color: var(--brand); }

h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 6px;
}

h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 32px 0 12px;
}

.lede {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 24px;
  max-width: 62ch;
}

.hint {
  display: block;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin-top: 5px;
}

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

.mono, .code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  letter-spacing: .01em;
}

/* ============================================================== app bar */

.app-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px 20px;
  padding: 12px 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.app-bar .wordmark { margin: 0; flex: 0 0 auto; }

.app-bar nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14.5px;
  overflow-x: auto;
  scrollbar-width: none;
}
.app-bar nav::-webkit-scrollbar { display: none; }

.app-bar nav a {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: background .12s ease, color .12s ease;
}
.app-bar nav a:hover { background: var(--field); color: var(--ink); }
.app-bar nav a.on {
  background: var(--brand-tint);
  color: var(--brand-deep);
  font-weight: 500;
}

.app-bar .bar-end {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.workspace-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 200px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  color: var(--ink-soft);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace-chip strong { color: var(--ink); font-weight: 500; }

.app-bar .bar-end a { color: var(--ink-soft); text-decoration: none; }
.app-bar .bar-end a:hover { color: var(--brand); }

/* ================================================================= page */

.page {
  max-width: 780px;
  margin: 0 auto;
  padding: 26px 24px 80px;
}


/* Back link above the title. */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  padding: 8px 14px 8px 11px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .12s ease, color .12s ease;
}
.back-link:hover { border-color: var(--brand); color: var(--brand); }

/* Title on the left, primary action on the right. */
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 20px;
}
.page-head h1 { margin: 0; }
.page-head .lede { margin: 4px 0 0; }
.page-head .head-text { min-width: 0; }
.page-head .head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

/* ============================================================== buttons */

button {
  width: auto;
  padding: 10px 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: var(--brand);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
button:hover  { background: var(--brand-deep); }
button:active { transform: translateY(1px); }
button[disabled] { opacity: .5; cursor: not-allowed; }

/* Signed-out pages want the submit to fill the card. */
.auth-card button[type="submit"] { width: 100%; margin-top: 8px; }

.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  padding: 10px 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
  background: var(--brand);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.btn:hover, a.btn:hover { background: var(--brand-deep); color: #fff; }

.btn.secondary,
a.btn.secondary,
.btn-quiet {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}
.btn.secondary:hover,
a.btn.secondary:hover,
.btn-quiet:hover {
  background: var(--paper);
  color: var(--brand);
  border-color: var(--brand);
}

.btn.danger, a.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #90261d; }

.btn.small, a.btn.small { padding: 7px 13px; font-size: 14px; }
.btn.block, a.btn.block { width: 100%; }

/* A button that has to sit inline among links without shouting. */
.btn-link {
  width: auto;
  margin: 0;
  padding: 4px 2px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--brand);
  background: none;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
}
.btn-link:hover { background: none; color: var(--brand-deep); text-decoration: underline; }
.btn-link.danger { color: var(--danger); }
.btn-link.danger:hover { color: #90261d; }

/* Big tiles on the dashboard. */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 22px 0 34px;
}

.tile {
  display: block;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease;
}
.tile:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.tile strong { display: block; font-size: 16.5px; font-weight: 600; }
.tile span { display: block; margin-top: 3px; font-size: 13.5px; color: var(--ink-soft); }

.tile.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.tile.primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.tile.primary span { color: rgba(255, 255, 255, .82); }

/* ================================================================ forms */

.field { margin-bottom: 18px; }

.field > label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .12s ease, background .12s ease, box-shadow .12s ease;
}

textarea { min-height: 120px; resize: vertical; line-height: 1.5; }

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235a6784' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .13);
}

input::placeholder, textarea::placeholder { color: var(--ink-faint); }

input[type="checkbox"],
input[type="radio"] {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--brand);
  cursor: pointer;
}

/* A checkbox or radio with its label on one line. */
.check,
.checkline {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 8px;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.45;
  cursor: pointer;
}
.check input, .checkline input { margin-top: 2px; }

input[type="file"] {
  width: 100%;
  padding: 9px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--field);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 6px 12px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
input[type="file"]:hover { border-color: var(--brand); }

.row { display: flex; gap: 12px; }
.row .field { flex: 1; }

fieldset {
  margin: 0 0 18px;
  padding: 18px 20px 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
legend {
  padding: 0 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Save bar that stays reachable on long forms. */
.form-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 26px -24px -80px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
}
.form-actions .spacer { flex: 1 1 auto; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ============================================================== notices */

.notice {
  padding: 12px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  margin-bottom: 20px;
}
.notice.error { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger); }
.notice.ok    { background: var(--ok-bg);     border-color: var(--ok-line);     color: var(--ok); }

.alt-links {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink-soft);
}
.alt-links a { color: var(--brand); text-decoration: none; }
.alt-links a:hover { text-decoration: underline; }

.banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 13px 16px;
  margin-bottom: 24px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--warn);
}
.banner form { margin: 0; }
.banner button {
  width: auto;
  margin: 0;
  padding: 7px 13px;
  font-size: 14px;
  background: var(--warn);
}
.banner button:hover { background: #7a2d0a; }

/* ================================================================ lists */

.partner-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.partner-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.partner-list li:last-child { border-bottom: 0; }
.partner-list li:hover { background: #fbfcfe; }

.partner-list li > div:first-child { min-width: 0; }

.partner-list a { color: var(--ink); text-decoration: none; }
.partner-list a:hover { color: var(--brand); }
.partner-list strong { font-weight: 600; letter-spacing: -0.01em; }

.partner-list .slug {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
}

/* Status pill on the right of a row. */
.partner-list .role,
.badge {
  display: inline-block;
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--field);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.badge.on  { background: var(--ok-bg);     border-color: var(--ok-line);     color: var(--ok); }
.badge.off { background: var(--field);     border-color: var(--line);        color: var(--ink-faint); }
.badge.warn{ background: var(--warn-bg);   border-color: var(--warn-line);   color: var(--warn); }
.badge.bad { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger); }

/* The cluster of links/forms at the right end of a row. */
.row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.row-actions form { margin: 0; }
.row-actions > a,
.row-actions .btn-link {
  padding: 5px 9px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .12s ease, color .12s ease;
}
.row-actions > a:hover,
.row-actions .btn-link:hover {
  background: var(--brand-tint);
  color: var(--brand-deep);
  text-decoration: none;
}
.row-actions .btn-link.danger:hover { background: var(--danger-bg); color: var(--danger); }

/* Label/value rows, e.g. the submission detail page. */
.detail-list li { align-items: flex-start; gap: 20px; }
.detail-list li > div:first-child {
  flex: 0 0 170px;
  color: var(--ink-soft);
  font-size: 14px;
}
.detail-list li > div:last-child { flex: 1 1 auto; text-align: right; word-break: break-word; }

/* Empty state. */
.empty {
  padding: 34px 24px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
}
.empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 600;
}
.empty p { margin: 0 auto 16px; max-width: 46ch; }
.empty .btn { margin-top: 4px; }

/* ============================================================ stat strip */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.stat {
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.stat .k {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.stat .v {
  display: block;
  margin-top: 2px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ============================================================ code chips */

.quick-codes { display: flex; flex-wrap: wrap; gap: 8px; }
.partner-list li.quick-codes-row { background: var(--field); }

.quick-code {
  width: auto;
  padding: 8px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
.quick-code:hover { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-deep); }

/* ============================================================ pagination */

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: 14.5px;
}
.pagination .hint { margin: 0; }
.pagination a {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }

/* ============================================================== toolbar */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.toolbar .field { margin-bottom: 0; }
.toolbar .grow { flex: 1 1 200px; }
.toolbar .toolbar-select { flex: 0 1 180px; }

/* ============================================================ utilities */
/* Small, boring, single-purpose classes so pages stop reaching for
   style="" for a margin. Named for what they do, not where they're used. */

.mt-0  { margin-top: 0 !important; }
.mb-0  { margin-bottom: 0 !important; }
.mb-sm { margin-bottom: 8px !important; }
.mb-md { margin-bottom: 14px !important; }
.mb-lg { margin-bottom: 24px !important; }
.mt-sm { margin-top: 8px !important; }
.mt-md { margin-top: 14px !important; }
.mt-lg { margin-top: 26px !important; }
.w-auto { width: auto !important; }
.flex-1 { flex: 1 1 0; min-width: 0; }
.upper { text-transform: uppercase; }
.text-lg { font-size: 15px; }

.row.wide { gap: 20px; }
.field.compact { margin-bottom: 0; }

.cluster { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cluster.tight { gap: 6px; }
.inline-form { margin: 0; }

.partner-list.block li,
.partner-list li.block { display: block; }

.thumb {
  display: inline-block;
  max-height: 60px;
  max-width: 200px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.thumb-sm { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: 0 0 auto; }
.thumb-lg { max-width: 120px; max-height: 120px; border-radius: 8px; border: 1px solid var(--line); }

.rule { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }

h2.section-title { font-size: 19px; margin: 34px 0 4px; }
h2.section-title + .hint { margin-bottom: 16px; }

/* ========================================================== status strip */
/* The "what's this promotion doing right now" line at the top of its
   form: live/off, dates, a couple of numbers, a colour swatch. */

.status-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: -6px 0 22px;
  font-size: 14px;
  color: var(--ink-soft);
}
.status-strip strong { color: var(--ink); font-weight: 600; }
.status-strip .sep { color: var(--line); }

.swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, .12);
}

/* An "AI" button that reads as a peer of the plain path, not a replacement. */
.btn.ai, a.btn.ai {
  background: var(--paper);
  color: var(--brand-deep);
  border-color: var(--brand);
}
.btn.ai:hover, a.btn.ai:hover { background: var(--brand-tint); color: var(--brand-deep); }

/* ======================================================= dashboard rows */

.promo-rows { list-style: none; margin: 0; padding: 0; }
.promo-rows li {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.promo-rows li:last-child { border-bottom: 0; }
.promo-rows .name { flex: 1 1 200px; min-width: 0; }
.promo-rows .name a { color: var(--ink); text-decoration: none; font-weight: 600; }
.promo-rows .name a:hover { color: var(--brand); }
.promo-rows .name .slug { display: block; font-size: 13px; color: var(--ink-soft); }
.promo-rows .num { flex: 0 0 auto; min-width: 84px; text-align: right; font-size: 13.5px; color: var(--ink-soft); }
.promo-rows .num strong { display: block; font-size: 17px; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
.promo-rows .go { flex: 0 0 auto; }

/* The dashboard's tile grid gets a fourth entry now; keep them balanced. */
.tiles.four { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* A colour input that matches the rest of the form controls. */
input[type="color"] {
  width: 54px;
  height: 42px;
  padding: 3px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.color-field { display: flex; align-items: center; gap: 10px; }
.color-field input[type="text"] { width: 130px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* =========================================================== responsive */

@media (max-width: 720px) {
  .app-bar { padding: 10px 16px; flex-wrap: wrap; }
  .app-bar nav { order: 3; width: 100%; padding-top: 4px; }
  .app-bar .bar-end { margin-left: auto; }
  .workspace-chip { max-width: 130px; }

  .page { padding: 20px 16px 80px; }

  .partner-list li {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .row-actions { justify-content: flex-start; }
  .row-actions > a,
  .row-actions .btn-link { padding: 7px 10px; }

  .detail-list li { flex-direction: row; gap: 14px; }
  .detail-list li > div:first-child { flex: 0 0 40%; }

  .form-actions { margin-left: -16px; margin-right: -16px; padding: 12px 16px; }
  .form-actions .btn, .form-actions button { flex: 1 1 auto; }

  .promo-rows li { flex-wrap: wrap; }
  .promo-rows .num { text-align: left; min-width: 0; }
  .status-strip { gap: 6px 10px; }
}

@media (max-width: 480px) {
  .auth-wrap { padding-top: 3vh; }
  .auth-card { padding: 28px 22px 24px; }
  .row { flex-direction: column; gap: 0; }
  .toolbar { flex-direction: column; }
  h1 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
