:root {
  color-scheme: dark;
  --background: #0b0d12;
  --surface: #161a23;
  --surface-raised: #202633;
  --border: #303746;
  --blue: #2f5fd7;
  --blue-hover: #3b6be4;
  --yellow: #f2c94c;
  --red: #d94444;
  --red-button: #c73636;
  --red-hover: #ad2b2b;
  --green: #3fae68;
  --text: #f5f7fb;
  --muted: #9ca6b7;
  --shadow: 0 18px 50px rgb(0 0 0 / 28%);
  --radius: 0.9rem;
  --radius-small: 0.55rem;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  min-width: 0;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 12% -10%, rgb(47 95 215 / 11%), transparent 30rem),
    radial-gradient(circle at 92% 2%, rgb(242 201 76 / 5%), transparent 24rem),
    var(--background);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: #7ea3ff;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #a9c0ff;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 0.2rem solid var(--yellow);
  outline-offset: 0.18rem;
}

.shell {
  width: min(calc(100% - 2rem), 72rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-180%);
  border: 0.12rem solid var(--yellow);
  border-radius: var(--radius-small);
  background: var(--surface-raised);
  color: var(--text);
  font-weight: 800;
}

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

.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 0.12rem solid var(--border);
  background: rgb(11 13 18 / 94%);
  box-shadow: 0 0.4rem 1.5rem rgb(0 0 0 / 18%);
}

.site-header::after {
  position: absolute;
  inset: auto 0 -0.12rem;
  height: 0.12rem;
  background: linear-gradient(90deg, transparent, var(--blue), var(--yellow), transparent);
  content: "";
  opacity: 0.7;
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  gap: 0.9rem;
  padding-block: 0.65rem;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.72rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand__mark,
.auth-card__brand {
  display: block;
  flex: 0 0 auto;
  border-radius: 50%;
  filter: drop-shadow(0 0.2rem 0.45rem rgb(0 0 0 / 35%));
}

.brand__mark {
  width: 2.55rem;
  height: 2.55rem;
}

.brand__copy {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}

.brand__copy strong {
  overflow: hidden;
  font-size: 0.96rem;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand__copy small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.primary-nav a {
  padding: 0.55rem 0.72rem;
  border-radius: 0.45rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: var(--surface-raised);
  color: var(--text);
}

.primary-nav a[aria-current="page"] {
  box-shadow: inset 0 -0.15rem 0 var(--blue);
}

.account-menu {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.55rem;
}

.account-menu form {
  margin: 0;
}

.main-content {
  min-height: calc(100vh - 9.5rem);
  padding-block: clamp(1.25rem, 4vw, 2.6rem);
}

.site-footer {
  border-top: 0.08rem solid var(--border);
  background: #0e1118;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer__inner {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text);
  line-height: 1.13;
  letter-spacing: -0.03em;
}

h1 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.65rem, 5vw, 2.45rem);
}

h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.18rem, 3.5vw, 1.5rem);
}

h3 {
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--yellow);
  font-size: 0.71rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lede,
.auth-card__intro,
.page-heading p {
  color: var(--muted);
}

.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1rem;
  border: 0.1rem solid transparent;
  border-radius: var(--radius-small);
  cursor: pointer;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.button:hover:not(:disabled):not(.button--disabled) {
  transform: translateY(-0.06rem);
}

.button:active:not(:disabled):not(.button--disabled) {
  transform: translateY(0.04rem) scale(0.99);
}

.button--primary {
  border-color: #4e77db;
  background: var(--blue);
  box-shadow: inset 0 -0.16rem 0 rgb(0 0 0 / 18%);
  color: #fff;
}

.button--primary:hover {
  background: var(--blue-hover);
  color: #fff;
}

.button--secondary {
  border-color: #4b65a8;
  background: #283657;
  color: var(--text);
}

.button--secondary:hover {
  background: #32436d;
  color: var(--text);
}

.button--danger {
  border-color: var(--red);
  background: var(--red-button);
  color: #fff;
}

