/* DISARM Tagger — layout on top of the vendored ARGUS desk shell (desk.css).
   Only J-LAB accent override + the tagger-specific pieces live here. */

/* J-LAB accent: amber-rose (per ARGUS design system, --accent-h: 48). */
:root {
  --accent:    oklch(0.76 0.15 48);
  --accent-2:  oklch(0.68 0.17 30);
  --accent-h:  48;
  --accent-glow: oklch(0.76 0.15 48 / 0.28);
  --accent-soft: oklch(0.76 0.15 48 / 0.12);
}

/* ---- input panel (case description + links) ---- */
.panel { border: 1px solid var(--line); background: var(--bg-2); border-radius: 8px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.panel > .ph { display: flex; align-items: center; gap: 9px; font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid); }
.panel > .ph svg { width: 15px; height: 15px; color: var(--accent); }

.case-input {
  width: 100%; min-height: 160px; resize: vertical;
  background: var(--bg); border: 1px solid var(--line); border-radius: 7px;
  padding: 13px 15px; color: var(--fg); font-family: "Space Grotesk", sans-serif;
  font-size: 14px; line-height: 1.55;
}
.case-input::placeholder { color: var(--dim); }
.case-input:focus { border-color: var(--accent); outline: none; }

.links-wrap { display: flex; flex-direction: column; gap: 7px; }
.link-row { display: flex; gap: 8px; align-items: center; }
.link-row input {
  flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 11px; color: var(--fg); font-family: "IBM Plex Mono", monospace; font-size: 12px;
}
.link-row input:focus { border-color: var(--accent); outline: none; }
.link-row .rm { color: var(--dim); width: 28px; height: 28px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; }
.link-row .rm:hover { color: var(--accent-2); border-color: var(--accent-2); }
.link-add { align-self: flex-start; font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }

.run-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-run { display: inline-flex; align-items: center; gap: 9px; background: var(--accent); color: var(--bg); border: 0; border-radius: 7px; padding: 11px 18px; font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: filter .15s; }
.btn-run:hover { filter: brightness(1.08); }
.btn-run:disabled { opacity: 0.5; cursor: not-allowed; }
.engine-badge { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.06em; color: var(--mid); text-transform: uppercase; }

.btn-line { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 6px; padding: 8px 13px; font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); cursor: pointer; transition: border-color .15s, color .15s; }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn-line:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-line svg { width: 14px; height: 14px; }

/* ---- similar documented cases ---- */
.cases-list { display: flex; flex-direction: column; gap: 9px; overflow-y: auto; }
.case-item { border: 1px solid var(--line); background: var(--bg); border-radius: 7px; padding: 12px 14px; }
.case-item .ci-head { display: flex; align-items: baseline; gap: 9px; justify-content: space-between; }
.case-item .ci-name { font-size: 14px; font-weight: 600; color: var(--fg); }
.case-item .ci-meta { font-family: "IBM Plex Mono", monospace; font-size: 10px; color: var(--dim); letter-spacing: 0.05em; white-space: nowrap; }
.case-item .ci-sum { font-size: 12.5px; line-height: 1.5; color: var(--fg-2); margin-top: 6px; }
.case-item .ci-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--accent); }
.case-item .ci-link svg { width: 13px; height: 13px; }

.empty-hint { color: var(--dim); font-size: 13px; line-height: 1.55; }

/* ---- three analysis columns ---- */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
@media (max-width: 980px) { .cols3 { grid-template-columns: 1fr; } }
.acol { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.acol-h { display: flex; align-items: center; gap: 9px; font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid); padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.acol-h svg { width: 15px; height: 15px; color: var(--accent); }
.acol-h .n { margin-left: auto; color: var(--dim); }

/* expandable analysis item (technique / tactic / counter) */
.aitem { border: 1px solid var(--line); background: var(--bg-2); border-radius: 7px; padding: 12px 13px; transition: border-color .15s; }
.aitem .ai-head { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.aitem .ai-id { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; color: var(--dim); white-space: nowrap; flex: 0 0 auto; }
.aitem .ai-name { font-size: 13.5px; font-weight: 600; color: var(--fg); flex: 1; min-width: 0; line-height: 1.3; }
.aitem .ai-chev { font-family: "IBM Plex Mono", monospace; color: var(--mid); flex: 0 0 auto; }
.aitem .ai-why { font-size: 12px; line-height: 1.5; color: var(--fg-2); margin-top: 7px; }
.aitem .ai-body { max-height: 0; overflow: hidden; opacity: 0; font-size: 12.5px; line-height: 1.55; color: var(--mid); transition: max-height .2s ease, opacity .2s ease, margin .2s ease; }
.aitem.open .ai-body { max-height: 460px; opacity: 1; margin-top: 9px; }
.aitem:hover { border-color: var(--line); }
.aitem.open { border-color: oklch(0.76 0.15 48 / 0.4); }

/* technique confirm state */
.aitem.tech.confirmed { border-left: 3px solid var(--accent); }
.conf-pill { font-family: "IBM Plex Mono", monospace; font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; border: 1px solid currentColor; flex: 0 0 auto; }
.conf-pill.high { color: var(--sem-global); } .conf-pill.medium { color: var(--sem-facts); } .conf-pill.low { color: var(--dim); }
.aitem .ai-actions { margin-top: 9px; display: flex; gap: 8px; }
.mini { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 9px; border: 1px solid var(--line); border-radius: 5px; color: var(--fg-2); cursor: pointer; }
.mini:hover { border-color: var(--accent); color: var(--accent); }
.mini.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* counter color-coding: suggested vs neutral */
.aitem.counter.suggested { border-left: 3px solid var(--sem-global); }
.aitem.counter .tag-suggested { color: var(--sem-global); font-family: "IBM Plex Mono", monospace; font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 6px; border: 1px solid currentColor; border-radius: 3px; flex: 0 0 auto; }

/* loading */
.loading { display: inline-flex; align-items: center; gap: 9px; color: var(--fg-2); font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.06em; }
.loading .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 1.2s infinite; }

.disclaimer-bar { display: inline-flex; align-items: center; gap: 8px; font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sem-facts); border: 1px solid currentColor; border-radius: 5px; padding: 7px 12px; }

.attrib-foot { margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 12px; line-height: 1.6; color: var(--dim); max-width: 70ch; }
.attrib-foot a { color: var(--mid); text-decoration: underline; text-underline-offset: 2px; }
.attrib-foot a:hover { color: var(--accent); }
