/* 0.5.21.133 — original approved full-resolution Matti photo, mockup-led layout,
   accessible primary sync/history actions. CSS-only composition; no data changes. */
#view-overblik .identity-card{overflow:hidden;isolation:isolate}
#view-overblik .identity-art{z-index:2;left:0!important;bottom:0!important;width:36%!important;height:100%!important;max-height:none!important;filter:drop-shadow(7px 7px 23px #0009)}
#view-overblik .identity-art .matti-hero-photo{width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;object-position:center bottom!important;image-rendering:auto;filter:none!important}
#view-overblik .identity-secondary-art{z-index:2;right:1.6%!important;top:17px!important;width:35%!important;height:53%!important;max-height:none!important}
#view-overblik .identity-card .view-head{z-index:4;left:37%!important;top:42px!important;width:32%!important;max-width:32%!important}
#view-overblik .identity-card .view-head>div:first-child{max-width:100%!important}
#view-overblik .identity-card .view-head p{max-width:100%!important;line-height:1.5!important;margin-top:9px!important}
#view-overblik .identity-info{z-index:4;left:37%!important;right:2.7%!important;bottom:27px!important}
#view-overblik .identity-card .hero-stats{gap:10px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
#view-overblik .identity-card button.mini{padding:13px 10px!important;min-height:112px!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important}
#view-overblik .identity-card button.mini .v{font-size:clamp(20px,2.25vw,31px)!important}
#view-overblik .identity-card button.mini .mini-link{margin-top:auto!important;padding-top:9px!important}
#view-overblik .dashboard-action-band{position:relative;z-index:5;margin:14px 0!important;flex-wrap:wrap}
#view-overblik .dashboard-action-buttons{display:flex;gap:12px;align-items:stretch;flex:0 0 auto}
#view-overblik .dashboard-history-cta{display:inline-flex;align-items:center;justify-content:center;gap:9px;white-space:nowrap;border:1px solid #87e7ff;background:#082b4c;color:#f6fcff;box-shadow:inset 0 1px 0 #c7eeff22;border-radius:13px;min-height:54px;padding:0 19px;font-size:14px;font-weight:900;cursor:pointer}
#view-overblik .dashboard-history-cta:hover,#view-overblik .dashboard-history-cta:focus-visible{background:#104871;outline:2px solid #93ebff;outline-offset:2px}
#view-overblik .dashboard-action-copy{flex:1 1 220px}
#view-overblik .dashboard-main-sync{min-height:54px!important;white-space:nowrap}
#view-overblik .dashboard-evidence-heading{margin-top:23px}
/* Large monitors: do not stretch the hero into blank space; place the details centrally. */
@media(min-width:1600px){
 #view-overblik .identity-card{height:690px!important;min-height:690px!important}
 #view-overblik .identity-art{width:34%!important}
 #view-overblik .identity-secondary-art{width:34%!important;height:52%!important;top:25px!important}
 #view-overblik .identity-card .view-head{left:36%!important;top:55px!important}
 #view-overblik .identity-info{left:36%!important;right:3%!important;bottom:34px!important}
}
/* Between desktop and tablet: reserve physical space for subtitle and cutouts. */
@media(min-width:761px) and (max-width:1250px){
 #view-overblik .identity-card{height:635px!important;min-height:635px!important}
 #view-overblik .identity-art{width:37%!important}
 #view-overblik .identity-secondary-art{width:39%!important;right:0!important;top:30px!important;height:41%!important}
 #view-overblik .identity-card .view-head{left:39%!important;width:32%!important;max-width:32%!important;top:27px!important}
 #view-overblik .identity-card .view-head p{max-width:215px!important;font-size:11px!important}
 #view-overblik .identity-info{left:39%!important;right:2%!important;bottom:17px!important}
 #view-overblik .identity-card .hero-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
 #view-overblik .identity-card button.mini{min-height:85px!important;padding:9px 11px!important}
 #view-overblik .identity-card button.mini .v{font-size:24px!important}
 #view-overblik .dashboard-action-buttons{flex-wrap:wrap}
}
/* 761–900: title belongs in a separate no-photo zone. */
@media(min-width:761px) and (max-width:900px){
 #view-overblik .identity-secondary-art{top:110px!important;height:30%!important;width:44%!important}
 #view-overblik .identity-card .view-head{left:40%!important;width:55%!important;max-width:55%!important}
 #view-overblik .identity-card .view-head p{max-width:260px!important}
 #view-overblik .identity-info{left:40%!important}
}
/* Mobile is its own composition: information and CTAs before decorative imagery. */
@media(max-width:760px){
 #view-overblik .identity-card{height:auto!important;min-height:0!important;display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-areas:'title' 'profile' 'visual' 'stats';padding:20px 16px 18px!important;gap:0!important;overflow:hidden}
 #view-overblik .identity-card .view-head{position:relative!important;grid-area:title;left:auto!important;right:auto!important;top:auto!important;width:100%!important;max-width:none!important;margin:0!important;pointer-events:auto!important}
 #view-overblik .identity-card .view-head h1{font-size:clamp(27px,7vw,34px)!important}
 #view-overblik .identity-card .view-head p{font-size:12px!important;max-width:100%!important;margin-top:5px!important}
 #view-overblik .identity-info{position:static!important;grid-area:profile;left:auto!important;right:auto!important;bottom:auto!important;width:100%!important;display:contents!important}
 #view-overblik .identity-row{grid-area:profile;z-index:4!important;position:relative!important;display:flex!important;justify-content:space-between!important;align-items:center!important;gap:8px!important;margin:14px 0 3px!important}
 #view-overblik .identity-meta h2{font-size:clamp(23px,6.6vw,29px)!important}
 #view-overblik .identity-card .identity-row .status-badge{font-size:8px!important}
 #view-overblik .identity-art{grid-area:visual;position:relative!important;left:auto!important;bottom:auto!important;width:57%!important;height:260px!important;max-width:none!important;justify-self:start!important;align-self:end!important;z-index:2!important;margin-top:6px}
 #view-overblik .identity-art .matti-hero-photo{position:absolute!important;left:0!important;bottom:0!important;height:100%!important;width:100%!important;object-position:center bottom!important}
 #view-overblik .identity-secondary-art{grid-area:visual;position:relative!important;right:auto!important;top:auto!important;width:61%!important;height:180px!important;max-width:none!important;justify-self:end!important;align-self:center!important;z-index:3!important;margin-top:25px}
 #view-overblik .identity-card .hero-stats{grid-area:stats;z-index:4!important;position:relative!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;margin:7px 0 0!important}
 #view-overblik .identity-card button.mini{min-height:105px!important;padding:12px!important}
 #view-overblik .identity-card button.mini .v{font-size:clamp(22px,6vw,29px)!important}
 #view-overblik .dashboard-action-band{flex-direction:column!important;align-items:stretch!important;margin:12px 0 16px!important;padding:14px!important}
 #view-overblik .dashboard-action-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
 #view-overblik .dashboard-main-sync,#view-overblik .dashboard-history-cta{width:100%;padding:0 9px!important;justify-content:center!important;min-height:52px!important;font-size:13px!important}
 #view-overblik .dashboard-action-copy strong{font-size:15px!important}
 #view-overblik .goal-card{margin-top:0!important}
 .topbar-actions .sync-shortcut{display:inline-flex!important;min-width:40px}
}
@media(max-width:440px){
 #view-overblik .identity-card{padding:17px 12px 15px!important}
 #view-overblik .identity-row{display:block!important}
 #view-overblik .identity-card .identity-row .status-badge{display:inline-block!important;margin-top:6px!important}
 #view-overblik .identity-art{height:225px!important;width:60%!important}
 #view-overblik .identity-secondary-art{width:63%!important;height:150px!important}
 #view-overblik .identity-card button.mini{padding:10px!important;min-height:110px!important}
 #view-overblik .dashboard-main-sync,#view-overblik .dashboard-history-cta{font-size:12px!important;gap:5px!important}
}
@media(prefers-reduced-motion:reduce){#view-overblik .identity-card *{animation:none!important}}
