/* ---------------------------------------------------------------
   Control Center — design tokens
   An operator's console, not a marketing page: dense, calm, dark,
   status color is the only decoration that's allowed to shout.
------------------------------------------------------------------ */
:root {
  --bg-base: #f4f6f9;
  --bg-panel: #ffffff;
  --bg-panel-raised: #f8fafc;
  --bg-hover: #f1f4f9;
  --border: #e2e6ed;
  --border-soft: #edf0f4;

  --text-hi: #171b24;
  --text-mid: #5b6373;
  --text-low: #98a1b0;

  --accent: #2f7fe0;
  --accent-hi: #1f68c2;
  --accent-dim: rgba(47, 127, 224, 0.10);

  --success: #1a9c6b;
  --success-dim: rgba(26, 156, 107, 0.12);
  --fail: #d7423c;
  --fail-dim: rgba(215, 66, 60, 0.10);
  --warning: #b8791f;
  --warning-dim: rgba(184, 121, 31, 0.12);
  --neutral-dim: rgba(91, 99, 115, 0.08);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, monospace;

  /* Brand gradient — sampled from the actual Arkanj logo mark */
  --brand-1: #3f71e1;
  --brand-2: #2aa1f1;
  --brand-3: #22a6c9;
  --brand-gradient: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 55%, var(--brand-3) 100%);
  --sidebar-gradient: linear-gradient(165deg, #1c3a68 0%, #1c6199 55%, #187f93 100%);

  --sidebar-width: 232px;
  --sidebar-width-collapsed: 72px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg-base);
  color: var(--text-hi);
  font-family: var(--font-sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------------- Login ---------------- */

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(600px 400px at 20% 10%, rgba(47, 127, 224, 0.06), transparent),
    var(--bg-base);
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: 0 2px 4px rgba(23, 27, 36, 0.04), 0 12px 32px rgba(23, 27, 36, 0.06);
}

.login-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.login-mark-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.brand-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.login-sub {
  color: var(--text-mid);
  margin: 6px 0 24px;
  font-size: 13px;
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field span {
  display: block;
  font-size: 12.5px;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-panel-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  color: var(--text-hi);
}

.field textarea { resize: vertical; min-height: 64px; font-family: var(--font-mono); font-size: 13px; }

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
}

.field-hint {
  font-size: 11.5px;
  color: var(--text-low);
  margin-top: 4px;
}

.form-error {
  background: var(--fail-dim);
  color: var(--fail);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 12.5px;
  margin-bottom: 14px;
}

/* ---------------- Buttons ---------------- */

.btn {
  border: 1px solid var(--border);
  background: var(--bg-panel-raised);
  color: var(--text-hi);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-weight: 500;
  transition: background 0.12s, border-color 0.12s;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover { background: var(--bg-hover); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(42, 130, 226, 0.28);
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #2f5bc0 0%, #1c8fd6 55%, #17879f 100%);
  box-shadow: 0 4px 14px rgba(42, 130, 226, 0.4);
}
.btn-primary:active {
  background: linear-gradient(135deg, #294fab 0%, #1878ba 55%, #147082 100%);
  box-shadow: 0 1px 4px rgba(42, 130, 226, 0.3);
}
.btn-primary:disabled {
  box-shadow: none;
  opacity: 0.55;
  background: var(--brand-gradient);
}

.btn-danger {
  color: var(--fail);
  border-color: var(--border);
}
.btn-danger:hover { background: var(--fail-dim); border-color: var(--fail); }

.btn-ghost {
  background: transparent;
  border-color: var(--border-soft);
  color: var(--text-mid);
}
.btn-ghost:hover { color: var(--text-hi); background: var(--bg-hover); }

.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.btn-block { width: 100%; }

/* ---------------- Shell layout ---------------- */

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
  transition: grid-template-columns 0.18s ease;
}
.shell.sidebar-collapsed {
  grid-template-columns: var(--sidebar-width-collapsed) 1fr;
}

.sidebar {
  background: var(--sidebar-gradient);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  transition: padding 0.18s ease;
  overflow: hidden;
}
.shell.sidebar-collapsed .sidebar { padding: 16px 10px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14.5px;
  padding: 4px 8px 20px;
  letter-spacing: -0.01em;
  color: #ffffff;
  white-space: nowrap;
}

.sidebar-toggle {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: rgba(255, 255, 255, 0.85);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}
.sidebar-toggle:hover { background: rgba(255, 255, 255, 0.18); }
.shell.sidebar-collapsed .sidebar-toggle { transform: rotate(180deg); }
.shell.sidebar-collapsed .brand-label { display: none; }
.shell.sidebar-collapsed .brand {
  flex-direction: column;
  gap: 12px;
  padding: 4px 0 20px;
}
.shell.sidebar-collapsed .sidebar-toggle { margin-left: 0; }
.shell.sidebar-collapsed .nav-item span.nav-label,
.shell.sidebar-collapsed .whoami { display: none; }
.shell.sidebar-collapsed .nav-item {
  justify-content: center;
  padding: 10px;
}
.shell.sidebar-collapsed .app-footer-mini { justify-content: center; }
.shell.sidebar-collapsed .app-footer-mini span { display: none; }

.brand-logo { flex-shrink: 0; }

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#devops-nav-group, #devops-nav-group-2 {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  text-align: left;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}
.nav-item svg { flex-shrink: 0; width: 17px; height: 17px; }

.nav-item:hover { background: rgba(255, 255, 255, 0.1); color: #ffffff; }
.nav-item.active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: inset 3px 0 0 #ffffff;
}

.sidebar-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.whoami { padding: 4px 8px 10px; }
.whoami-name { font-size: 13px; font-weight: 600; color: #ffffff; }
.whoami-role { font-size: 11.5px; color: rgba(255, 255, 255, 0.6); text-transform: capitalize; margin-top: 1px; }

.sidebar .btn-ghost {
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.18);
}
.sidebar .btn-ghost:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.main {
  padding: 28px 36px 60px;
  max-width: 1180px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.page-title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 4px; }
.page-sub { color: var(--text-mid); font-size: 13px; margin: 0; }

.back-link {
  background: none;
  border: none;
  color: var(--text-mid);
  font-size: 13px;
  padding: 0;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.back-link:hover { color: var(--text-hi); }

/* ---------------- App cards / grid ---------------- */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.app-card {
  background:
    radial-gradient(140px 100px at 100% 0%, var(--app-glow, transparent), transparent),
    var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--app-accent, var(--border));
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 22px 22px 20px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(23, 27, 36, 0.04), 0 2px 16px var(--app-glow, rgba(23, 27, 36, 0.04));
  transition: box-shadow 0.18s ease, transform 0.14s ease, border-color 0.12s ease;
}
.app-card:hover {
  border-color: var(--border);
  box-shadow: 0 4px 8px rgba(23, 27, 36, 0.06), 0 14px 36px var(--app-glow-strong, rgba(23, 27, 36, 0.09));
  transform: translateY(-3px);
}

.app-badge {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--app-accent, var(--text-mid));
  background: var(--app-glow, var(--neutral-dim));
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.app-name { font-size: 16.5px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.app-env { font-size: 11.5px; color: var(--text-low); margin-top: 3px; text-transform: capitalize; }

.app-desc {
  font-size: 12.5px;
  color: var(--text-mid);
  margin: 0 0 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.tech-chip {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  background: var(--bg-panel-raised);
  border: 1px solid var(--border-soft);
  color: var(--text-mid);
}

.app-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.info-pill {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-panel-raised);
  border: 1px solid var(--border-soft);
  color: var(--text-mid);
  text-decoration: none;
}
.info-pill strong { color: var(--text-hi); font-weight: 700; }
.info-link {
  color: var(--accent);
  font-weight: 600;
  border-color: var(--accent-dim);
  background: var(--accent-dim);
}
.info-link:hover { background: rgba(47, 127, 224, 0.18); }

.app-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.app-meta { font-size: 11.5px; color: var(--text-low); }

/* ---------------- Status pills ---------------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; }

.pill-success { background: var(--success-dim); color: var(--success); }
.pill-success .pill-dot { background: var(--success); }

.pill-failed { background: var(--fail-dim); color: var(--fail); }
.pill-failed .pill-dot { background: var(--fail); }

.pill-running { background: var(--accent-dim); color: var(--accent-hi); }
.pill-running .pill-dot { background: var(--accent-hi); animation: pulse 1.1s ease-in-out infinite; }

.pill-never { background: var(--neutral-dim); color: var(--text-mid); }
.pill-never .pill-dot { background: var(--text-mid); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------------- Panels / tables ---------------- */

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(23, 27, 36, 0.04), 0 1px 8px rgba(23, 27, 36, 0.03);
}

.panel-title {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 14px;
}

.kv-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  row-gap: 10px;
  font-size: 13px;
}
.kv-grid dt { color: var(--text-low); }
.kv-grid dd { margin: 0; }
.mono { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-mid); word-break: break-all; }

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  text-align: left;
  color: var(--text-low);
  font-weight: 500;
  font-size: 11.5px;
  padding: 0 10px 8px;
  border-bottom: 1px solid var(--border-soft);
}
.data-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr.clickable { cursor: pointer; }
.data-table tr.clickable:hover td { background: var(--bg-hover); }

.log-row td { padding: 0; }
.log-output {
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  background: #0d1117;
  border-top: 1px solid var(--border-soft);
  padding: 14px 16px;
  max-height: 320px;
  overflow-y: auto;
  color: #c9d1d9;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-mid);
}
.empty-state h3 { color: var(--text-hi); font-size: 15px; margin: 0 0 6px; }
.empty-state p { font-size: 13px; margin: 0 0 18px; }

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.badge {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: capitalize;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--neutral-dim);
  color: var(--text-mid);
}
.badge-admin { background: var(--accent-dim); color: var(--accent-hi); }
.badge-deployer { background: var(--warning-dim); color: var(--warning); }
.badge-viewer { background: var(--neutral-dim); color: var(--text-mid); }

