/* nexora-demo:accounts */
.icon-sprite { position: absolute; }

.workspace-sidebar {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.account-shortcut {
  display: inline-flex;
  min-width: 0;
  min-height: 42px;
  max-width: 176px;
  align-items: center;
  gap: 7px;
  border: 1px solid #537368;
  border-radius: 9px;
  padding: 7px 10px;
  background: #213d35;
  color: #e8f7ef;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
}

.account-shortcut:hover { background: #2b4d42; }
.account-shortcut .icon { flex-shrink: 0; }

#account-shortcut-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-panel { scroll-margin-block-start: 18px; }

.account-note {
  border: 1px solid #eddcba;
  border-radius: 9px;
  padding: 10px 12px;
  background: var(--ochre);
  color: var(--amber);
  font-size: .78rem;
  line-height: 1.45;
}

.account-form {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.account-form-title {
  font-size: .95rem;
  line-height: 1.35;
}

.account-field {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.account-field label {
  font-size: .8rem;
  font-weight: 700;
}

.account-field input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #7d8d84;
  border-radius: 9px;
  padding: 8px 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.account-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 15px;
}

.account-link {
  justify-self: start;
  min-height: 32px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-size: .79rem;
  font-weight: 700;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: .15em;
}

.account-link:hover { color: var(--green-hover); }
.account-link:disabled { opacity: .65; cursor: default; }

.account-description {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
}

.account-active, .account-status {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.account-active > .button { justify-self: start; }

.account-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  border: 1px solid #deebe2;
  border-radius: 11px;
  padding: 8px 10px;
  background: #f5faf6;
}

.account-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 9px;
  background: var(--mint);
  color: var(--green);
}

.account-avatar .icon { width: 19px; height: 19px; }
.account-identity-copy { min-width: 0; }
.account-identity-copy small { display: block; color: var(--muted); font-size: .73rem; }

#auth-user-email {
  display: block;
  font-size: .89rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.account-feedback:not(:empty) {
  margin-top: 9px;
  color: var(--muted);
  font-size: .77rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.account-feedback[data-state="error"]:not(:empty) { color: #963c36; }
.account-feedback[data-state="success"]:not(:empty) { color: var(--green); }

@media (max-width: 690px) {
  .header-actions .header-pill { display: none; }
  .header-actions { min-width: 0; }
  .header-actions #install-app { flex-shrink: 0; }
}

@media (max-width: 620px) {
  .workspace-sidebar { gap: 12px; }
}

@media (max-width: 400px) {
  .header-inner { gap: 9px; }
  .header-actions { gap: 6px; }
  .header-actions :is(.account-shortcut, #install-app) { gap: 5px; padding-inline: 8px; }
}
