/* TexoCommand — same visual language as the WHMCS client area.
 * Tokens, type, pills, and header chrome match templates/texo/css/custom.css.
 */
:root {
  --tx-bg: #ffffff;
  --tx-bg-alt: #f6f6f2;
  --tx-border: #dde9e7;
  --tx-chip-bg: #eef4f2;
  --tx-ink: #163a3f;
  --tx-text: #45585c;
  --tx-muted: #7c9499;
  --tx-brand: #388087;
  --tx-brand-dark: #2c666b;
  --tx-brand-soft: #c2edce;
  --tx-tint-teal: #6fb3b8;
  --tx-tint-blue: #badfe7;
  --tx-salmon: #ec7c63;
  --tx-salmon-dark: #d9684f;
  --tx-salmon-red: #dd5f55;
  --tx-radius: 10px;
  --tx-radius-lg: 18px;
  --tx-shadow: 0 1px 2px rgba(4, 22, 21, .04), 0 8px 24px rgba(4, 22, 21, .06);
  --tx-font-title: "Merriweather", Georgia, "Times New Roman", serif;
  --tx-font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tx-font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --tx-toolbar-pill-padding: 5px 14px;
  --tx-toolbar-pill-font-size: .9em;
  --tx-toolbar-pill-line-height: 1.2;
  --tx-toolbar-pill-min-height: 34px;

  /* Legacy aliases used by remaining Command rules */
  --bg: var(--tx-bg);
  --bg-alt: var(--tx-bg-alt);
  --ink: var(--tx-ink);
  --text: var(--tx-text);
  --muted: var(--tx-muted);
  --brand: var(--tx-brand);
  --brand-dark: var(--tx-brand-dark);
  --brand-soft: #e2eef0;
  --tint-teal: var(--tx-tint-teal);
  --cool-soft: #e8eef1;
  --cool-mid: #d5e0e6;
  --cool-ink: #3d5a63;
  --chip-bg: var(--tx-chip-bg);
  --border: var(--tx-border);
  --salmon: var(--tx-salmon);
  --salmon-dark: var(--tx-salmon-dark);
  --font-title: var(--tx-font-title);
  --font-head: var(--tx-font-body);
  --font-body: var(--tx-font-body);
  --font-mono: var(--tx-font-mono);
  --radius: var(--tx-radius);
  --radius-lg: var(--tx-radius-lg);
  --shadow: var(--tx-shadow);
  --maxw: 1180px;
}

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

html { font-size: 16px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--tx-bg-alt);
  color: var(--tx-text);
  font-family: var(--tx-font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2 {
  font-family: var(--tx-font-title);
  font-weight: 900;
  line-height: 1.14;
  color: var(--tx-ink);
}

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

.tc-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--tx-bg-alt);
}

/* —— WHMCS-matching header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--tx-border);
}
.tx-header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: var(--maxw);
  margin-inline: auto;
  min-height: 74px;
  padding-block: 1rem;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  box-sizing: border-box;
}
.tx-brand {
  display: inline-flex;
  align-items: center;
  height: 42px;
  flex: 0 0 auto;
}
.tx-brand .logo {
  --ink: var(--tx-ink);
  --brand: var(--tx-brand);
  --tint-teal: var(--tx-tint-teal);
  --salmon: var(--tx-salmon);
  height: 42px;
  width: auto;
  display: block;
}
.tx-header-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  margin-left: auto;
  min-width: 0;
  flex: 1 1 auto;
}
.tx-nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tx-nav-link {
  font-weight: 500;
  font-size: 1rem;
  color: var(--tx-ink);
  white-space: nowrap;
}
.tx-nav-link:hover,
.tx-nav-link.is-active {
  color: var(--tx-brand-dark);
}
.tx-header-actions {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  flex: 0 0 auto;
}
.tx-pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .35rem .9rem;
  border: 1px solid transparent;
  border-radius: var(--tx-radius);
  font-family: var(--tx-font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none !important;
  white-space: nowrap;
}
.tx-pill-link--salmon {
  background: var(--tx-salmon);
  border-color: var(--tx-salmon);
  color: #fff !important;
}
.tx-pill-link--salmon:hover {
  background: var(--tx-salmon-dark);
  border-color: var(--tx-salmon-dark);
}
.tx-pill-link--salmon-dark {
  background: var(--tx-salmon-dark);
  border-color: var(--tx-salmon-dark);
  color: #fff !important;
}
.tx-pill-link--salmon-dark:hover {
  background: #b84f38;
  border-color: #b84f38;
}
.tx-pill-link--blue {
  background: var(--tx-brand);
  border-color: var(--tx-brand);
  color: #fff !important;
}
.tx-pill-link--blue:hover {
  background: var(--tx-brand-dark);
  border-color: var(--tx-brand-dark);
}
.tx-header-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .35rem .9rem;
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius);
  background: #fff;
  font-size: 1rem;
  font-weight: 500;
  color: var(--tx-muted) !important;
  white-space: nowrap;
}
.tx-header-logout-btn:hover {
  border-color: var(--tx-salmon);
  background: var(--tx-salmon);
  color: #fff !important;
}
.tx-account-band {
  background: var(--tx-bg-alt);
  padding: .65rem clamp(1.25rem, 4vw, 2.5rem) 0;
}
.tx-account-card {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  padding: .55rem 1rem;
  background: #fff;
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius-lg);
}
.tx-account-identity {
  margin: 0;
  color: var(--tx-text);
  font-size: .95rem;
}
.tx-account-identity strong { color: var(--tx-ink); font-weight: 600; }
.tx-account-deactivate {
  border: 0;
  background: none;
  color: var(--tx-salmon-red);
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  padding: .2rem .15rem;
}
.tx-account-deactivate:hover { text-decoration: underline; }
.tx-page-title {
  max-width: var(--maxw);
  margin: .35rem auto .15rem;
  padding: calc(.4rem + 15px) clamp(1.25rem, 4vw, 2.5rem) 0;
  text-align: center;
}
.tx-beta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 .5rem;
  padding: .2rem .58rem .18rem;
  border-radius: 999px;
  background: #c8ced1;
  color: #5a6468;
  font-family: var(--tx-font-body);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  line-height: 1;
}
.tx-page-title h1 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  color: var(--tx-salmon-red);
  text-align: center;
}
.tx-page-identity {
  margin: .4rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 400;
  text-align: center;
}
@media (max-width: 900px) {
  .tx-header-nav { flex-wrap: wrap; gap: 1rem; }
  .tx-header-end { flex-wrap: wrap; justify-content: flex-start; margin-left: 0; width: 100%; }
  .tx-nav-links { flex-wrap: wrap; gap: .85rem 1.2rem; }
}

/* —— Main —— */
.tc-main {
  flex: 1;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
}
.tc-lead {
  margin: 0 0 1.25rem;
  color: var(--text);
  /* signed-in line now lives in the header */
  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;
  overflow: hidden; /* clip radius only — table must fit without horizontal scroll */
}
.tc-card h2 {
  margin: 0;
  font-family: var(--tx-font-title);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--tx-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: hidden; /* never require horizontal scroll */
  max-width: 100%;
  margin-top: 1.1rem;
  box-sizing: border-box;
}
.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-domain__label {
  display: inline-block;
  line-height: 1.3;
}

