:root {
  --account-sidebar: #1b1b19;
  --account-green: #dffe52;
  --account-soft: #ece8de;
}

.account-body {
  background: #ebe8df;
}

/* The floating chat button sits over the bottom-right corner: keep focused controls clear of it. */
html {
  scroll-padding-bottom: 88px;
}

.account-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

.account-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 26px 18px 18px;
  background: var(--account-sidebar);
  color: #f8f5ed;
}

.account-brand {
  display: grid;
  gap: 9px;
  padding: 0 11px;
  text-decoration: none;
}
.account-brand img {
  width: 132px;
  filter: invert(1);
}
.account-brand span {
  color: #8f8e87;
  font:
    700 9px/1 "Manrope",
    sans-serif;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.account-workspace {
  display: grid;
  gap: 5px;
  margin: 34px 4px 22px;
  padding: 16px 14px;
  border: 1px solid #343431;
  border-radius: 13px;
  background: #222220;
}
.account-workspace span,
.account-workspace small {
  color: #999891;
  font-size: 11px;
}
.account-workspace strong {
  overflow: hidden;
  font:
    700 14px/1.2 "Manrope",
    sans-serif;
  text-overflow: ellipsis;
}

.account-nav {
  display: grid;
  gap: 4px;
}
.account-nav a {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  min-height: 45px;
  padding: 0 12px;
  border-radius: 9px;
  color: #a5a49d;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.account-nav a span {
  display: grid;
  place-items: center;
}
.account-nav .portal-icon { width: 17px; height: 17px; }
.account-nav a:hover {
  color: #fff;
  background: #252523;
}
.account-nav a.is-active {
  background: #f5f1e8;
  color: #1b1b19;
}

.account-profile {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 16px 8px 2px;
  border-top: 1px solid #343431;
}
.account-profile > div {
  display: grid;
  min-width: 0;
}
.account-profile strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
}
.account-profile small {
  color: #82817b;
  font-size: 10px;
}
.account-profile button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: #2d2d2a;
  color: #b8b7af;
  cursor: pointer;
}
.account-profile button .portal-icon { width: 15px; height: 15px; }
.account-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--portal-violet);
  color: #1b1b19;
  font-weight: 800;
}

.account-main {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 38px clamp(24px, 4vw, 64px) 80px;
}
.account-mobile-head {
  display: none;
}
#account-view {
  outline: none;
}
#portal-status,
#portal-alert {
  position: sticky;
  z-index: 10;
  top: 14px;
  box-shadow: 0 10px 30px rgb(25 22 17 / 12%);
}

.admin-session-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #9b7be5;
  border-radius: 12px;
  background: #eee6ff;
  color: #382268;
}
.admin-session-banner[hidden] {
  display: none;
}
.admin-session-banner > div {
  display: grid;
  gap: 3px;
}
.admin-session-banner strong {
  font: 800 12px/1 "Manrope", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.admin-session-banner span {
  font-size: 13px;
}
