
.fl-shell {
  --accent: #f97316; --accent-600: #ea580c; --accent-soft: rgba(249,115,22,.10);
  --accent-ink: #d35400; --accent-deep: #b34700;
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --muted-2: #94a3b8;
  --line: #e2e8f0; --line-soft: #f1f5f9; --bg: #f8fafc; --bg-card: #fff;
  --ok: #16a34a; --ok-soft: #dcfce7; --warn: #f59e0b; --warn-soft: #fef3c7;
  --danger: #dc2626; --danger-soft: #fee2e2; --info: #3b82f6; --info-soft: #dbeafe;
  --ok-text: #15803d; --warn-text: #92400e; --danger-text: #b91c1c; --info-text: #1d4ed8;
  --radius: 12px; --radius-sm: 8px; --radius-xs: 6px;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'DejaVu Sans Mono', 'Liberation Mono', monospace;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 6px 24px rgba(0,0,0,.10);

  --bs-body-color: var(--ink);
  --bs-emphasis-color: var(--ink);
  --bs-secondary-color: var(--muted);
  --bs-border-color: var(--line);
  --bs-link-color-rgb: 179, 71, 0;
  --bs-link-hover-color-rgb: 15, 23, 42;
  --bs-font-monospace: var(--mono);
  color: var(--ink);
}
.fl-shell code { color: var(--ink-2); font-family: var(--mono); font-size: .8em; }
.fl-num { font-variant-numeric: tabular-nums; }

.fl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.fl-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .74rem; font-weight: 600; color: var(--muted); margin-bottom: .6rem; }
.fl-crumbs a { color: var(--muted); text-decoration: none; }
.fl-crumbs a:hover { color: var(--ink); }
.fl-crumbs .sep { font-size: .55rem; color: var(--muted-2); }
.fl-h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); margin: 0; }
.fl-h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); margin: 0; }
.fl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .35rem; font-size: .74rem; color: var(--muted); }

