/* Kit v3 Federation: the structure console over the globe. Tokens from v3.css only. Logical properties, so the page
   works right to left. Red marks only the selection and the current recognition state. */
@font-face { font-family: "Plex"; src: url(vendor/fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; src: url(vendor/fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

.fd-main { inset-block: 76px 120px; inset-inline-start: 76px; width: 412px; }
.fd-main .panel__hd { padding-block-end: 12px; }
.fd-hdrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fd-hdrow .chip { text-decoration: none; }
.fd-hdrow .chip:hover { color: var(--ink); border-color: var(--ink-3); }
.fd-main .title { font-size: 24px; }
.fd-main .ctx1 { margin-block-start: 8px; }
.fd-main .stats { margin-block-start: 12px; }
.fd-main .stat b { font-size: 26px; }
.fd-main .stat small { display: block; color: var(--ink-3); font-size: 11px; margin-block-start: 2px; }
.chip--sm { height: 20px; padding-inline: 7px; font-size: 11px; }
.fd-views { margin-block-start: 12px; }
.fd-views button { font-size: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding-inline: 2px; min-width: 0; }
.fd-views button em { font-style: normal; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fd-filt { margin-block-start: 10px; display: grid; gap: 8px; }
.fd-filt[hidden] { display: none; }
.fd-q { display: flex; align-items: center; gap: 8px; height: 32px; padding-inline: 10px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-3); }
.fd-q input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 12.5px; }
.fd-tiers { display: flex; flex-wrap: wrap; gap: 4px; }
.pill { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding-inline: 9px; border-radius: var(--r); border: 1px solid var(--line); background: transparent; color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.pill em { font-style: normal; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pill:hover { border-color: var(--line-2); color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill[aria-pressed="true"] em { color: inherit; opacity: .6; }

/* Rows */
.fd-row { grid-template-columns: 24px minmax(0,1fr) auto; }
.fd-fl { display: inline-flex; justify-content: center; }
.fd-nofl { color: var(--ink-3); display: inline-flex; }
.fd-row__t { min-width: 0; }
.fd-row__t b { display: block; }
.fd-row__t small { display: block; color: var(--ink-3); font-size: 11.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fd-mine { background: linear-gradient(var(--bg-1), var(--bg-1)) padding-box; border-block-end: 1px solid var(--line); }
.group__h .eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.group__h .eyebrow .fl { width: 16px; height: 11px; }
.fd-st { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding-inline: 8px; border-radius: var(--r); border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 11.5px; white-space: nowrap; }
.fd-st i { width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; }
.fd-st--chartered { border-style: solid; color: var(--ink); }
.fd-st--chartered i { background: currentColor; }
.row[aria-selected="true"] .fd-st { border-color: var(--red); color: var(--red); }

.fd-sec { padding: 12px 16px 2px; }
.fd-sec + .fd-sec { border-block-start: 1px solid var(--line); margin-block-start: 10px; }
.fd-sec > .eyebrow { display: block; margin-block-end: 8px; }
.fd-sec > .eyebrow b { color: var(--ink); margin-inline-start: 6px; }
.fd-lead { margin: 0 0 6px; color: var(--ink-2); }
.fd-note { margin: 0 0 6px; color: var(--ink-3); font-size: 12px; }
.fd-lvl { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 8px 0; border-block-start: 1px solid var(--line); }
.fd-lvl:first-of-type { border: 0; }
.fd-lvl--p { grid-template-columns: 1fr; }
.fd-lvl__n { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font: 500 10.5px/1 var(--m); color: var(--ink-3); }
.fd-lvl b, .fd-organ b { font-weight: 600; }
.fd-lvl p, .fd-organ p { margin: 2px 0 0; color: var(--ink-2); font-size: 12.5px; }
.fd-organ { display: block; width: 100%; text-align: start; padding: 10px 12px; margin-block-end: 6px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-1); position: relative; }
.fd-organ::before { content: ""; position: absolute; inset-inline-start: 0; inset-block: 10px; width: 2px; background: var(--pastel); border-radius: var(--r); opacity: .8; }
.fd-organ:hover { border-color: var(--line-2); }
.fd-organ[aria-selected="true"] { border-color: var(--red); background: var(--red-soft); }
.fd-src { margin: 14px 16px 16px; padding-block-start: 10px; border-block-start: 1px solid var(--line); color: var(--ink-3); font: 400 11px/1.45 var(--m); }
.fd-srcl { color: var(--ink-3); font: 400 11px/1.45 var(--m); }

.fd-proc { list-style: none; margin: 8px 0 0; padding: 0; position: relative; }
.fd-proc li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding-block: 8px; position: relative; }
.fd-proc li:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 11.5px; inset-block: 32px -6px; width: 1px; background: var(--pastel); opacity: .6; }
.fd-proc__n { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font: 500 11px/1 var(--m); background: var(--bg); }
.fd-proc__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fd-proc p { margin: 3px 0 2px; color: var(--ink-2); font-size: 12.5px; }
.fd-proc small { color: var(--ink-3); font: 400 10.5px/1.3 var(--m); }
.fd-prep { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-block-start: 1px solid var(--line); font-size: 12.5px; }
.fd-prep:first-of-type { border: 0; }
.fd-prep em, .fd-role em { font-style: normal; font-size: 11px; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: var(--r); padding: 2px 6px; white-space: nowrap; }
.fd-role { display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; align-items: start; padding: 7px 0; border-block-start: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.fd-role:first-of-type { border: 0; }
.fd-role svg { margin-block-start: 2px; color: var(--ink-3); }
.fd-dec { padding: 8px 0; border-block-start: 1px solid var(--line); }
.fd-dec:first-of-type { border: 0; }
.fd-dec p { margin: 6px 0 0; color: var(--ink-2); font-size: 12.5px; }

.fd-empty { margin: 12px 16px; padding: 14px; border-radius: var(--r); border: 1px dashed var(--line-2); display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; }
.fd-empty b { grid-row: span 2; font: 600 34px/1 var(--f); }
.fd-empty span { font-weight: 600; }
.fd-empty small { color: var(--ink-3); }
.fd-empty .btn { grid-column: 1 / -1; justify-content: center; margin-block-start: 8px; }
.fd-empty--sm { margin: 0; }

/* Inspector */
.fd-insp { width: 372px; }
.fd-insp .panel__hd { padding-inline-end: 56px; }
.fd-insp .title { font-size: 24px; }
.fd-insp .title--fl .fl { flex: none; }
.kvs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; margin: 14px 16px 0; }
.kvs div { background: var(--bg-1); padding: 10px; min-width: 0; }
.kvs b { display: block; font: 600 15px/1.2 var(--f); }
.kvs span { display: block; margin-block-start: 4px; color: var(--ink-3); font-size: 11.5px; }
.fd-step { list-style: none; margin: 0; padding: 0; }
.fd-step li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; position: relative; }
.fd-step li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 10.5px; inset-block: 30px -6px; width: 1px; background: var(--line-2); }
.fd-step i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font: 500 10.5px/1 var(--m); font-style: normal; color: var(--ink-3); background: var(--bg); position: relative; z-index: 1; }
.fd-step li.is-on i { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.fd-step li.is-on i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.fd-step b { display: block; font-weight: 600; font-size: 13px; }
.fd-step small { display: block; color: var(--ink-3); font-size: 11.5px; }
.fd-step em { font-style: normal; font: 600 15px/1 var(--f); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.fd-step li.is-on em { color: var(--ink); }
.fd-step em.fd-here { font: 500 10.5px/1 var(--f); color: var(--red); background: var(--red-soft); padding: 3px 6px; border-radius: var(--r); }
.fd-cells { display: flex; flex-wrap: wrap; gap: 4px; }
.fd-cells button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding-inline: 8px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-1); font-size: 12px; }
.fd-cells button small { color: var(--ink-3); font-size: 10.5px; }
.fd-cells button:hover { border-color: var(--line-2); }
.fd-parent { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; text-align: start; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-1); }
.fd-parent b { display: block; font-weight: 600; }
.fd-parent small { display: block; color: var(--ink-3); font-size: 12px; }
.fd-parent:hover { border-color: var(--line-2); }
.fd-insp .acts { padding-block-end: 4px; }

