:root {
  color-scheme: dark;
  --ink: #f6f7f2;
  --muted: #a8aaa2;
  --line: rgba(255, 255, 255, 0.13);
  --panel: rgba(255, 255, 255, 0.055);
  --accent: #c8ff48;
  --page: #0d0f0f;
  --soft-black: #141717;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(180deg, #111414 0%, var(--page) 52%, #090b0b 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

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

button { font: inherit; }

a { color: inherit; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(100px);
  opacity: .10;
  pointer-events: none;
}

.ambient-one { top: -10rem; left: -12rem; background: var(--accent); }
.ambient-two { top: 35rem; right: -16rem; background: #5d8cff; opacity: .07; }

.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  padding: max(1rem, env(safe-area-inset-top)) 1.25rem 0;
}

.brand-mark, .footer-mark {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  color: #111;
  background: var(--accent);
  font-weight: 850;
  font-size: .84rem;
  letter-spacing: -.05em;
  text-decoration: none;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.icon-button svg { width: 1.2rem; fill: currentColor; }

main { max-width: 72rem; margin: 0 auto; }

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4.3rem 1.25rem 5rem;
  text-align: center;
}

.eyebrow, .section-kicker {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: .55rem; }
.eyebrow span { width: .42rem; height: .42rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 1rem var(--accent); }

.avatar {
  display: grid;
  place-items: center;
  width: 6rem;
  height: 6rem;
  margin-bottom: 1.65rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  color: #111;
  background: radial-gradient(circle at 30% 25%, #efffc5 0, var(--accent) 52%, #96c52e 100%);
  box-shadow: 0 0 0 .55rem rgba(255, 255, 255, .035), 0 1.5rem 5rem rgba(0, 0, 0, .45);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -.06em;
}

h1, h2, p { margin-top: 0; }

h1 {
  max-width: 17ch;
  margin-bottom: .65rem;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(3.1rem, 11vw, 6.7rem);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.055em;
}

.role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin-bottom: 1.4rem;
  color: #d9dbd3;
  font-size: .96rem;
  font-weight: 650;
}

.role i { width: .22rem; height: .22rem; border-radius: 50%; background: #676b66; }

.tagline {
  max-width: 32rem;
  margin-bottom: 2.15rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.primary-action {
  display: flex;
  align-items: center;
  gap: .9rem;
  width: min(100%, 23rem);
  padding: .82rem 1.1rem .82rem .82rem;
  border: 0;
  border-radius: 1.1rem;
  color: #111;
  background: var(--accent);
  box-shadow: 0 1rem 3rem rgba(200, 255, 72, .12);
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease;
}

.primary-action:active { transform: scale(.985); }
.primary-action:hover { filter: brightness(1.04); }
.primary-action[disabled] { opacity: .65; cursor: wait; }

.button-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: .8rem;
  background: rgba(0, 0, 0, .1);
}

.button-icon svg { width: 1.28rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.primary-action strong, .primary-action small { display: block; }
.primary-action strong { font-size: 1rem; }
.primary-action small { margin-top: .15rem; color: rgba(0, 0, 0, .64); font-size: .75rem; font-weight: 620; }

.quick-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.25rem;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.8rem;
  padding: .65rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d9dbd3;
  background: rgba(255, 255, 255, .035);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

.quick-action svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.card-section, .details-section {
  padding: 4.5rem 1.25rem;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.4rem;
}

.section-kicker { margin-bottom: .85rem; color: var(--accent); }

h2 {
  max-width: 14ch;
  margin-bottom: 0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(2.3rem, 7vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.045em;
}

.section-heading > p {
  max-width: 15rem;
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}

.card-stage {
  display: block;
  width: 100%;
  max-width: 56rem;
  aspect-ratio: 1.75;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 1.3rem;
  background: transparent;
  perspective: 1300px;
  cursor: pointer;
}

.business-card {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .65s cubic-bezier(.2, .75, .2, 1);
}

.business-card.flipped { transform: rotateY(180deg); }

.card-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 1.3rem;
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, .45);
  backface-visibility: hidden;
}

.card-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-back { transform: rotateY(180deg); }

.card-controls {
  display: flex;
  width: fit-content;
  margin: 1.5rem auto 0;
  padding: .28rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
}

.side-button {
  min-width: 5rem;
  padding: .55rem .9rem;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: .8rem;
  font-weight: 750;
  cursor: pointer;
}

.side-button.active { color: #111; background: var(--accent); }

.download-row { display: flex; justify-content: center; gap: 1.2rem; margin-top: 1.25rem; }
.download-row a { color: var(--muted); font-size: .78rem; text-underline-offset: .25rem; }

.share-section {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 4rem;
  margin: 1rem 1.25rem 5rem;
  padding: clamp(2rem, 6vw, 5rem);
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  box-shadow: inset 0 1px rgba(255, 255, 255, .07);
}

.share-copy > p:not(.section-kicker) { max-width: 32rem; margin: 1.45rem 0 1.8rem; color: var(--muted); line-height: 1.7; }

.secondary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 3.15rem;
  padding: .7rem 1rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  color: var(--ink);
  background: rgba(255, 255, 255, .06);
  font-weight: 760;
  cursor: pointer;
}

.secondary-action svg { width: 1.05rem; fill: currentColor; }

.qr-shell {
  width: min(100%, 21rem);
  margin: 0 auto;
  padding: 1.15rem 1.15rem .9rem;
  border-radius: 1.4rem;
  background: #f8f9f4;
  box-shadow: 0 1.8rem 5rem rgba(0, 0, 0, .35);
}

.qr-shell img { display: block; width: 100%; height: auto; }
.qr-shell span { display: block; padding: .55rem .25rem 0; color: #151716; font-size: .66rem; font-weight: 850; letter-spacing: .19em; text-align: center; }
.qr-shell .qr-download { display: block; width: fit-content; margin: .75rem auto .1rem; color: #30342f; font-size: .75rem; font-weight: 720; text-underline-offset: .22rem; }

.details-section h2 { margin-bottom: 2.4rem; }

.contact-list { margin: 0; }

.detail-row {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.detail-row dt { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.detail-row dd { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.detail-row a { text-decoration-color: rgba(255,255,255,.3); text-underline-offset: .25rem; }

footer {
  display: flex;
  align-items: center;
  gap: .9rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem max(2.5rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.footer-mark { width: 2.4rem; height: 2.4rem; font-size: .7rem; }
footer p { display: flex; flex-direction: column; margin: 0; font-size: .82rem; }
footer p span { margin-top: .18rem; color: var(--muted); font-size: .72rem; }
footer button { margin-left: auto; padding: .55rem 0; border: 0; color: var(--muted); background: transparent; font-size: .76rem; text-decoration: underline; text-underline-offset: .24rem; cursor: pointer; }

.footer-share {
  min-height: 2.65rem;
  padding: .65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, .055);
  font-size: .82rem;
  font-weight: 760;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}

.footer-share:hover { background: rgba(255, 255, 255, .09); }
.footer-share:active { transform: scale(.97); }

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  max-width: calc(100vw - 2rem);
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  color: #111;
  background: var(--accent);
  box-shadow: 0 .8rem 2.5rem rgba(0, 0, 0, .35);
  font-size: .84rem;
  font-weight: 760;
  transform: translate(-50%, 160%);
  transition: transform .25s ease;
}

.toast.show { transform: translate(-50%, 0); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

@media (max-width: 720px) {
  .hero { padding-top: max(3rem, calc(env(safe-area-inset-top) + 2rem)); }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 1rem; }
  .card-stage, .card-face { border-radius: .8rem; }
  .share-section { grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 3.5rem; border-radius: 1.35rem; }
  .share-copy { text-align: center; }
  .share-copy h2, .share-copy > p:not(.section-kicker) { margin-left: auto; margin-right: auto; }
  .secondary-action { width: 100%; }
  .detail-row { grid-template-columns: 1fr; gap: .35rem; }
}

@media (max-width: 430px) {
  h1 { font-size: 3.7rem; }
  .card-section, .details-section { padding-top: 3.6rem; padding-bottom: 3.6rem; }
  .share-section { margin-left: .8rem; margin-right: .8rem; padding: 1.5rem; }
  .download-row { gap: .8rem; }
}

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

/* Owner editor */
.editor-page {
  width: min(100% - 2rem, 76rem);
  max-width: 76rem;
  margin: 0 auto;
  padding: 3rem 0 8rem;
}

.editor-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0 2.5rem;
}

.editor-kicker { margin: 0 0 .75rem; color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.editor-header h1, .access-card h1 { max-width: none; margin: 0; font-size: clamp(2.7rem, 7vw, 5.5rem); }
.editor-header > div > p:last-child, .access-card > p { max-width: 42rem; margin: 1rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.editor-header-actions { display: flex; gap: .65rem; flex: none; }
.editor-header-actions a, .text-link { padding: .72rem .9rem; border: 1px solid var(--line); border-radius: .75rem; color: var(--ink); background: var(--panel); font-size: .82rem; font-weight: 720; text-decoration: none; }

.editor-grid { display: grid; gap: 1rem; }
.editor-panel { padding: clamp(1.25rem, 4vw, 2.4rem); border: 1px solid var(--line); border-radius: 1.35rem; background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.025)); box-shadow: inset 0 1px rgba(255,255,255,.05); }
.panel-heading { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.8rem; }
.panel-heading > span { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; flex: none; border-radius: 50%; color: #101310; background: var(--accent); font-size: .72rem; font-weight: 900; }
.panel-heading h2 { margin: 0 0 .35rem; max-width: none; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 1.45rem; font-weight: 760; letter-spacing: -.025em; }
.panel-heading p { margin: 0; color: var(--muted); font-size: .88rem; }

.fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: .48rem; }
.field-wide { grid-column: 1 / -1; }
.field > span { color: #cfd1ca; font-size: .78rem; font-weight: 720; }
.field input:not([type="color"]), .field textarea { width: 100%; border: 1px solid var(--line); border-radius: .75rem; padding: .82rem .9rem; color: var(--ink); background: rgba(0,0,0,.22); font: inherit; font-size: .95rem; outline: none; }
.field textarea { resize: vertical; min-height: 5.5rem; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field input[type="color"] { width: 100%; min-height: 3rem; padding: .25rem; border: 1px solid var(--line); border-radius: .75rem; background: rgba(0,0,0,.22); }

.toggle-list { display: grid; gap: .6rem; margin-top: 1.4rem; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: .8rem; background: rgba(255,255,255,.025); cursor: pointer; }
.toggle-row span { display: grid; gap: .2rem; }
.toggle-row strong { font-size: .9rem; }
.toggle-row small { color: var(--muted); font-size: .75rem; }
.toggle-row input { width: 2.6rem; height: 1.45rem; appearance: none; border: 1px solid var(--line); border-radius: 999px; background: #252928; cursor: pointer; position: relative; transition: .2s; }
.toggle-row input::after { content: ""; position: absolute; top: .18rem; left: .18rem; width: .95rem; height: .95rem; border-radius: 50%; background: #a9ada7; transition: .2s; }
.toggle-row input:checked { background: var(--accent); }
.toggle-row input:checked::after { left: 1.35rem; background: #101310; }

.upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.upload-card { overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: rgba(0,0,0,.22); cursor: pointer; }
.upload-card img { display: block; width: 100%; aspect-ratio: 1.75; object-fit: cover; background: #101212; }
.upload-card > span { display: grid; gap: .18rem; padding: .9rem 1rem; }
.upload-card strong { font-size: .9rem; }
.upload-card small { color: var(--muted); font-size: .75rem; }
.upload-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-card-profile { grid-column: 1 / -1; display: grid; grid-template-columns: 8rem 1fr; align-items: center; }
.upload-card-profile img { width: 8rem; aspect-ratio: 1; border-right: 1px solid var(--line); }
.upload-card-profile > span { padding: 1.2rem; }
.upload-card-profile small { max-width: 36rem; line-height: 1.5; }

.nfc-panel { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), rgba(255,255,255,.025)); }
.nfc-steps { display: grid; gap: .85rem; margin: 0; padding: 0; list-style: none; counter-reset: nfc; }
.nfc-steps li { display: grid; grid-template-columns: 1.7rem 1fr; gap: .7rem; align-items: start; counter-increment: nfc; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.nfc-steps li::before { content: counter(nfc); display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); font-size: .7rem; font-weight: 850; }
.nfc-steps li strong, .nfc-steps li span, .nfc-steps li code { grid-column: 2; }
.nfc-steps li span { margin-top: -.45rem; }
.nfc-steps code { display: block; overflow-wrap: anywhere; margin-top: -.35rem; padding: .65rem .75rem; border-radius: .6rem; color: var(--ink); background: rgba(0,0,0,.25); font-size: .78rem; }
.copy-url { margin: 1.25rem 0 0 2.4rem; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: .75rem; color: var(--ink); background: var(--panel); font-weight: 750; cursor: pointer; }

.save-bar { position: sticky; z-index: 20; bottom: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem .8rem .8rem 1.1rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(17,20,20,.88); backdrop-filter: blur(20px); box-shadow: 0 1.2rem 4rem rgba(0,0,0,.4); }
.save-bar p { margin: 0; color: var(--muted); font-size: .8rem; }
.save-button { min-height: 3rem; padding: .75rem 1.15rem; border: 0; border-radius: .75rem; color: #101310; background: var(--accent); font-weight: 850; cursor: pointer; }
.save-button:disabled { opacity: .6; cursor: wait; }

.access-card { width: min(100%, 42rem); margin: 10vh auto 0; padding: clamp(1.5rem, 5vw, 3rem); border: 1px solid var(--line); border-radius: 1.4rem; background: var(--panel); }
.access-card .text-link { display: inline-block; margin-top: 1.4rem; }

@media (max-width: 680px) {
  .editor-page { width: min(100% - 1.2rem, 76rem); padding-top: 1rem; }
  .editor-header { display: grid; }
  .editor-header-actions { width: 100%; }
  .editor-header-actions a { flex: 1; text-align: center; }
  .fields-grid, .upload-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .upload-card-profile { grid-column: auto; grid-template-columns: 6.5rem 1fr; }
  .upload-card-profile img { width: 6.5rem; }
  .save-bar { align-items: stretch; flex-direction: column; }
  .save-button { width: 100%; }
}

[hidden] { display: none !important; }
.top-actions { display: flex; align-items: center; gap: .55rem; }
.install-pwa { color: #111; background: var(--accent); font-size: 1.35rem; font-weight: 500; }
.share-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.nfc-action { color: #111; border-color: var(--accent); background: var(--accent); }

.nfc-dialog {
  width: min(calc(100% - 2rem), 36rem);
  padding: clamp(1.4rem, 5vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  color: var(--ink);
  background: #151818;
  box-shadow: 0 2rem 8rem rgba(0,0,0,.65);
}
.nfc-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(7px); }
.nfc-dialog h2 { max-width: 12ch; margin-bottom: 1rem; font-size: clamp(2rem, 9vw, 3.5rem); }
.nfc-dialog > p:not(.section-kicker) { color: var(--muted); line-height: 1.65; }
.nfc-dialog code { display: block; overflow-wrap: anywhere; margin: 1rem 0; padding: .75rem; border: 1px solid var(--line); border-radius: .7rem; color: var(--ink); background: rgba(0,0,0,.25); font-size: .78rem; }
.dialog-close { position: absolute; top: .75rem; right: .75rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; font-size: 1.4rem; cursor: pointer; }
.compact-action { width: 100%; margin: 1rem 0; text-align: center; justify-content: center; }
.dialog-note { margin-bottom: 0; font-size: .78rem; }

.login-page { display: grid; place-items: center; min-height: 100vh; max-width: none; padding: 1.25rem; }
.login-card { width: min(100%, 31rem); padding: clamp(1.5rem, 6vw, 2.7rem); border: 1px solid var(--line); border-radius: 1.4rem; background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.025)); box-shadow: 0 2rem 7rem rgba(0,0,0,.42); }
.login-card .brand-mark { margin-bottom: 2.2rem; }
.login-card h1 { margin: 0 0 1rem; font-family: ui-serif, Georgia, serif; font-size: clamp(2.5rem, 9vw, 4rem); line-height: .98; letter-spacing: -.05em; }
.login-card > p:not(.editor-kicker) { color: var(--muted); line-height: 1.6; }
.login-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.form-status { min-height: 1.2rem; margin: 0; color: #ffc17c; font-size: .82rem; }
.back-link { display: inline-block; margin-top: 1.4rem; color: var(--muted); font-size: .78rem; text-underline-offset: .25rem; }
.editor-header-actions button { padding: .72rem .9rem; border: 1px solid var(--line); border-radius: .75rem; color: var(--ink); background: var(--panel); font-size: .82rem; font-weight: 720; cursor: pointer; }

@media (max-width: 720px) {
  .share-actions { display: grid; }
  .share-actions .secondary-action { width: 100%; }
}

/* Minimal public card layout */
.hero {
  padding-bottom: 2.65rem;
}

.hero .role {
  margin-bottom: 0;
}

.minimal-card-section {
  padding-top: 0;
  padding-bottom: 2.75rem;
  border-top: 0;
}

.connect-section {
  display: grid;
  grid-template-areas:
    "qr primary"
    "qr secondary";
  grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(1.5rem, 5vw, 4rem);
  row-gap: 1.25rem;
  margin: 0 1.25rem 4rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
  box-shadow: inset 0 1px rgba(255,255,255,.045);
}

.qr-minimal {
  grid-area: qr;
  width: min(100%, 14rem);
  margin: 0;
  padding: .7rem;
  border-radius: 1rem;
  background: #f8f9f4;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .24);
}

.qr-minimal img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-panel {
  min-width: 0;
}

.contact-primary {
  grid-area: primary;
}

.contact-secondary {
  grid-area: secondary;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.connect-section .detail-row {
  grid-template-columns: 7rem minmax(0, 1fr);
  padding: 0;
  border-bottom: 0;
}

.contact-primary .detail-row + .detail-row {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.contact-secondary .contact-list {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: 1.5rem;
}

.connect-section .detail-row dt {
  padding-top: .12rem;
  font-size: .875rem;
}

.connect-section .detail-row dd {
  font-size: 1rem;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .hero {
    padding-bottom: 2.25rem;
  }

  .minimal-card-section {
    padding-bottom: 2.25rem;
  }

  .connect-section {
    grid-template-areas:
      "qr primary"
      "secondary secondary";
    grid-template-columns: 7.5rem minmax(0, 1fr);
    align-items: start;
    gap: 1.1rem 1rem;
    margin: 0 .65rem 3rem;
    padding: 1rem;
    border-radius: 1.15rem;
  }

  .qr-minimal {
    width: 7.5rem;
    margin: 0;
    padding: .5rem;
    border-radius: .85rem;
  }

  .contact-panel {
    width: 100%;
  }

  .connect-section .detail-row {
    grid-template-columns: 1fr;
    gap: .28rem;
    padding: 0;
  }

  .contact-primary .detail-row + .detail-row {
    margin-top: .9rem;
    padding-top: .9rem;
  }

  .contact-secondary {
    padding-top: 1rem;
  }

  .contact-secondary .contact-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-secondary .detail-row + .detail-row {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }

  .connect-section .detail-row dt {
    font-size: .875rem;
  }

  .connect-section .detail-row dd {
    font-size: clamp(.9rem, 4vw, 1rem);
    line-height: 1.35;
  }
}
