*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:       #161616;
  --sidebar:  #1a1a1a;
  --surface:  #1f1f1f;
  --surface2: #242424;
  --border:   #2a2a2a;
  --border2:  #333333;
  --muted:    #3d3d3d;
  --dim:      #525252;
  --sub:      #737373;
  --body:     #a3a3a3;
  --hi:       #d4d4d4;
  --white:    #f0f0f0;
  --blue:     #2563eb;
  --green:    #22c55e;
  --amber:    #f59e0b;
  --red:      #ef4444;
  --mono:     'JetBrains Mono', monospace;
  --sans:     'Inter', sans-serif;
}
html, body { height: 100%; overflow: hidden; background: #111; font-family: var(--sans); color: var(--body); -webkit-font-smoothing: antialiased; font-size: 13px; letter-spacing: -0.01em; }

/* ── LAYOUT ── */
.app { display: flex; flex-direction: column; height: 100vh; }

/* Global top bar */
.global-bar {
  height: 44px;
  background: var(--sidebar);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  flex-shrink: 0;
  z-index: 50;
}
.logo { display: flex; align-items: center; gap: 8px; margin-right: 8px; }
.logo-mark { color: var(--white); }
.logo-name { font-size: 15px; font-weight: 600; color: var(--white); letter-spacing: -0.02em; }
.global-search {
  flex: 1;
  max-width: 360px;
  position: relative;
}
.global-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.global-search input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px 5px 30px;
  font-size: 12px;
  font-family: var(--sans);
  color: var(--hi);
  outline: none;
}
.global-search input::placeholder { color: var(--muted); }
.global-search input:focus { border-color: var(--border2); }
.search-hint {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
  font-family: var(--mono);
  pointer-events: none;
}
.gbar-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.gbar-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--sub);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.12s, color 0.12s;
  position: relative;
}
.gbar-btn:hover { background: var(--surface); color: var(--hi); }
.gbar-notif-dot {
  position: absolute;
  top: 5px; right: 5px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  border: 1.5px solid var(--sidebar);
}
.gbar-avatar {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: #1e3a8a;
  color: #93c5fd;
  font-size: 10px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  margin-left: 4px;
}
.gbar-divider { width: 1px; height: 18px; background: var(--border); margin: 0 4px; }

/* Body row */
.body-row { display: flex; flex: 1; overflow: hidden; }

/* ── SIDEBAR ── */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Workspace bar */
.ws-bar {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.12s;
  position: relative;
}
.ws-bar:hover { background: var(--surface); }
.ws-avatar {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; color: #fff;
  flex-shrink: 0;
}
.ws-label { flex: 1; min-width: 0; }
.ws-name { font-size: 12.5px; font-weight: 500; color: var(--hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-sub { font-size: 10.5px; color: var(--dim); margin-top: 1px; }
.ws-chevron { color: var(--muted); flex-shrink: 0; }

/* Dropdowns */
.ws-dropdown, .env-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 8px; right: 8px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  z-index: 200;
  overflow: hidden;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.env-dropdown { left: auto; right: 0; width: 180px; }
.ws-dropdown.open, .env-dropdown.open { display: block; }

.ws-opt, .env-opt {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px;
  cursor: pointer;
  transition: background 0.1s;
}
.ws-opt:hover, .env-opt:hover { background: var(--muted); }
.ws-opt.active, .env-opt.active { background: rgba(37,99,235,0.12); }
.ws-opt-dot, .env-opt-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ws-opt-info { flex: 1; min-width: 0; }
.ws-opt-name, .env-opt-name { font-size: 12px; font-weight: 500; color: var(--hi); }
.ws-opt-count { font-size: 10.5px; color: var(--dim); margin-top: 1px; font-family: var(--mono); }
.ws-opt-plan { font-size: 10px; color: var(--sub); background: var(--border); border-radius: 4px; padding: 1px 6px; font-family: var(--mono); }
.ws-dd-footer, .env-dd-footer {
  border-top: 1px solid var(--border);
  padding: 8px 12px;
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--sub); cursor: pointer;
}
.ws-dd-footer:hover, .env-dd-footer:hover { color: var(--hi); }

/* Nav */
.nav { flex: 1; overflow-y: auto; padding: 8px 8px; }
.nav::-webkit-scrollbar { width: 2px; }
.nav::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 8px 8px 4px;
  display: block;
  margin-top: 8px;
}
.nav-section-label:first-child { margin-top: 0; }

