/* WPSecureOps — two skins from the comp: Industry (1B) and Modernist (1C).
   Both designs are deliberately light; never let a browser auto-dark them. */
:root { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; }

/* The shell fills the viewport exactly and never grows with the table:
   the list and the dossier each scroll internally, so the toolbar, the
   dossier's action footer and the page footer all stay pinned. */
#app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

.spacer { flex: 1; }
.right { text-align: right; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
a:hover { text-decoration: underline; }

/* ============================ shared structure ============================ */

.chrome, .toolbar, .foot { flex: none; display: flex; align-items: center; }
.chrome { gap: 14px; }
.toolbar { gap: 8px; flex-wrap: wrap; }
.main { flex: 1; min-height: 0; display: flex; }
.main .scroll { flex: 1; min-width: 0; overflow: auto; }
.main.split #dossier { display: none; }
.main.split #dossier.show { display: flex; flex-direction: column; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; cursor: pointer; white-space: nowrap; }
th:nth-child(6), th.right { cursor: default; }
.alertrow { cursor: pointer; }
.grouprow td { padding: 0; }
.pill { display: inline-block; border: 1px solid; white-space: nowrap; }
.sitegrid { display: grid; }
.sitecard { cursor: pointer; position: relative; }
.sitetop { display: flex; align-items: center; gap: 8px; }
.stats { display: flex; }
.meta4, .dgrid { display: grid; grid-template-columns: 1fr 1fr; }
.acts { display: flex; gap: 7px; }
.dbody { flex: 1; min-height: 0; overflow: auto; }
.drow { display: flex; align-items: center; gap: 10px; }
.prose { text-wrap: pretty; }
.ev { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }

/* corner "+" register marks (Industry only) */
.cross { position: relative; }
.cross > i {
  position: absolute; font-style: normal; font-size: 11px; line-height: 1;
  color: #5980a6; pointer-events: none;
}
.cross > .c1 { left: -5px; top: -6px; }
.cross > .c2 { right: -5px; top: -6px; }
.cross > .c3 { left: -5px; bottom: -6px; }
.cross > .c4 { right: -5px; bottom: -6px; }

.demobadge {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 8px; border: 1px solid currentColor; opacity: .7; white-space: nowrap;
}
a.btn { text-decoration: none; display: inline-flex; align-items: center; }
a.btn:hover { text-decoration: none; }

.empty { padding: 64px 24px; max-width: 62ch; margin: 0 auto; text-align: center; }
.empty h2 { font-size: 20px; margin: 0 0 10px; }
.empty p { margin: 0 0 12px; line-height: 1.6; opacity: .75; }

.toast {
  position: fixed; opacity: 0; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease; pointer-events: none;
  max-width: min(560px, calc(100vw - 40px));
}
.toast.show { opacity: 1; transform: none; }

/* ============================== INDUSTRY (1B) ============================= */

[data-skin="industry"] {
  --line: rgba(29,31,32,.16);
  --hair: rgba(29,31,32,.09);
  --ink: #1d1f20;
  --dim: #424244;
  --soft: #7a7a7d;
  --mid: #5d5d60;
  --accent: #5980a6;
}
[data-skin="industry"] body { background: #f2f2f3; color: var(--ink); font: 400 14px/1.45 "Barlow", system-ui, sans-serif; }
[data-skin="industry"] .cond,
[data-skin="industry"] .brand,
[data-skin="industry"] .nav a,
[data-skin="industry"] .btn,
[data-skin="industry"] .seg button,
[data-skin="industry"] .skinpick button,
[data-skin="industry"] .grouplabel,
[data-skin="industry"] th,
[data-skin="industry"] .glabel,
[data-skin="industry"] .pill,
[data-skin="industry"] .ghost,
[data-skin="industry"] .lbl,
[data-skin="industry"] .domain,
[data-skin="industry"] .acts button,
[data-skin="industry"] .copy { font-family: "Barlow Condensed", "Barlow", system-ui, sans-serif; }

[data-skin="industry"] .chrome { height: 54px; padding: 0 17px; border-bottom: 1px solid var(--line); }
[data-skin="industry"] .brand { font-weight: 600; font-size: 19px; letter-spacing: .06em; text-transform: uppercase; }
[data-skin="industry"] .rule { width: 1px; height: 18px; background: var(--line); }
[data-skin="industry"] .stat { font-size: 13px; color: var(--mid); letter-spacing: .04em; }
[data-skin="industry"] .nav { display: flex; gap: 16px; }
[data-skin="industry"] .nav a { font-weight: 600; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: #416180; }
[data-skin="industry"] .btn { font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; }
[data-skin="industry"] .avatar { width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font: 600 11px/1 "Barlow Condensed", system-ui; color: var(--mid); }

[data-skin="industry"] .toolbar { padding: 11px 17px; border-bottom: 1px solid var(--line); }
[data-skin="industry"] .seg, [data-skin="industry"] .skinpick { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
[data-skin="industry"] .seg button, [data-skin="industry"] .skinpick button { font-weight: 600; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; border: 0; padding: 8px 14px; background: transparent; color: var(--ink); }
[data-skin="industry"] .skinpick button { padding: 7px 11px; }
[data-skin="industry"] .skinpick button.on { background: var(--accent); color: #f2f2f3; }
[data-skin="industry"] select, [data-skin="industry"] input {
  appearance: none; background: transparent; color: var(--ink);
  font: 400 13px/1 "Barlow", system-ui; border: 1px solid var(--line); border-radius: 4px;
}
[data-skin="industry"] select { padding: 8px 24px 8px 9px; }
[data-skin="industry"] input { padding: 8px 10px; width: 205px; }
[data-skin="industry"] .grouplabel { font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }

[data-skin="industry"] .scroll { padding: 17px; }
[data-skin="industry"] .tablebox { border: 1px solid var(--line); }
[data-skin="industry"] th { font-weight: 600; font-size: 11px; letter-spacing: .11em; text-transform: uppercase; color: var(--mid); padding: 10px 13px; border-bottom: 1px solid var(--line); }
[data-skin="industry"] td { padding: 10px 13px; border-bottom: 1px solid var(--hair); vertical-align: top; }
[data-skin="industry"] .grouphead { display: flex; align-items: center; gap: 10px; padding: 9px 13px; background: #e9e9ea; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
[data-skin="industry"] .glabel { font-weight: 600; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; }
[data-skin="industry"] .gcount { font-size: 12px; color: var(--mid); }
[data-skin="industry"] .pill { font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 2px; }
[data-skin="industry"] .t { font-weight: 500; }
[data-skin="industry"] .s { font-size: 12px; color: var(--soft); margin-top: 2px; }
[data-skin="industry"] .dim { color: var(--dim); }
[data-skin="industry"] .ghost { font-weight: 600; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 2px; padding: 6px 9px; }
[data-skin="industry"] .count { padding: 12px 2px; color: var(--soft); font-size: 13px; }

[data-skin="industry"] .detailrow > td { padding: 0; border-bottom: 1px solid var(--line); }
[data-skin="industry"] .detail { margin: 13px; border: 1px solid var(--accent); padding: 17px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; }
[data-skin="industry"] .lbl { font-weight: 600; font-size: 11px; letter-spacing: .11em; text-transform: uppercase; color: var(--soft); }
[data-skin="industry"] .lbl.mt { margin-top: 17px; }
[data-skin="industry"] .prose { margin-top: 8px; line-height: 1.6; color: #2b2b2d; }
[data-skin="industry"] .ev { margin-top: 8px; border: 1px solid var(--line); padding: 10px; font-size: 12px; color: #2c455d; }
[data-skin="industry"] .meta4 { gap: 13px; }
[data-skin="industry"] .meta4 .v, [data-skin="industry"] .dgrid .v { margin-top: 4px; }
[data-skin="industry"] .acts { margin-top: 20px; }
[data-skin="industry"] .acts button { font-weight: 600; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 10px 14px; }
[data-skin="industry"] .acts .primary { background: var(--accent); color: #f2f2f3; border-color: var(--accent); }
[data-skin="industry"] .acts .muted { color: var(--mid); }
[data-skin="industry"] .collapse { margin-top: 10px; font: 400 12px/1 "Barlow", system-ui; background: transparent; color: var(--soft); border: 0; padding: 0; text-decoration: underline; }

[data-skin="industry"] .sitegrid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
[data-skin="industry"] .sitecard { border: 1px solid var(--line); padding: 14px; }
[data-skin="industry"] .domain { font-weight: 600; font-size: 17px; letter-spacing: .03em; }
[data-skin="industry"] .sitecard .s { margin-top: 4px; }
[data-skin="industry"] .stats { gap: 18px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
[data-skin="industry"] .stats .lbl { letter-spacing: .1em; }
[data-skin="industry"] .stats .n { font-weight: 700; margin-top: 3px; }
[data-skin="industry"] .stats .n.hot { color: #2c455d; }

[data-skin="industry"] .foot { height: 38px; padding: 0 17px; border-top: 1px solid var(--line); font-size: 12px; color: var(--soft); gap: 18px; }
[data-skin="industry"] .copy { font-weight: 600; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; }
[data-skin="industry"] .toast { left: 17px; bottom: 17px; background: #1d2d3d; color: #eef6ff; border-radius: 4px; padding: 10px 14px; font-size: 13px; box-shadow: 0 12px 32px rgba(43,43,45,.22); }

/* ============================= MODERNIST (1C) ============================= */

[data-skin="modernist"] {
  --line: rgba(32,30,29,.4);
  --hair: rgba(32,30,29,.18);
  --ink: #201e1d;
  --dim: #444141;
  --soft: #7d7979;
  --mid: #605d5d;
  --accent: #ae1800;
}
[data-skin="modernist"] body { background: #f3f2f2; color: var(--ink); font: 400 15px/1.45 "Archivo", system-ui, sans-serif; }

[data-skin="modernist"] .chrome { height: 60px; padding: 0 20px; border-bottom: 2px solid var(--line); gap: 16px; }
[data-skin="modernist"] .brand { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
[data-skin="modernist"] .rule { width: 2px; height: 20px; background: var(--line); }
[data-skin="modernist"] .stat { font-size: 13px; color: var(--mid); }
[data-skin="modernist"] .stat.crit { font-weight: 600; color: var(--accent); }
[data-skin="modernist"] .nav { display: flex; gap: 18px; font-size: 14px; font-weight: 600; }
[data-skin="modernist"] .btn { font: 600 14px/1.2 "Archivo", system-ui; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 0; padding: 9px 14px; }
[data-skin="modernist"] .avatar { width: 30px; height: 30px; background: #eae9e9; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--mid); }

[data-skin="modernist"] .toolbar { padding: 12px 20px; border-bottom: 2px solid var(--line); }
[data-skin="modernist"] .seg, [data-skin="modernist"] .skinpick { display: flex; }
[data-skin="modernist"] .seg button, [data-skin="modernist"] .skinpick button { font: 600 13px/1 "Archivo", system-ui; border: 1px solid var(--line); border-right: 0; padding: 9px 15px; background: transparent; color: var(--ink); border-radius: 0; }
[data-skin="modernist"] .seg button:last-child, [data-skin="modernist"] .skinpick button:last-child { border-right: 1px solid var(--line); }
[data-skin="modernist"] #groupSeg button { padding: 9px 13px; }
[data-skin="modernist"] .skinpick button { padding: 8px 12px; }
[data-skin="modernist"] .skinpick button.on { background: var(--ink); color: #f3f2f2; }
[data-skin="modernist"] select, [data-skin="modernist"] input {
  appearance: none; background: transparent; color: var(--ink);
  font: 400 14px/1 "Archivo", system-ui; border: 1px solid var(--line); border-radius: 0;
}
[data-skin="modernist"] select { padding: 9px 22px 9px 10px; }
[data-skin="modernist"] input { padding: 9px 10px; width: 150px; }

[data-skin="modernist"] th { font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mid); padding: 13px 16px; border-bottom: 2px solid var(--line); }
[data-skin="modernist"] td { padding: 14px 16px; border-bottom: 1px solid var(--hair); vertical-align: top; }
[data-skin="modernist"] .grouphead { display: flex; align-items: baseline; gap: 12px; padding: 16px 16px 8px; border-bottom: 2px solid var(--line); }
[data-skin="modernist"] .glabel { font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
[data-skin="modernist"] .gcount { font-size: 13px; color: var(--mid); }
[data-skin="modernist"] .pill { font-size: 12px; font-weight: 600; padding: 3px 7px; border-radius: 0; }
[data-skin="modernist"] .t { font-weight: 600; line-height: 1.35; }
[data-skin="modernist"] .s { font-size: 13px; color: var(--soft); margin-top: 3px; }
[data-skin="modernist"] .dim { color: var(--dim); }
[data-skin="modernist"] td:nth-child(6) { font-size: 13px; }
[data-skin="modernist"] .count { padding: 16px; color: var(--soft); font-size: 13px; }

[data-skin="modernist"] .sitegrid { grid-template-columns: 1fr 1fr; }
[data-skin="modernist"] .sitecard { padding: 16px; border-bottom: 2px solid var(--line); border-right: 2px solid var(--line); }
[data-skin="modernist"] .sitetop { align-items: baseline; gap: 10px; }
[data-skin="modernist"] .domain { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
[data-skin="modernist"] .sitecard .s { margin-top: 4px; }
[data-skin="modernist"] .stats { gap: 24px; margin-top: 14px; }
[data-skin="modernist"] .stats .lbl { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
[data-skin="modernist"] .stats .n { font-weight: 800; font-size: 19px; margin-top: 2px; }
[data-skin="modernist"] .stats .n.hot { color: var(--accent); }

[data-skin="modernist"] #dossier { width: 452px; flex: none; border-left: 2px solid var(--line); background: #eae9e9; }
[data-skin="modernist"] .dhead { padding: 20px; border-bottom: 2px solid var(--line); }
[data-skin="modernist"] .did { font-size: 12px; letter-spacing: .08em; color: var(--soft); }
[data-skin="modernist"] .x { background: transparent; border: 1px solid var(--line); color: var(--ink); width: 28px; height: 28px; font-size: 14px; line-height: 1; }
[data-skin="modernist"] .dtitle { font-weight: 800; font-size: 25px; line-height: 1.14; letter-spacing: -.02em; margin-top: 12px; text-wrap: pretty; }
[data-skin="modernist"] .dsub { font-size: 13px; color: var(--mid); margin-top: 6px; }
[data-skin="modernist"] .dbody > section { padding: 20px; border-bottom: 1px solid var(--hair); }
[data-skin="modernist"] .lbl { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
[data-skin="modernist"] .prose { margin-top: 8px; line-height: 1.55; }
[data-skin="modernist"] .ev { margin-top: 8px; background: #f3f2f2; border: 1px solid var(--hair); padding: 11px; font-size: 13px; }
[data-skin="modernist"] .dgrid { border-bottom: 1px solid var(--hair); }
[data-skin="modernist"] .dgrid > div { padding: 16px 20px; }
[data-skin="modernist"] .dgrid > div:nth-child(odd) { border-right: 1px solid var(--hair); }
[data-skin="modernist"] .dgrid > div:nth-child(n+3) { border-top: 1px solid var(--hair); }
[data-skin="modernist"] .dgrid .v { margin-top: 4px; font-weight: 600; }
[data-skin="modernist"] .dfoot { display: flex; gap: 8px; padding: 20px; border-top: 2px solid var(--line); }
[data-skin="modernist"] .dfoot button { font: 600 14px/1.2 "Archivo", system-ui; background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
[data-skin="modernist"] .dfoot .primary { flex: 1; background: #ec3013; color: #f3f2f2; border: 0; }
[data-skin="modernist"] .dfoot .muted { color: var(--mid); }

[data-skin="modernist"] .foot { height: 44px; padding: 0 20px; border-top: 2px solid var(--line); font-size: 13px; color: var(--mid); gap: 20px; }
[data-skin="modernist"] .copy { font-weight: 600; }
[data-skin="modernist"] .toast { left: 20px; bottom: 20px; background: #201e1d; color: #f3f2f2; padding: 11px 15px; font-size: 14px; }

/* ================================ narrow ================================= */

/* The comp is a 1440px artboard; past that, add columns rather than
   stretching a handful of cards across the whole display. */
@media (min-width: 1700px) {
  [data-skin="industry"] .sitegrid { grid-template-columns: repeat(4, 1fr); }
  [data-skin="modernist"] .sitegrid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 2300px) {
  [data-skin="industry"] .sitegrid { grid-template-columns: repeat(5, 1fr); }
  [data-skin="modernist"] .sitegrid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1180px) {
  [data-skin="modernist"] #dossier { width: 380px; }
  [data-skin="industry"] .sitegrid { grid-template-columns: repeat(2, 1fr); }
  [data-skin="industry"] .detail { grid-template-columns: 1fr; gap: 17px; }
}

@media (max-width: 900px) {
  .chrome { height: auto !important; flex-wrap: wrap; padding-top: 10px !important; padding-bottom: 10px !important; }
  .chrome .rule, .chrome .nav { display: none; }
  .main .scroll { overflow-x: auto; }
  table { min-width: 860px; }
  .sitegrid { grid-template-columns: 1fr !important; }
  [data-skin="modernist"] .sitecard { border-right: 0; }
  /* The split pane has nowhere to split — pin the dossier over the list. */
  [data-skin="modernist"] .main.split #dossier.show {
    position: fixed; inset: 0; width: auto; z-index: 20;
    border-left: 0; box-shadow: 0 0 0 100vmax rgba(32,30,29,.35);
  }
}

/* ============================ demo intro band ============================ */
/* Only on /demo: a crawlable, human-readable explanation above the console,
   and the console framed as a plate rather than filling the whole viewport. */

[data-page="demo"] body { overflow: auto; }
[data-page="demo"] #app {
  height: min(820px, calc(100dvh - 40px));
  margin: 0 auto 40px;
  max-width: 1400px;
  border: 1px solid var(--line, rgba(29,31,32,.16));
}

.demo-intro { border-bottom: 1px solid rgba(29,31,32,.16); background: #f2f2f3; color: #1d1f20; }
.demo-intro-wrap {
  max-width: 1400px; margin: 0 auto; padding: 22px 24px;
  display: flex; align-items: flex-start; gap: 24px;
}
.demo-brand {
  font: 600 20px/1 "Barlow Condensed", system-ui; letter-spacing: .07em;
  text-transform: uppercase; color: #1d1f20; text-decoration: none; flex: none; padding-top: 2px;
}
.demo-copy { flex: 1; min-width: 0; }
.demo-intro h1 {
  font: 600 22px/1.1 "Barlow Condensed", system-ui; letter-spacing: .05em;
  text-transform: uppercase; margin: 0;
}
.demo-intro p {
  margin: 8px 0 0; font: 400 15px/1.55 "Barlow", system-ui;
  color: #2b2b2d; max-width: 82ch; text-wrap: pretty;
}
.demo-back {
  flex: none; font: 600 12px/1 "Barlow Condensed", system-ui; letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none; color: #1d1f20;
  border: 1px solid rgba(29,31,32,.16); border-radius: 2px; padding: 10px 14px;
}
.demo-back:hover { border-color: #1d1f20; text-decoration: none; }

@media (max-width: 860px) {
  .demo-intro-wrap { flex-direction: column; gap: 12px; }
  [data-page="demo"] #app { height: min(720px, calc(100dvh - 20px)); margin-bottom: 20px; }
}
.demo-links { flex: none; display: flex; gap: 8px; }
.rowerr { margin-top: 6px; font-size: 11.5px; line-height: 1.45; color: #c0392b; max-width: 260px; }
/* the wordmark is a link now; keep it looking like the wordmark */
a.brand { text-decoration: none; color: inherit; }
a.brand:hover { text-decoration: underline; }
