.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(12, 20, 14, 0.12);
  backdrop-filter: blur(16px);
}

.brand,
.nav-actions,
.nav-actions a,
.brand-mark,
.user-chip,
.notice-line,
.section-title,
.form-heading,
.page-heading,
.owner-block,
.chat-header,
.staff-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
}

.brand-mark {
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #fff;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: #100b0b;
  box-shadow: 0 6px 18px rgba(15, 8, 8, 0.2);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  letter-spacing: 0;
}

.nav-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav-actions a {
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  color: var(--ink-soft);
  border-radius: var(--radius-small);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-actions a:hover {
  color: var(--ink);
  background: rgba(184, 47, 50, 0.1);
  transform: translateY(-1px);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 70px;
}

.auth-panel {
  display: block;
  min-height: 520px;
}

.auth-copy,
.auth-status,
.side-panel,
.form-panel,
.ticket-meta,
.chat-panel,
.staff-add-panel,
.staff-list,
.empty-state {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(820px, 100%);
  min-height: 430px;
  padding: clamp(28px, 7vw, 72px);
}

.auth-status {
  align-self: end;
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  padding: 22px;
}

.dashboard-head,
.page-heading {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.dashboard-head {
  display: flex;
  align-items: flex-end;
}

.user-chip {
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.user-chip span,
.owner-block span,
.message-name span,
.message-name time,
.compact-ticket small,
.ticket-row small,
.chat-header span {
  color: var(--muted);
  font-size: 0.84rem;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.section-title {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title h2,
.page-heading h1,
.dashboard-head h1 {
  margin: 0;
}

.ticket-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ticket-type-grid.wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.side-panel {
  padding: 18px;
}

.compact-list {
  display: grid;
  gap: 8px;
}

.form-panel {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 32px);
}

.form-panel.narrow {
  width: min(620px, 100%);
}

.form-heading {
  gap: 16px;
  margin-bottom: 22px;
}

.form-heading h1 {
  margin-bottom: 6px;
}

.staff-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.staff-add-panel,
.staff-list {
  padding: 18px;
}

.staff-list {
  display: grid;
  gap: 8px;
}

.staff-row {
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.55);
}
