/* ============================================================
   SEO Mission Control — main stylesheet
   ============================================================ */

:root {
  --bg-0:        #0a0e1f;
  --bg-1:        #0f152e;
  --bg-2:        #161e3d;
  --panel:       rgba(20, 28, 56, 0.7);
  --panel-edge:  rgba(120, 160, 255, 0.18);
  --grid:        rgba(120, 160, 255, 0.05);

  --txt-0:       #e2e8f0;
  --txt-1:       #cbd5e1;
  --txt-2:       #94a3b8;
  --txt-3:       #64748b;

  --accent:      #6ee7ff;
  --accent-2:    #ffd166;
  --accent-3:    #c084fc;

  --good:        #4ade80;
  --warn:        #facc15;
  --bad:         #f87171;
  --idle:        #64748b;

  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100vh; background: var(--bg-0); color: var(--txt-0); font-family: var(--font); }
body {
  background-image:
    radial-gradient(circle at 20% 0%, rgba(99, 102, 241, 0.08), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(110, 231, 255, 0.05), transparent 50%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
}

/* ===== App shell ===== */
.app {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: rgba(6, 9, 26, 0.85);
  border-right: 1px solid var(--panel-edge);
  padding: 16px 12px;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
  backdrop-filter: blur(8px);
}
.sidebar .brand {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 8px 16px;
  border-bottom: 1px solid var(--panel-edge);
  margin-bottom: 12px;
}
.sidebar .brand .logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, #6ee7ff, #c084fc);
  display: grid; place-items: center; font-size: 18px;
}
.sidebar .brand h1 {
  margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
}
.sidebar .brand .sub { font-size: 9px; color: var(--txt-2); text-transform: uppercase; letter-spacing: 0.1em; }

.nav-group { margin-bottom: 8px; }
.nav-group-title {
  font-size: 10px; color: var(--txt-3);
  text-transform: uppercase; letter-spacing: 0.10em; font-weight: 600;
  padding: 6px 8px; margin-bottom: 2px;
  display: flex; align-items: center; gap: 6px;
}
.nav-group-toggle {
  cursor: pointer; user-select: none;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.nav-group-toggle:hover { background: rgba(110,231,255,0.06); color: var(--txt-1); }
.nav-group-toggle .chevron {
  font-size: 9px; transition: transform 0.2s;
  display: inline-block; width: 10px; color: var(--txt-3);
}
.nav-group.collapsed .nav-group-toggle .chevron { transform: rotate(-90deg); }
.nav-group.collapsed .nav-group-body { display: none; }
.nav-group-body { padding-left: 4px; }
.nav-item-top {
  font-weight: 600;
  background: rgba(110,231,255,0.04);
}

/* Date picker fixes — buat calendar indicator lebih visible + clickable area lebih besar */
input[type="date"].date-picker-input {
  color-scheme: dark;
  position: relative;
}
input[type="date"].date-picker-input::-webkit-calendar-picker-indicator {
  filter: invert(0.8) brightness(1.4);
  cursor: pointer;
  opacity: 0.9;
  padding: 4px;
}
input[type="date"].date-picker-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 7px;
  color: var(--txt-1); cursor: pointer; user-select: none;
  font-size: 13px;
  transition: all .15s;
  border: 1px solid transparent;
}
.nav-item:hover { background: rgba(110, 231, 255, 0.08); color: var(--txt-0); }
.nav-item.active {
  background: rgba(110, 231, 255, 0.14);
  color: var(--accent);
  border-color: rgba(110, 231, 255, 0.25);
}
.nav-item .icon { width: 18px; text-align: center; font-size: 14px; }
.nav-item .badge {
  margin-left: auto; font-size: 9px;
  background: rgba(74, 222, 128, 0.15); color: var(--good);
  padding: 1px 6px; border-radius: 999px; font-weight: 600;
}
.nav-item .badge.lead { background: rgba(192, 132, 252, 0.15); color: var(--accent-3); }

.sidebar-footer {
  position: sticky; bottom: 0;
  padding-top: 10px; border-top: 1px solid var(--panel-edge);
  font-size: 10px; color: var(--txt-3);
}

.main { display: grid; grid-template-rows: 56px 1fr; min-width: 0; }

