:root {
  --tm-bg: #f4efe7;
  --tm-surface: #fffdf9;
  --tm-ink: #1d1b18;
  --tm-muted: #6c655d;
  --tm-line: #ddd3c6;
  --tm-accent: #204f47;
  --tm-accent-soft: #d8ebe4;
  --tm-highlight: #cf7d42;
  --bs-body-bg: var(--tm-bg);
  --bs-body-color: var(--tm-ink);
  --bs-border-color: var(--tm-line);
}

body.app-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(207, 125, 66, 0.18), transparent 28%),
    linear-gradient(180deg, #f7f2eb 0%, #f4efe7 100%);
}

.navbar-brand {
  letter-spacing: 0.04em;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2rem;
  padding: 0.25rem 0.75rem 0.25rem 0.3rem;
  border: 1px solid rgba(221, 211, 198, 0.9);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.88);
  color: var(--tm-ink);
  text-decoration: none;
}

.profile-chip:hover {
  color: var(--tm-ink);
  border-color: rgba(32, 79, 71, 0.35);
}

.profile-chip__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: var(--tm-accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.profile-chip__label {
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-card,
.metric-card,
.summary-panel,
.error-card,
.admin-day-total {
  background: rgba(255, 253, 249, 0.88);
  border: 1px solid rgba(221, 211, 198, 0.9);
  box-shadow: 0 18px 60px rgba(29, 27, 24, 0.08);
}

.summary-panel {
  background: linear-gradient(180deg, rgba(216, 235, 228, 0.9), rgba(255, 253, 249, 0.9));
}

.time-entry-user-card {
  overflow: hidden;
}

.user-week-total {
  margin: 0;
  color: var(--tm-accent);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1;
}

.eyebrow,
.metric-label {
  color: var(--tm-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-value {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

.metric-value-small {
  font-size: 1.15rem;
  line-height: 1.4;
}

.table > :not(caption) > * > * {
  padding: 1rem;
}

.table-responsive {
  overflow-x: visible;
}

@media (max-width: 767.98px) {
  .metric-value {
    font-size: 1.6rem;
  }

  .user-week-total {
    font-size: 2rem;
  }

  .profile-chip {
    width: 100%;
    justify-content: center;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
