/* Profile and language components share the existing Zodiac colour tokens. */
.language-native-control{position:absolute!important;inline-size:1px!important;block-size:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;border:0!important;}
.language-native-control select{inline-size:1px!important;block-size:1px!important;min-inline-size:1px!important;min-block-size:1px!important;padding:0!important;border:0!important;}
.language-picker{position:relative;flex-shrink:0;}
.language-trigger{min-height:44px;min-width:68px;display:flex;align-items:center;justify-content:center;gap:6px;padding:8px;border:1px solid #ffffff28;border-radius:14px;background:#ffffff06;color:var(--ink);font-size:13px;font-weight:600;letter-spacing:.04em;}
.language-trigger>svg:first-child{width:17px;height:17px;stroke:var(--muted);stroke-width:1.5;}
.language-trigger .language-chevron{width:10px;height:8px;stroke:var(--muted);stroke-width:1.7;transition:transform .15s;}
.language-trigger[aria-expanded=true]{border-color:var(--gold);background:#ffffff0e;}
.language-trigger[aria-expanded=true] .language-chevron{transform:rotate(180deg);}
.language-options{position:fixed;width:218px;max-width:calc(100vw - 16px);padding:10px;border:1px solid #ffffff30;border-radius:17px;background:#192036;box-shadow:0 18px 48px #0008;z-index:30;}
.language-options-title{display:block;padding:4px 8px 10px;color:var(--muted);font-size:12px;line-height:1.4;}
.language-options button{width:100%;display:flex;align-items:center;gap:11px;min-height:48px;padding:10px;border:0;border-radius:11px;background:transparent;color:var(--ink);text-align:left;font-size:15px;}
.language-options button:hover{background:#ffffff09;}
.language-options button[aria-pressed=true]{background:#ffffff0b;color:var(--gold);}
.language-option-code{color:var(--muted);font-size:11px;letter-spacing:.06em;}
.language-check{margin-left:auto;visibility:hidden;}
[aria-pressed=true]>.language-check{visibility:visible;}
.profile-view{display:grid;gap:25px;min-width:0;}
.dialog:has(.profile-view) .dialog-top{position:sticky;top:0;z-index:2;background:#131a2d;box-shadow:0 -26px 0 #131a2d;border-bottom:1px solid #ffffff14;padding-bottom:15px;margin-bottom:18px;}
.profile-hero{display:grid;grid-template-columns:70px minmax(0,1fr);gap:13px 18px;position:relative;overflow:hidden;padding:23px;border:1px solid #ffffff25;border-radius:21px;background:radial-gradient(ellipse at 100% 0,var(--zodiac-glow,#b8a3e825),transparent 75%),linear-gradient(125deg,#ffffff08,#ffffff02);}
.profile-monogram{height:70px;width:70px;display:grid;place-items:center;border:1px solid #ffffff30;border-radius:24px;background:linear-gradient(140deg,#ffffff14,#ffffff04);color:var(--gold);font:29px/1 Georgia,serif;letter-spacing:.025em;}
.profile-identity{min-width:0;align-self:center;}
.profile-kicker{display:block;color:var(--muted);font-size:11px;letter-spacing:.09em;text-transform:uppercase;margin-bottom:7px;}
.profile-identity h3{font:31px/1.18 Georgia,serif;letter-spacing:-.02em;margin:0 0 8px;overflow-wrap:anywhere;}
.profile-guest-badge{display:inline-block;color:#d5d9e7;font-size:11px;line-height:1.4;padding:4px 8px;border:1px solid #ffffff22;border-radius:7px;}
.profile-hero>p{grid-column:1/-1;margin:0;color:var(--muted);font-size:13px;line-height:1.5;}
.profile-signs{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:7px;}
.profile-signs>span{font-size:11px;padding:5px 8px;border-radius:8px;background:#ffffff06;color:var(--muted);}
.profile-signs strong{color:var(--ink);margin-left:3px;}
.profile-section>h3,.profile-danger>h3{margin:0 0 12px;font-size:13px;font-weight:600;line-height:1.5;color:var(--muted);letter-spacing:.035em;}
.profile-birth-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin:0;background:#ffffff14;border:1px solid #ffffff14;border-radius:16px;overflow:hidden;}
.profile-birth-facts>div{padding:15px;background:#141b30;min-width:0;}
.profile-birth-facts dt{font-size:11px;color:var(--muted);margin:0 0 5px;}
.profile-birth-facts dd{margin:0;font-size:15px;font-weight:500;line-height:1.45;overflow-wrap:anywhere;}
.profile-fact-wide{grid-column:1/-1;}
.profile-view .profile-precision{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;margin:13px 0 0;}
.profile-precision>span{font-size:16px;color:var(--gold);}
.edit-limits.profile-correction-limits{display:grid;gap:10px;margin:15px 0 0;padding:15px;border:1px solid #ffffff20;border-radius:15px;background:#ffffff03;}
.profile-correction-limits>div{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:3px 12px;}
.profile-correction-limits>div>span{font-size:12px;color:var(--muted);}
.profile-correction-limits strong{font-size:12px;color:var(--ink);}
.profile-correction-limits>p{font-size:11px;color:var(--muted);margin:0;line-height:1.65;}
.profile-action-list{display:grid;border:1px solid #ffffff20;border-radius:16px;overflow:hidden;background:#ffffff02;}
.profile-action{display:flex;align-items:center;gap:13px;min-width:0;width:100%;min-height:77px;border:0;border-radius:0;padding:16px;background:transparent;color:var(--ink);text-align:left;text-decoration:none;transition:background .15s;}
.profile-action+.profile-action{border-top:1px solid #ffffff16;}
.profile-action:hover{background:#ffffff07;}
.profile-action:focus-visible{outline-offset:-4px;}
.profile-action-icon{width:35px;height:35px;display:grid;place-items:center;flex-shrink:0;border:1px solid #ffffff17;border-radius:10px;color:var(--gold);background:#ffffff03;}
.profile-action-icon svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round;}
.profile-action-copy{display:grid;gap:3px;flex:1;min-width:0;line-height:1.5;}
.profile-action-copy strong{font-size:15px;font-weight:500;overflow-wrap:anywhere;}
.profile-action-copy>span{font-size:11px;color:var(--muted);overflow-wrap:anywhere;}
.profile-action-copy>span:empty{display:none;}
.profile-action-copy .profile-inventory-count{margin-top:3px;font-size:11px;color:var(--gold);}
.profile-action-arrow{color:var(--muted);font-size:18px;flex-shrink:0;}
.profile-view .profile-retention-note{font-size:11px;line-height:1.7;color:var(--muted);margin:13px 3px 0;}
.profile-storage-note{padding:12px 14px;border:1px solid #e3c59530;border-radius:12px;background:#e3c59508;margin:0;}
.profile-danger{padding-top:22px;border-top:1px solid #ffb8b125;}
.profile-danger>h3{color:var(--danger);}
.profile-danger>p{font-size:12px;line-height:1.65;color:var(--muted);margin:0 0 12px;}
.profile-danger .profile-action{min-height:58px;border:1px solid #ffb8b130;border-radius:14px;background:#ffb8b106;color:var(--danger);}
.profile-danger .profile-action-icon{border-color:#ffb8b125;color:var(--danger);}
.profile-danger .profile-action-arrow{color:var(--danger);}
.profile-inventory{min-width:0;}
.profile-inventory .profile-inventory-intro,.profile-inventory .profile-library-state{font-size:14px;line-height:1.65;color:var(--muted);}
.profile-inventory-list{display:grid;gap:13px;}
.profile-inventory-card{display:grid;grid-template-columns:35px minmax(0,1fr);gap:14px;padding:18px;border:1px solid #ffffff22;border-radius:17px;background:#ffffff03;}
.profile-inventory-symbol{width:35px;height:35px;display:grid;place-items:center;background:#ffffff05;border-radius:10px;color:var(--gold);}
.profile-inventory-symbol svg{width:21px;height:21px;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;}
.profile-inventory-copy{min-width:0;}
.profile-inventory .profile-inventory-period{font-size:11px;color:var(--gold);line-height:1.5;margin:0 0 6px;}
.profile-inventory-copy h3{font:23px/1.3 Georgia,serif;margin:0 0 11px;overflow-wrap:anywhere;}
.profile-inventory-badges{display:flex;flex-wrap:wrap;gap:6px;}
.profile-inventory-badges>span{font-size:10px;color:var(--muted);padding:4px 7px;border:1px solid #ffffff20;border-radius:7px;line-height:1.4;}
.profile-inventory-copy time,.profile-inventory-copy small{display:block;color:var(--muted);font-size:11px;margin-top:9px;}
.profile-inventory-open{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:44px;padding:10px 12px;border:1px solid #ffffff24;border-radius:10px;background:#ffffff05;color:var(--ink);font-size:13px;text-align:left;}
.profile-inventory-open:hover{background:#ffffff0c;}
@media(max-width:420px){.header-actions #install-button{min-width:44px;padding:9px 10px;}.header-actions #install-button span{display:none;}.profile-hero{padding:19px;grid-template-columns:58px minmax(0,1fr);gap:12px 14px;}.profile-monogram{width:58px;height:58px;border-radius:20px;font-size:25px;}.profile-identity h3{font-size:27px;}.profile-birth-facts>div{padding:13px;}.profile-birth-facts dd{font-size:14px;}.profile-action{padding:14px 12px;gap:10px;}.profile-action-copy strong{font-size:14px;}.profile-action-icon{width:31px;height:31px;}.profile-view{gap:23px;}.profile-inventory-card{padding:15px;gap:12px;}}
@media(max-width:360px){.language-trigger{min-width:54px;padding:8px 6px;}.language-trigger>svg:first-child{display:none;}.profile-hero{grid-template-columns:52px minmax(0,1fr);gap:12px;}.profile-monogram{width:52px;height:52px;border-radius:18px;}.profile-identity h3{font-size:25px;}.profile-kicker{font-size:10px;}.profile-inventory-copy h3{font-size:21px;}}
@media(prefers-reduced-motion:reduce){.language-chevron,.profile-action{transition:none;}}

.language-options{max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}.language-options button:disabled{opacity:.55;cursor:default}.language-separator{border:0;border-top:1px solid #ffffff20;margin:7px 0}