.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, hard errors (EOL PHP uses mustard flag below) */
.tc-tag--updates,
.tc-tag--alert {
  background: var(--salmon);
  color: #fff;
  border-color: transparent;
  font-variant-numeric: tabular-nums;
}
/* PHP aging / EOL — mustard warning triangle + mono version */
.tc-php-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  vertical-align: middle;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tc-php-flag__icon {
  flex: 0 0 auto;
  display: block;
  /* mustard / amber warning */
  color: #c9a227;
}
.tc-php-flag--eol .tc-php-flag__icon {
  color: #b8860b; /* darker mustard for hard EOL */
}
.tc-php-flag__ver {
  font-family: var(--font-mono);
  font-size: inherit;
  font-weight: 700;
  color: #8a7018;
}
.tc-php-flag--eol .tc-php-flag__ver {
  color: #6e5810;
}
/* 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:not(.tc-row--core):not(.tc-row--theme) td {
  background: #fff;
}
/* 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 = same chip as the unexpanded Updates count */
.tc-table--compact tbody tr.tc-row--attention .tc-tag--updates,
.tc-table--compact .tc-su-update-cell .tc-tag--updates {
  display: inline-block;
  background: var(--salmon);
  border: 0;
  color: #fff;
  padding: .22rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .04em;
  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;
  vertical-align: middle;
  box-sizing: border-box;
}
.tc-actions__row {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: .28rem;
  align-items: center;
  justify-content: flex-end;
}
.tc-wp-sso-form {
  display: inline;
  margin: 0;
}
.tc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-family: var(--tx-font-body);
  font-weight: 600;
  font-size: var(--tx-toolbar-pill-font-size);
  padding: var(--tx-toolbar-pill-padding);
  min-height: var(--tx-toolbar-pill-min-height);
  height: auto;
  border-radius: var(--tx-radius);
  border: 1px solid transparent;
  text-decoration: none !important;
  line-height: var(--tx-toolbar-pill-line-height);
  white-space: nowrap;
  vertical-align: middle;
}
/* Full labels: View Website · cPanel · Login to WP — never shrink/clip */
.tc-actions .tc-btn,
.tc-actions .tc-btn--ghost,
.tc-actions .tc-btn--login,
.tc-actions .tc-btn--init {
  flex: 0 0 auto;
  flex-shrink: 0;
  min-width: max-content;
  height: auto;
  min-height: var(--tx-toolbar-pill-min-height);
  padding: var(--tx-toolbar-pill-padding);
  font-size: var(--tx-toolbar-pill-font-size);
  font-weight: 600;
}
.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;
}
/* Safe Update — Texo salmon (important action; sparse warm accent) */
.tc-btn--salmon {
  background: var(--salmon);
  border-color: var(--salmon);
  color: #fff !important;
}
.tc-btn--salmon:hover {
  background: var(--salmon-dark);
  border-color: var(--salmon-dark);
  color: #fff !important;
}
@keyframes tc-next-pulse {
  0%, 100% {
    background: var(--tx-salmon-dark);
    border-color: var(--tx-salmon-dark);
    color: #fff !important;
    box-shadow: 0 0 0 0 rgba(217, 104, 79, 0.55);
  }
  50% {
    background: var(--tx-salmon);
    border-color: var(--tx-salmon);
    color: #fff !important;
    box-shadow: 0 0 0 7px transparent;
  }
}
.tc-btn--next-pulse,
.tc-btn[data-next-step] {
  animation: tc-next-pulse 1.5s ease-in-out infinite;
}
.tc-btn--salmon-dark {
  background: var(--tx-salmon-dark);
  border-color: var(--tx-salmon-dark);
  color: #fff !important;
}
.tc-btn--salmon-dark:hover {
  background: #b84f38;
  border-color: #b84f38;
  color: #fff !important;
}
.tc-btn--php-wait,
.tc-btn--php-wait:disabled {
  background: #9aa8ac;
  border-color: #9aa8ac;
  color: #fff !important;
  opacity: 1;
  cursor: default;
}
.tc-btn--teal {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff !important;
}
.tc-btn--teal: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 {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  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);
}
.tc-init-banner__icon {
  flex: 0 0 auto;
  margin-top: 0.12rem;
  color: #c9a227;
}

/* —— Tabs as WHMCS filter pills —— */
.tc-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 1.15rem;
  padding: .75rem .9rem;
  background: #fff;
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius-lg);
  box-shadow: var(--tx-shadow);
}
.tc-tabs__save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  font-family: var(--tx-font-body);
  font-weight: 500;
  font-size: var(--tx-toolbar-pill-font-size);
  color: var(--tx-text);
  padding: var(--tx-toolbar-pill-padding);
  min-height: var(--tx-toolbar-pill-min-height);
  border: 1px solid transparent;
  border-radius: var(--tx-radius);
  background: var(--tx-chip-bg);
  cursor: pointer;
  line-height: var(--tx-toolbar-pill-line-height);
}
.tc-tabs__save:hover {
  background: var(--tx-tint-blue);
  color: var(--tx-brand-dark);
}
.tc-tabs__save.is-dirty,
.tc-tabs__save.is-dirty:hover {
  animation: tc-next-pulse 1.5s ease-in-out infinite;
  font-weight: 600;
  color: #fff !important;
}
.tc-tabs__tab[hidden] { display: none !important; }
.tc-tabs__tab {
  display: inline-flex;
  align-items: center;
  font-family: var(--tx-font-body);
  font-weight: 500;
  font-size: var(--tx-toolbar-pill-font-size);
  color: var(--tx-text) !important;
  padding: var(--tx-toolbar-pill-padding);
  min-height: var(--tx-toolbar-pill-min-height);
  border: 1px solid transparent;
  border-radius: var(--tx-radius);
  background: var(--tx-chip-bg);
  margin: 0;
}
.tc-tabs__tab:hover { background: var(--tx-tint-blue); color: var(--tx-brand-dark) !important; }
.tc-tabs__tab.is-active {
  background: var(--tx-salmon);
  border-color: var(--tx-salmon);
  color: #fff !important;
  font-weight: 600;
}

