body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    15px "DM Sans",
    sans-serif;
  transition:
    background 0.2s,
    color 0.2s;
}
h1,
h2,
h3,
strong {
  font-family: Manrope, "DM Sans", sans-serif;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 7px 0;
}
h3 {
  font-size: 16px;
  margin: 0 0 12px;
}
p {
  line-height: 1.55;
}
.hidden {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.eyebrow,
.side-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.accent {
  color: var(--accent);
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  width: 246px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font: 800 18px Manrope;
  margin: 0 8px 42px;
}
.brand-light {
  font-weight: 600;
  color: var(--muted);
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font-size: 20px;
}
.side-label {
  margin: 0 10px 10px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
  margin-bottom: 28px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.sidebar nav a:hover,
.sidebar nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.sidebar nav a:first-letter {
  font-size: 18px;
}
.sidebar-bottom {
  margin-top: auto;
}
.mini-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 5px;
}
.mini-user img,
.header-avatar img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--surface-2);
}
.mini-user div {
  min-width: 0;
  display: grid;
}
.mini-user strong {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-user small {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}
.main-column {
  margin-left: 246px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 76px;
  position: sticky;
  top: 0;
  z-index: 15;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
}
.topbar strong {
  display: block;
  margin-top: 3px;
  font-size: 15px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.icon-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 18px;
  cursor: pointer;
}
.content {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px 34px 45px;
  flex: 1;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 18px 34px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.btn {
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  font: 700 13px "DM Sans";
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.primary {
  background: var(--accent);
  color: white;
}
.subtle {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
}
.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}
.full {
  width: 100%;
}
.panel,
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 21px;
  margin-bottom: 18px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}
.panel-head a,
.panel-head a:visited {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.panel-head p {
  margin: 4px 0 0;
  font-size: 12px;
}
.page-intro,
.welcome-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.page-intro p,
.welcome-row p {
  margin: 4px 0;
}
.date-pill {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 30px;
  padding: 10px 15px;
  color: var(--muted);
  font-size: 12px;
}
.filter-row {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 17px;
}
.filter-row label {
  max-width: 200px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 20px;
}
.stats-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stat-card {
  padding: 17px;
  margin: 0;
  min-width: 0;
}
.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.stat-card strong {
  display: block;
  font-size: 23px;
  letter-spacing: -0.6px;
  margin: 9px 0 4px;
  overflow-wrap: anywhere;
}
.stat-card small {
  font-size: 10px;
  color: var(--muted);
}
.positive {
  color: var(--green) !important;
}
.negative {
  color: var(--red) !important;
}
.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.loading {
  padding: 45px;
  text-align: center;
  color: var(--muted);
}
.spinner {
  display: inline-block;
  width: 19px;
  height: 19px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.message,
.hint {
  font-size: 12px;
  color: var(--muted);
}
.hint {
  margin-bottom: 0;
}
.empty-cell {
  text-align: center;
  color: var(--muted);
  padding: 25px !important;
}
.toast-root {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 8px;
}
.toast {
  background: var(--text);
  color: var(--surface);
  padding: 12px 17px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 13px;
}
.toast.error {
  background: #b9384b;
}
.text-btn {
  border: 0;
  background: none;
  color: var(--accent);
  font: 700 12px "DM Sans";
  cursor: pointer;
  padding: 5px;
}
.text-btn.danger {
  color: var(--red);
}
label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 9px;
  padding: 11px 12px;
  font: 13px "DM Sans";
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea {
  resize: vertical;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  align-items: end;
  gap: 8px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 650px;
  text-align: left;
}
th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
th {
  font-size: 10px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
}
td {
  color: var(--text);
}
.inline-tools {
  display: flex;
  gap: 8px;
  align-items: center;
}
.inline-tools input {
  max-width: 180px;
}
.track {
  height: 8px;
  background: var(--surface-2);
  border-radius: 20px;
  overflow: hidden;
  margin: 9px 0 18px;
}
.track i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 20px;
}
.progress-line {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.metric-large {
  font: 800 27px Manrope;
  margin: 10px 0;
}
.error-state,
.empty-state {
  text-align: center;
  padding: 50px;
}
.error-text {
  color: var(--red);
}
.standalone {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 20% 10%, var(--accent-soft), transparent 35%),
    var(--bg);
}
.auth-card {
  width: min(100%, 420px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.auth-card .brand-mark {
  margin-bottom: 17px;
}
.auth-card h1 {
  font-size: 25px;
}
.auth-card form {
  display: grid;
  gap: 15px;
  margin: 24px 0 12px;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
}
.auth-links a,
.back-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.back-link {
  display: inline-block;
  margin-bottom: 22px;
  font-size: 12px;
}
.mobile-only {
  display: none;
}
.auth-screen.hidden {
  display: none;
}
/* Footer community links, privacy page and share action */
.footer {
  display: grid;
  gap: 13px;
}
.footer-main {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-main a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.footer-community {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-community strong {
  font-size: 11px;
  color: var(--text);
}
.social-link {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  color: var(--muted);
  background: var(--surface);
  transition:
    color 0.15s,
    border-color 0.15s;
}
.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.social-link svg,
.share-site-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.share-site-btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 11px;
  background: var(--surface);
  color: var(--accent);
  font:
    700 11px "DM Sans",
    sans-serif;
  cursor: pointer;
}
.share-site-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.privacy-content {
  max-width: 900px;
}
.privacy-content h2 {
  font-size: 16px;
  margin: 25px 0 7px;
}
.privacy-content p {
  color: var(--muted);
  font-size: 13px;
}
.privacy-content a {
  color: var(--accent);
}











.auth-intro-card {
  width: min(1100px, calc(100% - 32px));
  aspect-ratio: 1 / 1;
  min-height: 220px;
  max-height: 340px;
  margin: 15px auto;
  padding: 15px 4%;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  justify-content: center;

  background: linear-gradient(120deg, #ffffff, #edf2ff);
  border: 1px solid #dce5f5;
  border-radius: 24px;
  color: #172033;
  box-shadow: 0 12px 35px rgba(40, 65, 110, 0.06);
}

.auth-intro-card .intro-eyebrow {
  color: #4169b8;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 15px;
}

.auth-intro-card h2 {
  font-size: clamp(28px, 4.5vw, 55px);
  line-height: 1.1;
  margin: 0 0 15px;
}

.auth-intro-card p {
  font-size: clamp(14px, 1.8vw, 21px);
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 600px) {
  .auth-intro-card {
    aspect-ratio: 1.5 / 1;
    min-height: 210px;
    max-height: none;
    padding: 24px;
  }

  .auth-intro-card .intro-eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .auth-intro-card h2 {
    font-size: 24px;
  }

  .auth-intro-card p {
    font-size: 14px;
  }
}




