.identity-mode { --identity-paper: #fff8e9; --identity-ink: #24271f; --identity-muted: #717365; --identity-lime: #d3f45b; color: var(--identity-ink); background: var(--identity-paper); }
.identity-header { max-width: 530px; margin: auto; padding: 14px 22px 8px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.identity-header > .identity-text { font-family: "Youqi Display", sans-serif; font-size: 23px; color: var(--identity-ink); padding: 0; min-height: 32px; }
.identity-header > span { font-size: 10px; color: var(--identity-muted); }
.identity-main { max-width: 530px; width: 100%; margin: auto; padding: 20px 22px 35px; overflow-wrap: anywhere; }
.identity-mode h1, .identity-mode h2 { font-family: "Youqi Display", -apple-system, "PingFang SC", sans-serif; font-weight: 400; color: var(--identity-ink); }
.identity-primary { display: block; width: 100%; min-height: 54px; padding: 10px 12px; border: 2px solid var(--identity-ink); border-radius: 8px; color: var(--identity-ink); background: var(--identity-lime); box-shadow: 3px 4px 0 var(--identity-ink); font-family: "Youqi Display", -apple-system, "PingFang SC", sans-serif; font-size: 25px; line-height: 1.3; text-align: center; }
.identity-primary:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 2px 0 var(--identity-ink); }
.identity-primary:disabled { opacity: .5; box-shadow: none; }
.identity-secondary { display: block; width: 100%; padding: 11px 8px; min-height: 44px; border: 0; background: transparent; color: var(--identity-ink); font-size: 14px; font-weight: 600; margin-top: 8px; text-align: center; }
.identity-text { border: 0; background: transparent; color: var(--identity-muted); min-height: 44px; font-size: 12px; padding: 10px 0; }
.identity-tiny { font-size: 10px; line-height: 1.7; color: var(--identity-muted); }
.identity-center { text-align: center; }
.identity-kicker { font-size: 12px; color: var(--identity-muted); margin-bottom: 13px; }
.identity-home { display: flex; flex-direction: column; min-height: calc(100svh - 135px); }
.identity-home h1 { font-size: clamp(46px, 14.2vw, 67px); line-height: 1.16; letter-spacing: -.025em; }
.identity-home h1 > span { display: inline-block; padding: 1px 7px 6px; margin-top: 8px; border: 2px solid var(--identity-ink); background: var(--identity-lime); transform: rotate(-2deg); }
.identity-home-copy { margin-top: 20px; font-size: 15px; line-height: 1.65; font-weight: 550; }
.identity-portrait { width: 100%; height: 166px; display: block; object-fit: contain; margin: 0 auto; }
.identity-home-portrait { width: 190px; max-width: 90%; height: 160px; margin-top: 8px; margin-bottom: 10px; }
.identity-home-bottom { margin-top: auto; }
.identity-home-bottom > .identity-tiny { margin-top: 13px; }
.identity-home-links { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; }
.identity-home-links .identity-text { font-size: 11px; min-height: 34px; padding: 6px 0; }
.identity-history { text-align: center; color: var(--identity-muted); font-size: 11px; }
.identity-history .identity-text { font-size: 11px; margin: 0 8px; }
.identity-footer { max-width: 530px; margin: auto; padding: 0 20px 17px; text-align: center; color: var(--identity-muted); font-size: 10px; }
.identity-question-top { display: flex; align-items: center; justify-content: space-between; margin: -12px 0 10px; }
.identity-question-top > strong { font-size: 23px; }
.identity-question-top > strong > span { font-size: 12px; color: var(--identity-muted); font-weight: 400; }
.identity-question progress { height: 4px; background: #e8e6d9; }
.identity-question progress::-webkit-progress-value { background: var(--identity-ink); }
.identity-question progress::-moz-progress-bar { background: var(--identity-ink); }
.identity-question-hint { font-size: 11px; color: var(--identity-muted); margin: 24px 0 17px; }
.identity-question h1 { font-family: -apple-system, "PingFang SC", sans-serif; font-size: clamp(24px, 6.5vw, 30px); font-weight: 750; line-height: 1.45; min-height: 100px; letter-spacing: -.03em; }
.identity-options { display: grid; gap: 12px; margin-top: 26px; }
.identity-options > button { display: flex; align-items: center; gap: 12px; min-height: 64px; width: 100%; padding: 14px; border: 1.5px solid #a1a58e; border-radius: 10px; color: var(--identity-ink); background: #fffdf5; font-size: 16px; line-height: 1.5; text-align: left; }
.identity-options > button > span { display: grid; place-items: center; width: 24px; height: 26px; border-radius: 4px; background: #efeee1; flex-shrink: 0; font-size: 12px; font-weight: 750; }
.identity-options > button[aria-pressed="true"] { border-color: var(--identity-ink); background: var(--identity-lime); }
.identity-options > button:disabled { opacity: 1; }
.identity-question-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.identity-question-footer > span { font-size: 11px; color: var(--identity-muted); }
.identity-card { padding: 17px 17px 19px; border: 2px solid var(--identity-ink); border-radius: 17px; text-align: center; }
.identity-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; font-size: 10px; color: var(--identity-muted); }
.identity-card-top > b { background: var(--identity-lime); padding: 2px 6px; border-radius: 4px; color: var(--identity-ink); font-size: 10px; letter-spacing: .08em; }
.identity-person-label { font-size: 10px; color: var(--identity-muted); margin-top: 12px; }
.identity-card .identity-person { font-size: clamp(29px, 8.5vw, 38px); line-height: 1.14; margin-top: 4px; letter-spacing: -.025em; }
.identity-card-tie { font-size: 10px; line-height: 1.5; margin: 5px 0 2px; color: var(--identity-muted); }
.identity-card .identity-alias { font-size: clamp(36px, 11.6vw, 52px); line-height: 1.18; margin: 7px -8px 0; letter-spacing: -.025em; text-wrap: balance; }
.identity-one-liner { font-size: 16px; font-weight: 650; line-height: 1.5; text-wrap: balance; margin-top: 2px; }
.identity-result-actions { margin: 18px 3px 23px 0; }
.identity-result-actions .identity-tiny { margin-top: 13px; }
.identity-tie-hint { padding: 8px 0 12px; margin-top: -10px; }
.identity-proof, .identity-details { border-top: 1px solid #b9bfaa; padding: 15px 0; margin-top: 5px; }
.identity-proof > summary, .identity-details > summary { list-style: none; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 650; }
.identity-proof > summary::-webkit-details-marker, .identity-details > summary::-webkit-details-marker { display: none; }
.identity-proof > summary > b, .identity-details > summary > b { font-weight: 400; font-size: 18px; }
.identity-description { font-size: 13px; line-height: 1.85; margin-top: 16px; }
.identity-match-statement { font-size: 12px; line-height: 1.8; margin-top: 16px; color: var(--identity-muted); }
.identity-proof > ul { padding-left: 20px; margin: 13px 0 20px; font-size: 12px; line-height: 1.85; }
.identity-scene { border-left: 2px solid #b0ba96; padding-left: 12px; margin-top: 18px; }
.identity-scene > span { font-size: 10px; color: var(--identity-muted); }
.identity-scene > p { font-size: 12px; line-height: 1.85; margin-top: 5px; }
.identity-scene > a { font-size: 12px; }
.identity-scene > p.identity-tiny { font-size: 10px; }
.identity-tied { font-size: 12px; line-height: 1.8; background: #efefd9; border-radius: 6px; padding: 10px 12px; margin-top: 15px; }
.identity-dimensions article { padding: 19px 0; border-bottom: 1px solid #e4e3d4; }
.identity-dimension-heading { display: flex; align-items: center; gap: 11px; }
.identity-dimension-portrait { width: 42px; height: 46px; flex-shrink: 0; margin: 0; }
.identity-dimension-heading > div { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.identity-dimension-heading span { font-size: 10px; color: var(--identity-muted); }
.identity-category-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 13px 0 11px; }
.identity-category-list > span { font-size: 10px; border: 1px solid #c2c7b4; border-radius: 5px; padding: 3px 7px; color: var(--identity-muted); }
.identity-category-list > span.is-active { background: var(--identity-lime); border-color: var(--identity-ink); color: var(--identity-ink); }
.identity-dimensions article > p { color: var(--identity-muted); font-size: 12px; line-height: 1.75; }
.identity-details > .identity-tiny { margin-top: 14px; }
.identity-invitation { font-size: 13px; font-weight: 550; margin: -5px 0 15px; }
.identity-share h1 { font-size: 38px; line-height: 1.25; margin: 10px 0 21px; }
.identity-share-opening { font-size: 15px; line-height: 1.75; margin-bottom: 24px; }
.identity-share .identity-secondary { border: 1px solid #b3baa3; border-radius: 7px; margin-top: 15px; }
.identity-prepare { margin-top: 15px; }
.identity-manual, .identity-manual-link { margin-top: 21px; font-size: 12px; }
.identity-manual textarea, .identity-manual-link textarea { display: block; width: 100%; min-height: 100px; margin-top: 10px; padding: 12px; border: 1px solid #a4ac96; border-radius: 7px; color: var(--identity-ink); background: #fffdf5; font-size: 12px; line-height: 1.7; resize: vertical; }
.identity-image-preview { margin-top: 23px; font-size: 12px; }
.identity-image-preview img { display: block; width: 100%; height: auto; border-radius: 8px; margin-top: 12px; }
.identity-share-privacy { margin-top: 23px; }
.identity-notice { padding: 10px 12px; margin-bottom: 16px; font-size: 12px; line-height: 1.75; border-left: 3px solid #71844f; background: #edf0d8; }
.identity-error { border-color: #a45133; background: #f9e7df; }
@media (max-width: 350px) {
  .identity-header { padding-left: 18px; padding-right: 18px; }
  .identity-main { padding-left: 18px; padding-right: 18px; }
  .identity-primary { font-size: 22px; }
  .identity-card { padding-left: 13px; padding-right: 13px; }
  .identity-one-liner { font-size: 14px; }
  .identity-options > button { padding: 12px; font-size: 15px; }
}
@media (max-height: 680px) {
  .identity-main { padding-top: 12px; }
  .identity-view-home { padding-top: 10px; padding-bottom: 15px; }
  .identity-home .identity-kicker { margin-bottom: 9px; }
  .identity-home h1 { font-size: clamp(44px, 13.5vw, 61px); }
  .identity-home-copy { margin-top: 15px; font-size: 14px; }
  .identity-home-portrait { height: 110px; margin-top: 4px; margin-bottom: 6px; }
  .identity-home-bottom > .identity-tiny { margin-top: 10px; }
  .identity-question-hint { margin-top: 17px; }
  .identity-question h1 { min-height: 87px; }
  .identity-options { margin-top: 18px; gap: 10px; }
  .identity-card { padding-top: 13px; padding-bottom: 15px; }
  .identity-card .identity-portrait { height: 123px; }
  .identity-card .identity-alias { margin-top: 5px; }
  .identity-person-label { margin-top: 9px; }
  .identity-result-actions { margin-top: 15px; margin-bottom: 17px; }
}