/* —— Toasts (fixed; SuperCache-dashboard style, cool palette) —— */
html, body.tc-app {
  overflow-anchor: none;
}
.tc-toaster {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 25vh;
  gap: .55rem;
  width: auto;
  pointer-events: none;
  overflow-anchor: none;
}
.tc-toaster .tc-toast {
  width: min(22rem, calc(100vw - 2rem));
}
.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: 3rem; padding-right: .25rem !important; vertical-align: middle; }
.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); }
.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;
  vertical-align: middle;
}
.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;
}

/*
 * Expanded site: mid cool wash — darker than --bg-alt (#f4f6f7),
 * still light-mode (dark text, normal buttons). Not deep teal.
 *
 * White gap = spacer <tr class="tc-expand-gap"> (not thick cell borders).
 * Thick borders made border-radius sit on the gap so the gray looked square.
 */
:root {
  --tc-expand-bg: #e4ecee;       /* detail body wash */
  --tc-expand-bg-head: #d5dfe2;  /* domain strip — slightly darker than body */
  --tc-expand-gap: 40px;
  --tc-expand-head-top: 1.15rem;
  --tc-expand-head-bot: 1.15rem;
  --tc-expand-detail-top: 0.75rem;  /* less empty air under domain strip */
  --tc-expand-detail-bot: 0.75rem;
  --tc-expand-pad-x: 1.15rem;
  --tc-expand-radius: 14px;
}
.tc-table--sites {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 0;
  table-layout: fixed; /* fit card — no horizontal scroll */
}
.tc-table--sites thead th {
  border-bottom: 1px solid var(--border);
}
/*
 * Rem column budget (not %): leftover width must live in a real column.
 * With a Client column, Client absorbs it. Without one (no clients yet),
 * Domain absorbs it — otherwise unused table width sits as a white notch
 * after Login to WP and the open header strip is shorter than the detail body.
 * Actions stays only as wide as the three full-label buttons.
 */