.fl-tabs { display: flex; flex-wrap: wrap; gap: .25rem; }
.fl-tab { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .75rem; border-radius: var(--radius-sm); font-size: .8rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.fl-tab:hover { color: var(--ink); background: var(--line-soft); }
.fl-tab.active { color: #fff; background: var(--ink); }
.fl-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.fl-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: 1.25rem; }
.fl-seg { display: inline-flex; flex-wrap: wrap; padding: 2px; background: var(--line-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.fl-seg > label { padding: .28rem .65rem; border-radius: var(--radius-xs); font-size: .76rem; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.fl-seg > label:hover { color: var(--ink); }
.fl-seg > .btn-check:checked + label { background: var(--bg-card); color: var(--ink); box-shadow: var(--shadow-sm); }
.fl-seg > .btn-check:focus-visible + label { box-shadow: 0 0 0 2px var(--accent); }

.fl-fchip { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .65rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-card); font-size: .76rem; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; text-decoration: none; }
.fl-fchip:hover { border-color: var(--muted-2); color: var(--ink); }
.fl-fchip .cnt { font-variant-numeric: tabular-nums; font-size: .72rem; font-weight: 500; color: var(--muted); }
.btn-check:checked + .fl-fchip, .fl-fchip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-check:checked + .fl-fchip .cnt, .fl-fchip.is-on .cnt { color: rgba(255,255,255,.75); }
.fl-fchip.is-on a { color: #fff; }
.btn-check:focus-visible + .fl-fchip { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fl-group-lbl { font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: .25rem; }

.fl-shell .form-control, .fl-shell .form-select { border-color: var(--line); border-radius: var(--radius-sm); font-size: .8rem; color: var(--ink); }
.fl-shell .form-control:focus, .fl-shell .form-select:focus, .fl-shell .form-check-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fl-shell .form-check-input:checked { background-color: var(--ink); border-color: var(--ink); }
.fl-shell .form-switch .form-check-label { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.fl-shell .form-check-label .cnt { font-variant-numeric: tabular-nums; font-size: .72rem; color: var(--muted); }

.fl-b { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .42rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-card); font-family: inherit; font-size: .8rem; font-weight: 600; line-height: 1.2; color: var(--ink); text-decoration: none; white-space: nowrap; cursor: pointer; }
.fl-b:hover { border-color: var(--muted-2); background: var(--bg); color: var(--ink); }
.fl-b:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fl-b-primary { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.fl-b-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.fl-b-danger { background: var(--danger-text); border-color: var(--danger-text); color: #fff; }
.fl-b-danger:hover { background: #991b1b; border-color: #991b1b; color: #fff; }
.fl-b-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.fl-b-ghost:hover { background: var(--line-soft); border-color: transparent; color: var(--ink); }
.fl-b-sm { padding: .28rem .6rem; font-size: .74rem; }
.fl-b-block { display: flex; width: 100%; }

.fl-go { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--radius-xs); color: var(--muted-2); text-decoration: none; }
.fl-go:hover { color: var(--ink); background: var(--line-soft); }
.fl-go:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }

.fl-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem; border-radius: 999px; background: var(--line-soft); font-size: .74rem; font-weight: 600; line-height: 1.35; color: var(--muted); white-space: nowrap; }
.fl-pill-ok { background: var(--ok-soft); color: var(--ok-text); }
.fl-pill-warn { background: var(--warn-soft); color: var(--warn-text); }
.fl-pill-danger { background: var(--danger-soft); color: var(--danger-text); }
.fl-pill-info { background: var(--info-soft); color: var(--info-text); }
.fl-pill-accent { background: var(--accent-soft); color: var(--accent-deep); }
.fl-pill-ink { background: var(--ink); color: #fff; }
.fl-pill-line { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.fl-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.fl-dot.live { background: var(--info); animation: fl-pulse 1.3s ease-in-out infinite; }
@keyframes fl-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .fl-dot.live { animation: none; } }

.fl-up { color: var(--ok-text); }
.fl-down { color: var(--danger-text); }

.fl-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.fl-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
.fl-card-head .ttl { font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.fl-card-head .hint { font-size: .74rem; color: var(--muted); }
.fl-card-body { padding: 1rem; }
.fl-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem 1rem; border-top: 1px solid var(--line); font-size: .74rem; color: var(--muted); }
.fl-card.is-link { position: relative; transition: border-color .15s, box-shadow .15s; }
.fl-card.is-link:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }

.fl-sec { margin-bottom: 1.75rem; }
.fl-sec-lbl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding-bottom: .4rem; margin: 0 0 .25rem; border-bottom: 2px solid var(--ink); font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.fl-sec-lbl .fl-b { font-size: .74rem; letter-spacing: 0; text-transform: none; }
.fl-sec-lbl .hint { font-size: .74rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }

.fl-hero { display: flex; flex-wrap: wrap; overflow: hidden; margin-bottom: 1.75rem; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.fl-hero-tile { flex: 1 1 9rem; min-width: 0; padding: .8rem 1rem; box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
.fl-hero-k { font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fl-hero-v { margin-top: .15rem; font-variant-numeric: tabular-nums; font-size: 1.35rem; font-weight: 700; line-height: 1.2; color: var(--ink); white-space: nowrap; }
.fl-hero-d { margin-top: .1rem; font-variant-numeric: tabular-nums; font-size: .74rem; color: var(--muted); white-space: nowrap; }
.fl-hero.compact .fl-hero-tile { padding: .55rem .8rem; }
.fl-hero.compact .fl-hero-v { font-size: 1.05rem; }
.fl-stats { display: flex; margin-top: auto; border-top: 1px solid var(--line-soft); }
.fl-stats > div { flex: 1 1 0; min-width: 0; padding: .6rem .25rem 0; }
.fl-stats > div + div { box-shadow: -1px 0 0 var(--line-soft); padding-left: .75rem; }

.fl-t2 { width: 100%; margin: 0; border-collapse: collapse; font-size: .82rem; color: var(--ink); }
.fl-t2 thead th { padding: .55rem .6rem; border-bottom: 1px solid var(--line); background: transparent; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; vertical-align: bottom; }
.fl-t2 thead th a { color: inherit !important; text-decoration: none; }
.fl-t2 thead th a:hover { color: var(--ink); }
.fl-t2 thead .unit { font-weight: 600; letter-spacing: .04em; text-transform: none; color: var(--muted); }
.fl-t2 td { padding: .5rem .6rem; border-bottom: 1px solid var(--line-soft); background: transparent; vertical-align: middle; }
.fl-t2 tbody tr:last-child > td { border-bottom: 0; }
.fl-t2 tbody tr:hover > td { background: var(--accent-soft); }
.fl-t2 td.text-end, .fl-t2 td.fl-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fl-t2 .sub { font-size: .74rem; color: var(--muted); }
.fl-t2 .bl { border-left: 1px solid var(--line); }
.fl-t2.tight td, .fl-t2.tight th { padding-top: .35rem; padding-bottom: .35rem; }

.fl-kv { width: 100%; border-collapse: collapse; font-size: .82rem; }
.fl-kv th { width: 1%; padding: .4rem .9rem .4rem 0; font-weight: 500; color: var(--muted); white-space: nowrap; vertical-align: top; }
.fl-kv td { padding: .4rem 0; color: var(--ink); vertical-align: top; overflow-wrap: anywhere; }
.fl-kv tr + tr > * { border-top: 1px solid var(--line-soft); }

.fl-verdict { display: flex; align-items: flex-start; gap: .9rem; padding: 1rem 1.1rem; margin-bottom: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); }
.fl-verdict > i { font-size: 1.35rem; margin-top: .1rem; color: var(--muted); }
.fl-verdict .v-text { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.fl-verdict .v-note { margin-top: .2rem; font-size: .8rem; color: var(--ink-2); }
.fl-verdict-success { border-color: var(--ok); }
.fl-verdict-success > i { color: var(--ok-text); }
.fl-verdict-info { border-color: var(--info); }
.fl-verdict-info > i { color: var(--info-text); }
.fl-verdict-primary { border-color: var(--ink-2); }
.fl-verdict-primary > i { color: var(--ink); }
.fl-verdict-danger { border-color: var(--danger); background: var(--danger-soft); }
.fl-verdict-danger > i { color: var(--danger-text); }

.fl-empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }
.fl-empty .big { margin-bottom: .6rem; font-size: 1.8rem; color: var(--muted-2); }
.fl-empty .et { font-weight: 700; color: var(--ink-2); }

.fl-shell .pagination {
  --bs-pagination-color: var(--ink-2); --bs-pagination-hover-color: var(--ink); --bs-pagination-focus-color: var(--ink);
  --bs-pagination-border-color: var(--line); --bs-pagination-hover-border-color: var(--line); --bs-pagination-hover-bg: var(--line-soft);
  --bs-pagination-active-bg: var(--ink); --bs-pagination-active-border-color: var(--ink);
  --bs-pagination-focus-box-shadow: 0 0 0 3px var(--accent-soft); --bs-pagination-border-radius: var(--radius-xs);
  font-variant-numeric: tabular-nums;
}

.fl-shell .progress { --bs-progress-bg: var(--line-soft); --bs-progress-bar-bg: var(--accent); --bs-progress-border-radius: 999px; }

.fl-shell .fl-step { font-size: .675rem; font-weight: 700; padding: .35em .65em; border-radius: var(--radius-xs); white-space: nowrap; }

.fl-meter { display: inline-flex; gap: 2px; vertical-align: middle; }
.fl-meter .tick { width: 12px; height: 6px; border-radius: 2px; background: var(--line); }
.fl-meter .tick.on { background: var(--fl-color, var(--muted)); }

.fl-bar { display: inline-flex; width: 90px; height: 8px; border-radius: 999px; overflow: hidden; background: var(--line-soft); flex: none; }
.fl-bar.wide { display: flex; width: 100%; height: 12px; }
.fl-bar.wide.slim { height: 8px; margin-top: .2rem; }
.fl-bar .seg { display: block; min-width: 2px; background: var(--fl-color); }

.fl-swatch { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: var(--fl-color); flex: none; }

.fl-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 .3rem; border-radius: var(--radius-xs);
  background: var(--fl-color, var(--muted)); color: #fff; font-variant-numeric: tabular-nums; font-size: .72rem; font-weight: 700;
}
.fl-chip.is-back { box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--warn); }

.fl-t2 tr.fl-visitor > td { background: var(--fl-visitor); }
.fl-t2 tr.fl-visitor:hover > td { background: color-mix(in srgb, var(--fl-visitor) 85%, #000); }
.fl-t2 tr.fl-current > td { background: var(--accent-soft); font-weight: 600; }
.fl-t2 tr[data-fl-href] { cursor: pointer; }
.fl-t2 tr[data-fl-href]:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.fl-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .55rem 1rem; border-bottom: 1px solid var(--line); background: var(--bg); font-size: .8rem; }

.fl-steps { list-style: none; margin: 0; padding: 0; }
.fl-steps > li { position: relative; display: flex; gap: .7rem; padding-bottom: .9rem; }
.fl-steps > li:last-child { padding-bottom: 0; }
.fl-steps > li:not(:last-child)::before {
  content: ''; position: absolute; left: 9px; top: 20px; bottom: 0; width: 2px; background: var(--line);
}
.fl-steps .dot {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--fl-color, var(--muted)); color: #fff; font-size: .6rem;
}
.fl-steps > li.is-skipped { opacity: .6; }
.fl-steps > li.is-skipped .dot { background: var(--bg-card); border: 2px dashed var(--line); }

.fl-columns { display: flex; align-items: flex-end; gap: 2px; height: 140px; }
.fl-columns.small { height: 36px; gap: 1px; }
.fl-columns .col-bar { flex: 1 1 0; min-width: 2px; position: relative; height: 100%; display: flex; align-items: flex-end; }
.fl-columns .col-bar > span { display: block; width: 100%; background: var(--muted-2); border-radius: 2px 2px 0 0; }
.fl-columns .col-bar > span.conv { position: absolute; left: 0; bottom: 0; background: var(--ok); }
.fl-columns.small .col-bar > span { background: var(--accent); opacity: .55; }

.fl-diff { max-height: 70vh; overflow: auto; padding: .75rem 1rem; font-size: .74rem; line-height: 1.45; color: var(--ink-2); background: var(--line-soft); border-radius: 0 0 var(--radius) var(--radius); }
.fl-diff .add { color: var(--ok-text); background: var(--ok-soft); }
.fl-diff .del { color: var(--danger-text); background: var(--danger-soft); }
.fl-diff .hunk { color: var(--info-text); }
.fl-diff .file { font-weight: 700; color: var(--ink); }
details.fl-card > summary { cursor: pointer; list-style: none; }
details.fl-card > summary::-webkit-details-marker { display: none; }
details.fl-card:not([open]) > summary { border-bottom: 0; }

body.fl-page { margin: 0; background: var(--bg); font-family: var(--sans); }
.fl-appbar { background: var(--bg-card); border-bottom: 1px solid var(--line); }
.fl-brand { font-family: var(--mono); font-size: .9rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.fl-brand:hover { color: var(--ink); }
.fl-brand .dot { color: var(--accent); }
.fl-appbar .nav-link { font-size: .8rem; font-weight: 600; color: var(--muted); border-radius: var(--radius-sm); }
.fl-appbar .nav-link:hover, .fl-appbar .nav-link.active { color: var(--ink); }
.fl-toasts .toast { --bs-toast-bg: var(--ink); --bs-toast-color: #fff; --bs-toast-border-color: transparent; --bs-toast-border-radius: var(--radius-sm); font-size: .82rem; }
.fl-toasts .toast .ico-success { color: #4ade80; }
.fl-toasts .toast .ico-error { color: #f87171; }
.fl-toasts .toast .ico-warning { color: var(--warn); }
.fl-toasts .toast .ico-info { color: #93c5fd; }

.fl-drag { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; padding: 0; border: 0; border-radius: var(--radius-xs); background: transparent; color: var(--muted-2); cursor: grab; touch-action: none; }
.fl-drag:hover, .fl-drag:focus-visible { color: var(--ink); background: var(--line-soft); outline: none; }
.fl-drag:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.fl-dragging { opacity: .55; }
.fl-dragging .fl-drag { cursor: grabbing; }
.fl-order-failed [data-fl-order-key] .fl-card { border-color: var(--danger-soft); }

.fl-tray .fl-card-head { border-bottom: 1px solid var(--line); }
.fl-tray-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; padding: .75rem; }
.fl-tile { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; gap: .3rem; min-height: 4.2rem; padding: .45rem .55rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-card); font-family: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.fl-tile:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.fl-tile:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--accent); }
.fl-tile-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .72rem; font-weight: 700; line-height: 1.25; }
.fl-tile-dot { display: inline-block; width: .5rem; height: .5rem; margin-right: .3rem; border-radius: 50%; background: var(--muted-2); vertical-align: .05rem; }
.fl-tile-dot.st-running { background: var(--info-text); }
.fl-tile-dot.st-decided { background: var(--ok-text); }
.fl-tile-num { font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
@media (pointer: fine) { [data-fl-order-key] > .fl-card { cursor: grab; } }
[data-fl-order-key] > .fl-card a, [data-fl-order-key] > .fl-card button { cursor: pointer; }
.fl-no-select, .fl-no-select * { -webkit-user-select: none; user-select: none; cursor: grabbing !important; }

.fl-keyword { color: var(--accent-deep); font-weight: 600; }

.fl-shell .fl-map { height: 220px; border-color: var(--line) !important; }
.fl-shell .fl-nested-row { cursor: pointer; }
