/* ===== TOKENS — Website Refresh ===== */
:root {
  --teal-900: #0B3F3F;
  --teal-800: #0F4F4F;
  --teal-700: #14655F;
  --teal-600: #14B8A6;
  --teal-500: #2DD4BF;
  --teal-300: #5EEAD4;
  --teal-100: #CCFBF1;
  --teal-50:  #F0FDFA;
  --cream:      #FAF7F2;
  --cream-warm: #FFFCF7;
  --ink:        #1A2424;
  --ink-soft:   #4B5563;
  --ink-mute:   #9CA3AF;
  --line:       #E5E7EB;
  --line-soft:  #F3F4F6;
  --amber: #F59E0B;
  --rose:  #E11D48;
  --green: #10B981;
  --display: 'Outfit', system-ui, sans-serif;
  --body:    'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--cream); color: var(--ink); font-family: var(--body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
body {
  background:
    radial-gradient(ellipse 600px 400px at 10% 5%, rgba(94, 234, 212, 0.18), transparent 60%),
    radial-gradient(ellipse 700px 500px at 95% 35%, rgba(245, 158, 11, 0.08), transparent 60%),
    radial-gradient(ellipse 800px 600px at 50% 100%, rgba(94, 234, 212, 0.10), transparent 60%),
    var(--cream);
  min-height: 100vh;
}
button { font-family: inherit; font-size: inherit; background: none; border: none; padding: 0; cursor: pointer; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
table { border-collapse: collapse; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; cursor: pointer; }
svg { display: inline-block; vertical-align: middle; }
.hidden { display: none !important; }
em { font-style: italic; color: var(--teal-600); font-weight: 400; }

/* ===== APP SHELL ===== */
#app { min-height: 100vh; display: flex; flex-direction: column; max-width: 640px; margin: 0 auto; padding-bottom: 78px; }
@media (min-width: 900px) { #app { max-width: 920px; } }

.app-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; background: rgba(255, 252, 247, 0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-600));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: 0.5px;
}
.brand-mark.big { width: 64px; height: 64px; border-radius: 16px; font-size: 22px; margin: 0 auto 14px; }
.brand-name { font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--teal-900); letter-spacing: -0.01em; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal-700); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: 13px;
  cursor: pointer;
}

/* ===== VIEW ROOT ===== */
.view-root { flex: 1; padding: 18px 20px 32px; }

/* ===== TABBAR ===== */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 640px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 252, 247, 0.95); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-soft);
  padding: 8px 2px max(8px, env(safe-area-inset-bottom));
  z-index: 30;
}
@media (min-width: 900px) { .tabbar { max-width: 920px; } }
@media (max-width: 360px) {
  .tab-link { font-size: 10px; }
  .tab-link svg { width: 20px; height: 20px; }
}
.tab-link {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 0; color: var(--ink-mute);
  font-size: 11px; font-weight: 500; letter-spacing: -0.005em;
  transition: color .15s;
}
.tab-link svg { width: 22px; height: 22px; }
.tab-link:hover { color: var(--teal-700); }
.tab-link.active { color: var(--teal-700); font-weight: 600; }
.tab-link.active svg { stroke: var(--teal-600); }

/* ===== TYPOGRAPHY ===== */
.page-title { font-family: var(--display); font-weight: 500; font-size: 28px; line-height: 1.15; letter-spacing: -0.01em; color: var(--teal-900); }
.page-sub { font-size: 13px; color: var(--ink-mute); margin-top: 4px; }
.section-title { font-family: var(--display); font-weight: 500; font-size: 18px; color: var(--teal-900); letter-spacing: -0.005em; }
.muted { color: var(--ink-mute); }
.helper { font-size: 12px; color: var(--ink-mute); }
.label { display: block; font-size: 12px; color: var(--ink-soft); margin-bottom: 6px; font-weight: 500; }

/* ===== GREETING ===== */
.greet h2 { font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1.1; letter-spacing: -0.01em; color: var(--teal-900); margin-bottom: 6px; }
.greet p { font-size: 13px; color: var(--ink-soft); }

/* ===== CARDS ===== */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 18px;
  box-shadow: 0 1px 2px rgba(11, 63, 63, 0.03);
  margin-bottom: 14px;
}
.card-title {
  font-family: var(--display); font-weight: 500; font-size: 14px;
  color: var(--teal-900); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px; letter-spacing: -0.005em;
}
.card-title.with-icon .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); }
.card.compact { padding: 14px 16px; }

