/* Generated by build.mjs from the uikitten modules this app reaches.
   Do not edit: it is rewritten on every build. */
@layer uikitten.tokens, uikitten.base, uikitten.components;

@layer uikitten.tokens {
/* Design tokens. Override any of them on :root, or on one element, to theme.
 * Text scaling sets the root font-size (in %), so rem units follow the user's
 * text size; --uk-text-scale remains available as a local multiplier. */
:root {
  color-scheme: light;

  --uk-font: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --uk-font-mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --uk-text-scale: 1;
  --uk-text-base: calc(1rem * var(--uk-text-scale));
  --uk-text-small: calc(0.875rem * var(--uk-text-scale));
  --uk-text-large: calc(1.25rem * var(--uk-text-scale));

  --uk-bg: #f6efdf;
  --uk-surface: #fffdf8;
  --uk-side: #efe6d2;
  --uk-inset: #efe7d6;
  --uk-border: #d9cfbd;
  --uk-fg: #2b2418;
  --uk-muted: #6e6049;
  --uk-accent: #1f5f8b;
  --uk-success: #4f7a3a;
  --uk-danger: #a33a2a;
  --uk-warn: #855f00;
  --uk-gold: #855f00;
  --uk-success-fill: var(--uk-success);
  --uk-danger-fill: var(--uk-danger);
  --uk-warn-fill: var(--uk-warn);
  --uk-control: #eae0cc;
  --uk-glow: #1f5f8b;
  --uk-glow-strength: 0.6;
  --uk-shadow-1: 0 1px 2px rgb(43 36 24 / 0.08);
  --uk-shadow-2: 0 4px 12px rgb(43 36 24 / 0.12);
  --uk-shadow-3: 0 12px 32px rgb(43 36 24 / 0.18);

  --uk-gap-1: 4px;
  --uk-gap-2: 8px;
  --uk-gap-3: 12px;
  --uk-gap-4: 20px;
  --uk-radius: 6px;
  --uk-chip-padding: 2px;
}

:root[data-density='compact'] {
  --uk-gap-1: 2px;
  --uk-gap-2: 4px;
  --uk-gap-3: 8px;
  --uk-gap-4: 12px;
  --uk-chip-padding: 1px;
}

:root[data-density='spacious'] {
  --uk-gap-1: 6px;
  --uk-gap-2: 12px;
  --uk-gap-3: 18px;
  --uk-gap-4: 28px;
  --uk-chip-padding: 4px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]),
  :root[data-theme='system'] {
    color-scheme: dark;
    --uk-bg: #1d1913;
    --uk-surface: #29231a;
    --uk-side: #221d16;
    --uk-inset: #17130e;
    --uk-border: #4a4032;
    --uk-fg: #efe6d2;
    --uk-muted: #b3a68c;
    --uk-accent: #6fa8d6;
    --uk-success: #8fbf72;
    --uk-danger: #e07a68;
    --uk-warn: #e0b44a;
    --uk-gold: #e0b44a;
    --uk-control: #332b20;
    --uk-glow: #6fa8d6;
    --uk-glow-strength: 1;
    --uk-shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
    --uk-shadow-2: 0 4px 12px rgb(0 0 0 / 0.45);
    --uk-shadow-3: 0 12px 32px rgb(0 0 0 / 0.55);
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --uk-bg: #1d1913;
  --uk-surface: #29231a;
  --uk-side: #221d16;
  --uk-inset: #17130e;
  --uk-border: #4a4032;
  --uk-fg: #efe6d2;
  --uk-muted: #b3a68c;
  --uk-accent: #6fa8d6;
  --uk-success: #8fbf72;
  --uk-danger: #e07a68;
  --uk-warn: #e0b44a;
  --uk-gold: #e0b44a;
  --uk-control: #332b20;
  --uk-glow: #6fa8d6;
  --uk-glow-strength: 1;
  --uk-shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
  --uk-shadow-2: 0 4px 12px rgb(0 0 0 / 0.45);
  --uk-shadow-3: 0 12px 32px rgb(0 0 0 / 0.55);
}

:root[data-theme='retro-vector'] {
  color-scheme: dark;
  --uk-bg: #05070a;
  --uk-surface: #0a0f14;
  --uk-side: #070b10;
  --uk-inset: #03050a;
  --uk-border: #123044;
  --uk-fg: #66ffe6;
  --uk-muted: #2f8f88;
  --uk-accent: #ff2fb0;
  --uk-success: #39ff14;
  --uk-danger: #ff4b4b;
  --uk-warn: #ffe83b;
  --uk-gold: #ffe83b;
  --uk-control: #0e1620;
  --uk-glow: #66ffe6;
  --uk-glow-strength: 1.8;
  --uk-shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
  --uk-shadow-2: 0 4px 12px rgb(0 0 0 / 0.45);
  --uk-shadow-3: 0 12px 32px rgb(0 0 0 / 0.55);
}

:root[data-theme='cyber-goth'] {
  color-scheme: dark;
  --uk-bg: #000000;
  --uk-surface: #0a0a0a;
  --uk-side: #050505;
  --uk-inset: #000000;
  --uk-border: #1c1c1c;
  --uk-fg: #39ff14;
  --uk-muted: #248c15;
  --uk-accent: #e5484d;
  --uk-success: #39ff14;
  --uk-danger: #ff0033;
  --uk-warn: #b3ff00;
  --uk-gold: #b3ff00;
  --uk-control: #111111;
  --uk-glow: #39ff14;
  --uk-glow-strength: 1.6;
  --uk-shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
  --uk-shadow-2: 0 4px 12px rgb(0 0 0 / 0.45);
  --uk-shadow-3: 0 12px 32px rgb(0 0 0 / 0.55);
}

:root[data-theme='techno-mystic'] {
  color-scheme: dark;
  --uk-bg: #0f0a1e;
  --uk-surface: #171030;
  --uk-side: #120b26;
  --uk-inset: #0a0717;
  --uk-border: #2c2148;
  --uk-fg: #d9cef2;
  --uk-muted: #8578ab;
  --uk-accent: #b98bff;
  --uk-success: #4fd6b8;
  --uk-danger: #ff5c8a;
  --uk-warn: #e8b04b;
  --uk-gold: #e8b04b;
  --uk-control: #1e1640;
  --uk-glow: #b98bff;
  --uk-glow-strength: 1.3;
  --uk-shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
  --uk-shadow-2: 0 4px 12px rgb(0 0 0 / 0.45);
  --uk-shadow-3: 0 12px 32px rgb(0 0 0 / 0.55);
}

