@charset "UTF-8";
/* ==========================================================================
   How IBNR Works dependency-free stylesheet.

   Every selector is namespaced under .ib-root and every class is prefixed
   "ib-", so this cannot leak into a host site. The palette is the one the
   rest of the playground uses. Teal is this demo's lit colour: it is the
   colour of an estimate. Blue is what the insurer can see, amber is the
   truth it cannot, the same amber the MCMC demo uses for its true map.
   ========================================================================== */

.ib-root {
  /* ---- palette ---- */
  --ib-panel: #0e1115;
  --ib-surface: #141720;
  --ib-border: rgba(255, 255, 255, 0.08);
  --ib-border-strong: rgba(255, 255, 255, 0.16);

  --ib-text: #e8e4d9;
  --ib-dim: rgba(232, 228, 217, 0.62);
  --ib-faint: rgba(232, 228, 217, 0.38);

  --ib-data: #4d9ee8;
  --ib-data-hi: #9fd0ff;
  --ib-est: #2dd4bf;
  --ib-truth: #fbbf24;
  --ib-good: #34d399;
  --ib-bad: #ff5f6d;

  /* ---- geometry ---- */
  --ib-radius: 14px;
  --ib-radius-sm: 8px;

  --ib-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --ib-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto;
  color: var(--ib-text);
  font-family: var(--ib-font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}

.ib-root *,
.ib-root *::before,
.ib-root *::after {
  box-sizing: border-box;
}

.ib-root button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

.ib-root button:disabled {
  cursor: default;
  opacity: 0.45;
}

.ib-root input {
  font-family: inherit;
  color: inherit;
}

/* The hidden attribute has to beat the display each control sets. */
.ib-root [hidden] {
  display: none !important;
}

/* ==========================================================================
   Panel
   ========================================================================== */

.ib-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 400px at 50% -10%, rgba(45, 212, 191, 0.09), transparent 70%),
    radial-gradient(900px 520px at 100% 100%, rgba(77, 158, 232, 0.07), transparent 70%),
    var(--ib-panel);
  border: 1px solid var(--ib-border);
  border-radius: var(--ib-radius);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

/* faint grid texture, the same one the other demos carry */
.ib-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 40%, transparent 100%);
}

.ib-panel > * {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Header
   ========================================================================== */

.ib-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 13px 16px;
  border-bottom: 1px solid var(--ib-border);
}

.ib-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--ib-est);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.16);
}

.ib-root.is-running .ib-dot {
  animation: ib-pulse 1.4s ease-in-out infinite;
}

@keyframes ib-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(45, 212, 191, 0.05); }
}

.ib-title {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ib-title-sub {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ib-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ib-spacer {
  flex: 1;
}

/* date pill: the clock while it runs, the valuation date when it stops */
.ib-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 4px 10px 4px 8px;
  font-family: var(--ib-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ib-faint);
  border: 1px solid var(--ib-border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  font-variant-numeric: tabular-nums;
  transition: color 0.2s, border-color 0.2s;
}

.ib-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.ib-live.is-on {
  color: var(--ib-data-hi);
  border-color: rgba(159, 208, 255, 0.4);
}

.ib-live.is-on .ib-live-dot {
  animation: ib-blink 1.1s ease-in-out infinite;
}

@keyframes ib-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* segmented controls: line of business, and method */
.ib-seg {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
  padding: 3px;
  border: 1px solid var(--ib-border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
}

.ib-seg-btn {
  padding: 4px 11px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: var(--ib-dim);
  border-radius: 999px;
  transition: color 0.16s, background 0.16s;
}

.ib-seg-btn:hover { color: var(--ib-text); }

.ib-seg-btn.is-active {
  color: #03201c;
  background: var(--ib-est);
}

/* ==========================================================================
   Body layout
   ========================================================================== */

.ib-body {
  display: grid;
  grid-template-columns: 1fr;
}

.ib-main {
  min-width: 0;
  padding: 14px 16px 16px;
}

.ib-side {
  min-width: 0;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--ib-border);
}

@media (min-width: 1000px) {
  .ib-body {
    grid-template-columns: minmax(0, 1fr) 318px;
  }
  .ib-side {
    border-top: 0;
    border-left: 1px solid var(--ib-border);
  }
}

/* ==========================================================================
   Toolbar
   ========================================================================== */

.ib-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.ib-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ib-group-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ib-faint);
}

.ib-bar-sep {
  width: 1px;
  height: 20px;
  background: var(--ib-border);
  margin: 0 2px;
}

@media (max-width: 560px) {
  .ib-bar-sep {
    display: none;
  }
}

