/* TexoCommand — clean minimal shell (homepage look everywhere)
 * Baseline: light surfaces, soft cards, quiet borders.
 * Cool gray / blue-teal for routine UI; Texo salmon only for problem chips
 * (plugin updates, EOL PHP, hard errors).
 */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f7;
  --ink: #163a3f;
  --text: #45585c;
  --muted: #7c9499;
  --brand: #388087;
  --brand-dark: #2c666b;
  --brand-soft: #e2eef0; /* cool wash (was mint green) */
  --tint-teal: #6fb3b8;
  --cool-soft: #e8eef1;
  --cool-mid: #d5e0e6;
  --cool-ink: #3d5a63;
  --chip-bg: #eef2f4;
  --border: #d8e2e6;
  /* Problem chips only (updates, EOL PHP, errors) */
  --salmon: #DD5F55;
  --salmon-dark: #c44a41;
  --font-title: "Merriweather", Georgia, "Times New Roman", serif;
  --font-head: "Hanken Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(4, 22, 21, .04), 0 8px 24px rgba(4, 22, 21, .06);
  --maxw: 1040px;
  --ok: #22a06b;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-alt);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); }

/* —— App shell (logged in) —— light, matches landing —— */
.tc-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
}

/* Light header — no teal band */
.tc-header {
  background: var(--bg);
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.tc-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem 1.25rem; /* vertical −15% from 1rem */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.tc-logo {
  display: block;
  height: 51px; /* 44px + 15% */
  width: auto;
}
.tc-header__actions {
  display: flex;
  align-items: center;
  gap: .35rem .85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.tc-header__link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  color: var(--text) !important;
  opacity: .9;
  padding: .35rem .15rem;
}
.tc-header__link:hover {
  opacity: 1;
  color: var(--ink) !important;
}
.tc-header__link--accent {
  color: var(--brand) !important;
}
.tc-header__link--accent:hover {
  color: var(--brand-dark) !important;
}

/* —— Main —— */
.tc-main {
  flex: 1;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}
.tc-lead {
  margin: 0 0 1.25rem;
  color: var(--text);
  font-size: 1.02rem;
}
.tc-lead strong { color: var(--ink); font-weight: 700; }

.tc-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.45rem 1.4rem;
}
.tc-card h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.tc-muted {
  color: var(--muted);
  font-size: .95rem;
  margin: .65rem 0 0;
  line-height: 1.55;
}
.tc-muted strong { color: var(--text); font-weight: 600; }

.tc-table-wrap { overflow-x: auto; margin-top: 1.1rem; }
.tc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.tc-table th,
.tc-table td {
  text-align: left;
  padding: .7rem .55rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.tc-table th {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.tc-table td { color: var(--ink); }
.tc-table tbody tr:last-child td { border-bottom: 0; }
/* No row hover washes on any table */

.tc-domain {
  font-family: var(--font-mono);
  font-size: .88em;
  color: var(--ink);
  font-weight: 500;
}

.tc-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  font-family: var(--font-head);
  padding: .22rem .55rem;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--cool-ink);
  border: 1px solid var(--border);
}
/* Ready — cool blue-teal wash */
.tc-tag--ok {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-color: transparent;
}
/* Initialising / partial — cool gray-blue */
.tc-tag--partial {
  background: var(--cool-soft);
  color: var(--cool-ink);
  border-color: var(--cool-mid);
}
.tc-tag--pending {
  background: var(--chip-bg);
  color: var(--muted);
  border-color: var(--border);
}
/* Hard error / scan fail — Texo salmon */
.tc-tag--error {
  background: var(--salmon);
  color: #fff;
  border-color: transparent;
}
/* Focused — brand teal */
.tc-tag--focus {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
}
/* Problem chips — updates available, EOL PHP, etc. */
.tc-tag--updates,
.tc-tag--alert {
  background: var(--salmon);
  color: #fff;
  border-color: transparent;
  font-variant-numeric: tabular-nums;
}
/* Premium / non–wordpress.org — $ mark (not a chip) */
.tc-source-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: #5c6bc0;
  line-height: 1;
  cursor: default;
}
.tc-tag--premium {
  background: transparent;
  border: 0;
  color: #5c6bc0;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0;
}
/* Drop-ins (object-cache.php, db.php, …) — quiet slate, not premium */
.tc-tag--drop-in {
  background: #eceff1;
  color: #546e7a;
  border-color: #cfd8dc;
  font-size: .68rem;
  letter-spacing: .04em;
}
.tc-source-cell {
  white-space: nowrap;
  vertical-align: middle;
}
.tc-source-wp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.tc-source-wp__icon {
  display: block;
  border-radius: 50%;
}
/* Plugins needing update: no row wash; only the *update* target is salmon */
.tc-table tbody tr.tc-row--attention td {
  background: transparent;
}
/* Installed version stays normal ink always */
.tc-table tbody tr.tc-row--attention .tc-su-ver-cell {
  color: var(--ink);
  font-weight: inherit;
}
/* Offered update version = salmon text, same metrics as .tc-mono Version column */
.tc-table--compact tbody tr.tc-row--attention .tc-tag--updates,
.tc-table--compact .tc-su-update-cell .tc-tag--updates {
  display: inline;
  background: transparent;
  border: 0;
  color: var(--salmon-dark);
  padding: 0;
  border-radius: 0;
  font-size: .84em; /* same as .tc-mono */
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  line-height: inherit;
  font-variant-numeric: tabular-nums;
}
.tc-section-title {
  margin: 1.35rem 0 .35rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.tc-warn { color: var(--cool-ink) !important; }
.tc-domain a {
  color: var(--ink);
  font-weight: 500;
}
.tc-domain a:hover { color: var(--brand-dark); }

.tc-actions {
  white-space: nowrap;
  text-align: right;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
  justify-content: flex-end;
}
.tc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  padding: 0 .85rem;
  min-height: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none !important;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}
