/* inter-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* inter-cyrillic-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* inter-greek-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2) format('woff2-variations');
  unicode-range: U+1F00-1FFF;
}

/* inter-greek-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/inter-greek-wght-normal-CkhJZR-_.woff2) format('woff2-variations');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* inter-vietnamese-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* inter-latin-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* inter-latin-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/inter-latin-wght-normal-Dx4kXJAl.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* newsreader-vietnamese-wght-normal */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-vietnamese-wght-normal-Czsa-EzN.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* newsreader-latin-ext-wght-normal */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-latin-ext-wght-normal-C-3rgBeH.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* newsreader-latin-wght-normal */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-latin-wght-normal-CCVVNp6i.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}:root {
  color: #e9edf0;
  background: #07111a;
  font-family: 'Inter Variable', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #07111a;
  --ink-deep: #040a10;
  --slate: #0d1c28;
  --slate-light: #172b38;
  --blue-enamel: #1c6b88;
  --blue-pale: #8dc9d2;
  --paper: #ece5d2;
  --paper-dim: #bbb6a9;
  --gold: #c9a66a;
  --gold-bright: #eed49c;
  --gold-deep: #76512d;
  --coral: #ed795c;
  --line: rgba(218, 184, 119, 0.26);
  --line-soft: rgba(215, 225, 229, 0.1);
  --focus: #b4e7ec;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  min-height: 100%;
  background: var(--ink);
}

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -30%, rgba(40, 117, 139, 0.18), transparent 44%),
    var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

a {
  color: inherit;
}

::selection {
  color: var(--ink);
  background: var(--gold-bright);
}

.spin {
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Citizen credential */
.citizen-card {
  position: relative;
  display: grid;
  grid-template-rows: 54px 132px 44px minmax(0, 1fr) 30px;
  width: 100%;
  max-width: 318px;
  height: 496px;
  overflow: hidden;
  color: var(--paper);
  background:
    linear-gradient(104deg, transparent 0 68%, rgba(255, 255, 255, 0.025) 68.2% 68.5%, transparent 68.8%),
    radial-gradient(circle at 4% 6%, rgba(71, 154, 172, 0.21), transparent 30%),
    radial-gradient(circle at 100% 91%, rgba(201, 166, 106, 0.12), transparent 35%),
    linear-gradient(150deg, #102634 0%, #081620 42%, #050c13 100%);
  border: 1px solid rgba(224, 193, 133, 0.48);
  border-radius: 8px 8px 24px 8px;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  isolation: isolate;
}

.citizen-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  pointer-events: none;
  opacity: 0.28;
  background:
    repeating-radial-gradient(ellipse at 78% 28%, transparent 0 18px, rgba(145, 211, 215, 0.13) 19px 20px, transparent 21px 28px),
    repeating-linear-gradient(90deg, transparent 0 25px, rgba(225, 195, 136, 0.05) 26px 27px);
  mask-image: linear-gradient(100deg, transparent 0 29%, #000 61%, transparent 100%);
}

.citizen-card__security-line {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 12px;
  left: 12px;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--coral) 0 18px, var(--gold-bright) 18px 36px, var(--blue-pale) 36px 54px, transparent 54px 59px);
  opacity: 0.85;
}

.citizen-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 9px 12px 7px;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 10, 15, 0.38);
}

.citizen-card__brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.citizen-card__brand > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.citizen-card__brand strong {
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.17em;
  line-height: 1;
}

.citizen-card__brand small {
  overflow: hidden;
  margin-top: 4px;
  color: #8496a0;
  font-size: 8px;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.citizen-card__mark {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--gold-bright);
  background: linear-gradient(145deg, rgba(201, 166, 106, 0.16), rgba(26, 101, 130, 0.18));
  border: 1px solid rgba(225, 190, 126, 0.36);
  border-radius: 50%;
}

.citizen-card__mark svg {
  width: 22px;
  height: 22px;
}

.citizen-card__state {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 5px;
  color: #9eacb4;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #71808a;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.status-dot--active {
  background: #5ad2a1;
  box-shadow: 0 0 0 3px rgba(90, 210, 161, 0.1), 0 0 10px rgba(90, 210, 161, 0.42);
}

.citizen-card__identity {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  background: linear-gradient(90deg, rgba(6, 17, 25, 0.7), rgba(6, 17, 25, 0.15));
  border-bottom: 1px solid rgba(225, 190, 126, 0.12);
}

.citizen-avatar {
  position: relative;
  width: 96px;
  height: 96px;
  overflow: visible;
  background: #102b39;
  border: 1px solid rgba(235, 207, 151, 0.5);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.38);
}

.citizen-avatar::before {
  position: absolute;
  z-index: 2;
  inset: 4px;
  content: '';
  pointer-events: none;
  border: 1px solid rgba(229, 204, 154, 0.2);
  border-radius: 50%;
}

