:root {
  --tempovera-site-ink: #222530;
  --tempovera-site-paper: #f7f5f0;
  --tempovera-site-card: #fffdf9;
  --tempovera-site-line: #e7e2d9;
  --tempovera-site-brand: #6255a5;
  --tempovera-site-sage: #8cb8a7;
}

html {
  min-height: 100%;
  background: var(--tempovera-site-paper);
}

body.tempovera-workspace-site {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--tempovera-site-ink);
  background:
    radial-gradient(circle at 6% 4%, rgba(98, 85, 165, 0.055), transparent 24rem),
    radial-gradient(circle at 95% 2%, rgba(140, 184, 167, 0.08), transparent 25rem),
    var(--tempovera-site-paper);
  font-family: Aptos, "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

body.tempovera-workspace-site::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

.tempovera-workspace-main {
  min-height: 100vh;
}

.tempovera-system-message,
.tempovera-basic-card {
  width: min(100% - 30px, 520px);
  margin: 8vh auto;
  padding: 38px;
  border: 1px solid var(--tempovera-site-line);
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 18px 50px rgba(48, 41, 31, 0.07);
}

.tempovera-system-brand,
.tempovera-basic-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
  color: var(--tempovera-site-ink);
  text-decoration: none;
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -0.025em;
}

.tempovera-site-logo {
  width: 44px;
  height: 44px;
  color: var(--tempovera-site-brand);
}

.tempovera-site-logo-image {
  width: auto;
  max-width: 210px;
  max-height: 54px;
}

.tempovera-system-message h1,
.tempovera-basic-card h1 {
  margin: 0 0 12px;
  color: var(--tempovera-site-ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.tempovera-system-message p,
.tempovera-basic-card p,
.tempovera-entry-content {
  color: #747983;
  line-height: 1.7;
}

.tempovera-system-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 10px;
  padding: 11px 18px;
  border: 0;
  border-radius: 13px;
  background: var(--tempovera-site-brand);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 760;
}

.tempovera-system-button:hover,
.tempovera-system-button:focus-visible {
  background: #4b407f;
  color: #fff;
  outline: 4px solid rgba(98, 85, 165, 0.12);
}

.tempovera-basic-page {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 34px 0;
}

.tempovera-centred-card {
  text-align: center;
}

.tempovera-centred-card > .tempovera-site-logo {
  margin-bottom: 24px;
}

.tempovera-entry-content img {
  max-width: 100%;
  height: auto;
}

/* Dedicated workspace: remove block-theme spacing inherited from WordPress. */
.tempovera-workspace-site .wp-site-blocks,
.tempovera-workspace-site main {
  margin: 0;
}

/* Let the plugin dashboard feel native to the dedicated theme. */
.tempovera-workspace-site .tva-shell {
  position: relative;
}

.tempovera-workspace-site .tva-login-shell {
  width: 100%;
  padding-top: 24px;
  padding-bottom: 24px;
}

.tempovera-setup-wrap code {
  word-break: break-all;
}

@media (max-width: 640px) {
  .tempovera-system-message,
  .tempovera-basic-card {
    width: calc(100% - 26px);
    margin: 18px auto;
    padding: 27px 22px;
    border-radius: 23px;
  }

  .tempovera-system-message h1,
  .tempovera-basic-card h1 {
    font-size: 32px;
  }
}

/* Theme/plugin brand alignment and system health. */
.tempovera-workspace-site .tva-brand .tempovera-site-logo,
.tempovera-workspace-site .tva-login-brand .tempovera-site-logo {
  width: 42px;
  height: 42px;
  flex: none;
  color: var(--tempovera-site-brand);
  filter: drop-shadow(0 5px 12px rgba(98, 85, 165, 0.16));
}

.tempovera-workspace-site .tva-brand .tempovera-site-logo-image,
.tempovera-workspace-site .tva-login-brand .tempovera-site-logo-image {
  width: auto;
  max-width: 190px;
  max-height: 45px;
  object-fit: contain;
}

.tempovera-workspace-site .tva-login-error {
  margin: -10px 0 20px;
  padding: 12px 14px;
  border: 1px solid #efd1d3;
  border-radius: 12px;
  background: #fff4f4;
  color: #8d3e45;
  font-size: 12px;
  line-height: 1.5;
}

.tempovera-workspace-site .tva-tracker-card.is-offline .tva-live-dot {
  background: #b7565d;
  box-shadow: 0 0 0 5px rgba(183, 86, 93, 0.13);
}

.tempovera-health-card {
  max-width: 760px;
  margin: 22px 0;
  padding: 8px 22px;
  border: 1px solid #ddd8ce;
  border-radius: 16px;
  background: #fffdf9;
  box-shadow: 0 8px 24px rgba(48, 41, 31, 0.045);
}

.tempovera-health-card p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid #eee9e1;
}

.tempovera-health-card p:last-child { border-bottom: 0; }
.tempovera-health-card span {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  font-weight: 800;
}
.tempovera-health-card .is-ok span { background: #edf6f2; color: #33775f; }
.tempovera-health-card .is-problem span { background: #fff1e8; color: #a55a32; }

@media (prefers-reduced-motion: reduce) {
  .tempovera-workspace-site *,
  .tempovera-workspace-site *::before,
  .tempovera-workspace-site *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Header alignment safeguard for Team Member workspaces. */
.tempovera-workspace-site .tva-team-shell .tva-header {
  grid-template-columns: minmax(190px, 1fr) auto;
}

.tempovera-workspace-site .tva-team-shell .tva-account {
  grid-column: 2;
  justify-self: end;
}

@media (max-width: 640px) {
  .tempovera-workspace-site .tva-team-shell .tva-header {
    grid-template-columns: 1fr auto;
  }
}