/* Overview row actions: same footprint for View / Update / Login */
.tc-actions .tc-btn,
.tc-actions .tc-btn--ghost,
.tc-actions .tc-btn--login,
.tc-actions .tc-btn--init {
  min-width: 5.5rem;
  height: 2rem;
  min-height: 2rem;
  padding: 0 .7rem;
  font-size: .78rem;
  font-weight: 700;
}
.tc-actions .tc-inline-form {
  display: inline-flex;
  margin: 0;
  vertical-align: middle;
}
.tc-actions .tc-inline-form .tc-btn {
  width: 100%;
}
/* Login — brand teal (cool), solid for hierarchy without warm accents */
.tc-btn--login {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff !important;
}
.tc-btn--login:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff !important;
}
.tc-btn--init {
  background: var(--cool-soft);
  border-color: var(--cool-mid);
  color: var(--cool-ink) !important;
  cursor: default;
  font-weight: 600;
}
.tc-init-banner {
  margin: 0 0 1rem;
  padding: .65rem .85rem;
  background: var(--cool-soft);
  border: 1px solid var(--cool-mid);
  border-radius: var(--radius);
  color: var(--cool-ink);
}

/* —— Tabs —— */
.tc-tabs {
  display: flex;
  gap: .35rem;
  margin: 0 0 1.15rem;
  border-bottom: 1px solid var(--border);
}
.tc-tabs__tab {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  color: var(--muted) !important;
  padding: .55rem .9rem .65rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tc-tabs__tab:hover { color: var(--ink) !important; }
.tc-tabs__tab.is-active {
  color: var(--brand-dark) !important;
  border-bottom-color: var(--brand);
}

/* —— Toasts (fixed; SuperCache-dashboard style, cool palette) —— */
.tc-toaster {
  position: fixed;
  z-index: 9999;
  top: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}
.tc-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  width: 100%;
  padding: .75rem .85rem .75rem .8rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(4, 22, 21, .06), 0 12px 28px -4px rgba(4, 22, 21, .12);
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.35;
  animation: tc-toast-in .35s cubic-bezier(.21, 1.02, .73, 1) both;
}
.tc-toast.is-leaving {
  animation: tc-toast-out .3s cubic-bezier(.06, .71, .55, 1) both;
}
.tc-toast__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: .05rem;
}
.tc-toast--success .tc-toast__icon { color: var(--brand); }
.tc-toast--error .tc-toast__icon { color: var(--cool-ink); }
.tc-toast__msg { flex: 1 1 auto; min-width: 0; }
.tc-toast__close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 .15rem;
  opacity: .7;
}
.tc-toast__close:hover { opacity: 1; color: var(--ink); }
@keyframes tc-toast-in {
  from { opacity: 0; transform: translateY(-12px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes tc-toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-8px) scale(.96); }
}

