/* PQCTrust Lifecycle portal. Same visual language as the other PQCTrust portals (indigo chrome band, pill navigation,
 * white cards on a lavender canvas, dense tables, dotted badges, pill buttons). The sign-in page is the shared
 * thrivosign-login.css and takes nothing from here: every rule below is scoped to #app, the modal or the toast.
 * No inline styles anywhere - the CSP forbids them. */

:root {
  --bg: #f3f2fa; --panel: #fff; --ink: #17143a; --ink-2: #3a3763; --muted: #6b6a8a; --line: #e3e1f1; --line-2: #cfcce6;
  --sub: #f8f7fd; --hover: #faf9ff; --neutral: #f1f0f8;
  --accent: #5b4ce6; --accent-2: #7a3ff0; --accent-deep: #3b2fb5; --accent-soft: #edeafe;
  --ok: #0c8f62; --ok-soft: #e6f6ef; --warn: #9a5b00; --warn-soft: #fff4de; --bad: #c62a47; --bad-soft: #fdecef;
  --info: #1f5fbf; --info-soft: #e8f0fd;
  --chrome: radial-gradient(900px 260px at 12% -40%, rgba(122, 63, 240, .45), transparent 70%),
            radial-gradient(700px 240px at 92% 10%, rgba(18, 179, 166, .22), transparent 70%), #0b2a55;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 20, 58, .05), 0 8px 28px rgba(35, 28, 95, .07);
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 14px/1.55 "Inter", "Segoe UI Variable", "Segoe UI", -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--ink); }

#app h1, #app h2, #app h3, #app h4 { margin: 0 0 .5rem; font-weight: 650; letter-spacing: -.01em; color: var(--ink); }
#app h1 { font-size: 1.45rem; } #app h2 { font-size: 1.12rem; } #app h3 { font-size: 1rem; }
#app a { color: var(--accent); text-decoration: none; }
#app a:hover { color: var(--accent-deep); text-decoration: underline; }
/* a link that looks like a button keeps the button's colours */
#app a.btn, #app a.btn:hover { color: #fff; text-decoration: none; }
#app a.btn--ghost, #app a.btn--ghost:hover { color: var(--accent-deep); }
#app .muted { color: var(--muted); font-size: .86rem; }
#app .mono { font-family: var(--mono); font-size: .8rem; word-break: break-all; }
#app :focus-visible, .modal :focus-visible { outline: 2px solid #7a63ff; outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: .5rem; z-index: 30; background: #0b2a55; color: #fff; padding: .4rem .9rem; border-radius: 999px; }
.skip-link:focus { left: .75rem; }

