/* =========================================================
   NAMECARD — design tokens and shared styles
   Dark by design: black as a stage, steel as the material,
   one accent (Corten) for live signals only.
   ========================================================= */

:root {
  color-scheme: dark;

  --bg: #0b0b0c;
  --surface: #121213;
  --surface-2: #1a1a1b;
  --line: #232220;
  --line-soft: #1c1b1a;
  --line-strong: #2e2d2b;

  --text: #edebe6;
  --text-2: #c9c7c1;
  --muted: #9a9893;
  --faint: #8e8c87;
  --accent: #c4622d;

  /* One family, two voices: Jost light for display, Jost regular for text. */
  --display: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --sans: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  /* Titles: a corporate grotesque (Franklin Gothic lineage) */
  --title: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;

  --radius-s: 10px;
  --radius-m: 14px;
  --radius-pill: 999px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

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

a:hover {
  color: #fff;
}

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

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

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

.icon {
  display: inline-flex;
  flex-shrink: 0;
}

/* ---------- Type helpers ---------- */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.95em;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

/* The NAMECARD mark (a card with a line top left and a line bottom right) before the
   wordmark, in the text colour. Same drawing as /assets/logo-mark.svg. */
.wordmark::before {
  content: "";
  flex: none;
  width: 1.95em;
  height: 1.23em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 152 96'%3E%3Crect x='5' y='5' width='142' height='86' rx='13' fill='none' stroke='%23000' stroke-width='10'/%3E%3Crect x='24' y='22' width='36' height='10'/%3E%3Crect x='92' y='64' width='36' height='10'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 152 96'%3E%3Crect x='5' y='5' width='142' height='86' rx='13' fill='none' stroke='%23000' stroke-width='10'/%3E%3Crect x='24' y='22' width='36' height='10'/%3E%3Crect x='92' y='64' width='36' height='10'/%3E%3C/svg%3E") center / contain no-repeat;
}

.serif {
  font-family: var(--display);
}

.eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-head .aside {
  order: 2;
  font-size: 12px;
  color: var(--faint);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  border-color: var(--faint);
}

.btn--primary {
  border-color: transparent;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}

.btn--primary:hover {
  background: #fff;
  color: var(--bg);
}

.btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.btn--primary:disabled:hover {
  background: var(--text);
}

.btn--block {
  width: 100%;
  min-height: 56px;
  font-size: 15px;
}

.btn--small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

/* =========================================================
   PUBLIC PROFILE (index.html)
   ========================================================= */

.profile {
  max-width: 460px;
  margin: 0 auto;
  padding: 22px 24px 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar .number {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ---------- The steel card ----------
   Two faces in 3D. On load the card turns in from its back (QR side)
   and settles tilted: top-left lifted toward you, bottom-right down.
   Tap / click / Enter turns it over.
   Engraving = the card's own colour, a little darker (--ink),
   with a hairline highlight underneath so it reads as cut into metal. */

.hero {
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.card-stage {
  width: 100%;
  max-width: 330px;
  aspect-ratio: 85.6 / 54;
  perspective: 1400px;
  margin: 18px 0 10px;
}

.namecard {
  --tilt-z: 6deg;
  --tilt-x: -16deg;
  --tilt-y: 20deg;
  --flip: 0deg;
  --ink: rgba(0, 0, 0, 0.5);
  --ink-light: rgba(255, 255, 255, 0.1);
  --metal: linear-gradient(135deg, #46484c 0%, #26272a 34%, #4c4e53 58%, #222326 100%);

  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transform-style: preserve-3d;
  transform: rotateZ(var(--tilt-z)) rotateX(var(--tilt-x)) rotateY(calc(var(--tilt-y) + var(--flip)));
  transition: transform 0.9s cubic-bezier(0.2, 0.75, 0.2, 1);
  animation: card-in 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s backwards;
  -webkit-tap-highlight-color: transparent;
}

.namecard[aria-pressed="true"] {
  --flip: 180deg;
}

.namecard:focus-visible {
  outline: none;
}

.namecard:focus-visible .namecard__face {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

/* Entrance: the card settles into its tilt like a card laid on a table.
   A small rise and a few degrees of tilt, no spin. */
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(16px) rotateZ(calc(var(--tilt-z) - 3deg)) rotateX(calc(var(--tilt-x) + 12deg)) rotateY(calc(var(--tilt-y) - 10deg)) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateZ(var(--tilt-z)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(1);
  }
}
.namecard[data-finish="mirror"] {
  --ink: rgba(0, 0, 0, 0.34);
  --ink-light: rgba(255, 255, 255, 0.55);
  --metal: linear-gradient(135deg, #f4f4f5 0%, #b3b5b9 28%, #ebecee 50%, #9a9da2 74%, #dcdde0 100%);
}

.namecard[data-finish="corten"] {
  --ink: rgba(30, 10, 2, 0.5);
  --ink-light: rgba(255, 200, 160, 0.12);
  --metal: linear-gradient(135deg, #85421f 0%, #5a2a14 40%, #93502c 64%, #4a2210 100%);
}

.namecard__face {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--metal);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 34px 60px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

/* Brushed-metal grain */
.namecard__face::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

.namecard__face--back {
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Everything engraved shares this treatment */
.engraved {
  color: var(--ink);
  text-shadow: 0 1px 0 var(--ink-light);
}

.namecard__brand {
  position: absolute;
  top: 9%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.55em;
  text-indent: 0.55em; /* keeps tracked text optically centred */
}

.namecard__logo {
  position: absolute;
  top: 47%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.namecard__logo:has(.namecard__logo-mark),
.namecard__logo:has(.namecard__logo-svg) {
  width: 24%;
  aspect-ratio: 696 / 1046; /* proportions of assets/algiva-logo.svg */
}

.namecard__logo-text {
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Inline SVG logo: painted in the engraving colour via currentColor */
.namecard__logo-svg {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--ink);
  filter: drop-shadow(0 1px 0 var(--ink-light));
}

/* An uploaded logo (SVG/PNG with transparency) is used as a mask,
   so it is "engraved" in the card colour like the text. */
.namecard__logo-mark {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ink);
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
  filter: drop-shadow(0 1px 0 var(--ink-light));
}

.namecard__name {
  position: absolute;
  right: 7%;
  bottom: 10%;
  max-width: 70%;
  text-align: right;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.3;
}

.namecard__qr {
  width: 46%;
  aspect-ratio: 1;
  color: var(--ink);
  filter: drop-shadow(0 1px 0 var(--ink-light));
}

.namecard__qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__caption {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--faint);
}

@media (prefers-reduced-motion: reduce) {
  .namecard {
    animation: none;
    transition: none;
  }
}

/* ---------- Identity ---------- */

.identity {
  padding-top: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.identity__photo {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.identity__name {
  margin: 0;
  font-family: var(--title);
  font-weight: 500;
  font-size: clamp(34px, 10vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.identity__rule {
  width: 28px;
  height: 1px;
  background: #3a3936;
}

.identity__role {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.identity__tagline {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Actions ---------- */

.actions {
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

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

.round-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.round-action__circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease;
}

.round-action:hover .round-action__circle {
  border-color: var(--faint);
}

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

.round-action[aria-disabled="true"] {
  opacity: 0.35;
  pointer-events: none;
}

/* ---------- Sections ---------- */

.section {
  padding-top: 60px;
  display: flex;
  flex-direction: column;
}

.section > .section-head {
  padding-bottom: 6px;
}

.about {
  margin: 14px 0 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.55;
}

.spec {
  margin: 12px 0 0;
}

.spec__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.spec__row:last-child {
  border-bottom: none;
}

.spec dt {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--faint);
  flex-shrink: 0;
}

.spec dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: 17px;
  text-align: right;
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.live-dot--off {
  background: #5e5c58;
}

.status-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans) !important;
  font-size: 13px !important;
  letter-spacing: 0.1em;
}

.currently {
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.currently__place {
  font-family: var(--title);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

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

.venture {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  color: var(--text);
}

.venture__mark {
  font-weight: 300;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #161616;
  border: 1px solid #262523;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 24px;
  flex-shrink: 0;
}

.venture__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.venture__name {
  font-family: var(--title);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.venture__text {
  font-size: 13px;
  color: var(--faint);
}

.venture .icon {
  color: var(--faint);
}

.entry {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}

.entry:last-child {
  border-bottom: none;
}

.entry__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.entry__title {
  margin: 0;
  font-family: var(--title);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.entry--compact .entry__title {
  font-size: 15px;
}

.entry__period {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.entry__org {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

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

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  font-size: 13px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  color: var(--text);
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-row__label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.contact-row__value {
  font-size: 15px;
  text-align: right;
  overflow-wrap: anywhere;
}

.site-footer {
  padding-top: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.site-footer__line {
  font-family: var(--display);
  font-weight: 300;
  font-size: 17px;
  color: var(--muted);
}

.site-footer a {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-underline-offset: 4px;
}

/* =========================================================
   MANAGE (manage.html)
   ========================================================= */

.app {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
}

.sidebar {
  flex: 1 1 240px;
  padding: 32px 24px;
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.sidebar__user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar__user img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.sidebar__user-name {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.sidebar__user-number {
  display: block;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-s);
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.nav__item:hover {
  color: var(--text);
  background: var(--surface);
}

.nav__item[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
  font-weight: 500;
}

.nav__count {
  font-size: 12px;
  color: var(--muted);
}

.sidebar__foot {
  margin-top: auto;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-underline-offset: 4px;
}

.main {
  flex: 999 1 560px;
  min-width: 0;
  padding: 48px clamp(20px, 4vw, 56px) 72px;
}

.main__inner {
  max-width: 1080px;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 40px;
}

.page-head h1 {
  margin: 8px 0;
  font-family: var(--title);
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.page-head p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.page-head__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.save-status {
  font-size: 13px;
  color: var(--muted);
  min-height: 1em;
}

.save-status[data-state="dirty"] {
  color: var(--text-2);
}

.save-status[data-state="dirty"]::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

/* ---------- Editor layout ---------- */

.editor {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
}

.editor__form {
  flex: 999 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.editor__preview {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 24px;
}

.fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 15px;
  transition: border-color 0.15s ease;
}

.input:hover,
.textarea:hover,
.select:hover {
  border-color: #3a3936;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--faint);
}

.textarea {
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}

.textarea--display {
  font-family: var(--display);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.45;
}

.hint {
  font-size: 12px;
  color: var(--faint);
}

.setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.setting__title {
  display: block;
  font-size: 15px;
  font-weight: 500;
}

.setting__desc {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

/* Switch */
.switch {
  position: relative;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 15px;
  border: 1px solid #3a3936;
  background: var(--surface-2);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--faint);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.switch[aria-checked="true"] {
  background: var(--accent);
  border-color: var(--accent);
}

.switch[aria-checked="true"]::after {
  transform: translateX(22px);
  background: #fff;
}

/* Finish picker */
.field-label {
  margin: 24px 0 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.finishes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.finish {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px 0 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: none;
  font-size: 13px;
  cursor: pointer;
}

.finish[aria-checked="true"] {
  border-color: var(--text);
}

.finish__swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #3a3936;
}

.finish__swatch--graphite { background: linear-gradient(135deg, #46484d, #1c1d20); }
.finish__swatch--mirror { background: linear-gradient(135deg, #f5f5f6, #8a8d92); }
.finish__swatch--corten { background: linear-gradient(135deg, #8c4727, #3b1b0e); }

/* Section manager */
.section-list {
  margin-top: 6px;
}

.section-item {
  border-bottom: 1px solid var(--line-soft);
}

.section-item__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.section-item__row .icon {
  color: #5e5c58;
}

.section-item__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.section-item__label {
  font-size: 15px;
  font-weight: 500;
}

.section-item__summary {
  font-size: 12px;
  color: var(--faint);
}

.visibility {
  min-width: 88px;
}

.visibility[aria-pressed="true"] {
  border-color: transparent;
  background: var(--text);
  color: var(--bg);
}

.visibility[aria-pressed="false"] {
  border-style: dashed;
  color: var(--faint);
}

.section-editor {
  padding: 4px 0 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.item-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.item-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.item-card__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.item-card__tools {
  display: flex;
  gap: 6px;
}

.icon-btn {
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: none;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--faint);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.item-card .fields {
  margin-top: 0;
}

/* Live preview */
.preview-frame {
  width: 100%;
  height: 720px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg);
  overflow: hidden;
}

.preview-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.preview-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Connections ---------- */

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

.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat__label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.stat__value {
  font-family: var(--title);
  font-weight: 500;
  font-size: 38px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.search {
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--muted);
}

.search:focus-within {
  border-color: var(--faint);
}

.search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  font-size: 14px;
  color: var(--text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: none;
  font-size: 13px;
  cursor: pointer;
}

.chip[aria-pressed="true"] {
  border-color: transparent;
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.table th {
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
}

.table th button {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  cursor: pointer;
}

.table th button:hover,
.table th[aria-sort] button {
  color: var(--text);
}

.table td {
  padding: 14px 22px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--text-2);
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover td {
  background: #0f0f10;
}

.person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  font-weight: 300;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 15px;
  color: var(--text);
  flex-shrink: 0;
}

.person__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.via {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.empty {
  padding: 48px 22px;
  text-align: center;
}

.empty strong {
  display: block;
  font-family: var(--title);
  font-weight: 500;
  font-size: 20px;
}

.empty span {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Small screens ---------- */

@media (max-width: 820px) {
  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line-soft);
    padding: 20px;
    gap: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .sidebar__user {
    margin-left: auto;
  }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .nav__item {
    gap: 8px;
  }

  .sidebar__foot {
    margin-top: 0;
  }

  .main {
    padding-top: 32px;
  }

  .editor__preview {
    position: static;
  }

  .section-editor {
    padding-left: 0;
  }
}

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

/* =========================================================
   Intro video
   ========================================================= */

.intro-frame {
  margin-top: 16px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.intro-video {
  display: block;
  width: 100%;
  max-height: 78vh;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000;
}

/* Manage: video tools */
.video-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.video-stage {
  flex: 0 0 auto;
  width: 180px;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  font-size: 12px;
  text-align: center;
  padding: 0;
}

.video-stage video,
.video-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-panel {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.video-panel__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.progress {
  height: 4px;
  border-radius: 2px;
  background: var(--surface-2);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 0;
  background: var(--text);
  transition: width 0.2s linear;
}

.notice {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.notice[data-tone="error"] {
  color: #e8a38a;
}

.wallet-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.btn--wallet {
  background: #000;
  border-color: #3a3936;
  color: #fff;
}

.btn--wallet .icon {
  color: #fff;
}


/* =========================================================
   Platform: page states, sign in, landing, onboarding
   ========================================================= */

[hidden] {
  display: none !important;
}

.page-state {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
}

.page-state__text {
  margin: 0;
  max-width: 420px;
  font-family: var(--title);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.page-state__link {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-underline-offset: 4px;
}

.auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 48px 20px;
}

.auth__brand {
  text-decoration: none;
}

.auth__panel {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth__title {
  margin: 0;
  font-family: var(--title);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.auth__lead {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

.auth__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth__form .notice:empty {
  display: none;
}

.auth__links {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--faint);
}

.auth__links a,
.linklike {
  color: var(--text-2);
  text-underline-offset: 4px;
}

.linklike {
  padding: 0;
  border: none;
  background: none;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.hint[data-tone="ok"] {
  color: #9fc5a4;
}

.hint[data-tone="error"] {
  color: #e8a38a;
}

.slug-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--surface);
  overflow: hidden;
}

.slug-input:focus-within {
  border-color: var(--faint);
}

.slug-input__prefix {
  padding: 0 0 0 14px;
  font-size: 15px;
  color: var(--faint);
  white-space: nowrap;
}

.slug-input .input {
  border: none;
  background: none;
  padding-left: 2px;
}

/* Landing */
.landing {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 24px 72px;
}

.landing__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.landing__signin {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-underline-offset: 4px;
}

.landing__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  padding-top: 64px;
}

.landing__title {
  margin: 24px 0 0;
  font-family: var(--title);
  font-weight: 500;
  font-size: clamp(38px, 8vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.landing__lead {
  margin: 0;
  max-width: 520px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
}

.landing__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Public page: save to connections */
.connect:empty {
  display: none;
}

.connect__note {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--faint);
}

.connect__note a {
  color: var(--text-2);
  text-underline-offset: 4px;
}

/* Manage: link, photo, logo */
.link-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.link-box__label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.link-box__url {
  flex: 1;
  min-width: 0;
  font-family: var(--title);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.cv-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 12px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(196, 98, 45, 0.06), transparent 60%);
}

.cv-box__text {
  flex: 1;
  min-width: 220px;
  display: grid;
  gap: 4px;
}

.cv-box__title {
  font-family: var(--title);
  font-weight: 500;
  font-size: 15px;
}

.cv-box[data-busy="true"] .btn {
  opacity: 0.6;
  pointer-events: none;
}

.photo-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}

.photo-row__img,
.photo-row__empty {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  object-fit: cover;
  flex-shrink: 0;
}

.photo-row__empty {
  display: block;
  background: var(--surface);
}

.photo-row__actions,
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.field-label-inline {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.progress__bar--busy {
  width: 40% !important;
  animation: busy 1.1s ease-in-out infinite alternate;
}

@keyframes busy {
  from { transform: translateX(-60%); }
  to { transform: translateX(210%); }
}

.person-link {
  text-decoration: none;
  color: inherit;
}

.person-link:hover .person__name {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Settings */
.settings {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 720px;
}

.settings .setting {
  margin-top: 0;
}

.settings__block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.settings__title {
  margin: 0;
  font-family: var(--title);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.settings__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.settings .fields {
  margin-top: 0;
}

code {
  font-size: 0.92em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-2);
}

.save-status[data-state="error"] {
  color: #e8a38a;
}

@media (prefers-reduced-motion: reduce) {
  .progress__bar--busy {
    animation: none;
  }
}

a.wordmark {
  color: var(--text);
  text-decoration: none;
}

/* ---------- Sections: drag to reorder ---------- */

.drag-handle {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 44px;
  margin-left: -8px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-s);
  background: none;
  color: var(--faint);
  cursor: grab;
  touch-action: none; /* the finger drags the row, not the page */
}

.drag-handle:hover,
.drag-handle:focus-visible {
  color: var(--text);
  background: var(--surface-2);
}

.drag-handle:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 1px;
}

.section-list.is-sorting,
.is-sorting .drag-handle {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

.section-item.is-dragging {
  position: relative;
  z-index: 2;
  background: var(--surface-2);
  border-radius: var(--radius-m);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  border-bottom-color: transparent;
}

.section-item.is-dragging .section-item__row {
  padding-left: 10px;
  padding-right: 10px;
}

/* ---------- Page colour ---------- */

.bg-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 8px;
}

.bg-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bg-swatch {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.bg-swatch[aria-pressed="true"] {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.bg-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px 0 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}

.bg-custom[data-on="true"],
.bg-custom[aria-expanded="true"] {
  border-color: var(--text);
  color: var(--text);
}

.bg-custom__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: conic-gradient(from 0deg, #c4622d, #b8a24a, #3f7a5a, #2f5f8a, #5b3f8a, #8a3f5b, #c4622d);
}

/* The picker panel */
.bg-picker {
  display: grid;
  gap: 16px;
  max-width: 420px;
  margin: 4px 0 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
}

.bg-picker[hidden] {
  display: none;
}

.bg-sv {
  --hue: 210;
  position: relative;
  height: 180px;
  border-radius: var(--radius-s);
  background:
    linear-gradient(to top, #000, rgba(0, 0, 0, 0)),
    linear-gradient(to right, #fff, hsl(var(--hue), 100%, 50%));
  cursor: crosshair;
  touch-action: none;
}

.bg-sv:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.bg-sv__thumb {
  position: absolute;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.bg-hue {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 14px;
  margin: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(to right, #f00, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00);
  cursor: pointer;
}

.bg-hue::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.bg-hue::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
}

.bg-hue:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.bg-hex {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bg-hex__label {
  font-size: 13px;
  color: var(--muted);
}

.bg-hex__field {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--bg);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 15px;
  color: var(--muted);
}

.bg-hex__field:focus-within {
  border-color: var(--text);
}

.bg-hex__field input {
  width: 7.5ch;
  border: 0;
  outline: none;
  background: none;
  font: inherit;
  color: var(--text);
  text-transform: uppercase;
}

.bg-hex__field:has(input[aria-invalid="true"]) {
  border-color: #e8a38a;
}

.bg-hex__preview {
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: var(--radius-s);
  border: 1px solid var(--line-strong);
}

/* =========================================================
   Vault — private, encrypted card scans
   ========================================================= */

.nav__lock {
  margin-left: 6px;
  font-size: 8px;
  vertical-align: middle;
  color: var(--faint);
}

.nav__lock[data-open="true"] {
  color: var(--accent);
}

.vault-gate {
  display: grid;
  gap: 16px;
  max-width: 460px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
}

.vault-gate[hidden] {
  display: none;
}

.vault-gate__icon {
  color: var(--text-2);
}

.vault-gate__title {
  margin: 0;
  font-family: var(--title);
  font-weight: 500;
  font-size: 22px;
}

.vault-gate__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}

.vault-gate__text strong {
  color: var(--text);
  font-weight: 500;
}

.vault-gate .btn {
  justify-self: start;
}

.vault-ack {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
  cursor: pointer;
}

.vault-ack input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--accent);
}

/* The cards */
.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px 24px;
}

.vault-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.vault-card__face {
  position: relative;
  display: block;
  aspect-ratio: 85.6 / 54;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2b2e, #1a1b1d);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vault-card:hover .vault-card__face,
.vault-card:focus-visible .vault-card__face {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.vault-card:focus-visible {
  outline: none;
}

.vault-card:focus-visible .vault-card__face {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.vault-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vault-card__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--faint);
}

.vault-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vault-card__name {
  font-size: 15px;
  font-weight: 500;
}

.vault-card__type {
  font-size: 12px;
  color: var(--faint);
}

.vault-card__exp {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.vault-card__exp[data-tone="warn"] {
  color: #e2b072;
}

.vault-card__exp[data-tone="bad"] {
  color: #e8a38a;
}

.vault-foot {
  margin-top: 28px;
}

/* Dialogs: editor sheet, viewer */
.sheet,
.viewer {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  overflow: auto;
}

.sheet::backdrop,
.viewer::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.sheet__inner,
.viewer__inner {
  display: grid;
  gap: 20px;
  padding: 28px;
}

.sheet__title,
.viewer__title {
  margin: 0;
  font-family: var(--title);
  font-weight: 500;
  font-size: 20px;
}

.sheet__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.sheet__spacer {
  flex: 1;
}

.vault-sides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.vault-side {
  display: grid;
  gap: 8px;
}

.vault-shot {
  position: relative;
  aspect-ratio: 85.6 / 54;
  padding: 0;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  overflow: hidden;
  cursor: pointer;
}

.vault-shot[data-filled="true"] {
  border-style: solid;
}

.vault-shot:hover,
.vault-shot:focus-visible {
  border-color: var(--text);
  color: var(--text);
}

.vault-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheet select.input {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.viewer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.viewer__images {
  display: grid;
  gap: 16px;
}

.viewer__fig {
  margin: 0;
  display: grid;
  gap: 8px;
}

.viewer__fig img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

.viewer__fig figcaption {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
}

.viewer__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

/* Scanner: full-screen camera with a card-shaped frame */
.scanner {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000;
  color: #fff;
}

.scanner[open] {
  display: flex;
  flex-direction: column;
}

.scanner::backdrop {
  background: #000;
}

.scanner__stage {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.scanner__stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner__guide {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  /* darken everything outside the frame */
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.55);
}

.scanner__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  margin: 0;
  padding: 0 24px;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
}

.scanner__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  background: #000;
}

.scanner__bar .btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.scanner__shutter {
  width: 72px;
  height: 72px;
  flex: none;
  padding: 0;
  border-radius: 50%;
  border: 4px solid #fff;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 3px #000;
  cursor: pointer;
}

.scanner__shutter:active {
  transform: scale(0.94);
}

.scanner__shutter:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 560px) {
  .vault-sides {
    grid-template-columns: minmax(0, 1fr);
  }
  .vault-gate {
    padding: 24px 20px;
  }
}

.vault-card__img:not([hidden]) + .vault-card__ph {
  display: none;
}

/* Vault: forgotten passphrase */
.link-btn {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-btn:hover,
.link-btn:focus-visible {
  color: var(--text);
}

.vault-gate--danger {
  border-color: rgba(232, 163, 138, 0.35);
}

.vault-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn--danger {
  border-color: transparent;
  background: #b4452a;
  color: #fff;
}

.btn--danger:hover {
  background: #c4512f;
}

/* Vault: editor sides */
.vault-side__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-height: 36px;
}

/* Vault: the adjuster (drag the four corners) */
.adjuster {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000;
  color: #fff;
}

.adjuster[open] {
  display: flex;
  flex-direction: column;
}

.adjuster::backdrop {
  background: #000;
}

.adjuster__title {
  margin: 0;
  padding: calc(16px + env(safe-area-inset-top)) 20px 12px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.adjuster__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  touch-action: none;
  overflow: hidden;
}

.adjuster__stage > canvas#adj-canvas,
.adjuster__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.adj-handle {
  position: absolute;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: grab;
  touch-action: none;
}

.adj-handle::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.5);
}

.adj-handle:focus-visible::after {
  box-shadow: 0 0 0 3px var(--accent), 0 2px 8px rgba(0, 0, 0, 0.5);
}

.adj-handle:active {
  cursor: grabbing;
}

.adjuster__loupe {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.adjuster__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  background: #000;
}

.adjuster__tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.adjuster__bar .btn:not(.btn--primary) {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Vault: share a copy */
.share-sides {
  display: grid;
  gap: 10px;
}

.share-sides [hidden] {
  display: none;
}

.share-preview {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--bg);
}

.share-preview canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* =========================================================
   Whereabouts: your status, the map, the editor
   ========================================================= */

.where-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding: 16px 18px 16px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.where-bar__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  flex-shrink: 0;
}

.where-bar[data-state="on"] .where-bar__dot {
  background: var(--accent);
}

.where-bar[data-state="on"] .where-bar__dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: where-pulse 2.8s ease-out infinite;
}

@keyframes where-pulse {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}

.where-bar__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.where-bar__text strong {
  font-weight: 500;
  font-size: 15px;
}

.where-bar__text span {
  font-size: 13px;
  color: var(--muted);
}

.page-head__actions .chips {
  margin-right: 4px;
}

/* ----- the map ----- */

.nb-map {
  display: grid;
  gap: 18px;
}

.map {
  position: relative;
  height: min(62vh, 560px);
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: radial-gradient(120% 90% at 50% 40%, #121213 0%, #0b0b0c 70%);
  overflow: hidden;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.map:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.map.is-dragging {
  cursor: grabbing;
}

.map__canvas {
  position: absolute;
  inset: 0;
  display: block;
  touch-action: pan-y;
}

.map__pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pin {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  padding: 0;
  border: none;
  background: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
}

.pin__face {
  position: absolute;
  left: -17px;
  top: -17px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: #0b0b0c;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 4px rgba(196, 98, 45, 0.12), 0 6px 18px rgba(0, 0, 0, 0.55);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.pin--group .pin__face {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0b0c;
  font-family: var(--title);
  font-weight: 600;
  font-size: 13px;
}

.pin--me .pin__face {
  border-color: var(--text);
  box-shadow: 0 0 0 4px rgba(237, 235, 230, 0.08), 0 6px 18px rgba(0, 0, 0, 0.55);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pin__label {
  position: absolute;
  top: 22px;
  left: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  text-shadow: 0 1px 6px #000, 0 0 2px #000;
  pointer-events: none;
}

.pin:hover .pin__face,
.pin:focus-visible .pin__face,
.pin[aria-expanded="true"] .pin__face {
  transform: scale(1.12);
}

.pin:focus-visible {
  outline: none;
}

.pin:focus-visible .pin__face {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.map__controls {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(18, 18, 19, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}

.map__btn {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  color: var(--text-2);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.map__btn + .map__btn {
  border-top: 1px solid var(--line-strong);
}

.map__btn:last-child {
  font-size: 12px;
}

.map__btn:hover {
  color: #fff;
  background: var(--surface-2);
}

.map__note {
  position: absolute;
  left: 14px;
  bottom: 14px;
  margin: 0;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(11, 11, 12, 0.78);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  pointer-events: none;
}

.map__hint {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  padding: 10px 16px;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-pill);
  background: rgba(11, 11, 12, 0.88);
  font-size: 13px;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.map__hint[data-show="true"] {
  opacity: 1;
}

.map__empty {
  position: absolute;
  left: 50%;
  bottom: 48px;
  width: min(420px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 18px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: rgba(18, 18, 19, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
  pointer-events: none;
}

.map__empty strong {
  display: block;
  font-family: var(--title);
  font-weight: 500;
  font-size: 17px;
}

.map__empty span {
  font-size: 13px;
  color: var(--muted);
}

.map__card {
  position: absolute;
  left: 14px;
  top: 14px;
  width: min(340px, calc(100% - 84px));
  max-height: calc(100% - 28px);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: rgba(18, 18, 19, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  cursor: default;
  animation: map-card-in 0.22s ease-out;
}

@keyframes map-card-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.map__card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 10px 20px;
}

.map__card-head .eyebrow {
  margin: 0 0 4px;
}

.map__card-head h3 {
  margin: 0;
  font-family: var(--title);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.25;
}

.map__close {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.map__close:hover {
  color: var(--text);
  border-color: var(--faint);
}

.map__people {
  margin: 0;
  padding: 0 8px 10px;
  list-style: none;
}

.map-person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
}

a.map-person:hover {
  background: var(--surface-2);
}

.map-person__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.map-person__meta {
  font-size: 12px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-person__when {
  font-size: 11px;
  color: var(--faint);
}

/* ----- list under the map ----- */

.map-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.map-list:empty {
  display: none;
}

.map-list li + li {
  border-top: 1px solid var(--line-soft);
}

.map-list__item {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) 2fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  border: none;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.map-list__item:hover {
  background: #0f0f10;
}

.map-list__city {
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
}

.map-list__names {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-list__count {
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--muted);
}

/* ----- editor ----- */

.where-city {
  position: relative;
}

.where-city__row {
  display: flex;
  gap: 10px;
}

.where-city__row .input {
  flex: 1;
  min-width: 0;
}

.where-city__row .btn {
  flex-shrink: 0;
}

.where-options {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 78px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--surface-2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.where-options__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.where-options__item[aria-selected="true"],
.where-options__item:hover {
  background: var(--line-strong);
}

.where-audience {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: none;
}

.where-audience legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.where-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  cursor: pointer;
}

.where-option:has(input:checked) {
  border-color: var(--text-2);
  background: var(--surface-2);
}

.where-option input {
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.where-option > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.where-option strong {
  font-weight: 500;
  font-size: 14px;
}

.where-option span span {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 24px;
  }

  .stat {
    padding: 14px;
  }

  .stat__value {
    font-size: 26px;
  }

  .where-bar {
    flex-wrap: wrap;
    padding: 16px;
  }

  .where-bar .btn {
    width: 100%;
  }

  .map {
    height: min(56vh, 460px);
  }

  .map__card {
    left: 10px;
    right: 10px;
    top: auto;
    bottom: 10px;
    width: auto;
    max-height: 60%;
  }

  .map-list__item {
    grid-template-columns: 1fr auto;
  }

  .map-list__names {
    grid-column: 1;
    grid-row: 2;
  }

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

  .where-city__row {
    flex-direction: column;
  }

  .where-options {
    top: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .where-bar[data-state="on"] .where-bar__dot::after,
  .map__card {
    animation: none;
  }
}

/* =========================================================
   PRIVACY & CREDITS (privacy.html)
   ========================================================= */

.legal {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.legal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal__top .wordmark {
  text-decoration: none;
}

.legal__back {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-underline-offset: 4px;
}

.legal__hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
}

.legal__hero h1 {
  margin: 14px 0 22px;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.legal__lead {
  max-width: 560px;
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-2);
}

.legal__layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 72px;
  padding-top: 56px;
}

.legal__toc {
  position: sticky;
  top: 32px;
  align-self: start;
}

.legal__toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.legal__toc li {
  counter-increment: toc;
}

.legal__toc a {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.legal__toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 20px;
  color: var(--faint);
}

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

.legal__body {
  max-width: 680px;
}

.legal__section {
  padding: 0 0 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line-soft);
  scroll-margin-top: 24px;
}

.legal__section:last-child {
  border-bottom: none;
}

.legal__section h2 {
  margin: 0 0 18px;
  font-family: var(--title);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.legal__section h3 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal__section p,
.legal__section li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
}

.legal__section p {
  margin: 0 0 14px;
}

.legal__section strong {
  font-weight: 500;
  color: var(--text);
}

.legal__section a {
  text-underline-offset: 4px;
}

.legal__section ul {
  margin: 0 0 14px;
  padding-left: 18px;
}

/* Vault specification */
.legal .spec {
  margin: 26px 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: linear-gradient(160deg, #151516 0%, #0f0f10 100%);
}

.legal .spec > div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 22px;
}

.legal .spec > div + div {
  border-top: 1px solid var(--line-soft);
}

.legal .spec dt {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 22px;
  color: var(--muted);
}

.legal .spec dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

/* Install the app */
.install {
  margin-top: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.install__app {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.install__app img {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  border: 1px solid var(--line-strong);
}

.install__app > div {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.install__app strong {
  font-family: var(--title);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.08em;
}

.install__app span {
  font-size: 13px;
  color: var(--muted);
}

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

.install__way {
  padding: 22px;
}

.install__way + .install__way {
  border-left: 1px solid var(--line-soft);
}

.install__way[data-current="true"] h3 {
  color: var(--accent);
}

.install__way ol {
  margin: 0;
  padding-left: 18px;
}

.legal .install__way li {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 6px;
}

/* Credits */
.credits {
  list-style: none;
  padding: 0 !important;
}

.credits li {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 14px !important;
}

.credits strong {
  font-weight: 500;
}

.legal__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.legal__foot a {
  color: var(--text-2);
  text-underline-offset: 4px;
}

.legal__date {
  margin-left: auto;
  color: var(--faint);
}

@media (max-width: 860px) {
  .legal__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal__toc {
    position: static;
  }

  .legal__toc ol {
    columns: 2;
    column-gap: 24px;
  }

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

  .install__way + .install__way {
    border-left: none;
    border-top: 1px solid var(--line-soft);
  }
}

@media (max-width: 560px) {
  .legal {
    padding: 24px 16px 48px;
  }

  .legal__hero {
    padding: 64px 0 48px;
  }

  .legal .spec > div,
  .credits li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .legal__toc ol {
    columns: 1;
  }

  .legal__date {
    margin-left: 0;
    width: 100%;
  }
}

.site-footer a.site-footer__small {
  font-size: 11px;
  color: var(--faint);
}

.legal .spec dd {
  text-align: left;
}

/* ---------- Delete account ---------- */

.settings__block--danger .settings__title {
  color: #e8a38a;
}

.btn--danger-quiet {
  border-color: rgba(196, 98, 45, 0.45);
  color: #e8a38a;
}

.btn--danger-quiet:hover {
  border-color: #e8a38a;
  color: #fff;
}

.delete-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
}

.delete-list li {
  position: relative;
  padding: 12px 16px 12px 36px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}

.delete-list li + li {
  border-top: 1px solid var(--line-soft);
}

.delete-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.delete-list strong {
  font-weight: 500;
  color: var(--text);
}

/* ---------- Portraits in avatars and map pins ---------- */

.avatar--photo,
.pin__face--photo {
  position: relative;
  overflow: hidden;
  color: transparent;
}

.avatar img,
.pin__face img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.pin__face--photo img {
  inset: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
}

/* ---------- Write an e-mail (profile) ---------- */

.compose__to {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
}

.compose__to-address {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.compose__label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.compose__body {
  min-height: 140px;
}

.compose__footer {
  display: grid;
  gap: 10px;
}

.compose__send {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.compose__send .btn {
  flex: 1 1 120px;
}

/* ---------- Show / hide single items and fields ---------- */

.vis-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.vis-toggle:hover {
  border-color: var(--faint);
  color: var(--text);
}

.vis-toggle[aria-pressed="false"] {
  border-style: dashed;
  color: var(--muted);
}

.vis-toggle .icon,
.vis-toggle svg {
  flex: none;
}

.field__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 32px;
}

.field[data-hidden="true"] .input,
.field[data-hidden="true"] .textarea {
  opacity: 0.45;
}

.item-card[data-hidden="true"] {
  border-style: dashed;
}

.item-card[data-hidden="true"] .fields {
  opacity: 0.45;
}

.item-card[data-hidden="true"] .item-card__title {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--line-strong);
}

.item-card__tools {
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ---------- Shop: ordering the card (Settings → Your steel card) ---------- */
.shop__order,
.shop__mine {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.shop__order[hidden],
.shop__mine[hidden] {
  display: none;
}
.plan {
  padding: 0 18px;
}
.plan__price {
  color: var(--muted);
}
.shop__total,
.shop__plan {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.shop__orders {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.shop__orders li {
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-s);
}
.shop__orders a {
  color: var(--text);
}
.shop__nudge {
  margin-top: 14px;
}
.shop__nudge a,
#shop-change {
  color: var(--text);
}
.landing__price {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
#shop-message:empty {
  display: none;
}

/* ---------- Get NAMECARD (manage → #get) ---------- */
.nav__item--get {
  margin-top: 10px;
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.get-message:empty {
  display: none;
}
#view-get {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 1040px;
}
#view-get[hidden] {
  display: none;
}
#view-get .page-head {
  margin-bottom: -24px;
}
.get-h2 {
  margin: 0;
  font-family: var(--title);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.get-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
}
.get-link {
  color: var(--text);
}

.get-mine {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
}
.get-mine[hidden] {
  display: none;
}

.get-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.get-hero__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 48px 24px 32px;
  border-radius: var(--radius-m);
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.06), transparent 65%);
}
.get-stage {
  max-width: 420px;
}
.get-hero__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.get-hero__text .field-label {
  margin: 10px 0 0;
}
.get-hero__text .finishes {
  margin-top: 0;
}

.get-plans {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.get-plans[hidden] {
  display: none;
}
.get-plans__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.get-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
}
.get-toggle__opt {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.get-toggle__opt[aria-checked="true"] {
  background: var(--text);
  color: var(--bg);
}
.get-save {
  margin-left: 6px;
  font-size: 12px;
  opacity: 0.75;
}

.get-packages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.get-pkg {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--surface);
}
.get-pkg--featured {
  border-color: var(--text);
}
.get-pkg__badge {
  position: absolute;
  top: -12px;
  left: 28px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: var(--bg);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.get-pkg__title {
  margin: 0;
  font-family: var(--title);
  font-weight: 500;
  font-size: 22px;
}
.get-pkg__sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  min-height: 42px;
}
.get-pkg__price {
  margin: 8px 0 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}
.get-pkg__amount {
  font-family: var(--title);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.get-pkg__per {
  font-size: 14px;
  color: var(--muted);
}
.get-pkg__today {
  margin: 0;
  font-size: 13px;
  color: var(--faint);
  min-height: 20px;
}
.get-pkg__btn {
  justify-content: center;
  margin: 8px 0 10px;
}
.get-feats {
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line-soft);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
}
.get-feats li {
  position: relative;
  padding-left: 22px;
}
.get-feats li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--text);
}
.get-feats li.get-feats__all {
  padding-left: 0;
  color: var(--muted);
}
.get-feats li.get-feats__all::before {
  display: none;
}
.get-status:empty {
  display: none;
}

.get-compare {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.get-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.get-table th,
.get-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  font-weight: 400;
}
.get-table thead th {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.get-table td,
.get-table thead th:not(:first-child) {
  width: 150px;
  text-align: center;
}
.get-yes {
  color: var(--text);
}
.get-no {
  color: var(--faint);
}

.get-facts {
  margin: 0 0 24px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line-soft);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .get-hero,
  .get-packages {
    grid-template-columns: 1fr;
  }
  .get-hero {
    gap: 24px;
  }
  .get-pkg__sub {
    min-height: 0;
  }
  .get-table td,
  .get-table thead th:not(:first-child) {
    width: 90px;
  }
}
.get-finish {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 0;
  font-size: 14px;
}

/* ---------- Essential (free) vs Executive ---------- */
.tier-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--surface);
}
.tier-banner__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.tier-banner__text strong {
  color: var(--text);
  font-weight: 500;
}
.tier-banner .btn {
  flex: none;
}
[data-tier="essential"] .tier-banner {
  display: flex;
}
/* What Essential cannot change: shown, but locked. */
[data-tier="essential"] :is(
  #cv-box,
  .photo-row,
  .field:has(#f-focus),
  .field:has(#f-based),
  .field:has(#f-languages),
  .field:has(#f-tagline),
  #card-block > :not(.wallet-row),
  #about-block,
  .section-item:not([data-key="contact"]),
  #where-bar,
  #nb-map,
  #view-vault > :not(.page-head):not(.tier-banner)
) {
  opacity: 0.32;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 640px) {
  .tier-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.get-packages {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.get-pkg--free .get-pkg__btn:disabled {
  opacity: 0.6;
}
.get-val {
  font-size: 13px;
  color: var(--text);
}
.get-table td,
.get-table thead th:not(:first-child) {
  width: 130px;
}
@media (max-width: 1100px) {
  .get-packages {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 860px) {
  .get-table td,
  .get-table thead th:not(:first-child) {
    width: 74px;
    font-size: 12px;
  }
}
.editor__form > .tier-banner {
  margin-bottom: 0;
}
.get-pkg--soon .get-pkg__badge {
  background: none;
  color: var(--text);
  border: 1px solid var(--text);
  background-color: var(--bg);
}
.get-pkg--soon .get-pkg__btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.get-soon {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

/* ---------- Mini Mirror card (sidebar) and the shine on the mirror ---------- */
.mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: -8px 0 -12px;
  padding: 14px 0 6px;
  text-decoration: none;
  color: var(--muted);
  border-radius: var(--radius-m);
}
.mini-card__frame {
  display: block;
  width: 168px;
  height: 106px; /* 168 × 54 / 85.6 */
  animation: mini-float 6s ease-in-out infinite;
}
.mini-card__scale {
  display: block;
  width: 330px;
  height: 208px;
  transform: scale(0.509); /* 168 / 330 */
  transform-origin: top left;
  perspective: 1400px;
}
.mini-card__card {
  --tilt-z: 4deg;
  --tilt-x: -12deg;
  --tilt-y: 16deg;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.2, 0.75, 0.2, 1);
}
.mini-card__card .namecard__face {
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.mini-card:hover .mini-card__card,
.mini-card:focus-visible .mini-card__card {
  --tilt-z: 0deg;
  --tilt-x: -4deg;
  --tilt-y: 8deg;
}
.mini-card__caption {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  transition: color 0.2s;
}
.mini-card:hover .mini-card__caption,
.mini-card:focus-visible .mini-card__caption {
  color: var(--text);
}
.mini-card:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}
html[data-tab="get"] .mini-card {
  display: none;
}
@keyframes mini-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* A band of light that sweeps over the polished steel now and then. */
.namecard__face.shiny::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.55) 50%, transparent 58%);
  transform: translateX(-70%);
  animation: mirror-shine 7s ease-in-out 1.5s infinite;
  pointer-events: none;
}
@keyframes mirror-shine {
  0%, 62% { transform: translateX(-70%); }
  100% { transform: translateX(70%); }
}

/* The big card: follows the pointer, with a light that follows too. */
.get-stage .namecard.is-tilting {
  transition: transform 0.18s ease-out;
}
.get-stage .namecard__face.follow-light {
  background-image: radial-gradient(circle at var(--lx, 30%) var(--ly, 20%), rgba(255, 255, 255, 0.55), transparent 45%), var(--metal);
}

@media (max-width: 820px) {
  .mini-card {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mini-card__frame,
  .namecard__face.shiny::after {
    animation: none;
  }
}

/* =========================================================
   Refinements: Essential vs Executive, Get NAMECARD
   ========================================================= */

/* ---------- "Executive" tag next to what Essential cannot change ---------- */
.tier-tag {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 8px;
  border: 1px solid rgba(196, 98, 45, 0.55);
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e3a07a;
  white-space: nowrap;
  vertical-align: middle;
}
[data-tier="essential"] .tier-tag {
  display: inline-flex;
}
.section-head .tier-tag {
  margin-left: 12px;
}
.section-head:has(.tier-tag) .aside {
  margin-left: auto;
}
.cv-box__title .tier-tag {
  margin-left: 8px;
}
/* The tag stays readable; only the controls under it are dimmed */
[data-tier="essential"] #card-block > .section-head,
[data-tier="essential"] #about-block > .section-head {
  opacity: 1;
}
[data-tier="essential"] :is(#card-block > :not(.wallet-row):not(.section-head), #about-block > :not(.section-head)) {
  opacity: 0.32;
  pointer-events: none;
  user-select: none;
}
[data-tier="essential"] #card-block,
[data-tier="essential"] #about-block {
  opacity: 1 !important;
  pointer-events: auto !important;
}
[data-tier="essential"] #cv-box {
  opacity: 1 !important;
  pointer-events: none;
}
[data-tier="essential"] #cv-box :is(.notice, .btn) {
  opacity: 0.4;
}

/* ---------- The Essential banner ---------- */
.tier-banner {
  position: relative;
  padding: 18px 20px 18px 22px;
  border-color: rgba(196, 98, 45, 0.35);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(196, 98, 45, 0.12), transparent 55%),
    var(--surface);
}
.tier-banner__label {
  flex: none;
  align-self: flex-start;
  margin-top: 1px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(196, 98, 45, 0.16);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e3a07a;
}
.tier-banner__text {
  flex: 1;
}

/* ---------- Namebook for Essential: no greyed-out map controls ---------- */
[data-tier="essential"] #where-bar,
[data-tier="essential"] #nb-mode-map,
[data-tier="essential"] #nb-map {
  display: none !important;
}
[data-tier="essential"] #nb-list {
  display: block !important;
}

/* ---------- Vault for Essential: a locked showcase, not a dead form ---------- */
.tier-locked {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 560px;
  padding: 40px;
  border: 1px solid rgba(196, 98, 45, 0.35);
  border-radius: 18px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(196, 98, 45, 0.12), transparent 55%),
    var(--surface);
}
[data-tier="essential"] .tier-locked {
  display: flex;
}
.tier-locked__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text);
}
.tier-locked__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.tier-locked__list {
  margin: 4px 0 10px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}
.tier-locked__list li {
  position: relative;
  padding-left: 22px;
}
.tier-locked__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--accent);
}
[data-tier="essential"] #view-vault > :not(.page-head):not(.tier-locked) {
  display: none !important;
}

/* ---------- Get NAMECARD: packages ---------- */
.get-pkg {
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.get-pkg--featured {
  border-color: var(--text);
  background:
    radial-gradient(130% 90% at 50% 0%, rgba(255, 255, 255, 0.05), transparent 60%),
    var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.get-pkg__badge[hidden] {
  display: none;
}
/* Not orderable yet: present, but quiet */
.get-pkg--soon {
  border-style: dashed;
  border-color: var(--line-strong);
  background: transparent;
  box-shadow: none;
}
.get-pkg--soon :is(.get-pkg__amount, .get-pkg__title) {
  color: var(--text-2);
}
.get-pkg--soon .get-pkg__btn:disabled {
  background: none;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  opacity: 1;
}
.get-pkg--free .get-pkg__btn:disabled {
  background: none;
  border-color: var(--line);
  color: var(--muted);
  opacity: 1;
}
.get-feats li::before {
  border-color: var(--faint);
}
.get-pkg--featured .get-feats li::before {
  border-color: var(--text);
  background: var(--text);
  transform: scale(0.75);
}

/* ---------- Get NAMECARD: your plan (Executive) ---------- */
.get-mine {
  gap: 16px;
  padding: 28px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.05), transparent 55%),
    var(--surface);
}
.get-mine__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.get-mine__head .eyebrow {
  margin-bottom: 8px;
}
.get-mine__status {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--text);
}
.get-mine__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6fbf8a;
}
.get-mine__status[data-tone="warn"]::before {
  background: var(--accent);
}
.get-mine__status[data-tone="off"]::before {
  background: var(--faint);
}
.get-mine .shop__plan {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Get NAMECARD: comparison ---------- */
.get-table thead th {
  vertical-align: bottom;
  padding-top: 18px;
  padding-bottom: 16px;
  color: var(--text-2);
}
.get-col--short {
  display: none;
}
.get-group th {
  padding: 26px 12px 10px !important;
  border-bottom: 1px solid var(--line) !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left !important;
}
.get-table tbody tr:not(.get-group) th {
  color: var(--text-2);
}
.get-table tbody tr:not(.get-group):hover td,
.get-table tbody tr:not(.get-group):hover th {
  background: rgba(255, 255, 255, 0.02);
}
.get-yes {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text);
  font-size: 0;
  vertical-align: middle;
}
.get-no {
  display: inline-block;
  width: 10px;
  height: 1px;
  background: var(--faint);
  font-size: 0;
  vertical-align: middle;
}
/* the column of what can be bought today stands out a little */
.get-table td:nth-child(3),
.get-table thead th:nth-child(3) {
  background: rgba(255, 255, 255, 0.025);
}

@media (max-width: 640px) {
  .get-col {
    display: none;
  }
  .get-col--short {
    display: inline;
  }
  .get-soon {
    font-size: 8px;
  }
  .get-table {
    font-size: 13px;
  }
  .get-table th,
  .get-table td {
    padding: 12px 8px;
  }
  .get-table td,
  .get-table thead th:not(:first-child) {
    width: 56px;
  }
  .get-pkg {
    padding: 28px 22px;
  }
  .get-mine {
    padding: 22px;
  }
  .get-mine__head {
    flex-direction: column;
  }
  .tier-locked {
    padding: 28px 22px;
  }
  .tier-locked__title {
    font-size: 25px;
  }
  .tier-banner__label {
    margin-top: 0;
  }
}

/* The older "dim what Essential can't change" rule must not dim these */
[data-tier="essential"] #view-vault > .tier-locked,
[data-tier="essential"] #card-block > .section-head,
[data-tier="essential"] #about-block > .section-head {
  opacity: 1 !important;
  pointer-events: auto !important;
  user-select: auto !important;
}

/* One column (phone, small laptop): what can be bought today comes first */
@media (max-width: 1100px) {
  #pkg-page.get-pkg--featured {
    order: -1;
  }
}