/* ---------------- Guide ---------------- */

.guide-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 760px) {
  .guide-columns { grid-template-columns: 1fr; }
}

.guide-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  margin-bottom: 14px;
  display: block;
}

.guide-steps {
  margin: 0;
  padding-left: 20px;
  color: var(--text-mid);
  font-size: 13px;
  line-height: 1.9;
}
.guide-steps code {
  background: var(--bg-panel-raised);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-hi);
}

.app-guide-item {
  background: var(--bg-panel-raised);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.app-guide-item summary {
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-guide-item summary::-webkit-details-marker { display: none; }
.app-guide-item summary::after {
  content: '+';
  color: var(--text-low);
  font-size: 16px;
}
.app-guide-item[open] summary::after { content: '–'; }
.app-guide-item .app-guide-body {
  padding: 0 14px 16px;
  border-top: 1px solid var(--border-soft);
  padding-top: 14px;
}

/* ---------------- Modal ---------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 12, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}

.modal {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  overflow-y: auto;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-soft);
}
.modal-title { margin: 0; font-size: 14.5px; font-weight: 600; }
.modal-close {
  background: none;
  border: none;
  color: var(--text-mid);
  font-size: 20px;
  line-height: 1;
  padding: 2px 6px;
}
.modal-close:hover { color: var(--text-hi); }
.modal-body { padding: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* ---------------- Toasts ---------------- */

.toast-root {
  position: fixed;
  top: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
}

.toast {
  background: var(--bg-panel-raised);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  min-width: 220px;
  max-width: 340px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--fail); }

/* ---------------- Footer ---------------- */

.app-footer {
  margin-top: 32px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--sidebar-gradient);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.app-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}
.app-footer-brand img { width: 18px; height: 18px; object-fit: contain; }
.app-footer-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  gap: 16px;
}

.app-footer-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 10px;
  white-space: nowrap;
}
.app-footer-mini img { width: 14px; height: 14px; object-fit: contain; flex-shrink: 0; }

@media (max-width: 760px) {
  .shell, .shell.sidebar-collapsed { grid-template-columns: 1fr; }
  .sidebar-toggle { display: none; }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
  }
  .brand { padding: 0 8px 0 0; }
  .nav { flex-direction: row; }
  .nav-item span.nav-label { display: inline; }
  .sidebar-foot { margin-top: 0; padding-top: 0; border-top: none; display: flex; align-items: center; gap: 10px; }
  .whoami { display: none; }
  .main { padding: 20px 16px 40px; }
  .kv-grid { grid-template-columns: 110px 1fr; }
}

/* ---------------- Sales Showcase ---------------- */

.showcase-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--sidebar-gradient);
  position: relative;
  overflow: hidden;
}
.showcase-hero::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
}
.showcase-hero-title {
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.showcase-hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 13.5px;
  margin: 0;
}
.showcase-hero .btn-primary {
  position: relative;
  z-index: 1;
}

.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.showcase-tab {
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text-mid);
  font-weight: 600;
  font-size: 12.5px;
  padding: 8px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.showcase-tab:hover { border-color: var(--brand-2); color: var(--text-hi); }
.showcase-tab.active {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(42, 130, 226, 0.3);
}

.showcase-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 20px 4px;
}
.showcase-subtab {
  border: none;
  background: var(--bg-panel-raised);
  color: var(--text-mid);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  cursor: pointer;
}
.showcase-subtab.active { background: var(--accent-dim); color: var(--accent-hi); }

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.showcase-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(23, 27, 36, 0.04), 0 8px 24px rgba(23, 27, 36, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(23, 27, 36, 0.07), 0 18px 40px rgba(23, 27, 36, 0.1);
}

.showcase-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-panel-raised);
  overflow: hidden;
}
.showcase-card-media img, .showcase-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.showcase-card:hover .showcase-card-media img,
.showcase-card:hover .showcase-card-media video {
  transform: scale(1.05);
}
.showcase-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  background: var(--brand-gradient);
}
.showcase-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  pointer-events: none;
}

.showcase-card-body { padding: 16px 18px 18px; }
.showcase-card-title { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.showcase-card-desc {
  font-size: 12.5px;
  color: var(--text-mid);
  margin: 0 0 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.showcase-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

@media (max-width: 760px) {
  .showcase-hero { padding: 18px 20px; }
  .showcase-hero-title { font-size: 19px; }
}

/* ---------------- Confirm dialog ---------------- */

.confirm-body { }
.confirm-message {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 0 0 4px;
}

/* ---------------- Server Health polish ---------------- */

#serverhealth-panel .data-table th {
  background: var(--bg-panel-raised);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
#serverhealth-panel .data-table td {
  padding: 14px 12px;
  vertical-align: top;
}
#serverhealth-panel .data-table tr:hover td {
  background: var(--bg-hover);
}
.health-renew-btn {
  background: var(--brand-gradient) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(42, 130, 226, 0.25);
}
.health-renew-btn:hover { box-shadow: 0 3px 10px rgba(42, 130, 226, 0.35); }
.health-renew-btn:disabled { opacity: 0.6; box-shadow: none; }

/* ---------------- Dashboard card height reduction ---------------- */

.app-card { padding: 14px 16px 12px; }
.app-badge { width: 34px; height: 34px; border-radius: 9px; font-size: 12.5px; }
.app-card-top { margin-bottom: 8px; gap: 6px; }
.app-name { font-size: 14.5px; }
.app-env { font-size: 10.5px; margin-top: 1px; }
.app-desc { margin-bottom: 7px; -webkit-line-clamp: 1; line-height: 1.4; font-size: 12px; }
.app-chip-row { margin-bottom: 7px; gap: 5px; }
.tech-chip { padding: 2px 8px; font-size: 10px; }
.app-info-row { margin-bottom: 7px; gap: 6px; }
.info-pill { padding: 3px 9px; font-size: 11px; }
.app-card-foot { margin-top: 8px; }
.app-grid { gap: 13px; }

/* ---------------- Leave calendar ---------------- */

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.cal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
}
.cal-brand img { width: 26px; height: 26px; object-fit: contain; }
.cal-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cal-month-label {
  font-weight: 700;
  font-size: 15px;
  min-width: 140px;
  text-align: center;
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 11.5px;
  color: var(--text-mid);
  margin-bottom: 14px;
}
.cal-legend span { display: flex; align-items: center; gap: 5px; }
.cal-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-grid-head { margin-bottom: 6px; }
.cal-headcell {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-low);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-bottom: 4px;
}

.cal-cell {
  aspect-ratio: 1 / 0.55;
  border-radius: var(--radius-sm);
  background: var(--bg-panel-raised);
  border: 1px solid var(--border-soft);
  padding: 5px 5px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
  position: relative;
}
.cal-cell-empty { background: transparent; border-color: transparent; }
.cal-daynum { font-size: 12.5px; font-weight: 700; color: var(--text-hi); }
.cal-cell-working { background: rgba(34, 166, 201, 0.09); border-color: rgba(34, 166, 201, 0.35); }
.cal-cell-working .cal-daynum { color: var(--brand-3, #22a6c9); }
.cal-label {
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1.2;
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cal-cell-off { background: var(--neutral-dim); }
.cal-cell-off .cal-daynum { color: var(--text-low); }

.cal-cell-holiday { background: var(--fail-dim); border-color: var(--fail); }
.cal-cell-holiday .cal-daynum, .cal-cell-holiday .cal-label { color: var(--fail); }

.cal-cell-holiday-optional { background: var(--warning-dim); border-color: var(--warning); }
.cal-cell-holiday-optional .cal-daynum, .cal-cell-holiday-optional .cal-label { color: var(--warning); }

.cal-cell-leave-approved { background: var(--success-dim); border-color: var(--success); }
.cal-cell-leave-approved .cal-daynum { color: var(--success); }

.cal-cell-leave-pending { background: var(--accent-dim); border-color: var(--accent); }
.cal-cell-leave-pending .cal-daynum { color: var(--accent-hi); }

.cal-cell-today { box-shadow: 0 0 0 2px var(--accent) inset; }

@media (max-width: 760px) {
  .cal-cell { padding: 3px 3px; }
  .cal-daynum { font-size: 10px; }
  .cal-label { font-size: 7px; }
  .cal-month-label { min-width: auto; font-size: 13px; }
  .cal-legend { gap: 8px; font-size: 10px; }
}

/* ---------------- Team directory ---------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.team-card { text-align: center; }
.team-card-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}
.team-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card-name { font-weight: 700; font-size: 14.5px; margin: 0 0 6px; }

/* ---------------- Holidays: next-holiday banner + collapsible list ---------------- */

.next-holiday-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--brand-gradient);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 16px;
  color: #ffffff;
}
.next-holiday-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2px;
}
.next-holiday-name { font-size: 18px; font-weight: 800; }
.next-holiday-when { text-align: right; }
.next-holiday-days { font-size: 15px; font-weight: 700; }
.next-holiday-date { font-size: 12px; color: rgba(255, 255, 255, 0.75); }

