@font-face {
  font-family: "DM Sans";
  src: url("fonts/dmsans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("fonts/dmsans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #fff;
  --ink: #292a29;
  --ink-soft: #555755;
  --muted: #767876;
  --faint: #f5f5f4;
  --surface: #eeeeec;
  --line: #dedfdd;
  --line-dark: #b9bbb8;
  --brand: #a90018;
  --brand-dark: #850012;
  --brand-soft: #faeaed;
  --success: #21743a;
  --success-bg: #eaf6ed;
  --info: #315fa8;
  --info-bg: #eaf0fa;
  --warning: #8e5d00;
  --warning-bg: #fff3d9;
  --danger: #b40c1c;
  --danger-bg: #fcedee;
  --esewa: #5eb745;
  --page: 1320px;
  --gutter: 64px;
  --header: 88px;
  --font-body: "DM Sans", Arial, sans-serif;
  --font-display: "Archivo", Arial, sans-serif;
  --focus: 0 0 0 2px var(--white), 0 0 0 4px var(--brand);

  /* Compatibility names used by the existing service templates. */
  --accent: var(--brand);
  --border: var(--line);
  --product-border: var(--line);
  --canvas: var(--white);
  --panel: var(--faint);
  --card: var(--white);
  --ok: var(--success);
  --err: var(--danger);
  --warn: var(--warning);
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button, select { cursor: pointer; }
button { appearance: none; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 0;
  box-shadow: var(--focus);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

h1 { font-size: clamp(34px, 4vw, 58px); }
h2 { font-size: clamp(22px, 2.2vw, 30px); }
h3 { font-size: 17px; }
p { margin: 0; }
strong { font-weight: 700; }
code, kbd { text-transform: none; }
.raw, .raw * { text-transform: none !important; }

.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 11px 18px;
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
}

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

/* Header */
.site-header {
  position: relative;
  z-index: 50;
  height: var(--header);
  flex: 0 0 var(--header);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100%, calc(var(--page) + (var(--gutter) * 2)));
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 28px;
}

.brand-lockup {
  width: fit-content;
  display: inline-block;
  line-height: .72;
  text-align: center;
}

.brand-wordmark {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.075em;
  transform: scaleX(1.04);
  transform-origin: left center;
}

.brand-edition {
  display: block;
  margin-top: 3px;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
}

.desktop-nav {
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.nav-link {
  position: relative;
  min-width: 106px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  transition: color .2s ease;
}

.nav-link::after {
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 3px;
  background: var(--brand);
  content: "";
  opacity: 0;
  transform: scaleX(.25);
  transition: opacity .2s ease, transform .2s ease;
}

.nav-link:hover { color: var(--brand); }
.nav-link.is-current { color: var(--ink); font-weight: 700; }
.nav-link.is-current::after { opacity: 1; transform: scaleX(1); }
.nav-link.is-disabled { color: #adafad; cursor: not-allowed; }
.nav-link small {
  position: absolute;
  top: 17px;
  right: 7px;
  color: var(--brand);
  font-family: var(--font-body);
  font-size: 7px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.account-context,
.admin-context {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.account-name {
  max-width: 150px;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.signout-link,
.admin-context > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.signout-link { transition: color .2s ease; }
.signout-link:hover { color: var(--brand); }
.signout-link .icon, .admin-context .icon { width: 19px; height: 19px; }

.icon-button,
.mobile-home {
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.menu-close-icon { display: none; }
.menu-toggle[aria-expanded="true"] .menu-open-icon { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close-icon { display: block; }
.header-spacer { display: block; }

.menu-backdrop,
.mobile-menu { display: none; }

/* Main frame */
.site-main {
  width: min(100%, calc(var(--page) + (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 56px var(--gutter) 80px;
  flex: 1 0 auto;
}

.site-footer {
  flex: 0 0 auto;
  padding: 24px var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.page-kicker,
.eyebrow,
.menu-eyebrow,
.stat .k {
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-intro {
  margin-bottom: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.page-intro h1 { margin-top: 8px; }
.page-intro .sub { margin-top: 10px; }
.page-metric {
  display: flex;
  gap: 32px;
  text-align: right;
}
.page-metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}
.page-metric span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.section-gap { margin-top: 52px; }
.section-heading {
  margin: 52px 0 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.section-heading .sub { margin-top: 7px; }

/* Home */
.page-home .site-main { padding-top: 0; padding-bottom: 0; }
.home-hero {
  min-height: calc(100vh - var(--header) - 66px);
  min-height: calc(100dvh - var(--header) - 66px);
  padding: 70px 0;
  display: flex;
  align-items: center;
}
.home-hero-inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
}
.home-title {
  max-width: 900px;
  margin-top: 16px;
  font-size: clamp(52px, 7.2vw, 94px);
  line-height: .98;
  letter-spacing: -.055em;
}
.home-title .wave { white-space: nowrap; }
.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-actions .button { margin: 0; }
.home-rail {
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.home-rail a,
.home-rail span {
  min-height: 68px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}
.home-rail > :last-child { border-bottom: 0; }
.home-rail a .icon:first-child,
.home-rail span .icon:first-child { color: var(--brand); }
.home-rail .nav-arrow { width: 18px; margin-left: auto; }
.home-rail a:hover { color: var(--brand); }
.home-rail .soon-row { color: #aaa; }
.home-rail small {
  margin-left: auto;
  color: var(--brand);
  font-size: 9px;
  letter-spacing: .08em;
}

/* Buttons */
.button,
button:not(.icon-button):not(.tab) {
  min-height: 48px;
  margin: 24px 0 0;
  padding: 13px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--brand);
  border-radius: 0;
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.button:hover,
button:not(.icon-button):not(.tab):hover:not(:disabled) {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}
.button.secondary,
button.secondary {
  border-color: var(--ink);
  background: var(--white);
  color: var(--ink);
}
.button.secondary:hover,
button.secondary:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}
.button.ghost,
button.ghost {
  border-color: var(--line-dark);
  background: transparent;
  color: var(--ink);
}
.button.danger,
button.danger { border-color: var(--danger); background: var(--white); color: var(--danger); }
.button.danger:hover,
button.danger:hover:not(:disabled) { background: var(--danger); color: var(--white); }
.button .icon, button .icon { width: 19px; height: 19px; }
button:disabled { cursor: not-allowed; opacity: .4; }
button.small,
.button.small {
  min-height: 38px;
  margin: 0;
  padding: 9px 14px;
  font-size: 10px;
}
button.esewa, .button.esewa { border-color: var(--esewa); background: var(--esewa); }
button.esewa:hover:not(:disabled), .button.esewa:hover { border-color: #4da139; background: #4da139; }
.text-link, td a:not(.button) {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.text-link:hover, td a:not(.button):hover { color: var(--brand); }

/* Forms */
label {
  display: block;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .025em;
  text-transform: uppercase;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: var(--white);
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 0; }
input::placeholder, textarea::placeholder { color: #9b9c9a; }
input:disabled, select:disabled { background: var(--faint); }
form label:not(:first-of-type) { margin-top: 24px; }
form label + input,
form label + select,
form label + textarea { margin-bottom: 0; }
.field-help { margin-top: 7px; color: var(--muted); font-size: 12px; }
.search-field { position: relative; }
.search-field .icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 17px;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}
.search-field input { padding-left: 50px; }
.filter { margin-bottom: 24px; }

/* Surfaces and feedback */
.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
}
.panel {
  padding: 28px;
  border: 0;
  background: var(--faint);
}
.empty { padding: 44px 20px; color: var(--muted); text-align: center; }
.narrow { max-width: 470px; margin: 44px auto; }
.auth-title { margin-bottom: 8px; font-size: 30px; }
.flash {
  min-height: 54px;
  margin-bottom: 24px;
  padding: 14px 17px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-left: 3px solid;
  font-size: 14px;
}
.flash .icon { width: 20px; height: 20px; margin-top: 1px; }
.flash.err { border-color: var(--danger); background: var(--danger-bg); color: var(--danger); }
.flash.ok { border-color: var(--success); background: var(--success-bg); color: var(--success); }

.tag, .pill, .st {
  width: fit-content;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  background: var(--faint);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.3;
  text-transform: uppercase;
}
.tag { margin-left: 6px; vertical-align: 1px; }
.pill.live, .st.active { background: var(--success-bg); color: var(--success); }
.pill.wait, .st.draft { background: var(--info-bg); color: var(--info); }
.pill.off, .st.archived, .st.unlisted { background: var(--faint); color: var(--muted); }
.pill.danger { background: var(--danger-bg); color: var(--danger); }

/* Tables */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 17px; text-align: left; vertical-align: middle; }
th {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: var(--faint);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}
td { border-bottom: 1px solid var(--line); font-size: 14px; }
tbody tr:last-child td { border-bottom: 0; }
.sku { color: var(--muted); font-size: 12px; text-transform: none; }
.c-qty { width: 128px; text-align: right; }
table.stock thead th { position: sticky; z-index: 2; top: 0; }
table.stock td:first-child { font-family: var(--font-display); font-weight: 700; }

/* Tabs and inventory */
.tabs {
  margin-bottom: 22px;
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  min-height: 46px;
  margin: 0;
  padding: 0 18px;
  flex: 0 0 auto;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.tab:hover { color: var(--ink); }
.tab.on { border-bottom-color: var(--brand); color: var(--ink); }
.tab span { margin-left: 5px; color: var(--muted); font-family: var(--font-body); font-weight: 400; }

.plist { border-top: 1px solid var(--line-dark); }
.prow {
  min-height: 88px;
  padding: 14px 4px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  transition: background-color .2s ease, padding .2s ease;
}
.prow:hover { padding-right: 14px; padding-left: 14px; background: var(--faint); }
.prow img, .prow .noimg {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--white);
  object-fit: contain;
}
.pinfo { min-width: 0; flex: 1; }
.pinfo strong {
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.35;
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.psku {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}
.pmeta { min-width: 92px; flex: 0 0 auto; text-align: right; }
.pstock { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.pstock.zero { color: var(--danger); font-weight: 700; }
.prow .row-arrow { width: 18px; color: var(--muted); }
.load-more-wrap { padding: 24px 0 0; text-align: center; }
.result-count { margin: 0 0 12px; color: var(--muted); font-size: 12px; text-align: center; }

.phead { display: flex; align-items: flex-start; gap: 26px; }
.phead img, .phead .product-placeholder {
  width: 150px;
  height: 150px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--faint);
  object-fit: contain;
}
.phead > div { min-width: 0; flex: 1; }
.product-editor {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.product-editor .product-overview { position: sticky; top: 24px; }
.product-overview-copy { min-width: 0; }
.product-mobile-title { display: none; }
.product-main-image {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  border: 1px solid var(--line);
  background: var(--faint);
  object-fit: contain;
}
.product-status-field { margin-top: 22px; }
.product-status-field label { margin-top: 0 !important; }
input.qty {
  width: 92px;
  min-height: 44px;
  padding: 8px 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
input.qty.zero { color: var(--danger); }
input.qty.changed { border: 2px solid var(--brand); }
.savebar {
  position: sticky;
  z-index: 12;
  bottom: 0;
  min-height: 72px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
}
.savebar { justify-content: flex-end; }
.savebar button { margin: 0; }

/* Orders */
.orders-list { display: grid; gap: 14px; }
.ordercard { padding: 0; display: block; overflow: hidden; }
.ordercard-row {
  min-height: 104px;
  padding: 14px 22px;
  display: grid;
  grid-template-columns: 76px minmax(150px, 1fr) auto auto auto 22px;
  align-items: center;
  gap: 22px;
}
.ordercard:hover { border-color: var(--line-dark); background: var(--faint); }
.order-thumb,
.order-item-image {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--white);
}
.order-thumb { width: 76px; height: 76px; }
.order-thumb img, .order-item-image img { width: 100%; height: 100%; object-fit: contain; }
.order-thumb .icon, .order-item-image .icon { width: 25px; color: var(--muted); }
.order-primary { min-width: 0; }
.order-primary strong {
  display: block;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 17px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.order-primary span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.order-summary-status { min-width: 106px; }
.summary-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.order-amount { min-width: 104px; font-family: var(--font-display); font-size: 16px; text-align: right; white-space: nowrap; }
.order-chevron { width: 22px; }
.order-back { width: fit-content; margin-bottom: 22px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 11px; text-transform: uppercase; }
.order-back .icon { width: 18px; }
.order-detail-card { padding: 0; overflow: hidden; }
.order-detail { padding: 30px 30px 20px; }
.order-detail-head {
  padding-bottom: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.order-detail-head h2 { margin-top: 8px; font-size: 30px; }
.order-detail-head p { margin-top: 7px; color: var(--muted); font-size: 12px; }
.order-detail-total { flex: 0 0 auto; text-align: right; }
.order-detail-total span { display: block; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.order-detail-total strong { display: block; margin-top: 5px; font-family: var(--font-display); font-size: 24px; white-space: nowrap; }
.order-facts { margin: 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.order-fact { min-height: 90px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; background: var(--faint); }
.order-fact .icon { width: 30px; height: 30px; }
.order-fact span { display: block; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.order-fact strong { display: block; margin-top: 3px; font-family: var(--font-display); font-size: 18px; text-transform: uppercase; }
.order-fact.live { background: var(--success-bg); color: var(--success); }
.order-fact.wait { background: var(--info-bg); color: var(--info); }
.order-fact.danger { background: var(--danger-bg); color: var(--danger); }
.order-fact.off { background: var(--faint); color: var(--muted); }
.order-items-head { padding: 8px 0 14px; border-bottom: 1px solid var(--line-dark); }
.order-items-head h3 { font-size: 15px; }
.order-item { min-height: 92px; padding: 14px 0; display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.order-item:last-child { border-bottom: 0; }
.order-item-image { width: 66px; height: 66px; }
.order-item-copy { min-width: 0; }
.order-item-copy strong { display: block; font-family: var(--font-display); font-size: 14px; line-height: 1.3; text-transform: uppercase; }
.order-item-copy span, .order-item-numbers span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.order-item-numbers { text-align: right; }
.order-item-numbers strong { display: block; margin-top: 5px; font-family: var(--font-display); font-size: 14px; white-space: nowrap; }
.pager {
  padding: 28px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
.pager a, .pager .off {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-dark);
  font-size: 22px;
  text-decoration: none;
}
.pager a:hover { border-color: var(--ink); color: var(--brand); }
.pager .off { opacity: .35; }

/* Marketing and campaigns */
.marketing-grid,
.campaign-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(330px, .7fr);
  align-items: start;
  gap: 24px;
}
.marketing-grid > *, .campaign-grid > * { min-width: 0; max-width: 100%; }
.campaign-form { position: sticky; top: 24px; }
.campaign-start-title { margin: 8px 0 26px; }
.campaign-note { margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.campaign-note strong { color: var(--ink); }
.money td { padding: 8px 0; border: 0; }
.money td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.money tr.minor td { color: var(--muted); font-size: 12px; }
.money tr.total td { padding-top: 14px; border-top: 1px solid var(--line); font-weight: 700; }
.cost-divider { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.ad-example-note { margin-top: 10px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.adwrap { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; }
.fbad {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}
.fbad, .fbad * { text-transform: none; }
.fbad .top { padding: 12px 12px 8px; display: flex; align-items: center; gap: 9px; }
.fbad .av {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 8px;
  font-weight: 700;
}
.fbad .nm { font-weight: 600; line-height: 1.2; }
.fbad .mt { color: #65676b; font-size: 12px; }
.fbad .copy { padding: 2px 12px 10px; line-height: 1.35; }
.fbad .rail { width: 100%; max-width: 100%; padding: 0 12px 12px; display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; }
.fbad .item { width: 172px; flex: 0 0 auto; background: #f0f2f5; scroll-snap-align: start; }
.fbad .item .ph { height: 172px; display: flex; align-items: center; justify-content: center; background: var(--white); }
.fbad .item .ph img { max-width: 92%; max-height: 92%; object-fit: contain; }
.fbad .item .cap { padding: 9px; display: flex; align-items: center; gap: 6px; }
.fbad .item .cap .t { min-width: 0; flex: 1; }
.fbad .item .cap .t b { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.fbad .item .cap .t span { color: #65676b; font-size: 12px; }
.fbad .item .cap .btn { padding: 7px 10px; background: #e4e6eb; font-size: 12px; font-weight: 600; white-space: nowrap; }
.fbad .acts { display: flex; border-top: 1px solid #ced0d4; }
.fbad .acts div { padding: 9px 0; flex: 1; color: #65676b; font-size: 13px; font-weight: 600; text-align: center; }

.campaign-list { display: grid; gap: 12px; }
.campaign-row {
  min-height: 92px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(90px, auto)) auto;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--line);
}
.campaign-row:hover { border-color: var(--line-dark); }
.campaign-row .campaign-name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; }
.campaign-row .meta-label { display: block; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.campaign-row .meta-value { display: block; margin-top: 4px; font-size: 13px; }
.campaign-row .row-arrow { width: 20px; }

.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li {
  position: relative;
  min-height: 46px;
  padding: 2px 0 22px 32px;
  border-left: 1px solid var(--line);
  color: var(--muted);
}
.timeline li:last-child { min-height: 0; padding-bottom: 0; border-left-color: transparent; }
.timeline li::before {
  position: absolute;
  top: 3px;
  left: -7px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--line-dark);
  background: var(--white);
  content: "";
}
.timeline li.done { color: var(--ink); font-weight: 700; }
.timeline li.done::before { border-color: var(--brand); background: var(--brand); }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat { padding: 22px; background: var(--white); }
.stat .v {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.1;
}
.bar { height: 7px; margin: 18px 0 8px; overflow: hidden; background: var(--surface); }
.bar span { display: block; height: 100%; background: var(--brand); }

/* Login */
.page-index .header-inner {
  grid-template-columns: 1fr;
  justify-items: center;
}
.page-index .brand-lockup { justify-self: center; }
.page-index .header-spacer { display: none; }
.page-index .site-main,
.page-admin:not(.admin-mode) .site-main { padding-top: 0; padding-bottom: 0; }
.auth-layout {
  min-height: calc(100vh - var(--header) - 66px);
  min-height: calc(100dvh - var(--header) - 66px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr);
  align-items: stretch;
}
.auth-message {
  position: relative;
  padding: 70px 70px 70px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.auth-hero {
  position: relative;
  z-index: 1;
  width: min(100%, 730px);
}
.auth-spark {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.auth-spark::after {
  width: 86px;
  height: 1px;
  background: var(--line-dark);
  content: "";
}
.auth-spark-symbol {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--white);
  font-size: 23px;
  line-height: 1;
}
.auth-message h1 {
  max-width: 730px;
  margin-top: 0;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 7px;
  font-size: clamp(34px, 4.2vw, 55px);
}
.auth-title-line { display: block; }
.auth-title-focus {
  width: fit-content;
  padding: .08em .18em .12em;
  background: var(--brand);
  color: var(--white);
  white-space: nowrap;
}
.auth-title-arrow {
  display: inline-block;
  margin-left: .12em;
  font-family: var(--font-body);
  font-size: .72em;
  font-weight: 400;
  transform: translateY(-.08em);
}
.auth-title-brand {
  position: relative;
  display: inline-block;
}
.auth-title-brand::after {
  position: absolute;
  right: 0;
  bottom: -.08em;
  left: 0;
  height: .08em;
  background: var(--brand);
  content: "";
}
.auth-signal {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.auth-signal-square {
  width: 10px;
  height: 10px;
  border: 2px solid var(--brand);
}
.auth-signal-line {
  width: 72px;
  height: 2px;
  background: var(--ink);
}
.auth-signal-dot {
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
}
.auth-message p { max-width: 540px; margin-top: 22px; color: var(--muted); font-size: 17px; }
.auth-panel {
  margin-right: calc(var(--gutter) * -1);
  padding: 64px max(var(--gutter), 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--faint);
}
.auth-panel h2 { margin-bottom: 8px; }
.auth-panel .sub { margin-bottom: 30px; }
.auth-panel button { width: 100%; }

/* Admin */
.admin-hero {
  margin-bottom: 30px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}
.admin-hero h1 { margin-top: 8px; }
.admin-jump { display: flex; gap: 8px; }
.admin-jump a {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.admin-jump a:hover { border-color: var(--brand); color: var(--brand); }
.admin-summary {
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.admin-summary > div { padding: 20px; background: var(--white); }
.admin-summary strong { display: block; font-family: var(--font-display); font-size: 26px; }
.admin-summary span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.admin-grid {
  display: grid;
  grid-template-columns: minmax(310px, .78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: 24px;
}
.admin-create { position: sticky; top: 24px; }
.vendor-picker {
  max-height: 245px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid var(--line-dark);
  background: var(--white);
}
.vendor-option {
  min-height: 40px;
  margin: 0;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
.vendor-option:last-child { border-bottom: 0; }
.vendor-option:hover { background: var(--faint); }
.vendor-option input { width: 16px; height: 16px; accent-color: var(--brand); }
.partner-list { display: grid; gap: 12px; }
.admin-user-table,
.admin-user-table tbody { display: block; }
.admin-user-table > tbody > tr:first-child { display: none; }
.admin-user-table > tbody > tr:not(:first-child) {
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: minmax(170px, .9fr) minmax(230px, 1.2fr);
  border: 1px solid var(--line);
}
.admin-user-table > tbody > tr:not(:first-child):last-child { margin-bottom: 0; }
.admin-user-table > tbody > tr:not(:first-child) > td {
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.admin-user-table > tbody > tr:not(:first-child) > td:nth-child(even) { border-right: 0; }
.admin-user-table > tbody > tr:not(:first-child) > td:nth-last-child(-n+2) { border-bottom: 0; }
.admin-user-table > tbody > tr:not(:first-child) > td:last-child {
  display: flex;
  align-items: center;
}
.admin-user-table td::before {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  content: attr(data-l);
}
.admin-user-table td[data-l=""]::before { display: none; }
.partner-card { border: 1px solid var(--line); }
.partner-card-head {
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.partner-card-head strong { font-family: var(--font-display); text-transform: uppercase; }
.partner-card-head .raw { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.partner-card-body { padding: 18px 20px; }
.alias-list { display: flex; flex-wrap: wrap; gap: 5px; }
.partner-meta { margin-top: 14px; color: var(--muted); font-size: 11px; }
.partner-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.partner-actions form { margin: 0; }
.inline-form { display: flex; align-items: flex-end; gap: 8px; }
.inline-form > div { flex: 1; }
.inline-form label { margin-top: 0 !important; }
.inline-form button { flex: 0 0 auto; }
.edit-partner { margin-top: 14px; border-top: 1px solid var(--line); }
.edit-partner summary {
  padding: 14px 0 0;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}
.edit-partner form { margin-top: 16px; }
.admin-campaigns { display: grid; gap: 12px; }
.admin-campaign-card { padding: 20px; border: 1px solid var(--line); }
.admin-campaign-head { display: flex; justify-content: space-between; gap: 20px; }
.admin-campaign-head strong { font-family: var(--font-display); font-size: 16px; text-transform: uppercase; }
.admin-campaign-meta { margin-top: 7px; color: var(--muted); font-size: 12px; }
.admin-campaign-controls {
  margin-top: 18px;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
}
.admin-campaign-controls .meta-form { min-width: min(100%, 420px); flex: 1; }
.admin-campaign-controls select,
.admin-campaign-controls input { min-height: 40px; }

@media (max-width: 1180px) {
  :root { --gutter: 32px; }
  .header-inner { grid-template-columns: 180px auto 150px; gap: 14px; }
  .nav-link { min-width: 93px; padding: 0 10px; }
  .nav-link::after { right: 10px; left: 10px; }
  .account-name { display: none; }
  .marketing-grid { grid-template-columns: minmax(0, 1.15fr) minmax(315px, .85fr); }
}

@media (max-width: 900px) {
  input, select, textarea,
  button:not(.icon-button):not(.tab), .button,
  button.small, .button.small, .tab { font-size: 16px; }
  .desktop-nav, .account-context { display: none; }
  .header-inner { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 10px; }
  .brand-lockup { justify-self: center; }
  .icon-button, .mobile-home { display: inline-flex; }
  .mobile-home { justify-self: end; }
  .menu-backdrop {
    position: fixed;
    z-index: 60;
    inset: var(--header) 0 0;
    display: block;
    background: rgba(18, 18, 18, .34);
    opacity: 0;
    transition: opacity .2s ease;
  }
  .menu-backdrop.is-open { opacity: 1; }
  .mobile-menu {
    position: fixed;
    z-index: 70;
    top: var(--header);
    bottom: 0;
    left: 0;
    width: min(88vw, 390px);
    padding: 30px 24px 24px;
    display: flex;
    flex-direction: column;
    background: var(--white);
    transform: translateX(-102%);
    transition: transform .24s ease;
  }
  .mobile-menu.is-open { transform: translateX(0); }
  .mobile-menu-head { padding: 0 4px 22px; border-bottom: 1px solid var(--line-dark); }
  .mobile-menu-head strong {
    display: block;
    overflow: hidden;
    margin-top: 7px;
    font-family: var(--font-display);
    font-size: 19px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .mobile-menu nav { margin-top: 6px; }
  .mobile-nav-link {
    min-height: 58px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    gap: 13px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
  }
  .mobile-nav-link.is-current { color: var(--brand); }
  .mobile-nav-link .nav-arrow { width: 17px; margin-left: auto; }
  .mobile-nav-link.is-disabled { color: #acadaa; }
  .mobile-nav-link small { margin-left: auto; color: var(--brand); font-size: 8px; letter-spacing: .08em; }
  .mobile-signout {
    min-height: 54px;
    margin-top: auto;
    padding: 0 4px;
    display: flex;
    align-items: center;
    gap: 13px;
    border-top: 1px solid var(--line-dark);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
  }
  .home-hero-inner { grid-template-columns: 1fr; }
  .home-rail { display: grid; grid-template-columns: repeat(2, 1fr); }
  .home-rail > * { padding: 0 14px; }
  .home-rail > :nth-child(odd) { border-right: 1px solid var(--line); }
  .home-rail > :nth-last-child(-n+2) { border-bottom: 0; }
  .product-editor, .marketing-grid, .campaign-grid, .admin-grid { width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); }
  .product-editor .product-overview, .campaign-form, .admin-create { position: static; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-message { padding: 70px 0 42px; }
  .auth-panel { margin: 0 calc(var(--gutter) * -1); padding: 52px var(--gutter); }
  .campaign-row { grid-template-columns: minmax(150px, 1fr) repeat(2, minmax(85px, auto)) auto; }
  .campaign-row .campaign-dates { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; --header: 68px; }
  .brand-wordmark { font-size: 25px; }
  .brand-edition { font-size: 8px; }
  .site-main { padding-top: 36px; padding-bottom: 56px; }
  .site-footer { padding: 20px; }
  .page-intro { margin-bottom: 26px; display: block; }
  .page-intro h1 { font-size: 38px; }
  .page-metric { margin-top: 20px; justify-content: flex-start; text-align: left; }
  .home-hero { min-height: calc(100dvh - var(--header) - 61px); padding: 48px 0; }
  .home-title { font-size: clamp(31px, 9.5vw, 45px); }
  .home-hero-inner { gap: 50px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .hero-actions .button { width: 100%; }
  .home-rail { grid-template-columns: 1fr; }
  .home-rail > :nth-child(odd) { border-right: 0; }
  .home-rail > :nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .card { padding: 22px 18px; }
  .panel { padding: 20px 16px; }
  .flash { margin-bottom: 20px; }
  button:not(.icon-button):not(.tab), .button { width: 100%; }
  button.small, .button.small, .savebar button, .inline-form button,
  .admin-campaign-controls button { width: auto; }
  .tabs { margin-right: calc(var(--gutter) * -1); margin-left: calc(var(--gutter) * -1); padding-left: var(--gutter); }
  .tabs::after { width: var(--gutter); flex: 0 0 var(--gutter); content: ""; }
  .prow { min-height: 84px; padding: 13px 0; gap: 12px; }
  .prow:hover { padding-right: 0; padding-left: 0; }
  .prow img, .prow .noimg { width: 52px; height: 52px; }
  .pmeta { min-width: 72px; }
  .prow .row-arrow { display: none; }
  .phead { display: block; }
  .phead img, .phead .product-placeholder { width: 100%; height: min(78vw, 300px); margin-bottom: 22px; }
  .page-product .page-intro { display: none; }
  .page-product .product-editor { gap: 30px; }
  .page-product .product-overview {
    padding: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 14px;
  }
  .page-product .product-main-image { width: 100%; aspect-ratio: 1; }
  .product-mobile-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(15px, 4.5vw, 19px);
    line-height: 1.12;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }
  .product-status-field { margin-top: 14px; }
  .product-status-field label { margin-bottom: 6px; font-size: 10px; }
  .product-status-field select { min-height: 44px; padding: 8px 10px; }
  .product-status-field .field-help { margin-top: 6px; font-size: 10px; line-height: 1.3; }
  .tablewrap { border-right: 0; border-left: 0; }
  th, td { padding: 13px 10px; }
  table.stock .sku { max-width: 120px; word-break: break-word; }
  table.stock .c-qty { width: 90px; }
  input.qty { width: 80px; }
  .savebar { margin-right: calc(var(--gutter) * -1); margin-left: calc(var(--gutter) * -1); padding-right: var(--gutter); padding-left: var(--gutter); border-right: 0; border-left: 0; }
  .savebar button { width: 100%; }
  .ordercard-row {
    position: relative;
    min-height: 104px;
    padding: 14px;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb primary payment"
      "thumb status amount";
    align-items: center;
    gap: 8px 12px;
  }
  .order-thumb { width: 62px; height: 76px; grid-area: thumb; }
  .order-primary { grid-area: primary; align-self: end; }
  .order-primary strong { font-size: 15px; }
  .order-primary span { margin-top: 3px; font-size: 11px; }
  .order-summary-status { min-width: 0; grid-area: status; align-self: start; }
  .order-payment { grid-area: payment; align-self: end; justify-self: end; }
  .summary-label { display: none; }
  .order-summary-status .pill { margin: 0; padding: 4px 7px; font-size: 8px; white-space: nowrap; }
  .order-amount { min-width: 0; padding-right: 24px; grid-area: amount; align-self: start; font-size: 13px; }
  .order-chevron { position: absolute; right: 12px; bottom: 16px; width: 17px; }
  .order-detail { padding: 22px 16px 12px; }
  .order-detail-head { padding-bottom: 18px; align-items: flex-start; }
  .order-detail-head h2 { font-size: 23px; }
  .order-detail-head p { font-size: 11px; }
  .order-detail-total span { font-size: 8px; }
  .order-detail-total strong { font-size: 17px; }
  .order-facts { margin: 18px 0; gap: 8px; }
  .order-fact { min-height: 74px; padding: 12px; gap: 8px; }
  .order-fact .icon { width: 22px; height: 22px; }
  .order-fact span { font-size: 8px; }
  .order-fact strong { font-size: 12px; }
  .order-item { grid-template-columns: 54px minmax(0, 1fr); gap: 12px; }
  .order-item-image { width: 54px; height: 54px; grid-row: 1 / span 2; }
  .order-item-copy strong { font-size: 12px; }
  .order-item-copy span { font-size: 10px; }
  .order-item-numbers { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
  .order-item-numbers span, .order-item-numbers strong { margin: 0; font-size: 10px; }
  .marketing-grid { width: 100%; max-width: 100%; gap: 18px; overflow: hidden; }
  .marketing-grid .card { max-width: 100%; min-width: 0; }
  .campaign-start-title { margin-bottom: 20px; }
  .campaign-note { font-size: 11px; line-height: 1.3; }
  .fbad .item { width: 148px; }
  .fbad .item .ph { height: 148px; }
  .campaign-row { padding: 16px; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; }
  .campaign-row .campaign-budget, .campaign-row .campaign-length { display: none; }
  .auth-message { padding: 48px 0 36px; }
  .auth-spark { margin-bottom: 19px; }
  .auth-spark-symbol { width: 38px; height: 38px; font-size: 20px; }
  .auth-spark::after { width: 64px; }
  .auth-message h1 { gap: 5px; font-size: 34px; }
  .auth-signal { margin-top: 25px; }
  .auth-message p { margin-top: 16px; font-size: 15px; }
  .auth-panel { padding-top: 42px; padding-bottom: 42px; }
  .admin-context > span span, .admin-context > span { font-size: 0; }
  .admin-context { gap: 12px; }
  .admin-context .signout-link span { display: none; }
  .admin-hero { display: block; }
  .admin-jump { margin-top: 20px; overflow-x: auto; }
  .admin-summary { grid-template-columns: 1fr 1fr; }
  .admin-summary > :last-child { grid-column: 1 / -1; }
  .partner-card-head, .admin-campaign-head { display: block; }
  .partner-card-head .pill, .admin-campaign-head .pill { margin-top: 10px; }
  .inline-form { align-items: stretch; flex-direction: column; }
  .inline-form button { width: 100%; }
  .admin-campaign-controls { align-items: stretch; flex-direction: column; }
  .admin-campaign-controls form, .admin-campaign-controls button { width: 100%; }
  .admin-user-table > tbody > tr:not(:first-child) { grid-template-columns: 1fr; }
  .admin-user-table > tbody > tr:not(:first-child) > td {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .admin-user-table > tbody > tr:not(:first-child) > td:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .admin-user-table > tbody > tr:not(:first-child) > td:last-child { border-bottom: 0; }
}

@media (max-width: 360px) {
  .auth-message h1 { font-size: 29px; }
  .auth-title-focus { padding-right: .14em; padding-left: .14em; }
}

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