/* Independent share entry: no map, workbench or authentication state changes. */
.app-ui .system-access-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(158, 229, 220, .35);
  border-radius: 9px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}
.app-ui .system-access-trigger:hover { background: rgba(255, 255, 255, .18); }
.app-ui .system-access-menu-entry { display: none; }
.system-access-dialog {
  box-sizing: border-box;
  width: min(440px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #d6e7e3;
  border-radius: 18px;
  color: #263e50;
  background: #fff;
  box-shadow: 0 24px 80px #0f294047;
  font-family: inherit;
}
.system-access-dialog::backdrop { background: rgba(14, 35, 49, .48); }
.system-access-dialog *, .system-access-dialog *::before, .system-access-dialog *::after { box-sizing: border-box; }
.system-access-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 22px 24px;
  background: linear-gradient(115deg, #136b63, #1c9d7e);
  color: #fff;
}
.system-access-eyebrow { font-size: 12px; opacity: .85; letter-spacing: 1px; }
.system-access-heading h2 { margin: 6px 0 0; font-size: 21px; font-weight: 650; line-height: 1.4; }
.system-access-close {
  flex: 0 0 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #ffffff40;
  border-radius: 9px;
  background: #ffffff16;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.system-access-content { padding: 20px 24px 22px; }
.system-access-content > p:first-child { margin: 0 0 16px; text-align: center; font-size: 14px; color: #627789; }
.system-access-code {
  width: min(252px, 100%);
  margin: 0 auto 18px;
  padding: 6px;
  background: #fff;
  border: 1px solid #dcebe6;
  border-radius: 12px;
}
.system-access-code img { display: block; width: 100%; height: auto; }
.system-access-content label { display: block; margin: 0 0 8px; font-size: 12px; color: #63788a; }
.system-access-content input {
  width: 100%;
  min-width: 0;
  padding: 11px 10px;
  border: 1px solid #dce5ec;
  border-radius: 8px;
  background: #f6f9fc;
  color: #314b60;
  font: 13px/1.5 ui-monospace, monospace;
}
.system-access-actions { display: flex; gap: 10px; margin-top: 14px; }
.system-access-actions > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 1 1 0;
  min-width: 0;
  padding: 11px 6px;
  border: 1px solid #b9dbd1;
  border-radius: 8px;
  background: #f1faf6;
  color: #167760;
  font: 500 13px/1.5 sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.system-access-actions a { border-color: #14967c; background: #14967c; color: #fff; }
.system-access-actions > *:hover { filter: brightness(.96); }
.system-access-status { min-height: 19px; margin: 8px 0; color: #157a63; font-size: 12px; text-align: center; }
.system-access-note { margin: 0; font-size: 12px; line-height: 1.7; color: #758593; text-align: center; }
.system-access-error { color: #b34b2a; font-size: 13px; line-height: 1.6; }
.system-access-dialog :focus-visible, .system-access-trigger:focus-visible, .system-access-menu-entry:focus-visible {
  outline: 3px solid #54d2b7;
  outline-offset: 3px;
}
@media (max-width: 1700px) {
  .app-ui .system-access-trigger { width: 36px; padding: 0; }
  .system-access-trigger span { display: none; }
}
@media (max-width: 760px) {
  .app-ui .system-access-trigger { display: none; }
  .app-ui .system-access-menu-entry {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: 0;
    border-bottom: 1px solid #e4ecef;
    background: #f1faf6;
    color: #167760;
    font: 500 14px/1.5 sans-serif;
    cursor: pointer;
  }
}
@media (max-width: 360px) {
  .system-access-heading { padding: 18px; }
  .system-access-content { padding: 16px; }
}