:root[data-theme='paper-maker'] {
  color-scheme: light;
  --uk-bg: #d6ecff;
  --uk-surface: #ffffff;
  --uk-side: #c2e2ff;
  --uk-inset: #f2f9ff;
  --uk-border: #a9cdef;
  --uk-fg: #2e3439;
  --uk-muted: #556371;
  --uk-accent: #185ad0;
  --uk-success: #2a6e34;
  --uk-danger: #a44500;
  --uk-warn: #7b5d00;
  --uk-gold: #7b5d00;
  --uk-success-fill: #3fa34d;
  --uk-danger-fill: #ff7a1a;
  --uk-warn-fill: #ffc512;
  --uk-control: #eaf3ff;
  --uk-glow: #185ad0;
  --uk-glow-strength: 0.5;
  --uk-shadow-1: 0 1px 2px rgb(16 24 40 / 0.08);
  --uk-shadow-2: 0 4px 12px rgb(16 24 40 / 0.12);
  --uk-shadow-3: 0 12px 32px rgb(16 24 40 / 0.18);
}

}

@layer uikitten.base {
body {
  margin: 0;
  font-family: var(--uk-font);
  font-size: var(--uk-text-base);
  color: var(--uk-fg);
  background: var(--uk-bg);
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

code,
pre {
  font-family: var(--uk-font-mono);
}

[hidden] {
  display: none !important;
}

}

/* adl-ui/adl-field.css */
@layer uikitten.components {
/* <uk-adl-field>: ADL field editor & searchable tier-grouped type picker (#487). */

uk-adl-field {
  display: block;
  font-family: var(--uk-font);
  font-size: var(--uk-text-base);
  color: var(--uk-fg);
}

uk-adl-field .uk-adl-field-root {
  display: grid;
  gap: var(--uk-gap-3);
  padding: var(--uk-gap-3);
  background: var(--uk-surface);
  border: 1px solid var(--uk-border);
  border-radius: var(--uk-radius);
}

uk-adl-field .uk-adl-field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: var(--uk-gap-2);
  align-items: end;
}

uk-adl-field .uk-adl-field-control {
  display: grid;
  gap: var(--uk-gap-1);
}

uk-adl-field .uk-adl-field-label {
  font-size: var(--uk-text-small);
  font-weight: 600;
  color: var(--uk-fg);
}

uk-adl-field .uk-adl-field-input,
uk-adl-field .uk-adl-field-type-trigger {
  font: inherit;
  font-size: var(--uk-text-base);
  color: var(--uk-fg);
  background: var(--uk-inset);
  border: 1px solid var(--uk-border);
  border-radius: var(--uk-radius);
  padding: var(--uk-gap-1) var(--uk-gap-2);
  min-block-size: 2.25rem;
}

uk-adl-field .uk-adl-field-name-input,
uk-adl-field .uk-adl-field-trigger-name {
  font-family: var(--uk-font-mono);
}

uk-adl-field .uk-adl-field-type-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--uk-gap-2);
  cursor: pointer;
  text-align: start;
}

uk-adl-field .uk-adl-field-trigger-tier {
  font-size: var(--uk-text-small);
  color: var(--uk-muted);
}

uk-adl-field .uk-adl-field-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--uk-gap-2);
  font-size: var(--uk-text-small);
  color: var(--uk-muted);
}

uk-adl-field .uk-adl-field-badge {
  display: inline-flex;
  align-items: center;
  padding: 0 var(--uk-gap-2);
  border-radius: var(--uk-radius);
  border: 1px solid var(--uk-border);
  background: var(--uk-control);
  color: var(--uk-fg);
  font-size: var(--uk-text-small);
  font-weight: 600;
}

uk-adl-field .uk-adl-field-badge[data-status='partial'] {
  border-color: var(--uk-warn);
}

uk-adl-field .uk-adl-field-badge[data-status='rejected'] {
  border-color: var(--uk-danger);
  color: var(--uk-danger);
}

uk-adl-field .uk-adl-field-retired {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--uk-gap-2);
  padding: var(--uk-gap-2);
  background: var(--uk-inset);
  border: 1px solid var(--uk-warn);
  border-radius: var(--uk-radius);
  font-size: var(--uk-text-small);
}

uk-adl-field .uk-adl-field-retired-fix {
  font: inherit;
  padding: var(--uk-gap-1) var(--uk-gap-2);
  border: 1px solid var(--uk-accent);
  border-radius: var(--uk-radius);
  background: var(--uk-surface);
  color: var(--uk-fg);
  cursor: pointer;
}

uk-adl-field .uk-adl-field-picker {
  display: grid;
  gap: var(--uk-gap-2);
  padding: var(--uk-gap-2);
  background: var(--uk-side);
  border: 1px solid var(--uk-border);
  border-radius: var(--uk-radius);
  box-shadow: var(--uk-shadow-2);
}

uk-adl-field .uk-adl-field-picker-results {
  display: grid;
  gap: var(--uk-gap-2);
  max-block-size: 18rem;
  overflow-y: auto;
  padding-inline-end: var(--uk-gap-1);
}

uk-adl-field .uk-adl-field-picker-group {
  display: grid;
  gap: var(--uk-gap-1);
}

uk-adl-field .uk-adl-field-picker-tier {
  font-size: var(--uk-text-small);
  font-weight: 700;
  color: var(--uk-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

uk-adl-field .uk-adl-field-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: var(--uk-gap-1);
}

uk-adl-field .uk-adl-field-type-option {
  display: grid;
  gap: 2px;
  text-align: start;
  padding: var(--uk-gap-1) var(--uk-gap-2);
  background: var(--uk-surface);
  color: var(--uk-fg);
  border: 1px solid var(--uk-border);
  border-radius: var(--uk-radius);
  cursor: pointer;
}

uk-adl-field .uk-adl-field-type-option[aria-selected='true'] {
  border-color: var(--uk-accent);
  background: var(--uk-control);
}

uk-adl-field .uk-adl-field-type-option[data-active='true'] {
  outline: 2px solid var(--uk-accent);
  outline-offset: 1px;
}

uk-adl-field .uk-adl-field-type-name {
  font-family: var(--uk-font-mono);
  font-weight: 600;
  color: var(--uk-fg);
}

uk-adl-field .uk-adl-field-type-hint {
  font-size: var(--uk-text-small);
  color: var(--uk-muted);
}

uk-adl-field .uk-adl-field-flags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--uk-gap-1);
}

uk-adl-field .uk-adl-field-flag {
  font: inherit;
  font-family: var(--uk-font-mono);
  font-size: var(--uk-text-small);
  padding: var(--uk-gap-1) var(--uk-gap-2);
  border: 1px solid var(--uk-border);
  border-radius: var(--uk-radius);
  background: var(--uk-inset);
  color: var(--uk-fg);
  cursor: pointer;
}

