/* ==========================================================================
   OSCP / HTB ASSISTANT — STYLES
   Everything is scoped under #oscp-assistant so this can be dropped into
   an existing site without leaking styles or colliding with host CSS.
   ========================================================================== */

#oscp-assistant {
  /* ---- Design tokens ---- */
  --bg:            #0a0e14;
  --bg-1:          #0d121b;
  --bg-panel:      #121826;
  --bg-card:       #161d2c;
  --bg-card-hover: #1b2436;
  --border:        #222c40;
  --border-soft:   #1a2233;

  --text:          #cfd8e3;
  --text-dim:      #7f8ba3;
  --text-faint:    #566178;

  --accent:        #39ff88;
  --accent-dim:    #1e8a52;
  --accent-glow:   rgba(57, 255, 136, 0.35);

  --danger:        #ff5c6c;
  --warning:       #ffb454;
  --info:          #58a6ff;
  --purple:        #b18cff;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-card: 0 1px 2px rgba(0,0,0,0.4);
  --transition: 180ms cubic-bezier(.4,0,.2,1);

  /* ---- Reset within scope ---- */
  all: initial;
  *, *::before, *::after { box-sizing: border-box; }

  display: block;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  width: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#oscp-assistant * {
  box-sizing: border-box;
  font-family: inherit;
}

#oscp-assistant a { color: var(--accent); text-decoration: none; }
#oscp-assistant h1, #oscp-assistant h2, #oscp-assistant h3, #oscp-assistant h4 {
  margin: 0 0 8px 0;
  font-weight: 600;
  color: #eef2f8;
  letter-spacing: -0.01em;
}
#oscp-assistant p { margin: 0 0 12px 0; color: var(--text-dim); }
#oscp-assistant button { cursor: pointer; }
#oscp-assistant ::selection { background: var(--accent-glow); color: #fff; }

/* Scrollbars */
#oscp-assistant ::-webkit-scrollbar { width: 10px; height: 10px; }
#oscp-assistant ::-webkit-scrollbar-track { background: var(--bg-1); }
#oscp-assistant ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
#oscp-assistant ::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.oa-topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
  padding: 0 20px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 20;
}

.oa-topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.oa-brand-mark {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  border-radius: var(--radius-sm);
  color: #08110c;
  font-size: 14px;
}
.oa-brand-text {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  color: #eef2f8;
}
.oa-brand-accent { color: var(--accent); }

.oa-search {
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  color: var(--text-faint);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.oa-search:focus-within {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(57,255,136,0.08);
}
.oa-search input {
  all: unset;
  flex: 1;
  color: var(--text);
  font-size: 14px;
}
.oa-search kbd {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}

.oa-topbar__actions { display: flex; gap: 8px; margin-left: auto; }
.oa-icon-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  transition: all var(--transition);
}
.oa-icon-btn:hover { color: var(--accent); border-color: var(--accent-dim); background: rgba(57,255,136,0.06); }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.oa-body {
  display: flex;
  min-height: calc(100vh - 60px);
}

.oa-sidebar {
  width: 230px;
  flex-shrink: 0;
  background: var(--bg-1);
  border-right: 1px solid var(--border-soft);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}

.oa-nav-item {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
}
.oa-nav-item i { width: 16px; text-align: center; color: var(--text-faint); transition: color var(--transition); }
.oa-nav-item:hover { background: var(--bg-panel); color: var(--text); }
.oa-nav-item.is-active {
  background: rgba(57,255,136,0.08);
  color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}
.oa-nav-item.is-active i { color: var(--accent); }

.oa-sidebar__footer { margin-top: auto; padding: 10px 12px; }

.oa-main {
  flex: 1;
  padding: 28px 32px 60px;
  min-width: 0;
}

.oa-view { display: none; animation: oa-fade-in 220ms ease; }
.oa-view.is-active { display: block; }

@keyframes oa-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.oa-view-header { margin-bottom: 24px; max-width: 720px; }
.oa-view-header h1 { font-size: 22px; }
.oa-view-header p { font-size: 14px; }

/* ==========================================================================
   BADGES
   ========================================================================== */
