.service-shell { color-scheme: dark; background: #131922; color: #e6ebf2; font: 14px/1.2 system-ui, sans-serif; }
.service-shell * { box-sizing: border-box; }
.service-shell, .service-shell body { width: 100%; height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
@supports (height: 100dvh) { .service-shell, .service-shell body { height: 100dvh; } }
@supports (height: 100lvh) { .service-shell.standalone, .service-shell.standalone body { height: 100lvh; } }
.service-shell body { position: fixed; inset: 0; background: #0b0e13; }
/* Each service owns its header, controls and safe-area padding. */
.service-shell main { width: 100%; height: 100%; }
.service-shell #service-view { display: block; width: 100%; height: 100%; border: 0; background: #0b0e13; }
:is(.service-shell main, #directory-service).with-service-return {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.with-service-return iframe { min-height: 0; }
.directory-service-return {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: calc(44px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid #334155;
  background: #131922;
  color: #edf1f8;
  font: 600 14px/1.2 system-ui, sans-serif;
  text-decoration: none;
}
.directory-service-return:focus-visible { outline: 2px solid #aec8ff; outline-offset: -3px; }