uk-adl-field .uk-adl-field-flag[aria-pressed='true'] {
  background: var(--uk-control);
  border-color: var(--uk-accent);
  font-weight: 600;
}

uk-adl-field .uk-adl-field-constraints {
  margin: 0;
  padding: var(--uk-gap-2);
  border: 1px solid var(--uk-border);
  border-radius: var(--uk-radius);
  display: grid;
  gap: var(--uk-gap-2);
}

uk-adl-field .uk-adl-field-constraints > legend {
  font-size: var(--uk-text-small);
  font-weight: 600;
  padding: 0 var(--uk-gap-1);
  color: var(--uk-fg);
}

uk-adl-field .uk-adl-field-constraints-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: var(--uk-gap-2);
  align-items: end;
}

uk-adl-field .uk-adl-field-checkbox {
  display: inline-flex;
  align-items: center;
  gap: var(--uk-gap-1);
  font-size: var(--uk-text-small);
  cursor: pointer;
  min-block-size: 2.25rem;
}

uk-adl-field .uk-adl-field-preview {
  display: grid;
  gap: var(--uk-gap-1);
}

uk-adl-field .uk-adl-field-preview-header {
  font-size: var(--uk-text-small);
  font-weight: 600;
  color: var(--uk-muted);
}

uk-adl-field .uk-adl-field-yaml {
  margin: 0;
  padding: var(--uk-gap-2);
  background: var(--uk-inset);
  border: 1px solid var(--uk-border);
  border-radius: var(--uk-radius);
  font-family: var(--uk-font-mono);
  font-size: var(--uk-text-small);
  color: var(--uk-fg);
  overflow-x: auto;
  white-space: pre;
}

}

