.portal-topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  min-height: 58px;
  border-bottom: 1px solid rgba(250, 247, 240, 0.14);
  background: #07111d;
  color: #faf7f0;
  box-shadow: 0 8px 24px rgba(7, 17, 29, 0.14);
}

.portal-topbar-inner {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 58px;
  padding: 0 24px;
}

.portal-topbar-brand {
  color: #faf7f0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  white-space: nowrap;
}

.portal-topbar-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 12px;
}

.portal-topbar-nav a {
  color: rgba(250, 247, 240, 0.78);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.portal-topbar-nav a:hover {
  color: #faf7f0;
}

.portal-topbar .portal-header-context {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 8px;
  max-width: 760px;
  margin-left: auto;
  padding: 4px 10px;
  border: 1px solid rgba(250, 247, 240, 0.28);
  border-radius: 999px;
  background: rgba(250, 247, 240, 0.08);
  color: #faf7f0;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

.portal-topbar .portal-header-context.is-blocked {
  border-color: #efc2ba;
  background: #fff4f1;
  color: #8b2f20;
}

.portal-topbar .portal-header-context-segment {
  color: inherit;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .portal-topbar {
    position: sticky;
    top: 0;
  }

  .portal-topbar-inner {
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 10px 16px;
  }

  .portal-topbar .portal-header-context {
    flex-basis: 100%;
    justify-content: flex-start;
    margin-left: 0;
    border-radius: 10px;
  }
}

.apaleo-property-rail .property-card,
.ibe-property-rail .property-card {
  box-sizing: border-box;
}

.portal-sidebar-security {
  border-top: 1px solid rgba(250, 247, 240, 0.16);
  margin-top: 18px;
  padding-top: 16px;
}

.portal-passkey-panel-host {
  display: grid;
  gap: 0;
}

.portal-passkey-panel {
  box-sizing: border-box;
  color: #faf7f0;
  display: grid;
  gap: 10px;
  width: 100%;
}

.portal-passkey-panel-title {
  color: #faf7f0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
}

.portal-passkey-panel-copy,
.portal-passkey-panel-empty,
.portal-passkey-panel-state,
.portal-passkey-panel-status {
  color: rgba(250, 247, 240, 0.74);
  font-size: 11px;
  line-height: 1.45;
  margin: 0;
}

.portal-passkey-panel-list {
  display: grid;
  gap: 8px;
}

.portal-passkey-panel-card {
  background: rgba(250, 247, 240, 0.08);
  border: 1px solid rgba(250, 247, 240, 0.18);
  border-radius: 8px;
  box-shadow: none;
  box-sizing: border-box;
  color: #faf7f0;
  display: grid;
  gap: 8px;
  min-height: 0;
  opacity: 1;
  padding: 9px;
  position: static;
  text-align: left;
  width: 100%;
}

.portal-passkey-panel-card::after {
  content: none;
}

.portal-passkey-panel-card-heading {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.portal-passkey-panel-card-title {
  color: #faf7f0;
  font-size: 12px;
  line-height: 1.25;
}

.portal-passkey-panel-card-details {
  display: grid;
  gap: 4px;
}

.portal-passkey-panel-card-detail {
  align-items: baseline;
  color: rgba(250, 247, 240, 0.66);
  display: flex;
  font-size: 10px;
  gap: 8px;
  justify-content: space-between;
  line-height: 1.35;
}

.portal-passkey-panel-card-detail b {
  color: rgba(250, 247, 240, 0.86);
  font-weight: 800;
  text-align: right;
}

.portal-passkey-panel-edit {
  display: grid;
  gap: 6px;
}

.portal-passkey-panel-edit[hidden] {
  display: none;
}

.portal-passkey-panel-edit input {
  background: rgba(250, 247, 240, 0.08);
  border: 1px solid rgba(250, 247, 240, 0.24);
  border-radius: 7px;
  box-sizing: border-box;
  color: #faf7f0;
  font-size: 11px;
  margin: 0;
  padding: 7px 8px;
  width: 100%;
}

.portal-passkey-panel-card-actions,
.portal-passkey-panel-edit-actions {
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr 1fr;
}

.portal-passkey-panel-action,
.portal-passkey-panel-cta {
  background: #faf7f0;
  border: 1px solid rgba(250, 247, 240, 0.32);
  border-radius: 8px;
  color: #07111d;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  margin: 0;
  padding: 8px 10px;
  width: 100%;
}

.portal-passkey-panel-cta {
  margin-top: 0;
}

.apaleo-property-rail .property-card .property-card-body,
.ibe-property-rail .property-card .property-card-body {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: block;
  font: inherit;
  margin: 0;
  padding: 0;
  text-align: left;
  width: 100%;
}

.apaleo-property-rail .property-card .property-card-body:disabled,
.ibe-property-rail .property-card .property-card-body:disabled {
  cursor: not-allowed;
}

.apaleo-property-rail .property-card.active:not(.disabled),
.ibe-property-rail .property-card.active:not(.disabled) {
  background: #07111d;
  border-color: #07111d;
  box-shadow: 0 0 0 2px rgba(7, 17, 29, 0.08);
  color: #f4efe3;
}

.apaleo-property-rail .property-card.active:not(.disabled) b,
.apaleo-property-rail .property-card.active:not(.disabled) span,
.apaleo-property-rail .property-card.active:not(.disabled) .property-config-status,
.ibe-property-rail .property-card.active:not(.disabled) b,
.ibe-property-rail .property-card.active:not(.disabled) span,
.ibe-property-rail .property-card.active:not(.disabled) .property-config-status {
  color: #f4efe3;
}

.apaleo-property-rail .property-card.disabled,
.ibe-property-rail .property-card.disabled {
  background: #f0ece4;
  opacity: 0.48;
}

.apaleo-property-rail .property-card.disabled.active,
.ibe-property-rail .property-card.disabled.active {
  background: #f0ece4;
  border-color: #ded8cb;
  box-shadow: 0 0 0 2px rgba(7, 17, 29, 0.06);
  color: #2f2b25;
}

.apaleo-property-rail .property-card.disabled.active b,
.apaleo-property-rail .property-card.disabled.active span,
.ibe-property-rail .property-card.disabled.active b,
.ibe-property-rail .property-card.disabled.active span {
  color: #2f2b25;
}