/* Expand chevron + clickable row */
.tc-col-expand { width: 2.25rem; padding-right: .25rem !important; }
.tc-col-php { white-space: nowrap; }
.tc-table--sites .tc-col-php { width: 4.25rem; }
.tc-site-row {
  cursor: pointer;
}
.tc-site-row:hover td { background: rgba(232, 238, 241, .55); }
/* Open site row matches expanded detail panel (same gray surface) */
.tc-site-row.is-open td,
.tc-site-row.is-open:hover td {
  background: var(--bg-alt);
}
.tc-site-row .tc-actions { cursor: default; }

.tc-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  pointer-events: none;
}
.tc-chevron {
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .15s ease;
  margin-top: -2px;
}
.tc-site-row.is-open .tc-chevron { transform: rotate(45deg); margin-top: 0; }
.tc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.tc-detail-row > td {
  background: var(--bg-alt) !important;
  border-bottom: 1px solid var(--border);
  padding: 1rem 1rem 1.15rem !important;
}
.tc-detail {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 1.25rem 1.5rem;
  align-items: start;
  padding-top: 0.15rem;
}
.tc-detail__toolbar {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
}
.tc-detail__plugins {
  grid-column: 1 / -1;
}
.tc-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin: 0 0 .65rem;
}
.tc-section-head .tc-section-title {
  margin: 0;
}
.tc-section-head__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
}
/* Segmented filter (All | Updates) */
.tc-seg {
  display: inline-flex;
  align-items: stretch;
  padding: 2px;
  border-radius: 10px;
  background: var(--cool-soft);
  border: 1px solid var(--border);
  gap: 2px;
}
.tc-seg__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.tc-seg__btn:hover {
  color: var(--ink);
}
.tc-seg__btn.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(4, 22, 21, 0.08);
}
.tc-seg__btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
.tc-row--core td {
  background: rgba(232, 238, 241, .55);
  font-weight: 500;
}
.tc-row--core .tc-mono {
  font-weight: 600;
}

