:root {
--hi-radius-sm: var(--radius-sm, 4px); --hi-radius-md: var(--radius-md, 8px);
--hi-radius-lg: var(--radius-lg, 12px); --hi-radius-full: 9999px;
--hi-blur-sm: 8px; --hi-blur-md: 16px;
--hi-ease-out-expo: cubic-bezier(.16, 1, .3, 1);
--hi-z-modal: 1000; --hi-z-toast: 9999; --hi-z-tooltip: 10000;
--hi-scroll-size: 8px; --hi-scroll-thumb: 4px;
--hi-color-primary: rgb(var(--color-primary));
--hi-color-primary-glow: rgb(var(--color-primary) / 35%);
--hi-color-bg-container: rgb(var(--color-surface));
--hi-color-bg-elevated: rgb(var(--color-surface));
--hi-color-border: rgb(var(--color-border) / 40%);
--hi-surface: rgb(var(--color-surface));
--hi-border: rgb(var(--color-border) / 40%);
--hi-color-text-primary: rgb(var(--color-text));
--hi-color-text-secondary: rgb(var(--color-muted));
--hi-color-text-tertiary: rgb(var(--color-muted));
--hi-color-info: rgb(var(--color-primary));
--hi-color-success: rgb(var(--color-success));
--hi-color-warning: rgb(var(--color-warning));
--hi-color-danger: rgb(var(--color-error));
}
.hi-scroll-container { overflow: auto; scrollbar-width: none; }


