:root { color-scheme: light; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif; font-synthesis: none; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; line-height: 1.72; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--profile-accent) 45%, transparent); outline-offset: 2px; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 8px 12px; background: #202b35; color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.icon-button { width: 34px; height: 38px; border: 0; background: transparent; color: var(--profile-muted); font-size: 20px; cursor: pointer; }
.profile-body { --profile-bg: #f3f8fc; --profile-card: #fff; --profile-surface: #fff; --profile-text: #202b35; --profile-muted: #74818d; --profile-border: #e1e9ef; background: var(--profile-bg); color: var(--profile-text); }
.profile-theme-midnight { --profile-bg: #081c31; --profile-card: #102941; --profile-surface: #102941; --profile-text: #f2f7fb; --profile-muted: #92aac0; --profile-border: #24445f; color-scheme: dark; }
.profile-theme-mint { --profile-bg: #edf8f2; --profile-card: #fbfffd; --profile-surface: #fbfffd; --profile-text: #1d352b; --profile-muted: #71877d; --profile-border: #d9e9e1; }
.preview-banner { padding: 9px 20px; background: #fff1c2; color: #664d00; text-align: center; font-size: 13px; font-weight: 700; }
.profile-page { width: min(100% - 36px, 620px); min-height: 100svh; margin: 0 auto; padding: clamp(54px, 9vh, 92px) 0 22px; }
.profile-card { padding: 0; border: 0; background: transparent; }
.share-button { border: 0; padding: 0; background: transparent; color: var(--profile-text); font-weight: 750; cursor: pointer; }
.profile-intro { text-align: center; }
.profile-avatar { width: 104px; height: 104px; margin: 0 auto 22px; display: block; border-radius: 50%; object-fit: cover; border: 1px solid color-mix(in srgb, var(--profile-accent) 35%, var(--profile-border)); box-shadow: 0 0 0 5px color-mix(in srgb, var(--profile-accent) 9%, transparent); }
.profile-avatar-fallback { display: grid; place-items: center; background: var(--profile-accent); color: white; font-size: 40px; font-weight: 800; }
.profile-card h1 { margin: 0; font-size: clamp(30px, 7vw, 38px); line-height: 1.15; letter-spacing: -.045em; }
.profile-headline { margin: 9px 0 0; color: var(--profile-muted); font-size: 14px; font-weight: 650; }
.profile-location { margin: 7px 0 0; color: var(--profile-muted); font-size: 12px; }
.profile-bio { max-width: 510px; margin: 24px auto 0; color: color-mix(in srgb, var(--profile-text) 86%, var(--profile-muted)); font-size: 14px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-bio a { color: var(--profile-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bio-align-left { text-align: left; }
.bio-align-center { text-align: center; }
.bio-align-right { text-align: right; }
.profile-links { display: grid; gap: 10px; margin-top: 34px; }
.profile-link { min-height: 58px; padding: 11px 14px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; border: 1px solid var(--profile-border); border-radius: 15px; background: var(--profile-surface); color: var(--profile-text); text-decoration: none; font-size: 14px; font-weight: 700; box-shadow: 0 1px 2px rgba(23,32,51,.025); transition: transform .15s, border-color .15s, box-shadow .15s; }
.profile-link:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--profile-accent) 45%, var(--profile-border)); box-shadow: 0 7px 24px rgba(23,32,51,.06); }
.profile-link > b { color: var(--profile-muted); font-size: 16px; font-weight: 500; }
.link-kind-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--profile-accent) 11%, var(--profile-surface)); color: var(--profile-accent); font-size: 10px; font-weight: 850; }
.link-icon { width: 18px; height: 18px; display: block; }
.profile-card-actions { margin-top: 24px; padding: 17px 3px 0; border-top: 1px solid var(--profile-border); display: flex; align-items: center; gap: 10px; color: var(--profile-muted); }
.profile-card-actions .profile-url { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; opacity: .62; }
.profile-card-actions .share-button { min-height: 34px; flex: none; margin-left: auto; padding: 7px 14px; border: 1px solid var(--profile-border); border-radius: 999px; background: var(--profile-surface); color: var(--profile-muted); font-size: 11px; line-height: 1; white-space: nowrap; opacity: .86; }
.profile-card-actions .share-button:hover { border-color: var(--profile-accent); color: var(--profile-text); opacity: 1; }
.share-dialog { width: min(100% - 28px, 420px); margin: auto; padding: 0; border: 1px solid var(--profile-border); border-radius: 20px; background: var(--profile-card); color: var(--profile-text); box-shadow: 0 28px 90px rgba(0,0,0,.24); }
.share-dialog::backdrop { background: rgba(10,15,28,.7); backdrop-filter: blur(3px); }
.share-dialog-content { padding: 22px; }
.share-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.share-dialog-heading h2 { margin: 0; font-size: 21px; letter-spacing: -.03em; }
.share-dialog .icon-button { color: var(--profile-muted); }
.share-choice-list { display: grid; gap: 9px; }
.share-choice { width: 100%; min-height: 58px; padding: 10px 13px; display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 11px; border: 1px solid var(--profile-border); border-radius: 13px; background: var(--profile-surface); color: var(--profile-text); text-align: left; text-decoration: none; cursor: pointer; }
.share-choice:hover { border-color: var(--profile-accent); }
.share-choice > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: color-mix(in srgb, var(--profile-accent) 11%, var(--profile-surface)); color: var(--profile-accent); font-size: 17px; font-weight: 800; }
.share-choice b { font-size: 14px; }
.share-choice i { color: var(--profile-muted); font-size: 22px; font-style: normal; }
.share-qr-view { text-align: center; }
.share-dialog-back { display: block; margin: -4px 0 8px; padding: 4px 0; border: 0; background: transparent; color: var(--profile-muted); cursor: pointer; }
.share-qr-view img { display: block; margin: 5px auto 8px; padding: 10px; border-radius: 12px; background: white; }
.share-qr-view p { margin: 0; color: var(--profile-muted); font-size: 12px; }
.profile-footer-actions { padding: 28px 4px 8px; display: flex; justify-content: space-between; color: var(--profile-muted); font-size: 11px; }
.profile-footer-actions a { color: inherit; }
.profile-footer-actions > a:last-child { opacity: .3; }
.small-brand { color: inherit; font-weight: 700; text-decoration: none; opacity: .38; }
.small-brand:hover, .profile-footer-actions > a:last-child:hover { opacity: .7; }

@media (max-width: 560px) {
  .profile-page { width: min(100% - 28px, 620px); min-height: 100svh; margin: 0 auto; padding: 42px 0 18px; }
  .profile-avatar { width: 94px; height: 94px; margin-bottom: 19px; }
  .profile-links { margin-top: 30px; }
  .profile-footer-actions { padding-top: 25px; }
  .share-dialog-content { padding: 19px; }
}

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