.ib-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ib-dim);
  border: 1px solid var(--ib-border);
  border-radius: var(--ib-radius-sm);
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.16s, border-color 0.16s, background 0.16s, transform 0.1s;
}

.ib-btn:hover:not(:disabled) {
  color: var(--ib-text);
  border-color: var(--ib-border-strong);
  background: rgba(255, 255, 255, 0.05);
}

.ib-btn:active:not(:disabled) { transform: translateY(1px); }

.ib-btn.is-primary {
  color: #03201c;
  background: var(--ib-est);
  border-color: transparent;
  font-weight: 600;
  min-width: 96px;
}

.ib-btn.is-primary:hover:not(:disabled) {
  background: #5eead4;
  color: #03201c;
}

.ib-btn.is-reveal.is-on {
  color: var(--ib-truth);
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.09);
}

.ib-btn.is-twist.is-on {
  color: var(--ib-bad);
  border-color: rgba(255, 95, 109, 0.45);
  background: rgba(255, 95, 109, 0.08);
}

.ib-btn svg {
  flex: none;
}

/* ==========================================================================
   Stage: the timeline
   ========================================================================== */

.ib-stage {
  position: relative;
  height: 300px;
  border: 1px solid var(--ib-border);
  border-radius: var(--ib-radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.014), transparent 40%),
    rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

@media (min-width: 700px) { .ib-stage { height: 330px; } }

.ib-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Legend
   ========================================================================== */

.ib-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 10px 2px 0;
  font-size: 11px;
  color: var(--ib-faint);
}

.ib-legend.is-small {
  gap: 4px 14px;
  margin-top: 7px;
  font-size: 10.5px;
}

.ib-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ib-sw {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
}

.ib-sw.is-data { background: var(--ib-data); }
.ib-sw.is-hidden { background: var(--ib-truth); }
.ib-sw.is-line {
  width: 16px;
  height: 0;
  border-radius: 0;
  border-top: 1.5px solid rgba(77, 158, 232, 0.55);
}
.ib-sw.is-est {
  width: 14px;
  height: 9px;
  border-radius: 2px;
  background: rgba(45, 212, 191, 0.22);
  border: 1px solid rgba(45, 212, 191, 0.7);
}
.ib-sw.is-truth {
  width: 14px;
  height: 0;
  border-radius: 0;
  border-top: 2px solid var(--ib-truth);
}

/* ==========================================================================
   The triangle
   ========================================================================== */

.ib-tri-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 2px 8px;
}

.ib-tri-note {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--ib-faint);
}

.ib-tri-wrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--ib-border);
  border-radius: var(--ib-radius-sm);
  background: rgba(0, 0, 0, 0.28);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.ib-tri {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--ib-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--ib-dim);
}

.ib-tri th,
.ib-tri td {
  padding: 5px 4px;
  text-align: right;
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1.25;
}

.ib-tri td {
  min-width: 41px;
  transition: opacity 0.35s ease, background 0.2s, color 0.2s, box-shadow 0.2s;
  transition-delay: var(--d, 0ms), 0ms, 0ms, 0ms;
}

.ib-tri thead th {
  font-size: 10px;
  font-weight: 600;
  color: var(--ib-faint);
  border-bottom: 1px solid var(--ib-border);
}

.ib-tri .ib-tri-super th {
  padding-top: 7px;
  font-family: var(--ib-font);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 0;
}

.ib-tri .ib-tri-super th.ib-sum-head {
  color: var(--ib-est);
  padding-left: 14px;
}

.ib-tri .ib-rowhead {
  font-family: var(--ib-font);
  text-align: left;
  letter-spacing: 0.02em;
  /* Two lines rather than one wide column the whole table pays for. */
  white-space: normal;
  width: 58px;
}

/* Row labels stay put when the triangle scrolls sideways on a phone. */
.ib-tri tbody th,
.ib-tri tfoot th,
.ib-tri thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #0f1217;
  text-align: left;
}

.ib-tri tbody th {
  font-weight: 500;
  color: var(--ib-faint);
  cursor: default;
  transition: color 0.2s;
}

.ib-tri tbody th.is-hl { color: var(--ib-text); }

/* What the insurer can see */
.ib-tri td.is-known {
  color: var(--ib-dim);
  background: rgba(77, 158, 232, 0.05);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.025);
}

.ib-tri td.is-diag {
  color: var(--ib-text);
  background: rgba(77, 158, 232, 0.13);
}

/* What it has to estimate */
.ib-tri td.is-proj {
  color: var(--ib-est);
  background: rgba(45, 212, 191, 0.06);
}

.ib-tri .ib-est,
.ib-tri .ib-true {
  display: block;
}

.ib-tri .ib-true {
  display: none;
  margin-top: 1px;
  font-size: 9.5px;
  color: var(--ib-truth);
}

