/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: 'Manrope', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --color-white: #fff;
    --spacing: 0.25rem;
    --text-xl: 1.25rem;
    --text-xl--line-height: calc(1.75 / 1.25);
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    --leading-relaxed: 1.625;
    --radius-md: 6px;
    --radius-lg: 10px;
    --radius-xl: 14px;
    --shadow-sm: 2px 2px 0 #0a0a0a;
    --blur-sm: 8px;
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
    --color-page: #fafaf7;
    --color-surface: #ffffff;
    --color-border: #e5e5e2;
    --color-ink: #0a0a0a;
    --color-primary: #0a0a0a;
    --color-muted: #6b6b69;
    --color-accent: #0B5CFF;
    --color-accent-faint: rgba(11, 92, 255, 0.04);
    --color-risk-high: #dc2626;
    --color-risk-med: #b45309;
    --color-risk-low: #16a34a;
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .pointer-events-none {
    pointer-events: none;
  }
  .visible {
    visibility: visible;
  }
  .absolute {
    position: absolute;
  }
  .relative {
    position: relative;
  }
  .inset-0 {
    inset: 0;
  }
  .top-\[18px\] {
    top: 18px;
  }
  .right-\[18px\] {
    right: 18px;
  }
  .bottom-\[18px\] {
    bottom: 18px;
  }
  .left-5 {
    left: calc(var(--spacing) * 5);
  }
  .z-\[5\] {
    z-index: 5;
  }
  .z-\[8\] {
    z-index: 8;
  }
  .z-\[9\] {
    z-index: 9;
  }
  .m-0 {
    margin: 0;
  }
  .mx-\[2px\] {
    margin-inline: 2px;
  }
  .my-1 {
    margin-block: var(--spacing);
  }
  .mt-0\.5 {
    margin-top: calc(var(--spacing) * 0.5);
  }
  .mt-1 {
    margin-top: var(--spacing);
  }
  .mt-5 {
    margin-top: calc(var(--spacing) * 5);
  }
  .mt-\[6px\] {
    margin-top: 6px;
  }
  .mt-\[7px\] {
    margin-top: 7px;
  }
  .mt-\[14px\] {
    margin-top: 14px;
  }
  .mb-\[5px\] {
    margin-bottom: 5px;
  }
  .mb-\[9px\] {
    margin-bottom: 9px;
  }
  .mb-\[10px\] {
    margin-bottom: 10px;
  }
  .mb-\[13px\] {
    margin-bottom: 13px;
  }
  .mb-\[14px\] {
    margin-bottom: 14px;
  }
  .block {
    display: block;
  }
  .flex {
    display: flex;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .inline-block {
    display: inline-block;
  }
  .h-24 {
    height: calc(var(--spacing) * 24);
  }
  .h-\[9px\] {
    height: 9px;
  }
  .h-screen {
    height: 100vh;
  }
  .min-h-0 {
    min-height: 0;
  }
  .w-24 {
    width: calc(var(--spacing) * 24);
  }
  .w-\[9px\] {
    width: 9px;
  }
  .w-full {
    width: 100%;
  }
  .w-px {
    width: 1px;
  }
  .max-w-\[60\%\] {
    max-width: 60%;
  }
  .max-w-\[340px\] {
    max-width: 340px;
  }
  .flex-1 {
    flex: 1;
  }
  .flex-none {
    flex: none;
  }
  .cursor-pointer {
    cursor: pointer;
  }
  .resize {
    resize: both;
  }
  .grid-cols-\[1fr_360px\] {
    grid-template-columns: 1fr 360px;
  }
  .flex-col {
    flex-direction: column;
  }
  .items-baseline {
    align-items: baseline;
  }
  .items-center {
    align-items: center;
  }
  .justify-between {
    justify-content: space-between;
  }
  .justify-center {
    justify-content: center;
  }
  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }
  .gap-\[2px\] {
    gap: 2px;
  }
  .gap-\[5px\] {
    gap: 5px;
  }
  .gap-\[7px\] {
    gap: 7px;
  }
  .gap-\[14px\] {
    gap: 14px;
  }
  .gap-\[18px\] {
    gap: 18px;
  }
  .self-stretch {
    align-self: stretch;
  }
  .overflow-hidden {
    overflow: hidden;
  }
  .overflow-y-auto {
    overflow-y: auto;
  }
  .rounded-\[2px\] {
    border-radius: 2px;
  }
  .rounded-full {
    border-radius: calc(infinity * 1px);
  }
  .rounded-lg {
    border-radius: var(--radius-lg);
  }
  .rounded-md {
    border-radius: var(--radius-md);
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .border-2 {
    border-style: var(--tw-border-style);
    border-width: 2px;
  }
  .border-t {
    border-top-style: var(--tw-border-style);
    border-top-width: 1px;
  }
  .border-r {
    border-right-style: var(--tw-border-style);
    border-right-width: 1px;
  }
  .border-b {
    border-bottom-style: var(--tw-border-style);
    border-bottom-width: 1px;
  }
  .border-l {
    border-left-style: var(--tw-border-style);
    border-left-width: 1px;
  }
  .border-dashed {
    --tw-border-style: dashed;
    border-style: dashed;
  }
  .border-border {
    border-color: var(--color-border);
  }
  .border-border\/70 {
    border-color: color-mix(in srgb, #e5e5e2 70%, transparent);
    @supports (color: color-mix(in lab, red, red)) {
      border-color: color-mix(in oklab, var(--color-border) 70%, transparent);
    }
  }
  .border-ink {
    border-color: var(--color-ink);
  }
  .bg-\[\#0B5CFF\] {
    background-color: #0B5CFF;
  }
  .bg-\[\#16a34a\] {
    background-color: #16a34a;
  }
  .bg-\[\#dc2626\] {
    background-color: #dc2626;
  }
  .bg-accent {
    background-color: var(--color-accent);
  }
  .bg-border\/60 {
    background-color: color-mix(in srgb, #e5e5e2 60%, transparent);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--color-border) 60%, transparent);
    }
  }
  .bg-page {
    background-color: var(--color-page);
  }
  .bg-page\/90 {
    background-color: color-mix(in srgb, #fafaf7 90%, transparent);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--color-page) 90%, transparent);
    }
  }
  .bg-surface {
    background-color: var(--color-surface);
  }
  .bg-transparent {
    background-color: transparent;
  }
  .bg-white\/80 {
    background-color: color-mix(in srgb, #fff 80%, transparent);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--color-white) 80%, transparent);
    }
  }
  .p-\[10px\] {
    padding: 10px;
  }
  .px-3 {
    padding-inline: calc(var(--spacing) * 3);
  }
  .px-4 {
    padding-inline: calc(var(--spacing) * 4);
  }
  .px-\[9px\] {
    padding-inline: 9px;
  }
  .px-\[18px\] {
    padding-inline: 18px;
  }
  .py-2 {
    padding-block: calc(var(--spacing) * 2);
  }
  .py-\[4px\] {
    padding-block: 4px;
  }
  .py-\[6px\] {
    padding-block: 6px;
  }
  .py-\[7px\] {
    padding-block: 7px;
  }
  .py-\[9px\] {
    padding-block: 9px;
  }
  .py-\[11px\] {
    padding-block: 11px;
  }
  .py-\[13px\] {
    padding-block: 13px;
  }
  .py-\[14px\] {
    padding-block: 14px;
  }
  .pt-3 {
    padding-top: calc(var(--spacing) * 3);
  }
  .pt-\[14px\] {
    padding-top: 14px;
  }
  .pt-\[22px\] {
    padding-top: 22px;
  }
  .pb-3 {
    padding-bottom: calc(var(--spacing) * 3);
  }
  .pb-5 {
    padding-bottom: calc(var(--spacing) * 5);
  }
  .pb-\[22px\] {
    padding-bottom: 22px;
  }
  .text-center {
    text-align: center;
  }
  .font-mono {
    font-family: var(--font-mono);
  }
  .font-sans {
    font-family: var(--font-sans);
  }
  .text-xl {
    font-size: var(--text-xl);
    line-height: var(--tw-leading, var(--text-xl--line-height));
  }
  .text-\[10\.5px\] {
    font-size: 10.5px;
  }
  .text-\[11\.5px\] {
    font-size: 11.5px;
  }
  .text-\[11px\] {
    font-size: 11px;
  }
  .text-\[12\.5px\] {
    font-size: 12.5px;
  }
  .text-\[12px\] {
    font-size: 12px;
  }
  .text-\[14px\] {
    font-size: 14px;
  }
  .text-\[26px\] {
    font-size: 26px;
  }
  .text-\[34px\] {
    font-size: 34px;
  }
  .leading-relaxed {
    --tw-leading: var(--leading-relaxed);
    line-height: var(--leading-relaxed);
  }
  .font-bold {
    --tw-font-weight: var(--font-weight-bold);
    font-weight: var(--font-weight-bold);
  }
  .font-medium {
    --tw-font-weight: var(--font-weight-medium);
    font-weight: var(--font-weight-medium);
  }
  .tracking-\[-0\.02em\] {
    --tw-tracking: -0.02em;
    letter-spacing: -0.02em;
  }
  .tracking-\[0\.01em\] {
    --tw-tracking: 0.01em;
    letter-spacing: 0.01em;
  }
  .tracking-\[0\.04em\] {
    --tw-tracking: 0.04em;
    letter-spacing: 0.04em;
  }
  .tracking-\[0\.06em\] {
    --tw-tracking: 0.06em;
    letter-spacing: 0.06em;
  }
  .text-accent {
    color: var(--color-accent);
  }
  .text-muted {
    color: var(--color-muted);
  }
  .text-primary {
    color: var(--color-primary);
  }
  .text-risk-med {
    color: var(--color-risk-med);
  }
  .text-white {
    color: var(--color-white);
  }
  .uppercase {
    text-transform: uppercase;
  }
  .antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  .opacity-40 {
    opacity: 40%;
  }
  .shadow {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .shadow-ink {
    --tw-shadow: 3px 3px 0 var(--tw-shadow-color, #0a0a0a);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .shadow-sm {
    --tw-shadow: 2px 2px 0 var(--tw-shadow-color, #0a0a0a);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .ring {
    --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .backdrop-blur-sm {
    --tw-backdrop-blur: blur(var(--blur-sm));
    -webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
    backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
  }
  .transition-\[border-color\,transform\] {
    transition-property: border-color,transform;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .transition-\[color\,background\,border-color\] {
    transition-property: color,background,border-color;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .transition-\[color\,border-color\] {
    transition-property: color,border-color;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .transition-all {
    transition-property: all;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .duration-\[140ms\] {
    --tw-duration: 140ms;
    transition-duration: 140ms;
  }
  .duration-\[150ms\] {
    --tw-duration: 150ms;
    transition-duration: 150ms;
  }
  .duration-\[200ms\] {
    --tw-duration: 200ms;
    transition-duration: 200ms;
  }
  .select-none {
    -webkit-user-select: none;
    user-select: none;
  }
  .hover\:border-accent {
    &:hover {
      @media (hover: hover) {
        border-color: var(--color-accent);
      }
    }
  }
  .hover\:border-ink {
    &:hover {
      @media (hover: hover) {
        border-color: var(--color-ink);
      }
    }
  }
  .hover\:border-ink\/30 {
    &:hover {
      @media (hover: hover) {
        border-color: color-mix(in srgb, #0a0a0a 30%, transparent);
        @supports (color: color-mix(in lab, red, red)) {
          border-color: color-mix(in oklab, var(--color-ink) 30%, transparent);
        }
      }
    }
  }
  .hover\:border-risk-high {
    &:hover {
      @media (hover: hover) {
        border-color: var(--color-risk-high);
      }
    }
  }
  .hover\:bg-accent {
    &:hover {
      @media (hover: hover) {
        background-color: var(--color-accent);
      }
    }
  }
  .hover\:text-primary {
    &:hover {
      @media (hover: hover) {
        color: var(--color-primary);
      }
    }
  }
  .hover\:text-risk-high {
    &:hover {
      @media (hover: hover) {
        color: var(--color-risk-high);
      }
    }
  }
  .hover\:text-white {
    &:hover {
      @media (hover: hover) {
        color: var(--color-white);
      }
    }
  }
  .hover\:shadow-ink {
    &:hover {
      @media (hover: hover) {
        --tw-shadow: 3px 3px 0 var(--tw-shadow-color, #0a0a0a);
        box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
      }
    }
  }
  .hover\:shadow-ink-hover {
    &:hover {
      @media (hover: hover) {
        --tw-shadow: 4px 4px 0 var(--tw-shadow-color, #0a0a0a);
        box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
      }
    }
  }
  .active\:shadow-ink-press {
    &:active {
      --tw-shadow: 1px 1px 0 var(--tw-shadow-color, #0a0a0a);
      box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
    }
  }
  .disabled\:cursor-not-allowed {
    &:disabled {
      cursor: not-allowed;
    }
  }
  .disabled\:border-border {
    &:disabled {
      border-color: var(--color-border);
    }
  }
  .disabled\:bg-border {
    &:disabled {
      background-color: var(--color-border);
    }
  }
  .disabled\:text-muted {
    &:disabled {
      color: var(--color-muted);
    }
  }
  .disabled\:shadow-none {
    &:disabled {
      --tw-shadow: 0 0 #0000;
      box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
    }
  }
  .max-\[880px\]\:max-h-\[46vh\] {
    @media (width < 880px) {
      max-height: 46vh;
    }
  }
  .max-\[880px\]\:grid-cols-1 {
    @media (width < 880px) {
      grid-template-columns: repeat(1, minmax(0, 1fr));
    }
  }
  .max-\[880px\]\:grid-rows-\[1fr_auto\] {
    @media (width < 880px) {
      grid-template-rows: 1fr auto;
    }
  }
  .max-\[880px\]\:border-t {
    @media (width < 880px) {
      border-top-style: var(--tw-border-style);
      border-top-width: 1px;
    }
  }
  .max-\[880px\]\:border-l-0 {
    @media (width < 880px) {
      border-left-style: var(--tw-border-style);
      border-left-width: 0px;
    }
  }
}
@layer base {
  *, *::before, *::after {
    box-sizing: border-box;
  }
  html, body {
    margin: 0;
    height: 100%;
  }
  #canvas-wrap canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    touch-action: none;
  }
  input[type=range] {
    width: 100%;
    accent-color: var(--color-accent);
    height: 3px;
    cursor: pointer;
  }
  .panel-scroll::-webkit-scrollbar {
    width: 5px;
  }
  .panel-scroll::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
  }
  .panel-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--color-muted);
  }
}
#drop.hide {
  display: none;
}
#drop.over .drop-ring {
  border-color: var(--color-accent);
  transform: scale(1.05);
}
#stage.drag-over::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 2px dashed var(--color-accent);
  border-radius: 10px;
  pointer-events: none;
  z-index: 10;
  animation: dash-spin 12s linear infinite;
}
.panel-tab {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 12px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  transition: color 140ms, background 140ms, border-color 140ms;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.panel-tab:hover {
  color: var(--color-primary);
}
.panel-tab.on {
  background: var(--color-ink);
  color: #fff;
  border-color: var(--color-ink);
}
.hist-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 9px 11px;
  margin-bottom: 7px;
  cursor: pointer;
  transition: border-color 140ms, background 140ms;
  background: var(--color-surface);
}
.hist-item:hover {
  border-color: rgba(10,10,10,0.25);
}
.hist-item.current {
  border-color: var(--color-accent);
  background: var(--color-accent-faint);
}
.hist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hist-name {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--color-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hist-del {
  cursor: pointer;
  color: var(--color-muted);
  font-size: 10px;
  padding: 1px 3px;
  flex-shrink: 0;
  background: transparent;
  border: none;
}
.hist-del:hover {
  color: var(--color-risk-high);
}
.hist-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-muted);
  margin-top: 4px;
}
.mode-btn.on {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-ink);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.mode-btn:not(.on):hover {
  border-color: rgba(10,10,10,0.3);
  color: var(--color-primary);
}
.canvas-tog {
  color: var(--color-primary);
  background: rgba(10,10,10,0.06);
  border-color: rgba(10,10,10,0.18);
}
.canvas-tog:hover {
  border-color: rgba(10,10,10,0.3);
}
.canvas-tog-off {
  color: var(--color-muted) !important;
  background: rgba(255,255,255,0.8) !important;
  border-color: var(--color-border) !important;
  text-decoration: line-through;
  opacity: 0.6;
}
.toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-track {
  width: 34px;
  height: 18px;
  border-radius: 10px;
  background: var(--color-border);
  position: relative;
  flex: none;
  transition: background 160ms, border-color 160ms;
  border: 1px solid transparent;
}
.toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-muted);
  transition: left 160ms, background 160ms;
}
.toggle-input:checked ~ .toggle-track {
  background: rgba(11, 92, 255, 0.1);
  border-color: var(--color-accent);
}
.toggle-input:checked ~ .toggle-track .toggle-knob {
  left: 18px;
  background: var(--color-accent);
}
.toggle-input:focus-visible ~ .toggle-track {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.force-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: 11.5px;
  overflow: hidden;
  transition: border-color 140ms, background 140ms;
}
.force-item.sel {
  border-color: var(--color-accent);
  background: var(--color-accent-faint);
}
.force-item .head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  cursor: pointer;
}
.force-item .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-accent);
  flex: none;
}
.force-item .vec {
  color: var(--color-muted);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.force-item.sel .vec {
  color: var(--color-primary);
}
.force-item .mag {
  color: var(--color-accent);
}
.force-item .caret {
  color: var(--color-muted);
  transition: transform 140ms;
  font-size: 10px;
}
.force-item.open .caret {
  transform: rotate(90deg);
}
.force-item .x {
  cursor: pointer;
  color: var(--color-muted);
  padding: 0 2px;
}
.force-item .x:hover {
  color: var(--color-risk-high);
}
.force-item .editor {
  display: none;
  padding: 4px 10px 11px;
  border-top: 1px solid var(--color-border);
}
.force-item.open .editor {
  display: block;
}
.force-item .editor .erow {
  margin: 9px 0 0;
}
.force-item .editor .erow label {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--color-muted);
  margin-bottom: 4px;
}
.force-item .editor .erow label b {
  color: var(--color-primary);
  font-weight: 500;
}
.force-item .editor input[type=range] {
  width: 100%;
  height: 3px;
}
.force-item .editor .ax-x {
  accent-color: var(--color-risk-high);
}
.force-item .editor .ax-y {
  accent-color: var(--color-accent);
}
.force-item .editor .ax-z {
  accent-color: var(--color-risk-low);
}
.force-item .editor .reaim {
  margin-top: 11px;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 11px;
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 7px 0;
  cursor: pointer;
  transition: border-color 140ms;
}
.force-item .editor .reaim:hover {
  border-color: var(--color-accent);
}
.force-item .editor .reaim.arming {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.result {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 140ms, box-shadow 140ms;
  background: var(--color-surface);
  position: relative;
}
.result:hover {
  border-color: rgba(10,10,10,0.25);
  box-shadow: var(--shadow-sm);
}
.result.active {
  border-color: var(--color-accent);
  background: var(--color-accent-faint);
}
.result .rank {
  position: absolute;
  top: -1px;
  left: -1px;
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--color-border);
  color: var(--color-primary);
  padding: 2px 8px;
  border-radius: var(--radius-xl) 0 9px 0;
}
.result.active .rank {
  background: var(--color-accent);
  color: #fff;
}
.result .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 6px 0 9px;
}
.result .score {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.result .score small {
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 400;
  font-family: var(--font-mono);
}
.result .euler {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--color-muted);
  text-align: right;
  line-height: 1.5;
}
.bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.bar {
  display: grid;
  grid-template-columns: 74px 1fr 34px;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-muted);
}
.bar .track {
  height: 5px;
  background: var(--color-border);
  border-radius: 3px;
  overflow: hidden;
}
.bar .fill {
  height: 100%;
  border-radius: 3px;
}
.bar .val {
  text-align: right;
  color: var(--color-primary);
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-leading {
  syntax: "*";
  inherits: false;
}
@property --tw-font-weight {
  syntax: "*";
  inherits: false;
}
@property --tw-tracking {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-ring-inset {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}
@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-backdrop-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-duration {
  syntax: "*";
  inherits: false;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-border-style: solid;
      --tw-leading: initial;
      --tw-font-weight: initial;
      --tw-tracking: initial;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-backdrop-blur: initial;
      --tw-backdrop-brightness: initial;
      --tw-backdrop-contrast: initial;
      --tw-backdrop-grayscale: initial;
      --tw-backdrop-hue-rotate: initial;
      --tw-backdrop-invert: initial;
      --tw-backdrop-opacity: initial;
      --tw-backdrop-saturate: initial;
      --tw-backdrop-sepia: initial;
      --tw-duration: initial;
    }
  }
}
