:root {
  --bg: #e8ddca;
  --bg-dark: #102033;
  --ink: #17253a;
  --muted: #6a707a;
  --line: rgba(23, 37, 58, 0.1);
  --surface: rgba(251, 247, 239, 0.9);
  --surface-strong: #fffdf9;
  --surface-dark: rgba(255, 255, 255, 0.08);
  --primary: #122742;
  --primary-dark: #091427;
  --accent: #c7a25c;
  --danger: #b42318;
  --warning: #b96d19;
  --success: #2c6b45;
  --shadow-lg: 0 28px 72px rgba(16, 24, 39, 0.16);
  --shadow-sm: 0 14px 28px rgba(16, 24, 39, 0.07);
  --display-font: Georgia, "Times New Roman", serif;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top center, rgba(199, 162, 92, 0.22), transparent 24%),
    radial-gradient(circle at left 10%, rgba(18, 39, 66, 0.16), transparent 28%),
    radial-gradient(circle at right 15%, rgba(18, 39, 66, 0.14), transparent 24%),
    linear-gradient(180deg, #fbf7ef 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 35%),
    radial-gradient(circle at top, rgba(199, 162, 92, 0.12), transparent 30%);
  pointer-events: none;
}

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

button {
  border: 0;
  cursor: pointer;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.92rem 1rem;
  border: 1px solid rgba(18, 39, 66, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(18, 39, 66, 0.32);
  box-shadow: 0 0 0 4px rgba(18, 39, 66, 0.08);
}

textarea {
  resize: vertical;
}

.hidden {
  display: none !important;
}

.app-root {
  width: min(1480px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.1rem 0;
}

.auth-screen {
  position: relative;
  min-height: calc(100vh - 2rem);
  display: block;
}

.auth-copy,
.auth-panel,
.sidebar,
.topbar,
.glass-card,
.metric-card,
.table-card,
.timeline-card,
.empty-card,
.sidebar-card,
.message,
.highlight-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.auth-copy,
.auth-panel,
.sidebar,
.topbar,
.glass-card,
.metric-card,
.table-card,
.timeline-card,
.empty-card,
.sidebar-card,
.message {
  border-radius: 32px;
  background: var(--surface);
  backdrop-filter: blur(14px);
}

.auth-copy {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 2rem);
  padding: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(243, 233, 214, 0.9)),
    linear-gradient(135deg, rgba(18, 39, 66, 0.06), rgba(199, 162, 92, 0.14));
}

.auth-copy::before {
  content: "";
  position: absolute;
  inset: 1.2rem;
  border-radius: 28px;
  border: 1px solid rgba(199, 162, 92, 0.12);
  pointer-events: none;
}

.auth-copy::after {
  content: none;
}

.brand-logo {
  display: block;
  object-fit: cover;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 20px 40px rgba(12, 20, 34, 0.18);
}

.brand-logo-sidebar {
  width: 118px;
  aspect-ratio: 1;
  margin-bottom: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.brand-logo-panel {
  width: 72px;
  aspect-ratio: 1;
  border: 2px solid rgba(199, 162, 92, 0.28);
  box-shadow: 0 10px 22px rgba(12, 20, 34, 0.12);
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #8d6b33;
}

.lead,
.muted-line,
.auth-panel p,
.table-note,
.empty-card p,
.timeline-meta,
.highlight-card p,
.sidebar-card p,
.metric-card p,
.inline-list p,
.pill-list span {
  color: var(--muted);
}

.auth-highlight-grid,
.summary-strip,
.metric-grid,
.split-grid,
.dual-grid,
.three-grid,
.notice-grid,
.meeting-grid {
  display: grid;
  gap: 1rem;
}

.auth-highlight-grid,
.summary-strip,
.metric-grid,
.three-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.highlight-card {
  padding: 1.25rem 1.2rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
}

.highlight-card::before,
.metric-card::before,
.table-card::before,
.timeline-card::before,
.empty-card::before,
.editor-card::before,
.smtp-panel::before,
.smtp-status-card::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(199, 162, 92, 0.1));
  margin-bottom: 1rem;
}

.highlight-card strong {
  display: block;
  margin: 0.35rem 0 0.4rem;
  font-size: 1.1rem;
}

.highlight-card p {
  margin: 0;
  line-height: 1.5;
}

.highlight-label,
.status-chip,
.soft-pill,
.role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.highlight-label,
.soft-pill {
  background: rgba(18, 39, 66, 0.08);
  color: var(--primary);
}