.oa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.oa-badge--accent { background: rgba(57,255,136,0.1); color: var(--accent); border-color: rgba(57,255,136,0.25); }
.oa-badge--info    { background: rgba(88,166,255,0.1); color: var(--info); border-color: rgba(88,166,255,0.25); }
.oa-badge--warning { background: rgba(255,180,84,0.1); color: var(--warning); border-color: rgba(255,180,84,0.25); }
.oa-badge--danger  { background: rgba(255,92,108,0.1); color: var(--danger); border-color: rgba(255,92,108,0.25); }
.oa-badge--purple  { background: rgba(177,140,255,0.1); color: var(--purple); border-color: rgba(177,140,255,0.25); }
.oa-badge--neutral { background: var(--bg-card); color: var(--text-dim); border-color: var(--border); }

/* ==========================================================================
   ATTACK WORKFLOW (signature element)
   Vertical connected nodes, animated pulse "signal" traveling down the
   connector line — reads like a script executing top to bottom.
   ========================================================================== */
.oa-workflow {
  position: relative;
  max-width: 480px;
  padding-left: 34px;
}
.oa-workflow::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(var(--border), var(--border));
}
.oa-workflow__pulse {
  position: absolute;
  left: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 2px var(--accent-glow);
  animation: oa-pulse-travel 4.5s linear infinite;
}
@keyframes oa-pulse-travel {
  0%   { top: 0%; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.oa-phase {
  position: relative;
  margin-bottom: 10px;
}
.oa-phase__dot {
  position: absolute;
  left: -34px;
  top: 14px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  transition: all var(--transition);
  z-index: 1;
}
.oa-phase:hover .oa-phase__dot,
.oa-phase.is-open .oa-phase__dot {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 4px rgba(57,255,136,0.08);
}
.oa-phase__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: all var(--transition);
}
.oa-phase__card:hover {
  border-color: var(--accent-dim);
  background: var(--bg-card-hover);
  transform: translateX(2px);
}
.oa-phase__title { display: flex; align-items: center; justify-content: space-between; }
.oa-phase__title strong { font-size: 15px; color: #eef2f8; }
.oa-phase__title i { color: var(--text-faint); transition: transform var(--transition); }
.oa-phase__blurb { margin: 6px 0 0; font-size: 12.5px; color: var(--text-dim); }

/* ==========================================================================
   FILTER ROW / SEARCH CHIPS
   ========================================================================== */
.oa-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.oa-chip {
  all: unset;
  box-sizing: border-box;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
}
.oa-chip:hover { color: var(--text); border-color: var(--accent-dim); }
.oa-chip.is-active {
  background: rgba(57,255,136,0.1);
  border-color: var(--accent-dim);
  color: var(--accent);
}

/* ==========================================================================
   GRID / CARDS (Tool Library)
   ========================================================================== */
.oa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.oa-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}
.oa-card:hover {
  border-color: var(--accent-dim);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.oa-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.oa-card__icon {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(57,255,136,0.08);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.oa-card h3 { font-size: 14.5px; margin-bottom: 4px; }
.oa-card p { font-size: 12.5px; margin-bottom: 8px; }
.oa-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ==========================================================================
   COMMAND LIST
   ========================================================================== */
.oa-command-list { display: flex; flex-direction: column; gap: 10px; }
.oa-command {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}
.oa-command:hover { border-color: var(--accent-dim); }
.oa-command__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
}
.oa-command__head-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.oa-command__head-left strong { font-size: 13.5px; color: #eef2f8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oa-command__head-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.oa-command__chevron { color: var(--text-faint); transition: transform var(--transition); font-size: 12px; }
.oa-command.is-open .oa-command__chevron { transform: rotate(90deg); color: var(--accent); }

.oa-command__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease;
  border-top: 1px solid transparent;
}
.oa-command.is-open .oa-command__body {
  border-top: 1px solid var(--border-soft);
}
.oa-command__body-inner { padding: 14px 16px 16px; display: grid; gap: 10px; }

.oa-fav-btn {
  all: unset;
  box-sizing: border-box;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-faint);
  transition: all var(--transition);
}
.oa-fav-btn:hover { color: var(--warning); background: rgba(255,180,84,0.08); }
.oa-fav-btn.is-fav { color: var(--warning); }

/* ==========================================================================
   CODE BLOCKS + COPY BUTTON
   ========================================================================== */
.oa-code-block {
  background: #080b11;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.oa-code-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.oa-code-block pre {
  margin: 0;
  padding: 12px 14px;
  overflow-x: auto;
}
.oa-code-block code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  white-space: pre-wrap;
  word-break: break-word;
}
.oa-copy-btn {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 11px;
  transition: all var(--transition);
  cursor: pointer;
}
.oa-copy-btn:hover { color: var(--accent); border-color: var(--accent-dim); }

