/* Attack playbook layout — the built bundle has no .atk-* rules, so rows collapse over the filter. */
.public-attack-page .public-attack-layout {
  grid-template-columns: 268px minmax(0, 1fr) !important;
  gap: 1rem !important;
  align-items: start !important;
}

.public-attack-page .public-attack-filters {
  z-index: 5;
  background: linear-gradient(180deg, rgba(16, 24, 36, 0.98), rgba(10, 16, 26, 0.98));
  border-radius: 16px;
  padding: 0.85rem !important;
}

.public-attack-page .public-tactic-list button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-attack-page .atk-list {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
  z-index: 1;
}

.public-attack-page .atk-row {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(130, 170, 220, 0.14);
  background: linear-gradient(165deg, rgba(18, 28, 42, 0.96), rgba(8, 14, 24, 0.94));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.public-attack-page .atk-row.is-open {
  border-color: rgba(34, 211, 238, 0.38);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(34, 211, 238, 0.08);
}

.public-attack-page .atk-row.covered {
  box-shadow: inset 3px 0 0 #2dd4bf, 0 10px 28px rgba(0, 0, 0, 0.22);
}

.public-attack-page .atk-row-main {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: center;
  text-align: start;
  background: transparent;
  color: inherit;
  border: 0;
  padding: 0.9rem 1rem;
  cursor: pointer;
  font: inherit;
}

.public-attack-page .atk-row-main:hover {
  background: rgba(34, 211, 238, 0.04);
}

.public-attack-page .atk-row-ids {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.public-attack-page .atk-row-ids code {
  color: #fdba74;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.public-attack-page .atk-row-ids strong {
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-attack-page .atk-row-ids em {
  color: #91a3bb;
  font-style: normal;
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-attack-page .atk-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.public-attack-page .tag-tactic,
.public-attack-page .tag-sub,
.public-attack-page .tag-cov {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.72rem;
  line-height: 1.4;
  border: 1px solid transparent;
  white-space: nowrap;
}

.public-attack-page .tag-tactic {
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.28);
}

.public-attack-page .tag-sub {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.22);
}

.public-attack-page .tag-sub.is-empty {
  visibility: hidden;
}

.public-attack-page .tag-cov {
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.22);
}

.public-attack-page .tag-cov.on {
  color: #5eead4;
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.28);
}

.public-attack-page .atk-play-btn {
  justify-self: end;
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 650;
  color: #042028;
  background: linear-gradient(90deg, #22d3ee, #2dd4bf);
}

.public-attack-page .atk-expand {
  padding: 0.15rem 1.05rem 1.05rem;
  border-top: 1px solid rgba(130, 170, 220, 0.12);
  max-height: 560px;
  overflow: auto;
}

.public-attack-page .atk-play-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.85rem 0 0.7rem;
}

.public-attack-page .atk-play-bar strong {
  font-size: 0.92rem;
}

.public-attack-page .atk-phases {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.public-attack-page .atk-phases span {
  border-radius: 999px;
  padding: 0.16rem 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: #a5f3fc;
  background: rgba(8, 47, 73, 0.72);
  border: 1px solid rgba(34, 211, 238, 0.22);
}

.public-attack-page .atk-bilingual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.public-attack-page .atk-bilingual.is-mono {
  grid-template-columns: 1fr;
}

.public-attack-page .atk-bilingual.is-mono > div:last-child {
  display: none;
}

.public-attack-page .atk-bilingual > div,
.public-attack-page .atk-detail-grid > div {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(130, 170, 220, 0.12);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}

.public-attack-page .atk-expand h4 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.public-attack-page .atk-expand p,
.public-attack-page .atk-full {
  margin: 0.4rem 0 0;
  color: #d5e2f0;
  line-height: 1.75;
  font-size: 0.9rem;
}

.public-attack-page .atk-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.public-attack-page .atk-expand > h4 {
  margin-top: 0.95rem;
}

.public-attack-page .public-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.public-attack-page .public-tags span {
  border-radius: 8px;
  padding: 0.16rem 0.45rem;
  font-size: 0.72rem;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.public-attack-page .atk-expand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.95rem;
}

@media (max-width: 1100px) {
  .public-attack-page .public-attack-layout {
    grid-template-columns: 1fr !important;
  }

  .public-attack-page .public-attack-filters {
    position: static;
    max-height: 280px;
  }
}

@media (max-width: 820px) {
  .public-attack-page .atk-row-main,
  .public-attack-page .atk-bilingual,
  .public-attack-page .atk-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Login image captcha */
.auth-lite-captcha-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}

.apt-captcha-img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: #071018;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.28);
}

/* Threat-intel dossier: keep every field and command inside the card. */
.tic-page,
.tic-result,
.tic-main,
.tic-section,
.tic-code {
  min-width: 0;
  max-width: 100%;
}

.tic-workspace {
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) !important;
}

.tic-main {
  overflow: visible;
}

.tic-result {
  gap: 0.95rem !important;
}

.tic-banner {
  align-items: stretch !important;
  gap: 1rem !important;
  padding: 1rem 1.05rem !important;
}

.tic-banner h2 {
  overflow-wrap: anywhere;
}

.tic-lead,
.tic-note,
.tic-footnote,
.tic-recs li,
.tic-reps p {
  overflow-wrap: anywhere;
  line-height: 1.75 !important;
}

.tic-split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

.tic-section {
  padding: 0.9rem 1rem !important;
}

.tic-section h3 {
  margin-bottom: 0.75rem !important;
  color: #dbe7f5 !important;
}

.tic-kv > div {
  grid-template-columns: minmax(5.5rem, 7.2rem) minmax(0, 1fr) !important;
}

.tic-kv dd {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tic-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border-radius: 10px;
}

.tic-table {
  min-width: 640px;
}

.tic-table td,
.tic-table th {
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.tic-code {
  display: block !important;
  overflow: hidden;
  margin: 0 0 0.7rem !important;
  border-color: rgba(125, 211, 252, 0.16) !important;
  background: #07111c !important;
}

.tic-code-head {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.7rem !important;
  background: rgba(125, 211, 252, 0.06);
  border-bottom: 1px solid rgba(125, 211, 252, 0.12);
  color: #93c5fd !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.tic-code-head span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tic-copy {
  flex: none;
  position: static !important;
}

.tic-code pre {
  display: block;
  margin: 0 !important;
  padding: 0.75rem 0.8rem 0.85rem !important;
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: 0.78rem !important;
  line-height: 1.7 !important;
  color: #e2e8f0 !important;
  direction: ltr;
  text-align: left;
}

.ipi-code,
.ipi-section,
.ipi-body {
  min-width: 0;
  max-width: 100%;
}

.ipi-panel {
  width: min(720px, 100vw) !important;
}

.ipi-kv dd,
.ipi-events small,
.ipi-summary {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  overflow-wrap: anywhere;
}

.ipi-code pre {
  white-space: pre-wrap !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

@media (max-width: 980px) {
  .tic-workspace,
  .tic-split {
    grid-template-columns: 1fr !important;
  }
}