.auth-panel {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 3;
  width: min(470px, calc(100% - 2.2rem));
  transform: translate(-50%, -44%);
  padding: 2rem;
  display: grid;
  align-content: start;
  gap: 1rem;
  border: 1px solid rgba(199, 162, 92, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 242, 230, 0.94)),
    var(--surface);
  box-shadow: 0 34px 80px rgba(10, 20, 36, 0.22);
  animation: login-card-in 560ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 24px;
  border: 1px solid rgba(199, 162, 92, 0.14);
  pointer-events: none;
}

.auth-panel-brand {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding-bottom: 0.25rem;
  animation: login-content-in 760ms ease both;
}

.auth-panel-brand strong {
  display: block;
  font-family: var(--display-font);
  font-size: 1.35rem;
  color: var(--primary-dark);
}

.panel-top {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(18, 39, 66, 0.08);
  text-align: center;
}

.auth-form,
.auth-footnote,
.auth-support,
#auth-message-area {
  animation: login-content-in 860ms ease both;
}

.panel-top h2,
.brand-block h2,
.topbar h1,
.section-head h2,
.table-head h2,
.empty-card h3,
.timeline-card h3 {
  margin: 0;
}

.panel-top h2,
.brand-block h2,
.topbar h1 {
  font-family: var(--display-font);
}

.demo-access-list {
  display: grid;
  gap: 0.8rem;
}

.demo-access-list:empty {
  display: none;
}

.demo-user-card {
  padding: 1rem;
  border: 1px solid rgba(18, 39, 66, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
}

.demo-user-card strong,
.metric-card strong,
.sidebar-focus-value,
.topline-stat strong {
  display: block;
}

.demo-user-card p,
.demo-user-card small,
.metric-card p,
.inline-list p,
.timeline-card p,
.notice-card p {
  margin: 0.25rem 0 0;
}

.quick-login {
  margin-top: 0.8rem;
  width: 100%;
}

.auth-form,
.stack-form {
  display: grid;
  gap: 0.9rem;
}

.auth-form label,
.stack-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.primary-button,
.secondary-button,
.ghost-button,
.nav-link,
.inline-action {
  border-radius: 18px;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.primary-button,
.secondary-button,
.ghost-button,
.inline-action {
  padding: 0.88rem 1rem;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, #143153, #091427);
  box-shadow: 0 16px 28px rgba(18, 39, 66, 0.24);
}

.secondary-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(18, 39, 66, 0.14);
}

.ghost-button,
.inline-action {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 39, 66, 0.08);
}

.inline-action {
  padding: 0.5rem 0.8rem;
  font-size: 0.88rem;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.nav-link:hover,
.inline-action:hover {
  transform: translateY(-1px);
}

.workspace {
  min-height: calc(100vh - 2rem);
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 1.1rem;
}

.sidebar {
  padding: 1.45rem;
  background:
    linear-gradient(180deg, rgba(16, 32, 51, 0.98), rgba(8, 19, 32, 0.99)),
    var(--bg-dark);
  color: #f7f8fa;
}

.sidebar .eyebrow,
.sidebar .muted-line,
.sidebar-card p {
  color: rgba(255, 255, 255, 0.72);
}

.sidebar .brand-block h2 {
  color: #fff;
}

.sidebar-nav {
  display: grid;
  gap: 0.45rem;
  margin: 1.5rem 0;
}

.nav-link {
  position: relative;
  padding: 0.92rem 1rem 0.92rem 1.1rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border: 1px solid transparent;
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 24px rgba(6, 14, 17, 0.2);
}

.nav-link.active::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 50%;
  width: 6px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), #f1d39b);
  transform: translateY(-50%);
}

.sidebar-card {
  margin-top: auto;
  padding: 1.05rem;
  background: var(--surface-dark);
  box-shadow: none;
}

.workspace-main {
  display: grid;
  align-content: start;
  gap: 1.05rem;
}

.topbar {
  padding: 1.25rem 1.45rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: rgba(255, 251, 245, 0.92);
}

.topbar-copy {
  max-width: 46rem;
}

.topbar-copy h1 {
  font-size: clamp(1.8rem, 2vw, 2.5rem);
  line-height: 1.05;
}

.topbar-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.user-chip {
  min-width: 210px;
  padding: 0.75rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(18, 39, 66, 0.08);
}

.summary-strip {
  margin-top: 0.2rem;
}