.tc-table--sites .tc-col-expand { width: 3rem; }
.tc-table--sites .tc-col-domain { width: auto; min-width: 10rem; } /* leftover when no Client */
.tc-table--sites.tc-table--sites-has-client .tc-col-domain { width: 13.25rem; min-width: 0; }
.tc-table--sites.tc-table--sites-has-client .tc-col-client { width: auto; } /* leftover when Client is shown */
.tc-table--sites .tc-col-wp { width: 2.85rem; }
.tc-table--sites .tc-col-php { width: 3.6rem; }
.tc-table--sites .tc-col-plugins { width: 3.75rem; min-width: 3.5rem; }
.tc-table--sites .tc-col-updates { width: 3.75rem; min-width: 3.5rem; }
.tc-table--sites th.tc-col-actions,
.tc-table--sites td.tc-actions {
  width: 18.75rem; /* View Website + cPanel + Login to WP */
  white-space: nowrap;
  padding-left: 0.4rem !important;
  padding-right: 0.3rem !important;
  overflow: visible;
  vertical-align: middle;
}
.tc-table--sites td.tc-domain {
  overflow: hidden;
}
.tc-table--sites td.tc-domain .tc-domain__label {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  box-sizing: border-box;
}
.tc-table--sites td.tc-col-client {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tc-table--sites td.tc-col-plugins,
.tc-table--sites td.tc-col-updates {
  text-align: center;
  overflow: hidden;
}
/* White margin above/below the expanded gray card */
.tc-table--sites .tc-expand-gap > td {
  height: var(--tc-expand-gap);
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  line-height: 0;
  font-size: 0;
}
/* First enrolled site open: small air under thead hairline (not the full mid-list gap) */
.tc-table--sites .tc-expand-gap--first > td {
  height: 0.65rem;
}
/*
 * Neighbor separators stay visible when a middle site is expanded:
 *  - row ABOVE keeps its normal border-bottom (do not strip it for expand-gap)
 *  - row BELOW gets a top hairline after the bottom white gap
 * Open gray card itself stays borderless so radius/wash stay clean.
 */
.tc-table--sites tr.tc-expand-gap + .tc-site-row.is-open td {
  border-top: none;
}
/* Line above the closed site that follows an expanded card */
.tc-table--sites tr.tc-expand-gap + .tc-site-row:not(.is-open) td {
  border-top: 1px solid var(--border);
}
/*
 * Expanded gray card — no thick borders so corner radius actually shows.
 */
.tc-site-row.is-open td,
.tc-site-row.is-open:hover td {
  background-color: var(--tc-expand-bg-head) !important;
  background-image: none !important;
  border-top: none;
  border-bottom: none;
  padding-top: var(--tc-expand-head-top) !important;
  padding-bottom: var(--tc-expand-head-bot) !important;
  padding-left: 0.55rem !important;
  padding-right: 0.55rem !important;
  vertical-align: middle;
}
.tc-site-row.is-open td:first-child {
  padding-left: var(--tc-expand-pad-x) !important;
  padding-right: 0.95rem !important;
  width: 2.85rem;
  border-top-left-radius: var(--tc-expand-radius);
}
.tc-site-row.is-open td:last-child {
  border-top-right-radius: var(--tc-expand-radius);
  overflow: visible;
}
/* Detail body keeps full side pad; open header actions use tighter pad above */
.tc-site-row.is-open td.tc-col-domain {
  width: auto;
  padding-left: 1.15rem !important;
}
.tc-table--sites .tc-site-row.is-open td.tc-actions {
  overflow: visible;
  width: 21rem;
  padding-left: 0.4rem !important;
  padding-right: 0.3rem !important;
  background-color: var(--tc-expand-bg-head) !important;
}
/* Row is wider than the column, so td padding never moved Login. Pin the
   group to the cell and inset from the card edge on the row itself. */
.tc-table--sites .tc-site-row.is-open .tc-actions__row {
  display: flex;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  justify-content: flex-end;
  padding-right: 20px;
}
.tc-site-row.is-open .tc-expand-btn {
  width: 2.1rem;
  height: 2.1rem;
  background: var(--tc-expand-bg-head);
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--brand-dark);
}
.tc-site-row.is-open .tc-chevron {
  width: 0.58rem;
  height: 0.58rem;
  border-right-width: 2.4px;
  border-bottom-width: 2.4px;
}
.tc-site-row.is-open .tc-domain__label {
  background: var(--brand-dark);
  color: #fff;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 1rem;
  padding: 0.32rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--brand-dark);
  box-shadow: none;
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tc-site-row.is-open .tc-actions .tc-btn {
  min-height: 1.85rem;
  padding-top: 0.22rem;
  padding-bottom: 0.22rem;
  flex-shrink: 0;
}
/* Client names in overview — keep one line so open-row height stays even */
.tc-table--sites .tc-site-row td.tc-col-client {
  max-width: 7.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-detail-row > td {
  background-color: var(--tc-expand-bg) !important;
  background-image: none !important;
  border-top: none !important;
  border-bottom: none !important;
  padding: var(--tc-expand-detail-top) var(--tc-expand-pad-x) var(--tc-expand-detail-bot) !important;
  border-bottom-left-radius: var(--tc-expand-radius);
  border-bottom-right-radius: var(--tc-expand-radius);
  overflow: hidden;
  /* Prevent plugin inventory table min-width from expanding the whole sites table
     (was pushing All/Updates + Login off the right edge of the card). */
  width: 100%;
  max-width: 0;
}
.tc-table--sites .tc-site-row.is-open + .tc-detail-row > td {
  border-top: none;
}
.tc-detail-stage,
.tc-detail-track,
.tc-detail-pane--main,
.tc-detail {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.tc-detail__plugins,
.tc-detail__php {
  max-width: 100%;
  min-width: 0;
}
.tc-detail__plugins .tc-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}
.tc-detail__plugins .tc-table--compact th:first-child,
.tc-detail__plugins .tc-table--compact td:first-child {
  padding-left: calc(.4rem + 5px);
}
/* Sliding detail / notes stage
   Absolute notes pane so a 200%-wide flex track cannot inflate table min-width
   (that was squeezing the overview Actions column into two button rows). */
.tc-detail-stage {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}
.tc-detail-track {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.tc-detail-pane {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}
.tc-detail-pane--main {
  position: relative;
  width: 100%;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  transform: translateX(0);
}
.tc-detail-pane--notes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 0.35rem 0 0.2rem;
  box-sizing: border-box;
  /* Transparent shell — only the textarea is white (avoids a white slab peeks) */
  background: transparent;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.38s;
  will-change: transform;
  transform: translateX(100%);
  pointer-events: none;
  /* Fully hide when closed — overflow:hidden on table cells can fail to clip */
  visibility: hidden;
  z-index: 0;
}
.tc-detail-stage.is-notes .tc-detail-pane--main {
  transform: translateX(-100%);
  pointer-events: none;
}
.tc-detail-stage.is-notes .tc-detail-pane--notes {
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
  z-index: 3;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
}
.tc-notes {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 0.15rem 0.1rem 0.25rem;
  max-width: 100%;
  min-width: 0;
  background: transparent;
}
.tc-notes__head {
  display: flex;
  align-items: center;
  margin: 0 0 0.75rem;
  padding-right: 0.15rem;
}
.tc-notes__title {
  margin: 0 !important;
}
.tc-notes__form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 0.75rem;
}
.tc-notes__textarea {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-height: 12rem;
  box-sizing: border-box;
  resize: none;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body, inherit);
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: var(--shadow);
  /* Inset ring — outer outline was clipped by .tc-detail-stage overflow */
  outline: none;
}
.tc-notes__textarea:focus,
.tc-notes__textarea:focus-visible {
  border-color: var(--brand);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--brand);
  outline: none;
}
.tc-notes__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  flex: 0 0 auto;
}
.tc-notes-open {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  margin: 0;
  border: 1px solid #b7c6ca;
  border-radius: var(--tx-radius);
  background: #fff;
  color: var(--brand-dark);
  cursor: pointer;
  box-sizing: border-box;
}
.tc-notes-open:hover,
.tc-notes-open:focus {
  background: #fff;
  border-color: var(--brand);
  color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(26, 107, 122, 0.18);
}
.tc-notes-open.has-notes::after {
  content: "";
  position: absolute;
  top: 0.22rem;
  right: 0.22rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--salmon, #ec7c63);
}

