:root {
  --bg: #07090c;
  --surface: #0d1117;
  --surface-2: #111721;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f2f4f7;
  --muted: #98a2b3;
  --muted-2: #667085;
  --accent: #ffd23f;
  --accent-2: #ffe066;
  --danger: #f97066;
  --ok: #32d583;
  --radius: 12px;
  --sidebar: 248px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

button, input, select, textarea { font: inherit; }

h1, h2, h3, p { margin-top: 0; }

code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 11px;
}

/* auth */

.auth-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px 18px;
  background:
    radial-gradient(700px 420px at 80% -10%, rgba(59, 130, 246, 0.12), transparent 60%),
    radial-gradient(500px 360px at 0% 100%, rgba(255, 210, 63, 0.05), transparent 60%),
    var(--bg);
}

.auth-shell {
  width: 100%;
  max-width: 420px;
}

.auth-logo, .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.auth-logo { margin-bottom: 22px; }

.auth-logo__mark, .brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent);
  color: #08090b;
  font-weight: 900;
  font-size: 19px;
}

.auth-logo__text, .brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.auth-logo__text b, .brand__text b { font-size: 15px; letter-spacing: 0.12em; }
.auth-logo__text small, .brand__text small { color: var(--muted-2); font-size: 8px; letter-spacing: 0.16em; }

.auth-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.auth-card h1 { margin-bottom: 6px; font-size: 25px; line-height: 1.15; letter-spacing: -0.02em; }
.auth-lead { margin-bottom: 22px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.auth-foot { margin: 18px 0 0; color: var(--muted-2); font-size: 10.5px; text-align: center; }

.auth-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted-2);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.oauth { display: grid; gap: 8px; }

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 11px;
}
.auth-links a { color: var(--accent); text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }

/* app */

.app-body { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: var(--sidebar);
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: #090c11;
}

.brand { margin: 0 6px 28px; }

.nav { display: grid; gap: 3px; }

.nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}
.nav__item:hover { background: var(--surface); color: var(--text); }
.nav__item.is-active { background: rgba(255, 210, 63, 0.1); color: var(--accent); }
.nav__icon { width: 16px; color: currentColor; text-align: center; }

.sidebar__user {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.sidebar__user-info { min-width: 0; display: flex; flex-direction: column; }
.sidebar__user-info b { overflow: hidden; font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
.sidebar__user-info small { color: var(--muted-2); font-size: 9.5px; }
.sidebar__user form { margin-left: auto; }

.avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 210, 63, 0.14);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
}
.avatar--sm { width: 26px; height: 26px; font-size: 9px; }

.main { margin-left: var(--sidebar); min-height: 100vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 62px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 12, 0.92);
  backdrop-filter: blur(12px);
}
.topbar__title { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }
.topbar__right { margin-left: auto; }
.topbar__user { color: var(--muted-2); font-size: 11px; }

.menu-btn { display: none; }

.content { max-width: 1240px; padding: 30px 28px 60px; }

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.page-head h1 { margin: 0 0 4px; font-size: 27px; line-height: 1.15; letter-spacing: -0.025em; }
.page-head p { margin: 0; color: var(--muted); font-size: 12.5px; }
.page-head__actions { display: flex; gap: 8px; }

.back { display: inline-block; margin-bottom: 8px; color: var(--muted-2); font-size: 11px; text-decoration: none; }
.back:hover { color: var(--accent); }

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--accent); color: #08090b; }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { border-color: var(--line-2); color: var(--muted); }
.btn--ghost:hover { border-color: rgba(255, 210, 63, 0.4); color: var(--accent); }
.btn--oauth { width: 100%; border-color: var(--line-2); background: var(--surface-2); }
.btn--oauth:hover { border-color: rgba(255, 210, 63, 0.4); }
.btn--block { width: 100%; }
.btn--sm { min-height: 32px; padding: 0 10px; font-size: 11px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.icon-btn:hover { color: var(--accent); border-color: rgba(255, 210, 63, 0.4); }

/* forms */

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { color: var(--muted); font-size: 11px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #0a0f15;
  color: var(--text);
  font-size: 13px;
  outline: none;
}
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(255, 210, 63, 0.55); }
.field select { appearance: none; }
.field--inline { display: flex; align-items: center; gap: 8px; }
.field--inline > span { flex-shrink: 0; }
.field--inline select, .field--inline input { min-height: 38px; width: auto; }
.field--grow { flex: 1; }
.field--grow input { width: 100%; }