.topbar {
  background: rgba(6, 9, 26, 0.6);
  border-bottom: 1px solid var(--panel-edge);
  padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.topbar .crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--txt-1); }
.topbar .crumb .sep { color: var(--txt-3); }
.topbar .crumb .current { color: var(--txt-0); font-weight: 600; }
.topbar .right { display: flex; align-items: center; gap: 12px; }

.content { padding: 20px; overflow-x: hidden; }

/* ===== View switching ===== */
.view { display: none; animation: view-fade .25s ease; }
.view.active { display: block; }
@keyframes view-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Common ===== */
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  backdrop-filter: blur(8px);
  border-radius: 12px;
}

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.pill .dot { width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
.pill.idle    { color: var(--idle);   background: rgba(100, 116, 139, 0.15); }
.pill.working { color: var(--warn);   background: rgba(250, 204, 21, 0.12); }
.pill.done    { color: var(--good);   background: rgba(74, 222, 128, 0.15); }
.pill.error   { color: var(--bad);    background: rgba(248, 113, 113, 0.15); }
.pill.working .dot { animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.5; } }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 8px;
  font-size: 12px; font-weight: 600;
  border: 1px solid rgba(110, 231, 255, 0.3);
  background: rgba(110, 231, 255, 0.1); color: var(--accent);
  transition: all .15s; cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: rgba(110, 231, 255, 0.2); }