.oa-inline-code {
  font-family: var(--font-mono);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 12.5px;
  color: var(--accent);
}

/* ==========================================================================
   DEFINITION-STYLE ROWS (used inside command bodies / modals)
   ========================================================================== */
.oa-def { display: grid; grid-template-columns: 120px 1fr; gap: 10px; font-size: 13px; align-items: start; }
.oa-def dt { color: var(--text-faint); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.03em; padding-top: 2px; }
.oa-def dd { margin: 0; color: var(--text); }

/* ==========================================================================
   DECISION TREE
   ========================================================================== */
.oa-decision-select { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.oa-decision-card {
  all: unset; box-sizing: border-box;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  width: 260px;
  cursor: pointer;
  transition: all var(--transition);
}
.oa-decision-card:hover { border-color: var(--accent-dim); transform: translateY(-2px); }
.oa-decision-card.is-active { border-color: var(--accent); background: rgba(57,255,136,0.06); }
.oa-decision-card strong { display: block; font-size: 13.5px; color: #eef2f8; margin-bottom: 4px; }
.oa-decision-card span { font-size: 12px; color: var(--text-dim); }

.oa-dnode { position: relative; padding-left: 26px; margin-bottom: 4px; }
.oa-dnode::before {
  content: "";
  position: absolute;
  left: 8px; top: 0; bottom: -4px;
  width: 1px;
  background: var(--border);
}
.oa-dnode:last-child::before { display: none; }
.oa-dnode__bullet {
  position: absolute; left: 3px; top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--accent-dim);
  background: var(--bg);
}
.oa-dnode__box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13px;
}
.oa-dnode__box strong { color: #eef2f8; }
.oa-dnode__answers { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

/* ==========================================================================
   CHEAT SHEETS
   ========================================================================== */
.oa-cheatsheet-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.oa-cheatsheet-block { margin-bottom: 22px; }
.oa-cheatsheet-block h3 { font-size: 14px; color: var(--accent); font-family: var(--font-mono); margin-bottom: 10px; }
.oa-cheatsheet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
}
.oa-cheatsheet-row__cmd { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); overflow-x: auto; white-space: pre; }
.oa-cheatsheet-row__desc { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }

/* ==========================================================================
   FORMS (panels used across generators)
   ========================================================================== */
.oa-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  max-width: 760px;
}
.oa-form-row { display: flex; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.oa-field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 160px; }
.oa-field--grow { flex: 1 1 100%; }
.oa-field label { font-size: 11.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.03em; font-weight: 600; }
.oa-field input, .oa-field select, .oa-field textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text);
  font-size: 13.5px;
  font-family: var(--font-mono);
  transition: border-color var(--transition);
}
.oa-field textarea { font-family: var(--font-mono); resize: vertical; min-height: 70px; }
.oa-field input:focus, .oa-field select:focus, .oa-field textarea:focus {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(57,255,136,0.08);
}

.oa-btn {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #08130d;
  font-weight: 600;
  font-size: 13px;
  transition: all var(--transition);
  cursor: pointer;
}
.oa-btn:hover { background: #52ffa0; box-shadow: 0 0 0 4px rgba(57,255,136,0.12); }
.oa-btn--ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.oa-btn--ghost:hover { border-color: var(--accent-dim); color: var(--accent); background: rgba(57,255,136,0.05); }
.oa-btn--danger { background: transparent; border: 1px solid rgba(255,92,108,0.35); color: var(--danger); }
.oa-btn--danger:hover { background: rgba(255,92,108,0.08); }
.oa-btn--block { width: 100%; justify-content: center; }

.oa-hint { font-size: 12px; color: var(--text-faint); margin-top: 12px; }
.oa-hint code { font-family: var(--font-mono); color: var(--info); }

/* ==========================================================================
   SUPPORT WIDGET
   ========================================================================== */
.oa-support {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.oa-support__toggle {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 20px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,0.4);
  transition: all var(--transition);
}
.oa-support__toggle:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}
.oa-support__toggle i { color: var(--warning); }