.metric-card {
  padding: 1.15rem 1.1rem 1.2rem;
  background: rgba(255, 255, 255, 0.84);
  border-radius: 22px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.metric-card strong {
  margin-top: 0.2rem;
  font-size: clamp(1.7rem, 2vw, 2.1rem);
}

.metric-card p {
  line-height: 1.5;
}

.metric-card p:first-child {
  margin-top: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.split-grid {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.dual-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.glass-card,
.table-card,
.timeline-card,
.empty-card {
  padding: 1.2rem;
}

.table-card,
.timeline-card,
.empty-card {
  background: rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.section-stack {
  display: grid;
  gap: 1.05rem;
}

.section-head,
.table-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.section-head p,
.table-head p {
  margin: 0.25rem 0 0;
}

.inline-list,
.timeline-list,
.notice-feed,
.priority-list {
  display: grid;
  gap: 0.8rem;
}

.inline-list article,
.notice-card,
.priority-list article,
.timeline-row {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(18, 39, 66, 0.08);
  background: rgba(249, 247, 242, 0.96);
}

.notice-card {
  display: grid;
  gap: 0.65rem;
}

.notice-card footer,
.row-actions,
.table-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.table-wrap {
  overflow-x: auto;
}

.table-wrap.compact-table th,
.table-wrap.compact-table td {
  padding: 0.72rem 0.58rem;
  font-size: 0.92rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.88rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid rgba(18, 39, 66, 0.08);
  vertical-align: top;
}

th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

td:last-child {
  text-align: right;
}

.status-chip {
  background: rgba(18, 39, 66, 0.1);
  color: var(--primary-dark);
}

.status-pago,
.status-resolvida,
.status-concluida,
.status-ativo {
  background: rgba(44, 107, 69, 0.12);
  color: var(--success);
}

.status-pendente,
.status-em-analise,
.status-agendada,
.status-media {
  background: rgba(185, 109, 25, 0.12);
  color: var(--warning);
}

.status-em-atraso,
.status-aberta,
.status-orcamentacao,
.status-alta,
.status-critico {
  background: rgba(180, 35, 24, 0.12);
  color: var(--danger);
}

.status-baixa,
.status-publicado {
  background: rgba(18, 39, 66, 0.1);
  color: var(--primary-dark);
}

.role-pill {
  background: rgba(199, 162, 92, 0.18);
  color: #765020;
}

.timeline-row {
  display: grid;
  gap: 0.4rem;
}

.timeline-row strong,
.priority-list strong,
.notice-card strong,
.inline-list strong {
  font-size: 1rem;
}

.message {
  padding: 0.95rem 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.message-success {
  border-color: rgba(44, 107, 69, 0.18);
}

.message-error {
  border-color: rgba(180, 35, 24, 0.18);
}

.topline-stat {
  display: grid;
  gap: 0.18rem;
}

.topline-stat strong {
  font-size: 1.3rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-list span {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 39, 66, 0.08);
  font-size: 0.86rem;
}

.backoffice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
  gap: 1rem;
}

.backoffice-sections {
  display: grid;
  gap: 1rem;
}

.backoffice-stack {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.collection-card {
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(18, 39, 66, 0.08);
  background: rgba(255, 255, 255, 0.84);
  display: grid;
  gap: 0.8rem;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.collection-card header,
.smtp-status-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.collection-card h3,
.editor-card h3,
.smtp-panel h3,
.smtp-status-card h3 {
  margin: 0;
}

.collection-card p,
.editor-card p,
.smtp-panel p,
.smtp-status-card p {
  margin: 0.2rem 0 0;
}

.collection-count {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

.record-list {
  display: grid;
  gap: 0.7rem;
}

.record-item {
  padding: 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(18, 39, 66, 0.08);
  background: rgba(250, 248, 242, 0.98);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.record-item strong {
  display: block;
}

.record-item p {
  margin: 0.25rem 0 0.7rem;
}

.editor-card,
.smtp-panel,
.smtp-status-card {
  padding: 1.2rem;
  border-radius: 22px;
  border: 1px solid rgba(18, 39, 66, 0.1);
  background: rgba(255, 255, 255, 0.88);
}

.metric-card:hover,
.table-card:hover,
.collection-card:hover,
.record-item:hover {
  transform: translateY(-2px);
  border-color: rgba(199, 162, 92, 0.26);
  box-shadow: 0 18px 36px rgba(16, 24, 39, 0.12);
}

.editor-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}

.form-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.form-grid-two .full-span {
  grid-column: 1 / -1;
}

.editor-actions,
.smtp-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: center;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  background: rgba(93, 106, 115, 0.14);
  color: var(--muted);
  font-size: 0.82rem;
}

.service-online {
  background: rgba(44, 107, 69, 0.14);
  color: var(--success);
}

.service-offline {
  background: rgba(180, 35, 24, 0.12);
  color: var(--danger);
}

.service-idle {
  background: rgba(185, 109, 25, 0.12);
  color: var(--warning);
}

.helper-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.helper-list span {
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(18, 39, 66, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
}

.inline-note {
  font-size: 0.88rem;
  color: var(--muted);
}

.danger-button {
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.auth-footnote {
  margin: -0.1rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.auth-support {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: #8b7450;
}

.view-shell {
  display: block;
}

.hero-card {
  background:
    linear-gradient(180deg, rgba(18, 39, 66, 0.05), rgba(255, 255, 255, 0.92)),
    rgba(255, 255, 255, 0.9);
}

.alert-card-danger {
  background:
    linear-gradient(180deg, rgba(180, 35, 24, 0.05), rgba(255, 255, 255, 0.92)),
    rgba(255, 255, 255, 0.9);
}

.alert-card-success {
  background:
    linear-gradient(180deg, rgba(44, 107, 69, 0.05), rgba(255, 255, 255, 0.92)),
    rgba(255, 255, 255, 0.9);
}

.login-alert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.login-alert-card {
  border-color: rgba(180, 35, 24, 0.22);
  background:
    linear-gradient(180deg, rgba(180, 35, 24, 0.12), rgba(255, 255, 255, 0.94)),
    rgba(255, 255, 255, 0.96);
}

.login-alert-card .table-note,
.login-alert-card .muted-line {
  color: #7c1f17;
}

.login-alert-card .topline-stat strong,
.login-alert-card h2 {
  color: #8f1d13;
}

.blink-alert {
  animation: alert-blink 1.15s ease-in-out infinite;
}

.empty-card {
  text-align: center;
  min-height: 200px;
  display: grid;
  place-items: center;
}

@keyframes login-card-in {
  from {
    opacity: 0;
    transform: translate(-50%, -38%) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -44%) scale(1);
  }
}

@keyframes login-content-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .workspace,
  .split-grid,
  .dual-grid,
  .backoffice-grid,
  .form-grid-two {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .auth-screen {
    display: grid;
    gap: 0.8rem;
  }

  .auth-copy {
    min-height: 180px;
  }

  .auth-copy::before {
    inset: 0.8rem;
    border-radius: 22px;
  }

  .auth-panel {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 560px;
    margin: -5.25rem auto 0;
    transform: none;
    animation-name: login-card-mobile-in;
  }
}

@keyframes login-card-mobile-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes alert-blink {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(180, 35, 24, 0.18),
      0 18px 36px rgba(16, 24, 39, 0.12);
    border-color: rgba(180, 35, 24, 0.24);
  }

  50% {
    box-shadow:
      0 0 0 8px rgba(180, 35, 24, 0.06),
      0 22px 44px rgba(180, 35, 24, 0.16);
    border-color: rgba(180, 35, 24, 0.42);
  }
}

@media (max-width: 720px) {
  .app-root {
    width: min(100% - 0.8rem, 1440px);
    padding: 0.6rem 0 1rem;
  }

  .auth-copy,
  .auth-panel,
  .sidebar,
  .topbar,
  .glass-card,
  .table-card,
  .timeline-card,
  .empty-card,
  .metric-card {
    border-radius: 24px;
  }

  .auth-copy,
  .auth-panel,
  .sidebar,
  .topbar {
    padding: 1.2rem;
  }

  .auth-copy {
    min-height: 136px;
  }

  .auth-panel {
    margin-top: -3.6rem;
    width: min(100%, calc(100vw - 0.8rem));
  }

  .auth-panel::before {
    inset: 10px;
  }

  .auth-panel-brand {
    gap: 0.75rem;
    align-items: center;
  }

  .auth-panel-brand strong {
    font-size: 1.15rem;
  }

  .panel-top h2 {
    font-size: 1.55rem;
  }

  .auth-form,
  .stack-form,
  .editor-actions,
  .smtp-actions,
  .topbar-actions {
    gap: 0.8rem;
  }

  .primary-button,
  .secondary-button,
  .ghost-button,
  .inline-action {
    width: 100%;
    justify-content: center;
  }

  .brand-logo-sidebar {
    width: 92px;
  }

  .user-chip {
    min-width: 0;
  }
}
