:root {
  --tva-ink: #222530;
  --tva-ink-soft: #3f4350;
  --tva-muted: #767b87;
  --tva-paper: #f7f5f0;
  --tva-card: #fffdf9;
  --tva-line: #e7e2d9;
  --tva-line-strong: #d9d2c7;
  --tva-brand: #6255a5;
  --tva-brand-deep: #4b407f;
  --tva-brand-soft: #eeeaf8;
  --tva-sage: #8cb8a7;
  --tva-sage-soft: #edf6f2;
  --tva-warm: #d8a57d;
  --tva-warm-soft: #fbf1e8;
  --tva-danger: #b7565d;
  --tva-radius-xl: 30px;
  --tva-radius-lg: 22px;
  --tva-radius-md: 16px;
  --tva-shadow: 0 18px 50px rgba(48, 41, 31, 0.07);
  --tva-shadow-soft: 0 8px 24px rgba(48, 41, 31, 0.045);
}

.tva-shell,
.tva-admin-wrap {
  color: var(--tva-ink);
  font-family: Aptos, "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.tva-shell *,
.tva-admin-wrap * {
  box-sizing: border-box;
}

.tva-shell {
  box-sizing: border-box;
  width: min(1380px, calc(100% - 44px));
  margin: 0 auto;
  padding: 30px 0 64px;
}

.tva-header {
  min-height: 66px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(240px, 1fr);
  align-items: center;
  gap: 28px;
  margin-bottom: 28px;
}

/* Team headers have no middle navigation, so keep the account at the far right. */
.tva-team-shell .tva-header {
  grid-template-columns: minmax(190px, 1fr) auto;
}

.tva-brand,
.tva-login-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--tva-ink);
  text-decoration: none;
  font-weight: 760;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.tva-logo {
  width: 42px;
  height: 42px;
  flex: none;
  color: var(--tva-brand);
  filter: drop-shadow(0 5px 12px rgba(98, 85, 165, 0.16));
}

.tva-quick-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--tva-line);
  border-radius: 15px;
  background: rgba(255, 253, 249, 0.74);
  box-shadow: 0 5px 20px rgba(48, 41, 31, 0.035);
}

.tva-quick-nav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--tva-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 680;
  transition: color 160ms ease, background 160ms ease;
}

.tva-quick-nav a:hover,
.tva-quick-nav a:focus-visible {
  color: var(--tva-brand-deep);
  background: var(--tva-brand-soft);
  outline: none;
}

.tva-account {
  justify-self: end;
  display: grid;
  grid-template-columns: 40px minmax(0, auto) auto;
  align-items: center;
  gap: 10px;
}

.tva-avatar,
.tva-person-avatar {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: #e8e2d8;
  color: #4d463e;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.tva-avatar {
  width: 40px;
  height: 40px;
  font-size: 12px;
}

.tva-account-copy {
  min-width: 0;
  display: grid;
}

.tva-account-copy strong,
.tva-account-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tva-account-copy strong {
  font-size: 13px;
  font-weight: 760;
}

.tva-account-copy span {
  color: var(--tva-muted);
  font-size: 11px;
}

.tva-signout-form {
  margin: 0;
  padding: 0;
}

.tva-signout {
  min-width: 42px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 0 4px;
  padding: 0 12px;
  border: 1px solid var(--tva-line);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.72);
  color: var(--tva-muted);
  box-shadow: 0 4px 14px rgba(48, 41, 31, 0.035);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.tva-signout svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.tva-signout:hover,
.tva-signout:focus-visible {
  color: var(--tva-danger);
  border-color: #ead3d4;
  background: #fff4f4;
  outline: none;
  transform: translateY(-1px);
}

.tva-signout:focus-visible {
  box-shadow: 0 0 0 4px rgba(183, 86, 93, 0.11);
}

