/* integrations module styles */

/* coverage comparison */
:where(.ig, #drawer) .ig-cov { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; margin-top: 40px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
:where(.ig, #drawer) .ig-cov-t h2 { font-size: 17px; letter-spacing: -.015em; }
:where(.ig, #drawer) .ig-cov-t p { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; max-width: 54ch; }
:where(.ig, #drawer) .ig-cov-t p.muted { color: var(--ink-3); font-size: 13px; }
:where(.ig, #drawer) .ig-cmp { display: flex; flex-direction: column; gap: 18px; }
:where(.ig, #drawer) .ig-cmp-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 4px 16px; }
:where(.ig, #drawer) .ig-cmp-l { font-size: 12.5px; color: var(--ink-3); }
:where(.ig, #drawer) .ig-cmp-r b { font-size: 34px; font-weight: 500; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink-3); }
:where(.ig, #drawer) .ig-cmp-r.on b { color: var(--tc); }
:where(.ig, #drawer) .ig-cmp-b { grid-column: 1 / -1; display: block; height: 6px; border-radius: 99px; background: var(--tc); }
:where(.ig, #drawer) .ig-cmp-b.ghost { background: repeating-linear-gradient(90deg, var(--line-2) 0 3px, transparent 3px 6px); }

/* catalogue */
:where(.ig, #drawer) .ig-q { position: relative; display: inline-flex; align-items: center; flex: 0 1 260px; min-width: 0; }
:where(.ig, #drawer) .ig-q .ic { position: absolute; left: 10px; width: 15px; height: 15px; color: var(--ink-3); pointer-events: none; }
:where(.ig, #drawer) .ig-q input.inp { width: 100%; min-width: 0; padding-left: 32px; }
.ig .toolbar select.inp { min-width: 0; max-width: 100%; }
:where(.ig, #drawer) .ig-n { margin-left: 6px; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
:where(.ig, #drawer) .seg button.on .ig-n { color: var(--ink-2); }
:where(.ig, #drawer) .ig-cat { margin-top: 22px; }
:where(.ig, #drawer) .ig-cat:first-child { margin-top: 4px; }
:where(.ig, #drawer) .ig-cat h3 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 10px; letter-spacing: -.005em; }
:where(.ig, #drawer) .ig-cat h3 span { font-weight: 400; font-size: 12.5px; color: var(--ink-3); }
:where(.ig, #drawer) .ig-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 12px; }
:where(.ig, #drawer) .ig-tile { position: relative; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 12px; transition: border-color var(--t-fast), box-shadow var(--t-fast); min-width: 0; }
:where(.ig, #drawer) .ig-tile:hover { border-color: var(--line-2); box-shadow: 0 8px 24px -12px rgba(11,15,25,.16); }
:where(.ig, #drawer) .ig-tile.off { background: var(--panel-2); border-color: transparent; }
:where(.ig, #drawer) .ig-tile.off:hover { border-color: var(--line-2); }
:where(.ig, #drawer) .ig-th { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
:where(.ig, #drawer) .ig-tn { min-width: 0; flex: 1; }
:where(.ig, #drawer) .ig-tn h4 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
:where(.ig, #drawer) .ig-name { color: var(--ink); text-decoration: none; }
:where(.ig, #drawer) .ig-name::after { content: ''; position: absolute; inset: 0; border-radius: 14px; }
:where(.ig, #drawer) .ig-name:hover { color: var(--tc); }
:where(.ig, #drawer) .ig-name:focus-visible { outline: none; }
:where(.ig, #drawer) .ig-name:focus-visible::after { outline: 2px solid var(--tc); outline-offset: 2px; }
:where(.ig, #drawer) .ig-tn small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; line-height: 1.4; }
:where(.ig, #drawer) .ig-th .status { flex: none; font-size: 12px; margin-top: 1px; }
:where(.ig, #drawer) .ig-lg { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 600; font-size: 12.5px; letter-spacing: -.02em; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 8%, white); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 18%, white); }
:where(.ig, #drawer) .ig-lg.sm { width: 30px; height: 30px; border-radius: 8px; font-size: 11.5px; }
:where(.ig, #drawer) .ig-fig { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); padding-top: 10px; }
:where(.ig, #drawer) .ig-fig div + div { padding-left: 14px; border-left: 1px solid var(--line); }
:where(.ig, #drawer) .ig-fig dt { font-size: 11.5px; color: var(--ink-3); }
:where(.ig, #drawer) .ig-fig dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
:where(.ig, #drawer) .ig-feeds { margin: 0; font-size: 12.5px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 10px; line-height: 1.5; }
:where(.ig, #drawer) .ig-feeds span { color: var(--ink-3); }
:where(.ig, #drawer) .ig-ft { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; font-size: 12px; color: var(--ink-3); min-height: 28px; }
:where(.ig, #drawer) .ig-ft > span { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
:where(.ig, #drawer) .ig-ft .btn { position: relative; z-index: 1; }
:where(.ig, #drawer) .ig-codes { display: inline-flex; gap: 3px; flex-wrap: wrap; }
:where(.ig, #drawer) .ig-codes abbr { text-decoration: none; font-size: 11px; font-weight: 500; letter-spacing: .02em; color: var(--ink-2); background: var(--panel-3); border-radius: 5px; padding: 1px 5px; }
.ig .tbl-foot, :where(.ig, #drawer) #ig-cat .tbl-foot { margin-top: 16px; }

/* coverage matrix */
:where(.ig, #drawer) .ig-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--ink-3); }
:where(.ig, #drawer) .ig-leg span { display: inline-flex; align-items: center; gap: 6px; }
:where(.ig, #drawer) .ig-leg i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
:where(.ig, #drawer) .ig-mxw { margin: 0 -4px; }
:where(.ig, #drawer) .ig-mx { border-collapse: separate; border-spacing: 0; font-size: 12.5px; width: 100%; min-width: 900px; }
:where(.ig, #drawer) .ig-mx th, :where(.ig, #drawer) .ig-mx td { font-weight: 400; }
:where(.ig, #drawer) .ig-mx thead th { vertical-align: bottom; padding: 0 2px 10px; border-bottom: 1px solid var(--line); }
:where(.ig, #drawer) .ig-mx thead th.h0 { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 500; padding-left: 4px; }
:where(.ig, #drawer) .ig-mx thead th.h0 small { display: block; font-weight: 400; color: var(--ink-3); font-size: 11.5px; }
:where(.ig, #drawer) .ig-mx thead th.v { height: 150px; width: 40px; }
:where(.ig, #drawer) .ig-mx thead th.v button { border: 0; background: none; padding: 4px 0; cursor: pointer; color: var(--ink-2); font: inherit; font-size: 12px; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; border-radius: 6px; }
:where(.ig, #drawer) .ig-mx thead th.v button span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
:where(.ig, #drawer) .ig-mx thead th.v button::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
:where(.ig, #drawer) .ig-mx thead th.v button:hover { color: var(--tc); }
:where(.ig, #drawer) .ig-mx thead th.t { font-size: 12px; color: var(--ink-3); font-weight: 500; text-align: center; }
:where(.ig, #drawer) .ig-mx td { padding: 7px 2px; text-align: center; border-bottom: 1px solid var(--line); }
:where(.ig, #drawer) .ig-mx tbody th.n { text-align: left; white-space: nowrap; padding: 7px 14px 7px 4px; position: sticky; left: 0; background: var(--panel); z-index: 1; border-bottom: 1px solid var(--line); }
:where(.ig, #drawer) .ig-mx th.n a { color: var(--ink); font-weight: 500; text-decoration: none; }
:where(.ig, #drawer) .ig-mx th.n a:hover { color: var(--tc); }
:where(.ig, #drawer) .ig-mx th.n small { color: var(--ink-3); margin-left: 8px; font-size: 11.5px; }
:where(.ig, #drawer) .ig-mx tbody tr:not(.cat):hover td, :where(.ig, #drawer) .ig-mx tbody tr:not(.cat):hover th.n { background: var(--panel-2); }
:where(.ig, #drawer) .ig-mx i.d { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 14%, transparent); vertical-align: middle; }
:where(.ig, #drawer) .ig-mx i.e { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); vertical-align: middle; }
:where(.ig, #drawer) .ig-mx td.t { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); }
:where(.ig, #drawer) .ig-mx tr.cat th { text-align: left; font-size: 11.5px; font-weight: 500; color: var(--ink-3); padding: 18px 4px 6px; border-bottom: 1px solid var(--line); position: sticky; left: 0; background: var(--panel); }
:where(.ig, #drawer) .ig-mx tfoot th, :where(.ig, #drawer) .ig-mx tfoot td { padding: 10px 2px; font-variant-numeric: tabular-nums; font-weight: 500; color: var(--ink-2); text-align: center; border-top: 1px solid var(--line-2); }
:where(.ig, #drawer) .ig-mx tfoot th.n { text-align: left; padding-left: 4px; font-size: 12px; color: var(--ink-3); position: sticky; left: 0; background: var(--panel); }

/* health */
:where(.ig, #drawer) .ig-hr { margin-bottom: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
:where(.ig, #drawer) .ig-hr .stat-v.ok { color: var(--ok); }
:where(.ig, #drawer) .ig-spark { width: 84px; height: 22px; display: block; overflow: visible; }
:where(.ig, #drawer) .ig-spark polyline { fill: none; stroke: var(--tc); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; opacity: .75; }

/* open APIs */
:where(.ig, #drawer) .ig-apis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); gap: 14px; }
:where(.ig, #drawer) .ig-api { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
:where(.ig, #drawer) .ig-api header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
:where(.ig, #drawer) .ig-api h3 { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
:where(.ig, #drawer) .ig-api .tag { white-space: normal; height: auto; min-height: 20px; }
:where(.ig, #drawer) .ig-api p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
:where(.ig, #drawer) .ig-ep { width: 100%; border-collapse: collapse; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12px; background: var(--panel-2); border-radius: 10px; overflow: hidden; table-layout: fixed; }
:where(.ig, #drawer) .ig-ep td { padding: 7px 10px; border-top: 1px solid var(--line); vertical-align: top; }
:where(.ig, #drawer) .ig-ep tr:first-child td { border-top: 0; }
:where(.ig, #drawer) .ig-ep col.cm { width: 68px; }
:where(.ig, #drawer) .ig-ep td.m { font-weight: 600; font-size: 11px; letter-spacing: .02em; }
:where(.ig, #drawer) .ig-ep .m-get { color: var(--ok); } :where(.ig, #drawer) .ig-ep .m-post { color: var(--warn); } :where(.ig, #drawer) .ig-ep .m-patch { color: var(--info); }
:where(.ig, #drawer) .ig-ep td.p { overflow-wrap: anywhere; color: var(--ink); }
:where(.ig, #drawer) .ig-ep code { background: none; border: 0; padding: 0; font-size: 12px; }
:where(.ig, #drawer) .ig-ep .c { display: block; color: var(--ink-3); font-size: 11.5px; }
:where(.ig, #drawer) .ig-api-ft { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink-3); }
:where(.ig, #drawer) .ig-api-ft li { display: inline-flex; align-items: center; gap: 6px; }
:where(.ig, #drawer) .ig-api-ft li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-4); }
:where(.ig, #drawer) .ig-base { margin-top: 18px; font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; color: var(--ink-3); }
:where(.ig, #drawer) .ig-base dt { color: var(--ink-3); }
:where(.ig, #drawer) .ig-base dd { margin: 0 18px 0 0; color: var(--ink-2); }
:where(.ig, #drawer) .ig-base code { overflow-wrap: anywhere; }

/* drawers: connector, agent, wizard */
:where(.ig, #drawer) .dr-body .help { color: var(--ink-2); font-size: 13px; margin: 12px 0; }
:where(.ig, #drawer) .dr-body .ig-sync { margin-top: 14px; }
:where(.ig, #drawer) .dr-body .ig-dang { color: var(--bad); }
:where(.ig, #drawer) .dr-body .ig-dang:hover { border-color: var(--bad); }
:where(.ig, #drawer) .ig-confirm { margin-top: 18px; border: 1px solid #F3C9C5; background: var(--bad-bg); border-radius: 12px; padding: 14px 16px; }
:where(.ig, #drawer) .ig-confirm b { font-size: 14px; }
:where(.ig, #drawer) .ig-confirm p { margin: 4px 0 12px; font-size: 13px; color: var(--ink-2); }
:where(.ig, #drawer) .btn.danger { background: var(--bad-dot); border-color: var(--bad-dot); color: #fff; }
:where(.ig, #drawer) .btn.danger:hover { background: var(--bad); border-color: var(--bad); }
:where(.ig, #drawer) .ig-agent .list-row { align-items: flex-start; }
:where(.ig, #drawer) .ig-agent b { font-size: 13.5px; font-weight: 600; }
:where(.ig, #drawer) .ig-cmd { display: block; margin-top: 8px; font-size: 11.5px; overflow-wrap: anywhere; white-space: normal; background: var(--panel-2); padding: 6px 8px; }
:where(.ig, #drawer) .ig-agent .status { margin-top: 6px; }
:where(.ig, #drawer) .ig-steps { list-style: none; display: flex; gap: 6px; margin: 14px 0 18px; padding: 0; flex-wrap: wrap; }
:where(.ig, #drawer) .ig-steps li { flex: 1; min-width: 92px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); border-top: 2px solid var(--line); padding-top: 8px; }
:where(.ig, #drawer) .ig-steps li span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--panel-3); color: var(--ink-3); flex: none; }
:where(.ig, #drawer) .ig-steps li.on { color: var(--ink); border-color: var(--tc); }
:where(.ig, #drawer) .ig-steps li.on span { background: var(--tc); color: #fff; }
:where(.ig, #drawer) .ig-steps li.done { color: var(--ink-2); border-color: var(--tc-line); }
:where(.ig, #drawer) .ig-steps li.done span { background: var(--tc-bg); color: var(--tc); }
:where(.ig, #drawer) .ig-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
:where(.ig, #drawer) .ig-opt { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; cursor: pointer; background: var(--panel); font: inherit; text-align: left; color: var(--ink); min-height: 44px; transition: border-color var(--t-fast), background var(--t-fast); }
:where(.ig, #drawer) .ig-opt:hover { border-color: var(--ink-4); }
:where(.ig, #drawer) .ig-opt.on { border-color: var(--tc); background: var(--tc-bg); box-shadow: inset 0 0 0 1px var(--tc); }
:where(.ig, #drawer) .ig-opt[disabled] { opacity: .5; cursor: not-allowed; }
:where(.ig, #drawer) .ig-opt b { font-size: 13px; font-weight: 500; display: block; }
:where(.ig, #drawer) .ig-opt small { font-size: 12px; color: var(--ink-3); display: block; margin-top: 1px; }
:where(.ig, #drawer) .ig-fld { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 0; font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
:where(.ig, #drawer) .ig-fld input.inp, :where(.ig, #drawer) .ig-fld select.inp { width: 100%; font-weight: 400; }
:where(.ig, #drawer) .ig-ro { margin: 0; font-size: 13px; font-weight: 400; color: var(--ink-3); background: var(--panel-2); border-radius: 9px; padding: 8px 11px; }
:where(.ig, #drawer) .ig-mapc { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 6px; margin-top: 10px; }
:where(.ig, #drawer) .ig-chk { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13.5px; cursor: pointer; }
:where(.ig, #drawer) .ig-chk input { width: 16px; height: 16px; }
:where(.ig, #drawer) .ig-map td { font-size: 12.5px; padding: 8px 10px; }
:where(.ig, #drawer) .ig-map code { font-size: 11.5px; }
:where(.ig, #drawer) .ig-err { color: var(--bad); font-size: 13px; margin: 14px 0 0; }
:where(.ig, #drawer) .ig-wz-ft { display: flex; gap: 8px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); position: sticky; bottom: -32px; background: var(--panel); padding-bottom: 4px; }
:where(.ig, #drawer) .ig-wz-ft .btn[aria-disabled="true"] { opacity: .45; }
:where(.ig, #drawer) .ig-note { background: var(--info-bg); color: var(--info) !important; border-radius: 10px; padding: 10px 12px; }

@media (max-width: 1180px) {
  :where(.ig, #drawer) .ig-cov { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  :where(.ig, #drawer) .ig-hr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ig .g-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :where(.ig, #drawer) .ig-q { flex: 1 1 100%; }
  .ig .toolbar .grow, :where(.ig, #drawer) #ig-cnt { display: none; }
  :where(.ig, #drawer) .ig-opts { grid-template-columns: minmax(0, 1fr); }
  :where(.ig, #drawer) .ig-mx th.n small { display: none; }
  :where(.ig, #drawer) .ig-mx { min-width: 620px; }
  :where(.ig, #drawer) .ig-mx tbody th.n, :where(.ig, #drawer) .ig-mx tfoot th.n { white-space: normal; min-width: 104px; max-width: 120px; line-height: 1.3; }
  :where(.ig, #drawer) .ig-mx thead th.h0 { min-width: 104px; }
  :where(.ig, #drawer) .ig-mx thead th.v { width: 32px; }
  :where(.ig, #drawer) .ig-cmp-r b { font-size: 28px; }
  .ig .tbl { min-width: 640px; }
}

/* ===== V2 visuals ===== */
/* chart / table toggle and tooltip (shared with the data module) */
:where(.ig, #drawer) .vz-bar { display: flex; justify-content: flex-end; margin: -4px 0 12px; }
#vz-tip { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; background: var(--ink); color: #fff; border-radius: 10px; padding: 8px 11px; font-size: 12px; line-height: 1.45; box-shadow: var(--sh-pop); opacity: 0; transition: opacity var(--dur-1, 150ms) var(--ease-out, ease); max-width: 260px; }
#vz-tip.on { opacity: 1; }
#vz-tip b { display: block; font-weight: 600; font-size: 12.5px; }
#vz-tip span { display: block; color: #C9CEDA; }

/* constellation */
:where(.ig, #drawer) .ig-net { margin-top: 36px; }
:where(.ig, #drawer) .ig-net-h { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 8px; }
:where(.ig, #drawer) .ig-net-h h2 { font-size: 17px; letter-spacing: -.015em; }
:where(.ig, #drawer) .ig-net-h p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; max-width: 54ch; }
:where(.ig, #drawer) .ig-net-h .ig-cmp { gap: 10px; }
:where(.ig, #drawer) .ig-net-h .ig-cmp-r b { font-size: 26px; }
:where(.ig, #drawer) .ig-net-f { margin: 6px 0 0; font-size: 13px; }
:where(.ig, #drawer) .cs { margin: 0; }
:where(.ig, #drawer) .cs-scroll { overflow-x: auto; scrollbar-width: thin; }
:where(.ig, #drawer) .cs-svg { display: block; width: 100%; height: auto; overflow: visible; }
:where(.ig, #drawer) .cs-svg text { font: 500 12px Inter, system-ui, sans-serif; fill: var(--ink-2); }
:where(.ig, #drawer) .cs-sub { fill: var(--ink-3); font-weight: 400; }
:where(.ig, #drawer) .cs-e { fill: none; stroke-opacity: .28; stroke-linecap: round; stroke-dasharray: 2 7; animation: csflow 2.4s linear infinite; transition: stroke-opacity var(--dur-2, 250ms) var(--ease-out, ease); }
:where(.ig, #drawer) .cs-e.out { animation-duration: 3s; }
:where(.ig, #drawer) .cs-e.share { stroke-dasharray: 3 5; }
@keyframes csflow { to { stroke-dashoffset: -36; } }
:where(.ig, #drawer) .cs-svg.hl .cs-e { stroke-opacity: .07; }
:where(.ig, #drawer) .cs-svg.hl .cs-e.on { stroke-opacity: .85; }
:where(.ig, #drawer) .cs-svg.hl .cs-n:not(.on) { opacity: .35; }
:where(.ig, #drawer) .cs-n { cursor: pointer; transition: opacity var(--dur-2, 250ms) var(--ease-out, ease); }
:where(.ig, #drawer) .cs-n circle, :where(.ig, #drawer) .cs-n rect { transition: transform var(--dur-2, 250ms) var(--ease-spring, cubic-bezier(.3,1.5,.5,1)); transform-box: fill-box; transform-origin: center; }
:where(.ig, #drawer) .cs-n:hover circle, :where(.ig, #drawer) .cs-n:focus-visible circle, :where(.ig, #drawer) .cs-n.on circle, :where(.ig, #drawer) .cs-n:hover rect, :where(.ig, #drawer) .cs-n:focus-visible rect { transform: scale(1.5); }
:where(.ig, #drawer) .cs-n:hover text, :where(.ig, #drawer) .cs-n:focus-visible text, :where(.ig, #drawer) .cs-n.on text { fill: var(--ink); }
:where(.ig, #drawer) .cs-n:focus-visible { outline: none; }
:where(.ig, #drawer) .cs-n:focus-visible text { text-decoration: underline; }
:where(.ig, #drawer) .cs-h1 { fill: var(--tc); }
:where(.ig, #drawer) .cs-h2 { fill: none; stroke: var(--tc-line); stroke-width: 1; stroke-dasharray: 3 5; animation: csspin 30s linear infinite; transform-box: fill-box; transform-origin: center; }
:where(.ig, #drawer) .cs-h3 { fill: color-mix(in srgb, var(--tc) 5%, transparent); stroke: var(--tc-line); stroke-width: 1; }
@keyframes csspin { to { transform: rotate(360deg); } }
:where(.ig, #drawer) .cs-hub text { fill: #fff !important; }
:where(.ig, #drawer) .cs-hub .cs-hk { font-size: 11.5px; font-weight: 500; opacity: .85; }
:where(.ig, #drawer) .cs-hub .cs-hv { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
:where(.ig, #drawer) .cs-hub .cs-hs { font-size: 11px; opacity: .75; font-weight: 400; }
:where(.ig, #drawer) .cs-cap { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }
:where(.ig, #drawer) .cs-cap b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* treemap */
:where(.ig, #drawer) .tm { margin: 0; }
:where(.ig, #drawer) .tm-map { position: relative; width: 100%; min-height: 260px; }
:where(.ig, #drawer) .tm { container-type: inline-size; }
:where(.ig, #drawer) .tm-v-narrow { display: none; }
@container (max-width: 699px) { :where(.ig, #drawer) .tm-v-wide { display: none; } :where(.ig, #drawer) .tm-v-narrow { display: block; } }
:where(.ig, #drawer) .tm-cat { position: absolute; box-sizing: border-box; padding: 2px; container-type: size; animation: tmin var(--dur-3, 400ms) var(--ease-out, ease) both; }
:where(.ig, #drawer) .tm-cat::before { content: ''; position: absolute; inset: 1px; border-radius: 9px; background: color-mix(in srgb, var(--c) 6%, white); border: 1px solid color-mix(in srgb, var(--c) 16%, white); }
:where(.ig, #drawer) .tm-cl { position: absolute; left: 10px; right: 8px; top: 5px; z-index: 1; font: 600 11.5px/1.3 Inter, system-ui, sans-serif; color: var(--c); white-space: nowrap; }
@container (max-width: 230px) { :where(.ig, #drawer) .tm-cl { display: none; } :where(.ig, #drawer) .tm-in { inset: 3px !important; } }
:where(.ig, #drawer) .tm-in { position: absolute; inset: 24px 3px 3px; }
:where(.ig, #drawer) .tm-n { position: absolute; box-sizing: border-box; padding: 1px; text-decoration: none; color: var(--ink); container-type: size; }
:where(.ig, #drawer) .tm-box { position: absolute; inset: 1px; border-radius: 6px; background: color-mix(in srgb, var(--c) 16%, white); display: flex; flex-direction: column; justify-content: flex-start; gap: 1px; padding: 7px 9px; overflow: hidden; transition: background var(--dur-1, 150ms) var(--ease-out, ease), transform var(--dur-2, 250ms) var(--ease-spring, ease); }
:where(.ig, #drawer) .tm-n:hover .tm-box, :where(.ig, #drawer) .tm-n:focus-visible .tm-box { background: color-mix(in srgb, var(--c) 32%, white); }
:where(.ig, #drawer) .tm-n:focus-visible { outline: none; }
:where(.ig, #drawer) .tm-n:focus-visible .tm-box { box-shadow: inset 0 0 0 1.5px var(--ink); }
:where(.ig, #drawer) .tm-t { font: 500 12.5px/1.25 Inter, system-ui, sans-serif; color: var(--ink); overflow: hidden; overflow-wrap: normal; word-break: normal; }
:where(.ig, #drawer) .tm-v { font: 500 13px/1.25 Inter, system-ui, sans-serif; color: var(--ink-2); font-variant-numeric: tabular-nums; }

:where(.ig, #drawer) .tm figcaption { margin-top: 8px; }

/* ring grid */
:where(.ig, #drawer) .rg { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 10px; }
:where(.ig, #drawer) .rg-i { position: relative; display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 14px 12px 12px 14px; background: var(--panel); transition: border-color var(--dur-1, 150ms), box-shadow var(--dur-2, 250ms), transform var(--dur-2, 250ms) var(--ease-out, ease); }
:where(.ig, #drawer) .rg-i:hover { border-color: var(--line-2); box-shadow: 0 8px 22px -12px rgba(11,15,25,.18); transform: translateY(-1px); }
:where(.ig, #drawer) .rg-ring { width: 48px; height: 48px; flex: none; }
:where(.ig, #drawer) .rg-tr { fill: none; stroke: var(--panel-3); stroke-width: 4; }
:where(.ig, #drawer) .rg-fg { fill: none; stroke: var(--ok-dot); stroke-width: 4; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; animation: rgsweep var(--dur-3, 400ms) var(--ease-out, ease) both; }
:where(.ig, #drawer) .rg-i.warn .rg-fg { stroke: var(--warn-dot); }
@keyframes rgsweep { from { stroke-dashoffset: var(--c); } to { stroke-dashoffset: 0; } }
:where(.ig, #drawer) .rg-ring text { font: 600 11px Inter, system-ui, sans-serif; fill: var(--ink); }
:where(.ig, #drawer) .rg-b { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
:where(.ig, #drawer) .rg-name { color: var(--ink); font-weight: 600; font-size: 13.5px; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; padding-right: 26px; }
:where(.ig, #drawer) .rg-name::after { content: ''; position: absolute; inset: 0; border-radius: 14px; }
:where(.ig, #drawer) .rg-name:hover { color: var(--tc); }
:where(.ig, #drawer) .rg-name:focus-visible { outline: none; }
:where(.ig, #drawer) .rg-name:focus-visible::after { outline: 2px solid var(--tc); outline-offset: 2px; }
:where(.ig, #drawer) .rg-s .status { font-size: 12px; }
:where(.ig, #drawer) .rg-sp { width: 100%; height: 16px; margin: 4px 0 2px; }
:where(.ig, #drawer) .rg-sp polyline { fill: none; stroke: var(--tc); stroke-width: 1.3; vector-effect: non-scaling-stroke; opacity: .7; stroke-linejoin: round; }
:where(.ig, #drawer) .rg-m { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
:where(.ig, #drawer) .rg-sync { position: absolute; top: 8px; right: 8px; z-index: 1; width: 30px; padding: 0; }
:where(.ig, #drawer) .rg-sync .ic { transition: transform var(--dur-3, 400ms) var(--ease-out, ease); }
:where(.ig, #drawer) .rg-sync:hover .ic, :where(.ig, #drawer) .rg-sync:focus-visible .ic { transform: rotate(180deg); }

@media (max-width: 1180px) { :where(.ig, #drawer) .ig-net-h { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
@media (prefers-reduced-motion: reduce) {
  :where(.ig, #drawer) .cs-e, :where(.ig, #drawer) .cs-h2, :where(.ig, #drawer) .rg-fg, :where(.ig, #drawer) .tm-g { animation: none !important; }
  :where(.ig, #drawer) .rg-fg { stroke-dashoffset: 0; }
}

:where(.ig, #drawer) .ig-dl-a { transition: transform var(--dur-2, 250ms) var(--ease-spring, ease); }
:where(.ig, #drawer) a:hover .ig-dl-a, :where(.ig, #drawer) button:hover .ig-dl-a, :where(.ig, #drawer) button:focus-visible .ig-dl-a { transform: translateY(2.5px); }
:where(.ig, #drawer) .ig-tile, :where(.ig, #drawer) .ig-api, :where(.ig, #drawer) .dp-share { transition: border-color var(--dur-1, 150ms), box-shadow var(--dur-2, 250ms), transform var(--dur-2, 250ms) var(--ease-out, ease); }
:where(.ig, #drawer) .ig-tile:hover, :where(.ig, #drawer) .ig-api:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { :where(.ig, #drawer) .ig-tile:hover, :where(.ig, #drawer) .ig-api:hover, :where(.ig, #drawer) .rg-i:hover { transform: none; } :where(.ig, #drawer) .ig-dl-a { transition: none; } }

:where(.ig, #drawer) .ig-base { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
:where(.ig, #drawer) .ig-bu { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-3); flex: 0 1 380px; min-width: 0; }
:where(.ig, #drawer) .ig-bu input.inp { width: 100%; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12px; background: var(--panel-2); }
:where(.ig, #drawer) .ig-base .kvl { flex: 1 1 320px; font-size: 12.5px; }
:where(.ig, #drawer) .ig-code { text-decoration: none; font-size: 11px; font-weight: 500; letter-spacing: .02em; color: var(--ink-2); background: var(--panel-3); border-radius: 5px; padding: 1px 5px; cursor: help; position: relative; z-index: 1; }
:where(.ig, #drawer) .ig-code:focus-visible { outline: 2px solid var(--tc); outline-offset: 1px; }
/* sideways scrollers on narrow screens: visible affordance */
:where(.ig, #drawer) .cs-scroll, :where(.ig, #drawer) .pl-scroll, :where(.ig, #drawer) .sk-scroll { position: relative; }
:where(.ig, #drawer) .xs-hint { display: none; }
@media (max-width: 760px) {
  :where(.ig, #drawer) .xs-hint { display: flex; align-items: center; gap: 6px; justify-content: flex-end; font-size: 12px; color: var(--ink-3); margin: 0 0 6px; }
  :where(.ig, #drawer) .xs-hint::after { content: '→'; animation: xsnudge 1.6s var(--ease-out, ease) infinite; }
  :where(.ig, #drawer) .cs-scroll, :where(.ig, #drawer) .pl-scroll, :where(.ig, #drawer) .sk-scroll { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
}
@keyframes xsnudge { 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { :where(.ig, #drawer) .xs-hint::after { animation: none; } }

/* constellation: below 860px of width the SVG gives way to three stacked lists at full text size */
:where(.ig, #drawer) .cs { container-type: inline-size; }
:where(.ig, #drawer) .cs-alt { display: none; }
@container (max-width: 859px) {
  :where(.ig, #drawer) .cs-scroll { display: none; }
  :where(.ig, #drawer) .cs-alt { display: grid; gap: 14px; }
}
:where(.ig, #drawer) .cs-ab h3 { font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin: 0 0 6px; }
:where(.ig, #drawer) .cs-ab ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 2px 18px; }
:where(.ig, #drawer) .cs-ab li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
:where(.ig, #drawer) .cs-al { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; font-size: 13px; text-decoration: none; min-width: 0; }
:where(.ig, #drawer) .cs-al span { overflow-wrap: anywhere; }
:where(.ig, #drawer) .cs-al:hover { color: var(--tc); }
:where(.ig, #drawer) .cs-al i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; transition: transform var(--dur-2, 250ms) var(--ease-spring, ease); }
:where(.ig, #drawer) .cs-al i.sq { border-radius: 2px; background: #B33FC9; }
:where(.ig, #drawer) .cs-al:hover i, :where(.ig, #drawer) .cs-al:focus-visible i { transform: scale(1.5); }
:where(.ig, #drawer) .cs-am { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; text-align: right; }
:where(.ig, #drawer) .cs-ab-b { grid-column: 1 / -1; height: 3px; border-radius: 2px; background: var(--panel-3); overflow: hidden; }
:where(.ig, #drawer) .cs-ab-b em { display: block; height: 100%; background: var(--c); opacity: .7; border-radius: 2px; }
:where(.ig, #drawer) .cs-ahub { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 26px; border-radius: 999px; background: var(--tc); color: #fff; box-shadow: 0 0 0 8px color-mix(in srgb, var(--tc) 8%, transparent); }
:where(.ig, #drawer) .cs-ahub span { font-size: 11.5px; opacity: .85; }
:where(.ig, #drawer) .cs-ahub b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }

:where(.ig, #drawer) .tm-leg { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 4px 20px; }
:where(.ig, #drawer) .tm-leg li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto auto; column-gap: 10px; row-gap: 2px; align-items: baseline; font-size: 12.5px; padding: 5px 0; border-bottom: 1px solid var(--line); }
:where(.ig, #drawer) .tm-leg i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); align-self: center; }
:where(.ig, #drawer) .tm-leg span { color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }
:where(.ig, #drawer) .tm-leg b { font-weight: 500; font-variant-numeric: tabular-nums; }
:where(.ig, #drawer) .tm-leg small { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }

/* five figures never leave an empty cell: 3 + 2 on mid widths, 2 + 2 + 1 on narrow ones */
@media (max-width: 1180px) and (min-width: 861px) {
  .ig .g-kpi { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ig .g-kpi > .kpi { grid-column: span 2; }
  .ig .g-kpi > .kpi:nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 860px) { .ig .g-kpi > .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; } }

:where(.ig, #drawer) .tm-leg { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)) !important; }
:where(.ig, #drawer) .tm-small { margin: 12px 0 0; }
:where(.ig, #drawer) .tm-small h4 { margin: 0 0 4px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
:where(.ig, #drawer) .tm-small ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 0 20px; }
:where(.ig, #drawer) .tm-small li { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 4px 0; border-bottom: 1px solid var(--line); }
:where(.ig, #drawer) .tm-small li a { color: var(--ink-2); text-decoration: none; }
:where(.ig, #drawer) .tm-small li a:hover { color: var(--tc); }
:where(.ig, #drawer) .tm-oth::before { background: color-mix(in srgb, var(--c) 8%, white) !important; }
:where(.ig, #drawer) .tm-oth .tm-box { background: color-mix(in srgb, var(--c) 14%, white); }
:where(.ig, #drawer) .tm-n[tabindex]:focus-visible { outline: none; }
:where(.ig, #drawer) .tm-n[tabindex]:focus-visible .tm-box { box-shadow: inset 0 0 0 1.5px var(--ink); }
:where(.ig, #drawer) .tm-small li b { font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
:where(.ig, #drawer) .tm-small:empty { display: none; }
:where(.ig, #drawer) .tm-n.tm-off { pointer-events: auto; }

:where(.ig, #drawer) .tm-k { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--panel); color: var(--ink); font: 600 11px/1 Inter, system-ui, sans-serif; font-style: normal; box-shadow: 0 0 0 1px var(--line-2); margin-bottom: 3px; align-self: flex-start; }
:where(.ig, #drawer) .tm-keys:empty { display: none; }
:where(.ig, #drawer) .tm-keys ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 0 20px; }
:where(.ig, #drawer) .tm-keys li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 12.5px; padding: 4px 0; border-bottom: 1px solid var(--line); }
:where(.ig, #drawer) .tm-keys li .tm-k { margin: 0; }
:where(.ig, #drawer) .tm-keys li a { color: var(--ink-2); text-decoration: none; }
:where(.ig, #drawer) .tm-keys li a:hover { color: var(--tc); }
:where(.ig, #drawer) .tm-keys li b { font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