.citizen-avatar__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.citizen-avatar__fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--gold-bright);
  background: radial-gradient(circle at 30% 20%, #24546a, #091721 75%);
  border-radius: 50%;
  font-family: 'Newsreader Variable', Georgia, serif;
  font-size: 28px;
}

.citizen-avatar__border {
  position: absolute;
  z-index: 3;
  inset: -9%;
  width: 118%;
  height: 118%;
  pointer-events: none;
  object-fit: contain;
}

.citizen-avatar__seal {
  position: absolute;
  z-index: 4;
  right: -2px;
  bottom: -2px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #10202b;
  background: linear-gradient(145deg, #f0d69e, #9b6b34);
  border: 2px solid #0b1a25;
  border-radius: 50%;
  font-family: 'Newsreader Variable', Georgia, serif;
  font-size: 13px;
  font-weight: 750;
}

.identity-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.identity-copy__serial {
  color: #87a3af;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.13em;
}

.identity-copy h1 {
  overflow: hidden;
  margin: 4px 0 2px;
  color: #f2ead6;
  font-family: 'Newsreader Variable', Georgia, serif;
  font-size: 23px;
  font-variation-settings: 'opsz' 42, 'wght' 590;
  letter-spacing: -0.02em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-copy__country {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  color: #c8d2d6;
  font-size: 11px;
}

.identity-copy__country > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-flag {
  display: inline-flex;
  width: 20px;
  height: 14px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.country-flag--emoji {
  width: auto;
  min-width: 20px;
  height: auto;
  background: transparent;
  border: 0;
  font-size: 15px;
  line-height: 1;
}

.identity-copy__meta {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-top: 10px;
}

.identity-copy__meta > span {
  display: flex;
  flex-direction: column;
  color: var(--paper);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.1;
}

.identity-copy__meta small {
  margin-bottom: 3px;
  color: #758b96;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.citizen-card__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(3, 9, 14, 0.52);
  border-bottom: 1px solid var(--line);
}

.citizen-card__tabs button {
  position: relative;
  color: #83949d;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.citizen-card__tabs button + button {
  border-left: 1px solid rgba(225, 190, 126, 0.14);
}

.citizen-card__tabs button::after {
  position: absolute;
  right: 18px;
  bottom: -1px;
  left: 18px;
  height: 2px;
  content: '';
  background: transparent;
}

.citizen-card__tabs button.is-active {
  color: var(--gold-bright);
  background: rgba(201, 166, 106, 0.055);
}

.citizen-card__tabs button.is-active::after {
  background: var(--coral);
  box-shadow: 0 0 9px rgba(237, 121, 92, 0.35);
}

.citizen-card__tabs button:hover {
  color: #d8ddda;
  background: rgba(134, 189, 197, 0.045);
}

.citizen-card__record {
  min-height: 0;
  padding: 10px 12px 8px;
  animation: record-in 180ms ease-out;
}

@keyframes record-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.record-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.record-row {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  background: linear-gradient(90deg, rgba(33, 66, 82, 0.39), rgba(15, 36, 48, 0.23));
  border: 1px solid rgba(138, 185, 192, 0.13);
  border-left-color: rgba(201, 166, 106, 0.5);
  border-radius: 3px 8px 8px 3px;
}

.record-row__icon {
  position: relative;
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--gold-bright);
  background: #102734;
  border: 1px solid rgba(201, 166, 106, 0.27);
  border-radius: 50%;
}

.record-row__icon img {
  position: absolute;
  z-index: 1;
  display: block;
  background: #102734;
}

.record-row__icon--affiliation {
  width: 31px;
  height: 31px;
  overflow: hidden;
}

.record-row__icon--affiliation img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.record-row__icon--rank {
  width: 28px;
  height: 39px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.record-row__icon--rank img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.record-row__copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.record-row__label {
  color: #728995;
  font-size: 8px;
  font-weight: 680;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.record-row__value {
  overflow: hidden;
  margin-top: 2px;
  color: #dfe6e6;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-row__meta {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
}

.civic-oath {
  position: relative;
  display: flex;
  min-height: 57px;
  align-items: center;
  gap: 9px;
  margin-top: 1px;
  padding: 9px 10px;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(177, 134, 65, 0.12), rgba(20, 77, 94, 0.16)),
    rgba(5, 14, 20, 0.42);
  border: 1px solid rgba(201, 166, 106, 0.2);
  border-radius: 7px 7px 15px 7px;
}

.civic-oath::after {
  position: absolute;
  right: -21px;
  width: 80px;
  height: 80px;
  content: '';
  border: 1px solid rgba(207, 172, 103, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(207, 172, 103, 0.035), 0 0 0 15px rgba(207, 172, 103, 0.028);
}

.civic-oath > svg {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  color: rgba(238, 212, 156, 0.7);
}

.civic-oath p {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  margin: 0;
  color: #d6dedf;
  font-family: 'Newsreader Variable', Georgia, serif;
  font-size: 14px;
  line-height: 1.05;
}

.civic-oath p span {
  margin-bottom: 3px;
  color: #7f949d;
  font-family: 'Inter Variable', sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.civic-oath .country-flag {
  position: relative;
  z-index: 1;
  margin-right: 3px;
}

.service-record {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.record-stack--ranks {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.record-stack--ranks .record-row {
  min-width: 0;
  min-height: 43px;
  gap: 6px;
  padding: 2px 7px;
}

.record-stack--ranks .record-row__icon:not(.record-row__icon--rank) {
  width: 25px;
  height: 25px;
}

.record-stack--ranks .record-row__value {
  max-width: 69px;
  font-size: 10px;
}

.record-stack--ranks .record-row__meta {
  display: none;
}

.service-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(201, 166, 106, 0.18);
  border-radius: 7px;
}

.service-stats > div {
  display: grid;
  grid-template-columns: 20px 1fr;
  min-width: 0;
  padding: 8px;
  color: #8eb4be;
}

.service-stats > div + div {
  border-left: 1px solid rgba(201, 166, 106, 0.16);
}

.service-stats svg {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--coral);
}

.service-stats strong {
  color: #e5e7df;
  font-size: 14px;
  line-height: 1;
}

.service-stats span {
  overflow: hidden;
  margin-top: 3px;
  color: #718893;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.commendations {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 35px;
  padding: 5px 7px 5px 10px;
  background: rgba(4, 12, 17, 0.32);
  border: 1px solid rgba(131, 171, 179, 0.11);
  border-radius: 7px 7px 14px 7px;
}

.commendations > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8599a1;
  font-size: 9px;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.commendations > div {
  display: flex;
  gap: 4px;
}

.medal {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #d9b971;
  background: linear-gradient(145deg, #213947, #0b1821);
  border: 1px solid rgba(219, 184, 113, 0.32);
  border-radius: 50%;
}

.medal--2 { color: #9ac3cb; }
.medal--3 { color: #d58a70; }

.citizen-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: #5e737e;
  background: rgba(2, 8, 12, 0.55);
  border-top: 1px solid rgba(201, 166, 106, 0.14);
  font-size: 8px;
  font-weight: 620;
  letter-spacing: 0.04em;
}

.citizen-card__verified {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #92afa9;
}

.citizen-card__preview-label {
  position: absolute;
  z-index: 5;
  top: 64px;
  right: 12px;
  overflow: hidden;
  max-width: 112px;
  padding: 4px 7px 3px;
  color: #07131d;
  background: var(--gold-bright);
  border: 1px solid rgba(255, 244, 214, 0.45);
  border-radius: 999px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.25);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Twitch panel entry */
body[data-view='panel'],
body[data-view='panel'] #root {
  width: 100%;
  min-height: 496px;
  background: transparent;
}

.panel-page {
  display: flex;
  width: 100%;
  min-height: 496px;
  align-items: flex-start;
  justify-content: center;
  background: transparent;
}

.panel-page .citizen-card {
  box-shadow: none;
}

.panel-state {
  display: flex;
  width: 100%;
  max-width: 318px;
  height: 496px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  color: #8fa2ab;
  background: linear-gradient(145deg, #102632, #050c12);
  border: 1px solid rgba(201, 166, 106, 0.28);
  text-align: center;
}

.panel-state__brand {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  place-items: center;
  color: var(--gold-bright);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.panel-state__brand svg {
  width: 38px;
}

.loading-line {
  width: 100%;
  height: 8px;
  margin: 6px 0;
  background: linear-gradient(90deg, rgba(122, 152, 161, 0.1), rgba(160, 194, 200, 0.26), rgba(122, 152, 161, 0.1));
  background-size: 200% 100%;
  border-radius: 8px;
  animation: shimmer 1.4s ease-in-out infinite;
}

.loading-line--short { width: 68%; }

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.panel-state--loading p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 28px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panel-state__icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  place-items: center;
  color: var(--coral);
  background: rgba(237, 121, 92, 0.08);
  border: 1px solid rgba(237, 121, 92, 0.23);
  border-radius: 50%;
}

.panel-state--error h1,
.panel-state--pending h1 {
  margin: 0;
  color: #e8e5db;
  font-family: 'Newsreader Variable', Georgia, serif;
  font-size: 23px;
}

.panel-state--error p,
.panel-state--pending p {
  margin: 8px 0 20px;
  font-size: 11px;
  line-height: 1.5;
}

.panel-state--pending .panel-state__icon {
  color: var(--gold-bright);
  background: rgba(201, 166, 106, 0.08);
  border-color: rgba(201, 166, 106, 0.23);
}

.panel-state--error button {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  color: #10202a;
  background: var(--gold-bright);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

@media (max-width: 317px) {
  .citizen-card__identity {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 9px;
    padding-inline: 9px;
  }

  .citizen-avatar { width: 82px; height: 82px; }
  .identity-copy h1 { font-size: 20px; }
  .citizen-card__record { padding-inline: 9px; }
  .record-stack--ranks .record-row__icon { display: none; }
}

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

/* Broadcaster configuration */
body[data-view='config'] {
  min-height: 100vh;
  background:
    radial-gradient(circle at 74% -12%, rgba(37, 116, 139, 0.2), transparent 36%),
    linear-gradient(145deg, #0b1a25, #050b11 70%);
}

.config-page {
  min-height: 100vh;
  color: #dfe6e7;
}

.config-header {
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  background: rgba(3, 9, 14, 0.64);
  border-bottom: 1px solid rgba(210, 177, 113, 0.18);
  backdrop-filter: blur(14px);
}

.config-header__brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.config-header__brand > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--gold-bright);
  border: 1px solid rgba(224, 190, 124, 0.35);
  border-radius: 50%;
}

.config-header__brand svg { width: 27px; }

.config-header__brand > div {
  display: flex;
  flex-direction: column;
}

.config-header__brand strong {
  color: #ede8dc;
  font-family: 'Newsreader Variable', Georgia, serif;
  font-size: 20px;
  font-variation-settings: 'opsz' 36, 'wght' 620;
  line-height: 1;
}

.config-header__brand small {
  margin-top: 4px;
  color: #718791;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.environment-pill {
  display: flex;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: #9cafb6;
  background: rgba(23, 46, 58, 0.55);
  border: 1px solid rgba(132, 175, 184, 0.17);
  border-radius: 20px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.environment-pill span {
  width: 6px;
  height: 6px;
  background: #66d6a9;
  border-radius: 50%;
  box-shadow: 0 0 9px rgba(102, 214, 169, 0.4);
}

.config-layout {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 52px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 70px;
}

.config-preview {
  min-width: 0;
}

.config-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
  color: #99aab1;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.config-section-title > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--gold);
}

.config-section-title small {
  color: #586d77;
  font-size: inherit;
}

.config-preview__frame {
  position: sticky;
  top: 24px;
  width: 338px;
  padding: 9px;
  background: linear-gradient(145deg, rgba(219, 184, 116, 0.1), rgba(27, 65, 80, 0.08));
  border: 1px solid rgba(224, 190, 124, 0.22);
  border-radius: 12px 12px 30px 12px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
}

.config-controls {
  min-width: 0;
}

.config-intro {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 25px;
}

.config-intro__icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--gold-bright);
  background: rgba(201, 166, 106, 0.1);
  border: 1px solid rgba(201, 166, 106, 0.25);
  border-radius: 50%;
}

.config-intro__icon svg { width: 22px; }

.config-intro p {
  margin: 1px 0 4px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.config-intro h1 {
  max-width: 610px;
  margin: 0;
  color: #f0ece3;
  font-family: 'Newsreader Variable', Georgia, serif;
  font-size: clamp(27px, 3vw, 37px);
  font-variation-settings: 'opsz' 48, 'wght' 570;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.config-intro > div > span {
  display: block;
  max-width: 600px;
  margin-top: 8px;
  color: #80949d;
  font-size: 11px;
  line-height: 1.55;
}

.settings-card {
  margin-top: 13px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(18, 39, 51, 0.88), rgba(7, 17, 24, 0.92));
  border: 1px solid rgba(161, 187, 191, 0.13);
  border-left-color: rgba(205, 170, 103, 0.34);
  border-radius: 4px 12px 12px 4px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.settings-card__header {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 17px;
  background: rgba(3, 10, 15, 0.28);
  border-bottom: 1px solid rgba(183, 202, 204, 0.08);
}

.settings-card__header > div > span {
  color: #657d88;
  font-size: 8px;
  font-weight: 720;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.settings-card__header h2 {
  margin: 4px 0 0;
  color: #e2e7e5;
  font-size: 14px;
  font-weight: 680;
}

.connection-state {
  display: flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  color: #b28573;
  background: rgba(193, 99, 77, 0.07);
  border: 1px solid rgba(193, 99, 77, 0.17);
  border-radius: 18px;
  font-size: 9px;
  font-weight: 700;
}

.connection-state.is-connected {
  color: #8ed4b7;
  background: rgba(84, 187, 145, 0.07);
  border-color: rgba(84, 187, 145, 0.18);
}

.connected-citizen {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 17px;
}

.connected-citizen img {
  width: 41px;
  height: 41px;
  object-fit: cover;
  background: #102632;
  border: 1px solid rgba(224, 190, 124, 0.3);
  border-radius: 50%;
}

.connected-citizen > div {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.connected-citizen strong {
  overflow: hidden;
  color: #e8e6dd;
  font-family: 'Newsreader Variable', Georgia, serif;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connected-citizen span {
  margin-top: 2px;
  color: #6f858f;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.05em;
}

.connected-citizen button {
  min-height: 44px;
  padding: 0 12px;
  color: #a5b3b7;
  background: transparent;
  border: 1px solid rgba(159, 185, 190, 0.17);
  border-radius: 4px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.disconnect-confirm {
  margin: 0 17px 16px;
  padding: 12px;
  color: #b9a69e;
  background: rgba(160, 75, 58, 0.08);
  border: 1px solid rgba(224, 121, 92, 0.22);
  border-radius: 4px 4px 10px 4px;
}

.disconnect-confirm p {
  margin: 0;
  font-size: 9px;
  line-height: 1.5;
}

.disconnect-confirm > div {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 10px;
}

.disconnect-confirm button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: #aab8bb;
  background: transparent;
  border: 1px solid rgba(159, 185, 190, 0.17);
  border-radius: 4px;
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
}

.disconnect-confirm button:last-child {
  color: #2b1510;
  background: #d98570;
  border-color: transparent;
}

.claim-form {
  padding: 15px 17px 17px;
}

.claim-form > label {
  display: block;
  margin-bottom: 7px;
  color: #91a1a8;
  font-size: 9px;
  font-weight: 680;
}

.claim-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 7px;
}

.claim-form input {
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  color: #e8e6df;
  background: #07121a;
  border: 1px solid rgba(147, 179, 186, 0.2);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.claim-form input::placeholder { color: #4d626c; }

.claim-form__row button,
.primary-action {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  color: #12212a;
  background: linear-gradient(135deg, #efd69e, #bd8a48);
  border: 0;
  border-radius: 4px 4px 10px 4px;
  box-shadow: 0 7px 18px rgba(100, 67, 30, 0.22);
  cursor: pointer;
  font-size: 10px;
  font-weight: 760;
}

.claim-form > p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 9px 0 0;
  color: #607781;
  font-size: 8px;
  line-height: 1.4;
}

.preference-list {
  padding: 5px 0;
}

.preference-row {
  position: relative;
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 10px;
  padding: 7px 17px;
  cursor: pointer;
}

.preference-row + .preference-row {
  border-top: 1px solid rgba(183, 202, 204, 0.07);
}

.preference-row:hover {
  background: rgba(115, 173, 183, 0.035);
}

.preference-row__icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--gold);
  background: rgba(201, 166, 106, 0.06);
  border: 1px solid rgba(201, 166, 106, 0.14);
  border-radius: 50%;
}

.preference-row__copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.preference-row__copy strong {
  color: #d4dcdd;
  font-size: 10px;
  font-weight: 650;
}

.preference-row__copy small {
  margin-top: 2px;
  color: #647a84;
  font-size: 8px;
}

.preference-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.toggle {
  position: relative;
  width: 34px;
  height: 20px;
  flex: 0 0 auto;
  background: #172933;
  border: 1px solid rgba(148, 179, 184, 0.18);
  border-radius: 16px;
  transition: background 160ms ease, border-color 160ms ease;
}

.toggle span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  background: #71858e;
  border-radius: 50%;
  transition: transform 160ms ease, background 160ms ease;
}

.preference-row input:checked + .toggle {
  background: rgba(52, 137, 146, 0.32);
  border-color: rgba(120, 208, 204, 0.38);
}

.preference-row input:checked + .toggle span {
  background: #a9e0d2;
  transform: translateX(14px);
}

.preference-row input:focus-visible + .toggle {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.form-notice {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  margin: 12px 0 0;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 9px;
}

.form-notice--error {
  color: #e4a08e;
  background: rgba(181, 74, 51, 0.08);
  border: 1px solid rgba(220, 107, 82, 0.18);
}

.form-notice--success {
  color: #9ed6bc;
  background: rgba(62, 167, 122, 0.07);
  border: 1px solid rgba(82, 187, 142, 0.17);
}

.config-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.config-actions p {
  max-width: 330px;
  margin: 0;
  color: #5f737d;
  font-size: 8px;
  line-height: 1.5;
}

.primary-action {
  min-width: 160px;
}

@media (max-width: 880px) {
  .config-layout {
    grid-template-columns: 1fr;
    width: min(680px, calc(100% - 32px));
    gap: 42px;
  }

  .config-preview {
    display: flex;
    align-items: center;
    flex-direction: column;
  }

  .config-section-title { width: 338px; }
  .config-preview__frame { position: relative; top: 0; }
  .config-controls { order: -1; }
}

@media (max-width: 540px) {
  .config-header { height: 62px; padding-inline: 14px; }
  .config-header__brand small { display: none; }
  .environment-pill { padding-inline: 8px; font-size: 7px; }
  .config-layout { width: min(100% - 24px, 460px); padding-top: 25px; }
  .config-intro__icon { width: 38px; height: 38px; }
  .config-intro h1 { font-size: 26px; }
  .config-preview__frame,
  .config-section-title { width: 100%; max-width: 338px; }
  .claim-form__row { grid-template-columns: 1fr; }
  .config-actions { align-items: stretch; flex-direction: column; }
  .config-actions p { max-width: none; }
  .primary-action { width: 100%; }
}

/* Product lab */
body[data-view='lab'] {
  background:
    radial-gradient(circle at 75% 3%, rgba(50, 132, 153, 0.16), transparent 26%),
    radial-gradient(circle at 8% 42%, rgba(180, 125, 61, 0.06), transparent 28%),
    #07121b;
}

.lab-page {
  min-height: 100vh;
  overflow: hidden;
  color: #dce4e5;
}

.lab-nav {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: min(1180px, calc(100% - 48px));
  height: 78px;
  align-items: center;
  margin: 0 auto;
  border-bottom: 1px solid rgba(213, 182, 121, 0.14);
}

.lab-brand {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.lab-brand > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--gold-bright);
  border: 1px solid rgba(225, 190, 126, 0.34);
  border-radius: 50%;
}

.lab-brand svg { width: 26px; }

.lab-brand strong {
  color: #eae7df;
  font-family: 'Newsreader Variable', Georgia, serif;
  font-size: 19px;
  font-variation-settings: 'opsz' 36, 'wght' 600;
}

.lab-brand i {
  color: var(--gold);
  font-style: normal;
}

.lab-nav__status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #687f89;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lab-nav__status span {
  width: 5px;
  height: 5px;
  background: #69d4aa;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(105, 212, 170, 0.45);
}

.lab-nav__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.lab-nav__links a {
  color: #8ca0a8;
  font-size: 9px;
  font-weight: 660;
  text-decoration: none;
}

.lab-nav__links a:hover { color: #dce2e2; }

.lab-nav__links .lab-nav__button {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  color: #d9ccad;
  border: 1px solid rgba(218, 183, 116, 0.28);
  border-radius: 3px 3px 9px 3px;
}

.lab-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr);
  gap: 70px;
  width: min(1180px, calc(100% - 48px));
  min-height: 690px;
  align-items: center;
  margin: 0 auto;
  padding: 56px 0 70px;
}

.lab-hero::before {
  position: absolute;
  z-index: -1;
  top: 5%;
  right: -20%;
  width: 700px;
  height: 700px;
  content: '';
  opacity: 0.28;
  background: repeating-radial-gradient(ellipse at center, transparent 0 33px, rgba(127, 196, 202, 0.12) 34px 35px, transparent 36px 53px);
  mask-image: radial-gradient(circle, #000 10%, transparent 65%);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--gold);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lab-hero__copy h1 {
  max-width: 690px;
  margin: 20px 0 22px;
  color: #f0eee8;
  font-family: 'Newsreader Variable', Georgia, serif;
  font-size: clamp(51px, 6.2vw, 83px);
  font-variation-settings: 'opsz' 68, 'wght' 490;
  letter-spacing: -0.047em;
  line-height: 0.93;
}

.lab-hero__copy h1 em {
  position: relative;
  color: var(--gold-bright);
  font-weight: 520;
}

.lab-hero__copy h1 em::after {
  position: absolute;
  right: 2px;
  bottom: 4px;
  left: 0;
  height: 5px;
  content: '';
  background: var(--coral);
  opacity: 0.65;
  transform: skewX(-18deg);
}

.lab-hero__lede {
  max-width: 610px;
  margin: 0;
  color: #879ba4;
  font-size: 15px;
  line-height: 1.7;
}

.lab-hero__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 29px;
}

.hero-action {
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  color: #10212a;
  background: linear-gradient(135deg, #eed49c, #bf8b49);
  border: 1px solid transparent;
  border-radius: 4px 4px 12px 4px;
  box-shadow: 0 12px 30px rgba(111, 75, 32, 0.22);
  font-size: 10px;
  font-weight: 760;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease;
}

.hero-action:hover,
.claim-form__row button:hover:not(:disabled),
.primary-action:hover:not(:disabled),
.copy-field button:hover,
.connected-citizen button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.hero-action--quiet:hover,
.connected-citizen button:hover {
  color: #dce3e2;
  border-color: rgba(181, 211, 214, 0.32);
  filter: none;
}

.hero-action--quiet {
  color: #9caeb5;
  background: rgba(23, 50, 63, 0.35);
  border-color: rgba(143, 183, 189, 0.16);
  box-shadow: none;
}

.lab-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
  padding-top: 19px;
  border-top: 1px solid rgba(207, 175, 110, 0.13);
}

.lab-proof span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #657d87;
  font-size: 8px;
  font-weight: 660;
}

.lab-proof svg { color: #85bea9; }

.lab-hero__artifact {
  position: relative;
  display: flex;
  min-height: 555px;
  align-items: center;
  justify-content: center;
}

.panel-mount {
  position: relative;
  z-index: 2;
  width: 338px;
  height: 516px;
  padding: 9px;
  background: linear-gradient(145deg, rgba(235, 202, 137, 0.12), rgba(31, 80, 96, 0.1));
  border: 1px solid rgba(225, 190, 126, 0.24);
  border-radius: 12px 12px 34px 12px;
  box-shadow: 0 45px 110px rgba(0, 0, 0, 0.48);
  transform: rotate(1.1deg);
}

.panel-mount::before,
.panel-mount::after {
  position: absolute;
  z-index: -1;
  content: '';
  pointer-events: none;
}

.panel-mount::before {
  top: 44px;
  right: -55px;
  width: 100px;
  height: 310px;
  background: linear-gradient(180deg, rgba(50, 155, 172, 0.22), rgba(201, 166, 106, 0.04));
  border: 1px solid rgba(115, 187, 195, 0.13);
  transform: skewY(-12deg);
}

.panel-mount::after {
  right: 35px;
  bottom: -24px;
  width: 230px;
  height: 20px;
  background: rgba(0, 0, 0, 0.7);
  filter: blur(16px);
  border-radius: 50%;
}

.artifact-note {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #718891;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.artifact-note--top { top: 0; right: 14px; }
.artifact-note--bottom { right: -6px; bottom: -8px; }

.artifact-note--top span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(201, 166, 106, 0.25);
  border-radius: 50%;
}

.artifact-note--bottom span {
  width: 22px;
  height: 1px;
  background: var(--coral);
}

.product-strip {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 82px 0 96px;
  border-top: 1px solid rgba(213, 182, 121, 0.15);
}

.product-strip__intro {
  display: grid;
  grid-template-columns: 0.55fr 1fr 1.1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 42px;
}

.product-strip__intro h2,
.recruitment-copy h2 {
  margin: 0;
  color: #ebe9e2;
  font-family: 'Newsreader Variable', Georgia, serif;
  font-size: clamp(35px, 4vw, 50px);
  font-variation-settings: 'opsz' 54, 'wght' 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.product-strip__intro > p:last-child {
  margin: 0;
  color: #778c95;
  font-size: 12px;
  line-height: 1.65;
}

.product-path {
  display: grid;
  grid-template-columns: 1fr 44px 1fr 44px 1fr;
  align-items: stretch;
}

.product-path article {
  position: relative;
  min-height: 245px;
  padding: 27px 25px 23px;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(21, 48, 61, 0.74), rgba(7, 17, 24, 0.86)),
    var(--ink);
  border: 1px solid rgba(148, 182, 186, 0.13);
  border-top-color: rgba(215, 180, 112, 0.3);
  border-radius: 3px 3px 18px 3px;
}

.product-path article::after {
  position: absolute;
  right: -46px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  content: '';
  border: 1px solid rgba(204, 171, 106, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(204, 171, 106, 0.025), 0 0 0 25px rgba(204, 171, 106, 0.018);
}

.product-path__number {
  position: absolute;
  top: 15px;
  right: 17px;
  color: rgba(151, 177, 181, 0.22);
  font-family: 'Newsreader Variable', Georgia, serif;
  font-size: 30px;
}

.product-path__icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: var(--gold-bright);
  background: rgba(201, 166, 106, 0.07);
  border: 1px solid rgba(201, 166, 106, 0.2);
  border-radius: 50%;
}

.product-path__icon svg { width: 19px; }

.product-path h3 {
  margin: 22px 0 9px;
  color: #e0e5e3;
  font-size: 15px;
  font-weight: 680;
}

.product-path article > p {
  margin: 0;
  color: #758a93;
  font-size: 10px;
  line-height: 1.65;
}

.product-path article > small {
  position: absolute;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #719187;
  font-size: 8px;
  font-weight: 650;
}

.product-path__connector {
  display: grid;
  place-items: center;
  color: rgba(201, 166, 106, 0.4);
}

.product-path__connector svg { width: 16px; }

.recruitment-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(460px, 1.18fr);
  gap: 84px;
  width: min(1180px, calc(100% - 48px));
  align-items: center;
  margin: 0 auto;
  padding: 100px 0;
  border-top: 1px solid rgba(213, 182, 121, 0.15);
}

.recruitment-copy h2 { margin-top: 17px; }

.recruitment-copy > p:not(.eyebrow) {
  margin: 20px 0 0;
  color: #7e929b;
  font-size: 12px;
  line-height: 1.7;
}

.recruitment-copy code {
  padding: 2px 4px;
  color: #b7c7c8;
  background: #0d212c;
  border: 1px solid rgba(153, 187, 190, 0.12);
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.policy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 25px;
  padding: 14px;
  color: #88ab9d;
  background: rgba(67, 157, 121, 0.06);
  border: 1px solid rgba(93, 176, 142, 0.17);
  border-left: 2px solid #76b69b;
  border-radius: 3px 8px 8px 3px;
}

.policy-note svg { flex: 0 0 auto; margin-top: 1px; }

.policy-note span {
  display: flex;
  flex-direction: column;
  color: #769087;
  font-size: 9px;
  line-height: 1.5;
}

.policy-note strong {
  margin-bottom: 2px;
  color: #b8d0c8;
  font-size: 10px;
}

.copy-kit {
  position: relative;
  padding: 22px;
  background:
    linear-gradient(130deg, rgba(25, 57, 71, 0.93), rgba(6, 15, 22, 0.96)),
    var(--slate);
  border: 1px solid rgba(218, 182, 113, 0.27);
  border-radius: 4px 4px 22px 4px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}

.copy-kit::before {
  position: absolute;
  top: 0;
  right: 19px;
  left: 19px;
  height: 3px;
  content: '';
  background: repeating-linear-gradient(90deg, var(--coral) 0 24px, var(--gold) 24px 48px, var(--blue-pale) 48px 72px, transparent 72px 78px);
}

.copy-kit__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(205, 173, 109, 0.15);
}

.copy-kit__header > span:first-child {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--gold-bright);
  background: rgba(201, 166, 106, 0.06);
  border: 1px solid rgba(201, 166, 106, 0.21);
  border-radius: 50%;
}

.copy-kit__header svg { width: 24px; }

.copy-kit__header > div {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.copy-kit__header small {
  color: #667d87;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.copy-kit__header strong {
  margin-top: 2px;
  color: #dfe4e2;
  font-family: 'Newsreader Variable', Georgia, serif;
  font-size: 17px;
  font-weight: 560;
}

.copy-kit__country {
  color: #a6b6ba;
  font-size: 9px;
}

.copy-kit > label {
  display: block;
  margin: 16px 0 7px;
  color: #788c94;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 43px;
  gap: 6px;
}

.copy-field--multiline {
  grid-template-columns: minmax(0, 1fr) 100px;
}

.copy-field input,
.copy-field textarea {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  resize: none;
  color: #b6c4c7;
  background: #06121a;
  border: 1px solid rgba(148, 180, 186, 0.17);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  line-height: 1.5;
}

.copy-field input { height: 44px; }
.copy-field textarea { height: 88px; }

.copy-field button {
  display: flex;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #12232b;
  background: linear-gradient(135deg, #e9cf96, #b98143);
  border: 0;
  border-radius: 4px 4px 10px 4px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 750;
  transition: filter 160ms ease, transform 160ms ease;
}

.copy-kit__hint {
  margin: 11px 0 0;
  color: #526a74;
  font-size: 8px;
}

.lab-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: min(1180px, calc(100% - 48px));
  min-height: 110px;
  align-items: center;
  margin: 0 auto;
  border-top: 1px solid rgba(213, 182, 121, 0.15);
}

.lab-footer p {
  color: #526873;
  font-size: 9px;
}

.lab-footer > div:last-child {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

.lab-footer > div:last-child a {
  color: #738791;
  font-size: 9px;
  text-decoration: none;
}

@media (max-width: 1000px) {
  .lab-nav { grid-template-columns: 1fr auto; }
  .lab-nav__status { display: none; }
  .lab-hero { grid-template-columns: 1fr 360px; gap: 35px; }
  .lab-hero__copy h1 { font-size: clamp(48px, 7vw, 68px); }
  .product-strip__intro { grid-template-columns: 1fr 1fr; }
  .product-strip__intro .eyebrow { grid-column: 1 / -1; }
  .recruitment-section { gap: 45px; }
}

@media (max-width: 820px) {
  .lab-nav__links > a:not(.lab-nav__button) { display: none; }
  .lab-hero {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }
  .lab-hero__copy { max-width: 670px; }
  .lab-hero__artifact { margin-top: 25px; }
  .product-path { grid-template-columns: 1fr; gap: 12px; }
  .product-path__connector { height: 20px; transform: rotate(90deg); }
  .product-path article { min-height: 210px; }
  .recruitment-section { grid-template-columns: 1fr; }
  .copy-kit { max-width: 650px; }
}

@media (max-width: 560px) {
  .lab-nav,
  .lab-hero,
  .product-strip,
  .recruitment-section,
  .lab-footer { width: min(100% - 28px, 480px); }

  .lab-nav { height: 66px; }
  .lab-nav__button { padding-inline: 10px !important; }
  .lab-hero { gap: 15px; padding: 55px 0 60px; }
  .lab-hero__copy h1 { font-size: clamp(45px, 14vw, 64px); }
  .lab-hero__lede { font-size: 13px; }
  .lab-hero__actions { align-items: stretch; flex-direction: column; }
  .hero-action { width: 100%; }
  .lab-proof { align-items: flex-start; flex-direction: column; gap: 10px; }
  .lab-hero__artifact { min-height: 570px; }
  .panel-mount { transform: none; }
  .artifact-note--top { right: 0; }
  .artifact-note--bottom { right: 0; bottom: 0; }
  .product-strip { padding: 67px 0; }
  .product-strip__intro { grid-template-columns: 1fr; }
  .product-strip__intro .eyebrow { grid-column: auto; }
  .recruitment-section { padding: 70px 0; }
  .copy-kit { padding: 18px 14px; }
  .copy-field--multiline { grid-template-columns: 1fr; }
  .copy-field--multiline button { min-height: 39px; }
  .copy-kit__country { display: none; }
  .lab-footer { grid-template-columns: 1fr auto; }
  .lab-footer p { display: none; }
}

@media (max-width: 374px) {
  .lab-brand strong { font-size: 16px; }
  .lab-nav__button { font-size: 8px !important; }
  .lab-hero__artifact { min-height: 550px; }
  .panel-mount { width: 100%; max-width: 338px; }
}
