.app-shell {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
  align-items: start; gap: clamp(1rem, 2vw, 1.8rem);
  max-inline-size: 81rem; box-sizing: border-box; margin-inline: auto;
  padding: clamp(1.25rem, 4.6vw, 4.2rem) clamp(1rem, 4vw, 3.5rem) 1rem;
}
.app-shell > main { display: block; min-inline-size: 0; width: auto; max-width: none; margin: 0; padding: 0; }
.app-hero, .app-device, .app-shell aside { border: 1px solid #2b3b55; border-radius: 1rem; }
.app-hero {
  position: relative; isolation: isolate; overflow: hidden; box-sizing: border-box;
  padding: clamp(1.3rem, 3.5vw, 2.7rem);
  background: #101d32; color: #edf3ff;
}
.app-hero::before {
  content: ''; position: absolute; z-index: -1; inset: 0; opacity: .35;
  background: url('/portal-assets/atlas.png') 85% center / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent, #000);
}
[dir=rtl] .app-hero::before { transform: scaleX(-1); }
.app-hero .app-icon { display: block; inline-size: 3.9rem; block-size: 3.9rem; border: 1px solid #526682; border-radius: .8rem; }
.app-hero h1 { margin: 1rem 0 .65rem; font-size: clamp(2.5rem, 5.5vw, 4.8rem); letter-spacing: -.055em; line-height: 1.06; }
.app-hero p, .app-device p { margin: 0; line-height: 1.55; color: #c4d1e3; overflow-wrap: anywhere; }
.app-hero > p { max-inline-size: 40ch; }
.app-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin-block-start: 1.2rem; }
.app-controls a, .app-controls button {
  display: inline-flex; align-items: center; justify-content: center; min-block-size: 44px; box-sizing: border-box;
  padding: .55rem 1rem; border: 1px solid #596f93; border-radius: 2rem;
  background: #17273e; color: #eef4ff; font: inherit; font-size: .92rem;
  font-weight: 650; line-height: 1.35; cursor: pointer; text-align: center; text-decoration: none;
}
.app-controls button { border-color: #b0cdff; background: #abc8ff; color: #11213a; }
.app-controls a:hover { background: #223854; }
.app-controls button:hover { background: #c4d9ff; }
.app-controls :focus-visible { outline: 3px solid #c0d8ff; outline-offset: 3px; }
.app-page [hidden] { display: none !important; }
.app-install-status p:not([hidden]) { margin-block-start: 1rem; }
.app-devices { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .9rem; margin-block-start: 1rem; }
.app-device { padding: clamp(1rem, 2.4vw, 1.6rem); background: #111826; }
.app-device h2 { width: fit-content; margin: 0 0 .65rem; font-size: 1.18rem; line-height: 1.2; letter-spacing: -.025em; color: #eff4fc; }
.app-device p { font-size: .93rem; }
.app-shell > aside { align-self: start; overflow: hidden; background: #111826; }
@media (max-width: 800px) {
  .app-shell { grid-template-columns: minmax(0,1fr); }
  .app-shell > aside { position: static; display: flex; align-items: flex-start; gap: .7rem; padding: .85rem; inset: auto; box-shadow: none; }
  .app-shell .photo { flex: none; width: 48px; height: 56px; border-radius: .45rem; }
  .app-shell .guide-copy { flex: 1; min-width: 0; padding: 0; }
}
@media (max-width: 490px) { .app-devices { grid-template-columns: minmax(0, 1fr); } }