.button--danger:hover {
  background: var(--red-hover);
  color: #fff;
}

.button--quiet {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.button--quiet:hover {
  border-color: #526078;
  background: var(--surface-raised);
  color: var(--text);
}

.button--compact {
  min-height: 2.25rem;
  padding: 0.5rem 0.72rem;
  font-size: 0.78rem;
}

.button--wide {
  width: 100%;
}

.button--disabled,
.button:disabled {
  border-color: var(--border);
  background: #242936;
  color: #7f8999;
  cursor: not-allowed;
}

.auth-layout {
  display: grid;
  width: min(100%, 31rem);
  min-height: min(36rem, calc(100vh - 12rem));
  align-content: center;
  gap: 0.8rem;
  margin-inline: auto;
}

.auth-card,
.panel,
.metric-card,
.compact-note,
.error-page {
  min-width: 0;
  border: 0.1rem solid var(--border);
  background: linear-gradient(145deg, rgb(32 38 51 / 52%), transparent 48%), var(--surface);
  box-shadow: var(--shadow);
}

.auth-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.35rem, 5vw, 2.15rem);
  border-radius: 1.05rem;
}

.auth-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 0.2rem;
  background: linear-gradient(90deg, var(--blue) 0 68%, var(--yellow) 68% 82%, transparent 82%);
  content: "";
}

.auth-card--welcome {
  text-align: center;
}

.auth-card--welcome .lede {
  max-width: 25rem;
  margin: 0 auto 1.4rem;
}

.auth-card__brand {
  width: 3.7rem;
  height: 3.7rem;
  margin: 0 auto 1.05rem;
}

.auth-card__intro {
  margin: 0 0 1.25rem;
}

.auth-card--success {
  text-align: center;
}

.success-mark {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  margin: 0 auto 1rem;
  border: 0.12rem solid #68ca8d;
  border-radius: 50%;
  background: rgb(63 174 104 / 17%);
  color: #7dd9a0;
  font-size: 1.5rem;
  font-weight: 900;
}

.compact-note {
  display: grid;
  gap: 0.12rem;
  padding: 0.85rem 1rem;
  border-radius: 0.72rem;
  box-shadow: none;
  color: var(--muted);
  font-size: 0.8rem;
}

.compact-note strong {
  color: var(--text);
}

.status-line {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: left;
}

.status-dot {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.3rem;
  border-radius: 50%;
}

.status-dot--yellow {
  background: var(--yellow);
  box-shadow: 0 0 0 0.2rem rgb(242 201 76 / 12%);
}

.form-stack {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.38rem;
}

.field label,
.check-row {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 800;
}

.field__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.field__label-row a {
  font-size: 0.78rem;
}

.field input,
.field select {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.68rem 0.78rem;
  border: 0.1rem solid #3b4353;
  border-radius: var(--radius-small);
  background: #10131a;
  color: var(--text);
  box-shadow: inset 0 0.1rem 0.2rem rgb(0 0 0 / 20%);
}

.field input:hover,
.field select:hover {
  border-color: #536077;
}

.field input:focus,
.field select:focus {
  border-color: #7ea3ff;
}

.field small {
  color: var(--muted);
  font-size: 0.73rem;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-weight: 650;
  line-height: 1.4;
}

.check-row input {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  margin: 0.12rem 0 0;
  accent-color: var(--blue);
}

.check-row--compact {
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
}

.notice {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 1rem;
  padding: 0.8rem 0.9rem;
  border: 0.1rem solid;
  border-radius: var(--radius-small);
  font-size: 0.82rem;
}