.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--sub);
  transition: background 0.1s, color 0.1s, border-color 0.15s;
  position: relative;
  border-left: 2px solid transparent;
  text-decoration: none;
}
.nav-item:hover { background: var(--surface); color: var(--body); border-left-color: var(--border2); }
.nav-item.active { background: var(--surface2); color: var(--hi); border-left-color: var(--blue); }
.nav-item svg { flex-shrink: 0; opacity: 0.7; }
.nav-item.active svg { opacity: 1; }
.nav-badge {
  margin-left: auto;
  font-size: 10px; font-family: var(--mono);
  background: var(--surface2);
  color: var(--sub);
  border-radius: 4px;
  padding: 1px 5px;
}
.nav-item.active .nav-badge { background: rgba(37,99,235,0.15); color: #93c5fd; }
.nav-badge.warn { background: rgba(245,158,11,0.12); color: var(--amber); }

/* Sidebar footer */
.sidebar-foot {
  border-top: 1px solid var(--border);
  padding: 10px 12px;
}
.sidebar-foot-item {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 4px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--sub);
  transition: background 0.1s, color 0.1s, border-color 0.12s;
  border-left: 2px solid transparent;
  text-decoration: none;
}
.sidebar-foot-item:hover { color: var(--hi); border-left-color: var(--border2); }
/* Sign out is an action, not a link, so it needs the button chrome stripped
   back to what the anchors above it already look like. */
button.sidebar-foot-item {
  width: 100%;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  font-family: var(--sans);
  font-size: 12.5px;
  text-align: left;
}

/* ── MAIN ── */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

/* Secondary topbar (workspace breadcrumb + env selector) */
.sub-bar {
  height: 44px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 10px;
  flex-shrink: 0;
}
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.breadcrumb-ws {
  display: flex; align-items: center; gap: 6px;
  cursor: pointer;
  color: var(--body);
  border-radius: 5px;
  padding: 3px 6px;
  transition: background 0.1s;
}
.breadcrumb-ws:hover { background: var(--surface); }
.bc-ws-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.breadcrumb-sep { color: var(--muted); }
.breadcrumb-cur { color: var(--hi); font-weight: 500; }
.sub-bar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; position: relative; }

/* Env selector wrapper */
.env-selector-container { position: relative; }
.env-selector {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--hi);
  cursor: pointer;
  transition: background 0.1s;
}
.env-selector:hover { background: var(--surface2); }
.env-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.btn-create {
  display: flex; align-items: center; gap: 6px;
  background: var(--blue);
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px; font-weight: 500;
  color: #fff;
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.12s;
}
.btn-create:hover { background: #1d4ed8; }
.btn-create-split {
  width: 1px; height: 14px;
  background: rgba(255,255,255,0.2);
}

/* Page content */
.page { flex: 1; overflow-y: auto; padding: 24px 24px 40px; }
.page::-webkit-scrollbar { width: 3px; }
.page::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* Welcome */
.page-heading { font-size: 18px; font-weight: 500; color: var(--white); letter-spacing: -0.025em; margin-bottom: 4px; }
.page-sub { font-size: 12.5px; color: var(--sub); margin-bottom: 20px; }

/* Stats row */
.stats-row {
  display: grid;
  /* One row, equal cells, however many the page renders. The 1px gap over a
     border-coloured background is what draws the dividers, so an empty track
     would show up as a filled block — hence column flow rather than wrapping. */
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}
.stat-cell {
  background: var(--surface);
  padding: 14px 16px;
  border-left: 1px solid var(--border2);
}
.stat-cell:first-child { border-left: none; }
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.stat-label { font-size: 11.5px; color: var(--sub); }
.stat-right-note { font-size: 11px; font-family: var(--mono); color: var(--amber); }
.stat-val { font-size: 20px; font-weight: 500; color: var(--white); letter-spacing: -0.03em; line-height: 1; margin-bottom: 3px; }
.stat-sub-row { font-size: 10.5px; color: var(--dim); display: flex; flex-direction: column; gap: 1px; }
.stat-sub-line { display: flex; justify-content: space-between; }
.stat-delta { font-size: 10.5px; color: var(--green); margin-top: 2px; }
.stat-delta.warn { color: var(--amber); }

/* Section */
.section { margin-bottom: 24px; border: 1px solid var(--border); border-radius: 10px; padding: 16px; background: var(--bg); }
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 4px;
}
.section-title { font-size: 14px; font-weight: 500; color: var(--hi); }
.section-desc { font-size: 12px; color: var(--sub); margin-bottom: 12px; }
.section-link { font-size: 12px; color: var(--blue); cursor: pointer; text-decoration: none; }
.section-link:hover { text-decoration: underline; }

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 8px;
  overflow: hidden;
}