.tva-welcome {
  position: relative;
  overflow: hidden;
  min-height: 236px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 38px;
  padding: 42px 46px;
  border: 1px solid #ded8ce;
  border-radius: var(--tva-radius-xl);
  background:
    radial-gradient(circle at 84% 18%, rgba(140, 184, 167, 0.22), transparent 24%),
    linear-gradient(135deg, #fffdf9 0%, #f4efe8 100%);
  box-shadow: var(--tva-shadow);
}

.tva-welcome::after {
  content: "";
  position: absolute;
  right: -88px;
  bottom: -126px;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(98, 85, 165, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(98, 85, 165, 0.035), 0 0 0 84px rgba(98, 85, 165, 0.02);
  pointer-events: none;
}

.tva-welcome-copy,
.tva-tracker-card {
  position: relative;
  z-index: 1;
}

.tva-date,
.tva-eyebrow {
  margin: 0 0 8px;
  color: var(--tva-brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.tva-welcome h1 {
  margin: 0;
  color: var(--tva-ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.tva-welcome-copy > p:last-child {
  max-width: 610px;
  margin: 14px 0 0;
  color: var(--tva-muted);
  font-size: 15px;
  line-height: 1.6;
}

.tva-tracker-card {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border: 1px solid rgba(98, 85, 165, 0.17);
  border-radius: 21px;
  background: rgba(255, 253, 249, 0.8);
  box-shadow: 0 14px 35px rgba(48, 41, 31, 0.06);
  backdrop-filter: blur(9px);
}

.tva-tracker-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--tva-muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tva-live-dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: #aca9a2;
  box-shadow: 0 0 0 5px rgba(172, 169, 162, 0.14);
}

.tva-tracker-card.is-running .tva-live-dot {
  background: #4d9c7e;
  box-shadow: 0 0 0 5px rgba(77, 156, 126, 0.14);
  animation: tva-pulse 2s ease-out infinite;
}

.tva-tracker-card.is-paused .tva-live-dot {
  background: var(--tva-warm);
  box-shadow: 0 0 0 5px rgba(216, 165, 125, 0.16);
}

.tva-tracker-card strong {
  color: var(--tva-ink);
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -0.025em;
}

.tva-tracker-card small {
  margin-top: 5px;
  overflow: hidden;
  color: var(--tva-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes tva-pulse {
  50% { box-shadow: 0 0 0 11px rgba(77, 156, 126, 0); }
}

.tva-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.tva-stat {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  padding: 23px 24px;
  border: 1px solid var(--tva-line);
  border-radius: var(--tva-radius-lg);
  background: var(--tva-card);
  box-shadow: var(--tva-shadow-soft);
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.tva-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 30px rgba(48, 41, 31, 0.07);
}

.tva-stat > span {
  color: var(--tva-muted);
  font-size: 12px;
  font-weight: 700;
}

.tva-stat > strong {
  margin: 11px 0 4px;
  overflow: hidden;
  color: var(--tva-ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tva-stat > small {
  margin-top: auto;
  color: #99958d;
  font-size: 11px;
}


.tva-work-plan {
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 10%, rgba(216, 165, 125, 0.19), transparent 26%),
    linear-gradient(135deg, #fffdf9 0%, #f4f0fb 100%);
}

.tva-work-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.tva-work-plan-head h2 {
  margin-bottom: 7px;
}

.tva-work-plan-head p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--tva-muted);
  font-size: 13px;
  line-height: 1.55;
}

.tva-work-progress-value {
  flex: none;
  color: var(--tva-brand-deep);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.tva-work-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tva-work-metrics > div {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid rgba(98, 85, 165, 0.12);
  border-radius: 15px;
  background: rgba(255, 253, 249, 0.72);
}

.tva-work-metrics span,
.tva-goal-cell small {
  display: block;
  color: var(--tva-muted);
  font-size: 10px;
  font-weight: 650;
}

.tva-work-metrics strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--tva-ink);
  font-size: 18px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tva-progress-track {
  height: 10px;
  overflow: hidden;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(98, 85, 165, 0.12);
}

.tva-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tva-brand), var(--tva-warm));
}

.tva-goal-cell {
  display: grid;
  gap: 3px;
}

.tva-goal-cell strong {
  font-size: 13px;
}

.tva-panel {
  margin-bottom: 18px;
  padding: 28px 30px;
  border: 1px solid var(--tva-line);
  border-radius: var(--tva-radius-xl);
  background: var(--tva-card);
  box-shadow: var(--tva-shadow-soft);
}

.tva-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.tva-panel h2 {
  margin: 0;
  color: var(--tva-ink);
  font-size: 23px;
  font-weight: 730;
  letter-spacing: -0.035em;
}

.tva-panel-note,
.tva-muted {
  color: var(--tva-muted);
  font-size: 12px;
}

.tva-secondary-button,
.tva-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 760;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.tva-secondary-button {
  border: 1px solid var(--tva-line-strong);
  color: var(--tva-ink-soft);
  background: #fffefa;
}

.tva-secondary-button:hover,
.tva-secondary-button:focus-visible {
  border-color: #beb3db;
  color: var(--tva-brand-deep);
  background: var(--tva-brand-soft);
  outline: none;
}

.tva-primary-button {
  border: 1px solid var(--tva-brand);
  color: white;
  background: var(--tva-brand);
}

.tva-primary-button:hover,
.tva-primary-button:focus-visible {
  transform: translateY(-1px);
  background: var(--tva-brand-deep);
  outline: none;
}

.tva-bars {
  height: 262px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 24px);
  align-items: end;
  padding: 6px 8px 0;
}

.tva-bar-col {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: 26px 1fr 24px;
  gap: 8px;
  text-align: center;
}

.tva-bar-col > span {
  overflow: hidden;
  color: #9a968e;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tva-bar-col > strong {
  color: var(--tva-muted);
  font-size: 11px;
  font-weight: 760;
}

.tva-bar-track {
  position: relative;
  width: 22px;
  height: 100%;
  justify-self: center;
  overflow: hidden;
  border-radius: 999px;
  background: #efebe4;
}

.tva-bar-track i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--tva-sage) 0%, var(--tva-brand) 100%);
}