/* components/diagram/diagram.css */
@layer uikitten.components {
/* <uk-diagram>: nodes as elements, placed by CSS transforms, over one SVG of
   edges (POC 07's HTML mode). The page gives the diagram its size. */

uk-diagram {
  display: block;
  position: relative;
  min-block-size: 12rem;
  overflow: hidden;
  border: 1px solid var(--uk-border);
  border-radius: var(--uk-radius);
  background: var(--uk-bg);
  color: var(--uk-fg);
}

/* Without JavaScript: the nodes as a list, each edge as "from → to". */
uk-diagram:not(:defined) {
  overflow: auto;
  padding: var(--uk-gap-2);
}
uk-diagram:not(:defined) > uk-diagram-node {
  display: list-item;
  margin-inline-start: 1.25em;
}
uk-diagram:not(:defined) > uk-diagram-edge {
  display: block;
  color: var(--uk-muted);
  font-size: var(--uk-text-small);
}
uk-diagram:not(:defined) > uk-diagram-edge:empty::before { content: attr(from) ' → ' attr(to); }

uk-diagram > .uk-diagram-host { position: absolute; inset: 0; }

uk-diagram .surface {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  outline: none;
}
/* Rings are outlines, which forced colours keep (a box-shadow they drop). */
uk-diagram .surface:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: -2px; }
uk-diagram .surface > .world { position: absolute; inset-block-start: 0; inset-inline-start: 0; transform-origin: 0 0; }
uk-diagram .edge-layer { position: absolute; overflow: visible; inline-size: 1px; block-size: 1px; }
uk-diagram .edge { fill: none; stroke: var(--uk-muted); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
uk-diagram .edge.selected { stroke: var(--uk-accent); stroke-width: 3; }
uk-diagram .feedback-layer { position: absolute; overflow: visible; inline-size: 1px; block-size: 1px; pointer-events: none; }
uk-diagram .feedback-layer * { pointer-events: none; vector-effect: non-scaling-stroke; }
uk-diagram :is(.port, .endpoint) { fill: var(--uk-bg); stroke: var(--uk-accent); stroke-width: 2; }
uk-diagram :is(.marquee, .connection-target) { fill: none; stroke: var(--uk-accent); stroke-width: 2; stroke-dasharray: 5 3; }
uk-diagram .connection-preview { fill: none; stroke: var(--uk-muted); stroke-width: 2; stroke-dasharray: 5 3; }
uk-diagram [data-valid="true"] { stroke: var(--uk-accent); stroke-dasharray: none; }

/* The page's own nodes are left alone (without JavaScript they are a list);
   only those the diagram draws are placed. */
uk-diagram:defined .world > uk-diagram-node {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding-inline: 10px;
  border: 1px solid var(--uk-fg);
  border-radius: 6px;
  background: var(--uk-surface);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
}
uk-diagram:defined .world > uk-diagram-node[selected] { border: 3px solid var(--uk-accent); }

/* The item the keys are on, while they are in use. */
uk-diagram .surface:is(:focus-visible, .keys:focus) uk-diagram-node[data-active] { outline: 2px solid var(--uk-accent); outline-offset: 3px; }
uk-diagram .surface:is(:focus-visible, .keys:focus) .edge[data-active] { stroke: var(--uk-accent); stroke-width: 4; outline: 2px solid var(--uk-accent); }

/* Read out, not shown. */
uk-diagram .status {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (forced-colors: active) {
  uk-diagram .feedback-layer * { stroke: Highlight; }
  uk-diagram :is(.port, .endpoint) { fill: Canvas; }
  uk-diagram .edge { stroke: CanvasText; }
  uk-diagram .edge.selected,
  uk-diagram .surface:is(:focus-visible, .keys:focus) .edge[data-active] { stroke: Highlight; }
  uk-diagram:defined .world > uk-diagram-node[selected] { border-color: Highlight; }
}

/* Level of detail: no labels when zoomed out too far to read them. */
uk-diagram .surface.far uk-diagram-node > .label { display: none; }

uk-diagram:defined .world > uk-diagram-node {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
uk-diagram .node-shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
uk-diagram .node-shape :is(path, rect, circle, ellipse) { fill: var(--uk-surface); stroke: var(--uk-fg); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
uk-diagram .node-shape .detail { fill: none; }
uk-diagram .node-shape .solid { fill: var(--uk-fg); }
uk-diagram uk-diagram-node > :is(.label, .node-row) { position: relative; box-sizing: border-box; user-select: text; }
uk-diagram uk-diagram-node > .label { padding-inline: 16px; }
uk-diagram:defined .world > uk-diagram-node[data-rows] { justify-content: start; align-items: stretch; }
uk-diagram uk-diagram-node[data-rows] > .label { height: 32px; line-height: 32px; border-block-end: 1px solid var(--uk-border); font-weight: bold; }
uk-diagram .node-row { display: block; height: 24px; line-height: 24px; padding-inline: 12px; }
uk-diagram .node-row[data-section] { border-block-start: 1px solid var(--uk-border); }
uk-diagram .node-stereotype { display: block; font-size: 11px; font-weight: normal; line-height: 14px; }
uk-diagram uk-diagram-node[data-kind=enumeration][data-rows] > .label { line-height: 16px; }
uk-diagram uk-diagram-node:is([data-kind=initial], [data-kind=final], [data-kind=interface], [data-kind=fork]) > .label { margin-block-start: 45px; }
uk-diagram uk-diagram-node[data-kind=actor] > .label { margin-block-start: 75px; }
uk-diagram:defined .world > uk-diagram-node:is([data-kind=lifeline], [data-kind=timing]) { justify-content: start; }
uk-diagram uk-diagram-node:is([data-kind=lifeline], [data-kind=timing]) > .label { line-height: 32px; }
uk-diagram:defined .world > uk-diagram-node[selected] { border: 0; outline: 3px solid var(--uk-accent); outline-offset: 1px; }
uk-diagram [aria-current=true] { outline: 3px double var(--uk-accent); outline-offset: 5px; }
uk-diagram .surface:is(:focus-visible, .keys:focus) uk-diagram-node[aria-current=true] { outline: 3px double var(--uk-accent); outline-offset: 5px; }
uk-diagram [data-highlight] { filter: drop-shadow(0 0 2px var(--uk-accent)); }
uk-diagram [data-dim] { opacity: 0.3; }
uk-diagram .edge[aria-current=true] { stroke-width: 4; stroke: var(--uk-accent); }
uk-diagram .marker { stroke: context-stroke; stroke-width: 1.4; fill: none; }
uk-diagram :is(.marker-arrow, .marker-filled) { fill: context-stroke; }
uk-diagram :is(.marker-triangle, .marker-hollow, .marker-zero) { fill: var(--uk-bg); }
uk-diagram .surface.far .node-row { visibility: hidden; }
uk-diagram uk-diagram-node[data-rows] > .label { margin-block-start: 0; }
uk-diagram:not(:defined) [data-row] { display: block; margin-inline-start: 1rem; }
@media (forced-colors: active) {
  uk-diagram .node-shape :is(path, rect, circle, ellipse) { stroke: CanvasText; fill: Canvas; }
  uk-diagram .node-shape .solid { fill: CanvasText; }
  uk-diagram .node-shape .detail { fill: none; }
  uk-diagram [aria-current=true] { outline-color: Highlight; }
  uk-diagram [data-highlight] { outline: 2px dashed Highlight; }
}

}

/* components/layout/layout.css */
@layer uikitten.components {
/* <uk-layout>: every kind is CSS. Every structural rule uses the child
   combinator (>), so a layout's rules never reach the children of a layout
   nested in it, even one of the same kind. */

/* A child's size belongs to that child: a layout nested in a sized child must
   not inherit it. */
@property --uk-size { syntax: '*'; inherits: false; }

/* A size is the child's border box, the size a splitter measures, so a padded
   child doesn't jump when a drag starts. */
uk-layout > [data-size],
uk-layout[kind='border'] > :is([region='start'], [region='end'], [region='top'], [region='bottom']) { box-sizing: border-box; }

uk-layout {
  box-sizing: border-box;
  display: flex;
  min-inline-size: 0;
  min-block-size: 0;
  overflow: hidden;
}

/* row and column: children share the space; a child with data-size keeps its
   --uk-size, and a collapsed one shrinks to its title bar. */
uk-layout[kind='row'] { flex-direction: row; }
uk-layout[kind='column'] { flex-direction: column; }
uk-layout:is([kind='row'], [kind='column']) > * { flex: 1 1 0; min-inline-size: 0; min-block-size: 0; }
uk-layout:is([kind='row'], [kind='column']) > [data-size] { flex: 0 0 var(--uk-size); }
uk-layout:is([kind='row'], [kind='column']) > [collapsed] { flex: 0 0 auto; }

/* border: top, bottom, start, end and main. start and end follow the writing
   direction. */
uk-layout[kind='border'] {
  display: grid;
  grid-template:
    'top top top top top' auto
    'top-split top-split top-split top-split top-split' auto
    'start start-split main end-split end' minmax(0, 1fr)
    'bottom-split bottom-split bottom-split bottom-split bottom-split' auto
    'bottom bottom bottom bottom bottom' auto
    / auto auto minmax(0, 1fr) auto auto;
}
uk-layout[kind='border'] > * { min-inline-size: 0; min-block-size: 0; }
uk-layout[kind='border'] > [region='top'] { grid-area: top; }
uk-layout[kind='border'] > [region='bottom'] { grid-area: bottom; }
uk-layout[kind='border'] > [region='main'] { grid-area: main; }
uk-layout[kind='border'] > [region='start'] { grid-area: start; inline-size: var(--uk-size, 16rem); }
uk-layout[kind='border'] > [region='end'] { grid-area: end; inline-size: var(--uk-size, 16rem); }
uk-layout[kind='border'] > :is([region='start'], [region='end'])[collapsed] { inline-size: auto; }
uk-layout[kind='border'] > :is([region='top'], [region='bottom'])[data-size]:not([collapsed]) { block-size: var(--uk-size); }
uk-layout[kind='border'] > .uk-splitter[data-region='start'] { grid-area: start-split; }
uk-layout[kind='border'] > .uk-splitter[data-region='end'] { grid-area: end-split; }
uk-layout[kind='border'] > .uk-splitter[data-region='top'] { grid-area: top-split; }
uk-layout[kind='border'] > .uk-splitter[data-region='bottom'] { grid-area: bottom-split; }

/* fit: one child fills the layout. */
uk-layout[kind='fit'] { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }

/* card: one child at a time. Before the script runs every card shows, stacked
   and scrolling; then a row of buttons picks the card. */
uk-layout[kind='card'] { flex-direction: column; overflow: auto; }
uk-layout[kind='card']:not(:defined) > * { flex: 0 0 100%; }
uk-layout[kind='card']:defined {
  display: grid;
  grid-template: auto minmax(0, 1fr) / minmax(0, 1fr);
  overflow: hidden;
}
uk-layout[kind='card']:defined > :not(.uk-cards, [active]) { display: none; }
uk-layout[kind='card']:defined > [active] { grid-area: 2 / 1; min-block-size: 0; }

/* accordion: <details name="…"> children, so one section opens at a time
   without script. The open section passes its height on to its content
   through ::details-content, so a layout inside it can fill it. */
uk-layout[kind='accordion'] { flex-direction: column; }
uk-layout[kind='accordion'] > details { flex: 0 0 auto; min-block-size: 0; border-block-end: 1px solid var(--uk-border); }
uk-layout[kind='accordion'] > details[open] { flex: 1 1 0; display: flex; flex-direction: column; overflow: hidden; }
uk-layout[kind='accordion'] > details[open]::details-content { flex: 1 1 0; min-block-size: 0; display: flex; flex-direction: column; }
uk-layout[kind='accordion'] > details > :not(summary) { flex: 1 1 0; min-block-size: 0; }
uk-layout[kind='accordion'] > details > summary {
  padding: var(--uk-gap-1) var(--uk-gap-2);
  cursor: pointer;
  font-weight: 600;
}

/* Splitters, added by the script between resizable children. */
uk-layout > .uk-splitter {
  flex: 0 0 var(--uk-split, 6px);
  inline-size: var(--uk-split, 6px);
  background: var(--uk-border);
  touch-action: none;
}
uk-layout > .uk-splitter[aria-orientation='horizontal'] { inline-size: auto; block-size: var(--uk-split, 6px); cursor: row-resize; }
uk-layout > .uk-splitter[aria-orientation='vertical'] { cursor: col-resize; }
uk-layout > .uk-splitter:is(:hover, :focus-visible, .dragging) { background: var(--uk-accent); }
/* Unseen normally, beside the accent, but forced colours paint it where they
   flatten the background, so the focus still shows (#508). */
uk-layout > .uk-splitter:focus-visible { outline: 2px solid transparent; }
/* Release mode: the splitter is the guide, drawn over its neighbours as it moves. */
uk-layout > .uk-splitter.uk-guide { position: relative; z-index: 1; box-shadow: 0 0 0 1px var(--uk-surface); }

/* The card tabs, added by the script. */
uk-layout > .uk-cards {
  display: flex;
  flex-wrap: wrap;
  gap: var(--uk-gap-1);
  padding: var(--uk-gap-1);
  border-block-end: 1px solid var(--uk-border);
}
uk-layout > .uk-cards > button {
  font: inherit;
  color: var(--uk-muted);
  background: none;
  border: 0;
  border-block-end: 2px solid transparent;
  padding: var(--uk-gap-1) var(--uk-gap-2);
  cursor: pointer;
}
uk-layout > .uk-cards > [aria-selected='true'] { color: var(--uk-fg); border-block-end-color: var(--uk-accent); }
uk-layout > .uk-cards > button:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: -2px; }

}

/* components/menu/menu.css */
@layer uikitten.components {
uk-menu {
  display: inline-block;

  > .trigger[aria-haspopup] {
    font: inherit;
  }

  .menu {
    /* inset: auto and margin: 0 undo the browser's centring of a popover, so position-area alone places it. */
    inset: auto;
    margin: 0;
    position-area: block-end span-inline-end;
    position-try-fallbacks: flip-inline, flip-block, flip-block flip-inline;
    min-inline-size: 10rem;
    padding: var(--uk-gap-1);
    color: var(--uk-fg);
    background: var(--uk-surface);
    border: 1px solid var(--uk-border);
    border-radius: var(--uk-radius);
    box-shadow: 0 0.25rem 1rem rgb(0 0 0 / 0.25);
  }

  .menu:popover-open {
    display: grid;
  }

  .menu.submenu {
    position-area: span-block-end inline-end;
  }

  .menu > uk-menu {
    display: grid;
  }

  [role='menuitem'] {
    display: block;
    padding: var(--uk-gap-1) var(--uk-gap-2);
    font: inherit;
    text-align: start;
    text-decoration: none;
    color: inherit;
    background: none;
    border: 0;
    border-radius: calc(var(--uk-radius) / 2);
    cursor: pointer;
  }

  [role='menuitem']:is(:hover, :focus-visible) {
    background: var(--uk-bg);
    outline: none;
  }

  [role='menuitem']:focus-visible {
    box-shadow: inset 0 0 0 2px var(--uk-accent);
  }

  /* The empty alternative text keeps the arrow out of the item's accessible name (POC 04). */
  [role='menuitem'][aria-haspopup]::after {
    content: ' ▸' / '';
  }

  [role='separator'] {
    margin: var(--uk-gap-1) 0;
    border: 0;
    border-block-start: 1px solid var(--uk-border);
  }
}

/* Before the element is defined or with JavaScript off: the label, then the items as a list. */
uk-menu:not(:defined) {
  display: grid;
  justify-items: start;
  gap: var(--uk-gap-1);
}

uk-menu:not(:defined)::before {
  content: attr(label);
  font-weight: 600;
}

uk-menu:not(:defined) uk-menu:not(:defined) {
  padding-inline-start: var(--uk-gap-3);
}

}

/* components/panel/panel.css */
@layer uikitten.components {
/* Set on the panel itself, not inherited: a panel nested in another keeps
   its own padding. */
@property --uk-panel-padding { syntax: '*'; inherits: false; }

/* The title bar is the page's own heading, with the buttons beside it in the
   same grid row. Everything else is the panel's content and scrolls. */
uk-panel {
  box-sizing: border-box;
  display: grid;
  grid-template: auto minmax(0, 1fr) / minmax(0, 1fr) auto;
  min-inline-size: 0;
  min-block-size: 0;
  overflow: hidden;
  border: 1px solid var(--uk-border);
  background: var(--uk-surface);
  color: var(--uk-fg);
  container: uk-panel / inline-size;
}

uk-panel > :is(h1, h2, h3, h4, h5, h6):first-child {
  grid-area: 1 / 1;
  margin: 0;
  padding: var(--uk-gap-1) var(--uk-gap-2);
  font-size: var(--uk-text-small);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-block-end: 1px solid var(--uk-border);
}

uk-panel > .uk-panel-tools {
  grid-area: 1 / 2;
  display: flex;
  align-items: center;
  gap: 2px;
  padding-inline: var(--uk-gap-1);
  border-block-end: 1px solid var(--uk-border);
}

/* With no buttons the bar still holds row 1, at no size, so the content always
   lands in the 1fr row, heading or not. */
uk-panel > .uk-panel-tools.uk-empty { display: block; visibility: hidden; inline-size: 0; block-size: 0; padding: 0; border: 0; overflow: hidden; }

/* At least 24px each way, the minimum target size (WCAG 2.5.8). The bar is
   taller than that, so only the buttons grow, not the bar. */
uk-panel > .uk-panel-tools > :is(button, uk-menu > .trigger) {
  min-inline-size: 24px;
  min-block-size: 24px;
  font: inherit;
  font-size: var(--uk-text-small);
  line-height: 1.2;
  padding: 0 var(--uk-gap-1);
  color: var(--uk-muted);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--uk-radius);
  cursor: pointer;
}

uk-panel > .uk-panel-tools > :is(button, uk-menu > .trigger):hover { color: var(--uk-fg); border-color: var(--uk-border); }
uk-panel > .uk-panel-tools > :is(button, uk-menu > .trigger):focus-visible { outline: 2px solid var(--uk-accent); outline-offset: -2px; }

/* The ⋯ menu holds the same actions; it shows only when the panel is narrow.
   Until first pressed it's a plain button standing in for the menu. */
uk-panel > .uk-panel-tools > :is(uk-menu.uk-panel-menu, .uk-panel-more) { display: none; }

/* Content: padded (--uk-panel-padding: 0 for a table or a nested layout that
   should touch the edges) and scrolling. */
uk-panel > :not(:where(:is(h1, h2, h3, h4, h5, h6):first-child, .uk-panel-tools)) {
  grid-column: 1 / -1;
  min-block-size: 0;
  overflow: auto;
  margin: 0;
  padding: var(--uk-panel-padding, var(--uk-gap-2));
}
uk-panel > :is(ul, ol) { padding-inline-start: calc(var(--uk-panel-padding, var(--uk-gap-2)) + 1.5em); }

/* A very narrow panel gathers its buttons behind the ⋯ menu, giving its title
   the room (POC 03 finding 6). */
@container uk-panel (width < 7rem) {
  uk-panel > .uk-panel-tools { padding-inline: 0; }
  uk-panel > .uk-panel-tools > button:not(.uk-panel-more) { display: none; }
  uk-panel > .uk-panel-tools > :is(uk-menu.uk-panel-menu, .uk-panel-more) { display: inline-block; }
  uk-panel > :is(h1, h2, h3, h4, h5, h6):first-child { padding-inline-end: 0; }
}

/* Collapsed: the title bar only. With its content hidden it needs no
   container, and dropping it lets a row size the panel to its bar. */
uk-panel[collapsed] { grid-template-rows: auto; container-type: normal; }
uk-panel[collapsed] > :not(:is(h1, h2, h3, h4, h5, h6):first-child, .uk-panel-tools) { display: none; }

/* Collapsed in a row (or a border layout's sides), the bar stands on end. */
uk-layout:is([kind='row'], [kind='border']) > uk-panel[collapsed] {
  grid-template: auto minmax(0, 1fr) / minmax(0, 1fr);
}
uk-layout:is([kind='row'], [kind='border']) > uk-panel[collapsed] > .uk-panel-tools {
  grid-area: 1 / 1;
  flex-direction: column;
  padding: var(--uk-gap-1) 0;
}
uk-layout:is([kind='row'], [kind='border']) > uk-panel[collapsed] > :is(h1, h2, h3, h4, h5, h6):first-child {
  grid-area: 2 / 1;
  writing-mode: vertical-rl;
  border-block-end: 0;
}

/* Maximised: in the top layer as a popover, filling the window. */
uk-panel:popover-open {
  position: fixed;
  inset: 0;
  inline-size: auto;
  block-size: auto;
  max-inline-size: none;
  max-block-size: none;
  margin: 0;
  padding: 0;
}

}

/* components/popover/popover.css */
@layer uikitten.components {
uk-popover,
uk-tooltip {
  /* inset: auto and margin: 0 undo the browser's centring of a popover, so position-area alone places it. */
  inset: auto;
  margin: 0;
  color: var(--uk-fg);
  background: var(--uk-surface);
  border: 1px solid var(--uk-border);
  border-radius: var(--uk-radius);
  box-shadow: 0 0.25rem 1rem rgb(0 0 0 / 0.25);
}

uk-popover {
  max-inline-size: min(20rem, calc(100vw - 2 * var(--uk-gap-3)));
  padding: var(--uk-gap-2);
  position-area: block-end span-inline-end;
  position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
}

uk-tooltip {
  max-inline-size: 16rem;
  padding: var(--uk-gap-1) var(--uk-gap-2);
  font-size: var(--uk-text-small);
  position-area: block-start;
  position-try-fallbacks: flip-block, flip-inline;
}

:is(uk-popover, uk-tooltip)[placement='top'] { position-area: block-start; }
:is(uk-popover, uk-tooltip)[placement='top-start'] { position-area: block-start span-inline-end; }
:is(uk-popover, uk-tooltip)[placement='top-end'] { position-area: block-start span-inline-start; }
:is(uk-popover, uk-tooltip)[placement='bottom'] { position-area: block-end; }
:is(uk-popover, uk-tooltip)[placement='bottom-start'] { position-area: block-end span-inline-end; }
:is(uk-popover, uk-tooltip)[placement='bottom-end'] { position-area: block-end span-inline-start; }
:is(uk-popover, uk-tooltip)[placement='left'] { position-area: inline-start; }
:is(uk-popover, uk-tooltip)[placement='right'] { position-area: inline-end; }

/* Without the popover attribute (or before it's added) the content shows where it was written. */
:is(uk-popover, uk-tooltip):not([popover]) {
  display: block;
  position: static;
  box-shadow: none;
}

}

/* components/shell/shell.css */
@layer uikitten.components {
/* <uk-shell>: the layout inside does the layout. The shell fills the window,
   hides the navigation when it's collapsed (with its splitter), and on a
   narrow or portrait screen moves it, and the rail, into a drawer. NARROW in
   shell.js must match the media queries here. */
uk-shell {
  display: block;
  block-size: 100dvh;
  background: var(--uk-bg);
  color: var(--uk-fg);
}
uk-shell > uk-layout { block-size: 100%; }

uk-shell > uk-layout > [region='top'] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--uk-gap-2) var(--uk-gap-3);
  padding: var(--uk-gap-1) var(--uk-gap-3);
  background: var(--uk-side);
  border-block-end: 1px solid var(--uk-border);
}
uk-shell > uk-layout > [region='start'] {
  overflow: auto;
  background: var(--uk-side);
  border-inline-end: 1px solid var(--uk-border);
}
uk-shell > uk-layout > [region='main'] { overflow: auto; container: uk-shell-main / inline-size; }