.holiday-list-collapsible {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.holiday-list-collapsible summary {
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-mid);
  background: var(--bg-panel-raised);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  -webkit-tap-highlight-color: transparent;
}
.holiday-list-collapsible summary::-webkit-details-marker { display: none; }
.holiday-list-collapsible summary::after {
  content: '+';
  font-size: 16px;
  color: var(--text-low);
}
.holiday-list-collapsible[open] summary::after { content: '–'; }
.holiday-list-collapsible[open] summary { border-bottom: 1px solid var(--border-soft); }

.holiday-list-body { padding: 8px 16px 12px; }
.holiday-month-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-low);
  padding: 14px 0 6px;
  border-top: 1px solid var(--border-soft);
}
.holiday-month-header:first-child { border-top: none; padding-top: 8px; }

.holiday-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 4px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.holiday-row:hover { background: var(--bg-hover); }
.holiday-row-past { opacity: 0.45; }
.holiday-row-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.holiday-row-mandatory .holiday-row-dot { background: var(--fail); }
.holiday-row-optional .holiday-row-dot { background: var(--warning); }
.holiday-row-name { flex: 1; }
.holiday-row-date { color: var(--text-low); font-size: 12px; }

/* ---------------- Showcase item preview lightbox ---------------- */

.showcase-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 14, 22, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: showcase-lightbox-fade 0.15s ease;
}
.showcase-lightbox.hidden { display: none; }
@keyframes showcase-lightbox-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.showcase-lightbox-inner {
  width: 80vw;
  height: 80vh;
  max-width: 1100px;
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.showcase-lightbox-media {
  flex: 1 1 65%;
  background: #0d1117;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.showcase-lightbox-media img,
.showcase-lightbox-media video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.showcase-lightbox-info {
  flex: 0 0 35%;
  padding: 28px 26px;
  overflow-y: auto;
  border-left: 1px solid var(--border-soft);
}
.showcase-lightbox-title { font-size: 20px; font-weight: 800; margin: 0 0 12px; }
.showcase-lightbox-desc { font-size: 13.5px; color: var(--text-mid); line-height: 1.6; margin: 0 0 20px; }
.showcase-lightbox-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.showcase-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
}
.showcase-lightbox-close:hover { background: rgba(0, 0, 0, 0.7); }

@media (max-width: 760px) {
  .showcase-lightbox-inner { width: 92vw; height: 88vh; flex-direction: column; }
  .showcase-lightbox-media { flex: 1 1 55%; }
  .showcase-lightbox-info { flex: 1 1 45%; border-left: none; border-top: 1px solid var(--border-soft); padding: 18px 18px 24px; }
}
/* ---------------- Outreach ---------------- */

.outreach-channels { display: flex; gap: 14px; margin-bottom: 20px; }
.outreach-channel-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  cursor: pointer;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-mid);
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.outreach-channel-card svg { width: 28px; height: 28px; }
.outreach-channel-card:hover { border-color: var(--brand-2); transform: translateY(-1px); }

/* Email: professional navy, distinct from the generic accent blue used elsewhere */
.outreach-channel-email.active {
  border-color: #1f3a5f;
  background: rgba(31, 58, 95, 0.07);
  color: #1f3a5f;
}
/* WhatsApp: always its real brand green */
.outreach-channel-whatsapp.active {
  border-color: #25D366;
  background: rgba(37, 211, 102, 0.1);
  color: #128c4a;
}