.btn.btn-primary { background: var(--accent); color: #0b1020; border-color: var(--accent); }
.btn.btn-primary:hover { background: #93f0ff; }
.btn.btn-danger { background: rgba(248,113,113,.1); color: var(--bad); border-color: rgba(248,113,113,.3); }
.btn.btn-danger:hover { background: rgba(248,113,113,.2); }
.btn.btn-warn { background: rgba(250,204,21,.1); color: var(--warn); border-color: rgba(250,204,21,.3); }
.btn.btn-warn:hover { background: rgba(250,204,21,.2); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.ctrl-input {
  background: rgba(6, 9, 26, 0.6);
  border: 1px solid var(--panel-edge);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--txt-0);
  font-size: 13px;
  width: 100%;
  outline: none;
  transition: border-color .15s;
  font-family: inherit;
}
.ctrl-input:focus { border-color: var(--accent); }
.ctrl-label { font-size: 10px; color: var(--txt-2); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px; display: block; }

.toast-stack {
  position: fixed; top: 70px; right: 20px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 3000; pointer-events: none;
  max-height: calc(100vh - 90px);
  width: 320px;
}
.toast {
  position: relative; pointer-events: auto;
  padding: 9px 14px; border-radius: 8px;
  font-size: 13px;
  background: var(--panel); border: 1px solid var(--panel-edge);
  backdrop-filter: blur(8px);
  animation: toast-in .25s ease, toast-out .3s ease 2.7s forwards;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
@keyframes toast-in  { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }
.toast.ok  { border-color: var(--good); color: var(--good); }
.toast.err { border-color: var(--bad);  color: var(--bad); }
.toast.info{ border-color: var(--accent); color: var(--accent); }

.conn-on  { color: var(--good); }
.conn-off { color: var(--bad);  }

/* ===== Office View ===== */

.office-wrap { padding-bottom: 12px; }
.office-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.office-title { display: flex; align-items: center; gap: 10px; }
.office-title h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: 0.02em; }
.office-title p { margin: 0; font-size: 11px; color: var(--txt-2); }

.office-floor {
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  height: 760px;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(110, 231, 255, 0.08), transparent 50%),
    radial-gradient(ellipse at 70% 100%, rgba(192, 132, 252, 0.06), transparent 50%),
    linear-gradient(180deg, #0a0f24 0%, #060916 100%);
  border: 1px solid var(--panel-edge);
}

/* Decorative furniture for new layout */
.server-rack {
  position: absolute;
  width: 50px; height: 90px;
  background: linear-gradient(180deg, #1f2a4a, #0f172a);
  border: 1px solid rgba(110, 231, 255, 0.3);
  border-radius: 4px;
}
.server-rack::before {
  content: ""; position: absolute; left: 4px; right: 4px; top: 6px; height: 4px;
  background: var(--accent); border-radius: 1px;
  box-shadow: 0 8px 0 #4ade80, 0 16px 0 #facc15, 0 24px 0 var(--accent),
              0 32px 0 #4ade80, 0 40px 0 var(--accent), 0 48px 0 #4ade80,
              0 56px 0 #facc15, 0 64px 0 var(--accent), 0 72px 0 #4ade80;
  animation: server-blink 2s infinite;
}
@keyframes server-blink {
  0%,100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.printer-svg {
  position: absolute;
  width: 50px; height: 38px;
  background: linear-gradient(180deg, #475569, #334155);
  border: 1px solid rgba(110, 231, 255, 0.2);
  border-radius: 4px 4px 2px 2px;
}
.printer-svg::before {
  content: ""; position: absolute; left: 6px; right: 6px; top: 8px; height: 6px;
  background: #1e293b; border-radius: 1px;
}
.printer-svg::after {
  content: "📄"; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%);
  font-size: 10px;
}

.whiteboard {
  position: absolute;
  width: 160px; height: 140px;
  background: linear-gradient(180deg, #f8fafc, #e2e8f0);
  border: 4px solid #94a3b8;
  border-radius: 4px;
  font-size: 11px; color: #1e293b;
  padding: 8px 10px;
  font-family: var(--mono);
  line-height: 1.5;
  overflow: hidden;
  font-weight: 500;
}
.whiteboard::before { content: "📊"; }

.window-pane {
  position: absolute;
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.15), rgba(192, 132, 252, 0.1));
  border: 2px solid rgba(110, 231, 255, 0.3);
  border-radius: 4px;
}
.window-pane::before, .window-pane::after {
  content: ""; position: absolute;
  background: rgba(110, 231, 255, 0.3);
}
.window-pane::before { top: 50%; left: 0; right: 0; height: 1px; }
.window-pane::after  { left: 50%; top: 0; bottom: 0; width: 1px; }

.tv-screen {
  position: absolute;
  width: 70px; height: 38px;
  background: #06091a;
  border: 2px solid #1e293b;
  border-radius: 3px;
}
.tv-screen::before {
  content: ""; position: absolute; inset: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  opacity: 0.4;
  animation: flicker 2s infinite;
}

.bean-bag {
  position: absolute;
  width: 38px; height: 32px;
  background: radial-gradient(ellipse at 30% 30%, var(--accent-2), #d97706);
  border-radius: 50% 50% 45% 45%;
  border: 1px solid rgba(0,0,0,0.2);
}

.water-cooler {
  position: absolute;
  width: 22px; height: 50px;
  background: linear-gradient(180deg, rgba(110,231,255,0.5) 0%, rgba(110,231,255,0.5) 35%, #475569 35%, #334155 100%);
  border: 1px solid rgba(110, 231, 255, 0.3);
  border-radius: 4px 4px 2px 2px;
}
.water-cooler::after {
  content: ""; position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 4px; background: #06091a; border-radius: 1px;
}

.clock {
  position: absolute;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #f8fafc;
  border: 2px solid #94a3b8;
}
.clock::before, .clock::after {
  content: ""; position: absolute;
  background: #1e293b;
  border-radius: 1px;
  transform-origin: bottom;
  left: 50%; bottom: 50%;
}
.clock::before { width: 2px; height: 10px; transform: translateX(-50%) rotate(-45deg); }
.clock::after  { width: 2px; height: 13px; transform: translateX(-50%) rotate(135deg); }

.poster {
  position: absolute;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  border-radius: 3px;
  display: grid; place-items: center;
  font-size: 14px;
  border: 2px solid rgba(255,255,255,0.1);
}
.office-floor::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(110,231,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110,231,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.zone {
  position: absolute;
  border: 1px dashed rgba(110, 231, 255, 0.15);
  border-radius: 8px;
  background: rgba(110, 231, 255, 0.02);
}
.zone-label {
  position: absolute; top: -10px; left: 12px;
  background: var(--bg-0);
  padding: 0 6px; font-size: 9px;
  color: var(--txt-3); text-transform: uppercase; letter-spacing: 0.1em;
}
.desk {
  position: absolute;
  width: 64px; height: 18px;
  background: #1f2a4a;
  border: 1px solid rgba(110, 231, 255, 0.25);
  border-radius: 3px;
}
.desk::after {
  content: ""; position: absolute; inset: 2px 18px 2px 2px;
  background: linear-gradient(180deg, #2a3760, #1f2a4a);
  border-radius: 2px;
}
.monitor {
  position: absolute;
  width: 18px; height: 12px;
  background: #06091a;
  border: 1px solid rgba(110, 231, 255, 0.4);
  border-radius: 1px;
}
.monitor::before {
  content: ""; position: absolute; inset: 1px;
  background: rgba(110, 231, 255, 0.2);
}

.plant {
  position: absolute;
  font-size: 18px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.couch {
  position: absolute;
  width: 90px; height: 22px;
  background: #4c2a4d;
  border-radius: 4px 4px 8px 8px;
  border: 1px solid rgba(192, 132, 252, 0.3);
}
.couch::before {
  content: ""; position: absolute; left: -4px; top: -4px; width: 8px; height: 26px;
  background: #4c2a4d; border-radius: 4px;
}
.couch::after {
  content: ""; position: absolute; right: -4px; top: -4px; width: 8px; height: 26px;
  background: #4c2a4d; border-radius: 4px;
}

.coffee-table {
  position: absolute;
  width: 26px; height: 26px;
  background: #1a2238;
  border: 1px solid rgba(110, 231, 255, 0.2);
  border-radius: 50%;
}

.meeting-table {
  position: absolute;
  width: 110px; height: 50px;
  background: #1f2a4a;
  border: 1px solid rgba(110, 231, 255, 0.25);
  border-radius: 8px;
}

/* Agent character */
.agent {
  position: absolute;
  width: 44px; height: 56px;
  cursor: pointer;
  transition: left 1.4s cubic-bezier(.5,.05,.4,1), top 1.4s cubic-bezier(.5,.05,.4,1);
  z-index: 5;
}
.agent:hover { z-index: 10; }
.agent .char { width: 100%; height: 100%; }
.agent .name-tag {
  position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%);
  font-size: 9px; white-space: nowrap;
  background: rgba(6, 9, 26, 0.85);
  padding: 1px 6px; border-radius: 4px;
  border: 1px solid var(--panel-edge);
  color: var(--txt-1);
  pointer-events: none;
}
.agent .bubble {
  position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%);
  background: #0f172a;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 10px; padding: 5px 9px; border-radius: 8px;
  white-space: nowrap; max-width: 220px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
  box-shadow: 0 0 20px rgba(110, 231, 255, 0.2);
  z-index: 11;
}
.agent .bubble::after {
  content: ""; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--accent);
}
.agent.is-working .bubble,
.agent:hover .bubble { opacity: 1; }

.agent.status-working .body  { animation: bob 0.9s ease-in-out infinite; transform-origin: center bottom; }
.agent.status-working .arm-l { animation: type-l 0.45s ease-in-out infinite alternate; transform-origin: 14px 30px; }
.agent.status-working .arm-r { animation: type-r 0.45s ease-in-out infinite alternate; transform-origin: 30px 30px; animation-delay: 0.22s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes type-l { from { transform: rotate(0); } to { transform: rotate(-12deg); } }
@keyframes type-r { from { transform: rotate(0); } to { transform: rotate(12deg); } }

.agent.status-idle .body { animation: idle-sway 4s ease-in-out infinite; transform-origin: center bottom; }
@keyframes idle-sway { 0%,100% { transform: rotate(-1deg); } 50% { transform: rotate(1deg); } }

.agent .glow {
  position: absolute; inset: -6px; border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.35), transparent 60%);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}
.agent.status-working .glow { opacity: 1; animation: pulse-glow 1.4s ease-in-out infinite; }
@keyframes pulse-glow {
  0%,100% { opacity: 0.4; transform: scale(0.95); }
  50%     { opacity: 0.8; transform: scale(1.1); }
}

.agent .head { transition: fill .3s; }
.agent.status-idle    .head { fill: #94a3b8; }
.agent.status-working .head { fill: #facc15; }
.agent.status-done    .head { fill: #4ade80; }
.agent.status-error   .head { fill: #f87171; }

.agent .status-pip {
  position: absolute; top: -2px; right: 2px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--idle);
  border: 1px solid var(--bg-0);
}
.agent.status-working .status-pip { background: var(--warn); animation: pulse 1.1s ease-in-out infinite; }
.agent.status-done    .status-pip { background: var(--good); }
.agent.status-error   .status-pip { background: var(--bad); }

/* ===== Office: agent detail panel (slide-in from right) ===== */
.office-detail {
  position: absolute; top: 12px; right: 12px;
  width: 280px;
  background: rgba(6, 9, 26, 0.92);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 30;
  backdrop-filter: blur(8px);
}
.office-detail.open { display: block; animation: slide-in .25s ease; }
@keyframes slide-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.office-detail .close-btn {
  position: absolute; top: 6px; right: 8px;
  background: none; border: none; color: var(--txt-2); cursor: pointer; font-size: 16px;
}
.office-detail h4 { margin: 0 0 4px; font-size: 14px; color: var(--accent); }
.office-detail .role { font-size: 10px; color: var(--txt-2); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.office-detail .desc { font-size: 12px; color: var(--txt-1); line-height: 1.5; margin-bottom: 10px; }
.office-detail .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.office-detail .stat { background: rgba(11, 16, 32, 0.6); padding: 6px 8px; border-radius: 6px; }
.office-detail .stat .label { font-size: 9px; color: var(--txt-3); text-transform: uppercase; }
.office-detail .stat .value { font-size: 14px; font-weight: 700; color: var(--txt-0); }

/* ===== Stats row ===== */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat-card { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.stat-card .icon { font-size: 22px; }
.stat-card .label { font-size: 9px; color: var(--txt-2); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-card .value { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ===== Activity feed ===== */
.feed { display: flex; flex-direction: column; gap: 0; max-height: 480px; overflow-y: auto; }
.feed-item {
  border-left: 2px solid transparent;
  padding: 6px 10px;
  margin-bottom: 2px;
  border-radius: 0 6px 6px 0;
  animation: slidein .25s ease;
}
.feed-item:hover { background: rgba(110, 231, 255, 0.04); }
.feed-item.t-start    { border-color: var(--accent); }
.feed-item.t-progress { border-color: var(--warn); }
.feed-item.t-done     { border-color: var(--good); }
.feed-item.t-error    { border-color: var(--bad); }
@keyframes slidein { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: translateX(0); } }

.feed-row { display: flex; align-items: baseline; gap: 8px; }
.feed-time  { font-size: 10px; color: var(--txt-3); font-family: var(--mono); white-space: nowrap; }
.feed-icon  { flex-shrink: 0; }
.feed-agent { font-size: 11px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.feed-msg   { font-size: 13px; color: var(--txt-1); overflow: hidden; text-overflow: ellipsis; }
.feed-worker{ font-size: 11px; color: var(--accent-2); }

/* ===== Clients view ===== */
.client-card {
  background: rgba(11, 16, 32, 0.4);
  border: 1px solid var(--panel-edge);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
}
.kw-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(110, 231, 255, 0.08);
  border: 1px solid rgba(110, 231, 255, 0.2);
  padding: 3px 8px; border-radius: 6px;
  font-size: 11px; margin: 2px;
}
.kw-chip button { color: var(--bad); background: none; border: none; cursor: pointer; padding: 0; font-size: 14px; line-height: 1; }
.pkg-basic      { color: var(--txt-2); }
.pkg-pro        { color: var(--accent); }
.pkg-enterprise { color: var(--accent-2); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--txt-3); }
.empty-state .icon { font-size: 36px; opacity: 0.5; margin-bottom: 10px; }

/* ===== Generic grids ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
}

/* ===== Team view ===== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.team-card { padding: 16px; }
.team-card .head-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.team-card .avatar-mini { width: 44px; height: 44px; }
.team-card .role { font-size: 10px; color: var(--txt-2); text-transform: uppercase; letter-spacing: 0.08em; }
.team-card .name { font-size: 14px; font-weight: 600; }
.team-card .desc { font-size: 12px; color: var(--txt-1); line-height: 1.5; margin: 6px 0; }
.team-card .skills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.team-card .skill-tag {
  font-size: 9px; padding: 2px 6px; border-radius: 4px;
  background: rgba(110, 231, 255, 0.08);
  color: var(--accent);
  border: 1px solid rgba(110, 231, 255, 0.2);
}

details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
