:root {
  --background: #ffffff;
  --foreground: #202020;
  --card: #ffffff;
  --card-foreground: #202020;
  --primary: #202020;
  --primary-foreground: #ffffff;
  --secondary: oklch(0.48 0.12 255);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: #f0f0f0;
  --muted-foreground: #646464;
  --accent: #e8e8e8;
  --accent-foreground: var(--primary);
  --destructive: oklch(0.577 0.245 27.325);
  --border: #d9d9d9;
  --input: #cecece;
  --ring: oklch(0.48 0.12 255);
  --sidebar: #f0f0f0;
  --sidebar-foreground: #202020;
  --sidebar-accent: #e0e0e0;
  --sidebar-accent-foreground: var(--primary);
  --agent-panel: #f6f8fa;
  --agent-panel-block: #eaeef2;
  --popover: #ffffff;
  --popover-foreground: #202020;
  --destructive-foreground: #ffffff;
  --surface: #f9f9f9;
  --field: #ffffff;
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23646464' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --surface-foreground: var(--foreground);
  --code: var(--surface);
  --code-foreground: var(--surface-foreground);
  --code-highlight: #f0f0f0;
  --code-number: #646464;
  --selection: #202020;
  --selection-foreground: #ffffff;
  --chart-1: oklch(0.80 0.08 245);
  --chart-2: oklch(0.68 0.12 245);
  --chart-3: oklch(0.58 0.12 245);
  --chart-4: oklch(0.48 0.11 245);
  --chart-5: oklch(0.38 0.09 245);
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-border: var(--border);
  --sidebar-ring: var(--ring);
  --shadow-pop: 0 8px 24px oklch(0 0 0 / 8%);
  --radius: 1px;
  --radius-sm: calc(var(--radius) * 0.6);
  --radius-md: calc(var(--radius) * 0.8);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) * 1.4);
  --radius-2xl: calc(var(--radius) * 1.8);
  --radius-3xl: calc(var(--radius) * 2.2);
  --radius-4xl: calc(var(--radius) * 2.6);
  --shadow-2xs: 0 1px rgb(0 0 0 / 0.05);
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --spacing: 0.25rem;
  --gutter: clamp(24px, 14vw, 220px);
  --container-sm: 28rem;
  --container-md: 48rem;
  --container-lg: 72rem;
  --font-sans: 'Suisse Intl', 'Helvetica Neue', Helvetica, ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Suisse Intl Mono', ui-monospace, SFMono-Regular, monospace;
  --font-mono-reading: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, ui-monospace, monospace;
  --text-2xs: 0.6875rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-xs--line-height: calc(1 / 0.75);
  --text-sm--line-height: calc(1.25 / 0.875);
  --text-base--line-height: calc(1.5 / 1);
  --text-lg--line-height: calc(1.75 / 1.125);
  --text-xl--line-height: calc(1.75 / 1.25);
  --text-2xl--line-height: calc(2 / 1.5);
  --font-heading: var(--font-sans);
  --leading-tight: 1.05;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 600;
  --tracking-tight: -0.03em;
  --tracking-snug: -0.01em;
  --status-to-triage: oklch(0.60 0.16 25);
  --status-backlog: oklch(0.58 0.02 260);
  --status-ready: oklch(0.58 0.12 245);
  --status-in-progress: oklch(0.68 0.13 75);
  --status-in-review: oklch(0.55 0.13 300);
  --status-done: oklch(0.58 0.11 155);
  --badge-ok: oklch(0.58 0.11 155);
  --badge-warn: oklch(0.62 0.10 75);
  --overdue: oklch(0.52 0.19 27);
  --default-transition-duration: 150ms;
  --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
html.dark {
  color-scheme: dark;
  --background: #111111;
  --foreground: #eeeeee;
  --card: #191919;
  --card-foreground: #eeeeee;
  --primary: #eeeeee;
  --primary-foreground: #111111;
  --secondary: oklch(0.72 0.12 255);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: #222222;
  --muted-foreground: #b4b4b4;
  --accent: #2a2a2a;
  --accent-foreground: #eeeeee;
  --destructive: oklch(0.704 0.191 22.216);
  --border: #3a3a3a;
  --input: #484848;
  --ring: oklch(0.72 0.12 255);
  --sidebar: #191919;
  --sidebar-foreground: #eeeeee;
  --sidebar-accent: #2a2a2a;
  --sidebar-accent-foreground: #eeeeee;
  --agent-panel: #191919;
  --agent-panel-block: #2a2a2a;
  --popover: #191919;
  --popover-foreground: #eeeeee;
  --destructive-foreground: #111111;
  --surface: #191919;
  --field: #222222;
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4b4b4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --code-highlight: #222222;
  --code-number: #b4b4b4;
  --selection: #eeeeee;
  --selection-foreground: #111111;
  --chart-1: oklch(0.50 0.10 245);
  --chart-2: oklch(0.60 0.12 245);
  --chart-3: oklch(0.70 0.12 245);
  --chart-4: oklch(0.78 0.10 245);
  --chart-5: oklch(0.86 0.07 245);
  --shadow-pop: 0 8px 24px oklch(0 0 0 / 45%);
  --status-to-triage: oklch(0.70 0.17 25);
  --status-backlog: oklch(0.70 0.02 260);
  --status-ready: oklch(0.70 0.12 245);
  --status-in-progress: oklch(0.78 0.13 75);
  --status-in-review: oklch(0.68 0.14 300);
  --status-done: oklch(0.70 0.12 155);
  --badge-ok: oklch(0.70 0.12 155);
  --badge-warn: oklch(0.76 0.11 75);
  --overdue: oklch(0.72 0.19 27);
}

:root{
    color-scheme: light;
}

html{
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    -webkit-tap-highlight-color: transparent;
}
[data-slot="button"]{
    box-sizing: border-box;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: calc(var(--spacing) * 2);
    margin: 0;
    padding: 0;
    border: 0 solid var(--border);
    border-radius: var(--radius-md);
    background-color: transparent;
    -moz-appearance: button;
    -o-appearance: button;
    -webkit-appearance: button;
    -ms-appearance: button;
    appearance: button;
    color: inherit;
    font: inherit;
    font-size: var(--text-sm);
    line-height: var(--text-sm--line-height);
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    -moz-transition: all var(--default-transition-duration) var(--default-transition-timing-function);
    -o-transition: all var(--default-transition-duration) var(--default-transition-timing-function);
    -webkit-transition: all var(--default-transition-duration) var(--default-transition-timing-function);
    -ms-transition: all var(--default-transition-duration) var(--default-transition-timing-function);
    transition: all var(--default-transition-duration) var(--default-transition-timing-function);
    outline: none;
}

[data-slot="button"]:focus-visible{
    border-color: var(--ring);
    -moz-box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
    -o-box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
    -webkit-box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
    -ms-box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
}

[data-slot="button"]:disabled{
    pointer-events: none;
    opacity: 50%;
}

[data-slot="button"][aria-invalid="true"]{
    border-color: var(--destructive);
    -moz-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
    -o-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
    -webkit-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
    -ms-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
}

html.dark [data-slot="button"][aria-invalid="true"]{
    -moz-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
    -o-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
    -webkit-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
    -ms-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
}

[data-slot="button"] svg{
    pointer-events: none;
    flex-shrink: 0;
}

[data-slot="button"] svg:not([class*='size-']){
    width: calc(var(--spacing) * 4);
    height: calc(var(--spacing) * 4);
}

[data-slot="button"][data-variant="default"]{
    background-color: var(--primary);
    color: var(--primary-foreground);
}

[data-slot="button"][data-variant="destructive"]{
    background-color: var(--destructive);
    color: #fff;
}

[data-slot="button"][data-variant="destructive"]:focus-visible{
    -moz-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
    -o-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
    -webkit-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
    -ms-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
}

html.dark [data-slot="button"][data-variant="destructive"]{
    background-color: color-mix(in oklab, var(--destructive) 60%, transparent);
}

html.dark [data-slot="button"][data-variant="destructive"]:focus-visible{
    -moz-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
    -o-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
    -webkit-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
    -ms-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
}

[data-slot="button"][data-variant="outline"]{
    border-width: 1px;
    background-color: var(--background);
    -moz-box-shadow: var(--shadow-xs);
    -o-box-shadow: var(--shadow-xs);
    -webkit-box-shadow: var(--shadow-xs);
    -ms-box-shadow: var(--shadow-xs);
    box-shadow: var(--shadow-xs);
}

[data-slot="button"][data-variant="outline"]:focus-visible{
    -moz-box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent), var(--shadow-xs);
    -o-box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent), var(--shadow-xs);
    -webkit-box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent), var(--shadow-xs);
    -ms-box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent), var(--shadow-xs);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent), var(--shadow-xs);
}

html.dark [data-slot="button"][data-variant="outline"]{
    border-color: var(--input);
    background-color: color-mix(in oklab, var(--input) 30%, transparent);
}

[data-slot="button"][data-variant="secondary"]{
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

[data-slot="button"][data-variant="link"]{
    color: var(--primary);
    text-underline-offset: 4px;
}

@media (hover: hover){
    [data-slot="button"][data-variant="default"]:hover{
        background-color: color-mix(in oklab, var(--primary) 90%, transparent);
    }
    [data-slot="button"][data-variant="destructive"]:hover{
        background-color: color-mix(in oklab, var(--destructive) 90%, transparent);
    }
    [data-slot="button"][data-variant="outline"]:hover{
        background-color: var(--accent);
        color: var(--accent-foreground);
    }
    html.dark [data-slot="button"][data-variant="outline"]:hover{
        background-color: color-mix(in oklab, var(--input) 50%, transparent);
    }
    [data-slot="button"][data-variant="secondary"]:hover{
        background-color: color-mix(in oklab, var(--secondary) 80%, transparent);
    }
    [data-slot="button"][data-variant="ghost"]:hover{
        background-color: var(--accent);
        color: var(--accent-foreground);
    }
    html.dark [data-slot="button"][data-variant="ghost"]:hover{
        background-color: color-mix(in oklab, var(--accent) 50%, transparent);
    }
    [data-slot="button"][data-variant="link"]:hover{
        text-decoration-line: underline;
    }
}

[data-slot="button"][data-size="default"]{
    height: calc(var(--spacing) * 9);
    padding-inline: calc(var(--spacing) * 4);
    padding-block: calc(var(--spacing) * 2);
}

[data-slot="button"][data-size="default"]:has(> svg){
    padding-inline: calc(var(--spacing) * 3);
}

[data-slot="button"][data-size="xs"]{
    height: calc(var(--spacing) * 6);
    gap: calc(var(--spacing) * 1);
    padding-inline: calc(var(--spacing) * 2);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    line-height: var(--text-xs--line-height);
}

[data-slot="button"][data-size="xs"]:has(> svg){
    padding-inline: calc(var(--spacing) * 1.5);
}

[data-slot="button"][data-size="sm"]{
    height: calc(var(--spacing) * 8);
    gap: calc(var(--spacing) * 1.5);
    padding-inline: calc(var(--spacing) * 3);
    border-radius: var(--radius-md);
}

[data-slot="button"][data-size="sm"]:has(> svg){
    padding-inline: calc(var(--spacing) * 2.5);
}

[data-slot="button"][data-size="lg"]{
    height: calc(var(--spacing) * 10);
    padding-inline: calc(var(--spacing) * 6);
    border-radius: var(--radius-md);
}

[data-slot="button"][data-size="lg"]:has(> svg){
    padding-inline: calc(var(--spacing) * 4);
}

[data-slot="button"][data-size="icon"]{
    width: calc(var(--spacing) * 9);
    height: calc(var(--spacing) * 9);
}

[data-slot="button"][data-size="icon-xs"]{
    width: calc(var(--spacing) * 6);
    height: calc(var(--spacing) * 6);
}

[data-slot="button"][data-size="icon-sm"]{
    width: calc(var(--spacing) * 8);
    height: calc(var(--spacing) * 8);
}

[data-slot="button"][data-size="icon-lg"]{
    width: calc(var(--spacing) * 10);
    height: calc(var(--spacing) * 10);
}

[data-slot="button"][data-size="icon-xs"]{
    border-radius: var(--radius-md);
}

[data-slot="button"][data-size="xs"] svg:not([class*='size-']){
    width: calc(var(--spacing) * 3);
    height: calc(var(--spacing) * 3);
}

[data-slot="button"][data-size="icon-xs"] svg:not([class*='size-']){
    width: calc(var(--spacing) * 3);
    height: calc(var(--spacing) * 3);
}
[data-slot="table-container"]{
    position: relative;
    width: 100%;
    overflow-x: auto;
}

[data-slot="table"]{
    width: 100%;
    caption-side: bottom;
    font-size: var(--text-sm);
    line-height: var(--text-sm--line-height);
    border-collapse: collapse;
}

[data-slot="table-header"] tr{
    border-bottom: 1px solid var(--border);
}

[data-slot="table-body"] tr:last-child{
    border: 0;
}

[data-slot="table-footer"]{
    border-top: 1px solid var(--border);
    background-color: color-mix(in oklab, var(--muted) 50%, transparent);
    font-weight: var(--font-weight-medium);
}

[data-slot="table-footer"] > tr:last-child{
    border-bottom-width: 0;
}

[data-slot="table-row"]{
    border-bottom: 1px solid var(--border);
    -moz-transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    -o-transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    -webkit-transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    -ms-transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    -moz-transition-duration: var(--default-transition-duration);
    -o-transition-duration: var(--default-transition-duration);
    -webkit-transition-duration: var(--default-transition-duration);
    -ms-transition-duration: var(--default-transition-duration);
    transition-duration: var(--default-transition-duration);
    -moz-transition-timing-function: var(--default-transition-timing-function);
    -o-transition-timing-function: var(--default-transition-timing-function);
    -webkit-transition-timing-function: var(--default-transition-timing-function);
    -ms-transition-timing-function: var(--default-transition-timing-function);
    transition-timing-function: var(--default-transition-timing-function);
}

[data-slot="table-row"]:has([aria-expanded="true"]){
    background-color: color-mix(in oklab, var(--muted) 50%, transparent);
}

[data-slot="table-row"][data-state="selected"]{
    background-color: var(--muted);
}

@media (hover: hover){
    [data-slot="table-row"]:hover{
        background-color: color-mix(in oklab, var(--muted) 50%, transparent);
    }
}

[data-slot="table-head"]{
    height: calc(var(--spacing) * 10);
    padding-inline: calc(var(--spacing) * 2);
    text-align: left;
    vertical-align: middle;
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
    color: var(--foreground);
}

[data-slot="table-head"]:has([role="checkbox"]){
    padding-right: 0;
}

[data-slot="table-head"] > [role="checkbox"]{
    translate: 0 2px;
}

[data-slot="table-cell"]{
    padding: calc(var(--spacing) * 2);
    vertical-align: middle;
    white-space: nowrap;
}

[data-slot="table-cell"]:has([role="checkbox"]){
    padding-right: 0;
}

[data-slot="table-cell"] > [role="checkbox"]{
    translate: 0 2px;
}

[data-slot="table-caption"]{
    margin-top: calc(var(--spacing) * 4);
    font-size: var(--text-sm);
    line-height: var(--text-sm--line-height);
    color: var(--muted-foreground);
}
[data-slot="radio-group"]{
    display: grid;
    gap: calc(var(--spacing) * 3);
}

[data-slot="radio-group-item"]{
    box-sizing: border-box;
    position: relative;
    aspect-ratio: 1 / 1;
    width: calc(var(--spacing) * 4);
    height: calc(var(--spacing) * 4);
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border-radius: calc(infinity * 1px);
    border: 1px solid var(--input);
    background-color: transparent;
    color: var(--primary);
    -moz-box-shadow: var(--shadow-xs);
    -o-box-shadow: var(--shadow-xs);
    -webkit-box-shadow: var(--shadow-xs);
    -ms-box-shadow: var(--shadow-xs);
    box-shadow: var(--shadow-xs);
    -moz-appearance: button;
    -o-appearance: button;
    -webkit-appearance: button;
    -ms-appearance: button;
    appearance: button;
    font: inherit;
    cursor: pointer;
    -moz-transition: color var(--default-transition-duration) var(--default-transition-timing-function), box-shadow var(--default-transition-duration) var(--default-transition-timing-function);
    -o-transition: color var(--default-transition-duration) var(--default-transition-timing-function), box-shadow var(--default-transition-duration) var(--default-transition-timing-function);
    -webkit-transition: color var(--default-transition-duration) var(--default-transition-timing-function), box-shadow var(--default-transition-duration) var(--default-transition-timing-function);
    -ms-transition: color var(--default-transition-duration) var(--default-transition-timing-function), box-shadow var(--default-transition-duration) var(--default-transition-timing-function);
    transition: color var(--default-transition-duration) var(--default-transition-timing-function), box-shadow var(--default-transition-duration) var(--default-transition-timing-function);
    outline: none;
}

[data-slot="radio-group-item"]:focus-visible{
    border-color: var(--ring);
    -moz-box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
    -o-box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
    -webkit-box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
    -ms-box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
}

[data-slot="radio-group-item"]:disabled{
    cursor: not-allowed;
    opacity: 50%;
}

[data-slot="radio-group-item"][aria-invalid="true"]{
    border-color: var(--destructive);
    -moz-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
    -o-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
    -webkit-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
    -ms-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
}

html.dark [data-slot="radio-group-item"]{
    background-color: color-mix(in oklab, var(--input) 30%, transparent);
}

html.dark [data-slot="radio-group-item"][aria-invalid="true"]{
    -moz-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
    -o-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
    -webkit-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
    -ms-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
}

[data-slot="radio-group-item"] + input[type="radio"]{
    position: absolute;
    pointer-events: none;
    opacity: 0;
    margin: 0;
    width: 1px;
    height: 1px;
    -moz-transform: translateX(-100%);
    -o-transform: translateX(-100%);
    -webkit-transform: translateX(-100%);
    -ms-transform: translateX(-100%);
    transform: translateX(-100%);
}

[data-slot="radio-group-indicator"]{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-slot="radio-group-item"][data-state="unchecked"] [data-slot="radio-group-indicator"]{
    display: none;
}

[data-slot="radio-group-indicator"] svg{
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--spacing) * 2);
    height: calc(var(--spacing) * 2);
    -moz-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    fill: var(--primary);
}
@keyframes shadcn-backdrop-in{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}

@keyframes shadcn-dialog-in{
    from{
        opacity: 0;
        -moz-transform: scale(0.95);
        -o-transform: scale(0.95);
        -webkit-transform: scale(0.95);
        -ms-transform: scale(0.95);
        transform: scale(0.95);
    }
    to{
        opacity: 1;
        -moz-transform: scale(1);
        -o-transform: scale(1);
        -webkit-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes shadcn-dialog-out{
    from{
        opacity: 1;
        -moz-transform: scale(1);
        -o-transform: scale(1);
        -webkit-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1);
    }
    to{
        opacity: 0;
        -moz-transform: scale(0.95);
        -o-transform: scale(0.95);
        -webkit-transform: scale(0.95);
        -ms-transform: scale(0.95);
        transform: scale(0.95);
    }
}

[data-slot="dialog-overlay"]{
    display: none;
}

[data-slot="dialog-content"]::backdrop{
    background-color: rgb(0 0 0 / 0.5);
}

[data-slot="dialog-content"][open]::backdrop{
    animation: shadcn-backdrop-in 150ms ease;
}

[data-slot="dialog-content"]{
    white-space: normal;
    text-align: start;
    font-size: var(--text-base);
    font-weight: var(--font-weight-normal);
    font-style: normal;
    line-height: var(--leading-normal);
    letter-spacing: normal;
    text-transform: none;
    cursor: auto;
}

[data-slot="dialog-content"]{
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    z-index: 50;
    width: 100%;
    max-width: calc(100% - 2rem);
    max-height: calc(100% - 2rem);
    margin: auto;
    gap: calc(var(--spacing) * 4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background-color: var(--background);
    padding: calc(var(--spacing) * 6);
    color: var(--foreground);
    -moz-box-shadow: var(--shadow-lg);
    -o-box-shadow: var(--shadow-lg);
    -webkit-box-shadow: var(--shadow-lg);
    -ms-box-shadow: var(--shadow-lg);
    box-shadow: var(--shadow-lg);
    outline: none;
}

[data-slot="dialog-content"][open]{
    display: grid;
}

[data-slot="dialog-content"][data-state="open"]{
    animation: shadcn-dialog-in 200ms ease;
}

[data-slot="dialog-content"][data-state="closed"]{
    animation: shadcn-dialog-out 200ms ease;
}

@media (min-width: 640px){
    [data-slot="dialog-content"]{
        max-width: 32rem;
    }
}

[data-slot="dialog-content"] > [data-slot="dialog-close"]{
    box-sizing: border-box;
    position: absolute;
    top: calc(var(--spacing) * 4);
    right: calc(var(--spacing) * 4);
    display: inline-flex;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background-color: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    opacity: 0.7;
    -moz-transition: opacity var(--default-transition-duration) var(--default-transition-timing-function);
    -o-transition: opacity var(--default-transition-duration) var(--default-transition-timing-function);
    -webkit-transition: opacity var(--default-transition-duration) var(--default-transition-timing-function);
    -ms-transition: opacity var(--default-transition-duration) var(--default-transition-timing-function);
    transition: opacity var(--default-transition-duration) var(--default-transition-timing-function);
}

[data-slot="dialog-content"] > [data-slot="dialog-close"]:focus{
    outline: none;
    -moz-box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
    -o-box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
    -webkit-box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
    -ms-box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
    box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
}

[data-slot="dialog-content"] > [data-slot="dialog-close"]:disabled{
    pointer-events: none;
}

[data-slot="dialog-content"] > [data-slot="dialog-close"][data-state="open"]{
    background-color: var(--accent);
    color: var(--muted-foreground);
}

[data-slot="dialog-content"] > [data-slot="dialog-close"] svg{
    pointer-events: none;
    flex-shrink: 0;
}

[data-slot="dialog-content"] > [data-slot="dialog-close"] svg:not([class*='size-']){
    width: calc(var(--spacing) * 4);
    height: calc(var(--spacing) * 4);
}

[data-slot="dialog-content"] > [data-slot="dialog-close"] .sr-only{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

@media (hover: hover){
    [data-slot="dialog-content"] > [data-slot="dialog-close"]:hover{
        opacity: 1;
    }
}

[data-slot="dialog-header"]{
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing) * 2);
    text-align: center;
}

[data-slot="dialog-footer"]{
    display: flex;
    flex-direction: column-reverse;
    gap: calc(var(--spacing) * 2);
}

@media (min-width: 640px){
    [data-slot="dialog-header"]{
        text-align: left;
    }
    [data-slot="dialog-footer"]{
        flex-direction: row;
        justify-content: flex-end;
    }
}

[data-slot="dialog-title"]{
    margin: 0;
    font-size: var(--text-lg);
    line-height: 1;
    font-weight: var(--font-weight-semibold);
}

[data-slot="dialog-description"]{
    margin: 0;
    font-size: var(--text-sm);
    line-height: var(--text-sm--line-height);
    color: var(--muted-foreground);
}
[data-slot="alert-dialog-overlay"]{
    display: none;
}

[data-slot="alert-dialog-content"]::backdrop{
    background-color: rgb(0 0 0 / 0.5);
}

[data-slot="alert-dialog-content"][open]::backdrop{
    animation: shadcn-backdrop-in 150ms ease;
}

[data-slot="alert-dialog-content"]{
    white-space: normal;
    text-align: start;
    font-size: var(--text-base);
    font-weight: var(--font-weight-normal);
    font-style: normal;
    line-height: var(--leading-normal);
    letter-spacing: normal;
    text-transform: none;
    cursor: auto;
}

[data-slot="alert-dialog-content"]{
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    z-index: 50;
    width: 100%;
    max-width: calc(100% - 2rem);
    max-height: calc(100% - 2rem);
    margin: auto;
    gap: calc(var(--spacing) * 4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background-color: var(--background);
    padding: calc(var(--spacing) * 6);
    color: var(--foreground);
    -moz-box-shadow: var(--shadow-lg);
    -o-box-shadow: var(--shadow-lg);
    -webkit-box-shadow: var(--shadow-lg);
    -ms-box-shadow: var(--shadow-lg);
    box-shadow: var(--shadow-lg);
    outline: none;
}

[data-slot="alert-dialog-content"][open]{
    display: grid;
}

[data-slot="alert-dialog-content"][data-state="open"]{
    animation: shadcn-dialog-in 200ms ease;
}

[data-slot="alert-dialog-content"][data-state="closed"]{
    animation: shadcn-dialog-out 200ms ease;
}

[data-slot="alert-dialog-content"][data-size="sm"]{
    max-width: 20rem;
}

@media (min-width: 640px){
    [data-slot="alert-dialog-content"][data-size="default"]{
        max-width: 32rem;
    }
}

[data-slot="alert-dialog-header"]{
    display: grid;
    grid-template-rows: auto 1fr;
    place-items: center;
    gap: calc(var(--spacing) * 1.5);
    text-align: center;
}

[data-slot="alert-dialog-header"]:has([data-slot="alert-dialog-media"]){
    grid-template-rows: auto auto 1fr;
    column-gap: calc(var(--spacing) * 6);
}

[data-slot="alert-dialog-footer"]{
    display: flex;
    flex-direction: column-reverse;
    gap: calc(var(--spacing) * 2);
}

[data-slot="alert-dialog-content"][data-size="sm"] [data-slot="alert-dialog-footer"]{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

[data-slot="alert-dialog-title"]{
    margin: 0;
    font-size: var(--text-lg);
    line-height: var(--text-lg--line-height);
    font-weight: var(--font-weight-semibold);
}

[data-slot="alert-dialog-description"]{
    margin: 0;
    font-size: var(--text-sm);
    line-height: var(--text-sm--line-height);
    color: var(--muted-foreground);
}

[data-slot="alert-dialog-media"]{
    box-sizing: border-box;
    margin-bottom: calc(var(--spacing) * 2);
    display: inline-flex;
    width: calc(var(--spacing) * 16);
    height: calc(var(--spacing) * 16);
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background-color: var(--muted);
}

[data-slot="alert-dialog-media"] > svg:not([class*='size-']){
    width: calc(var(--spacing) * 8);
    height: calc(var(--spacing) * 8);
}

@media (min-width: 640px){
    [data-slot="alert-dialog-content"][data-size="default"] [data-slot="alert-dialog-header"]{
        place-items: start;
        text-align: left;
    }
    [data-slot="alert-dialog-content"][data-size="default"] [data-slot="alert-dialog-header"]:has([data-slot="alert-dialog-media"]){
        grid-template-rows: auto 1fr;
    }
    [data-slot="alert-dialog-footer"]{
        flex-direction: row;
        justify-content: flex-end;
    }
    [data-slot="alert-dialog-content"][data-size="default"]:has([data-slot="alert-dialog-media"]) [data-slot="alert-dialog-title"]{
        grid-column-start: 2;
    }
    [data-slot="alert-dialog-content"][data-size="default"] [data-slot="alert-dialog-media"]{
        grid-row: span 2 / span 2;
    }
}

[data-slot="alert-dialog-action"]{
    box-sizing: border-box;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: calc(var(--spacing) * 2);
    margin: 0;
    padding: 0;
    border: 0 solid var(--border);
    border-radius: var(--radius-md);
    background-color: transparent;
    -moz-appearance: button;
    -o-appearance: button;
    -webkit-appearance: button;
    -ms-appearance: button;
    appearance: button;
    color: inherit;
    font: inherit;
    font-size: var(--text-sm);
    line-height: var(--text-sm--line-height);
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    -moz-transition: all var(--default-transition-duration) var(--default-transition-timing-function);
    -o-transition: all var(--default-transition-duration) var(--default-transition-timing-function);
    -webkit-transition: all var(--default-transition-duration) var(--default-transition-timing-function);
    -ms-transition: all var(--default-transition-duration) var(--default-transition-timing-function);
    transition: all var(--default-transition-duration) var(--default-transition-timing-function);
    outline: none;
}

[data-slot="alert-dialog-action"]:focus-visible{
    border-color: var(--ring);
    -moz-box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
    -o-box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
    -webkit-box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
    -ms-box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
}

[data-slot="alert-dialog-action"]:disabled{
    pointer-events: none;
    opacity: 50%;
}

[data-slot="alert-dialog-action"][aria-invalid="true"]{
    border-color: var(--destructive);
    -moz-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
    -o-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
    -webkit-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
    -ms-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
}

html.dark [data-slot="alert-dialog-action"][aria-invalid="true"]{
    -moz-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
    -o-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
    -webkit-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
    -ms-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
}

[data-slot="alert-dialog-action"] svg{
    pointer-events: none;
    flex-shrink: 0;
}

[data-slot="alert-dialog-action"] svg:not([class*='size-']){
    width: calc(var(--spacing) * 4);
    height: calc(var(--spacing) * 4);
}

[data-slot="alert-dialog-action"][data-variant="default"]{
    background-color: var(--primary);
    color: var(--primary-foreground);
}

[data-slot="alert-dialog-action"][data-variant="destructive"]{
    background-color: var(--destructive);
    color: #fff;
}

[data-slot="alert-dialog-action"][data-variant="destructive"]:focus-visible{
    -moz-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
    -o-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
    -webkit-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
    -ms-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
}

html.dark [data-slot="alert-dialog-action"][data-variant="destructive"]{
    background-color: color-mix(in oklab, var(--destructive) 60%, transparent);
}

html.dark [data-slot="alert-dialog-action"][data-variant="destructive"]:focus-visible{
    -moz-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
    -o-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
    -webkit-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
    -ms-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
}

[data-slot="alert-dialog-action"][data-variant="outline"]{
    border-width: 1px;
    background-color: var(--background);
    -moz-box-shadow: var(--shadow-xs);
    -o-box-shadow: var(--shadow-xs);
    -webkit-box-shadow: var(--shadow-xs);
    -ms-box-shadow: var(--shadow-xs);
    box-shadow: var(--shadow-xs);
}

[data-slot="alert-dialog-action"][data-variant="outline"]:focus-visible{
    -moz-box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent), var(--shadow-xs);
    -o-box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent), var(--shadow-xs);
    -webkit-box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent), var(--shadow-xs);
    -ms-box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent), var(--shadow-xs);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent), var(--shadow-xs);
}

html.dark [data-slot="alert-dialog-action"][data-variant="outline"]{
    border-color: var(--input);
    background-color: color-mix(in oklab, var(--input) 30%, transparent);
}

[data-slot="alert-dialog-action"][data-variant="secondary"]{
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

[data-slot="alert-dialog-action"][data-variant="link"]{
    color: var(--primary);
    text-underline-offset: 4px;
}

@media (hover: hover){
    [data-slot="alert-dialog-action"][data-variant="default"]:hover{
        background-color: color-mix(in oklab, var(--primary) 90%, transparent);
    }
    [data-slot="alert-dialog-action"][data-variant="destructive"]:hover{
        background-color: color-mix(in oklab, var(--destructive) 90%, transparent);
    }
    [data-slot="alert-dialog-action"][data-variant="outline"]:hover{
        background-color: var(--accent);
        color: var(--accent-foreground);
    }
    html.dark [data-slot="alert-dialog-action"][data-variant="outline"]:hover{
        background-color: color-mix(in oklab, var(--input) 50%, transparent);
    }
    [data-slot="alert-dialog-action"][data-variant="secondary"]:hover{
        background-color: color-mix(in oklab, var(--secondary) 80%, transparent);
    }
    [data-slot="alert-dialog-action"][data-variant="ghost"]:hover{
        background-color: var(--accent);
        color: var(--accent-foreground);
    }
    html.dark [data-slot="alert-dialog-action"][data-variant="ghost"]:hover{
        background-color: color-mix(in oklab, var(--accent) 50%, transparent);
    }
    [data-slot="alert-dialog-action"][data-variant="link"]:hover{
        text-decoration-line: underline;
    }
}

[data-slot="alert-dialog-action"][data-size="default"]{
    height: calc(var(--spacing) * 9);
    padding-inline: calc(var(--spacing) * 4);
    padding-block: calc(var(--spacing) * 2);
}

[data-slot="alert-dialog-action"][data-size="default"]:has(> svg){
    padding-inline: calc(var(--spacing) * 3);
}

[data-slot="alert-dialog-action"][data-size="xs"]{
    height: calc(var(--spacing) * 6);
    gap: calc(var(--spacing) * 1);
    padding-inline: calc(var(--spacing) * 2);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    line-height: var(--text-xs--line-height);
}

[data-slot="alert-dialog-action"][data-size="xs"]:has(> svg){
    padding-inline: calc(var(--spacing) * 1.5);
}

[data-slot="alert-dialog-action"][data-size="sm"]{
    height: calc(var(--spacing) * 8);
    gap: calc(var(--spacing) * 1.5);
    padding-inline: calc(var(--spacing) * 3);
    border-radius: var(--radius-md);
}

[data-slot="alert-dialog-action"][data-size="sm"]:has(> svg){
    padding-inline: calc(var(--spacing) * 2.5);
}

[data-slot="alert-dialog-action"][data-size="lg"]{
    height: calc(var(--spacing) * 10);
    padding-inline: calc(var(--spacing) * 6);
    border-radius: var(--radius-md);
}

[data-slot="alert-dialog-action"][data-size="lg"]:has(> svg){
    padding-inline: calc(var(--spacing) * 4);
}

[data-slot="alert-dialog-action"][data-size="icon"]{
    width: calc(var(--spacing) * 9);
    height: calc(var(--spacing) * 9);
}

[data-slot="alert-dialog-action"][data-size="icon-xs"]{
    width: calc(var(--spacing) * 6);
    height: calc(var(--spacing) * 6);
}

[data-slot="alert-dialog-action"][data-size="icon-sm"]{
    width: calc(var(--spacing) * 8);
    height: calc(var(--spacing) * 8);
}

[data-slot="alert-dialog-action"][data-size="icon-lg"]{
    width: calc(var(--spacing) * 10);
    height: calc(var(--spacing) * 10);
}

[data-slot="alert-dialog-action"][data-size="icon-xs"]{
    border-radius: var(--radius-md);
}

[data-slot="alert-dialog-action"][data-size="xs"] svg:not([class*='size-']){
    width: calc(var(--spacing) * 3);
    height: calc(var(--spacing) * 3);
}

[data-slot="alert-dialog-action"][data-size="icon-xs"] svg:not([class*='size-']){
    width: calc(var(--spacing) * 3);
    height: calc(var(--spacing) * 3);
}

[data-slot="alert-dialog-cancel"]{
    box-sizing: border-box;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: calc(var(--spacing) * 2);
    margin: 0;
    padding: 0;
    border: 0 solid var(--border);
    border-radius: var(--radius-md);
    background-color: transparent;
    -moz-appearance: button;
    -o-appearance: button;
    -webkit-appearance: button;
    -ms-appearance: button;
    appearance: button;
    color: inherit;
    font: inherit;
    font-size: var(--text-sm);
    line-height: var(--text-sm--line-height);
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    -moz-transition: all var(--default-transition-duration) var(--default-transition-timing-function);
    -o-transition: all var(--default-transition-duration) var(--default-transition-timing-function);
    -webkit-transition: all var(--default-transition-duration) var(--default-transition-timing-function);
    -ms-transition: all var(--default-transition-duration) var(--default-transition-timing-function);
    transition: all var(--default-transition-duration) var(--default-transition-timing-function);
    outline: none;
}

[data-slot="alert-dialog-cancel"]:focus-visible{
    border-color: var(--ring);
    -moz-box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
    -o-box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
    -webkit-box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
    -ms-box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
}

[data-slot="alert-dialog-cancel"]:disabled{
    pointer-events: none;
    opacity: 50%;
}

[data-slot="alert-dialog-cancel"][aria-invalid="true"]{
    border-color: var(--destructive);
    -moz-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
    -o-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
    -webkit-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
    -ms-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
}

html.dark [data-slot="alert-dialog-cancel"][aria-invalid="true"]{
    -moz-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
    -o-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
    -webkit-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
    -ms-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
}

[data-slot="alert-dialog-cancel"] svg{
    pointer-events: none;
    flex-shrink: 0;
}

[data-slot="alert-dialog-cancel"] svg:not([class*='size-']){
    width: calc(var(--spacing) * 4);
    height: calc(var(--spacing) * 4);
}

[data-slot="alert-dialog-cancel"][data-variant="default"]{
    background-color: var(--primary);
    color: var(--primary-foreground);
}

[data-slot="alert-dialog-cancel"][data-variant="destructive"]{
    background-color: var(--destructive);
    color: #fff;
}

[data-slot="alert-dialog-cancel"][data-variant="destructive"]:focus-visible{
    -moz-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
    -o-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
    -webkit-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
    -ms-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
}

html.dark [data-slot="alert-dialog-cancel"][data-variant="destructive"]{
    background-color: color-mix(in oklab, var(--destructive) 60%, transparent);
}

html.dark [data-slot="alert-dialog-cancel"][data-variant="destructive"]:focus-visible{
    -moz-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
    -o-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
    -webkit-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
    -ms-box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 40%, transparent);
}

[data-slot="alert-dialog-cancel"][data-variant="outline"]{
    border-width: 1px;
    background-color: var(--background);
    -moz-box-shadow: var(--shadow-xs);
    -o-box-shadow: var(--shadow-xs);
    -webkit-box-shadow: var(--shadow-xs);
    -ms-box-shadow: var(--shadow-xs);
    box-shadow: var(--shadow-xs);
}

[data-slot="alert-dialog-cancel"][data-variant="outline"]:focus-visible{
    -moz-box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent), var(--shadow-xs);
    -o-box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent), var(--shadow-xs);
    -webkit-box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent), var(--shadow-xs);
    -ms-box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent), var(--shadow-xs);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent), var(--shadow-xs);
}

html.dark [data-slot="alert-dialog-cancel"][data-variant="outline"]{
    border-color: var(--input);
    background-color: color-mix(in oklab, var(--input) 30%, transparent);
}

[data-slot="alert-dialog-cancel"][data-variant="secondary"]{
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

[data-slot="alert-dialog-cancel"][data-variant="link"]{
    color: var(--primary);
    text-underline-offset: 4px;
}

@media (hover: hover){
    [data-slot="alert-dialog-cancel"][data-variant="default"]:hover{
        background-color: color-mix(in oklab, var(--primary) 90%, transparent);
    }
    [data-slot="alert-dialog-cancel"][data-variant="destructive"]:hover{
        background-color: color-mix(in oklab, var(--destructive) 90%, transparent);
    }
    [data-slot="alert-dialog-cancel"][data-variant="outline"]:hover{
        background-color: var(--accent);
        color: var(--accent-foreground);
    }
    html.dark [data-slot="alert-dialog-cancel"][data-variant="outline"]:hover{
        background-color: color-mix(in oklab, var(--input) 50%, transparent);
    }
    [data-slot="alert-dialog-cancel"][data-variant="secondary"]:hover{
        background-color: color-mix(in oklab, var(--secondary) 80%, transparent);
    }
    [data-slot="alert-dialog-cancel"][data-variant="ghost"]:hover{
        background-color: var(--accent);
        color: var(--accent-foreground);
    }
    html.dark [data-slot="alert-dialog-cancel"][data-variant="ghost"]:hover{
        background-color: color-mix(in oklab, var(--accent) 50%, transparent);
    }
    [data-slot="alert-dialog-cancel"][data-variant="link"]:hover{
        text-decoration-line: underline;
    }
}

[data-slot="alert-dialog-cancel"][data-size="default"]{
    height: calc(var(--spacing) * 9);
    padding-inline: calc(var(--spacing) * 4);
    padding-block: calc(var(--spacing) * 2);
}

[data-slot="alert-dialog-cancel"][data-size="default"]:has(> svg){
    padding-inline: calc(var(--spacing) * 3);
}

[data-slot="alert-dialog-cancel"][data-size="xs"]{
    height: calc(var(--spacing) * 6);
    gap: calc(var(--spacing) * 1);
    padding-inline: calc(var(--spacing) * 2);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    line-height: var(--text-xs--line-height);
}

[data-slot="alert-dialog-cancel"][data-size="xs"]:has(> svg){
    padding-inline: calc(var(--spacing) * 1.5);
}

[data-slot="alert-dialog-cancel"][data-size="sm"]{
    height: calc(var(--spacing) * 8);
    gap: calc(var(--spacing) * 1.5);
    padding-inline: calc(var(--spacing) * 3);
    border-radius: var(--radius-md);
}

[data-slot="alert-dialog-cancel"][data-size="sm"]:has(> svg){
    padding-inline: calc(var(--spacing) * 2.5);
}

[data-slot="alert-dialog-cancel"][data-size="lg"]{
    height: calc(var(--spacing) * 10);
    padding-inline: calc(var(--spacing) * 6);
    border-radius: var(--radius-md);
}

[data-slot="alert-dialog-cancel"][data-size="lg"]:has(> svg){
    padding-inline: calc(var(--spacing) * 4);
}

[data-slot="alert-dialog-cancel"][data-size="icon"]{
    width: calc(var(--spacing) * 9);
    height: calc(var(--spacing) * 9);
}

[data-slot="alert-dialog-cancel"][data-size="icon-xs"]{
    width: calc(var(--spacing) * 6);
    height: calc(var(--spacing) * 6);
}

[data-slot="alert-dialog-cancel"][data-size="icon-sm"]{
    width: calc(var(--spacing) * 8);
    height: calc(var(--spacing) * 8);
}

[data-slot="alert-dialog-cancel"][data-size="icon-lg"]{
    width: calc(var(--spacing) * 10);
    height: calc(var(--spacing) * 10);
}

[data-slot="alert-dialog-cancel"][data-size="icon-xs"]{
    border-radius: var(--radius-md);
}

[data-slot="alert-dialog-cancel"][data-size="xs"] svg:not([class*='size-']){
    width: calc(var(--spacing) * 3);
    height: calc(var(--spacing) * 3);
}

[data-slot="alert-dialog-cancel"][data-size="icon-xs"] svg:not([class*='size-']){
    width: calc(var(--spacing) * 3);
    height: calc(var(--spacing) * 3);
}
@keyframes shadcn-floating-enter-from-top{
    from{
        opacity: 0;
        -moz-transform: translateY(calc(-1 * calc(var(--spacing) * 2))) scale(0.95);
        -o-transform: translateY(calc(-1 * calc(var(--spacing) * 2))) scale(0.95);
        -webkit-transform: translateY(calc(-1 * calc(var(--spacing) * 2))) scale(0.95);
        -ms-transform: translateY(calc(-1 * calc(var(--spacing) * 2))) scale(0.95);
        transform: translateY(calc(-1 * calc(var(--spacing) * 2))) scale(0.95);
    }
    to{
        opacity: 1;
        -moz-transform: translateY(0) scale(1);
        -o-transform: translateY(0) scale(1);
        -webkit-transform: translateY(0) scale(1);
        -ms-transform: translateY(0) scale(1);
        transform: translateY(0) scale(1);
    }
}

@keyframes shadcn-floating-enter-from-bottom{
    from{
        opacity: 0;
        -moz-transform: translateY(calc(var(--spacing) * 2)) scale(0.95);
        -o-transform: translateY(calc(var(--spacing) * 2)) scale(0.95);
        -webkit-transform: translateY(calc(var(--spacing) * 2)) scale(0.95);
        -ms-transform: translateY(calc(var(--spacing) * 2)) scale(0.95);
        transform: translateY(calc(var(--spacing) * 2)) scale(0.95);
    }
    to{
        opacity: 1;
        -moz-transform: translateY(0) scale(1);
        -o-transform: translateY(0) scale(1);
        -webkit-transform: translateY(0) scale(1);
        -ms-transform: translateY(0) scale(1);
        transform: translateY(0) scale(1);
    }
}

@keyframes shadcn-floating-enter-from-left{
    from{
        opacity: 0;
        -moz-transform: translateX(calc(-1 * calc(var(--spacing) * 2))) scale(0.95);
        -o-transform: translateX(calc(-1 * calc(var(--spacing) * 2))) scale(0.95);
        -webkit-transform: translateX(calc(-1 * calc(var(--spacing) * 2))) scale(0.95);
        -ms-transform: translateX(calc(-1 * calc(var(--spacing) * 2))) scale(0.95);
        transform: translateX(calc(-1 * calc(var(--spacing) * 2))) scale(0.95);
    }
    to{
        opacity: 1;
        -moz-transform: translateX(0) scale(1);
        -o-transform: translateX(0) scale(1);
        -webkit-transform: translateX(0) scale(1);
        -ms-transform: translateX(0) scale(1);
        transform: translateX(0) scale(1);
    }
}

@keyframes shadcn-floating-enter-from-right{
    from{
        opacity: 0;
        -moz-transform: translateX(calc(var(--spacing) * 2)) scale(0.95);
        -o-transform: translateX(calc(var(--spacing) * 2)) scale(0.95);
        -webkit-transform: translateX(calc(var(--spacing) * 2)) scale(0.95);
        -ms-transform: translateX(calc(var(--spacing) * 2)) scale(0.95);
        transform: translateX(calc(var(--spacing) * 2)) scale(0.95);
    }
    to{
        opacity: 1;
        -moz-transform: translateX(0) scale(1);
        -o-transform: translateX(0) scale(1);
        -webkit-transform: translateX(0) scale(1);
        -ms-transform: translateX(0) scale(1);
        transform: translateX(0) scale(1);
    }
}

@keyframes shadcn-floating-exit{
    from{
        opacity: 1;
        -moz-transform: scale(1);
        -o-transform: scale(1);
        -webkit-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1);
    }
    to{
        opacity: 0;
        -moz-transform: scale(0.95);
        -o-transform: scale(0.95);
        -webkit-transform: scale(0.95);
        -ms-transform: scale(0.95);
        transform: scale(0.95);
    }
}

[data-slot="popover-content"]{
    box-sizing: border-box;
    z-index: 50;
    width: calc(var(--spacing) * 72);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background-color: var(--popover);
    padding: calc(var(--spacing) * 4);
    color: var(--popover-foreground);
    -moz-box-shadow: var(--shadow-md);
    -o-box-shadow: var(--shadow-md);
    -webkit-box-shadow: var(--shadow-md);
    -ms-box-shadow: var(--shadow-md);
    box-shadow: var(--shadow-md);
    outline: none;
}

[data-slot="popover-content"][data-state="open"][data-side="bottom"]{
    animation: shadcn-floating-enter-from-top 150ms ease;
}

[data-slot="popover-content"][data-state="open"][data-side="top"]{
    animation: shadcn-floating-enter-from-bottom 150ms ease;
}

[data-slot="popover-content"][data-state="open"][data-side="right"]{
    animation: shadcn-floating-enter-from-left 150ms ease;
}

[data-slot="popover-content"][data-state="open"][data-side="left"]{
    animation: shadcn-floating-enter-from-right 150ms ease;
}

[data-slot="popover-content"][data-state="closed"]{
    animation: shadcn-floating-exit 150ms ease;
}

[data-slot="popover-anchor"]{
    display: contents;
}

[data-slot="popover-header"]{
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing) * 1);
    font-size: var(--text-sm);
    line-height: var(--text-sm--line-height);
}

[data-slot="popover-title"]{
    font-weight: var(--font-weight-medium);
}

[data-slot="popover-description"]{
    margin: 0;
    color: var(--muted-foreground);
}
[data-slot="dropdown-menu-content"]{
    box-sizing: border-box;
    position: fixed;
    inset: auto;
    margin: 0;
    z-index: 50;
    min-width: 8rem;
    max-height: calc(100vh - calc(var(--spacing) * 4));
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background-color: var(--popover);
    padding: calc(var(--spacing) * 1);
    color: var(--popover-foreground);
    -moz-box-shadow: var(--shadow-md);
    -o-box-shadow: var(--shadow-md);
    -webkit-box-shadow: var(--shadow-md);
    -ms-box-shadow: var(--shadow-md);
    box-shadow: var(--shadow-md);
    outline: none;
}

[data-slot="dropdown-menu-content"][data-side="bottom"][data-align="start"]{
    -moz-transform-origin: top left;
    -o-transform-origin: top left;
    -webkit-transform-origin: top left;
    -ms-transform-origin: top left;
    transform-origin: top left;
}

[data-slot="dropdown-menu-content"][data-side="bottom"][data-align="center"]{
    -moz-transform-origin: top center;
    -o-transform-origin: top center;
    -webkit-transform-origin: top center;
    -ms-transform-origin: top center;
    transform-origin: top center;
}

[data-slot="dropdown-menu-content"][data-side="bottom"][data-align="end"]{
    -moz-transform-origin: top right;
    -o-transform-origin: top right;
    -webkit-transform-origin: top right;
    -ms-transform-origin: top right;
    transform-origin: top right;
}

[data-slot="dropdown-menu-content"][data-side="top"][data-align="start"]{
    -moz-transform-origin: bottom left;
    -o-transform-origin: bottom left;
    -webkit-transform-origin: bottom left;
    -ms-transform-origin: bottom left;
    transform-origin: bottom left;
}

[data-slot="dropdown-menu-content"][data-side="top"][data-align="center"]{
    -moz-transform-origin: bottom center;
    -o-transform-origin: bottom center;
    -webkit-transform-origin: bottom center;
    -ms-transform-origin: bottom center;
    transform-origin: bottom center;
}

[data-slot="dropdown-menu-content"][data-side="top"][data-align="end"]{
    -moz-transform-origin: bottom right;
    -o-transform-origin: bottom right;
    -webkit-transform-origin: bottom right;
    -ms-transform-origin: bottom right;
    transform-origin: bottom right;
}

[data-slot="dropdown-menu-content"][data-side="left"][data-align="start"]{
    -moz-transform-origin: right top;
    -o-transform-origin: right top;
    -webkit-transform-origin: right top;
    -ms-transform-origin: right top;
    transform-origin: right top;
}

[data-slot="dropdown-menu-content"][data-side="left"][data-align="center"]{
    -moz-transform-origin: right center;
    -o-transform-origin: right center;
    -webkit-transform-origin: right center;
    -ms-transform-origin: right center;
    transform-origin: right center;
}

[data-slot="dropdown-menu-content"][data-side="left"][data-align="end"]{
    -moz-transform-origin: right bottom;
    -o-transform-origin: right bottom;
    -webkit-transform-origin: right bottom;
    -ms-transform-origin: right bottom;
    transform-origin: right bottom;
}

[data-slot="dropdown-menu-content"][data-side="right"][data-align="start"]{
    -moz-transform-origin: left top;
    -o-transform-origin: left top;
    -webkit-transform-origin: left top;
    -ms-transform-origin: left top;
    transform-origin: left top;
}

[data-slot="dropdown-menu-content"][data-side="right"][data-align="center"]{
    -moz-transform-origin: left center;
    -o-transform-origin: left center;
    -webkit-transform-origin: left center;
    -ms-transform-origin: left center;
    transform-origin: left center;
}

[data-slot="dropdown-menu-content"][data-side="right"][data-align="end"]{
    -moz-transform-origin: left bottom;
    -o-transform-origin: left bottom;
    -webkit-transform-origin: left bottom;
    -ms-transform-origin: left bottom;
    transform-origin: left bottom;
}

[data-slot="dropdown-menu-content"][data-state="open"][data-side="bottom"]{
    animation: shadcn-floating-enter-from-top 150ms ease both;
}

[data-slot="dropdown-menu-content"][data-state="open"][data-side="top"]{
    animation: shadcn-floating-enter-from-bottom 150ms ease both;
}

[data-slot="dropdown-menu-content"][data-state="open"][data-side="left"]{
    animation: shadcn-floating-enter-from-right 150ms ease both;
}

[data-slot="dropdown-menu-content"][data-state="open"][data-side="right"]{
    animation: shadcn-floating-enter-from-left 150ms ease both;
}

[data-slot="dropdown-menu-content"][data-state="closed"]{
    animation: shadcn-floating-exit 150ms ease both;
}

[data-slot="dropdown-menu-sub-content"]{
    box-sizing: border-box;
    position: fixed;
    inset: auto;
    margin: 0;
    z-index: 50;
    min-width: 8rem;
    max-height: none;
    overflow-x: hidden;
    overflow-y: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background-color: var(--popover);
    padding: calc(var(--spacing) * 1);
    color: var(--popover-foreground);
    -moz-box-shadow: var(--shadow-lg);
    -o-box-shadow: var(--shadow-lg);
    -webkit-box-shadow: var(--shadow-lg);
    -ms-box-shadow: var(--shadow-lg);
    box-shadow: var(--shadow-lg);
    outline: none;
}

[data-slot="dropdown-menu-sub-content"][data-side="bottom"][data-align="start"]{
    -moz-transform-origin: top left;
    -o-transform-origin: top left;
    -webkit-transform-origin: top left;
    -ms-transform-origin: top left;
    transform-origin: top left;
}

[data-slot="dropdown-menu-sub-content"][data-side="bottom"][data-align="center"]{
    -moz-transform-origin: top center;
    -o-transform-origin: top center;
    -webkit-transform-origin: top center;
    -ms-transform-origin: top center;
    transform-origin: top center;
}

[data-slot="dropdown-menu-sub-content"][data-side="bottom"][data-align="end"]{
    -moz-transform-origin: top right;
    -o-transform-origin: top right;
    -webkit-transform-origin: top right;
    -ms-transform-origin: top right;
    transform-origin: top right;
}

[data-slot="dropdown-menu-sub-content"][data-side="top"][data-align="start"]{
    -moz-transform-origin: bottom left;
    -o-transform-origin: bottom left;
    -webkit-transform-origin: bottom left;
    -ms-transform-origin: bottom left;
    transform-origin: bottom left;
}

[data-slot="dropdown-menu-sub-content"][data-side="top"][data-align="center"]{
    -moz-transform-origin: bottom center;
    -o-transform-origin: bottom center;
    -webkit-transform-origin: bottom center;
    -ms-transform-origin: bottom center;
    transform-origin: bottom center;
}

[data-slot="dropdown-menu-sub-content"][data-side="top"][data-align="end"]{
    -moz-transform-origin: bottom right;
    -o-transform-origin: bottom right;
    -webkit-transform-origin: bottom right;
    -ms-transform-origin: bottom right;
    transform-origin: bottom right;
}

[data-slot="dropdown-menu-sub-content"][data-side="left"][data-align="start"]{
    -moz-transform-origin: right top;
    -o-transform-origin: right top;
    -webkit-transform-origin: right top;
    -ms-transform-origin: right top;
    transform-origin: right top;
}

[data-slot="dropdown-menu-sub-content"][data-side="left"][data-align="center"]{
    -moz-transform-origin: right center;
    -o-transform-origin: right center;
    -webkit-transform-origin: right center;
    -ms-transform-origin: right center;
    transform-origin: right center;
}

[data-slot="dropdown-menu-sub-content"][data-side="left"][data-align="end"]{
    -moz-transform-origin: right bottom;
    -o-transform-origin: right bottom;
    -webkit-transform-origin: right bottom;
    -ms-transform-origin: right bottom;
    transform-origin: right bottom;
}

[data-slot="dropdown-menu-sub-content"][data-side="right"][data-align="start"]{
    -moz-transform-origin: left top;
    -o-transform-origin: left top;
    -webkit-transform-origin: left top;
    -ms-transform-origin: left top;
    transform-origin: left top;
}

[data-slot="dropdown-menu-sub-content"][data-side="right"][data-align="center"]{
    -moz-transform-origin: left center;
    -o-transform-origin: left center;
    -webkit-transform-origin: left center;
    -ms-transform-origin: left center;
    transform-origin: left center;
}

[data-slot="dropdown-menu-sub-content"][data-side="right"][data-align="end"]{
    -moz-transform-origin: left bottom;
    -o-transform-origin: left bottom;
    -webkit-transform-origin: left bottom;
    -ms-transform-origin: left bottom;
    transform-origin: left bottom;
}

[data-slot="dropdown-menu-sub-content"][data-state="open"][data-side="bottom"]{
    animation: shadcn-floating-enter-from-top 150ms ease both;
}

[data-slot="dropdown-menu-sub-content"][data-state="open"][data-side="top"]{
    animation: shadcn-floating-enter-from-bottom 150ms ease both;
}

[data-slot="dropdown-menu-sub-content"][data-state="open"][data-side="left"]{
    animation: shadcn-floating-enter-from-right 150ms ease both;
}

[data-slot="dropdown-menu-sub-content"][data-state="open"][data-side="right"]{
    animation: shadcn-floating-enter-from-left 150ms ease both;
}

[data-slot="dropdown-menu-sub-content"][data-state="closed"]{
    animation: shadcn-floating-exit 150ms ease both;
}

[data-slot="dropdown-menu-item"]{
    box-sizing: border-box;
    position: relative;
    display: flex;
    cursor: default;
    align-items: center;
    gap: calc(var(--spacing) * 2);
    border-radius: var(--radius-sm);
    padding-inline: calc(var(--spacing) * 2);
    padding-block: calc(var(--spacing) * 1.5);
    font-size: var(--text-sm);
    line-height: var(--text-sm--line-height);
    outline: none;
    -moz-user-select: none;
    -o-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    color: inherit;
    text-decoration: none;
}

[data-slot="dropdown-menu-item"]:focus, [data-slot="dropdown-menu-item"][data-highlighted]{
    background-color: var(--accent);
    color: var(--accent-foreground);
}

[data-slot="dropdown-menu-item"] svg{
    pointer-events: none;
    flex-shrink: 0;
}

[data-slot="dropdown-menu-item"] svg:not([class*='size-']){
    width: calc(var(--spacing) * 4);
    height: calc(var(--spacing) * 4);
}

[data-slot="dropdown-menu-item"] svg:not([class*='text-']){
    color: var(--muted-foreground);
}

[data-slot="dropdown-menu-item"][data-disabled]{
    pointer-events: none;
    opacity: 50%;
}

[data-slot="dropdown-menu-item"][data-inset]{
    padding-left: calc(var(--spacing) * 8);
}

[data-slot="dropdown-menu-item"][data-variant="default"]{
    color: inherit;
}

[data-slot="dropdown-menu-item"][data-variant="destructive"]{
    color: var(--destructive);
}

[data-slot="dropdown-menu-item"][data-variant="destructive"]:focus, [data-slot="dropdown-menu-item"][data-variant="destructive"][data-highlighted]{
    background-color: color-mix(in oklab, var(--destructive) 10%, transparent);
    color: var(--destructive);
}

html.dark [data-slot="dropdown-menu-item"][data-variant="destructive"]:focus, html.dark [data-slot="dropdown-menu-item"][data-variant="destructive"][data-highlighted]{
    background-color: color-mix(in oklab, var(--destructive) 20%, transparent);
}

[data-slot="dropdown-menu-item"][data-variant="destructive"] > svg{
    color: var(--destructive) !important;
}

[data-slot="dropdown-menu-checkbox-item"]{
    box-sizing: border-box;
    position: relative;
    display: flex;
    cursor: default;
    align-items: center;
    gap: calc(var(--spacing) * 2);
    border-radius: var(--radius-sm);
    padding-inline: calc(var(--spacing) * 2);
    padding-block: calc(var(--spacing) * 1.5);
    font-size: var(--text-sm);
    line-height: var(--text-sm--line-height);
    outline: none;
    -moz-user-select: none;
    -o-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    color: inherit;
    text-decoration: none;
}

[data-slot="dropdown-menu-checkbox-item"]:focus, [data-slot="dropdown-menu-checkbox-item"][data-highlighted]{
    background-color: var(--accent);
    color: var(--accent-foreground);
}

[data-slot="dropdown-menu-checkbox-item"] svg{
    pointer-events: none;
    flex-shrink: 0;
}

[data-slot="dropdown-menu-checkbox-item"] svg:not([class*='size-']){
    width: calc(var(--spacing) * 4);
    height: calc(var(--spacing) * 4);
}

[data-slot="dropdown-menu-checkbox-item"]{
    border-radius: var(--radius-sm);
    padding-right: calc(var(--spacing) * 2);
    padding-left: calc(var(--spacing) * 8);
}

[data-slot="dropdown-menu-checkbox-item"][data-disabled]{
    pointer-events: none;
    opacity: 50%;
}

[data-slot="dropdown-menu-checkbox-item"] > span:first-child{
    pointer-events: none;
    position: absolute;
    left: calc(var(--spacing) * 2);
    display: flex;
    width: calc(var(--spacing) * 3.5);
    height: calc(var(--spacing) * 3.5);
    align-items: center;
    justify-content: center;
}

[data-slot="dropdown-menu-checkbox-item"] > span:first-child > span[data-state="unchecked"]{
    display: none;
}

[data-slot="dropdown-menu-checkbox-item"] > span:first-child svg{
    width: calc(var(--spacing) * 4);
    height: calc(var(--spacing) * 4);
}

[data-slot="dropdown-menu-radio-item"]{
    box-sizing: border-box;
    position: relative;
    display: flex;
    cursor: default;
    align-items: center;
    gap: calc(var(--spacing) * 2);
    border-radius: var(--radius-sm);
    padding-inline: calc(var(--spacing) * 2);
    padding-block: calc(var(--spacing) * 1.5);
    font-size: var(--text-sm);
    line-height: var(--text-sm--line-height);
    outline: none;
    -moz-user-select: none;
    -o-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    color: inherit;
    text-decoration: none;
}

[data-slot="dropdown-menu-radio-item"]:focus, [data-slot="dropdown-menu-radio-item"][data-highlighted]{
    background-color: var(--accent);
    color: var(--accent-foreground);
}

[data-slot="dropdown-menu-radio-item"] svg{
    pointer-events: none;
    flex-shrink: 0;
}

[data-slot="dropdown-menu-radio-item"] svg:not([class*='size-']){
    width: calc(var(--spacing) * 4);
    height: calc(var(--spacing) * 4);
}

[data-slot="dropdown-menu-radio-item"]{
    border-radius: var(--radius-sm);
    padding-right: calc(var(--spacing) * 2);
    padding-left: calc(var(--spacing) * 8);
}

[data-slot="dropdown-menu-radio-item"][data-disabled]{
    pointer-events: none;
    opacity: 50%;
}

[data-slot="dropdown-menu-radio-item"] > span:first-child{
    pointer-events: none;
    position: absolute;
    left: calc(var(--spacing) * 2);
    display: flex;
    width: calc(var(--spacing) * 3.5);
    height: calc(var(--spacing) * 3.5);
    align-items: center;
    justify-content: center;
}

[data-slot="dropdown-menu-radio-item"] > span:first-child > span[data-state="unchecked"]{
    display: none;
}

[data-slot="dropdown-menu-radio-item"] > span:first-child svg{
    width: calc(var(--spacing) * 2);
    height: calc(var(--spacing) * 2);
    fill: currentColor;
}

[data-slot="dropdown-menu-sub-trigger"]{
    box-sizing: border-box;
    position: relative;
    display: flex;
    cursor: default;
    align-items: center;
    gap: calc(var(--spacing) * 2);
    border-radius: var(--radius-sm);
    padding-inline: calc(var(--spacing) * 2);
    padding-block: calc(var(--spacing) * 1.5);
    font-size: var(--text-sm);
    line-height: var(--text-sm--line-height);
    outline: none;
    -moz-user-select: none;
    -o-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    color: inherit;
    text-decoration: none;
}

[data-slot="dropdown-menu-sub-trigger"]:focus, [data-slot="dropdown-menu-sub-trigger"][data-highlighted]{
    background-color: var(--accent);
    color: var(--accent-foreground);
}

[data-slot="dropdown-menu-sub-trigger"] svg{
    pointer-events: none;
    flex-shrink: 0;
}

[data-slot="dropdown-menu-sub-trigger"] svg:not([class*='size-']){
    width: calc(var(--spacing) * 4);
    height: calc(var(--spacing) * 4);
}

[data-slot="dropdown-menu-sub-trigger"][data-inset]{
    padding-left: calc(var(--spacing) * 8);
}

[data-slot="dropdown-menu-sub-trigger"][data-state="open"]{
    background-color: var(--accent);
    color: var(--accent-foreground);
}

[data-slot="dropdown-menu-sub-trigger"] > svg:last-child{
    margin-left: auto;
    width: calc(var(--spacing) * 4);
    height: calc(var(--spacing) * 4);
}

[data-slot="dropdown-menu-sub-trigger"] svg:not([class*='text-']){
    color: var(--muted-foreground);
}

[data-slot="dropdown-menu-label"]{
    padding-inline: calc(var(--spacing) * 2);
    padding-block: calc(var(--spacing) * 1.5);
    font-size: var(--text-sm);
    line-height: var(--text-sm--line-height);
    font-weight: var(--font-weight-medium);
}

[data-slot="dropdown-menu-label"][data-inset]{
    padding-left: calc(var(--spacing) * 8);
}

[data-slot="dropdown-menu-separator"]{
    margin-inline: calc(var(--spacing) * -1);
    margin-block: calc(var(--spacing) * 1);
    height: 1px;
    background-color: var(--border);
}

[data-slot="dropdown-menu-shortcut"]{
    margin-left: auto;
    font-size: var(--text-xs);
    line-height: var(--text-xs--line-height);
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
}

[data-slot="dropdown-menu-portal"], [data-slot="dropdown-menu-sub"], [data-slot="dropdown-menu"]{
    display: contents;
}
[data-slot="container"]{
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin-inline: auto;
}

[data-slot="container"][data-size="sm"]{
    max-width: var(--container-sm);
}

[data-slot="container"][data-size="md"]{
    max-width: var(--container-md);
}

[data-slot="container"][data-size="lg"]{
    max-width: var(--container-lg);
}

[data-slot="container"][data-size="full"]{
    max-width: none;
}
[data-slot="stack"]{
    display: flex;
    flex-direction: column;
    min-width: 0;
}

[data-slot="stack"][data-gap="none"]{
    gap: 0;
}

[data-slot="stack"][data-gap="xs"]{
    gap: calc(var(--spacing) * 1);
}

[data-slot="stack"][data-gap="sm"]{
    gap: calc(var(--spacing) * 2);
}

[data-slot="stack"][data-gap="md"]{
    gap: calc(var(--spacing) * 4);
}

[data-slot="stack"][data-gap="lg"]{
    gap: calc(var(--spacing) * 8);
}

[data-slot="stack"][data-align="stretch"]{
    align-items: stretch;
}

[data-slot="stack"][data-align="start"]{
    align-items: flex-start;
}

[data-slot="stack"][data-align="center"]{
    align-items: center;
}

[data-slot="stack"][data-align="end"]{
    align-items: flex-end;
}
[data-slot="kit-badge"]{
    display: inline-flex;
    align-items: center;
    height: 1.25rem;
    padding: 0 .5rem;
    border-radius: var(--radius);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
}

[data-slot="kit-badge"][data-variant="default"]{
    background: var(--secondary);
    color: var(--secondary-foreground);
}

[data-slot="kit-badge"][data-variant="muted"]{
    background: transparent;
    color: var(--muted-foreground);
    -moz-box-shadow: inset 0 0 0 1px var(--border);
    -o-box-shadow: inset 0 0 0 1px var(--border);
    -webkit-box-shadow: inset 0 0 0 1px var(--border);
    -ms-box-shadow: inset 0 0 0 1px var(--border);
    box-shadow: inset 0 0 0 1px var(--border);
}

[data-slot="kit-badge"][data-variant="destructive"]{
    background: color-mix(in oklch, var(--destructive) 12%, transparent);
    color: var(--destructive);
}

[data-slot="kit-badge"][data-variant="ok"]{
    background: color-mix(in oklch, var(--badge-ok) 12%, transparent);
    color: var(--badge-ok);
}

[data-slot="kit-badge"][data-variant="warn"]{
    background: color-mix(in oklch, var(--badge-warn) 12%, transparent);
    color: var(--badge-warn);
}

[data-slot="kit-badge"][data-variant="authority"]{
    background: color-mix(in oklch, var(--status-ready) 16%, transparent);
    color: var(--status-ready);
}

[data-slot="kit-badge"][data-variant="qa"]{
    background: color-mix(in oklch, var(--status-in-review) 16%, transparent);
    color: var(--status-in-review);
}

[data-slot="kit-badge"][data-status]::before{
    content: "";
    width: .5rem;
    height: .5rem;
    margin-right: .375rem;
    border-radius: 50%;
    flex: none;
    border: 1.5px solid currentColor;
}

[data-slot="kit-badge"][data-status="to_triage"]::before{
    color: var(--status-to-triage);
}

[data-slot="kit-badge"][data-status="backlog"]::before{
    color: var(--status-backlog);
}

[data-slot="kit-badge"][data-status="ready"]::before{
    color: var(--status-ready);
}

[data-slot="kit-badge"][data-status="in_progress"]::before{
    color: var(--status-in-progress);
}

[data-slot="kit-badge"][data-status="in_review"]::before{
    color: var(--status-in-review);
}

[data-slot="kit-badge"][data-status="done"]::before{
    color: var(--status-done);
}
[data-slot="chip"]{
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    border-radius: 9999px;
    padding: .125rem .625rem;
    font-size: var(--text-xs);
    border: 1px solid;
}

[data-slot="chip"][data-tone="amber"]{
    --amber: oklch(0.75 0.15 80);
    border-color: color-mix(in oklch, var(--amber) 45%, transparent);
    background: color-mix(in oklch, var(--amber) 12%, var(--background));
    color: color-mix(in oklch, var(--amber) 70%, var(--foreground));
}

[data-slot="chip"] svg{
    width: .75rem;
    height: .75rem;
}
[data-slot="page-head"]{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

[data-slot="page-head"]:not(.detail-head) h1{
    margin: 0;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
}

[data-slot="page-head"].detail-head h1{
    margin: 0;
    font-weight: var(--font-weight-semibold);
}

[data-slot="page-head"] p{
    margin: 0;
    font-size: var(--text-xs);
    color: var(--muted-foreground);
}

[data-slot="page-head-actions"]{
    display: flex;
    align-items: center;
    gap: .25rem;
    flex-shrink: 0;
}
[data-slot="back-link"]{
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin: 0 0 .75rem;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--foreground);
    text-decoration: none;
}

[data-slot="back-link"]:hover{
    text-decoration: underline;
    text-underline-offset: 3px;
}

[data-slot="back-link"] svg{
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}
[data-slot="muted"]{
    color: var(--muted-foreground);
    font-size: var(--text-sm);
}

[data-slot="kit-empty"]{
    color: var(--muted-foreground);
}
[data-slot="kit-field"]{
    display: flex;
    flex-direction: column;
    gap: .375rem;
    min-width: 0;
}

[data-slot="kit-field"] > label{
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
}

[data-slot="kit-field"] > :where(input, textarea, select){
    font: inherit;
    font-size: var(--text-sm);
    padding: .375rem .5rem;
    border: 1px solid var(--input);
    border-radius: var(--radius);
    background: var(--field);
    color: var(--foreground);
}

[data-slot="kit-field"] > :where(input, textarea, select):focus-visible{
    outline: none;
    border-color: var(--muted-foreground);
    -moz-box-shadow: none;
    -o-box-shadow: none;
    -webkit-box-shadow: none;
    -ms-box-shadow: none;
    box-shadow: none;
}

[data-slot="kit-field"] > select{
    box-sizing: border-box;
    height: calc(var(--text-sm--line-height) + .75rem + 2px);
    padding-block: 0;
    align-content: center;
}

[data-slot="kit-field"] > [data-slot="select"]{
    width: 100%;
}

[data-slot="kit-field"] > [data-slot="select"] > [data-slot="select-trigger"]{
    width: 100%;
    height: calc(var(--text-sm--line-height) + .75rem + 2px);
    padding: .375rem .5rem;
    border-radius: var(--radius);
    background: var(--field);
    -moz-box-shadow: none;
    -o-box-shadow: none;
    -webkit-box-shadow: none;
    -ms-box-shadow: none;
    box-shadow: none;
}

[data-slot="kit-field"] > [data-slot="select"] > [data-slot="select-trigger"]:focus-visible{
    border-color: var(--muted-foreground);
    -moz-box-shadow: none;
    -o-box-shadow: none;
    -webkit-box-shadow: none;
    -ms-box-shadow: none;
    box-shadow: none;
}

[data-slot="kit-field"] > [data-slot="combobox"]{
    display: block;
    width: 100%;
}

[data-slot="kit-field"] > [data-slot="combobox"] [data-slot="input-group"]{
    width: 100%;
    height: calc(var(--text-sm--line-height) + .75rem + 2px);
    border-radius: var(--radius);
    background: var(--field);
    -moz-box-shadow: none;
    -o-box-shadow: none;
    -webkit-box-shadow: none;
    -ms-box-shadow: none;
    box-shadow: none;
}

[data-slot="kit-field"] > [data-slot="combobox"] [data-slot="input-group"]:focus-within{
    border-color: var(--muted-foreground);
    -moz-box-shadow: none;
    -o-box-shadow: none;
    -webkit-box-shadow: none;
    -ms-box-shadow: none;
    box-shadow: none;
}

[data-slot="kit-field"] > [data-slot="combobox"] [data-slot="input-group-input"]{
    padding-inline: .5rem;
    font-size: var(--text-sm);
}

[data-slot="kit-select"]{
    font: inherit;
    font-size: var(--text-sm);
    line-height: 1.25;
    height: calc(var(--spacing) * 8);
    box-sizing: border-box;
    padding: 0 .375rem;
    align-content: center;
    border: 1px solid var(--input);
    border-radius: var(--radius);
    background: var(--field);
    color: var(--foreground);
}
[data-slot="form"]{
    display: flex;
    margin: 0;
}

[data-slot="form"][data-layout="stack"]{
    flex-direction: column;
    gap: .5rem;
}

[data-slot="form"][data-layout="stack-wide"]{
    flex-direction: column;
    gap: 1rem;
}

[data-slot="form"][data-layout="row"]{
    gap: .5rem;
}

[data-slot="form"][data-layout="row-baseline"]{
    align-items: flex-end;
    gap: .5rem;
}

[data-slot="form-row"]{
    display: flex;
    gap: .5rem;
}

[data-slot="form-row"] > [data-slot="kit-field"], [data-slot="form"][data-layout="row"] > [data-slot="kit-field"], [data-slot="form"][data-layout="row-baseline"] > [data-slot="kit-field"]{
    flex: 1;
    min-width: 0;
}

[data-slot="form-actions"]{
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
}
[data-slot="settings-group"]{
    display: flex;
    flex-direction: column;
}

[data-slot="settings-row"]{
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--border);
}

[data-slot="settings-row-label"]{
    display: flex;
    flex-direction: column;
    gap: .125rem;
    min-width: 0;
}

[data-slot="settings-row-label"] > label{
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
}

[data-slot="settings-row-note"]{
    font-size: var(--text-xs);
    color: var(--muted-foreground);
}

[data-slot="settings-row-control"]{
    margin-left: auto;
    flex-shrink: 0;
}

[data-slot="settings-input"]{
    width: 14rem;
    font: inherit;
    font-size: var(--text-sm);
    padding: .375rem .5rem;
    border: 1px solid var(--input);
    border-radius: var(--radius);
    background: var(--background);
    color: var(--foreground);
}

[data-slot="settings-input"]::placeholder{
    color: var(--muted-foreground);
}

[data-slot="settings-input"]:focus-visible{
    outline: none;
    border-color: var(--muted-foreground);
    -moz-box-shadow: none;
    -o-box-shadow: none;
    -webkit-box-shadow: none;
    -ms-box-shadow: none;
    box-shadow: none;
}

[data-slot="settings-input"][data-wide]{
    width: 22rem;
}

@media (max-width: 640px){
    [data-slot="settings-row"]{
        flex-direction: column;
        align-items: stretch;
        gap: .5rem;
    }
    [data-slot="settings-row-control"]{
        margin-left: 0;
    }
    [data-slot="settings-input"], [data-slot="settings-input"][data-wide]{
        width: 100%;
    }
}

[data-slot="settings-form"]{
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

[data-slot="settings-actions"]{
    display: flex;
    gap: .5rem;
}

[data-slot="settings-block"]{
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

[data-slot="settings-block"] > h3{
    margin: 0;
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
}

[data-slot="settings-block-note"]{
    margin: 0 0 .5rem;
    font-size: var(--text-sm);
    color: var(--muted-foreground);
}

[data-slot="settings-textarea"]{
    width: 100%;
    min-height: 7rem;
    font: inherit;
    font-size: var(--text-sm);
    padding: .5rem;
    border: 1px solid var(--input);
    border-radius: var(--radius);
    background: var(--background);
    color: var(--foreground);
    line-height: var(--leading-normal);
    resize: vertical;
}

[data-slot="settings-textarea"]::placeholder{
    color: var(--muted-foreground);
}

[data-slot="settings-textarea"]:focus-visible{
    outline: none;
    border-color: var(--muted-foreground);
    -moz-box-shadow: none;
    -o-box-shadow: none;
    -webkit-box-shadow: none;
    -ms-box-shadow: none;
    box-shadow: none;
}
[data-slot="approval-card"]{
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .875rem;
    margin-bottom: .75rem;
    background: var(--background);
}

[data-slot="approval-head"]{
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .5rem;
}

[data-slot="approval-actions"]{
    display: flex;
    gap: .5rem;
    margin-top: .75rem;
}
[data-slot="workbench"]{
    display: flex;
    height: 100svh;
    overflow: hidden;
    background: var(--background);
    --rail-ink: color-mix(in oklch, var(--muted-foreground) 65%, var(--sidebar-foreground));
    --sidebar-width: 11.5rem;
}

html.sidebar-collapsed [data-slot="workbench"]{
    --sidebar-width: 48px;
}

[data-slot="kit-sidebar"]{
    background: var(--sidebar);
    width: var(--sidebar-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid var(--border);
    -moz-transition: width 200ms ease;
    -o-transition: width 200ms ease;
    -webkit-transition: width 200ms ease;
    -ms-transition: width 200ms ease;
    transition: width 200ms ease;
}

[data-slot="sidebar-head"]{
    height: 3rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 12px;
}

[data-slot="brand"]{
    display: flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 6px 0 4px;
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: 550;
    letter-spacing: -.1px;
    color: var(--sidebar-foreground);
    text-decoration: none;
    min-width: 0;
}

[data-slot="brand"]:hover{
    background: var(--sidebar-accent);
}

[data-slot="brand-name"]{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[data-slot="kit-avatar"]{
    --avatar-hue: 250;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: var(--radius);
    font-size: 10px;
    font-weight: var(--font-weight-medium);
    line-height: 1;
    letter-spacing: 0;
    color: oklch(.98 0 0);
    background: oklch(.62 .13 var(--avatar-hue, 250));
}

[data-slot="kit-avatar"][data-variant="workspace"]{
    width: 20px;
    height: 20px;
}

[data-slot="kit-avatar"][data-variant="team"]{
    width: 16px;
    height: 16px;
    font-size: 8px;
    background: var(--foreground);
    color: var(--background);
}

[data-slot="sidebar-nav"]{
    display: flex;
    flex-direction: column;
    padding: 4px 0;
    overflow-y: auto;
    min-height: 0;
    flex: 1;
}

[data-slot="nav-rows"]{
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 0 12px;
}

[data-slot="nav-rows"][data-variant="section"]{
    padding: 0 12px;
}

[data-slot="nav-rows"][data-variant="subgroup"]{
    padding: 0 0 0 8px;
}

[data-slot="nav-section"]{
    display: flex;
    flex-direction: column;
    margin-top: 18px;
}

[data-slot="nav-section-header"]{
    display: flex;
    align-items: center;
    margin: 0 12px;
}

[data-slot="nav-section-head"]{
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    height: 28px;
    padding: 0 5px;
    border: 0;
    background: none;
    border-radius: var(--radius);
    font: inherit;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-medium);
    color: var(--muted-foreground);
    cursor: pointer;
    text-align: left;
}

[data-slot="nav-section-head"]:hover{
    background: var(--sidebar-accent);
}

[data-slot="nav-section-header"] .nav-section-add{
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    border-radius: var(--radius);
    color: var(--muted-foreground);
    cursor: pointer;
    text-decoration: none;
    opacity: 0;
    -moz-transition: opacity 120ms ease;
    -o-transition: opacity 120ms ease;
    -webkit-transition: opacity 120ms ease;
    -ms-transition: opacity 120ms ease;
    transition: opacity 120ms ease;
}

[data-slot="nav-section-header"] .nav-section-add svg{
    width: 14px;
    height: 14px;
}

[data-slot="nav-section-header"] .nav-section-add:hover{
    background: var(--sidebar-accent);
    color: var(--sidebar-foreground);
}

[data-slot="nav-section-header"]:hover .nav-section-add, [data-slot="nav-section-header"] .nav-section-add:focus-visible{
    opacity: 1;
}

[data-slot="nav-section-body"]{
    display: grid;
    grid-template-rows: 1fr;
    min-height: 0;
    -moz-transition: grid-template-rows 160ms ease, opacity 160ms ease;
    -o-transition: grid-template-rows 160ms ease, opacity 160ms ease;
    -webkit-transition: grid-template-rows 160ms ease, opacity 160ms ease;
    -ms-transition: grid-template-rows 160ms ease, opacity 160ms ease;
    transition: grid-template-rows 160ms ease, opacity 160ms ease;
}

[data-slot="nav-section-body"] > *{
    overflow: hidden;
}

[data-open="0"] > [data-slot="nav-section-body"]{
    grid-template-rows: 0fr;
    opacity: 0;
}

[data-slot="nav-chevron"]{
    display: inline-flex;
    width: 12px;
    height: 12px;
    color: var(--muted-foreground);
    -moz-transition: transform 160ms ease, opacity 120ms ease;
    -o-transition: transform 160ms ease, opacity 120ms ease;
    -webkit-transition: transform 160ms ease, opacity 120ms ease;
    -ms-transition: transform 160ms ease, opacity 120ms ease;
    transition: transform 160ms ease, opacity 120ms ease;
}

[data-slot="nav-chevron"] svg{
    width: 12px;
    height: 12px;
    stroke-width: 2.5;
}

[data-open="1"] > [data-slot="nav-section-header"] > [data-slot="nav-section-head"] [data-slot="nav-chevron"], [data-open="1"] > [data-slot="nav-section-head"][data-level="subgroup"] [data-slot="nav-chevron"], [data-open="1"] > [data-slot="nav-team-row"] [data-slot="nav-disclosure"] [data-slot="nav-chevron"]{
    -moz-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

[data-slot="nav-section-head"] [data-slot="nav-chevron"]{
    opacity: 0;
}

[data-slot="nav-section-head"]:hover [data-slot="nav-chevron"], [data-slot="nav-section-head"]:focus-visible [data-slot="nav-chevron"]{
    opacity: 1;
}

[data-slot="nav-subgroup"]{
    margin-top: 10px;
}

[data-slot="nav-rows"] > [data-slot="nav-subgroup"]:first-child{
    margin-top: 2px;
}

[data-slot="nav-section-head"][data-level="subgroup"]{
    width: 100%;
    height: 24px;
}

[data-slot="nav-section-head"][data-level="section"]{
    height: 28px;
}

[data-slot="nav-team-row"]{
    display: flex;
    align-items: center;
    border-radius: var(--radius);
}

[data-slot="nav-team-row"]:hover, [data-slot="nav-team-row"].active{
    background: var(--sidebar-accent);
}

[data-slot="nav-team-row"] > [data-slot="nav-tab"]{
    flex: 1;
    min-width: 0;
    margin: 0;
    padding-left: 5px;
    padding-right: 2px;
    background: none;
}

[data-slot="nav-team-row"] > [data-slot="nav-tab"].active, [data-slot="nav-team-row"] > [data-slot="nav-tab"]:hover{
    background: none;
}

[data-slot="nav-disclosure"]{
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 20px;
    height: 28px;
    margin-right: 4px;
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
    opacity: 0;
    -moz-transition: opacity 120ms ease;
    -o-transition: opacity 120ms ease;
    -webkit-transition: opacity 120ms ease;
    -ms-transition: opacity 120ms ease;
    transition: opacity 120ms ease;
}

[data-slot="nav-team-row"]:hover [data-slot="nav-disclosure"], [data-slot="nav-disclosure"]:focus-visible, [data-open="1"] > [data-slot="nav-team-row"] [data-slot="nav-disclosure"]{
    opacity: 1;
}

[data-slot="nav-team"] [data-slot="nav-rows"]{
    padding-left: 12px;
    padding-right: 0;
}

[data-slot="nav-tab"]{
    display: flex;
    gap: 8px;
    align-items: center;
    height: 28px;
    padding: 0 9px 0 5px;
    border: 0;
    border-radius: var(--radius);
    background: none;
    font: inherit;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--rail-ink);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
}

[data-slot="nav-tab"][data-place="row"]{
    padding: 0 9px 0 5px;
}

[data-slot="nav-tab"][data-place="team-link"]{
    background: none;
}

[data-slot="nav-tab"]:hover{
    background: var(--sidebar-accent);
    color: var(--sidebar-foreground);
}

[data-slot="nav-tab"].active{
    background: var(--sidebar-accent);
    color: var(--sidebar-accent-foreground);
}

[data-slot="nav-tab"] svg{
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

[data-slot="tab-label"]{
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-slot="nav-count"]{
    margin-left: auto;
    padding: 0 .375rem;
    border-radius: 999px;
    background: var(--sidebar-accent);
    color: var(--sidebar-foreground);
    font-size: var(--text-2xs);
    line-height: 1.4;
}

[data-slot="sidebar-foot"]{
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 8px 12px;
    margin-top: auto;
}

html.sidebar-collapsed [data-slot="tab-label"], html.sidebar-collapsed [data-slot="brand-name"], html.sidebar-collapsed [data-slot="nav-section-head"], html.sidebar-collapsed [data-slot="nav-disclosure"], html.sidebar-collapsed [data-slot="nav-count"], html.sidebar-collapsed [data-slot="nav-team"] [data-slot="nav-section-body"], html.sidebar-collapsed [data-slot="nav-tab"][data-place="child"]{
    display: none;
}

html.sidebar-collapsed [data-slot="nav-subgroup"]{
    margin-top: 0;
}

html.sidebar-collapsed [data-slot="nav-rows"][data-variant="subgroup"]{
    padding-left: 0;
}

html.sidebar-collapsed [data-slot="nav-subgroup"][data-open="0"] > [data-slot="nav-section-body"]{
    grid-template-rows: 1fr;
    opacity: 1;
}

[data-slot="frame"]{
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    --search-width: 26rem;
}

[data-slot="topbar"]{
    position: sticky;
    top: 0;
    z-index: 10;
    height: 3rem;
    flex-shrink: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    padding: 0 1rem;
    background: color-mix(in oklch, var(--sidebar) 95%, transparent);
    backdrop-filter: blur(8px);
}

[data-slot="topbar-right"]{
    justify-self: end;
    display: flex;
    align-items: center;
    gap: .75rem;
}

[data-role="sidebar-trigger"]{
    justify-self: start;
    margin-left: -.25rem;
    padding: 0 .375rem;
}

[data-role="sidebar-trigger"] svg{
    width: 1rem;
    height: 1rem;
}

[data-role="theme-toggle"]{
    padding: 0 .375rem;
    color: var(--rail-ink);
}

[data-role="theme-toggle"] svg{
    width: 1rem;
    height: 1rem;
}

[data-slot="theme-glyph"]{
    display: none;
}

[data-slot="theme-glyph"][data-to="dark"]{
    display: inline-flex;
}

html.dark [data-slot="theme-glyph"][data-to="dark"]{
    display: none;
}

html.dark [data-slot="theme-glyph"][data-to="light"]{
    display: inline-flex;
}

[data-slot="plane-wrap"]{
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 .5rem .5rem;
    min-width: 0;
    min-height: 0;
}

[data-slot="plane"]{
    flex: 1;
    min-width: 0;
    background: var(--background);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

[data-slot="plane"][data-layout="default"]{
    padding: 1.5rem;
}

[data-slot="plane"][data-layout="flush"]{
    padding: 0;
}

[data-slot="plane"][data-layout="split"]{
    background: none;
    padding: 0;
    overflow: hidden;
    flex-direction: row;
    gap: .5rem;
}

[data-slot="plane-pane"]{
    flex: 1;
    min-width: 0;
    min-height: 0;
    background: var(--background);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

[data-slot="plane-pane"][data-size="even"]{
    flex: 1;
}

[data-slot="plane-pane"][data-size="wide"]{
    flex: 2;
}

[data-slot="plane-pane"][data-size="narrow"]{
    flex: 1;
}

[data-slot="plane-pane"][data-size="rail"]{
    flex: none;
    width: 14rem;
    padding: 1rem 0;
}

[data-slot="plane-pane"][data-size="board"]{
    padding: 0;
    overflow: hidden;
}

@media (max-width: 60rem){
    [data-slot="plane"][data-layout="split"]{
        flex-direction: column;
    }
    [data-slot="plane-pane"][data-size="wide"], [data-slot="plane-pane"][data-size="narrow"]{
        flex: 1;
    }
    [data-slot="plane-pane"][data-size="narrow"]{
        order: -1;
    }
    [data-slot="plane-pane"][data-size="rail"]{
        width: auto;
    }
}
@keyframes loading-state-pixel-on{
    0%{
        opacity: 0.15;
    }
    18%{
        opacity: 1;
    }
    42%{
        opacity: 1;
    }
    62%{
        opacity: 0.15;
    }
    100%{
        opacity: 0.15;
    }
}

@keyframes loading-state-shimmer-text{
    from{
        background-position: 150% center;
    }
    to{
        background-position: -50% center;
    }
}

[data-slot="loading-state"]{
    display: flex;
    width: fit-content;
    align-items: center;
    gap: calc(var(--spacing) * 2.5);
}

[data-slot="loading-state-grid"]{
    display: grid;
    flex-shrink: 0;
    grid-template-columns: repeat(3, 4px);
    gap: 1.5px;
}

[data-slot="loading-state-cell"]{
    width: 4px;
    height: 4px;
    background-color: var(--foreground);
    border-radius: 1px;
    opacity: 0.15;
    animation: loading-state-pixel-on 650ms ease-in-out infinite;
}

[data-slot="loading-state-cell"]:nth-child(1){
    animation-delay: 90ms;
}

[data-slot="loading-state-cell"]:nth-child(2){
    animation-delay: 180ms;
}

[data-slot="loading-state-cell"]:nth-child(3){
    animation-delay: 270ms;
}

[data-slot="loading-state-cell"]:nth-child(4){
    animation-delay: 0ms;
}

[data-slot="loading-state-cell"]:nth-child(5){
    animation-delay: 90ms;
}

[data-slot="loading-state-cell"]:nth-child(6){
    animation-delay: 180ms;
}

[data-slot="loading-state-cell"]:nth-child(7){
    animation-delay: 90ms;
}

[data-slot="loading-state-cell"]:nth-child(8){
    animation-delay: 180ms;
}

[data-slot="loading-state-cell"]:nth-child(9){
    animation-delay: 270ms;
}

[data-slot="loading-state-label"]{
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    color: transparent;
    background-image: linear-gradient(90deg, var(--muted-foreground) 35%, var(--foreground) 50%, var(--muted-foreground) 65%);
    background-size: 200% 100%;
    animation: loading-state-shimmer-text 1.4s linear infinite;
}

[data-slot="loading-state-elapsed"]{
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted-foreground);
    font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce){
    [data-slot="loading-state-cell"]{
        animation: none;
    }
    [data-slot="loading-state-label"]{
        animation: none;
    }
}
@keyframes tool-chips-fade-up{
    from{
        opacity: 0;
        -moz-transform: translateY(8px);
        -o-transform: translateY(8px);
        -webkit-transform: translateY(8px);
        -ms-transform: translateY(8px);
        transform: translateY(8px);
    }
    to{
        opacity: 1;
        -moz-transform: translateY(0);
        -o-transform: translateY(0);
        -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes tool-chips-pop-in{
    from{
        opacity: 0;
        -moz-transform: scale(0.95);
        -o-transform: scale(0.95);
        -webkit-transform: scale(0.95);
        -ms-transform: scale(0.95);
        transform: scale(0.95);
    }
    to{
        opacity: 1;
        -moz-transform: scale(1);
        -o-transform: scale(1);
        -webkit-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes tool-chips-fade-in{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}

[data-slot="tool-chips"]{
    min-height: 220px;
    width: 100%;
    max-width: calc(var(--spacing) * 80);
    padding-bottom: calc(var(--spacing) * 1);
}

[data-slot="tool-chips-toggle"]{
    margin: 0;
    border: 0;
    background-color: transparent;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    margin-inline: calc(var(--spacing) * -1.5);
    display: flex;
    width: fit-content;
    align-items: center;
    gap: calc(var(--spacing) * 1.5);
    border-radius: var(--radius-md);
    padding: calc(var(--spacing) * 1) calc(var(--spacing) * 1.5);
    font-size: 12.5px;
    color: var(--foreground);
    -moz-transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    -o-transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    -webkit-transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    -ms-transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    -moz-transition-timing-function: var(--default-transition-timing-function);
    -o-transition-timing-function: var(--default-transition-timing-function);
    -webkit-transition-timing-function: var(--default-transition-timing-function);
    -ms-transition-timing-function: var(--default-transition-timing-function);
    transition-timing-function: var(--default-transition-timing-function);
    -moz-transition-duration: 100ms;
    -o-transition-duration: 100ms;
    -webkit-transition-duration: 100ms;
    -ms-transition-duration: 100ms;
    transition-duration: 100ms;
}

[data-slot="tool-chips-toggle-chevron"]{
    -moz-transition: transform 200ms var(--default-transition-timing-function);
    -o-transition: transform 200ms var(--default-transition-timing-function);
    -webkit-transition: transform 200ms var(--default-transition-timing-function);
    -ms-transition: transform 200ms var(--default-transition-timing-function);
    transition: transform 200ms var(--default-transition-timing-function);
    -moz-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    transform: rotate(-90deg);
}

[data-slot="tool-chips"][data-state="open"] [data-slot="tool-chips-toggle-chevron"]{
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
}

[data-slot="tool-chips-toggle-text"]{
    font-variant-numeric: tabular-nums;
}

[data-slot="tool-chips-body"]{
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    -moz-transition: grid-template-rows 300ms var(--default-transition-timing-function), opacity 300ms var(--default-transition-timing-function);
    -o-transition: grid-template-rows 300ms var(--default-transition-timing-function), opacity 300ms var(--default-transition-timing-function);
    -webkit-transition: grid-template-rows 300ms var(--default-transition-timing-function), opacity 300ms var(--default-transition-timing-function);
    -ms-transition: grid-template-rows 300ms var(--default-transition-timing-function), opacity 300ms var(--default-transition-timing-function);
    transition: grid-template-rows 300ms var(--default-transition-timing-function), opacity 300ms var(--default-transition-timing-function);
}

[data-slot="tool-chips"][data-state="open"] > [data-slot="tool-chips-body"]{
    grid-template-rows: 1fr;
    opacity: 1;
}

[data-slot="tool-chips-clip"]{
    margin-inline: calc(var(--spacing) * -1);
    overflow: hidden;
    padding-inline: calc(var(--spacing) * 1.5);
    padding-bottom: calc(var(--spacing) * 1);
}

[data-slot="tool-chips-rows"]{
    margin-top: calc(var(--spacing) * 1.5);
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing) * 1);
}

[data-slot="tool-chips-row"]{
    animation: tool-chips-fade-up 300ms cubic-bezier(0.23,1,0.32,1) both;
}

[data-slot="tool-chips-row-button"]{
    margin: 0;
    border: 0;
    background-color: transparent;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    margin-inline: -3px;
    display: flex;
    height: calc(var(--spacing) * 7);
    width: calc(100% + 6px);
    min-width: 0;
    align-items: center;
    gap: calc(var(--spacing) * 2);
    border-radius: var(--radius-md);
    padding-inline: 3px;
    -moz-transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    -o-transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    -webkit-transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    -ms-transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    -moz-transition-timing-function: var(--default-transition-timing-function);
    -o-transition-timing-function: var(--default-transition-timing-function);
    -webkit-transition-timing-function: var(--default-transition-timing-function);
    -ms-transition-timing-function: var(--default-transition-timing-function);
    transition-timing-function: var(--default-transition-timing-function);
    -moz-transition-duration: 100ms;
    -o-transition-duration: 100ms;
    -webkit-transition-duration: 100ms;
    -ms-transition-duration: 100ms;
    transition-duration: 100ms;
}

[data-slot="tool-chips-row-glyphs"]{
    position: relative;
    display: flex;
    width: calc(var(--spacing) * 4);
    height: calc(var(--spacing) * 4);
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
}

[data-slot="tool-chips-row-icon"]{
    -moz-transition: opacity 100ms var(--default-transition-timing-function);
    -o-transition: opacity 100ms var(--default-transition-timing-function);
    -webkit-transition: opacity 100ms var(--default-transition-timing-function);
    -ms-transition: opacity 100ms var(--default-transition-timing-function);
    transition: opacity 100ms var(--default-transition-timing-function);
}

[data-slot="tool-chips-row"][data-state="open"] [data-slot="tool-chips-row-icon"]{
    opacity: 0;
}

[data-slot="tool-chips-row-chevron"]{
    position: absolute;
    opacity: 0;
    -moz-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    transform: rotate(-90deg);
    -moz-transition: opacity 150ms var(--default-transition-timing-function), transform 150ms var(--default-transition-timing-function);
    -o-transition: opacity 150ms var(--default-transition-timing-function), transform 150ms var(--default-transition-timing-function);
    -webkit-transition: opacity 150ms var(--default-transition-timing-function), transform 150ms var(--default-transition-timing-function);
    -ms-transition: opacity 150ms var(--default-transition-timing-function), transform 150ms var(--default-transition-timing-function);
    transition: opacity 150ms var(--default-transition-timing-function), transform 150ms var(--default-transition-timing-function);
}

[data-slot="tool-chips-row"][data-state="open"] [data-slot="tool-chips-row-chevron"]{
    opacity: 1;
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
}

[data-slot="tool-chips-row-label"]{
    flex-shrink: 0;
    font-size: 12.5px;
    font-weight: var(--font-weight-medium);
    color: var(--foreground);
}

[data-slot="tool-chips-row-chip"]{
    display: inline-flex;
    height: calc(var(--spacing) * 5.5);
    min-width: 0;
    flex: 1;
    cursor: pointer;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    background-color: var(--muted);
    padding-inline: calc(var(--spacing) * 1.5);
    font-size: 11.5px;
    color: var(--foreground);
    -moz-box-shadow: 0 0 0 1px var(--border);
    -o-box-shadow: 0 0 0 1px var(--border);
    -webkit-box-shadow: 0 0 0 1px var(--border);
    -ms-box-shadow: 0 0 0 1px var(--border);
    box-shadow: 0 0 0 1px var(--border);
    -moz-transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    -o-transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    -webkit-transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    -ms-transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    -moz-transition-timing-function: var(--default-transition-timing-function);
    -o-transition-timing-function: var(--default-transition-timing-function);
    -webkit-transition-timing-function: var(--default-transition-timing-function);
    -ms-transition-timing-function: var(--default-transition-timing-function);
    transition-timing-function: var(--default-transition-timing-function);
    -moz-transition-duration: 100ms;
    -o-transition-duration: 100ms;
    -webkit-transition-duration: 100ms;
    -ms-transition-duration: 100ms;
    transition-duration: 100ms;
}

[data-slot="tool-chips-row-chip"][data-mono="true"]{
    font-family: var(--font-mono);
}

[data-slot="tool-chips-detail"]{
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    -moz-transition: grid-template-rows 300ms cubic-bezier(0.23, 1, 0.32, 1), opacity 300ms cubic-bezier(0.23, 1, 0.32, 1);
    -o-transition: grid-template-rows 300ms cubic-bezier(0.23, 1, 0.32, 1), opacity 300ms cubic-bezier(0.23, 1, 0.32, 1);
    -webkit-transition: grid-template-rows 300ms cubic-bezier(0.23, 1, 0.32, 1), opacity 300ms cubic-bezier(0.23, 1, 0.32, 1);
    -ms-transition: grid-template-rows 300ms cubic-bezier(0.23, 1, 0.32, 1), opacity 300ms cubic-bezier(0.23, 1, 0.32, 1);
    transition: grid-template-rows 300ms cubic-bezier(0.23, 1, 0.32, 1), opacity 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

[data-slot="tool-chips-row"][data-state="open"] > [data-slot="tool-chips-detail"]{
    grid-template-rows: 1fr;
    opacity: 1;
}

[data-slot="tool-chips-detail-clip"]{
    min-height: 0;
    overflow: hidden;
}

[data-slot="tool-chips-detail-lines"]{
    margin: calc(var(--spacing) * 0.5) 0 calc(var(--spacing) * 1) calc(var(--spacing) * 2);
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing) * 0.5);
    border-left: 1px solid var(--border);
    padding: calc(var(--spacing) * 0.5) 0 calc(var(--spacing) * 0.5) calc(var(--spacing) * 3.5);
}

[data-slot="tool-chips-detail-line"]{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--foreground);
}

[data-slot="tool-chips-detail-line"][data-mono="true"]{
    font-family: var(--font-mono);
}

[data-slot="tool-chips-detail-line"][data-tone="add"]{
    color: var(--badge-ok);
}

[data-slot="tool-chips-detail-lines"][data-wrap="true"] [data-slot="tool-chips-detail-line"]{
    overflow: visible;
    white-space: pre-wrap;
    line-height: 1.5;
}

[data-slot="tool-chips-detail-label"]{
    color: var(--muted-foreground);
    margin-right: 0.5em;
}

[data-slot="tool-chips-detail-pictures"]{
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--spacing) * 1.5);
    margin-top: calc(var(--spacing) * 1);
}

[data-slot="tool-chips-detail-pictures"] img{
    display: block;
    height: auto;
    max-height: 6rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--muted);
}

[data-slot="tool-chips-diffs"]{
    margin-top: calc(var(--spacing) * 2.5);
    display: flex;
    max-width: 100%;
    flex-wrap: wrap;
    gap: calc(var(--spacing) * 1.5);
    border-top: 1px solid var(--border);
    padding-top: calc(var(--spacing) * 2.5);
}

[data-slot="tool-chips-diffs"][hidden]{
    display: none;
}

[data-slot="tool-chips-diff"]{
    position: relative;
}

[data-slot="tool-chips-diff-button"]{
    margin: 0;
    border: 0;
    background-color: transparent;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    display: inline-flex;
    height: calc(var(--spacing) * 7);
    max-width: 100%;
    align-items: center;
    gap: calc(var(--spacing) * 2);
    border-radius: var(--radius-sm);
    background-color: var(--card);
    padding-inline: calc(var(--spacing) * 2);
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--foreground);
    -moz-box-shadow: 0 0 0 1px var(--input), var(--shadow-xs);
    -o-box-shadow: 0 0 0 1px var(--input), var(--shadow-xs);
    -webkit-box-shadow: 0 0 0 1px var(--input), var(--shadow-xs);
    -ms-box-shadow: 0 0 0 1px var(--input), var(--shadow-xs);
    box-shadow: 0 0 0 1px var(--input), var(--shadow-xs);
    -moz-transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    -o-transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    -webkit-transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    -ms-transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    -moz-transition-timing-function: var(--default-transition-timing-function);
    -o-transition-timing-function: var(--default-transition-timing-function);
    -webkit-transition-timing-function: var(--default-transition-timing-function);
    -ms-transition-timing-function: var(--default-transition-timing-function);
    transition-timing-function: var(--default-transition-timing-function);
    -moz-transition-duration: 100ms;
    -o-transition-duration: 100ms;
    -webkit-transition-duration: 100ms;
    -ms-transition-duration: 100ms;
    transition-duration: 100ms;
    animation: tool-chips-pop-in 250ms cubic-bezier(0.23,1,0.32,1) both;
}

[data-slot="tool-chips-diff-file"]{
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[data-slot="tool-chips-diff-added"]{
    flex-shrink: 0;
    color: var(--badge-ok);
    font-variant-numeric: tabular-nums;
}

[data-slot="tool-chips-diff-removed"]{
    flex-shrink: 0;
    color: var(--destructive);
    font-variant-numeric: tabular-nums;
}

[data-slot="tool-chips-more"]{
    margin: 0;
    border: 0;
    background-color: transparent;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    display: inline-flex;
    height: calc(var(--spacing) * 7);
    align-items: center;
    border-radius: var(--radius-sm);
    padding-inline: calc(var(--spacing) * 1.5);
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--foreground);
    text-decoration-line: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    -moz-transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    -o-transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    -webkit-transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    -ms-transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
    -moz-transition-timing-function: var(--default-transition-timing-function);
    -o-transition-timing-function: var(--default-transition-timing-function);
    -webkit-transition-timing-function: var(--default-transition-timing-function);
    -ms-transition-timing-function: var(--default-transition-timing-function);
    transition-timing-function: var(--default-transition-timing-function);
    -moz-transition-duration: 100ms;
    -o-transition-duration: 100ms;
    -webkit-transition-duration: 100ms;
    -ms-transition-duration: 100ms;
    transition-duration: 100ms;
    animation: tool-chips-fade-in 300ms ease-out both;
}

[data-slot="tool-chips-preview"]{
    position: fixed;
    z-index: 50;
    width: calc(var(--spacing) * 72);
    overflow: hidden;
    border-radius: var(--radius-xl);
    background-color: var(--card);
    -moz-box-shadow: 0 0 0 1px var(--border), var(--shadow-lg);
    -o-box-shadow: 0 0 0 1px var(--border), var(--shadow-lg);
    -webkit-box-shadow: 0 0 0 1px var(--border), var(--shadow-lg);
    -ms-box-shadow: 0 0 0 1px var(--border), var(--shadow-lg);
    box-shadow: 0 0 0 1px var(--border), var(--shadow-lg);
    animation: tool-chips-pop-in 160ms cubic-bezier(0.23,1,0.32,1) both;
}

[data-slot="tool-chips-preview-head"]{
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    padding: calc(var(--spacing) * 1.5) calc(var(--spacing) * 2.5);
    font-family: var(--font-mono);
    font-size: 11px;
}

[data-slot="tool-chips-preview-file"]{
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--foreground);
}

[data-slot="tool-chips-preview-counts"]{
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

[data-slot="tool-chips-preview-added"]{
    color: var(--badge-ok);
}

[data-slot="tool-chips-preview-removed"]{
    color: var(--destructive);
}

[data-slot="tool-chips-preview-lines"]{
    padding-block: calc(var(--spacing) * 1);
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.8;
}

[data-slot="tool-chips-preview-line"]{
    display: flex;
    gap: calc(var(--spacing) * 2);
    padding-inline: calc(var(--spacing) * 2.5);
    white-space: pre;
    color: var(--foreground);
}

[data-slot="tool-chips-preview-line"][data-tone="add"]{
    background-color: color-mix(in oklch, var(--badge-ok) 12%, transparent);
    color: var(--badge-ok);
}

[data-slot="tool-chips-preview-line"][data-tone="del"]{
    background-color: color-mix(in oklch, var(--destructive) 12%, transparent);
    color: var(--destructive);
}

[data-slot="tool-chips-preview-sign"]{
    width: calc(var(--spacing) * 3);
    flex-shrink: 0;
    -moz-user-select: none;
    -o-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

[data-slot="tool-chips-preview-text"]{
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (hover: hover){
    [data-slot="tool-chips-toggle"]:hover{
        background-color: var(--accent);
    }
    [data-slot="tool-chips-row-button"]:hover{
        background-color: var(--accent);
    }
    [data-slot="tool-chips-row-button"]:hover [data-slot="tool-chips-row-icon"]{
        opacity: 0;
    }
    [data-slot="tool-chips-row-button"]:hover [data-slot="tool-chips-row-chevron"]{
        opacity: 1;
    }
    [data-slot="tool-chips-row-chip"]:hover{
        background-color: var(--accent);
    }
    [data-slot="tool-chips-diff-button"]:hover{
        background-color: var(--muted);
    }
    [data-slot="tool-chips-more"]:hover{
        color: var(--foreground);
        text-decoration-color: currentcolor;
    }
}

@media (prefers-reduced-motion: reduce){
    [data-slot="tool-chips-row"]{
        animation: none;
    }
    [data-slot="tool-chips-diff-button"]{
        animation: none;
    }
    [data-slot="tool-chips-more"]{
        animation: none;
    }
    [data-slot="tool-chips-preview"]{
        animation: none;
    }
}
@keyframes prompt-bar-pop-in{
    from{
        opacity: 0;
        -moz-transform: scale(0.95);
        -o-transform: scale(0.95);
        -webkit-transform: scale(0.95);
        -ms-transform: scale(0.95);
        transform: scale(0.95);
    }
    to{
        opacity: 1;
        -moz-transform: scale(1);
        -o-transform: scale(1);
        -webkit-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes prompt-bar-eq-bounce{
    0%, 100%{
        -moz-transform: scaleY(0.35);
        -o-transform: scaleY(0.35);
        -webkit-transform: scaleY(0.35);
        -ms-transform: scaleY(0.35);
        transform: scaleY(0.35);
    }
    50%{
        -moz-transform: scaleY(1);
        -o-transform: scaleY(1);
        -webkit-transform: scaleY(1);
        -ms-transform: scaleY(1);
        transform: scaleY(1);
    }
}

[data-slot^="prompt-bar"][hidden]{
    display: none !important;
}

[data-slot="prompt-bar"]{
    width: 100%;
}

[data-slot="prompt-bar"][data-demo="true"]{
    display: flex;
    min-height: 384px;
    max-width: calc(var(--spacing) * 105);
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: calc(var(--spacing) * 8);
}

[data-slot="prompt-bar-anchor"]{
    position: relative;
}

[data-slot="prompt-bar-menu"]{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    z-index: 10;
    margin-bottom: calc(var(--spacing) * 2);
    border-radius: var(--radius);
    background-color: var(--popover);
    padding: calc(var(--spacing) * 1);
    -moz-box-shadow: 0 0 0 1px var(--border), var(--shadow-pop);
    -o-box-shadow: 0 0 0 1px var(--border), var(--shadow-pop);
    -webkit-box-shadow: 0 0 0 1px var(--border), var(--shadow-pop);
    -ms-box-shadow: 0 0 0 1px var(--border), var(--shadow-pop);
    box-shadow: 0 0 0 1px var(--border), var(--shadow-pop);
    animation: prompt-bar-pop-in 180ms cubic-bezier(0.23,1,0.32,1) both;
    -moz-transform-origin: bottom center;
    -o-transform-origin: bottom center;
    -webkit-transform-origin: bottom center;
    -ms-transform-origin: bottom center;
    transform-origin: bottom center;
}

[data-slot="prompt-bar-highlight"]{
    pointer-events: none;
    position: absolute;
    left: calc(var(--spacing) * 1);
    right: calc(var(--spacing) * 1);
    border-radius: var(--radius);
    background-color: var(--accent);
    opacity: 0;
    -moz-transition: top 220ms cubic-bezier(0.23,1,0.32,1), height 220ms cubic-bezier(0.23,1,0.32,1), opacity 150ms ease;
    -o-transition: top 220ms cubic-bezier(0.23,1,0.32,1), height 220ms cubic-bezier(0.23,1,0.32,1), opacity 150ms ease;
    -webkit-transition: top 220ms cubic-bezier(0.23,1,0.32,1), height 220ms cubic-bezier(0.23,1,0.32,1), opacity 150ms ease;
    -ms-transition: top 220ms cubic-bezier(0.23,1,0.32,1), height 220ms cubic-bezier(0.23,1,0.32,1), opacity 150ms ease;
    transition: top 220ms cubic-bezier(0.23,1,0.32,1), height 220ms cubic-bezier(0.23,1,0.32,1), opacity 150ms ease;
}

[data-slot="prompt-bar-row"]{
    margin: 0;
    border: 0;
    padding: 0;
    background-color: transparent;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    position: relative;
    z-index: 10;
    display: flex;
    height: calc(var(--spacing) * 9);
    width: 100%;
    align-items: center;
    gap: calc(var(--spacing) * 2.5);
    border-radius: var(--radius);
    padding-inline: calc(var(--spacing) * 2);
}

[data-slot="prompt-bar-row-icon"]{
    display: flex;
    width: calc(var(--spacing) * 5.5);
    height: calc(var(--spacing) * 5.5);
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: var(--foreground);
}

[data-slot="prompt-bar-row-icon"]:has(> [data-slot="prompt-bar-row-picture"]){
    width: calc(var(--spacing) * 7);
    height: calc(var(--spacing) * 7);
}

[data-slot="prompt-bar-row-picture"]{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    background-color: var(--muted);
    -moz-box-shadow: 0 0 0 1px var(--border);
    -o-box-shadow: 0 0 0 1px var(--border);
    -webkit-box-shadow: 0 0 0 1px var(--border);
    -ms-box-shadow: 0 0 0 1px var(--border);
    box-shadow: 0 0 0 1px var(--border);
}

[data-slot="prompt-bar-row-name"]{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-width: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    line-height: 1.25;
    font-size: 12.5px;
    font-weight: var(--font-weight-medium);
    color: var(--foreground);
}

[data-slot="prompt-bar-row-desc"]{
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    color: var(--foreground);
}

[data-slot="prompt-bar-connect"]{
    flex-shrink: 0;
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    color: var(--primary);
    cursor: pointer;
    -moz-transition: color 100ms var(--default-transition-timing-function);
    -o-transition: color 100ms var(--default-transition-timing-function);
    -webkit-transition: color 100ms var(--default-transition-timing-function);
    -ms-transition: color 100ms var(--default-transition-timing-function);
    transition: color 100ms var(--default-transition-timing-function);
}

[data-slot="prompt-bar-connect"][data-connected="true"]{
    color: var(--badge-ok);
}

[data-slot="prompt-bar-empty"]{
    display: flex;
    height: calc(var(--spacing) * 9);
    align-items: center;
    padding-inline: calc(var(--spacing) * 2);
    font-size: 12px;
    color: var(--muted-foreground);
}

[data-slot="prompt-bar-menu-hint"]{
    margin-top: calc(var(--spacing) * 1);
    border-top: 1px solid var(--border);
    padding: calc(var(--spacing) * 1.5) calc(var(--spacing) * 2) calc(var(--spacing) * 1);
    font-size: 11px;
    color: var(--muted-foreground);
}

[data-slot="prompt-bar-model-menu"]{
    position: absolute;
    z-index: 10;
    width: calc(var(--spacing) * 44);
    border-radius: var(--radius);
    background-color: var(--popover);
    padding: calc(var(--spacing) * 1);
    -moz-box-shadow: 0 0 0 1px var(--border), var(--shadow-pop);
    -o-box-shadow: 0 0 0 1px var(--border), var(--shadow-pop);
    -webkit-box-shadow: 0 0 0 1px var(--border), var(--shadow-pop);
    -ms-box-shadow: 0 0 0 1px var(--border), var(--shadow-pop);
    box-shadow: 0 0 0 1px var(--border), var(--shadow-pop);
    animation: prompt-bar-pop-in 180ms cubic-bezier(0.23,1,0.32,1) both;
    -moz-transform-origin: bottom left;
    -o-transform-origin: bottom left;
    -webkit-transform-origin: bottom left;
    -ms-transform-origin: bottom left;
    transform-origin: bottom left;
}

[data-slot="prompt-bar-model-highlight"]{
    pointer-events: none;
    position: absolute;
    left: calc(var(--spacing) * 1);
    right: calc(var(--spacing) * 1);
    border-radius: var(--radius);
    background-color: var(--accent);
    opacity: 0;
    -moz-transition: top 220ms cubic-bezier(0.23,1,0.32,1), height 220ms cubic-bezier(0.23,1,0.32,1), opacity 150ms ease;
    -o-transition: top 220ms cubic-bezier(0.23,1,0.32,1), height 220ms cubic-bezier(0.23,1,0.32,1), opacity 150ms ease;
    -webkit-transition: top 220ms cubic-bezier(0.23,1,0.32,1), height 220ms cubic-bezier(0.23,1,0.32,1), opacity 150ms ease;
    -ms-transition: top 220ms cubic-bezier(0.23,1,0.32,1), height 220ms cubic-bezier(0.23,1,0.32,1), opacity 150ms ease;
    transition: top 220ms cubic-bezier(0.23,1,0.32,1), height 220ms cubic-bezier(0.23,1,0.32,1), opacity 150ms ease;
}

[data-slot="prompt-bar-model-row"]{
    margin: 0;
    border: 0;
    padding: 0;
    background-color: transparent;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    position: relative;
    z-index: 10;
    display: flex;
    height: calc(var(--spacing) * 7.5);
    width: 100%;
    align-items: center;
    gap: calc(var(--spacing) * 2);
    border-radius: var(--radius);
    padding-inline: calc(var(--spacing) * 2);
}

[data-slot="prompt-bar-model-row-name"]{
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12.5px;
    font-weight: var(--font-weight-medium);
    color: var(--foreground);
}

[data-slot="prompt-bar-model-row-tag"]{
    flex-shrink: 0;
    font-size: 11px;
    color: var(--foreground);
}

[data-slot="prompt-bar-model-row-check"]{
    display: flex;
    flex-shrink: 0;
    color: var(--foreground);
    visibility: hidden;
}

[data-slot="prompt-bar-model-row"][data-selected="true"] [data-slot="prompt-bar-model-row-check"]{
    visibility: visible;
}

[data-slot="prompt-bar-composer"]{
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing) * 1.5);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--field);
    padding: calc(var(--spacing) * 1.5);
    -moz-box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 4px 16px rgb(0 0 0 / 0.07);
    -o-box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 4px 16px rgb(0 0 0 / 0.07);
    -webkit-box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 4px 16px rgb(0 0 0 / 0.07);
    -ms-box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 4px 16px rgb(0 0 0 / 0.07);
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 4px 16px rgb(0 0 0 / 0.07);
    -moz-transition: border-color 150ms var(--default-transition-timing-function), border-radius 150ms var(--default-transition-timing-function);
    -o-transition: border-color 150ms var(--default-transition-timing-function), border-radius 150ms var(--default-transition-timing-function);
    -webkit-transition: border-color 150ms var(--default-transition-timing-function), border-radius 150ms var(--default-transition-timing-function);
    -ms-transition: border-color 150ms var(--default-transition-timing-function), border-radius 150ms var(--default-transition-timing-function);
    transition: border-color 150ms var(--default-transition-timing-function), border-radius 150ms var(--default-transition-timing-function);
}

html.dark [data-slot="prompt-bar-composer"]{
    -moz-box-shadow: var(--shadow-xs);
    -o-box-shadow: var(--shadow-xs);
    -webkit-box-shadow: var(--shadow-xs);
    -ms-box-shadow: var(--shadow-xs);
    box-shadow: var(--shadow-xs);
}

[data-slot="prompt-bar-composer"]:focus-within{
    border-color: var(--ring);
}

[data-tall="true"] [data-slot="prompt-bar-composer"]{
    gap: calc(var(--spacing) * 2.5);
    padding: calc(var(--spacing) * 3.5);
    border-radius: var(--radius);
}

[data-variant="pill"] [data-slot="prompt-bar-composer"]{
    border-radius: 9999px;
}

[data-variant="pill"][data-wide="true"] [data-slot="prompt-bar-composer"]{
    border-radius: 24px;
}

[data-variant="pill"][data-attachments="true"] [data-slot="prompt-bar-composer"]{
    border-radius: 24px;
}

[data-slot="prompt-bar-glimm"]{
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: -10;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

[data-slot="prompt-bar-measure"]{
    pointer-events: none;
    position: absolute;
    visibility: hidden;
    white-space: pre;
    font-size: 13px;
    line-height: 18px;
}

[data-slot="prompt-bar-attachments"]{
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--spacing) * 1.5);
    padding-top: calc(var(--spacing) * 0.5);
    padding-inline: calc(var(--spacing) * 0.5);
}

[data-variant="pill"] [data-slot="prompt-bar-attachments"]{
    padding-inline: calc(var(--spacing) * 1);
}

[data-slot="prompt-bar-attachment"]{
    display: flex;
    height: calc(var(--spacing) * 6.5);
    align-items: center;
    gap: calc(var(--spacing) * 1.5);
    border-radius: var(--radius);
    background-color: var(--muted);
    padding: calc(var(--spacing) * 1) calc(var(--spacing) * 1) calc(var(--spacing) * 1) calc(var(--spacing) * 1.5);
    font-size: 11.5px;
    color: var(--foreground);
    -moz-box-shadow: 0 0 0 1px var(--border);
    -o-box-shadow: 0 0 0 1px var(--border);
    -webkit-box-shadow: 0 0 0 1px var(--border);
    -ms-box-shadow: 0 0 0 1px var(--border);
    box-shadow: 0 0 0 1px var(--border);
    animation: prompt-bar-pop-in 200ms cubic-bezier(0.23,1,0.32,1) both;
}

html.dark [data-slot="prompt-bar-attachment"]{
    background-color: var(--background);
}

[data-variant="pill"] [data-slot="prompt-bar-attachment"]{
    border-radius: 9999px;
}

[data-slot="prompt-bar-attachment-name"]{
    max-width: calc(var(--spacing) * 36);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[data-slot="prompt-bar-attachment-remove"]{
    margin: 0;
    border: 0;
    padding: 0;
    background-color: transparent;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    margin-block: calc(var(--spacing) * -1);
    display: flex;
    width: calc(var(--spacing) * 6);
    height: calc(var(--spacing) * 6);
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--foreground);
    -moz-transition: color 100ms var(--default-transition-timing-function), background-color 100ms var(--default-transition-timing-function);
    -o-transition: color 100ms var(--default-transition-timing-function), background-color 100ms var(--default-transition-timing-function);
    -webkit-transition: color 100ms var(--default-transition-timing-function), background-color 100ms var(--default-transition-timing-function);
    -ms-transition: color 100ms var(--default-transition-timing-function), background-color 100ms var(--default-transition-timing-function);
    transition: color 100ms var(--default-transition-timing-function), background-color 100ms var(--default-transition-timing-function);
}

[data-variant="pill"] [data-slot="prompt-bar-attachment-remove"]{
    border-radius: 9999px;
}

[data-slot="prompt-bar-controls"]{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    column-gap: calc(var(--spacing) * 1);
    row-gap: calc(var(--spacing) * 1.5);
}

[data-slot="prompt-bar-input"]{
    flex: 1 1 0;
}

[data-slot="prompt-bar-spacer"]{
    display: none;
    flex: 1 1 0;
}

[data-wide="true"] [data-slot="prompt-bar-input"]{
    order: -1;
    flex: 1 1 100%;
}

[data-wide="true"] [data-slot="prompt-bar-spacer"]{
    display: block;
}

[data-slot="prompt-bar-plus"]{
    margin: 0;
    border: 0;
    padding: 0;
    background-color: transparent;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    display: flex;
    width: calc(var(--spacing) * 7);
    height: calc(var(--spacing) * 7);
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--foreground);
    -moz-transition: background-color 150ms var(--default-transition-timing-function), color 150ms var(--default-transition-timing-function), transform 150ms var(--default-transition-timing-function);
    -o-transition: background-color 150ms var(--default-transition-timing-function), color 150ms var(--default-transition-timing-function), transform 150ms var(--default-transition-timing-function);
    -webkit-transition: background-color 150ms var(--default-transition-timing-function), color 150ms var(--default-transition-timing-function), transform 150ms var(--default-transition-timing-function);
    -ms-transition: background-color 150ms var(--default-transition-timing-function), color 150ms var(--default-transition-timing-function), transform 150ms var(--default-transition-timing-function);
    transition: background-color 150ms var(--default-transition-timing-function), color 150ms var(--default-transition-timing-function), transform 150ms var(--default-transition-timing-function);
}

[data-slot="prompt-bar-plus"][aria-expanded="true"]{
    background-color: var(--accent);
}

[data-slot="prompt-bar-input"]{
    margin: 0;
    border: 0;
    min-height: calc(var(--spacing) * 7);
    min-width: 0;
    width: 100%;
    resize: none;
    background-color: transparent;
    padding: 5px calc(var(--spacing) * 1);
    font: inherit;
    font-size: 13px;
    line-height: 18px;
    color: var(--foreground);
    outline: none;
    overflow-wrap: anywhere;
}

[data-tall="true"] [data-slot="prompt-bar-input"]{
    min-height: 68px;
    padding: calc(var(--spacing) * 2);
    font-size: 14px;
    line-height: 20px;
}

[data-slot="prompt-bar-input"]::placeholder{
    color: var(--muted-foreground);
}

[data-slot="prompt-bar-model"]{
    margin: 0;
    border: 0;
    padding: 0;
    background-color: transparent;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    display: flex;
    height: calc(var(--spacing) * 7);
    flex-shrink: 0;
    align-items: center;
    gap: calc(var(--spacing) * 1);
    border-radius: var(--radius);
    padding-inline: calc(var(--spacing) * 1.5);
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    color: var(--foreground);
    -moz-transition: color 150ms var(--default-transition-timing-function), background-color 150ms var(--default-transition-timing-function);
    -o-transition: color 150ms var(--default-transition-timing-function), background-color 150ms var(--default-transition-timing-function);
    -webkit-transition: color 150ms var(--default-transition-timing-function), background-color 150ms var(--default-transition-timing-function);
    -ms-transition: color 150ms var(--default-transition-timing-function), background-color 150ms var(--default-transition-timing-function);
    transition: color 150ms var(--default-transition-timing-function), background-color 150ms var(--default-transition-timing-function);
}

[data-slot="prompt-bar-model-chevron"]{
    display: flex;
    color: var(--muted-foreground);
}

[data-slot="prompt-bar-dictation"]{
    margin: 0;
    border: 0;
    padding: 0;
    background-color: transparent;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    display: flex;
    width: calc(var(--spacing) * 7);
    height: calc(var(--spacing) * 7);
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--foreground);
    -moz-transition: background-color 150ms var(--default-transition-timing-function), color 150ms var(--default-transition-timing-function), transform 150ms var(--default-transition-timing-function);
    -o-transition: background-color 150ms var(--default-transition-timing-function), color 150ms var(--default-transition-timing-function), transform 150ms var(--default-transition-timing-function);
    -webkit-transition: background-color 150ms var(--default-transition-timing-function), color 150ms var(--default-transition-timing-function), transform 150ms var(--default-transition-timing-function);
    -ms-transition: background-color 150ms var(--default-transition-timing-function), color 150ms var(--default-transition-timing-function), transform 150ms var(--default-transition-timing-function);
    transition: background-color 150ms var(--default-transition-timing-function), color 150ms var(--default-transition-timing-function), transform 150ms var(--default-transition-timing-function);
}

[data-slot="prompt-bar-dictation"][aria-pressed="true"]{
    background-color: color-mix(in oklab, var(--primary) 10%, transparent);
    color: var(--primary);
}

[data-slot="prompt-bar-dictation"][aria-pressed="true"] > svg{
    display: none;
}

[data-slot="prompt-bar-dictation"][aria-pressed="false"] [data-slot="prompt-bar-bars"]{
    display: none;
}

[data-slot="prompt-bar-bars"]{
    display: flex;
    height: calc(var(--spacing) * 3.5);
    align-items: center;
    gap: 2.5px;
}

[data-slot="prompt-bar-bar"]{
    width: 2.5px;
    height: 100%;
    border-radius: 9999px;
    background-color: currentcolor;
    animation: prompt-bar-eq-bounce 900ms ease-in-out infinite;
}

[data-slot="prompt-bar-send"]{
    margin: 0;
    border: 0;
    padding: 0;
    background-color: transparent;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    display: flex;
    width: calc(var(--spacing) * 7);
    height: calc(var(--spacing) * 7);
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background-color: var(--foreground);
    color: var(--background);
    -moz-transition: background-color 200ms var(--default-transition-timing-function), color 200ms var(--default-transition-timing-function), transform 200ms var(--default-transition-timing-function);
    -o-transition: background-color 200ms var(--default-transition-timing-function), color 200ms var(--default-transition-timing-function), transform 200ms var(--default-transition-timing-function);
    -webkit-transition: background-color 200ms var(--default-transition-timing-function), color 200ms var(--default-transition-timing-function), transform 200ms var(--default-transition-timing-function);
    -ms-transition: background-color 200ms var(--default-transition-timing-function), color 200ms var(--default-transition-timing-function), transform 200ms var(--default-transition-timing-function);
    transition: background-color 200ms var(--default-transition-timing-function), color 200ms var(--default-transition-timing-function), transform 200ms var(--default-transition-timing-function);
}

[data-slot="prompt-bar-send"]:disabled{
    background-color: var(--input);
    color: var(--foreground);
    cursor: default;
}

[data-variant="pill"] [data-slot="prompt-bar-plus"], [data-variant="pill"] [data-slot="prompt-bar-model"], [data-variant="pill"] [data-slot="prompt-bar-dictation"], [data-variant="pill"] [data-slot="prompt-bar-send"]{
    border-radius: 9999px;
}

[data-slot="prompt-bar-plus"]:active, [data-slot="prompt-bar-dictation"]:active, [data-slot="prompt-bar-send"]:enabled:active{
    -moz-transform: scale(0.94);
    -o-transform: scale(0.94);
    -webkit-transform: scale(0.94);
    -ms-transform: scale(0.94);
    transform: scale(0.94);
}

@media (hover: hover){
    [data-slot="prompt-bar-connect"]:hover{
        text-decoration-line: underline;
    }
    [data-slot="prompt-bar-connect"][data-connected="true"]:hover{
        text-decoration-line: none;
    }
    [data-slot="prompt-bar-attachment-remove"]:hover{
        background-color: color-mix(in oklab, var(--border) 70%, transparent);
    }
    [data-slot="prompt-bar-plus"]:hover{
        background-color: var(--accent);
    }
    [data-slot="prompt-bar-model"]:hover{
        background-color: var(--accent);
    }
    [data-slot="prompt-bar-dictation"][aria-pressed="false"]:hover{
        background-color: var(--accent);
    }
}
@layer lims {
/* The application's own stylesheet.
 *
 * A .css file rather than a string inside a .lisp file: editing CSS in a
 * Lisp string literal means no highlighting, no brace matching, no
 * linter, and a stray double quote silently ends the string and breaks
 * the build. Read at compile time by src/html/style.lisp, exactly as the
 * component sheets under ui/ are.
 *
 * The design tokens are NOT here — they are Lisp data in
 * src/html/tokens.lisp, emitted once by the PAGE shell, because they
 * used to be declared in both this sheet and ui/tokens.css and the
 * duplicate silently won.
 */
@font-face { font-family: 'Suisse Intl'; src: url('/static/fonts/SuisseIntlTRIAL-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; unicode-range: U+0020, U+002C-002E, U+0030-0039, U+0041-005A, U+0061-007A, U+2019; font-display: swap; }
@font-face { font-family: 'Suisse Intl'; src: url('/static/fonts/SuisseIntlTRIAL-RegularIt.woff2') format('woff2'); font-weight: 400; font-style: italic; unicode-range: U+0020, U+002C-002E, U+0030-0039, U+0041-005A, U+0061-007A, U+2019; font-display: swap; }
@font-face { font-family: 'Suisse Intl'; src: url('/static/fonts/SuisseIntlTRIAL-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; unicode-range: U+0020, U+002C-002E, U+0030-0039, U+0041-005A, U+0061-007A, U+2019; font-display: swap; }
@font-face { font-family: 'Suisse Intl'; src: url('/static/fonts/SuisseIntlTRIAL-MediumIt.woff2') format('woff2'); font-weight: 500; font-style: italic; unicode-range: U+0020, U+002C-002E, U+0030-0039, U+0041-005A, U+0061-007A, U+2019; font-display: swap; }
@font-face { font-family: 'Suisse Intl'; src: url('/static/fonts/SuisseIntlTRIAL-Semibold.woff2') format('woff2'); font-weight: 600; font-style: normal; unicode-range: U+0020, U+002C-002E, U+0030-0039, U+0041-005A, U+0061-007A, U+2019; font-display: swap; }
@font-face { font-family: 'Suisse Intl'; src: url('/static/fonts/SuisseIntlTRIAL-SemiboldIt.woff2') format('woff2'); font-weight: 600; font-style: italic; unicode-range: U+0020, U+002C-002E, U+0030-0039, U+0041-005A, U+0061-007A, U+2019; font-display: swap; }
@font-face { font-family: 'Suisse Intl'; src: url('/static/fonts/SuisseIntlTRIAL-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; unicode-range: U+0020, U+002C-002E, U+0030-0039, U+0041-005A, U+0061-007A, U+2019; font-display: swap; }
@font-face { font-family: 'Suisse Intl Mono'; src: url('/static/fonts/SuisseIntlMonoTRIAL-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; unicode-range: U+0020, U+002C-002E, U+0030-0039, U+0041-005A, U+0061-007A, U+2019; font-display: swap; }
@font-face { font-family: 'Suisse Intl Mono'; src: url('/static/fonts/SuisseIntlMonoTRIAL-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; unicode-range: U+0020, U+002C-002E, U+0030-0039, U+0041-005A, U+0061-007A, U+2019; font-display: swap; }
/* ---- FK Grotesk, vendored (same faces the Next.js root layout declares).
   No longer named by any token; kept only until Suisse is licensed. */
@font-face { font-family: 'FK Grotesk'; src: url('/static/fonts/FKGroteskTrial-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'FK Grotesk'; src: url('/static/fonts/FKGroteskTrial-Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'FK Grotesk'; src: url('/static/fonts/FKGroteskTrial-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'FK Grotesk'; src: url('/static/fonts/FKGroteskTrial-MediumItalic.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'FK Grotesk'; src: url('/static/fonts/FKGroteskTrial-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'FK Grotesk Mono'; src: url('/static/fonts/FKGroteskMonoTrial-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'FK Grotesk Mono'; src: url('/static/fonts/FKGroteskMonoTrial-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
/* JetBrains Mono (OFL, static/fonts/JetBrainsMono-OFL.txt): the reading
   face of the agent panel — a transcript is read the way an editor is. */
@font-face { font-family: 'JetBrains Mono'; src: url('/static/fonts/JetBrainsMono-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/static/fonts/JetBrainsMono-Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/static/fonts/JetBrainsMono-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/static/fonts/JetBrainsMono-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* The dark palette is not here. It used to be — a .dark block ported
   verbatim from the Next.js app and never applied — and it could not
   have worked where it sat: this sheet is served inside @layer lims and
   the tokens are emitted unlayered, so :root beat .dark whatever the
   markup said. It lives beside the light palette in tokens.lisp now,
   and the topbar's toggle puts .dark on <html>. */

/* ---- Base ---- */
* { box-sizing: border-box; border-color: var(--border); }
html { font-family: var(--font-sans); touch-action: manipulation; }
body {
  margin: 0; background: var(--background); color: var(--foreground);
  display: flex; flex-direction: column; min-height: 100svh;
  font-size: var(--text-base); line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
/* Identifiers wear a quiet pill in the UI face, not a terminal font:
   this software is read by scientists all day, and mono everywhere
   made records read like logs. .mono remains for the few places a
   fixed-width column genuinely helps (ZPL, the barcode's own text). */
code { font-family: inherit; font-size: .92em;
  background: var(--muted, var(--sidebar-accent));
  padding: .05rem .3rem; border-radius: calc(var(--radius) / 2); }
.mono { font-family: var(--font-mono); }

/* Scrollbars are hidden everywhere — the page scrollbar and every inner
   pane. Only the bar is gone: wheel, trackpad, touch, keyboard, and
   scroll-into-view all behave exactly as before, and the scroll
   containers keep their overflow.

   The three declarations are three engines, none of which honours the
   others: scrollbar-width is the standard (Firefox), ::-webkit-scrollbar
   is Chrome and Safari, -ms-overflow-style is legacy Edge.

   The cost is that a long page no longer shows how long it is or where
   you are in it, so anything that scrolls needs some other cue that
   there is more below it. */
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* ---- Cards ---- */
.card {
  background: var(--card); color: var(--card-foreground);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; width: 100%; max-width: 28rem;
  display: flex; flex-direction: column; gap: .75rem;
}
.card h1 { margin: 0; font-size: var(--text-base); font-weight: var(--font-weight-semibold); letter-spacing: var(--tracking-snug); }
.card p { margin: 0; font-size: var(--text-sm); color: var(--muted-foreground); }
.card .actions { display: flex; gap: .5rem; margin-top: .5rem; }
main.center { display: flex; flex: 1; align-items: center; justify-content: center; padding: 1.5rem var(--gutter); }

/* A reference to another record: boxed so it reads as an object, lit
   under the pointer so it reads as openable. */
.record-chip { display: inline-flex; align-items: center; gap: .25rem;
  padding: .1rem .45rem; border: 1px solid var(--border);
  border-radius: calc(var(--radius) / 1.5);
  background: var(--muted, var(--sidebar-accent));
  font-size: var(--text-sm); color: var(--foreground);
  text-decoration: none; cursor: pointer;
  transition: background 100ms ease, border-color 100ms ease; }
/* The hover has to visibly lighten, in either palette: mix the
   foreground into the resting background rather than swapping to a
   token that may barely differ. */
.record-chip:hover { background: color-mix(in oklab,
    var(--foreground) 16%, var(--muted, var(--sidebar-accent)));
  border-color: var(--muted-foreground); }

/* ---- The overview layout (components/overview.lisp) ----
   Linear's team overview, measured off its app: a 688px main column, a
   212px rail, 60px between them, 24px between sections. Used flush —
   the crumb bar draws its own inset, so a page built from these passes
   :flush and the bar sits against the plane's top edge as Linear's
   does. */
/* The three bands of an overview page — crumb, tabs, body — are
   siblings in the plane rather than one wrapper, so they each carry the
   same cap and auto margins. That is what keeps their left edges on one
   line and puts the whole page in the middle of the plane instead of
   pinned against the sidebar. */
.crumb-bar, .pill-tabs, .overview {
  width: 100%; max-width: 62rem; margin-inline: auto;
}
.crumb-bar { display: flex; align-items: center; gap: 8px; height: 48px;
             flex-shrink: 0; padding: 0 16px;
             font-size: var(--text-sm); color: var(--foreground); }
.crumb-icon { display: inline-flex; }
.crumb-icon svg { width: 16px; height: 16px; }
.crumb-label { font-weight: var(--font-weight-medium); }
.crumb-back { font-size: var(--text-sm); color: var(--muted-foreground); }
.crumb-back::after { content: "/"; margin-left: 8px; opacity: .5; }
.crumb-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }

/* Pill tabs. Fully rounded and 28px tall, so the strip reads as
   controls rather than as a second heading row. */
/* 6px on the left, not 16: a pill carries 10px of its own padding, so
   the strip pays the difference and the first tab's *text* lands on
   16px — the same line as the crumb above it and the title tile below.
   Its highlight still bleeds the 10px left of the text, which is what
   makes a pill a pill. */
.pill-tabs { display: flex; align-items: center; gap: 4px;
             padding: 0 16px 16px 6px; flex-shrink: 0;
             overflow-x: auto; scrollbar-width: none; }
.pill-tabs::-webkit-scrollbar { display: none; }
.pill-tab { flex-shrink: 0; display: inline-flex; align-items: center;
            height: 28px; padding: 0 10px; border-radius: var(--radius);
            font-size: var(--text-xs); font-weight: var(--font-weight-medium);
            color: var(--muted-foreground); white-space: nowrap; }
.pill-tab:hover { background: var(--accent); color: var(--foreground); }
.pill-tab.active { background: var(--accent); color: var(--accent-foreground); }

/* The two columns. `align-items: start` keeps the rail at the top
   instead of stretching it the height of the main column, which is
   what makes a short rail beside a long page look deliberate. */
/* No scroller of its own — the plane above is the one that scrolls, and
   two nested scrollers means a wheel event over the rail moves the
   wrong thing. */
.overview { display: flex; align-items: start; gap: 60px;
            padding: 8px 16px 48px; }
.overview-main { flex: 1; min-width: 0; max-width: 688px;
                 display: flex; flex-direction: column; gap: 24px; }
.overview-rail { flex-shrink: 0; width: 212px;
                 display: flex; flex-direction: column; gap: 24px; }
/* Below the two-column width the rail goes under the main column
   rather than getting narrower — a squeezed rail of quick links is
   worse than one further down. */
@media (max-width: 1100px) {
  .overview { flex-direction: column; gap: 32px; }
  .overview-rail { width: 100%; }
}

.overview-title { display: flex; align-items: center; gap: 12px; }
.overview-title h1 { margin: 0; font-size: 24px;
                     font-weight: var(--font-weight-semibold);
                     letter-spacing: -.16px; }
/* Neutral, like the sidebar's team chip — the tinted version made every
   page open with a coloured square that read as a status light. */
.overview-title-tile { flex-shrink: 0; display: grid; place-items: center;
                       width: 2.25rem; height: 2.25rem;
                       border-radius: var(--radius);
                       color: var(--muted-foreground); background: var(--muted); }
.overview-title-tile svg { width: 1.25rem; height: 1.25rem; }

/* The description. Empty and filled are the same line in two moods —
   same size, same position, only the colour differs — so adding one
   does not shift the page. */
.overview-desc { margin-top: -12px; }
.overview-desc-text, .overview-desc-empty {
  display: block; margin: 0; font-size: 15px; line-height: 1.5; }
.overview-desc-text { color: var(--foreground); }
.overview-desc-empty { color: var(--muted-foreground); }
a.overview-desc-text:hover, a.overview-desc-empty:hover {
  color: var(--foreground); text-decoration: underline;
  text-underline-offset: 3px; }

/* The type-in-place field (INLINE-TEXT; the overview description is
   one). It is the sentence, not a field: no border, no background, no
   fixed height, and no change of colour when you write in it — writing
   in a document does not tint the paper. The only affordance is that
   the pointer becomes a caret. */
.inline-edit {
  cursor: text;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.inline-edit:focus { outline: none; }
/* The placeholder, done the way tiptap does it (their placeholder
   extension's CSS — packages/extensions/src/placeholder, MIT):
   `.is-empty::before { content: attr(data-placeholder); float: left;
   height: 0; pointer-events: none }`.

   All three properties earn their place. FLOAT plus HEIGHT 0 take the
   pseudo-element out of flow so an empty field is exactly one line
   tall and the caret sits at its start — in normal flow it stacks
   above the caret and doubles the field's height. POINTER-EVENTS NONE
   is why clicking the placeholder puts the caret in the editor instead
   of the click landing on the pseudo-element and focusing nothing.

   :empty is no help here — an emptied contenteditable keeps a <br> —
   so the class is maintained by the script, as tiptap's is by its
   decoration plugin. */
.inline-edit.is-empty::before {
  content: attr(data-placeholder);
  float: left;
  height: 0;
  pointer-events: none;
  color: var(--muted-foreground);
}
/* A hint is for the box you have not reached yet. The moment the caret
   is in a field the example text goes, on every input, textarea and
   typed-in-place line in the app: what is left is the field, empty,
   waiting for what you type. The element selectors are what give these
   rules the specificity to beat each component's own ::placeholder. */
input:focus::placeholder,
textarea:focus::placeholder { color: transparent; }
.inline-edit.is-empty:focus::before { color: transparent; }
.inline-edit-status {
  display: block; margin-top: .25rem; min-height: 1rem;
  font-size: var(--text-xs); color: var(--muted-foreground);
  transition: opacity .15s;
}
.inline-edit-status[data-inline-status="bad"] { color: var(--destructive); }

.overview-section { display: flex; flex-direction: column; gap: 8px; }
.overview-section-head { display: flex; align-items: center; gap: 8px;
                         min-height: 28px; }
.overview-section-head h2 { margin: 0; font-size: 18px;
                            font-weight: var(--font-weight-medium);
                            letter-spacing: -.1px; }
.overview-section-actions { margin-left: auto; display: flex;
                            align-items: center; gap: 4px; }
.overview-section-empty { margin: 0; font-size: 15px;
                          color: var(--muted-foreground); }

/* The hue an avatar drawn outside the rail falls back to; the rail's
   own is declared in ui/shell.lisp. */
.overview-title-tile, .stack-avatar { --avatar-hue: 250; }

/* ---- The rail ---- */
.rail-section { display: flex; flex-direction: column; gap: 12px; }
.rail-label { margin: 0; font-size: var(--text-xs);
              font-weight: var(--font-weight-medium);
              color: var(--muted-foreground); }
.rail-body { display: flex; flex-direction: column; gap: 2px; }
.rail-empty { font-size: var(--text-sm); color: var(--muted-foreground); }
.rail-link { display: flex; align-items: center; gap: 8px;
             height: 28px; margin: 0 -8px; padding: 0 8px;
             border-radius: var(--radius);
             font-size: var(--text-sm); font-weight: var(--font-weight-medium);
             color: var(--foreground); }
.rail-link:hover { background: var(--accent); }
.rail-link-icon { display: inline-flex; color: var(--muted-foreground); }
.rail-link-icon svg { width: 16px; height: 16px; }
.rail-facts { display: grid; grid-template-columns: auto 1fr;
              gap: 4px 12px; margin: 0; font-size: var(--text-sm); }
.rail-facts dt { color: var(--muted-foreground); }
.rail-facts dd { margin: 0; }

/* The member stack. The ring is the page background, so the discs read
   as separate even where they overlap. */
.avatar-stack { display: flex; align-items: center; }
.avatar-stack-link { display: flex; }
.stack-avatar { display: grid; place-items: center;
                width: 18px; height: 18px; border-radius: var(--radius);
                margin-right: -5px;
                font-size: 8px; font-weight: var(--font-weight-medium);
                line-height: 1; color: oklch(.98 0 0);
                background: oklch(.62 .13 var(--avatar-hue, 250));
                box-shadow: 0 0 0 2px var(--background); }
.stack-more { color: var(--muted-foreground); background: var(--accent); }
.avatar-stack-link:hover .stack-avatar { box-shadow: 0 0 0 2px var(--accent); }

/* The caller's organization, quiet in the topbar's right corner. */
.topbar-org { font-size: var(--text-sm); color: var(--muted-foreground);
              white-space: nowrap; }

/* ---- Workbench content ---- */
/* 64rem, not 48: a record table is five or six columns wide and the old
   cap cut the last one off inside its scroll container. Prose still
   reads at a sane measure because the paragraphs that live here — the
   page blurb, an empty-state line — are short by construction. */
.content-narrow { width: 100%; max-width: 64rem; margin: 0 auto;
                  display: flex; flex-direction: column; gap: 1rem; }
/* Record tables (components/records.lisp). The look is the shadcn port
   in ui/table.lisp; these are the three things a *record* table adds.

   The row link: one anchor, in the first cell, stretched over that cell
   by an absolutely-positioned ::after; a click on any other cell follows
   it (+ROW-LINK-SCRIPT+, components/popover.lisp). Until 2026-11-11 the
   row was the positioning context and the sheet covered the whole row,
   but Safari 17 does not position against a table row: every row's sheet
   covered the whole table, the last on top, and each row opened the last
   row's page. A cell is a positioning context in every browser. A button
   inside a later cell stays clickable. */
.row-link-cell { position: relative; }
tr:has(.row-link) { cursor: pointer; }
.row-link { color: inherit; text-decoration: none;
            font-weight: var(--font-weight-medium); }
.row-link::after { content: ""; position: absolute; inset: 0; }
tr:has(.row-link) [data-slot="button"],
tr:has(.row-link) a:not(.row-link) { position: relative; z-index: 1; }

/* The first column is the record's name: it holds the link, so it never
   wraps and never gets clipped. */
td.row-name, th.row-name { white-space: nowrap; }

/* Whichever column says so takes the width the names, badges and
   timestamps do not. It ellipsises past a cap rather than pushing the
   table into its scroll container — a title is worth reading, but not
   worth a horizontal scrollbar on every row. The cap is a real length
   on purpose: in an auto-layout table max-width:0 collapses the column
   to its minimum instead of letting it grow. */
td.row-wide, th.row-wide { width: 100%; max-width: 22rem;
                           overflow: hidden; text-overflow: ellipsis; }

/* Timestamps: mono, quiet, hard against the right edge. */
td.row-time, th.row-time { text-align: right; font-family: var(--font-mono);
                           font-size: var(--text-2xs);
                           color: var(--muted-foreground); }

/* Dialog: <details> standing in for the shadcn dialog. */
details.dialog { position: relative; }
details.dialog > summary { list-style: none; cursor: pointer; }
details.dialog > summary::-webkit-details-marker { display: none; }
details.dialog[open] > .dialog-panel {
  position: absolute; right: 0; top: 2.25rem; z-index: 30; width: 24rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  display: flex; flex-direction: column; gap: .75rem;
  box-shadow: var(--shadow-pop);
}
/* A section heading — one rule instead of the same inline style on
   every page. */
.section-title { margin: 0; font-size: 1rem; font-weight: var(--font-weight-medium); }
/* An inline element nudged off the one before it — a badge after a
   title, a note after a name. */
.trailing { margin-left: .5rem; }
.trailing-tight { margin-left: .35rem; }
/* A row title's second half — the human name after the code. */
.row-subtitle { margin-left: .5rem; font-weight: 400; }

/* ---- Detail views ---- */
.facts { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem;
  row-gap: .25rem; margin: 0; font-size: var(--text-xs); }
.facts dt { color: var(--muted-foreground); }
.facts dd { margin: 0; min-width: 0; }
/* ---- Popovers (components/popover.lisp) ----
   A panel anchored to the button that opens it. The UA puts a popover
   in the top layer with `position: fixed` and centres it; the placement
   script writes the offsets that put it back against its button, so the
   margin and inset reset here is what stops the default centring from
   fighting them. Top layer is also the point: no ancestor's overflow
   can clip one, which a sidebar with its own scroller otherwise would. */
.popover { display: contents; }
.popover-panel[popover] { position: fixed; margin: 0; inset: auto;
  width: 14rem; background: var(--card); color: var(--card-foreground);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-pop); padding: .25rem; }
/* Transparent rather than absent: a light-dismiss popover still paints
   a backdrop, and the dimmed sheet a dialog wants is exactly what these
   are not. */
.popover-panel[popover]::backdrop { background: transparent; }

.popover-button { background: none; border: none; cursor: pointer;
  padding: .125rem; border-radius: var(--radius);
  color: var(--muted-foreground); display: inline-flex; }
.popover-button:hover { background: var(--muted); color: var(--foreground); }

.popover-menu-link { display: flex; align-items: center; gap: .5rem;
  padding: .375rem .5rem; border-radius: var(--radius);
  font-size: var(--text-sm); color: var(--foreground);
  text-decoration: none; }
.popover-menu-link:hover { background: var(--accent);
                           color: var(--accent-foreground); }
.popover-menu-link svg { width: .875rem; height: .875rem; flex: none;
                         color: var(--muted-foreground); }
.popover-menu-link:hover svg { color: inherit; }
.popover-menu-heading { padding: .375rem .5rem .25rem;
  font-size: var(--text-xs); color: var(--muted-foreground); }
/* The one division the create menu has. Full-bleed past the panel's
   padding, so it reads as a line across the menu rather than a dash
   floating in it. */
.popover-menu-rule { height: 1px; background: var(--border);
                     margin: .25rem -.25rem; }

/* ---- Tables ---- */
table { border-collapse: collapse; width: 100%; font-size: var(--text-sm); }
th { text-align: left; font-weight: var(--font-weight-medium); color: var(--muted-foreground);
     padding: .5rem .75rem; border-bottom: 1px solid var(--border); }
td { padding: .5rem .75rem; border-bottom: 1px solid var(--border); }
tr.revoked td { color: var(--muted-foreground); text-decoration: line-through; }
tr.revoked td:last-child { text-decoration: none; }

/* ---- Small bits ---- */
.row { display: flex; gap: 1rem; align-items: center; }
/* A role: what someone is here, on a team or in the organization. Read
   far more often than it is changed, so the resting state is a badge
   and the control only appears for the people who may use one — the
   select IS the control, with no Save beside it, because a two-step
   commit for one word is a step people forget to take. */
.member-role { display: inline-flex; }
.member-role select { font-size: var(--text-xs); padding: .1rem 1.25rem .1rem .4rem;
                      border: 1px solid var(--border); border-radius: var(--radius);
                      background: var(--background); color: var(--foreground); }
.member-role select:hover { background: var(--muted); }
/* Overdue: a window that has closed on work still open. Not a status
   and not a column — it can be true of a card anywhere on the board —
   so it colours the line it is part of rather than wearing a chip of
   its own, and it is the one place a worklist row shouts. */
.overdue { color: var(--overdue); font-weight: var(--font-weight-medium); }

.filter-row { display: flex; gap: .5rem; flex-wrap: wrap; }

.spread { margin-left: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ---- A record's heading (chrome/workbench.lisp, DETAIL-PAGE) ----
   The code is the heading, the status sits beside it as a badge with
   air on both sides, and the record's title is the line beneath. The
   generic page-head sets its h1 at text-sm for list pages; a record's
   page is about one thing and says so at a size that reads as a title. */
.detail-head { align-items: flex-start; gap: 1.5rem; margin-bottom: .5rem; }
.detail-head > div { min-width: 0; }
.detail-head h1 { display: flex; flex-wrap: wrap; align-items: center; gap: .625rem;
                  font-size: 1.375rem; line-height: 1.25; letter-spacing: var(--tracking-snug);
                  text-wrap: balance; }
.detail-head h1 [data-slot="kit-badge"] { font-size: var(--text-xs); flex: none;
                                      position: relative; top: .05em; }
.detail-head p { font-size: var(--text-sm); color: var(--muted-foreground);
                 margin-top: .375rem; max-width: 60ch; line-height: 1.45; }
/* Outranks the component's own page-head h1 rule, which sets text-sm
   for list pages and lands later in the cascade. */
[data-slot="page-head"].detail-head h1 { font-size: 1.375rem; line-height: 1.25; }

/* ---- Tool glyphs and result cards in the transcript (pages/control.lisp) ----
   A tool that reaches another system wears that system's mark before
   its name; a write that made a record hands back a card with the way
   to it, so the reader is never left copying a path out of prose. */
.tool-icon { display: inline-flex; vertical-align: -0.2em; margin-right: .4em; }
.tool-icon svg { width: 1.1em; height: 1.1em; }
.result-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
               margin: .5rem 0 .25rem; padding: .7rem .9rem;
               border: 1px solid var(--border); border-radius: var(--radius);
               background: var(--card); }
.result-card-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.result-card-kind { font-size: var(--text-2xs); letter-spacing: .06em; text-transform: uppercase;
                    color: var(--muted-foreground); }
.result-card-title { font-size: var(--text-sm); font-weight: var(--font-weight-medium);
                     overflow: hidden; text-overflow: ellipsis; }
.result-card-subtitle { font-size: var(--text-xs); color: var(--muted-foreground); }
.result-card [data-slot="button"] { flex: none; }


}
/* The parts every app's pages are composed from (src/html/parts/):
 * sections, fields that save themselves, choices, facts, files, and
 * the pieces of an app's own page frame.
 *
 * Served unlayered, after the component sheets and before an app's own
 * sheet (style.lisp, %ASSEMBLE-STYLESHEET). Unlayered because these
 * rules restyle kit components (the select in a choice box, the chips
 * in a pill field), and a layered rule loses to a component's.
 */
/* The lines you type into: standard UI text, boxed where the page
   says so, never the caption size. */
.inline-edit { font-size: var(--text-sm); line-height: var(--text-sm--line-height); color: var(--foreground); }
.inline-field .inline-edit-status:empty { display: none; }
/* A run of fields under one subline (html/parts/, FIELD-SECTION):
   the fields one under the other, runs parted by a rule. */
.field-section { display: flex; flex-direction: column; gap: 1rem; }
.field-section + .field-section { padding-top: 1.5rem; border-top: 1px solid var(--border); }
.section-subline { margin: 0; font-size: var(--text-sm); color: var(--muted-foreground); }
/* A field: label above, the box below, full width; an icon at the
   box's start and the typed line filling the rest. */
.field-line { display: flex; flex-direction: column; gap: .4rem; }
.field-label { font-size: var(--text-sm); color: var(--foreground); }
.field-box { display: flex; align-items: center; gap: .6rem; min-height: 2.5rem; padding: 0 .75rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--background); }
.field-box:hover { border-color: var(--muted-foreground); }
.field-box:focus-within { border-color: var(--ring); outline: 2px solid var(--ring); outline-offset: -1px; }
.field-box-icon { display: inline-grid; place-items: center; width: 1rem; height: 1rem; color: var(--foreground); flex-shrink: 0; }
.field-box-icon svg { width: 1rem; height: 1rem; }
.field-box .inline-field { flex: 1; min-width: 0; }
/* The About box: a paragraph, so it wraps and grows with what is typed. */
.field-box.is-paragraph { align-items: flex-start; padding: .55rem .75rem; }
.field-box.is-paragraph .inline-edit { white-space: pre-wrap; overflow: visible; text-overflow: clip; padding: 0; min-height: 3.2rem; line-height: 1.55; }
/* One line, always: these are addresses. */
.field-box .inline-edit { padding: .55rem 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field-box .inline-edit:focus { outline: none; }
/* A unit at the box's start — the currency before an amount — read
   as part of the value, so in the text colour, not faint. */
.field-box-unit { flex-shrink: 0; font-size: var(--text-sm); color: var(--foreground); font-variant-numeric: tabular-nums; }
.field-box-unit + .inline-field .inline-edit { font-variant-numeric: tabular-nums; }
/* A refused line: the box the server would not take, or the one Send
   says is still missing. The border says which; the status line beside
   it says why. Hover and focus keep the mark until the text changes. */
.field-box.is-refused, .field-box.is-refused:hover, .field-box.is-refused:focus-within,
.field-line:has(> [data-inline-status="bad"]) > .field-box, .field-line:has(> [data-inline-status="bad"]) > .field-box:hover,
.choice-box.is-refused select { border-color: var(--destructive); outline-color: var(--destructive); }
.field-line [data-inline-status="bad"] { color: var(--destructive); }
/* What came back when a field's value was sent somewhere and refused
   there, seconds after the save: the refusal's colour, under the field. */
.field-refusal { margin: 0; color: var(--destructive); font-size: var(--text-sm); }
/* The same line while no answer has come back yet. */
.field-standing { margin: 0; color: var(--muted-foreground); font-size: var(--text-sm); }
/* The line under a field (html/parts/): right below its box, and there
   only while it has something to say, so the box is one line tall and
   the page does not shift until a refusal needs the room. */
.field-line > .inline-edit-status { margin-top: 0; }
.field-line > .inline-edit-status:empty { display: none; }
/* A kit form's field a refusal names (html/parts/actions.lisp, CHECKED-FORM-SENDING-SCRIPT):
   its box in red, the sentence right under it; and a refusal about no
   field, under the button. */
[data-slot=kit-field].is-refused > input,
[data-slot=kit-field].is-refused > textarea,
[data-slot=kit-field].is-refused > select,
[data-slot=kit-field].is-refused [data-slot=select-trigger],
input.is-refused, textarea.is-refused, select.is-refused,
fieldset.is-refused, .check-grid.is-refused { border-color: var(--destructive); }
input.is-refused:focus-visible, textarea.is-refused:focus-visible, select.is-refused:focus-visible { border-color: var(--destructive); }
[data-slot=kit-field] > [data-inline-status="bad"], .form-status[data-inline-status="bad"],
[data-slot=form] > [data-inline-status="bad"], .inline-form > [data-inline-status="bad"] { color: var(--destructive); }
/* A bare control in a row form has no wrapper: its sentence is the
   span after it, on a line of its own under the row. */
[data-slot=form][data-layout=row] > .inline-edit-status, .inline-form > .inline-edit-status { flex-basis: 100%; margin: 0; font-size: var(--text-sm); }
[data-slot=form][data-layout=row] > .inline-edit-status:empty, .inline-form > .inline-edit-status:empty { display: none; }
[data-slot=kit-field] > .inline-edit-status { margin-top: 0; }
[data-slot=kit-field] > .inline-edit-status:empty, .form-status:empty { display: none; }
.form-status { margin: .25rem 0 0; font-size: var(--text-sm); }
/* A choice picked in place (html/parts/, CHOICE-PICKED-IN-PLACE): the
   kit's select squared to the app's corners and sized like the boxes
   above it. Focus is the darker border, never a glow. */
/* What throws something away reads as such: red type, a red wash under the pointer. */
[data-slot=button].is-destructive { color: var(--destructive); }
[data-slot=button].is-destructive:hover, [data-slot=button].is-destructive:focus-visible { color: var(--destructive); background: color-mix(in oklab, var(--destructive) 12%, transparent); border-color: var(--destructive); }
/* A file picker that sends on choice shows its button only; the file box behind it stays hidden. */
.logo-input { display: none; }
/* A dialog opened from a table row would inherit the row's one-line text; it wraps and sits in its box. */
.throw-away { margin: 0; display: inline; }
/* Wrapping is the kit's now: a dialog resets the text it inherits from
   wherever it was opened (shadcn/dialog.lisp, %MODAL-TEXT-RESET-BLOCKS),
   so a row's one-line text no longer reaches it. What stays here is
   this dialog's own size. */
.throw-away [data-slot=alert-dialog-content] { font-size: var(--text-sm); }
.throw-away [data-slot=alert-dialog-footer] { min-width: 0; }
/* Every field that saves itself says so in one place: a line at the foot of the page. */
.save-toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; padding: .4rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); color: var(--foreground); font-size: var(--text-sm); box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.save-toast.is-bad { color: var(--destructive); border-color: var(--destructive); }
/* A date picked in place: the browser's control, in the typed line's box. */
.date-input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--foreground); font: inherit; padding: .55rem 0; outline: none; }
.date-input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .7; }
.choice-box { display: block; width: 100%; }
/* The browser's own select, as wide and as tall as the typed line
   beside it. The open list is the browser's to draw. */
.choice-box select { display: block; width: 100%; height: auto; min-height: 2.5rem; padding: 0 .75rem; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: none; background: var(--background); color: var(--foreground); font-size: var(--text-sm); }
/* In a table cell, a select 100% wide asks its column for no width, so a
   wide column beside it (td.row-wide) takes the room and the choice shows
   one letter. There it is as wide as its longest choice. */
td .choice-box, td .choice-box select { width: auto; }
/* Every select's chevron, in one place. The browser's own is pressed
   against the right border once a page gives the select a border, and
   no padding moves it, so each select's own rule tried a different
   padding and none worked. This draws the chevron .5rem in from the
   edge and keeps the text clear of it. Longhands only, and two classes
   of weight, so a select's own `background:` or `padding:` shorthand
   (its colour, its left padding, its height) cannot undo it. A list
   box (multiple, size) has no chevron and is left alone. */
select:not([multiple]):not([size]) {
  appearance: none; -webkit-appearance: none;
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right .5rem center;
  background-size: 1rem;
  padding-right: 2rem;
}
.choice-box select:hover { border-color: var(--muted-foreground); }
.choice-box select:focus-visible { border-color: var(--ring); outline: 2px solid var(--ring); outline-offset: -1px; box-shadow: none; }
.choice-box .inline-edit-status:empty { display: none; }

/* Pill fields — locations, study types: the kit's combobox, squared
   to the app's corners and sized like the boxes above them. */
.pill-box { display: block; width: 100%; }
.pill-box [data-slot=combobox-chips] { border-radius: var(--radius); border-color: var(--border); box-shadow: none;
  background: var(--background); min-height: 2.5rem; padding: .3rem .6rem; gap: .4rem; }
/* The kit tints the box in the dark palette; here it stays the same
   surface as the fields above it, in both palettes. */
html.dark .pill-box [data-slot=combobox-chips] { background: var(--background); }
/* The chips are the only filled thing in the box: grey squares. */
.pill-box [data-slot=combobox-chip] { background: var(--muted); border: 0; }
.pill-box [data-slot=combobox-chips]:hover { border-color: var(--muted-foreground); }
.pill-box [data-slot=combobox-chips]:focus-within { border-color: var(--ring); box-shadow: none; outline: 2px solid var(--ring); outline-offset: -1px; }
.pill-box [data-slot=combobox-chip] { border-radius: var(--radius); height: auto; padding: .3rem .4rem .3rem .6rem;
  font-size: var(--text-sm); line-height: var(--text-sm--line-height); }
.pill-box [data-slot=combobox-chip-input] { font-size: var(--text-sm); }
.pill-content { border-radius: var(--radius); }
.pill-content [data-slot=combobox-item] { border-radius: var(--radius); font-size: var(--text-sm); }
.section-head form { margin: 0; }
/* The sidebar rail: a strip along the sidebar's edge. Hovered, the
   divider appears and the cursor turns to the resize arrows; clicked,
   the sidebar collapses or opens. The strip sits inside the edge
   because the sidebar clips its overflow. */
[data-slot="kit-sidebar"] { position: relative; }
.sidebar-rail { position: absolute; top: 0; bottom: 0; right: 0; width: 12px; z-index: 20;
  border: 0; padding: 0; background: none; cursor: w-resize; }
.sidebar-rail::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 2px;
  background: var(--border); opacity: 0; transition: opacity .15s; }
.sidebar-rail:hover::after, .sidebar-rail:focus-visible::after { opacity: 1; }
html.sidebar-collapsed .sidebar-rail { cursor: e-resize; }
/* The page's name at the bar's start. */
.topbar-title { font-size: var(--text-sm); font-weight: var(--font-weight-medium); color: var(--foreground); white-space: nowrap; }
/* The ? at the top bar's end: a round ghost button. */
.help-trigger { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: .25rem;
  border: 0; border-radius: 999px; background: none; color: var(--foreground); cursor: pointer; }
.help-trigger:hover, .help-trigger[data-state="open"] { background: var(--muted); }
.help-trigger svg { width: 1rem; height: 1rem; }
/* The two layouts a checkbox is drawn in (html/parts/choices.lisp).
   The box itself is SHADCN:CHECKBOX in both, and its look — the border,
   the tick, the focus ring — is the component's, never written again
   here. CHECK-LINE is a box and its words inside a form; CHECK-TILE the
   same box in a bordered tile, which a CHECK-GRID lays out in columns.
   POSITION RELATIVE on the tile is load-bearing: the real input the
   component hides is absolutely placed, and an absolutely placed
   element whose ancestors are all static is measured against the page,
   not the plane — so every box sat outside the plane's scroll and the
   whole document grew by the height of the grid. */
.check-line, .check-tile { display: flex; align-items: center; font-size: var(--text-sm); line-height: var(--text-sm--line-height); }
.check-line { gap: .5rem; }
.check-tile { position: relative; gap: .75rem; padding: .65rem .9rem; border: 1px solid var(--border);
  border-radius: var(--radius); }
.check-tile:hover { border-color: var(--foreground); }
.check-tile:has(input:checked) { border-color: var(--foreground); background: color-mix(in oklab, var(--muted) 60%, transparent); }
.check-words { color: var(--foreground); cursor: pointer; }
/* A run of choices under one heading (html/parts/choices.lisp, CHOICE-SET). */
.choice-set { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.choice-set legend { padding: 0; margin: 0 0 .4rem; font-size: var(--text-sm); font-weight: var(--font-weight-medium); }
.check-ring { display: flex; flex-direction: column; gap: .35rem; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem .9rem; }
.check-grid .inline-edit-status { grid-column: 1 / -1; margin: 0; }
.check-grid .inline-edit-status:empty { display: none; }
/* A tag line (html/parts/, TAG-LINE): short words as tags, wrapping. */
.tag-line { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
/* A fact list (html/parts/, FACT-LIST): a small label over each value,
   flowing into columns; what a record says, read at a glance. */
.fact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem 1.5rem; margin: 0; }
.fact-list div { min-width: 0; }
.fact-list dt { font-size: var(--text-xs); color: var(--muted-foreground); margin: 0 0 .15rem; }
.fact-list dd { margin: 0; font-size: var(--text-sm); line-height: 1.5; }
.fact-list dd .tag-line { margin-top: .15rem; }
.study-section { margin: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 .9rem; }
.section-head .section-title { margin: 0; }
/* The requests page: one table at a time, a row of tabs above it. */
.view-tabs { display: flex; gap: 1.25rem; margin: 0 0 1rem; }
.view-tab { padding: .35rem 0 .45rem; font-size: var(--text-sm); color: var(--foreground); text-decoration: none; border-bottom: 2px solid transparent; }
.view-tab:hover { border-bottom-color: var(--border); }
.view-tab[aria-current="page"] { color: var(--foreground); font-weight: var(--font-weight-medium); border-bottom-color: var(--foreground); }
/* A side-titled section (html/parts/, SIDE-TITLED-SECTION): the heading
   down the left margin, the content beside it, a rule above each. */
.side-titled { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem 0 1.75rem; border-top: 1px solid var(--border); }
.side-titled-head { min-width: 0; }
.side-titled-title { margin: 0; font-size: 1.125rem; line-height: 1.3; font-weight: var(--font-weight-semibold); }
.side-titled-note { margin: .35rem 0 0; font-size: var(--text-xs); color: var(--muted-foreground); }
.side-titled-body { min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.side-titled-body > .section-subline { margin: 0; }
@media (max-width: 40rem) { .side-titled { grid-template-columns: 1fr; gap: .75rem; } }
/* Words parted by dots (html/parts/, WORDS-PARTED-BY-DOTS). */
.dotted-words { margin: 0; font-size: var(--text-sm); line-height: 1.7; }
.dotted-words-dot { margin: 0 .55rem; color: var(--muted-foreground); }
/* The large fact list: three wide columns, the values a size up. */
.fact-list.is-large { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.fact-list.is-large dd { font-size: var(--text-base); }
.fact-list.is-large dd .fact-list-plain { font-size: var(--text-sm); }
/* Two columns of short items (html/parts/, TWO-COLUMN-LIST). */
.two-column-list { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 2rem; font-size: var(--text-sm); line-height: 1.7; }
.two-column-list li { break-inside: avoid; }
/* File rows (html/parts/, FILE-ROWS): a glyph, the name, the size, the download. */
.file-rows { margin: 0; padding: 0; list-style: none; }
.file-row { display: flex; align-items: center; gap: .75rem; padding: .7rem .25rem; border-bottom: 1px solid var(--border); font-size: var(--text-sm); }
.file-row:first-child { border-top: 1px solid var(--border); }
.file-row-icon, .file-row-download { display: inline-grid; place-items: center; width: 1rem; height: 1rem; color: var(--foreground); flex: none; }
.file-row-icon svg, .file-row-download svg { width: 1rem; height: 1rem; }
.file-row-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row-size { color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
a.file-row-download:hover { color: var(--foreground); }
/* A person's Settings page (html/parts/account.lisp). What they cannot
   change, then the lines they can. */
.account-facts { margin: 0 0 .5rem; }
/* A name typed in place at a heading's size: a person's own on
   Settings, an organisation's on its profile. */
.inline-edit.large-name { font-size: 20px; line-height: 1.3; font-weight: var(--font-weight-semibold);
  border: 1px solid transparent; border-radius: var(--radius); margin: -3px -6px; padding: 2px 5px; }
.inline-edit.large-name:hover { border-color: var(--border); }
.inline-edit.large-name:focus { border-color: var(--ring); outline: none; }
/* Light or dark: two choices, the current one filled. The class on
   <html> is the whole state, so which button reads as chosen is CSS. */
.theme-choices { display: flex; gap: .5rem; }
html:not(.dark) .theme-choice[data-choice="light"],
html.dark .theme-choice[data-choice="dark"] { background: var(--foreground); color: var(--background); border-color: var(--foreground); }

/* lab */

/* The page is a white card on the sidebar's grey:
   the topbar and the plane together, with the same gap to the window's
   top, right and bottom edges, and no line where the card meets the
   sidebar. */
[data-slot="kit-sidebar"] { border-right: 0; }
[data-slot="workbench"] { background: var(--sidebar); }
[data-slot="frame"] { margin: .5rem .5rem .5rem 0; background: var(--background);
  border-radius: var(--radius); overflow: hidden; }
[data-slot="topbar"] { background: var(--background); backdrop-filter: none; }
[data-slot="plane-wrap"] { padding: 0; }
[data-slot="plane"] { border-radius: 0; }
/* A workspace page (LAB-PAGE :WORKSPACE) owns the whole plane, which does
   not scroll. A chat page has two parts: the conversation, which
   scrolls, and the foot, which does not, so nothing ever scrolls under
   the prompt bar. */
.plane-workspace { overflow: hidden; }
.chat-page { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 1.5rem 1.5rem 1rem; }
/* The foot stands clear of the window's bottom edge, a tenth of its
   height up, so the bar reads as where to start rather than as a strip
   along the edge. */
.chat-foot { flex-shrink: 0; padding: .5rem 1.5rem clamp(2rem, 12vh, 7rem); }
.chat-column { width: 100%; max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.chat-foot .chat-column { gap: .5rem; }
/* The slide an analysis is of, as a card above the prompt bar. */
/* The slide card and the method card sit side by side above the prompt
   bar. The method card wears the slide card's parts. */
.composer-cards { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem; }
.slide-card { align-self: flex-start; max-width: 100%; }
.method-card { max-width: 100%; }
.method-card[data-state="chosen"] .slide-card-add { display: none; }
.method-card[data-state="chosen"] .slide-card-chosen { display: flex; }
.method-card-write { display: block; padding: .5rem .75rem; border-top: 1px solid var(--border);
  font-size: var(--text-sm); color: var(--foreground); }
.slide-card-add { display: inline-flex; align-items: center; gap: .5rem; height: 2.25rem; padding: 0 .875rem 0 .625rem;
  border: 1px dashed var(--input); border-radius: var(--radius); background: var(--background); color: var(--foreground);
  font: inherit; font-size: var(--text-sm); cursor: pointer; }
.slide-card-add:hover, .slide-card[data-dragging] .slide-card-add { border-color: var(--ring); background: var(--muted); }
.slide-card-add svg { width: 16px; height: 16px; }
/* Chosen, a card keeps the height of its Add button, so choosing a slide
   or a method never moves the prompt bar or the card beside it. */
.slide-card-chosen { display: none; align-items: center; gap: .5rem; max-width: 26rem; height: 2.25rem;
  padding: 0 .25rem 0 .25rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--background); }
.slide-card[data-state="chosen"] .slide-card-add { display: none; }
.slide-card[data-state="chosen"] .slide-card-chosen { display: flex; }
.slide-card[data-dragging] .slide-card-chosen { border-color: var(--ring); }
.slide-card-picture { width: 1.625rem; height: 1.625rem; flex-shrink: 0; display: grid; place-items: center; overflow: hidden;
  border-radius: var(--radius); background: var(--muted); }
.slide-card-picture img { display: none; width: 100%; height: 100%; object-fit: cover; }
.slide-card-picture svg { width: 14px; height: 14px; color: var(--foreground); }
.slide-card[data-preview="picture"] .slide-card-picture img { display: block; }
.slide-card[data-preview="picture"] .slide-card-picture svg { display: none; }
.slide-card-words { display: flex; align-items: baseline; gap: .5rem; min-width: 0; white-space: nowrap; font-size: var(--text-sm); color: var(--foreground); }
.slide-card-words strong { font-weight: var(--font-weight-medium); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slide-card-words span { font-size: var(--text-xs); color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; }
.slide-card-remove { margin-left: auto; flex-shrink: 0; display: grid; place-items: center; width: 1.625rem; height: 1.625rem;
  border: 0; border-radius: var(--radius); background: none; color: var(--foreground); cursor: pointer; }
.slide-card-remove:hover { background: var(--muted); }
.slide-card-remove svg { width: 14px; height: 14px; }
/* Its menu, and the search through the lab's disk: panels in the top
   layer, placed over the card by the kit's popover script. */
.slide-card-panel { margin: 0; padding: .25rem; min-width: 15rem; border: 0; border-radius: var(--radius);
  background: var(--popover); color: var(--popover-foreground); box-shadow: 0 0 0 1px var(--border), var(--shadow-pop); }
.slide-card-item { display: flex; align-items: center; gap: .625rem; width: 100%; height: 2.25rem; padding: 0 .625rem;
  border: 0; border-radius: var(--radius); background: none; color: var(--foreground); font: inherit; font-size: var(--text-sm);
  text-align: left; cursor: pointer; }
.slide-card-item:hover, .slide-card-item:focus-visible { background: var(--accent); outline: none; }
.slide-card-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.slide-card-disk { width: 26rem; max-width: calc(100vw - 2rem); padding: 0; }
.slide-card-search { display: block; width: 100%; box-sizing: border-box; padding: .625rem .75rem; border: 0;
  border-bottom: 1px solid var(--border); background: transparent; color: var(--foreground); font: inherit;
  font-size: var(--text-sm); outline: none; }
.slide-card-search::placeholder { color: var(--muted-foreground); }
.slide-card-rows { display: flex; flex-direction: column; max-height: 18rem; overflow-y: auto; padding: .25rem; }
/* The rows the method card fetches again sit among the list's own. */
.method-card-rows { display: contents; }
.slide-card-row { display: flex; flex-direction: column; align-items: flex-start; gap: .0625rem; width: 100%;
  padding: .375rem .625rem; border: 0; border-radius: var(--radius); background: none; color: var(--foreground);
  font: inherit; text-align: left; cursor: pointer; }
.slide-card-row[hidden] { display: none; }
.slide-card-row:hover, .slide-card-row:focus-visible { background: var(--accent); outline: none; }
.slide-card-row-name { font-size: var(--text-sm); }
.slide-card-row-folder { font-size: var(--text-xs); }
.slide-card-no-match { margin: 0; padding: .5rem .625rem; font-size: var(--text-sm); color: var(--muted-foreground); }
/* ---------------------------------------------------------------------
   The slide page, its frame (Vivien, 2026-11-07). Rebuilt from nothing
   after the coding agent's window Vivien chose, one to one: a narrow
   sidebar on the window's ground, at the left, the window's whole
   height, with no card and no line; and at the right a thin bar with
   the slide's name as its tab, over the slide in a card with corners
   only a little rounded. Small gaps, all one size. What is inside (the
   chat's turns, the results, the tools floating over the slide) keeps
   its own rules, further down.
   --------------------------------------------------------------------- */
.run-page { --page-gap: .375rem; --bar-height: 2.5rem;
  /* Corners barely rounded, near the lab's own 1px (--radius): the
     slide's card and what floats over it 3px, buttons and rows 2px. */
  --card-radius: 3px; --control-radius: 2px;
  --sidebar-width: var(--conversation-width, 18.5rem);
  /* The page's two sizes of text, the sidebar, the chat and the top bar
     alike, as the mockup Vivien chose has them (2026-11-07): what is read,
     and hints, labels and what a step was about a step smaller. Until
     then the sidebar was set at 14px, the top bar at 12px and the chat
     at both. */
  --run-text: .8125rem; --run-small: .75rem;
  /* What every card floating over the slide shares. */
  --overlay-gap: .5rem; --overlay-radius: var(--card-radius);
  --overlay-shadow: 0 0 0 1px var(--border), 0 4px 14px rgb(0 0 0 / .1);
  flex: 1; min-height: 0; display: flex; background: var(--sidebar); color: var(--foreground); }
/* The whole window: no rail of the lab's, and no frame round the page.
   Hidden here rather than left out by LAB-PAGE: the rail is outside
   #frame, so a page swapped in place keeps it, and the next page needs
   it back. */
html:has(.run-page) [data-slot=kit-sidebar] { display: none; }
html:has(.run-page) [data-slot=frame] { margin: 0; border-radius: 0; }
.run-panes { flex: 1; min-width: 0; min-height: 0; display: flex; }

/* A square button with an icon, as the picture's search and collapse. */
.run-icon-button { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem; padding: 0; border: 0; border-radius: var(--control-radius); background: none;
  color: var(--foreground); cursor: pointer; }
.run-icon-button:hover, .run-icon-button:focus-visible { background: var(--accent); outline: none; }
.run-icon-button svg { width: 1rem; height: 1rem; }

/* The sidebar. 17rem until its edge is dragged; never narrower than
   13rem, never so wide that less than 20rem of the slide shows. It shows
   one of two screens (chat-list.lisp, run-page.js): the study's slides as
   a tree, or what was opened from it. */
.run-thread { flex: 0 0 var(--sidebar-width); min-width: 13rem; max-width: calc(100% - 20rem); min-height: 0;
  display: flex; flex-direction: column; overflow: clip;
  /* What is in it is sized by its width, not the window's: the sidebar
     goes from 13rem to most of the window, and at its narrowest a
     result's number, the prompt bar and a folded line were drawn as for
     a wide one (Vivien, 2026-11-07). */
  container: sidebar / inline-size; }
/* Narrow, the prompt bar's words have a line of their own, the buttons
   under them: beside them, the words wrapped under the buttons. */
@container sidebar (max-width: 20rem) {
  .run-thread .run-thread-foot [data-slot=prompt-bar-input] { order: -1; flex: 1 1 100%; }
  .run-thread .run-thread-foot [data-slot=prompt-bar-spacer] { display: block; }
  /* Indents give way to width: a picture of the slide inside a step
     inside a run of steps was left a hundred and thirty pixels. The
     rails stay, closer in. */
  .run-thread > .run-thread-scroll { padding-left: .625rem; padding-right: .625rem; }
  .run-thread .analysis-turn [data-slot=tool-chips-detail-lines] { margin-left: .25rem; padding-left: .5rem; }
  .run-thread .slide-place-stage { height: 12rem; }
}
.run-thread[data-screen=slides] > :not(.sidebar-slides-screen),
.run-thread[data-screen=item] > .sidebar-slides-screen { display: none; }

/* The tree: the way back to Studies, the study's name, the choice of
   its slides or its chats, then each slide a folder, the one shown open,
   holding New chat, its chats, Results and Notes. A row lights under the
   pointer, and the one shown stays lit. */
.sidebar-slides-screen, .sidebar-slides-screen > .run-part, .sidebar-slides { flex: 1; min-height: 0;
  display: flex; flex-direction: column; }
.sidebar-study-name { color: var(--foreground); text-decoration: none; }
.sidebar-study-name:hover, .sidebar-study-name:focus-visible { text-decoration: underline; text-underline-offset: 2px; outline: none; }
.sidebar-tree { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column;
  gap: 1px; padding: .25rem .375rem .75rem; }
.sidebar-row { box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: .5rem; min-height: 1.875rem;
  padding: 0 .5rem; border: 0; border-radius: var(--control-radius); background: none; color: var(--foreground);
  font: inherit; font-size: var(--run-text); text-align: left; text-decoration: none; cursor: pointer; }
/* One row is lit, the item shown: the chat, or New chat on its page. The
   slide shown is marked by its weight alone, so two rows are never lit at
   once, and a row under the pointer takes a lighter shade than the one
   shown, so the two never look alike (Vivien, 2026-11-07). */
.sidebar-row[aria-current]:not(.sidebar-slide-row) { background: var(--accent); }
.sidebar-row:hover, .sidebar-row:focus-visible { background: color-mix(in oklab, var(--accent) 55%, transparent); outline: none; }
.sidebar-row[aria-current]:not(.sidebar-slide-row):hover { background: var(--accent); }
.sidebar-row > svg { width: .8125rem; height: .8125rem; flex-shrink: 0; }
.sidebar-row-name { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: inherit; text-decoration: none; }
.sidebar-row-count { flex-shrink: 0; font-size: var(--text-xs); font-variant-numeric: tabular-nums; color: var(--muted-foreground); }
.sidebar-slide-row { list-style: none; user-select: none; }
.sidebar-slide-row::-webkit-details-marker { display: none; }
.sidebar-slide-row[aria-current] .sidebar-row-name { font-weight: var(--font-weight-medium); }
.sidebar-chevron { flex-shrink: 0; display: inline-flex; transition: transform .15s; }
.sidebar-chevron svg { width: .75rem; height: .75rem; }
.sidebar-slide[open] > .sidebar-slide-row .sidebar-chevron { transform: rotate(90deg); }
.sidebar-slide-items { display: flex; flex-direction: column; gap: 1px; padding: 1px 0 .25rem 1.125rem; }
.sidebar-slide-items .sidebar-row { min-height: 1.75rem; }
.sidebar-gap { height: .375rem; }
/* A row of two lines (VSQ-445): a slide with where it stands under its
   name, or a chat with its slides under its name. A mark or an icon
   before them sits at the first line. */
.sidebar-row-tall { min-height: 2.5rem; padding-top: .25rem; padding-bottom: .25rem; }
.sidebar-slide-items .sidebar-row-tall { min-height: 2.375rem; }
.sidebar-row-tall > .run-chat-row-status, .sidebar-row-tall > svg { align-self: flex-start; margin-top: .25rem; }
.sidebar-row-two-lines { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sidebar-row-two-lines > .sidebar-row-name { flex: none; }
.sidebar-row-standing { display: flex; align-items: center; gap: .3125rem; min-width: 0; font-size: var(--text-xs);
  color: var(--muted-foreground); }
.sidebar-row-standing > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A small picture of the slide before its name: the slides of a study
   are often named alike, and are told apart by their look. */
.sidebar-slide-picture { flex: none; width: 1.75rem; height: 1.75rem; border-radius: var(--control-radius);
  object-fit: cover; background: var(--muted); }
.sidebar-slide-picture.is-empty { display: inline-grid; place-items: center; color: var(--muted-foreground); }
.sidebar-slide-picture.is-empty svg { width: .875rem; height: .875rem; }
/* Over the tree: the study's slides or its chats, and, in a study of
   many slides, which slides to list. The choice made is lit as the row
   shown is, and both are the reader's, kept on the element around the
   lists: the sidebar, or on a study's Slides tab the part around what is
   redrawn (data-study-view, data-slides-filter, study-lists.js). The
   rules go by those two alone, so they hold in both places. */
.sidebar-views, .sidebar-filters { flex-shrink: 0; display: flex; flex-wrap: wrap; gap: .25rem; padding: 0 .5rem .375rem; }
.sidebar-view, .sidebar-filter { display: inline-flex; align-items: center; gap: .3125rem; height: 1.625rem; padding: 0 .5rem;
  border: 0; border-radius: var(--control-radius); background: none; color: var(--foreground); font: inherit;
  font-size: var(--run-text); cursor: pointer; }
.sidebar-filter { height: 1.375rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border); font-size: var(--text-xs); }
.sidebar-view:hover, .sidebar-view:focus-visible, .sidebar-filter:hover, .sidebar-filter:focus-visible {
  background: color-mix(in oklab, var(--accent) 55%, transparent); outline: none; }
[data-study-view=slides] [data-show-study-view=slides],
[data-study-view=chats] [data-show-study-view=chats] { background: var(--accent); font-weight: var(--font-weight-medium); }
[data-slides-filter=all] [data-filter-slides=all],
[data-slides-filter=with-results] [data-filter-slides=with-results],
[data-slides-filter=no-chats] [data-filter-slides=no-chats] { background: var(--accent); }
.sidebar-slides-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
[data-study-view=chats] .sidebar-slides-view,
[data-study-view=slides] .sidebar-chats-view { display: none; }
[data-slides-filter=with-results] .sidebar-slide:not([data-has-results]),
[data-slides-filter=no-chats] .sidebar-slide[data-has-chats] { display: none; }
/* What a list says when it holds nothing: no chats in the study yet, or
   a filter that leaves no slide. A filter's line shows with its filter. */
.sidebar-empty { margin: 0; padding: .375rem .875rem; font-size: var(--text-xs); color: var(--muted-foreground); }
.sidebar-empty[data-when-slides-filter] { display: none; }
[data-slides-filter=with-results] .sidebar-empty[data-when-slides-filter=with-results],
[data-slides-filter=no-chats] .sidebar-empty[data-when-slides-filter=no-chats] { display: block; }
/* In a slide's folder, over the chats of other slides that looked at it. */
.sidebar-caption { padding: .375rem .5rem .125rem; font-size: var(--text-xs); color: var(--muted-foreground); }
/* A slide named in a line of the sidebar: under a chat among the
   study's chats, and under the line over a chat that looked at other
   slides, where it opens its slide. */
.sidebar-row-name-line { display: flex; gap: .25rem; min-width: 0; }
.sidebar-row-name-line > .sidebar-row-name { flex: 0 1 auto; }
.sidebar-row-slides { display: flex; gap: .25rem; min-width: 0; }
.sidebar-slide-pill { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; height: 1.125rem;
  padding: 0 .4375rem; border-radius: 999px; background: var(--muted); color: var(--foreground);
  font-size: var(--text-xs); text-decoration: none; white-space: nowrap; overflow: hidden; }
.sidebar-row-slides > .sidebar-slide-pill:first-child { flex: 0 1 auto; }
.sidebar-row-slides > .sidebar-slide-pill + .sidebar-slide-pill { flex: none; }
a.sidebar-slide-pill:hover, a.sidebar-slide-pill:focus-visible { background: var(--accent); outline: none; }
.sidebar-row[aria-current] .sidebar-slide-pill { background: var(--background); }
/* Folded to one line. Opened, the names scroll inside a few rows, so a
   chat over many slides still leaves the chat its height. */
.sidebar-item-slides { flex-shrink: 0; margin: 0; padding: 0 .625rem .375rem 2.375rem; font-size: var(--text-xs); }
.sidebar-item-slides-words { list-style: none; cursor: pointer; user-select: none; display: inline-flex; align-items: center;
  gap: .25rem; margin-left: -1rem; color: var(--muted-foreground); }
.sidebar-item-slides-words::-webkit-details-marker { display: none; }
.sidebar-item-slides-words:hover, .sidebar-item-slides-words:focus-visible { color: var(--foreground); outline: none; }
.sidebar-item-slides[open] .sidebar-chevron { transform: rotate(90deg); }
.sidebar-item-slides-pills { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .25rem; max-height: 6.25rem; overflow-y: auto; }
.run-thread:not([data-panel=chat]) .sidebar-item-slides { display: none; }
/* The same lists on a study's Slides tab (VSQ-452), in the page's own
   column. The page scrolls there, not the list, so the list takes the
   height of its rows and passes the wheel on. Its buttons start where
   the section's heading does. A row's text size and corners are the
   slide viewer's, set on its page alone (.run-page), so here they are
   given the page's own. A slide's row has more beside and under
   its name there: the pencil that renames it, small enough to leave the
   row its height, and a line while the slide cannot be zoomed. The box a
   name is typed in is in the row that opens the folder, which lets
   nothing in it be selected, so the box says its words can be. */
.study-tabbed-body > [data-study-lists] { display: contents; }
.study-lists { margin: 0 -.5rem; --run-text: var(--text-sm); --control-radius: var(--radius); }
.study-lists .sidebar-slides-view { flex: none; }
.study-lists .sidebar-tree { flex: none; overflow: visible; overscroll-behavior: auto; padding-bottom: .25rem; }
.study-lists .sidebar-slide-items .throw-away { align-self: flex-start; }
.sidebar-row-name-line > .slide-rename-pencil { width: 1.125rem; height: 1.125rem; }
.sidebar-row-name-line > .slide-rename-pencil svg { width: .75rem; height: .75rem; }
.sidebar-slide-row .slide-name-field input { user-select: text; }
/* How a chat stands (+CHAT-STATUS-ICONS+), before its name: finished, a
   green tick; at work, a ring that turns; waiting for an answer, a dot;
   stopped, a red cross. */
.run-chat-row-status { flex-shrink: 0; display: inline-grid; place-items: center; width: .8125rem; height: .8125rem; }
.run-chat-row-status svg { width: 100%; height: 100%; }
.run-chat-row-status[data-status=finished] { color: var(--slide-ready); }
.run-chat-row-status[data-status=failed] { color: var(--destructive); }
.run-chat-row-status[data-status=waiting]::before { content: ''; width: .4375rem; height: .4375rem; border-radius: 999px;
  background: var(--badge-warn); }
.run-chat-row-status[data-status=running] { box-sizing: border-box; width: .6875rem; height: .6875rem; border: 2px solid var(--border);
  border-top-color: var(--foreground); border-radius: 999px; animation: chat-at-work 1s linear infinite; }
@keyframes chat-at-work { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .run-chat-row-status[data-status=running] { animation: none; }
  .sidebar-chevron { transition: none; } }

/* The item: one line, the way back to the tree and the name of what is
   open, the chat's, Results or Notes. On a
   chat, Rename and Delete show under the pointer; renaming, a box takes
   the name's place. */
.sidebar-item-head { flex-shrink: 0; display: flex; align-items: center; gap: .25rem; height: var(--bar-height);
  padding: 0 .375rem; }
.sidebar-back, .sidebar-item-action { flex-shrink: 0; display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem;
  padding: 0; border: 0; border-radius: var(--control-radius); background: none; color: var(--foreground); cursor: pointer; }
.sidebar-back:hover, .sidebar-back:focus-visible, .sidebar-item-action:hover, .sidebar-item-action:focus-visible {
  background: color-mix(in oklab, var(--accent) 55%, transparent); outline: none; }
.sidebar-back svg { width: 1rem; height: 1rem; }
.sidebar-item-action svg { width: .875rem; height: .875rem; }
/* The way between the chat and the slide's numbers, at the head's right
   and always shown, so Results is one press from anywhere in a long chat
   (NionyxBio, 2026-11-10). On the chat it says Results; on Results or
   Notes it says Chat. */
.sidebar-item-switch { flex-shrink: 0; display: inline-flex; align-items: center; gap: .25rem; height: 1.75rem;
  padding: 0 .5rem; border: 0; border-radius: var(--control-radius); background: none; color: var(--foreground);
  font: inherit; font-size: var(--text-xs); cursor: pointer; }
.sidebar-item-switch:hover, .sidebar-item-switch:focus-visible {
  background: color-mix(in oklab, var(--accent) 55%, transparent); outline: none; }
.sidebar-item-switch svg { width: .875rem; height: .875rem; }
.run-thread[data-panel=chat] .sidebar-item-switch-to-chat,
.run-thread:not([data-panel=chat]) .sidebar-item-switch-to-results { display: none; }
.sidebar-item-title { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; padding-left: .25rem; line-height: 1.3; }
.sidebar-item-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-item-name { font-size: var(--run-text); font-weight: var(--font-weight-medium); }
.sidebar-item-name > :is(.sidebar-item-name-chat, .sidebar-item-name-results, .sidebar-item-name-notes) { display: none; }
.run-thread[data-panel=results] .sidebar-item-name-results,
.run-thread[data-panel=notes] .sidebar-item-name-notes { display: inline; }
.run-thread[data-panel=chat] .sidebar-item-name-chat { display: flex; gap: .25rem; min-width: 0; }

/* Names too long for their place. A chat's name is cut at its end and its
   number among the slide's chats of that name is never cut. A slide's or
   a study's is cut in the middle, as their ends tell them apart
   (%NAME-CUT-IN-THE-MIDDLE). Every cut name says its whole under the
   pointer (run-page.js). */
.chat-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-name-number { flex: none; color: var(--muted-foreground); font-variant-numeric: tabular-nums; white-space: nowrap; }
[data-tree-chat] > .sidebar-row-name { flex: 0 1 auto; }
[data-tree-chat] > .chat-name-number { margin-left: -.25rem; }
[data-tree-chat] > .sidebar-row-count { margin-left: auto; }
.name-cut-in-the-middle { display: inline-flex; max-width: 100%; min-width: 0; overflow: hidden; vertical-align: bottom; }
.name-cut-in-the-middle-start { flex: 0 1 auto; min-width: 1ch; overflow: hidden; text-overflow: ellipsis; white-space: pre; }
.name-cut-in-the-middle-end { flex: none; white-space: pre; }
.sidebar-item-title[data-chat-renaming] > :not(.sidebar-item-name-field):not(.run-chat-row-refusal) { display: none; }
.sidebar-item-name-field { box-sizing: border-box; width: 100%; height: 1.75rem; padding: 0 .375rem;
  border: 1px solid var(--border); border-radius: var(--control-radius); background: var(--background);
  color: var(--foreground); font: inherit; font-size: var(--run-text); outline: none; }
.sidebar-item-name-field:focus { border-color: var(--foreground); }
.run-chat-row-refusal { font-size: var(--text-xs); }
.run-chat-row-refusal:empty { display: none; }
.sidebar-item-actions { flex-shrink: 0; display: flex; align-items: center; gap: .125rem; opacity: 0; }
.sidebar-item-head:hover .sidebar-item-actions, .sidebar-item-actions:focus-within { opacity: 1; }
.run-thread:not([data-panel=chat]) .sidebar-item-actions { display: none; }
.sidebar-item-delete [data-slot=button] { width: 1.75rem; height: 1.75rem; padding: 0; color: var(--foreground); }
.sidebar-item-delete [data-slot=button]:hover, .sidebar-item-delete [data-slot=button]:focus-visible { color: var(--destructive); }
.sidebar-item-delete [data-slot=button] svg { width: .875rem; height: .875rem; }
.run-thread-foot [data-slot=prompt-bar-input] { font-size: var(--run-text); }

/* One view at a time: the chat with its prompt bar, the results, or the
   notes. */
.run-thread[data-panel=results] .run-thread-scroll:not(.run-results-scroll),
.run-thread[data-panel=results] .run-status-slot,
.run-thread[data-panel=results] .run-thread-foot,
.run-thread:not([data-panel=results]) .run-results-scroll,
.run-thread:not([data-panel=notes]) .run-notes-scroll,
.run-thread[data-panel=notes] .run-thread-scroll:not(.run-notes-scroll),
.run-thread[data-panel=notes] .run-status-slot,
.run-thread[data-panel=notes] .run-thread-foot { display: none; }
.run-thread-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .25rem .875rem .75rem; }
/* The chat, its results and its notes show a thin scrollbar, where every
   other pane hides it (app.css). A run over a whole TMA lists hundreds of
   cores, and a person asked for a bar to drag and to see how far down
   they are. scrollbar-width is read by Firefox and Chrome. Safari before
   18.2 reads only the ::-webkit-scrollbar rules, drawn to look the same. */
.run-thread-scroll, .chat-scroll { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.run-thread-scroll::-webkit-scrollbar, .chat-scroll::-webkit-scrollbar { display: block; width: 6px; height: 6px; }
.run-thread-scroll::-webkit-scrollbar-track, .chat-scroll::-webkit-scrollbar-track { background: transparent; }
.run-thread-scroll::-webkit-scrollbar-thumb, .chat-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.run-thread-scroll:hover, .chat-scroll:hover { scrollbar-color: var(--muted-foreground) transparent; }
.run-thread-scroll::-webkit-scrollbar-thumb:hover, .chat-scroll::-webkit-scrollbar-thumb:hover { background: var(--muted-foreground); }
.run-thread-foot { flex-shrink: 0; padding: .25rem .375rem .375rem; }
.run-thread-foot .composer-cards { margin-bottom: .375rem; }

/* The sidebar's edge: the gap between it and the slide's card, with no
   line, a line showing only under the pointer. Dragged, it sets the
   sidebar's width; double-clicked, its width goes back to 17rem. */
.run-sidebar-edge { position: relative; flex: 0 0 var(--page-gap); margin-bottom: var(--page-gap); border: 0; padding: 0;
  background: none; cursor: col-resize; touch-action: none; }
.run-sidebar-edge::after { content: ''; position: absolute; top: var(--bar-height); bottom: 0; left: calc(50% - 1px); width: 2px;
  background: var(--border); opacity: 0; transition: opacity .15s; }
.run-sidebar-edge:hover::after, .run-sidebar-edge:focus-visible::after, html.panes-resizing .run-sidebar-edge::after { opacity: 1; }
/* Hidden by a click on the edge, the sidebar takes no room, and the edge
   stays at the window's left with its line showing, to bring it back. */
html.conversation-folded .run-thread { display: none; }
html.conversation-folded .run-sidebar-edge { flex-basis: .625rem; cursor: e-resize; }
html.conversation-folded .run-sidebar-edge::after { opacity: 1; }

/* The right column: the bar, then the slide's card. */
.run-main { flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
/* The bar over the slide: the tabs of what the slide's card shows, the
   slide by its name and each picture opened from the chat, and at the
   right how the slide stands and the ⋯. The tabs scroll sideways when
   there are more than fit. */
.slide-topbar { flex-shrink: 0; box-sizing: border-box; display: flex; align-items: center; gap: .375rem;
  height: var(--bar-height); padding: 0 var(--page-gap) 0 0; font-size: var(--slide-viewer-text); }
.slide-tabs { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: .25rem;
  overflow-x: auto; scrollbar-width: none; }
.run-view-tab { flex-shrink: 0; min-width: 0; max-width: 16rem; display: inline-flex; align-items: center; gap: .4375rem;
  height: 1.75rem; padding: 0 .625rem; border: 0; border-radius: var(--control-radius); background: none;
  color: var(--foreground); font: inherit; font-size: var(--run-text); cursor: pointer; }
.run-view-tab-slide { flex-shrink: 1; min-width: 6rem; max-width: 24rem; }
.run-view-tab:hover, .run-view-tab:focus-visible, .run-view-tab[aria-selected=true] { background: var(--accent); outline: none; }
/* The slide's tab alone is only the slide's name: nothing to switch to,
   so no background marks it as chosen (Vivien, 2026-11-07). */
.slide-tabs > .run-view-tab:only-child { background: none; cursor: default; }
.run-view-tab svg { width: .875rem; height: .875rem; flex-shrink: 0; }
.run-view-tab-name, .run-view-tab-open { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The slide's name, as the sidebar's name beside it is set. */
.run-view-tab-slide .run-view-tab-name { font-weight: var(--font-weight-medium); }
/* A slide renamed where its name is, as a file is (slide-names.js): the
   tab shown or the name in a study's list turns into a box holding it.
   The slide's tab says it can be typed over by the pointer it shows. */
.run-view-tab-slide[data-rename-slide][aria-selected=true] { cursor: text; }
.slide-tabs > .run-view-tab-slide[data-rename-slide]:only-child:hover { background: var(--accent); }
.slide-name-field { position: relative; display: block; min-width: 0; }
.slide-name-field input { box-sizing: border-box; width: 100%; height: 2rem; padding: 0 .5rem;
  border: 1px solid var(--foreground); border-radius: var(--control-radius); background: var(--background);
  color: var(--foreground); font: inherit; font-weight: var(--font-weight-medium); outline: none; }
.slide-name-field.is-in-the-bar { flex: 0 1 24rem; }
.slide-name-field.is-in-the-bar input { height: 1.75rem; padding: 0 .625rem; font-size: var(--run-text); }
.slide-name-field.is-refused input { border-color: var(--destructive); }
/* Said under the box, over what is below it, so the bar keeps its height. */
.slide-name-refusal { position: absolute; top: calc(100% + .25rem); left: 0; z-index: 30; max-width: 28rem;
  padding: .25rem .5rem; border: 1px solid var(--destructive); border-radius: var(--control-radius);
  background: var(--card); color: var(--destructive); font-size: var(--text-xs); font-weight: normal; white-space: normal; }
.slide-name-refusal:empty { display: none; }
/* In a list of slides the refusal is a line of the row, which grows to hold it. */
.slide-name-field:not(.is-in-the-bar) .slide-name-refusal { position: static; display: block; max-width: none;
  margin-top: .25rem; padding: 0; border: 0; background: none; }
/* In a study's list of slides, the pencil beside a slide's name shows
   while the pointer is on the slide's row, and always where nothing can
   be pointed at. The row was a table's until 2026-11-22 and is now a row
   of the lists the sidebar draws (VSQ-452). */
.slide-rename-pencil { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 1.5rem; height: 1.5rem; border-radius: var(--control-radius); color: var(--foreground);
  opacity: 0; cursor: pointer; }
.slide-rename-pencil svg { width: .875rem; height: .875rem; }
.sidebar-slide-row:hover .slide-rename-pencil, .slide-rename-pencil:focus-visible { opacity: 1; }
.slide-rename-pencil:hover, .slide-rename-pencil:focus-visible { background: var(--accent); outline: none; }
@media (hover: none) { .slide-rename-pencil { opacity: 1; } }
.run-view-tab-open, .run-view-tab-close { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.run-view-tab-close { flex-shrink: 0; width: 1.125rem; height: 1.125rem; border-radius: 999px; line-height: 1; font-size: 1rem; }
.run-view-tab-close:hover, .run-view-tab-close:focus-visible { background: var(--border); outline: none; }
.slide-topbar-end { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.slide-topbar-more { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem;
  padding: 0; border: 0; border-radius: var(--control-radius); background: none; color: var(--foreground); cursor: pointer; }
.slide-topbar-more:hover, .slide-topbar-more:focus-visible { background: var(--accent); outline: none; }
.slide-topbar-more svg { width: 1rem; height: 1rem; }
.slide-topbar-menu { min-width: 16rem; max-width: 22rem; }
/* Two slides side by side (slide-beside.lisp, slide-beside.js). The
   second slide's column is put right of the first's and is drawn as it
   is, so the two share the width evenly, and the first card's right
   margin is the gap between them. Compare's menu lists the study's
   slides and scrolls past a study's worth. */
.slide-compare-menu { max-height: min(24rem, 60vh); overflow-y: auto; }
.slide-compare-menu-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The slide's card: the rest of the column. In light, a neutral grey a
   step darker than the sidebar; in dark, the palette's black, darker
   than the grey chrome round it (Vivien, 2026-11-08; #161616 until then). A scan is mostly
   white glass, so on a white card its edge was lost and the tissue
   floated (Vivien, 2026-11-07, after a moment of white). The card is the
   one place in light darker than the chrome round it: the slide is an
   image whose edge matters. Corners only a little rounded. Words written
   straight on it, and not on a card floating over it, take
   --on-slide-ground. */
html.dark .run-slide-workspace { --slide-ground: #111111; --on-slide-ground: #ededed; }
.run-slide-workspace { --slide-ground: #e4e4e4; --on-slide-ground: #1c1c1c;
  flex: 1 1 0; min-width: 0; min-height: 0; display: flex; margin: 0 var(--page-gap) var(--page-gap) 0;
  border-radius: var(--card-radius); overflow: clip; background: var(--slide-ground); }

/* Narrow, the slide on top in its card and the sidebar under it, the
   whole scrolling, the prompt bar kept at the foot. */
@media (max-width: 60rem) {
  .run-panes { flex-direction: column; overflow-y: auto; }
  .run-sidebar-edge { display: none; }
  html.conversation-folded .run-thread { display: flex; }
  .run-main { order: -1; flex: none; }
  /* One slide at a time on a narrow screen: there is no room for two. */
  .run-beside, .slide-compare-button { display: none; }
  .run-slide-workspace { flex: none; flex-direction: column; margin: 0 var(--page-gap) var(--page-gap); }
  .slide-topbar { padding-left: var(--page-gap); }
  .run-canvas { flex: none; }
  .run-stage-area { flex: none; height: 55svh; }
  .run-thread { flex: none; width: auto; min-width: 0; max-width: none; }
  .run-thread-scroll { overflow: visible; }
  .run-thread-foot { position: sticky; bottom: 0; background: var(--sidebar); }
}


/* One size of text for the whole slide viewer: its top bar, sidebar,
   tool bar, panels and the notes on the slide (Vivien, 2026-11-07). The
   chat beside it keeps its own. The green says a slide is ready, the
   one colour the viewer adds to the palette, lighter in dark. */
:root { --slide-viewer-text: var(--text-xs); --slide-ready: oklch(0.6 0.13 155); }
html.dark { --slide-ready: oklch(0.75 0.14 155); }
/* The slide's page is on the page's own ground, the sidebar, the top
   bar and the bar floating over the slide alike: in light white round
   the card's grey, so a scan's white glass shows its edge on it; in dark
   the grey every framed page has, #232323, round the black card (Vivien,
   2026-11-08). Earlier the same day it was black throughout. */
.run-page { --sidebar: var(--background); }

/* How the slide stands, at the bar's right beside the ⋯: a dot and one
   word, the one its status names (data-slide-status, set by
   slide-viewer.js). On its way, the dot is a ring and the word sweeps;
   ready, the dot is green and the word stays the page's own colour;
   when something is wrong, both are red. */
.slide-status { flex-shrink: 0; display: inline-flex; align-items: center; gap: .3125rem; margin: 0; line-height: 1; }
.slide-status-dot { box-sizing: border-box; width: .375rem; height: .375rem; border-radius: 999px;
  background: var(--foreground); }
.slide-status-words { display: none; cursor: default; }
.slide-status[data-slide-status=opening] [data-when=opening],
.slide-status[data-slide-status=preparing] [data-when=preparing],
.slide-status[data-slide-status=loading] [data-when=loading],
.slide-status[data-slide-status=ready] [data-when=ready],
.slide-status[data-slide-status=not-loading] [data-when=not-loading],
.slide-status[data-slide-status=cannot-zoom] [data-when=cannot-zoom] { display: inline; }
.slide-status:is([data-slide-status=opening], [data-slide-status=preparing], [data-slide-status=loading]) .slide-status-dot {
  background: none; border: 1px solid var(--foreground); }
.slide-status:is([data-slide-status=not-loading], [data-slide-status=cannot-zoom]) .slide-status-dot {
  background: var(--destructive); }
.slide-status:is([data-slide-status=not-loading], [data-slide-status=cannot-zoom]) .slide-status-words {
  color: var(--destructive); }
.slide-status[data-slide-status=ready] .slide-status-dot { background: var(--slide-ready); }

.slide-details { margin: 0; padding: 0 .5rem .5rem; display: flex; flex-direction: column; gap: .375rem;
  font-size: var(--slide-viewer-text); }
.slide-details > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .5rem; }
.slide-details dt { font-weight: var(--font-weight-medium); }
.slide-details dd { margin: 0; overflow-wrap: anywhere; }

/* The Notes tab (notes.lisp): Comments, then Labelled regions, each a
   heading and its rows, parted by a rule. */
.run-notes-section + .run-notes-section { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.run-notes-heading { margin: 0 0 .5rem; font-weight: var(--font-weight-medium); }

.run-canvas { flex: 1 1 0; min-width: 0; position: relative; display: flex; flex-direction: column; overflow: clip; }
/* The slide fills the pane, and the controls lie over it at its corners.
   The stage area is the window onto the slide. OpenSeadragon draws the
   slide and its layers in a canvas that fills it (slide-viewer.js); a
   picture from the conversation is drawn by a viewer of its own over it;
   and every mark is drawn in screen pixels in one overlay of the same
   size over both. */
.run-stage-area { flex: 1; min-width: 0; min-height: 0; position: relative; overflow: clip; user-select: none; }
.run-viewer, .run-focus-viewer, .run-marks { position: absolute; inset: 0; }
.run-viewer, .run-focus-viewer { filter: var(--slide-filter, none); }
.run-focus-viewer { display: none; }
.run-canvas[data-focus] .run-focus-viewer { display: block; }
.run-canvas[data-focus] .run-viewer { visibility: hidden; }
.run-canvas:not([data-tool=pan]) .run-viewer { cursor: crosshair; }
.run-stage-waiting { margin: 0; font-size: var(--slide-viewer-text); }
.run-stage-area > .run-stage-waiting, .run-stage-area > .run-stage-trouble { color: var(--on-slide-ground);
  --foreground: var(--on-slide-ground); --muted-foreground: #8c8c8c; }
.run-stage-area > .run-stage-waiting { position: absolute; inset: 0; display: grid; place-items: center; }
/* The worker did not answer for a tile, so the pane says so rather than
   look like an empty slide (slide-viewer.js). Over the engine's canvas,
   under the overlays, and the pointer still moves the slide. */
.run-stage-area > .run-stage-trouble { position: absolute; inset: 0; display: grid; place-items: center; margin: 0;
  padding: 0 2rem; text-align: center; font-size: var(--slide-viewer-text); pointer-events: none; }
/* Point out is offered while the conversation can be told something. */
.run-canvas:not([data-can-point=true]) .run-point-button { display: none; }
.run-canvas:not([data-can-comment=true]) .run-comment-button { display: none; }
/* The marks over the slide: an SVG in screen pixels, and the labels that
   go with them. Only a label takes the pointer, so a mark never gets in
   the way of moving the slide. */
.run-marks { pointer-events: none; overflow: hidden; }
.run-marks[hidden] { display: none; }
.run-marks-drawing { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.run-marks-labels { position: absolute; inset: 0; }
.run-marks-labels > * { position: absolute; }
/* The ruler: a line across the slide and its length. */
.run-mark-ruler { stroke: #ffd400; stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 1px rgb(0 0 0 / .8)); }
.run-mark-ruler-words { padding: .125rem .375rem; border-radius: var(--radius); white-space: nowrap;
  background: rgb(0 0 0 / .75); color: #fff; font-size: var(--slide-viewer-text); line-height: 1.4; font-variant-numeric: tabular-nums;
  transform: translate(-50%, -140%); }
/* A place shown on the slide, such as a flag's, for a few seconds. */
.run-mark-shown-place { fill: none; stroke: #ffd400; stroke-width: 2; filter: drop-shadow(0 0 1px rgb(0 0 0 / .8)); }
/* Clean-ups: an outline each, dashed while only suggested. */
/* The layer everything floating over the slide lies in, the slide's own
   size: it takes no pointer itself, so the slide under it moves, and each
   card in it does. */
.run-overlays { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.run-overlays > *:not(.run-slide-readout) { pointer-events: auto; }
/* The layers panel (slide-layers.lisp): a panel of the viewer's bar, as
   Levels is, opened over it by the layers button and kept open until its
   cross or the button closes it (slide-viewer.js places it). At its head
   the word Layers, how many, an eye for every layer at once (H) and the
   cross; under it the rows, scrolling on their own when they are taller
   than the window. One spacing for all of it: .75rem from the card's
   edge, rows 1.75rem tall. With a picture from the chat in the slide's
   place, it is not drawn. */
.run-layers-panel { inset: auto; position: fixed; margin: 0; padding: 0; border: 0; box-sizing: border-box;
  width: 17rem; max-height: calc(100dvh - 8rem); flex-direction: column;
  border-radius: var(--overlay-radius, var(--radius)); background: var(--background); color: var(--foreground);
  box-shadow: var(--overlay-shadow, 0 0 0 1px var(--border)); font-size: var(--slide-viewer-text); overflow: clip; }
.run-layers-panel:popover-open { display: flex; }
.run-canvas[data-focus] .run-layers-panel { display: none; }
/* An open panel of the bar whose button is not drawn has nowhere to
   stand, so it is not shown (slide-viewer.js). Hidden and not removed,
   so it keeps its size and is placed again once its button is back. */
[data-toolbar-panel][data-button-not-drawn] { visibility: hidden; }
.run-layers-panel-head { flex-shrink: 0; display: flex; align-items: center; gap: .375rem; height: 2.25rem;
  padding: 0 .25rem 0 .75rem; }
.run-layers-panel-title { font-weight: var(--font-weight-medium); }
.run-layers-count { font-variant-numeric: tabular-nums; }
.run-layers-panel-head .run-zoom-button { width: 1.75rem; height: 1.75rem; order: 2; }
.run-layers-panel-head .run-zoom-button svg { width: .875rem; height: .875rem; }
.run-layers-panel-eye { margin-left: auto; }
.run-layers-panel-eye:disabled { cursor: default; opacity: .4; }
.run-when-layers-hidden, .run-layers-panel-eye[aria-pressed=true] .run-when-layers-shown { display: none; }
.run-layers-panel-eye[aria-pressed=true] .run-when-layers-hidden { display: contents; }
.run-when-layers-shown { display: contents; }
.run-layers-panel-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 .75rem .75rem; }
.run-sidebar-note { margin: 0; font-size: var(--slide-viewer-text); color: var(--muted-foreground); }
.run-key { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
/* The viewer's bar: the tools, a wide, low white card
   floating at the slide's foot, centred on the window (Vivien,
   2026-11-07). Until then it was a strip across the pane's top. The tools
   stand in groups parted by a thin rule. The chat floats over the same
   panel and the bar takes no notice of it. A window too narrow for every
   tool scrolls the bar sideways. */
.run-view-bar { position: absolute; bottom: var(--overlay-gap); left: 50%; transform: translateX(-50%);
  box-sizing: border-box; display: flex; align-items: center; gap: .25rem;
  max-width: calc(100% - 2 * var(--overlay-gap));
  padding: .1875rem .375rem; border-radius: var(--overlay-radius); background: var(--background);
  box-shadow: var(--overlay-shadow); overflow-x: auto; scrollbar-width: none; }
.run-view-bar .run-zoom-button { width: 2.125rem; height: 1.75rem; }
.run-view-bar .run-zoom-button svg { width: .9375rem; height: .9375rem; }
.run-view-tools { flex-shrink: 0; display: flex; align-items: center; }
.run-view-group { display: flex; align-items: center; gap: .125rem; }
.run-view-group + .run-view-group { margin-left: .375rem; padding-left: .375rem; border-left: 1px solid var(--border); }
.run-zoom-button[aria-pressed=true] { background: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }
/* A time-lapse's frames (slide-frames.lisp): a row on top of the tools in
   the same bar, parted from them by a thin rule. The tools row sets the
   bar's width, and the slider takes what the buttons and time leave. */
.run-view-bar[data-has-frames] { flex-direction: column; align-items: stretch; gap: 0; padding: 0 .375rem; }
.run-view-bar[data-has-frames] .run-view-tools { padding: .1875rem 0; }
.run-frames-row { display: flex; align-items: center; gap: .125rem; width: 0; min-width: 100%;
  padding: .1875rem 0; border-bottom: 1px solid var(--border); }
.run-frames-slider { flex: 1; min-width: 3rem; margin: 0 .5rem; accent-color: var(--foreground); }
.run-frames-words { flex-shrink: 0; padding-right: .25rem; font-size: var(--slide-viewer-text);
  color: var(--foreground); font-variant-numeric: tabular-nums; white-space: nowrap; }
.run-frames-row .run-when-playing, .run-frames-row [aria-pressed=true] .run-when-paused { display: none; }
.run-frames-row [aria-pressed=true] .run-when-playing { display: contents; }
/* With a picture from the chat in the slide's place the layers panel is
   not drawn, so its button goes too. */
.run-canvas[data-focus] [data-layers-group] { display: none; }
.run-when-fullscreen { display: none; }
html:fullscreen .run-when-fullscreen { display: contents; }
html:fullscreen .run-when-not-fullscreen { display: none; }
.run-when-fullscreen svg, .run-when-not-fullscreen svg { width: 1rem; height: 1rem; }
/* Brightness, contrast and how strongly the layers are drawn, in a
   small panel over the bar. The slide's own pixels take the filter;
   the layers' colours do not. */
.run-adjust { inset: auto; position: fixed; margin: 0; padding: .75rem; min-width: 20rem; border: 0;
  border-radius: var(--overlay-radius, var(--radius)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--background); color: var(--foreground); box-shadow: var(--overlay-shadow, 0 0 0 1px var(--border));
  font-size: var(--slide-viewer-text); }
.run-adjust:popover-open { display: flex; flex-direction: column; gap: .5rem; }
.run-adjust-row { display: grid; grid-template-columns: 7rem 1fr auto; align-items: center; gap: .625rem; }
.run-adjust input[type=range] { width: 100%; accent-color: var(--foreground); }
.run-adjust-number { display: inline-flex; align-items: center; gap: .25rem; color: var(--muted-foreground); }
.run-adjust-number input { width: 3.75rem; height: 1.75rem; padding: 0 .375rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--background); color: var(--foreground); font: inherit; font-variant-numeric: tabular-nums; text-align: right; }
.run-adjust-number input:focus-visible { outline: 2px solid var(--ring, var(--foreground)); outline-offset: 1px; }
.run-adjust-reset { align-self: flex-end; border: 0; background: none; padding: .25rem 0; font: inherit; color: var(--foreground);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
/* Saving a picture of the slide as a file (%SAVE-PICTURE-PANEL), a
   panel over the bar as Adjust is. */
.run-save-picture { inset: auto; position: fixed; margin: 0; padding: .75rem; width: 20rem; border: 0;
  border-radius: var(--overlay-radius, var(--radius)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--background); color: var(--foreground); box-shadow: var(--overlay-shadow, 0 0 0 1px var(--border));
  font-size: var(--slide-viewer-text); }
.run-save-picture:popover-open { display: flex; flex-direction: column; gap: .625rem; }
.run-save-picture-title { margin: 0; font-size: var(--slide-viewer-text); font-weight: var(--font-weight-medium); }
.run-save-picture-choice { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; margin: 0; padding: 0; border: 0; }
.run-save-picture-choice legend { float: left; width: 6rem; padding: 0; }
.run-save-picture-choice label, .run-save-picture-check { display: inline-flex; align-items: center; gap: .375rem; cursor: pointer; }
.run-save-picture input[type=radio], .run-save-picture input[type=checkbox] { margin: 0; accent-color: var(--foreground); }
.run-save-picture-row { display: grid; grid-template-columns: 6rem minmax(0, 1fr); align-items: center; }
.run-save-picture-row select { min-width: 0; height: 1.875rem; padding: 0 .375rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--background); color: var(--foreground); font: inherit;
  font-variant-numeric: tabular-nums; }
.run-save-picture-row select:focus-visible { outline: none; border-color: var(--foreground); }
.run-save-picture-hint { margin: 0; color: var(--muted-foreground); }
.run-save-picture-checks { display: flex; gap: 1rem; }
.run-save-picture-button { align-self: flex-start; height: 2rem; padding: 0 .875rem; border: 0; border-radius: var(--radius);
  background: var(--foreground); color: var(--background); font: inherit; cursor: pointer; }
/* Not faded: a disabled button is drawn as an outline, and the hint
   above it says why. */
.run-save-picture-button:disabled { background: none; color: var(--foreground); box-shadow: inset 0 0 0 1px var(--border);
  cursor: default; }
.run-save-picture-status { margin: 0; }
.run-save-picture-status:empty { display: none; }
.run-save-picture-status a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* Where the pointer is on the slide, after the scale, in its colour. */
.run-pointer-position { color: inherit; margin-left: .5rem; }
.run-pointer-position:empty { display: none; }
/* The scale, and where the pointer is, at the slide's bottom left; the
   bottom right is the chat's. In a window too narrow for them beside the
   bar, they stand above it. The panel is the container the floating
   cards are placed by. */
.run-canvas { container-type: inline-size; }
.run-scale { position: absolute; bottom: calc(var(--overlay-gap) + .75rem); left: var(--overlay-gap); }
@container (max-width: 62rem) { .run-scale { bottom: calc(var(--overlay-gap) + 2.75rem); } }
/* A time-lapse's bar has the frames' row on top of its tools, so it is
   twice as high. Until 2026-12-01 the scale was lifted over one row only,
   and with two slides side by side it lay across the play button. */
@container (max-width: 62rem) { .run-canvas:has(.run-view-bar[data-has-frames]) .run-scale { bottom: calc(var(--overlay-gap) + 4.875rem); } }
/* A study's slide whose tiles are still being made: said at the top's
   middle, over its overview. */
.run-slide-preparing { position: absolute; top: var(--overlay-gap); left: 50%; transform: translateX(-50%); margin: 0;
  padding: .375rem .75rem; border-radius: var(--overlay-radius); background: var(--background); color: var(--foreground);
  font-size: var(--slide-viewer-text); box-shadow: var(--overlay-shadow); max-width: calc(100% - 2 * var(--overlay-gap));
  box-sizing: border-box; text-align: center; }
/* The scale and the pointer's place: words on the slide alone, with no
   card (Vivien, 2026-11-07), a size under the viewer's own so they read
   as part of the picture, both in one colour. A soft halo of the page's
   colour keeps them legible on a pale slide or a dark one. */
.run-slide-readout { font-size: .6875rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--on-slide-ground);
  pointer-events: none; text-shadow: 0 0 2px var(--slide-ground), 0 0 4px var(--slide-ground); }
.run-scale { display: flex; align-items: center; gap: .3125rem; }
.run-scale-bar { display: block; height: .125rem; border: 1px solid currentColor; border-top: 0;
  filter: drop-shadow(0 0 1.5px var(--slide-ground)); }
.run-canvas[data-focus] .run-slide-readout { display: none; }
.run-layers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
/* A layer's row, one line: its colour square, which is its switch, its
   name, cut with an ellipsis and said whole under the pointer, and its
   number at the right; then, while the pointer is on the row, a palette
   that changes its colour. One row shape for every layer, in Layers and
   in the model's working; a row lights under the pointer. Until
   2026-11-09 an eye stood before the square, struck through on every
   hidden layer, and long names ran onto a second line. */
.run-layer-row, .run-layer > label { display: grid; grid-template-columns: .875rem minmax(0, 1fr) auto;
  align-items: center; column-gap: .5rem; min-height: 1.75rem; margin: 0 -.375rem; padding: .125rem .375rem;
  border-radius: var(--radius); color: var(--foreground); cursor: pointer; }
.run-layer-row { grid-template-columns: .875rem minmax(0, 1fr) auto 1rem; }
.run-layer-row:hover, .run-layer > label:hover { background: var(--muted); }
.run-layer-row > label { display: contents; }
.run-layer-row > label > input, .run-layer > label > input { grid-row: 1; grid-column: 1; }
.run-layer-row .run-layer-name, .run-layer > label > .run-layer-name { grid-row: 1; grid-column: 2; }
.run-layer-row .run-layer-number, .run-layer > label > .run-layer-number { grid-row: 1; grid-column: 3; }
.run-layer-row > .run-layer-colour { grid-row: 1; grid-column: 4; }
.run-layer-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The switch: a square in the layer's colour, filled while the layer is
   on the slide and its outline while it is not. */
.run-layer input[type=checkbox] { appearance: none; -webkit-appearance: none; box-sizing: border-box;
  --layer-fill: var(--layer-colour, var(--foreground));
  width: .875rem; height: .875rem; margin: 0; border: 2px solid var(--layer-colour, var(--foreground));
  border-radius: 3px; background: transparent; cursor: pointer; }
.run-layer input[type=checkbox]:checked { background: var(--layer-fill); }
.run-layer input[type=checkbox]:focus-visible { outline: 2px solid var(--ring, var(--foreground)); outline-offset: 2px; }
.run-layer-swatch { box-sizing: border-box; width: .875rem; height: .875rem; flex-shrink: 0;
  border: 2px solid var(--layer-colour); border-radius: 3px; background: transparent; }
/* The colour picker, drawn as a palette, which only shows while the
   pointer is on its row or the picker has focus; on a screen with no
   pointer to rest, always. */
:root { --icon-palette: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='13.5' cy='6.5' r='.5' fill='black'/><circle cx='17.5' cy='10.5' r='.5' fill='black'/><circle cx='8.5' cy='7.5' r='.5' fill='black'/><circle cx='6.5' cy='12.5' r='.5' fill='black'/><path d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 11.99 2z'/></svg>"); }
.run-layer-colour { box-sizing: border-box; width: 1rem; height: 1rem; padding: 0; border: 0; cursor: pointer;
  appearance: none; -webkit-appearance: none; background: var(--foreground); opacity: 0;
  -webkit-mask: var(--icon-palette) center / contain no-repeat; mask: var(--icon-palette) center / contain no-repeat; }
.run-layer-colour::-webkit-color-swatch-wrapper { padding: 0; }
.run-layer-colour::-webkit-color-swatch { border: 0; background: transparent; }
.run-layer-colour::-moz-color-swatch { border: 0; background: transparent; }
.run-layer-row:hover .run-layer-colour, .run-layer-colour:focus-visible { opacity: 1; }
@media (hover: none) { .run-layer-colour { opacity: 1; } }
.run-layer-name-raw { font-family: var(--font-mono); font-size: var(--slide-viewer-text); }
.run-layer-number { font-size: var(--slide-viewer-text); font-variant-numeric: tabular-nums; text-align: right; }
/* What every layer's number is of, said once over the numbers' column. */
.run-layers-heading { margin: 0 0 .125rem; text-align: right; font-size: var(--slide-viewer-text); color: var(--foreground); }
/* What a layer's row says under it, lined up with its name: that it holds
   nothing, a way to its field, or that it could not be drawn. */
.run-layer > .run-layer-number, .run-layer-go-there, .run-layer-trouble { display: block; margin: 0 0 .25rem 2.375rem;
  padding: 0; text-align: left; font-size: var(--slide-viewer-text); color: var(--foreground); }
.run-layer-go-there { border: 0; background: none; text-decoration: underline; cursor: pointer; }
/* The parts of a layer split by size, under its row: a key, not more
   eyes, as one layer drawn in steps of one colour. */
.run-layer-parts { list-style: none; margin: 0 0 .25rem 2.375rem; padding: 0; display: flex; flex-direction: column;
  gap: .125rem; font-size: var(--slide-viewer-text); color: var(--foreground); }
.run-layer-parts li { display: flex; align-items: center; gap: .5rem; }
.run-layer-parts .run-layer-swatch { width: .75rem; height: .75rem; }
.run-layer-parts .run-layer-number { margin-left: auto; padding-left: .75rem; }
/* The model's working: folded under Layers, a step a fold, each step's
   layers in the same rows. */
.run-working { margin-top: .25rem; font-size: var(--slide-viewer-text); color: var(--foreground); }
.run-working > summary, .run-working-step > summary { cursor: pointer; padding: .375rem 0; overflow-wrap: anywhere; }
.run-working-step { margin-left: .75rem; }
.run-zoom-button { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem;
  border: 0; border-radius: var(--control-radius, var(--radius)); background: none; color: var(--foreground); cursor: pointer; }
/* Under the pointer a lighter shade than a tool that is on, as a sidebar
   row is, so the tool in use never looks like the one pointed at. */
.run-zoom-button:hover, .run-zoom-button:focus-visible { background: color-mix(in oklab, var(--muted) 55%, transparent); outline: none; }
.run-zoom-button:is([aria-pressed=true], [data-panel-open]):is(:hover, :focus-visible) { background: var(--muted); }
.run-zoom-button svg { width: 1rem; height: 1rem; }

/* While the edge is dragged the whole page takes its cursor, and
   nothing is selected or swallows the pointer. */
html.panes-resizing, html.panes-resizing * { cursor: col-resize !important; user-select: none; }
html.panes-resizing iframe, html.panes-resizing img { pointer-events: none; }

/* A word is broken only when it is longer than the line, as a file name
   can be: breaking anywhere let a narrow row split Results into Resul
   and ts. */
.run-thread-column { display: flex; flex-direction: column; gap: 1rem; min-width: 0; overflow-wrap: break-word; }
.run-thread-column > *, .run-thread-column > .run-part > * { min-width: 0; max-width: 100%; }
/* A part of the page an update changes in place (run-page.js): it holds
   its contents and takes no room of its own. */
.run-part { display: contents; }

/* A new chat's method card sits over its prompt bar. */
.run-message { display: flex; flex-direction: column; gap: .5rem; }
.run-message-you { padding: .75rem; border-radius: var(--control-radius); background: var(--muted); }
/* Each part of the chat a column of its own, so a message can sit at its
   right (.run-message-you) rather than stretch across. */
.run-thread-column > .run-part { display: flex; flex-direction: column; }
.run-message-who { color: var(--foreground); }
.run-message-note { margin: 0; color: var(--muted-foreground); }
.run-result-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.run-result { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem;
  padding: .5rem 0; border-bottom: 1px solid var(--border); }
.run-result-value { font-variant-numeric: tabular-nums; }
.run-result-how { flex-basis: 100%; margin: 0; }
/* A result that is a table, one row a region: the numbers line up. */
/* A table wider than its column scrolls across in its own box, and the
   chat does not. */
.run-result-table-scroll { flex-basis: 100%; max-width: 100%; overflow-x: auto; }
.run-result-table { flex-basis: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.run-result-table th, .run-result-table td { text-align: left; padding: .125rem .75rem .125rem 0;
  border-bottom: 1px solid var(--border); font-weight: 400; }

.analysis-documents { margin: .25rem 0 0; padding-left: 1.25rem; font-size: var(--text-sm); }
.analysis-documents a { color: var(--foreground); }
/* In dark the shell's ground and its sidebar are the palette's black,
   as the slide page's sidebar is, and the page it frames is grey, every
   surface on it a step up with it so nothing drawn on --background
   shows as a black patch (Vivien, 2026-11-08). On 2026-11-07 it was the
   other way round, the sidebar grey and the page black. The slide page
   takes the same grey for its sidebar and top bar. A row lit in the sidebar takes the
   palette's accent, a step lighter, to show on it. */
html.dark { --shell-ground: #111111; }
html.dark [data-slot="workbench"] { --sidebar: var(--shell-ground); --sidebar-accent: #2a2a2a; }
html.dark [data-slot="frame"] { --background: #232323; --muted: #2e2e2e; --accent: #333333;
  --border: #404040; --input: #4a4a4a; --card: #2a2a2a; --popover: #2a2a2a; }
/* Only the plane scrolls, and the window does not bounce past its end
   over a white body. */
html, body { overscroll-behavior: none; }
body:has(> [data-slot="workbench"]) { background: var(--shell-ground, var(--sidebar)); }
[data-slot="plane"] { overscroll-behavior: contain; }
/* A finished analysis's downloads, under its standing. */
.analysis-downloads { display: flex; flex-wrap: wrap; gap: .5rem; margin: -.75rem 0 1.5rem; }
/* Under a skill's name: its standing, and who last made it so. */
.skill-standing { display: flex; align-items: center; flex-wrap: wrap; gap: .625rem; margin: 0 0 1.5rem; color: var(--muted-foreground); font-size: var(--text-sm); }
/* A skill in a list: its name, and its one line under it. */
.skill-name-cell { display: flex; flex-direction: column; gap: .125rem; }
.skill-description-line { font-size: var(--text-sm); color: var(--foreground); }
/* What a study does differently from a method, in a table's cell
   (analysis/study-methods.lisp): sentences to read whole, so the cell
   wraps where a list's title is cut. */
td.row-read-whole { width: 100%; white-space: normal; }
td.row-read-whole .skill-text > :last-child { margin-bottom: 0; }
/* Under a method on a study's Methods tab: the way to read the method. */
.study-method-links { margin: 0 0 .75rem; font-size: var(--text-sm); }
/* And the line that adds what the study does differently, clear of the
   table over it. */
.study-method-add { margin-top: 1.25rem; }
/* The study's code (studies/study-code.lisp): each function as a step calls
   it, in code type, with what it gives back under it; and a block's source
   with its line numbers, on the block's own page. */
.study-code-function { display: flex; flex-direction: column; gap: .125rem; margin-top: .25rem; }
.study-code-call { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--foreground); overflow-wrap: anywhere; }
.study-code-words { font-size: var(--text-sm); color: var(--foreground); }
.study-code-functions { display: flex; flex-direction: column; gap: .5rem; max-width: 58rem; }
.study-code-source pre { margin: 0; padding: .5rem 0; overflow-x: auto; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--muted); color: var(--foreground); font-family: var(--font-mono);
  font-size: var(--text-xs); line-height: 1.6; tab-size: 4; }
.study-code-source-line { display: flex; }
.study-code-line-number { flex: none; width: 3.25rem; padding-right: .75rem; text-align: right; color: var(--muted-foreground);
  user-select: none; }
.study-code-source-line code { flex: 1; padding-right: .75rem; white-space: pre; font-family: inherit; font-size: inherit; }
/* A method's code (pages/skills.lisp): each file's name, its functions as
   the study's code draws them, and its source behind a disclosure. In the
   editor, a file's code in code type. */
.method-code-file { display: flex; flex-direction: column; gap: .5rem; margin: 0 0 1.25rem; }
.method-code-heading { margin: 0; font-size: var(--text-sm); font-weight: var(--font-weight-medium); color: var(--foreground); }
.method-code-source summary { cursor: pointer; font-size: var(--text-sm); color: var(--foreground); }
.method-code-source .study-code-source { margin-top: .5rem; }
.method-code-fields { display: flex; flex-direction: column; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.method-code-source-field textarea { font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.55; white-space: pre; }
.skill-description { margin: 0 0 1rem; max-width: 46rem; font-size: var(--text-sm); line-height: 1.55; }
/* A method to read: a document with a measure, headings and lists. */
.skill-text { max-width: 46rem; font-size: var(--text-sm); line-height: 1.55; }
.skill-text > :first-child { margin-top: 0; }
.skill-text p { margin: 0 0 .6rem; }
.skill-text h3 { margin: 1.25rem 0 .4rem; font-size: var(--text-sm); font-weight: var(--font-weight-medium); }
.skill-text ul, .skill-text ol { margin: 0 0 .6rem; padding-left: 1.25rem; }
.skill-text li { margin: 0 0 .25rem; }
.skill-text code { font-size: var(--text-xs); }
.skill-text h4 { margin: 1rem 0 .3rem; font-size: var(--text-sm); font-weight: var(--font-weight-medium); color: var(--muted-foreground); }
.skill-text hr { border: 0; border-top: 1px solid var(--border); margin: 1rem 0; }
/* Nested lists, code and a picture placed in a method's text. */
.skill-text li > ul, .skill-text li > ol { margin: .25rem 0 0; }
/* A block of code in a method's text or in the model's words, and a
   file's source: in code type, with Python coloured
   (python-source-highlighted.lisp). The block names its language in its
   top right corner, from the word after its first ```. */
:root { --python-keyword: oklch(0.48 0.17 300); --python-string: oklch(0.48 0.12 150); --python-number: oklch(0.52 0.14 55);
  --python-definition: oklch(0.48 0.15 255); --python-builtin: oklch(0.5 0.09 210); --python-comment: var(--muted-foreground); }
html.dark { --python-keyword: oklch(0.78 0.12 300); --python-string: oklch(0.8 0.11 150); --python-number: oklch(0.82 0.11 65);
  --python-definition: oklch(0.8 0.11 250); --python-builtin: oklch(0.8 0.08 210); }
.code-keyword, .code-constant { color: var(--python-keyword); }
.code-string { color: var(--python-string); }
.code-number { color: var(--python-number); }
.code-definition { color: var(--python-definition); font-weight: var(--font-weight-medium); }
.code-builtin, .code-decorator { color: var(--python-builtin); }
.code-comment { color: var(--python-comment); font-style: italic; }
pre.method-code { position: relative; margin: 0 0 .75rem; padding: .625rem .875rem; overflow-x: auto; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--muted); color: var(--foreground); font-family: var(--font-mono);
  font-size: var(--text-xs); line-height: 1.6; white-space: pre; tab-size: 4; }
pre.method-code[data-language] { padding-top: 1.5rem; }
pre.method-code[data-language]::before { content: attr(data-language); position: absolute; top: .375rem; right: .625rem;
  font-family: var(--font-sans); font-size: var(--text-2xs); color: var(--muted-foreground); text-transform: capitalize;
  user-select: none; }
pre.method-code code { font-family: inherit; font-size: inherit; background: none; padding: 0; }
.skill-text li > pre.method-code, .analysis-reply li > pre.method-code { margin: .375rem 0 .5rem; }
.skill-text li > p { margin: .375rem 0 0; }
.method-picture { margin: .25rem 0 1rem; max-width: 32rem; }
.method-picture img { display: block; max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.method-picture figcaption { margin-top: .4rem; font-size: var(--text-sm); line-height: 1.5; color: var(--foreground); }
.method-picture.is-missing figcaption { color: var(--muted-foreground); }
/* The method editor (method-editor.js): the method as a document, its
   toolbar above it, as a word processor lays one out. The document is
   the read page's own .skill-text, so what is typed looks as it will
   read. The facts it starts with sit close together, as their list does. */
.method-editor { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--background); }
.method-editor:focus-within { border-color: var(--foreground); }
.method-editor-toolbar, .method-editor-table-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem;
  padding: .375rem; border-bottom: 1px solid var(--border); }
.method-editor-table-tools[hidden] { display: none; }
.method-editor-table-tools-words { padding: 0 .25rem; font-size: var(--text-xs); color: var(--muted-foreground); }
.method-editor-toolbar-gap { flex: 1; }
.method-editor-tool, .method-editor-style { display: inline-flex; align-items: center; gap: .375rem; height: 1.875rem;
  padding: 0 .5rem; border: 1px solid transparent; border-radius: var(--radius); background: none;
  color: var(--foreground); font: inherit; font-size: var(--text-sm); cursor: pointer; }
.method-editor-style { border-color: var(--border); }
.method-editor-tool:hover, .method-editor-style:hover { background: var(--muted); }
.method-editor-tool:focus-visible, .method-editor-style:focus-visible { outline: none; border-color: var(--foreground); }
.method-editor-tool.is-bold { font-weight: var(--font-weight-semibold, 600); }
.method-editor-tool-icon { display: inline-flex; width: 1rem; height: 1rem; }
.method-editor-tool-icon svg { width: 100%; height: 100%; }
.method-editor-tool.is-redo .method-editor-tool-icon { transform: scaleX(-1); }
.method-editor-page { position: relative; min-height: 24rem; max-width: none; padding: 1rem 1.25rem; outline: none;
  overflow-wrap: anywhere; }
/* The hint is pinned to the page box. Placed without one, it stayed where
   the page first drew it and slid out of the box when the page scrolled. */
.method-editor-page.is-empty::before { content: attr(data-placeholder); position: absolute; top: 1rem; left: 1.25rem;
  right: 1.25rem; pointer-events: none; color: var(--muted-foreground); }
.method-editor-page .method-fact { margin: 0 0 .15rem; }
.method-editor-page .method-fact + :not(.method-fact) { margin-top: 1rem; }
.method-editor-page .method-table { margin: 0 0 .6rem; }
.method-editor-page .method-table th, .method-editor-page .method-table td { min-width: 6rem; border: 1px solid var(--border);
  padding: .3rem .5rem; }
.method-editor-page pre { white-space: pre-wrap; }
.method-editor-page .method-picture { position: relative; }
.method-editor-page .method-picture.is-sending img { opacity: .5; }
.method-editor-page .method-picture figcaption { outline: none; border-bottom: 1px dashed var(--border); cursor: text; }
.method-editor-page .method-picture figcaption:empty::before { content: attr(data-placeholder); color: var(--muted-foreground); }
.method-editor-page .method-picture figcaption:focus { border-bottom-color: var(--foreground); }
.method-picture-missing { display: block; padding: 1rem; border: 1px dashed var(--border); border-radius: var(--radius);
  color: var(--muted-foreground); font-size: var(--text-sm); }
.method-picture-remove { position: absolute; top: .375rem; right: .375rem; width: 1.75rem; height: 1.75rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--background); color: var(--foreground); cursor: pointer; opacity: 0; }
.method-picture:hover .method-picture-remove, .method-picture-remove:focus-visible { opacity: 1; }
.method-editor-refusal { margin: 0; padding: 0 1.25rem .75rem; font-size: var(--text-sm); color: var(--destructive); }
.method-editor-refusal:empty { display: none; }
/* A method's example pictures, each over its caption. */
.skill-pictures { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1.25rem; max-width: 60rem; }
.skill-pictures figure { margin: 0; }
.skill-pictures img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--border); border-radius: var(--radius-sm, .25rem); }
.skill-pictures figcaption { margin-top: .5rem; font-size: var(--text-sm); line-height: 1.5; color: var(--foreground); }
/* The facts a method starts with: stain, species, tissue. */
.method-facts { display: grid; grid-template-columns: max-content 1fr; gap: .2rem 1rem; margin: 0 0 1rem; }
.method-facts dt { color: var(--muted-foreground); }
.method-facts dd { margin: 0; }
.method-table-wrap { overflow-x: auto; margin: 0 0 .6rem; }
.method-table { border-collapse: collapse; font-size: var(--text-sm); }
.method-table th, .method-table td { border-bottom: 1px solid var(--border); padding: .3rem .75rem .3rem 0; text-align: left; vertical-align: top; }
.method-table th { font-weight: var(--font-weight-medium); }
.analysis-text { margin: 0; max-width: 46rem; font-size: var(--text-sm); line-height: 1.55; white-space: pre-line; }
/* A fold: a line that opens on a click to what it holds. The flags are
   one each, their headline and place on the line; the method is one
   under the results. */
.analysis-flags { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.analysis-flag { border-bottom: 1px solid var(--border); }
.analysis-fold > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: .75rem 1fr; align-items: baseline;
  column-gap: .5rem; row-gap: .125rem; padding: .5rem 0; font-size: var(--text-sm); }
.analysis-fold > summary > * { grid-column: 2; }
.analysis-fold > summary::before { grid-column: 1; grid-row: 1; }
.analysis-fold > summary::-webkit-details-marker { display: none; }
.analysis-fold > summary::before { content: ""; width: .4rem; height: .4rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 150ms; align-self: start; margin-top: .45em; }
.analysis-fold[open] > summary::before { transform: rotate(45deg); }
.analysis-fold-title { font-weight: var(--font-weight-medium); }
.analysis-fold-body { padding: 0 0 .5rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.analysis-flag-pictures { display: flex; flex-wrap: wrap; gap: .5rem; }
.analysis-flag-pictures img { display: block; height: auto; max-height: 12rem; width: auto; max-width: 100%; object-fit: contain;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--muted); cursor: zoom-in; }
/* Under a flag's pictures: what each outline colour is, as the slide's key says. */
.analysis-flag-key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem;
  font-size: var(--text-sm); }
.analysis-flag-key li { display: inline-flex; align-items: center; gap: .375rem; }
/* A button, with room above it: drawn as underlined words straight under
   the flag's reason, it read as part of the sentence (Vikram, 2026-10-19). */
.analysis-show-on-slide { align-self: flex-start; display: inline-flex; align-items: center; gap: .375rem; height: 1.75rem;
  margin-top: .25rem; padding: 0 .625rem; border: 1px solid var(--border); border-radius: var(--radius-sm, .375rem);
  background: var(--background); font: inherit; font-size: var(--text-xs); color: var(--foreground); cursor: pointer; }
.analysis-show-on-slide:hover { background: var(--muted); }
.analysis-show-on-slide svg { width: .875rem; height: .875rem; flex-shrink: 0; }
/* A place on the slide shown as the slide itself, live, where a picture
   of it was (slide-viewer.js). Its height is fixed: the viewer fills it. */
.slide-place { margin: 0; display: flex; flex-direction: column; gap: .375rem; width: 100%; max-width: 34rem; white-space: normal; }
.slide-place-stage { position: relative; height: 16rem; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--muted); }
.slide-place-viewer { position: absolute; inset: 0; }
.slide-place-waiting { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 1rem;
  text-align: center; font-size: var(--text-xs); }
.slide-place-tools { position: absolute; top: .375rem; right: .375rem; z-index: 2; display: flex; gap: .25rem; }
.slide-place-tools button { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius-sm, .375rem); background: var(--background);
  color: var(--foreground); cursor: pointer; }
.slide-place-tools button:hover { background: var(--muted); }
.slide-place-tools svg { width: .875rem; height: .875rem; }
/* The place itself, when the view shows more of the slide round it. */
.slide-place-outline { pointer-events: none; outline: 2px dashed rgb(255 255 255 / .95); box-shadow: 0 0 0 1px rgb(0 0 0 / .45); }
.slide-place-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .375rem 1rem; }
.slide-place-foot .analysis-show-on-slide { margin-top: 0; }
.slide-place-key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .875rem;
  font-size: var(--text-xs); }
.slide-place-key:empty { display: none; }
.slide-place-key li, .slide-place-key label { display: inline-flex; align-items: center; gap: .375rem; }
.slide-place-key label { cursor: pointer; }
.slide-place-key input { margin: 0; width: .875rem; height: .875rem; accent-color: var(--foreground); }
.slide-place-swatch { width: .75rem; height: .75rem; border-radius: 2px; border: 2px solid currentColor; flex-shrink: 0; }
/* A step of the model's code: what it made, on the slide, and the code
   itself folded shut under it. */
.code-step { display: flex; flex-direction: column; gap: .5rem; margin: .25rem 0 .25rem; white-space: normal;
  font-size: var(--text-xs); line-height: 1.45; }
.code-step:empty { display: none; }
.code-step-heading { margin: .25rem 0 0; font-weight: var(--font-weight-medium); }
.code-step-note { margin: 0; }
.code-step-code > summary { cursor: pointer; width: fit-content; text-decoration: underline; text-underline-offset: 2px; }
.code-step-code-body { display: flex; flex-direction: column; gap: .25rem; margin-top: .375rem; }
.code-step-label { margin: .375rem 0 0; font-weight: var(--font-weight-medium); }
.code-step-text { margin: 0; max-height: 20rem; overflow: auto; padding: .5rem .625rem; border-radius: var(--radius-sm, .375rem);
  background: var(--muted); font-family: var(--font-mono); font-size: 11px; line-height: 1.5; white-space: pre-wrap;
  overflow-wrap: anywhere; }
.code-step-text:empty { display: none; }
.code-step-pictures { display: flex; flex-wrap: wrap; gap: .5rem; }
.code-step-pictures img { display: block; height: auto; max-height: 9rem; max-width: 100%; border: 1px solid var(--border);
  border-radius: var(--radius-sm, .375rem); cursor: zoom-in; }
/* The pictures with the model's question. */
/* The model's question in the conversation pane: its answers are
   sentences, so they wrap, one under another when they must, rather than
   running off the pane's right edge. */
#analysis-question [data-slot="approval-actions"] { flex-wrap: wrap; justify-content: flex-start; }
#analysis-question [data-slot="approval-actions"] [data-slot="button"] { height: auto; min-height: 2rem;
  padding-block: .375rem; white-space: normal; text-align: left; max-width: 100%; }
/* A change the model proposed to a method has three answers, and the
   conversation pane is narrow: they wrap as the question's do. Until
   2026-11-11 it had two, which fitted on one line. */
[id^="method-proposal-"] [data-slot="approval-actions"], [id^="alignment-proposal-"] [data-slot="approval-actions"] { flex-wrap: wrap; justify-content: flex-start; }
.analysis-question-pictures { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.analysis-question-pictures img { height: auto; max-height: 16rem; width: auto; max-width: 100%; object-fit: contain;
  border: 1px solid var(--border); border-radius: var(--radius); cursor: zoom-in; }
/* The run, turn by turn: each turn a tool-chips run that folds to its
   header, taking the column's width, with what the pathologist said
   between them. */
.analysis-turns { display: flex; flex-direction: column; gap: 0; }
[data-slot=tool-chips].analysis-turn { max-width: none; min-height: 0; padding-bottom: 0; }
.analysis-turn [data-slot=tool-chips-toggle] { padding: .1875rem .375rem; }
.analysis-turn [data-slot=tool-chips-row-button] { height: 2rem; gap: .5rem; }
.analysis-turn [data-slot=tool-chips-row-chip] { height: 1.5rem; padding-inline: .5rem; }
.analysis-turn [data-slot=tool-chips-row-glyphs] { width: 1rem; height: 1rem; }
.analysis-turn [data-slot=tool-chips-row-glyphs] svg { width: 1rem; height: 1rem; }
.analysis-turn [data-slot=tool-chips-detail-lines] { gap: .25rem; padding-left: 1.25rem; margin-left: .5rem; }
.analysis-turn [data-slot=tool-chips-detail-pictures] img { height: auto; max-height: 9rem; max-width: 100%; cursor: zoom-in; }
/* A turn whose line the summary model has not written yet sweeps. */
.analysis-turn[data-summary=pending] [data-slot=tool-chips-toggle-text],
.analysis-turn [data-slot=tool-chips-row][data-busy] > button [data-slot=tool-chips-row-label] { color: transparent; background: linear-gradient(90deg, var(--muted-foreground) 0%, var(--muted-foreground) 35%, var(--foreground) 50%, var(--muted-foreground) 65%, var(--muted-foreground) 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; animation: being-read-sweep 2.4s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .analysis-turn[data-summary=pending] [data-slot=tool-chips-toggle-text],
  .analysis-turn [data-slot=tool-chips-row][data-busy] > button [data-slot=tool-chips-row-label] { animation: none; background: none; color: var(--foreground); } }
/* What the model said in a turn, above the work it did, as it wrote it. */
.analysis-reply { margin: .375rem 0; white-space: pre-wrap; }
/* In a turn where it said nothing, what its steps were for, in its own
   words, above the line that folds its work: the run reads from top to
   bottom without opening anything (VSQ-426). */
.analysis-turn-reasons { margin: .375rem 0 0; }
/* The model's words drawn from their marks (METHOD-TEXT-AS-HTML): its
   paragraphs, lists and headings spaced as a short document. */
.analysis-reply:has(> :is(p, ul, ol, h3, h4, pre, .method-table-wrap)) { white-space: normal; }
.analysis-reply > :is(p, ul, ol, h3, h4, pre, .method-table-wrap) { margin: 0 0 .5rem; }
.analysis-reply > :last-child { margin-bottom: 0; }
.analysis-reply :is(ul, ol) { padding-left: 1.25rem; }
.analysis-reply :is(h3, h4) { font-weight: var(--font-weight-medium); }
/* A command or a file as the model wrote it keeps its lines, and a long
   one scrolls in its own box. */
.analysis-turn [data-slot=tool-chips-detail-line][data-mono=true] { display: block; max-height: 20rem; overflow: auto; }
.analysis-turn-message { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; padding: .375rem; }
.analysis-turn-message > svg { width: 1rem; height: 1rem; flex-shrink: 0; color: var(--muted-foreground); }
/* The conversation is set in two sizes and one weight: what is read at
   the app's small text size, and labels, notes, times and what a tool
   call sent and got back a step smaller. Every part inside, the kit's
   too, takes the size and weight from here rather than its own. The one
   third size is a result's number, set large so the numbers lead
   (VSQ-344, below). */
.run-thread-scroll { font-size: var(--run-text); line-height: 1.5; }
.run-thread-scroll *:not([data-slot=kit-badge]) { font-size: inherit; font-weight: 400; line-height: inherit; }
.run-thread-scroll :is(strong, b, .analysis-fold-title, .run-message-who,
  .run-results-label, .run-result-line-words) { font-weight: var(--font-weight-medium); }
/* What the pathologist said between the model's turns, as a message. */
.analysis-turn-message { margin: .375rem 0; padding: .5rem .75rem; border-radius: var(--control-radius); background: var(--muted); }
.analysis-turns { gap: .125rem; }
.analysis-turn [data-slot=tool-chips-detail-line] { line-height: 1.45; }
.run-thread-scroll :is(.run-message-who, .run-message-note, .run-result-how, .analysis-fold-note,
  .analysis-turn-message-who, [data-slot=tool-chips-row-chip], [data-slot=tool-chips-toggle-text],
  .run-result-line-note, .run-result-line-name, .run-result-line-was, .run-result-line-more, .run-chat-about,
  .run-results-how, .run-result-name, .run-result-was, [data-slot=tool-chips-detail-lines]) {
  font-size: var(--run-small); }
/* Words that sweep while the model works. Since 2026-10-26 (VSQ-344) the
   step at work also turns a small ring, as in Vikram's chosen design. */
.is-being-read { color: transparent; background: linear-gradient(90deg, var(--muted-foreground) 0%, var(--muted-foreground) 35%, var(--foreground) 50%, var(--muted-foreground) 65%, var(--muted-foreground) 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; animation: being-read-sweep 2.4s linear infinite; }
@keyframes being-read-sweep { from { background-position: 100% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .is-being-read { animation: none; background: none; color: var(--foreground); } }
/* Studies (VSQ-163). The part of a study's page drawn again as its slides
   move on holds several sections; it stands aside so they keep the
   column's spacing, as sections of their own. */
#study-live, #study-tab-redrawn, #study-head { display: contents; }
/* A study's pages (STUDY-TAB-PAGE): its tabs in a column down the left,
   kept in view as the tab scrolls, and the tab beside them. In a narrow
   window the tabs make one row above the tab. */
.study-tabbed { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.study-tabbed-body { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.study-tabs { position: sticky; top: 0; display: flex; flex-direction: column; gap: .125rem; }
.study-tab { display: block; padding: .375rem .625rem; border-radius: var(--radius); font-size: var(--text-sm); color: var(--foreground); text-decoration: none; }
.study-tab:hover { background: var(--muted); }
.study-tab[aria-current="page"] { background: var(--muted); font-weight: var(--font-weight-medium); }
@media (max-width: 48rem) {
  .study-tabbed { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .study-tabs { position: static; flex-direction: row; flex-wrap: wrap; }
}
/* Buttons side by side at a section's head. */
.section-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.section-buttons form { margin: 0; }
/* A section of a study's report as a viewer reads it: the writer's own
   line breaks, at a reading measure. */
.study-report-text { margin: 0; max-width: 46rem; white-space: pre-wrap; }
/* A study's file: its name, size and standing, then the act that turns it over and Remove, on one line. */
.study-document-row form { margin: 0; }
/* What a study needs next, under its standing. */
.study-next { display: flex; flex-direction: column; gap: .5rem; margin: 0 0 1.5rem; max-width: 46rem; font-size: var(--text-sm); }
.study-next p { margin: 0; }
/* A study's graph (VSQ-268): the two choices on one line above it, the
   drawing as wide as the column, and the name of the dot under the
   pointer in a small box beside it. The worker draws the graph in the
   page's colour variables, so it follows dark mode as the page does. */
/* Adding slides: the lab's disk as a list to tick, searched as typed. */
.slide-picker { border: 1px solid var(--border); border-radius: var(--radius); max-width: 40rem; }
.slide-picker-head { display: flex; align-items: center; gap: .5rem; padding-right: .5rem; border-bottom: 1px solid var(--border); }
.slide-picker-head .slide-card-search { border-bottom: 0; flex: 1; }
.slide-picker-rows { display: flex; flex-direction: column; max-height: 24rem; overflow-y: auto; padding: .25rem; }
.slide-picker-row { display: grid; grid-template-columns: auto 1fr; column-gap: .625rem; align-items: baseline;
  padding: .375rem .625rem; border-radius: var(--radius); cursor: pointer; font-size: var(--text-sm); }
.slide-picker-row[hidden] { display: none; }
.slide-picker-row:hover { background: var(--accent); }
.slide-picker-row > :not(input) { grid-column: 2; }
/* Each file sent from the browser, with how much of it has arrived. */
.slide-upload-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; max-width: 40rem; }
.slide-upload-list:empty, .slide-upload-status:empty { display: none; }
.slide-upload-row { display: flex; justify-content: space-between; gap: .625rem; }
.slide-upload-row-state { flex: none; font-variant-numeric: tabular-nums; }
.slide-upload-status { margin: 0; }
/* How much of the files picked has arrived, across all of them. */
.slide-upload-bar { height: .375rem; max-width: 40rem; border-radius: 999px; background: var(--muted); overflow: hidden; }
.slide-upload-bar[hidden] { display: none; }
.slide-upload-bar-fill { height: 100%; width: 0; background: var(--foreground); transition: width .3s linear; }
@media (prefers-reduced-motion: reduce) { .slide-upload-bar-fill { transition: none; } }
/* The box at the bottom right with the slides on their way (UPLOAD-CORNER),
   on every page. Its head line folds it away, so it does not sit on a
   chat's prompt bar while a person types. */
.upload-corner { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; width: min(22rem, calc(100vw - 2rem));
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); color: var(--foreground);
  box-shadow: 0 4px 16px rgba(0,0,0,.12); font-size: var(--text-sm); }
.upload-corner[hidden] { display: none; }
/* A slide's page keeps its tool bar along the foot of the slide: the box
   sits above it, so no tool is under the box. */
html:has(.plane-workspace) .upload-corner { bottom: 3.75rem; }
.upload-corner-head { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .5rem .75rem; border: 0; background: transparent; color: inherit; font: inherit; text-align: left;
  font-variant-numeric: tabular-nums; cursor: pointer; }
.upload-corner-fold { flex: none; text-decoration: underline; text-underline-offset: 2px; }
.upload-corner-picks { list-style: none; margin: 0; padding: 0 .75rem .75rem; display: flex; flex-direction: column;
  gap: .75rem; max-height: 50vh; overflow-y: auto; }
.upload-corner.is-folded .upload-corner-picks { display: none; }
.upload-corner-pick { display: flex; flex-direction: column; gap: .375rem; }
.upload-corner-pick + .upload-corner-pick { border-top: 1px solid var(--border); padding-top: .75rem; }
.upload-corner-pick-title { color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-corner-pick-title:hover { text-decoration: underline; }
.upload-corner-pick-status { margin: 0; font-variant-numeric: tabular-nums; }
.upload-corner-pick-status.is-bad { color: var(--destructive); }
.upload-corner-pick-buttons { display: flex; flex-wrap: wrap; gap: .375rem; }
.upload-corner-pick-buttons[hidden], .upload-corner .slide-upload-bar[hidden] { display: none; }
.upload-corner .slide-upload-bar { max-width: none; }
/* The line that says a field saved moves to the middle while the box
   holds the corner it uses. */
html.has-upload-corner .save-toast { right: auto; left: 50%; transform: translateX(-50%); }
/* New analysis: the box slides are dropped on, dashed as the slide
   card's Add is, outlined while a file is held over the page. Its
   progress is the Add slides page's, under it. */
.new-analysis-slides { display: flex; flex-direction: column; gap: .625rem; font-size: var(--text-sm); }
.new-analysis-drop { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 2.5rem 1.5rem;
  border: 1px dashed var(--input); border-radius: var(--radius); background: var(--background); text-align: center; }
.new-analysis-drop[data-dragging] { border-color: var(--ring); background: var(--muted); }
.new-analysis-slides[data-state="sending"] .new-analysis-drop { display: none; }
.new-analysis-drop svg { width: 24px; height: 24px; }
.new-analysis-drop p { margin: 0; color: var(--muted-foreground); }
.new-analysis-drop-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .25rem; }
/* A slide on the lab's disk, opened with a click: a picker row that is a button. */
.disk-slide-row { width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
/* What a save sent back, each sentence on a line of its own, above the
   table it is about. */
.form-refusals { margin: 0 0 1rem; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .25rem;
  max-width: 46rem; font-size: var(--text-sm); color: var(--destructive); }
/* The Levels panel (VSQ-367, %LEVELS-PANEL, stain-histogram.js), opened
   from the histogram button in the viewer's bar and kept open while the
   slide is worked on, so it is narrow and scrolls rather than run off the
   screen. A multiplex slide's markers come first, each with an eye to show
   it, its swatch, which takes its colour so the list is the key, and its
   name, which picks it and shows it; the picked one's row is shaded. A
   bright-field slide's stains are three buttons. Then the picked one's
   histogram with its black, mid and white handles and its cut, the
   numbers under it, and, once a box is drawn, the area it is read over. The bars above the cut, and the cut, are in the
   green the worker lights the slide with (HIGHLIGHT_RGB in
   stain_histograms.py), so the histogram is the slide's key too. */
.run-levels { --histogram-lit: rgb(0 230 90); inset: auto; position: fixed; margin: 0; padding: .75rem; width: 20rem;
  max-height: calc(100dvh - 6rem); overflow-y: auto; overscroll-behavior: contain; border: 0;
  border-radius: var(--overlay-radius, var(--radius));
  background: var(--background); color: var(--foreground); box-shadow: var(--overlay-shadow, 0 0 0 1px var(--border));
  font-size: var(--slide-viewer-text); }
.run-levels:popover-open { display: flex; flex-direction: column; gap: .75rem; }
.run-levels-head { display: flex; align-items: center; gap: .125rem; margin: -.375rem -.375rem -.25rem 0; }
.run-levels-title { flex: 1; margin: 0; font-size: var(--slide-viewer-text); font-weight: var(--font-weight-medium); }
.run-levels-head .run-zoom-button { width: 1.75rem; height: 1.75rem; }
.run-levels-head .run-zoom-button svg { width: .875rem; height: .875rem; }
.run-levels-choices { min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
/* A bright-field slide's stains: three buttons side by side, the one
   picked shaded. Each is a radio under its name. */
.run-levels-stains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; }
.run-levels-stain { position: relative; display: flex; align-items: center; justify-content: center; height: 1.75rem;
  border: 1px solid var(--border); border-radius: var(--control-radius, var(--radius)); cursor: pointer; }
.run-levels-stain input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.run-levels-stain:hover { background: color-mix(in oklab, var(--muted) 55%, transparent); }
.run-levels-stain:has(input:checked) { background: var(--muted); }
.run-levels-stain:has(input:focus-visible) { outline: 2px solid var(--ring, var(--foreground)); outline-offset: 1px; }
.run-levels-markers { margin: 0; padding: 0; list-style: none; max-height: 13rem; overflow-y: auto; overscroll-behavior: contain; }
.run-levels-marker { display: flex; align-items: center; gap: .5rem; padding: .125rem .375rem; border-radius: var(--radius); }
.run-levels-marker:has(input[data-histogram-stain]:checked) { background: var(--muted); }
.run-levels-marker:has(.run-levels-pick input:focus-visible) { outline: 2px solid var(--ring, var(--foreground)); outline-offset: -2px; }
/* A shown marker's box holds an eye, a hidden one's is empty, as in
   Photoshop's Layers panel. The box is a real checkbox under the eye. */
.run-levels-eye { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 1.5rem; height: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.run-levels-eye input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.run-levels-eye svg { width: .875rem; height: .875rem; visibility: hidden; }
.run-levels-eye:has(input:checked) svg { visibility: visible; }
.run-levels-eye:has(input:focus-visible) { outline: 2px solid var(--ring, var(--foreground)); outline-offset: 1px; }
.run-levels-pick { position: relative; display: flex; flex: 1; align-items: center; min-width: 0; padding: .25rem 0; cursor: pointer; }
.run-levels-pick input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.run-marker-swatch { display: inline-block; flex-shrink: 0; width: .625rem; height: .625rem; border-radius: 999px;
  background: transparent; border: 1px solid var(--border); }
.run-marker-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A marker's palette shows as a layer's does, while the pointer is on its
   row (.run-layer-colour). The box at the head of a long list finds a
   marker by its name (slide-viewer.js). */
.run-levels-marker:hover .run-layer-colour { opacity: 1; }
.run-levels-marker[hidden] { display: none; }
/* The head of the markers a slide lined up onto this one lends: its name,
   and while its fit waits for a person, that it is not saved yet. */
.run-levels-lent-slide { display: flex; flex-wrap: wrap; align-items: baseline; gap: .375rem; margin-top: .5rem;
  padding: .375rem .375rem .125rem; border-top: 1px solid var(--border); font-size: var(--slide-viewer-text); }
.run-levels-lent-slide-name { font-weight: var(--font-weight-medium); color: var(--foreground); }
.run-levels-lent-slide-note { color: var(--muted-foreground); }
/* On an H&E, how strongly the markers lent it are laid over the scan: the
   adjust panel's row, fitted to the narrower Levels panel. */
.run-levels .run-adjust-row { grid-template-columns: 5.5rem minmax(0, 1fr) auto; margin-top: .375rem;
  font-size: var(--slide-viewer-text); }
.run-levels .run-adjust-row input[type=range] { width: 100%; min-width: 0; accent-color: var(--foreground); }
.run-levels-search { box-sizing: border-box; width: 100%; height: 1.75rem; margin: 0 0 .375rem; padding: 0 .5rem;
  border: 1px solid var(--border); border-radius: var(--control-radius, var(--radius)); background: transparent;
  color: var(--foreground); font: inherit; font-size: var(--slide-viewer-text); }
.run-levels-search:focus { outline: none; border-color: var(--foreground); }
/* The black, mid and white handles under a marker's histogram, each a
   small triangle at its value, filled with the tone it sets. Those three
   are the one place a plain black, grey and white are used: they stand
   for the tones, as in every Levels panel. */
.run-levels-handles { position: relative; height: .75rem; margin-top: -.375rem; touch-action: none; cursor: ew-resize; }
.run-levels-handle { position: absolute; top: 0; width: .75rem; height: .75rem; transform: translateX(-50%); }
.run-levels-handle svg { display: block; width: 100%; height: 100%; overflow: visible; }
.run-levels-handle path { stroke: var(--foreground); stroke-width: 1; }
.run-levels-handle[data-levels-handle=black] path { fill: black; }
.run-levels-handle[data-levels-handle=mid] path { fill: gray; }
.run-levels-handle[data-levels-handle=white] path { fill: white; }
.run-levels-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: .5rem; }
.run-levels-numbers .run-adjust-reset { padding-bottom: .375rem; }
.run-levels-numbers .run-adjust-reset[hidden] { display: none; }
.run-levels-numbers label { display: flex; flex-direction: column; gap: .125rem; font-size: var(--slide-viewer-text); color: var(--muted-foreground); }
.run-levels-numbers input { width: 100%; height: 1.75rem; padding: 0 .375rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--background); color: var(--foreground); font: inherit; font-size: var(--slide-viewer-text); font-variant-numeric: tabular-nums; }
.run-levels-numbers input:focus-visible { outline: 2px solid var(--ring, var(--foreground)); outline-offset: 1px; }
.run-histogram-result { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
/* Another stain being read: the last histogram stays, faded and still,
   until the new one comes. The first read keeps a chart's room. */
.run-histogram-result[data-reading] { opacity: .45; pointer-events: none; transition: opacity .15s; }
.run-histogram-waiting { height: 5.5rem; border-bottom: 1px solid var(--border); }
.run-histogram-chart { display: block; width: 100%; height: 5.5rem; touch-action: none; cursor: ew-resize;
  border-bottom: 1px solid var(--border); }
.run-histogram-bars { fill: var(--chart-3); }
.run-histogram-bars.is-lit { fill: var(--histogram-lit); }
.run-histogram-cut-line { stroke: var(--foreground); stroke-width: 2; vector-effect: non-scaling-stroke; }
.run-histogram-axis { display: flex; justify-content: space-between; gap: .5rem; margin-top: -.25rem;
  font-size: var(--slide-viewer-text); color: var(--muted-foreground); }
.run-histogram-cut { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; font-size: var(--slide-viewer-text); }
.run-histogram-cut label { display: inline-flex; align-items: center; gap: .375rem; }
.run-histogram-cut input[type=number] { width: 4.5rem; height: 1.75rem; padding: 0 .375rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--background); color: var(--foreground); font: inherit; }
.run-histogram-cut input[type=number]:focus-visible { outline: 2px solid var(--ring, var(--foreground)); outline-offset: 1px; }
/* Read over: offered once a box is drawn. */
.run-histogram-area { display: flex; align-items: center; gap: .5rem; }
.run-histogram-area[hidden] { display: none; }
.run-histogram-area select { flex: 1; min-width: 0; height: 1.75rem; padding: 0 .375rem; border: 1px solid var(--border);
  border-radius: var(--control-radius, var(--radius)); background: var(--background); color: var(--foreground); font: inherit; }
.run-histogram-area select:focus-visible { outline: none; border-color: var(--foreground); }
.run-histogram-refusal { margin: 0; font-size: var(--slide-viewer-text); color: var(--foreground); }
.run-histogram-facts-fold summary { cursor: pointer; font-size: var(--slide-viewer-text); }
.run-histogram-facts-fold[open] summary { margin-bottom: .25rem; }
.run-histogram-cut-clear { border: 0; background: none; padding: 0; font: inherit; color: var(--foreground);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.run-levels [data-slot=button] { align-self: flex-start; }
.run-levels [data-slot=button][hidden] { display: none; }
.run-zoom-button[data-panel-open] { background: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }

@keyframes chat-at-work { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .run-chat-row-status[data-status=running] { animation: none; } }

[data-outside-view] { display: none; }

/* PDF and CSV as cards at the top of the prompt bar, the size and look
   of an attachment's chip, each with its file's icon in its kind's colour. */
/* Pulled into the bar's padding above and its gap below, so the cards sit
   close to its top edge and to the text, and the text starts at the
   first card's left edge. */
[data-slot=prompt-bar-page-cards] { display: flex; flex-wrap: wrap; gap: .25rem; margin: -.5rem 0 -.5rem; }
[data-slot=prompt-bar-composer]:has([data-slot=prompt-bar-page-cards]) [data-slot=prompt-bar-input] { padding-left: 0; }
/* The exports, plain words at the foot of a chat's numbers. */
.run-export-button { display: inline; padding: 0; border: 0; background: none; color: var(--foreground); font: inherit;
  text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 2px; cursor: pointer; }
.run-export-button:hover, .run-export-button:focus-visible { text-decoration-color: currentColor; outline: none; }
/* While its file is made: the words say so, and the line under them goes. */
.run-export-button[aria-busy=true] { text-decoration: none; cursor: progress; }
.run-export-status:empty { display: none; }
.run-export-status { flex-basis: 100%; color: var(--foreground); }
/* Pointing at the slide (VSQ-203): a box is the person's mark, in the
   yellow the ruler and a shown place use, drawn in the marks' overlay,
   with a tag above it, or inside its top at the top of the pane, holding
   its number and an x. */
.run-mark-box { fill: none; stroke: #ffd400; stroke-width: 2; filter: drop-shadow(0 0 1px rgb(0 0 0 / .8)); }
.run-mark-box.is-drawing { stroke-dasharray: 6 4; }
.run-mark-box.is-lit { fill: rgb(255 212 0 / .2); }
.run-mark-box.is-armed { fill: rgb(255 212 0 / .35); }
/* A comment on a place: a pin whose sharp corner sits on the place, as
   Figma marks a comment, holding its writer's initials, in frosted glass
   that lets the slide show through. Open, a card of the same glass
   beside it. The pin and the card take the pointer; the rest of the
   overlay lets it through to the slide. */
.run-comment-pin { pointer-events: auto; --comment-glass: color-mix(in srgb, var(--background) 72%, transparent); }
.run-comment-pin.is-open { z-index: 2; }
.run-comment-pin-button, .run-comment-pin.is-writing::before { position: absolute; left: 0; top: 0; box-sizing: border-box;
  width: 1.75rem; height: 1.75rem; border: 1px solid color-mix(in srgb, var(--foreground) 12%, transparent);
  border-radius: 50% 50% 50% 0; background: var(--comment-glass); -webkit-backdrop-filter: blur(8px) saturate(1.4);
  backdrop-filter: blur(8px) saturate(1.4); box-shadow: 0 2px 8px rgb(0 0 0 / .22), 0 0 0 .5px rgb(0 0 0 / .06);
  transform: translateY(-100%); transform-origin: bottom left; }
.run-comment-pin-button { display: inline-flex; align-items: center; justify-content: center; padding: 0;
  color: var(--foreground); font-size: .625rem; letter-spacing: .02em;
  line-height: 1; cursor: pointer; transition: transform 120ms ease-out, background-color 120ms ease-out; }
.run-comment-pin-button:hover, .run-comment-pin.is-open .run-comment-pin-button {
  background: var(--background); transform: translateY(-100%) scale(1.1); }
.run-comment-pin-button:focus-visible { outline: 2px solid var(--foreground); outline-offset: 1px; }
/* A comment's box, round what it is about: drawn as its pin is, the
   page's background with a dark edge, so it shows on pale and dark stain
   alike. Dashed while it is drawn;
   lit faintly while its card is open. It takes no pointer: its pin does. */
.run-mark-comment-box { fill: none; stroke: var(--background); stroke-width: 1.5;
  filter: drop-shadow(0 0 1px rgb(0 0 0 / .9)); }
.run-mark-comment-box.is-drawing { stroke-dasharray: 6 4; }
.run-mark-comment-box.is-open { fill: color-mix(in srgb, var(--background) 16%, transparent); }
/* The place being commented on, before it is saved: an empty pin. */
.run-comment-pin.is-writing::before { content: ""; background: var(--background); }
.run-comment-card { position: absolute; left: 2.25rem; top: -2.5rem; width: 16rem; display: flex; flex-direction: column;
  gap: .5rem; padding: .625rem .75rem; border: 1px solid color-mix(in srgb, var(--foreground) 10%, transparent);
  border-radius: .75rem; background: color-mix(in srgb, var(--background) 86%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  color: var(--foreground); font-size: var(--slide-viewer-text); box-shadow: 0 8px 24px rgb(0 0 0 / .18); cursor: auto; }
.run-comment-card-head { display: flex; align-items: center; gap: .5rem; }
.run-comment-card-who { flex: 1; min-width: 0; font-size: var(--slide-viewer-text); overflow-wrap: anywhere; }
.run-comment-card-close { flex-shrink: 0; width: 1.25rem; height: 1.25rem; border: 0; border-radius: var(--radius);
  background: none; color: var(--foreground); cursor: pointer; }
.run-comment-card-close:hover { background: var(--muted); }
.run-comment-card-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.run-comment-card-field { width: 100%; box-sizing: border-box; resize: vertical; padding: .375rem .5rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--background);
  color: var(--foreground); font: inherit; }
.run-comment-card-field:focus { outline: none; border-color: var(--foreground); }
.run-comment-card-refusal { margin: 0; font-size: var(--slide-viewer-text); color: var(--destructive); }
.run-comment-card-refusal:empty { display: none; }
.run-comment-card-foot { display: flex; justify-content: flex-end; gap: .375rem; }
.run-comment-card-action { height: 1.75rem; padding: 0 .625rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--background); color: var(--foreground); font-size: var(--slide-viewer-text); cursor: pointer; }
.run-comment-card-action:hover { background: var(--muted); }
.run-comment-card-action.is-primary { background: var(--foreground); border-color: var(--foreground); color: var(--background); }
.run-comment-card-action:disabled { cursor: default; opacity: .6; }
/* The sidebar's Comments: one line a comment, its pin as on the slide. */
.run-comments-rows { list-style: none; margin: 0 -.375rem; padding: 0; display: flex; flex-direction: column; }
.run-comments-row { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .5rem; width: 100%;
  padding: .25rem .375rem; border: 0; border-radius: var(--radius); background: none; color: var(--foreground);
  font: inherit; font-size: var(--slide-viewer-text); text-align: left; cursor: pointer; }
.run-comments-row:hover { background: var(--muted); }
.run-comments-row-pin { display: inline-flex; align-items: center; justify-content: center; width: 1.375rem;
  height: 1.375rem; border: 1px solid color-mix(in srgb, var(--foreground) 12%, transparent);
  border-radius: 50% 50% 50% 0; background: var(--muted); font-size: .5625rem; }
.run-comments-row-words { display: flex; flex-direction: column; min-width: 0; }
.run-comments-row-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run-comments-row-who { font-size: var(--slide-viewer-text); }

/* A labelled region (VSQ-358, labelled-regions.js): its box or shape
   drawn as a comment's box is, the page's background with a dark edge,
   dashed while it is drawn, and its label in a tag of the same glass at
   its top left. Neither takes the pointer, so they never get in the way
   of moving the slide; the sidebar shows a region. Labelling one opens a
   comment's card beside it. */
.run-mark-labelled-region { fill: none; stroke: var(--background); stroke-width: 1.5; stroke-linejoin: round;
  filter: drop-shadow(0 0 1px rgb(0 0 0 / .9)); }
.run-mark-labelled-region.is-drawing { stroke-dasharray: 6 4; }
.run-mark-labelled-region.is-lit { fill: color-mix(in srgb, var(--background) 22%, transparent); }
.run-labelled-region-tag { transform: translate(-1px, -100%); padding: .0625rem .375rem;
  border-radius: var(--radius) var(--radius) 0 0; background: color-mix(in srgb, var(--background) 86%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--foreground); border: 0;
  white-space: nowrap; font-size: var(--slide-viewer-text); line-height: 1.4; }
.run-labelled-region-tag.is-inside { transform: translate(1px, 1px); border-radius: 0 0 var(--radius) 0; }
.run-labelled-region-card-holder { pointer-events: auto; z-index: 2; }
.run-labelled-region-card-holder > .run-comment-card { left: .5rem; top: 0; }
.run-labelled-region-field-label { font-size: var(--slide-viewer-text); font-weight: var(--font-weight-medium); }
input.run-comment-card-field { height: 1.75rem; }
.run-labelled-region-choices { display: flex; flex-direction: column; gap: .25rem; margin: 0; padding: 0; border: 0; }
.run-labelled-region-choices label { display: flex; align-items: center; gap: .375rem; font-size: var(--slide-viewer-text); }
.run-canvas:not([data-can-label=true]) .run-label-button { display: none; }
/* The sidebar's Labelled regions: one row a region, its picture beside
   what it is, on which slide, who labelled it, and what can be done with
   it. A row pressed shows the region, on this slide, or opens its slide. */
.labelled-regions-rows { list-style: none; margin: 0 -.375rem; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.labelled-regions-row { display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: .5rem;
  padding: .25rem .375rem; border-radius: var(--radius); }
.labelled-regions-row:hover { background: var(--muted); }
.labelled-regions-row.is-lit { background: var(--muted); }
.labelled-regions-row-picture { display: block; width: 3rem; height: 3rem; padding: 0; border: 0;
  border-radius: var(--radius); overflow: hidden; background: var(--muted); cursor: pointer; }
.labelled-regions-row-picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.labelled-regions-row-words { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.labelled-regions-row-label { font-size: var(--text-sm); font-weight: var(--font-weight-medium); overflow-wrap: anywhere; }
.labelled-regions-row-note { font-size: var(--text-xs); white-space: pre-wrap; overflow-wrap: anywhere; }
.labelled-regions-row-who { font-size: var(--text-xs); color: var(--muted-foreground); overflow-wrap: anywhere; }
.labelled-regions-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; margin-top: .125rem; }
.labelled-regions-row-actions select { max-width: 100%; height: 1.75rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--background); color: var(--foreground); font: inherit;
  font-size: var(--text-xs); }
.labelled-regions-row-refusal { margin: 0; font-size: var(--text-xs); color: var(--destructive); }
.labelled-regions-row-refusal:empty { display: none; }
.labelled-regions-row-method { font-size: var(--text-xs); color: var(--foreground); }

/* A shape drawn by hand: the place it closes round is lit, so it reads as
   the area meant. Drawn, its line so far, and dashed, how it will close. */
.run-mark-shape { fill: rgb(255 212 0 / .15); stroke-linejoin: round; stroke-linecap: round; }
.run-mark-shape.is-drawing { fill: none; stroke-dasharray: none; }
.run-mark-shape.is-closing { fill: none; stroke-dasharray: 4 4; opacity: .7; }
.run-box-label { display: inline-flex; align-items: center; gap: .375rem; transform: translate(-1px, -100%);
  padding: .0625rem .25rem .0625rem .375rem; border-radius: var(--radius) var(--radius) 0 0; background: #ffd400;
  color: #111; white-space: nowrap; font-size: var(--slide-viewer-text); line-height: 1.4; pointer-events: auto; }
.run-box-label.is-inside { transform: translate(1px, 1px); border-radius: 0 0 var(--radius) 0; }
/* A box already sent: a thin outline that stays, its tag out of the way of
   the hand on the slide. Its pill in the chat lights it. */
.run-mark-box.run-mark-sent { fill: none; stroke-width: 1.5; }
.run-mark-box.run-mark-sent.is-lit { fill: rgb(255 212 0 / .2); stroke-width: 2; }
.run-box-label.run-box-label-sent { padding-right: .375rem; pointer-events: none; }
.run-box-remove { display: inline-flex; align-items: center; justify-content: center; width: 1rem; height: 1rem;
  border: 0; border-radius: 2px; padding: 0; background: none; color: inherit; font: inherit; font-size: .875rem;
  line-height: 1; cursor: pointer; }
.run-box-remove:hover, .run-box-remove:focus-visible { background: rgb(0 0 0 / .12); outline: none; }
/* The boxes of the message being written, as chips above its text. */
.run-box-chips { display: flex; flex-wrap: wrap; gap: .375rem; padding: .5rem .5rem 0; }
.run-box-chips[hidden] { display: none; }
.run-box-chip { display: inline-flex; align-items: center; border-radius: var(--radius); background: var(--background);
  box-shadow: 0 0 0 1px var(--border); }
.run-box-chip.is-lit { box-shadow: 0 0 0 2px #ffd400; }
.run-box-chip-show { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .5rem .25rem .25rem; border: 0;
  background: none; font: inherit; color: var(--foreground); text-align: left; cursor: pointer; }
.run-box-chip-show img { width: 2rem; height: 2rem; object-fit: cover; border-radius: calc(var(--radius) - 1px); display: block; }
.run-box-chip-words { display: flex; flex-direction: column; font-size: var(--text-xs); line-height: 1.3; }
.run-box-chip-words strong { font-weight: var(--font-weight-medium); }
.run-box-chip-remove { align-self: stretch; border: 0; padding: 0 .5rem; background: none; font: inherit; color: var(--foreground);
  cursor: pointer; }
/* Each [Box n] in the text as a pill: a copy of the text under the
   textarea, the same size and place, clear but for the pills. */
.run-thread-foot [data-slot=prompt-bar-controls] { position: relative; }
.run-box-mirror { position: absolute; margin: 0; pointer-events: none; overflow: hidden; color: var(--foreground);
  white-space: pre-wrap; overflow-wrap: break-word; border-style: solid; border-color: transparent; }
.run-box-mirror[hidden] { display: none; }
/* A pill is a soft tint of the yellow the box has on the slide, with no
   ring: a ring and a strong fill read as a warning, and in dark turned
   the fill olive. Its brackets are clear and make its padding. */
.run-box-token, .run-box-pill { --box-pill-fill: rgb(255 212 0 / .22); --box-pill-fill-strong: rgb(255 212 0 / .4);
  --box-pill-text: rgb(122 92 0); }
html.dark .run-box-token, html.dark .run-box-pill { --box-pill-fill: rgb(255 212 0 / .12);
  --box-pill-fill-strong: rgb(255 212 0 / .24); --box-pill-text: rgb(255 226 122); }
.run-box-token { color: var(--box-pill-text); background: var(--box-pill-fill); border-radius: 4px; }
.run-box-token-bracket { color: transparent; }
.run-thread-foot [data-slot=prompt-bar-input].has-box-tokens { position: relative; z-index: 1; background: transparent;
  color: transparent; caret-color: var(--foreground); }
/* A box one Backspace has marked, to go with the next: its pill stronger,
   its chip ringed, its outline filled. */
.run-box-token.is-armed { background: var(--box-pill-fill-strong); }
.run-box-chip.is-armed { box-shadow: 0 0 0 2px #ffd400; }
/* A sent message's boxes: each [Box n] a pill that shows the box on the
   slide, and under the words the pictures the model was shown. */
.run-box-pill { display: inline; margin: 0 .125rem; padding: 0 .3rem; border: 0; border-radius: 4px;
  background: var(--box-pill-fill); font: inherit; font-weight: var(--font-weight-medium); color: var(--box-pill-text);
  cursor: pointer; }
.run-box-pill:hover, .run-box-pill:focus-visible, .run-box-pill.is-lit { background: var(--box-pill-fill-strong); outline: none; }
/* Another slide of the study a message points at, @name from the @ menu:
   a grey pill, so it is not taken for a box, which is yellow as on the
   slide. */
/* A name too long for its line goes on to the next: each line's piece is
   a pill of its own, round at both ends. Its padding is a ring at its sides
   alone, which takes no room in the line: one above and below covered the
   underscores of the line before. */
.run-slide-token { color: var(--foreground); background: var(--accent); border-radius: 3px;
  box-shadow: -3px 0 0 var(--accent), 3px 0 0 var(--accent);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.run-slide-pill { padding: 0 .25rem; border-radius: 4px; background: var(--accent);
  font-weight: var(--font-weight-medium); color: var(--foreground);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.analysis-turn-message-pictures { display: flex; flex-wrap: wrap; gap: .375rem; flex-basis: 100%; }
.analysis-turn-message-pictures img { height: 4.5rem; width: auto; border-radius: var(--radius); cursor: zoom-in; }
/* Pictures a step saved for the person (save_picture_for_the_person), under
   the turn's rows and outside its fold: each with its caption, and a link
   that downloads it under its file name. */
.analysis-pictures-for-the-person { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: .75rem; margin: .5rem 0 .75rem; }
/* A picture alone takes the chat's width: a figure of twelve traces at a
   thumbnail's size could not be read (Vivien, 2026-11-29). */
.analysis-pictures-for-the-person:has(> :only-child) { grid-template-columns: 1fr; }
.analysis-picture-for-the-person > a { display: block; cursor: zoom-in; }
.analysis-picture-for-the-person { margin: 0; display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.analysis-picture-for-the-person img { display: block; width: 100%; height: auto; border: 1px solid var(--border);
  border-radius: var(--radius); }
.analysis-picture-for-the-person figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: .125rem;
  font-size: var(--text-xs); color: var(--foreground); }
.analysis-picture-download { display: inline-flex; align-items: center; gap: .25rem; color: var(--foreground);
  text-decoration: underline; text-underline-offset: 2px; }
.analysis-picture-download svg { width: .875rem; height: .875rem; }
/* What the last change did: each number says what it was. The layer it
   stood on before is drawn faded under the new one by the viewer. */
.run-result-was { margin-left: .5rem; font-size: var(--text-xs); color: var(--foreground);
  padding: 0 .375rem; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--border); }
.run-results-undo { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-top: .75rem; }
/* Where a chat saved numbers: one line in the chat, pressed to open them
   on the Results tab. */
.run-result-line { display: flex; align-items: center; gap: .625rem; width: 100%; margin: .375rem 0; padding: .625rem .75rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--background); color: var(--foreground);
  font: inherit; text-align: left; cursor: pointer; }
.run-result-line:hover { background: var(--muted); }
.run-result-line:focus-visible { border-color: var(--foreground); outline: none; }
.run-result-line > svg { width: 1rem; height: 1rem; flex-shrink: 0; }
/* The card's words keep their width; in a narrow sidebar the note beside
   them wraps under them, rather than the words breaking. */
.run-result-line-words { flex: 0 1 auto; min-width: min-content; display: flex; flex-direction: column; gap: .125rem; }
/* The Results tab: the slide's numbers, each group under where it came from. */
.run-results { display: flex; flex-direction: column; gap: 1.75rem; }
.run-results-group { display: flex; flex-direction: column; gap: .5rem; border-radius: var(--radius); }
.run-results-group-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem;
  margin-bottom: .5rem; }
.run-results-label { margin: 0; color: var(--foreground); text-decoration: none; }
a.run-results-label:hover { text-decoration: underline; text-underline-offset: 2px; }
.run-results-exports { display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem; margin-top: .25rem; }
.run-thread-scroll .run-results-exports { font-size: var(--run-small); }
.study-findings-exports { margin-top: 1rem; }
.run-results-exports-label { color: var(--muted-foreground); }
/* Undo, a quiet line of words with its arrow, its note under the pointer. */
.run-results-undo-button { display: inline-flex; align-items: center; gap: .375rem; height: 1.75rem; margin-left: -.375rem;
  padding: 0 .375rem; border: 0; border-radius: var(--control-radius); background: none; color: var(--foreground);
  font: inherit; cursor: pointer; }
.run-results-undo-button:hover, .run-results-undo-button:focus-visible { background: var(--accent); outline: none; }
.run-results-undo-button svg { width: .875rem; height: .875rem; }
.run-results-exports form { margin: 0; }
.run-results-flags { display: flex; flex-direction: column; gap: .375rem; margin-top: .5rem; }
/* A finding: what it answers, the answer in words, then its numbers and
   places to check (findings.lisp). One after another down a chat. */
.run-finding { display: flex; flex-direction: column; gap: .375rem; }
.run-finding + .run-finding { margin-top: 1rem; }
.run-finding-title { margin: 0; font-weight: 500; color: var(--foreground); }
.run-finding-words { margin: 0; color: var(--foreground); white-space: pre-wrap; }
.run-chat-about { margin: 0; }
/* The number a line in the chat pointed at, marked for a moment. */
.run-result.is-pointed-at, .run-results-group.is-pointed-at { animation: pointed-at 1.8s ease-out; }
@keyframes pointed-at { from { background: var(--muted); } to { background: transparent; } }

/* The chat's live view, as Vikram chose it on 2026-10-26 (VSQ-344), after
   Vercel's AI Elements and Claude Code: what you asked on the right; each
   turn's steps on a quiet rail, the one at work turning a ring; the
   model's newest words fading in; a status line at the foot saying what
   is happening; and on the Results tab, each number large. */
/* What a person asked hugs its words, at the right, as a reply in a
   messaging app does: a short question was a bar across the chat. */
.run-message-you { align-self: flex-end; width: fit-content; max-width: 85%; padding: .625rem .875rem; }
.run-message-you > .run-message-who { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; }
/* What a person said later in the chat, on the right as their request is,
   with who and when above it in small words. */
.analysis-turn-message { align-self: flex-end; max-width: 85%; display: flex; flex-direction: column; align-items: stretch;
  gap: .25rem; margin: .5rem 0; padding: .625rem .875rem; border-radius: var(--control-radius); background: var(--muted); }
.analysis-turn-message-who { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--muted-foreground); }
.analysis-turn-message-state { color: var(--foreground); }
/* An older turn folds its work to one quiet line, what it did, under
   what it was for. */
.analysis-turn [data-slot=tool-chips-toggle] { max-width: 100%; color: var(--foreground); }
/* The kit's strip of files a run changed, which a turn never fills: left
   showing, it drew a rule under the open turn. */
.analysis-turn [data-slot=tool-chips-diffs] { display: none; }
/* One arrow for every turn's fold: the same size, colour and gap, so
   their lines start together. */
.analysis-turn [data-slot=tool-chips-toggle-chevron] { width: .75rem; height: .75rem; flex-shrink: 0; color: var(--muted-foreground); }
.analysis-turn [data-slot=tool-chips-toggle] { gap: .375rem; }
.analysis-turn [data-slot=tool-chips-toggle-text] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analysis-turn [data-slot=tool-chips-toggle]:hover { color: var(--foreground); }
/* A turn's steps hang on a thin rail through their marks: a tick when
   done, a ring turning while at work, a cross when it failed. */
.analysis-turn [data-slot=tool-chips-rows] { position: relative; }
.analysis-turn [data-slot=tool-chips-rows]::before { content: ""; position: absolute; left: calc(.5rem - .5px);
  top: 1rem; bottom: 1rem; width: 1px; background: var(--border); }
/* One step has nothing to join: its rail showed as a stray tick under its
   mark. */
.analysis-turn [data-slot=tool-chips-rows]:has(> :only-child)::before { display: none; }
.analysis-turn [data-slot=tool-chips-row-glyphs] { z-index: 1; border-radius: 999px; background: var(--background); }
/* A step's name, and under it in small words what it was about. */
.analysis-turn [data-slot=tool-chips-row-button] { height: auto; min-height: 2rem; flex-wrap: wrap; row-gap: 0;
  padding-block: .3125rem; text-align: left; }
.analysis-turn [data-slot=tool-chips-row-label] { flex-shrink: 1; min-width: 0; }
.analysis-turn [data-slot=tool-chips-row-chip],
.analysis-turn [data-slot=tool-chips-row-button]:hover [data-slot=tool-chips-row-chip] {
  display: block; flex: 1 0 100%; height: auto; padding: 0 0 0 1.5rem; background: none; box-shadow: none;
  color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analysis-turn [data-slot=tool-chips-row-chip]:empty { display: none; }
/* The step at work turns a ring where its mark was. */
.analysis-turn [data-slot=tool-chips-row][data-busy] [data-slot=tool-chips-row-glyphs] > svg { visibility: hidden; }
.analysis-turn [data-slot=tool-chips-row][data-busy] [data-slot=tool-chips-row-glyphs]::after { content: "";
  position: absolute; inset: .125rem; border-radius: 999px; border: 1.75px solid var(--border);
  border-top-color: var(--foreground); animation: run-ring-turns .9s linear infinite; }
@keyframes run-ring-turns { to { transform: rotate(360deg); } }
.analysis-turn [data-slot=tool-chips-row][data-tone=refused] [data-slot=tool-chips-row-glyphs] { color: var(--badge-warn); }
.analysis-turn [data-slot=tool-chips-row][data-tone=failed] [data-slot=tool-chips-row-glyphs] { color: var(--destructive); }
/* The thought as it is written: its newest lines, faded at the top; read
   whole once it is done, folded to one word. */
.analysis-turn [id$="-thought"] [data-slot=tool-chips-detail-lines] { color: var(--muted-foreground); }
.analysis-turn [id$="-thought"][data-busy] [data-slot=tool-chips-detail-lines] { max-height: 4.5em; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 1.5em); mask-image: linear-gradient(to bottom, transparent 0, #000 1.5em); }
.analysis-turn [id$="-thought"] [data-slot=tool-chips-row-label] { color: var(--muted-foreground); }
/* How far a step at work has got (chat-turns.lisp, %STEP-PROGRESS-HTML-OR-NIL):
   a thin bar, then the count and the time left in the row's own type. */
.run-step-progress { margin: .375rem 0 .5rem; }
.run-step-progress-bar { height: .25rem; border-radius: .125rem; background: var(--muted); overflow: hidden; }
.run-step-progress-bar > span { display: block; height: 100%; border-radius: .125rem; background: var(--foreground);
  transition: width .6s ease-out; }
.run-step-progress-words, .run-step-progress-quiet { margin: .375rem 0 0; font-size: .8125rem; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .run-step-progress-bar > span { transition: none; } }
/* What the code was and what it printed, in one grey box. */
.code-step-code-body { padding: .625rem .75rem; border-radius: var(--radius); background: var(--muted); }
.run-thread-scroll .code-step-label { margin: .25rem 0 0; font-size: var(--run-small); color: var(--muted-foreground); }
.code-step-code-body .code-step-text { padding: 0; background: none; }
/* The model's question: the one card in the chat to act on, in blue. */
#analysis-question { border-color: color-mix(in oklab, var(--secondary) 45%, var(--border));
  background: color-mix(in oklab, var(--secondary) 7%, var(--background)); }
/* How the run stands, just above the prompt bar, outside the scrolling
   chat; with Stop while it works. */
.run-status-slot { flex-shrink: 0; padding: .25rem 1.25rem 0; background: var(--background); font-size: var(--text-sm); }
.run-status-slot:empty { display: none; }
.run-status-line { display: flex; align-items: center; gap: .5rem; min-height: 1.75rem; color: var(--muted-foreground); }
.run-status-line > svg { width: .875rem; height: .875rem; flex-shrink: 0; }
.run-status-line[data-state=waiting] { color: var(--secondary); }
.run-status-stop { margin: 0 0 0 auto; }
.run-status-stop-button { display: inline-flex; align-items: center; gap: .375rem; height: 1.625rem; padding: 0 .625rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--background); color: var(--foreground);
  font: inherit; font-size: var(--text-xs); cursor: pointer; }
.run-status-stop-button:hover { background: var(--muted); }
.run-status-stop-button svg { width: .625rem; height: .625rem; fill: currentColor; }
/* Back to the newest, when you have scrolled up (run-page.js). */
.run-jump-to-latest { position: sticky; bottom: .75rem; z-index: 3; display: flex; align-items: center; gap: .375rem;
  margin: .5rem auto 0; padding: .25rem .75rem; border: 1px solid var(--border); border-radius: 999px;
  background: var(--background); color: var(--foreground); font: inherit; font-size: var(--text-xs); cursor: pointer;
  box-shadow: 0 2px 8px rgb(0 0 0 / .08); }
.run-jump-to-latest[hidden] { display: none; }
.run-jump-to-latest svg { width: .75rem; height: .75rem; }
/* Where a chat saved numbers: a small card of up to three of them, each
   large, pressed to open the rest on the Results tab. */
.run-result-line { flex-direction: column; align-items: stretch; gap: .75rem; padding: .875rem 1rem; }
.run-result-line-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem .75rem; }
.run-result-line-numbers { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .75rem; }
.run-result-line-number { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
/* A finding said anew: its title, then the start of its words, cut after
   three lines; the whole is on the Results tab. */
.run-result-line-findings { display: flex; flex-direction: column; gap: .5rem; }
.run-result-line-finding { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.run-result-line-finding-words { color: var(--foreground); display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.run-result-line-name, .run-result-line-was, .run-result-line-note, .run-result-line-more { color: var(--muted-foreground); }
.run-thread-scroll .run-result-line-value { font-size: clamp(1.125rem, 7cqi, 1.5rem); font-weight: var(--font-weight-medium); letter-spacing: -.01em;
  line-height: 1.2; font-variant-numeric: tabular-nums; }
.run-result-line-more { display: flex; align-items: center; gap: .375rem; }
.run-result-line .run-result-line-more > svg { width: .75rem; height: .75rem; }
/* The Results tab: the numbers in a grid, each large with its name over
   it and what it was under it; a table across the width; how each was
   measured folded at the end. */
.run-thread-scroll .run-result-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
  gap: 1rem .75rem; border-top: 0; }
.run-result { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .125rem;
  padding: 0; border-bottom: 0; min-width: 0; }
.run-result.is-table { grid-column: 1 / -1; }
.run-thread-scroll .run-result > .run-result-name { color: var(--muted-foreground); }
/* Two side by side, each number at the foot of its cell, so a name on two
   lines does not drop its number below its neighbour's. */
.run-thread-scroll .run-result > .run-result-value { margin-top: auto; }
.run-thread-scroll .run-result > .run-result-value { font-size: clamp(1.125rem, 7cqi, 1.5rem); font-weight: var(--font-weight-medium);
  letter-spacing: -.01em; line-height: 1.25; }
.run-thread-scroll .run-result > .run-result-value > .run-result-was { display: block; margin: .125rem 0 0; padding: 0;
  box-shadow: none; font-weight: 400; letter-spacing: 0; line-height: 1.5; color: var(--muted-foreground); }
.run-thread-scroll .run-result-table th { font-size: var(--run-small); color: var(--muted-foreground); }
.run-result-table th, .run-result-table td { padding: .375rem .75rem .375rem 0; border-bottom: 1px solid var(--border); }
.run-result-table .is-number { text-align: right; }
.run-result-table tr > :last-child { padding-right: 0; }
.run-results-how { margin-top: .75rem; color: var(--muted-foreground); }
.run-results-how > summary { width: fit-content; cursor: pointer; list-style: none; display: flex; align-items: center; gap: .5rem; }
.run-results-how > summary::-webkit-details-marker { display: none; }
/* The same arrow as a flag's, turned down when open. */
.run-results-how > summary::before { content: ""; width: .35rem; height: .35rem; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 150ms; }
.run-results-how[open] > summary::before { transform: rotate(45deg); }
.run-results-how > p { margin: .5rem 0 0; }
.run-results-how > dl { display: grid; gap: .125rem; margin: .5rem 0 0; }
.run-results-how dt { color: var(--foreground); }
.run-results-how dd { margin: 0 0 .5rem; }
@media (prefers-reduced-motion: reduce) {
  .analysis-turn [data-slot=tool-chips-row][data-busy] [data-slot=tool-chips-row-glyphs]::after { animation: none; } }
/* The step that measured a number: plain words in the text colour, a
   link because it opens that step in the chat (2026-11-14). */
.run-result-step { width: fit-content; font-size: var(--text-xs); color: var(--foreground);
  text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 2px; }
.run-result-step:hover { text-decoration-color: currentColor; }
.analysis-turn [data-slot=tool-chips-row].is-pointed-at { animation: pointed-at 1.8s ease-out; }
@media (prefers-reduced-motion: reduce) { .run-result.is-pointed-at, .run-results-group.is-pointed-at,
  .analysis-turn [data-slot=tool-chips-row].is-pointed-at { animation: none; } }

/* The pages a person reads before they are anyone here (LAB-GATE-PAGE):
   asking for access, an invitation's link, and being turned away. No
   rail, one narrow column. */
.gate { max-width: 32rem; margin: 3rem auto; padding: 0 1rem; display: flex; flex-direction: column; gap: 1rem; }
.gate h1 { margin: 0; font-size: 1.25rem; font-weight: var(--font-weight-medium); }
.gate p { margin: 0; color: var(--foreground); font-size: var(--text-sm); line-height: 1.55; }
.gate a { color: var(--foreground); text-decoration: underline; text-underline-offset: .15em; }
.gate-lockup { display: block; align-self: flex-start; width: auto; height: 1.5rem; margin: 0 0 2rem; }
.gate-ways { display: flex; flex-direction: column; gap: .5rem; }
.gate .gate-ways a { text-decoration: none; }
.gate .gate-ways a[data-variant="default"] { color: var(--primary-foreground); }
/* A gate with the comet beside it (LAB-GATE-PAGE's WITH-COMET-COLUMN):
   the form down the left half, the picture filling the right. On a wide
   screen the page is exactly the window: the picture stands still and
   only the form's half scrolls. The half is the scroller, so the
   scrollbar sits at its edge, and the padding centres the column. On a
   narrow screen only the form shows, and the page scrolls as usual. */
.gate-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: 100svh; overflow: hidden; }
.gate-split > .gate { max-width: none; height: 100svh; margin: 0; padding: 1.5rem max(1.5rem, calc((100% - 29rem) / 2)) 0; box-sizing: border-box; overflow-y: auto; }
.gate-split .gate-lockup { margin: 0 0 3rem; }
.gate-aside { height: 100svh; overflow: hidden; }
.gate-aside img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 80% 45%; }
@media (max-width: 48rem) {
  .gate-split { grid-template-columns: 1fr; height: auto; overflow: visible; }
  .gate-split > .gate { height: auto; overflow: visible; }
  .gate-aside { display: none; } }

/* An address and a role in one row: the People page's invite, and the
   staff page's. The input is as tall as the small picker and the small
   button beside it, 8 steps of --spacing, rather than the height its
   padding happened to give. */
.invite-form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; }
.invite-input { font: inherit; font-size: var(--text-sm); box-sizing: border-box; height: calc(var(--spacing) * 8);
  padding: 0 .5rem; border: 1px solid var(--input);
  border-radius: var(--radius); background: var(--background); color: var(--foreground); min-width: 14rem; }
.invite-input:focus-visible { outline: none; border-color: var(--muted-foreground); }

/* The rail's line where the teams would be, for a person on none. A
   hint, so faint is allowed. */
.rail-note { margin: 2px 5px; font-size: var(--text-xs); line-height: 1.4; color: var(--muted-foreground); }
html.sidebar-collapsed .rail-note { display: none; }

/* At the top of Settings while staff visit a lab: which lab, and Leave. */
.staff-visit-bar { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; padding: .375rem 0 .625rem; margin-bottom: 1.5rem; font-size: var(--text-sm);
  color: var(--foreground); border-bottom: 2px solid var(--secondary); }
.staff-visit-bar form { margin: 0; }