/* ===== ITEM ROW (priorities, activity) ===== */
.item {
  display: flex; gap: 12px; padding: 10px 0;
  border-top: 1px solid var(--line-soft);
}
.item:first-of-type { border-top: none; padding-top: 4px; }
.item-text { font-size: 13.5px; color: var(--ink); line-height: 1.45; }
.item-text strong { font-weight: 600; color: var(--teal-900); }
.item-meta { font-size: 11.5px; color: var(--ink-mute); margin-top: 3px; }

/* ===== PILLS ===== */
.pill {
  display: inline-flex; align-items: center; padding: 3px 9px;
  border-radius: 100px; font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  height: fit-content; flex-shrink: 0;
}
.pill-urgent { background: rgba(225, 29, 72, 0.12); color: var(--rose); }
.pill-due    { background: rgba(245, 158, 11, 0.15); color: #B45309; }
.pill-info   { background: rgba(20, 184, 166, 0.12); color: var(--teal-700); }
.pill-ok     { background: rgba(16, 185, 129, 0.12); color: var(--green); }
.pill-mute   { background: var(--line-soft); color: var(--ink-soft); }
.pill-warn   { background: rgba(245, 158, 11, 0.15); color: #B45309; }

/* Status pills */
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 100px;
  font-size: 11.5px; font-weight: 500;
  background: rgba(20, 184, 166, 0.10); color: var(--teal-700);
  border: 1px solid rgba(20, 184, 166, 0.20);
}
.status-pill.warn { background: rgba(245, 158, 11, 0.10); color: #B45309; border-color: rgba(245, 158, 11, 0.25); }
.status-pill.danger { background: rgba(225, 29, 72, 0.08); color: var(--rose); border-color: rgba(225, 29, 72, 0.25); }

/* ===== STATS ===== */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.stat {
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 16px;
}
.stat-num { font-family: var(--display); font-weight: 500; font-size: 26px; color: var(--teal-900); line-height: 1.1; letter-spacing: -0.01em; }
.stat-label { font-size: 11px; color: var(--ink-mute); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500; }
.stat-delta { font-size: 11px; color: var(--green); margin-top: 6px; font-weight: 500; }
.stat-delta.warn { color: var(--amber); }

/* ===== ACTIVITY ===== */
.activity { display: flex; flex-direction: column; gap: 8px; }
.activity-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); padding: 4px 0; }
.activity-row .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-400, var(--teal-500)); flex-shrink: 0; }
.activity-row strong { font-weight: 600; color: var(--ink); }
.activity-row time { margin-left: auto; font-size: 11px; color: var(--ink-mute); }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--teal-700); color: #fff;
  padding: 11px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 600; letter-spacing: -0.005em;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s;
}
.btn-primary:hover { background: var(--teal-800); }
.btn-secondary {
  background: #fff; color: var(--teal-700);
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 100px;
  font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-secondary:hover { background: var(--teal-50); border-color: var(--teal-300); }
.btn-danger { background: #fff; color: var(--rose); padding: 9px 16px; border: 1px solid rgba(225,29,72,0.3); border-radius: 100px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-link { color: var(--teal-700); font-size: 13px; cursor: pointer; }
.btn-link:hover { color: var(--teal-800); text-decoration: underline; }

/* ===== FORMS ===== */
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="tel"], select, textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.05);
  color: var(--ink); font-size: 14px;
  outline: none;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--ink-mute); }
input:hover, select:hover, textarea:hover { background: rgba(20, 184, 166, 0.09); }
input:focus, select:focus, textarea:focus {
  background: #fff;
  border-color: var(--teal-300);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}
textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B7280' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input[type="checkbox"] { width: auto; padding: 0; background: transparent; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row.cols-1 { grid-template-columns: 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 540px) { .form-row, .form-row.cols-3 { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-error { color: var(--rose); font-size: 12px; min-height: 1em; margin-top: 8px; }