.form-note { margin: 0; color: var(--muted-2); font-size: 10.5px; }
.form-actions { display: flex; gap: 8px; }

.filters {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

/* flashes */

.flash {
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
}
.flash--ok { border-color: rgba(50, 213, 131, 0.3); background: rgba(50, 213, 131, 0.08); color: #6ce9a6; }
.flash--error { border-color: rgba(249, 112, 102, 0.35); background: rgba(249, 112, 102, 0.08); color: #fda29b; }

/* stats */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.stat span { display: block; color: var(--muted); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.stat b { display: block; margin: 8px 0 2px; font-size: 26px; line-height: 1; letter-spacing: -0.03em; }
.stat small { color: var(--muted-2); font-size: 10px; }
.stat--accent { border-color: rgba(255, 210, 63, 0.3); background: rgba(255, 210, 63, 0.05); }
.stat--accent b, .stat__money { color: var(--accent); }
.stat__money { font-size: 20px; }

/* panels */

.panel {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.panel--narrow { max-width: 560px; }
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.panel__head h2 { margin: 0; font-size: 13px; font-weight: 800; }
.panel > .form, .panel > .facts, .panel > .comment, .panel > .notes, .panel > .empty, .panel > .history { padding: 16px 18px; }
.panel > .form + .panel__head { border-top: 1px solid var(--line); }
.panel > .subhead { margin: 18px 18px 10px; }
.panel > .order-total { margin: 0 18px 18px; }

.empty { padding: 26px 18px; color: var(--muted-2); font-size: 12px; text-align: center; }

.link { color: var(--accent); text-decoration: none; }
.link:hover { text-decoration: underline; }
.link-muted { color: var(--muted); text-decoration: none; }
.link-muted:hover { color: var(--accent); }

.subhead { margin: 18px 0 10px; font-size: 12px; font-weight: 800; }

/* tables */

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.table td { padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.045); font-size: 12px; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(255, 255, 255, 0.018); }
.table--compact th, .table--compact td { padding: 8px 12px; }
.cell-muted { color: var(--muted-2); }
.cell-right { text-align: right; }

.pagination { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 11px; }

/* statuses */

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status--new { border-color: rgba(255, 210, 63, 0.3); color: var(--accent); background: rgba(255, 210, 63, 0.06); }
.status--contacted { border-color: rgba(59, 130, 246, 0.3); color: #93c5fd; background: rgba(59, 130, 246, 0.07); }
.status--measuring { border-color: rgba(192, 132, 252, 0.3); color: #d8b4fe; background: rgba(192, 132, 252, 0.07); }
.status--install { border-color: rgba(251, 146, 60, 0.3); color: #fdba74; background: rgba(251, 146, 60, 0.07); }
.status--done { border-color: rgba(50, 213, 131, 0.3); color: #6ce9a6; background: rgba(50, 213, 131, 0.07); }
.status--canceled { border-color: rgba(249, 112, 102, 0.3); color: #fda29b; background: rgba(249, 112, 102, 0.07); }
.status--lg { padding: 6px 12px; font-size: 11px; }

.role { display: inline-block; padding: 3px 8px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 10px; font-weight: 700; }
.role--owner { border-color: rgba(255, 210, 63, 0.35); color: var(--accent); }
.role--admin { border-color: rgba(59, 130, 246, 0.3); color: #93c5fd; }

/* detail */

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.detail-side { position: sticky; top: 80px; }

.facts { display: grid; gap: 10px; margin: 0; }
.facts > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; }
.facts dt { color: var(--muted-2); font-size: 11px; }
.facts dd { margin: 0; font-size: 12.5px; overflow-wrap: anywhere; }

.comment { padding: 14px 18px; border-top: 1px solid var(--line); }
.comment b { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.comment p { margin: 0; color: var(--text); font-size: 12.5px; white-space: pre-wrap; }

.order-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.order-total b { color: var(--accent); font-size: 20px; }

.notes { display: grid; gap: 12px; border-top: 1px solid var(--line); }
.note { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.note:last-child { border-bottom: 0; }
.note__meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted-2); font-size: 10px; }
.note__meta b { color: var(--muted); }
.note p { margin: 6px 0 0; color: var(--text); font-size: 12px; white-space: pre-wrap; }

.history { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.history li { display: flex; justify-content: space-between; gap: 10px; color: var(--muted-2); font-size: 10.5px; }
.history b { color: var(--muted); font-weight: 600; }

.user-cell { display: flex; align-items: center; gap: 8px; }
.inline-form { display: inline-flex; }
.inline-form select { min-height: 30px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: var(--text); font-size: 11px; }

.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.settings-grid .panel:last-child { grid-column: 1 / -1; }

.error-page { padding: 70px 0; text-align: center; }
.error-page__code { display: block; color: rgba(255, 210, 63, 0.22); font-size: 90px; font-weight: 900; line-height: 1; }
.error-page h1 { margin: 8px 0 8px; font-size: 26px; }
.error-page p { color: var(--muted); }

/* responsive */

@media (max-width: 980px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.2s ease; }
  .sidebar.is-open { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-btn {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
  }
  .sidebar-overlay { display: none; position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, 0.6); }
  .sidebar-overlay.is-visible { display: block; }
  .topbar { padding: 0 18px; }
  .content { padding: 22px 18px 48px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .page-head { flex-direction: column; gap: 12px; }
  .page-head h1 { font-size: 23px; }
  .filters { flex-direction: column; align-items: stretch; }
  .field--inline { flex-direction: column; align-items: stretch; }
  .field--inline select, .field--inline input { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 22px; }
  .settings-grid { grid-template-columns: 1fr; }
  .table th, .table td { padding: 9px 10px; }
  .topbar__user { display: none; }
  .auth-card { padding: 22px; }
  .auth-links { flex-direction: column; }
}

/* customer account */

.account-body {
  min-height: 100vh;
  background:
    radial-gradient(800px 500px at 80% -10%, rgba(59, 130, 246, 0.1), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(255, 210, 63, 0.04), transparent 60%),
    var(--bg);
}

.account-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.account-top__nav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 11.5px;
}
.account-top__nav > a { color: var(--muted); text-decoration: none; }
.account-top__nav > a:hover { color: var(--accent); }
.account-top__user { color: var(--text); font-weight: 700; }
.account-top__nav form { margin: 0; }

.account-main {
  max-width: 1080px;
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  padding: 36px 24px 70px;
}

.account-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px 30px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10.5px;
}
.account-foot a { color: var(--muted-2); text-decoration: none; }
.account-foot a:hover { color: var(--accent); }

.account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.account-head h1 { margin: 0 0 6px; font-size: 29px; line-height: 1.12; letter-spacing: -0.02em; }
.account-lead { margin: 0 0 16px; color: var(--muted); font-size: 12.5px; line-height: 1.65; }

.account-card {
  margin-bottom: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.account-card h2 { margin: 0 0 14px; font-size: 15px; }
.account-card--auth { width: 100%; max-width: 460px; margin: 0 auto; padding: 28px; }
.account-card--auth h1 { margin: 0 0 8px; font-size: 25px; }
.account-card--auth .eyebrow { margin-bottom: 10px; }

.account-switch { margin: 16px 0 0; color: var(--muted-2); font-size: 11.5px; text-align: center; }
.account-switch a { color: var(--accent); text-decoration: none; }
.account-switch a:hover { text-decoration: underline; }

.account-code {
  text-align: center;
  font-size: 22px !important;
  letter-spacing: 0.3em;
  font-weight: 800;
}

.account-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.account-facts > div {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.account-facts span { display: block; color: var(--muted-2); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.account-facts b { display: block; margin-top: 4px; font-size: 12.5px; overflow-wrap: anywhere; }

.account-orders { display: grid; gap: 12px; }
.account-order-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.account-order-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.account-order-card__number { color: var(--accent); font-size: 15px; font-weight: 800; text-decoration: none; }
.account-order-card__date { display: block; margin-top: 2px; color: var(--muted-2); font-size: 10.5px; }
.account-order-card__body { display: flex; gap: 30px; margin: 14px 0; }
.account-order-card__body span { display: block; color: var(--muted-2); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.account-order-card__body b { display: block; margin-top: 3px; font-size: 12.5px; }
.account-order-card__actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }

.account-empty {
  padding: 48px 24px;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  text-align: center;
}
.account-empty h2 { margin-bottom: 8px; font-size: 19px; }
.account-empty p { max-width: 460px; margin: 0 auto 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }

.account-order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.account-side { position: sticky; top: 20px; }
.account-muted { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.6; }
.account-status-big { margin: 0 0 8px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 18px; font-weight: 800; text-align: center; }
.account-side .btn { margin-top: 8px; }

.chat { display: grid; gap: 10px; margin: 4px 0 18px; }
.chat__message { max-width: 82%; padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.chat__message--mine { margin-left: auto; border-color: rgba(255, 210, 63, 0.25); background: rgba(255, 210, 63, 0.06); }
.chat__message--staff { margin-right: auto; }
.chat__meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted-2); font-size: 9.5px; }
.chat__meta b { color: var(--muted); }
.chat__message p { margin: 5px 0 0; color: var(--text); font-size: 12px; line-height: 1.55; white-space: pre-wrap; }

@media (max-width: 760px) {
  .account-top { padding: 15px 18px; }
  .account-top__nav { gap: 9px; }
  .account-top__user { display: none; }
  .account-main { padding: 26px 18px 56px; }
  .account-head { flex-direction: column; }
  .account-head h1 { font-size: 24px; }
  .account-facts { grid-template-columns: 1fr; }
  .account-order-layout { grid-template-columns: 1fr; }
  .account-side { position: static; }
  .account-card { padding: 17px; }
  .chat__message { max-width: 92%; }
  .account-foot { padding: 15px 18px; flex-direction: column; }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow span { width: 18px; height: 1px; background: var(--accent); }

.chat__hint { margin: 12px 18px 0; color: var(--muted-2); font-size: 10.5px; }

.account-switch--staff { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

/* custom role menu */
.role-menu { position: relative; display: inline-block; }
.role-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
}
.role-menu summary::-webkit-details-marker { display: none; }
.role-menu__caret { color: var(--muted-2); font-size: 11px; }
.role-menu[open] .role-menu__caret { color: var(--accent); }
.role-menu__list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  min-width: 172px;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: #111721;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}
.role-menu__list form { margin: 0; }
.role-menu__item {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 11.5px;
  text-align: left;
  cursor: pointer;
}
.role-menu__item:hover { background: rgba(255, 210, 63, 0.08); color: var(--accent); }
.role-menu__item.is-current { background: rgba(255, 210, 63, 0.12); color: var(--accent); font-weight: 700; }

.account-auth-hint {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 210, 63, 0.3);
  border-radius: 8px;
  background: rgba(255, 210, 63, 0.06);
  color: var(--accent);
  font-size: 11.5px;
  line-height: 1.5;
}

/* role chips */
.role-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.role-actions form { margin: 0; }
.role-chip {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: var(--muted-2);
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.role-chip:hover { border-color: rgba(255, 210, 63, 0.4); color: var(--accent); }
.role-chip.is-current { border-color: rgba(255, 210, 63, 0.45); background: rgba(255, 210, 63, 0.12); color: var(--accent); }