/* The rail: a column of the app's areas between the header and the
   navigation. It isn't one of <uk-layout>'s regions, so the shell adds its
   column to the border grid. */
uk-shell > uk-layout[kind='border']:has(> [region='rail']) {
  grid-template:
    'top top top top top top' auto
    'top-split top-split top-split top-split top-split top-split' auto
    'rail start start-split main end-split end' minmax(0, 1fr)
    'bottom-split bottom-split bottom-split bottom-split bottom-split bottom-split' auto
    'bottom bottom bottom bottom bottom bottom' auto
    / auto auto auto minmax(0, 1fr) auto auto;
}
uk-shell > uk-layout > [region='rail'],
uk-shell > dialog > [region='rail'] {
  display: flex;
  flex-direction: column;
  gap: var(--uk-gap-1);
  margin: 0;
  padding: var(--uk-gap-1);
  overflow: auto;
}
uk-shell > uk-layout > [region='rail'] {
  grid-area: rail;
  background: var(--uk-side);
  border-inline-end: 1px solid var(--uk-border);
}
/* In the drawer the rail is a row of areas above the navigation. */
uk-shell > dialog > [region='rail'] {
  flex-direction: row;
  flex-wrap: wrap;
  padding: 0 0 var(--uk-gap-2);
  border-block-end: 1px solid var(--uk-border);
}
uk-shell > uk-layout > [region='bottom'] {
  padding: var(--uk-gap-1) var(--uk-gap-3);
  border-block-start: 1px solid var(--uk-border);
  color: var(--uk-muted);
  font-size: var(--uk-text-small);
}

/* Shown or hidden by ☰ on a wide screen; the splitter goes with it. */
uk-shell > uk-layout > [region='start'][collapsed]:not(uk-panel) { display: none; }
uk-shell > uk-layout:has(> [region='start'][collapsed]:not(uk-panel)) > .uk-splitter[data-region='start'] { display: none; }

/* With actions that fold, the header stays one line: what doesn't fit goes
   into the ⋯ popover. Without the script it wraps, as above. */
uk-shell > uk-layout > [region='top'].uk-shell-folds { flex-wrap: nowrap; overflow: hidden; }
uk-shell > uk-layout > [region='top'].uk-shell-folds > * { flex-shrink: 0; }
uk-shell .uk-shell-more-panel { display: none; }
uk-shell .uk-shell-more-panel:popover-open {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: var(--uk-gap-2);
}

uk-shell .uk-shell-menu,
uk-shell .uk-shell-more,
uk-shell > dialog > .uk-shell-close {
  font: inherit;
  min-block-size: 2rem;
  min-inline-size: 2.4rem;
  padding: 0 var(--uk-gap-2);
  color: var(--uk-fg);
  background: var(--uk-control);
  border: 1px solid var(--uk-border);
  border-radius: var(--uk-radius);
  cursor: pointer;
}
uk-shell .uk-shell-menu:focus-visible,
uk-shell .uk-shell-more:focus-visible,
uk-shell > dialog > .uk-shell-close:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 1px; }

/* The drawer: a native modal <dialog>, only ever opened on a narrow screen. */
uk-shell > dialog.uk-shell-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  box-sizing: border-box;
  display: none;
  flex-direction: column;
  gap: var(--uk-gap-2);
  inline-size: min(22rem, 88vw);
  max-inline-size: none;
  block-size: 100dvh;
  max-block-size: none;
  margin: 0;
  padding: var(--uk-gap-3);
  overflow: auto;
  color: var(--uk-fg);
  background: var(--uk-side);
  border: 0;
  border-inline-end: 1px solid var(--uk-border);
  box-shadow: var(--uk-shadow-3);
}
uk-shell > dialog.uk-shell-drawer[open] { display: flex; }
uk-shell > dialog.uk-shell-drawer > .uk-shell-close { align-self: flex-end; }
uk-shell > dialog.uk-shell-drawer::backdrop { background: rgb(0 0 0 / 0.45); }
@media (prefers-reduced-motion: no-preference) {
  uk-shell > dialog.uk-shell-drawer:modal { animation: uk-shell-slide 160ms ease-out; }
  @keyframes uk-shell-slide { from { translate: -100% 0; } }
}

@media (max-width: 48rem), (orientation: portrait) {
  /* With the script: the navigation lives in the drawer. */
  uk-shell:defined > uk-layout > [region='start'],
  uk-shell:defined > uk-layout > [region='rail'],
  uk-shell:defined > uk-layout > .uk-splitter[data-region='start'] { display: none; }

  /* Without it: no drawer, so everything stacks and scrolls. */
  uk-shell:not(:defined) { block-size: auto; }
  uk-shell:not(:defined) > uk-layout[kind='border'] { display: flex; flex-direction: column; overflow: visible; }
  uk-shell:not(:defined) > uk-layout[kind='border'] > * { flex: none; inline-size: auto; }
}

/* Workbenches keep the navigator and inspector beside main and its panel.
   A footer uses region="status"; existing footer region="bottom" is unchanged. */
uk-shell > uk-layout[kind='border']:has(> [region='bottom'] > uk-tabs),
uk-shell > uk-layout[kind='border']:has(> [region='status']),
uk-shell > uk-layout[kind='border'].uk-shell-workbench {
  grid-template:
    'top top top top top top' auto
    'top-split top-split top-split top-split top-split top-split' auto
    'rail start start-split main end-split end' minmax(0, 1fr)
    'rail start start-split bottom-split end-split end' auto
    'rail start start-split bottom end-split end' auto
    'status status status status status status' auto
    / auto auto auto minmax(0, 1fr) auto auto;
}
uk-shell > uk-layout > [region='status'] {
  grid-area: status;
  padding: var(--uk-gap-1) var(--uk-gap-3);
  border-block-start: 1px solid var(--uk-border);
  color: var(--uk-muted);
  overflow-wrap: anywhere;
}
uk-shell > uk-layout > [region='end'] { overflow: auto; background: var(--uk-side); }
uk-shell:defined > uk-layout > [region='end'][collapsed] { display: none; }
uk-shell > uk-layout:has(> [region='end'][collapsed]) > .uk-splitter[data-region='end'] { display: none; }
uk-shell > uk-layout > [region='bottom']:has(> uk-tabs) {
  padding: 0;
  color: var(--uk-fg);
  font-size: inherit;
  overflow: hidden;
  max-block-size: 65dvh;
}
uk-shell [region='bottom'] > uk-tabs {
  display: grid;
  grid-template: auto minmax(0, 1fr) / minmax(0, 1fr) auto;
  block-size: 100%;
  min-block-size: 0;
  min-inline-size: 0;
}
uk-shell [region='bottom'] > uk-tabs > .tablist {
  grid-area: 1 / 1;
  flex-wrap: wrap;
  overflow: auto;
  margin: 0;
}
uk-shell [region='bottom'] > uk-tabs > .tablist > button { flex-shrink: 0; padding: var(--uk-gap-1) var(--uk-gap-2); }
uk-shell [region='bottom'] > uk-tabs > [data-tab] {
  grid-area: 2 / 1 / auto / -1;
  overflow: auto;
  min-block-size: 0;
  padding: var(--uk-gap-2);
}
uk-shell:defined [region='bottom'][collapsed] > uk-tabs > [data-tab] { display: none; }
uk-shell [region='bottom'][collapsed] > uk-tabs { grid-template-rows: auto; }
uk-shell .uk-shell-panel-tools { grid-area: 1 / 2; display: flex; align-items: center; gap: var(--uk-gap-1); }
uk-shell .uk-shell-control {
  font: inherit;
  min-inline-size: 2rem;
  min-block-size: 2rem;
  padding: var(--uk-gap-1);
  border: 1px solid var(--uk-border);
  border-radius: var(--uk-radius);
  background: var(--uk-control);
  color: var(--uk-fg);
  cursor: pointer;
}
uk-shell .uk-shell-control:focus-visible { outline: 2px solid var(--uk-accent); outline-offset: -2px; }
uk-shell .uk-shell-open-bottom { display: none; }
uk-shell > uk-layout.uk-shell-maximized > [region='main'],
uk-shell > uk-layout.uk-shell-maximized > .uk-splitter[data-region='bottom'] { display: none; }
uk-shell > uk-layout[kind='border'].uk-shell-maximized > [region='bottom'],
uk-shell > uk-layout[kind='border'].uk-shell-maximized > [region='bottom'][data-size] {
  grid-row: 3 / 6;
  block-size: auto;
  max-block-size: none;
}
uk-shell > uk-layout.uk-shell-workbench > [region='top'] { gap: var(--uk-gap-1); }
uk-shell > dialog.uk-shell-end-drawer {
  inset: 0;
  margin-inline-start: auto;
  margin-inline-end: 0;
  border-inline-start: 1px solid var(--uk-border);
  border-inline-end: 0;
  animation: none;
}
uk-shell > dialog.uk-shell-bottom-drawer {
  inset: auto 0 0;
  inline-size: 100%;
  max-inline-size: 100%;
  block-size: min(75dvh, 32rem);
  border-block-start: 1px solid var(--uk-border);
  animation: none;
}
uk-shell > dialog > :is([region='end'], [region='bottom']) { min-block-size: 0; min-inline-size: 0; overflow: auto; flex: 1; }
uk-shell > .uk-shell-bottom-drawer .uk-shell-panel-tools { display: none; }
@media (max-width: 48rem), (orientation: portrait) {
  uk-shell:defined > uk-layout > [region='end'],
  uk-shell:defined > uk-layout > [region='bottom']:has(> uk-tabs),
  uk-shell:defined > uk-layout > .uk-splitter:is([data-region='end'], [data-region='bottom']) { display: none; }
  uk-shell .uk-shell-open-bottom { display: inline-block; }
  uk-shell:not(:defined) [region='bottom'] > uk-tabs { display: block; }
  uk-shell:not(:defined) > uk-layout > [region='bottom']:has(> uk-tabs) { block-size: auto; max-block-size: none; }
}
uk-shell [region='bottom'] > uk-tabs:not(:defined) { display: block; overflow: auto; }

}

/* components/tabs/tabs.css */
@layer uikitten.components {
uk-tabs {
  display: block;

  > .tablist {
    display: flex;
    flex-wrap: wrap;
    gap: var(--uk-gap-1);
    border-bottom: 1px solid var(--uk-border);
    margin-bottom: var(--uk-gap-3);
  }

  [role='tab'] {
    max-inline-size: 100%;
    overflow-wrap: anywhere;
    font: inherit;
    color: var(--uk-muted);
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: var(--uk-gap-2) var(--uk-gap-3);
    cursor: pointer;
  }

  [role='tab'][aria-selected='true'] {
    color: var(--uk-fg);
    border-bottom-color: var(--uk-accent);
  }

  [role='tab']:focus-visible {
    outline: 2px solid var(--uk-accent);
    outline-offset: -2px;
  }
}

/* Before the element is defined, with JavaScript off, or in an error fallback, each section shows its own heading. */
uk-tabs:not(:defined) > [data-tab]::before,
uk-tabs:not(:has(> .tablist)) > [data-tab]::before {
  content: attr(data-tab);
  display: block;
  font-weight: 600;
  margin-top: var(--uk-gap-3);
}

}

/* components/theme-picker/theme-picker.css */
@layer uikitten.components {
/* Fits a phone at 200% text: the groups wrap, and a select shrinks to the
   room it has. */
uk-theme-picker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--uk-gap-1) var(--uk-gap-3);
  max-inline-size: 100%;
}

uk-theme-picker > :is(label, .text) {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--uk-gap-1);
  min-inline-size: 0;
  max-inline-size: 100%;
}
uk-theme-picker select { min-inline-size: 0; max-inline-size: 100%; }
uk-theme-picker > [hidden] { display: none; }

uk-theme-picker > label > span { color: var(--uk-muted); font-size: var(--uk-text-small); }

uk-theme-picker :is(select, button) {
  font: inherit;
  min-block-size: 2rem;
  padding: 0 var(--uk-gap-2);
  color: var(--uk-fg);
  background: var(--uk-control);
  border: 1px solid var(--uk-border);
  border-radius: var(--uk-radius);
}
uk-theme-picker button { cursor: pointer; }
uk-theme-picker button:disabled { color: var(--uk-muted); cursor: default; }
uk-theme-picker :is(select, button):focus-visible { outline: 2px solid var(--uk-accent); outline-offset: 1px; }
uk-theme-picker > .text > output {
  min-inline-size: 3.2em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--uk-muted);
}

}

/* components/toast/toast.css */
@layer uikitten.components {
uk-toast-region {
  /* A manual popover on the top layer: placed by its position, not centred. */
  inset: auto var(--uk-gap-3) var(--uk-gap-3) auto;
  margin: 0;
  padding: 0;
  max-inline-size: min(24rem, calc(100vw - 2 * var(--uk-gap-3)));
  background: none;
  border: 0;
  overflow: visible;

  &:popover-open {
    display: grid;
    gap: var(--uk-gap-2);
  }

  .toast {
    display: flex;
    align-items: start;
    gap: var(--uk-gap-2);
    padding: var(--uk-gap-2) var(--uk-gap-3);
    color: var(--uk-fg);
    background: var(--uk-surface);
    border: 1px solid var(--uk-border);
    border-inline-start: 4px solid var(--uk-accent);
    border-radius: var(--uk-radius);
    box-shadow: 0 0.25rem 1rem rgb(0 0 0 / 0.25);
  }

  .toast > span {
    flex: 1;
  }

  .toast[data-tone='success'] { border-inline-start-color: var(--uk-success); }
  .toast[data-tone='warning'] { border-inline-start-color: var(--uk-gold); }
  .toast[data-tone='danger'] { border-inline-start-color: var(--uk-danger); }

  .dismiss {
    padding: 0 var(--uk-gap-1);
    font: inherit;
    line-height: 1;
    color: var(--uk-muted);
    background: none;
    border: 0;
    cursor: pointer;
  }
}

uk-toast-region[position='bottom-start'] { inset: auto auto var(--uk-gap-3) var(--uk-gap-3); }
uk-toast-region[position='top-end'] { inset: var(--uk-gap-3) var(--uk-gap-3) auto auto; }
uk-toast-region[position='top-start'] { inset: var(--uk-gap-3) auto auto var(--uk-gap-3); }

}