/* ===== CLIENT HERO ===== */
.client-hero { padding: 16px 0 14px; border-bottom: 1px solid var(--line-soft); margin-bottom: 16px; }
.back { font-size: 12.5px; color: var(--teal-700); font-weight: 500; margin-bottom: 14px; cursor: pointer; }
.client-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.client-logo {
  width: 56px; height: 56px; border-radius: 18px;
  background: linear-gradient(135deg, var(--teal-100), var(--teal-50));
  color: var(--teal-700); display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em;
  flex-shrink: 0; border: 1px solid var(--teal-300);
}
.client-name { font-family: var(--display); font-weight: 500; font-size: 22px; color: var(--teal-900); letter-spacing: -0.01em; line-height: 1.1; }
.client-tag { font-size: 12px; color: var(--ink-mute); margin-top: 3px; }
.client-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.client-actions button {
  flex: 1; padding: 8px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  font-size: 12.5px; color: var(--ink-soft); font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.client-actions button:hover { background: var(--teal-50); border-color: var(--teal-300); color: var(--teal-700); }

/* ===== TABS ===== */
.tabs {
  display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px;
  margin-bottom: 16px; border-bottom: 1px solid var(--line-soft);
  -ms-overflow-style: none; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  padding: 8px 14px; font-size: 13px; color: var(--ink-mute); font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  white-space: nowrap; transition: color .15s, border-color .15s;
}
.tabs button:hover { color: var(--ink-soft); }
.tabs button.active { color: var(--teal-700); border-bottom-color: var(--teal-600); font-weight: 600; }

/* ===== SERVICE ROWS ===== */
.service-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-top: 1px solid var(--line-soft);
  cursor: pointer;
}
.service-row:first-of-type { border-top: none; padding-top: 4px; }
.service-row:hover { background: var(--cream); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 8px; }
.service-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.service-meta { font-size: 11.5px; color: var(--ink-mute); margin-top: 2px; }
.service-price { font-family: var(--display); font-weight: 500; font-size: 16px; color: var(--teal-700); letter-spacing: -0.01em; }
.service-price small { font-size: 11px; }

/* ===== STATUS ROW ===== */
.status-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

/* ===== LIST ROWS (client list, etc) ===== */
.list-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 14px; }
.list-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-top: 1px solid var(--line-soft); cursor: pointer;
  transition: background .15s;
}
.list-row:first-child { border-top: none; }
.list-row:hover { background: var(--teal-50); }
.list-row .meta { font-size: 11.5px; color: var(--ink-mute); margin-top: 2px; }
.list-row .name { font-size: 14px; font-weight: 600; color: var(--ink); }
.list-row .right { margin-left: auto; text-align: right; }

/* ===== SEARCH ===== */
.search-bar {
  position: relative; margin-bottom: 16px;
}
.search-bar input {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 42px;
  border: 1px solid transparent;
  border-radius: 100px;
  background: rgba(20, 184, 166, 0.06);
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.search-bar input::placeholder { color: var(--ink-mute); }
.search-bar input:hover {
  background: rgba(20, 184, 166, 0.10);
}
.search-bar input:focus {
  background: #fff;
  border-color: var(--teal-300);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}
.search-bar > svg {
  position: absolute;
  left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--teal-700);
  pointer-events: none;
}
.search-bar .clear-x {
  position: absolute;
  right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-mute);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.search-bar .clear-x:hover { background: rgba(20, 184, 166, 0.12); color: var(--teal-700); }
.search-bar .clear-x svg { width: 14px; height: 14px; }
.search-bar.has-value .clear-x { display: flex; }
.search-bar .clear-x.hidden { display: none; }

/* ===== MODAL ===== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(11, 32, 32, 0.5); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 60; padding: 0;
  animation: fadein .15s ease;
}
@media (min-width: 640px) {
  .modal-backdrop { align-items: center; padding: 24px; }
}
.modal {
  background: #fff; border-radius: 24px 24px 0 0;
  max-width: 560px; width: 100%; max-height: 90vh; overflow: auto;
  box-shadow: 0 -8px 32px rgba(11, 63, 63, 0.18);
  animation: slideup .22s ease;
}
@media (min-width: 640px) {
  .modal { border-radius: 20px; animation: popin .18s ease; }
}
.modal-head {
  padding: 18px 22px 14px; display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--line-soft); z-index: 1;
}
.modal-title { font-family: var(--display); font-weight: 500; font-size: 20px; color: var(--teal-900); letter-spacing: -0.01em; }
.modal-body { padding: 18px 22px 22px; }
.modal-foot {
  padding: 14px 22px max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft);
  display: flex; gap: 10px; justify-content: flex-end;
  background: var(--cream-warm); position: sticky; bottom: 0;
}
.close-x { font-size: 22px; line-height: 1; color: var(--ink-mute); padding: 4px 10px; border-radius: 8px; }
.close-x:hover { background: var(--line-soft); color: var(--ink); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes popin { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes slideup { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ===== TOAST ===== */
#toast-root { position: fixed; bottom: 92px; right: 16px; left: 16px; z-index: 80; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
@media (min-width: 640px) { #toast-root { left: auto; max-width: 360px; } }
.toast {
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(11, 63, 63, 0.14);
  font-size: 13px; pointer-events: auto;
  animation: popin .2s ease;
}
.toast.success { border-left: 4px solid var(--green); }
.toast.error   { border-left: 4px solid var(--rose); }

/* ===== EMPTY ===== */
.empty { padding: 36px 20px; text-align: center; color: var(--ink-mute); font-size: 13px; }

/* ===== PERMISSION BANNER ===== */
.permission-banner {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(94,234,212,.18), rgba(20,184,166,.08));
  border: 1px solid var(--teal-300);
  border-radius: 16px;
  margin-bottom: 14px;
}
.permission-banner-content { flex: 1; min-width: 200px; }
.permission-banner-content strong { color: var(--teal-900); font-family: var(--display); font-weight: 500; font-size: 15px; }
.permission-banner-content p { margin-top: 2px; font-size: 12.5px; color: var(--ink-soft); }
.permission-banner-actions { display: flex; gap: 8px; }
.permission-banner-actions .btn-primary,
.permission-banner-actions .btn-secondary { padding: 7px 14px; font-size: 12.5px; }

