/* One shell for Profile, its supporting panels, and Jupiter. Scoped to these views. */
body[data-core-view] { --core-ink:#152b46;--core-teal:#087d83;--core-blue:#2563ad;--core-border:#d6e1ec; }
body[data-core-view="profile.php"] .ic-page,
body[data-core-view="ecosystem.php"] .ic-page,
body[data-core-view="member_profile.php"] .ic-page,
body[data-core-view="jupiter.php"] .ic-page {max-width:1400px;width:calc(100% - 48px);}
body[data-core-view] #workspace-content :is(#icarys-profile,.ic-banner-editor,.ic-member-profile,.ic-ecosystem,.ic-brief,.ic-review-brief,.icj-intro,.case-intake.jupiter-entry,.ic-profile-attention,.ic-core-status) {width:100%;max-width:none;margin-left:0;margin-right:0;box-sizing:border-box;min-width:0;}
body[data-core-view="profile.php"] #workspace-content > :is(section,div,article,nav) {width:100%;max-width:none;box-sizing:border-box;}
body[data-core-view] .ic-profile-cover.ic-compact-cover {position:relative;aspect-ratio:8/1;min-height:56px;max-height:160px;}
body[data-core-view="jupiter.php"] #workspace-content .case-intake.jupiter-entry {padding-left:0;padding-right:0;}
body[data-core-view="jupiter.php"] #workspace-content .icj-intro {background:linear-gradient(115deg,#fff,#ecf7f8);border:1px solid var(--core-border);color:var(--core-ink);}
body[data-core-view="jupiter.php"] #workspace-content .jupiter-hero {background:linear-gradient(115deg,#f4faff,#eaf5f5 65%,#f0eefb);color:var(--core-ink);border:1px solid var(--core-border);}
body[data-core-view="jupiter.php"] #workspace-content .jupiter-hero :is(#jupiter-title,.jupiter-eyebrow,.jupiter-slogan,.jupiter-description) {color:var(--core-ink);}
body[data-core-view="jupiter.php"] #workspace-content .jupiter-hero::after {border-color:#45a5b033;box-shadow:0 0 0 35px #38b5ab0b,0 0 0 70px #6b71db08;}
body[data-core-view="jupiter.php"] .jupiter-entry a.jupiter-cta {background:#163a65;color:#fff;border-color:#163a65;}
.ic-core-status {margin:20px 0;padding:24px;border:1px solid var(--core-border,#d6e1ec);border-radius:16px;background:#fff;color:var(--core-ink,#152b46);}
.ic-core-status h2{margin:0;font-size:1.25rem}.ic-core-status p{font-size:.92rem;line-height:1.6;}
.ic-core-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0;}
.ic-core-metrics>*{display:flex;flex-direction:column;gap:6px;padding:18px;border:1px solid #cfdee7;border-radius:12px;background:linear-gradient(125deg,#eff9f8,#f3f6fc);color:#183958;text-decoration:none;}
.ic-core-metrics b{font-size:1.8rem;line-height:1.1}.ic-core-metrics span{font-size:.9rem;}
body[data-core-view="profile.php"] .ic-brief-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;}
body[data-core-view="profile.php"] .ic-brief-card {border:1px solid #d1e0ea;border-top:4px solid #1999a2;background:linear-gradient(135deg,#f0faf8,#f3f6ff);border-radius:14px;color:#153958;padding:20px;}
body[data-core-view="profile.php"] .ic-brief-card:nth-child(3n+2){border-top-color:#7573ca;background:linear-gradient(135deg,#f3f1fc,#f8f4f9);}
body[data-core-view="profile.php"] .ic-brief-card:nth-child(3n){border-top-color:#d09b50;background:linear-gradient(135deg,#fff9ed,#faf7f0);}
.ic-core-revision{color:#425c74;font-size:.85rem;}.icday-health-warning{padding:12px 14px;border-left:3px solid #b07b24;background:#fff8e9;color:#684a16;border-radius:6px;}
.icday-items [data-level="4"]{background:#edf1f7;color:#40566e;}
.ic-core-status summary {cursor:pointer;min-height:44px;padding:10px 0;}
.ic-core-status :is(a,summary):focus-visible {outline:3px solid #087d83;outline-offset:4px;}
@media(max-width:700px){body[data-core-view] .ic-page{width:calc(100% - 24px);}.ic-core-metrics{grid-template-columns:1fr;}.ic-core-status{padding:18px;}body[data-core-view="profile.php"] .ic-brief-grid{grid-template-columns:minmax(0,1fr);}}
@media(forced-colors:active){.ic-core-metrics>*,.icday-health-warning,body[data-core-view="profile.php"] .ic-brief-card{background:Canvas;color:CanvasText;border:1px solid CanvasText;}body[data-core-view="jupiter.php"] #workspace-content .jupiter-hero{background:Canvas;color:CanvasText;}}
@media print{.ic-core-status,.ic-core-metrics>*{box-shadow:none;background:#fff;color:#111;break-inside:avoid;}.ic-core-status details{display:none;}}

/* Phase 4: compact covers and aligned account/intake content. */
body[data-core-view] .ic-profile-cover.ic-compact-cover {height:auto;min-height:56px;aspect-ratio:8/1;max-height:160px;}
body[data-core-view="profile.php"] #workspace-content :is(.ic-profile-reading,.ic-profile-details,.ic-recent-reads) {max-width:none;width:100%;margin-left:0;margin-right:0;}
body[data-core-view="jupiter.php"] #workspace-content :is(.jupiter-shell,.jupiter-hero) {max-width:none;width:100%;box-sizing:border-box;}