.tc-detail {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 0.75rem 1.25rem; /* tighter so less empty air under thumb / above PHP */
  align-items: start;
  padding-top: 0;
  padding-bottom: 0;
}
/* Client panel: slightly lighter than expand wash so it still reads as a card */
.tc-detail .tc-assign-panel {
  background: #f3f7f8;
  border-color: #c5d5d9;
}
/* Top-right of expanded card: Notes / Refresh / Remove stacked */
.tc-detail__toolbar {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4; /* above closed notes pane */
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  background: transparent;
  box-shadow: none;
}
.tc-detail__toolbar .tc-inline-form {
  display: flex;
  margin: 0;
}
.tc-site-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  min-height: 2.1rem;
  height: 2.1rem;
  padding: 0;
  margin: 0;
  border: 1px solid #b7c6ca;
  border-radius: var(--tx-radius);
  background: #fff;
  color: var(--brand-dark);
  cursor: pointer;
  box-sizing: border-box;
}
.tc-site-refresh:hover,
.tc-site-refresh:focus {
  background: #fff;
  border-color: var(--brand);
  color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(26, 107, 122, 0.18);
}
.tc-site-refresh.is-spinning {
  pointer-events: none;
  color: var(--brand);
  opacity: .85;
}
.tc-site-refresh.is-spinning .tc-icon-btn__spin {
  animation: tc-spin 0.85s linear infinite;
}
.tc-remove-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  min-width: 2.1rem;
  min-height: 2.1rem;
  height: 2.1rem;
  padding: 0;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
  font: inherit;
  font-weight: 700;
  border: 1px solid #b7c6ca;
  border-radius: var(--tx-radius);
  background: #fff;
  color: var(--brand-dark);
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: none;
}
.tc-remove-chip:hover,
.tc-remove-chip:focus {
  background: #fff;
  border-color: var(--brand);
  color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(26, 107, 122, 0.18);
}
.tc-remove-chip__mark {
  font-size: 1.35em;
  font-weight: 800;
  line-height: 1;
  color: inherit;
  transform: translateY(-0.02em);
}
.tc-detail__plugins {
  grid-column: 1 / -1;
}
/* PHP runtime — above WordPress and Plugins; separate from Safe Update */
.tc-detail__php {
  grid-column: 1 / -1;
  margin: 0.7rem 0 0.55rem; /* was large empty bands above/below */
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  border-top: 1px solid rgba(4, 22, 21, 0.12);
  border-bottom: 1px solid rgba(4, 22, 21, 0.12);
}
.tc-detail__php .tc-section-head {
  margin-bottom: 0;
  align-items: center;
}
.tc-detail__php > .tc-su-progress {
  margin-top: 25px;
}
.tc-detail__php > .tc-php-result {
  margin-top: 10px;
}
.tc-php-result {
  position: relative;
  margin: 10px 0 0;
  padding: 1rem 2.4rem 0.95rem 1.1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.tc-php-result__close {
  position: absolute;
  top: 0.55rem;
  right: 0.6rem;
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.tc-php-result__close:hover,
.tc-php-result__close:focus {
  color: var(--ink);
  outline: none;
}
.tc-php-result__brand {
  display: block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 0.25rem;
}
.tc-php-result__message {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
.tc-php-result__next {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
.tc-php-result__action {
  margin: 0.75rem 0 0;
}
.tc-php-result .tc-su-report {
  margin-top: 0.85rem;
}
.tc-php-result--error {
  border-color: rgba(221, 95, 85, 0.35);
}
.tc-php-result--error .tc-php-result__brand {
  color: var(--salmon-dark);
}
.tc-php-result--ok .tc-php-result__brand {
  color: var(--brand-dark);
}
.tc-php-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
  min-width: 0;
}
.tc-php-head .tc-section-title {
  flex: 0 0 auto;
}
.tc-php-launch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}
.tc-php-launch [hidden],
.tc-php-pick[hidden],
.tc-php-upgrade-panel[hidden] {
  display: none !important;
}
.tc-php-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid #b7c6ca;
  border-radius: var(--tx-radius);
  background: #fff;
  color: var(--brand-dark);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.tc-php-close:hover,
.tc-php-close:focus {
  border-color: var(--brand);
  color: var(--brand);
  outline: none;
}
.tc-php-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}
.tc-php-pick__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}
.tc-seg--php {
  flex: 0 0 auto;
}
.tc-seg--php .tc-inline-form {
  display: inline-flex;
  margin: 0;
}
.tc-seg--php .tc-seg__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}
.tc-php-rec {
  display: inline-flex;
  align-items: center;
  color: var(--tint-teal);
  line-height: 1;
}
.tc-php-rec svg {
  display: block;
}
.tc-php-blockers {
  margin: 0.75rem 0 0;
  padding: 0.75rem 0.9rem;
  background: #fff;
  border: 1px solid #e2b8b3;
  border-radius: 10px;
}
.tc-su-progress__message .tc-spu-next {
  color: var(--salmon);
  font-weight: 700;
}
.tc-php-next {
  margin: 0.7rem 0 0;
}
.tc-php-blockers__intro {
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.tc-php-blockers__off {
  margin: 0.55rem 0 0;
}
.tc-php-blockers__list,
.tc-php-blockers-live {
  margin: 0;
  padding-left: 1.1rem;
}
.tc-php-blockers__list li,
.tc-php-blockers-live li {
  margin: 0.35rem 0;
}
.tc-php-blockers__list .tc-inline-form {
  display: inline-flex;
  margin-left: 0.5rem;
}
.tc-row--php-block td {
  background: #fde8e4;
}
.tc-table--compact tbody tr.tc-row--inactive td {
  background: #cfd8db;
  color: #3d4a4d;
}
.tc-table--compact tbody tr.tc-row--inactive.tc-row--php-block td {
  background: #e8cfcb;
}
.tc-row--inactive-actions td {
  background: #cfd8db;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
.tc-php-upgrade-panel {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.tc-php-upgrade-panel .tc-php-pick {
  justify-content: flex-start;
}
.tc-plugin-actions .tc-btn {
  min-height: 1.7rem;
  padding: 0.15rem 0.55rem;
  font-size: 0.78rem;
}
.tc-php-panel__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
}
.tc-php-panel__note {
  margin: 0;
}
.tc-php-panel__label {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
/* Same metrics for Current and Recommended version numbers.
   Do not use .tc-mono here — it sets font-size: .84em later in the file. */
.tc-php-panel__line .tc-php-panel__ver {
  display: inline;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: inherit;
}
.tc-php-panel__line .tc-php-flag .tc-php-panel__ver {
  color: #8a7018;
}
.tc-php-panel__line .tc-php-flag--eol .tc-php-panel__ver {
  color: #6e5810;
}
.tc-php-panel__line .tc-tag--updates {
  display: inline-block;
  vertical-align: middle;
  background: var(--salmon);
  border: 0;
  color: #fff;
  padding: .22rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tc-php-panel__sep {
  margin: 0 0.1rem;
  user-select: none;
}
.tc-php-panel__note {
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--ink);
}
.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;
}
/* One-pill slider: All | Updates (sites list + plugin table) */
.tc-seg {
  display: inline-flex;
  align-items: stretch;
  flex-wrap: nowrap;
  padding: 2px;
  border-radius: 999px;
  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.8rem;
  border-radius: 999px;
  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;
}
/* Expand wash (#e4ecee) matches --cool-soft — darker track so the slider reads */
.tc-detail .tc-seg {
  background: #c5d2d6;
  border-color: transparent;
}
.tc-detail__plugins .tc-table--compact {
  border-collapse: separate;
  border-spacing: 0;
}
.tc-detail__plugins .tc-table--compact tbody tr:not(.tc-row--core):not(.tc-row--theme):not(.tc-row--inactive):not(.tc-row--inactive-actions):not(.tc-row--filter-empty) td {
  background: #d4e6e8;
}
.tc-detail__plugins .tc-table--compact tbody tr.tc-row--core td {
  background: #9cc8cc;
  font-weight: 500;
}
.tc-detail__plugins .tc-table--compact tbody tr.tc-row--theme td {
  background: #c5dce0;
}
.tc-row--core .tc-mono {
  font-weight: 600;
}
.tc-detail__plugins .tc-table--compact tbody tr.tc-row--list-start td:first-child {
  border-top-left-radius: 10px;
}
.tc-detail__plugins .tc-table--compact tbody tr.tc-row--list-start td:last-child {
  border-top-right-radius: 10px;
}
.tc-detail__plugins .tc-table--compact tbody tr.tc-row--list-end td:first-child {
  border-bottom-left-radius: 10px;
}
.tc-detail__plugins .tc-table--compact tbody tr.tc-row--list-end td:last-child {
  border-bottom-right-radius: 10px;
}
.tc-detail__plugins .tc-table--compact tbody tr.tc-row--list-end td {
  border-bottom: 0;
}
.tc-php-blockers__all {
  margin: 0.65rem 0 0;
}
.tc-php-blockers > .tc-su-progress {
  margin: 10px 0 0;
}
.tc-progress-row td {
  padding: 10px 0 14px;
  background: transparent;
  border: 0;
}
.tc-su-progress.is-visible {
  position: sticky;
  top: 12px;
  z-index: 8;
}

/* —— 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--wait {
  background: rgba(56, 128, 135, 0.14);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}
.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;
  margin-top: 10px;
}
.tc-detail__meta {
  margin: 20px 0 0 10px;
  padding-right: 3rem; /* room for the Notes / Refresh / Remove icon stack */
}
.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-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-card__head--sites {
  justify-content: center;
  gap: 0.65rem 0.85rem;
}
.tc-card__head--sites h2 {
  width: auto;
  text-align: center;
}
.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: .99rem;
}
.tc-dl > div[data-assign-view],
.tc-assign--picker > div {
  align-items: baseline;
}
.tc-dl dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: .858rem;
  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-dl__k {
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .858rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.tc-dl__client {
  display: inline;
}
[data-assign-panel].is-editing [data-assign-view] {
  display: none;
}
.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: #fff;
  border-color: var(--tx-brand);
  color: var(--tx-brand-dark) !important;
}
.tc-btn--ghost:hover {
  background: var(--tx-tint-blue);
  border-color: var(--tx-brand);
}
.tc-btn--gray {
  background: #8a9699;
  border-color: #8a9699;
  color: #fff !important;
}
.tc-btn--gray:hover {
  background: #6f7b7e;
  border-color: #6f7b7e;
  color: #fff !important;
}
.tc-btn--remove {
  background: var(--tx-salmon);
  border-color: var(--tx-salmon);
  color: #fff !important;
}
.tc-btn--remove:hover {
  background: var(--tx-salmon-dark);
  border-color: var(--tx-salmon-dark);
  color: #fff !important;
}
.tc-settings__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  align-items: stretch;
}
.tc-settings__card {
  padding: 1.35rem 1.5rem 1.4rem;
  min-width: 0;
}
.tc-settings__card--wide {
  grid-column: 1 / -1;
}
@media (max-width: 720px) {
  .tc-settings__form {
    grid-template-columns: 1fr;
  }
}
.tc-settings__save { margin-top: 1.15rem; }
.tc-card.tc-settings__card .tc-settings__h {
  margin: 0 0 15px;
  font-family: var(--tx-font-title);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--tx-ink);
}
.tc-settings__checks { display: flex; flex-direction: column; gap: 0.55rem; }
.tc-settings__check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
  color: var(--tx-ink);
  cursor: pointer;
}
.tc-settings__check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d8e0e2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  cursor: pointer;
}
.tc-settings__check input[type="checkbox"]:checked {
  background: var(--brand);
}
.tc-settings__check input[type="checkbox"]:checked::after {
  content: "✓";
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
}
.tc-settings .tc-field { max-width: 100%; }
.tc-settings .tc-muted { margin: 0 0 0.75rem; }
.tc-settings .tc-field + .tc-field { margin-top: 0.85rem; }
.tc-settings-log { margin-top: 0.75rem; }
.tc-settings [data-settings-log-toggle] { margin-top: 15px; }
.tc-settings-log__window {
  max-height: 18rem;
  overflow: auto;
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius);
  background: #fff;
}
.tc-email__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 15px;
}
.tc-email__head .tc-settings__h { margin: 0; }
.tc-email__intro { min-width: 0; flex: 1 1 auto; }
.tc-email__intro .tc-muted { margin: 4px 0 0; }
.tc-email__pills {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
  padding-top: 0.15rem;
}
.tc-email__pill {
  appearance: none;
  border: 0;
  border-radius: 999px;
  margin: 0;
  padding: 0.32rem 0.7rem;
  font-family: var(--tx-font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.2;
  min-height: 0;
  cursor: pointer;
}
.tc-email__pill--edit {
  background: none;
  color: #8a9699;
  padding: 0.12rem 0;
}
.tc-email__pill--edit:hover { color: #6f7b7e; }
.tc-email__pill--save {
  background: #2e9b57;
  color: #fff;
}
.tc-email__pill--save:hover { background: #26864a; }
.tc-email__pill--cancel {
  background: #4a5558;
  color: #fff;
}
.tc-email__pill--cancel:hover { background: #3c4649; }
.tc-email__pill[hidden] { display: none !important; }
.tc-email__edit {
  appearance: none;
  border: 0;
  background: none;
  padding: 0.15rem 0 0;
  margin: 0;
  font-family: var(--tx-font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: #8a9699;
  cursor: pointer;
}
.tc-email__edit:hover { color: #6f7b7e; }
.tc-email__edit[hidden] { display: none !important; }
.tc-email__field {
  max-width: 100%;
}
.tc-email__actions {
  display: flex;
  margin: 1.15rem 0 0;
}
.tc-email .tc-su-progress {
  margin-top: 1.25rem;
}
.tc-email-locked {
  display: block;
}
.tc-email-locked[hidden],
.tc-email-edit[hidden],
[data-reveal-body][hidden],
[data-reveal-fields][hidden],
[data-reveal-locked][hidden] { display: none !important; }
.tc-email > .tc-settings__checks { margin: 0.15rem 0 0; }
.tc-cf-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.tc-cf-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.55rem 0.65rem;
  align-items: end;
}
.tc-cf-row .tc-field { margin: 0; max-width: none; }
.tc-cf-key {
  font-family: var(--tx-font-mono, ui-monospace, monospace);
  font-size: 0.8rem;
  color: var(--tx-muted, #6f7b7e);
  padding-bottom: 0.55rem;
  white-space: nowrap;
}
.tc-cf-row [data-cf-remove] {
  margin-bottom: 0.1rem;
  min-height: 2.15rem;
  padding: 0.35rem 0.75rem;
}
.tc-cf-add {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.55rem 0.65rem;
  margin-top: 0.95rem;
}
.tc-cf-add__field { flex: 1 1 10rem; min-width: 10rem; margin: 0; }
.tc-settings .tc-cf-key { text-transform: none; letter-spacing: 0; }
.tc-email-locked__line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.15rem;
}
.tc-email-locked__tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff !important;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.tc-email .tc-email-locked__line,
.tc-email .tc-email-locked__addr {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-family: var(--tx-font-body) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: var(--tx-ink) !important;
}
.tc-email .tc-email-locked__addr {
  word-break: break-all;
}
.tc-email__from-name { margin-top: 0.95rem; }
.tc-email__from-name[hidden] { display: none !important; }
.tc-email__from-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.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;
}
.tc-detail__plugins .tc-table--compact tbody tr.tc-row--core:hover td {
  background: #9cc8cc;
}
.tc-detail__plugins .tc-table--compact tbody tr.tc-row--theme:hover td {
  background: #c5dce0;
}
.tc-detail__plugins .tc-table--compact tbody tr:not(.tc-row--core):not(.tc-row--theme):not(.tc-row--inactive):not(.tc-row--inactive-actions):not(.tc-row--filter-empty):hover td {
  background: #d4e6e8;
}
.tc-detail__plugins .tc-table--compact tbody tr.tc-row--inactive:hover td,
.tc-detail__plugins .tc-table--compact tbody tr.tc-row--inactive-actions:hover td {
  background: #cfd8db;
}
/* 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;
}

/* Client assign — bordered light card (same treatment as former actions strip) */
.tc-assign-panel {
  margin-top: calc(0.75rem + 10px);
  padding: 0.75rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(4, 22, 21, .03);
}
.tc-assign__btns {
  display: inline;
  margin-left: .35rem;
  white-space: nowrap;
}
.tc-assign__btns .tc-inline-form {
  display: inline;
}
.tc-assign__btns .tc-icon-btn {
  display: inline;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  margin: 0 0 0 .2rem;
  padding: 0 .28rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--brand-dark);
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.35;
  vertical-align: baseline;
  text-decoration: none !important;
  cursor: pointer;
}
.tc-assign__btns .tc-icon-btn:hover {
  background: var(--tx-tint-blue, #badfe7);
  border-color: var(--brand);
}
.tc-assign__btns .tc-icon-btn--x {
  color: var(--salmon);
  font-size: .85rem;
  font-weight: 500;
  padding: 0 .3rem;
}
.tc-assign__btns .tc-icon-btn--x:hover {
  background: #fde8e4;
  border-color: var(--salmon);
  color: var(--salmon-dark);
}
.tc-assign {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.65rem;
  margin: 0;
}
.tc-assign--picker[hidden] {
  display: none !important;
}
.tc-assign__label {
  flex: 0 0 auto;
  min-width: 4.5rem;
  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 {
  flex: 1 1 10rem;
  max-width: 16rem;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--cool-mid);
  border-radius: 0;
  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='%23a8b8bc' 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 {
  color: var(--text);
  border-bottom-color: var(--border);
}
.tc-assign__select:focus {
  outline: none;
  color: var(--ink);
  border-bottom-color: var(--brand);
}
/* Lighter option text in the closed control when Unassigned (value 0) */
.tc-assign__select:has(option[value="0"]:checked) {
  color: var(--muted);
}
/* Client assign Save — darkish gray (not salmon) */
.tc-assign__save {
  width: auto;
  max-width: max-content;
  margin-left: auto;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  color: #fff !important;
  background: #5a6670 !important;
  border: 1px solid #5a6670 !important;
  padding: .35rem .85rem;
  cursor: pointer;
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
}
.tc-assign__save:hover {
  color: #fff !important;
  background: #4a545c !important;
  border-color: #4a545c !important;
}
.tc-assign__cancel {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: 0;
  padding: .25rem .15rem;
  cursor: pointer;
}
.tc-assign__cancel:hover {
  color: var(--ink);
}
.tc-assign__link {
  margin-left: 0.35rem;
  padding: 0.25rem 0.15rem;
  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;
}

/* —— Deactivate confirm modal (homepage card look) —— */
body.tc-modal-open {
  overflow: hidden;
}
.tc-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.tc-modal[hidden] {
  display: none !important;
}
.tc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 58, 63, 0.42);
  border: 0;
  cursor: pointer;
}
.tc-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2.25rem 2rem 1.75rem;
  text-align: center;
}
.tc-modal__logo {
  height: 42px;
  width: auto;
  margin: 0 auto 1rem;
}
.tc-modal__logo .logo {
  height: 42px;
  width: auto;
  --ink: var(--tx-ink);
  --brand: var(--tx-brand);
  --tint-teal: var(--tx-tint-teal);
  --salmon: var(--tx-salmon);
}
.tc-modal__title {
  margin: 0 0 .75rem;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.tc-modal__body {
  margin: 0;
  line-height: 1.55;
  font-size: 1rem;
}
.tc-modal__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin-top: 1.75rem;
}
.tc-modal__confirm-form {
  display: inline;
  margin: 0;
}
.tc-modal__actions .tc-btn {
  min-height: 2.25rem;
}

/* —— Landing (logged out) —— */
.tc-landing__card {
  max-width: 32rem;
  margin: 25px auto 0;
  text-align: center;
}
.tc-landing__card h1 {
  margin: 0 0 .65rem;
  font-family: var(--tx-font-title);
  font-weight: 900;
  font-size: 1.75rem;
  color: var(--tx-ink);
}
.tc-landing__card p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}
.tc-landing__cta {
  display: inline-flex;
  margin-top: 2.25rem;
  min-height: 2.35rem;
  height: auto;
  padding: .55rem 1.15rem;
  font-size: .85rem;
}
.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);
}
/* My Services enroll + chip (mini replica of WHMCS .btn-texo-command--off) — empty-state help only */
.tc-enroll-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  min-width: 1.15rem;
  min-height: 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  margin: 0 .2rem;
  line-height: 1;
  white-space: nowrap;
  font-weight: 700;
  border: 1px solid #f5cfc7;
  border-radius: .15rem;
  background: #fde8e4;
  color: #ec7c63;
  box-sizing: border-box;
  transform: translateY(-1px);
}
.tc-enroll-chip__mark {
  font-size: .85rem;
  font-weight: 800;
  line-height: 1;
  color: #ec7c63;
  transform: translateY(-0.03em);
}
.tc-landing__card .tc-mono {
  color: var(--ink);
  font-weight: 500;
}

