:root {
  color-scheme: dark;
  --app: #101011;
  --sidebar: #0c0c0d;
  --panel: #141415;
  --surface: #19191a;
  --surface-raised: #202022;
  --hover: #1d1d1f;
  --selected: #29292c;
  --border: #29292b;
  --border-soft: #202022;
  --text: #eeece9;
  --text-secondary: #b4b1ad;
  --text-muted: #777571;
  --accent: #9ea8ff;
  --accent-surface: #272a3f;
  --danger: #ff9797;
  --radius: 10px;
  --radius-small: 7px;
  --page-pad: clamp(14px, 3.5vw, 32px);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--app);
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: var(--app);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.dialog-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
}

svg {
  display: block;
  fill: currentColor;
}

.shell {
  width: min(100%, 960px);
  min-width: 0;
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  min-height: 44px;
  padding: 10px 14px;
  transform: translateY(-140%);
  border: 1px solid var(--accent);
  border-radius: var(--radius-small);
  background: var(--surface-raised);
  color: var(--text);
}

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

a:focus-visible {
  outline: none;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

button:focus-visible,
.button:focus-visible,
.icon-button:focus-visible,
.suggestion-row button:focus-visible,
.social-row a:focus-visible,
.share-grid button:focus-visible,
.share-grid a:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--accent);
  color: var(--accent);
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1024px);
  min-height: 58px;
  margin-inline: auto;
  padding: 8px var(--page-pad);
  border-bottom: 1px solid var(--border);
  background: var(--sidebar);
}

.site-header::before,
.site-header::after {
  content: "";
  position: fixed;
  z-index: -1;
  top: 0;
  bottom: auto;
  width: 100vw;
  height: 58px;
  background: var(--sidebar);
}

.site-header::before {
  right: 100%;
}

.site-header::after {
  left: 100%;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  background: var(--accent-surface);
  color: var(--accent);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.wordmark strong,
.wordmark small {
  display: block;
}

.wordmark strong {
  font-size: 13px;
  font-weight: 680;
  line-height: 1.2;
}

.wordmark small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 620;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}

.icon-button svg {
  width: 17px;
  height: 17px;
}

.icon-button:hover {
  border-color: var(--border);
  background: var(--hover);
  color: var(--text);
}

.hero {
  display: grid;
  gap: 16px;
  padding-block: 24px 40px;
}

.qr-ticket,
.identity-card {
  min-width: 0;
}

.qr-ticket {
  align-self: start;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.ticket-kicker,
.scan-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 680;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ticket-kicker {
  padding: 0 2px 10px;
  border-bottom: 1px solid var(--border-soft);
}

.qr-stage {
  position: relative;
  display: block;
  width: 100%;
  max-width: 330px;
  margin: 12px auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: #f7f6f3;
  cursor: zoom-in;
}

.qr-stage:hover {
  border-color: var(--accent);
}

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

.qr-monogram {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%);
  border: 5px solid #f7f6f3;
  border-radius: var(--radius-small);
  background: var(--accent-surface);
  color: var(--accent);
  font-size: 9px;
  font-weight: 720;
}

.qr-corner {
  position: absolute;
  z-index: 1;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.qr-corner-one {
  top: 7px;
  left: 7px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.qr-corner-two {
  right: 7px;
  bottom: 7px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}

.scan-line {
  min-height: 40px;
  padding: 8px 2px 0;
  border-top: 1px solid var(--border-soft);
}

.scan-line strong {
  color: var(--text-secondary);
  font-weight: 650;
}

.text-button {
  min-height: 40px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 11px;
  font-weight: 620;
  cursor: pointer;
}

.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.identity-card {
  align-self: center;
  padding: 20px 0 0;
}

.profile-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.portrait-frame {
  width: 92px;
  height: 108px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.identity-copy h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(29px, 8vw, 38px);
  font-weight: 735;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.location-line {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
}

.promise {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 450;
  line-height: 1.6;
}

.primary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.button svg {
  width: 16px;
  height: 16px;
}

.button:hover {
  border-color: #3b3b3f;
  background: var(--hover);
  color: var(--text);
}

.button-primary {
  border-color: #596099;
  background: var(--accent);
  color: #111218;
}

.button-primary:hover {
  border-color: #aeb6ff;
  background: #aeb6ff;
  color: #111218;
}

.button-paper {
  background: var(--surface);
}

.direct-actions {
  margin-top: 14px;
  border-top: 1px solid var(--border);
}

.direct-actions > a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border-bottom: 1px solid var(--border-soft);
  text-decoration: none;
}

.direct-actions > a:hover {
  color: var(--text);
}

.direct-actions > a:hover strong {
  color: var(--accent);
}

.direct-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--text-muted);
}