.hk-code-highlight {
    background-color: var(--hi-color-bg-container, #ffffff);
    border: 1px solid var(--hi-color-border, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hk-code-highlight[data-framed="false"] {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.hk-code-highlight-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: var(--hi-color-bg-elevated, #f6f8fa);
    border-bottom: 1px solid var(--hi-color-border, #e2e8f0);
}

.hk-code-highlight-language {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hi-color-primary, #3b82f6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hk-code-highlight-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    background-color: transparent;
    border: 1px solid var(--hi-color-border, #e2e8f0);
    border-radius: var(--radius-sm, 4px);
    color: var(--hi-color-text-secondary, #64748b);
    cursor: pointer;
    transition: all 0.2s ease;
}

.hk-code-highlight-copy svg {
    display: block;
}

.hk-code-highlight-copy:hover {
    background-color: var(--hi-color-primary, #3b82f6);
    color: var(--hi-color-text-on-solid, #ffffff);
    border-color: var(--hi-color-primary, #3b82f6);
    box-shadow: 0 0 8px var(--hi-color-primary-glow, rgba(127, 127, 127, 0.35));
}

/* Icon-only copy buttons (host-composed face extensions; the component's
   own button is a text button and never swaps its face on copy). */
.hk-code-highlight-copy-icon {
    display: inline-flex;
}

/* Header slots (2026-11-28): the RIGHT cluster holds host actions plus this
   card's own copy control, in that order — so the card's control sits
   closest to the corner, the family's header-action convention. The LEFT
   cluster takes a host label plus any extra marks. */
.hk-code-highlight-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.hk-code-highlight-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hk-code-highlight-content {
    display: flex;
    background-color: var(--hi-color-bg-container, #ffffff);
}

.hk-code-highlight-line-numbers {
    flex-shrink: 0;
    padding: 1rem 0.5rem;
    background-color: var(--hi-color-bg-elevated, #f6f8fa);
    border-right: 1px solid var(--hi-color-border, #e2e8f0);
    text-align: right;
    user-select: none;
}

.hk-code-highlight-line-number {
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, 'DejaVu Sans Mono', 'Liberation Mono', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--hi-color-text-tertiary, #94a3b8);
}

/* margin: 0 — the UA `pre { margin-block: 1em }` otherwise pushes the code
   column half a line below the line-number gutter in the flex row.
   font metrics must also be pinned here, not only on `code`: the pre's own
   strut (inherited family/size/line-height, e.g. body sans at 1.65) both
   stretches every line box and shifts its baseline, drifting code away
   from the gutter numbers. */
.hk-code-highlight-code {
    flex: 1;
    margin: 0;
    padding: 1rem;
    overflow-x: auto;
    background-color: transparent;
    border: none;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, 'DejaVu Sans Mono', 'Liberation Mono', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.hk-code-highlight-code code {
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, 'DejaVu Sans Mono', 'Liberation Mono', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--hi-color-text-primary, #1f2328);
}

/* Syntax highlighting — palette-driven CSS variables.
   Each palette (TokyoNight, Catppuccin, Gruvbox, Nord, OneDark, GitHub Light)
   defines its own set of --code-syntax-* variables via [data-palette="..."].
   Users can override any variable or add custom palettes in their site CSS. */

/* Default palette: TokyoNight (applies when no data-palette is set) */
:root {
--code-syntax-comment:#565f89;--code-syntax-string:#9ece6a;--code-syntax-keyword:#bb9af7;
--code-syntax-function:#7aa2f7;--code-syntax-type:#2ac3de;--code-syntax-constant:#ff9e64;
--code-syntax-operator:#89ddff;--code-syntax-punctuation:#c0caf5;--code-syntax-tag:#f7768e;
--code-syntax-attribute:#bb9af7;--code-syntax-number:#ff9e64;--code-syntax-regexp:#b4f9f8;
}

/* Palette definitions */
[data-palette="tokyonight"]{
--code-syntax-comment:#565f89;--code-syntax-string:#9ece6a;--code-syntax-keyword:#bb9af7;
--code-syntax-function:#7aa2f7;--code-syntax-type:#2ac3de;--code-syntax-constant:#ff9e64;
--code-syntax-operator:#89ddff;--code-syntax-punctuation:#c0caf5;--code-syntax-tag:#f7768e;
--code-syntax-attribute:#bb9af7;--code-syntax-number:#ff9e64;--code-syntax-regexp:#b4f9f8;
}
[data-palette="catppuccin"]{
--code-syntax-comment:#6c7086;--code-syntax-string:#a6e3a1;--code-syntax-keyword:#cba6f7;
--code-syntax-function:#89b4fa;--code-syntax-type:#89dceb;--code-syntax-constant:#fab387;
--code-syntax-operator:#94e2d5;--code-syntax-punctuation:#cdd6f4;--code-syntax-tag:#f38ba8;
--code-syntax-attribute:#cba6f7;--code-syntax-number:#fab387;--code-syntax-regexp:#f5c2e7;
}
[data-palette="gruvbox"]{
--code-syntax-comment:#928374;--code-syntax-string:#b8bb26;--code-syntax-keyword:#d3869b;
--code-syntax-function:#fabd2f;--code-syntax-type:#83a598;--code-syntax-constant:#fe8019;
--code-syntax-operator:#8ec07c;--code-syntax-punctuation:#ebdbb2;--code-syntax-tag:#fb4934;
--code-syntax-attribute:#d3869b;--code-syntax-number:#d3869b;--code-syntax-regexp:#fe8019;
}
[data-palette="nord"]{
--code-syntax-comment:#616e88;--code-syntax-string:#a3be8c;--code-syntax-keyword:#81a1c1;
--code-syntax-function:#88c0d0;--code-syntax-type:#8fbcbb;--code-syntax-constant:#d08770;
--code-syntax-operator:#81a1c1;--code-syntax-punctuation:#e5e9f0;--code-syntax-tag:#bf616a;
--code-syntax-attribute:#b48ead;--code-syntax-number:#b48ead;--code-syntax-regexp:#ebcb8b;
}
[data-palette="onedark"]{
--code-syntax-comment:#7f848e;--code-syntax-string:#98c379;--code-syntax-keyword:#c678dd;
--code-syntax-function:#61afef;--code-syntax-type:#56b6c2;--code-syntax-constant:#d19a66;
--code-syntax-operator:#56b6c2;--code-syntax-punctuation:#abb2bf;--code-syntax-tag:#e06c75;
--code-syntax-attribute:#d19a66;--code-syntax-number:#d19a66;--code-syntax-regexp:#98c379;
}
[data-palette="github-light"]{
--code-syntax-comment:#6a737d;--code-syntax-string:#032f62;--code-syntax-keyword:#d73a49;
--code-syntax-function:#6f42c1;--code-syntax-type:#22863a;--code-syntax-constant:#005cc5;
--code-syntax-operator:#d73a49;--code-syntax-punctuation:#24292e;--code-syntax-tag:#22863a;
--code-syntax-attribute:#6f42c1;--code-syntax-number:#005cc5;--code-syntax-regexp:#032f62;
}

/* Syntax token → CSS variable mapping.
   Works with both Prism.js (.token-*) and syntect (.comment, .keyword, etc.)
   token class names. */
.token-comment, .token-prolog, .token-doctype, .token-cdata,
.comment {
    color: var(--code-syntax-comment);
    font-style: italic;
}

.token-punctuation, .punctuation {
    color: var(--code-syntax-punctuation);
}

.token-property, .token-tag, .token.boolean, .token.number,
.token.constant, .token.symbol,
.tag, .number, .numeric, .constant {
    color: var(--code-syntax-constant);
}

.token-selector, .token.attr-name, .token.string, .token.char,
.token.builtin, .token.inserted,
.string {
    color: var(--code-syntax-string);
}

.token-operator, .token-entity, .token.url,
.language-css .token.string, .style .token.string,
.operator {
    color: var(--code-syntax-operator);
}

.token-atrule, .token.attr-value, .token.keyword,
.keyword, .storage, .annotation {
    color: var(--code-syntax-keyword);
}

.token-function, .token.class-name,
.function {
    color: var(--code-syntax-function);
}

.token-regex, .token.important, .token.variable,
.entity, .type {
    color: var(--code-syntax-type);
}

.token-attribute-name, .attribute-name, .property {
    color: var(--code-syntax-attribute);
}

.token-deleted {
    color: var(--code-syntax-tag);
}

.support, .meta, .variable {
    color: var(--code-syntax-function);
}

.label {
    color: var(--code-syntax-constant);
}

@charset "UTF-8";
.hk-icon-button {
  --hi-icon-button-icon-color: var(--hi-icon-color);
  --hi-icon-button-icon-color-active: var(--hi-icon-color);
  --hi-icon-button-icon-color-disabled: rgba(128, 128, 128, 0.5);
  --hi-icon-button-bg: transparent;
  --hi-icon-button-bg-active: var(--hi-bg-surface-dark);
  --hi-icon-button-bg-disabled: rgba(128, 128, 128, 0.1);
  --hi-icon-button-border-color-focus: var(--hi-border-color-focus);
  --hi-icon-button-radius: var(--radius-md, 8px);
  --hi-icon-button-duration: var(--hi-duration-fast);
  --hi-icon-button-easing: var(--hi-ease-default);
  --hi-icon-button-transition: background-color var(--hi-icon-button-duration) var(--hi-icon-button-easing);
  --hi-icon-button-size: 40px;
  --hi-icon-button-icon-size: var(--hi-icon-size-sm);
}

.hk-icon-button-16 {
  --hi-icon-button-size: 16px;
  --hi-icon-button-icon-size: var(--hi-icon-size-xs);
}

.hk-icon-button-24 {
  --hi-icon-button-size: 24px;
  --hi-icon-button-icon-size: var(--hi-icon-size-xs);
}

.hk-icon-button-28 {
  --hi-icon-button-size: 28px;
  /* The narrow header-chrome step carries the sm glyph (16px): its
 * consumers are header clusters whose visual sibling is a compact
 * trigger (one 28px box with a direct 16px lucide glyph). The xs
 * mapping (12px) rendered those glyphs visibly smaller than the glyphs
 * beside them (user report 2026-09-29: 不像一个尺寸的图标按钮) — the
 * `.svg` rule in HkIconButton.scss forces ANY slotted glyph to this
 * var, so the slot's size-16 attribute never reached the screen. The
 * wide-rung sibling is the 32px block below (the 2026-10-24 chrome
 * ladder; useChromeActionSize picks the rung). */
  --hi-icon-button-icon-size: var(--hi-icon-size-sm);
}

.hk-icon-button-32 {
  --hi-icon-button-size: 32px;
  --hi-icon-button-icon-size: var(--hi-icon-size-sm);
}

.hk-icon-button-36 {
  --hi-icon-button-size: 36px;
  --hi-icon-button-icon-size: var(--hi-icon-size-sm);
}

.hk-icon-button-40 {
  --hi-icon-button-size: 40px;
  --hi-icon-button-icon-size: var(--hi-icon-size-sm);
}

.hk-icon-button-ghost,
.hk-icon-button-borderless {
  --hi-icon-button-icon-color: var(--hi-color-text-secondary);
  --hi-icon-button-icon-color-active: var(--hi-color-text-secondary);
  --hi-icon-button-bg-active: var(--hi-color-gray-20, rgba(128, 128, 128, 0.2));
}

.hk-icon-button-primary {
  /* An icon on a solid brand fill follows the theme-configurable icon
   color, like the switch thumb / checkbox tick (NOT the luminance-
   computed --hi-color-text-on-primary, which flips near-black on
   bright primaries). */
  --hi-icon-button-icon-color: rgb(var(--color-on-solid-icon, 255 255 255));
  --hi-icon-button-icon-color-active: rgb(var(--color-on-solid-icon, 255 255 255));
  --hi-icon-button-bg: var(--hi-color-primary);
  --hi-icon-button-bg-active: var(--hi-color-primary-dark);
  --hi-icon-button-border-color-focus: var(--hi-color-primary);
}

.hk-icon-button-secondary {
  --hi-icon-button-icon-color: var(--hi-color-text-on-secondary);
  --hi-icon-button-icon-color-active: var(--hi-color-text-on-secondary);
  --hi-icon-button-bg: var(--hi-color-secondary);
  --hi-icon-button-bg-active: var(--hi-color-secondary-dark);
  --hi-icon-button-border-color-focus: var(--hi-color-secondary);
}

.hk-icon-button-danger {
  --hi-icon-button-icon-color: var(--hi-color-text-on-danger, #ffffff);
  --hi-icon-button-icon-color-active: var(--hi-color-text-on-danger, #ffffff);
  --hi-icon-button-bg: var(--hi-color-danger);
  --hi-icon-button-bg-active: var(--hi-color-danger-dark);
  --hi-icon-button-border-color-focus: var(--hi-color-danger);
}

.hk-icon-button-success {
  --hi-icon-button-icon-color: var(--hi-color-text-on-success, #ffffff);
  --hi-icon-button-icon-color-active: var(--hi-color-text-on-success, #ffffff);
  --hi-icon-button-bg: var(--hi-color-success);
  --hi-icon-button-bg-active: var(--hi-color-success-dark);
  --hi-icon-button-border-color-focus: var(--hi-color-success);
}

.hk-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  padding: 0;
  line-height: 0;
  width: var(--hi-icon-button-size);
  height: var(--hi-icon-button-size);
  min-width: var(--hi-icon-button-size);
  max-width: var(--hi-icon-button-size);
  min-height: var(--hi-icon-button-size);
  max-height: var(--hi-icon-button-size);
  overflow: visible;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: var(--hi-icon-button-bg);
  border: none;
  border-radius: var(--hi-icon-button-radius);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--hi-icon-button-icon-color);
  transition: var(--hi-icon-button-transition);
  cursor: pointer;
}
.hk-icon-button:focus-visible {
  outline: 2px solid var(--hi-icon-button-border-color-focus);
  outline-offset: 2px;
}
.hk-icon-button:disabled {
  background: var(--hi-icon-button-bg-disabled);
  cursor: not-allowed;
  pointer-events: none;
}
.hk-icon-button:where(:hover:not(:disabled):not(:active)) {
  background: var(--hi-icon-button-bg-hover, var(--hi-icon-button-bg-active));
}
.hk-icon-button:where(:active:not(:disabled)) {
  background: var(--hi-icon-button-bg-active);
}
.hk-icon-button .hk-icon-button-icon {
  width: var(--hi-icon-button-icon-size);
  height: var(--hi-icon-button-icon-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: var(--hi-icon-button-icon-color);
}
.hk-icon-button .hk-icon-button-icon svg {
  width: var(--hi-icon-button-icon-size);
  height: var(--hi-icon-button-icon-size);
  display: block;
}
.hk-icon-button .hk-icon-button-icon .hk-icon {
  transform: scale(var(--hk-func-icon-scale, 1));
}
.hk-icon-button:active:not(:disabled) .hk-icon-button-icon {
  color: var(--hi-icon-button-icon-color-active);
}
.hk-icon-button:disabled .hk-icon-button-icon {
  color: var(--hi-icon-button-icon-color-disabled);
}

@media (prefers-reduced-motion: reduce) {
  .hk-icon-button {
    transition: none;
  }
}
/* The mark lives INSIDE the button's own box (bottom-right inset), not
 * straddling a wrapper corner: on a borderless ghost trigger inside a
 * centered flex row, the corner-straddling badge read as a stray dot
 * floating below the glyph (2026-10-28 user report). Tone channels come
 * from HkCornerBadge's variant classes (one badge grammar); the surface
 * ring keeps the dot legible on any button fill. */
.hk-icon-button-dot {
  position: absolute;
  right: var(--hk-icon-button-dot-inset, 2px);
  bottom: var(--hk-icon-button-dot-inset, 2px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hk-badge-bg, rgb(var(--color-success)));
  box-shadow: 0 0 0 1.5px rgb(var(--color-surface)/85%);
  pointer-events: none;
}

/* CSS generation failed: Error: Can't find stylesheet to import.
  ╷
2 │ @use 'variables' as vars;
  │ ^^^^^^^^^^^^^^^^^^^^^^^^
  ╵
.//home/lab/.cargo/registry/src/rsproxy.cn-e3de039b2554c837/hikari-components-0.6.5/src/styles/components/link.scss:2:1
 */
@charset "UTF-8";
/* HkTabs — THE unified button-group / tab-strip primitive.
 *
 * ONE look (the centered pill strip of the page-level top/bottom bars)
 * is shared by every button group, radio group and tab strip. Variants
 * only switch the working mode (pill = tablist, segmented = radiogroup)
 * and layout extras (block) — never the visual language. */
.hk-tabs {
  width: 100%;
}

/* === Scrollable (default) + protruding end actions shrink-wrap === */
/* The scroller (a horizontal HkScrollContainer) bounds the list: it
   sizes to the content up to the available width, then the list
   scrolls inside with safe centering. min-width: 0 lets the whole
   chain shrink inside constrained flex parents (status bars, header
   centres). With an end action the same shrink-wrap lets the
   hover-reveal chain cap inside constrained flex parents (the two
   attributes co-occur — scrollable defaults on — and the declarations
   are identical, so one rule serves both). */
.hk-tabs[data-scrollable],
.hk-tabs[data-actions] {
  width: auto;
  max-width: 100%;
  min-width: 0;
}

.hk-tabs-scroller {
  width: 100%;
}

/* === Protruding end actions (startAction / endAction) === */
/* The strip sits inside an HkHoverRevealAction host and the button
   protrudes at the host's edge (left:100% / right:100% in
   HkHoverRevealAction.scss) — outside the scroll viewport, so it never
   scrolls away. The reveal host itself must be able to shrink below its
   content and must not be clipped by rigid parents — mirrors
   HkHoverRevealAction's own min/max rules; no flex shorthand here, the
   host's natural shrink-wrap keeps the centered-bar geometry. */
.hk-tabs-addwrap {
  min-width: 0;
  max-width: 100%;
}

/* === The one shared track (every variant) === */
.hk-tabs-list {
  position: relative;
  display: inline-flex;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-faint);
  background: var(--hi-color-bg-subtle);
}

/* === The one shared trigger (every variant) === */
.hk-tabs-trigger {
  position: relative;
  /* Paint above the sliding indicator. */
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex: none;
  padding: var(--space-4) var(--space-12);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgb(var(--color-muted));
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  transition: color var(--duration-short) ease, transform var(--duration-short) ease;
  /* A real <button disabled> (tsx) still matches :hover, so a dead tab
   must be guarded explicitly. House muted state (HkButton). */
  /* Tactile press feedback — every button-group click animates, even
   before the sliding indicator arrives. */
  /* Inset ring: the track padding and the scroller's edge-fade mask
   would clip an outset outline. */
}
.hk-tabs-trigger:hover:not([data-disabled]) {
  color: rgb(var(--color-text));
}
.hk-tabs-trigger[data-disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.hk-tabs-trigger:active:not([data-disabled]) {
  transform: scale(0.96);
}
.hk-tabs-trigger[data-active] {
  color: rgb(var(--color-primary));
}
.hk-tabs-trigger:focus-visible {
  outline: 2px solid rgb(var(--color-primary));
  outline-offset: -2px;
}

.hk-tabs-trigger-icon {
  display: inline-flex;
  align-items: center;
}

/* === Option cell (attached trigger actions, 2026-11-19) ===
 * An option carrying `actions` renders its trigger INSIDE a cell
 * wrapper — the action buttons are siblings of the trigger (a button
 * cannot nest a button). The cell is the track child: it carries the
 * slot-unit weight, joins the swap transitions, and is the element the
 * sliding indicator frames (the cell is the trigger's positioned
 * ancestor, so the button's own offsets would be cell-relative and
 * break the indicator math — activeFrameEl measures the cell instead;
 * their geometry is equal because the trigger fills the cell). */
.hk-tabs-cell {
  position: relative;
  /* Same layer as the triggers, above the sliding indicator. */
  z-index: 1;
  display: inline-flex;
  align-items: center;
  flex: none;
}

.hk-tabs-cell > .hk-supplement-inset {
  /* The inset fills the cell and owns the reveal: at rest its supplement
   takes no space, so the option's own content stays exactly centred (a
   reserved lane here was what pushed the auto option off-centre). */
  width: 100%;
}
.hk-tabs-cell > .hk-supplement-inset .hk-supplement-inset-supplement-inner {
  /* Trailing inset inside the collapsing column (so it, too, occupies
   nothing at rest): the cell has no padding of its own and the
   sliding indicator frames the CELL — without a trailing inset the
   revealed action's 20px hit area lands flush on the segment edge
   and the dots glyph hugs the boundary (user report). Matches the
   trigger's own inline padding (var(--space-12)) so the revealed
   action reads as sitting inside the option, same as the label. */
  padding-inline-end: var(--space-12);
}

.hk-supplement-inset-main > .hk-tabs-trigger {
  /* Fill the main region so the option's own content shifts left when the
   supplement opens (the push); in a shrink-to-fit inline strip the
   percentage resolves to the content size, so nothing changes there. */
  width: 100%;
}

/* block (row-filling) strips: the cell takes the growth its trigger
   rule would have had (the descendant trigger rules keep matching, but
   the growth must land on the cell). */
.hk-tabs-list[data-variant=segmented][data-block=true] > .hk-tabs-cell {
  flex: 1 1 auto;
}

.hk-tabs-scroller .hk-tabs-list[data-variant=segmented][data-block=true] > .hk-tabs-cell {
  flex: 1 0 auto;
}

/* The supplement inset lives in the cell; its action buttons keep the
   ghost-square grammar below (position-independent). */
.hk-tabs-trigger-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgb(var(--color-muted));
  cursor: pointer;
  outline: none;
  transition: color var(--duration-short) ease, background-color var(--duration-short) ease;
}
.hk-tabs-trigger-action:hover:not([disabled]) {
  color: rgb(var(--color-text));
  background: rgb(var(--color-primary)/8%);
}
.hk-tabs-trigger-action:focus-visible {
  outline: 2px solid rgb(var(--color-primary));
  outline-offset: -2px;
}
.hk-tabs-trigger-action[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* === The one shared sliding indicator (every variant) ===
 * Starts transparent: the first measured frame only fades it in (no
 * pop-in from a stale corner), later frames slide via left/width. */
.hk-tabs-indicator {
  position: absolute;
  top: var(--space-2);
  height: calc(100% - var(--space-4));
  border-radius: var(--radius-sm);
  background: rgb(var(--color-primary)/12%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: left var(--duration-normal) var(--ease-standard), width var(--duration-normal) var(--ease-standard), opacity var(--duration-short) ease;
}

.hk-tabs-indicator[data-ready] {
  opacity: 1;
}

/* === Option swap transitions (dynamic options / merged cell) ===
 * Entering options/cells fade and settle in; leaving ones fade out
 * absolutely so siblings reflow at once. Geometry motion belongs to
 * the sliding indicator, so there is deliberately no move FLIP. */
.hk-tabs-swap-enter-active,
.hk-tabs-swap-leave-active {
  transition: opacity var(--duration-short) ease, transform var(--duration-short) ease;
}

.hk-tabs-swap-enter-from {
  opacity: 0;
  transform: scale(0.96);
}

.hk-tabs-swap-leave-to {
  opacity: 0;
}

/* Child-selector form, NOT the bare `.hk-tabs-swap-leave-active`: the
   leaving element may be a trigger or the merged cell whose own rules
   (`.hk-tabs-trigger` / `.hk-tabs-merged`, position:relative) share the
   same one-class specificity and could win by source order — the
   two-class selector lifts the ghost to absolute regardless of order. */
.hk-tabs-list > .hk-tabs-swap-leave-active {
  position: absolute;
  z-index: 0;
}

/* === Panel (pill / tablist mode) === */
/* The panel area is ONE HkTransitionContainer (`.hk-tabs-panels`,
   aliasing `.hk-tc`) keyed on the active tab: HkCrossfade dissolves the
   outgoing panel in a shared grid cell while the container's inline
   height transition morphs to the incoming panel's natural size. Both
   generations carry data-active through the dissolve, so the :not rule
   below only ever hides a genuinely inactive render, never a
   dissolving one. */
.hk-tabs-panel {
  /* No outline suppression: the panel div carries no tabindex and can
   never take focus, so there is nothing to suppress. */
}
.hk-tabs-panel:not([data-active]) {
  display: none;
}

/* === segmented = radiogroup working mode ===
 * Same chrome; only the form-row layout extra lives here:
 * row-filling (block). */
/* block outside the scroller (scrollable opted out): legacy fill —
   triggers may shrink below their content. */
.hk-tabs-list[data-variant=segmented][data-block=true] {
  display: flex;
  width: 100%;
}

.hk-tabs-list[data-variant=segmented][data-block=true] .hk-tabs-trigger {
  flex: 1 1 auto;
}

/* block inside the scroller (the default): fill the row while it fits,
   scroll with edge fades when it doesn't — triggers never shrink below
   their content, so option labels are never clipped. */
.hk-tabs-scroller .hk-tabs-list[data-variant=segmented][data-block=true] {
  width: max-content;
  min-width: 100%;
}

.hk-tabs-scroller .hk-tabs-list[data-variant=segmented][data-block=true] .hk-tabs-trigger {
  flex: 1 0 auto;
}

/* === Merged cell (dynamic merged-option rendering) ===
 * The contiguous run of options listed in `mergeKeys` collapses into ONE
 * combined cell (the #merged slot) — a REAL in-flow child of the track
 * (a grid item on slot-unit strips, see the distribution rules below),
 * not an absolute cover: it joins layout and the animation context
 * (hk-tabs-swap enter/leave + the sliding indicator measures it when
 * the active option is merged). Chrome follows the unselected-option
 * grammar: NAKED — no border, no own surface; only the sliding
 * indicator ever frames the active option, so a merged cell must never
 * grow a box of its own. Interactive slot content (e.g. the theme
 * toggle's altitude strip) fills the cell and owns its hover/press. */
.hk-tabs-merged {
  position: relative;
  /* Same layer as the triggers, above the sliding indicator. */
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 0;
  color: rgb(var(--color-muted));
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
}

/* Whole-strip disabled mutes the cell's interactive slot content too —
   the triggers get the native disabled attribute, the cell gets this. */
.hk-tabs-merged[data-disabled] {
  pointer-events: none;
}

/* block (row-filling) strips: the merged cell shares the triggers'
   flex growth so it lands on the merged run's share of the row. */
.hk-tabs-list[data-variant=segmented][data-block=true] .hk-tabs-merged {
  flex: 1 1 auto;
}

.hk-tabs-scroller .hk-tabs-list[data-variant=segmented][data-block=true] .hk-tabs-merged {
  flex: 1 0 auto;
}

/* === Slot-unit distribution (block strips carrying data-slots) ===
 * A merged cell always spans its run's option count and TabItem.span
 * may weight any trigger; the row is then divided into one equal 1fr
 * track per unit, NOT by content. This is what makes dynamic merging
 * width-stable: the theme toggle's altitude strip replaces the
 * Light+Dark pair and occupies EXACTLY the two one-unit tracks those
 * triggers owned, so toggling auto ↔ manual never re-measures any
 * cell — the strip neither narrows (desktop content-size case) nor
 * re-divides (mobile block case, thirds stay thirds).
 *
 * The division is a GRID because flex-basis math cannot give padded
 * items exact equal units: a zero flex basis still leaves each item's
 * own padding riding on its share (item = padding + share of the
 * remainder), so a 12px-padded trigger consistently stole ~8-16px from
 * its neighbors. Grid `1fr` tracks are exact regardless of item
 * padding, borders or content, in both the definite-width and the
 * `width: max-content; min-width: 100%` intrinsic contexts.
 *
 * `minmax(min-content, 1fr)` keeps the never-clip contract: when the
 * row runs tight a track floors at its content and the max-content
 * list scrolls instead; the cell's flex-era `min-width: 0` is reset to
 * `auto` so its content keeps counting toward its track's floor. The
 * sliding indicator (absolute, positioned from JS measurements) and
 * the swap transition's absolute leaving items are untouched by the
 * display switch. Keep this AFTER the rules it overrides
 * (equal-or-higher specificity + source order). */
.hk-tabs-list[data-variant=segmented][data-block=true][data-slots] {
  display: grid;
  grid-template-columns: repeat(var(--hk-tabs-units, 1), minmax(min-content, 1fr));
}

.hk-tabs-list[data-variant=segmented][data-block=true][data-slots] > .hk-tabs-trigger,
.hk-tabs-scroller .hk-tabs-list[data-variant=segmented][data-block=true][data-slots] > .hk-tabs-trigger,
.hk-tabs-list[data-variant=segmented][data-block=true][data-slots] > .hk-tabs-cell,
.hk-tabs-scroller .hk-tabs-list[data-variant=segmented][data-block=true][data-slots] > .hk-tabs-cell,
.hk-tabs-list[data-variant=segmented][data-block=true][data-slots] > .hk-tabs-merged,
.hk-tabs-scroller .hk-tabs-list[data-variant=segmented][data-block=true][data-slots] > .hk-tabs-merged {
  grid-column: span var(--hk-tabs-span, 1)/span var(--hk-tabs-span, 1);
  min-width: auto;
}

/* === Reduced motion ===
 * The indicator slide, the trigger press scale and the swap enter/leave
 * are pure motion; reduced-motion users get the instant end states
 * (house pattern: HkExpansionPanel / HkAffixPicker / HkTagInput). */
@media (prefers-reduced-motion: reduce) {
  .hk-tabs-trigger,
.hk-tabs-indicator,
.hk-supplement-inset-supplement,
.hk-tabs-swap-enter-active,
.hk-tabs-swap-leave-active {
    transition: none;
  }
}

@charset "UTF-8";
/* HkSpinner — pure-CSS infinite spinner. */
.hk-spinner-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  /* Transient loading status, not content: selecting it mid-drag
   produces accidental clipboard noise. Covers circle and text. */
  -webkit-user-select: none;
  user-select: none;
}

/* center — the shared loading-state placement contract: the spinner is
   centered on BOTH axes relative to whatever panel/page/modal container
   it is dropped into. The wrapper stretches to fill flexible parents and
   carries a min-height floor, so even auto-height block parents place
   the circle mid-panel instead of pinning it against the top edge (or,
   uncentered, top-left). Column layout stacks spinner above optional
   text; `gap` then spaces them vertically. Per-site geometry can be
   tuned with --hk-loading-min-height (or the minHeight prop). */
.hk-spinner-centered {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  /* Block-formatting parents have no flex distribution: height:100%
   claims their definite height directly (flex parents instead satisfy
   it via stretch/grow below), while auto-height parents treat it as
   auto and fall back to the min-height floor. */
  height: 100%;
  box-sizing: border-box;
  align-self: stretch;
  /* grow + shrink: min-height floors the box, so shrinking cannot go
   below the floor, and growing fills leftover space — avoiding a
   rigid-sibling overflow trap in tight flex rows. */
  flex: 1 1 auto;
  /* Predictable mid-panel presence on every viewport: a fixed floor,
   not fluid scaling (fluid values hit their cap on all realistic
   heights and balloon compact drawer/modal loading strips). Sites
   wanting more presence tune --hk-loading-min-height locally. */
  min-height: var(--hk-loading-min-height, 8rem);
  padding: var(--space-24) var(--space-16);
}

.hk-spinner {
  border: 2px solid rgb(var(--color-border)/20%);
  border-top-color: rgb(var(--color-primary));
  border-radius: 50%;
  animation: hk-spinner-rotate 0.7s linear infinite;
}

/* tone="current" — same shape/duration as the default, but colored with
   currentcolor so the spinner matches surrounding text (e.g. inside a
   colored HkButton). Track = faded currentcolor, arc = full currentcolor. */
.hk-spinner-current {
  border-color: color-mix(in srgb, currentcolor 30%, transparent);
  border-top-color: currentcolor;
}

.hk-spinner-xs {
  width: 12px;
  height: 12px;
  border-width: 1.5px;
}

.hk-spinner-sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.hk-spinner-md {
  width: 24px;
  height: 24px;
  border-width: 3px;
}

.hk-spinner-lg {
  width: 36px;
  height: 36px;
  border-width: 3px;
}

.hk-spinner-xl {
  width: 48px;
  height: 48px;
  border-width: 4px;
}

.hk-spinner-text {
  font-size: var(--text-base);
  color: color-mix(in srgb, rgb(var(--color-muted)) 70%, rgb(var(--color-background)));
  /* Transient status, not content: selecting it mid-drag produces
   accidental clipboard noise. (The wrapper already covers the circle.) */
  -webkit-user-select: none;
  user-select: none;
}

@keyframes hk-spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hk-spinner {
    animation: none;
  }
}


.hk-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    border-radius: var(--radius-sm, 4px);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

/* Status families ride the theme palette channels (2026-10-19 color
 * audit: these were a hardcoded tailwind-style palette — success/warning/
 * danger/info never followed a themed palette). info maps to the accent
 * slot, matching focus-brightness/glow's own info treatment. The color-mix
 * alphas keep the original visuals; fallbacks keep themeless rendering. */
.hk-tag-default {
    background-color: color-mix(in srgb, var(--hi-text-secondary, #6b7280) 10%, transparent);
    color: var(--hi-color-text-primary);
    border-color: color-mix(in srgb, var(--hi-text-secondary, #6b7280) 20%, transparent);
}

.hk-tag-default:hover {
    background-color: color-mix(in srgb, var(--hi-text-secondary, #6b7280) 20%, transparent);
}

.hk-tag-primary {
    background-color: color-mix(in srgb, var(--hi-color-primary, #3b82f6) 10%, transparent);
    color: var(--hi-color-primary);
    border-color: color-mix(in srgb, var(--hi-color-primary, #3b82f6) 30%, transparent);
}

.hk-tag-primary:hover {
    background-color: color-mix(in srgb, var(--hi-color-primary, #3b82f6) 20%, transparent);
    box-shadow: 0 0 8px color-mix(in srgb, var(--hi-color-primary, #3b82f6) 30%, transparent);
}

.hk-tag-success {
    background-color: color-mix(in srgb, var(--hi-success, #1f6530) 10%, transparent);
    color: var(--hi-success-fg, #1f6530);
    border-color: color-mix(in srgb, var(--hi-success, #1f6530) 30%, transparent);
}

.hk-tag-success:hover {
    background-color: color-mix(in srgb, var(--hi-success, #1f6530) 20%, transparent);
    box-shadow: 0 0 8px color-mix(in srgb, var(--hi-success, #1f6530) 30%, transparent);
}

.hk-tag-warning {
    background-color: color-mix(in srgb, var(--hi-warning, #894800) 10%, transparent);
    color: var(--hi-warning-fg, #894800);
    border-color: color-mix(in srgb, var(--hi-warning, #894800) 30%, transparent);
}

.hk-tag-warning:hover {
    background-color: color-mix(in srgb, var(--hi-warning, #894800) 20%, transparent);
    box-shadow: 0 0 8px color-mix(in srgb, var(--hi-warning, #894800) 30%, transparent);
}

.hk-tag-danger {
    background-color: color-mix(in srgb, var(--hi-danger, #a62937) 10%, transparent);
    color: var(--hi-danger-fg, #a62937);
    border-color: color-mix(in srgb, var(--hi-danger, #a62937) 30%, transparent);
}

.hk-tag-danger:hover {
    background-color: color-mix(in srgb, var(--hi-danger, #a62937) 20%, transparent);
    box-shadow: 0 0 8px color-mix(in srgb, var(--hi-danger, #a62937) 30%, transparent);
}

.hk-tag-info {
    background-color: color-mix(in srgb, var(--hi-info, #006274) 10%, transparent);
    color: var(--hi-info-fg, #006274);
    border-color: color-mix(in srgb, var(--hi-info, #006274) 30%, transparent);
}

.hk-tag-info:hover {
    background-color: color-mix(in srgb, var(--hi-info, #006274) 20%, transparent);
    box-shadow: 0 0 8px color-mix(in srgb, var(--hi-info, #006274) 30%, transparent);
}

.hk-tag-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 4px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.hk-tag-close:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.1);
}
