@media(min-width:901px){
/* Phase 2: compact, functional cards. Existing account overrides preserved below. */
.pa-hero-cards{margin:12px 18px;min-width:0;color:#fff}
.pa-card-track{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;align-items:stretch}
.pa-hero-card{box-sizing:border-box;display:grid;grid-template-columns:44px minmax(0,1fr) 8px;align-items:center;gap:9px;min-width:0;min-height:100px;margin:0;padding:12px;border:1px solid #d7b56e66;border-radius:14px;color:#fff;text-decoration:none;text-align:left;font:inherit;cursor:pointer;background:linear-gradient(135deg,#0b2035,#173e50);box-shadow:0 4px 12px #0b20351a;transition:transform .16s,box-shadow .16s}
.pa-hero-card--search{background:linear-gradient(135deg,#0f5f57,#0b3d3a)}
.pa-hero-card--report{background:linear-gradient(135deg,#4b2e6f,#1f2a5a)}
.pa-hero-card--cevre{background:linear-gradient(135deg,#14684f,#102f45)}
.pa-hero-card--ocr{background:linear-gradient(135deg,#1d2f63,#3e2a63)}
.pa-hero-card:hover{color:#fff;transform:translateY(-2px);box-shadow:0 7px 18px #0b203533}
.pa-hero-card:focus-visible,.pa-card-dots button:focus-visible{outline:3px solid #d7b56e;outline-offset:3px}
.pa-card-icon{display:grid;place-items:center;width:44px;height:44px;border:1px solid #d7b56e;border-radius:12px;color:#f3dfb7;font-size:25px;background:#ffffff0a;overflow:hidden}
.pa-card-icon img{width:44px;height:44px;object-fit:cover;object-position:center 25%;border-radius:50%}
.pa-hero-card--expert .pa-card-icon{border-radius:50%}
.pa-card-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:4px}
.pa-card-copy strong{font-size:13px;line-height:1.25;font-weight:750;color:#fff;overflow-wrap:anywhere}
.pa-card-copy small{font-size:10px;line-height:1.35;color:#e0e9ed}
.pa-card-badge{font-size:8px;line-height:1.4;letter-spacing:.055em;font-weight:800;color:#f3dfb7;align-self:flex-end;white-space:nowrap}
.pa-card-arrow{color:#f3dfb7;font-size:22px}
.pa-card-dots{display:none;justify-content:center;align-items:center;gap:0;margin-top:1px}
.pa-card-dots button{border:0;background:transparent;width:44px;height:44px;padding:0;display:grid;place-items:center;cursor:pointer}
.pa-card-dots button:after{content:"";height:6px;width:6px;border-radius:50%;background:#94a3ad}
.pa-card-dots button[aria-current=true]:after{background:#0f2a4a;width:18px;border-radius:6px}
.pa-tool-group-label{grid-column:1/-1;margin:8px 0 2px;padding:5px 4px;color:#617181;font-size:10px;letter-spacing:.12em;text-transform:uppercase;font-weight:800}
@media(max-width:1099px){.pa-card-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:4px 2px 7px}.pa-card-track::-webkit-scrollbar{display:none}.pa-hero-card{flex:0 0 260px;scroll-snap-align:start}.pa-hero-cards{position:relative}.pa-hero-cards:after{content:"";position:absolute;right:0;top:0;height:107px;width:15px;pointer-events:none;background:linear-gradient(90deg,transparent,#f3f6f8)}}
@media(max-width:699px){.pa-card-dots:not([hidden]){display:flex}.pa-hero-cards{margin:8px 12px 0}.pa-hero-card{flex-basis:78%;min-height:100px}.pa-card-copy strong{font-size:14px}.pa-card-copy small{font-size:11px}}
@media(prefers-reduced-motion:reduce){.pa-hero-card{transition:none}.pa-hero-card:hover{transform:none}.pa-card-track{scroll-behavior:auto}}
@media (min-width:901px){
  body > header #atlas-auth-login.atlas-account-active{
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    padding:0!important;
    border-radius:50%!important;
    gap:0!important;
  }
  body > header #atlas-auth-login.atlas-account-active .atlas-account-name{
    display:none!important;
  }
  body > header #atlas-auth-login.atlas-account-active .atlas-account-badge{
    width:30px!important;
    height:30px!important;
    margin:0!important;
  }


}
/* Phase 2 scoped compact sidebar; original nodes and handlers are preserved. */
.atlas-tools .atlas-action-grid.atlas-action-grid--unified.pa-sidebar{grid-template-columns:minmax(0,1fr);gap:5px}
.atlas-tools .atlas-action-grid.atlas-action-grid--unified.pa-sidebar>a,
.atlas-tools .atlas-action-grid.atlas-action-grid--unified.pa-sidebar>button{display:flex;align-items:center;gap:8px;min-height:48px;margin:0;padding:8px 10px;border:1px solid #d9e3e8;border-radius:9px;background:#fff;color:#14283a;box-shadow:none;grid-column:1/-1}
.atlas-tools .atlas-action-grid.atlas-action-grid--unified.pa-sidebar .atlas-action-copy{padding:0;min-width:0;flex:1}
.atlas-tools .atlas-action-grid.atlas-action-grid--unified.pa-sidebar .atlas-action-copy strong{font-size:12px;color:#14283a;line-height:1.2}
.atlas-tools .atlas-action-grid.atlas-action-grid--unified.pa-sidebar .atlas-action-copy small{font-size:10px;line-height:1.25;color:#52697b;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block}
.atlas-tools .atlas-action-grid.atlas-action-grid--unified.pa-sidebar>a>.atlas-action-icon,
.atlas-tools .atlas-action-grid.atlas-action-grid--unified.pa-sidebar>button>.atlas-action-icon{flex:0 0 28px;width:28px;min-width:28px;height:28px;background:#edf3f5;color:#23475a;box-shadow:none}
.atlas-tools .atlas-action-grid.atlas-action-grid--unified.pa-sidebar .atlas-action-icon img{width:28px;height:28px}
.atlas-tools .atlas-action-grid.atlas-action-grid--unified.pa-sidebar>a>b,
.atlas-tools .atlas-action-grid.atlas-action-grid--unified.pa-sidebar>button>b{position:static;flex:none;width:auto;height:auto;max-width:76px;margin-left:auto;font-size:8px;line-height:1.3;padding:3px 5px;background:#f3dfb7;color:#493c22;border-radius:4px}
.atlas-tools .atlas-action-grid.atlas-action-grid--unified.pa-sidebar>a>i,
.atlas-tools .atlas-action-grid.atlas-action-grid--unified.pa-sidebar>button>i{display:block;color:#486678}
/* Preserve active-layer feedback after compact sidebar normalization. */
.atlas-tools .atlas-action-grid.atlas-action-grid--unified.pa-sidebar>button.is-selected,
.atlas-tools .atlas-action-grid.atlas-action-grid--unified.pa-sidebar>button:not(.atlas-action-primary):hover{border-color:#8bbeb5;background:#edf8f5;box-shadow:inset 3px 0 #ba9259,0 4px 14px rgba(12,69,65,.08)}
.atlas-tools .atlas-action-grid.atlas-action-grid--unified.pa-sidebar>a:focus-visible,
.atlas-tools .atlas-action-grid.atlas-action-grid--unified.pa-sidebar>button:focus-visible{outline:3px solid #d5a668;outline-offset:2px}
.pa-noscript-note{margin:8px 18px;padding:12px 16px;border:1px solid #d7b56e;border-radius:10px;background:#fff8e9;color:#14283a;font-size:13px;line-height:1.5}
.pa-noscript-note a{color:#075d59;text-decoration:underline}

/* Keep keyboard focus visible inside the scrolling viewport. */
@media(max-width:1099px){.pa-hero-card:focus-visible{outline-offset:-3px}}

/* Owner screenshot priority, 16 October: keep cards readable, three when five do not fit. */
.pa-hero-card--comparison{background:linear-gradient(135deg,#304b76,#253b60)}
.pa-hero-card--video{background:linear-gradient(135deg,#086254,#103b48)}
.pa-hero-cards.pa-three .pa-card-track{grid-template-columns:repeat(3,minmax(0,1fr))}
.pa-sidebar>.pa-hero-card .pa-card-copy strong{color:#14283a}
.pa-sidebar>.pa-hero-card .pa-card-copy small{color:#52697b}
.pa-sidebar>.pa-hero-card .pa-card-badge{color:#755319}
@media(min-width:700px) and (max-width:1439px){.pa-hero-cards.pa-three .pa-card-track{display:grid;overflow:visible;scroll-snap-type:none}.pa-hero-cards.pa-three:after{display:none}}

.pa-card-dots button[hidden]{display:none}
/* Sidebar copies remain readable when original priority nodes move here. */
.atlas-tools .atlas-action-grid.atlas-action-grid--unified.pa-sidebar .pa-card-copy,
.atlas-tools .atlas-action-grid.atlas-action-grid--unified.pa-sidebar .atlas-primary-copy{display:flex;flex:1 1 auto;width:auto;min-width:0;flex-direction:column;align-items:flex-start}
.atlas-tools .atlas-action-grid.atlas-action-grid--unified.pa-sidebar .atlas-primary-copy strong{color:#14283a}
.atlas-tools .atlas-action-grid.atlas-action-grid--unified.pa-sidebar .atlas-primary-copy small{color:#52697b}
.atlas-tools .atlas-action-grid.atlas-action-grid--unified.pa-sidebar>.pa-hero-card .pa-card-badge{font-size:8px;line-height:1.4}
.atlas-tools .atlas-action-grid.atlas-action-grid--unified.pa-sidebar>.pa-hero-card>.pa-card-icon,
.atlas-tools .atlas-action-grid.atlas-action-grid--unified.pa-sidebar .atlas-primary-search{flex:0 0 28px;width:28px;min-width:28px;height:28px;font-size:23px;color:#23475a;background:#edf3f5}

body.pa-desktop-menu main>.atlas-decision-flow{display:none!important}
.pa-hero-cards .pa-card-track{display:grid;overflow:visible;scroll-snap-type:none;padding:0}
.pa-hero-cards:after{display:none}
.pa-hero-cards .pa-card-dots{display:none}
}
@media(min-width:901px){body.pa-desktop-menu #atlas-emsal-shortcut[hidden],body.pa-desktop-menu #open-deeplink-menu[hidden]{display:none!important}}

@media(min-width:901px){
/* Five readable desktop actions from 1100px usable strip width. */
.pa-hero-cards:not(.pa-three) .pa-hero-card{grid-template-columns:32px minmax(0,1fr) 8px;gap:8px;padding:12px;min-height:124px}
.pa-hero-cards:not(.pa-three) .pa-card-icon,.pa-hero-cards:not(.pa-three) .pa-card-icon img{width:32px;height:32px}
.pa-hero-cards:not(.pa-three) .pa-card-icon{font-size:22px}
.pa-hero-cards:not(.pa-three) .pa-card-copy strong{overflow-wrap:normal;word-break:normal;hyphens:none;font-size:13px;line-height:1.3}
.pa-hero-cards:not(.pa-three) .pa-card-copy small{font-size:10px;line-height:1.4;overflow-wrap:normal}
.pa-hero-cards:not(.pa-three) .pa-card-badge{font-size:8px;letter-spacing:.02em}
}