.tc-ts__field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 1rem 0 0;
}
.tc-ts__label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tx-ink);
}
.tc-ts__select-wrap {
  position: relative;
  display: inline-block;
  min-width: min(100%, 22rem);
  max-width: 100%;
}
.tc-ts__select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.95rem;
  width: 0.42rem;
  height: 0.42rem;
  margin-top: -0.12rem;
  border-right: 2px solid var(--tx-muted);
  border-bottom: 2px solid var(--tx-muted);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}
.tc-ts__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: block;
  width: 100%;
  min-height: 2.45rem;
  padding: 0.5rem 2.2rem 0.5rem 1rem;
  border: 1px solid var(--tx-border);
  border-radius: 999px;
  background-color: #fff;
  background-image: none;
  color: var(--tx-ink);
  font-family: var(--tx-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-align: center;
  text-align-last: center;
  box-shadow: 0 1px 2px rgba(4, 22, 21, 0.06);
  cursor: pointer;
  color-scheme: light;
}
.tc-ts__select::-ms-expand {
  display: none;
}
.tc-ts__select:hover {
  border-color: #c5d2d6;
  color: var(--tx-ink);
}
.tc-ts__select:focus {
  outline: none;
  border-color: var(--tx-brand);
  box-shadow: 0 0 0 3px rgba(56, 128, 135, 0.18);
}
.tc-ts__select option {
  font-weight: 500;
  text-align: left;
}
.tc-ts__field--kinds {
  align-items: center;
  text-align: center;
  gap: 1.05rem;
  margin-top: 2rem;
}
.tc-ts__field--site {
  align-items: center;
  margin-top: 1.35rem;
}
.tc-ts__pick {
  position: relative;
  width: min(100%, 15.5rem);
  margin: 0 auto;
  color-scheme: light;
}
.tc-ts__pick-btn {
  appearance: none;
  position: relative;
  display: block;
  width: 100%;
  min-height: 2.45rem;
  padding: 0.5rem 2.2rem 0.5rem 1rem;
  border: 1px solid var(--tx-border);
  border-radius: 999px;
  background: #fff;
  color: var(--tx-ink);
  font-family: var(--tx-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 1px 2px rgba(4, 22, 21, 0.06);
  cursor: pointer;
}
.tc-ts__pick-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.95rem;
  width: 0.42rem;
  height: 0.42rem;
  margin-top: -0.12rem;
  border-right: 2px solid var(--tx-muted);
  border-bottom: 2px solid var(--tx-muted);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}