.outreach-tab.active { background: var(--brand-gradient); color: #fff; border-color: transparent; }

/* ---- Rich previews that resemble the real output ---- */

.outreach-preview {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}

/* Email preview: mimics the actual HTML email template */
.outreach-preview-email { background: #f4f6f9; padding: 18px; }
.outreach-preview-email-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #182338;
  padding: 14px 18px;
  border-radius: 8px 8px 0 0;
}
.outreach-preview-email-header img { height: 26px; max-width: 120px; object-fit: contain; }
.outreach-preview-email-header span { color: #fff; font-weight: 700; font-size: 13px; }
.outreach-preview-email-subject {
  background: #ffffff;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 13px;
  color: #111;
  border-bottom: 1px solid #eee;
}
.outreach-preview-email-body {
  background: #ffffff;
  padding: 18px;
  border-radius: 0 0 8px 8px;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.6;
  color: #222;
  min-height: 60px;
}

/* WhatsApp preview: mimics a chat bubble */
.outreach-preview-whatsapp { background: #e5ddd5; padding: 18px; }
.outreach-preview-wa-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #075e54;
  padding: 12px 16px;
  border-radius: 8px 8px 0 0;
  margin: -18px -18px 14px;
}
.outreach-preview-wa-header img { height: 24px; width: 24px; object-fit: contain; border-radius: 50%; background: #fff; padding: 3px; }
.outreach-preview-wa-header span { color: #fff; font-weight: 700; font-size: 13px; }
.outreach-preview-wa-bubble {
  background: #dcf8c6;
  padding: 10px 14px;
  border-radius: 8px;
  white-space: pre-wrap;
  font-size: 13.5px;
  line-height: 1.5;
  color: #111;
  max-width: 85%;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
  min-height: 40px;
}

.outreach-wa-send-btn {
  background: #25D366 !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 600;
}
.outreach-wa-send-btn:hover { background: #1ebe5a !important; }

/* ---------------- Outreach ---------------- */

.outreach-channels { display: flex; gap: 14px; margin-bottom: 20px; }
.outreach-channel-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  cursor: pointer;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-mid);
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.outreach-channel-card svg { width: 28px; height: 28px; }
.outreach-channel-card:hover { border-color: var(--brand-2); transform: translateY(-1px); }

/* Icons always show their real brand color, active or not */
.outreach-channel-email svg { color: #2f6fb8; }
.outreach-channel-whatsapp svg { color: #25D366; }

/* Email: professional navy, distinct from the generic accent blue used elsewhere */
.outreach-channel-email.active {
  border-color: #1f3a5f;
  background: rgba(31, 58, 95, 0.07);
  color: #1f3a5f;
}
/* WhatsApp: always its real brand green */
.outreach-channel-whatsapp.active {
  border-color: #25D366;
  background: rgba(37, 211, 102, 0.1);
  color: #128c4a;
}

.outreach-tab.active { background: var(--brand-gradient); color: #fff; border-color: transparent; }

/* ---- Rich previews that resemble the real output ---- */

.outreach-preview {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}

/* Email preview: mimics the actual HTML email template */
.outreach-preview-email { background: #f4f6f9; padding: 18px; }
.outreach-preview-email-header {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f2f5;
  padding: 14px 18px;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid #e5e8ec;
}
.outreach-preview-email-header img { height: 40px; max-width: 220px; object-fit: contain; }
.outreach-preview-email-subject {
  background: #ffffff;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 13px;
  color: #111;
  border-bottom: 1px solid #eee;
}
.outreach-preview-email-body {
  background: #ffffff;
  padding: 18px;
  border-radius: 0 0 8px 8px;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.6;
  color: #222;
  min-height: 60px;
}

/* WhatsApp preview: mimics a chat bubble */
.outreach-preview-whatsapp { background: #e5ddd5; padding: 18px; }
.outreach-preview-wa-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #075e54;
  padding: 10px 16px;
  border-radius: 8px 8px 0 0;
  margin: -18px -18px 14px;
}
/* The logo is designed for a light background, so it sits in a small
   white badge here rather than directly on WhatsApp's dark green header */
.outreach-preview-wa-logo-badge {
  background: #ffffff;
  border-radius: 6px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
}
.outreach-preview-wa-logo-badge img { height: 20px; max-width: 100px; object-fit: contain; }
.outreach-preview-wa-header span { color: #fff; font-weight: 700; font-size: 13px; }
.outreach-preview-wa-bubble {
  background: #dcf8c6;
  padding: 10px 14px;
  border-radius: 8px;
  white-space: pre-wrap;
  font-size: 13.5px;
  line-height: 1.5;
  color: #111;
  max-width: 85%;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
  min-height: 40px;
}

.outreach-wa-send-btn {
  background: #25D366 !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 600;
}
.outreach-wa-send-btn:hover { background: #1ebe5a !important; }

/* ---- Template picker ---- */
.outreach-template-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.outreach-template-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  transition: all 0.15s ease;
}
.outreach-template-card:hover { border-color: var(--brand-2); }
.outreach-template-card.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent-hi);
}
.outreach-template-icon { font-size: 18px; line-height: 1; }

/* ---- Permissions modal ---- */
.permission-list {
  display: flex;
  flex-direction: column;
}
.permission-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}
.permission-row:last-child { border-bottom: none; }
.permission-row input[type="checkbox"] {
  margin: 3px 0 0;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  cursor: pointer;
  accent-color: var(--accent, #2f6fb8);
}
.permission-row-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
  flex: 1;
}
.permission-row-title {
  font-weight: 700;
  font-size: 13.5px;
} /* CC-STAGE1: closing brace that was missing */

/* header-fix-v2: wider email width, rounded logo corners (overrides earlier rule via cascade order) */
.outreach-preview-email-header img { height: 46px; max-width: 260px; object-fit: contain; border-radius: 8px; }

/* ---- Preview-only button representations (email channel) ---- */
.outreach-preview-btn {
  display: inline-block;
  font-weight: 700;
  font-size: 12.5px;
  padding: 9px 22px;
  border-radius: 22px;
  margin: 4px 2px;
  text-align: center;
}
.outreach-preview-btn-primary {
  background: linear-gradient(135deg, #25D366, #1fa851);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(37, 211, 102, 0.3);
}
.outreach-preview-btn-secondary {
  background: #ffffff;
  color: #1f3a5f;
  border: 2px solid #1f3a5f;
}

/* CC-STAGE1: tabs + page-visibility table */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin: 0 0 16px; overflow-x: auto; }
.tab-btn {
  appearance: none; background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 10px 14px; margin-bottom: -1px; font: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--text-mid); cursor: pointer; white-space: nowrap;
}
.tab-btn:hover { color: var(--text-hi); }
.tab-btn.active { color: var(--accent-hi); border-bottom-color: var(--accent); }
.tab-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius-sm); }
.table-scroll { overflow-x: auto; }
.pv-table th, .pv-table td { text-align: center; white-space: nowrap; }
.pv-table th:first-child, .pv-table td:first-child { text-align: left; }
.pv-cell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; cursor: pointer; }
.pv-cell input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
.pv-cell input:disabled { cursor: default; opacity: 0.55; }
.pv-custom::after { content: ''; position: absolute; top: 2px; right: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--warning); }

/* CC-UI-NAV: sidebar sections + buttons */
.nav {
  gap: 0; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.sidebar-foot { flex-shrink: 0; }
.nav-section { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 8px; }
.nav-section + .nav-section { border-top: 1px solid rgba(255, 255, 255, 0.10); padding-top: 10px; }
.nav-section-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.50); padding: 2px 12px 6px; white-space: nowrap;
}
.nav-item {
  position: relative; min-height: 36px; padding: 0 12px; border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.nav-item svg { width: 18px; height: 18px; opacity: 0.9; }
.nav-item:hover svg, .nav-item.active svg { opacity: 1; }
.nav-item.active { box-shadow: none; background: rgba(255, 255, 255, 0.17); font-weight: 600; }
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px;
  border-radius: 0 3px 3px 0; background: #ffffff;
}
.nav-item:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.85); outline-offset: -2px; }
.shell.sidebar-collapsed .nav-section-label { display: none; }
.shell.sidebar-collapsed .nav-section { padding-bottom: 8px; }
.shell.sidebar-collapsed .nav-section + .nav-section { padding-top: 10px; }
.shell.sidebar-collapsed .nav-item { min-height: 40px; padding: 0; }
@media (max-width: 760px) {
  .nav { flex: none; overflow: visible; }
  .nav-section { flex-direction: row; padding: 0; gap: 2px; }
  .nav-section + .nav-section { border-top: 0; padding-top: 0; margin-left: 6px; padding-left: 6px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
  .nav-section-label { display: none; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 0 16px; font-size: 13.5px; font-weight: 600; line-height: 1.2;
  border-radius: 8px; cursor: pointer; text-decoration: none; letter-spacing: 0.005em;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, color 0.15s, transform 0.08s;
}
a.btn:hover { text-decoration: none; }
.btn:hover { border-color: #c9d1de; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:disabled { transform: none; }
.btn-block { display: flex; width: 100%; }
.btn-sm { min-height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 7px; gap: 5px; }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:focus-visible { outline-color: var(--brand-1); }
.btn-ghost { border-color: var(--border); font-weight: 500; }
.btn-ghost:hover { border-color: #c9d1de; }
.btn-danger { background: var(--bg-panel); border-color: rgba(215, 66, 60, 0.35); }
.btn-danger:hover:not(:disabled) { background: var(--fail-dim); border-color: var(--fail); }
.btn-danger:focus-visible { outline-color: var(--fail); }
.sidebar .btn { min-height: 34px; font-size: 13px; }
.sidebar .btn:hover { border-color: rgba(255, 255, 255, 0.35); }
.sidebar .btn:focus-visible { outline-color: rgba(255, 255, 255, 0.85); }

/* CC-STAGE2: wide HR popup, team/page actions, social cards, leave note */
.modal.modal-wide { max-width: min(980px, 96vw); }
.modal.modal-md { max-width: min(640px, 96vw); }
.modal.modal-wide .modal-body { padding: 20px 24px; }
.hr-modal-body { max-height: 72vh; overflow-y: auto; padding-right: 4px; }
.hr-summary { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-app, #f5f7fb); }
.hr-avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 18px; color: #fff; background: linear-gradient(135deg, var(--brand-1, #2f7fe0), var(--brand-2, #1a9c9c)); overflow: hidden; }
.hr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hr-summary-main { flex: 1; min-width: 0; }
.hr-summary-name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hr-summary-contact { text-align: right; font-size: 13px; }
.hr-tabs { margin-bottom: 16px; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row > .field { flex: 1 1 180px; min-width: 0; }
.hr-sub { margin: 14px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-mid); }
.hr-sub:first-child { margin-top: 0; }
.hr-salary-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hr-line { display: flex; gap: 8px; margin-bottom: 6px; align-items: center; }
.hr-line .row-label { flex: 2; min-width: 0; }
.hr-line .row-amount { flex: 1; min-width: 0; }
.hr-totals { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 14px; }
.hr-totals > div { flex: 1 1 150px; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.hr-totals strong { font-size: 18px; font-family: var(--font-mono); }
.hr-totals .hr-net { border-color: var(--accent); background: rgba(47, 127, 224, 0.07); }
@media (max-width: 720px) { .hr-salary-cols { grid-template-columns: 1fr; } .hr-summary { flex-wrap: wrap; } .hr-summary-contact { text-align: left; } }

.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.team-order-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: 13px; }
.team-move { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.input-with-btn { display: flex; gap: 8px; }
.input-with-btn input { flex: 1; min-width: 0; }

.social-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; }
.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-bottom: 22px; }
.social-card { margin-bottom: 0; display: flex; flex-direction: column; gap: 10px; }
.social-top { display: flex; align-items: center; gap: 12px; }
.social-name { font-weight: 700; font-size: 15px; }
.social-badge { position: relative; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px; overflow: hidden; flex: none; }
.social-badge img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 5px; }
.social-linkedin { background: #0a66c2; }
.social-facebook { background: #1877f2; font-size: 22px; }
.social-instagram { background: linear-gradient(45deg, #f09433, #dc2743 55%, #bc1888); }
.social-url { font-size: 13px; word-break: break-all; min-height: 18px; }
.social-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.social-cred { border-top: 1px dashed var(--border); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.social-cred-row { display: flex; justify-content: space-between; gap: 10px; }
.social-cred .btn { align-self: flex-start; }
.social-cred:empty { display: none; }
.social-url a { color: var(--accent-hi, #2f7fe0); text-decoration: none; font-weight: 500; }
.social-url a:hover { text-decoration: underline; }

.leave-note { margin: 4px 0 0; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; border-radius: var(--radius-md); background: rgba(26, 156, 107, 0.09); border: 1px solid rgba(26, 156, 107, 0.3); }

/* CC-BACKUP */
.bk-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:8px; }
.bk-actions { display:flex; gap:8px; }
.bk-line { margin:6px 0; }
.bk-fail { color:#c0392b; font-size:13px; margin:6px 0; }
.bk-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:10px; }
.bk-table td { vertical-align:top; }
.bk-row-actions { display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
.bk-chip.bk-ok { color:#1e8e5a; }
.bk-chip.bk-warn { color:#b9770e; }
.bk-table { width:100%; border-collapse:collapse; margin-top:10px; }
.bk-table th, .bk-table td { text-align:left; padding:10px 8px; border-bottom:1px solid var(--border, rgba(128,128,128,.25)); font-size:13px; }
.bk-table th { font-weight:600; color:var(--text-muted, inherit); }
.bk-table th:last-child, .bk-table td:last-child { text-align:right; }

/* CC-VAULT */
.vault-tools { display:flex; gap:10px; margin:6px 0 14px; flex-wrap:wrap; }
.vault-search { flex:1 1 220px; padding:9px 12px; border:1px solid var(--border); border-radius:10px; background:var(--bg-card, #fff); font:inherit; color:inherit; }
.vault-tools select { padding:9px 12px; border:1px solid var(--border); border-radius:10px; background:var(--bg-card, #fff); font:inherit; color:inherit; }
.vault-group { margin-bottom:14px; }
.vault-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-top:1px solid var(--border-soft); flex-wrap:wrap; }
.vault-row:first-of-type { border-top:0; }
.vault-main { min-width:200px; flex:1 1 260px; }
.vault-actions { display:flex; gap:6px; flex-wrap:wrap; }
.vault-pwrow { display:flex; gap:6px; }
.vault-pwrow input { flex:1; }
.vault-secret { font-family:var(--font-mono, monospace); letter-spacing:.03em; }

/* ===== CC-STAGE6 ===== */
/* brand profile switch */
.brand-switch { max-width: 560px; }
.brand-switch-head { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.brand-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; }
.brand-option { display:flex; align-items:center; gap:12px; text-align:left; padding:14px; border-radius:12px; border:2px solid var(--border); background:var(--bg-panel-raised); color:var(--text-hi); cursor:pointer; transition:border-color .15s, transform .15s, box-shadow .15s; font:inherit; }
.brand-option:hover { border-color:var(--accent); transform:translateY(-1px); }
.brand-option.active { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-dim); }
.brand-option img { width:44px; height:44px; object-fit:contain; border-radius:10px; background:rgba(255,255,255,.06); padding:4px; }
.brand-option-text { display:flex; flex-direction:column; gap:2px; flex:1; min-width:0; }
.brand-option-text span { font-size:12px; color:var(--text-low); overflow-wrap:anywhere; }
.brand-option-check { color:var(--accent-hi); font-weight:800; width:18px; text-align:center; }
.brand-refresh { animation: brandFade .45s ease; }
@keyframes brandFade { from { opacity:.35; } to { opacity:1; } }

/* leave overview */
.leave-ticker-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.leave-ticker-count { margin-left:auto; font-size:12px; font-weight:700; color:var(--accent-hi); background:var(--accent-dim); padding:3px 10px; border-radius:999px; }
.live-dot { width:9px; height:9px; border-radius:50%; background:#1a9c6b; box-shadow:0 0 0 0 rgba(26,156,107,.6); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 70% { box-shadow:0 0 0 8px rgba(26,156,107,0); } 100% { box-shadow:0 0 0 0 rgba(26,156,107,0); } }
.leave-ticker-body { display:flex; flex-wrap:wrap; gap:10px; }
.leave-chip { display:flex; align-items:center; gap:10px; padding:8px 12px; border-radius:12px; background:var(--bg-panel-raised); border:1px solid var(--border); }
.leave-chip.mine { border-color:var(--accent); }
.leave-chip-av { width:30px; height:30px; border-radius:50%; background:var(--accent-dim); color:var(--accent-hi); display:flex; align-items:center; justify-content:center; font-weight:800; }
.leave-chip-main { display:flex; flex-direction:column; font-size:13px; line-height:1.25; }
.leave-chip-main span { font-size:11.5px; color:var(--text-low); }
.leave-metrics { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-bottom:20px; }
.leave-metrics .panel { margin-bottom:0; }
.leave-metric { text-align:left; }
.leave-metric-num { font-size:34px; font-weight:800; line-height:1.1; color:var(--text-hi); }
.leave-metric-label { font-weight:700; margin:2px 0; }
.leave-metric-pending.has .leave-metric-num { color:#e0a82f; }
.leave-metric-pending[role="button"] { cursor:pointer; }
.leave-metric-pending[role="button"]:hover { border-color:#e0a82f; }
.leave-upcoming { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.leave-upcoming-item { display:flex; align-items:center; gap:12px; padding:8px 10px; border-radius:10px; background:var(--bg-panel-raised); flex-wrap:wrap; }
.leave-date-block { width:44px; text-align:center; border-radius:8px; background:var(--accent-dim); padding:4px 0; display:flex; flex-direction:column; }
.leave-date-block b { font-size:17px; line-height:1.1; color:var(--text-hi); }
.leave-date-block i { font-style:normal; font-size:10.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--accent-hi); }
.leave-upcoming-main { flex:1; min-width:140px; display:flex; flex-direction:column; }
.leave-type-pill { font-size:11.5px; font-weight:700; padding:3px 10px; border-radius:999px; color:var(--c); background:color-mix(in srgb, var(--c) 16%, transparent); border:1px solid color-mix(in srgb, var(--c) 40%, transparent); }
#leave-special-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; margin-bottom:20px; }
.leave-special { text-align:center; margin-bottom:0; }
.leave-special-num { font-size:26px; font-weight:800; }
.leave-special-num span { font-size:14px; color:var(--text-low); font-weight:600; }
.leave-special-private { border-style:dashed; border-width:1px; border-top-style:solid; border-top-width:3px; }
.policy-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:18px; margin-bottom:14px; }
.check-row { display:flex; align-items:center; gap:8px; margin-bottom:8px; cursor:pointer; }
@media (max-width:640px){ .leave-metrics { grid-template-columns:1fr; } }

/* brand & assets */
.asset-card { display:flex; flex-direction:column; }
.asset-thumb { aspect-ratio:4/3; background:var(--bg-panel-raised); display:flex; align-items:center; justify-content:center; overflow:hidden; border-radius:10px 10px 0 0; }
.asset-thumb.wide { aspect-ratio:16/9; }
.asset-thumb img { width:100%; height:100%; object-fit:contain; }
.asset-ext { font-weight:800; letter-spacing:.08em; font-size:20px; color:var(--accent-hi); background:var(--accent-dim); padding:10px 18px; border-radius:10px; }
.asset-body { padding:12px 14px 14px; display:flex; flex-direction:column; gap:4px; }
.asset-title { margin:0; font-size:15px; }
.asset-actions { display:flex; gap:8px; margin-top:8px; }

/* drop zones + HR onboarding docs */
.dropzone { border:2px dashed var(--border); border-radius:12px; padding:16px; text-align:center; cursor:pointer; display:flex; flex-direction:column; gap:3px; transition:border-color .15s, background .15s; margin-bottom:12px; }
.dropzone:hover, .dropzone:focus-visible, .dropzone.drag { border-color:var(--accent); background:var(--accent-dim); outline:none; }
.dropzone.has-file { border-style:solid; border-color:#1a9c6b; }
.dropzone.busy { opacity:.55; pointer-events:none; }
.dropzone-title { font-weight:700; }
.dropzone-sub { font-size:12px; color:var(--text-low); }
.dropzone-file { font-size:12px; color:#1a9c6b; font-family:var(--mono, monospace); }
.hr-doc-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:14px; }
.hr-doc-box { border:1px solid var(--border); border-radius:12px; padding:14px; background:var(--bg-panel-raised); }
.hr-doc-title { display:flex; align-items:center; justify-content:space-between; gap:8px; font-weight:700; margin-bottom:10px; }
.hr-doc-file { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:6px 0; border-bottom:1px solid var(--border); }
.hr-doc-name { flex:1; min-width:100px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.hr-doc-drop { margin-top:10px; }
.hr-doc-drop .dropzone { margin-bottom:0; padding:10px; }
.dir-photo-row { display:flex; align-items:center; gap:16px; margin-bottom:12px; }
.dir-contact { margin-bottom:4px; }
.team-card-bio { font-size:12.5px; color:var(--text-mid, var(--text-low)); margin:8px 0 0; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; text-align:left; }

/* long white-label name must not run under the collapse button */
[data-brand="rdhya"] #sidebar-sitename { font-size:14px; line-height:1.15; white-space:normal; max-width:140px; }

/* ===== CC-STAGE6C: Brand & Assets v2 ===== */
.ax-hero-actions { display:flex; gap:8px; flex-wrap:wrap; }
.ax-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:4px 0 14px; }
.ax-search { flex:1 1 240px; max-width:380px; padding:8px 12px; border-radius:10px; border:1px solid var(--border); background:var(--bg-panel); color:var(--text-hi); font:inherit; }
.ax-sort { padding:8px 10px; border-radius:10px; border:1px solid var(--border); background:var(--bg-panel); color:var(--text-hi); font:inherit; }
.ax-views { display:inline-flex; border:1px solid var(--border); border-radius:10px; overflow:hidden; }
.ax-views button { background:var(--bg-panel); border:0; color:var(--text-low); padding:7px 12px; cursor:pointer; font-size:15px; line-height:1; }
.ax-views button + button { border-left:1px solid var(--border); }
.ax-views button.active { background:var(--accent-dim); color:var(--accent-hi); }
.ax-grid { display:grid; gap:12px; }
.ax-grid.sm { grid-template-columns:repeat(auto-fill,minmax(206px,1fr)); }
.ax-grid.lg { grid-template-columns:repeat(auto-fill,minmax(290px,1fr)); }
.ax-grid.list { grid-template-columns:1fr; gap:6px; }
.ax-card { background:var(--bg-panel); border:1px solid var(--border); border-radius:12px; overflow:hidden; display:flex; flex-direction:column; transition:transform .12s, box-shadow .12s; }
.ax-card:hover { transform:translateY(-1px); box-shadow:0 6px 18px rgba(15,39,66,.12); }
.ax-cover { position:relative; width:100%; height:100%; display:flex; flex-direction:column; justify-content:flex-end; padding:9px 10px; color:#fff; overflow:hidden; background:linear-gradient(135deg,var(--c1),var(--c2)); }
.ax-cover.is-img { background:repeating-conic-gradient(#eef1f6 0 25%, #f8fafc 0 50%) 50% / 16px 16px; }
.ax-cover .ax-ext { position:absolute; top:7px; left:8px; font-weight:800; letter-spacing:.09em; font-size:9.5px; background:rgba(255,255,255,.24); padding:2px 7px; border-radius:6px; z-index:2; }
.ax-cover .ax-ctitle { font-family:Georgia,'Times New Roman',serif; font-weight:700; line-height:1.15; font-size:14px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; text-shadow:0 1px 2px rgba(0,0,0,.25); }
.ax-cover img { position:absolute; inset:0; width:100%; height:100%; z-index:1; }
.ax-img-contain { object-fit:contain; padding:6px; box-sizing:border-box; }
.ax-img-top { object-fit:cover; object-position:top; background:#fff; }
.ax-cover.is-img .ax-ext, .ax-cover:has(.ax-img-top) .ax-ext { background:rgba(15,39,66,.7); }
.ax-cover:has(img) .ax-ctitle { opacity:0; }
.ax-cover-slot { cursor:default; }
.ax-grid.sm .ax-cover-slot { height:92px; } .ax-grid.lg .ax-cover-slot { height:150px; }
.ax-body { padding:8px 10px 9px; display:flex; flex-direction:column; gap:2px; min-width:0; }
.ax-title-row { display:flex; align-items:center; gap:6px; min-width:0; }
.ax-title { margin:0; font-size:13.5px; line-height:1.25; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1; min-width:0; }
.ax-desc { margin:0; font-size:12px; color:var(--text-low); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; line-height:1.3; }
.ax-grid.sm .ax-desc { display:none; }
.ax-meta { margin:0; font-size:11.5px; color:var(--text-low); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ax-actions { display:flex; gap:5px; margin-top:5px; flex-wrap:wrap; }
.ax-actions .btn { padding:3px 8px; font-size:11.5px; }
.ax-actions { flex-wrap:nowrap; gap:4px; }
.showcase-hero .btn-ghost { color:#fff; border-color:rgba(255,255,255,.65); background:rgba(255,255,255,.08); }
.showcase-hero .btn-ghost:hover { background:rgba(255,255,255,.18); }
.ax-badge { font-size:10.5px; font-weight:700; padding:1px 7px; border-radius:999px; flex:none; }
.ax-badge.ok { background:rgba(26,156,107,.14); color:#1a9c6b; } .ax-badge.draft { background:rgba(224,168,47,.18); color:#b9811a; }
/* list view: one slim row per item */
.ax-grid.list .ax-card { flex-direction:row; align-items:center; border-radius:10px; }
.ax-grid.list .ax-cover-slot { width:52px; height:52px; flex:none; }
.ax-grid.list .ax-cover { padding:4px; } .ax-grid.list .ax-ctitle { display:none; } .ax-grid.list .ax-cover .ax-ext { top:3px; left:3px; font-size:7.5px; padding:1px 4px; }
.ax-grid.list .ax-body { flex:1; flex-direction:row; align-items:center; gap:14px; padding:4px 12px; }
.ax-grid.list .ax-title-row { flex:1.4; } .ax-grid.list .ax-desc { display:none; }
.ax-grid.list .ax-meta { flex:1.6; } .ax-grid.list .ax-actions { margin:0; flex:none; flex-wrap:nowrap; }
@media (max-width:700px){ .ax-grid.list .ax-body { flex-wrap:wrap; gap:2px 10px; } .ax-grid.list .ax-meta { flex-basis:100%; order:3; } }
/* documents */
.modal-xl { max-width:1120px !important; width:96vw; }
.doc-bar { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.doc-bar-actions { display:inline-flex; gap:8px; flex-wrap:wrap; }
.doc-read { line-height:1.6; font-size:14.5px; max-width:760px; }
.doc-read h2 { font-size:22px; margin:6px 0 10px; } .doc-read h3 { font-size:17px; margin:20px 0 6px; } .doc-read h4 { font-size:14.5px; margin:14px 0 4px; }
.doc-read p { margin:0 0 10px; } .doc-read ul, .doc-read ol { margin:0 0 12px; padding-left:22px; } .doc-read li { margin:3px 0; }
.doc-read blockquote { margin:0 0 12px; padding:8px 12px; border-left:3px solid var(--accent); background:var(--accent-dim); border-radius:0 8px 8px 0; color:var(--text-mid, var(--text-hi)); }
.doc-read hr { border:0; border-top:1px solid var(--border); margin:16px 0; } .doc-read code { background:var(--bg-panel-raised); padding:1px 5px; border-radius:4px; }
.doc-edit-top { display:flex; gap:12px; flex-wrap:wrap; } .doc-edit-top .field { min-width:160px; }
.doc-edit-split { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.doc-textarea { font-family:ui-monospace,Menlo,Consolas,monospace; font-size:13px; min-height:300px; width:100%; }
.doc-preview { border:1px solid var(--border); border-radius:10px; padding:12px 16px; min-height:300px; max-height:380px; overflow:auto; background:var(--bg-panel); }
.doc-edit-foot { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-top:12px; }
@media (max-width:860px){ .doc-edit-split { grid-template-columns:1fr; } }

/* ===== CC-STAGE8: software access ===== */
.nav-badge { margin-left:auto; min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:#e0a82f; color:#1b1500; font-size:11px; font-weight:800; display:inline-flex; align-items:center; justify-content:center; }
.nav-badge.hidden { display:none; }
.sw-row { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; padding:10px 0; border-top:1px solid var(--border); }
.sw-row-main { display:flex; flex-direction:column; gap:4px; }
.sw-row-actions { display:flex; gap:8px; flex-wrap:wrap; }
.sw-req-list { display:flex; flex-direction:column; gap:10px; }
.sw-req { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; padding:12px 14px; border-radius:12px; background:var(--bg-panel-raised); border:1px solid var(--border); border-left:4px solid #e0a82f; }
.sw-req-actions { display:flex; gap:8px; flex-wrap:wrap; }
.sw-cred { width:100%; border-collapse:collapse; margin-bottom:12px; }
.sw-cred th { text-align:left; font-weight:600; color:var(--text-low); padding:7px 12px 7px 0; width:150px; vertical-align:middle; }
.sw-cred td { padding:7px 0; }
.sw-pw { font-size:16px; font-weight:700; letter-spacing:.02em; }
.sw-note { padding:9px 12px; border-radius:10px; margin-bottom:12px; font-size:13px; }
.sw-note.ok { background:rgba(26,156,107,.12); color:#1a9c6b; }
.sw-hist { margin:0; padding-left:18px; } .sw-hist li { margin:3px 0; }

/* ===== CC-STAGE6C: Brand & Assets v2 ===== */
.ax-hero-actions { display:flex; gap:8px; flex-wrap:wrap; }
.ax-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:4px 0 14px; }
.ax-search { flex:1 1 240px; max-width:380px; padding:8px 12px; border-radius:10px; border:1px solid var(--border); background:var(--bg-panel); color:var(--text-hi); font:inherit; }
.ax-sort { padding:8px 10px; border-radius:10px; border:1px solid var(--border); background:var(--bg-panel); color:var(--text-hi); font:inherit; }
.ax-views { display:inline-flex; border:1px solid var(--border); border-radius:10px; overflow:hidden; }
.ax-views button { background:var(--bg-panel); border:0; color:var(--text-low); padding:7px 12px; cursor:pointer; font-size:15px; line-height:1; }
.ax-views button + button { border-left:1px solid var(--border); }
.ax-views button.active { background:var(--accent-dim); color:var(--accent-hi); }
.ax-grid { display:grid; gap:12px; }
.ax-grid.sm { grid-template-columns:repeat(auto-fill,minmax(206px,1fr)); }
.ax-grid.lg { grid-template-columns:repeat(auto-fill,minmax(290px,1fr)); }
.ax-grid.list { grid-template-columns:1fr; gap:6px; }
.ax-card { background:var(--bg-panel); border:1px solid var(--border); border-radius:12px; overflow:hidden; display:flex; flex-direction:column; transition:transform .12s, box-shadow .12s; }
.ax-card:hover { transform:translateY(-1px); box-shadow:0 6px 18px rgba(15,39,66,.12); }
.ax-cover { position:relative; width:100%; height:100%; display:flex; flex-direction:column; justify-content:flex-end; padding:9px 10px; color:#fff; overflow:hidden; background:linear-gradient(135deg,var(--c1),var(--c2)); }
.ax-cover.is-img { background:repeating-conic-gradient(#eef1f6 0 25%, #f8fafc 0 50%) 50% / 16px 16px; }
.ax-cover .ax-ext { position:absolute; top:7px; left:8px; font-weight:800; letter-spacing:.09em; font-size:9.5px; background:rgba(255,255,255,.24); padding:2px 7px; border-radius:6px; z-index:2; }
.ax-cover .ax-ctitle { font-family:Georgia,'Times New Roman',serif; font-weight:700; line-height:1.15; font-size:14px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; text-shadow:0 1px 2px rgba(0,0,0,.25); }
.ax-cover img { position:absolute; inset:0; width:100%; height:100%; z-index:1; }
.ax-img-contain { object-fit:contain; padding:6px; box-sizing:border-box; }
.ax-img-top { object-fit:cover; object-position:top; background:#fff; }
.ax-cover.is-img .ax-ext, .ax-cover:has(.ax-img-top) .ax-ext { background:rgba(15,39,66,.7); }
.ax-cover:has(img) .ax-ctitle { opacity:0; }
.ax-cover-slot { cursor:default; }
.ax-grid.sm .ax-cover-slot { height:92px; } .ax-grid.lg .ax-cover-slot { height:150px; }
.ax-body { padding:8px 10px 9px; display:flex; flex-direction:column; gap:2px; min-width:0; }
.ax-title-row { display:flex; align-items:center; gap:6px; min-width:0; }
.ax-title { margin:0; font-size:13.5px; line-height:1.25; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1; min-width:0; }
.ax-desc { margin:0; font-size:12px; color:var(--text-low); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; line-height:1.3; }
.ax-grid.sm .ax-desc { display:none; }
.ax-meta { margin:0; font-size:11.5px; color:var(--text-low); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ax-actions { display:flex; gap:5px; margin-top:5px; flex-wrap:wrap; }
.ax-actions .btn { padding:3px 8px; font-size:11.5px; }
.ax-actions { flex-wrap:nowrap; gap:4px; }
.showcase-hero .btn-ghost { color:#fff; border-color:rgba(255,255,255,.65); background:rgba(255,255,255,.08); }
.showcase-hero .btn-ghost:hover { background:rgba(255,255,255,.18); }
.ax-badge { font-size:10.5px; font-weight:700; padding:1px 7px; border-radius:999px; flex:none; }
.ax-badge.ok { background:rgba(26,156,107,.14); color:#1a9c6b; } .ax-badge.draft { background:rgba(224,168,47,.18); color:#b9811a; }
/* list view: one slim row per item */
.ax-grid.list .ax-card { flex-direction:row; align-items:center; border-radius:10px; }
.ax-grid.list .ax-cover-slot { width:52px; height:52px; flex:none; }
.ax-grid.list .ax-cover { padding:4px; } .ax-grid.list .ax-ctitle { display:none; } .ax-grid.list .ax-cover .ax-ext { top:3px; left:3px; font-size:7.5px; padding:1px 4px; }
.ax-grid.list .ax-body { flex:1; flex-direction:row; align-items:center; gap:14px; padding:4px 12px; }
.ax-grid.list .ax-title-row { flex:1.4; } .ax-grid.list .ax-desc { display:none; }
.ax-grid.list .ax-meta { flex:1.6; } .ax-grid.list .ax-actions { margin:0; flex:none; flex-wrap:nowrap; }
@media (max-width:700px){ .ax-grid.list .ax-body { flex-wrap:wrap; gap:2px 10px; } .ax-grid.list .ax-meta { flex-basis:100%; order:3; } }
/* documents */
.modal-xl { max-width:1120px !important; width:96vw; }
.doc-bar { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.doc-bar-actions { display:inline-flex; gap:8px; flex-wrap:wrap; }
.doc-read { line-height:1.6; font-size:14.5px; max-width:760px; }
.doc-read h2 { font-size:22px; margin:6px 0 10px; } .doc-read h3 { font-size:17px; margin:20px 0 6px; } .doc-read h4 { font-size:14.5px; margin:14px 0 4px; }
.doc-read p { margin:0 0 10px; } .doc-read ul, .doc-read ol { margin:0 0 12px; padding-left:22px; } .doc-read li { margin:3px 0; }
.doc-read blockquote { margin:0 0 12px; padding:8px 12px; border-left:3px solid var(--accent); background:var(--accent-dim); border-radius:0 8px 8px 0; color:var(--text-mid, var(--text-hi)); }
.doc-read hr { border:0; border-top:1px solid var(--border); margin:16px 0; } .doc-read code { background:var(--bg-panel-raised); padding:1px 5px; border-radius:4px; }
.doc-edit-top { display:flex; gap:12px; flex-wrap:wrap; } .doc-edit-top .field { min-width:160px; }
.doc-edit-split { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.doc-textarea { font-family:ui-monospace,Menlo,Consolas,monospace; font-size:13px; min-height:300px; width:100%; }
.doc-preview { border:1px solid var(--border); border-radius:10px; padding:12px 16px; min-height:300px; max-height:380px; overflow:auto; background:var(--bg-panel); }
.doc-edit-foot { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-top:12px; }
@media (max-width:860px){ .doc-edit-split { grid-template-columns:1fr; } }

/* ---- CC-STAGE9: notes + presenter ---- */
.ax-note { margin:0 0 10px; padding:7px 11px; border-radius:8px; background:rgba(47,127,224,.09); border:1px solid rgba(47,127,224,.25); color:var(--text-soft, #4b5d78); font-size:12.5px; }
.pv-root { position:fixed; inset:0; z-index:9999; background:#0b1220; display:flex; flex-direction:column; color:#e8eef8; outline:none; }
.pv-top { display:flex; align-items:center; gap:10px; padding:8px 14px; background:rgba(0,0,0,.35); transition:opacity .25s; }
.pv-title { font-weight:600; font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pv-count { font-size:12.5px; opacity:.75; white-space:nowrap; }
.pv-spacer { flex:1; }
.pv-btn { background:rgba(255,255,255,.12); color:#fff; border:1px solid rgba(255,255,255,.2); border-radius:7px; padding:5px 11px; font-size:12.5px; cursor:pointer; text-decoration:none; }
.pv-btn:hover { background:rgba(255,255,255,.22); }
.pv-stage { position:relative; flex:1; min-height:0; display:flex; align-items:center; justify-content:center; padding:10px 56px; }
.pv-img { max-width:100%; max-height:100%; object-fit:contain; background:#fff; box-shadow:0 10px 40px rgba(0,0,0,.5); transition:opacity .15s; }
.pv-img.loading { opacity:.35; }
.pv-msg { position:absolute; font-size:14px; opacity:.85; }
.pv-nav { position:absolute; top:50%; transform:translateY(-50%); width:44px; height:72px; border:0; border-radius:8px; background:rgba(255,255,255,.1); color:#fff; font-size:34px; cursor:pointer; transition:opacity .25s; }
.pv-nav:hover { background:rgba(255,255,255,.22); }
.pv-nav.prev { left:6px; } .pv-nav.next { right:6px; }
.pv-nav.off { opacity:.2; pointer-events:none; }
.pv-bar { height:3px; background:rgba(255,255,255,.12); } .pv-prog { height:100%; background:#4ea1ff; transition:width .2s; }
.pv-root.pv-idle { cursor:none; } .pv-root.pv-idle .pv-top, .pv-root.pv-idle .pv-nav { opacity:0; }
@media (max-width:700px) { .pv-stage { padding:6px 6px; } .pv-nav { display:none; } }

/* ---- CC-STAGE9B: icon buttons, no overflow ---- */
.ax-actions { display:flex; flex-wrap:nowrap; align-items:center; gap:5px; }
.ax-actions .btn { min-height:30px; padding:0 9px; }
.ax-actions .ax-main { flex:1 1 0; min-width:0; display:inline-flex; align-items:center; justify-content:center; gap:6px; white-space:nowrap; overflow:hidden; }
.ax-actions .ax-main span { overflow:hidden; text-overflow:ellipsis; }
.ax-actions .ax-ico { flex:none; width:32px; padding:0; display:inline-flex; align-items:center; justify-content:center; position:relative; }
.ax-svg { flex:none; display:block; }
.ax-wm { position:absolute; top:-5px; right:-5px; font-style:normal; font-size:7.5px; font-weight:700; letter-spacing:.3px; line-height:11px; padding:0 3px; border-radius:6px; background:#2f7fe0; color:#fff; }
.ax-grid.list .ax-actions { min-width:230px; }
.ax-grid.list .ax-actions .ax-main { flex:0 0 auto; padding:0 12px; }
.wd-frame { width:100%; height:68vh; border:1px solid var(--border); border-radius:8px; background:#fff; }
@media (max-width:700px) { .ax-grid.list .ax-actions { min-width:0; width:100%; } }

/* ===== CC-STAGE10: invoices (admin) ===== */
.inv-tabs { margin-bottom:14px; }
.inv-tools { display:flex; gap:10px; margin:0 0 14px; flex-wrap:wrap; align-items:center; }
.inv-tools input[type=search] { flex:1 1 220px; padding:9px 12px; border:1px solid var(--border); border-radius:10px; background:var(--bg-card,#fff); font:inherit; color:inherit; }
.inv-tools select { padding:9px 12px; border:1px solid var(--border); border-radius:10px; background:var(--bg-card,#fff); font:inherit; color:inherit; }
.inv-panel { padding:0; }
.inv-panel .data-table td, .inv-panel .data-table th { vertical-align:middle; }
.inv-actions { white-space:nowrap; text-align:right; }
.inv-actions .btn { margin-left:4px; }
.inv-pill { display:inline-block; padding:2px 10px; border-radius:999px; font-size:12px; font-weight:600; background:#eceff4; color:#475066; }
.inv-pill.inv-issued { background:#fff3d6; color:#8a5a00; }
.inv-pill.inv-paid { background:#dff5e6; color:#17703a; }
.inv-pill.inv-void { background:#f3e2e2; color:#8f2b2b; text-decoration:line-through; }
.inv-pill.inv-draft { background:#e7ecf8; color:#35508f; }
.inv-h { margin:18px 0 6px; font-size:14px; }
.inv-check { display:flex; gap:8px; align-items:center; margin:12px 0 4px; font-size:14px; }
.inv-grid { display:flex; flex-direction:column; gap:6px; margin-bottom:8px; }
.inv-hd, .inv-ln, .inv-rw, .inv-pl { display:grid; gap:6px; align-items:center; }
.inv-hd { font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--text-dim,#6b7488); }
.inv-hd, .inv-ln { grid-template-columns:2fr 2fr 60px 100px 100px 34px; }
.inv-hd.r, .inv-rw { grid-template-columns:2.4fr 1.4fr 100px 130px 1.6fr 34px; }
.inv-hd.p, .inv-pl { grid-template-columns:1.6fr 100px 90px 110px 2fr 34px; }
.inv-ln input, .inv-rw input, .inv-pl input, .inv-rw select, .inv-pl select { width:100%; min-width:0; padding:7px 9px; border:1px solid var(--border); border-radius:8px; background:var(--bg-card,#fff); font:inherit; color:inherit; }
.l-amt { text-align:right; font-variant-numeric:tabular-nums; }
.inv-totals { display:flex; gap:22px; justify-content:flex-end; margin:10px 0 14px; font-size:14px; flex-wrap:wrap; }
.inv-foot { justify-content:space-between; align-items:center; border-top:1px solid var(--border); padding-top:12px; position:sticky; bottom:0; background:var(--bg-card,#fff); }
.inv-foot .btn { margin-left:6px; }
.inv-logo { display:flex; gap:14px; align-items:center; margin-top:10px; flex-wrap:wrap; }
.inv-logo img { height:56px; max-width:220px; object-fit:contain; border:1px solid var(--border); border-radius:8px; padding:6px; background:#fff; }
@media (max-width:760px) {
  .inv-hd { display:none; }
  .inv-ln, .inv-rw, .inv-pl { grid-template-columns:1fr 1fr; padding:8px 0; border-top:1px solid var(--border-soft); }
}
/* ===== end CC-STAGE10 ===== */

/* ===== CC-STAGE10: invoices (admin) ===== */
.inv-tabs { margin-bottom:14px; }
.inv-tools { display:flex; gap:10px; margin:0 0 14px; flex-wrap:wrap; align-items:center; }
.inv-tools input[type=search] { flex:1 1 220px; padding:9px 12px; border:1px solid var(--border); border-radius:10px; background:var(--bg-card,#fff); font:inherit; color:inherit; }
.inv-tools select { padding:9px 12px; border:1px solid var(--border); border-radius:10px; background:var(--bg-card,#fff); font:inherit; color:inherit; }
.inv-panel { padding:0; }
.inv-panel .data-table td, .inv-panel .data-table th { vertical-align:middle; }
.inv-actions { white-space:nowrap; text-align:right; }
.inv-actions .btn { margin-left:4px; }
.inv-pill { display:inline-block; padding:2px 10px; border-radius:999px; font-size:12px; font-weight:600; background:#eceff4; color:#475066; }
.inv-pill.inv-issued { background:#fff3d6; color:#8a5a00; }
.inv-pill.inv-paid { background:#dff5e6; color:#17703a; }
.inv-pill.inv-void { background:#f3e2e2; color:#8f2b2b; text-decoration:line-through; }
.inv-pill.inv-draft { background:#e7ecf8; color:#35508f; }
.inv-h { margin:18px 0 6px; font-size:14px; }
.inv-check { display:flex; gap:8px; align-items:center; margin:12px 0 4px; font-size:14px; }
.inv-grid { display:flex; flex-direction:column; gap:6px; margin-bottom:8px; }
.inv-hd, .inv-ln, .inv-rw, .inv-pl { display:grid; gap:6px; align-items:center; }
.inv-hd { font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--text-dim,#6b7488); }
.inv-hd, .inv-ln { grid-template-columns:2fr 2fr 60px 100px 100px 34px; }
.inv-hd.r, .inv-rw { grid-template-columns:2.4fr 1.4fr 100px 130px 1.6fr 34px; }
.inv-hd.p, .inv-pl { grid-template-columns:1.6fr 100px 90px 110px 2fr 34px; }
.inv-ln input, .inv-rw input, .inv-pl input, .inv-rw select, .inv-pl select { width:100%; min-width:0; padding:7px 9px; border:1px solid var(--border); border-radius:8px; background:var(--bg-card,#fff); font:inherit; color:inherit; }
.l-amt { text-align:right; font-variant-numeric:tabular-nums; }
.inv-totals { display:flex; gap:22px; justify-content:flex-end; margin:10px 0 14px; font-size:14px; flex-wrap:wrap; }
.inv-foot { justify-content:space-between; align-items:center; border-top:1px solid var(--border); padding-top:12px; position:sticky; bottom:0; background:var(--bg-card,#fff); }
.inv-foot .btn { margin-left:6px; }
.inv-logo { display:flex; gap:14px; align-items:center; margin-top:10px; flex-wrap:wrap; }
.inv-logo img { height:56px; max-width:220px; object-fit:contain; border:1px solid var(--border); border-radius:8px; padding:6px; background:#fff; }
@media (max-width:760px) {
  .inv-hd { display:none; }
  .inv-ln, .inv-rw, .inv-pl { grid-template-columns:1fr 1fr; padding:8px 0; border-top:1px solid var(--border-soft); }
}
/* ===== end CC-STAGE10 ===== */
/* ===== CC-STAGE10C ===== */
.inv-head-btns { display:inline-flex; gap:8px; flex-wrap:nowrap; flex-shrink:0; white-space:nowrap; }
.inv-pill.inv-up { background:#ece7f8; color:#4b3a8f; margin-left:6px; font-size:11px; }

/* ===== CC-STAGE11: profile completeness ===== */
.comp-row { display:flex; justify-content:space-between; align-items:baseline; gap:8px; font-size:13px; margin-bottom:4px; }
.comp-bar { height:8px; border-radius:99px; background:var(--border-soft,#edf0f4); overflow:hidden; }
.comp-bar > span { display:block; height:100%; border-radius:99px; background:#2f7fe0; }
.comp-bar.comp-ok > span { background:#2e9e5b; } .comp-bar.comp-mid > span { background:#e0a12f; } .comp-bar.comp-low > span { background:#d9534f; }
.comp-missing { margin-top:6px; font-size:12px; text-align:left; line-height:1.4; }
.hr-comp-wrap { margin:0 0 14px; padding:10px 14px; border:1px solid var(--border); border-radius:12px; background:var(--bg-panel-raised,#f8f9fb); }
.team-comp { margin-top:12px; padding-top:10px; border-top:1px solid var(--border-soft,#edf0f4); }
.team-comp-sum { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; align-items:baseline; padding:12px 16px; margin-bottom:14px; }
/* ===== end CC-STAGE11 ===== */

/* CC-STAGE12: Tasks + Employee ID tag */
.emp-tag { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 8px; padding: 5px 12px; border-radius: 100px; background: var(--brand-gradient); color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; box-shadow: 0 2px 8px rgba(42, 130, 226, 0.28); }
.emp-tag strong { font-family: var(--font-mono); font-size: 13px; font-weight: 700; }
.emp-tag-missing { background: var(--neutral-dim); color: var(--text-low); box-shadow: none; font-weight: 500; }
.task-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 16px; }
.task-sum-card { padding: 14px 16px; }
.task-sum-card h3 { margin: 0 0 10px; font-size: 13.5px; color: var(--text-mid); font-weight: 600; }
.task-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.task-tile { background: var(--bg-panel-raised); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 8px 6px; text-align: center; }
.task-tile-n { font-size: 22px; font-weight: 700; color: var(--text-hi); line-height: 1.1; }
.task-tile-l { font-size: 11px; color: var(--text-mid); margin-top: 2px; }
.task-tile-pend .task-tile-n { color: var(--accent); }
.task-tile-done .task-tile-n { color: var(--success); }
.task-tile-not .task-tile-n { color: var(--warning); }
.task-tile-over .task-tile-n { color: var(--fail); }
.task-tab-n { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 100px; background: rgba(127, 140, 160, 0.18); font-size: 11px; }
.showcase-tab.active .task-tab-n { background: rgba(255, 255, 255, 0.25); }
.task-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 12px; }
.task-chip { border: 1px solid var(--border); background: var(--bg-panel); color: var(--text-mid); font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 100px; cursor: pointer; }
.task-chip.active { background: var(--accent-dim); color: var(--accent-hi); border-color: var(--accent); }
.task-search { margin-left: auto; min-width: 180px; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-panel); color: var(--text-hi); font-size: 13px; }
.task-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 12px 16px; margin-bottom: 10px; }
.task-row-over { border-left: 3px solid var(--fail); }
.task-row-main { min-width: 0; flex: 1; }
.task-title { background: none; border: 0; padding: 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--text-hi); cursor: pointer; text-align: left; }
.task-title:hover { color: var(--accent-hi); text-decoration: underline; }
.task-row-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 4px; }
.task-row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.task-prio, .task-st { display: inline-block; padding: 2px 10px; border-radius: 100px; font-size: 11.5px; font-weight: 700; }
.task-prio-low { background: var(--neutral-dim); color: var(--text-mid); }
.task-prio-medium { background: var(--accent-dim); color: var(--accent-hi); }
.task-prio-high { background: var(--warning-dim); color: var(--warning); }
.task-prio-urgent { background: var(--fail-dim); color: var(--fail); }
.task-st-todo { background: var(--neutral-dim); color: var(--text-mid); }
.task-st-prog { background: var(--accent-dim); color: var(--accent-hi); }
.task-st-done { background: var(--success-dim); color: var(--success); }
.task-st-notdone { background: var(--warning-dim); color: var(--warning); }
.task-review-tag { font-size: 11px; font-weight: 600; color: var(--warning); margin-left: 4px; }
.task-review-back { color: var(--fail); }
.task-due-over { color: var(--fail); font-size: 12.5px; font-weight: 600; }
.task-team-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.task-team-table th, .task-team-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-soft); }
.task-team-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-low); }
.task-field { margin: 12px 0; }
.task-field-label { font-size: 12.5px; font-weight: 500; color: var(--text-mid); margin-bottom: 6px; }
.task-collab-list { display: flex; flex-wrap: wrap; gap: 8px; max-height: 130px; overflow: auto; padding: 2px 0 8px; }
.task-collab, .task-radio { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; border: 1px solid var(--border); border-radius: 100px; background: var(--bg-panel); color: var(--text-hi); font-size: 13px; line-height: 1.2; cursor: pointer; }
.task-collab input, .task-radio input { width: auto; height: auto; margin: 0; padding: 0; flex: none; accent-color: var(--accent); }
.task-collab:has(input:checked), .task-radio:has(input:checked) { border-color: var(--accent); background: var(--accent-dim); }
.task-collab span, .task-radio span { display: inline; margin: 0; font-size: 13px; font-weight: 500; color: inherit; }
.task-radio em { font-style: normal; color: var(--text-low); font-size: 12px; margin-left: 4px; }
.task-email { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--border-soft); border-radius: var(--radius-md); background: var(--bg-panel-raised); }
.task-email-head { font-size: 12.5px; font-weight: 600; color: var(--text-mid); margin-bottom: 8px; }
.task-email-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.task-note { margin: 10px 0 0; }
.task-note label { display: block; font-size: 12.5px; color: var(--text-mid); margin-bottom: 4px; }
.task-note input { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-panel); color: var(--text-hi); }
.task-detail-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.task-desc { white-space: pre-wrap; margin: 0 0 12px; }
.task-status-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 14px 0 8px; }
.task-review-box { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; margin: 10px 0; border-radius: var(--radius-md); background: var(--warning-dim); }
.task-sub { margin: 16px 0 6px; font-size: 13px; color: var(--text-mid); }
.task-feed { max-height: 200px; overflow: auto; border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 4px 10px; }
.task-feed-item { padding: 7px 0; border-bottom: 1px solid var(--border-soft); font-size: 13px; }
.task-feed-item:last-child { border-bottom: 0; }
.task-comment-form { display: flex; gap: 8px; margin-top: 10px; }
.task-comment-form input { flex: 1; padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-panel); color: var(--text-hi); }
@media (max-width: 640px) { .task-row { flex-direction: column; align-items: flex-start; } .task-tiles { grid-template-columns: repeat(3, 1fr); } .task-search { margin-left: 0; width: 100%; } }
