.pm-account-nav {position:relative;z-index:40;display:flex;align-items:center;gap:6px;color:#f2f1ef;font:500 12px/1.2 system-ui,sans-serif;white-space:nowrap}
.pm-account-nav a,.pm-account-nav summary {color:inherit;text-decoration:none}
.pm-account summary {display:inline-flex;gap:.48em;align-items:center;border:1px solid #ffffff32;border-radius:18px;min-height:30px;padding:0 .82em;background:linear-gradient(165deg,#ffffff21,#ffffff06 55%,#0003);box-shadow:inset 0 1px #fff2,0 1px 2px #0003}
.pm-account-nav svg,.pm-account-nav i {display:block;width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5}
.pm-destination-projects:not([hidden]) {display:inline-flex;align-items:center;gap:5px;color:inherit;text-decoration:none;font:550 12px/1.25 system-ui,sans-serif;border:1px solid #ffffff36;border-radius:7px;padding:6px 9px;white-space:nowrap}
.pm-destination-projects:hover,.pm-destination-projects:focus-visible {background:#ffffff14;outline-color:#d7bd83}
.app-entry:has(.pm-destination-projects) {grid-template-columns:minmax(0,1fr) auto auto auto}
@media(max-width:520px) {.pm-account-nav .pm-destination-projects span{display:none}}
.pm-account {position:relative}
.pm-account summary {list-style:none;cursor:pointer}
.pm-account summary::-webkit-details-marker {display:none}
.pm-account-menu {background:linear-gradient(150deg,#37383bec,#141518ed);border:1px solid #ffffff38;border-radius:14px;box-shadow:inset 0 1px #fff3,0 15px 40px #0005;backdrop-filter:blur(22px) saturate(.78);-webkit-backdrop-filter:blur(22px) saturate(.78);color:#f6f6f5}
.pm-account-menu {position:absolute;z-index:30;right:0;top:calc(100% + 9px);min-width:155px;max-width:240px;padding:6px}
.pm-account-menu strong {display:block;padding:8px;white-space:normal;overflow-wrap:anywhere;font-size:11px}
.pm-account-menu a,.pm-account-menu button {width:100%;display:block;color:inherit;background:transparent;border:0;border-radius:8px;padding:9px 11px;text-align:start;font:inherit}
.pm-account-menu :is(a,button):hover,.pm-account-menu :is(a,button):focus-visible {background:#ffffff20}
.pm-account-nav :focus-visible,.pm-skip:focus-visible {outline:2px solid #c4e3e9;outline-offset:2px}
.pm-skip {position:fixed;left:8px;top:8px;z-index:15000;padding:10px;color:white;background:#25292b;transform:translateY(-160%)}
.pm-skip:focus-visible {transform:none}
@media(max-width:700px){
  .pm-account-nav{gap:4px}.pm-account summary{padding:0 6px;min-width:26px;min-height:28px;justify-content:center}
  .pm-account summary span{display:none}
}

body[data-phone] .inputs .engine-legend {display:block}
body[data-phone] .inputs .engine-legend strong {font:500 12px/1.18 var(--display);color:#f3f3f3}
body[data-phone] .inputs .engine-legend small {display:none}
body[data-phone] .engine-tools .engine {display:flex;flex-flow:column;gap:3px}

/* Give the three visible App destinations distinct landing points on the model's rail. */
body:not([data-phone]):not([data-application]) .model-zone {
  column-gap: clamp(28px, 2.7vw, 58px);
}
body:not([data-phone]):not([data-application]) .app-dock {
  --app-rail-cap: clamp(34px, 3.3cqw, 44px);
  grid-template-rows: var(--app-rail-cap) auto minmax(0, 1fr) auto var(--app-rail-cap);
}
body:not([data-phone]):not([data-application]) .app-dock .app-stack {
  --app-gap: clamp(12px, 2vh, 26px);
  grid-auto-rows: max(var(--app-height), calc((100% - 2 * var(--app-gap)) / 3));
}
body:not([data-phone]):not([data-application]) .app-stack .matrix-key {
  align-self: center;
  height: min(100%, calc(var(--app-height) * 1.65));
  scroll-snap-align: center;
}

.mast .layout-edit-key { width: 32px; height: 32px; justify-content: center; padding: 0; }
.mast .lang { display: inline-flex; padding: 2px; }
.mast .lang [data-console-language] {
  min-width: 32px; min-height: 24px; border-radius: 20px;
  font-weight: 650; color: #222426; background: linear-gradient(#f2f0eb, #c3c2bf);
}
.mast .lang button:focus-visible { outline: 2px solid #c9daec; outline-offset: 3px; }
.services .pm-imprint { border-inline-start:1px solid #ffffff26; padding-inline-start:.85em; white-space:nowrap; }
#console-legal:popover-open {
  position:fixed; inset:auto max(1rem, env(safe-area-inset-right)) max(2.75rem, env(safe-area-inset-bottom)) auto;
  margin:0; max-width:calc(100vw - 2rem); padding:.85rem 1rem; border:1px solid #ffffff38;
  border-radius:10px; background:#26282b; color:#eeeae3; box-shadow:0 5px 24px #0006;
  font:500 13px/1.5 var(--sans,system-ui);
}
#console-legal .pomi-legal-links { color:inherit; gap:.45em 1em; }
#console-legal .pomi-legal-links a { color:inherit; text-decoration:underline; }
.phone-settings .services { display:flex; flex-wrap:wrap; }
body[data-phone] .mast .lang { display: inline-flex; }
@media (pointer:coarse) {
  .mast .lang [data-console-language] { min-width: 40px; min-height: 36px; }
}

#studio-record-status { position:fixed; z-index:100; inset:auto 1rem .7rem auto; max-width:85vw; padding:.4rem .65rem; border-radius:8px; background:#292c2f; color:#f5f4f1; font:500 12px/1.5 system-ui; }
#studio-record-status[hidden] { display:none; }
#studio-record-conflicts { max-width:min(48rem,92vw); max-height:85vh; overflow:auto; }
#studio-record-conflicts pre { white-space:pre-wrap; overflow-wrap:anywhere; }
.work-project { display:flex; align-items:center; gap:.65rem; margin-block:.6rem; }
