:root {
  --bg: #eef0f4;
  --panel: #ffffff;
  --panel-soft: #f8f8fa;
  --text: #111318;
  --muted: #727681;
  --line: #ececf1;
  --purple: #6a4df4;
  --purple-2: #7d5cff;
  --purple-soft: #efeaff;
  --orange: #ff9f18;
  --orange-soft: #fff2de;
  --blue: #3296ef;
  --green: #1fa971;
  --red: #e94f64;
  --yellow: #f5b942;
  --shadow: 0 22px 70px rgba(32, 34, 39, 0.12);
  --card-shadow: 0 16px 45px rgba(35, 37, 43, 0.06);
  --radius: 8px;
  --radius-lg: 18px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background: radial-gradient(circle at 50% 0%, #fafbfc 0%, var(--bg) 58%, #e7e9ee 100%);
  font-family: var(--font);
}

body.auth-screen {
  background:
    linear-gradient(135deg, rgba(106, 77, 244, 0.08), rgba(255, 159, 24, 0.06)),
    radial-gradient(circle at 18% 12%, #ffffff 0%, #f4f3ff 34%, #edf0f5 72%, #e7e9ee 100%);
}

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

button {
  cursor: pointer;
}

.app-shell {
  width: min(1280px, calc(100vw - 32px));
  min-height: calc(100vh - 80px);
  margin: 28px auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.app-shell.auth-shell {
  display: grid;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.app-shell.auth-shell .topbar {
  display: none;
}

.app-shell.auth-shell .main-view {
  display: grid;
  min-height: 100vh;
  padding: 0;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand actions"
    "nav nav";
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 18px;
}

.topbar > * {
  min-width: 0;
}

.brand,
.top-actions,
.user-chip,
.metric-icon,
.inline-actions,
.title-row,
.form-actions,
.filters,
.summary-line,
.month-switcher,
.status-pill,
.service-row,
.config-grid,
.gauge-stats {
  display: flex;
  align-items: center;
}

.brand {
  grid-area: brand;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(106, 77, 244, 0.28);
}

.brand strong {
  display: block;
  font-size: 22px;
  line-height: 1.05;
}

.brand span,
.user-chip span,
.subtitle,
.small,
.form-hint,
td small {
  color: var(--muted);
}

.brand span,
.user-chip span {
  font-size: 12px;
}

.nav-tabs {
  grid-area: nav;
  display: flex;
  min-width: 0;
  max-width: 100%;
  gap: 6px;
  justify-content: flex-start;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 4px;
  border-radius: 999px;
  background: var(--panel-soft);
}

.nav-tab {
  flex: 0 0 auto;
  border: 0;
  padding: 11px 15px;
  color: #333740;
  background: transparent;
  border-radius: 999px;
  font-size: 13px;
}

.nav-tab.active {
  color: #fff;
  background: #0f1114;
  box-shadow: 0 8px 18px rgba(15, 17, 20, 0.18);
}

.top-actions {
  grid-area: actions;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.icon-btn {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  color: #191b20;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(25, 27, 32, 0.06);
}

.sync-chip {
  min-height: 42px;
  border: 1px solid var(--line);
  padding: 0 13px;
  color: #4a4f5b;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(25, 27, 32, 0.06);
  font-size: 12px;
  font-weight: 800;
}

.sync-chip.synced {
  color: #0f7a4f;
  background: rgba(31, 169, 113, 0.12);
  border-color: rgba(31, 169, 113, 0.22);
}

.sync-chip.saving {
  color: #74520a;
  background: rgba(245, 185, 66, 0.16);
  border-color: rgba(245, 185, 66, 0.28);
}

.sync-chip.error {
  color: #b72e42;
  background: rgba(233, 79, 100, 0.12);
  border-color: rgba(233, 79, 100, 0.22);
}

.user-chip {
  gap: 9px;
  min-width: 0;
  max-width: 260px;
  padding-left: 8px;
}

.user-chip strong,
.user-chip span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: white;
  font-weight: 800;
  background: linear-gradient(145deg, #1f2530, #5d6880);
  border-radius: 50%;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.main-view {
  padding: 22px 0 0;
}

.page-heading {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0;
}

.subtitle {
  margin: 0;
  font-size: 14px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.toolbar > * {
  min-width: 0;
}

.filters {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.select,
.input,
.textarea {
  min-height: 42px;
  border: 1px solid var(--line);
  outline: none;
  color: var(--text);
  background: #fff;
  border-radius: 999px;
  padding: 0 14px;
}

.textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px 14px;
  border-radius: var(--radius);
  resize: vertical;
}

.input[type="date"] {
  padding-right: 8px;
}

.btn {
  min-height: 42px;
  border: 0;
  padding: 0 16px;
  border-radius: 999px;
  color: white;
  background: var(--purple);
  box-shadow: 0 12px 24px rgba(106, 77, 244, 0.22);
  white-space: nowrap;
}

.btn.secondary {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn.danger {
  color: #fff;
  background: var(--red);
  box-shadow: 0 12px 24px rgba(233, 79, 100, 0.2);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.kpi-card,
.panel,
.form-panel,
.table-panel,
.mini-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.kpi-card {
  position: relative;
  min-height: 124px;
  min-width: 0;
  padding: 19px 72px 18px 18px;
  overflow: hidden;
}

.kpi-card.primary {
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
}

.kpi-title {
  margin-bottom: 14px;
  color: inherit;
  opacity: 0.78;
  font-size: 13px;
}

.kpi-value {
  font-size: 29px;
  font-weight: 800;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.kpi-foot {
  margin-top: 14px;
  color: inherit;
  opacity: 0.72;
  font-size: 12px;
}

.metric-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: white;
  background: var(--purple);
  border-radius: 50%;
}

.kpi-card.primary .metric-icon {
  color: var(--purple);
  background: white;
}

.metric-icon.orange {
  background: var(--orange);
}

.metric-icon.blue {
  background: var(--blue);
}

.metric-icon.green {
  background: var(--green);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.86fr);
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  min-width: 0;
  padding: 20px;
  overflow: hidden;
}

.panel-title {
  margin: 0;
  font-size: 20px;
}

.title-row {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.bar-chart {
  display: grid;
  grid-template-columns: 46px 1fr;
  min-height: 285px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 0 30px;
  color: var(--muted);
  font-size: 12px;
}

.bars {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(44px, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 278px;
  padding-top: 12px;
  border-bottom: 1px dashed var(--line);
}

.bars::before,
.bars::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  border-top: 1px dashed var(--line);
}

.bars::before {
  top: 30%;
}

.bars::after {
  top: 62%;
}

.bar-group {
  display: grid;
  grid-template-rows: 1fr 22px;
  justify-items: center;
  height: 100%;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.bar-stack {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 226px;
}

.bar-bg,
.bar-fg {
  position: absolute;
  bottom: 0;
  width: min(58px, 78%);
  border-radius: 14px 14px 7px 7px;
}

.bar-bg {
  background: #f0f0f1;
}

.bar-fg {
  z-index: 1;
  width: min(44px, 58%);
  background: linear-gradient(180deg, var(--purple), #8b74ff);
  box-shadow: 0 16px 28px rgba(106, 77, 244, 0.2);
}

.bar-fg::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18) 0 4px, transparent 4px 8px);
}

.gauge-wrap {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.gauge {
  position: relative;
  width: min(260px, 100%);
  aspect-ratio: 1.6;
  overflow: hidden;
}

.gauge svg {
  width: 100%;
  height: 100%;
}

.gauge-center {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  text-align: center;
}

.gauge-center strong {
  display: block;
  font-size: 30px;
}

.gauge-center span {
  color: var(--muted);
  font-size: 12px;
}

.gauge-stats {
  width: 100%;
  gap: 10px;
}

.mini-card {
  flex: 1;
  padding: 14px;
  box-shadow: none;
  background: var(--panel-soft);
}

.mini-card span {
  color: var(--muted);
  font-size: 12px;
}

.mini-card strong {
  display: block;
  margin-top: 8px;
  font-size: 19px;
}

.table-panel,
.form-panel {
  padding: 18px;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.6fr);
  gap: 18px;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #424650;
  font-size: 12px;
  font-weight: 700;
}

.field .input,
.field .select {
  width: 100%;
  border-radius: var(--radius);
}

.form-actions {
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

.table-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  padding: 13px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 13px;
  white-space: nowrap;
}

th {
  color: #6a6f7b;
  background: var(--panel-soft);
  font-size: 12px;
  font-weight: 700;
}

tr:hover td {
  background: #fbfbfd;
}

.table-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}

.table-actions button {
  border: 1px solid var(--line);
  padding: 7px 9px;
  color: #22252c;
  background: #fff;
  border-radius: 999px;
  font-size: 12px;
}

.table-actions button:last-child {
  color: var(--red);
}

.status-pill {
  display: inline-flex;
  justify-content: center;
  min-width: 82px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-pago,
.status-ativo,
.status-approved {
  color: #0f7a4f;
  background: rgba(31, 169, 113, 0.12);
}

.status-pendente,
.status-pausado,
.status-pending {
  color: #9a6a05;
  background: rgba(245, 185, 66, 0.18);
}

.status-atrasado,
.status-cancelado,
.status-inadimplente,
.status-rejected {
  color: #b72e42;
  background: rgba(233, 79, 100, 0.14);
}

.status-inativo {
  color: #5e6472;
  background: #eceef3;
}

.summary-line {
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.summary-pill {
  padding: 9px 12px;
  color: #252933;
  background: var(--panel-soft);
  border-radius: 999px;
  font-size: 13px;
}

.summary-pill strong {
  margin-left: 6px;
}

.service-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.service-row {
  gap: 10px;
  min-width: 0;
}

.service-name {
  flex: 0 1 150px;
  min-width: 104px;
  color: #3d414b;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-track {
  flex: 1 1 90px;
  min-width: 70px;
  height: 10px;
  overflow: hidden;
  background: #f0f0f2;
  border-radius: 999px;
}

.service-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), #ffd08b);
  border-radius: 999px;
}

.service-value {
  flex: 0 0 104px;
  text-align: right;
  font-weight: 700;
  font-size: 13px;
}

.config-grid {
  align-items: stretch;
  gap: 18px;
}

.config-grid > * {
  flex: 1;
}

.empty-state {
  padding: 34px 20px;
  color: var(--muted);
  text-align: center;
}

.auth-view {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 460px);
  gap: 42px;
  align-items: center;
  width: min(1120px, calc(100vw - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 52px 0;
}

.auth-view:not(.auth-login) {
  grid-template-columns: minmax(320px, 460px);
  justify-content: center;
}

.auth-brand-panel {
  display: grid;
  align-content: center;
  gap: 22px;
  min-height: 520px;
  padding: 44px;
  color: #fff;
  background:
    linear-gradient(38deg, transparent 0 68%, rgba(255, 159, 24, 0.24) 100%),
    linear-gradient(140deg, rgba(17, 19, 24, 0.96), rgba(39, 40, 53, 0.92) 54%, rgba(106, 77, 244, 0.74));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand-row .access-mark {
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.auth-brand-row strong,
.auth-brand-row span {
  display: block;
}

.auth-brand-row strong {
  font-size: 24px;
  line-height: 1;
}

.auth-brand-row span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.auth-brand-panel h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 0.98;
  letter-spacing: 0;
}

.auth-brand-panel p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.6;
}

.auth-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-highlights span,
.auth-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.auth-highlights span {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.auth-status-pill {
  color: #9a6a05;
  background: rgba(245, 185, 66, 0.18);
}

.auth-status-pill.danger {
  color: #b72e42;
  background: rgba(233, 79, 100, 0.14);
}

.auth-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-login .auth-card {
  min-height: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
}

.auth-login .access-panel {
  width: auto;
  max-width: 460px;
  margin: 0 auto;
}

.auth-card-head {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-bottom: 22px;
  text-align: left;
}

.auth-card-head span {
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-card-head h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0;
}

.auth-card-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.access-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  max-width: 460px;
  margin: 0 auto;
  padding: 36px;
  text-align: center;
}

.access-panel h1 {
  margin: 10px 0 8px;
}

.access-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  border-radius: 50%;
  box-shadow: 0 16px 34px rgba(106, 77, 244, 0.24);
  font-weight: 900;
}

.access-form {
  display: grid;
  width: min(100%, 330px);
  gap: 10px;
  margin-top: 0;
}

.access-form .input,
.access-form .btn {
  width: 100%;
  border-radius: var(--radius);
}

.google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  box-shadow: 0 12px 28px rgba(106, 77, 244, 0.22);
}

.google-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--purple);
  background: #fff;
  border-radius: 50%;
  font-weight: 900;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  content: "";
  background: var(--line);
}

.auth-field {
  display: grid;
  gap: 7px;
  text-align: left;
}

.auth-field span {
  color: #1f2937;
  font-size: 12px;
  font-weight: 800;
}

.auth-field .input {
  min-height: 42px;
  padding: 0 14px;
  border-color: #dde2ea;
  border-radius: var(--radius);
  background: #fff;
}

.auth-feedback {
  margin: -2px 0 0;
  color: #6b4d00;
  background: rgba(245, 185, 66, 0.14);
  border: 1px solid rgba(245, 185, 66, 0.26);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-submit {
  background: #20a157;
  box-shadow: none;
}

.auth-create {
  font-weight: 800;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  transform: translateY(120%);
  max-width: 360px;
  padding: 13px 16px;
  color: white;
  background: #15171c;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease;
  z-index: 20;
}

.toast.visible {
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .app-shell {
    width: min(100vw - 18px, 1180px);
    margin: 9px auto;
    padding: 12px;
  }

  .topbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav"
      "actions";
  }

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

  .config-grid {
    flex-direction: column;
  }

  .auth-view {
    grid-template-columns: 1fr;
    width: min(100vw - 28px, 620px);
    gap: 18px;
    padding: 22px 0;
  }

  .auth-brand-panel {
    min-height: auto;
    padding: 28px;
  }

  .auth-brand-panel h1 {
    font-size: 34px;
  }

  .dashboard-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .toolbar {
    display: grid;
  }

  .filters {
    justify-content: flex-start;
  }

  .filters .select,
  .filters .input,
  .filters .btn {
    flex: 1 1 180px;
  }

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

@media (max-width: 640px) {
  .app-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .app-shell.auth-shell {
    min-height: 100vh;
  }

  .brand strong {
    font-size: 19px;
  }

  .topbar {
    padding: 12px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .nav-tabs {
    margin: 0 -4px;
    border-radius: var(--radius);
  }

  .nav-tab {
    padding: 10px 13px;
  }

  .main-view {
    padding-top: 18px;
  }

  .auth-view {
    width: 100%;
    min-height: 100vh;
    padding: 0;
  }

  .auth-brand-panel {
    border-radius: 0;
  }

  .auth-card {
    width: calc(100% - 24px);
    margin-bottom: 12px;
    border-radius: var(--radius);
  }

  .kpi-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .kpi-card {
    min-height: 112px;
  }

  .kpi-value {
    font-size: 28px;
  }

  .panel,
  .table-panel,
  .form-panel {
    padding: 14px;
    border-radius: var(--radius);
  }

  .bar-chart {
    grid-template-columns: 38px minmax(420px, 1fr);
    min-height: 250px;
    padding-bottom: 8px;
  }

  .bars {
    min-height: 238px;
  }

  .bar-stack {
    height: 190px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .gauge-stats {
    display: grid;
  }

  .toolbar {
    align-items: stretch;
  }

  .filters,
  .toolbar {
    flex-direction: column;
  }

  .filters .select,
  .filters .input,
  .filters .btn,
  .toolbar > * {
    width: 100%;
  }

  .filters .select,
  .filters .input,
  .filters .btn {
    flex: 0 0 auto;
  }

  .top-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .top-actions > * {
    width: auto;
  }

  .sync-chip,
  .user-chip {
    grid-column: 1 / -1;
  }

  .icon-btn {
    width: 100%;
    border-radius: var(--radius);
  }

  .auth-actions {
    grid-template-columns: 1fr;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }
}