/* Secrets table */
.table-header {
  display: grid;
  grid-template-columns: 1fr 90px 80px 110px 80px;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border2);
  background: var(--bg);
}
.th {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--mono);
}

.secret-row {
  display: grid;
  grid-template-columns: 1fr 90px 80px 110px 80px;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s, border-color 0.12s;
  border-left: 3px solid transparent;
}
.secret-row:last-child { border-bottom: none; }
.secret-row:hover { background: var(--surface2); border-left: 3px solid var(--blue); }
.secret-row.selected { background: rgba(37,99,235,0.07); border-left: 3px solid var(--blue); }

.secret-name-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.s-icon {
  width: 28px; height: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.s-key { font-family: var(--mono); font-size: 12px; color: var(--hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-desc { font-size: 11px; color: var(--dim); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.env-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.env-prod { background: rgba(239,68,68,0.1); color: #fca5a5; border: 1px solid rgba(239,68,68,0.18); }
.env-staging { background: rgba(245,158,11,0.1); color: #fcd34d; border: 1px solid rgba(245,158,11,0.18); }
.env-dev { background: rgba(34,197,94,0.1); color: #86efac; border: 1px solid rgba(34,197,94,0.18); }
.env-all { background: rgba(37,99,235,0.1); color: #93c5fd; border: 1px solid rgba(37,99,235,0.18); }

.ver-cell { font-family: var(--mono); font-size: 11.5px; color: var(--sub); display: flex; align-items: center; gap: 5px; }
.ver-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }

.age-cell { font-family: var(--mono); font-size: 11px; color: var(--sub); }
.age-warn { color: var(--amber); }
.age-overdue { color: var(--red); }

.rotate-key { font-family: var(--mono); color: var(--hi); }
.rotate-generate-row { display: flex; align-items: center; gap: 10px; }
.rotate-generate-note { font-size: 10.5px; color: var(--sub); }
#rotate-secret-value { font-family: var(--mono); }

.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; opacity: 0; transition: opacity 0.1s; }
.secret-row:hover .row-actions, .secret-row.selected .row-actions { opacity: 1; }
.row-btn {
  width: 24px; height: 24px;
  border-radius: 4px;
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--sub);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}
.row-btn:hover { background: var(--muted); color: var(--hi); }

/* Empty state hatch */
.hatch-empty {
  background-color: var(--surface);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    var(--bg) 8px,
    var(--bg) 16px
  );
  border: 1px dashed var(--border2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  min-height: 120px;
  padding: 24px;
}
.hatch-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 12.5px; font-weight: 500;
  color: var(--hi);
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.12s;
}
.hatch-btn:hover { background: var(--muted); }

/* Access log card */
.access-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  transition: border-color 0.12s, background 0.12s;
}
.access-row:hover { border-left-color: var(--blue); background: var(--surface2); }
.access-row:last-child { border-bottom: none; }
.access-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.access-svc { flex: 1; font-family: var(--mono); font-size: 11.5px; color: var(--hi); }
.access-event { font-size: 11px; color: var(--sub); }
.access-time { font-family: var(--mono); font-size: 10.5px; color: var(--dim); margin-left: auto; white-space: nowrap; }

/* Rotation card */
.rotation-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  transition: border-color 0.12s, background 0.12s;
}
.rotation-item:hover { border-left-color: var(--amber); background: var(--surface2); }
.rotation-item:last-child { border-bottom: none; }
.rot-key { font-family: var(--mono); font-size: 12px; color: var(--hi); }
.rot-env { flex-shrink: 0; }
.rot-right { margin-left: auto; text-align: right; }
.rot-due { font-family: var(--mono); font-size: 11px; color: var(--amber); }
.rot-date { font-size: 10.5px; color: var(--dim); margin-top: 1px; }
.rot-track { width: 80px; height: 3px; background: var(--border); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.rot-fill { height: 100%; border-radius: 2px; }

/* Two-col grid */
/* A lone section fills the row rather than leaving half the width empty. */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.two-col > .section { margin-bottom: 0; }

/* List items for teams/projects/environments */
.list-item {
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--surface2); border-left-color: var(--blue); }

/* Status bar */
.status-bar {
  height: 30px;
  background: var(--sidebar);
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 16px;
  gap: 16px;
  flex-shrink: 0;
}
.status-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--dim); }
.status-green { color: var(--green); }
.status-links { margin-left: auto; display: flex; gap: 12px; }
.status-link { font-size: 11px; color: var(--dim); cursor: pointer; text-decoration: none; }
.status-link:hover { color: var(--sub); }