.direct-icon svg {
  width: 15px;
  height: 15px;
}

.direct-actions small,
.direct-actions strong {
  display: block;
}

.direct-actions small {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 680;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.direct-actions strong {
  margin-top: 1px;
  overflow-wrap: anywhere;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.relay-section {
  padding-block: 48px;
  border-block: 1px solid var(--border);
  background: var(--panel);
}

.relay-inner {
  display: grid;
  gap: 20px;
}

.section-number {
  margin: 0;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.relay-heading h2,
.practice-section h2,
.guide-section h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(27px, 5vw, 34px);
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.relay-heading > p {
  max-width: 560px;
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.referral-message {
  margin: 0;
  padding: 16px 0;
  border-block: 1px solid var(--border);
}

.referral-message span {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.referral-message p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

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

.button-light {
  border-color: #596099;
  background: var(--accent);
  color: #111218;
}

.button-outline-light {
  background: var(--surface);
  color: var(--text-secondary);
}

.practice-section,
.guide-section,
.contact-section {
  padding-block: 48px;
}

.practice-section,
.guide-section {
  border-bottom: 1px solid var(--border);
}

.practice-section > .section-number,
.guide-section .section-number,
.contact-section > .section-number {
  margin-bottom: 16px;
}

.section-heading-row {
  display: grid;
  gap: 12px;
}

.section-heading-row > p,
.guide-intro > p:last-child,
.contact-grid > div > p {
  max-width: 520px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.practice-list {
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.practice-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--border-soft);
}

.practice-list span {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 650;
}

.practice-list strong {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 570;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin-top: 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 620;
  text-underline-offset: 3px;
}

.inline-link svg {
  width: 16px;
  height: 16px;
}

.guide-section {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.guide-intro,
.guide-panel {
  min-width: 0;
}

.guide-intro > p:last-child {
  margin-top: 12px;
}

.guide-panel {
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.guide-status {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 560;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #87c79a;
}

.guide-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 170px;
  max-height: 300px;
  overflow-y: auto;
  padding: 14px 12px;
  scrollbar-color: var(--selected) transparent;
  scrollbar-width: thin;
}

.guide-bubble {
  max-width: 88%;
  margin: 0;
  padding: 9px 11px;
  border-radius: var(--radius-small);
  font-size: 12px;
  line-height: 1.55;
}

.guide-bubble-card {
  align-self: flex-start;
  background: var(--surface);
  color: var(--text-secondary);
}

.guide-bubble-user {
  align-self: flex-end;
  background: var(--accent-surface);
  color: var(--text);
}

.suggestion-row {
  display: flex;
  gap: 6px;
  padding: 0 12px 10px;
  overflow-x: auto;
  scrollbar-color: var(--selected) transparent;
  scrollbar-width: thin;
}

.suggestion-row button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: transparent;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 580;
  cursor: pointer;
}

.suggestion-row button:hover {
  background: var(--hover);
  color: var(--text-secondary);
}

.guide-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  margin: 0 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--app);
}

.guide-form:focus-within {
  border-color: var(--accent);
  background: #121218;
}

.guide-form input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  caret-color: var(--accent);
  font-size: 13px;
}

.guide-form input::placeholder {
  color: var(--text-muted);
}

.guide-form button {
  display: grid;
  place-items: center;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
}

.guide-form button svg {
  width: 16px;
  height: 16px;
}

.guide-note {
  margin: 10px 12px 12px;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.5;
}

.contact-section {
  padding-bottom: 64px;
}

.contact-grid {
  display: grid;
  gap: 24px;
}

.contact-grid > div > p {
  margin-top: 12px;
}

address {
  border-top: 1px solid var(--border);
  font-style: normal;
}

address a {
  display: grid;
  gap: 2px;
  min-height: 58px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--border-soft);
  text-decoration: none;
}

address a:hover strong {
  color: var(--accent);
}

address small {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 680;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

address strong {
  overflow-wrap: anywhere;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 580;
  line-height: 1.45;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.social-row a:hover {
  background: var(--hover);
  color: var(--text);
}

.site-footer {
  padding-block: 32px;
  border-top: 1px solid var(--border);
  background: var(--sidebar);
}

.footer-inner {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
}

.footer-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
}

.footer-inner strong {
  font-size: 12px;
  font-weight: 650;
}

.footer-inner p {
  max-width: 680px;
  margin: 8px 0;
  color: var(--text-muted);
  font-size: 10px;
}

.footer-inner nav {
  display: flex;
  gap: 14px;
}

.footer-inner nav a {
  min-height: 40px;
  padding-block: 8px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 560;
  text-underline-offset: 3px;
}

dialog {
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.share-dialog,
.qr-dialog {
  width: 100%;
  height: 100%;
  margin: 0;
}

.share-dialog[open],
.qr-dialog[open] {
  display: grid;
  place-items: center;
  padding: 16px;
}

.dialog-sheet {
  width: min(100%, 520px);
  max-height: calc(100dvh - 32px);
  padding: 16px;
  overflow-y: auto;
  border: 1px solid #3a3a3d;
  border-radius: 16px;
  background: var(--surface-raised);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.48);
}

.dialog-handle {
  display: none;
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dialog-heading h2,
.qr-dialog h2 {
  margin: 0;
  font-size: 27px;
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.share-preview {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.share-preview img {
  width: 46px;
  height: 52px;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: var(--radius-small);
}

.share-preview strong,
.share-preview span {
  display: block;
}

.share-preview strong {
  font-size: 12px;
  font-weight: 650;
}

.share-preview span {
  margin-top: 1px;
  color: var(--text-muted);
  font-size: 9px;
}

.share-copy {
  margin: 14px 0;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.55;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.share-grid button,
.share-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 78px;
  padding: 8px 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--panel);
  color: var(--text-secondary);
  font-size: 9px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.share-grid button:hover,
.share-grid a:hover {
  background: var(--hover);
  color: var(--accent);
}

.share-grid span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-small);
  background: var(--accent-surface);
  color: var(--accent);
  font-size: 13px;
  font-weight: 680;
}

.share-grid strong {
  overflow-wrap: anywhere;
  font-weight: 580;
}

.qr-dialog-sheet {
  position: relative;
  width: min(100%, 460px);
  padding: 24px;
  text-align: center;
}

.qr-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.qr-dialog .eyebrow {
  margin-top: 2px;
}

.qr-stage-large {
  width: min(100%, 340px);
  margin: 18px auto 10px;
  cursor: default;
}

.qr-dialog-sheet > p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 560;
}

.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 20px;
  width: max-content;
  max-width: calc(100% - 28px);
  padding: 9px 12px;
  transform: translate(-50%, 12px);
  border: 1px solid #3a3a3d;
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: var(--text-secondary);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.36);
  font-size: 11px;
  font-weight: 560;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (min-width: 720px) {
  .hero {
    grid-template-columns: minmax(260px, 0.72fr) minmax(360px, 1.28fr);
    align-items: center;
    gap: 32px;
    padding-block: 40px 56px;
  }

  .identity-card {
    padding-top: 0;
  }

  .profile-row {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .portrait-frame {
    width: 108px;
    height: 126px;
  }

  .relay-inner {
    grid-template-columns: 0.76fr 1.24fr;
    gap: 16px 48px;
  }

  .relay-heading,
  .referral-message {
    grid-column: 2;
  }

  .relay-heading {
    grid-row: 1 / span 2;
  }

  .referral-message {
    grid-row: 3;
  }

  .relay-actions {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
  }

  .section-heading-row,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 48px;
  }

  .practice-list {
    margin-left: 22%;
  }

  .guide-section {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
    gap: 48px;
  }

  .guide-intro {
    padding-top: 8px;
  }
}

@media (max-width: 600px) {
  :root {
    --page-pad: 14px;
  }

  .site-header {
    min-height: 56px;
    padding-block: 6px;
  }

  .site-header::before,
  .site-header::after {
    height: 56px;
  }

  .icon-button {
    width: 44px;
    height: 44px;
  }

  .hero {
    padding-block: 16px 36px;
  }

  .qr-ticket {
    padding: 10px;
  }

  .identity-copy h1 {
    font-size: 29px;
  }

  .button,
  .text-button,
  .suggestion-row button,
  .social-row a,
  .footer-inner nav a {
    min-height: 44px;
  }

  .guide-form {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .guide-form input,
  .guide-form button {
    min-height: 44px;
  }

  .guide-form button {
    width: 44px;
  }

  .footer-inner nav a {
    min-width: 44px;
    text-align: center;
  }

  .relay-section,
  .practice-section,
  .guide-section,
  .contact-section {
    padding-block: 36px;
  }

  .contact-section {
    padding-bottom: 48px;
  }

  .share-dialog[open] {
    place-items: end center;
    padding: 0;
  }

  .share-dialog .dialog-sheet {
    width: 100%;
    max-height: calc(100dvh - 16px);
    padding: 10px 14px calc(16px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 16px 16px 0 0;
  }

  .dialog-handle {
    display: block;
    width: 36px;
    height: 4px;
    margin: 0 auto 12px;
    border-radius: 4px;
    background: var(--text-muted);
  }
}

@media (max-width: 380px) {
  .profile-row {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
  }

  .portrait-frame {
    width: 78px;
    height: 92px;
  }

  .identity-copy h1 {
    font-size: 27px;
  }

  .primary-actions {
    grid-template-columns: 1fr;
  }

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

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