/* ISONUI_V2 - Ison Generative UI styles. Everything reads the chat tokens (--bg-*, --tx-*, --brd*, --ac*) so it
   follows light/dark; fallbacks keep the gallery harness usable. Prefix: ig-. */
.ig-root { --ig-bg: var(--bg-1, #2B2A24); --ig-bg2: var(--bg-2, #27261F); --ig-line: var(--brd, rgba(255,255,255,.07));
  --ig-line2: var(--brd-2, rgba(255,255,255,.13)); --ig-tx: var(--tx, #ECECEC); --ig-tx2: var(--tx-2, #B4B4B4); --ig-tx3: var(--tx-3, #8F8F8F);
  --ig-ac: var(--ac, #A89878); --ig-acd: var(--ac-dim, rgba(154,137,104,.14)); --ig-ok: #3f9b74; --ig-warn: #c98a2e; --ig-bad: #c4553c; --ig-info: var(--ac, #A89878);
  --ig-r: 14px; display: flex; flex-direction: column; gap: 14px; margin: 6px 0 10px; max-width: 760px; min-width: 0;
  font-size: 14px; line-height: 1.45; color: var(--ig-tx); }
.ig-root *, .ig-root *::before, .ig-root *::after { box-sizing: border-box; }
.ig-title { font-weight: 600; font-size: 15px; }
.ig-stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ig-grid { display: grid; gap: 10px; grid-template-columns: repeat(var(--ig-cols, auto-fit), minmax(150px, 1fr)); min-width: 0; }
.ig-card { background: var(--ig-bg); border: 1px solid var(--ig-line); border-radius: var(--ig-r); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ig-card-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ig-card-t { font-weight: 600; font-size: 14.5px; }
.ig-card-s, .ig-sub { color: var(--ig-tx3); font-size: 12.5px; }
.ig-sm { font-size: 13px; }
.ig-l { color: var(--ig-tx2); font-size: 13px; }
.ig-v { font-weight: 600; font-variant-numeric: tabular-nums; }
.ig-lrow { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ig-lrow .ig-l { margin-right: auto; }
.ig-asumsi { font-size: 10.5px; letter-spacing: .02em; color: var(--ig-tx3); border: 1px dashed var(--ig-line2); border-radius: 999px; padding: 0 7px; line-height: 17px; }
.ig-text p { margin: 0 0 6px; } .ig-text p:last-child { margin-bottom: 0; } .ig-text ul { margin: 2px 0 6px; padding-left: 20px; }
.ig-text a { color: var(--ig-ac); } .ig-text code { font-family: var(--font-m, ui-monospace, monospace); font-size: .9em; background: var(--ig-bg2); padding: 1px 5px; border-radius: 5px; }
.ig-notice, .ig-bad { color: var(--ig-tx3); font-size: 13px; border: 1px dashed var(--ig-line2); border-radius: 10px; padding: 10px 12px; }

/* KPI */
.ig-kpi { background: var(--ig-bg); border: 1px solid var(--ig-line); border-radius: var(--ig-r); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ig-kpi-top { display: flex; align-items: center; gap: 6px; justify-content: space-between; }
.ig-kpi-l { color: var(--ig-tx2); font-size: 12.5px; }
.ig-kpi-v { font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; overflow-wrap: anywhere; }
.ig-kpi-d { font-size: 12px; color: var(--ig-tx3); } .ig-kpi-d.up { color: var(--ig-ok); } .ig-kpi-d.down { color: var(--ig-bad); }
.ig-kpi-s { font-size: 11.5px; color: var(--ig-tx3); }

/* badges / alerts */
.ig-badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: .03em; border-radius: 999px; padding: 1px 8px; border: 1px solid currentColor; width: max-content; }
.ig-tone-ok { color: var(--ig-ok); } .ig-tone-good { color: var(--ig-ok); } .ig-tone-warn { color: var(--ig-warn); } .ig-tone-bad { color: var(--ig-bad); }
.ig-tone-info { color: var(--ig-info); } .ig-tone-muted { color: var(--ig-tx2); }
.ig-kpi.ig-tone-muted, .ig-kpi.ig-tone-info { color: var(--ig-tx); }
.ig-alert { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--ig-line2); border-left: 3px solid currentColor; border-radius: 10px; padding: 10px 12px; background: var(--ig-bg); }
.ig-alert-b { flex: 1; min-width: 0; color: var(--ig-tx); } .ig-alert-t { font-weight: 600; margin-bottom: 2px; }
.ig-x { background: none; border: 0; color: var(--ig-tx3); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 4px; min-width: 32px; min-height: 32px; }

/* progress / gauge */
.ig-prog { display: flex; flex-direction: column; gap: 6px; }
.ig-bar { height: 8px; border-radius: 999px; background: var(--ig-bg2); overflow: hidden; border: 1px solid var(--ig-line); }
.ig-bar-f { height: 100%; border-radius: 999px; background: currentColor; transition: width .25s ease; }
.ig-gauge { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ig-gauge-box { position: relative; width: 120px; height: 120px; }
.ig-gauge-svg { width: 120px; height: 120px; }
.ig-gauge-bg { stroke: var(--ig-bg2); } .ig-gauge-fg { stroke: var(--ig-ac); transition: stroke-dasharray .3s ease; }
.ig-gauge-v { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* fields */
.ig-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ig-inp { width: 100%; min-height: 40px; background: var(--ig-bg2); color: var(--ig-tx); border: 1px solid var(--ig-line2); border-radius: 10px; padding: 8px 12px; font: inherit; }
.ig-inp:focus { outline: 2px solid color-mix(in srgb, var(--ig-ac) 55%, transparent); outline-offset: 1px; }
textarea.ig-inp { resize: vertical; min-height: 76px; }
.ig-inp-wrap { display: flex; align-items: center; background: var(--ig-bg2); border: 1px solid var(--ig-line2); border-radius: 10px; padding: 0 12px; min-height: 40px; }
.ig-inp-wrap .ig-inp { border: 0; background: transparent; padding-left: 6px; outline: none; }
.ig-pre, .ig-post { color: var(--ig-tx3); font-size: 13px; }
.ig-err { color: var(--ig-bad); font-size: 12px; }
.ig-slider input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; }
.ig-slider input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--ig-ac) var(--ig-pc, 0%), var(--ig-bg2) var(--ig-pc, 0%)); border: 1px solid var(--ig-line); }
.ig-slider input[type=range]::-moz-range-track { height: 8px; border-radius: 999px; background: var(--ig-bg2); border: 1px solid var(--ig-line); }
.ig-slider input[type=range]::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--ig-ac); }
.ig-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ig-tx); margin-top: -8px; border: 3px solid var(--ig-ac); box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.ig-slider input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ig-tx); border: 3px solid var(--ig-ac); }
.ig-slider .ig-v { font-size: 15px; }
.ig-ends { display: flex; justify-content: space-between; color: var(--ig-tx3); font-size: 11.5px; }
.ig-seg { display: flex; flex-wrap: wrap; gap: 2px; background: var(--ig-bg2); border: 1px solid var(--ig-line); border-radius: 999px; padding: 3px; width: max-content; max-width: 100%; }
.ig-seg-b { border: 0; background: transparent; color: var(--ig-tx2); font: inherit; font-size: 13px; padding: 6px 14px; border-radius: 999px; cursor: pointer; min-height: 32px; }
.ig-seg-b[aria-checked="true"], .ig-seg-b[aria-selected="true"] { background: var(--ig-bg); color: var(--ig-tx); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.ig-choices { display: flex; flex-direction: column; gap: 4px; }
.ig-choice { display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; }
.ig-choice input { width: 18px; height: 18px; accent-color: var(--ig-ac); flex: none; }
.ig-toggle-row { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ig-switch { position: relative; width: 44px; height: 26px; border-radius: 999px; border: 1px solid var(--ig-line2); background: var(--ig-bg2); cursor: pointer; padding: 0; flex: none; }
.ig-switch-k { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--ig-tx2); transition: transform .18s ease, background .18s ease; }
.ig-switch[aria-checked="true"] { background: var(--ig-acd); border-color: var(--ig-ac); }
.ig-switch[aria-checked="true"] .ig-switch-k { transform: translateX(18px); background: var(--ig-ac); }
.ig-checklist .ig-choice span { transition: color .15s; } .ig-checklist .ig-choice input:checked + span { color: var(--ig-tx3); text-decoration: line-through; }
.ig-stars { display: flex; gap: 4px; }
.ig-star { background: none; border: 0; font-size: 24px; line-height: 1; color: var(--ig-line2); cursor: pointer; padding: 4px; min-width: 36px; min-height: 36px; }
.ig-star.on { color: #d8a93c; }
.ig-list { display: flex; flex-direction: column; }
.ig-li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--ig-line); }
.ig-li:last-child { border-bottom: 0; } .ig-li-v { color: var(--ig-tx2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ig-ta-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* buttons */
.ig-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 7px 16px; border-radius: 999px; border: 1px solid transparent;
  background: var(--ig-tx); color: var(--bg-0, #22211D); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; width: max-content; max-width: 100%; }
.ig-btn:disabled { opacity: .45; cursor: default; }
.ig-btn-ghost { background: transparent; color: var(--ig-tx); border-color: var(--ig-line2); }
.ig-btn-sm { min-height: 30px; padding: 4px 12px; font-size: 12.5px; }
.ig-btn-block { width: 100%; }
.ig-actions { display: flex; flex-direction: column; gap: 8px; }
.ig-root button:focus-visible, .ig-root summary:focus-visible { outline: 2px solid color-mix(in srgb, var(--ig-ac) 65%, transparent); outline-offset: 2px; }

/* tabs / accordion / wizard / popover */
.ig-tabs { display: flex; flex-direction: column; gap: 12px; }
.ig-tabbar { width: 100%; } .ig-tabbar .ig-seg-b { flex: 1; }
.ig-acc { border: 1px solid var(--ig-line); border-radius: var(--ig-r); overflow: hidden; background: var(--ig-bg); }
.ig-acc-i + .ig-acc-i { border-top: 1px solid var(--ig-line); }
.ig-acc-i summary { cursor: pointer; padding: 12px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
.ig-acc-i summary::-webkit-details-marker { display: none; }
.ig-acc-i summary::after { content: "\203A"; color: var(--ig-tx3); transition: transform .2s; }
.ig-acc-i[open] summary::after { transform: rotate(90deg); }
.ig-acc-b { padding: 0 16px 14px; }
.ig-wiz { display: flex; flex-direction: column; gap: 14px; background: var(--ig-bg); border: 1px solid var(--ig-line); border-radius: var(--ig-r); padding: 14px 16px; }
.ig-wiz-prog { display: flex; gap: 6px; }
.ig-wiz-seg { flex: 1; display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; color: var(--ig-tx3); text-align: center; }
.ig-wiz-seg::before { content: ""; height: 4px; border-radius: 999px; background: var(--ig-bg2); }
.ig-wiz-seg.on::before { background: var(--ig-ac); } .ig-wiz-seg.on { color: var(--ig-tx2); }
.ig-wiz-nav { display: flex; justify-content: space-between; gap: 8px; }
.ig-pop { position: relative; display: inline-flex; }
.ig-pop-t { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--ig-tx); font: inherit; font-weight: 600; cursor: pointer; padding: 2px 0; min-height: 32px; }
.ig-pop-i { width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--ig-tx3); color: var(--ig-tx3); font-size: 11px; display: grid; place-items: center; font-style: italic; }
.ig-pop-b { position: absolute; z-index: 5; top: 100%; left: 0; width: min(300px, 80vw); background: var(--p-raise, var(--ig-bg)); border: 1px solid var(--ig-line2); border-radius: 10px; padding: 10px 12px; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.ig-pop-wrap { display: flex; flex-direction: column; gap: 6px; }
.ig-legacy .iu-widget, .ig-legacy > * { margin: 0; }

@media (max-width: 600px) {
  .ig-root { gap: 12px; }
  .ig-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .ig-kpi-v { font-size: 19px; }
  .ig-card, .ig-wiz { padding: 12px 13px; }
}
@media (prefers-reduced-motion: reduce) { .ig-root * { transition: none !important; } }

/* ---- data components (isonui2-data.js) ---- */
.ig-root { --ig-c0: var(--ig-ac); --ig-c1: #5b84b1; --ig-c2: #4f9d74; --ig-c3: #c4704a; --ig-c4: #9a76b8; --ig-c5: #7c8a92; }
.ig-f0 { fill: var(--ig-c0); } .ig-f1 { fill: var(--ig-c1); } .ig-f2 { fill: var(--ig-c2); } .ig-f3 { fill: var(--ig-c3); } .ig-f4 { fill: var(--ig-c4); } .ig-f5 { fill: var(--ig-c5); }
.ig-s0 { stroke: var(--ig-c0); } .ig-s1 { stroke: var(--ig-c1); } .ig-s2 { stroke: var(--ig-c2); } .ig-s3 { stroke: var(--ig-c3); } .ig-s4 { stroke: var(--ig-c4); } .ig-s5 { stroke: var(--ig-c5); }
.ig-c0 { background: var(--ig-c0); } .ig-c1 { background: var(--ig-c1); } .ig-c2 { background: var(--ig-c2); } .ig-c3 { background: var(--ig-c3); } .ig-c4 { background: var(--ig-c4); } .ig-c5 { background: var(--ig-c5); }
.ig-chart-box { position: relative; min-width: 0; }
.ig-svg { width: 100%; height: auto; display: block; overflow: visible; }
.ig-ax { fill: var(--ig-tx3); font-size: 11px; font-family: inherit; }
.ig-grid-l { stroke: var(--ig-line); stroke-width: 1; }
.ig-line { stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.ig-area { opacity: .16; }
.ig-dot { stroke: var(--ig-bg); stroke-width: 2; cursor: pointer; }
.ig-pt { cursor: pointer; transition: opacity .15s; } .ig-pt:hover { opacity: .8; }
.ig-mark { stroke: var(--ig-tx2); stroke-width: 1.5; stroke-dasharray: 4 4; }
.ig-mark-t { fill: var(--ig-tx2); font-size: 11px; font-weight: 600; }
.ig-tip { position: absolute; z-index: 4; pointer-events: none; width: 160px; text-align: center; background: var(--p-raise, var(--ig-bg)); border: 1px solid var(--ig-line2);
  border-radius: 8px; padding: 4px 8px; font-size: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.ig-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 12px; color: var(--ig-tx2); margin-top: 6px; }
.ig-legend-col { flex-direction: column; justify-content: center; align-items: flex-start; }
.ig-lg { display: inline-flex; align-items: center; gap: 6px; } .ig-lg i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.ig-pie { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.ig-pie-svg { width: 190px; max-width: 60%; } .ig-pie-svg .ig-pt { stroke: var(--ig-bg); stroke-width: 1.5; }
.ig-hbars { display: flex; flex-direction: column; gap: 10px; }
.ig-hb { display: grid; grid-template-columns: minmax(64px, max-content) 1fr auto; align-items: center; gap: 10px; }
.ig-hb-l { color: var(--ig-tx2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.ig-hb-t { height: 22px; background: var(--ig-bg2); border-radius: 6px; overflow: hidden; }
.ig-hb-f { height: 100%; border-radius: 6px; background: var(--ig-c0); transition: width .3s ease; }
.ig-hb-v { font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--ig-tx2); }
.ig-ttools { display: flex; gap: 8px; flex-wrap: wrap; } .ig-ttools .ig-inp { flex: 1 1 160px; width: auto; }
.ig-tscroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.ig-t { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.ig-t th { text-align: left; font-weight: 600; color: var(--ig-tx2); font-size: 12px; padding: 7px 10px; border-bottom: 1px solid var(--ig-line2); white-space: nowrap; cursor: pointer; user-select: none; }
.ig-t td { padding: 8px 10px; border-bottom: 1px solid var(--ig-line); }
.ig-t tr:last-child td { border-bottom: 0; }
.ig-t .ig-num { text-align: right; } .ig-sort { font-size: 9px; margin-left: 4px; color: var(--ig-ac); }
.ig-t .ig-corner { cursor: default; font-weight: 500; color: var(--ig-tx3); }
.ig-pager { display: flex; gap: 4px; flex-wrap: wrap; } .ig-pager:empty { display: none; }
.ig-hm { display: grid; gap: 4px; min-width: max-content; }
.ig-hm-h, .ig-hm-r { font-size: 11px; color: var(--ig-tx3); text-align: center; padding: 2px 4px; } .ig-hm-r { text-align: right; white-space: nowrap; }
.ig-hm-c, .ig-heat { background: color-mix(in srgb, var(--ig-c2) calc(var(--ig-a, .2) * 100%), var(--ig-bg2)); }
.ig-hm-c { border-radius: 6px; font-size: 11.5px; text-align: center; padding: 6px 2px; color: var(--ig-tx); font-variant-numeric: tabular-nums; }
.ig-hm-dark { color: #f4f7f2; }
.ig-t td.ig-cur { outline: 2px solid var(--ig-ac); outline-offset: -2px; font-weight: 700; }
.ig-cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.ig-cmp-i { border: 1px solid var(--ig-line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; background: var(--ig-bg2); }
.ig-cmp-i.ig-best { border-color: var(--ig-ac); }
.ig-cmp-n { font-weight: 600; } .ig-cmp-r { display: flex; flex-direction: column; gap: 2px; } .ig-cmp-v { font-size: 13.5px; }
.ig-seg-sm .ig-seg-b { padding: 4px 10px; min-height: 28px; font-size: 12px; }
.ig-chart .ig-card-h { justify-content: space-between; }

/* ---- content / specialised (isonui2-more.js) ---- */
.ig-center { text-align: center; } .ig-between { justify-content: space-between; align-items: flex-start; } .ig-right { text-align: right; }
.ig-kicker { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ig-tx3); font-weight: 600; }
.ig-tl { display: flex; flex-direction: column; }
.ig-tl-i { display: grid; grid-template-columns: 18px 1fr; gap: 10px; position: relative; padding-bottom: 14px; }
.ig-tl-i:not(:last-child)::before { content: ""; position: absolute; left: 8px; top: 14px; bottom: 0; width: 2px; background: var(--ig-line2); }
.ig-tl-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; margin: 3px 0 0 3px; background: var(--ig-bg); }
.ig-tl-b { color: var(--ig-tx); } .ig-tl-time { font-size: 12px; color: var(--ig-tx3); font-variant-numeric: tabular-nums; } .ig-tl-l { font-weight: 600; }
.ig-kb { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 10px; overflow-x: auto; }
.ig-kb-col { background: var(--ig-bg2); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 8px; min-height: 80px; }
.ig-kb-h { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--ig-tx2); padding: 2px 4px; }
.ig-kb-card { background: var(--ig-bg); border: 1px solid var(--ig-line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.ig-kb-l { font-size: 13px; font-weight: 500; }
.ig-kb-mv { display: flex; justify-content: flex-end; gap: 4px; }
.ig-kb-mv button { background: transparent; border: 1px solid var(--ig-line2); color: var(--ig-tx2); border-radius: 8px; min-width: 32px; min-height: 28px; cursor: pointer; font-size: 15px; line-height: 1; }
.ig-kb-mv button:disabled { opacity: .3; cursor: default; }
.ig-figure { margin: 0; display: flex; flex-direction: column; gap: 6px; position: relative; }
.ig-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--ig-r); display: block; background: var(--ig-bg2); }
.ig-credit { position: absolute; left: 10px; top: 10px; font-size: 11px; background: rgba(0,0,0,.55); color: #fff; padding: 2px 8px; border-radius: 999px; }
.ig-carousel { display: flex; flex-direction: column; gap: 8px; }
.ig-car-wrap { position: relative; }
.ig-car-stage { position: relative; border-radius: var(--ig-r); overflow: hidden; background: var(--ig-bg2); min-height: 120px; }
.ig-car-stage .ig-img { border-radius: 0; aspect-ratio: 16 / 10; max-height: 420px; }
.ig-car-ph { display: grid; place-items: center; min-height: 160px; color: var(--ig-tx3); }
.ig-car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ig-line2);
  background: color-mix(in srgb, var(--ig-bg) 85%, transparent); color: var(--ig-tx); font-size: 20px; cursor: pointer; z-index: 2; }
.ig-car-prev { left: 8px; } .ig-car-next { right: 8px; }
.ig-car-dots { display: flex; justify-content: center; gap: 6px; }
.ig-car-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--ig-line2); padding: 0; cursor: pointer; }
.ig-car-dot[aria-current="true"] { background: var(--ig-ac); }
.ig-rich { border: 1px solid var(--ig-line); border-radius: var(--ig-r); overflow: hidden; background: var(--ig-bg); }
.ig-rich-m { position: relative; } .ig-rich-m .ig-img { border-radius: 0; aspect-ratio: 16 / 9; }
.ig-rich-b { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 6px; } .ig-rich-t { font-size: 17px; font-weight: 600; }
.ig-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ig-tx3); }
.ig-code { border: 1px solid var(--ig-line); border-radius: 12px; overflow: hidden; background: var(--ig-bg2); }
.ig-code-bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px 12px; border-bottom: 1px solid var(--ig-line); }
.ig-code-lang { font-size: 12px; color: var(--ig-tx3); font-family: var(--font-m, ui-monospace, monospace); }
.ig-code pre { margin: 0; padding: 12px; overflow-x: auto; font-family: var(--font-m, ui-monospace, monospace); font-size: 12.5px; line-height: 1.55; max-height: 420px; }
.ig-code pre code { background: none; padding: 0; }
.ig-code-ed { width: 100%; min-height: 160px; border: 0; background: transparent; color: var(--ig-tx); font-family: var(--font-m, ui-monospace, monospace); font-size: 12.5px; padding: 12px; resize: vertical; outline: none; }
.ig-log pre { display: flex; flex-direction: column; }
.ig-log-ln { white-space: pre-wrap; overflow-wrap: anywhere; } .ig-log-error { color: var(--ig-bad); } .ig-log-warn { color: var(--ig-warn); } .ig-log-ok { color: var(--ig-ok); } .ig-log-debug { color: var(--ig-tx3); }
.ig-math { display: flex; flex-direction: column; gap: 8px; align-items: center; background: var(--ig-bg); border: 1px solid var(--ig-line); border-radius: var(--ig-r); padding: 14px 16px; }
.ig-math .ig-card-h { align-self: stretch; }
.ig-math-f { overflow-x: auto; max-width: 100%; font-size: 1.05em; } .ig-math-v { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ig-dg { position: relative; margin: 0; }
.ig-dg-fit { position: relative; margin: 4px auto; overflow: visible; }   /* ISONUI_V2_DIAGRAM_FIT */
.ig-dg-svg { position: absolute; inset: 0; overflow: visible; }
.ig-dg-e { fill: none; stroke: var(--ig-line2); stroke-width: 1.6; } .ig-dg-ah { fill: var(--ig-tx3); }
.ig-dg-n { position: absolute; border: 1px solid var(--ig-line2); border-radius: 12px; background: var(--ig-bg); display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center; padding: 4px 8px; overflow: hidden; }
.ig-dg-t { font-weight: 600; font-size: 12.5px; color: var(--ig-tx); line-height: 1.25; } .ig-dg-s { font-size: 11px; color: var(--ig-tx3); }
.ig-dg-el { position: absolute; transform: translate(-50%, -50%); font-size: 10.5px; color: var(--ig-tx2); background: var(--ig-bg); padding: 0 4px; border-radius: 4px; white-space: nowrap; }
.ig-sch { display: grid; gap: 4px; min-width: max-content; font-size: 12px; }
.ig-sch-h { color: var(--ig-tx2); font-weight: 600; text-align: center; padding: 4px; } .ig-sch-r { color: var(--ig-tx3); padding: 6px 8px; white-space: nowrap; }
.ig-sch-c { text-align: center; padding: 6px 4px; border-radius: 6px; color: var(--ig-tx3); background: var(--ig-bg2); }
.ig-sch-on { color: var(--ig-ok); background: color-mix(in srgb, var(--ig-ok) 14%, var(--ig-bg2)); font-weight: 600; }
.ig-pricing { display: flex; flex-direction: column; gap: 10px; }
.ig-plan { border: 1px solid var(--ig-line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; background: var(--ig-bg); }
.ig-plan.ig-best { border-color: var(--ig-ac); box-shadow: 0 0 0 1px var(--ig-ac) inset; }
.ig-plan-n { font-weight: 600; } .ig-plan-p { font-size: 20px; font-weight: 600; } .ig-feats { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ig-tx2); }
.ig-fl-route { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.ig-fl-code { font-size: 24px; font-weight: 700; letter-spacing: .02em; }
.ig-fl-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; } .ig-fl-line { width: 100%; height: 2px; background: var(--ig-line2); position: relative; }
.ig-fl-line::after { content: "\2708"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -55%); background: var(--ig-bg); padding: 0 6px; color: var(--ig-tx2); font-size: 14px; }
.ig-fl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; border-top: 1px solid var(--ig-line); padding-top: 10px; }
.ig-img-err { display: none !important; }

/* ---- map (isonui2-map.js) ---- */
.ig-mapcard { gap: 8px; }
.ig-map { position: relative; height: 300px; border-radius: 12px; overflow: hidden; background: var(--ig-bg2); }
.ig-map-msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ig-tx3); font-size: 13px; }
.ig-map-credit { font-size: 11px; color: var(--ig-tx3); text-align: right; } .ig-map-credit a { color: inherit; }
.ig-map-mk { width: 26px; height: 26px; border-radius: 50%; background: var(--ig-ac); color: var(--bg-0, #22211D);
  display: grid; place-items: center; font-size: 11px; font-weight: 700; border: 2px solid #fff; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.ig-map-list { display: flex; flex-direction: column; font-size: 13px; }
@media (max-width: 600px) { .ig-map { height: 240px; } }
/* ISONUI_V2_CHOICES */
.ig-choices .ig-cho-q { font-weight: 600; margin-bottom: 8px; }
.ig-cho-opt.is-picked { border-color: var(--ig-ac, currentColor); font-weight: 600; }
.ig-cho-opt:disabled:not(.is-picked) { opacity: .55; }