/* Btn ghost */
.btn-ghost {
  display: flex; align-items: center; gap: 5px;
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px; font-weight: 500;
  color: var(--sub);
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.1s, color 0.1s, border-color 0.12s;
  white-space: nowrap;
}
.btn-ghost:hover { background: var(--surface2); color: var(--hi); border-color: var(--dim); }

/* ── GEOMETRIC TABS ── */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 10px;
  overflow: hidden;
}
.tab {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  color: var(--sub);
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  background: transparent;
  border: none;
}
.tab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), #3b82f6);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.15s, transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}
.tab:hover {
  color: var(--hi);
}
.tab:hover::before {
  opacity: 0.12;
  transform: scale(1);
}
.tab.active {
  color: var(--white);
}
.tab.active::before {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}
.tab-badge {
  font-family: var(--mono);
  font-size: 9.5px;
  background: var(--surface2);
  color: var(--sub);
  border-radius: 100px;
  padding: 2px 8px;
  min-width: 22px;
  text-align: center;
  transition: all 0.15s;
}
.tab.active .tab-badge {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}
.tab-badge.warn {
  background: rgba(245,158,11,0.15);
  color: var(--amber);
}
.tab.active .tab-badge.warn {
  background: rgba(245,158,11,0.3);
  color: var(--amber);
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 16px;
  padding: 8px 0;
}
.pagination-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--sub);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s;
  font-size: 12px;
}
.pagination-btn:hover:not(:disabled) {
  background: var(--surface2);
  border-color: var(--border2);
  color: var(--hi);
}
.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pagination-btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.pagination-btn.primary:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1d4ed8;
}
.pagination-ellipsis {
  color: var(--muted);
  padding: 0 4px;
}
.pagination-info {
  font-size: 11.5px;
  color: var(--dim);
  font-family: var(--mono);
  margin-left: 12px;
}

/* ── PAGE-LEVEL BREADCRUMB ── */
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  padding: 0;
  margin-bottom: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.page-breadcrumb .crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sub);
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
  text-decoration: none;
}
.page-breadcrumb .crumb:hover {
  background: var(--surface);
  color: var(--hi);
}
.page-breadcrumb .crumb.active {
  color: var(--hi);
  font-weight: 500;
  cursor: default;
}
.page-breadcrumb .crumb.active:hover {
  background: transparent;
}
.page-breadcrumb .crumb-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.page-breadcrumb .crumb-icon.ws { background: rgba(37,99,235,0.12); color: var(--blue); }
.page-breadcrumb .crumb-icon.team { background: rgba(34,197,94,0.12); color: var(--green); }
.page-breadcrumb .crumb-icon.project { background: rgba(245,158,11,0.12); color: var(--amber); }
.page-breadcrumb .crumb-icon.env { background: rgba(239,68,68,0.12); color: var(--red); }
.page-breadcrumb .crumb-icon.module { background: rgba(139,92,246,0.12); color: #a855f7; }
.page-breadcrumb .crumb-sep {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  margin: 0 2px;
  flex-shrink: 0;
}
.page-breadcrumb .crumb-sep svg {
  width: 12px;
  height: 12px;
  stroke: var(--muted);
  stroke-width: 2.5;
  fill: none;
}

/* ── SETTINGS PAGE ── */
.settings-layout {
  display: flex;
  gap: 20px;
  min-height: calc(100vh - 200px);
}
.settings-nav {
  width: 200px;
  flex-shrink: 0;
}
.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--sub);
  transition: all 0.12s;
  margin-bottom: 2px;
  border: 1px solid transparent;
}
.settings-nav-item:hover {
  background: var(--surface);
  color: var(--body);
}
.settings-nav-item.active {
  background: var(--surface2);
  color: var(--hi);
  border-color: var(--border2);
}
.settings-nav-item svg {
  flex-shrink: 0;
  opacity: 0.6;
}
.settings-nav-item.active svg {
  opacity: 1;
}
.settings-content {
  flex: 1;
  min-width: 0;
}
.settings-section {
  margin-bottom: 24px;
}
.settings-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--hi);
  margin-bottom: 4px;
}
.settings-section-desc {
  font-size: 12.5px;
  color: var(--sub);
  margin-bottom: 16px;
}
.settings-form {
  max-width: 480px;
}
.settings-form .form-group {
  margin-bottom: 14px;
}
.settings-form label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--body);
  margin-bottom: 5px;
}
.settings-form input[type="text"],
.settings-form input[type="email"],
.settings-form input[type="password"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: var(--sans);
  color: var(--hi);
  outline: none;
  transition: border-color 0.12s;
}
.settings-form input:focus {
  border-color: var(--blue);
}
.settings-form input::placeholder {
  color: var(--muted);
}
/* Readonly fields stay selectable — the value is worth copying — but drop the
   focus ring and sit back a shade, so they don't read as editable. */