.tva-table-wrap {
  overflow: auto;
  border: 1px solid #eee9e1;
  border-radius: 18px;
}

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

.tva-table th {
  padding: 13px 17px;
  border-bottom: 1px solid #e9e4dc;
  background: #faf8f3;
  color: #8e8a82;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-align: left;
  text-transform: uppercase;
}

.tva-table td {
  padding: 15px 17px;
  border-bottom: 1px solid #efebe4;
  color: var(--tva-ink-soft);
  font-size: 13px;
}

.tva-table tbody tr:last-child td {
  border-bottom: 0;
}

.tva-table tbody tr:hover {
  background: #fcfaf6;
}

.tva-person {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.tva-person-avatar {
  width: 34px;
  height: 34px;
  background: var(--tva-brand-soft);
  color: var(--tva-brand-deep);
  font-size: 10px;
}

.tva-person strong {
  color: var(--tva-ink);
  font-weight: 730;
}

.tva-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #77736d;
  background: #efede8;
  font-size: 10px;
  font-weight: 800;
}

.tva-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a8a39a;
}

.tva-status.active {
  color: #33775f;
  background: var(--tva-sage-soft);
}

.tva-status.active::before {
  background: #4f9f80;
}

.tva-inline-empty {
  padding: 14px;
  color: var(--tva-muted);
  text-align: center;
}

.tva-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tva-shot {
  overflow: hidden;
  border: 1px solid var(--tva-line);
  border-radius: 18px;
  background: #fffefa;
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.tva-shot:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(48, 41, 31, 0.08);
}

.tva-shot > a {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ece8e1;
}

.tva-shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 260ms ease;
}

.tva-shot:hover img {
  transform: scale(1.015);
}

.tva-shot-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
}

.tva-shot-meta > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.tva-shot-meta strong,
.tva-shot-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tva-shot-meta strong {
  color: var(--tva-ink);
  font-size: 11px;
  font-weight: 730;
}

.tva-shot-meta span {
  color: var(--tva-muted);
  font-size: 10px;
}

.tva-activity-pill {
  flex: none;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--tva-sage-soft);
  color: #3d7a63 !important;
  font-weight: 800;
}

.tva-empty {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 30px;
  border: 1px dashed var(--tva-line-strong);
  border-radius: 18px;
  background: #fbf9f5;
  color: var(--tva-muted);
  text-align: center;
}

.tva-empty-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--tva-brand-soft);
  color: var(--tva-brand);
  font-size: 22px;
}

.tva-empty strong {
  color: var(--tva-ink);
  font-size: 14px;
}

.tva-empty p {
  margin: 5px 0 0;
  font-size: 12px;
}

.tva-login-shell,
.tva-message-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.tva-login-card,
.tva-message-card {
  width: min(100%, 450px);
  padding: 38px;
  border: 1px solid var(--tva-line);
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.94);
  box-shadow: var(--tva-shadow);
}

.tva-login-brand {
  margin-bottom: 38px;
}

.tva-login-card h1,
.tva-message-card h1 {
  margin: 0 0 26px;
  color: var(--tva-ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.tva-login-card form {
  margin: 0;
}

.tva-login-card p {
  margin: 0 0 18px;
}

.tva-login-card label {
  display: block;
  margin-bottom: 7px;
  color: var(--tva-ink-soft);
  font-size: 12px;
  font-weight: 730;
}

.tva-login-card .login-username,
.tva-login-card .login-password {
  position: relative;
}

.tva-login-card input[type="text"],
.tva-login-card input[type="password"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--tva-line-strong);
  border-radius: 13px;
  outline: 0;
  background: #fffefa;
  color: var(--tva-ink);
  font: inherit;
  font-size: 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.tva-login-card input[type="password"] {
  padding-right: 52px;
}

.tva-login-card input[type="text"]:focus,
.tva-login-card input[type="password"]:focus {
  border-color: #a99bd2;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(98, 85, 165, 0.11);
}

.tva-password-toggle {
  position: absolute;
  right: 8px;
  bottom: 7px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--tva-muted);
  cursor: pointer;
}

.tva-password-toggle:hover,
.tva-password-toggle:focus-visible {
  color: var(--tva-brand);
  background: var(--tva-brand-soft);
  outline: none;
}

.tva-password-toggle svg {
  width: 18px;
  height: 18px;
}

.tva-login-card .login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--tva-muted);
  font-size: 12px;
}

.tva-login-card .login-remember label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--tva-muted);
  font-weight: 600;
}

.tva-login-card input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--tva-brand);
}

.tva-login-card .login-submit {
  margin: 24px 0 0;
}

.tva-login-card input[type="submit"] {
  width: 100%;
  min-height: 49px;
  padding: 12px 18px;
  border: 0;
  border-radius: 13px;
  background: var(--tva-brand);
  color: white;
  font: inherit;
  font-size: 14px;
  font-weight: 780;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(98, 85, 165, 0.19);
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.tva-login-card input[type="submit"]:hover,
.tva-login-card input[type="submit"]:focus-visible {
  transform: translateY(-1px);
  background: var(--tva-brand-deep);
  box-shadow: 0 13px 27px rgba(98, 85, 165, 0.23);
  outline: none;
}

.tva-message-card {
  text-align: center;
}

.tva-message-card .tva-logo {
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
}

.tva-message-card p {
  margin: -10px 0 24px;
  color: var(--tva-muted);
  line-height: 1.65;
}

/* WordPress admin pages supplied by the plugin. */
.tva-admin-wrap {
  max-width: 1280px;
}

.tva-admin-wrap > .tva-panel,
.tva-admin-wrap > .tva-grid {
  margin-top: 22px;
}

.tva-admin-wrap .tva-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tva-admin-wrap input[type="text"],
.tva-admin-wrap input[type="email"],
.tva-admin-wrap input[type="password"],
.tva-admin-wrap input[type="number"],
.tva-admin-wrap textarea,
.tva-admin-wrap select {
  min-height: 40px;
  border-color: #d7d1c8;
  border-radius: 10px;
}

.tva-admin-wrap .button-primary {
  border-color: var(--tva-brand);
  background: var(--tva-brand);
}

@media (max-width: 1120px) {
  .tva-header {
    grid-template-columns: 1fr auto;
  }

  .tva-quick-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    order: 3;
  }

  .tva-account {
    grid-column: 2;
  }

  .tva-screenshot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .tva-shell {
    width: min(100% - 28px, 1380px);
    padding-top: 20px;
  }

  .tva-welcome {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 34px;
  }

  .tva-tracker-card {
    min-height: auto;
  }

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

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

  .tva-admin-wrap .tva-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .tva-work-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tva-work-plan-head {
    display: grid;
    gap: 12px;
  }

  .tva-work-progress-value {
    font-size: 30px;
  }

  .tva-work-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .tva-shell {
    width: 100%;
    padding: 15px 13px 42px;
  }

  .tva-header {
    min-height: 54px;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 16px;
  }

  .tva-brand span,
  .tva-account-copy,
  .tva-quick-nav {
    display: none;
  }

  .tva-account {
    grid-template-columns: 38px 40px;
  }

  .tva-signout {
    width: 40px;
    min-width: 40px;
    padding: 0;
  }

  .tva-signout span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .tva-avatar {
    width: 38px;
    height: 38px;
  }

  .tva-welcome {
    min-height: 0;
    padding: 28px 23px;
    border-radius: 23px;
  }

  .tva-welcome h1 {
    font-size: 39px;
  }

  .tva-welcome-copy > p:last-child {
    font-size: 14px;
  }

  .tva-tracker-card {
    padding: 19px;
  }

  .tva-stats {
    gap: 10px;
    margin: 12px 0;
  }

  .tva-stat {
    min-height: 108px;
    padding: 17px;
    border-radius: 17px;
  }

  .tva-stat > strong {
    font-size: 25px;
  }

  .tva-panel {
    padding: 21px 18px;
    border-radius: 22px;
  }

  .tva-panel-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
  }

  .tva-bars {
    height: 220px;
    gap: 5px;
    padding-inline: 0;
  }

  .tva-bar-track {
    width: 14px;
  }

  .tva-table-wrap {
    overflow: visible;
    border: 0;
  }

  .tva-table,
  .tva-table tbody,
  .tva-table tr,
  .tva-table td {
    display: block;
    width: 100%;
  }

  .tva-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .tva-table tr {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid var(--tva-line);
    border-radius: 16px;
    background: #fffefa;
  }

  .tva-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border: 0;
    text-align: right;
  }

  .tva-table td::before {
    content: attr(data-label);
    color: var(--tva-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-align: left;
    text-transform: uppercase;
  }

  .tva-table td:first-child {
    padding-top: 0;
  }

  .tva-table td:first-child::before {
    display: none;
  }

  .tva-table td:first-child .tva-person {
    width: 100%;
  }

  .tva-inline-empty {
    width: 100%;
  }

  .tva-screenshot-grid {
    grid-template-columns: 1fr;
  }

  .tva-login-shell,
  .tva-message-shell {
    min-height: 100svh;
    padding: 18px 13px;
  }

  .tva-login-card,
  .tva-message-card {
    padding: 27px 22px;
    border-radius: 23px;
  }

  .tva-login-brand {
    margin-bottom: 29px;
  }

  .tva-login-card h1,
  .tva-message-card h1 {
    font-size: 31px;
  }
}

@media (max-width: 390px) {
  .tva-stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tva-live-dot,
  .tva-stat,
  .tva-shot,
  .tva-shot img,
  .tva-primary-button,
  .tva-secondary-button,
  .tva-login-card input[type="submit"] {
    animation: none !important;
    transition: none !important;
  }
}

/* Team profile photos and admin profile editor. */
.tva-avatar.tva-has-photo,
.tva-person-avatar.tva-has-photo,
.tva-admin-avatar.tva-has-photo {
  overflow: hidden;
  padding: 0;
  background: var(--tva-brand-soft);
}

.tva-avatar img,
.tva-person-avatar img,
.tva-admin-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.tva-person-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.tva-person-copy small {
  color: var(--tva-muted);
  font-size: 10px;
  line-height: 1.25;
}

.tva-profile-list {
  display: grid;
  gap: 14px;
  clear: both;
  padding-top: 18px;
}

.tva-admin-profile-card {
  padding: 16px;
  border: 1px solid var(--tva-line);
  border-radius: 17px;
  background: #fffdf9;
  box-shadow: var(--tva-shadow-soft);
}

.tva-admin-profile-summary {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}

.tva-admin-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--tva-brand-soft);
  color: var(--tva-brand-deep);
  font-weight: 800;
}

.tva-admin-profile-summary > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.tva-admin-profile-summary strong {
  font-size: 15px;
}

.tva-admin-profile-summary span,
.tva-admin-profile-summary small {
  overflow: hidden;
  color: var(--tva-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tva-admin-profile-card details {
  margin: 15px 0 12px;
  border-top: 1px solid var(--tva-line);
  border-bottom: 1px solid var(--tva-line);
}

.tva-admin-profile-card summary {
  padding: 11px 0;
  color: var(--tva-brand-deep);
  cursor: pointer;
  font-weight: 720;
}

.tva-profile-edit-form {
  display: grid;
  gap: 12px;
  padding: 4px 0 16px;
}

.tva-profile-edit-form label:not(.tva-check) {
  display: grid;
  gap: 6px;
}

.tva-profile-edit-form label > span {
  font-weight: 680;
}

.tva-profile-edit-form small {
  color: var(--tva-muted);
}

.tva-profile-edit-form .button {
  justify-self: start;
}

.tva-admin-access-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--tva-muted);
  font-size: 12px;
}

@media (max-width: 680px) {
  .tva-admin-access-row {
    align-items: stretch;
    flex-direction: column;
  }

  .tva-admin-access-row .tva-inline-form {
    display: grid;
    grid-template-columns: 1fr auto;
  }
}

/* Encrypted dashboard-only payout details. */
.tva-bank-panel,
.tva-payout-team-panel {
  position: relative;
  overflow: hidden;
}

.tva-bank-panel::before,
.tva-payout-team-panel::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -120px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98, 85, 165, 0.13), rgba(216, 165, 125, 0.04) 54%, transparent 72%);
  pointer-events: none;
}

.tva-bank-panel .tva-panel-head p,
.tva-payout-team-panel .tva-panel-head p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--tva-muted);
  font-size: 13px;
  line-height: 1.6;
}

.tva-bank-status {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 6px 11px;
  border: 1px solid var(--tva-line);
  border-radius: 999px;
  background: #faf8f3;
  color: var(--tva-muted);
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

.tva-bank-status.ready {
  border-color: #cfe1d9;
  background: var(--tva-sage-soft);
  color: #427161;
}

.tva-bank-notice {
  margin: -8px 0 20px;
  padding: 12px 14px;
  border: 1px solid var(--tva-line);
  border-radius: 13px;
  font-size: 13px;
  font-weight: 650;
}

.tva-bank-notice.success {
  border-color: #cfe1d9;
  background: var(--tva-sage-soft);
  color: #386956;
}

.tva-bank-notice.error {
  border-color: #ead3d4;
  background: #fff4f4;
  color: var(--tva-danger);
}

.tva-bank-form {
  position: relative;
  z-index: 1;
}

.tva-bank-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tva-bank-fields label {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.tva-bank-fields label > span {
  color: var(--tva-ink-soft);
  font-size: 12px;
  font-weight: 720;
}

.tva-bank-fields input,
.tva-bank-fields select,
.tva-bank-fields textarea {
  width: 100%;
  min-height: 45px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--tva-line-strong);
  border-radius: 12px;
  background: #fffefa;
  color: var(--tva-ink);
  box-shadow: 0 3px 12px rgba(48, 41, 31, 0.025);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.tva-bank-fields textarea {
  min-height: 88px;
  resize: vertical;
}

.tva-bank-fields input:focus,
.tva-bank-fields select:focus,
.tva-bank-fields textarea:focus {
  border-color: #aa9bd1;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(98, 85, 165, 0.10);
}

.tva-bank-wide {
  grid-column: 1 / -1;
}

.tva-bank-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.tva-bank-actions .tva-primary-button {
  cursor: pointer;
  font: inherit;
}

.tva-bank-actions small {
  color: var(--tva-muted);
}

.tva-bank-remove {
  margin: 14px 0 0;
}

.tva-bank-remove button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tva-danger);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.tva-payout-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tva-payout-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--tva-line);
  border-radius: 19px;
  background: #fffefa;
  box-shadow: 0 6px 18px rgba(48, 41, 31, 0.035);
}

.tva-payout-card.is-ready {
  border-color: #ddd5ef;
  background: linear-gradient(145deg, #fffefa, #faf7ff);
}

.tva-payout-person {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.tva-payout-person .tva-person-avatar {
  width: 42px;
  height: 42px;
  font-size: 11px;
}

.tva-payout-person > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.tva-payout-person strong,
.tva-payout-person span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tva-payout-person strong {
  font-size: 14px;
}

.tva-payout-person span {
  color: var(--tva-muted);
  font-size: 11px;
}

.tva-payout-summary {
  display: grid;
  gap: 4px;
  margin: 16px 0 12px;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--tva-brand-soft);
}

.tva-payout-summary strong {
  font-size: 13px;
}

.tva-payout-summary span,
.tva-payout-empty {
  color: var(--tva-muted);
  font-size: 11px;
  line-height: 1.5;
}

.tva-payout-empty {
  margin-top: 15px;
  padding: 13px 14px;
  border-radius: 13px;
  background: #f8f6f1;
}

.tva-payout-card details {
  border-top: 1px solid var(--tva-line);
}

.tva-payout-card summary {
  padding: 12px 0 4px;
  color: var(--tva-brand-deep);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
}

.tva-bank-details {
  display: grid;
  gap: 0;
  margin: 12px 0;
  border: 1px solid var(--tva-line);
  border-radius: 14px;
  background: #fff;
}

.tva-bank-details > div {
  display: grid;
  grid-template-columns: minmax(100px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #eee9e1;
}

.tva-bank-details > div:last-child {
  border-bottom: 0;
}

.tva-bank-details dt,
.tva-bank-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.45;
}

.tva-bank-details dt {
  color: var(--tva-muted);
  font-weight: 680;
}

.tva-bank-details dd {
  color: var(--tva-ink);
  font-weight: 700;
}

.tva-copy-bank {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--tva-line-strong);
  border-radius: 11px;
  background: #fffefa;
  color: var(--tva-brand-deep);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.tva-copy-bank:hover,
.tva-copy-bank:focus-visible,
.tva-copy-bank.is-copied {
  border-color: #b8add8;
  background: var(--tva-brand-soft);
  outline: none;
}

@media (max-width: 900px) {
  .tva-payout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tva-bank-fields {
    grid-template-columns: 1fr;
  }

  .tva-bank-wide {
    grid-column: auto;
  }

  .tva-bank-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tva-bank-actions .tva-primary-button {
    width: 100%;
  }

  .tva-bank-details > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
