:root { color-scheme: light; --ink: #202124; --muted: #6f737b; --line: #e4e7ec; --paper: #fbfaf8; --accent: #125b52; --accent-soft: #e6f0ed; --warm: #f2e7d6; --danger: #a43b32; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; }
button, input, select, textarea { font: inherit; }
.shell { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 72px 0 40px; }
.hero { padding: 12px 8px 36px; }
.hero.compact { padding-bottom: 24px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
h1 { margin: 0; font-size: clamp(38px, 8vw, 72px); line-height: 1.02; letter-spacing: -.06em; }
h1 span { color: var(--accent); }
h2, h3 { margin: 0; letter-spacing: -.035em; }
.lead { max-width: 580px; margin: 24px 0 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-bridge { max-width: 580px; margin: 14px 0 0; color: var(--accent); font-size: 13px; font-weight: 800; line-height: 1.6; }
.hero-link { margin: 18px 0 0; font-size: 13px; font-weight: 800; }
.hero-link a, .inline-link, footer a { color: var(--accent); text-decoration: none; }
.panel { margin: 18px 0; padding: 28px; background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 12px 40px rgba(33, 35, 39, .06); }
.hidden { display: none; }
.panel-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 24px; }
.status-pill { white-space: nowrap; padding: 7px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; }
.consent-list { display: grid; gap: 12px; }
.consent-row { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.consent-row:has(input:checked) { border-color: var(--accent); background: #f5faf8; }
.consent-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.consent-row b { display: block; font-size: 14px; }
.consent-row em, .consent-row i { margin-right: 6px; font-size: 10px; font-style: normal; letter-spacing: .04em; }
.consent-row em { color: var(--danger); }
.consent-row i { color: #9a691d; }
.consent-row small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.actions-inline { display: flex; gap: 10px; margin-top: 18px; }
.button { min-height: 44px; border: 0; border-radius: 11px; padding: 0 16px; cursor: pointer; font-weight: 800; }
.button:disabled { cursor: not-allowed; opacity: .45; }
.button.primary { background: var(--accent); color: white; }
.button.secondary { background: var(--warm); color: #513b21; }
.button.tiny { min-height: 38px; padding: 0 12px; }
.button.full { width: 100%; margin-top: 10px; }
.mbti-box { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.mbti-box label { display: block; font-weight: 800; }
.mbti-box label span { color: var(--muted); font-size: 12px; font-weight: 500; }
select, input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); }
select { margin-top: 9px; padding: 11px 12px; }
.mbti-box p, .muted, .notice { color: var(--muted); font-size: 12px; line-height: 1.55; }
.notice { min-height: 18px; margin: 12px 0 0; }
.notice.error { color: var(--danger); }
.rights-notice { margin: 20px 0 0; padding: 15px 16px; border: 1px solid #d9e4df; border-left: 4px solid var(--accent); border-radius: 12px; background: #f5faf8; color: var(--muted); font-size: 11px; line-height: 1.6; }
.rights-notice b { display: block; margin-bottom: 5px; color: var(--accent); font-size: 11px; letter-spacing: .02em; }
.rights-notice p { margin: 4px 0 0; }
.rights-notice.compact { margin-top: 16px; padding: 12px 14px; }
.rights-notice.ai { border-color: #d7d6eb; border-left-color: #62548e; background: #f7f6fb; }
.rights-notice.ai b { color: #55477f; }
.rights-notice.book { border-left-color: #9a691d; background: #fffaf0; }
.rights-notice.book b { color: #87601f; }
.copy-card { margin-top: 18px; }
.copy-card label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 800; }
.copy-line { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.copy-line input { padding: 11px 12px; }
.session-lead { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.7; }
.simple-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.simple-steps div { display: flex; gap: 9px; align-items: center; padding: 13px 12px; border-radius: 12px; background: #f7f7f5; color: var(--muted); font-size: 12px; line-height: 1.35; }
.simple-steps b { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; }
.simple-copy-line input { font-size: 13px; }
.after-copy-note { display: grid; gap: 4px; margin-top: 20px; padding: 15px 16px; border-radius: 12px; background: var(--warm); color: #684c2a; font-size: 13px; line-height: 1.55; }
.after-copy-note span { color: #806d56; font-size: 12px; }
.fallback-card { margin-top: 16px; padding: 14px 16px; border: 1px dashed #c8d3cf; border-radius: 12px; background: #fbfdfc; }
.fallback-card summary { cursor: pointer; color: var(--accent); font-size: 12px; font-weight: 800; }
.fallback-card summary span { color: var(--muted); font-weight: 600; }
.fallback-card > p { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.manual-import { margin-top: 14px; }
.manual-import label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.result-waiting { padding: 22px; border-radius: 16px; background: var(--accent-soft); }
.result-waiting h2 { font-size: 24px; }
.result-waiting p:last-child { margin-bottom: 0; }
textarea { resize: vertical; padding: 12px; line-height: 1.55; }
.section-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; }
.section-heading h3 { font-size: 17px; }
.text-button { border: 0; background: transparent; color: var(--accent); cursor: pointer; font-size: 12px; font-weight: 800; }
.paste-help { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.paste-help code { color: var(--accent); font-size: 10px; }
.divider { height: 1px; margin: 28px 0; background: var(--line); }
.result-hero { padding: 24px; border-radius: 17px; background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 78%, var(--family-accent, #fff)) 100%); color: white; }
.result-hero-row { display: flex; gap: 18px; align-items: center; }
.family-badge { margin: 0 0 8px !important; color: rgba(255,255,255,.9) !important; font-size: 11px !important; font-weight: 800; letter-spacing: .06em; }
.result-hero .type-code { margin: 0 0 8px; opacity: .7; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.result-hero h2 { font-size: 34px; }
.result-hero p { color: rgba(255,255,255,.78); font-size: 13px; line-height: 1.55; }
.result-hero p:last-child { margin-bottom: 0; font-size: 12px; }
.axis-list { display: grid; gap: 10px; margin-top: 18px; }
.axis-row { display: grid; grid-template-columns: 80px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.axis-row span, .axis-row small { color: var(--muted); font-size: 12px; }
.result-share-panel { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 22px; padding: 18px 20px; border-radius: 16px; background: linear-gradient(135deg, #f1e7d7, #f7f3ea 52%, #e6f0ed); }
.result-share-panel span, .share-dialog-head span { color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.result-share-panel h3 { margin-top: 5px; font-size: 18px; }
.result-share-panel p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.result-share-open { flex: 0 0 auto; min-height: 46px; }
.share-card-dialog { width: min(540px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 22px; border: 0; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 28px 90px rgba(25, 32, 30, .28); }
.share-card-dialog::backdrop { background: rgba(22, 27, 26, .72); backdrop-filter: blur(5px); }
.share-dialog-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.share-dialog-head h3 { margin-top: 5px; font-size: 25px; }
.share-dialog-close { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0 0 3px; border: 0; border-radius: 50%; background: #f0f1ef; color: #505653; cursor: pointer; font-size: 27px; line-height: 1; }
.share-dialog-intro { margin: 10px 0 16px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.share-card-preview { display: grid; overflow: hidden; place-items: center; min-height: 280px; max-height: 58vh; border-radius: 17px; background: linear-gradient(145deg, #f6f1e7, #e8efec); }
.share-card-preview img { display: block; width: 100%; max-height: 58vh; object-fit: contain; }
.share-card-loading { padding: 90px 24px; color: var(--accent); font-size: 12px; font-weight: 800; text-align: center; }
.share-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.share-card-notice { margin-bottom: 0; text-align: center; }
.result-axis-profiles { margin-top: 22px; padding: 18px; border-radius: 16px; background: #f7f7f5; }
.result-section-label { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.result-axis-profiles > h3 { margin-top: 7px; font-size: 20px; }
.axis-profile-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.axis-profile-mini { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.axis-profile-mini > div { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; }
.axis-profile-mini > div b { color: var(--accent); font-size: 11px; }
.axis-profile-mini h3 { margin-top: 12px; font-size: 16px; line-height: 1.35; }
.axis-profile-mini p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.axis-profile-mini small { display: block; margin-top: 10px; color: #876b48; font-size: 10px; line-height: 1.4; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.card-grid article { padding: 15px; border-radius: 12px; background: #f7f7f5; }
.card-grid article span { color: var(--accent); font-size: 11px; font-weight: 800; }
.card-grid article p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.character-art { display: block; flex: 0 0 108px; width: 108px; height: 108px; aspect-ratio: 1; border-radius: 16px; object-fit: cover; background: #fff0d5; box-shadow: 0 10px 22px rgba(0,0,0,.16); image-rendering: auto; }
.character-art.compact { flex-basis: 74px; width: 74px; height: 74px; border-radius: 12px; }
.character-mark { display: grid; place-items: center; flex: 0 0 108px; width: 108px; height: 108px; border-radius: 37% 63% 55% 45% / 44% 38% 62% 56%; background: radial-gradient(circle at 32% 28%, #fff 0 6%, transparent 7%), linear-gradient(145deg, var(--character-soft), var(--character)); color: white; box-shadow: inset 0 -10px 22px rgba(0,0,0,.12), 0 10px 22px rgba(0,0,0,.16); transform: rotate(-4deg); }
.character-mark span { font-family: Georgia, serif; font-size: 52px; line-height: 1; text-shadow: 0 2px 0 rgba(0,0,0,.12); transform: rotate(4deg); }
.character-mark i { margin-top: -21px; color: rgba(255,255,255,.82); font-size: 10px; font-style: normal; font-weight: 800; letter-spacing: .06em; transform: rotate(4deg); }
.character-mark.compact { flex-basis: 74px; width: 74px; height: 74px; }
.character-mark.compact span { font-size: 34px; }
.meaning-card { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.meaning-card p:not(.eyebrow) { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.meaning-card .family-note { padding: 10px 12px; border-radius: 9px; background: #f4f7f5; font-size: 12px !important; }
.meaning-card .family-note b { color: var(--accent); }
.meaning-card .inline-link { font-size: 12px; font-weight: 800; }
.result-note, .compatibility { margin-top: 18px; padding: 15px; border-radius: 12px; background: var(--accent-soft); font-size: 13px; }
.book-observation-card { margin-top: 18px; padding: 20px; border: 1px solid #e3d2b6; border-radius: 15px; background: #fffaf0; }
.book-observation-card h3 { font-size: 23px; }
.book-location { display: grid; gap: 4px; margin: 12px 0 0; }
.book-location b { color: #684c2a; font-size: 14px; }
.book-location span { color: #92734c; font-size: 11px; }
.book-observation-card blockquote { margin: 16px 0; padding: 14px 16px; border-left: 3px solid #b27b35; background: rgba(255,255,255,.72); color: #513b21; font-size: 14px; font-weight: 700; line-height: 1.7; }
.book-reading-line { margin-top: 12px; }
.book-reading-line span { color: #9a691d; font-size: 10px; font-weight: 800; letter-spacing: .05em; }
.book-reading-line p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.book-observation-card > small { display: block; margin-top: 16px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.result-rights { margin-top: 18px; }
.compatibility h3 { margin: 4px 0; font-size: 17px; }
.compatibility-list { display: grid; gap: 9px; margin: 12px 0; }
.compatibility-row { padding: 12px; border-radius: 10px; background: rgba(255,255,255,.7); }
.compatibility-row b { display: block; font-size: 13px; }
.compatibility-row small { display: block; margin-top: 4px; color: var(--accent); font-size: 11px; font-weight: 800; }
.compatibility-row p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.compatibility p:last-child { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.runner-item { display: grid; gap: 12px; margin: 0 0 20px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.runner-item legend { padding: 0 6px; font-weight: 800; line-height: 1.5; }
.choice-group { display: grid; gap: 8px; padding: 12px; border-radius: 10px; background: #fafaf9; }
.choice-group > span { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.runner-item label { color: var(--muted); font-size: 13px; line-height: 1.5; }
.runner-item input { width: auto; margin-right: 6px; }
.runner-ai-callout { display: grid; gap: 4px; margin-bottom: 18px; padding: 15px 16px; border-radius: 12px; background: var(--warm); color: #684c2a; font-size: 13px; line-height: 1.55; }
.runner-ai-callout span { color: #806d56; font-size: 12px; }
.runner-return-contract { margin-bottom: 22px; padding: 16px; border: 1px solid #cfe0db; border-radius: 14px; background: #f3f9f7; color: var(--muted); font-size: 12px; line-height: 1.65; }
.runner-return-contract > b { color: var(--accent); font-size: 13px; }
.runner-return-contract ol { margin: 10px 0 0; padding-left: 20px; }
.runner-return-contract li + li { margin-top: 5px; }
.runner-return-contract strong { color: var(--danger); }
.runner-return-contract .runner-url-template { border: 1px dashed #bdd4cd; background: #fff; color: var(--accent); }
.runner-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0 4px; }
.runner-meta label { color: var(--muted); font-size: 12px; }
.runner-meta input { margin-top: 6px; padding: 10px; }
.runner-context { margin: 24px 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(246, 251, 249, .72); }
.runner-context .section-heading { margin-bottom: 4px; }
.runner-context-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.runner-context-grid label { color: var(--muted); font-size: 12px; line-height: 1.45; }
.runner-context-grid select { margin-top: 6px; }
.runner-instructions { margin-bottom: 18px; padding: 14px; border-radius: 12px; background: var(--accent-soft); font-size: 13px; line-height: 1.55; }
.runner-result-link { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--warm); color: #684c2a; font-size: 13px; line-height: 1.55; }
.runner-result-link a { display: inline-block; margin-top: 8px; color: var(--accent); font-weight: 800; text-decoration: none; word-break: break-all; }
.runner-no-script { margin-top: 18px; padding: 16px; border: 1px solid #d8c8a7; border-radius: 12px; background: #fffaf0; color: #684c2a; font-size: 13px; line-height: 1.65; }
.runner-no-script b { color: var(--accent); }
.runner-no-script ol { margin: 12px 0; padding-left: 20px; }
.runner-no-script a { color: var(--accent); font-weight: 800; }
.runner-url-label { margin: 14px 0 5px; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.runner-url-template { display: block; overflow-wrap: anywhere; padding: 10px 12px; border-radius: 8px; background: rgba(255,255,255,.78); color: #4d3b26; font-size: 11px; }
.finish-shell { display: grid; min-height: 100vh; align-items: center; padding-top: 40px; }
.finish-panel { width: 100%; margin: 0; text-align: center; }
.finish-panel h1 { font-size: clamp(38px, 8vw, 62px); }
.finish-panel .lead { margin-right: auto; margin-left: auto; }
.finish-progress { position: relative; overflow: hidden; width: min(360px, 100%); height: 8px; margin: 32px auto 0; border-radius: 999px; background: var(--accent-soft); }
.finish-progress i { position: absolute; inset: 0 auto 0 -35%; width: 35%; border-radius: inherit; background: var(--accent); animation: finish-loading 1.2s ease-in-out infinite; }
.finish-panel .notice { margin-top: 18px; font-size: 13px; }
.finish-panel .button { margin-top: 14px; }
@keyframes finish-loading { 0% { left: -35%; } 55% { left: 48%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .finish-progress i { left: 0; width: 100%; animation: none; } }
.library-shell { width: min(1120px, calc(100% - 36px)); margin: 0 auto; padding: 26px 0 60px; }
.library-nav { display: flex; justify-content: space-between; align-items: center; padding: 4px 0 50px; font-size: 12px; font-weight: 800; }
.library-nav a { color: var(--accent); text-decoration: none; }
.brand-mark { letter-spacing: .12em; }
.library-hero { max-width: 850px; padding: 30px 0 68px; }
.library-hero h1 { font-size: clamp(42px, 7vw, 78px); }
.library-hero h1 span { color: var(--accent); }
.library-hero > p:not(.eyebrow) { max-width: 700px; margin: 28px 0 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.library-hero-note { display: inline-flex; gap: 12px; align-items: center; margin-top: 28px; padding: 11px 14px; border-radius: 999px; background: var(--warm); color: #684c2a; font-size: 12px; }
.library-hero-note span { color: #876b48; }
.library-section { padding: 54px 0; border-top: 1px solid var(--line); }
.library-section h2 { font-size: clamp(26px, 4vw, 42px); }
.section-intro { max-width: 680px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.axis-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.axis-card { min-height: 220px; padding: 20px; border-radius: 17px; background: #fff; border: 1px solid var(--line); }
.axis-number { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.axis-card h3 { margin-top: 34px; font-size: 20px; line-height: 1.35; }
.axis-card h3 small { color: var(--accent); font-size: 16px; }
.axis-card p { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.axis-card-rich { grid-column: 1 / -1; min-height: 0; padding: 24px; }
.axis-card-heading { display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.axis-card-heading h3 { margin-top: 8px; font-size: 25px; }
.axis-card-heading > p { margin: 0; color: var(--accent); font-size: 22px; font-weight: 800; }
.axis-card-intro { max-width: 720px; margin-top: 12px !important; }
.axis-sides { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
.axis-side { padding: 18px; border-radius: 14px; border: 1px solid var(--line); }
.axis-side-left { background: linear-gradient(145deg, #f4f7ff, #fff); }
.axis-side-right { background: linear-gradient(145deg, #f5faf7, #fff); }
.axis-side-heading { display: flex; align-items: center; gap: 8px; }
.axis-side-code { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: var(--accent); color: white; font-size: 11px; font-weight: 800; }
.axis-side-heading b { color: var(--accent); font-size: 13px; }
.axis-side h4 { margin: 16px 0 0; font-size: 19px; line-height: 1.35; }
.axis-side p { margin: 10px 0 0; }
.axis-side .axis-side-tagline { color: var(--ink); font-weight: 800; }
.axis-side-observation { padding-top: 10px; border-top: 1px solid var(--line); }
.axis-side-observation b, .axis-side-columns > div > b, .axis-side-prompt b { color: var(--accent); font-size: 11px; }
.axis-side-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.axis-side-columns ul { display: grid; gap: 5px; margin: 7px 0 0; padding-left: 15px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.axis-side-prompt { padding: 10px 12px; border-radius: 9px; background: rgba(18,91,82,.07); font-size: 11px !important; }
.axis-side-metaphor { color: #876b48 !important; font-size: 11px !important; font-weight: 800; }
.type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 26px; }
.type-tile { position: relative; isolation: isolate; overflow: hidden; scroll-margin-top: 24px; min-height: 390px; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.86); transition: transform .2s ease, box-shadow .2s ease; }
.type-tile:target { border-color: var(--accent); box-shadow: 0 14px 40px rgba(18,91,82,.13); transform: translateY(-3px); }
.type-tile-top { position: relative; display: flex; gap: 14px; align-items: flex-end; min-height: 245px; padding: 18px; }
.type-tile-top::after { position: absolute; z-index: 1; inset: 0; content: ''; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.18) 38%, rgba(255,255,255,.94) 100%); }
.type-tile-top > .character-art.compact, .type-tile-top > .character-mark.compact { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; flex: none; border-radius: 0; box-shadow: none; }
.type-tile-top > .character-art.compact { aspect-ratio: auto; opacity: .98; }
.type-tile-top > .character-mark.compact { transform: none; opacity: .96; }
.type-tile-top > div:last-child { position: relative; z-index: 2; width: 100%; padding: 11px 14px; border: 1px solid rgba(255,255,255,.8); border-radius: 13px; background: rgba(255,255,255,.88); box-shadow: 0 8px 24px rgba(25,35,32,.12); backdrop-filter: blur(7px); }
.type-tile-top h3 { margin-top: 5px; font-size: 22px; }
.type-tile-top b { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.family-tagline { display: block; margin-top: 5px; color: var(--accent); font-size: 10px; line-height: 1.4; }
.type-code-dark { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .11em; }
.type-intro { margin: 0 18px; padding-top: 4px; font-weight: 800; line-height: 1.6; }
.type-detail { min-height: 62px; margin: 8px 18px 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.tile-foot { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin: 16px 18px 0; padding: 13px 0 18px; border-top: 1px solid var(--line); }
.tile-foot span { max-width: 70%; color: var(--muted); font-size: 11px; line-height: 1.45; }
.tile-foot a { color: var(--accent); font-size: 11px; font-weight: 800; text-align: right; text-decoration: none; }
.meaning-section { background: var(--warm); margin-left: calc((1120px - 100vw) / 2); margin-right: calc((1120px - 100vw) / 2); padding-left: max(18px, calc((100vw - 1120px) / 2)); padding-right: max(18px, calc((100vw - 1120px) / 2)); }
.meaning-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.meaning-columns article { max-width: 480px; }
.meaning-columns article h2 { margin: 8px 0 20px; }
.meaning-columns article p:last-child { color: #705b42; font-size: 14px; line-height: 1.75; }
.connections h2 { margin: 8px 0 20px; }
.connection-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.connection-card { min-height: 190px; display: flex; flex-direction: column; padding: 18px; border-radius: 16px; background: var(--accent); color: #fff; text-decoration: none; }
.connection-card:nth-child(2) { background: #b4552d; }
.connection-card:nth-child(3) { background: #283d5b; }
.connection-card:nth-child(4) { background: #606b42; }
.connection-card span { opacity: .65; font-size: 11px; font-weight: 800; }
.connection-card b { margin-top: 34px; font-size: 17px; }
.connection-card small { margin-top: 8px; color: rgba(255,255,255,.72); font-size: 11px; line-height: 1.5; }
.connection-card em { margin-top: auto; padding-top: 22px; color: rgba(255,255,255,.86); font-size: 11px; font-style: normal; font-weight: 800; }
.library-footer { padding: 38px 0 0; color: var(--muted); text-align: center; font-size: 11px; line-height: 1.8; }
.library-footer a { color: var(--accent); font-weight: 800; text-decoration: none; }
.result-hero .character-art { flex-basis: 150px; width: 150px; height: 150px; aspect-ratio: 1; }
.result-hero .character-mark { flex-basis: 150px; width: 150px; height: 150px; }
@media (max-width: 760px) { .axis-cards, .connection-grid { grid-template-columns: repeat(2, 1fr); } .axis-sides, .axis-profile-mini-grid { grid-template-columns: 1fr; } .meaning-columns { gap: 28px; } }
@media (max-width: 560px) { .library-shell { width: min(100% - 28px, 520px); } .library-nav { padding-bottom: 28px; } .library-hero { padding-bottom: 42px; } .library-hero-note { display: grid; border-radius: 14px; } .axis-cards, .type-grid, .connection-grid, .meaning-columns { grid-template-columns: 1fr; } .meaning-section { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; } .type-detail { min-height: auto; } .type-tile { min-height: 0; } .type-tile-top { min-height: 240px; } .simple-steps { grid-template-columns: 1fr; } .simple-copy-line { grid-template-columns: 1fr; } .simple-copy-line .button { width: 100%; } .result-hero .character-art { flex-basis: 106px; width: 106px; height: 106px; } .result-hero .character-mark { flex-basis: 106px; width: 106px; height: 106px; } }
footer { padding: 22px 8px; color: var(--muted); text-align: center; font-size: 11px; }
@media (max-width: 560px) { .shell { padding-top: 40px; } .panel { padding: 20px; border-radius: 17px; } .panel-heading { display: block; } .status-pill { display: inline-block; margin-top: 12px; } .runner-meta, .runner-context-grid, .card-grid { grid-template-columns: 1fr; } .result-hero-row { align-items: flex-start; } .character-mark { flex-basis: 82px; width: 82px; height: 82px; } .character-mark span { font-size: 38px; } .result-share-panel { display: grid; } .result-share-open { width: 100%; } .share-card-dialog { padding: 16px; border-radius: 18px; } .share-dialog-actions { grid-template-columns: 1fr; } }