.settings-form input[readonly] {
  color: var(--sub);
  border-color: var(--border);
  cursor: default;
}
.settings-form input[readonly]:focus {
  border-color: var(--border2);
}
.settings-form .form-hint {
  font-size: 11px;
  color: var(--dim);
  margin-top: 5px;
}
.settings-avatar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.settings-avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: #93c5fd;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.settings-avatar-info {
  flex: 1;
}
.settings-avatar-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}
.settings-avatar-email {
  font-size: 12.5px;
  color: var(--sub);
  margin-top: 2px;
}
.settings-avatar-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--mono);
}
.settings-avatar-badge.verified {
  background: rgba(34,197,94,0.1);
  color: #86efac;
}
.settings-avatar-badge.unverified {
  background: rgba(245,158,11,0.1);
  color: #fcd34d;
}
.settings-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.plan-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.plan-info {
  flex: 1;
}
.plan-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--hi);
}
.plan-desc {
  font-size: 12px;
  color: var(--sub);
  margin-top: 2px;
}
.plan-price {
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.03em;
}
.plan-price span {
  font-size: 12px;
  font-weight: 400;
  color: var(--sub);
}
.billing-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}
.billing-stat {
  background: var(--surface);
  padding: 14px 16px;
}
.billing-stat-label {
  font-size: 11px;
  color: var(--sub);
  margin-bottom: 4px;
}
.billing-stat-val {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}
.billing-stat-sub {
  font-size: 10.5px;
  color: var(--dim);
  margin-top: 2px;
}
.api-key-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.api-key-row:last-child {
  border-bottom: none;
}
.api-key-row:hover {
  background: var(--surface2);
}
.api-key-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.api-key-info {
  flex: 1;
  min-width: 0;
}
.api-key-name {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--hi);
}
.api-key-meta {
  font-size: 11px;
  color: var(--dim);
  margin-top: 1px;
}
.session-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.session-row:last-child {
  border-bottom: none;
}
.session-row:hover {
  background: var(--surface2);
}
.session-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.session-info {
  flex: 1;
  min-width: 0;
}
.session-agent {
  font-size: 12.5px;
  color: var(--hi);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.session-meta {
  font-size: 11px;
  color: var(--dim);
  margin-top: 1px;
}
.session-current {
  font-size: 10px;
  font-family: var(--mono);
  background: rgba(34,197,94,0.1);
  color: #86efac;
  padding: 2px 8px;
  border-radius: 4px;
}
.danger-zone {
  background: rgba(239,68,68,0.03);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: 10px;
  padding: 18px;
}
.danger-zone-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 4px;
}
.danger-zone-desc {
  font-size: 12px;
  color: var(--sub);
  margin-bottom: 12px;
}
.btn-danger {
  background: rgba(239,68,68,0.12);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.25);
  padding: 8px 14px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  font-family: var(--sans);
  transition: background 0.12s, border-color 0.12s, color 0.12s, transform 0.06s;
}
.btn-danger:hover {
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.4);
  color: #fecaca;
}
.btn-danger:active { transform: translateY(0.5px); }
.settings-panel {
  display: none;
}
.settings-panel.active {
  display: block;
}

/* ── VERIFY BANNER ── */
.verify-banner {
  display: none;
  align-items: center;
  gap: 12px;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.18);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.verify-banner.show { display: flex; }