/* ===== RENEWAL RADAR (Home dashboard) ===== */
.card.radar { border: 1px solid var(--teal-300); background: linear-gradient(180deg, rgba(94,234,212,.10), #fff 60%); }
.card.radar.radar-urgent { border-color: rgba(245, 158, 11, 0.45); background: linear-gradient(180deg, rgba(245,158,11,.10), #fff 60%); }
.card.radar.radar-critical {
  border-color: rgba(225, 29, 72, 0.45);
  background: linear-gradient(180deg, rgba(225,29,72,.10), #fff 60%);
  animation: radar-pulse 2.6s ease-in-out infinite;
}
@keyframes radar-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225,29,72,.18); }
  50%      { box-shadow: 0 0 0 6px rgba(225,29,72,.04); }
}
.radar-row {
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}
.radar-row:first-of-type { padding-top: 4px; border-top: none; }

/* Task checkbox button — sits at the left of every task row */
.task-check {
  width: 22px; height: 22px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, border-color .15s, color .15s;
  color: transparent;
  font-size: 12px; line-height: 1;
  font-weight: 700;
}
.task-check:hover {
  border-color: var(--teal-500);
  background: var(--teal-50);
}
.task-check.done {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: #fff;
}

.list-row.task-row { gap: 14px; align-items: center; }

/* Quick-add task input — single-line capture at the top of Home */
.quick-add-card {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  margin-bottom: 14px;
  background: rgba(20, 184, 166, 0.06);
  border: 1px dashed var(--teal-300);
}
.quick-add-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--teal-600); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; line-height: 1;
  flex-shrink: 0;
}
.quick-add-input {
  flex: 1; min-width: 0;
  background: transparent !important;
  border: none !important;
  padding: 6px 0 !important;
  font-size: 14px;
}
.quick-add-input:focus {
  background: transparent !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* Busy banner — shown while a wp-control action is in flight */
.busy-banner {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.30);
  color: #92400E;
  font-size: 13px; font-weight: 500;
}
.busy-spinner {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(245, 158, 11, 0.35);
  border-top-color: var(--amber);
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Disabled action buttons during a wp-control op */
button[data-busy="1"],
.btn-primary[disabled],
.btn-secondary[disabled],
.client-actions button[disabled] {
  opacity: 0.45;
  cursor: not-allowed !important;
  filter: grayscale(0.5);
}
button[data-busy="1"]:hover {
  background: inherit !important;
}

/* WP admin credentials row */
.creds-row {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(20, 184, 166, 0.06);
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 12px;
}
.creds-row.creds-empty {
  background: var(--cream);
  border: 1px dashed var(--line);
}
.creds-label {
  font-size: 11px; font-weight: 600;
  color: var(--teal-700);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.creds-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 100px;
  font-size: 12.5px;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.creds-btn:hover {
  background: var(--teal-50);
  border-color: var(--teal-300);
}
.creds-btn-label {
  font-size: 10px; font-weight: 600;
  color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.creds-btn-value {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 12.5px;
  color: var(--ink);
  max-width: 200px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Inline domain chips inside a renewal row */
.radar-row-domains {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 6px;
}
.domain-chip {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 100px;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.20);
  font-size: 11.5px; color: var(--teal-800);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.radar-row-main { display: flex; flex-direction: column; gap: 4px; }
.radar-row-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.radar-name { font-weight: 600; color: var(--ink); font-size: 14px; }
.radar-name:hover { color: var(--teal-700); text-decoration: underline; }
.radar-row-meta { font-size: 12px; color: var(--ink-mute); }
.radar-row-actions {
  display: flex; gap: 8px; margin-top: 10px;
  flex-wrap: wrap; align-items: center;
}
.radar-row-actions .btn-primary,
.radar-row-actions .btn-secondary { padding: 6px 12px; font-size: 12.5px; }
.radar-row-actions .snooze-btn {
  margin-left: auto; font-size: 12px; color: var(--ink-mute);
  padding: 6px 10px; border-radius: 100px; transition: background .15s, color .15s;
}
.radar-row-actions .snooze-btn:hover { background: var(--line-soft); color: var(--ink); text-decoration: none; }

/* ===== RENEWAL WORKFLOW STEPPER ===== */
.workflow-track {
  display: grid; grid-template-columns: repeat(6, 1fr);
  margin: 10px 0 4px;
  gap: 0;
  position: relative;
}
.workflow-step {
  display: flex; flex-direction: column; align-items: center;
  position: relative; padding: 4px 2px;
  min-width: 0;
}
.workflow-step .node {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--line); border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  z-index: 1; transition: background .2s, border-color .2s, box-shadow .2s;
  flex-shrink: 0;
}
.workflow-step .node svg { width: 10px; height: 10px; color: #fff; }
.workflow-step .label {
  font-size: 10px; font-weight: 500; color: var(--ink-mute);
  margin-top: 4px; text-align: center; line-height: 1.2;
  letter-spacing: -0.005em;
}
/* connecting line behind the dots */
.workflow-step::before {
  content: ''; position: absolute; top: 12px; left: -50%; right: 50%;
  height: 2px; background: var(--line); z-index: 0;
}
.workflow-step:first-child::before { display: none; }

/* States */
.workflow-step.done .node { background: var(--green); border-color: var(--green); }
.workflow-step.done.line-fill::before { background: var(--green); }
.workflow-step.current .node {
  background: var(--teal-600); border-color: var(--teal-600);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.18);
}
.workflow-step.current .label { color: var(--teal-700); font-weight: 600; }
.workflow-step.done .label { color: var(--ink-soft); }

/* If the previous step is done, the connector line to me is green */
.workflow-step.done + .workflow-step::before { background: var(--green); }

/* ===== KNOWLEDGE BASE ===== */
.kb-content {
  font-size: 14px; line-height: 1.65; color: var(--ink);
  white-space: pre-wrap; word-wrap: break-word;
}
.kb-content a { color: var(--teal-700); text-decoration: underline; word-break: break-all; }
.kb-content a:hover { color: var(--teal-800); }
.kb-code {
  background: #0F4F4F; color: #CCFBF1;
  padding: 14px 16px; border-radius: 12px;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 12.5px; line-height: 1.55;
  overflow-x: auto; white-space: pre;
  border: 1px solid var(--teal-800);
}

/* ===== LOGIN ===== */
.login-overlay {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(94, 234, 212, 0.30), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(245, 158, 11, 0.10), transparent 55%),
    linear-gradient(135deg, var(--teal-900), var(--teal-700) 50%, var(--teal-800));
  padding: 24px;
}
.login-card {
  background: rgba(255, 252, 247, 0.98); border-radius: 24px;
  padding: 36px 28px; max-width: 380px; width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  text-align: center;
}
.login-card form { text-align: left; }
.login-title { font-family: var(--display); font-weight: 500; font-size: 26px; color: var(--teal-900); margin-bottom: 4px; letter-spacing: -0.01em; }
.login-tagline { font-family: var(--display); font-style: italic; font-size: 14px; color: var(--teal-600); margin-bottom: 24px; }
.login-card label { display: block; font-size: 12px; color: var(--ink-soft); margin: 14px 0 6px; font-weight: 500; }
.login-hint { margin-top: 18px; font-size: 11px; color: var(--ink-mute); }
.login-toggle { margin-top: 10px; text-align: center; font-size: 12px; }
.login-toggle a { color: var(--ink-mute); text-decoration: underline; text-underline-offset: 3px; }
.login-toggle a:hover { color: var(--teal-700); }

/* ===== UTIL ===== */
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.tabular { font-variant-numeric: tabular-nums; }
.text-right { text-align: right; }
.text-success { color: var(--green); }
.text-danger { color: var(--rose); }
.text-warn { color: var(--amber); }
.text-teal { color: var(--teal-700); }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.flex-1 { flex: 1; }
