/* neobrutalistcomponents v1.3.0 — theme: tech */
@layer nbc.tokens, nbc.theme, nbc.base, nbc.components, nbc.flourish;

/* tokens.css */
@layer nbc.theme {
/* ============================================================
   TECH — terminal sophistication.
   Dark (native): graphite with a green undertone, phosphor
   lines, magenta as the anti-cliché second signal, a faint 24px
   grid behind every surface, stepped motion like a redraw.
   Light: green-bar paper — the continuous-form stock line
   printers used; stripes become the alternate surface.
   ============================================================ */
[data-theme="tech"] {
  --nbc-scheme: dark;

  --nbc-font-sans: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  --nbc-font-display: 'Martian Mono', 'Geist Mono', ui-monospace, monospace;
  --nbc-font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  --nbc-weight-body: 400;
  --nbc-weight-label: 500;
  --nbc-weight-display: 700;
  --nbc-label-transform: uppercase;
  --nbc-label-spacing: 0.1em;
  --nbc-display-transform: none;
  --nbc-display-spacing: -0.04em;

  --nbc-bg: light-dark(#f2f6ee, #0b0e0c);
  --nbc-fg: light-dark(#0d2416, #c9f7dc);
  --nbc-fg-muted: light-dark(#46604f, #80a08d);
  --nbc-surface: light-dark(#ffffff, #121613d9);
  --nbc-surface-alt: light-dark(#e2eed9, #1a221c);
  --nbc-border-color: light-dark(#0d2416, #3dff8c);

  --nbc-primary: light-dark(#0a7a3d, #3dff8c);
  --nbc-primary-fg: light-dark(#ffffff, #04110a);
  --nbc-accent: light-dark(#b0168f, #ff4fd0);
  --nbc-accent-fg: light-dark(#ffffff, #12040e);

  --nbc-info: light-dark(#0b62a8, #5cc8ff);
  --nbc-info-fg: light-dark(#ffffff, #04111a);
  --nbc-success: light-dark(#0a7a3d, #3dff8c);
  --nbc-success-fg: light-dark(#ffffff, #04110a);
  --nbc-warning: light-dark(#ffb000, #ffcc33);
  --nbc-warning-fg: #1a1200;
  --nbc-danger: light-dark(#c4123a, #ff5c7a);
  --nbc-danger-fg: light-dark(#ffffff, #12040a);
  --nbc-focus: light-dark(#0a7a3d, #3dff8c);

  --nbc-primary-fill: var(--nbc-primary);
  --nbc-danger-fill: var(--nbc-danger);
  --nbc-surface-fill: var(--nbc-surface);
  --nbc-texture:
    linear-gradient(to right, light-dark(#0d24160f, #3dff8c12) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(to bottom, light-dark(#0d24160f, #3dff8c12) 1px, transparent 1px) 0 0 / 24px 24px;

  --nbc-border-width: 1px;
  --nbc-border-style: solid;
  --nbc-radius: 2px;
  --nbc-radius-control: 2px;
  --nbc-radius-button: 2px;
  --nbc-radius-small: 2px;

  --nbc-shadow: 3px 3px 0 light-dark(#0d241638, #3dff8c45);
  --nbc-shadow-lg: 6px 6px 0 light-dark(#0d241638, #3dff8c45), 0 0 36px light-dark(#0a7a3d14, #3dff8c1f);
  --nbc-shadow-press: 1px 1px 0 light-dark(#0d241638, #3dff8c45);
  --nbc-press: 2px;
  --nbc-press-active: 3px;
  --nbc-rotate: 0deg;
  --nbc-focus-width: 2px;
  --nbc-focus-offset: 2px;

  --nbc-duration: 90ms;
  --nbc-duration-slow: 180ms;
  --nbc-ease: steps(3, jump-end);
}
}

/* Button.css */
@layer nbc.flourish {
/* Tech: outlined commands with a prompt; they fill like a selection on hover.
   Loading is a blinking block cursor, not a spinner. */

@scope ([data-theme="tech"]) to ([data-theme]:not([data-theme="tech"])) {
  .nbc-button--primary {
    background: transparent;
    color: var(--nbc-primary);
    border-color: var(--nbc-primary);
  }

  .nbc-button--primary::before {
    content: '>' / '';
    opacity: 0.75;
  }

  .nbc-button--danger {
    background: transparent;
    color: var(--nbc-danger);
    border-color: var(--nbc-danger);
  }

  .nbc-button--secondary {
    background: transparent;
    border-color: var(--nbc-fg-muted);
  }

  @media (hover: hover) {
    .nbc-button--primary:hover:not(:disabled, [aria-disabled="true"]) {
      background: var(--nbc-primary);
      color: var(--nbc-primary-fg);
    }
    .nbc-button--danger:hover:not(:disabled, [aria-disabled="true"]) {
      background: var(--nbc-danger);
      color: var(--nbc-danger-fg);
    }
    .nbc-button--secondary:hover:not(:disabled, [aria-disabled="true"]) {
      border-color: var(--nbc-accent);
      color: var(--nbc-accent);
    }
  }

  .nbc-button--loading .nbc-button__spinner {
    inline-size: 0.6em;
    block-size: 1.1em;
    border: 0;
    border-radius: 0;
    background: currentColor;
    animation: nbc-tech-blink 900ms steps(2, jump-none) infinite;
  }
}

@keyframes nbc-tech-blink {
  50% {
    opacity: 0;
  }
}
}

/* Field.css */
@layer nbc.flourish {
/* Tech: a blinking caret after every field label (silent for screen readers). */

@scope ([data-theme="tech"]) to ([data-theme]:not([data-theme="tech"])) {
  .nbc-field__label::after {
    content: '_' / '';
    margin-inline-start: 0.3em;
    color: var(--nbc-primary);
    animation: nbc-tech-caret 1s steps(2, jump-none) infinite;
  }
}

@keyframes nbc-tech-caret {
  50% {
    opacity: 0;
  }
}
}

/* Input.css */
@layer nbc.flourish {
/* Tech: focus inverts the field like a text selection. */

@scope ([data-theme="tech"]) to ([data-theme]:not([data-theme="tech"])) {
  .nbc-input:focus-within {
    background: var(--nbc-primary);
    color: var(--nbc-primary-fg);
  }

  .nbc-input:focus-within .nbc-input__icon,
  .nbc-input:focus-within .nbc-input__control::placeholder {
    color: color-mix(in srgb, var(--nbc-primary-fg) 70%, transparent);
  }

  .nbc-input__control {
    caret-color: var(--nbc-accent);
  }
}
}

/* Card.css */
@layer nbc.flourish {
/* Tech: titles are shell prompts; the header is a darker status bar. */

@scope ([data-theme="tech"]) to ([data-theme]:not([data-theme="tech"])) {
  .nbc-card__title::before {
    content: '$ ' / '';
    color: var(--nbc-accent);
    font-weight: 400;
  }

  .nbc-card__header {
    background: light-dark(#e9f1e3, #0e1310);
  }

  .nbc-card__title {
    font-size: var(--nbc-fs-lg);
  }
}
}

/* Textarea.css */
@layer nbc.flourish {
/* Tech: a focused textarea gets a phosphor cursor gutter and a faint green wash
   (a full inversion would be too heavy under a paragraph of text); selecting text
   inverts it like a terminal selection. */

@scope ([data-theme="tech"]) to ([data-theme]:not([data-theme="tech"])) {
  .nbc-textarea {
    caret-color: var(--nbc-accent);
    caret-shape: block;
  }

  .nbc-textarea:focus {
    background:
      linear-gradient(var(--nbc-primary), var(--nbc-primary)) 0 0 / 3px 100% no-repeat,
      color-mix(in srgb, var(--nbc-primary) 14%, var(--nbc-surface));
  }

  .nbc-textarea--invalid:focus {
    background:
      linear-gradient(var(--nbc-danger), var(--nbc-danger)) 0 0 / 3px 100% no-repeat,
      color-mix(in srgb, var(--nbc-danger) 12%, var(--nbc-surface));
  }

  .nbc-textarea::selection {
    background: var(--nbc-primary);
    color: var(--nbc-primary-fg);
  }
}
}

/* Checkbox.css */
@layer nbc.flourish {
/* Tech: the box is a pair of [ ] brackets; checked prints a phosphor block between them. */

@scope ([data-theme="tech"]) to ([data-theme]:not([data-theme="tech"])) {
  .nbc-checkbox__box {
    --_px: calc(var(--_box) * 0.23);
    --_py: calc(var(--_box) * 0.18);

    padding: var(--_py) var(--_px);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .nbc-checkbox__box::before,
  .nbc-checkbox__box::after {
    content: '';
    position: absolute;
    inset-block: 0;
    inline-size: 28%;
    border: calc(var(--nbc-border-width) + 1px) solid var(--nbc-border-color);
    pointer-events: none;
    transition: border-color var(--nbc-duration) var(--nbc-ease);
  }

  .nbc-checkbox__box::before {
    inset-inline-start: 0;
    border-inline-end: 0;
  }

  .nbc-checkbox__box::after {
    inset-inline-end: 0;
    border-inline-start: 0;
  }

  .nbc-checkbox__box:has(.nbc-checkbox__control:checked, .nbc-checkbox__control:indeterminate) {
    background: var(--nbc-primary-fill) content-box;
  }

  .nbc-checkbox__check,
  .nbc-checkbox__dash {
    inset: var(--_py) var(--_px);
    inline-size: calc(100% - 2 * var(--_px));
    block-size: calc(100% - 2 * var(--_py));
    stroke-width: 4;
  }

  @media (hover: hover) {
    .nbc-checkbox:not(.nbc-checkbox--disabled) .nbc-checkbox__box:has(.nbc-checkbox__control:not(:checked, :indeterminate)):hover {
      background: color-mix(in srgb, var(--nbc-primary) 18%, transparent) content-box;
    }
  }

  /* Invalid and focus speak through the brackets, not an outer ring. */

  .nbc-checkbox--invalid {
    --_ring: 0 0 0 0 transparent;
  }

  .nbc-checkbox--invalid .nbc-checkbox__box::before,
  .nbc-checkbox--invalid .nbc-checkbox__box::after {
    border-color: var(--nbc-danger);
  }

  @media (forced-colors: active) {
    .nbc-checkbox__box:has(.nbc-checkbox__control:checked, .nbc-checkbox__control:indeterminate) {
      background: Highlight content-box;
    }
    .nbc-checkbox__box::before,
    .nbc-checkbox__box::after {
      border-color: CanvasText;
    }
  }
}
}

/* Select.css */
@layer nbc.flourish {
/* Tech: a phosphor prompt in front of the value; keyboard focus inverts the
   field like a text selection. The open list is a command menu: the current
   line carries the prompt, the rest are indented under it. */

@scope ([data-theme="tech"]) to ([data-theme]:not([data-theme="tech"])) {
  .nbc-select::before {
    content: '>' / '';
    display: flex;
    align-items: center;
    margin-inline-start: var(--_px);
    color: var(--nbc-primary);
    font-family: var(--nbc-font-mono);
    line-height: 1;
  }

  .nbc-select__control {
    padding-inline-start: var(--nbc-space-sm);
    caret-color: var(--nbc-accent);
  }

  .nbc-select:has(.nbc-select__control:focus-visible) {
    background: var(--nbc-primary);
    color: var(--nbc-primary-fg);
  }

  .nbc-select:has(.nbc-select__control:focus-visible)::before,
  .nbc-select:has(.nbc-select__control:focus-visible) .nbc-select__chevron {
    color: var(--nbc-primary-fg);
  }

  .nbc-select:has(.nbc-select__control:focus-visible) .nbc-select__control:has(option[value=""]:checked) {
    color: color-mix(in srgb, var(--nbc-primary-fg) 70%, transparent);
  }

  @supports (appearance: base-select) {
    /* The dark surface is translucent; a listbox over page content must not be. */
    .nbc-select__control::picker(select) {
      background: var(--nbc-bg);
      border-color: var(--nbc-primary);
    }
    .nbc-select__control option {
      font-family: var(--nbc-font-mono);
    }
    .nbc-select__control option::before {
      content: '' / '';
      flex: none;
      inline-size: 1ch;
    }
    .nbc-select__control option:checked:not(:disabled)::before {
      content: '>' / '';
    }
    .nbc-select__control option::checkmark {
      display: none;
    }
  }

  @media (hover: hover) {
    @supports (appearance: base-select) {
      .nbc-select__control option:not(:disabled):hover::before {
        content: '>' / '';
      }
    }
  }
}
}

/* RadioGroup.css */
@layer nbc.flourish {
/* Tech: the dot is a pair of ( ) printed in mono; checked prints a glowing phosphor dot between them. */

@scope ([data-theme="tech"]) to ([data-theme]:not([data-theme="tech"])) {
  .nbc-radio__box {
    --_paren: var(--nbc-fg-muted);

    inline-size: calc(var(--_box) * 1.5);
    background: transparent;
    border-color: transparent;
    border-radius: var(--nbc-radius-control);
    box-shadow: none;
  }

  .nbc-radio__control {
    border-radius: var(--nbc-radius-control);
  }

  /* Brackets are decorative: alt-text syntax keeps them out of accessible names. */

  .nbc-radio__box::before,
  .nbc-radio__box::after {
    position: absolute;
    inset-block: 0;
    display: grid;
    place-items: center;
    inline-size: 0.6em;
    font-family: var(--nbc-font-mono);
    font-size: calc(var(--_box) * 0.8);
    line-height: 1;
    color: var(--_paren);
    pointer-events: none;
    transition: color var(--nbc-duration) var(--nbc-ease);
  }

  .nbc-radio__box::before {
    content: '(' / '';
    inset-inline-start: 1px;
  }

  .nbc-radio__box::after {
    content: ')' / '';
    inset-inline-end: 1px;
  }

  .nbc-radio__box:has(.nbc-radio__control:checked) {
    --_paren: var(--nbc-primary);
  }

  /* Invalid speaks through the brackets, not an outer ring. Declared after
     the checked rule at equal specificity so it wins. */

  .nbc-radio-group--invalid .nbc-radio__box:has(.nbc-radio__control) {
    --_paren: var(--nbc-danger);
  }

  .nbc-radio__dot {
    inline-size: calc(var(--_box) * 0.4);
    block-size: calc(var(--_box) * 0.4);
    background: var(--nbc-primary);
    box-shadow: 0 0 8px color-mix(in srgb, var(--nbc-primary) 70%, transparent);
  }

  @media (hover: hover) {
    .nbc-radio:not(.nbc-radio--disabled) .nbc-radio__box:has(.nbc-radio__control:not(:checked)):hover,
    .nbc-radio:not(.nbc-radio--disabled):has(.nbc-radio__label:hover)
      .nbc-radio__box:has(.nbc-radio__control:not(:checked)) {
      background: color-mix(in srgb, var(--nbc-primary) 18%, transparent);
    }
  }

  /* The legend gets the same blinking caret as every other field label. */

  .nbc-radio-group__label::after {
    content: '_' / '';
    margin-inline-start: 0.3em;
    color: var(--nbc-primary);
    animation: nbc-tech-radio-caret 1s steps(2, jump-none) infinite;
  }

  @media (forced-colors: active) {
    .nbc-radio__dot {
      background: Highlight;
      box-shadow: none;
    }
  }
}

@keyframes nbc-tech-radio-caret {
  50% {
    opacity: 0;
  }
}
}

/* Badge.css */
@layer nbc.flourish {
/* Tech: a status line, not a pill. Outlined in the status color, a solid
   block as the indicator, text stays phosphor-neutral for contrast. */

@scope ([data-theme="tech"]) to ([data-theme]:not([data-theme="tech"])) {
  .nbc-badge {
    --_status: var(--nbc-fg-muted);
    background: transparent;
    color: var(--nbc-fg);
    border-color: var(--_status);
  }

  .nbc-badge--primary {
    --_status: var(--nbc-primary);
  }

  .nbc-badge--accent {
    --_status: var(--nbc-accent);
  }

  .nbc-badge--info {
    --_status: var(--nbc-info);
  }

  .nbc-badge--success {
    --_status: var(--nbc-success);
  }

  .nbc-badge--warning {
    --_status: var(--nbc-warning);
  }

  .nbc-badge--danger {
    --_status: var(--nbc-danger);
  }

  .nbc-badge::before {
    content: '';
    flex: none;
    inline-size: 0.55em;
    block-size: 0.55em;
    background: var(--_status);
  }

  @media (forced-colors: active) {
    .nbc-badge::before {
      background: CanvasText;
    }
  }
}
}

/* Switch.css */
@layer nbc.flourish {
/* Tech: a toggle on a control panel. The track prints OFF / ON in tiny mono caps beside the
   thumb, the thumb is a phosphor block that inverts to dark on the lit track, and it
   moves in discrete steps like a redraw. */

@scope ([data-theme="tech"]) to ([data-theme]:not([data-theme="tech"])) {
  .nbc-switch__thumb {
    background: var(--nbc-border-color);
    transition-timing-function: steps(4, jump-end);
  }

  .nbc-switch__control:checked ~ .nbc-switch__thumb {
    background: var(--nbc-primary-fg);
    border-color: var(--nbc-primary-fg);
  }

  /* The micro-label lives in the free half of the track, opposite the thumb. */

  .nbc-switch__track::before {
    content: 'OFF' / '';
    position: absolute;
    inset-block: 0;
    inset-inline-end: var(--_gap);
    display: flex;
    align-items: center;
    justify-content: center;
    inline-size: calc(var(--_w) - 2 * var(--nbc-border-width) - 2 * var(--_gap) - var(--_thumb));
    font-family: var(--nbc-font-mono);
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--nbc-fg-muted);
    pointer-events: none;
  }

  .nbc-switch--sm .nbc-switch__track::before {
    font-size: 7px;
  }

  .nbc-switch__track:has(.nbc-switch__control:checked)::before {
    content: 'ON' / '';
    inset-inline-end: auto;
    inset-inline-start: var(--_gap);
    color: var(--nbc-primary-fg);
  }

  @media (forced-colors: active) {
    .nbc-switch__thumb {
      background: ButtonText;
      border-color: ButtonText;
    }
    .nbc-switch__control:checked ~ .nbc-switch__thumb {
      background: HighlightText;
      border-color: HighlightText;
    }
    .nbc-switch__track::before {
      color: CanvasText;
    }
    .nbc-switch__track:has(.nbc-switch__control:checked)::before {
      color: HighlightText;
    }
  }
}
}

/* Alert.css */
@layer nbc.flourish {
/* Tech: every alert opens like a log line. A tiny inverted chip in the status
   color carries the level — [INFO], [OK], [WARN], [ERR] — before the title
   (or before the text when there is no title). The text stays in --nbc-fg. */

@scope ([data-theme="tech"]) to ([data-theme]:not([data-theme="tech"])) {
  .nbc-alert__title::before,
  .nbc-alert__body > .nbc-alert__description:first-child::before {
    content: '[LOG]' / '';
    display: inline-block;
    margin-inline-end: var(--nbc-space-sm);
    padding: 0 6px;
    font-family: var(--nbc-font-mono);
    font-size: var(--nbc-fs-xs);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.08em;
    vertical-align: 0.05em;
    color: var(--_c-fg);
    background: var(--_c);
    border-radius: var(--nbc-radius-small);
  }

  .nbc-alert--info .nbc-alert__title::before,
  .nbc-alert--info .nbc-alert__body > .nbc-alert__description:first-child::before {
    content: '[INFO]' / '';
  }

  .nbc-alert--success .nbc-alert__title::before,
  .nbc-alert--success .nbc-alert__body > .nbc-alert__description:first-child::before {
    content: '[OK]' / '';
  }

  .nbc-alert--warning .nbc-alert__title::before,
  .nbc-alert--warning .nbc-alert__body > .nbc-alert__description:first-child::before {
    content: '[WARN]' / '';
  }

  .nbc-alert--danger .nbc-alert__title::before,
  .nbc-alert--danger .nbc-alert__body > .nbc-alert__description:first-child::before {
    content: '[ERR]' / '';
  }

  .nbc-alert__title {
    font-size: var(--nbc-fs-sm);
  }
}
}

/* Progress.css */
@layer nbc.flourish {
/* Tech: a block-character gauge. Ten-pixel cells with 2px gaps — the track
   shows the empty cells, the bar fills them in, and it redraws in steps
   rather than sliding. The value reads like a log line: [42%]. */

@scope ([data-theme="tech"]) to ([data-theme]:not([data-theme="tech"])) {
  .nbc-progress__track {
    background:
      repeating-linear-gradient(90deg, color-mix(in srgb, var(--nbc-fg) 14%, transparent) 0 8px, transparent 8px 10px),
      var(--nbc-surface-alt);
  }

  .nbc-progress__bar {
    background: repeating-linear-gradient(90deg, var(--_bar) 0 8px, transparent 8px 10px);
    transition: inline-size var(--nbc-duration-slow) steps(10, jump-end);
  }

  .nbc-progress__bar::after {
    display: none;
  }

  .nbc-progress--indeterminate .nbc-progress__bar {
    animation-timing-function: steps(16, end);
  }

  .nbc-progress__label::before {
    content: '> ' / '';
    color: var(--nbc-fg-muted);
  }

  .nbc-progress__value {
    color: var(--nbc-fg);
  }

  .nbc-progress__value::before {
    content: '[' / '';
    color: var(--nbc-fg-muted);
  }

  .nbc-progress__value::after {
    content: ']' / '';
    color: var(--nbc-fg-muted);
  }

  @media (forced-colors: active) {
    .nbc-progress__bar {
      background: repeating-linear-gradient(90deg, Highlight 0 8px, transparent 8px 10px);
    }
  }
}
}

/* Table.css */
@layer nbc.flourish {
/* Tech: the header is an inverted status line, rows are separated by dashed
   rules, zeros are slashed, and the hovered row grows a prompt marker. */

@scope ([data-theme="tech"]) to ([data-theme]:not([data-theme="tech"])) {
  .nbc-table__head .nbc-table__header-cell {
    color: var(--nbc-primary-fg);
    background: var(--nbc-primary);
    border-block-end-color: var(--nbc-primary);
  }

  .nbc-table__cell,
  .nbc-table__header-cell[scope='row'] {
    border-block-end-style: dashed;
    border-block-end-color: color-mix(in srgb, var(--nbc-border-color) 45%, transparent);
  }

  .nbc-table__cell--numeric {
    font-variant-numeric: tabular-nums slashed-zero;
  }

  @media (hover: hover) {
    .nbc-table__body > .nbc-table__row:hover {
      background: color-mix(in srgb, var(--nbc-primary) 14%, var(--nbc-surface));
    }

    .nbc-table__body > .nbc-table__row:hover > :first-child {
      box-shadow: inset 2px 0 0 var(--nbc-primary);
    }
  }
}
}

/* Kbd.css */
@layer nbc.flourish {
/* Tech: an inverted key, like a selected terminal cell. */
@scope ([data-theme="tech"]) to ([data-theme]:not([data-theme="tech"])) {
  .nbc-kbd {
    background: var(--nbc-primary);
    color: var(--nbc-primary-fg);
    border-color: var(--nbc-primary);
    box-shadow: none;
  }
}
}

/* Dialog.css */
@layer nbc.flourish {
/* Tech: the dialog is a terminal window — path bar with dim dots, stepped enter. */
@scope ([data-theme="tech"]) to ([data-theme]:not([data-theme="tech"])) {
  .nbc-dialog {
    transition-timing-function: steps(4, end);
  }
  .nbc-dialog__header {
    background: color-mix(in srgb, var(--nbc-fg) 8%, var(--nbc-surface-alt));
    border-block-end: var(--nbc-border-width) var(--nbc-border-style) var(--nbc-border-color);
  }
  .nbc-dialog__header::before {
    content: '● ● ●  ~/dialog' / '';
    margin-block-end: var(--nbc-space-xs);
    font-family: var(--nbc-font-mono);
    font-size: var(--nbc-fs-xs);
    letter-spacing: 0.08em;
    color: var(--nbc-fg-muted);
  }
  .nbc-dialog__title::before {
    content: '$ ' / '';
    color: var(--nbc-primary);
  }
}
}

/* Tabs.css */
@layer nbc.flourish {
/* Tech: tabs are bracketed commands; the active one is inverted like a selection. */
@scope ([data-theme="tech"]) to ([data-theme]:not([data-theme="tech"])) {
  .nbc-tabs__tab {
    text-transform: lowercase;
    transition-timing-function: steps(2, jump-none);
  }
  .nbc-tabs__tab::before {
    content: '[ ' / '';
    opacity: 0.6;
  }
  .nbc-tabs__tab::after {
    content: ' ]' / '';
    opacity: 0.6;
  }
  .nbc-tabs__tab--active {
    background: var(--nbc-primary);
    color: var(--nbc-primary-fg);
    border-color: var(--nbc-primary);
    box-shadow: none;
  }
}
}

/* Tooltip.css */
@layer nbc.flourish {
/* Tech: a phosphor readout with a prompt, square corners. */
@scope ([data-theme="tech"]) to ([data-theme]:not([data-theme="tech"])) {
  .nbc-tooltip {
    color: var(--nbc-primary-fg);
    background: var(--nbc-primary);
    border-color: var(--nbc-primary);
    border-radius: 0;
    font-family: var(--nbc-font-mono);
    font-weight: 400;
  }
  .nbc-tooltip::before {
    content: '> ' / '';
  }
}
}
