/* COGO phase 7: native profile, growth, small quests and point-history surfaces. */
html[data-cogo-layout-phase7-r1="1"] #modal:has(.profile285),
html[data-cogo-layout-phase7-r1="1"] #modal:has(.cgl7-growth-layout){width:min(1050px,calc(100vw - 32px))!important;max-height:calc(100dvh - 32px)!important}
html[data-cogo-layout-phase7-r1="1"] #modal:has(.profile285) #modalContent,
html[data-cogo-layout-phase7-r1="1"] #modal:has(.cgl7-growth-layout) #modalContent{min-height:0;overflow:auto!important;scrollbar-gutter:stable;overscroll-behavior:contain}
html[data-cogo-layout-phase7-r1="1"] #modal .profile285{display:grid!important;grid-template-columns:minmax(260px,.9fr) minmax(0,1.1fr)!important;gap:0!important;border:1px solid var(--cgl1-line,#e6e8ef)!important;border-radius:22px!important;overflow:hidden!important;min-width:0!important;background:var(--cgl1-surface,#fff)!important;color:var(--cgl1-ink,#18253d)!important;box-shadow:none!important}
html[data-cogo-layout-phase7-r1="1"] #modal .profile-hero285{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:center!important;gap:4px!important;padding:22px 24px!important;min-width:0!important;border-right:1px solid var(--cgl1-line,#e6e8ef)!important}
html[data-cogo-layout-phase7-r1="1"] #modal .profile-stage285{width:min(230px,100%)!important;height:230px!important;flex:none!important;margin:0 auto!important}
html[data-cogo-layout-phase7-r1="1"] #modal .profile-identity285{width:100%;text-align:center!important;min-width:0}
html[data-cogo-layout-phase7-r1="1"] #modal .profile-kicker285{font-size:10px!important;letter-spacing:.14em!important;font-weight:700!important}
html[data-cogo-layout-phase7-r1="1"] #modal .profile-identity285 h2{font-size:clamp(23px,2.4vw,31px)!important;letter-spacing:-.035em!important;line-height:1.2!important;overflow-wrap:anywhere;margin:7px 0!important}
html[data-cogo-layout-phase7-r1="1"] #modal .profile-tier285{font-size:13px!important;padding:6px 12px!important;border-radius:999px!important}
html[data-cogo-layout-phase7-r1="1"] #modal .profile-level285{font-variant-numeric:tabular-nums;font-size:37px!important;line-height:1.15!important;margin:15px 0 8px!important}
html[data-cogo-layout-phase7-r1="1"] #modal .profile-level285 small{font-size:10px!important;letter-spacing:.12em!important}
html[data-cogo-layout-phase7-r1="1"] #modal .profile-motto285{font-size:13px!important;line-height:1.7!important;margin:9px 0 0!important;white-space:pre-wrap;overflow-wrap:anywhere}
/* Keep the native node for safe handler binding, while respecting no tier previews. */
html[data-cogo-layout-phase7-r1="1"] #modal .profile-guide285{display:none!important}
html[data-cogo-layout-phase7-r1="1"] #modal .profile-body285{display:flex!important;flex-direction:column!important;gap:18px!important;min-width:0!important;padding:30px 26px!important}
html[data-cogo-layout-phase7-r1="1"] #modal .profile-growth285{padding:18px!important;background:var(--cgl1-soft,#edf2ff)!important;border:1px solid var(--cgl1-line,#e6e8ef)!important;border-radius:17px!important}
html[data-cogo-layout-phase7-r1="1"] #modal .profile-growth285>div:first-child{display:flex!important;flex-wrap:wrap!important;gap:8px!important;justify-content:space-between!important;font-size:12px!important}
html[data-cogo-layout-phase7-r1="1"] #modal .profile-track285{height:9px!important;margin:13px 0 9px!important;border-radius:999px!important}
html[data-cogo-layout-phase7-r1="1"] #modal .profile-stats285{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:0!important}
html[data-cogo-layout-phase7-r1="1"] #modal .profile-stats285>div{padding:18px 14px!important;background:var(--cgl1-surface,#fff)!important;border:1px solid var(--cgl1-line,#e6e8ef)!important;border-radius:17px!important;min-width:0!important}
html[data-cogo-layout-phase7-r1="1"] #modal .profile-stats285 strong{font-size:clamp(21px,2.5vw,30px)!important;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
html[data-cogo-layout-phase7-r1="1"] #modal .profile-stats285 small{font-size:11px!important}
html[data-cogo-layout-phase7-r1="1"] #modal .profile-groups285{margin:0!important;padding:18px!important;border:1px solid var(--cgl1-line,#e6e8ef)!important;border-radius:17px!important}
html[data-cogo-layout-phase7-r1="1"] #modal .profile-groups285 h3{font-size:13px!important;margin:0 0 12px!important}
html[data-cogo-layout-phase7-r1="1"] #modal .profile-groups285>div{display:flex!important;flex-wrap:wrap!important;gap:7px!important}
html[data-cogo-layout-phase7-r1="1"] #modal .profile-groups285 span{max-width:100%;overflow-wrap:anywhere;white-space:normal!important;font-size:12px!important;line-height:1.5!important;padding:7px 11px!important}
html[data-cogo-layout-phase7-r1="1"] #modal .profile-groups285 p{font-size:12px!important;color:var(--cgl1-muted,#6a768a)!important;line-height:1.7!important}
html[data-cogo-layout-phase7-r1="1"] #modal .profile-body285>.btn{margin-top:auto!important;min-height:42px}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-progress{display:flex;flex-direction:column;gap:14px;min-width:0}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-main,
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-side{display:flex;flex-direction:column;gap:14px;min-width:0}
html[data-cogo-layout-phase7-r1="1"] #modal .growth-summary7{background:linear-gradient(135deg,var(--cgl1-soft,#edf2ff),var(--cgl1-surface,#fff))!important;border:1px solid var(--cgl1-line,#e6e8ef)!important;border-radius:21px!important;padding:25px!important;text-align:left!important}
html[data-cogo-layout-phase7-r1="1"] #modal .growth-summary7 h3{font-size:38px!important;letter-spacing:-.035em!important;line-height:1.1!important;margin:20px 0!important;font-variant-numeric:tabular-nums}
html[data-cogo-layout-phase7-r1="1"] #modal .growth-summary7 h3 small{display:block!important;font-size:13px!important;font-weight:500!important;margin-top:10px!important;letter-spacing:0!important}
html[data-cogo-layout-phase7-r1="1"] #modal .growth-summary7 p{font-size:13px!important;line-height:1.6!important;margin:12px 0 0!important}
html[data-cogo-layout-phase7-r1="1"] #modal .rule-grid7{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:0!important}
html[data-cogo-layout-phase7-r1="1"] #modal .rule-grid7 article{border:1px solid var(--cgl1-line,#e6e8ef)!important;background:var(--cgl1-surface,#fff)!important;border-radius:17px!important;padding:17px!important;min-width:0!important}
html[data-cogo-layout-phase7-r1="1"] #modal .rule-grid7 b{font-size:13px!important}
html[data-cogo-layout-phase7-r1="1"] #modal .rule-grid7 p{font-size:13px!important;line-height:1.5!important;margin:8px 0!important}
html[data-cogo-layout-phase7-r1="1"] #modal .rule-grid7 small{font-size:11px!important;line-height:1.65!important;color:var(--cgl1-muted,#6a768a)!important}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-main>.small{font-size:11px!important;line-height:1.7!important;margin:0 4px!important}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-main .form-actions7{display:flex;flex-wrap:wrap;gap:8px;margin:0!important}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-main .form-actions7 .btn{flex:1 1 150px;min-height:42px;font-size:12px;white-space:normal}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-side>section,
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-progress>section{border:1px solid var(--cgl1-line,#e6e8ef);border-radius:21px;background:var(--cgl1-surface,#fff);padding:20px;min-width:0}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-side h3{font-size:15px;line-height:1.4;margin:4px 0}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-kicker{font-size:10px;font-weight:750;letter-spacing:.1em;color:var(--cgl1-muted,#6a768a)}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-week header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-week header>strong{font-size:22px;color:var(--cgl1-accent-deep,#2354d7);font-variant-numeric:tabular-nums}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-week header>strong small{font-size:11px}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px;height:151px;margin:18px 0 10px}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-bars>div{display:grid;grid-template-rows:20px 1fr 20px;gap:5px;text-align:center;min-width:0}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-bars span{font-size:10px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;color:var(--cgl1-muted,#6a768a)}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-bars i{display:block;position:relative;background:var(--cgl1-soft,#edf2ff);border-radius:7px;overflow:hidden}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-bars i:after{content:"";position:absolute;inset:auto 0 0;height:var(--cgl7-fill);background:var(--cgl1-accent,#3266ff);border-radius:7px}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-bars small{font-size:11px;color:var(--cgl1-muted,#6a768a)}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-side p{font-size:11px;line-height:1.65;color:var(--cgl1-muted,#6a768a);margin:7px 0 0}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-current{display:flex;align-items:center;gap:16px}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-crest{width:70px;height:70px;flex:0 0 70px;display:grid;place-items:center}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-crest .crest285{width:70px!important;height:70px!important;position:static!important;transform:none!important}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-wallet>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-wallet>div>span{font-size:12px;font-weight:650}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-wallet strong{font-size:26px;font-variant-numeric:tabular-nums}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-wallet strong small{font-size:13px}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-wallet button{margin-top:14px;min-height:40px;font-size:12px}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-wallet .text-btn{display:block;margin-top:8px}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
html[data-cogo-layout-phase7-r1="1"] #modal:has(#funContent6){width:min(870px,calc(100vw - 32px))!important;max-height:calc(100dvh - 32px)!important}
html[data-cogo-layout-phase7-r1="1"] #modal .fun-tabs6{display:flex!important;gap:5px!important;background:var(--cgl1-soft,#edf2ff)!important;padding:5px!important;border-radius:14px!important;flex-wrap:wrap!important}
html[data-cogo-layout-phase7-r1="1"] #modal .fun-tabs6 button{min-height:40px!important;flex:1!important;border-radius:10px!important;font-size:12px!important;color:var(--cgl1-muted,#6a768a)!important}
html[data-cogo-layout-phase7-r1="1"] #modal .fun-tabs6 button.active{background:var(--cgl1-surface,#fff)!important;color:var(--cgl1-accent-deep,#2354d7)!important;box-shadow:0 2px 7px #15213b0a!important}
html[data-cogo-layout-phase7-r1="1"] #modal .mission-list6 article,
html[data-cogo-layout-phase7-r1="1"] #modal .badge-grid6 article{border:1px solid var(--cgl1-line,#e6e8ef)!important;border-radius:17px!important;background:var(--cgl1-surface,#fff)!important;min-width:0!important}
html[data-cogo-layout-phase7-r1="1"] #modal .badge-grid6{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
html[data-cogo-layout-phase7-r1="1"] #modal .badge-grid6 article{padding:16px 12px!important}
html[data-cogo-layout-phase7-r1="1"] #modal .badge-grid6 article.unlocked{background:var(--cgl1-soft,#edf2ff)!important;border-color:var(--cgl1-accent,#3266ff)!important}
html[data-cogo-layout-phase7-r1="1"] #modal .wallet-ledger282 article{border:1px solid var(--cgl1-line,#e6e8ef)!important;border-radius:14px!important;padding:14px 16px!important;background:var(--cgl1-surface,#fff)!important}
html[data-cogo-layout-phase7-r1="1"] #modal .wallet-ledger282{display:grid!important;gap:8px!important}
html[data-cogo-layout-phase7-r1="1"] #modal .wallet-ledger282 strong{font-variant-numeric:tabular-nums}
html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-layout button:focus-visible{outline:3px solid var(--cgl1-accent,#3266ff);outline-offset:3px}
@media(max-width:700px){
 html[data-cogo-layout-phase7-r1="1"] #modal .profile285,
 html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-layout{grid-template-columns:minmax(0,1fr)!important}
 html[data-cogo-layout-phase7-r1="1"] #modal .profile-hero285{border-right:0!important;border-bottom:1px solid var(--cgl1-line,#e6e8ef)!important;padding:18px!important}
 html[data-cogo-layout-phase7-r1="1"] #modal .profile-stage285{height:200px!important;width:200px!important}
 html[data-cogo-layout-phase7-r1="1"] #modal .profile-body285{padding:18px!important;gap:12px!important}
 html[data-cogo-layout-phase7-r1="1"] #modal .growth-summary7{padding:20px!important}
 html[data-cogo-layout-phase7-r1="1"] #modal .badge-grid6{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html[data-cogo-layout-phase7-r1="1"] #modal .mission-list6 article{flex-wrap:wrap!important;gap:10px!important}
 html[data-cogo-layout-phase7-r1="1"] #modal .mission-list6 article>div{min-width:0!important;flex:1 1 180px!important}
}
@media(prefers-reduced-motion:reduce){
 html[data-cogo-layout-phase7-r1="1"] #modal .profile285 *,
 html[data-cogo-layout-phase7-r1="1"] #modal .profile285 *:before,
 html[data-cogo-layout-phase7-r1="1"] #modal .profile285 *:after,
 html[data-cogo-layout-phase7-r1="1"] #modal .cgl7-growth-layout *{animation:none!important;transition:none!important}
}
