/* Membership and personal links extend the original purple visual language. */
.clipboard-fallback { position: fixed; left: 0; top: 0; opacity: 0; }
.title-spark { left: 6.15em; margin-left: 0; }
.brand { font-size: 29px; letter-spacing: -1.5px; }
.brand-dot { font-size: .76em; letter-spacing: -1px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.desktop-nav { gap: 22px; margin-left: 0; }
.desktop-nav a { font-size: 12px; }
.history-button .small-arrow { display: none; }
.login-button, .text-button { border: 0; background: none; color: var(--purple); font-size: 12px; font-weight: 600; padding: 8px 0; }
.login-button:hover, .text-button:hover { color: var(--purple-dark); text-decoration: underline; }
.join-button { border: 0; background: var(--purple); color: white; border-radius: 9px; padding: 12px 16px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 12px; }
.join-button:hover { background: var(--purple-dark); }
.account-button { border: 0; background: none; display: flex; align-items: center; gap: 8px; color: #655575; font-size: 12px; padding: 0; }
#header-name { max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { flex-shrink: 0; width: 33px; height: 33px; border-radius: 50%; background: #e9ddfa; color: #8047c6; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.avatar.large { width: 43px; height: 43px; font-size: 15px; }
.hero { padding-top: 55px; padding-bottom: 52px; }
.hero-art { align-self: center; }
.hero-note { margin-top: 25px; }
.custom-link-box { margin-top: 14px; border: 1px solid #e9e0f5; border-radius: 11px; background: #f5f0fc; padding: 13px 15px 10px; }
.custom-label-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 9px; }
.custom-label-row label { font-size: 11px; margin: 0; color: #79658b; }
.member-badge { color: #9e7bbc; font-size: 7px; letter-spacing: 1px; font-weight: 700; white-space: nowrap; }
.custom-input-row { border: 1px solid #e4d9f0; border-radius: 7px; display: flex; align-items: center; background: #fff; padding: 0 12px; }
.custom-input-row:focus-within { border-color: #a174ea; box-shadow: 0 0 0 3px #7941e611; }
.custom-input-row > span { font-size: 12px; color: #9a87aa; white-space: nowrap; }
.custom-input-row input { width: 100%; min-width: 0; font-size: 12px; border: 0; background: transparent; color: #713bb9; outline: none; padding: 11px 2px; }
.custom-input-row input:disabled { cursor: not-allowed; opacity: .65; }
.custom-input-row input::placeholder { color: #b0a0bd; }
.custom-input-row svg { width: 15px; height: 15px; color: #b493d6; }
.custom-guest { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; gap: 12px; }
.custom-guest > span { font-size: 10px; color: #9c8baa; }
.custom-guest .text-button { font-size: 10px; padding: 6px 0 2px; }
.field-hint { font-size: 10px; color: #95829f; line-height: 1.6; margin: 8px 0 0; }
.slug-status { font-size: 11px; color: #8e719e; margin: 9px 0 1px; line-height: 1.6; }
.slug-status.success { color: #37855e; }
.slug-status.error { color: #b33c53; }
.service-notice { padding: 13px 17px; border-radius: 10px; background: #fff3e6; border: 1px solid #f4dfc1; color: #89633b; font-size: 12px; margin-top: 20px; line-height: 1.7; }
.verification-notice { margin-top: 20px; padding: 13px 17px; border: 1px solid #dfd1f2; border-radius: 11px; background: #f1eafa; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #72528d; }
.verification-notice > div { display: flex; align-items: center; gap: 11px; min-width: 0; }
.verification-notice svg { width: 21px; color: var(--purple); }
.verification-notice span { display: grid; gap: 3px; }
.verification-notice strong { font-size: 12px; color: #654179; }
.verification-notice small { font-size: 10px; line-height: 1.5; color: #907d9d; }
.verification-notice .text-button { flex-shrink: 0; font-size: 10px; }
#auth-dialog { width: min(450px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 32px 37px 23px; }
.auth-close { position: absolute; right: 17px; top: 17px; }
.auth-emblem { background: #eee3ff; color: var(--purple); border-radius: 15px; width: 47px; height: 47px; display: grid; place-items: center; margin-bottom: 21px; }
.auth-emblem svg { width: 27px; height: 27px; }
#auth-title { font-size: 25px; margin-top: 8px; }
.auth-description { color: #8e7d9a; font-size: 12px; line-height: 1.7; margin: 10px 0 18px; }
.auth-preview { border: 1px dashed #ddcaee; border-radius: 9px; background: #f5eefc; padding: 13px 15px; color: #a08aad; display: flex; align-items: center; font-size: 14px; }
.auth-preview strong { color: #8754be; font-weight: 600; }
.auth-preview svg { margin-left: auto; width: 18px; color: #b087d3; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f0eaf6; border-radius: 9px; padding: 4px; margin: 23px 0 20px; gap: 4px; }
.auth-tabs button { padding: 10px; color: #9a89a7; font-size: 12px; border: 0; background: none; border-radius: 6px; font-weight: 600; }
.auth-tabs button.active { background: #fff; color: #8048ba; box-shadow: 0 2px 7px #56346d09; }
.auth-field { margin-bottom: 15px; }
.auth-field label { display: block; font-size: 11px; font-weight: 600; margin-bottom: 8px; color: #6b5b78; }
.auth-label-row { display: flex; justify-content: space-between; align-items: center; }
.auth-label-row .text-button { font-size: 10px; padding: 0 0 8px; }
.auth-field input { display: block; width: 100%; border: 1px solid #e5daed; background: #fff; border-radius: 8px; padding: 12px 13px; font-size: 12px; color: var(--ink); outline: none; }
.auth-field input::placeholder { color: #b0a4b9; }
.auth-field input:focus { border-color: #a174ea; box-shadow: 0 0 0 3px #7941e611; }
.auth-field input[aria-invalid="true"] { border-color: #b33c53; }
.password-input { position: relative; }
.password-input input { padding-right: 65px; }
.password-input button { position: absolute; right: 12px; top: 0; bottom: 0; background: none; border: 0; color: #9986a8; font-size: 10px; padding: 5px; }
.auth-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: var(--purple); color: #fff; border-radius: 8px; padding: 14px 17px; font-size: 12px; font-weight: 600; margin-top: 19px; }
.auth-submit:hover { background: var(--purple-dark); }
.auth-submit svg { width: 17px; height: 17px; }
.auth-footnote { display: flex; justify-content: center; align-items: center; gap: 6px; color: #a899b3; font-size: 10px; margin: 18px 0 0; }
.auth-footnote svg { width: 13px; height: 13px; }
#history-dialog { width: min(720px, calc(100% - 32px)); }
.member-profile { display: flex; align-items: center; gap: 12px; padding: 19px 0 17px; margin-top: 4px; border-bottom: 1px solid var(--line); }
.member-profile > div { display: grid; gap: 5px; min-width: 0; }
.member-profile strong { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.member-profile #profile-email { font-size: 11px; color: #a08faa; overflow-wrap: anywhere; }
.member-profile .text-button { margin-left: auto; font-size: 11px; flex-shrink: 0; }
.history-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-top: 9px; }
.history-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 14px 0 12px; font-size: 11px; color: #a291ae; }
.history-tabs button.active { border-bottom-color: var(--purple); color: var(--purple); }
.dashboard-summary { display: flex; gap: 25px; align-items: center; padding: 16px 19px; background: #f3edf9; border-radius: 11px; margin: 17px 0; }
.dashboard-summary > div { display: grid; gap: 5px; }
.dashboard-summary strong { color: #8053b0; font-size: 23px; font-family: var(--heading); }
.dashboard-summary span { color: #a08bad; font-size: 10px; }
.dashboard-summary .join-button { margin-left: auto; font-size: 11px; }
.dashboard-summary .join-button span { color: white; font-size: 17px; }
.history-item .custom-tag { margin-left: 8px; color: #a178c2; border: 1px solid #eadff3; border-radius: 4px; padding: 2px 5px; font-size: 8px; white-space: nowrap; display: inline-block; }
.load-more { border: 1px solid #e7d9f3; background: white; color: #926cad; border-radius: 8px; font-size: 11px; padding: 10px 18px; display: block; margin: 20px auto 5px; }
.empty-state .copy-button { margin: 18px auto 0; }
.history-error { padding: 20px; color: #a05b70; font-size: 12px; line-height: 1.8; }
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 25px; text-align: center; }
.error-page .brand { justify-content: center; margin-bottom: 70px; }
.error-page h1 { font-size: clamp(26px, 5vw, 50px); letter-spacing: -1.5px; margin: 20px 0; white-space: normal; }
.error-page p { font-size: 14px; color: var(--muted); line-height: 1.8; }
.error-page .shorten-button { width: max-content; margin: 30px auto; }
@media (max-width: 1100px) {
  .desktop-nav { gap: 17px; }
  .desktop-nav a:last-child { display: none; }
  .header-actions { gap: 10px; }
  .brand { font-size: 27px; }
  .form-perks { gap: 8px; }
  .form-perks span { font-size: 8px; }
}
@media (max-width: 800px) {
  .desktop-nav { display: none; }
  .form-perks span { font-size: 10px; }
  .hero { padding-top: 40px; }
}
@media (max-width: 540px) {
  .site-header { flex-wrap: wrap; height: auto; padding: 19px 0 15px; gap: 15px; }
  .brand { font-size: 27px; }
  .header-actions { gap: 14px; width: 100%; justify-content: flex-end; }
  .history-button { margin-right: auto; }
  .join-button { padding: 10px 14px; }
  .account-button { margin-left: auto; }
  #header-name { max-width: 115px; }
  .hero { padding-top: 32px; }
  .hero-note { margin-top: 21px; }
  .form-perks { gap: 9px; }
  .form-perks span { font-size: 8px; }
  .custom-link-box { padding: 12px; }
  .custom-label-row label { font-size: 10px; }
  .member-badge { font-size: 6px; }
  #auth-dialog { padding: 26px 23px 22px; max-height: 90vh; }
  #auth-title { font-size: 24px; }
  .auth-emblem { margin-bottom: 17px; }
  .auth-preview { font-size: 13px; }
  .auth-tabs { margin: 18px 0; }
  .dashboard-summary { flex-wrap: wrap; gap: 15px 25px; padding: 14px; }
  .dashboard-summary .join-button { width: 100%; justify-content: space-between; }
  .history-item { align-items: flex-start; }
  .history-item .custom-tag { margin: 5px 0 0; display: block; width: max-content; }
  .member-profile .text-button { font-size: 10px; }
  .verification-notice { align-items: flex-start; flex-direction: column; }
  .history-tabs { gap: 19px; }
  .history-tabs button { font-size: 10px; }
}