.ib-tri.is-reveal .ib-true { display: block; }

/* Summary columns */
.ib-tri .ib-sum {
  min-width: 54px;
  padding-left: 7px;
  padding-right: 7px;
  color: var(--ib-text);
}

.ib-tri th.ib-sum,
.ib-tri td.is-exp {
  border-left: 1px solid var(--ib-border);
}

.ib-tri td.is-exp {
  color: var(--ib-dim);
}

.ib-tri:not(.is-bf) td.is-rep {
  border-left: 1px solid var(--ib-border);
}

.ib-tri:not(.is-bf) thead th.ib-sum:nth-last-child(3) {
  border-left: 1px solid var(--ib-border);
}

.ib-tri td.is-ult .ib-est,
.ib-tri td.is-ibnr .ib-est {
  color: var(--ib-est);
  font-weight: 600;
}

/* Foot rows: factors, the pattern, totals */
.ib-tri tfoot th {
  font-family: var(--ib-font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ib-faint);
}

.ib-tri tfoot tr:first-child > * {
  border-top: 1px solid var(--ib-border);
}

.ib-tri td.is-fac {
  color: var(--ib-est);
  font-size: 10.5px;
}

.ib-tri td.is-pct {
  color: var(--ib-dim);
  font-size: 10.5px;
}

.ib-tri .ib-total-row > * {
  border-top: 1px solid var(--ib-border);
  padding-top: 7px;
  padding-bottom: 7px;
}

.ib-tri .ib-total-row td.ib-sum { font-weight: 600; }

/* ---- staging: the story builds the triangle up in steps ---- */

.ib-tri td.is-known,
.ib-tri td.is-proj,
.ib-tri td.is-fac,
.ib-tri td.is-pct,
.ib-tri .ib-sum,
.ib-tri .ib-sum-head,
.ib-tri .ib-fac-row th,
.ib-tri .ib-pct-row th,
.ib-tri .ib-total-row th {
  opacity: 0;
}

.ib-tri.s1 td.is-known { opacity: 1; }
.ib-tri.s2 td.is-fac,
.ib-tri.s2 td.is-pct,
.ib-tri.s2 .ib-fac-row th,
.ib-tri.s2 .ib-pct-row th { opacity: 1; }
.ib-tri.s3 td.is-proj { opacity: 1; }
.ib-tri.s4 .ib-sum,
.ib-tri.s4 .ib-sum-head,
.ib-tri.s4 .ib-total-row th { opacity: 1; }

/* ---- highlight, shared with the timeline ---- */

.ib-tri td.is-hl {
  color: #fff;
  background: rgba(159, 208, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(159, 208, 255, 0.55);
}

.ib-tri td.is-proj.is-hl {
  color: #b5fff3;
  background: rgba(45, 212, 191, 0.18);
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.6);
}

.ib-tri td.is-fac.is-hl {
  color: #b5fff3;
  background: rgba(45, 212, 191, 0.16);
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.6);
}

.ib-tri td.ib-sum.is-hl {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.ib-tri-veil {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-size: 12px;
  color: var(--ib-faint);
  text-align: center;
  pointer-events: none;
}

.ib-tri-wrap.is-empty {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 8px, transparent 8px 16px),
    rgba(0, 0, 0, 0.28);
}

/* the readout under the triangle */
.ib-cell {
  min-height: 46px;
  margin-top: 8px;
  padding: 8px 11px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ib-faint);
  border: 1px dashed var(--ib-border-strong);
  border-radius: 7px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.ib-cell.is-on {
  color: var(--ib-dim);
  border-style: solid;
  border-color: rgba(45, 212, 191, 0.35);
  background: rgba(45, 212, 191, 0.05);
}

.ib-cell b {
  font-weight: 600;
  color: var(--ib-text);
}

.ib-cell .is-est { color: var(--ib-est); }
.ib-cell .is-truth { color: var(--ib-truth); }

/* ==========================================================================
   Expected loss ratio slider
   ========================================================================== */

.ib-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  transition: opacity 0.2s;
}

.ib-slider-row.is-off,
.ib-slider-scale.is-off {
  opacity: 0.4;
}

.ib-slider-label {
  flex: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ib-faint);
}

.ib-range {
  flex: 1;
  min-width: 90px;
  height: 20px;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.ib-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(77, 158, 232, 0.45), rgba(45, 212, 191, 0.75));
}

.ib-range::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(77, 158, 232, 0.45), rgba(45, 212, 191, 0.75));
}

.ib-range::-webkit-slider-thumb {
  appearance: none;
  width: 15px;
  height: 15px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: var(--ib-text);
  border: 0;
  box-shadow: 0 0 0 3px rgba(232, 228, 217, 0.12);
  transition: box-shadow 0.16s;
}