/* —— Texo Safe Update progress (SuperCache-inspired) —— */
.tc-su-progress {
  margin: 0 0 1.15rem;
  padding: 1rem 1.1rem 0.95rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.tc-su-progress[hidden] { display: none !important; }
.tc-su-progress__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}
.tc-su-progress__titles {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.tc-su-progress__brand {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}
.tc-su-progress__message {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.tc-su-progress__meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  padding-left: 0.35rem;
}
.tc-su-progress__pct {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-dark);
  flex-shrink: 0;
  padding-top: 0;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tc-su-progress__close {
  appearance: none;
  border: 0;
  background: none;
  box-shadow: none;
  color: #b0b8bc;
  font-size: 1.65rem;
  font-weight: 300;
  line-height: 1;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  border-radius: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0.2rem 0 0 0.15rem; /* optical: × glyph sits high — nudge down vs 100% */
  transition: color 0.15s ease;
}
.tc-su-progress__close:hover {
  color: #8a9399;
  background: none;
}
.tc-su-progress__close:focus-visible {
  outline: none;
  color: #6b747a;
}
.tc-su-progress__track {
  height: 14px;
  border-radius: 999px;
  background: var(--cool-soft);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(4, 22, 21, 0.06);
}
.tc-su-progress__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--tint-teal) 55%, var(--brand-dark) 100%);
  background-size: 200% 100%;
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  box-shadow: 0 0 12px rgba(56, 128, 135, 0.35);
  animation: tc-su-shimmer 2.2s ease-in-out infinite;
}
@keyframes tc-su-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
/* Recover / undo — bar retreats (RTL fill + salmon) */
.tc-su-progress--reverse .tc-su-progress__brand {
  color: var(--salmon-dark);
}
.tc-su-progress--reverse .tc-su-progress__pct {
  color: var(--salmon-dark);
}
.tc-su-progress--reverse .tc-su-progress__track {
  direction: rtl;
}
.tc-su-progress--reverse .tc-su-progress__fill {
  background: linear-gradient(90deg, var(--salmon-dark) 0%, var(--salmon) 50%, #f0a39c 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 14px rgba(221, 95, 85, 0.4);
  animation: tc-su-shimmer-rev 1.6s ease-in-out infinite;
}
@keyframes tc-su-shimmer-rev {
  0% { background-position: -100% 0; }
  100% { background-position: 100% 0; }
}
.tc-su-progress--done .tc-su-progress__fill {
  background: linear-gradient(90deg, var(--brand) 0%, #4a9a9f 100%);
  animation: none;
  box-shadow: 0 0 10px rgba(56, 128, 135, 0.25);
}
.tc-su-progress--done .tc-su-progress__brand {
  color: var(--brand-dark);
}
.tc-su-progress--error .tc-su-progress__fill {
  background: var(--salmon);
  animation: none;
}
.tc-su-progress--error .tc-su-progress__brand,
.tc-su-progress--error .tc-su-progress__pct {
  color: var(--salmon-dark);
}
.tc-su-report {
  margin: 0.85rem 0 0;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(221, 95, 85, 0.28);
  background: rgba(221, 95, 85, 0.06);
}
.tc-su-report[hidden] { display: none !important; }
.tc-su-report__intro,
.tc-su-report__done {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
}
.tc-su-report__done { color: var(--brand-dark); }
.tc-su-report__preview {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
}
.tc-su-report__preview summary {
  cursor: pointer;
  color: var(--brand-dark);
  font-weight: 600;
  user-select: none;
}
.tc-su-report__subject {
  margin: 0.55rem 0 0.35rem;
  font-size: 0.84rem;
}
.tc-su-report__body {
  margin: 0;
  max-height: 16rem;
  overflow: auto;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}
.tc-su-report__hint {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
}
.tc-su-report__btn {
  width: 100%;
  max-width: 22rem;
}
.tc-su-progress__step {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
  min-height: 1.2em;
}
/* Live Safe Update row marks */
.tc-su-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(56, 128, 135, 0.12);
  color: var(--brand-dark);
  vertical-align: middle;
}
.tc-su-tick svg { display: block; }
.tc-row--su-ok { background: rgba(56, 128, 135, 0.04); }
.tc-row--su-skip .tc-su-update-cell { opacity: 0.9; }
.tc-tag--muted {
  background: var(--cool-soft);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
@media (prefers-reduced-motion: reduce) {
  .tc-su-progress__fill {
    animation: none !important;
    transition: width 0.2s linear;
  }
}
@media (max-width: 720px) {
  .tc-detail { grid-template-columns: 1fr; }
}

/* Screenshot thumb */
.tc-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  max-width: 280px;
  background: var(--cool-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.tc-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.tc-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.tc-thumb__placeholder {
  font-size: .85rem;
  color: var(--muted);
  font-weight: 600;
}
.tc-thumb__refresh {
  position: absolute;
  top: .45rem;
  right: .45rem;
  margin: 0;
}
.tc-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255,255,255,.55);
  color: var(--muted);
  opacity: .55;
  cursor: pointer;
  box-shadow: none;
  padding: 0;
  transition: opacity .15s ease, color .15s ease, background .15s ease;
}
.tc-icon-btn:hover {
  opacity: .9;
  background: rgba(255,255,255,.88);
  color: var(--brand-dark);
  border-color: var(--border);
}
.tc-icon-btn.is-spinning {
  opacity: .85;
  color: var(--brand);
  pointer-events: none;
}
.tc-icon-btn.is-spinning .tc-icon-btn__spin {
  animation: tc-spin 0.85s linear infinite;
}
@keyframes tc-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.tc-detail__shot {
  text-align: center;
  max-width: 280px;
}
.tc-detail__shot .tc-thumb {
  margin-left: auto;
  margin-right: auto;
}
.tc-thumb__meta, .tc-thumb__err {
  margin: .4rem 0 0;
  font-size: .8rem;
  text-align: center;
}

.tc-detail__links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .75rem 0 .15rem;
}
.tc-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem 1rem;
  margin-bottom: .35rem;
}
.tc-card__head h2 {
  margin: 0;
}
.tc-fleet-progress {
  margin: 0 0 1.15rem;
}
.tc-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.tc-dl {
  margin: 0;
  display: grid;
  gap: .45rem .5rem;
}
.tc-dl > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  column-gap: .5rem;
  align-items: baseline;
  font-size: .9rem;
}
.tc-dl dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding-top: 0;
  line-height: 1.4;
}
.tc-dl dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.4;
}
.tc-path-full {
  word-break: break-all;
  font-size: .82em;
}