.notice strong {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.notice--success {
  border-color: rgb(63 174 104 / 75%);
  background: rgb(63 174 104 / 13%);
  color: #a4e5bc;
}

.notice--error {
  border-color: rgb(217 68 68 / 82%);
  background: rgb(217 68 68 / 14%);
  color: #ffc1c1;
}

.notice--page {
  margin-bottom: 1rem;
}

.back-link {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.82rem;
  font-weight: 750;
}

.empty-panel {
  padding: 1rem;
  border: 0.1rem dashed #465066;
  border-radius: var(--radius-small);
  background: #11151d;
  color: var(--muted);
}

.empty-panel strong {
  color: var(--text);
}

.empty-panel p {
  margin: 0.3rem 0 1rem;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.page-heading--compact {
  align-items: center;
}

.page-heading h1,
.page-heading p {
  margin-bottom: 0;
}

.page-heading p:not(.eyebrow) {
  max-width: 42rem;
  margin-top: 0.4rem;
}

.role-chip,
.status-chip,
.accent-badge,
.count-badge {
  display: inline-flex;
  min-height: 1.7rem;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 0.08rem solid;
  border-radius: 999rem;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  line-height: 1;
  white-space: nowrap;
}

.role-chip {
  padding: 0.35rem 0.58rem;
  border-color: #4c5f8e;
  background: #232c43;
  color: #c6d5ff;
  text-transform: uppercase;
}

.status-chip {
  padding: 0.36rem 0.62rem;
}

.status-chip--success {
  border-color: rgb(63 174 104 / 70%);
  background: rgb(63 174 104 / 13%);
  color: #8edbac;
}

.status-chip--warning {
  border-color: rgb(242 201 76 / 75%);
  background: rgb(242 201 76 / 11%);
  color: #f8dc84;
}

.status-chip--danger {
  border-color: rgb(217 68 68 / 78%);
  background: rgb(217 68 68 / 13%);
  color: #ffaaaa;
}

.accent-badge,
.count-badge {
  padding: 0.35rem 0.62rem;
  border-color: #d6ad37;
  background: var(--yellow);
  color: #17140b;
}

.count-badge {
  min-width: 1.8rem;
}

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

.metric-card {
  display: grid;
  gap: 0.25rem;
  min-height: 8.3rem;
  padding: 1rem;
  border-radius: 0.78rem;
  box-shadow: none;
}

.metric-card__label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-card strong {
  font-size: 1.05rem;
}

.metric-card small {
  align-self: end;
  color: var(--muted);
}

.metric-card--highlight {
  border-color: rgb(242 201 76 / 62%);
}

.metric-card--highlight strong {
  color: var(--yellow);
}

.metric-card--success {
  border-color: rgb(63 174 104 / 55%);
}

.metric-card--success strong {
  color: #7dd9a0;
}

.account-identity {
  display: grid;
  max-width: 10rem;
  line-height: 1.05;
  text-align: right;
  color: var(--text);
  text-decoration: none;
}

.account-identity:hover,
.account-identity[aria-current="page"] {
  color: var(--text);
}

.account-identity strong {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-identity small,
.you-marker,
.ability-note {
  color: var(--yellow);
  font-size: 0.66rem;
  font-weight: 850;
}

.you-marker {
  padding: 0.3rem 0.52rem;
  border: 0.08rem solid rgb(242 201 76 / 55%);
  border-radius: 999rem;
  background: rgb(242 201 76 / 9%);
}

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

.button--highlight {
  border-color: #dfb83d;
  background: var(--yellow);
  box-shadow: inset 0 -0.16rem 0 rgb(0 0 0 / 22%);
  color: #17140b;
}

.button--highlight:hover {
  background: #ffda62;
  color: #17140b;
}

.status-chip--muted {
  border-color: #596174;
  background: rgb(156 166 183 / 9%);
  color: #c5ccd8;
}

.section-block {
  margin-top: 1.35rem;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(7rem, 34%) minmax(0, 1fr);
  overflow: hidden;
  border: 0.12rem solid #3a4355;
  border-radius: 1rem;
  background:
    linear-gradient(145deg, rgb(47 95 215 / 9%), transparent 44%),
    var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 160ms ease, transform 160ms ease;
}

.product-card:hover,
.product-card:focus-within {
  border-color: #526381;
  transform: translateY(-0.08rem);
}

.product-card--available {
  border-color: rgb(63 174 104 / 72%);
  box-shadow: inset 0.2rem 0 0 var(--green), var(--shadow);
}

.product-card--stale {
  border-color: rgb(242 201 76 / 48%);
  box-shadow: inset 0.2rem 0 0 rgb(242 201 76 / 55%), var(--shadow);
}

.product-card--error {
  border-color: rgb(217 68 68 / 66%);
  box-shadow: inset 0.2rem 0 0 var(--red), var(--shadow);
}

.product-card__media {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: clamp(0.7rem, 3vw, 1.15rem);
  border-right: 0.08rem solid var(--border);
  background:
    radial-gradient(circle at 50% 32%, rgb(242 201 76 / 12%), transparent 48%),
    #10131a;
}

.product-card__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 19rem;
  object-fit: contain;
  animation: product-image-in 300ms ease both;
}

.product-placeholder {
  display: grid;
  width: min(100%, 12rem);
  aspect-ratio: 1;
  place-items: center;
  align-content: center;
  gap: 0.25rem;
  border: 0.1rem dashed #4b556a;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, #1c2230, #11151d);
  color: var(--muted);
  text-align: center;
}

.product-placeholder span {
  color: var(--yellow);
  font-size: clamp(1.4rem, 8vw, 2.8rem);
  font-weight: 950;
  letter-spacing: -0.08em;
}

.product-placeholder small {
  font-size: 0.68rem;
  font-weight: 800;
}

.product-placeholder img,
.product-card__media .product-placeholder img {
  width: 3.8rem;
  height: 3.8rem;
  opacity: 0.58;
  filter: grayscale(0.3);
}

.product-card__body {
  display: grid;
  min-width: 0;
  gap: 0.9rem;
  padding: clamp(0.85rem, 3vw, 1.25rem);
}

.product-card__title-row {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.product-card__title-row h3 {
  margin-bottom: 0.25rem;
  font-size: clamp(1.1rem, 3vw, 1.45rem);
}

.product-card__release {
  margin: 0;
  color: var(--muted);
  font-size: 0.77rem;
}

.offer-group {
  overflow: hidden;
  border: 0.08rem solid var(--border);
  border-radius: 0.72rem;
  background: #11151d;
}

.offer-group__heading,
.offer-card {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.offer-card--stale {
  border-left: 0.18rem solid rgb(242 201 76 / 64%);
}

.offer-card--error {
  border-left: 0.18rem solid var(--red);
}

.offer-empty {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.offer-empty strong {
  color: var(--text);
}

.offer-group__heading {
  padding: 0.55rem 0.7rem;
  border-bottom: 0.08rem solid var(--border);
  color: var(--muted);
  font-size: 0.7rem;
}

.offer-group__heading strong {
  color: var(--text);
  font-size: 0.77rem;
}

.offer-card {
  flex-wrap: wrap;
  padding: 0.72rem;
}

.offer-card > div {
  display: grid;
  min-width: 8rem;
  flex: 1 1 10rem;
}

.offer-card span {
  color: var(--muted);
  font-size: 0.69rem;
}

.offer-card__price {
  color: var(--yellow);
  font-size: 0.88rem;
}

.watch-action,
.offline-check {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.product-card__actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.product-card__actions form,
.button-row form {
  margin: 0;
}

.product-title-link {
  color: var(--text);
  text-decoration-color: rgb(126 163 255 / 45%);
}

.product-title-link:hover {
  color: #dce5ff;
}

.product-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0;
}

.product-facts div {
  min-width: 0;
  padding: 0.55rem;
  border: 0.08rem solid var(--border);
  border-radius: 0.55rem;
  background: #11151d;
}

.product-facts dt {
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 800;
}

.product-facts dd {
  margin: 0.18rem 0 0;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 850;
}

.watch-action span,
.offline-check span {
  color: var(--muted);
  font-size: 0.72rem;
}

.watch-action.is-confirming .button {
  animation: watch-confirm 420ms ease;
}

.monitoring-panel {
  border-color: #414b60;
}

.control-grid {
  display: grid;
  gap: 0.5rem;
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem;
  border: 0.08rem solid var(--border);
  border-radius: 0.6rem;
  background: #11151d;
}

.control-row > span {
  display: grid;
}

.control-row small {
  color: var(--muted);
}

.proof-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1rem 0;
}

.proof-facts div {
  min-width: 0;
  padding: 0.65rem;
  border-radius: 0.55rem;
  background: #11151d;
}

.proof-facts dt {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
}

.proof-facts dd {
  overflow-wrap: anywhere;
  margin: 0.2rem 0 0;
  font-size: 0.76rem;
}

.auth-pokeball-wrap {
  position: relative;
  width: 3.7rem;
  height: 3.7rem;
  margin: 0 auto 1.05rem;
}

.auth-pokeball-wrap .auth-card__brand {
  margin: 0;
}

.auth-pokeball-wrap::after {
  position: absolute;
  width: 0.68rem;
  height: 0.68rem;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #f5f7fb;
  box-shadow: 0 0 0 0 rgb(242 201 76 / 0%);
  content: "";
  pointer-events: none;
}

.auth-card.is-signing-in .auth-pokeball-wrap {
  animation: capture-wiggle 620ms ease-in-out both;
}

.auth-card.is-signing-in .auth-pokeball-wrap::after {
  animation: capture-button-pulse 620ms ease-in-out both;
}

.auth-card.is-sign-in-complete .auth-pokeball-wrap {
  animation: capture-complete 150ms ease-out both;
}

@keyframes capture-wiggle {
  0%, 100% { transform: translateX(0) rotate(0); }
  24% { transform: translateX(-0.34rem) rotate(-10deg); }
  52% { transform: translateX(0.34rem) rotate(10deg); }
  78% { transform: translateX(-0.18rem) rotate(-5deg); }
}

@keyframes capture-button-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgb(242 201 76 / 0%); }
  48% { background: var(--yellow); box-shadow: 0 0 0 0.4rem rgb(242 201 76 / 20%); }
}

@keyframes capture-complete {
  0% { filter: drop-shadow(0 0.2rem 0.45rem rgb(0 0 0 / 35%)); }
  45% { filter: drop-shadow(0 0 0.75rem rgb(63 174 104 / 90%)); }
  100% { filter: drop-shadow(0 0.2rem 0.45rem rgb(0 0 0 / 35%)); }
}

@keyframes watch-confirm {
  45% { border-color: var(--yellow); box-shadow: 0 0 0 0.25rem rgb(242 201 76 / 16%); }
}

@keyframes product-image-in {
  from { opacity: 0; transform: translateY(0.2rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes alert-highlight {
  45% { border-color: var(--yellow); box-shadow: 0 0 0 0.25rem rgb(242 201 76 / 13%); }
}

[data-new-highlight] {
  animation: alert-highlight 600ms ease-out both;
}

.people-layout {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.watch-layout,
.settings-grid {
  display: grid;
  gap: 1rem;
}

.check-stack {
  display: grid;
  gap: 0.8rem;
}

.two-field-row,
.inline-settings-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.activity-list,
.compact-rule-list {
  display: grid;
  gap: 0.55rem;
}

.activity-list p,
.compact-rule-list p {
  margin: 0;
  padding: 0.7rem;
  border: 0.08rem solid var(--border);
  border-radius: 0.6rem;
  background: #11151d;
  color: var(--muted);
  font-size: 0.78rem;
}

.activity-list strong,
.compact-rule-list strong {
  color: var(--text);
}

.activity-list time {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.panel {
  padding: clamp(1rem, 3vw, 1.3rem);
  border-radius: var(--radius);
  box-shadow: none;
}

.product-list,
.alert-list,
.shortcut-list,
.review-grid {
  display: grid;
  gap: 0.85rem;
}

.product-list--dashboard {
  gap: 0.7rem;
}

.dashboard-grid,
.admin-grid,
.account-grid {
  display: grid;
  gap: 1rem;
}

.dashboard-alerts {
  align-self: start;
}

.alert-row {
  display: grid;
  min-width: 0;
  gap: 0.25rem;
  padding: 0.85rem;
  border: 0.08rem solid var(--border);
  border-radius: 0.65rem;
  background: #11151d;
  color: var(--text);
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease;
}

.alert-row:hover,
.alert-row:focus-visible {
  border-color: #526381;
  color: var(--text);
  transform: translateY(-0.06rem);
}

.alert-row .status-chip {
  width: max-content;
}

.alert-row span:not(.status-chip),
.alert-row small {
  color: var(--muted);
}

.alert-list--page {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.empty-panel--large {
  min-height: 12rem;
  align-content: center;
  text-align: center;
}

.detail-list {
  display: grid;
  gap: 0;
  margin: 0 0 1rem;
}

.detail-list div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.45fr) minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 0.08rem solid var(--border);
}

.detail-list dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-list dd {
  margin: 0;
}

.muted-copy,
.review-card p,
.record-card small {
  color: var(--muted);
}

.shortcut-list a {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem;
  border: 0.08rem solid var(--border);
  border-radius: 0.6rem;
  background: #11151d;
  color: var(--text);
  text-decoration: none;
}

.shortcut-list a:hover,
.shortcut-list a:focus-visible {
  border-color: #526381;
}

.shortcut-list span {
  color: var(--muted);
  font-size: 0.74rem;
}

.metric-card--danger {
  border-color: rgb(217 68 68 / 58%);
}

.metric-card--danger strong {
  color: #ffaaaa;
}

.status-callout {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem;
  border: 0.08rem solid rgb(242 201 76 / 55%);
  border-radius: 0.62rem;
  background: rgb(242 201 76 / 8%);
}

.status-callout span {
  color: var(--muted);
  font-size: 0.8rem;
}

.review-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.review-card {
  display: grid;
  min-width: 0;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 0.08rem solid var(--border);
  border-radius: 0.72rem;
  background: #11151d;
}

.review-card h3 {
  margin: 0.65rem 0 0.35rem;
}

.review-card p {
  margin: 0.25rem 0;
}

.review-facts {
  padding: 0.55rem;
  border-left: 0.16rem solid var(--yellow);
  background: rgb(242 201 76 / 7%);
}

.image-review-card__preview {
  display: grid;
  min-height: 8rem;
  place-items: center;
  align-content: center;
  gap: 0.4rem;
  border: 0.08rem solid var(--border);
  border-radius: 0.62rem;
  background: #0f1219;
  color: var(--muted);
  font-size: 0.7rem;
}

.image-review-card__preview img {
  display: block;
  max-width: 100%;
  max-height: 10rem;
  object-fit: contain;
}

.detail-disclosure {
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 0.08rem solid var(--border);
}

.detail-disclosure summary {
  cursor: pointer;
  color: #a9c0ff;
  font-weight: 800;
}

.detail-disclosure[open] summary {
  margin-bottom: 0.7rem;
}

.compact-row {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  padding: 0.65rem;
  border-radius: 0.55rem;
  background: #11151d;
}

.compact-row span,
.compact-row time {
  color: var(--muted);
  font-size: 0.72rem;
}

.panel--raised {
  border-color: #46516a;
  background: linear-gradient(150deg, rgb(47 95 215 / 11%), transparent 43%), var(--surface-raised);
}

.panel--wide {
  margin-top: 1rem;
}

.panel__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.panel__heading h2,
.panel__heading p {
  margin-bottom: 0;
}

.record-list {
  display: grid;
  gap: 0.62rem;
}

.record-card {
  display: grid;
  min-width: 0;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 0.08rem solid var(--border);
  border-radius: 0.62rem;
  background: #11151d;
}

.record-card__main {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}

.record-card__main strong,
.record-card__main span {
  overflow-wrap: anywhere;
}

.record-card__main span,
.delivery-label {
  color: var(--muted);
  font-size: 0.74rem;
}

.record-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.record-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-top: 0.65rem;
  border-top: 0.08rem solid var(--border);
}

.record-card__actions form {
  margin: 0;
}

.error-page {
  max-width: 38rem;
  margin: 2rem auto;
  padding: clamp(1.25rem, 5vw, 2rem);
  border-radius: var(--radius);
}

.error-page p {
  color: var(--muted);
}

.error-panel {
  display: grid;
  gap: 0.3rem;
  margin: 1rem 0;
  padding: 0.8rem;
  border: 0.08rem solid var(--border);
  border-radius: var(--radius-small);
  background: #10131a;
  color: var(--muted);
  font-size: 0.75rem;
}

.error-panel code {
  overflow-wrap: anywhere;
  color: var(--yellow);
}

@media (max-width: 43rem) {
  .site-header__inner {
    flex-wrap: wrap;
  }

  .brand {
    margin-right: auto;
  }

  .brand__copy strong {
    max-width: 11rem;
  }

  .primary-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-top: 0.35rem;
    border-top: 0.06rem solid var(--border);
  }

  .account-identity strong {
    max-width: 6.5rem;
  }

  .site-footer__inner,
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__inner {
    justify-content: center;
    padding-block: 0.8rem;
  }

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

  .metric-card {
    min-height: 7.2rem;
  }

  .record-card__actions,
  .record-card__actions form,
  .record-card__actions .button {
    width: 100%;
  }

  .product-card {
    grid-template-columns: minmax(6.8rem, 34%) minmax(0, 1fr);
  }

  .product-card__title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .offer-card .button,
  .watch-action .button {
    width: 100%;
  }

  .product-card__actions,
  .product-card__actions form,
  .product-card__actions .button,
  .button-row--stack-mobile,
  .button-row--stack-mobile form,
  .button-row--stack-mobile .button {
    width: 100%;
  }
}

@media (max-width: 32rem) {
  .shell {
    width: min(calc(100% - 1rem), 72rem);
  }

  .site-header__inner {
    gap: 0.55rem;
  }

  .primary-nav {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .primary-nav a {
    flex: 1 1 calc(33.333% - 0.25rem);
    text-align: center;
  }

  .brand__copy small {
    display: none;
  }

  .account-identity strong {
    max-width: 5rem;
  }

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

  .product-card__media {
    min-height: 10rem;
    border-right: 0;
    border-bottom: 0.08rem solid var(--border);
  }

  .product-card__media img {
    max-height: 13rem;
  }

  .product-facts {
    grid-template-columns: 1fr;
  }

  .detail-list div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

.browse-filters {
  display: grid;
  min-width: 0;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.browse-filters__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.55rem;
}

.browse-summary {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.offer-card small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
}
.retailer-health-grid {
  display: grid;
  gap: 0.75rem;
}

.retailer-health-card {
  min-width: 0;
  padding: 0.9rem;
  border: 0.08rem solid var(--border);
  border-radius: 0.75rem;
  background: #11151d;
}

.retailer-health-card__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.retailer-safety-controls {
  padding-top: 0.85rem;
  border-top: 0.08rem solid var(--border);
}
@media (min-width: 48rem) {
  .retailer-health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .browse-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
  }

  .browse-filters__search {
    grid-column: span 2;
  }
  .shell {
    width: min(calc(100% - 3rem), 72rem);
  }

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

  .people-layout {
    grid-template-columns: minmax(17rem, 0.85fr) minmax(0, 1.35fr);
  }

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

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

  .inline-settings-form {
    grid-template-columns: minmax(12rem, 1fr) minmax(12rem, 1fr) auto;
    align-items: end;
  }

  .record-card:not(.record-card--invitation) {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .record-card--invitation {
    grid-template-columns: minmax(0, 1.4fr) minmax(10rem, 0.8fr) auto;
    align-items: center;
  }

  .record-card--invitation .record-card__actions {
    justify-content: flex-end;
    padding: 0 0 0 0.75rem;
    border-top: 0;
    border-left: 0.08rem solid var(--border);
  }

  .product-card {
    grid-template-columns: minmax(13rem, 16rem) minmax(0, 1fr);
  }

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

  .dashboard-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 0.8fr);
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