/* chrome band */
.topbar { display: flex; align-items: center; gap: .85rem; padding: .85rem 2rem 4.1rem; color: #fff; background: var(--chrome); position: relative; }
.brand { display: inline-flex; align-items: center; gap: .9rem; }
.brand__logo { display: block; height: 32px; width: auto; }
.brand__product { font-size: 1.05rem; font-weight: 600; letter-spacing: .02em; opacity: .92; padding-left: .9rem; border-left: 1px solid rgba(255,255,255,.3); }
.topbar__spacer { flex: 1; }
.chip { font-size: .78rem; padding: .25rem .7rem; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; }
/* the organisation: a squarer chip with an outline and a building icon, so it is never mistaken for the user */
.chip--org { border-radius: 8px; border: 1px solid rgba(255,255,255,.38); background: rgba(255,255,255,.08); }
.chip, .account { display: inline-flex; align-items: center; gap: .4rem; }
.chip__icon { flex: none; opacity: .9; }
.chip__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account { border: 0; background: rgba(255,255,255,.16); color: #fff; padding: .4rem .95rem; border-radius: 999px; font: inherit; cursor: pointer; }
.account:hover { background: rgba(255,255,255,.26); }
.account-menu { position: absolute; right: 2rem; top: 3.4rem; z-index: 20; background: var(--panel); color: var(--ink); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 1rem 1.1rem; min-width: 260px; border: 1px solid var(--line); }
.account-menu__name { margin: 0; font-weight: 650; }
.account-menu__meta { margin: .2rem 0 .8rem; color: var(--muted); font-size: .82rem; }

/* navigation pill bar overlapping the chrome band */
.nav { margin: -3rem 2rem 0; position: relative; z-index: 5; }
.nav ul { list-style: none; margin: 0; padding: .4rem; display: flex; flex-wrap: wrap; gap: .25rem; background: var(--panel);
  border-radius: 999px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.nav a { display: inline-block; padding: .45rem .95rem; border-radius: 999px; color: var(--ink-2) !important; font-weight: 550; font-size: .9rem; }
.nav a:hover { background: var(--accent-soft); text-decoration: none !important; }
.nav a[aria-current="page"] { background: linear-gradient(135deg, #5b4ce6, #7a3ff0); color: #fff !important; }
.nav .nav__count { display: inline-block; min-width: 1.4em; margin-left: .35rem; padding: 0 .4em; border-radius: 999px; font-size: .74rem;
  background: var(--bad); color: #fff; text-align: center; }

/* Enrollment drop-down inside the one menu (no second menu bar) */
.nav .nav__group { position: relative; }
.nav .nav__group > a::after { content: "\00a0\25BE"; font-size: .75em; opacity: .7; }
.nav ul.nav__drop { position: absolute; top: 100%; left: 0; z-index: 20; min-width: 15rem; margin: .1rem 0 0; padding: .35rem;
  display: flex; flex-direction: column; flex-wrap: nowrap; gap: .1rem; border-radius: var(--radius); }
.nav ul.nav__drop[hidden] { display: none; }
.nav ul.nav__drop a { display: block; border-radius: calc(var(--radius) - 4px); white-space: nowrap; }
.nav ul.nav__drop a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-deep) !important; }
@media (max-width: 760px) { .nav ul.nav__drop { position: static; box-shadow: none; border: 0; padding: 0 0 0 .8rem; } }

/* Issuance readiness (Private CAs) and the certificate usage section of a profile */
.readiness { display: flex; flex-direction: column; gap: .25rem; max-width: 26rem; }
.readiness .muted { font-size: .82rem; }
.usage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .35rem .9rem; margin: .4rem 0 .8rem; }
.usage-grid label { display: flex; gap: .4rem; align-items: center; font-weight: 500; }
.wizard-steps { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.wizard-steps li { padding: .25rem .7rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); font-size: .82rem; }
.wizard-steps li.is-current { background: linear-gradient(135deg, #5b4ce6, #7a3ff0); color: #fff; }
.wizard-section { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin: 0 0 .9rem; }
.wizard-section > h3 { margin: 0 0 .5rem; font-size: 1rem; }
.problem-list { margin: .3rem 0 0; padding-left: 1.1rem; }

/* Search, date range and order above every list: the same fields as every form */
.list-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem .8rem; margin: 0 0 .9rem; padding: .8rem 1rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.list-tools input, .list-tools select { font: inherit; font-size: .9rem; padding: .48rem .65rem; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink); min-height: 2.35rem; }
.list-tools input[type="search"] { flex: 1 1 16rem; min-width: 11rem; max-width: 30rem; }
.list-tools__d { display: grid; gap: .25rem; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.list-tools__d input, .list-tools select { width: auto; }
.list-tools .btn { min-height: 2.35rem; }
.list-tools__count { margin-left: auto; align-self: center; font-size: .82rem; }
tr[hidden] { display: none; }

/* Enrollment strip on the Certificates page */
.enroll-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin: 0 0 1.2rem; padding: 1rem 1.2rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.enroll-strip__head { display: flex; align-items: baseline; gap: .6rem; }
.enroll-strip__head h2 { margin: 0; font-size: 1.05rem; }
.enroll-strip__stats { display: flex; flex-wrap: wrap; gap: .6rem; flex: 1 1 18rem; }
.enroll-stat { display: inline-flex; align-items: baseline; gap: .5rem; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink) !important; text-decoration: none !important; background: var(--bg, #fff); }
.enroll-stat:hover { border-color: var(--accent); }
.enroll-stat__value { font-size: 1.15rem; font-weight: 700; }
.enroll-stat__label { font-size: .82rem; color: var(--muted); }
.enroll-stat--warn { border-color: var(--warn); } .enroll-stat--bad { border-color: var(--bad); }
.enroll-strip .actions { margin-left: auto; }
.enroll-strip__more { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.enroll-strip__more strong { margin-right: .3rem; font-size: .9rem; }

/* Request a certificate: larger, sectioned form */
.request-form { gap: 1rem 1.2rem; }
.request-form .field input, .request-form .field select { font-size: .98rem; padding: .62rem .8rem; }
.request-form .field label { font-size: .84rem; }
.form__section, .form__wide { grid-column: 1 / -1; }
.form__section { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.form__section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.form__section h3 { margin: 0; font-size: 1.05rem; }
.form__section p { margin: .15rem 0 0; font-size: .86rem; }
.form__wide { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.csr-box { width: 100%; min-height: 11rem; font-family: var(--mono); font-size: .8rem; line-height: 1.45; padding: .7rem .8rem;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; color: var(--ink); resize: vertical; }
.advanced { margin-top: 1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.btn--large { padding: .8rem 1.8rem; font-size: 1rem; }

/* Lists use the whole page width (no max-width cap). */
#main { padding: 1.6rem 2rem 3rem; margin: 0; outline: none; }

/* page header */
.page-head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.page-head__text { flex: 1; min-width: 240px; }
.page-head__text p { margin: .1rem 0 0; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* cards and grids */
.card { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 1.15rem 1.25rem; margin-bottom: 1.1rem; }
.card > h2, .card > h3 { margin-bottom: .8rem; }
.card__head { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.card__head h2, .card__head h3 { margin: 0; flex: 1; }
.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.stat { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 1rem 1.2rem; }
.stat__label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.stat__value { font-size: 1.8rem; font-weight: 700; margin-top: .15rem; }
.stat__note { color: var(--muted); font-size: .82rem; }
.stat--bad .stat__value { color: var(--bad); } .stat--warn .stat__value { color: var(--warn); } .stat--ok .stat__value { color: var(--ok); }

/* bars */
.bars { display: grid; gap: .45rem; }
.bar { display: grid; grid-template-columns: minmax(110px, 34%) 1fr 3.5rem; gap: .6rem; align-items: center; font-size: .86rem; }
.bar__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar__track { display: block; height: 10px; background: var(--neutral); border-radius: 999px; overflow: hidden; }
.bar__fill { display: block; height: 100%; background: linear-gradient(90deg, #5b4ce6, #7a3ff0); border-radius: 999px; }
.bar__fill--bad { background: var(--bad); } .bar__fill--warn { background: #e5a32b; } .bar__fill--ok { background: var(--ok); }
.bar__value { text-align: right; font-variant-numeric: tabular-nums; }
.w-0 { width: 0; } .w-5 { width: 5%; } .w-10 { width: 10%; } .w-15 { width: 15%; } .w-20 { width: 20%; } .w-25 { width: 25%; }
.w-30 { width: 30%; } .w-35 { width: 35%; } .w-40 { width: 40%; } .w-45 { width: 45%; } .w-50 { width: 50%; } .w-55 { width: 55%; }
.w-60 { width: 60%; } .w-65 { width: 65%; } .w-70 { width: 70%; } .w-75 { width: 75%; } .w-80 { width: 80%; } .w-85 { width: 85%; }
.w-90 { width: 90%; } .w-95 { width: 95%; } .w-100 { width: 100%; }

/* tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .86rem; }
table.data th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650;
  padding: .55rem .6rem; border-bottom: 1px solid var(--line-2); background: var(--sub); white-space: nowrap; }
table.data td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr.clickable { cursor: pointer; }
table.data tr.clickable:hover td { background: var(--hover); }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data input[type="checkbox"] { margin: 0; }
/* Lists use the whole width and shrink to fit it: long values (DNs, ids, URLs, fingerprints) wrap, so the action column
   stays on screen at every width. At 720 px and below each row becomes a card (labels from data-label, set by LC.table). */
.table-wrap th, .table-wrap td { overflow-wrap: anywhere; }
table.data td.cell-time { overflow-wrap: normal; min-width: 5.5rem; }
/* Endpoints pages: long store paths and DNs wrap inside a column wide enough to read */
table.data td.cell-wide { min-width: 16rem; }
table.data td.cell-name { min-width: 9rem; }
/* a run error is a sentence, not a status word: it wraps inside its column */
#app .badge.badge--wrap { white-space: normal; overflow-wrap: anywhere; text-align: left; line-height: 1.35; }
table.data td.cell-actions .actions { flex-wrap: wrap; }
table.data td.cell-actions .btn { white-space: nowrap; }
table.data td .select-box { margin: 0 .45rem 0 0; vertical-align: middle; }
table.data td .badges { display: flex; flex-wrap: wrap; gap: .25rem; }
/* Private CAs - integration points: a URL with its copy button; several items one under the other */
.url-cell { display: inline-flex; align-items: center; gap: .4rem; max-width: 100%; }
.url-cell code { word-break: break-all; font-size: .8rem; }
.url-cell .url-link { min-width: 0; flex: 1 1 auto; }
.url-cell .btn { flex: none; white-space: nowrap; min-width: 4.6rem; justify-content: center; }   /* "Copy" never breaks into "Cop / y" */
.col-list { display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.readable-list { margin: 0; padding-left: 1.1rem; }
.url-link { color: inherit; text-decoration: underline; text-decoration-color: var(--muted, #888); }
.url-link:hover code { text-decoration: underline; }
.link-fill { margin-top: .35rem; align-self: flex-start; }
.download-grid { flex-wrap: wrap; gap: .4rem; }
@media (max-width: 1100px) {
  table.data th { white-space: normal; }
  table.data .badge { white-space: normal; }
}

/* badges */
.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 600; padding: .12rem .55rem; border-radius: 999px;
  background: var(--neutral); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; opacity: .75; }
.badge--ok { background: var(--ok-soft); color: var(--ok); } .badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--bad { background: var(--bad-soft); color: var(--bad); } .badge--info { background: var(--info-soft); color: var(--info); }
.badge--accent { background: var(--accent-soft); color: var(--accent-deep); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid transparent; border-radius: 999px; padding: .45rem 1rem;
  font: inherit; font-weight: 600; font-size: .86rem; cursor: pointer; background: linear-gradient(135deg, #5b4ce6, #7a3ff0); color: #fff; }
.btn:hover { filter: brightness(1.07); }
.btn:disabled { opacity: .55; cursor: not-allowed; filter: none; }
.btn--ghost { background: var(--panel); color: var(--accent-deep); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--accent-soft); }
.btn--danger { background: var(--bad); }
.btn--small { padding: .25rem .7rem; font-size: .8rem; }
.btn.is-busy::after { content: ""; width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* forms */
.form { display: grid; gap: .8rem; }
.form--cols { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: grid; gap: .25rem; }
.field label { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--muted); font-size: .78rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: .9rem; padding: .48rem .65rem; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.field textarea { min-height: 7rem; font-family: var(--mono); font-size: .8rem; }
.field textarea.field__tall { min-height: min(62vh, 44rem); resize: vertical; line-height: 1.45; }
.field--check { display: flex; align-items: center; gap: .5rem; }
.field--check label { font-weight: 500; }
.field input:invalid, .field.has-error input { border-color: var(--bad); }
.field__error { color: var(--bad); font-size: .78rem; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .7rem; align-items: end; }

/* key/value */
dl.kv { display: grid; grid-template-columns: minmax(150px, max-content) 1fr; gap: .35rem 1.1rem; margin: 0; font-size: .88rem; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; word-break: break-word; }

/* tabs */
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.tabs button { border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted); padding: .55rem .9rem; cursor: pointer;
  border-bottom: 2px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--accent-deep); border-bottom-color: var(--accent); }

/* states */
.state { padding: 2.2rem 1rem; text-align: center; color: var(--muted); }
.state--error { color: var(--bad); }
.state--denied { color: var(--warn); }
.state__title { font-weight: 650; color: var(--ink-2); margin-bottom: .3rem; }
.spinner { display: inline-block; width: 1.2rem; height: 1.2rem; border-radius: 50%; border: 2px solid var(--accent); border-right-color: transparent;
  animation: spin .7s linear infinite; vertical-align: middle; margin-right: .5rem; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 .9rem .6rem; font-size: .86rem; }
.timeline li::before { content: ""; position: absolute; left: -1.48rem; top: .35rem; width: .62rem; height: .62rem; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--panel); }
.timeline li.is-bad::before { background: var(--bad); } .timeline li.is-ok::before { background: var(--ok); }
.timeline__when { color: var(--muted); font-size: .78rem; }

/* chain viewer */
.chain { display: grid; gap: .5rem; }
.chain__node { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .65rem .8rem; background: var(--sub); }
.chain__node--leaf { border-color: var(--accent); background: var(--accent-soft); }
.chain__arrow { text-align: center; color: var(--muted); }

/* stepper of job states */
.steps { display: flex; flex-wrap: wrap; gap: .3rem; }
.steps span { font-size: .74rem; padding: .15rem .55rem; border-radius: 999px; background: var(--neutral); color: var(--muted); }
.steps span.is-done { background: var(--ok-soft); color: var(--ok); }
.steps span.is-current { background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; }
.steps span.is-bad { background: var(--bad-soft); color: var(--bad); font-weight: 700; }

/* modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 12, 45, .45); z-index: 40; display: flex; align-items: flex-start; justify-content: center;
  padding: 5vh 1rem; overflow-y: auto; }
.modal { background: var(--panel); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(15, 12, 45, .3); width: min(680px, 100%); padding: 1.3rem 1.4rem; }
.modal { position: relative; }
.modal__x { position: absolute; top: .55rem; right: .7rem; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.modal__x:hover, .modal__x:focus-visible { background: var(--accent-soft); color: var(--ink); }
.modal--wide { width: min(980px, 100%); }
.modal h2 { margin: 0 0 1rem; font-size: 1.12rem; }
.modal__foot { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.2rem; }
.modal__error { color: var(--bad); background: var(--bad-soft); padding: .55rem .75rem; border-radius: var(--radius-sm); font-size: .86rem; }
.modal pre { white-space: pre-wrap; word-break: break-all; font-family: var(--mono); font-size: .76rem; background: var(--sub); padding: .7rem;
  border-radius: var(--radius-sm); max-height: 50vh; overflow: auto; }

.toast { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 50; background: #17143a; color: #fff; padding: .7rem 1rem; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); max-width: 440px; font-size: .9rem; }
.toast.bad { background: var(--bad); }
.notice { padding: .6rem .8rem; border-radius: var(--radius-sm); font-size: .86rem; margin-bottom: .9rem; background: var(--info-soft); color: var(--info); }
.notice--warn { background: var(--warn-soft); color: var(--warn); }
.notice--bad { background: var(--bad-soft); color: var(--bad); }
.nav a.nav__external::after { content: "\00a0\2197"; font-size: .8em; opacity: .7; }
.card pre, details.example pre { white-space: pre-wrap; word-break: break-word; font-family: var(--mono); font-size: .78rem;
  background: var(--sub); padding: .7rem; border-radius: var(--radius-sm); margin: .4rem 0 0; }
details.example { border-top: 1px solid var(--line, rgba(0,0,0,.08)); padding: .55rem 0; }
details.example summary { cursor: pointer; font-weight: 600; }
.more { text-align: center; margin-top: .8rem; }
.inline-list { display: flex; flex-wrap: wrap; gap: .35rem; }

@media (max-width: 720px) {
  #app .table-wrap table, #app .table-wrap tbody, #app .table-wrap tr { display: block; width: auto; }
  #app .table-wrap table { table-layout: auto; border: none; background: none; box-shadow: none; overflow: visible; }
  #app .table-wrap thead { display: none; }
  #app .table-wrap tbody tr { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: .45rem .85rem; margin-bottom: .65rem; }
  #app .table-wrap tr.clickable:hover td { background: none; }
  #app .table-wrap td { display: grid; grid-template-columns: minmax(6rem, 32%) minmax(0, 1fr); column-gap: .75rem; align-items: start;
    padding: .35rem 0; border-bottom: 1px solid var(--line); text-align: left; }
  #app .table-wrap tr td:last-child { border-bottom: none; }
  #app .table-wrap td::before { content: attr(data-label); grid-column: 1; grid-row: 1 / span 9; color: var(--muted); font-size: .72rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding-top: .1rem; }
  #app .table-wrap td > * { grid-column: 2; }
  #app .table-wrap td[data-label=""]::before { content: none; }
  #app .table-wrap td[data-label=""] { display: block; padding-top: .5rem; }
  #app .table-wrap td.cell-time { min-width: 0; }
  .card { padding: 1rem .9rem; }
  .page-head .actions .btn { white-space: normal; }
}
@media (max-width: 760px) {
  .topbar { padding: .75rem 1rem 3.8rem; }
  .nav { margin: -3rem 1rem 0; }
  .nav ul { border-radius: var(--radius); }
  #main { padding: 1.2rem 1rem 2rem; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  dl.kv { grid-template-columns: 1fr; }
  .brand__product { font-size: .85rem; padding-left: .6rem; }
}

/* Private CAs: an Issuing CA under its Root */
.tree-child { padding-left: 1.5rem; }

/* Long names (ids without spaces) wrap in page and card headings; list headings wrap at spaces (a narrow card on the
   dashboard grid too); a long account or organisation name in the top bar is cut instead of widening the page. */
#app h1, #app h2, #app h3, #app .page-head__text p { overflow-wrap: anywhere; }
table.data th { white-space: normal; }
.account { max-width: min(18rem, 40vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .chip { max-width: min(18rem, 30vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* On wide screens ordinary words (PRODUCTION, ENVIRONMENT) stay whole; only identifiers - the name column, ids, codes,
   links and second lines (e-mails, DNs) - may break anywhere. Below 1100 px every cell may break so the row still fits. */
@media (min-width: 1101px) {
  .table-wrap th { overflow-wrap: normal; }
  .table-wrap td { overflow-wrap: break-word; }
  .table-wrap td:first-child, .table-wrap td .mono, .table-wrap td code, .table-wrap td a, .table-wrap td .muted, .table-wrap td .sub { overflow-wrap: anywhere; }
}
/* A list inside a narrow dashboard grid card keeps breaking anywhere (its columns are few and narrow). */
@media (min-width: 1101px) { .grid .table-wrap th, .grid .table-wrap td { overflow-wrap: anywhere; } }

/* Connect PQCTrust CA and Private CAs (2026-11-03): two-column groups, checklists, the setup flow strip, collapsed
   advanced settings and the policy-fixed key storage line. */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: .9rem 1.4rem; margin-bottom: .9rem; }
#app .card__subtitle { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: .4rem 0 .45rem; }
.checklist { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .3rem; }
.checklist li { padding-left: 1.4rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: .2rem; top: .45rem; width: .55rem; height: .3rem; border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.advanced { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .55rem .8rem; margin: .2rem 0 .9rem; background: var(--sub); }
.advanced summary { cursor: pointer; font-weight: 600; color: var(--ink-2); font-size: .86rem; }
.advanced[open] summary { margin-bottom: .7rem; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--bad); }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: .7rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.flow li { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .85rem; background: var(--panel); display: grid; gap: .3rem; align-content: start; }
.flow li.is-done { border-color: var(--ok); background: var(--ok-soft); }
.flow li.is-current { border-color: var(--accent); background: var(--accent-soft); }
.flow__n { font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.flow li.is-done .flow__n { color: var(--ok); } .flow li.is-current .flow__n { color: var(--accent-deep); }
.flow__t { font-weight: 650; color: var(--ink); }
.flow__d { font-size: .82rem; color: var(--ink-2); }
.flow li .btn { justify-self: start; margin-top: .2rem; }
.fixed-value { padding: .48rem .65rem; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); background: var(--sub); font-size: .9rem; }
.form--cols .field, .grid-2 .field { align-content: start; }

/* Check boxes and radio buttons keep their natural size next to their label (".field input" is full width) */
.field input[type="checkbox"], .field input[type="radio"] { width: auto; flex: 0 0 auto; margin: 0; }
.field .field--check { display: flex; align-items: center; gap: .5rem; }
.field .field--check label { font-weight: 500; }


.usage-outside { color: #b45309; font-weight: 600; }

/* "Ask" checkbox in the certificate fields table of an enrollment profile: tick to ask for the field, then Required or Optional */
.ask-pick { display: flex; align-items: center; gap: .7rem; }
.ask-pick__use { display: inline-flex; align-items: center; gap: .4rem; margin: 0; font-weight: 600; white-space: nowrap; cursor: pointer; }
.ask-pick input[type=checkbox] { width: 1.15rem; height: 1.15rem; margin: 0; flex: none; }
.ask-pick select { flex: 1 1 auto; min-width: 7rem; }

/* display time zone chip (lc-time.js): "Time zone: GMT+8"; a signed-in person clicks it to choose organisation / browser / a zone */
.chip--tz { border: 0; font-family: inherit; font-size: .78rem; line-height: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.chip--tz:hover:not(:disabled), .chip--tz:focus-visible { background: rgba(255,255,255,.26); }
.chip--tz:disabled { cursor: default; opacity: 1; }

/* Endpoint dialogs: field help (the "i" button), live checks with a one-click suggestion, and the REST API guide (enrollment-assist.js) */
.field label .assist-i { display: inline-grid; place-items: center; width: 1.15rem; height: 1.15rem; margin-left: .4rem; padding: 0; border-radius: 50%;
  border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent-deep); font: italic 700 .72rem/1 Georgia, serif; cursor: pointer; vertical-align: 1px; }
.field label .assist-i:hover, .field label .assist-i[aria-expanded="true"] { background: var(--accent); color: #fff; }
.assist-pop { background: var(--sub); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: .6rem .8rem; font-size: .82rem; color: var(--ink-2); }
.assist-pop[hidden], .assist-msg[hidden] { display: none; }
.assist-pop p { margin: .3rem 0; }
.assist-rules { margin: .25rem 0 .4rem 1.1rem; padding: 0; }
.assist-label { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: .4rem 0 .2rem; }
.assist-examples { display: grid; gap: .3rem; }
.assist-ex { display: grid; gap: .1rem; text-align: left; padding: .35rem .55rem; border: 1px dashed var(--line-2); border-radius: 8px; background: var(--panel); cursor: pointer; font: inherit; color: inherit; }
.assist-ex:hover { border-color: var(--accent); background: var(--accent-soft); }
.assist-ex code { white-space: pre-wrap; font-family: var(--mono); font-size: .78rem; color: var(--accent-deep); }
.assist-ex span { font-size: .76rem; color: var(--muted); }
.assist-note { color: var(--muted); font-style: italic; }
.assist-msg { font-size: .8rem; padding: .4rem .6rem; border-radius: 8px; background: var(--neutral); color: var(--ink-2); display: grid; gap: .3rem; justify-items: start; }
.assist-msg ul { margin: 0 0 0 1.1rem; padding: 0; }
.assist-msg--error { background: var(--bad-soft); color: var(--bad); }
.assist-msg--warn { background: var(--warn-soft); color: var(--warn); }
.assist-msg--ok { background: var(--ok-soft); color: var(--ok); }
.assist-msg--hint { background: var(--info-soft); color: var(--info); }
.assist-use { font: inherit; font-size: .78rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; border: 1px solid currentColor; background: var(--panel); color: var(--accent-deep); cursor: pointer; }
.assist-use:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.assist-preview { margin: 0; max-height: 11rem; overflow: auto; width: 100%; font-family: var(--mono); font-size: .76rem; background: var(--panel); color: var(--ink); padding: .4rem .55rem; border-radius: 6px; }
.assist-guide { display: grid; gap: .8rem; }
.assist-code { border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: var(--sub); }
.assist-code__head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .35rem .65rem; background: var(--neutral); font-size: .82rem; }
.assist-code pre { margin: 0; padding: .6rem .75rem; overflow-x: auto; font-family: var(--mono); font-size: .76rem; line-height: 1.45; white-space: pre; }

.field--check { flex-wrap: wrap; }
.field--check > .assist-pop, .field--check > .assist-msg { flex: 1 0 100%; }


/* "checks" form field: a list of tick boxes with a short description each (roles, 2026-11-17) */
.field-checks { display: grid; gap: .45rem; margin-top: .3rem; }
.field-checks__item { display: flex; align-items: flex-start; gap: .65rem; padding: .55rem .75rem; margin: 0; cursor: pointer;
  border: 1px solid var(--line, #e3e1f1); border-radius: 10px; background: var(--panel, #fff); font-weight: 400; }
.field-checks__item:hover { border-color: var(--line-2, #cfcce6); }
.field-checks__item:has(input:checked) { border-color: var(--accent, #5b4ce6); background: var(--accent-soft, #edeafe); }
.field-checks__item input { flex: none; width: 1.05rem; height: 1.05rem; margin: .15rem 0 0; accent-color: var(--accent, #5b4ce6); }
.field-checks__text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.field-checks__text strong { font-family: var(--mono, ui-monospace, monospace); font-size: .85rem; font-weight: 600; }
.field-checks__text small { color: var(--muted, #6b6a8a); font-size: .82rem; line-height: 1.35; }