.tc-form {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem .75rem;
  align-items: flex-end;
  margin-top: 1rem;
}
.tc-form--inline { margin-top: 1rem; }
.tc-field {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-width: 10rem;
}
.tc-field--grow { flex: 1; min-width: 12rem; }
.tc-field span {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
}
.tc-field input,
.tc-field select {
  font-family: var(--font-body);
  font-size: .9rem;
  padding: .45rem .6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  min-height: 2.15rem;
}
.tc-field input:focus,
.tc-field select:focus {
  outline: 2px solid rgba(56, 128, 135, .35);
  border-color: var(--brand);
}
.tc-btn--ghost {
  background: var(--bg);
  border-color: var(--border);
  color: var(--brand-dark) !important;
}
.tc-btn--ghost:hover {
  background: var(--cool-soft);
  border-color: var(--cool-mid);
}
.tc-inline-form { display: inline; margin: 0; }
button.tc-btn {
  cursor: pointer;
  font: inherit;
}
.tc-table--compact { font-size: .85rem; }
.tc-table--compact th,
.tc-table--compact td { padding: .45rem .4rem; }
.tc-table--compact tbody tr:hover td {
  background: transparent;
}
/* Clients tab — compact add + click-to-edit rows */
.tc-card__head h2 { margin: 0; }
.tc-card__sub { margin: .35rem 0 0; }
.tc-client-add {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .65rem .75rem;
  margin-top: 1rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: .35rem;
}
.tc-client-add .tc-field {
  min-width: 12rem;
  flex: 1 1 12rem;
  max-width: 18rem;
}
.tc-client-add .tc-field input {
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .45rem .65rem;
  min-height: 2.15rem;
  width: 100%;
  line-height: 1.35;
}
.tc-client-add .tc-field input:focus {
  outline: 2px solid rgba(56, 128, 135, .35);
  border-color: var(--brand);
}
.tc-client-add__btn {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand-dark);
  border: 1px solid var(--brand-dark);
  border-radius: 999px;
  padding: .4rem .9rem;
  cursor: pointer;
  line-height: 1.25;
  white-space: nowrap;
  min-height: 2.15rem;
}
.tc-client-add__btn:hover {
  background: var(--brand);
  border-color: var(--brand);
}

.tc-client-row { cursor: pointer; }
.tc-client-row:hover td { background: rgba(232, 238, 241, .45); }
.tc-client-row.is-editing { cursor: default; }
.tc-client-row.is-editing td { background: rgba(232, 238, 241, .35); }
.tc-client-row .tc-actions { cursor: default; white-space: nowrap; }
.tc-client-input {
  width: 100%;
  max-width: 16rem;
  font-family: inherit;
  font-size: .9rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .25rem .45rem;
  line-height: 1.35;
}
.tc-client-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(56, 128, 135, .2);
}
.tc-client-action {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 600;
  padding: .18rem .55rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
  border: 1px solid transparent;
  white-space: nowrap;
}
.tc-client-action--primary {
  color: var(--brand-dark);
  background: transparent;
  border-color: var(--border);
}
.tc-client-action--primary:hover {
  color: var(--brand);
  background: var(--cool-soft);
  border-color: var(--cool-mid);
}
.tc-client-action--ghost {
  color: var(--brand-dark);
  background: transparent;
  border-color: var(--border);
}
.tc-client-action--ghost:hover {
  background: var(--cool-soft);
}
.tc-client-update-form {
  display: none;
  align-items: center;
  gap: .35rem;
}
.tc-client-row.is-editing .tc-client-update-form {
  display: inline-flex;
}
.tc-client-row.is-editing .tc-client-remove {
  display: none;
}

/* Assign to client — same row rhythm as Product/Host (no extra top gap) */
.tc-assign {
  display: grid;
  grid-template-columns: 7rem max-content max-content max-content;
  column-gap: .5rem;
  align-items: baseline;
  justify-content: start;
  margin-top: .45rem; /* same as .tc-dl gap between rows */
}
.tc-assign__label {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
  margin: 0;
  padding: 0;
  line-height: 1.4;
}
.tc-assign__select {
  justify-self: start;
  max-width: 14rem;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  background-color: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  /* left pad 0 so text starts under Host value */
  padding: 0 1.75rem 0 0;
  min-height: 0;
  height: auto;
  line-height: 1.4;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c9499' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .2rem center;
  background-size: 12px;
}
.tc-assign__select:hover {
  border-bottom-color: var(--cool-mid);
}
.tc-assign__select:focus {
  outline: none;
  border-bottom-color: var(--brand);
}
.tc-assign__save {
  width: auto;
  max-width: max-content;
  justify-self: start;
  align-self: center;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand-dark);
  border: 1px solid var(--brand-dark);
  padding: .15rem .5rem;
  cursor: pointer;
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
}
.tc-assign__save:hover {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}
.tc-assign__link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--brand-dark) !important;
  white-space: nowrap;
}