.oa-support__panel {
  width: 230px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.45);
}
.oa-support__panel.is-hidden { display: none; }
.oa-support__panel p {
  margin: 0 0 12px 0;
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.5;
}
.oa-support__panel .oa-btn i { font-size: 11px; }

@media (max-width: 760px) {
  .oa-support { right: 12px; bottom: 12px; }
  .oa-support__panel { width: 190px; }
}

/* ==========================================================================
   HASH IDENTIFIER RESULTS
   ========================================================================== */
.oa-hash-results { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.oa-hash-result {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.oa-hash-result strong { color: #eef2f8; font-size: 13.5px; }

/* ==========================================================================
   NOTES
   ========================================================================== */
.oa-notes-layout { display: grid; grid-template-columns: 240px 1fr; gap: 16px; max-width: 900px; }
.oa-notes-sidebar { display: flex; flex-direction: column; gap: 10px; }
.oa-notes-list { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; max-height: 480px; }
.oa-note-item {
  all: unset; box-sizing: border-box;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 12.5px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oa-note-item:hover { border-color: var(--accent-dim); color: var(--text); }
.oa-note-item.is-active { border-color: var(--accent); color: var(--accent); background: rgba(57,255,136,0.06); }

.oa-notes-editor { display: flex; flex-direction: column; gap: 10px; }
.oa-notes-editor input, .oa-notes-editor textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text);
  font-size: 13.5px;
}
.oa-notes-editor input { font-weight: 600; }
.oa-notes-editor textarea { min-height: 340px; font-family: var(--font-mono); resize: vertical; line-height: 1.6; }
.oa-notes-editor input:focus, .oa-notes-editor textarea:focus { outline: none; border-color: var(--accent-dim); }
.oa-notes-editor__actions { display: flex; gap: 10px; }

.oa-empty-state { color: var(--text-faint); font-size: 13px; padding: 24px; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius-md); }

/* ==========================================================================
   MODAL
   ========================================================================== */
.oa-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(4,6,10,0.72);
  backdrop-filter: blur(2px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px;
  z-index: 100;
  overflow-y: auto;
}
.oa-modal-backdrop.is-open { display: flex; animation: oa-fade-in 160ms ease; }
.oa-modal {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  padding: 28px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.oa-modal__close {
  all: unset; box-sizing: border-box;
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-faint);
  transition: all var(--transition);
}
.oa-modal__close:hover { color: var(--danger); background: rgba(255,92,108,0.08); }
.oa-modal__content h2 { font-size: 19px; margin-bottom: 4px; }
.oa-modal__content .oa-modal__subtitle { color: var(--text-faint); font-size: 12.5px; margin-bottom: 18px; }
.oa-modal__content h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--accent); margin: 18px 0 8px; }
.oa-modal__content ul { margin: 0; padding-left: 18px; color: var(--text-dim); font-size: 13px; }
.oa-modal__content li { margin-bottom: 4px; }

/* ==========================================================================
   TOAST
   ========================================================================== */
.oa-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card);
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 200;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.oa-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .oa-notes-layout { grid-template-columns: 1fr; }
  .oa-notes-list { max-height: 160px; }
}

@media (max-width: 760px) {
  .oa-topbar { gap: 10px; padding: 0 12px; }
  .oa-brand-text { display: none; }
  .oa-body { flex-direction: column; }
  .oa-sidebar {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    padding: 10px;
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
  }
  .oa-nav-item { flex-direction: column; gap: 4px; font-size: 10.5px; padding: 8px 10px; white-space: nowrap; }
  .oa-nav-item.is-active { box-shadow: inset 0 -3px 0 var(--accent); }
  .oa-main { padding: 20px 16px 60px; }
  .oa-def { grid-template-columns: 1fr; }
  .oa-def dt { padding-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  #oscp-assistant *, #oscp-assistant *::before, #oscp-assistant *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