.tc-ts__pick-btn:hover {
  border-color: #c5d2d6;
}
.tc-ts__pick-btn:focus-visible {
  outline: none;
  border-color: var(--tx-brand);
  box-shadow: 0 0 0 3px rgba(56, 128, 135, 0.18);
}
.tc-ts__pick.is-open .tc-ts__pick-btn {
  border-color: var(--tx-brand);
}
.tc-ts__pick-list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 0.3rem);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #fff;
  color: var(--tx-ink);
  border: 1px solid var(--tx-border);
  border-radius: 0.85rem;
  box-shadow: 0 10px 24px rgba(4, 22, 21, 0.12);
  max-height: 16rem;
  overflow: auto;
}
.tc-ts__pick-opt {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 0.55rem;
  background: #fff;
  color: var(--tx-ink);
  font-family: var(--tx-font-body);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}
.tc-ts__pick-opt:hover,
.tc-ts__pick-opt:focus-visible {
  background: var(--cool-soft, #e4ecee);
  outline: none;
}
.tc-ts__pick-opt.is-active {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--tx-brand);
}
.tc-ts__pick-opt:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.tc-seg--ts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: auto;
  max-width: 46rem;
  margin: 0 auto;
}
.tc-seg--ts .tc-seg__btn {
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.62rem 1.05rem;
}
.tc-ts__pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.tc-ts__help {
  margin: 0.85rem auto 0;
  max-width: 36rem;
  text-align: center;
}
.tc-ts__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin-top: calc(0.85rem + 25px);
}
.tc-ts__or {
  display: inline-flex;
  align-items: center;
  align-self: center;
  font-family: var(--tx-font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--tx-muted);
}
.tc-ts .tc-su-progress {
  margin-top: 1.25rem;
}
.tc-ts .tc-su-progress__brand {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.8rem;
}
.tc-ts [hidden] {
  display: none !important;
}
.tc-ts__result {
  margin-top: 1.1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius);
  background: #fff;
}
.tc-ts__status {
  margin: 0 0 0.85rem;
  font-size: 1.12rem;
  font-weight: 750;
  color: var(--tx-ink);
}
.tc-ts__facts {
  margin: 0 0 0.95rem;
  padding: 0;
}
.tc-ts__fact {
  margin: 0 0 1.25rem;
}
.tc-ts__fact:last-child {
  margin-bottom: 0;
}
.tc-ts__fact dt {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tx-muted);
}
.tc-ts__fact dd {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 550;
  color: var(--tx-ink);
  line-height: 1.4;
}
/* Filenames — same chip as texo.co.za prose <code>, Texo light-blue tint */
.tc-file {
  font-family: var(--tx-font-mono);
  font-size: .92em;
  font-weight: 500;
  background: var(--tx-tint-blue);
  color: var(--tx-ink);
  padding: .12em .5em;
  border-radius: 6px;
  word-break: break-word;
}
.tc-ts__lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin: -0.35rem 0 1.1rem;
}
.tc-ts__lines[hidden] { display: none; }
.tc-file--line {
  display: inline-block;
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-all;
}
.tc-file--bad {
  background: #f8d0c8;
}
.tc-file--ok {
  background: #c2edce;
}

.tc-ts__shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 0.35rem 0 1rem;
}
.tc-ts__shot {
  margin: 0;
  border: 1px solid var(--tx-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--tx-bg-alt);
}
.tc-ts__shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: #e8eef1;
}
.tc-ts__shot figcaption {
  padding: 0.4rem 0.6rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--tx-muted);
}
.tc-ts__report {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease, padding 0.25s ease;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
}
.tc-ts__report.is-open {
  max-height: 32rem;
  opacity: 1;
  margin: 0.85rem 0 1rem;
  padding: 0.85rem 0.95rem;
  border-width: 1px;
}
.tc-ts__offer {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--tx-ink);
}
.tc-ts__secret {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
}
.tc-ts__cred {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.75rem;
}
.tc-ts__cred-label {
  min-width: 5.5rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--tx-muted);
}
.tc-ts__cred code {
  font-family: var(--tx-font-mono);
  font-size: 0.92rem;
  color: var(--tx-ink);
  background: var(--tx-bg-alt);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
}
.tc-ts__dbpick {
  margin: 0 0 0.75rem;
}
.tc-ts__field--inline {
  margin: 0;
}
.tc-ts__select-wrap--db {
  min-width: min(100%, 16rem);
}
.tc-ts__result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@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; }
}
