/* Overlap brand: Unbounded (headlines) and Manrope (body), self-hosted (SIL OFL, assets/fonts). */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/unbounded-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/unbounded-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  /* Overlap palette: Ink, Paper, Coral, Violet. Violet carries text and interactive
     accents (AA on white and paper); coral is for marks, charts and large shapes only. */
  --ink: #111216;
  --paper: #f7f7f4;
  --coral: #ff5a36;
  --violet: #5b3fff;
  --violet-dark: #3d27c4;
  --violet-soft: #eeebff;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --text: #344054;
  --muted: #667085;
  --line: #e4e7ec;
  --line-soft: #eaecf0;
  --canvas: var(--paper);
  --panel: #fff;
  --accent: var(--violet);
  --accent-soft: var(--violet-soft);
  --green: #067647;
  --green-soft: #ecfdf3;
  --red: #b42318;
  --red-soft: #fef3f2;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* component display rules must not unhide hidden elements */
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 14px; line-height: 1.45; }
a { color: inherit; }
button, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 248px; flex: 0 0 248px; padding: 18px 12px 14px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px 22px; color: var(--ink); text-decoration: none; }
.brand img { display: block; width: 30px; height: 30px; }
.brand-word { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.enroll { min-height: 40px; margin: 0 2px 12px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; }
.enroll:hover { background: #2a2c33; }
.side-nav, #nav { display: flex; flex-direction: column; gap: 3px; }
.nav-link { min-height: 32px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; }
.nav-link:hover { background: #f8f8f8; }
.nav-link.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-icon { width: 18px; display: grid; place-items: center; color: var(--muted); }
.active .nav-icon { color: var(--accent); }
.nav-heading { margin: 19px 0 4px; padding-left: 10px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-account { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 14px 8px 2px; border-top: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; background: var(--violet-soft); color: var(--violet-dark); font-size: 11px; font-weight: 700; }
.sidebar-account strong, .sidebar-account small { display: block; }
.sidebar-account strong { font-size: 12px; }
.sidebar-account small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.workspace { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.topbar { min-height: 64px; display: flex; align-items: center; gap: 20px; padding: 10px 32px; background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumbs { flex: 1; display: flex; align-items: center; gap: 9px; color: var(--muted); }
.breadcrumbs strong { color: var(--ink); }
.global-search { width: min(300px, 40vw); min-height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #f9fafb; color: var(--muted); }
.global-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.global-search input:focus-visible { outline: 0; }
.global-search kbd { flex: none; padding: 1px 5px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 10px; }
.console-link { color: var(--text); font-weight: 600; text-decoration: none; }
.console-link:hover, .panel-heading > a:hover { color: var(--accent); }
.content { width: 100%; max-width: 1680px; margin: 0 auto; padding: 30px 32px 38px; flex: 1; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.eyebrow { margin: 0 0 5px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.subtitle { margin: 5px 0 0; color: var(--muted); }
.button { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; }
.button.secondary { background: #fff; color: var(--text); }
.button:hover { border-color: #b8c0cc; }
.button:disabled { opacity: .65; cursor: wait; }
.button.busy span { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.metric-card, .panel { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: 0 1px 2px rgb(16 24 40 / 5%); }
.metric-card { padding: 17px 18px; }
.metric-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.metric-value { margin: 8px 0 3px; font-family: var(--display); font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.metric-note { color: var(--muted); font-size: 11px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, .9fr); gap: 16px; align-items: start; }
.panel { overflow: hidden; }
.panel-heading { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; }
.panel-heading h2, .notice-panel h2 { margin: 0; font-size: 15px; line-height: 1.35; }
.panel-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.panel-heading > a { color: var(--accent); font-size: 11px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 650px; border-collapse: collapse; text-align: left; }
th { height: 40px; padding: 0 14px; background: #f9fafb; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
td { height: 48px; padding: 7px 14px; border-top: 1px solid var(--line-soft); color: var(--text); font-size: 12px; white-space: nowrap; }
tbody tr:hover { background: #fafafa; }
.host-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.host-link:hover { text-decoration: underline; }
.status { display: inline-flex; align-items: center; gap: 6px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #98a2b3; }
.status-dot.online { background: var(--green); }
.muted { color: var(--muted); }
.loading, .empty { height: 94px; color: var(--muted); text-align: center; }
.error-message { margin: 0; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--red); font-size: 12px; }
.right-column { display: flex; flex-direction: column; gap: 16px; }
.coverage-panel { padding-bottom: 5px; }
.coverage-panel .panel-heading { min-height: 68px; }
.coverage-item { min-height: 65px; display: flex; align-items: center; gap: 11px; margin: 0 12px; padding: 10px 5px; border-top: 1px solid #f0f1f3; text-decoration: none; }
.coverage-item:hover strong { color: var(--accent); }
.coverage-icon { width: 31px; height: 31px; flex: 0 0 31px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.coverage-item strong, .coverage-item small { display: block; }
.coverage-item strong { font-size: 12px; }
.coverage-item small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.coverage-arrow { margin-left: auto; color: #98a2b3; }
.notice-panel { display: flex; gap: 11px; padding: 16px; border: 1px solid #d6cfff; border-radius: 12px; background: #f6f4ff; }
.notice-mark { width: 19px; height: 19px; flex: 0 0 19px; display: grid; place-items: center; border-radius: 50%; background: var(--violet); color: #fff; font-size: 12px; font-weight: 700; }
.notice-panel h2 { color: #241a6b; font-size: 12px; }
.notice-panel p { margin: 6px 0 0; color: #474261; font-size: 11px; line-height: 1.55; }
.footer { padding: 17px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer span { padding: 0 4px; }
@media (max-width: 1050px) {
  .sidebar { width: 210px; flex-basis: 210px; }
  .content { padding-right: 22px; padding-left: 22px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .right-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { width: 100%; padding: 9px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 5px 9px; }
  .enroll, .sidebar-account, .nav-heading { display: none; }
  .side-nav, #nav { flex-direction: row; overflow-x: auto; gap: 4px; }
  .sidebar, .workspace, .topbar { min-width: 0; max-width: 100vw; }
  .nav-link { min-height: 34px; flex: none; padding: 0 9px; font-size: 11px; }
  .nav-icon { display: none; }
  .topbar { min-height: 56px; padding: 8px 15px; gap: 12px; }
  .global-search { width: min(230px, 48vw); }
  .global-search kbd { display: none; }
  .content { padding: 23px 15px 28px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric-card { padding: 14px; }
  .metric-value { font-size: 26px; }
  .right-column { display: flex; }
  .page-heading { align-items: flex-start; }
  .footer { padding: 15px; }
}
@media (max-width: 390px) {
  .breadcrumbs { font-size: 12px; }
  .console-link { font-size: 12px; }
  .global-search { width: 40vw; }
  .metrics { gap: 8px; }
  .metric-card { padding: 12px; }
  .metric-note { font-size: 10px; }
}

/* ---- shared components ---- */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.note { color: var(--muted); font-size: 12px; margin: 0; }
.spacer { height: 16px; }
.page-actions { display: flex; gap: 8px; flex: none; }
.panel-body { padding: 16px 18px; }
.section-title { margin: 24px 0 10px; font-size: 15px; }
.button.primary { background: var(--ink); border-color: var(--ink); color: #fff; text-decoration: none; }
.button.primary:hover { background: #2a2c33; }
.button.secondary { text-decoration: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #f2f4f7; color: var(--text); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #98a2b3; }
.badge.ok { background: var(--green-soft); color: var(--green); }
.badge.ok::before { background: var(--green); }
.badge.bad { background: var(--red-soft); color: var(--red); }
.badge.bad::before { background: var(--red); }
.badge.warn { background: #fffaeb; color: #93370d; }
.badge.warn::before { background: #dc6803; }
.badge.info { background: #efecff; color: var(--violet); }
.badge.info::before { background: var(--violet); }
.toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar input, textarea, select { border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; padding: 8px 11px; }
.toolbar input { min-width: 260px; }
textarea { width: 100%; min-height: 110px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; resize: vertical; }
select { min-height: 38px; }
select:focus-visible, textarea:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.row { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.confirm { margin-top: 14px; padding: 14px 16px; border: 1px solid #f2c97a; border-radius: 12px; background: #fffaeb; }
.confirm pre { margin: 10px 0; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; white-space: pre-wrap; word-break: break-word; }
.kv { display: grid; grid-template-columns: 150px 1fr; margin: 0; padding: 6px 18px 14px; gap: 8px 16px; }
.kv dt { color: var(--muted); font-size: 12px; font-weight: 600; }
.kv dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
td.empty { height: 94px; text-align: center; color: var(--muted); }
td { white-space: normal; max-width: 420px; overflow-wrap: anywhere; }
td .badge, td .mono { white-space: nowrap; }
.content:focus { outline: 0; }

/* ---- dashboard ---- */
.dashboard-grid > .column { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bar-list { padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.bar-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 13px; }
.bar-track { height: 10px; background: var(--line-soft); border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: var(--coral); }
.bar-fill.bar-1 { background: var(--violet); }
.bar-fill.bar-2 { background: var(--ink); }
.match-list { list-style: none; margin: 0; padding: 0 18px 8px; }
.match-list li { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.match-list li:first-child { border-top: 0; }
.match-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 3px; }
@media (min-width: 1280px) { .metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ---- chips, used for ecosystem filters ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid #d0d5dd; background: #fff; color: var(--text); font-weight: 500; cursor: pointer; }
.chip.on { border-color: #c4b8ff; background: var(--accent-soft); color: var(--violet-dark); }
.spacer-top { margin-top: 12px; }
.dashboard-grid > .column > .notice-panel { margin: 0; }
.notice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 16px; }
.nowrap { white-space: nowrap; }

/* Vulnerabilities */
td .mono.wrap { white-space: normal; overflow-wrap: anywhere; }
.clamp { display: inline-block; vertical-align: bottom; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prewrap { margin: 0 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 90ch; line-height: 1.55; }
.plain-list { margin: 0; padding-left: 18px; line-height: 1.7; overflow-wrap: anywhere; }
.subhead { font-size: 13px; font-weight: 600; margin: 16px 0 6px; }

/* Compliance */
.code-block { margin: 0 0 14px; padding: 12px 14px; background: var(--canvas); border: 1px solid var(--line); border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* SIEM events */
.toolbar-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); margin-bottom: 14px; cursor: pointer; }
.event-detail { display: inline-block; max-width: 60ch; overflow-wrap: anywhere; }

/* File retrieval */
.retrieve-form { flex-wrap: wrap; }
.retrieve-form .path-input { flex: 1 1 320px; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.button.small { min-height: 30px; padding: 4px 10px; font-size: 12px; text-decoration: none; }

/* ---- Design alignment (demo/*.html): shell, toolbar, risk ---- */
.nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-link.planned { color: var(--muted); }
.nav-tag { flex: none; padding: 1px 6px; border-radius: 999px; background: #f2f4f7; color: #475467; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.enroll svg { flex: none; }
.icon-button { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; color: var(--muted); text-decoration: none; }
.icon-button:hover { background: #f2f4f7; color: var(--ink); }
.global-search svg { flex: none; color: var(--muted); }
.sidebar-account .avatar { margin-left: 2px; }

/* Table toolbar: search, Filter, results, page numbers, Refresh */
.table-toolbar { gap: 12px; margin-bottom: 14px; }
.search-box { flex: 1 1 240px; max-width: 330px; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #d0d5dd; border-radius: 10px; background: #fff; color: var(--muted); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; padding: 0; }
.toolbar .search-box input { min-width: 0; border: 0; padding: 0; }
.search-box:focus-within { outline: 3px solid var(--violet); outline-offset: 2px; }
.toolbar-spacer { flex: 1 1 0; }
.table-count { white-space: nowrap; }
.pager { display: flex; align-items: center; gap: 2px; }
.pager-btn { min-width: 36px; height: 36px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-weight: 500; cursor: pointer; }
.pager-btn:hover { background: #f2f4f7; }
.pager-btn.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.pager-gap { padding: 0 4px; color: var(--muted); }
.filter-row { margin: -4px 0 14px; }

/* Risk badges (status colours, not brand) */
.badge.high { background: #fffaeb; color: #b54708; }
.badge.high::before { background: #b54708; }
.badge.medium { background: #fefbe8; color: #7a5b00; }
.badge.medium::before { background: #a68b00; }
.os-icon { display: block; color: #475467; }

/* Enroll page and dashboard events */
.steps { margin: 0 0 14px; padding-left: 20px; line-height: 1.7; }
.steps li { margin-bottom: 6px; }
.event-list { list-style: none; margin: 0; padding: 0 18px 10px; }
.event-list li { display: flex; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.event-list li:first-child { border-top: 0; }
.event-list strong { font-size: 13px; }
.event-time { flex: none; width: 44px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .icon-button { display: none; }
  .nav-tag { display: none; }
  .search-box { max-width: none; }
  .table-count { display: none; }
}

/* Fewer cards than the 6-column grid: keep them full width, as in the design. */
.metrics.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metrics.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .metrics.four, .metrics.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Asset detail: title with badges, tabs, two-column overview */
.title-row { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.title-row .badge { font-family: "Manrope", system-ui, sans-serif; letter-spacing: 0; }
.tabs { display: flex; gap: 4px; margin: -4px 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { height: 40px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.on { border-bottom-color: var(--violet); color: var(--violet); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.detail-grid .column { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1050px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } }

/* Supply chain: collector strip, as in the design */
.collector-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); font-size: 13px; }
.collector-strip strong { color: var(--ink); }

/* SIEM controls */
.siem-controls { justify-content: flex-start; margin-bottom: 14px; }
.siem-controls .check { margin-bottom: 0; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #98a2b3; }
.button.live .live-dot { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }

/* File integrity: monitored path tags */
.path-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.path-tag { padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; background: #f9fafb; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }

/* Live workbench: tables list + editor */
.workbench { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.workbench .column { display: flex; flex-direction: column; gap: 16px; }
.table-list { list-style: none; margin: 0; padding: 4px 8px 12px; }
.table-pick { width: 100%; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.table-pick:hover { background: var(--accent-soft); color: var(--violet-dark); }
@media (max-width: 900px) { .workbench { grid-template-columns: minmax(0, 1fr); } }
.clamp-sm { display: inline-block; max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* Compliance: Devices and Cloud sections */
.section-heading { margin: 8px 0 14px; font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.control-details summary { cursor: pointer; white-space: normal; }
.control-details summary strong { font-weight: 600; }
.control-body { margin-top: 8px; max-width: 70ch; white-space: normal; }
.control-body .note { margin-bottom: 6px; }

/* Compliance: framework cards (buttons) */
.framework-card { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.framework-card:hover { border-color: #c4b8ff; }
.framework-card.on { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet) inset, 0 1px 2px rgb(16 24 40 / 5%); }
.framework-card.empty .metric-value { color: var(--muted); }
.metrics.frameworks { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1050px) { .metrics.frameworks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .metrics.frameworks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.framework-card { height: 100%; }
@media (max-width: 720px) { .page-heading { flex-wrap: wrap; } .page-actions { flex-wrap: wrap; } }

/* Issues */
.form-row { flex-wrap: wrap; }
.form-row .grow { flex: 1 1 280px; min-width: 0; }
textarea { width: 100%; font: inherit; }
.activity { list-style: none; margin: 0 0 14px; padding: 0; }
.activity li { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.activity li:first-child { border-top: 0; }
.activity .prewrap { margin: 4px 0 0; }
.row.tight { margin-top: 0; gap: 10px; }

/* Integrations */
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.int-card { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.05); min-width: 0; display: flex; flex-direction: column; }
.int-card > .row { margin-top: auto; padding-top: 4px; }
.int-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.int-logo { width: 40px; height: 40px; flex: none; border-radius: 4px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.int-logo.oss { border-radius: 10px; background: #eeebff; color: var(--violet); }
.int-title { flex: 1; min-width: 0; }
.int-name { font-weight: 700; }
.int-desc { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.int-form { display: grid; gap: 8px; margin-bottom: 12px; }
.int-form input { width: 100%; }
.int-section { margin: 28px 0 12px; }
.int-section .section-heading { margin: 0 0 2px; }
.kv.compact { grid-template-columns: 110px 1fr; padding: 0 0 12px; font-size: 13px; }
.ok-text { color: var(--green); }
.bad-text { color: var(--red); overflow-wrap: anywhere; }
.button.na:disabled { cursor: not-allowed; }

/* Workflows */
.wf-layout { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 16px; align-items: start; }
.wf-list { display: flex; flex-direction: column; padding: 6px; gap: 4px; }
.wf-item { display: block; width: 100%; text-align: left; border: 1px solid transparent; border-radius: 10px; background: transparent; padding: 10px 12px; font: inherit; color: var(--ink); cursor: pointer; }
.wf-item:hover { background: #f9fafb; }
.wf-item.on { background: #f4f2ff; border-color: #d9d2ff; }
.wf-item-name { font-weight: 700; margin-bottom: 4px; overflow-wrap: anywhere; }
.wf-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wf-editor { min-width: 0; }
.wf-chain { display: flex; flex-direction: column; gap: 18px; margin: 16px 0; position: relative; }
.wf-step { position: relative; border: 1px solid var(--line); border-left: 3px solid var(--violet); border-radius: 10px; padding: 14px 16px; background: #fff; }
.wf-step.action { border-left-color: var(--coral, #FF5A36); }
.wf-step + .wf-step::before { content: ""; position: absolute; left: 22px; top: -19px; width: 2px; height: 18px; background: var(--line); }
.wf-step-kind { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wf-step-title { font-weight: 700; margin: 2px 0 10px; }
.wf-step select { max-width: 100%; }
.wf-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; margin-top: 8px; }
.wf-check { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; line-height: 1.4; }
.wf-check input { margin-top: 3px; flex: none; }
.wf-check.off { color: var(--muted); cursor: not-allowed; }
.wf-cond { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 14px; }
.wf-cond .note { grid-column: 1 / -1; margin: 0; }
.wf-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.wf-field select, .wf-field input { width: 100%; }
@media (max-width: 900px) { .wf-layout { grid-template-columns: minmax(0, 1fr); } }
.toolbar input[type="checkbox"] { min-width: 0; padding: 0; }
.wf-field input, .int-form input, .wf-editor input[type="text"] { border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; padding: 8px 11px; }

/* Investigations */
a.wf-item { text-decoration: none; }
.wf-layout + .panel, .page-heading + .panel { margin-bottom: 16px; }
.timeline { list-style: none; margin: 16px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.tl-item { position: relative; padding: 0 0 18px 14px; }
.tl-item::before { content: ""; position: absolute; left: -25px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--violet); border: 2px solid #fff; }
.tl-item.note-item::before { background: var(--coral); }
.tl-when { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.tl-what { overflow-wrap: anywhere; }
.tl-detail { margin-top: 6px; }
.tl-detail summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.tl-detail .code-block { margin: 6px 0 0; max-height: 260px; overflow: auto; }
.tl-meta { margin-top: 4px; font-size: 11px; }
.link-button { border: 0; background: none; padding: 0; font: inherit; color: var(--violet); cursor: pointer; text-decoration: underline; }
.cell-actions { display: flex; gap: 6px; flex-wrap: wrap; }
dialog.picker { width: min(460px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: 0 20px 50px rgba(16,24,40,.25); color: var(--ink); }
dialog.picker::backdrop { background: rgba(17,18,22,.45); }
dialog.picker h2 { margin: 0 0 10px; font-family: var(--display); font-size: 18px; }
dialog.picker .wf-field { margin-top: 12px; }
dialog.picker select, dialog.picker input { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; padding: 8px 11px; color: var(--ink); }
.picker-item { overflow-wrap: anywhere; margin: 0; }
.wf-inv { margin: 6px 0 0 26px; max-width: calc(100% - 26px); }

/* Coworker */
.cw-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 16px; align-items: start; }
.cw-layout .column { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.req-list { display: flex; flex-direction: column; gap: 14px; }
.req-card { border: 1px solid var(--line); border-left: 3px solid var(--violet); border-radius: 10px; padding: 14px 16px; background: #fff; min-width: 0; }
.req-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.req-reason { margin: 0 0 10px; font-style: italic; overflow-wrap: anywhere; }
.req-actions input { flex: 1 1 200px; min-width: 0; border: 1px solid var(--line); border-radius: 10px; font: inherit; padding: 8px 11px; }
.mode-list { display: flex; flex-direction: column; gap: 10px; }
.mode { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.mode.on { border-color: #d9d2ff; background: #f4f2ff; }
.mode.off { cursor: not-allowed; color: var(--muted); }
.mode input { margin-top: 4px; flex: none; }
.mode span { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 1000px) { .cw-layout { grid-template-columns: minmax(0, 1fr); } }

/* Allowlist */
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.segmented .seg { border: 0; background: transparent; padding: 8px 14px; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; }
.segmented .seg + .seg { border-left: 1px solid var(--line); }
.segmented .seg.on { background: var(--ink); color: #fff; }

/* Dashboard: awaiting approval */
.approval-list { list-style: none; margin: 0; padding: 4px 18px 14px; }
.approval-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.approval-list li:first-child { border-top: 0; }
.approval-list li.note { display: block; }
.approval-what { min-width: 0; }

/* Weekly report */
.report-headline { font-size: 16px; font-weight: 600; margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Sign-in page */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; box-sizing: border-box; }
.login-card { width: 100%; max-width: 380px; padding: 32px 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 8px 30px rgb(16 24 40 / 8%); box-sizing: border-box; }
.login-brand { display: inline-flex; margin-bottom: 22px; }
.login-card h1 { margin: 0 0 2px; font-size: 24px; }
.login-card .note { margin-top: 0; }
.login-form { display: grid; gap: 6px; margin-top: 18px; }
.login-form label { font-size: 12px; font-weight: 600; margin-top: 8px; }
.login-form input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); font: inherit; }
.login-form input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.login-form .button { margin-top: 16px; justify-content: center; }
.login-or { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--muted); font-size: 12px; }
.login-or::before, .login-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.login-google { display: flex; justify-content: center; }
#login-setup { margin-top: 18px; }

/* Sidebar account */
.sidebar-account .account-actions { display: flex; gap: 10px; margin-top: 2px; font-size: 11px; }
.sidebar-account .account-actions a, .sidebar-account .account-actions button { color: var(--muted); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: none; }
.sidebar-account .account-actions a:hover, .sidebar-account .account-actions button:hover { color: var(--accent); }
.shared-admin { margin: 16px 28px 0; padding: 10px 14px; border: 1px solid #f5d38a; border-radius: 10px; background: #fff8e6; font-size: 13px; }
.shared-admin a { color: var(--accent); font-weight: 600; }
@media (max-width: 760px) { .shared-admin { margin: 12px 16px 0; } }