.tc-mono {
  font-family: var(--font-mono);
  font-size: .84em;
  color: var(--text);
}
.tc-path {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tc-footer-note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}

/* —— Landing (logged out) —— */
.tc-landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
}
.tc-landing__hero {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 2.5rem 1.25rem;
}
.tc-landing__card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2.25rem 2rem;
  max-width: 26rem;
  text-align: center;
}
.tc-landing__card .tc-logo {
  height: 64px;
  width: auto;
  max-width: 100%;
  margin: 0 auto 1.35rem;
  display: block;
}

/* Login — compact, Command-like (no full-width empty pills) */
.sc-login-forms {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 17.5rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.15rem;
  text-align: left;
}
.sc-login-form {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}
.sc-login-form--center {
  align-items: center;
}
.sc-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  min-height: 2.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.25;
  border: 1px solid var(--border);
  background: var(--chip-bg);
  color: var(--ink);
  white-space: nowrap;
  text-align: center;
  margin: 0 auto;
}
.sc-login-btn:hover {
  border-color: var(--cool-mid);
  color: var(--brand-dark);
  background: var(--cool-soft);
}
button.tc-btn.sc-login-btn,
button.tc-btn--primary.sc-login-btn {
  width: auto;
  background: var(--chip-bg);
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: none;
}
.sc-login-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
  text-align: left;
}
.sc-login-input {
  width: 100%;
  margin: 0;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.3;
  box-sizing: border-box;
  display: block;
  text-align: left;
  background: var(--bg);
  color: var(--ink);
}
.sc-login-input::placeholder {
  color: var(--muted);
  opacity: 0.85;
}
.sc-login-details {
  margin: 0;
  text-align: center;
}
.sc-login-details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  list-style: none;
  padding: 0.25rem 0;
  display: inline-block;
}
.sc-login-details summary::-webkit-details-marker { display: none; }
.sc-login-details summary::before {
  content: "▸ ";
  color: var(--muted);
}
.sc-login-details[open] summary::before { content: "▾ "; }
.sc-login-details[open] .sc-login-form {
  margin-top: 0.75rem;
  text-align: left;
}
.tc-landing__card {
  max-width: 24rem;
  padding: 2.35rem 2rem 2.15rem;
  text-align: center;
}
.tc-landing__card h1 {
  margin: 0 0 0.75rem;
}
.tc-landing__card > p {
  margin: 0 auto;
  max-width: 20rem;
  line-height: 1.55;
}
.tc-landing__card h1 {
  margin: 0 0 .65rem;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.75rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.tc-landing__card p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}
.tc-chip {
  display: inline-block;
  margin-top: 1.35rem;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--brand-dark);
  border: 1px solid var(--border);
}
/* Wait / init chip on landing-style cards */
.tc-chip--init {
  background: var(--cool-soft);
  border-color: var(--cool-mid);
  color: var(--cool-ink);
}
.tc-landing__card .tc-mono {
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 640px) {
  .tc-header__inner { padding: .72rem 1rem; } /* vertical −15% from .85rem */
  .tc-logo { height: 44px; } /* ~38px + 15% */
  .tc-main { padding: 1.25rem 1rem 2.5rem; }
  .tc-card { padding: 1.15rem 1rem; }
  .tc-path { max-width: 8rem; }
}

/* Flash + status dots (Texo Dashboard) */
.tc-flash {
  margin: 0;
  padding: .7rem .9rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .9rem;
  text-align: left;
}
.tc-flash--ok {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid var(--cool-mid);
}
.tc-flash--err {
  background: rgba(221, 95, 85, .1);
  color: var(--salmon-dark);
  border: 1px solid rgba(221, 95, 85, .28);
}

