.account-main { width:min(100%,950px); margin:0 auto; padding:clamp(42px,6vw,76px) 0 72px; min-width:0; }
.account-heading { margin-bottom:28px; }
.account-heading h1 { margin:0 0 10px; font-size:clamp(26px,4vw,36px); letter-spacing:-1px; }
.account-heading p,.account-hint { color:var(--muted); font-size:13px; line-height:1.7; }
.account-panel { padding:26px; border:1px solid #ffffff0f; border-radius:16px; background:#151925; box-shadow:0 12px 38px #00000014; }
.account-panel h2 { margin:0 0 15px; font-size:17px; font-weight:800; }
.account-linked-user { display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid #ffffff0c; }
.account-linked-user.is-pending > div > span { color:#d7bd86; }
.account-linked-user .account-linked-action { padding:8px 10px; font-size:10px; max-width:110px; }
.account-linked-avatar { display:block; flex:none; width:34px; height:34px; overflow:hidden; border-radius:50%; background:#262b39; }
.account-linked-avatar img { width:100%; height:100%; object-fit:cover; }
.account-linked-user > div { display:grid; gap:3px; min-width:0; }
.account-linked-user strong { color:#e5e7ef; font-size:12px; overflow-wrap:anywhere; }
.account-linked-user > div > span { color:#929db3; font-size:10px; overflow-wrap:anywhere; }
.account-link-form { display:grid; gap:10px; margin-top:20px; }
.account-telegram-link { width:100%; box-sizing:border-box; margin-top:10px; }
.account-link-form label { color:#c5cbda; font-size:12px; font-weight:600; }
.account-link-form input { box-sizing:border-box; min-width:0; width:100%; padding:11px 12px; border:1px solid #ffffff12; border-radius:7px; background:#0f121c; color:#edf0f7; font:13px Manrope,sans-serif; }
.account-link-form input:focus-visible { outline:2px solid #8c7bff; outline-offset:2px; }
.account-link-warning { margin:16px 0 0; font-size:11px; }
.account-inbox {
  padding:0;
  min-width:0;
  overflow:hidden;
  background:#10141f;
}
.account-inbox-heading {
  display:flex;
  align-items:center;
  gap:11px;
  padding:20px;
  border-bottom:1px solid #ffffff0c;
  background:#191e2b;
}
.account-inbox-heading h2 {
  flex:1;
  min-width:0;
  margin:0;
  color:#e3e5ef;
  font-size:14px;
  line-height:1.5;
}
.account-mail-icon {
  position:relative;
  display:block;
  flex:none;
  width:32px;
  height:32px;
  border-radius:8px;
  background:#a293ff12;
  color:#b7adf8;
}
.account-mail-icon::before {
  content:'';
  position:absolute;
  inset:10px 7px 9px;
  border:1.5px solid currentColor;
  border-radius:3px;
}
.account-mail-icon::after {
  content:'';
  position:absolute;
  top:8px;
  left:11px;
  width:10px;
  height:10px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  border-radius:0 0 3px;
  transform:rotate(45deg);
}
.account-inbox-count {
  display:grid;
  place-items:center;
  flex:none;
  min-width:25px;
  height:25px;
  padding:0 7px;
  border:1px solid #b7adf826;
  border-radius:7px;
  background:#a293ff12;
  color:#c5bdf5;
  font-size:11px;
  font-weight:700;
  font-variant-numeric:tabular-nums;
}
#account-inbox-list {
  display:grid;
  align-content:start;
  min-height:240px;
  max-height:580px;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#45485f transparent;
}
#account-inbox-list:empty { display:none; }
#account-inbox-list:focus-visible {
  outline:2px solid #b7adf8;
  outline-offset:-2px;
}
.account-notification {
  position:relative;
  display:grid;
  grid-template-columns:32px minmax(0,1fr);
  align-items:start;
  gap:12px;
  padding:20px;
  border-bottom:1px solid #ffffff09;
  transition:background .18s;
}
.account-notification:last-child { border-bottom:0; }
.account-notification:hover,.account-notification:focus-within { background:#ffffff03; }
.account-notification.is-pending { background:#a293ff07; }
.account-notification.is-pending::before {
  content:'';
  position:absolute;
  inset:20px auto 20px 0;
  width:2px;
  border-radius:0 2px 2px 0;
  background:#a89aee;
}
.account-notification-avatar {
  position:relative;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  overflow:hidden;
  border:1px solid #ffffff0a;
  border-radius:50%;
  background:#272c3e;
  color:#b8b2ce;
  font-size:12px;
  font-weight:700;
}
.account-notification-avatar img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.account-notification-content { min-width:0; }
.account-notification-meta {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:5px 12px;
  margin-bottom:8px;
}
.account-notification-sender {
  min-width:0;
  color:#b7bdd0;
  font-size:11px;
  font-weight:600;
  overflow-wrap:anywhere;
}
.account-notification-time {
  flex:none;
  color:#8e97ad;
  font-size:10px;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.account-inbox .account-notification-title {
  margin:0;
  color:#e4e5ef;
  font-size:13px;
  font-weight:700;
  line-height:1.6;
  overflow-wrap:anywhere;
}
.account-notification.is-success .account-notification-title { color:#8dd9b2; }
.account-notification-pending {
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:9px;
  color:#bcb0f2;
  font-size:10px;
  font-weight:600;
}
.account-notification-pending::before {
  content:'';
  width:5px;
  height:5px;
  border-radius:50%;
  background:currentColor;
}
.account-notification-details { margin-top:14px; }
.account-notification-details summary {
  width:fit-content;
  color:#9da6bc;
  font-size:11px;
  line-height:1.7;
  cursor:pointer;
}
.account-notification-details summary:hover { color:#c8c1ea; }
.account-notification-details summary:focus-visible {
  outline:2px solid #b7adf8;
  outline-offset:3px;
  border-radius:3px;
}
.account-notification-details p,.account-notification-description {
  margin:10px 0 0;
  color:#9da6bc;
  font-size:12px;
  line-height:1.7;
  overflow-wrap:anywhere;
}
.account-notification-deadline {
  margin:12px 0 0;
  color:#8e97ad;
  font-size:10px;
  line-height:1.7;
}
.account-notification-deadline time { font:inherit; color:#b0b6c9; }
.account-link-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.account-link-actions button { min-height:36px; font-size:11px; padding:9px 12px; }
.account-inbox-placeholder {
  display:grid;
  justify-items:center;
  align-content:center;
  gap:12px;
  min-height:240px;
  padding:32px 20px;
  text-align:center;
}
.account-inbox-placeholder .account-mail-icon { color:#767d97; background:#ffffff04; }
.account-inbox-placeholder p { margin:0; color:#929cb3; font-size:12px; line-height:1.7; }
.account-inbox-placeholder.is-error p { color:#e5a0ab; }
.account-inbox-placeholder.has-entries { min-height:0; padding:14px 20px; border-bottom:1px solid #ffffff09; }
.account-inbox-placeholder.has-entries .account-mail-icon { display:none; }
.account-panel h3 { margin:24px 0 12px; font-size:12px; color:var(--muted); }
.account-overview { padding:0; overflow:hidden; margin-bottom:22px; }
.account-cover { height:124px; background:#26243d; background-size:cover; background-position:center; }
.account-identity { display:flex; align-items:center; gap:20px; padding:0 28px 26px; margin-top:-28px; position:relative; }
.account-identity > img { width:88px; height:88px; flex:none; border:6px solid #151925; border-radius:50%; object-fit:cover; }
.account-handle-row { display:flex; align-items:center; gap:6px; min-width:0; }
.account-handle-row > p { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.account-navigation { display:flex; flex-direction:column; gap:6px; padding:12px; border:1px solid #ffffff0f; border-radius:14px; background:#151925; }
.account-navigation button { padding:13px 14px; border:0; border-radius:7px; background:#ffffff05; color:#b5bacb; text-align:left; font:600 13px Manrope,sans-serif; }
.account-navigation button:disabled { cursor:default; }
.account-main > .account-navigation { flex-direction:row; flex-wrap:wrap; margin-bottom:24px; }
.account-main > .account-navigation button { flex:1; }
.account-identity > div { padding-top:38px; min-width:0; }
.account-identity h2 { margin:3px 0 8px; font-size:25px; overflow-wrap:anywhere; }
.account-identity p { margin:0; color:#a4a8b9; font-size:12px; overflow-wrap:anywhere; }
.account-membership { font-size:11px; color:#b7adf8; }
.account-columns { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:22px; align-items:start; }
.account-settings { display:flex; flex-direction:column; }
.account-settings .account-hint { margin:0 0 22px; }
.account-settings label { color:#d6d7e2; font-size:12px; font-weight:700; margin-bottom:9px; }
.account-settings input,.account-settings textarea { width:100%; box-sizing:border-box; border:1px solid #ffffff12; border-radius:8px; background:#0f121c; color:#edf0f7; font:inherit; font-size:13px; padding:12px; }
.account-settings input { margin-bottom:22px; }
.account-settings textarea { resize:vertical; min-height:120px; line-height:1.65; }
.account-settings input:focus,.account-settings textarea:focus { outline:2px solid #8c7bff; outline-offset:2px; }
.account-field-note { display:flex; justify-content:space-between; gap:12px; color:#949aad; font-size:10px; margin-top:10px; line-height:1.6; }
.account-field-note span:last-child { flex:none; }
.account-actions { display:flex; justify-content:flex-end; gap:10px; }
.account-primary,.account-secondary { display:inline-flex; align-items:center; justify-content:center; border:0; border-radius:7px; padding:11px 17px; font:700 12px Manrope,sans-serif; cursor:pointer; text-decoration:none; transition:background .18s,opacity .18s; }
.account-primary { background:#5865f2; color:#fff; }
.account-primary:hover { background:#4752c4; }
.account-secondary { background:#ffffff0d; color:#cbd0df; }
.account-secondary:hover { background:#ffffff16; }
.account-primary:focus-visible,.account-secondary:focus-visible,.account-id button:focus-visible { outline:2px solid #b7adf8; outline-offset:3px; }
.account-primary:disabled,.account-secondary:disabled { opacity:.4; cursor:default; }
.account-save-state { min-height:20px; color:#79dca0; font-size:12px; margin:16px 0; line-height:1.6; }
.account-save-state.is-error { color:#ef8b96; }
.account-details dl { margin:0; }
.account-details dl > div { padding:14px 0; border-bottom:1px solid #ffffff0a; }
.account-details dl > div:last-child { border:0; padding-bottom:0; }
.account-details dt { color:#949aad; font-size:11px; margin-bottom:7px; }
.account-details dd { margin:0; color:#e0e2ed; font-size:13px; overflow-wrap:anywhere; }
.account-id { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.account-id span { font-size:12px; font-variant-numeric:tabular-nums; }
.account-id button { background:none; border:0; color:#afa5ff; font:600 10px Manrope,sans-serif; padding:0; cursor:pointer; }
.account-server { margin-top:22px; }
.account-tags { display:flex; flex-wrap:wrap; gap:8px; }
.account-tag { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border:1px solid #ffffff12; border-radius:6px; background:#ffffff05; color:var(--account-role-color,#c5c8da); font-size:12px; }
.account-tag img { width:17px; height:17px; object-fit:contain; }
.account-guest { text-align:center; padding:46px 24px; }
.account-guest p { color:var(--muted); font-size:13px; margin:12px auto 24px; max-width:320px; line-height:1.8; }
.account-guest-symbol { display:block; font-size:44px; color:#a89aff; margin-bottom:18px; }
.account-state { color:var(--muted); font-size:13px; }
.account-main [hidden] { display:none !important; }
@media(max-width:760px) { .account-columns { grid-template-columns:1fr; } .account-panel { padding:22px; } .account-overview,.account-inbox { padding:0; } .account-identity { padding:0 20px 22px; gap:14px; } .account-identity h2 { font-size:21px; } }
@media(max-width:400px) {
  .account-inbox-heading,.account-notification { padding:16px; }
  .account-notification { grid-template-columns:26px minmax(0,1fr); gap:10px; }
  .account-notification-avatar { width:26px; height:26px; font-size:10px; }
  .account-link-actions button { flex:1 1 auto; }
}
@media(prefers-reduced-motion:reduce) { .account-primary,.account-secondary,.account-notification { transition:none; } }