.ib-range::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--ib-text);
  border: 0;
  box-shadow: 0 0 0 3px rgba(232, 228, 217, 0.12);
}

.ib-range:hover::-webkit-slider-thumb,
.ib-range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 5px rgba(232, 228, 217, 0.16);
}

.ib-thr {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex: none;
  min-width: 62px;
  line-height: 1.1;
}

.ib-thr-v {
  font-family: var(--ib-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ib-est);
  font-variant-numeric: tabular-nums;
}

.ib-thr-k {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ib-faint);
}

.ib-slider-scale {
  margin: 4px 0 0;
  font-size: 10.5px;
  color: var(--ib-faint);
  transition: opacity 0.2s;
}

/* ==========================================================================
   Side panel: the story
   ========================================================================== */

.ib-story {
  padding: 13px 14px 14px;
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: var(--ib-radius-sm);
  background: rgba(45, 212, 191, 0.06);
  transition: border-color 0.24s, background 0.24s;
}

.ib-story.is-done {
  border-color: var(--ib-border);
  background: rgba(255, 255, 255, 0.015);
}

.ib-story-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.ib-story-head .ib-group-label {
  color: var(--ib-est);
}

.ib-story.is-done .ib-story-head .ib-group-label {
  color: var(--ib-faint);
}

.ib-story-n {
  font-family: var(--ib-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ib-faint);
  padding: 1px 7px;
  border: 1px solid var(--ib-border);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.ib-story-title {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ib-text);
}

.ib-story-text {
  margin: 0;
  min-height: 150px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ib-dim);
}

.ib-story-text strong {
  color: var(--ib-text);
  font-weight: 600;
}

.ib-story-text em {
  font-style: normal;
  color: var(--ib-est);
}

.ib-story-text code {
  font-family: var(--ib-mono);
  font-size: 11.5px;
  color: var(--ib-text);
}

.ib-story-text .is-est { color: var(--ib-est); }
.ib-story-text .is-truth { color: var(--ib-truth); }

.ib-story-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
}

.ib-story-skip {
  padding: 5px 8px;
  white-space: nowrap;
  font-size: 11px;
  color: var(--ib-faint);
  border-radius: 6px;
  transition: color 0.16s;
}

.ib-story-skip:hover { color: var(--ib-text); }

/* ==========================================================================
   Side panel: the reserve and the pattern
   ========================================================================== */

.ib-read-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 8px;
}

.ib-read-note {
  font-size: 10px;
  color: var(--ib-faint);
  text-align: right;
}

.ib-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ib-border);
  border: 1px solid var(--ib-border);
  border-radius: var(--ib-radius-sm);
  overflow: hidden;
}

.ib-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 11px 11px;
  background: rgba(14, 17, 21, 0.92);
}

.ib-stat-k {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ib-faint);
}

.ib-stat-v {
  font-family: var(--ib-mono);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.05;
  color: var(--ib-text);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}

.ib-stat-v.is-data { color: var(--ib-data); }
.ib-stat-v.is-est { color: var(--ib-est); }
.ib-stat-v.is-truth { color: var(--ib-truth); }
.ib-stat-v.is-quiet {
  font-family: var(--ib-font);
  font-size: 15px;
  font-weight: 500;
  color: var(--ib-faint);
}

.ib-verdict {
  margin-top: 8px;
  padding: 9px 11px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ib-faint);
  border: 1px solid var(--ib-border);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.ib-verdict b {
  font-family: var(--ib-mono);
  font-weight: 600;
  color: var(--ib-text);
}

.ib-verdict.is-good {
  color: var(--ib-dim);
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.06);
}

.ib-verdict.is-good b { color: var(--ib-good); }

.ib-verdict.is-bad {
  color: var(--ib-dim);
  border-color: rgba(255, 95, 109, 0.4);
  background: rgba(255, 95, 109, 0.06);
}

.ib-verdict.is-bad b { color: var(--ib-bad); }

.ib-pattern {
  position: relative;
  height: 150px;
  border: 1px solid var(--ib-border);
  border-radius: var(--ib-radius-sm);
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.ib-pattern canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Foot
   ========================================================================== */

.ib-foot {
  padding: 10px 16px 12px;
  font-size: 11px;
  color: var(--ib-faint);
  border-top: 1px solid var(--ib-border);
}

/* ==========================================================================
   Focus and reduced motion
   ========================================================================== */

.ib-root :focus-visible {
  outline: 2px solid rgba(45, 212, 191, 0.7);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .ib-root *,
  .ib-root *::before,
  .ib-root *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