.verify-banner-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(245,158,11,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.verify-banner-text {
  flex: 1;
}
.verify-banner-title {
  font-size: 13px;
  font-weight: 600;
  color: #fcd34d;
}
.verify-banner-desc {
  font-size: 12px;
  color: var(--sub);
  margin-top: 1px;
}
.btn-verify {
  background: rgba(245,158,11,0.15);
  color: #fcd34d;
  border: 1px solid rgba(245,158,11,0.25);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--sans);
  transition: background 0.12s;
  white-space: nowrap;
}
.btn-verify:hover { background: rgba(245,158,11,0.25); }
.verify-banner-close {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.1s;
}
.verify-banner-close:hover { color: var(--hi); }

/* ── SECRET ROW ACTIONS ── */
.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.12s;
}
.secret-row:hover .row-actions { opacity: 1; }
.secret-action-btn {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--sub);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.1s, color 0.1s, border-color 0.12s;
  position: relative;
}
.secret-action-btn:hover {
  background: var(--muted);
  color: var(--hi);
  border-color: var(--dim);
}
.secret-action-btn[title]::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--hi);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
  z-index: 10;
}
.secret-action-btn:hover[title]::after {
  opacity: 1;
}

/* ── SIDE PANEL (Versions / Logs) ── */
.side-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 9000;
  display: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.side-panel-overlay.open {
  display: block;
  opacity: 1;
}
.side-panel {
  position: fixed;
  top: 0;
  right: -440px;
  width: 440px;
  max-width: 92vw;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 9001;
  display: flex;
  flex-direction: column;
  transition: right 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: -8px 0 32px rgba(0,0,0,0.4);
}
.side-panel.open {
  right: 0;
}
.side-panel-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.side-panel-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--hi);
}
.side-panel-subtitle {
  font-size: 11.5px;
  color: var(--sub);
  margin-top: 1px;
}
.side-panel-close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s, color 0.1s;
}
.side-panel-close:hover { background: var(--muted); color: var(--hi); }
.side-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}
.side-panel-body::-webkit-scrollbar { width: 3px; }
.side-panel-body::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
.side-panel-empty {
  padding: 32px 18px;
  text-align: center;
  color: var(--sub);
  font-size: 12.5px;
}
.version-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.version-item:hover { background: var(--surface2); }
.version-item:last-child { border-bottom: none; }
.version-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: #93c5fd;
  flex-shrink: 0;
}
.version-info {
  flex: 1;
  min-width: 0;
}
.version-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--hi);
}
.version-meta {
  font-size: 11px;
  color: var(--dim);
  margin-top: 1px;
}
.log-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.log-item:hover { background: var(--surface2); }
.log-item:last-child { border-bottom: none; }
.log-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.log-info {
  flex: 1;
  min-width: 0;
}
.log-action {
  font-size: 12px;
  font-weight: 500;
  color: var(--hi);
}
.log-meta {
  font-size: 11px;
  color: var(--dim);
  margin-top: 1px;
  font-family: var(--mono);
}
.log-time {
  font-size: 10.5px;
  color: var(--dim);
  white-space: nowrap;
  margin-top: 2px;
}

/* ── Modals ── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(6,6,6,0.66);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
  animation: modal-backdrop-in 0.16s ease-out;
}
.modal-backdrop.open { display: flex; }

.modal {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  width: 420px;
  max-width: 100%;
  max-height: min(86vh, 780px);
  overflow-y: auto;
  overscroll-behavior: contain;
  /* No bottom padding — .modal-actions is a full-bleed footer that supplies it. */
  padding: 22px 22px 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.045),
    0 24px 60px -12px rgba(0,0,0,0.75),
    0 6px 16px rgba(0,0,0,0.4);
  color: var(--body);
  animation: modal-in 0.22s cubic-bezier(0.16, 0.9, 0.3, 1);
}

.modal h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  margin: 0 30px 6px 0;
}
.modal p { margin-bottom: 18px; color: var(--sub); font-size: 12.5px; line-height: 1.55; }

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 26px; height: 26px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dim);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.modal-close:hover { background: var(--surface2); color: var(--hi); }

.modal .form-row { margin-bottom: 12px; }
.modal .form-row:last-of-type { margin-bottom: 0; }
.modal label { display: block; font-size: 12px; font-weight: 500; color: var(--body); margin-bottom: 6px; }