/* Strip: the state line */
.fd-strip { inset-inline: 76px 76px; grid-template-columns: 196px minmax(0,1fr) 250px; }
.fd-line { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); }
.fd-line button { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 10px 14px; border: 0; border-inline-start: 1px solid var(--line); background: transparent; text-align: start; position: relative; min-width: 0; }
.fd-line button:first-child { border-inline-start: 0; }
.fd-line button:hover { background: var(--bg-2); }
.fd-line button::after { content: ""; position: absolute; inset-inline: 14px; inset-block-end: 10px; height: 1.5px; background: var(--line-2); border-radius: var(--r); }
.fd-line button.has::after { background: var(--pastel); }
.fd-line button[aria-pressed="true"] { background: var(--bg-2); }
.fd-line button[aria-pressed="true"]::after { background: var(--red); }
.fd-line__k { color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-line b { font: 600 24px/1 var(--f); font-variant-numeric: tabular-nums; }
.fd-line small { color: var(--ink-3); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-block-end: 6px; }
.fd-strip__r { gap: 6px; justify-content: center; }
.fd-strip__r .btn { justify-content: center; }
.fd-strip__r small { color: var(--ink-3); font-size: 11.5px; }

@media (min-width: 761px) { .fd-layers, .has-rail-end .fd-layers, .has-rail-end .app:has(#insp[hidden]) .fd-layers { inset-inline-start: 500px; max-width: calc(100% - 500px - 460px); } }
.fd-pin { pointer-events: none; }
.fd-pin span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: var(--r); background: var(--glass-2); border: 1px solid var(--red); box-shadow: var(--sh); font: 600 12.5px/1 var(--f); color: var(--ink); white-space: nowrap; }
.fd-pin .fl { width: 20px; height: 13px; vertical-align: 0; }
.fd-pin small { font-weight: 400; color: var(--ink-3); font-size: 11px; }

@media (max-width: 760px) {
  .fd-main { max-height: 56vh !important; }
  .fd-main .title { font-size: 18px; margin-block-start: 4px; }
  .fd-main .stats, .fd-main .ctx1 { display: none; }
  .fd-main .panel__hd { padding: 12px 12px 10px; }
  .fd-insp { max-height: 56vh; }
  .fd-insp.is-idle { display: none; }
  .app:has(.fd-insp .x) .fd-main { display: none; }
  .fd-pin small { display: none; }
}