.td-dot {
  display: inline-block;
  width: .78rem;
  height: .78rem;
  border-radius: 50%;
  vertical-align: middle;
  box-shadow: inset 0 0 0 1px rgba(4, 22, 21, .08);
}
.td-dot--ok { background: var(--ok); }
.td-dot--fail { background: var(--salmon); }
.td-dot--run { background: #e3b341; }
.td-dot--unknown { background: #c5d0d4; }

.td-stat {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0 0 1.15rem;
}
.td-stat__chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .35rem .75rem;
  box-shadow: var(--shadow);
}
.td-stat__chip strong { font-weight: 800; }
.td-row--active td { background: var(--cool-soft); }

.td-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .85rem;
  align-items: center;
  margin: 0 0 1rem;
}
.td-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.td-toolbar input[type="checkbox"] { accent-color: var(--brand); }
.td-fleet-status {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: .9rem;
}
.td-fleet-status--ok { color: var(--brand-dark); }
.td-fleet-status--err { color: var(--salmon-dark); }

.td-fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: .9rem;
}
.td-fleet-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.td-fleet-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1rem 1rem .9rem;
  position: relative;
  overflow: hidden;
}
.td-fleet-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: #c5d0d4;
}
.td-fleet-card--ok::before { background: var(--ok); }
.td-fleet-card--warn::before { background: #e3b341; }
.td-fleet-card--critical::before { background: var(--salmon); }
.td-fleet-card--ok { border-color: #cde8d8; }
.td-fleet-card--warn { border-color: #f0dd9a; }
.td-fleet-card--critical { border-color: #f0c4c0; }

.td-fleet-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .75rem;
}
.td-fleet-card h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: .65rem;
}
.td-fleet-name {
  color: inherit !important;
  text-decoration: none !important;
  font: inherit;
}
.td-fleet-name:hover { color: inherit !important; }
.td-fleet-load {
  font-family: var(--font-mono);
  font-size: .92rem;
  font-weight: 700;
  color: var(--muted);
}
.td-fleet-load.ok { color: var(--ok); }
.td-fleet-load.warn { color: #b8860b; }
.td-fleet-load.critical { color: var(--salmon-dark); }
.td-fleet-sub {
  margin-top: .3rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  color: var(--muted);
  font-size: .78rem;
}
.td-fleet-badge {
  display: inline-block;
  padding: .12rem .5rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: var(--chip-bg);
  color: var(--cool-ink);
}
.td-fleet-badge--wpmax { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--cool-mid); }
.td-fleet-badge--dedicated { background: var(--cool-soft); color: var(--cool-ink); }
.td-fleet-badge--infra { background: #f4f1ea; color: #7a5a2a; border-color: #e6dcc8; }

.td-fleet-sev {
  flex-shrink: 0;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .28rem .5rem;
  border-radius: 8px;
}
.td-fleet-sev--ok { color: var(--brand-dark); background: var(--brand-soft); }
.td-fleet-sev--warn { color: #8a6508; background: #f8efd0; }
.td-fleet-sev--critical { color: var(--salmon-dark); background: rgba(221, 95, 85, .12); }
.td-fleet-sev--unknown { color: var(--muted); background: var(--chip-bg); }

.td-fleet-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.td-fleet-metrics--rich { grid-template-columns: 1fr 1fr 1fr; }
.td-fleet-metric {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .55rem .65rem;
  background: var(--bg-alt);
}
.td-fleet-metric__label {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .15rem;
}
.td-fleet-metric__value {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.td-fleet-metric__value--svc { font-size: .88rem; }
.td-fleet-metric__value--disk { font-size: .82rem; font-weight: 600; }
.td-fleet-disk-mount {
  display: block;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
}
.td-fleet-disk-data {
  display: block;
  margin-bottom: .35rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
}
.td-fleet-disk-data:last-child { margin-bottom: 0; }
.td-fleet-metric__hint { color: var(--muted); font-size: .72rem; margin-top: .15rem; }
.td-fleet-metric.ok .td-fleet-metric__value { color: var(--ok); }
.td-fleet-metric.warn .td-fleet-metric__value { color: #b8860b; }
.td-fleet-metric.critical .td-fleet-metric__value { color: var(--salmon-dark); }

.td-fleet-reasons {
  margin: .75rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .8rem;
}
.td-fleet-reasons li { padding: .15rem 0 .15rem .85rem; position: relative; }
.td-fleet-reasons li::before {
  content: "•";
  position: absolute;
  left: .15rem;
  color: var(--muted);
}
.td-fleet-card--critical .td-fleet-reasons li,
.td-fleet-card--warn .td-fleet-reasons li:first-child { color: var(--ink); }

.td-fleet-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .65rem;
  margin-top: .85rem;
  padding-top: .7rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .td-fleet-metrics--rich { grid-template-columns: 1fr 1fr; }
}