.modal input[type="text"],
.modal input[type="email"],
.modal input[type="password"],
.modal textarea,
.modal select {
  width: 100%;
  padding: 9px 11px;
  border-radius: 7px;
  border: 1px solid var(--border2);
  background: var(--bg);
  color: var(--hi);
  font: 400 12.5px var(--sans);
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s, background-color 0.12s;
}
.modal input::placeholder, .modal textarea::placeholder { color: var(--muted); }
.modal input:hover, .modal textarea:hover, .modal select:hover { border-color: var(--dim); }
.modal input:focus, .modal textarea:focus, .modal select:focus {
  border-color: rgba(37,99,235,0.55);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.13);
  background-color: var(--surface);
}
.modal textarea {
  min-height: 88px;
  resize: vertical;
  font: 400 12px/1.55 var(--mono);
}
/* Native select chrome is unstyleable on dark; draw our own chevron. */
.modal select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 30px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.modal select option { background: var(--surface); color: var(--hi); }

.modal .modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  margin: 20px -22px 0;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  background: var(--surface2);
  border-radius: 0 0 11px 11px;
}

@keyframes modal-backdrop-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98) }
  to   { opacity: 1; transform: none }
}
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal { animation: none; }
}
@media (max-width: 520px) {
  .modal-backdrop { padding: 12px; align-items: flex-end; }
  .modal { width: 100%; }
  .modal .modal-actions > button { flex: 1; }
}

.secret-mode-tabs { display:flex; gap:4px; margin:0 0 14px; padding:3px; background:var(--bg); border:1px solid var(--border); border-radius:7px; }
.secret-mode-tab { flex:1; padding:7px 10px; border:0; border-radius:5px; background:transparent; color:var(--sub); cursor:pointer; font:500 12px var(--sans); transition: background 0.12s, color 0.12s; }
.secret-mode-tab:hover { color: var(--hi); }
.secret-mode-tab.active { background:var(--surface2); color:var(--hi); box-shadow:0 1px 2px rgba(0,0,0,0.25); }
.btn-primary { background: var(--blue); color: white; border: 1px solid transparent; padding: 8px 14px; border-radius: 7px; cursor: pointer; font-family: var(--sans); font-size: 12.5px; font-weight: 500; transition: background 0.12s, transform 0.06s; }
.btn-primary:hover { background: #1d4ed8; }
.btn-primary:active { transform: translateY(0.5px); }
.btn-secondary { background: transparent; color: var(--body); border: 1px solid var(--border2); padding: 8px 14px; border-radius: 7px; cursor: pointer; font-family: var(--sans); font-size: 12.5px; font-weight: 500; transition: background 0.1s, color 0.1s, transform 0.06s; }
.btn-secondary:hover { background: var(--surface); color: var(--hi); border-color: var(--dim); }
.btn-secondary:active { transform: translateY(0.5px); }
.btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-danger:focus-visible {
  outline: 2px solid rgba(37,99,235,0.55);
  outline-offset: 1px;
}
.btn-primary:disabled, .btn-secondary:disabled, .btn-danger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.expiry-opt {
  display: inline-flex; align-items: center;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border2);
  background: var(--bg);
  color: var(--sub);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
  user-select: none;
}
.expiry-opt:hover { background: var(--surface2); color: var(--hi); }
.expiry-opt.active { background: rgba(37,99,235,0.12); border-color: rgba(37,99,235,0.35); color: #93c5fd; }

/* Workspace create modal avatar upload */
.ws-avatar-upload-area {
  width: 100%;
  border: 2px dashed var(--border2);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.ws-avatar-upload-area:hover {
  border-color: var(--blue);
  background: rgba(37,99,235,0.04);
}
.ws-avatar-upload-area.has-image {
  border-style: solid;
  border-color: var(--border2);
  padding: 0;
}
.ws-avatar-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.ws-avatar-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--sub);
  font-size: 12px;
}
.ws-avatar-upload-placeholder svg {
  opacity: 0.5;
}
.ws-avatar-upload-placeholder .upload-hint {
  font-size: 10.5px;
  color: var(--dim);
}
.ws-avatar-preview {
  width: 100%;
  aspect-ratio: 1;
  max-height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.ws-avatar-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  border-radius: 8px;
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
}
.ws-avatar-upload-area.has-image:hover .ws-avatar-preview-overlay {
  opacity: 1;
}

/* ── Skeleton loading ── */
/* Skeleton loading styles */
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0.02) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: 6px; }
.skeleton-row { height: 14px; margin: 8px 0; }
.skeleton-card { padding: 12px; }
@keyframes shimmer { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }
