/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
@layer properties;
@layer base, components;
:root, :host {
  --font-sans: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
    'Noto Color Emoji';
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
    monospace;
  --color-black: #000;
  --color-white: #fff;
  --spacing: 0.25rem;
  --container-sm: 24rem;
  --container-md: 28rem;
  --container-lg: 32rem;
  --container-xl: 36rem;
  --container-2xl: 42rem;
  --container-3xl: 48rem;
  --container-4xl: 56rem;
  --container-5xl: 64rem;
  --container-6xl: 72rem;
  --container-7xl: 80rem;
  --text-xs: var(--type-caption-size);
  --text-xs--line-height: var(--type-caption-leading);
  --text-sm: var(--type-body-size);
  --text-sm--line-height: var(--type-body-leading);
  --text-base: 1rem;
  --text-base--line-height: calc(1.5 / 1);
  --text-lg: 1.125rem;
  --text-lg--line-height: calc(1.75 / 1.125);
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --tracking-tight: -0.025em;
  --tracking-wide: 0.025em;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-relaxed: 1.625;
  --radius-md: var(--radius-control);
  --radius-lg: var(--radius-control);
  --radius-xl: var(--radius-card);
  --radius-2xl: var(--radius-card);
  --radius-3xl: var(--radius-card);
  --ease-in: var(--ease-exit);
  --ease-out: var(--ease-enter);
  --ease-in-out: var(--ease-move);
  --animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  --blur-sm: 8px;
  --blur-md: 12px;
  --blur-2xl: 40px;
  --aspect-video: 16 / 9;
  --default-transition-duration: var(--motion-fast);
  --default-transition-timing-function: var(--ease-snap);
  --default-font-family: var(--font-sans);
  --default-mono-font-family: var(--font-mono);
  --color-background: var(--glass-bg-primary);
  --color-foreground: var(--text-primary);
  --color-popover: var(--glass-bg-popover);
  --color-popover-foreground: var(--text-primary);
  --color-card: var(--bg-surface);
  --color-card-foreground: var(--text-primary);
  --color-accent-foreground: var(--text-primary);
  --color-muted: var(--glass-bg-subtle);
  --color-muted-foreground: var(--text-secondary);
  --color-input: var(--border-secondary);
  --color-border: var(--color-input);
  --color-primary: var(--button-primary-bg);
  --color-primary-foreground: var(--button-primary-text);
  --color-accent: var(--glass-bg-hover);
  --color-ring: var(--focus-ring-color);
  --color-destructive: var(--color-error);
  --color-destructive-foreground: var(--color-error);
  --font-heading: var(--font-primary);
  --text-xs--letter-spacing: var(--type-caption-tracking);
  --text-sm--letter-spacing: var(--type-body-tracking);
  --text-base--letter-spacing: var(--type-body-lg-tracking);
  --text-lg--letter-spacing: var(--type-title-3-tracking);
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji');
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type='button'], [type='reset'], [type='submit']), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden='until-found'])) {
    display: none !important;
  }
}
.\@container {
  container-type: inline-size;
}
.pointer-events-auto {
  pointer-events: auto;
}
.pointer-events-none {
  pointer-events: none;
}
.collapse {
  visibility: collapse;
}
.invisible {
  visibility: hidden;
}
.visible {
  visibility: visible;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border-width: 0;
}
.not-sr-only {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip-path: none;
  white-space: normal;
}
.absolute {
  position: absolute;
}
.fixed {
  position: fixed;
}
.relative {
  position: relative;
}
.static {
  position: static;
}
.sticky {
  position: sticky;
}
.-inset-px {
  inset: -1px;
}
.inset-0 {
  inset: calc(var(--spacing) * 0);
}
.inset-2 {
  inset: calc(var(--spacing) * 2);
}
.inset-x-0 {
  inset-inline: calc(var(--spacing) * 0);
}
.inset-x-2 {
  inset-inline: calc(var(--spacing) * 2);
}
.inset-y-1 {
  inset-block: calc(var(--spacing) * 1);
}
.inset-y-2 {
  inset-block: calc(var(--spacing) * 2);
}
.start {
  inset-inline-start: var(--spacing);
}
.end {
  inset-inline-end: var(--spacing);
}
.top-0 {
  top: calc(var(--spacing) * 0);
}
.top-1\/2 {
  top: calc(1 / 2 * 100%);
}
.top-2 {
  top: calc(var(--spacing) * 2);
}
.top-full {
  top: 100%;
}
.-right-1\.5 {
  right: calc(var(--spacing) * -1.5);
}
.right-0 {
  right: calc(var(--spacing) * 0);
}
.right-2 {
  right: calc(var(--spacing) * 2);
}
.bottom-0 {
  bottom: calc(var(--spacing) * 0);
}
.bottom-16 {
  bottom: calc(var(--spacing) * 16);
}
.-left-1\.5 {
  left: calc(var(--spacing) * -1.5);
}
.left-0 {
  left: calc(var(--spacing) * 0);
}
.isolate {
  isolation: isolate;
}
.isolation-auto {
  isolation: auto;
}
.z-10 {
  z-index: 10;
}
.z-20 {
  z-index: 20;
}
.z-30 {
  z-index: 30;
}
.z-40 {
  z-index: 40;
}
.z-50 {
  z-index: 50;
}
.z-\[10000\] {
  z-index: 10000;
}
.col-start-1 {
  grid-column-start: 1;
}
.row-start-1 {
  grid-row-start: 1;
}
.container {
  width: 100%;
  @media (width >= 40rem) {
    max-width: 40rem;
  }
  @media (width >= 48rem) {
    max-width: 48rem;
  }
  @media (width >= 64rem) {
    max-width: 64rem;
  }
  @media (width >= 80rem) {
    max-width: 80rem;
  }
  @media (width >= 96rem) {
    max-width: 96rem;
  }
}
.m-0 {
  margin: calc(var(--spacing) * 0);
}
.mx-auto {
  margin-inline: auto;
}
.ms-5 {
  margin-inline-start: calc(var(--spacing) * 5);
}
.ms-10 {
  margin-inline-start: calc(var(--spacing) * 10);
}
.ms-15 {
  margin-inline-start: calc(var(--spacing) * 15);
}
.ms-20 {
  margin-inline-start: calc(var(--spacing) * 20);
}
.mt-0\.5 {
  margin-top: calc(var(--spacing) * 0.5);
}
.mt-1 {
  margin-top: calc(var(--spacing) * 1);
}
.mt-2 {
  margin-top: calc(var(--spacing) * 2);
}
.mt-3 {
  margin-top: calc(var(--spacing) * 3);
}
.mt-4 {
  margin-top: calc(var(--spacing) * 4);
}
.mr-1 {
  margin-right: calc(var(--spacing) * 1);
}
.mr-2 {
  margin-right: calc(var(--spacing) * 2);
}
.mb-0\.5 {
  margin-bottom: calc(var(--spacing) * 0.5);
}
.mb-1 {
  margin-bottom: calc(var(--spacing) * 1);
}
.mb-2 {
  margin-bottom: calc(var(--spacing) * 2);
}
.ml-2 {
  margin-left: calc(var(--spacing) * 2);
}
.ml-4 {
  margin-left: calc(var(--spacing) * 4);
}
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.block {
  display: block;
}
.contents {
  display: contents;
}
.flex {
  display: flex;
}
.flow-root {
  display: flow-root;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.inline {
  display: inline;
}
.inline-block {
  display: inline-block;
}
.inline-flex {
  display: inline-flex;
}
.inline-grid {
  display: inline-grid;
}
.inline-table {
  display: inline-table;
}
.list-item {
  display: list-item;
}
.table {
  display: table;
}
.table-caption {
  display: table-caption;
}
.table-cell {
  display: table-cell;
}
.table-column {
  display: table-column;
}
.table-column-group {
  display: table-column-group;
}
.table-footer-group {
  display: table-footer-group;
}
.table-header-group {
  display: table-header-group;
}
.table-row {
  display: table-row;
}
.table-row-group {
  display: table-row-group;
}
.field-sizing-content {
  field-sizing: content;
}
.aspect-square {
  aspect-ratio: 1 / 1;
}
.aspect-video {
  aspect-ratio: var(--aspect-video);
}
.size-2 {
  width: calc(var(--spacing) * 2);
  height: calc(var(--spacing) * 2);
}
.size-3\.5 {
  width: calc(var(--spacing) * 3.5);
  height: calc(var(--spacing) * 3.5);
}
.size-6 {
  width: calc(var(--spacing) * 6);
  height: calc(var(--spacing) * 6);
}
.size-8 {
  width: calc(var(--spacing) * 8);
  height: calc(var(--spacing) * 8);
}
.size-10 {
  width: calc(var(--spacing) * 10);
  height: calc(var(--spacing) * 10);
}
.size-12 {
  width: calc(var(--spacing) * 12);
  height: calc(var(--spacing) * 12);
}
.size-\[var\(--check-size\,1\.125rem\)\] {
  width: var(--check-size,1.125rem);
  height: var(--check-size,1.125rem);
}
.size-full {
  width: 100%;
  height: 100%;
}
.h-\(--popup-height\,auto\) {
  height: var(--popup-height,auto);
}
.h-\(--positioner-height\) {
  height: var(--positioner-height);
}
.h-1 {
  height: calc(var(--spacing) * 1);
}
.h-2 {
  height: calc(var(--spacing) * 2);
}
.h-3 {
  height: calc(var(--spacing) * 3);
}
.h-3\.5 {
  height: calc(var(--spacing) * 3.5);
}
.h-4 {
  height: calc(var(--spacing) * 4);
}
.h-5 {
  height: calc(var(--spacing) * 5);
}
.h-6 {
  height: calc(var(--spacing) * 6);
}
.h-7 {
  height: calc(var(--spacing) * 7);
}
.h-7\.5 {
  height: calc(var(--spacing) * 7.5);
}
.h-8 {
  height: calc(var(--spacing) * 8);
}
.h-8\.5 {
  height: calc(var(--spacing) * 8.5);
}
.h-9 {
  height: calc(var(--spacing) * 9);
}
.h-9\.5 {
  height: calc(var(--spacing) * 9.5);
}
.h-10 {
  height: calc(var(--spacing) * 10);
}
.h-11 {
  height: calc(var(--spacing) * 11);
}
.h-16 {
  height: calc(var(--spacing) * 16);
}
.h-\[18px\] {
  height: 18px;
}
.h-\[var\(--button-height-lg\,2\.75rem\)\] {
  height: var(--button-height-lg,2.75rem);
}
.h-\[var\(--button-height-md\,2\.25rem\)\] {
  height: var(--button-height-md,2.25rem);
}
.h-auto {
  height: auto;
}
.h-full {
  height: 100%;
}
.h-px {
  height: 1px;
}
.max-h-\(--available-height\) {
  max-height: var(--available-height);
}
.max-h-\[48vh\] {
  max-height: 48vh;
}
.max-h-\[70vh\] {
  max-height: 70vh;
}
.max-h-\[min\(24rem\,45vh\)\] {
  max-height: min(24rem, 45vh);
}
.max-h-full {
  max-height: 100%;
}
.min-h-0 {
  min-height: calc(var(--spacing) * 0);
}
.min-h-6 {
  min-height: calc(var(--spacing) * 6);
}
.min-h-11 {
  min-height: calc(var(--spacing) * 11);
}
.min-h-14 {
  min-height: calc(var(--spacing) * 14);
}
.min-h-16\.5 {
  min-height: calc(var(--spacing) * 16.5);
}
.min-h-17\.5 {
  min-height: calc(var(--spacing) * 17.5);
}
.min-h-18\.5 {
  min-height: calc(var(--spacing) * 18.5);
}
.min-h-24 {
  min-height: calc(var(--spacing) * 24);
}
.min-h-32 {
  min-height: calc(var(--spacing) * 32);
}
.min-h-\[200px\] {
  min-height: 200px;
}
.min-h-auto {
  min-height: auto;
}
.w-\(--popup-width\,auto\) {
  width: var(--popup-width,auto);
}
.w-\(--positioner-width\) {
  width: var(--positioner-width);
}
.w-1 {
  width: calc(var(--spacing) * 1);
}
.w-2 {
  width: calc(var(--spacing) * 2);
}
.w-3 {
  width: calc(var(--spacing) * 3);
}
.w-3\.5 {
  width: calc(var(--spacing) * 3.5);
}
.w-4 {
  width: calc(var(--spacing) * 4);
}
.w-5 {
  width: calc(var(--spacing) * 5);
}
.w-6 {
  width: calc(var(--spacing) * 6);
}
.w-7 {
  width: calc(var(--spacing) * 7);
}
.w-11 {
  width: calc(var(--spacing) * 11);
}
.w-12 {
  width: calc(var(--spacing) * 12);
}
.w-20 {
  width: calc(var(--spacing) * 20);
}
.w-32 {
  width: calc(var(--spacing) * 32);
}
.w-\[2px\] {
  width: 2px;
}
.w-\[18px\] {
  width: 18px;
}
.w-\[30px\] {
  width: 30px;
}
.w-auto {
  width: auto;
}
.w-fit {
  width: fit-content;
}
.w-full {
  width: 100%;
}
.w-px {
  width: 1px;
}
.max-w-\(--available-width\) {
  max-width: var(--available-width);
}
.max-w-2xl {
  max-width: var(--container-2xl);
}
.max-w-3xl {
  max-width: var(--container-3xl);
}
.max-w-4xl {
  max-width: var(--container-4xl);
}
.max-w-5xl {
  max-width: var(--container-5xl);
}
.max-w-6xl {
  max-width: var(--container-6xl);
}
.max-w-7xl {
  max-width: var(--container-7xl);
}
.max-w-\[420px\] {
  max-width: 420px;
}
.max-w-full {
  max-width: 100%;
}
.max-w-lg {
  max-width: var(--container-lg);
}
.max-w-md {
  max-width: var(--container-md);
}
.max-w-none {
  max-width: none;
}
.max-w-prose {
  max-width: 65ch;
}
.max-w-sm {
  max-width: var(--container-sm);
}
.max-w-xl {
  max-width: var(--container-xl);
}
.min-w-0 {
  min-width: calc(var(--spacing) * 0);
}
.min-w-4 {
  min-width: calc(var(--spacing) * 4);
}
.min-w-6 {
  min-width: calc(var(--spacing) * 6);
}
.min-w-10 {
  min-width: calc(var(--spacing) * 10);
}
.min-w-\[2px\] {
  min-width: 2px;
}
.min-w-\[140px\] {
  min-width: 140px;
}
.min-w-\[150px\] {
  min-width: 150px;
}
.flex-1 {
  flex: 1;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.shrink {
  flex-shrink: 1;
}
.shrink-0 {
  flex-shrink: 0;
}
.grow {
  flex-grow: 1;
}
.border-collapse {
  border-collapse: collapse;
}
.origin-\(--transform-origin\) {
  transform-origin: var(--transform-origin);
}
.translate-x-\[2\.67px\] {
  --tw-translate-x: 2.67px;
  translate: var(--tw-translate-x) var(--tw-translate-y);
}
.translate-x-px {
  --tw-translate-x: 1px;
  translate: var(--tw-translate-x) var(--tw-translate-y);
}
.-translate-y-1\/2 {
  --tw-translate-y: calc(calc(1 / 2 * 100%) * -1);
  translate: var(--tw-translate-x) var(--tw-translate-y);
}
.translate-none {
  translate: none;
}
.scale-125 {
  --tw-scale-x: 125%;
  --tw-scale-y: 125%;
  --tw-scale-z: 125%;
  scale: var(--tw-scale-x) var(--tw-scale-y);
}
.scale-3d {
  scale: var(--tw-scale-x) var(--tw-scale-y) var(--tw-scale-z);
}
.rotate-180 {
  rotate: 180deg;
}
.transform {
  transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
}
.animate-pulse {
  animation: var(--animate-pulse);
}
.cursor-col-resize {
  cursor: col-resize;
}
.cursor-default {
  cursor: default;
}
.cursor-ew-resize {
  cursor: ew-resize;
}
.cursor-grab {
  cursor: grab;
}
.cursor-nesw-resize {
  cursor: nesw-resize;
}
.cursor-not-allowed {
  cursor: not-allowed;
}
.cursor-ns-resize {
  cursor: ns-resize;
}
.cursor-nwse-resize {
  cursor: nwse-resize;
}
.cursor-pointer {
  cursor: pointer;
}
.touch-pinch-zoom {
  --tw-pinch-zoom: pinch-zoom;
  touch-action: var(--tw-pan-x,) var(--tw-pan-y,) var(--tw-pinch-zoom,);
}
.touch-none {
  touch-action: none;
}
.resize {
  resize: both;
}
.resize-y {
  resize: vertical;
}
.list-decimal {
  list-style-type: decimal;
}
.list-none {
  list-style-type: none;
}
.appearance-none {
  appearance: none;
}
.columns-2 {
  columns: 2;
}
.columns-3 {
  columns: 3;
}
.columns-4 {
  columns: 4;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-cols-\[3fr_7fr\] {
  grid-template-columns: 3fr 7fr;
}
.grid-cols-\[repeat\(auto-fill\,minmax\(min\(280px\,100\%\)\,1fr\)\)\] {
  grid-template-columns: repeat(auto-fill,minmax(min(280px, 100%),1fr));
}
.grid-cols-\[repeat\(auto-fill\,minmax\(min\(320px\,100\%\)\,1fr\)\)\] {
  grid-template-columns: repeat(auto-fill,minmax(min(320px, 100%),1fr));
}
.flex-col {
  flex-direction: column;
}
.flex-row {
  flex-direction: row;
}
.flex-wrap {
  flex-wrap: wrap;
}
.place-items-center {
  place-items: center;
}
.items-baseline {
  align-items: baseline;
}
.items-center {
  align-items: center;
}
.items-end {
  align-items: flex-end;
}
.items-start {
  align-items: flex-start;
}
.items-stretch {
  align-items: stretch;
}
.justify-between {
  justify-content: space-between;
}
.justify-center {
  justify-content: center;
}
.justify-end {
  justify-content: flex-end;
}
.justify-start {
  justify-content: flex-start;
}
.justify-stretch {
  justify-content: stretch;
}
.gap-0 {
  gap: calc(var(--spacing) * 0);
}
.gap-0\.5 {
  gap: calc(var(--spacing) * 0.5);
}
.gap-1 {
  gap: calc(var(--spacing) * 1);
}
.gap-1\.5 {
  gap: calc(var(--spacing) * 1.5);
}
.gap-2 {
  gap: calc(var(--spacing) * 2);
}
.gap-2\.5 {
  gap: calc(var(--spacing) * 2.5);
}
.gap-3 {
  gap: calc(var(--spacing) * 3);
}
.gap-4 {
  gap: calc(var(--spacing) * 4);
}
.gap-5 {
  gap: calc(var(--spacing) * 5);
}
.gap-6 {
  gap: calc(var(--spacing) * 6);
}
.gap-10 {
  gap: calc(var(--spacing) * 10);
}
.gap-15 {
  gap: calc(var(--spacing) * 15);
}
.gap-\[2px\] {
  gap: 2px;
}
.gap-\[14px\] {
  gap: 14px;
}
.space-y-reverse {
  :where(& > :not(:last-child)) {
    --tw-space-y-reverse: 1;
  }
}
.gap-x-6 {
  column-gap: calc(var(--spacing) * 6);
}
.space-x-reverse {
  :where(& > :not(:last-child)) {
    --tw-space-x-reverse: 1;
  }
}
.gap-y-1 {
  row-gap: calc(var(--spacing) * 1);
}
.divide-x {
  :where(& > :not(:last-child)) {
    --tw-divide-x-reverse: 0;
    border-inline-style: var(--tw-border-style);
    border-inline-start-width: calc(1px * var(--tw-divide-x-reverse));
    border-inline-end-width: calc(1px * calc(1 - var(--tw-divide-x-reverse)));
  }
}
.divide-y {
  :where(& > :not(:last-child)) {
    --tw-divide-y-reverse: 0;
    border-bottom-style: var(--tw-border-style);
    border-top-style: var(--tw-border-style);
    border-top-width: calc(1px * var(--tw-divide-y-reverse));
    border-bottom-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
  }
}
.divide-y-reverse {
  :where(& > :not(:last-child)) {
    --tw-divide-y-reverse: 1;
  }
}
.self-start {
  align-self: flex-start;
}
.justify-self-center {
  justify-self: center;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.overflow-auto {
  overflow: auto;
}
.overflow-clip {
  overflow: clip;
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-visible {
  overflow: visible;
}
.overflow-x-auto {
  overflow-x: auto;
}
.overflow-y-auto {
  overflow-y: auto;
}
.overscroll-contain {
  overscroll-behavior: contain;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-2xl {
  border-radius: var(--radius-2xl);
}
.rounded-3xl {
  border-radius: var(--radius-3xl);
}
.rounded-\[inherit\] {
  border-radius: inherit;
}
.rounded-\[var\(--field-radius\,0\.5rem\)\] {
  border-radius: var(--field-radius,0.5rem);
}
.rounded-\[var\(--radius-card\)\] {
  border-radius: var(--radius-card);
}
.rounded-\[var\(--radius-check\,\.25rem\)\] {
  border-radius: var(--radius-check,.25rem);
}
.rounded-\[var\(--radius-control\)\] {
  border-radius: var(--radius-control);
}
.rounded-\[var\(--radius-cta\,var\(--radius-control\)\)\] {
  border-radius: var(--radius-cta,var(--radius-control));
}
.rounded-\[var\(--radius-default\)\] {
  border-radius: var(--radius-default);
}
.rounded-\[var\(--radius-lg\)\] {
  border-radius: var(--radius-lg);
}
.rounded-full {
  border-radius: calc(infinity * 1px);
}
.rounded-lg {
  border-radius: var(--radius-lg);
}
.rounded-md {
  border-radius: var(--radius-md);
}
.rounded-xl {
  border-radius: var(--radius-xl);
}
.rounded-s {
  border-start-start-radius: 0.25rem;
  border-end-start-radius: 0.25rem;
}
.rounded-ss {
  border-start-start-radius: 0.25rem;
}
.rounded-e {
  border-start-end-radius: 0.25rem;
  border-end-end-radius: 0.25rem;
}
.rounded-se {
  border-start-end-radius: 0.25rem;
}
.rounded-ee {
  border-end-end-radius: 0.25rem;
}
.rounded-es {
  border-end-start-radius: 0.25rem;
}
.rounded-t {
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
}
.rounded-l {
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
}
.rounded-tl {
  border-top-left-radius: 0.25rem;
}
.rounded-r {
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}
.rounded-tr {
  border-top-right-radius: 0.25rem;
}
.rounded-b {
  border-bottom-right-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
}
.rounded-br {
  border-bottom-right-radius: 0.25rem;
}
.rounded-bl {
  border-bottom-left-radius: 0.25rem;
}
.border {
  border-style: var(--tw-border-style);
  border-width: 1px;
}
.border-0 {
  border-style: var(--tw-border-style);
  border-width: 0px;
}
.border-\[length\:var\(--button-primary-border-width\,0px\)\] {
  border-style: var(--tw-border-style);
  border-width: var(--button-primary-border-width,0px);
}
.border-\[length\:var\(--button-strong-border-width\,0px\)\] {
  border-style: var(--tw-border-style);
  border-width: var(--button-strong-border-width,0px);
}
.border-x {
  border-inline-style: var(--tw-border-style);
  border-inline-width: 1px;
}
.border-y {
  border-block-style: var(--tw-border-style);
  border-block-width: 1px;
}
.border-s {
  border-inline-start-style: var(--tw-border-style);
  border-inline-start-width: 1px;
}
.border-e {
  border-inline-end-style: var(--tw-border-style);
  border-inline-end-width: 1px;
}
.border-bs {
  border-block-start-style: var(--tw-border-style);
  border-block-start-width: 1px;
}
.border-be {
  border-block-end-style: var(--tw-border-style);
  border-block-end-width: 1px;
}
.border-t {
  border-top-style: var(--tw-border-style);
  border-top-width: 1px;
}
.border-r {
  border-right-style: var(--tw-border-style);
  border-right-width: 1px;
}
.border-b {
  border-bottom-style: var(--tw-border-style);
  border-bottom-width: 1px;
}
.border-l {
  border-left-style: var(--tw-border-style);
  border-left-width: 1px;
}
.border-dashed {
  --tw-border-style: dashed;
  border-style: dashed;
}
.border-none {
  --tw-border-style: none;
  border-style: none;
}
.border-\[color-mix\(in_srgb\,currentColor_12\%\,transparent\)\] {
  border-color: currentColor;
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in srgb,currentColor 12%,transparent);
  }
}
.border-\[color\:var\(--button-primary-border-color\,transparent\)\] {
  border-color: var(--button-primary-border-color,transparent);
}
.border-\[color\:var\(--button-strong-border-color\,transparent\)\] {
  border-color: var(--button-strong-border-color,transparent);
}
.border-\[color\:var\(--field-border\,var\(--color-input\)\)\] {
  border-color: var(--field-border,var(--color-input));
}
.border-\[rgba\(15\,23\,42\,\.1\)\] {
  border-color: rgba(15,23,42,.1);
}
.border-\[rgba\(15\,23\,42\,\.09\)\] {
  border-color: rgba(15,23,42,.09);
}
.border-\[var\(--border-focus\)\] {
  border-color: var(--border-focus);
}
.border-\[var\(--border-primary\)\] {
  border-color: var(--border-primary);
}
.border-\[var\(--border-secondary\)\] {
  border-color: var(--border-secondary);
}
.border-\[var\(--border-strong\)\] {
  border-color: var(--border-strong);
}
.border-accent-purple\/20 {
  border-color: var(--accent-purple);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in oklab, var(--accent-purple) 20%, transparent);
  }
}
.border-input {
  border-color: var(--color-input);
}
.border-status-error\/20 {
  border-color: var(--color-error);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in oklab, var(--color-error) 20%, transparent);
  }
}
.border-status-error\/40 {
  border-color: var(--color-error);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in oklab, var(--color-error) 40%, transparent);
  }
}
.border-transparent {
  border-color: transparent;
}
.border-white\/10 {
  border-color: color-mix(in srgb, #fff 10%, transparent);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in oklab, var(--color-white) 10%, transparent);
  }
}
.border-white\/15 {
  border-color: color-mix(in srgb, #fff 15%, transparent);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in oklab, var(--color-white) 15%, transparent);
  }
}
.bg-\[\#0f172a\] {
  background-color: #0f172a;
}
.bg-\[\#11111198\] {
  background-color: #11111198;
}
.bg-\[var\(--accent-primary\,var\(--border-focus\)\)\] {
  background-color: var(--accent-primary,var(--border-focus));
}
.bg-\[var\(--bg-primary\)\] {
  background-color: var(--bg-primary);
}
.bg-\[var\(--bg-surface\)\] {
  background-color: var(--bg-surface);
}
.bg-\[var\(--black-rich\)\] {
  background-color: var(--black-rich);
}
.bg-\[var\(--border-primary\)\] {
  background-color: var(--border-primary);
}
.bg-\[var\(--button-primary-bg\)\] {
  background-color: var(--button-primary-bg);
}
.bg-\[var\(--button-quiet-bg\,var\(--bg-surface\)\)\] {
  background-color: var(--button-quiet-bg,var(--bg-surface));
}
.bg-\[var\(--button-strong-bg\,var\(--text-primary\)\)\] {
  background-color: var(--button-strong-bg,var(--text-primary));
}
.bg-\[var\(--field-bg\,var\(--color-background\)\)\] {
  background-color: var(--field-bg,var(--color-background));
}
.bg-\[var\(--glass-bg-active\)\] {
  background-color: var(--glass-bg-active);
}
.bg-\[var\(--glass-bg-hover\)\] {
  background-color: var(--glass-bg-hover);
}
.bg-\[var\(--glass-bg-popover\,rgba\(18\,18\,20\,0\.92\)\)\] {
  background-color: var(--glass-bg-popover,rgba(18,18,20,0.92));
}
.bg-\[var\(--glass-bg-subtle\)\] {
  background-color: var(--glass-bg-subtle);
}
.bg-\[var\(--glass-popover-background\,var\(--glass-bg-active\,var\(--glass-bg-subtle\)\)\)\] {
  background-color: var(--glass-popover-background,var(--glass-bg-active,var(--glass-bg-subtle)));
}
.bg-\[var\(--surface\)\] {
  background-color: var(--surface);
}
.bg-\[var\(--surface-primary\)\] {
  background-color: var(--surface-primary);
}
.bg-\[var\(--surface-raised\,var\(--surface\)\)\] {
  background-color: var(--surface-raised,var(--surface));
}
.bg-\[var\(--surface-secondary\)\] {
  background-color: var(--surface-secondary);
}
.bg-\[var\(--surface-tertiary\)\] {
  background-color: var(--surface-tertiary);
}
.bg-accent {
  background-color: var(--color-accent);
}
.bg-accent-purple\/10 {
  background-color: var(--accent-purple);
  @supports (color: color-mix(in lab, red, red)) {
    background-color: color-mix(in oklab, var(--accent-purple) 10%, transparent);
  }
}
.bg-accent-purple\/20 {
  background-color: var(--accent-purple);
  @supports (color: color-mix(in lab, red, red)) {
    background-color: color-mix(in oklab, var(--accent-purple) 20%, transparent);
  }
}
.bg-background {
  background-color: var(--color-background);
}
.bg-black {
  background-color: var(--color-black);
}
.bg-black\/10 {
  background-color: color-mix(in srgb, #000 10%, transparent);
  @supports (color: color-mix(in lab, red, red)) {
    background-color: color-mix(in oklab, var(--color-black) 10%, transparent);
  }
}
.bg-black\/20 {
  background-color: color-mix(in srgb, #000 20%, transparent);
  @supports (color: color-mix(in lab, red, red)) {
    background-color: color-mix(in oklab, var(--color-black) 20%, transparent);
  }
}
.bg-black\/50 {
  background-color: color-mix(in srgb, #000 50%, transparent);
  @supports (color: color-mix(in lab, red, red)) {
    background-color: color-mix(in oklab, var(--color-black) 50%, transparent);
  }
}
.bg-black\/90 {
  background-color: color-mix(in srgb, #000 90%, transparent);
  @supports (color: color-mix(in lab, red, red)) {
    background-color: color-mix(in oklab, var(--color-black) 90%, transparent);
  }
}
.bg-card {
  background-color: var(--color-card);
}
.bg-foreground {
  background-color: var(--color-foreground);
}
.bg-foreground\/20 {
  background-color: var(--color-foreground);
  @supports (color: color-mix(in lab, red, red)) {
    background-color: color-mix(in oklab, var(--color-foreground) 20%, transparent);
  }
}
.bg-input {
  background-color: var(--color-input);
}
.bg-muted {
  background-color: var(--color-muted);
}
.bg-popover {
  background-color: var(--color-popover);
}
.bg-primary-foreground {
  background-color: var(--color-primary-foreground);
}
.bg-status-error\/10 {
  background-color: var(--color-error);
  @supports (color: color-mix(in lab, red, red)) {
    background-color: color-mix(in oklab, var(--color-error) 10%, transparent);
  }
}
.bg-status-success\/20 {
  background-color: var(--color-success);
  @supports (color: color-mix(in lab, red, red)) {
    background-color: color-mix(in oklab, color-mix(in srgb, var(--color-success) 65%, var(--text-primary)) 20%, transparent);
  }
}
.bg-transparent {
  background-color: transparent;
}
.bg-white {
  background-color: var(--color-white);
}
.bg-white\/5 {
  background-color: color-mix(in srgb, #fff 5%, transparent);
  @supports (color: color-mix(in lab, red, red)) {
    background-color: color-mix(in oklab, var(--color-white) 5%, transparent);
  }
}
.bg-white\/10 {
  background-color: color-mix(in srgb, #fff 10%, transparent);
  @supports (color: color-mix(in lab, red, red)) {
    background-color: color-mix(in oklab, var(--color-white) 10%, transparent);
  }
}
.bg-white\/20 {
  background-color: color-mix(in srgb, #fff 20%, transparent);
  @supports (color: color-mix(in lab, red, red)) {
    background-color: color-mix(in oklab, var(--color-white) 20%, transparent);
  }
}
.bg-white\/30 {
  background-color: color-mix(in srgb, #fff 30%, transparent);
  @supports (color: color-mix(in lab, red, red)) {
    background-color: color-mix(in oklab, var(--color-white) 30%, transparent);
  }
}
.bg-gradient-to-t {
  --tw-gradient-position: to top in oklab;
  background-image: linear-gradient(var(--tw-gradient-stops));
}
.bg-\[image\:var\(--button-sheen\)\] {
  background-image: var(--button-sheen);
}
.bg-\[image\:var\(--button-strong-sheen\,none\)\] {
  background-image: var(--button-strong-sheen,none);
}
.from-black\/80 {
  --tw-gradient-from: color-mix(in srgb, #000 80%, transparent);
  @supports (color: color-mix(in lab, red, red)) {
    --tw-gradient-from: color-mix(in oklab, var(--color-black) 80%, transparent);
  }
  --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
}
.to-transparent {
  --tw-gradient-to: transparent;
  --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
}
.bg-repeat {
  background-repeat: repeat;
}
.mask-no-clip {
  mask-clip: no-clip;
}
.mask-repeat {
  mask-repeat: repeat;
}
.fill-current {
  fill: currentcolor;
}
.object-contain {
  object-fit: contain;
}
.object-cover {
  object-fit: cover;
}
.p-0 {
  padding: calc(var(--spacing) * 0);
}
.p-0\.5 {
  padding: calc(var(--spacing) * 0.5);
}
.p-1 {
  padding: calc(var(--spacing) * 1);
}
.p-1\.5 {
  padding: calc(var(--spacing) * 1.5);
}
.p-2 {
  padding: calc(var(--spacing) * 2);
}
.p-3 {
  padding: calc(var(--spacing) * 3);
}
.p-4 {
  padding: calc(var(--spacing) * 4);
}
.p-5 {
  padding: calc(var(--spacing) * 5);
}
.p-6 {
  padding: calc(var(--spacing) * 6);
}
.px-\(--viewport-inline-padding\) {
  padding-inline: var(--viewport-inline-padding);
}
.px-0\.5 {
  padding-inline: calc(var(--spacing) * 0.5);
}
.px-1 {
  padding-inline: calc(var(--spacing) * 1);
}
.px-1\.5 {
  padding-inline: calc(var(--spacing) * 1.5);
}
.px-2 {
  padding-inline: calc(var(--spacing) * 2);
}
.px-2\.5 {
  padding-inline: calc(var(--spacing) * 2.5);
}
.px-3 {
  padding-inline: calc(var(--spacing) * 3);
}
.px-4 {
  padding-inline: calc(var(--spacing) * 4);
}
.px-6 {
  padding-inline: calc(var(--spacing) * 6);
}
.px-\[26px\] {
  padding-inline: 26px;
}
.px-\[calc\(--spacing\(2\.5\)-1px\)\] {
  padding-inline: calc(calc(var(--spacing) * 2.5) - 1px);
}
.px-\[calc\(--spacing\(3\)-1px\)\] {
  padding-inline: calc(calc(var(--spacing) * 3) - 1px);
}
.py-0\.5 {
  padding-block: calc(var(--spacing) * 0.5);
}
.py-1 {
  padding-block: calc(var(--spacing) * 1);
}
.py-1\.5 {
  padding-block: calc(var(--spacing) * 1.5);
}
.py-2 {
  padding-block: calc(var(--spacing) * 2);
}
.py-3 {
  padding-block: calc(var(--spacing) * 3);
}
.py-4 {
  padding-block: calc(var(--spacing) * 4);
}
.py-\[18px\] {
  padding-block: 18px;
}
.py-\[calc\(\(var\(--button-height-cta\,54px\)_-_24px_-_2\*var\(--button-primary-border-width\,0px\)\)\/2\)\] {
  padding-block: calc((var(--button-height-cta,54px) - 24px - 2 * var(--button-primary-border-width,0px)) / 2);
}
.py-\[calc\(--spacing\(1\)-1px\)\] {
  padding-block: calc(calc(var(--spacing) * 1) - 1px);
}
.py-\[calc\(--spacing\(1\.5\)-1px\)\] {
  padding-block: calc(calc(var(--spacing) * 1.5) - 1px);
}
.py-\[calc\(--spacing\(2\)-1px\)\] {
  padding-block: calc(calc(var(--spacing) * 2) - 1px);
}
.py-\[var\(--cta-block-space\,0px\)\] {
  padding-block: var(--cta-block-space,0px);
}
.pt-1 {
  padding-top: calc(var(--spacing) * 1);
}
.pt-2 {
  padding-top: calc(var(--spacing) * 2);
}
.pt-6 {
  padding-top: calc(var(--spacing) * 6);
}
.pt-8 {
  padding-top: calc(var(--spacing) * 8);
}
.pr-9 {
  padding-right: calc(var(--spacing) * 9);
}
.pb-1 {
  padding-bottom: calc(var(--spacing) * 1);
}
.pb-2 {
  padding-bottom: calc(var(--spacing) * 2);
}
.pb-\[18px\] {
  padding-bottom: 18px;
}
.pl-5 {
  padding-left: calc(var(--spacing) * 5);
}
.pl-14 {
  padding-left: calc(var(--spacing) * 14);
}
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.text-start {
  text-align: start;
}
.align-middle {
  vertical-align: middle;
}
.font-\[family-name\:var\(--font-display\,inherit\)\] {
  font-family: var(--font-display,inherit);
}
.font-mono {
  font-family: var(--font-mono);
}
.text-base {
  font-size: var(--text-base);
  line-height: var(--tw-leading, var(--text-base--line-height));
  letter-spacing: var(--tw-tracking, var(--text-base--letter-spacing));
}
.text-lg {
  font-size: var(--text-lg);
  line-height: var(--tw-leading, var(--text-lg--line-height));
  letter-spacing: var(--tw-tracking, var(--text-lg--letter-spacing));
}
.text-sm {
  font-size: var(--text-sm);
  line-height: var(--tw-leading, var(--text-sm--line-height));
  letter-spacing: var(--tw-tracking, var(--text-sm--letter-spacing));
}
.text-xs {
  font-size: var(--text-xs);
  line-height: var(--tw-leading, var(--text-xs--line-height));
  letter-spacing: var(--tw-tracking, var(--text-xs--letter-spacing));
}
.text-sm\/relaxed {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}
.text-\[10px\] {
  font-size: 10px;
}
.text-\[15px\] {
  font-size: 15px;
}
.text-\[length\:var\(--font-size-body\)\] {
  font-size: var(--font-size-body);
}
.text-\[length\:var\(--font-size-body-lg\)\] {
  font-size: var(--font-size-body-lg);
}
.text-\[length\:var\(--font-size-body-xs\)\] {
  font-size: var(--font-size-body-xs);
}
.text-\[length\:var\(--font-size-caption\)\] {
  font-size: var(--font-size-caption);
}
.text-\[length\:var\(--font-size-cta\,var\(--font-size-body-lg\)\)\] {
  font-size: var(--font-size-cta,var(--font-size-body-lg));
}
.text-\[length\:var\(--font-size-display\)\] {
  font-size: var(--font-size-display);
}
.text-\[length\:var\(--font-size-heading\)\] {
  font-size: var(--font-size-heading);
}
.text-\[length\:var\(--font-size-heading-2xl\)\] {
  font-size: var(--font-size-heading-2xl);
}
.text-\[length\:var\(--font-size-heading-lg\)\] {
  font-size: var(--font-size-heading-lg);
}
.text-\[length\:var\(--font-size-heading-xl\)\] {
  font-size: var(--font-size-heading-xl);
}
.text-\[length\:var\(--font-size-heading-xs\)\] {
  font-size: var(--font-size-heading-xs);
}
.text-\[length\:var\(--font-size-label\)\] {
  font-size: var(--font-size-label);
}
.leading-4 {
  --tw-leading: calc(var(--spacing) * 4);
  line-height: calc(var(--spacing) * 4);
}
.leading-6 {
  --tw-leading: calc(var(--spacing) * 6);
  line-height: calc(var(--spacing) * 6);
}
.leading-7 {
  --tw-leading: calc(var(--spacing) * 7);
  line-height: calc(var(--spacing) * 7);
}
.leading-7\.5 {
  --tw-leading: calc(var(--spacing) * 7.5);
  line-height: calc(var(--spacing) * 7.5);
}
.leading-8\.5 {
  --tw-leading: calc(var(--spacing) * 8.5);
  line-height: calc(var(--spacing) * 8.5);
}
.leading-9\.5 {
  --tw-leading: calc(var(--spacing) * 9.5);
  line-height: calc(var(--spacing) * 9.5);
}
.leading-none {
  --tw-leading: 1;
  line-height: 1;
}
.leading-relaxed {
  --tw-leading: var(--leading-relaxed);
  line-height: var(--leading-relaxed);
}
.leading-snug {
  --tw-leading: var(--leading-snug);
  line-height: var(--leading-snug);
}
.leading-tight {
  --tw-leading: var(--leading-tight);
  line-height: var(--leading-tight);
}
.font-\[number\:var\(--button-font-weight\,500\)\] {
  --tw-font-weight: var(--button-font-weight,500);
  font-weight: var(--button-font-weight,500);
}
.font-\[number\:var\(--button-font-weight\,600\)\] {
  --tw-font-weight: var(--button-font-weight,600);
  font-weight: var(--button-font-weight,600);
}
.font-\[number\:var\(--cta-font-weight\,var\(--button-font-weight\,600\)\)\] {
  --tw-font-weight: var(--cta-font-weight,var(--button-font-weight,600));
  font-weight: var(--cta-font-weight,var(--button-font-weight,600));
}
.font-bold {
  --tw-font-weight: var(--font-weight-bold);
  font-weight: var(--font-weight-bold);
}
.font-medium {
  --tw-font-weight: var(--font-weight-medium);
  font-weight: var(--font-weight-medium);
}
.font-semibold {
  --tw-font-weight: var(--font-weight-semibold);
  font-weight: var(--font-weight-semibold);
}
.tracking-\[-0\.02em\] {
  --tw-tracking: -0.02em;
  letter-spacing: -0.02em;
}
.tracking-tight {
  --tw-tracking: var(--tracking-tight);
  letter-spacing: var(--tracking-tight);
}
.tracking-wide {
  --tw-tracking: var(--tracking-wide);
  letter-spacing: var(--tracking-wide);
}
.text-balance {
  text-wrap: balance;
}
.text-pretty {
  text-wrap: pretty;
}
.text-wrap {
  text-wrap: wrap;
}
.break-words {
  overflow-wrap: break-word;
}
.break-all {
  word-break: break-all;
}
.text-clip {
  text-overflow: clip;
}
.text-ellipsis {
  text-overflow: ellipsis;
}
.whitespace-normal {
  white-space: normal;
}
.whitespace-nowrap {
  white-space: nowrap;
}
.whitespace-pre-wrap {
  white-space: pre-wrap;
}
.text-\[var\(--button-primary-text\)\] {
  color: var(--button-primary-text);
}
.text-\[var\(--button-quiet-text\,var\(--text-primary\)\)\] {
  color: var(--button-quiet-text,var(--text-primary));
}
.text-\[var\(--button-strong-text\,var\(--bg-primary\)\)\] {
  color: var(--button-strong-text,var(--bg-primary));
}
.text-\[var\(--text-danger\,\#e5484d\)\] {
  color: var(--text-danger,#e5484d);
}
.text-\[var\(--text-dim\)\] {
  color: var(--text-dim);
}
.text-\[var\(--text-ghost\)\] {
  color: var(--text-ghost);
}
.text-\[var\(--text-muted\)\] {
  color: var(--text-muted);
}
.text-\[var\(--text-on-accent\,var\(--bg-primary\)\)\] {
  color: var(--text-on-accent,var(--bg-primary));
}
.text-\[var\(--text-primary\)\] {
  color: var(--text-primary);
}
.text-\[var\(--text-secondary\)\] {
  color: var(--text-secondary);
}
.text-\[var\(--text-strong\)\] {
  color: var(--text-strong);
}
.text-\[var\(--text-subtle\)\] {
  color: var(--text-subtle);
}
.text-\[var\(--text-tertiary\)\] {
  color: var(--text-tertiary);
}
.text-accent-purple {
  color: var(--accent-purple);
}
.text-destructive-foreground {
  color: var(--color-destructive-foreground);
}
.text-foreground {
  color: var(--color-foreground);
}
.text-muted-foreground {
  color: var(--color-muted-foreground);
}
.text-popover-foreground {
  color: var(--color-popover-foreground);
}
.text-primary-foreground {
  color: var(--color-primary-foreground);
}
.text-status-error {
  color: var(--color-error);
}
.text-status-info {
  color: var(--color-info);
}
.text-status-success {
  color: var(--color-success);
  @supports (color: color-mix(in lab, red, red)) {
    color: color-mix(in srgb, var(--color-success) 65%, var(--text-primary));
  }
}
.text-status-warning {
  color: var(--color-warning);
}
.text-white {
  color: var(--color-white);
}
.text-white\/45 {
  color: color-mix(in srgb, #fff 45%, transparent);
  @supports (color: color-mix(in lab, red, red)) {
    color: color-mix(in oklab, var(--color-white) 45%, transparent);
  }
}
.text-white\/50 {
  color: color-mix(in srgb, #fff 50%, transparent);
  @supports (color: color-mix(in lab, red, red)) {
    color: color-mix(in oklab, var(--color-white) 50%, transparent);
  }
}
.text-white\/70 {
  color: color-mix(in srgb, #fff 70%, transparent);
  @supports (color: color-mix(in lab, red, red)) {
    color: color-mix(in oklab, var(--color-white) 70%, transparent);
  }
}
.capitalize {
  text-transform: capitalize;
}
.lowercase {
  text-transform: lowercase;
}
.normal-case {
  text-transform: none;
}
.uppercase {
  text-transform: uppercase;
}
.italic {
  font-style: italic;
}
.not-italic {
  font-style: normal;
}
.diagonal-fractions {
  --tw-numeric-fraction: diagonal-fractions;
  font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
}
.lining-nums {
  --tw-numeric-figure: lining-nums;
  font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
}
.oldstyle-nums {
  --tw-numeric-figure: oldstyle-nums;
  font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
}
.ordinal {
  --tw-ordinal: ordinal;
  font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
}
.proportional-nums {
  --tw-numeric-spacing: proportional-nums;
  font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
}
.slashed-zero {
  --tw-slashed-zero: slashed-zero;
  font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
}
.stacked-fractions {
  --tw-numeric-fraction: stacked-fractions;
  font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
}
.tabular-nums {
  --tw-numeric-spacing: tabular-nums;
  font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
}
.normal-nums {
  font-variant-numeric: normal;
}
.line-through {
  text-decoration-line: line-through;
}
.no-underline {
  text-decoration-line: none;
}
.overline {
  text-decoration-line: overline;
}
.underline {
  text-decoration-line: underline;
}
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.subpixel-antialiased {
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}
.opacity-0 {
  opacity: 0%;
}
.opacity-40 {
  opacity: 40%;
}
.opacity-50 {
  opacity: 50%;
}
.opacity-60 {
  opacity: 60%;
}
.opacity-80 {
  opacity: 80%;
}
.opacity-90 {
  opacity: 90%;
}
.opacity-100 {
  opacity: 100%;
}
.shadow-lg\/5 {
  --tw-shadow-alpha: 5%;
  --tw-shadow: var(--elevation-2);
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}
.shadow-md\/5 {
  --tw-shadow-alpha: 5%;
  --tw-shadow: var(--elevation-2);
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}
.shadow-xs\/5 {
  --tw-shadow-alpha: 5%;
  --tw-shadow: var(--elevation-1);
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}
.shadow {
  --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}
.shadow-2xl {
  --tw-shadow: var(--elevation-4);
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}
.shadow-\[0_0_10px_rgba\(255\,255\,255\,0\.5\)\] {
  --tw-shadow: 0 0 10px var(--tw-shadow-color, rgba(255,255,255,0.5));
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}
.shadow-\[0_0_20px_rgba\(0\,0\,0\,0\.2\)\] {
  --tw-shadow: 0 0 20px var(--tw-shadow-color, rgba(0,0,0,0.2));
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}
.shadow-\[0_0_20px_rgba\(0\,0\,0\,0\.3\)\] {
  --tw-shadow: 0 0 20px var(--tw-shadow-color, rgba(0,0,0,0.3));
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}
.shadow-\[0_8px_40px_rgba\(0\,0\,0\,0\.6\)\] {
  --tw-shadow: 0 8px 40px var(--tw-shadow-color, rgba(0,0,0,0.6));
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}
.shadow-\[inset_0_0_0_1px_var\(--border-secondary\)\] {
  --tw-shadow: inset 0 0 0 1px var(--tw-shadow-color, var(--border-secondary));
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}
.shadow-\[var\(--button-highlight\)\,var\(--button-shadow\)\] {
  --tw-shadow: var(--button-highlight), var(--button-shadow);
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}
.shadow-\[var\(--button-strong-shadow\,0_0_0_0_transparent\)\] {
  --tw-shadow: var(--button-strong-shadow,0 0 0 0 transparent);
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}
.shadow-\[var\(--field-shadow\,0_1px_2px_0_rgb\(0_0_0\/0\.05\)\)\] {
  --tw-shadow: var(--field-shadow,0 1px 2px 0 rgb(0 0 0/0.05));
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}
.shadow-none {
  --tw-shadow: 0 0 #0000;
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}
.shadow-sm {
  --tw-shadow: var(--elevation-1);
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}
.shadow-xl {
  --tw-shadow: var(--elevation-3);
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}
.shadow-xs {
  --tw-shadow: var(--elevation-1);
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}
.ring-0 {
  --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}
.ring-1 {
  --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}
.ring-2 {
  --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}
.inset-ring {
  --tw-inset-ring-shadow: inset 0 0 0 1px var(--tw-inset-ring-color, currentcolor);
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}
.ring-\[var\(--border-focus\)\] {
  --tw-ring-color: var(--border-focus);
}
.ring-accent-purple\/60 {
  --tw-ring-color: var(--accent-purple);
  @supports (color: color-mix(in lab, red, red)) {
    --tw-ring-color: color-mix(in oklab, var(--accent-purple) 60%, transparent);
  }
}
.ring-ring {
  --tw-ring-color: var(--color-ring);
}
.ring-ring\/24 {
  --tw-ring-color: var(--color-ring);
  @supports (color: color-mix(in lab, red, red)) {
    --tw-ring-color: color-mix(in oklab, var(--color-ring) 24%, transparent);
  }
}
.outline-hidden {
  --tw-outline-style: none;
  outline-style: none;
  @media (forced-colors: active) {
    outline: 2px solid transparent;
    outline-offset: 2px;
  }
}
.outline {
  outline-style: var(--tw-outline-style);
  outline-width: 1px;
}
.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
}
.drop-shadow {
  --tw-drop-shadow-size: drop-shadow(0 1px 2px var(--tw-drop-shadow-color, rgb(0 0 0 / 0.1))) drop-shadow(0 1px 1px var(--tw-drop-shadow-color, rgb(0 0 0 / 0.06)));
  --tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow( 0 1px 1px rgb(0 0 0 / 0.06));
  filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
}
.filter {
  filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
}
.backdrop-blur {
  --tw-backdrop-blur: blur(8px);
  -webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
  backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
}
.backdrop-blur-2xl {
  --tw-backdrop-blur: blur(var(--blur-2xl));
  -webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
  backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
}
.backdrop-blur-md {
  --tw-backdrop-blur: blur(var(--blur-md));
  -webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
  backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
}
.backdrop-blur-sm {
  --tw-backdrop-blur: blur(var(--blur-sm));
  -webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
  backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
}
.backdrop-grayscale {
  --tw-backdrop-grayscale: grayscale(100%);
  -webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
  backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
}
.backdrop-invert {
  --tw-backdrop-invert: invert(100%);
  -webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
  backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
}
.backdrop-saturate-150 {
  --tw-backdrop-saturate: saturate(150%);
  -webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
  backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
}
.backdrop-sepia {
  --tw-backdrop-sepia: sepia(100%);
  -webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
  backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
}
.backdrop-filter {
  -webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
  backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
}
.transition {
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
  transition-duration: var(--tw-duration, var(--default-transition-duration));
}
.transition-\[background-color\,color\,scale\] {
  transition-property: background-color,color,scale;
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
  transition-duration: var(--tw-duration, var(--default-transition-duration));
}
.transition-\[background-color\,transform\] {
  transition-property: background-color,transform;
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
  transition-duration: var(--tw-duration, var(--default-transition-duration));
}
.transition-\[top\,left\,right\,bottom\,transform\] {
  transition-property: top,left,right,bottom,transform;
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
  transition-duration: var(--tw-duration, var(--default-transition-duration));
}
.transition-\[width\,height\,scale\,opacity\] {
  transition-property: width,height,scale,opacity;
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
  transition-duration: var(--tw-duration, var(--default-transition-duration));
}
.transition-all {
  transition-property: all;
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
  transition-duration: var(--tw-duration, var(--default-transition-duration));
}
.transition-colors {
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
  transition-duration: var(--tw-duration, var(--default-transition-duration));
}
.transition-opacity {
  transition-property: opacity;
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
  transition-duration: var(--tw-duration, var(--default-transition-duration));
}
.transition-shadow {
  transition-property: box-shadow;
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
  transition-duration: var(--tw-duration, var(--default-transition-duration));
}
.transition-transform {
  transition-property: transform, translate, scale, rotate;
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
  transition-duration: var(--tw-duration, var(--default-transition-duration));
}
.duration-150 {
  --tw-duration: 150ms;
  transition-duration: 150ms;
}
.duration-300 {
  --tw-duration: 300ms;
  transition-duration: 300ms;
}
.ease-in {
  --tw-ease: var(--ease-in);
  transition-timing-function: var(--ease-in);
}
.ease-in-out {
  --tw-ease: var(--ease-in-out);
  transition-timing-function: var(--ease-in-out);
}
.ease-out {
  --tw-ease: var(--ease-out);
  transition-timing-function: var(--ease-out);
}
.outline-none {
  --tw-outline-style: none;
  outline-style: none;
}
.select-none {
  -webkit-user-select: none;
  user-select: none;
}
.\[--viewport-inline-padding\:--spacing\(2\)\] {
  --viewport-inline-padding: calc(var(--spacing) * 2);
}
.\[--viewport-inline-padding\:--spacing\(4\)\] {
  --viewport-inline-padding: calc(var(--spacing) * 4);
}
.\[corner-shape\:round\] {
  corner-shape: round;
}
.\[transition\:background-color_5000000s_ease-in-out_0s\] {
  transition: background-color 5000000s ease-in-out 0s;
}
.divide-x-reverse {
  :where(& > :not(:last-child)) {
    --tw-divide-x-reverse: 1;
  }
}
.ring-inset {
  --tw-ring-inset: inset;
}
.not-data-transitioning\:overflow-y-auto {
  &:not(*[data-transitioning]) {
    overflow-y: auto;
  }
}
.not-dark\:bg-clip-padding {
  &:not(*:where([data-look-scheme=dark], [data-look-scheme=dark] *)) {
    background-clip: padding-box;
  }
}
.group-hover\/play\:scale-110 {
  @media (hover: hover) {
    &:is(:where(.group\/play):hover *) {
      --tw-scale-x: 110%;
      --tw-scale-y: 110%;
      --tw-scale-z: 110%;
      scale: var(--tw-scale-x) var(--tw-scale-y);
    }
  }
  &:is(:where(.group\/play)[data-touch-hover] *) {
    --tw-scale-x: 110%;
    --tw-scale-y: 110%;
    --tw-scale-z: 110%;
    scale: var(--tw-scale-x) var(--tw-scale-y);
  }
}
.group-hover\/play\:bg-black\/70 {
  @media (hover: hover) {
    &:is(:where(.group\/play):hover *) {
      background-color: color-mix(in srgb, #000 70%, transparent);
      @supports (color: color-mix(in lab, red, red)) {
        background-color: color-mix(in oklab, var(--color-black) 70%, transparent);
      }
    }
  }
  &:is(:where(.group\/play)[data-touch-hover] *) {
    background-color: color-mix(in srgb, #000 70%, transparent);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--color-black) 70%, transparent);
    }
  }
}
.group-focus-visible\:opacity-100 {
  &:is(:where(.group):focus-visible *) {
    opacity: 100%;
  }
}
.group-active\/play\:scale-95 {
  &:is(:where(.group\/play):active *) {
    --tw-scale-x: 95%;
    --tw-scale-y: 95%;
    --tw-scale-z: 95%;
    scale: var(--tw-scale-x) var(--tw-scale-y);
  }
}
.group-data-\[dragging\=true\]\:bg-white\/40 {
  &:is(:where(.group)[data-dragging="true"] *) {
    background-color: color-mix(in srgb, #fff 40%, transparent);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--color-white) 40%, transparent);
    }
  }
}
.file\:me-3 {
  &::file-selector-button {
    margin-inline-end: calc(var(--spacing) * 3);
  }
}
.file\:bg-transparent {
  &::file-selector-button {
    background-color: transparent;
  }
}
.file\:text-sm {
  &::file-selector-button {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
    letter-spacing: var(--tw-tracking, var(--text-sm--letter-spacing));
  }
}
.file\:font-medium {
  &::file-selector-button {
    --tw-font-weight: var(--font-weight-medium);
    font-weight: var(--font-weight-medium);
  }
}
.file\:text-foreground {
  &::file-selector-button {
    color: var(--color-foreground);
  }
}
.placeholder\:text-\[var\(--text-muted\)\] {
  &::placeholder {
    color: var(--text-muted);
  }
}
.placeholder\:text-muted-foreground {
  &::placeholder {
    color: var(--color-muted-foreground);
  }
}
.placeholder\:text-muted-foreground\/72 {
  &::placeholder {
    color: var(--color-muted-foreground);
    @supports (color: color-mix(in lab, red, red)) {
      color: color-mix(in oklab, var(--color-muted-foreground) 72%, transparent);
    }
  }
}
.placeholder\:text-white\/40 {
  &::placeholder {
    color: color-mix(in srgb, #fff 40%, transparent);
    @supports (color: color-mix(in lab, red, red)) {
      color: color-mix(in oklab, var(--color-white) 40%, transparent);
    }
  }
}
.before\:pointer-events-none {
  &::before {
    content: var(--tw-content);
    pointer-events: none;
  }
}
.before\:absolute {
  &::before {
    content: var(--tw-content);
    position: absolute;
  }
}
.before\:inset-0 {
  &::before {
    content: var(--tw-content);
    inset: calc(var(--spacing) * 0);
  }
}
.before\:rounded-\[calc\(var\(--radius-lg\)-1px\)\] {
  &::before {
    content: var(--tw-content);
    border-radius: calc(var(--radius-lg) - 1px);
  }
}
.before\:rounded-\[calc\(var\(--radius-md\)-1px\)\] {
  &::before {
    content: var(--tw-content);
    border-radius: calc(var(--radius-md) - 1px);
  }
}
.before\:rounded-\[inherit\] {
  &::before {
    content: var(--tw-content);
    border-radius: inherit;
  }
}
.before\:shadow-\[0_1px_--theme\(--color-black\/4\%\)\] {
  &::before {
    content: var(--tw-content);
    --tw-shadow: 0 1px var(--tw-shadow-color, color-mix(in srgb, #000 4%, transparent));
    @supports (color: color-mix(in lab, red, red)) {
      --tw-shadow: 0 1px var(--tw-shadow-color, color-mix(in oklab, var(--color-black) 4%, transparent));
    }
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
}
.not-has-disabled\:not-has-focus-visible\:not-has-aria-invalid\:before\:shadow-\[0_1px_--theme\(--color-black\/4\%\)\] {
  &:not(*:has(*:disabled)) {
    &:not(*:has(*:focus-visible)) {
      &:not(*:has(*[aria-invalid="true"])) {
        &::before {
          content: var(--tw-content);
          --tw-shadow: 0 1px var(--tw-shadow-color, color-mix(in srgb, #000 4%, transparent));
          @supports (color: color-mix(in lab, red, red)) {
            --tw-shadow: 0 1px var(--tw-shadow-color, color-mix(in oklab, var(--color-black) 4%, transparent));
          }
          box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
        }
      }
    }
  }
}
.not-data-disabled\:not-data-checked\:not-aria-invalid\:before\:shadow-\[0_1px_--theme\(--color-black\/4\%\)\] {
  &:not(*[data-disabled]) {
    &:not(*[data-checked]) {
      &:not(*[aria-invalid="true"]) {
        &::before {
          content: var(--tw-content);
          --tw-shadow: 0 1px var(--tw-shadow-color, color-mix(in srgb, #000 4%, transparent));
          @supports (color: color-mix(in lab, red, red)) {
            --tw-shadow: 0 1px var(--tw-shadow-color, color-mix(in oklab, var(--color-black) 4%, transparent));
          }
          box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
        }
      }
    }
  }
}
.after\:content-\[attr\(data-button-sizer\)\] {
  &::after {
    --tw-content: attr(data-button-sizer);
    content: var(--tw-content);
  }
}
.first\:border-t-0 {
  &:first-child {
    border-top-style: var(--tw-border-style);
    border-top-width: 0px;
  }
}
.first\:pt-1 {
  &:first-child {
    padding-top: calc(var(--spacing) * 1);
  }
}
.autofill\:\[-webkit-text-fill-color\:var\(--foreground\)\] {
  &:autofill {
    -webkit-text-fill-color: var(--foreground);
  }
}
.hover\:scale-105 {
  @media (hover: hover) {
    &:hover {
      --tw-scale-x: 105%;
      --tw-scale-y: 105%;
      --tw-scale-z: 105%;
      scale: var(--tw-scale-x) var(--tw-scale-y);
    }
  }
  &[data-touch-hover] {
    --tw-scale-x: 105%;
    --tw-scale-y: 105%;
    --tw-scale-z: 105%;
    scale: var(--tw-scale-x) var(--tw-scale-y);
  }
}
.hover\:border-\[var\(--border-strong\)\] {
  @media (hover: hover) {
    &:hover {
      border-color: var(--border-strong);
    }
  }
  &[data-touch-hover] {
    border-color: var(--border-strong);
  }
}
.hover\:border-white\/10 {
  @media (hover: hover) {
    &:hover {
      border-color: color-mix(in srgb, #fff 10%, transparent);
      @supports (color: color-mix(in lab, red, red)) {
        border-color: color-mix(in oklab, var(--color-white) 10%, transparent);
      }
    }
  }
  &[data-touch-hover] {
    border-color: color-mix(in srgb, #fff 10%, transparent);
    @supports (color: color-mix(in lab, red, red)) {
      border-color: color-mix(in oklab, var(--color-white) 10%, transparent);
    }
  }
}
.hover\:bg-\[var\(--button-primary-bg-hover\)\] {
  @media (hover: hover) {
    &:hover {
      background-color: var(--button-primary-bg-hover);
    }
  }
  &[data-touch-hover] {
    background-color: var(--button-primary-bg-hover);
  }
}
.hover\:bg-\[var\(--glass-bg-hover\)\] {
  @media (hover: hover) {
    &:hover {
      background-color: var(--glass-bg-hover);
    }
  }
  &[data-touch-hover] {
    background-color: var(--glass-bg-hover);
  }
}
.hover\:bg-\[var\(--glass-bg-subtle\)\] {
  @media (hover: hover) {
    &:hover {
      background-color: var(--glass-bg-subtle);
    }
  }
  &[data-touch-hover] {
    background-color: var(--glass-bg-subtle);
  }
}
.hover\:bg-accent {
  @media (hover: hover) {
    &:hover {
      background-color: var(--color-accent);
    }
  }
  &[data-touch-hover] {
    background-color: var(--color-accent);
  }
}
.hover\:bg-accent-purple\/30 {
  @media (hover: hover) {
    &:hover {
      background-color: var(--accent-purple);
      @supports (color: color-mix(in lab, red, red)) {
        background-color: color-mix(in oklab, var(--accent-purple) 30%, transparent);
      }
    }
  }
  &[data-touch-hover] {
    background-color: var(--accent-purple);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--accent-purple) 30%, transparent);
    }
  }
}
.hover\:bg-accent\/40 {
  @media (hover: hover) {
    &:hover {
      background-color: var(--color-accent);
      @supports (color: color-mix(in lab, red, red)) {
        background-color: color-mix(in oklab, var(--color-accent) 40%, transparent);
      }
    }
  }
  &[data-touch-hover] {
    background-color: var(--color-accent);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--color-accent) 40%, transparent);
    }
  }
}
.hover\:bg-status-error\/10 {
  @media (hover: hover) {
    &:hover {
      background-color: var(--color-error);
      @supports (color: color-mix(in lab, red, red)) {
        background-color: color-mix(in oklab, var(--color-error) 10%, transparent);
      }
    }
  }
  &[data-touch-hover] {
    background-color: var(--color-error);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--color-error) 10%, transparent);
    }
  }
}
.hover\:bg-status-success\/15 {
  @media (hover: hover) {
    &:hover {
      background-color: var(--color-success);
      @supports (color: color-mix(in lab, red, red)) {
        background-color: color-mix(in oklab, color-mix(in srgb, var(--color-success) 65%, var(--text-primary)) 15%, transparent);
      }
    }
  }
  &[data-touch-hover] {
    background-color: var(--color-success);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, color-mix(in srgb, var(--color-success) 65%, var(--text-primary)) 15%, transparent);
    }
  }
}
.hover\:bg-status-success\/30 {
  @media (hover: hover) {
    &:hover {
      background-color: var(--color-success);
      @supports (color: color-mix(in lab, red, red)) {
        background-color: color-mix(in oklab, color-mix(in srgb, var(--color-success) 65%, var(--text-primary)) 30%, transparent);
      }
    }
  }
  &[data-touch-hover] {
    background-color: var(--color-success);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, color-mix(in srgb, var(--color-success) 65%, var(--text-primary)) 30%, transparent);
    }
  }
}
.hover\:bg-transparent {
  @media (hover: hover) {
    &:hover {
      background-color: transparent;
    }
  }
  &[data-touch-hover] {
    background-color: transparent;
  }
}
.hover\:bg-white\/10 {
  @media (hover: hover) {
    &:hover {
      background-color: color-mix(in srgb, #fff 10%, transparent);
      @supports (color: color-mix(in lab, red, red)) {
        background-color: color-mix(in oklab, var(--color-white) 10%, transparent);
      }
    }
  }
  &[data-touch-hover] {
    background-color: color-mix(in srgb, #fff 10%, transparent);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--color-white) 10%, transparent);
    }
  }
}
.hover\:bg-white\/15 {
  @media (hover: hover) {
    &:hover {
      background-color: color-mix(in srgb, #fff 15%, transparent);
      @supports (color: color-mix(in lab, red, red)) {
        background-color: color-mix(in oklab, var(--color-white) 15%, transparent);
      }
    }
  }
  &[data-touch-hover] {
    background-color: color-mix(in srgb, #fff 15%, transparent);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--color-white) 15%, transparent);
    }
  }
}
.hover\:text-\[var\(--text-primary\)\] {
  @media (hover: hover) {
    &:hover {
      color: var(--text-primary);
    }
  }
  &[data-touch-hover] {
    color: var(--text-primary);
  }
}
.hover\:text-\[var\(--text-strong\)\] {
  @media (hover: hover) {
    &:hover {
      color: var(--text-strong);
    }
  }
  &[data-touch-hover] {
    color: var(--text-strong);
  }
}
.hover\:text-foreground {
  @media (hover: hover) {
    &:hover {
      color: var(--color-foreground);
    }
  }
  &[data-touch-hover] {
    color: var(--color-foreground);
  }
}
.hover\:text-status-success {
  @media (hover: hover) {
    &:hover {
      color: var(--color-success);
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in srgb, var(--color-success) 65%, var(--text-primary));
      }
    }
  }
  &[data-touch-hover] {
    color: var(--color-success);
    @supports (color: color-mix(in lab, red, red)) {
      color: color-mix(in srgb, var(--color-success) 65%, var(--text-primary));
    }
  }
}
.hover\:text-white {
  @media (hover: hover) {
    &:hover {
      color: var(--color-white);
    }
  }
  &[data-touch-hover] {
    color: var(--color-white);
  }
}
.hover\:opacity-90 {
  @media (hover: hover) {
    &:hover {
      opacity: 90%;
    }
  }
  &[data-touch-hover] {
    opacity: 90%;
  }
}
.hover\:opacity-100 {
  @media (hover: hover) {
    &:hover {
      opacity: 100%;
    }
  }
  &[data-touch-hover] {
    opacity: 100%;
  }
}
.focus\:border-\[var\(--border-focus\,var\(--accent-primary\)\)\] {
  &:focus {
    border-color: var(--border-focus,var(--accent-primary));
  }
}
.focus\:border-ring {
  &:focus {
    border-color: var(--color-ring);
  }
}
.focus\:border-white\/30 {
  &:focus {
    border-color: color-mix(in srgb, #fff 30%, transparent);
    @supports (color: color-mix(in lab, red, red)) {
      border-color: color-mix(in oklab, var(--color-white) 30%, transparent);
    }
  }
}
.focus\:bg-white\/10 {
  &:focus {
    background-color: color-mix(in srgb, #fff 10%, transparent);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--color-white) 10%, transparent);
    }
  }
}
.focus\:ring-1 {
  &:focus {
    --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
}
.focus\:ring-accent-purple\/50 {
  &:focus {
    --tw-ring-color: var(--accent-purple);
    @supports (color: color-mix(in lab, red, red)) {
      --tw-ring-color: color-mix(in oklab, var(--accent-purple) 50%, transparent);
    }
  }
}
.focus\:outline-none {
  &:focus {
    --tw-outline-style: none;
    outline-style: none;
  }
}
.focus-visible\:ring-1 {
  &:focus-visible {
    --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
}
.focus-visible\:ring-2 {
  &:focus-visible {
    --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
}
.focus-visible\:ring-\[var\(--border-focus\)\] {
  &:focus-visible {
    --tw-ring-color: var(--border-focus);
  }
}
.focus-visible\:ring-ring {
  &:focus-visible {
    --tw-ring-color: var(--color-ring);
  }
}
.focus-visible\:ring-offset-1 {
  &:focus-visible {
    --tw-ring-offset-width: 1px;
    --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  }
}
.focus-visible\:ring-offset-2 {
  &:focus-visible {
    --tw-ring-offset-width: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  }
}
.focus-visible\:ring-offset-background {
  &:focus-visible {
    --tw-ring-offset-color: var(--color-background);
  }
}
.focus-visible\:outline-2 {
  &:focus-visible {
    outline-style: var(--tw-outline-style);
    outline-width: 2px;
  }
}
.focus-visible\:outline-offset-2 {
  &:focus-visible {
    outline-offset: 2px;
  }
}
.focus-visible\:outline-\[var\(--focus-ring-color\)\] {
  &:focus-visible {
    outline-color: var(--focus-ring-color);
  }
}
.focus-visible\:outline-white {
  &:focus-visible {
    outline-color: var(--color-white);
  }
}
.focus-visible\:outline-solid {
  &:focus-visible {
    --tw-outline-style: solid;
    outline-style: solid;
  }
}
.active\:scale-95 {
  &:active {
    --tw-scale-x: 95%;
    --tw-scale-y: 95%;
    --tw-scale-z: 95%;
    scale: var(--tw-scale-x) var(--tw-scale-y);
  }
}
.active\:scale-\[var\(--button-pressed-scale\)\] {
  &:active {
    scale: var(--button-pressed-scale);
  }
}
.active\:cursor-grabbing {
  &:active {
    cursor: grabbing;
  }
}
.active\:shadow-\[var\(--button-pressed-highlight\)\] {
  &:active {
    --tw-shadow: var(--button-pressed-highlight);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
}
.disabled\:cursor-not-allowed {
  &:disabled {
    cursor: not-allowed;
  }
}
.disabled\:opacity-40 {
  &:disabled {
    opacity: 40%;
  }
}
.not-has-disabled\:has-not-focus-visible\:not-has-aria-invalid\:before\:shadow-\[0_1px_--theme\(--color-black\/4\%\)\] {
  &:not(*:has(*:disabled)) {
    &:has(*:not(*:focus-visible)) {
      &:not(*:has(*[aria-invalid="true"])) {
        &::before {
          content: var(--tw-content);
          --tw-shadow: 0 1px var(--tw-shadow-color, color-mix(in srgb, #000 4%, transparent));
          @supports (color: color-mix(in lab, red, red)) {
            --tw-shadow: 0 1px var(--tw-shadow-color, color-mix(in oklab, var(--color-black) 4%, transparent));
          }
          box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
        }
      }
    }
  }
}
.has-autofill\:bg-foreground\/4 {
  &:has(*:autofill) {
    background-color: var(--color-foreground);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--color-foreground) 4%, transparent);
    }
  }
}
.has-focus-visible\:border-ring {
  &:has(*:focus-visible) {
    border-color: var(--color-ring);
  }
}
.has-focus-visible\:ring-\[3px\] {
  &:has(*:focus-visible) {
    --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
}
.has-disabled\:opacity-64 {
  &:has(*:disabled) {
    opacity: 64%;
  }
}
.has-aria-invalid\:border-destructive\/36 {
  &:has(*[aria-invalid="true"]) {
    border-color: var(--color-destructive);
    @supports (color: color-mix(in lab, red, red)) {
      border-color: color-mix(in oklab, var(--color-destructive) 36%, transparent);
    }
  }
}
.has-focus-visible\:has-aria-invalid\:border-destructive\/64 {
  &:has(*:focus-visible) {
    &:has(*[aria-invalid="true"]) {
      border-color: var(--color-destructive);
      @supports (color: color-mix(in lab, red, red)) {
        border-color: color-mix(in oklab, var(--color-destructive) 64%, transparent);
      }
    }
  }
}
.has-focus-visible\:has-aria-invalid\:ring-destructive\/16 {
  &:has(*:focus-visible) {
    &:has(*[aria-invalid="true"]) {
      --tw-ring-color: var(--color-destructive);
      @supports (color: color-mix(in lab, red, red)) {
        --tw-ring-color: color-mix(in oklab, var(--color-destructive) 16%, transparent);
      }
    }
  }
}
.has-data-\[slot\=calendar\]\:rounded-xl {
  &:has(*[data-slot="calendar"]) {
    border-radius: var(--radius-xl);
  }
}
.has-data-\[slot\=calendar\]\:p-2 {
  &:has(*[data-slot="calendar"]) {
    padding: calc(var(--spacing) * 2);
  }
}
.has-data-\[slot\=calendar\]\:before\:rounded-\[calc\(var\(--radius-xl\)-1px\)\] {
  &:has(*[data-slot="calendar"]) {
    &::before {
      content: var(--tw-content);
      border-radius: calc(var(--radius-xl) - 1px);
    }
  }
}
.has-\[\:disabled\,\:focus-visible\,\[aria-invalid\]\]\:shadow-none {
  &:has(*:is(:disabled,:focus-visible,[aria-invalid])) {
    --tw-shadow: 0 0 #0000;
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
}
.has-\[\[data-checked\]\]\:border-foreground {
  &:has(*:is([data-checked])) {
    border-color: var(--color-foreground);
  }
}
.aria-invalid\:border-destructive\/36 {
  &[aria-invalid="true"] {
    border-color: var(--color-destructive);
    @supports (color: color-mix(in lab, red, red)) {
      border-color: color-mix(in oklab, var(--color-destructive) 36%, transparent);
    }
  }
}
.focus-visible\:aria-invalid\:border-destructive\/64 {
  &:focus-visible {
    &[aria-invalid="true"] {
      border-color: var(--color-destructive);
      @supports (color: color-mix(in lab, red, red)) {
        border-color: color-mix(in oklab, var(--color-destructive) 64%, transparent);
      }
    }
  }
}
.focus-visible\:aria-invalid\:ring-destructive\/48 {
  &:focus-visible {
    &[aria-invalid="true"] {
      --tw-ring-color: var(--color-destructive);
      @supports (color: color-mix(in lab, red, red)) {
        --tw-ring-color: color-mix(in oklab, var(--color-destructive) 48%, transparent);
      }
    }
  }
}
.data-checked\:border-primary {
  &[data-checked] {
    border-color: var(--color-primary);
  }
}
.data-checked\:bg-primary {
  &[data-checked] {
    background-color: var(--color-primary);
  }
}
.\*\*\:data-current\:w-\[calc\(var\(--popup-width\)-2\*var\(--viewport-inline-padding\)-2px\)\] {
  :is(& *) {
    &[data-current] {
      width: calc(var(--popup-width) - 2 * var(--viewport-inline-padding) - 2px);
    }
  }
}
.\*\*\:data-current\:opacity-100 {
  :is(& *) {
    &[data-current] {
      opacity: 100%;
    }
  }
}
.\*\*\:data-current\:transition-opacity {
  :is(& *) {
    &[data-current] {
      transition-property: opacity;
      transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
      transition-duration: var(--tw-duration, var(--default-transition-duration));
    }
  }
}
.data-disabled\:cursor-not-allowed {
  &[data-disabled] {
    cursor: not-allowed;
  }
}
.data-disabled\:opacity-64 {
  &[data-disabled] {
    opacity: 64%;
  }
}
.\*\*\:data-current\:data-ending-style\:opacity-0 {
  :is(& *) {
    &[data-current] {
      &[data-ending-style] {
        opacity: 0%;
      }
    }
  }
}
.data-error\:invisible {
  &[data-error] {
    visibility: hidden;
  }
}
.data-indeterminate\:text-foreground {
  &[data-indeterminate] {
    color: var(--color-foreground);
  }
}
.data-instant\:transition-none {
  &[data-instant] {
    transition-property: none;
  }
}
.data-loading\:invisible {
  &[data-loading] {
    visibility: hidden;
  }
}
.\*\*\:data-previous\:w-\[calc\(var\(--popup-width\)-2\*var\(--viewport-inline-padding\)-2px\)\] {
  :is(& *) {
    &[data-previous] {
      width: calc(var(--popup-width) - 2 * var(--viewport-inline-padding) - 2px);
    }
  }
}
.\*\*\:data-previous\:opacity-100 {
  :is(& *) {
    &[data-previous] {
      opacity: 100%;
    }
  }
}
.\*\*\:data-previous\:transition-opacity {
  :is(& *) {
    &[data-previous] {
      transition-property: opacity;
      transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
      transition-duration: var(--tw-duration, var(--default-transition-duration));
    }
  }
}
.\*\*\:data-previous\:data-ending-style\:opacity-0 {
  :is(& *) {
    &[data-previous] {
      &[data-ending-style] {
        opacity: 0%;
      }
    }
  }
}
.data-starting-style\:scale-98 {
  &[data-starting-style] {
    --tw-scale-x: 98%;
    --tw-scale-y: 98%;
    --tw-scale-z: 98%;
    scale: var(--tw-scale-x) var(--tw-scale-y);
  }
}
.data-starting-style\:opacity-0 {
  &[data-starting-style] {
    opacity: 0%;
  }
}
.\*\*\:data-current\:data-starting-style\:opacity-0 {
  :is(& *) {
    &[data-current] {
      &[data-starting-style] {
        opacity: 0%;
      }
    }
  }
}
.\*\*\:data-previous\:data-starting-style\:opacity-0 {
  :is(& *) {
    &[data-previous] {
      &[data-starting-style] {
        opacity: 0%;
      }
    }
  }
}
.data-unchecked\:hidden {
  &[data-unchecked] {
    display: none;
  }
}
.data-\[work\=done\]\:bg-status-success {
  &[data-work="done"] {
    background-color: var(--color-success);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in srgb, var(--color-success) 65%, var(--text-primary));
    }
  }
}
.data-\[work\=done\]\:text-white {
  &[data-work="done"] {
    color: var(--color-white);
  }
}
.data-\[work\=done\]\:shadow-none {
  &[data-work="done"] {
    --tw-shadow: 0 0 #0000;
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
}
.data-\[work\=error\]\:text-status-error {
  &[data-work="error"] {
    color: var(--color-error);
  }
}
.data-\[work\=pending\]\:cursor-progress {
  &[data-work="pending"] {
    cursor: progress;
  }
}
.data-\[work\=pending\]\:disabled\:opacity-100 {
  &[data-work="pending"] {
    &:disabled {
      opacity: 100%;
    }
  }
}
.motion-reduce\:transition-none {
  @media (prefers-reduced-motion: reduce) {
    transition-property: none;
  }
}
.max-sm\:min-h-19\.5 {
  @media (width < 40rem) {
    min-height: calc(var(--spacing) * 19.5);
  }
}
.max-sm\:min-h-20\.5 {
  @media (width < 40rem) {
    min-height: calc(var(--spacing) * 20.5);
  }
}
.max-sm\:min-h-21\.5 {
  @media (width < 40rem) {
    min-height: calc(var(--spacing) * 21.5);
  }
}
.sm\:block {
  @media (width >= 40rem) {
    display: block;
  }
}
.sm\:size-3 {
  @media (width >= 40rem) {
    width: calc(var(--spacing) * 3);
    height: calc(var(--spacing) * 3);
  }
}
.sm\:h-6 {
  @media (width >= 40rem) {
    height: calc(var(--spacing) * 6);
  }
}
.sm\:h-6\.5 {
  @media (width >= 40rem) {
    height: calc(var(--spacing) * 6.5);
  }
}
.sm\:h-7\.5 {
  @media (width >= 40rem) {
    height: calc(var(--spacing) * 7.5);
  }
}
.sm\:h-8\.5 {
  @media (width >= 40rem) {
    height: calc(var(--spacing) * 8.5);
  }
}
.sm\:w-6 {
  @media (width >= 40rem) {
    width: calc(var(--spacing) * 6);
  }
}
.sm\:grid-cols-2 {
  @media (width >= 40rem) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.sm\:flex-row {
  @media (width >= 40rem) {
    flex-direction: row;
  }
}
.sm\:gap-1 {
  @media (width >= 40rem) {
    gap: calc(var(--spacing) * 1);
  }
}
.sm\:gap-2 {
  @media (width >= 40rem) {
    gap: calc(var(--spacing) * 2);
  }
}
.sm\:p-2 {
  @media (width >= 40rem) {
    padding: calc(var(--spacing) * 2);
  }
}
.sm\:p-5 {
  @media (width >= 40rem) {
    padding: calc(var(--spacing) * 5);
  }
}
.sm\:px-4 {
  @media (width >= 40rem) {
    padding-inline: calc(var(--spacing) * 4);
  }
}
.sm\:text-sm {
  @media (width >= 40rem) {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
    letter-spacing: var(--tw-tracking, var(--text-sm--letter-spacing));
  }
}
.sm\:leading-6\.5 {
  @media (width >= 40rem) {
    --tw-leading: calc(var(--spacing) * 6.5);
    line-height: calc(var(--spacing) * 6.5);
  }
}
.sm\:leading-7\.5 {
  @media (width >= 40rem) {
    --tw-leading: calc(var(--spacing) * 7.5);
    line-height: calc(var(--spacing) * 7.5);
  }
}
.sm\:leading-8\.5 {
  @media (width >= 40rem) {
    --tw-leading: calc(var(--spacing) * 8.5);
    line-height: calc(var(--spacing) * 8.5);
  }
}
.md\:p-12 {
  @media (width >= 48rem) {
    padding: calc(var(--spacing) * 12);
  }
}
.lg\:w-24 {
  @media (width >= 64rem) {
    width: calc(var(--spacing) * 24);
  }
}
.lg\:grid-cols-3 {
  @media (width >= 64rem) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.dark\:bg-input\/32 {
  &:where([data-look-scheme=dark], [data-look-scheme=dark] *) {
    background-color: var(--color-input);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--color-input) 32%, transparent);
    }
  }
}
.dark\:not-data-checked\:bg-input\/32 {
  &:where([data-look-scheme=dark], [data-look-scheme=dark] *) {
    &:not(*[data-checked]) {
      background-color: var(--color-input);
      @supports (color: color-mix(in lab, red, red)) {
        background-color: color-mix(in oklab, var(--color-input) 32%, transparent);
      }
    }
  }
}
.dark\:before\:shadow-\[0_-1px_--theme\(--color-white\/6\%\)\] {
  &:where([data-look-scheme=dark], [data-look-scheme=dark] *) {
    &::before {
      content: var(--tw-content);
      --tw-shadow: 0 -1px var(--tw-shadow-color, color-mix(in srgb, #fff 6%, transparent));
      @supports (color: color-mix(in lab, red, red)) {
        --tw-shadow: 0 -1px var(--tw-shadow-color, color-mix(in oklab, var(--color-white) 6%, transparent));
      }
      box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
    }
  }
}
.dark\:not-has-disabled\:not-has-focus-visible\:not-has-aria-invalid\:before\:shadow-\[0_-1px_--theme\(--color-white\/6\%\)\] {
  &:where([data-look-scheme=dark], [data-look-scheme=dark] *) {
    &:not(*:has(*:disabled)) {
      &:not(*:has(*:focus-visible)) {
        &:not(*:has(*[aria-invalid="true"])) {
          &::before {
            content: var(--tw-content);
            --tw-shadow: 0 -1px var(--tw-shadow-color, color-mix(in srgb, #fff 6%, transparent));
            @supports (color: color-mix(in lab, red, red)) {
              --tw-shadow: 0 -1px var(--tw-shadow-color, color-mix(in oklab, var(--color-white) 6%, transparent));
            }
            box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
          }
        }
      }
    }
  }
}
.dark\:not-data-disabled\:not-data-checked\:not-aria-invalid\:before\:shadow-\[0_-1px_--theme\(--color-white\/6\%\)\] {
  &:where([data-look-scheme=dark], [data-look-scheme=dark] *) {
    &:not(*[data-disabled]) {
      &:not(*[data-checked]) {
        &:not(*[aria-invalid="true"]) {
          &::before {
            content: var(--tw-content);
            --tw-shadow: 0 -1px var(--tw-shadow-color, color-mix(in srgb, #fff 6%, transparent));
            @supports (color: color-mix(in lab, red, red)) {
              --tw-shadow: 0 -1px var(--tw-shadow-color, color-mix(in oklab, var(--color-white) 6%, transparent));
            }
            box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
          }
        }
      }
    }
  }
}
.dark\:not-has-disabled\:has-not-focus-visible\:not-has-aria-invalid\:before\:shadow-\[0_-1px_--theme\(--color-white\/6\%\)\] {
  &:where([data-look-scheme=dark], [data-look-scheme=dark] *) {
    &:not(*:has(*:disabled)) {
      &:has(*:not(*:focus-visible)) {
        &:not(*:has(*[aria-invalid="true"])) {
          &::before {
            content: var(--tw-content);
            --tw-shadow: 0 -1px var(--tw-shadow-color, color-mix(in srgb, #fff 6%, transparent));
            @supports (color: color-mix(in lab, red, red)) {
              --tw-shadow: 0 -1px var(--tw-shadow-color, color-mix(in oklab, var(--color-white) 6%, transparent));
            }
            box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
          }
        }
      }
    }
  }
}
.dark\:has-autofill\:bg-foreground\/8 {
  &:where([data-look-scheme=dark], [data-look-scheme=dark] *) {
    &:has(*:autofill) {
      background-color: var(--color-foreground);
      @supports (color: color-mix(in lab, red, red)) {
        background-color: color-mix(in oklab, var(--color-foreground) 8%, transparent);
      }
    }
  }
}
.dark\:has-aria-invalid\:ring-destructive\/24 {
  &:where([data-look-scheme=dark], [data-look-scheme=dark] *) {
    &:has(*[aria-invalid="true"]) {
      --tw-ring-color: var(--color-destructive);
      @supports (color: color-mix(in lab, red, red)) {
        --tw-ring-color: color-mix(in oklab, var(--color-destructive) 24%, transparent);
      }
    }
  }
}
.dark\:aria-invalid\:ring-destructive\/24 {
  &:where([data-look-scheme=dark], [data-look-scheme=dark] *) {
    &[aria-invalid="true"] {
      --tw-ring-color: var(--color-destructive);
      @supports (color: color-mix(in lab, red, red)) {
        --tw-ring-color: color-mix(in oklab, var(--color-destructive) 24%, transparent);
      }
    }
  }
}
.\[\&_svg\]\:pointer-events-none {
  & svg {
    pointer-events: none;
  }
}
.\[\&_svg\]\:shrink-0 {
  & svg {
    flex-shrink: 0;
  }
}
.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-6 {
  & svg:not([class*='size-']) {
    width: calc(var(--spacing) * 6);
    height: calc(var(--spacing) * 6);
  }
}
.\[\&\:\:-webkit-search-cancel-button\]\:appearance-none {
  &::-webkit-search-cancel-button {
    appearance: none;
  }
}
.\[\&\:\:-webkit-search-decoration\]\:appearance-none {
  &::-webkit-search-decoration {
    appearance: none;
  }
}
.\[\&\:\:-webkit-search-results-button\]\:appearance-none {
  &::-webkit-search-results-button {
    appearance: none;
  }
}
.\[\&\:\:-webkit-search-results-decoration\]\:appearance-none {
  &::-webkit-search-results-decoration {
    appearance: none;
  }
}
.\[\&\:\:-webkit-slider-thumb\]\:h-3 {
  &::-webkit-slider-thumb {
    height: calc(var(--spacing) * 3);
  }
}
.\[\&\:\:-webkit-slider-thumb\]\:w-3 {
  &::-webkit-slider-thumb {
    width: calc(var(--spacing) * 3);
  }
}
.\[\&\:\:-webkit-slider-thumb\]\:cursor-pointer {
  &::-webkit-slider-thumb {
    cursor: pointer;
  }
}
.\[\&\:\:-webkit-slider-thumb\]\:appearance-none {
  &::-webkit-slider-thumb {
    appearance: none;
  }
}
.\[\&\:\:-webkit-slider-thumb\]\:rounded-full {
  &::-webkit-slider-thumb {
    border-radius: calc(infinity * 1px);
  }
}
.\[\&\:\:-webkit-slider-thumb\]\:bg-foreground {
  &::-webkit-slider-thumb {
    background-color: var(--color-foreground);
  }
}
.\[\&\:\:-webkit-slider-thumb\]\:bg-white {
  &::-webkit-slider-thumb {
    background-color: var(--color-white);
  }
}
.\[\[data-disabled\]\,\[data-checked\]\,\[aria-invalid\]\]\:shadow-none {
  &:is([data-disabled],[data-checked],[aria-invalid]) {
    --tw-shadow: 0 0 #0000;
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
}
.\[\&\>a\]\:underline {
  &>a {
    text-decoration-line: underline;
  }
}
.\[\&\>a\]\:underline-offset-4 {
  &>a {
    text-underline-offset: 4px;
  }
}
.\[\&\>a\:hover\]\:text-primary {
  &>a:hover {
    color: var(--color-primary);
  }
}
.\[\@media\(pointer\:coarse\)\]\:min-h-11 {
  @media (pointer:coarse) {
    min-height: calc(var(--spacing) * 11);
  }
}
.\[\@media\(pointer\:coarse\)\]\:min-w-11 {
  @media (pointer:coarse) {
    min-width: calc(var(--spacing) * 11);
  }
}
.coss-ui [hidden]:not([hidden="until-found"]) {
  display: none !important;
}
.coss-ui {
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-foreground);
}
.coss-ui {
  --popover: var(--color-popover);
  --card: var(--color-card);
  --background: var(--color-background);
}
:where(.coss-ui) *, :where(.coss-ui) *::before, :where(.coss-ui) *::after {
  box-sizing: border-box;
  border-color: var(--color-input);
}
:where(.coss-ui) [data-slot] {
  border-style: solid;
  border-width: 0;
}
:where(.coss-ui) :is([data-slot=dialog-popup],[data-slot=input-control],[data-slot=textarea-control],[data-slot=checkbox],[data-slot=radio],[data-slot=button]) {
  border-width: 1px;
}
:where(.coss-ui [data-slot=input]) {
  font: inherit;
}
.coss-ui [data-slot=input] {
  background: transparent;
  color: inherit;
  border: 0;
  transition: none;
}
.coss-ui [data-slot=input-control]>[data-slot=input] {
  width: 100%;
  max-width: none;
  min-width: 0;
  flex: 1;
  background: transparent;
}
:where(.coss-ui [data-slot=button]) {
  font: inherit;
}
.coss-account-profile {
  max-width: 760px;
  padding: 32px 28px;
  min-width: 0;
}
.coss-account-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-input);
}
.coss-account-header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -.02em;
}
.coss-account-header p {
  margin: 4px 0 0;
  color: var(--color-muted-foreground);
}
.coss-account-fields {
  display: grid;
}
.coss-account-field {
  display: grid;
  grid-template-columns: minmax(140px,200px) minmax(0,1fr);
  gap: 16px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-input);
}
.coss-account-field>span {
  color: var(--color-muted-foreground);
}
.coss-account-field>strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 500;
  white-space: pre-wrap;
}
@media (max-width:600px) {
  .coss-account-profile {
    padding: 24px 16px;
  }
  .coss-account-field {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 0;
  }
}
.coss-account-field [data-slot=input-control],.coss-account-field [data-slot=textarea-control] {
  width: 100%;
}
.coss-account-field small {
  display: block;
  margin-top: 4px;
  color: var(--color-muted-foreground);
  font-size: 12px;
  font-weight: 400;
}
.coss-account-save {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
}
.coss-account-save>[role=status] {
  color: var(--color-muted-foreground);
}
.coss-publication-workspace {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--color-input);
  border-radius: var(--radius-2xl);
  background: var(--color-card);
}
.coss-publication-workspace-header {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.coss-publication-workspace-header h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 650;
}
.coss-publication-workspace-header p {
  margin: 4px 0 0;
  color: var(--color-muted-foreground);
  font-size: 13px;
}
.coss-publication-destination-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr));
  align-items: start;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
  min-width: 0;
  padding: 2px;
}
.coss-publication-destination-group {
  min-width: 0;
  border: 1px solid var(--color-input);
  border-radius: 12px;
  background: var(--color-background);
}
.coss-publication-destination-group-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  cursor: pointer;
  list-style: none;
}
.coss-publication-destination-group-heading::-webkit-details-marker,.coss-publication-account-heading::-webkit-details-marker {
  display: none;
}
.coss-publication-destination-group-heading strong {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 650;
}
.coss-publication-destination-group-heading small,.coss-publication-account-heading small {
  color: var(--color-muted-foreground);
  font-size: 11px;
}
.coss-publication-destination-group-heading>svg,.coss-publication-account-heading>svg {
  width: 16px;
  height: 16px;
  transition: transform .16s ease;
}
.coss-publication-destination-group[open] .coss-publication-destination-group-heading>svg,.coss-publication-account[open] .coss-publication-account-heading>svg {
  transform: rotate(90deg);
}
.coss-publication-destination-group-heading:focus-visible,.coss-publication-account-heading:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: -3px;
}
.coss-publication-account-list {
  display: grid;
  gap: 4px;
  padding: 0 8px 8px;
}
.coss-publication-account {
  min-width: 0;
  border-top: 1px solid var(--color-input);
}
.coss-publication-account-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 5px 4px;
  cursor: pointer;
  list-style: none;
}
.coss-publication-account-heading span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 550;
}
.coss-publication-destination-choices {
  display: grid;
  gap: 4px;
  padding: 0 0 8px;
}
.coss-ui .coss-publication-destination {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  justify-items: start;
  align-items: center;
  gap: 0 8px;
  width: 100%;
  height: auto;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 8px;
  text-align: left;
  white-space: normal;
}
.coss-publication-destination[aria-pressed=true] {
  border-color: var(--color-primary);
  background: var(--color-accent);
}
.coss-publication-destination-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.coss-publication-destination-empty {
  margin: 0;
  padding: 12px;
  border: 1px dashed var(--color-input);
  border-radius: 10px;
  color: var(--color-muted-foreground);
  font-size: 12px;
}
.coss-publication-workspace-body {
  display: grid;
  grid-template-columns: minmax(148px,190px) minmax(0,1fr);
  gap: 12px;
  align-items: start;
}
.coss-publication-stage-rail {
  display: grid;
  gap: 3px;
}
.coss-ui .coss-publication-stage {
  height: auto;
  min-height: 42px;
  justify-content: flex-start;
  padding: 8px 10px;
  text-align: left;
  white-space: normal;
  border: 0;
  box-shadow: none;
}
.coss-publication-stage[aria-current=step] {
  background: var(--color-accent);
  font-weight: 650;
}
.coss-publication-stage small {
  display: block;
  margin-top: 2px;
  color: var(--color-muted-foreground);
  font-size: 11px;
  font-weight: 400;
}
.coss-publication-stage-content {
  min-width: 0;
  padding: 0;
}
.coss-publication-stage-content>[data-slot=card-panel] {
  min-width: 0;
  padding: 16px;
}
.coss-publication-action-rail {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 2px;
  border-top: 1px solid var(--color-input);
}
.coss-publication-action-rail>[data-slot=button] {
  margin-top: 12px;
}
.coss-publication-post-preview {
  width: min(100%,420px);
  overflow: hidden;
  border: 1px solid var(--color-input);
  border-radius: var(--radius-xl);
  background: var(--color-background);
  color: var(--color-foreground);
}
.coss-publication-post-preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}
.coss-publication-post-preview-header>div {
  min-width: 0;
}
.coss-publication-post-preview-header strong,.coss-publication-post-preview-header small {
  display: block;
  overflow-wrap: anywhere;
}
.coss-publication-post-preview-header strong {
  font-size: 13px;
  font-weight: 650;
}
.coss-publication-post-preview-header small {
  margin-top: 2px;
  color: var(--color-muted-foreground);
  font-size: 11px;
}
.coss-publication-post-preview-media {
  display: block;
  width: 100%;
  max-height: 420px;
  aspect-ratio: 4/5;
  object-fit: contain;
  background: var(--color-muted);
}
.coss-publication-post-preview-unavailable {
  display: grid;
  min-height: 180px;
  place-content: center;
  justify-items: center;
  gap: 8px;
  background: var(--color-muted);
  color: var(--color-muted-foreground);
  font-size: 13px;
}
.coss-publication-post-preview-unavailable svg {
  width: 24px;
  height: 24px;
}
.coss-publication-post-preview-copy {
  display: grid;
  gap: 8px;
  padding: 12px 14px 14px;
}
.coss-publication-post-preview-copy>strong {
  font-size: 14px;
  font-weight: 650;
}
.coss-publication-post-preview-copy>p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.45;
}
.coss-publication-post-preview-copy>p>span {
  display: block;
  margin-bottom: 2px;
  color: var(--color-muted-foreground);
  font-size: 10px;
  font-weight: 600;
}
.coss-work-panel>[data-panel-body] {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}
.coss-text-reader {
  height: min(55vh,600px);
  min-width: 0;
  color: var(--color-foreground);
}
.coss-text-reader-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
  padding: 16px;
  user-select: text;
}
.coss-work-panel>[role=alert] {
  color: var(--color-destructive);
}
.coss-work-panel h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 16px 0 8px;
}
.coss-work-panel [data-read][data-slot=button] {
  display: block;
  white-space: normal;
  height: auto;
  min-height: 56px;
  text-align: left;
  padding: 10px 12px;
  box-shadow: none;
  border-color: transparent;
}
.coss-work-panel [data-read] strong {
  display: block;
  overflow-wrap: anywhere;
  font-weight: 500;
  line-height: 1.45;
}
.coss-work-panel [data-read] small {
  display: block;
  margin-top: 4px;
  color: var(--color-muted-foreground);
  font-size: 12px;
}
.coss-work-panel [data-panel-body] button:not([data-slot]):not([data-shared-root] *) {
  background: var(--color-background);
  border: 1px solid var(--color-input);
  border-radius: var(--radius-control);
  padding: 8px 12px;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.coss-work-panel [data-panel-body] input:not([data-slot]):not([type=checkbox]):not([type=range]):not([data-shared-root] *),.coss-work-panel textarea:not([data-shared-root] *) {
  border: 1px solid var(--color-input);
  border-radius: 8px;
  background: var(--color-background);
  color: inherit;
  padding: 10px 12px;
  font: inherit;
  min-width: 0;
}
.coss-work-panel textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
}
.coss-work-panel form label:has(>input,>select,>textarea,>.coss-select-host,>[data-slot=input-control]):not(.coss-choice):not(:has(>input[type=range])) {
  display: grid;
  gap: 6px;
  margin: 16px 0;
}
.coss-work-panel form>p {
  color: var(--color-muted-foreground);
  line-height: 1.6;
}
.coss-work-panel form>button[type=submit] {
  background-color: var(--button-primary-bg,var(--color-primary));
  background-image: var(--button-sheen,none);
  color: var(--button-primary-text,var(--color-primary-foreground));
  border-color: transparent;
  box-shadow: var(--button-highlight),var(--button-shadow);
  margin-top: 12px;
}
.coss-work-panel form>button[type=submit]:hover {
  background-color: var(--button-primary-bg-hover,var(--button-primary-bg));
}
.coss-choice-chips {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.coss-choice-chips legend {
  margin: 0 0 7px;
  padding: 0;
  color: var(--color-muted-foreground);
  font-size: 12px;
  font-weight: 600;
}
.coss-choice-chip-row {
  display: flex;
  min-width: 0;
  gap: 7px;
  overflow-x: auto;
  padding: 1px 1px 4px;
  scrollbar-width: thin;
}
.coss-choice-chip-row>[data-slot=button] {
  flex: none;
  border-radius: var(--radius-chip, 0.375rem);
}
.coss-choice-chip-row>[aria-pressed=true] {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-primary-foreground);
}
.coss-choice-chips[data-variant=segmented] legend {
  margin: 0 0 6px;
}
.coss-choice-chips[data-variant=segmented] .coss-choice-chip-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0,1fr);
  gap: 2px;
  padding: 2px;
  overflow: visible;
  border-radius: 10px;
  background: var(--color-foreground);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb,var(--color-foreground) 6%,transparent);
  }
}
.coss-choice-chips[data-variant=segmented] .coss-choice-chip-row>[data-slot=button] {
  height: 30px;
  border-color: transparent;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--color-muted-foreground);
  font-weight: 550;
}
.coss-choice-chips[data-variant=segmented] .coss-choice-chip-row>[data-slot=button]::before {
  display: none;
}
.coss-choice-chips[data-variant=segmented] .coss-choice-chip-row>[aria-pressed=true] {
  border-color: transparent;
  background: var(--color-background);
  color: var(--color-foreground);
  box-shadow: 0 1px 2px var(--text-primary),0 0 0 1px var(--text-primary);
  @supports (color: color-mix(in lab, red, red)) {
    box-shadow: 0 1px 2px color-mix(in srgb,var(--text-primary) 12%,transparent),0 0 0 1px color-mix(in srgb,var(--text-primary) 5%,transparent);
  }
}
.coss-record-editor-plain .coss-record-editor-row {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.coss-record-editor-plain .coss-record-editor-row::before,.coss-record-editor-plain .coss-record-editor-row>[data-slot=card-footer] {
  display: none;
}
.coss-record-editor-plain .coss-record-editor-fields {
  padding: 0;
}
.coss-choices {
  padding: 12px 0;
}
.coss-choice-list-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 650;
  color: var(--color-foreground);
}
.coss-choice-rows {
  max-height: 240px;
  overflow: auto;
  margin-top: 8px;
}
.coss-choice {
  display: flex;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.coss-choice:hover {
  background: var(--color-accent);
}
.coss-choice small {
  display: block;
  color: var(--color-muted-foreground);
  font-size: 12px;
}
.coss-choice[hidden] {
  display: none;
}
.coss-record-field-count {
  justify-self: end;
  color: var(--color-muted-foreground);
  font-size: 11px;
  line-height: 1.2;
}
.coss-native-value {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  padding: 0 !important;
  border: 0 !important;
}
.coss-select-host {
  display: block;
  min-width: 0;
  width: 100%;
}
:where(.coss-ui [data-slot=select-trigger]) {
  font: inherit;
}
.coss-ui [data-slot=select-trigger] {
  border-width: 1px;
  min-width: 0;
  width: 100%;
  cursor: pointer;
}
.coss-ui [data-slot=select-positioner],.coss-ui [data-slot=menu-positioner] {
  z-index: 10000;
}
.coss-ui [data-slot=select-popup],.coss-ui [data-slot=menu-popup] {
  font-size: 14px;
}
.coss-ui [data-slot=select-popup] {
  max-width: min(420px,calc(100vw - 24px));
}
.coss-ui [data-slot=menu-popup] {
  max-width: min(280px,calc(100vw - 24px));
}
.coss-ui [data-slot=menu-popup] {
  box-sizing: border-box;
  width: max-content;
  min-width: 0;
  border-width: 1px;
  border-color: var(--color-input);
  border-radius: var(--radius-lg,12px);
  box-shadow: 0 12px 36px var(--color-foreground);
  @supports (color: color-mix(in lab, red, red)) {
    box-shadow: 0 12px 36px color-mix(in srgb,var(--color-foreground) 18%,transparent);
  }
}
.coss-ui [data-slot=menu-popup]>div {
  padding: 4px;
}
.coss-ui [data-tray-screen][data-tray-drop-active] {
  box-shadow: inset 0 0 0 2px var(--color-primary);
  background: var(--color-primary);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb,var(--color-primary) 5%,var(--color-background));
  }
}
.coss-ui [data-slot=menu-item] {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 13px;
  line-height: 1.35;
}
.coss-ui.coss-floating-panel {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--color-input);
  border-radius: var(--radius-lg,12px);
  background: var(--color-popover);
  color: var(--color-popover-foreground,var(--color-foreground));
  font-size: 13px;
  box-shadow: 0 12px 36px var(--color-foreground);
  @supports (color: color-mix(in lab, red, red)) {
    box-shadow: 0 12px 36px color-mix(in srgb,var(--color-foreground) 18%,transparent);
  }
}
.coss-ui .coss-floating-panel-grab {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  min-height: 32px;
  padding: 2px 4px;
  cursor: grab;
  touch-action: none;
  color: var(--color-muted-foreground);
}
.coss-ui .coss-floating-panel-grab:active {
  cursor: grabbing;
}
.coss-ui .coss-floating-panel-grab-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: default;
}
.coss-ui .coss-floating-panel-grab-actions svg {
  stroke-width: 1.5;
}
.coss-ui .coss-floating-panel-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.coss-ui .coss-floating-panel-content {
  padding: 2px 16px 14px;
}
.coss-ui .coss-floating-panel-content>:is([role=status],[role=alert]) {
  margin: 8px 0 0;
  font-size: 12px;
}
.coss-ui .coss-floating-panel-content>:is([role=status],[role=alert]):empty {
  display: none;
}
.coss-ui .coss-floating-panel-header {
  display: grid;
  gap: 4px;
  margin: 2px 0 14px;
}
.coss-ui .coss-floating-panel-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-foreground);
}
.coss-ui .coss-floating-panel-description {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-muted-foreground);
}
.coss-choice-chips[data-wrap] .coss-choice-chip-row {
  flex-wrap: wrap;
  overflow: visible;
  padding-bottom: 1px;
}
.coss-composer {
  display: grid;
  min-width: 0;
}
.coss-work-panel .coss-composer label:has(>input,>select,>textarea,>.coss-select-host,>[data-slot=input-control]):not(.coss-choice) {
  display: grid;
  gap: 6px;
  margin: 0;
  min-width: 0;
  color: var(--color-muted-foreground);
  font-size: 12px;
  font-weight: 600;
}
.coss-composer .coss-choice-chips legend {
  font-size: 12px;
}
.coss-composer [data-slot=accordion-trigger] {
  color: var(--color-foreground);
  font-size: 13px;
  font-weight: 600;
  opacity: 1;
}
.coss-ui [data-slot=select-list] {
  max-height: min(320px,var(--available-height));
  border: 1px solid var(--color-input);
  border-radius: 8px;
}
.coss-ui [data-slot=select-item] {
  white-space: normal;
  line-height: 1.5;
}
.coss-ui [data-slot=select-item] svg {
  width: 16px;
  height: 16px;
}
.coss-action-menu {
  position: relative;
  display: inline-flex;
}
.coss-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(240px,100%),1fr));
  gap: 12px;
  width: 100%;
}
.coss-ui .coss-project-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-input);
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.coss-ui .coss-project-card:hover {
  background: var(--color-accent);
}
.coss-ui .coss-project-card:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 3px;
}
.coss-project-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 500;
  line-height: 1.45;
}
.coss-ui .coss-media-card {
  position: relative;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 12px;
  overflow: visible;
}
.coss-media-card::before {
  display: none;
}
.coss-ui .coss-media-open {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  white-space: normal;
  text-align: left;
  box-shadow: none;
}
.coss-media-poster {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--color-muted);
  border-radius: 12px;
  overflow: hidden;
  color: var(--color-muted-foreground);
}
.coss-media-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.coss-ui .coss-media-card[data-layout=list] .coss-media-open {
  display: grid;
  grid-template-columns: 64px minmax(0,1fr);
  column-gap: 10px;
  row-gap: 1px;
  align-items: center;
}
.coss-media-card[data-layout=list] .coss-media-poster {
  grid-row: 1/span 2;
  width: 64px;
  height: 40px;
  aspect-ratio: auto;
  border-radius: 6px;
}
.coss-media-card[data-layout=list] strong {
  grid-column: 2;
  align-self: end;
  margin: 0;
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.coss-media-card[data-layout=list] small {
  grid-column: 2;
  align-self: start;
  color: var(--color-muted-foreground);
  font-size: 11px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.coss-media-card[data-layout=list] .coss-media-open:not(:has(small)) strong {
  grid-row: 1/span 2;
  align-self: center;
}
.coss-ui .coss-media-card[data-layout=list] .coss-media-open[data-no-poster] {
  grid-template-columns: minmax(0,1fr);
  padding-left: 36px;
  min-height: 52px;
}
.coss-media-card[data-layout=list] .coss-media-open[data-no-poster] :is(strong,small) {
  grid-column: 1;
}
.coss-ui .coss-media-select {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 20px;
  height: 20px;
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transition: opacity 100ms ease,visibility 0s linear 220ms;
}
.coss-media-card:hover .coss-media-select,.coss-media-card:focus-within .coss-media-select,.coss-media-card[data-selected] .coss-media-select,.mw-selecting .coss-media-select {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.coss-media-card[data-selected] .coss-media-poster {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
.coss-media-metadata {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.coss-media-card>.coss-media-metadata {
  position: static;
  display: flex;
  gap: 5px;
  max-width: 100%;
  margin-top: 8px;
  pointer-events: auto;
}
.coss-ui .coss-media-metadata-chip {
  pointer-events: auto;
  justify-content: flex-start;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-shadow: none;
}
.coss-media-metadata-label {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.coss-media-metadata-color {
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.coss-ui .coss-media-metadata-more {
  pointer-events: auto;
  min-width: 30px;
  padding-inline: 7px;
}
.coss-media-metadata-heading {
  margin-right: 6px;
  color: var(--color-muted-foreground);
  font-size: 12px;
}
.coss-ui .coss-media-card-menu {
  position: absolute;
  z-index: 4;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  opacity: 0;
  background: var(--color-background);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb,var(--color-background) 90%,transparent);
  }
  box-shadow: 0 2px 8px var(--text-primary);
  @supports (color: color-mix(in lab, red, red)) {
    box-shadow: 0 2px 8px color-mix(in srgb,var(--text-primary) 20%,transparent);
  }
  cursor: pointer;
}
.coss-media-card:hover .coss-media-card-menu,.coss-media-card:focus-within .coss-media-card-menu {
  opacity: 1;
}
.coss-media-card[data-layout=list] :is(.coss-media-metadata,.coss-media-card-menu) {
  display: none;
}
.coss-action-prompt {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 45;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
  max-width: min(520px,calc(100vw - 48px));
  padding: 8px;
  overflow: hidden;
}
.coss-action-prompt-handle {
  flex: none;
  cursor: grab;
  touch-action: none;
}
.coss-action-prompt-handle:active {
  cursor: grabbing;
}
.coss-action-prompt-open {
  display: flex;
  justify-content: flex-start;
  flex: 0 1 180px;
  min-width: 0;
  height: auto;
  min-height: 34px;
  padding: 4px 8px;
  text-align: left;
}
.coss-action-prompt-mark {
  display: grid;
  place-items: center;
  flex: none;
}
.coss-action-prompt-mark svg {
  width: 16px;
  height: 16px;
}
.coss-action-prompt-copy {
  display: grid;
  min-width: 0;
}
.coss-action-prompt-copy small {
  color: var(--color-muted-foreground);
  font-size: 10px;
  line-height: 1.15;
}
.coss-action-prompt-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.35;
}
.coss-action-prompt-actions {
  display: flex;
  flex: 0 1 auto;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}
.coss-action-prompt-actions>button {
  flex: 0 1 auto;
  justify-content: flex-start;
  min-width: 48px;
  max-width: 190px;
  overflow: hidden;
}
.coss-action-prompt-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.coss-action-prompt-more,.coss-action-prompt-collapse {
  flex: none;
}
.coss-action-prompt[data-collapsed] {
  right: 18px;
  bottom: 18px;
  width: auto;
  padding: 5px;
  border-radius: 50%;
}
.coss-action-prompt[data-collapsed]>:not(.coss-action-prompt-collapse) {
  display: none;
}
.coss-action-prompt[data-collapsed] .coss-action-prompt-collapse {
  border-radius: var(--radius-pill);
}
@media (max-width:700px) {
  .coss-action-prompt {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }
  .coss-action-prompt-actions>button:nth-child(n+2) {
    display: none;
  }
  .coss-action-prompt-open {
    flex-basis: 150px;
  }
}
.coss-ui [data-slot=table-row] {
  border-bottom: 1px solid var(--color-input);
}
.coss-ui [data-slot=table-cell] {
  white-space: normal;
  line-height: 1.5;
}
.coss-ui [data-slot=table-head] {
  background: var(--color-muted);
}
.source-owned-actions[hidden] {
  display: none !important;
}
.coss-native-checkbox {
  position: relative;
  display: inline-flex;
  flex: none;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  border-radius: var(--radius-check,4px);
}
.coss-native-checkbox>input[type=checkbox] {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  opacity: 0 !important;
  cursor: pointer;
}
.coss-checkbox-face {
  display: flex;
  pointer-events: none;
}
.coss-native-checkbox:focus-within {
  outline: 2px solid var(--color-ring);
  outline-offset: 3px;
}
.coss-navigation {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.coss-ui .coss-navigation-item {
  display: flex;
  width: 100%;
  height: auto;
  min-height: 44px;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 10px;
  white-space: normal;
  text-align: left;
  border: 0;
  box-shadow: none;
  line-height: 1.45;
}
.coss-navigation-item[aria-current=page] {
  background: var(--color-accent);
  font-weight: 600;
}
.coss-ui .coss-navigation-item:not([aria-current=page]) {
  background: transparent;
}
.coss-ui [data-slot=checkbox] {
  padding: 0;
}
.coss-ui [data-slot=checkbox-indicator] svg {
  width: 14px;
  height: 14px;
}
.coss-record-table [data-slot=table-cell] {
  vertical-align: top;
  white-space: normal;
}
.coss-record-table-value {
  min-width: 120px;
  max-width: 340px;
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.coss-record-table-value>button {
  height: auto;
  text-align: left;
  white-space: normal;
  justify-content: flex-start;
  padding: 0;
  font-weight: 600;
}
.coss-record-table-detail {
  margin-top: 6px;
  color: var(--color-muted-foreground);
  font-size: 12px;
}
.coss-record-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 140px;
}
.coss-media-group-title {
  grid-column: 1/-1;
  margin: 0;
  color: var(--color-muted-foreground);
  font-size: 14px;
  font-weight: 600;
}
@media (max-width:700px) {
  .coss-work-panel [data-list] {
    max-height: 180px;
    overflow: auto;
  }
  .coss-publication-workspace {
    padding: 14px;
  }
  .coss-publication-workspace-header {
    display: grid;
  }
  .coss-publication-destination-rail {
    justify-content: flex-start;
  }
  .coss-publication-workspace-body {
    grid-template-columns: 1fr;
  }
  .coss-publication-stage-rail {
    display: flex;
    overflow: auto;
    padding-bottom: 2px;
  }
  .coss-ui .coss-publication-stage {
    flex: 0 0 auto;
    min-height: 36px;
  }
  .coss-publication-stage small {
    display: none;
  }
  .coss-publication-action-rail {
    justify-content: stretch;
  }
  .coss-publication-action-rail>[data-slot=button] {
    flex: 1;
  }
}
@media (prefers-reduced-motion:reduce) {
  .coss-ui * {
    transition: none !important;
    animation: none !important;
  }
}
.coss-ui .coss-media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 12px;
  margin-top: auto;
}
.coss-ui .coss-media-actions>button {
  max-width: 100%;
  height: auto;
  min-height: 32px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.coss-ui .coss-media-open:disabled {
  opacity: 1;
  cursor: default;
}
.coss-navigation-detail {
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-muted-foreground);
  white-space: normal;
}
.coss-project-tree {
  display: grid;
  gap: 8px;
  min-width: 0;
  width: 100%;
}
.coss-project-tree-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.coss-project-tree-search {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
}
.coss-project-tree-search>svg {
  position: absolute;
  left: 9px;
  z-index: 1;
  width: 15px;
  height: 15px;
  color: var(--color-muted-foreground);
  pointer-events: none;
}
.coss-project-tree-search [data-slot=input] {
  width: 100%;
  min-width: 0;
  padding-left: 30px;
}
.coss-project-tree-rows {
  position: relative;
  isolation: isolate;
  max-height: min(48vh,420px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 2px 0;
}
.coss-project-tree {
  --tree-indent: 18px;
  --tree-disclosure: 26px;
}
.coss-project-tree-item {
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.coss-project-tree-row {
  --tree-depth: 0;
  position: relative;
  display: grid;
  grid-template-columns: 26px 20px minmax(0,1fr) 28px;
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 34px;
  padding: 1px 2px 1px calc(var(--tree-depth) * var(--tree-indent));
  border-radius: 8px;
  color: var(--color-foreground);
  outline: none;
  transition: background-color .15s ease;
}
.coss-project-tree-row[aria-selected=true] {
  background: var(--color-ring);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb,var(--color-ring) 14%,transparent);
  }
}
.coss-project-tree-glide {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 0;
  border-radius: 8px;
  background: var(--color-accent);
  pointer-events: none;
}
.coss-project-tree-guides {
  position: absolute;
  inset: 0;
  pointer-events: none;
  --nesting-guide-step: var(--tree-indent);
  --nesting-guide-left: calc(var(--tree-disclosure) / 2 - var(--nesting-guide-width) / 2);
}
.coss-project-tree-disclosure svg {
  transition: transform var(--motion-base) var(--ease-snap);
}
.coss-project-tree-row[aria-expanded=true]>.coss-project-tree-disclosure svg {
  transform: rotate(90deg);
}
.coss-project-tree[data-tree-mode=navigator] .coss-project-tree-rows {
  padding: 0;
  max-height: none;
}
.coss-project-tree[data-tree-mode=navigator] {
  --tree-indent: 20px;
  --tree-disclosure: 24px;
}
.coss-project-tree[data-tree-mode=navigator] .coss-project-tree-row {
  grid-template-columns: 24px minmax(0,1fr) auto;
  gap: 2px;
  min-height: 34px;
  padding: 0 0 0 calc(var(--tree-depth) * var(--tree-indent));
}
.coss-ui .coss-project-tree[data-tree-mode=navigator] .coss-project-tree-disclosure {
  width: 24px;
  min-width: 24px;
  height: 28px;
  color: var(--text-tertiary,var(--color-muted-foreground));
}
.coss-ui .coss-project-tree[data-tree-mode=navigator] .coss-project-tree-disclosure svg {
  width: 12px;
  height: 12px;
}
.coss-ui .coss-project-tree[data-tree-mode=navigator] .coss-project-tree-name {
  gap: 10px;
  height: 34px;
  padding: 0 8px 0 4px;
}
.coss-ui .coss-project-tree[data-tree-mode=navigator] .coss-project-tree-name>svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
}
.coss-project-tree[data-tree-mode=navigator] .coss-project-tree-name strong {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.coss-project-tree-row:focus-visible {
  box-shadow: inset 0 0 0 2px var(--color-ring);
}
.coss-ui .coss-project-tree-disclosure {
  width: 26px;
  height: 28px;
  min-width: 26px;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.coss-ui span.coss-project-tree-disclosure {
  display: block;
}
.coss-ui .coss-project-tree-name {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  width: 100%;
  height: 32px;
  padding: 3px 5px;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}
.coss-project-tree-name>svg {
  width: 16px;
  height: 16px;
  color: var(--project-tree-glyph,var(--color-muted-foreground));
  transition: color .15s ease;
}
.coss-project-tree-row:hover .coss-project-tree-name>svg {
  color: var(--project-tree-glyph,var(--color-foreground));
}
.coss-project-tree-name>span {
  display: block;
  min-width: 0;
  overflow: hidden;
}
.coss-project-tree-name strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 520;
  line-height: 18px;
  white-space: nowrap;
}
.coss-project-tree-name small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-muted-foreground);
  font-size: 11px;
  line-height: 14px;
  white-space: nowrap;
}
.coss-ui .coss-project-tree-add {
  opacity: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.coss-project-tree-row:is(:hover,:focus-within,[aria-selected=true]) .coss-project-tree-add {
  opacity: 1;
}
.coss-project-tree-create {
  --tree-depth: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto 28px;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 4px 2px 4px calc(31px + var(--tree-depth) * 18px);
}
.coss-project-tree-create [data-slot=input] {
  min-width: 0;
  height: 32px;
}
.coss-project-tree-details {
  --tree-depth: 0;
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 4px 2px 8px calc(31px + var(--tree-depth) * 18px);
  padding: 10px;
  border-radius: 9px;
  background: var(--color-muted);
}
.coss-project-tree-details>label {
  display: grid;
  gap: 4px;
  color: var(--color-muted-foreground);
  font-size: 12px;
}
.coss-project-tree-details textarea {
  min-height: 74px;
  resize: vertical;
}
.coss-project-tree-details>div {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.coss-project-tree-empty,.coss-project-tree-error {
  margin: 8px;
  color: var(--color-muted-foreground);
  font-size: 13px;
}
.coss-project-tree-error {
  color: var(--color-destructive);
}
.coss-project-tree-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--color-accent);
  color: var(--color-accent-foreground);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.coss-project-tree-thumb {
  flex: none;
  width: 34px;
  height: 22px;
  border-radius: 5px;
  object-fit: cover;
  background: var(--color-muted);
}
.coss-project-tree-picker {
  position: relative;
  min-width: 0;
}
.coss-project-tree-picker>button {
  justify-content: flex-start;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.coss-project-tree-popover {
  position: absolute;
  z-index: 80;
  top: calc(100% + 6px);
  left: 0;
  width: min(420px,calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-background);
  box-shadow: 0 18px 50px var(--text-primary);
  @supports (color: color-mix(in lab, red, red)) {
    box-shadow: 0 18px 50px color-mix(in srgb,var(--text-primary) 18%,transparent);
  }
}
.coss-project-tree-mode,.coss-project-tree-confirm {
  --tree-depth: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 5px 6px 5px calc(31px + var(--tree-depth) * 18px);
  border-radius: 8px;
  background: var(--color-accent);
  font-size: 12px;
  color: var(--color-muted-foreground);
}
.coss-project-tree-mode>span,.coss-project-tree-confirm>span {
  flex: 1;
  min-width: 0;
}
.coss-project-tree-mode strong {
  color: var(--color-foreground);
}
@media (max-width:420px) {
  .coss-project-tree-tools {
    align-items: stretch;
  }
  .coss-project-tree-tools>button {
    width: 34px;
    padding: 0;
  }
  .coss-project-tree-tools>button svg {
    margin: 0;
  }
  .coss-project-tree-new-label {
    display: none;
  }
  .coss-project-tree {
    --tree-indent: 14px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .coss-project-tree * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.coss-action-cards {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.coss-ui .coss-action-card {
  padding: 16px;
  gap: 12px;
}
.coss-action-card p {
  margin: 0;
  overflow-wrap: anywhere;
}
.coss-action-card small {
  color: var(--color-muted-foreground);
}
.coss-action-card [role=group] {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.coss-action-card [role=group],.coss-record-table-actions,.coss-media-card .coss-media-actions,.coss-media-card-menu,.coss-media-preview-action {
  opacity: 0;
  visibility: hidden;
  transition: opacity 100ms ease,visibility 0s linear 220ms;
}
.coss-action-card:is(:hover,:focus-within,[data-selected]) [role=group],.coss-record-table [data-slot=table-row]:is(:hover,:focus-within,[data-selected]) .coss-record-table-actions,.coss-media-card:is(:hover,:focus-within,[data-selected]) .coss-media-actions,.coss-media-card:is(:hover,:focus-within,[data-selected]) :is(.coss-media-card-menu,.coss-media-preview-action) {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
@media (hover:none) {
  .coss-action-card [role=group],.coss-record-table-actions,.coss-media-card .coss-media-actions {
    opacity: 1;
    visibility: visible;
    transition: none;
  }
}
@media (hover:none) {
  .coss-ui .coss-media-select,.coss-ui .coss-media-card :is(.coss-media-card-menu,.coss-media-preview-action,.coss-media-actions) {
    opacity: 1;
    visibility: visible;
    transition: none;
  }
}
@media (prefers-reduced-motion:reduce) {
  .coss-action-card [role=group],.coss-record-table-actions,.coss-media-card .coss-media-actions {
    transition: none;
  }
}
.coss-action-card .coss-action-loading {
  align-self: center;
  color: var(--color-muted-foreground);
  font-size: .8125rem;
}
.coss-ui .record-views-gallery-card {
  background: transparent;
  border-color: transparent;
}
.coss-ui .record-views-gallery-card:hover,.coss-ui .record-views-gallery-card:focus-within {
  background: var(--t-background-transparent-light);
  border-color: var(--t-border-color-medium);
}
.coss-ui .record-views-gallery, .coss-ui .record-views-gallery-sections {
  background: transparent;
}
.coss-ui .record-views-gallery-card {
  border-radius: 10px;
}
.coss-ui .record-views-selection-bar {
  flex-wrap: wrap;
  max-width: 100%;
  box-sizing: border-box;
}
.coss-ui .record-views-selection-bar>button {
  max-width: 100%;
  white-space: normal;
  height: auto;
  min-height: 28px;
}
.coss-ui {
  --record-card-control-size: 24px;
  --record-card-control-inset: 8px;
  --record-card-control-radius: 6px;
  --record-card-control-surface: var(--glass-bg-popover,var(--color-background));
  @supports (color: color-mix(in lab, red, red)) {
    --record-card-control-surface: var(--glass-bg-popover,color-mix(in srgb,var(--color-background) 96%,transparent));
  }
  --record-card-control-border: var(--color-foreground);
  @supports (color: color-mix(in lab, red, red)) {
    --record-card-control-border: color-mix(in srgb,var(--color-foreground) 18%,transparent);
  }
  --record-card-control-shadow: 0 1px 3px var(--text-primary);
  @supports (color: color-mix(in lab, red, red)) {
    --record-card-control-shadow: 0 1px 3px color-mix(in srgb,var(--text-primary) 14%,transparent);
  }
}
.coss-ui .record-view-thumbnail {
  border-radius: 8px;
  background: transparent;
}
.coss-ui .record-views-gallery-card .record-views-card-corner {
  visibility: hidden;
  transition: opacity 100ms ease,visibility 0s linear 220ms;
}
.coss-ui .record-views-gallery-card:is(:hover,:focus-within,[data-selected='true']) .record-views-card-corner {
  visibility: visible;
  transition-delay: 0s;
}
.coss-ui .record-views-gallery-card .record-views-card-corner :is([data-slot='checkbox'],[data-slot='button'],[data-slot='menu-trigger']) {
  cursor: pointer;
}
@media (hover:none) {
  .coss-ui .record-views-gallery-card .record-views-card-corner {
    opacity: 1;
    visibility: visible;
    transition: none;
  }
}
.coss-ui .record-views-gallery-section .record-views-divider {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 8px;
}
.coss-ui .record-views-title {
  gap: 8px;
  align-items: center;
  font-family: var(--font-display,inherit);
  font-size: 1.125rem;
  font-weight: 500;
}
.coss-ui .record-views-count {
  font-family: var(--font-primary,inherit);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--t-font-color-tertiary);
}
.coss-ui .trillion-media-availability {
  max-width: 24rem;
  color: var(--t-font-color-secondary);
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
  font-variant-numeric: tabular-nums;
}
.coss-ui .record-views-board-column article {
  background: transparent;
  border-color: transparent;
}
.coss-ui .record-views-board-column article:hover,.coss-ui .record-views-board-column article:focus-within {
  background: var(--t-background-transparent-light);
  border-color: var(--t-border-color-medium);
}
.coss-ui .record-view-tag-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0;
  max-width: 100%;
  vertical-align: middle;
}
.coss-ui .record-view-tag {
  color: var(--t-font-color-secondary);
  background: var(--t-background-transparent-light);
  border-color: var(--t-border-color-medium);
}
.coss-ui [data-slot=table] .record-view-tag {
  color: var(--t-font-color-primary);
  @supports (color: color-mix(in lab, red, red)) {
    color: color-mix(in srgb,var(--t-font-color-primary) 65%,var(--t-font-color-secondary));
  }
  background: transparent;
  border: 0;
  padding: 0 2px;
  font-weight: 500;
}
.coss-ui [data-slot=table] .record-view-tag:is([data-tone=warning],[data-tone=attention]) {
  background: var(--color-warning);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb,var(--color-warning) 11%,var(--color-background));
  }
  border: 1px solid var(--color-warning);
  @supports (color: color-mix(in lab, red, red)) {
    border: 1px solid color-mix(in srgb,var(--color-warning) 30%,transparent);
  }
  color: var(--color-warning);
  @supports (color: color-mix(in lab, red, red)) {
    color: color-mix(in srgb,var(--color-warning) 60%,var(--text-primary));
  }
  padding: 0 var(--t-spacing-2,8px);
}
.coss-ui [data-slot=table] .record-view-tag:is([data-tone=error],[data-tone=bad],[data-tone=danger]) {
  background: var(--color-error);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb,var(--color-error) 9%,var(--color-background));
  }
  border: 1px solid var(--color-error);
  @supports (color: color-mix(in lab, red, red)) {
    border: 1px solid color-mix(in srgb,var(--color-error) 28%,transparent);
  }
  color: var(--color-error);
  @supports (color: color-mix(in lab, red, red)) {
    color: color-mix(in srgb,var(--color-error) 80%,var(--text-primary));
  }
  padding: 0 var(--t-spacing-2,8px);
}
.coss-ui [data-slot=table] .record-view-tag[data-filterable=true]:is(:hover,:focus-visible) {
  color: var(--t-font-color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.coss-ui .record-view-tag[data-filterable="true"] {
  cursor: pointer;
}
.coss-ui .record-view-tag-count {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 140ms ease,opacity 140ms ease;
  padding-inline: 0;
  color: var(--t-font-color-tertiary);
  font-size: .72em;
  white-space: nowrap;
}
.coss-ui .record-view-tag-wrap:hover .record-view-tag-count,.coss-ui .record-view-tag-wrap:focus-within .record-view-tag-count {
  max-width: 5rem;
  opacity: 1;
  padding-inline: .35rem;
}
.coss-ui .record-view-tag-wrap[data-active="true"] .record-view-tag {
  box-shadow: 0 0 0 1px currentColor;
}
@media (prefers-reduced-motion:reduce) {
  .coss-ui .record-view-tag-count {
    transition: none;
  }
}
.mw-clip-surface .coss-action-cards {
  gap: 0;
  margin-top: 12px;
}
.mw-clip-surface .coss-ui .coss-action-card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--t-border-color-medium);
  border-radius: 0;
  box-shadow: none;
  padding: 12px 0;
}
.mw-clip-surface .coss-media-metadata {
  padding: 12px 0;
  border-bottom: 1px solid var(--t-border-color-medium);
  row-gap: 8px;
}
.mw-clip-surface .coss-action-card>p,.mw-clip-surface .coss-media-metadata-heading {
  margin: 0 0 8px;
  color: var(--color-foreground);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.mw-clip-surface .coss-action-card>small {
  display: block;
  color: var(--color-foreground);
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.mw-clip-surface .coss-media-metadata-heading {
  flex: 0 0 100%;
  margin-bottom: 0;
}
.coss-publication-destination-rail {
  grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr));
}
.coss-publication-destination-group {
  overflow: hidden;
}
.coss-publication-destination-group-heading {
  background: var(--color-muted);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb,var(--color-muted) 72%,var(--color-background));
  }
}
.coss-publication-destination-group-heading:hover,.coss-publication-account-heading:hover {
  background: var(--color-accent);
}
.coss-publication-destination-group-heading small,.coss-publication-account-heading small {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border: 1px solid var(--color-input);
  border-radius: var(--radius-chip, 0.375rem);
  background: var(--color-background);
  line-height: 1;
}
.coss-publication-destination-group[open]>.coss-publication-destination-group-heading {
  border-bottom: 1px solid var(--color-input);
  border-radius: calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px) 0 0;
}
.coss-publication-account-list {
  gap: 6px;
  padding: 8px;
}
.coss-publication-account {
  overflow: hidden;
  border: 1px solid var(--color-input);
  border-radius: 9px;
  background: var(--color-muted);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb,var(--color-muted) 38%,var(--color-background));
  }
}
.coss-publication-account-heading {
  padding: 5px 8px;
}
.coss-publication-account[open]>.coss-publication-account-heading {
  border-bottom: 1px solid var(--color-input);
  background: var(--color-muted);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb,var(--color-muted) 72%,var(--color-background));
  }
}
.coss-publication-destination-choices {
  padding: 6px 6px 8px;
}
.coss-ui .coss-publication-destination[aria-pressed=true] {
  box-shadow: 0 0 0 1px var(--color-primary) inset;
}
.coss-ui .coss-publication-destination.is-unavailable {
  border-style: dashed;
  opacity: .82;
}
.coss-publication-destination-status {
  grid-column: 1/-1;
  color: var(--color-muted-foreground);
  font-size: 11px;
}
@media (max-width:700px) {
  .coss-publication-destination-rail {
    grid-template-columns: minmax(0,1fr);
    max-height: min(38dvh,320px);
  }
}
@media (prefers-reduced-motion:reduce) {
  .coss-publication-destination-group-heading>svg,.coss-publication-account-heading>svg {
    transition: none;
  }
}
:root {
  --link-hover-color: var(--accent-primary);
}
.coss-ui .record-views-open-link {
  text-decoration: underline;
  text-decoration-color: var(--t-border-color-medium,currentColor);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.coss-ui .record-views-open-link:hover,.coss-ui .record-views-open-link:focus-visible {
  color: var(--link-hover-color);
  text-decoration-color: currentColor;
}
.linked-identity {
  border-radius: var(--radius-chip);
}
.linked-identity-face {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-chip);
  transition: transform .15s ease,box-shadow .15s ease;
}
.linked-identity-face>* {
  width: 100%;
  height: 100%;
  min-width: 0;
}
.linked-identity-face[data-mark="provider"] {
  background: transparent;
}
.linked-identity-fallback {
  background: var(--t-background-transparent-light,transparent);
  color: inherit;
}
.linked-identity:hover .linked-identity-face,.linked-identity:focus-visible .linked-identity-face {
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px var(--link-hover-color);
}
.linked-identity-open-cue {
  width: 12px;
  height: 12px;
  color: var(--link-hover-color);
}
.coss-ui .record-views-caller-view {
  min-width: 0;
}
:root {
  --record-kind-blue: #6b9cf2;
  --record-kind-green: #4fbf8a;
  --record-kind-purple: #a98bf2;
  --record-kind-yellow: #e2b340;
  --record-kind-turquoise: #3fc1b0;
  --record-kind-grey: #9aa0a6;
  --record-kind-red: #e8736b;
  --record-kind-orange: #ec9a4c;
  --record-kind-pink: #e27bb4;
}
:root {
  --record-kind-accent: var(--accent-primary,var(--record-kind-blue));
}
:root {
  --record-kind-success: var(--record-kind-green);
  --record-kind-positive: var(--record-kind-green);
  --record-kind-warning: var(--record-kind-orange);
  --record-kind-attention: var(--record-kind-yellow);
  --record-kind-error: var(--record-kind-red);
  --record-kind-danger: var(--record-kind-red);
  --record-kind-bad: var(--record-kind-red);
  --record-kind-info: var(--record-kind-blue);
  --record-kind-neutral: var(--record-kind-grey);
  --record-kind-muted: var(--record-kind-grey);
}
.record-kind-mark {
  --record-kind: var(--record-kind-grey);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 500;
  color: var(--record-kind);
  @supports (color: color-mix(in lab, red, red)) {
    color: color-mix(in oklab,var(--record-kind) 70%,var(--text-primary,currentColor));
  }
  background: var(--record-kind);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in oklab,var(--record-kind) 13%,transparent);
  }
  border-color: var(--record-kind);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in oklab,var(--record-kind) 32%,transparent);
  }
}
.record-kind-mark-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--record-kind);
}
.record-kind-mark[data-compact] {
  padding-inline: 4px;
}
.record-kind-mark[data-tone="blue"],[data-colour="blue"] {
  --record-kind: var(--record-kind-blue);
}
.record-kind-mark[data-tone="green"],[data-colour="green"] {
  --record-kind: var(--record-kind-green);
}
.record-kind-mark[data-tone="purple"],[data-colour="purple"] {
  --record-kind: var(--record-kind-purple);
}
.record-kind-mark[data-tone="yellow"],[data-colour="yellow"] {
  --record-kind: var(--record-kind-yellow);
}
.record-kind-mark[data-tone="turquoise"],[data-colour="turquoise"] {
  --record-kind: var(--record-kind-turquoise);
}
.record-kind-mark[data-tone="red"],[data-colour="red"] {
  --record-kind: var(--record-kind-red);
}
.record-kind-mark[data-tone="orange"],[data-colour="orange"] {
  --record-kind: var(--record-kind-orange);
}
.record-kind-mark[data-tone="pink"],[data-colour="pink"] {
  --record-kind: var(--record-kind-pink);
}
.record-kind-mark[data-tone="accent"] {
  --record-kind: var(--record-kind-accent);
}
[data-colour="grey"] {
  --record-kind: var(--record-kind-grey);
}
.colour-dot[data-colour] {
  background: var(--record-kind);
}
.color-marker[data-color-marker-shape="spine"] {
  position: absolute;
  inset-inline-start: .25rem;
  inset-block: .2rem;
  width: .2rem;
  height: auto;
  border-radius: 999px;
  pointer-events: none;
}
.coss-project-tree-name .record-kind-mark {
  margin-left: auto;
}
.connection-section {
  border: 1px solid var(--color-input);
  border-radius: 12px;
  background: var(--color-card,transparent);
  overflow: hidden;
}
.connection-section+.connection-section {
  margin-top: 20px;
}
.connection-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
}
.connection-section-heading h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.connection-section-heading p {
  margin: 4px 0 0;
  max-width: 560px;
  color: var(--color-muted-foreground);
  font-size: 13px;
  line-height: 1.45;
}
.connection-section-summary {
  display: grid;
  gap: 6px;
  justify-items: end;
  flex-shrink: 0;
  color: var(--color-muted-foreground);
  font-size: 12px;
  white-space: nowrap;
}
.connection-section-meter {
  width: 120px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: currentColor;
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in oklab,currentColor 14%,transparent);
  }
}
.connection-section-meter::-webkit-meter-bar {
  background: currentColor;
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in oklab,currentColor 14%,transparent);
  }
  border: 0;
  border-radius: 999px;
  height: 4px;
}
.connection-section-meter::-webkit-meter-optimum-value,.connection-section-meter::-webkit-meter-suboptimum-value,.connection-section-meter::-webkit-meter-even-less-good-value {
  background: var(--record-kind-green);
  border-radius: 999px;
}
.connection-section-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-input);
}
.connection-section-row {
  display: grid;
  grid-template-columns: 32px minmax(0,1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
}
.connection-section-row+.connection-section-row {
  border-top: 1px solid var(--color-input);
}
.connection-section-mark {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: currentColor;
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in oklab,currentColor 6%,transparent);
  }
}
.connection-section-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.connection-section-copy strong {
  font-size: 14px;
  font-weight: 500;
}
.connection-section-copy small {
  color: var(--color-muted-foreground);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.connection-section-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.connection-section-state {
  --record-kind: var(--record-kind-grey);
  gap: 6px;
  color: var(--record-kind);
  @supports (color: color-mix(in lab, red, red)) {
    color: color-mix(in oklab,var(--record-kind) 72%,var(--color-foreground,currentColor));
  }
  background: var(--record-kind);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in oklab,var(--record-kind) 12%,transparent);
  }
  border-color: var(--record-kind);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in oklab,var(--record-kind) 30%,transparent);
  }
}
.connection-section-state::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--record-kind);
}
.connection-section-state[data-tone="green"] {
  --record-kind: var(--record-kind-green);
}
.connection-section-state[data-tone="yellow"] {
  --record-kind: var(--record-kind-yellow);
}
.connection-section-state[data-tone="red"] {
  --record-kind: var(--record-kind-red);
}
.connection-section-state[data-tone="blue"] {
  --record-kind: var(--record-kind-blue);
}
.connection-section-action[data-tone="danger"] {
  color: var(--record-kind-red);
}
@container (max-width: 560px) {
  .connection-section-row {
    grid-template-columns: 32px minmax(0,1fr) auto;
  }
  .connection-section-action {
    grid-column: 2/-1;
    justify-self: start;
  }
  .connection-section-header {
    flex-direction: column;
  }
  .connection-section-summary {
    justify-items: start;
  }
}
.coss-account-profile {
  max-width: 720px;
}
.coss-account-header {
  border-bottom: 0;
  padding-bottom: 20px;
}
.coss-account-fields {
  border: 1px solid var(--color-input);
  border-radius: 12px;
  background: var(--color-card,transparent);
  overflow: hidden;
}
.coss-account-fields>.coss-account-field {
  padding: 16px 20px;
  margin: 0;
  border-bottom: 0;
}
.coss-account-fields>.coss-account-field+.coss-account-field {
  border-top: 1px solid var(--color-input);
}
.coss-account-save {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-direction: row-reverse;
  padding: 12px 20px;
  border-top: 1px solid var(--color-input);
  background: currentColor;
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in oklab,currentColor 3%,transparent);
  }
  margin: 0;
}
.record-state-mark {
  --record-kind: var(--record-kind-grey);
  gap: 6px;
  white-space: nowrap;
  font-weight: 500;
  color: var(--record-kind);
  @supports (color: color-mix(in lab, red, red)) {
    color: color-mix(in oklab,var(--record-kind) 72%,var(--color-foreground,currentColor));
  }
  background: var(--record-kind);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in oklab,var(--record-kind) 10%,transparent);
  }
  border-color: var(--record-kind);
  @supports (color: color-mix(in lab, red, red)) {
    border-color: color-mix(in oklab,var(--record-kind) 28%,transparent);
  }
}
.record-state-mark::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--record-kind);
}
.record-state-mark[data-tone="green"] {
  --record-kind: var(--record-kind-green);
}
.record-state-mark[data-tone="yellow"] {
  --record-kind: var(--record-kind-yellow);
}
.coss-selection-marquee {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  background: var(--color-primary);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb,var(--color-primary) 15%,transparent);
  }
  box-shadow: 0 0 0 1px var(--color-card);
  @supports (color: color-mix(in lab, red, red)) {
    box-shadow: 0 0 0 1px color-mix(in srgb,var(--color-card) 70%,transparent);
  }
}
.record-state-mark[data-tone="red"] {
  --record-kind: var(--record-kind-red);
}
.record-state-mark[data-tone="blue"] {
  --record-kind: var(--record-kind-blue);
}
.record-views-swipe {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(100%,520px);
  margin-inline: auto;
}
.record-views-swipe>[data-swipe-deck] {
  width: 100%;
}
.record-views-swipe-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-card);
  padding: 20px;
  color: var(--color-card-foreground);
}
.record-views-swipe-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.record-views-swipe-card-group {
  color: var(--color-muted-foreground);
  font-size: .75rem;
  font-weight: 500;
}
.record-views-swipe-card-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
}
.record-views-swipe-card-detail {
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--color-muted-foreground);
  line-height: 1.55;
}
.record-views-swipe-card-tour {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  padding-top: 10px;
  color: var(--color-muted-foreground);
  font-size: .8125rem;
}
.record-views-swipe-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.record-views-swipe-help,.record-views-swipe-empty {
  margin: 0;
  color: var(--color-muted-foreground);
  font-size: .8125rem;
  text-align: center;
}
.record-views-design-empty {
  margin: 24px auto;
  color: var(--color-muted-foreground);
  font-size: .8125rem;
  text-align: center;
}
.record-views-design-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-card);
  padding: 8px 10px;
  color: var(--color-card-foreground);
  box-shadow: 0 1px 2px var(--color-foreground);
  @supports (color: color-mix(in lab, red, red)) {
    box-shadow: 0 1px 2px color-mix(in srgb,var(--color-foreground) 6%,transparent);
  }
}
.record-views-design-card[draggable=true] {
  cursor: grab;
}
.record-views-design-card[draggable=true]:active {
  cursor: grabbing;
}
.record-views-design-card:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
}
.record-views-design-card[data-size=large] {
  height: 100%;
  gap: 12px;
  border-radius: 16px;
  padding: 16px 18px;
  overflow: auto;
}
.record-views-design-card-picture {
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 16/10;
  background: var(--color-muted);
}
.record-views-design-card-picture>* {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.record-views-design-card-head {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.record-views-design-card-title {
  min-width: 0;
  height: auto;
  justify-content: flex-start;
  padding: 0;
  white-space: normal;
  text-align: left;
  overflow-wrap: anywhere;
  font-weight: 600;
  line-height: 1.35;
}
.record-views-design-card[data-size=large] .record-views-design-card-title {
  font-size: 1.125rem;
}
.record-views-design-card-detail {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: var(--color-muted-foreground);
  font-size: .8125rem;
  line-height: 1.5;
}
.record-views-design-card[data-size=large] .record-views-design-card-detail {
  -webkit-line-clamp: 8;
  font-size: .875rem;
}
.record-views-placed {
  display: grid;
  grid-template-columns: repeat(var(--placed-columns),minmax(200px,1fr));
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding: 12px var(--record-views-inset,16px) 24px;
}
.record-views-placed[data-side-labels=true] {
  grid-template-columns: minmax(96px,140px) repeat(var(--placed-columns),minmax(200px,1fr));
}
.record-views-placed-row {
  display: contents;
}
.record-views-placed-corner,.record-views-placed-column-label,.record-views-placed-row-label {
  color: var(--color-muted-foreground);
  font-size: .75rem;
  font-weight: 600;
}
.record-views-placed-column-label {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 4px 2px;
  background: var(--color-background);
}
.record-views-placed-row-label {
  align-self: start;
  padding: 8px 2px;
}
.record-views-placed-row-header {
  grid-column: 1/-1;
  margin-top: 12px;
}
.record-views-placed-cell {
  display: flex;
  min-height: 96px;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  border: 1px dashed transparent;
  border-radius: 12px;
  background: var(--color-muted);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb,var(--color-muted) 55%,transparent);
  }
  padding: 8px;
  transition: border-color .15s,background-color .15s;
}
.record-views-placed-cell[data-drop-target=true] {
  border-color: var(--color-ring);
  background: var(--color-ring);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb,var(--color-ring) 10%,var(--color-muted));
  }
}
.record-views-matrix-axes {
  display: block;
  line-height: 1.35;
}
.record-views-sprint-head {
  display: grid;
  grid-template-columns: auto auto minmax(80px,1fr);
  align-items: center;
  gap: 12px;
  font-size: .8125rem;
}
.record-views-sprint-title {
  font-weight: 600;
}
.record-views-sprint-count {
  color: var(--color-muted-foreground);
  font-variant-numeric: tabular-nums;
}
.record-views-placed-row-header[data-current=true] .record-views-sprint-title {
  color: var(--color-primary);
}
.record-views-calendar {
  display: flex;
  height: max(560px,calc(100dvh - 240px));
  min-height: 0;
  flex-direction: column;
  padding: 12px var(--record-views-inset,16px);
}
.record-views-carousel {
  padding: 12px var(--record-views-inset,16px);
}
.record-views-carousel .source-rotating-face {
  height: 330px;
}
.record-views-carousel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.record-views-document-section {
  margin: 8px 0 0;
  color: var(--color-muted-foreground);
  font-size: .8125rem;
  font-weight: 600;
}
@media (prefers-reduced-motion:reduce) {
  .record-views-placed-cell {
    transition: none;
  }
}
[data-control="audio-seek"]:focus-visible, [data-control="audio-volume"]:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
  border-radius: var(--radius-control);
}
.record-views-bar-actions:has(.record-views-toolbar-end) {
  max-width: min(60cqw, 52rem);
}
.record-views-toolbar-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
  min-width: 0;
}
.record-views-primary-actions, .record-views-display-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
  min-width: 0;
}
@container record-views-bar (max-width: 700px) {
  .record-views-bar-actions:has(.record-views-toolbar-end) {
    max-width: 100%;
  }
}
.sectioned-panels-host {
  height: 100%;
  min-height: 0;
  container-type: inline-size;
}
.sectioned-panels {
  display: grid;
  grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}
.sectioned-panels-navigation {
  overflow: auto;
  padding: 1rem .75rem;
  border-right: 1px solid var(--border-primary);
}
.sectioned-panels-group + .sectioned-panels-group {
  margin-top: 1.5rem;
}
.sectioned-panels-group-name {
  margin: 0 .5rem .5rem;
  font-size: .75rem;
  color: var(--text-muted);
}
.sectioned-panels-link {
  width: 100%;
  justify-content: flex-start;
  gap: .5rem;
  margin-top: .125rem;
}
.sectioned-panels-link[aria-current="page"] {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.sectioned-panels-main {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
}
.sectioned-panels-main:has(.sectioned-panels-close) {
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.sectioned-panels-close {
  display: flex;
  justify-content: flex-end;
  padding: .5rem .75rem 0;
}
.sectioned-panels-pages {
  min-width: 0;
  min-height: 0;
  overflow: auto;
}
.sectioned-panels-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  padding: .75rem 1rem 1rem;
  border-top: 1px solid var(--border-primary);
}
.sectioned-panels-step {
  display: grid;
  justify-items: start;
  gap: .125rem;
  height: auto;
  padding: .625rem .875rem;
  text-align: left;
}
.sectioned-panels-step[data-step="next"] {
  grid-column: 2;
  justify-items: end;
  text-align: right;
}
.sectioned-panels-step-direction {
  font-size: .75rem;
  color: var(--text-muted);
}
.sectioned-panels-step-name {
  font-weight: 500;
}
.sectioned-panels-page {
  height: 100%;
  min-height: 0;
}
.sectioned-panels-page[hidden] {
  display: none;
}
@container (max-width: 600px) {
  .sectioned-panels {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .sectioned-panels-navigation {
    border-right: 0;
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .sectioned-panels-group {
    flex: 1 1 11rem;
    min-width: 0;
  }
  .sectioned-panels-group + .sectioned-panels-group {
    margin-top: 0;
  }
}
.coss-ui .record-views-notes-popup {
  width: min(42rem, calc(100vw - 2rem));
  max-height: min(80vh, 48rem);
}
.record-views-edit-cell {
  display: grid;
  min-width: 0;
  gap: var(--t-spacing-1);
}
.record-views-edit-error {
  display: flex;
  align-items: center;
  gap: var(--t-spacing-2);
  color: var(--t-font-color-danger, var(--t-font-color-error, currentColor));
  font-size: var(--t-font-size-sm, 12px);
}
[data-collapse-labels] {
  container-type: inline-size;
  container-name: collapse-labels;
}
@container collapse-labels (max-width: 46rem) {
  [data-collapsible-extra] {
    display: none;
  }
}
@container collapse-labels (max-width: 34rem) {
  [data-collapsible-label] {
    display: none;
  }
}
@property --tw-translate-x {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-translate-y {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-translate-z {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-scale-x {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}
@property --tw-scale-y {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}
@property --tw-scale-z {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-pan-x {
  syntax: "*";
  inherits: false;
}
@property --tw-pan-y {
  syntax: "*";
  inherits: false;
}
@property --tw-pinch-zoom {
  syntax: "*";
  inherits: false;
}
@property --tw-space-y-reverse {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-space-x-reverse {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-divide-x-reverse {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-divide-y-reverse {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-gradient-position {
  syntax: "*";
  inherits: false;
}
@property --tw-gradient-from {
  syntax: "<color>";
  inherits: false;
  initial-value: #0000;
}
@property --tw-gradient-via {
  syntax: "<color>";
  inherits: false;
  initial-value: #0000;
}
@property --tw-gradient-to {
  syntax: "<color>";
  inherits: false;
  initial-value: #0000;
}
@property --tw-gradient-stops {
  syntax: "*";
  inherits: false;
}
@property --tw-gradient-via-stops {
  syntax: "*";
  inherits: false;
}
@property --tw-gradient-from-position {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 0%;
}
@property --tw-gradient-via-position {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 50%;
}
@property --tw-gradient-to-position {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-leading {
  syntax: "*";
  inherits: false;
}
@property --tw-font-weight {
  syntax: "*";
  inherits: false;
}
@property --tw-tracking {
  syntax: "*";
  inherits: false;
}
@property --tw-ordinal {
  syntax: "*";
  inherits: false;
}
@property --tw-slashed-zero {
  syntax: "*";
  inherits: false;
}
@property --tw-numeric-figure {
  syntax: "*";
  inherits: false;
}
@property --tw-numeric-spacing {
  syntax: "*";
  inherits: false;
}
@property --tw-numeric-fraction {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-ring-inset {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}
@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-backdrop-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-duration {
  syntax: "*";
  inherits: false;
}
@property --tw-ease {
  syntax: "*";
  inherits: false;
}
@property --tw-content {
  syntax: "*";
  initial-value: "";
  inherits: false;
}
@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-translate-x: 0;
      --tw-translate-y: 0;
      --tw-translate-z: 0;
      --tw-scale-x: 1;
      --tw-scale-y: 1;
      --tw-scale-z: 1;
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-pan-x: initial;
      --tw-pan-y: initial;
      --tw-pinch-zoom: initial;
      --tw-space-y-reverse: 0;
      --tw-space-x-reverse: 0;
      --tw-divide-x-reverse: 0;
      --tw-border-style: solid;
      --tw-divide-y-reverse: 0;
      --tw-gradient-position: initial;
      --tw-gradient-from: #0000;
      --tw-gradient-via: #0000;
      --tw-gradient-to: #0000;
      --tw-gradient-stops: initial;
      --tw-gradient-via-stops: initial;
      --tw-gradient-from-position: 0%;
      --tw-gradient-via-position: 50%;
      --tw-gradient-to-position: 100%;
      --tw-leading: initial;
      --tw-font-weight: initial;
      --tw-tracking: initial;
      --tw-ordinal: initial;
      --tw-slashed-zero: initial;
      --tw-numeric-figure: initial;
      --tw-numeric-spacing: initial;
      --tw-numeric-fraction: initial;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-backdrop-blur: initial;
      --tw-backdrop-brightness: initial;
      --tw-backdrop-contrast: initial;
      --tw-backdrop-grayscale: initial;
      --tw-backdrop-hue-rotate: initial;
      --tw-backdrop-invert: initial;
      --tw-backdrop-opacity: initial;
      --tw-backdrop-saturate: initial;
      --tw-backdrop-sepia: initial;
      --tw-duration: initial;
      --tw-ease: initial;
      --tw-content: "";
    }
  }
}

/*
 * The faces a look may name as its fonts (a theme's defaultPrimaryFontFamily and displayFontFamily tokens): the same
 * Recoleta (the trillion looks' display face), the system text face and Trillion (a Fraunces-based title face under the SIL OFL, kept but not worn by default). A page serves this folder beside its
 * stylesheet as fonts/ (scripts/build-workspace.mjs). */
@font-face { font-family: 'SF Pro Text'; src: url('/screen-files/1f:5f4d09520d8143cfad5c4ad135b9f636c72da4b65e2af734719c52ca6a830536.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'SF Pro Text'; src: url('/screen-files/1f:7d7440f4e8c85a8f261ea037c62c7eab8da651870400f7cd40515ae3e642f8cd.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'SF Pro Text'; src: url('/screen-files/1f:ac362cee621877578a2d51fcbf044b3e0c543a5b51403955da81af6e1aa54951.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Recoleta'; src: url('/screen-files/1f:b624fa03ed73428ce139f8966c54b96a7a8df4bec2f50fd5232ce9ce9b462844.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Recoleta'; src: url('/screen-files/1f:7d7025bf32a9fe50d4bca223f8aadf75434f4eed0ec60e2a89b69761285ef6ee.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Recoleta'; src: url('/screen-files/1f:0c861a4ca4f3ffd57ef9437a3cbe2d96fadde9feb922ef975626f91cf47d7f1c.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Trillion'; src: url('/screen-files/1f:6d04fb33cb8ff048c34fba0e8c11dd7501bcff29d946a324c8c4cb93a623ab86.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Trillion'; src: url('/screen-files/1f:5f310155a4f4c2ee2cdb96bd016993a45e60efdf52abdb8f34ebd83a29ff6907.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Trillion'; src: url('/screen-files/1f:3c91e0f66676d4f0a751561c14434f7dfff92f57cc507cfb82f87dd86b419521.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

/*
 * One look for a whole page. The shared screens draw with three palettes: the look's own roles (--bg-primary,
 * --text-primary, ...), the record views' Twenty tokens (--t-*), and the shared controls' component palette
 * (--color-*). On a page whose body carries `screen-look-page`, the other two read the chosen look, so a table is
 * never a white island on a paper page and a button never takes a colour the look did not choose. The text faces
 * follow the look's fonts (--font-primary for text, --font-display for titles). Same bridge as Expansion's
 * media-workspace.css hosted page, carried here as a shared part.
 */
/* The look alone decides light or dark (ApplyCurrentScreenLook sets data-look-scheme from the look's own ground):
 * marked important so a host that frames the page (an AI app's theme on the frame's root) cannot turn the page's
 * built-in colours, form controls and light-dark() values to its own scheme under the look's colours. */
html[data-look-scheme="light"] { color-scheme: light !important; }
html[data-look-scheme="dark"] { color-scheme: dark !important; }

/* The arrival wash takes the existing record-reveal pace. A theme's authored root
   property may replace it; ordinary pages need no test or host to inject a duration. */
:root { --motion-arrival: calc(2400ms * var(--motion-scale, 1)); }
@media (prefers-reduced-motion: reduce) { :root { --motion-scale: 0; } }

body.screen-look-page {
  background: var(--bg-primary);
  color: var(--text-primary);
  /* Muted words are still words. The raw look token is decorative and can fall below AA on a reading surface. */
  --text-muted: color-mix(in srgb, var(--text-primary) 67%, transparent);
  font-family: var(--font-primary, system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
  /* Shared overlay, status and sketch parts use this body-face role. Keep it bound
     to the selected look so their font shorthand never falls back to browser defaults. */
  --font-body: var(--font-primary, 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  --font-sans: var(--font-primary, system-ui, sans-serif);
  --t-font-family: var(--font-primary, inherit);
  /* Twenty's sizes are rems of its own 13px root; a page keeps its 16px root, so they are read as those same pixels
     here (a board card at 13px, not 16px). */
  --t-font-size-xxs: 8px;
  --t-font-size-xs: 11px;
  --t-font-size-sm: 12px;
  --t-font-size-md: 13px;
  --t-font-size-lg: 16px;
  --t-font-size-xl: 20px;
  --t-font-size-xxl: 24px;
  --t-background-primary: var(--glass-bg-primary);
  --t-background-secondary: var(--glass-bg-subtle);
  --t-background-tertiary: var(--glass-bg-hover);
  --t-background-transparent-light: var(--glass-bg-subtle);
  --t-font-color-primary: var(--text-primary);
  --t-font-color-secondary: var(--text-secondary);
  --t-font-color-tertiary: var(--text-secondary);
  --t-font-color-light: var(--text-muted);
  --t-border-color-light: var(--border-primary);
  --t-border-color-medium: var(--border-secondary);
  --t-accent-quaternary: var(--glass-bg-active);
  --t-box-shadow-light: none;
  --color-background: var(--glass-bg-primary);
  --color-foreground: var(--text-primary);
  /* Everything that floats over the work (menus, selects, popovers, hover cards) paints the look's one floating
     surface, the same --glass-bg-popover the shared Card popover and the Look editor name. */
  --color-popover: var(--glass-bg-popover);
  --color-popover-foreground: var(--text-primary);
  --color-card: var(--bg-surface);
  --color-card-foreground: var(--text-primary);
  --color-accent: var(--glass-bg-hover);
  --color-accent-foreground: var(--text-primary);
  --color-muted: var(--glass-bg-subtle);
  --color-muted-foreground: var(--text-secondary);
  --color-input: var(--border-secondary);
  --color-border: var(--border-secondary);
  --color-primary: var(--button-primary-bg);
  --color-primary-foreground: var(--button-primary-text);
  --color-secondary: var(--glass-bg-subtle);
  --color-secondary-foreground: var(--text-primary);
  --color-ring: var(--focus-ring-color);
  --color-destructive: var(--color-error);
  --color-destructive-foreground: var(--color-error);
  /* The app-navigation palette (--bg, --surface, --text, --line, ...) reads the look on :root in app-navigation.css. */
  /* The shared parts' surface steps (ui Container background primary/secondary/tertiary, floating windows, popovers,
     the empty pane's kept-screens bar) read the same look; no look defined them, so each painted transparent and
     whatever lay behind showed through. */
  --surface-primary: var(--bg-surface, var(--bg-primary));
  --surface-secondary: var(--glass-bg-subtle);
  --surface-tertiary: var(--glass-bg-hover);
}
/* The hover card (ui/show/surface-preview, the 21st.dev Hover Card) paints with the navigation palette's --surface;
   it floats over the work, so it wears the same floating surface as every other popover. */
body.screen-look-page .surface-preview { --surface: var(--glass-bg-popover); }

/* packages/screen-look/show/styles/landing-canvas-material.css
 *
 * The landing canvas: a warm off-white page, a film-grain layer over it, and a
 * soft fade at the bottom of the viewport. One owner for every landing that
 * wants this material; the Trillion site look imports it and a program landing
 * loads it directly.
 *
 * Grain is blended with soft-light, which changes nothing over pure white, so
 * the canvas color is part of the effect rather than decoration: a landing on a
 * #fff page shows no grain at all. `--surface-base` falls back to the value the
 * site tokens give it, so a page that does not load those tokens gets the same
 * canvas instead of an invalid color and no background.
 */

/* ---------------------------------------------------------------------------
 * LANDING FLAT SURFACE EXPERIMENT
 *
 * A reversible material switch for testing a canvas/grain-forward page language.
 * The race cards intentionally keep their existing material so the grain layer
 * can be judged independently.
 * --------------------------------------------------------------------------- */

[data-theme="paper"],
[data-theme$="-light"] {
  --landing-canvas-bg:
    color-mix(in srgb, var(--surface-base, #f5f5f5) 92%, #fbfaf6 8%);
}

.landing-page {
  background: var(--landing-canvas-bg);
  isolation: isolate;
  position: relative;
}

.landing-canvas-texture {
  --landing-canvas-grain-blend: soft-light;
  --landing-canvas-grain-opacity: 0.195;
  --landing-canvas-text-tooth-opacity: 0;
  contain: paint;
  inset: 0;
  isolation: isolate;
  pointer-events: none;
  position: fixed;
  z-index: var(--landing-canvas-texture-z-index, 900);
}

.landing-canvas-texture::before,
.landing-canvas-texture::after {
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.landing-canvas-texture::before {
  background-image:
    var(--landing-page-grain),
    var(--landing-page-grain),
    var(--landing-page-grain);
  background-position: 0 0, 83px 41px, 151px 97px;
  background-size: 128px 128px, 256px 256px, 96px 96px;
  filter: contrast(235%) brightness(1) grayscale(1);
  mix-blend-mode: var(--landing-canvas-grain-blend);
  opacity: var(--landing-canvas-grain-opacity);
  z-index: 2;
}

.landing-canvas-texture::after {
  background-image: var(--landing-page-grain);
  background-position: 37px 61px;
  background-size: 112px 112px;
  filter: contrast(260%) brightness(0.62) grayscale(1);
  mix-blend-mode: normal;
  opacity: var(--landing-canvas-text-tooth-opacity);
  z-index: 3;
}

.landing-viewport-bottom-fade {
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      color-mix(in srgb, var(--surface-base, #f5f5f5) 16%, transparent) 46%,
      color-mix(in srgb, var(--surface-base, #f5f5f5) 42%, transparent) 76%,
      color-mix(in srgb, var(--surface-base, #f5f5f5) 66%, transparent) 100%
    );
  bottom: 0;
  height: min(7vh, 58px);
  left: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  z-index: var(--landing-viewport-bottom-fade-z-index, 40);
}

[data-theme="paper"] .landing-canvas-texture,
[data-theme$="-light"] .landing-canvas-texture {
  --landing-canvas-grain-blend: soft-light;
  --landing-canvas-grain-opacity: 0.225;
}

[data-theme="midnight"] .landing-canvas-texture,
[data-theme="abyss"] .landing-canvas-texture,
[data-theme="monet"] .landing-canvas-texture {
  --landing-canvas-grain-blend: soft-light;
  --landing-canvas-grain-opacity: 0.15;
  --landing-canvas-text-tooth-opacity: 0.045;
}

/*
 * The composite surface classes the shared screens name (a pane's frame is `glass-surface`), from the screen-look
 * design system layer 2 (bitfield-packages screen-look show/styles/bitfield-site-global-look.css). Every value is a
 * look token, so a pane reads as a card on whichever look is chosen. */
/* Motion runs at full length unless the person asked for less: then every look duration (--motion-*, which the
   resolver writes as a multiple of this) shrinks to almost nothing, never to zero, so a part waiting on transitionend
   still hears it. */
:root { --motion-scale: 1; }
@media (prefers-reduced-motion: reduce) { :root { --motion-scale: 0.001; } }
/* The one focus ring (resolve-screen-look-palette.js resolveScreenLookFocus): the look's ink with a gap of the page's
   own colour, so it shows on every fill, the accent-filled strong button included. Zero specificity: a part that
   draws its own ring or none (a Tailwind ring-* or outline-none, .glass-input) keeps it, being in a later layer; anything else focused from the keyboard wears this
   one instead of the browser's own. */
@layer base {
  :where(:focus-visible) { outline: var(--focus-ring-width, 2px) solid var(--focus-ring-color, currentColor); outline-offset: var(--focus-ring-offset, 2px); }
  :where([aria-invalid="true"]:focus-visible) { outline-color: var(--focus-ring-danger-color, currentColor); }
}
/* A screen change crossfades (src/workspace/view-transition.mjs) at the look's own pace and curve; --motion-scale makes it
   near-instant for a person who asked for less motion (the helper does not start one at all then). */
@layer base {
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--motion-sheet, 300ms); animation-timing-function: var(--ease-move, ease); }
}
@layer components {
  .glass-surface {
    background: var(--glass-bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-card, 1rem);
    box-shadow: var(--surface-shadow, 0 1px 2px rgba(0, 0, 0, 0.04));
  }
  /* A transparent shared card frame: retain its parent's fill and shadow. */
  .glass-outline { border: 1px solid var(--glass-border); border-radius: var(--radius-card); }
  /* A typed field (the shared Input and Textarea): the look's field fill and line, its focus colour when focused. */
  .glass-input {
    background: var(--glass-bg-secondary, var(--glass-bg-primary));
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    border-radius: var(--radius-control, .5rem);
  }
  .glass-input::placeholder { color: var(--text-muted); }
  .glass-input:focus { outline: none; border-color: var(--focus-ring-color); box-shadow: var(--focus-ring); }
  .glass-nested { background: var(--glass-bg-secondary); border-radius: var(--radius-control, .5rem); }
  .glass-tertiary { background: var(--glass-bg-tertiary); border-radius: var(--radius-control, .5rem); }
  .glass-modal {
    background: var(--glass-bg-popover);
    backdrop-filter: var(--glass-backdrop); -webkit-backdrop-filter: var(--glass-backdrop);
    border-radius: var(--radius-card, 1rem);
    box-shadow: var(--elevation-4);
  }
  .glass-popover {
    background: var(--glass-bg-popover);
    backdrop-filter: var(--glass-backdrop); -webkit-backdrop-filter: var(--glass-backdrop);
    border-radius: var(--radius-control, .75rem);
    box-shadow: var(--elevation-3);
  }
  /* The island: a small surface that floats over other apps (the recording pill, in the page and in its Mac window), on
     the look's island ground, dark in every look so it reads over whatever is beneath it (Amie's and the Dynamic
     Island's black pill). Inside it the look's words, lines, fills, popover ground and strong action are re-pointed to
     the island's own, so every shared part drawn on it (Text, Button, Dropdown's trigger) reads without knowing it is on
     one. `.island-surface` is that re-pointing alone: a menu opened from an island is portaled out of it, so the shared
     Dropdown gives its popover this class and the menu wears the island too, never a light card under a black pill. */
  .glass-island, .island-surface {
    --text-primary: var(--words-on-island);
    --text-secondary: color-mix(in srgb, var(--words-on-island) 78%, transparent);
    --text-muted: color-mix(in srgb, var(--words-on-island) 62%, transparent);
    --border-primary: color-mix(in srgb, var(--words-on-island) 14%, transparent);
    --glass-bg-subtle: color-mix(in srgb, var(--words-on-island) 8%, transparent);
    --glass-bg-hover: color-mix(in srgb, var(--words-on-island) 12%, transparent);
    --glass-bg-active: color-mix(in srgb, var(--words-on-island) 16%, transparent);
    --glass-bg-popover: var(--ground-island);
    --glass-popover-background: var(--ground-island);
    --button-primary-bg: var(--words-on-island);
    --button-primary-text: var(--ground-island);
    --button-primary-bg-hover: color-mix(in srgb, var(--words-on-island) 86%, var(--ground-island));
    color: var(--words-on-island);
  }
  .glass-island {
    background: var(--ground-island);
    border-color: var(--border-primary);
  }
  /* A tooltip is a small popover of the worn look: the look's popover surface, its own ink and its own face and size,
     with a hairline in the look's line colour and its raised shadow, so it reads as part of the app in every look
     (references: Calendly's coach tip and AirOps' comment chip, light surfaces in the app's own type). */
  .floating-tooltip {
    background: var(--glass-bg-popover, var(--bg-surface));
    color: var(--text-primary);
    font-family: var(--font-primary, system-ui, sans-serif);
    font-size: var(--type-caption-size);
    line-height: var(--type-caption-leading);
    letter-spacing: var(--type-caption-tracking);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-control, .5rem);
    box-shadow: var(--elevation-2);
  }
}
/* CSS pins the view controls before the pin observer runs. Give them the pane's surface on every paint, including
   the first scrolled frame. Ground translucent looks the same way as an arrangement lock: ambience may show behind
   a pane, but record text must never show through its controls. Reference: 21st.dev Toolbar 19516 (surface anatomy;
   inspiration only, no copied code). */
.record-views-bar {
  background: linear-gradient(var(--glass-bg-primary, var(--t-background-primary)), var(--glass-bg-primary, var(--t-background-primary))), linear-gradient(var(--bg-surface, transparent), var(--bg-surface, transparent)), Canvas;
}
/* On a touch screen a typed field's text is never smaller than 16px: a phone browser zooms the whole page in when a
   smaller field takes focus and leaves it zoomed, so a card someone types into (Point at something, a reply) is cut off.
   Unlayered, so it outranks a field's own smaller size class; a field already larger keeps its size. */
@media (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), textarea, select, [contenteditable="true"], [contenteditable=""] {
    --specified-font-size: initial;
    font-size: max(16px, var(--specified-font-size, 1em));
  }
}
/* A step in front of the app (a plan choice, connecting an AI): the workspace remains visible through a quiet blur. */
.step-overlay { position: fixed; inset: 0; display: grid; place-items: center; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); box-sizing: border-box; }
.step-overlay__backdrop { position: absolute; inset: 0; background: rgb(17 24 32 / .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.step-overlay__panel { position: relative; box-sizing: border-box; width: min(1060px, 100%); max-height: 100%; overflow: auto; overscroll-behavior: contain; padding: clamp(18px, 3vw, 38px); border: 1px solid var(--border-primary, #ddd); border-radius: 24px; background: var(--paper); color: var(--text-primary, #161616); box-shadow: var(--elevation-4); }
.step-overlay__panel[data-width="reading"] { width: min(760px, 100%); }
.step-overlay__panel:focus { outline: none; }
.step-overlay__top { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 30px; }
.step-overlay__top h2 { margin: 0 0 8px; font: 700 clamp(1.6rem, 3vw, 2.35rem)/1.15 var(--font-headline, var(--font-body)); letter-spacing: var(--type-title-1-tracking); }
.step-overlay__top p { margin: 0; max-width: 56ch; color: var(--text-secondary, #555); font: 400 1rem/1.5 var(--font-body); }
.step-overlay__top .step-overlay__waiting { display: flex; align-items: center; gap: 12px; box-sizing: border-box; max-width: 56ch; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--border-primary, #ddd); border-radius: var(--radius-control, 12px); background: var(--glass-bg-secondary, #f7f5f1); color: var(--text-secondary, #555); font: 500 .9rem/1.45 var(--font-body); }
.step-overlay__waiting .loading-mark { flex: none; }
.step-overlay__close { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border-primary, #ddd); border-radius: 50%; background: var(--paper, #fff); color: var(--text-primary, #111); font: 26px/1 var(--font-body); cursor: pointer; }
.step-overlay__close:focus-visible { outline: none; box-shadow: var(--focus-ring); }
/* As many plans side by side as fit, each at least a readable width. */
.step-overlay__panel .comparison-table { margin-top: 28px; }
.step-overlay__message { margin: 16px 0 0; font: 500 1rem/1.45 var(--font-body); }
.step-overlay__message[role="alert"] { color: var(--danger, #a12b2b); }
@media (max-width: 680px) {
  .step-overlay { padding: 8px; padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .step-overlay__panel, .step-overlay__panel[data-width="reading"] { width: 100%; max-height: 100%; border-radius: 16px; padding: 18px; }
  .step-overlay__top { margin-bottom: 18px; }
}
/* The Mac recording window (tools/record-audio/show/RecordingPill.tsx) is a floating panel that shows only the island
   it holds: its page has no ground or scroll of its own, so the panel is exactly the pill over the other apps. */
html[data-recording-window], html[data-recording-window] body { background: transparent; margin: 0; overflow: hidden; }

/* A check beside text that can wrap sits on the text's first line, centred on it. A row that holds a check and its words
   marks itself data-control-row and sets the words' size and leading on the row (--first-line-size, --first-line-leading,
   which its words read too); the check then centres on one line of that leading with no typed offset: 1lh is the row's
   own line height, --check-size the check's. The check's shape is --radius-check, a token of the look. */
:root { --check-size: 1.125rem; }
[data-control-row] { align-items: flex-start; }
[data-control-row] > [data-slot='checkbox'] { margin-block-start: calc((1lh - var(--check-size)) / 2); }

/* Product placement only; component appearance is assistant-ui's source theme. */
/* The navigation palette reads the worn look on the root itself, so the page's own ground (html) is the look's ground
   too: a fixed light copy here painted a #fbfaf8 band above "Your workspace could not open" on every look. The look
   alone decides light or dark (look-bridges.css). */
:root{--bg:var(--bg-primary);--surface:var(--bg-surface);--surface-soft:var(--glass-bg-subtle);--surface-strong:var(--glass-bg-hover);--text:var(--text-primary);--muted:var(--text-secondary);--faint:var(--text-muted);--line:var(--border-primary);--line-strong:var(--border-secondary);--accent:#6c4cf4;--accent-soft:#eee9ff;--green:#2fb69b;--danger:#cc645e;--shadow:0 18px 55px rgba(66,57,44,.08);--rail:192px}
*{box-sizing:border-box}
html,body{min-height:100%;background:var(--bg);color:var(--text)}
body{margin:0;min-height:100vh;min-height:100svh;font-family:var(--font-primary,"SF Pro Text",-apple-system,sans-serif);-webkit-font-smoothing:antialiased}
.shell{min-height:100vh;min-height:100svh;margin-left:var(--rail)}
.shell main{width:min(1400px,calc(100vw - var(--rail) - 48px));margin:0 auto;padding:24px 0 72px}
.page{display:none}.page.active{display:block}
.page-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 0 18px;border-bottom:1px solid var(--line)}
.page-title{margin:0;font:600 24px/1.3 var(--font-display,"SF Pro Text",-apple-system,sans-serif)}
.page-card{margin-top:20px;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.connection{display:flex;align-items:center;gap:8px;margin-bottom:14px;color:var(--muted);font-size:12px}.connection-dot{width:7px;height:7px;border-radius:50%;background:var(--green)}.connection[data-state=drive_disconnected] .connection-dot{background:var(--faint)}

.app-navigation{position:fixed;inset:0 auto 0 0;z-index:40;width:var(--rail)}

.app-navigation [data-slot=sidebar-wrapper]{min-height:100dvh}
.app-navigation [data-slot=sidebar-container]{border:0}
.app-navigation [data-sidebar-collection-branch]{margin-left:4px;padding-left:12px}

.app-navigation .sidebar-add-list-trigger{display:flex;width:100%;justify-content:flex-start;gap:10px;min-height:36px;padding-inline:12px;border:0;background:transparent;color:var(--text-secondary);text-align:left;transition:background-color 120ms ease,color 120ms ease}
.app-navigation .sidebar-add-list-trigger:hover,.app-navigation .sidebar-add-list-trigger:focus-visible{background:color-mix(in srgb,var(--text-primary) 8%,transparent);color:var(--text-primary)}
.app-navigation .sidebar-add-list-trigger:focus-visible{outline:2px solid var(--border-focus);outline-offset:2px}
.sidebar-list-popover{width:min(340px,calc(100vw - 24px));max-height:min(70vh,560px);overflow:auto}
/* The app shell and rail start below the traffic-light/titlebar hit area. */

.source-conversation [data-slot=sidebar-content]{padding-top:var(--native-titlebar-inset,8px)}
.source-conversation [data-slot=sidebar-group],.source-conversation [data-slot=sidebar-footer]{padding-inline:12px}
.source-conversation [data-slot=sidebar-menu]{gap:4px}
.source-conversation [data-slot=sidebar-menu-button]{min-height:36px;padding-inline:12px}

/* Page transforms become containing blocks for fixed contextual tools even
   after their animation finishes. Navigation must never pull actions into the
   page scroller. */
.page.active{animation:none!important;transform:none!important}
@media(max-width:767px){
 :root{--rail:0px}
 .app-navigation{inset:8px auto auto 8px;width:auto}
 
 .app-navigation [data-slot=sidebar-wrapper]{min-height:0}
 
 
 .shell{margin-left:0;padding-bottom:0}
 .shell main{width:calc(100% - 32px);padding-top:56px}
}
/* The embedded conversation shares the page canvas; only its input is a surface. */
.source-conversation[data-layout=inline],
.source-conversation[data-layout=inline] .aui-thread-root,
.source-conversation[data-layout=inline] .aui-thread-viewport-footer {background:transparent}

/* Geometry for the split arranger's resize gutters.
 *
 * Why this file exists
 *   SplitTreeArranger sizes its gutter and grab area with Tailwind utilities
 *   (w-3, h-full, -left-1.5). A host whose compiled CSS does not happen to
 *   include those exact utilities gets a gutter that is present, focusable and
 *   zero pixels wide. Measured in the Expansion app: the grab area reported
 *   width 0, elementFromPoint at the boundary returned the flex row behind it,
 *   and the panes could not be resized at all. The layout utilities on the same
 *   element resolved fine, which is what made it look like a pointer-events
 *   problem rather than a missing rule.
 *
 * Why it keys on the split container and cursor class
 *   The arranger marks split containers with data-split-id and their direct
 *   gutters with cursor-col-resize or cursor-row-resize. Scoping to direct
 *   children keeps these geometry rules off table-column and sidebar handles.
 *
 * Why the grab area is wider than the rail
 *   The rail is two pixels because a thicker one is visual noise between panes.
 *   Two pixels is far below what anyone can reliably hit, so the transparent
 *   grab area is twelve, centred on the rail. This is the standard split-pane
 *   arrangement and the reason the arranger draws two elements rather than one.
 */

/* The gutter itself: a zero-size flex child that positions its own children. */
[data-split-id] > [class*='cursor-col-resize'],
[data-split-id] > [class*='cursor-row-resize'] {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

[data-split-id] > [class*='cursor-col-resize'] { width: 0; cursor: col-resize; }
[data-split-id] > [class*='cursor-row-resize'] { height: 0; cursor: row-resize; }

/* First child: the transparent grab area, centred on the boundary. */
[data-split-id] > [class*='cursor-col-resize'] > :first-child,
[data-split-id] > [class*='cursor-row-resize'] > :first-child {
  position: absolute;
}

[data-split-id] > [class*='cursor-col-resize'] > :first-child {
  width: 12px;
  height: 100%;
  left: -6px;
}

[data-split-id] > [class*='cursor-row-resize'] > :first-child {
  height: 12px;
  width: 100%;
  top: -6px;
}

/* Second child: the rail, shown only while the gutter is hovered or dragged.
 * Opacity is animated by the component, so this rule only gives it a size and
 * a position to animate. */
[data-split-id] > [class*='cursor-col-resize'] > :nth-child(2) {
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
}

[data-split-id] > [class*='cursor-row-resize'] > :nth-child(2) {
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
}

/* A pane's screen reflows to the pane's own width.
 *
 * Measured on a 390px phone (2026-09-30): with the list docked, a pane was left
 * about 130px wide and its words broke one per line, some mid-word. Each pane's
 * body is a size container, so a screen inside it reflows by the width it is
 * actually given (a narrow pane on a desktop behaves the same as a phone), and
 * its content lays out at the pane's own width, never cut: in a pane under
 * 22rem headings step down a size, fields shrink, and text wraps between words.
 */
[data-screen-arrangement-tab-panel] {
  container: pane / inline-size;
  overflow-x: auto;
}

@container pane (max-width: 22rem) {
  [data-screen-arrangement-tab-panel] > * {
    --font-size-display: 1.5rem; --font-size-heading-2xl: 1.375rem; --font-size-heading-xl: 1.25rem; --font-size-heading-lg: 1.125rem;
  }
  [data-screen-arrangement-tab-panel] :is(p, li, span, h1, h2, h3, h4) { overflow-wrap: break-word; word-break: normal; hyphens: manual; }
  [data-screen-arrangement-tab-panel] :is(input, textarea, select) { min-width: 0; max-width: 100%; }
}

/* Scrolling in any direction, handed outward.
 *
 * A list, a table or a document inside a pane scrolls first; at its end the move goes on to its pane, then to the
 * window's arrangement, which keeps it (contain) so the page itself never bounces. Screens mark their own scrollers
 * overscroll-behavior: contain to stop a page bounce; inside the arrangement that would stop a finger at the list's
 * end instead of moving the arrangement, so inner scrollers chain here. The arrangement takes pinch itself
 * (canvas-gestures.ts), so the browser's own page zoom does not start over it.
 */
[data-arranger='split-tree'] {
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
}
[data-arranger='split-tree'] * {
  overscroll-behavior: auto !important;
}

/* A screen that draws at its own height (a card) marks its root data-fits-content; in a pane drawn at its content's
 * length (a split size of 0, SplitTreeArranger FitsContentLength) it keeps that height instead of stretching to the
 * pane, so the pane can be measured from it. */
[data-fits-content] {
  flex: none;
  height: auto;
  min-height: 0;
}

/* A screen with leads (src/workspace/screen-own-arrangement.ts invariant 6): the leads sit above its arrangement and
   stay in view while the arrangement scrolls under them; a lead with nothing in it takes no room. */
[data-has-leads] { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.screen-leads { flex: none; max-height: 55%; overflow-y: auto; overscroll-behavior: contain; }
.screen-lead:not(:empty) { padding: 0.75rem 1rem 0.25rem; }
.screen-leads-body { flex: 1 1 auto; min-height: 0; position: relative; }
/* Arranged controls use the same pane engine, with space around each live piece. */
.arranged-contents [data-arranged-content-piece]:not([hidden]) {
  padding-block: var(--arranged-content-spacing, .375rem);
}
.arranged-contents [data-arranged-content-piece][hidden] { display: none !important; }

/* A placement drag belongs to the pane's drop owner. Resize hit areas remain
 * available for ordinary pointer/keyboard resizing and yield during placement. */
[data-arranger='split-tree'][data-arrangement-placing='true'] [data-pane-cross-edge],
[data-arranger='split-tree'][data-arrangement-placing='true'] [data-pane-cross-edge] *,
[data-arranger='split-tree'][data-arrangement-placing='true'] [data-pane-resize-edge],
[data-arranger='split-tree'][data-arrangement-placing='true'] [data-pane-resize-edge] * {
  pointer-events: none;
}

/* Navigation previews and live badges. Hover preview of a screen (packages/ui/show/surface-preview/SurfacePreviewCard.tsx).
   The card is opaque on the screen-look surface token, sized for a readable
   glance at another screen's live content, and grows from the side it opens
   toward. References: 21st.dev #11873 and #221 "Hover Card" (fade + zoom from
   the trigger side); Mobbin Linear inbox density. */

.surface-preview{box-sizing:border-box;width:min(360px,calc(100vw - 24px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)));height:min(440px,calc(100dvh - 32px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)),var(--available-height,440px));display:flex;flex-direction:column;overflow:hidden;
  border-radius:14px;background:var(--surface,var(--color-popover,#13151a));color:var(--text,var(--color-foreground,#eee));
  border:1px solid var(--line-strong,color-mix(in srgb,var(--color-foreground,#eee) 12%,transparent));
  box-shadow:0 24px 60px -18px rgb(0 0 0/.55),0 2px 8px -2px rgb(0 0 0/.28);
  transform-origin:var(--transform-origin);transition:opacity var(--motion-fast) var(--ease-enter),transform var(--motion-base) var(--ease-snap)}
.surface-preview[data-starting-style],.surface-preview[data-ending-style]{opacity:0;transform:scale(.96)}
.surface-preview[data-side="right"][data-starting-style],.surface-preview[data-side="right"][data-ending-style]{transform:translateX(-6px) scale(.97)}
.surface-preview[data-side="left"][data-starting-style],.surface-preview[data-side="left"][data-ending-style]{transform:translateX(6px) scale(.97)}
.surface-preview-heading{flex:none;display:flex;align-items:center;justify-content:flex-start;gap:4px;width:100%;height:36px;padding:0 6px 0 8px;border-radius:0;
  border-bottom:1px solid var(--line,color-mix(in srgb,var(--color-foreground,#eee) 8%,transparent));font-size:12.5px;font-weight:600}
.surface-preview-open{flex:1;min-width:0;display:flex;align-items:center;justify-content:flex-start;gap:8px;height:34px;padding:0 4px;border-radius:0;font-size:inherit;font-weight:inherit}
.surface-preview-dismiss{flex:none;width:30px;height:30px}
.surface-preview-label{flex:1;min-width:0;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.surface-preview-open-mark{width:14px;height:14px;opacity:.55;transition:opacity .15s,transform .15s}
.surface-preview-heading:hover .surface-preview-open-mark{opacity:1;transform:translate(1px,-1px)}
.surface-preview-body{position:relative;flex:1 1 auto;min-height:0;overflow:hidden}
.surface-preview-body>*{height:100%}
/* Glance mode: a short summary sized to its content (Tana flyout sections,
   Basecamp activity lines, Mintlify one-line status plus action). */
.surface-preview[data-mode="glance"]{height:auto;max-height:min(440px,calc(100vh - 32px));max-height:min(440px,calc(100dvh - 32px));width:min(320px,calc(100vw - 24px))}
.surface-preview[data-mode="glance"] .surface-preview-body{overflow-y:auto}
.surface-preview[data-mode="glance"] .surface-preview-body>*{height:auto}
.surface-glance{display:flex;flex-direction:column;gap:10px;padding:10px 12px 12px}
.surface-glance-summary{margin:0;font-size:12.5px;font-variant-numeric:tabular-nums;color:var(--muted,var(--color-muted-foreground,#9298a6))}
.surface-glance-summary[aria-busy="true"]{opacity:.7}
.surface-glance-description{margin:0;font-size:12.5px;line-height:1.45;color:var(--muted,var(--color-muted-foreground,#9298a6))}
.surface-glance-group{display:flex;flex-direction:column;gap:4px}
.surface-glance-label{display:flex;align-items:center;gap:6px;margin:0;font-size:11px;font-weight:650;color:var(--faint,var(--color-muted-foreground,#888))}
.surface-glance-live{width:6px;height:6px;border-radius:999px;background:var(--notification-tone-blue,#6aa8ff)}
.surface-glance-list{display:flex;flex-direction:column}
.surface-glance-loading{display:grid;gap:8px;padding-block:2px}
.surface-glance-loading [data-slot=skeleton]{height:10px;border-radius:999px;background:color-mix(in srgb,var(--text,var(--color-foreground,#eee)) 12%,transparent);animation:none}
.surface-glance-skeleton-title{width:42%;max-width:132px}
.surface-glance-skeleton-detail{width:76%;max-width:236px;opacity:.72}
.surface-glance-retry{display:flex;align-items:center;justify-content:space-between;gap:12px}
.surface-glance-list{gap:2px;margin-inline:-6px}
.surface-glance-item [data-slot=listing-card]{border-color:transparent;background:transparent;box-shadow:none;padding-inline:6px;min-height:40px;border-radius:10px}
.surface-glance-item [data-slot=listing-card][role=link]:hover,.surface-glance-item [data-slot=listing-card][role=link]:focus-visible{background:var(--glass-bg-hover,color-mix(in srgb,var(--color-foreground,#eee) 7%,transparent))}
.surface-glance-item [data-slot=listing-card] [data-listing-line]{min-width:0}
.surface-glance-item-controls{display:flex;align-items:center;gap:2px;opacity:.55;transition:opacity .15s}
.surface-glance-item:hover .surface-glance-item-controls,.surface-glance-item:focus-within .surface-glance-item-controls{opacity:1}
@media(hover:none){.surface-glance-item-controls{opacity:1}}
.surface-glance-inside{display:flex;flex-direction:column}
.surface-glance-inside-heading{display:flex;align-items:center;gap:6px;padding:8px 8px 0}
.surface-glance-inside-title{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;font-weight:600}
.surface-preview-actions{flex:none;display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:6px 8px;border-top:1px solid var(--line,color-mix(in srgb,var(--color-foreground,#eee) 8%,transparent))}
.surface-preview-actions>[data-slot=button]{flex:0 0 auto;min-height:28px}
.surface-preview-actions svg{width:14px;height:14px;opacity:.8}

@media(prefers-reduced-motion:reduce){.surface-preview,.surface-preview *{transition:none!important;animation:none!important}}

/* Live badge on a collapsed rail icon (ui/show/surface-badges, surface DATA
   `badge_source`), drawn with the mark its kind has in
   tools/sidebar/read-data/sidebar-badge-marks.json. Red is kept for
   notifications: an unread notification is a small red dot at the icon's
   corner; a number there is the same quiet grey as on the open sidebar. */
[data-sidebar-activate][data-live-badge]{position:relative}
.sidebar-rail-badge.sidebar-rail-badge{position:absolute;top:2px;left:calc(50% + 4px);min-width:15px;height:15px;padding:0 4px;border-radius:var(--radius-chip, 0.375rem);display:grid;place-items:center;
  font-size:9.5px;font-weight:700;line-height:1;color:var(--text-tertiary);background:var(--glass-bg-hover);
  box-shadow:0 0 0 2px var(--surface,var(--color-popover,#13151a));pointer-events:none}
.sidebar-rail-dot.sidebar-rail-dot{position:absolute;top:6px;left:calc(50% + 5px);width:8px;height:8px;
  box-shadow:0 0 0 2px var(--surface,var(--color-popover,#13151a));pointer-events:none}
.sidebar-row-dot.sidebar-row-dot{width:8px;height:8px}
/* Red is for notifications (status error); a dot drawn in a state's tone keeps the StatusDot colour it was given. */
.sidebar-rail-dot.sidebar-rail-dot[data-status=error],.sidebar-row-dot.sidebar-row-dot[data-status=error]{background:var(--notification-tone-red,#e5484d)}

/* A record's hover preview (packages/ui/show/hover-preview HoverPreview, used by record-views): the record's
   content screen, the name and the fields the caller marks `preview`, on the same opaque surface as the screen preview. References: 21st.dev
   #11873 and #221 "Hover Card"; Google Ads video template cards (https://mobbin.com/screens/e9428e4e-eb35-492f-a3dd-acb3475b36fd)
   and Descript's media cards (https://mobbin.com/screens/9859433a-7969-405c-8850-00bdbca467bd) for picture-first
   hierarchy with a short meta list under the name. */
.record-preview{box-sizing:border-box;width:min(580px,calc(100vw - 24px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)));max-height:min(76vh,680px,var(--available-height,680px));overflow:auto;display:flex;flex-direction:column;gap:8px;padding:12px;
  border-radius:14px;background:var(--surface,var(--color-popover,#13151a));color:var(--text,var(--color-foreground,#eee));
  border:1px solid var(--line-strong,color-mix(in srgb,var(--color-foreground,#eee) 12%,transparent));
  box-shadow:0 24px 60px -18px rgb(0 0 0/.55),0 2px 8px -2px rgb(0 0 0/.28);
  transform-origin:var(--transform-origin);transition:opacity var(--motion-fast) var(--ease-enter),transform var(--motion-base) var(--ease-snap)}
.record-preview[data-starting-style],.record-preview[data-ending-style]{opacity:0;transform:scale(.96)}
/* The name keeps room to read as lines of words: a heading fact beside it shrinks to the room left (its own words
   cut with an ellipsis) and moves under the name when even that is too narrow, never squeezing the name to one letter
   a line beside a fact held at its whole one-line width. */
.record-preview-heading{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0}
.record-preview-heading-fact{flex:0 1 auto;min-width:0;max-width:100%;overflow:hidden}
.record-preview-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.record-preview-title{flex:1 1 12rem;min-width:0;margin:0;font-size:13px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
/* A page's record facts (record-views RecordFacts): the same name/value rows as the preview's, as a quiet two-column
   grid on the page itself, names in the look's muted colour and values in its text colour. */
.record-facts{display:grid;grid-template-columns:fit-content(40%) minmax(0,1fr);align-items:baseline;gap:8px 24px;margin:0;font-size:13px;line-height:1.5}
.record-facts .record-preview-field dt{min-width:0;overflow-wrap:anywhere}
.record-facts .record-preview-field dd{color:var(--color-foreground,inherit)}
.record-preview-field{display:contents}
.record-preview-field dt{color:var(--muted,var(--color-muted-foreground,#9298a6))}
.record-preview-field dd{display:flex;flex-wrap:wrap;gap:4px;min-width:0;margin:0}
.record-preview-field[data-kind="excerpt"] dt,.record-preview-field[data-kind="excerpt"] dd{grid-column:1/-1}
.record-preview-field[data-kind="excerpt"] dd{margin-top:-4px}
.record-preview-field[data-kind="transcript"] dt,.record-preview-field[data-kind="transcript"] dd{grid-column:1/-1}
.record-preview-field[data-kind="transcript"] dd{margin-top:-4px}
.record-preview-transcript{max-height:min(34vh,320px);overflow:auto;overscroll-behavior:contain;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;scrollbar-gutter:stable}
.record-preview-transcript:focus-visible{outline:2px solid var(--notification-tone-blue,#6aa8ff);outline-offset:2px}
/* A record's first useful facts stay visible on its surface; the rest open from Details on the look's inset surface. */
.record-preview .record-preview-facts{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:6px 14px;padding:10px 12px;border-radius:10px;font-size:12px;line-height:1.5;box-shadow:none;background:var(--color-muted,rgba(127,127,127,.08));animation:record-preview-facts-in .16s ease-out}
.record-preview .record-preview-facts::before{display:none}
.record-preview .record-preview-facts[data-priority="primary"]{border-top:1px solid var(--line-strong,color-mix(in srgb,var(--color-foreground,#eee) 12%,transparent));border-radius:0;background:transparent;padding:10px 2px 4px;font-size:13px;animation:none}
.record-preview .record-preview-facts[data-priority="primary"] dd{line-height:1.45}
@keyframes record-preview-facts-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.record-preview .record-preview-facts{animation:none}}
.record-preview-info{color:var(--muted,var(--color-muted-foreground,#9298a6))}
.record-preview-info[data-open]{color:var(--color-foreground,currentColor);background:var(--color-accent,rgba(127,127,127,.12))}
/* A text excerpt (record-views `excerpt` field kind, e.g. a document's first lines): quoted and held to four lines. */
.record-view-excerpt{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;color:var(--text,var(--color-foreground,#eee))}
.record-view-excerpt::before{content:"\201C"}
.record-view-excerpt::after{content:"\201D"}
.record-view-excerpt:empty{display:none}

/* A note left on a sidebar row or list (tools/ui/show/surface-notes, written by the person's AI through
   note_in_sidebar). Highlight: the row is tinted in the look's accent (never a bar down its side); a message alone
   adds only a small accent dot. Its message sits at the top of the row's hover card, above the look at the screen.
   References: Dropbox Dash's accent dot on a sidebar row (https://mobbin.com/screens/89fd06da-976c-4c67-a665-e0072e01d61c),
   AirOps' quiet count beside Inbox (https://mobbin.com/screens/417496b0-1dfd-495d-8e13-134bfc93eeea). */
[data-sidebar-surface-id][data-sidebar-note]{position:relative}
[data-sidebar-surface-id][data-sidebar-note=highlight] [data-sidebar-activate]{background:color-mix(in srgb,var(--accent,#3b82f6) 13%,transparent)}
[data-sidebar-surface-id][data-sidebar-note=message] [data-sidebar-activate]::after{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--accent,#3b82f6)}
[data-sidebar-section-id][data-sidebar-note=highlight]>.sidebar-section-heading{border-radius:var(--radius-control,8px);background:color-mix(in srgb,var(--accent,#3b82f6) 13%,transparent)}
.sidebar-list-note{display:block;margin:-2px 0 4px;color:var(--text-secondary,inherit)}
.surface-preview-note{flex:none;display:flex;flex-direction:column;gap:2px;margin:0 8px 8px;padding:8px 10px;border-radius:10px;
  background:color-mix(in srgb,var(--accent,#3b82f6) 10%,transparent);border:1px solid color-mix(in srgb,var(--accent,#3b82f6) 24%,transparent)}
.surface-preview-note-by{font-size:11px;font-weight:600;letter-spacing:.01em;color:var(--text-secondary,inherit)}
.surface-preview-note-message{margin:0;font-size:13px;line-height:1.45;color:var(--text,inherit)}

/* A sidebar row drawn in a colour of the shared palette (surface DATA `sidebar_colour`, or the person's or their AI's
   change_sidebar colour): the icon and name take the hue and the row a faint wash of it; `--record-kind` comes from
   `[data-colour]` in coss-workspace.css, so it reads right in every look. */
[data-sidebar-surface-id][data-colour] [data-sidebar-activate]{color:var(--record-kind);background:color-mix(in srgb,var(--record-kind) 10%,transparent)}
[data-sidebar-surface-id][data-colour] [data-sidebar-activate]:hover{background:color-mix(in srgb,var(--record-kind) 18%,transparent)}
/* The same colour on the empty pane's tile for that screen (PickerTile `colour`, from the same DATA). */
[data-picker-tile][data-colour]:not([data-picker-tile-layout=row]){border-color:color-mix(in srgb,var(--record-kind) 45%,transparent);background:color-mix(in srgb,var(--record-kind) 9%,transparent)}
[data-picker-tile][data-colour]:not([data-picker-tile-layout=row]) svg{color:var(--record-kind)}
/* An open sidebar list's body holds the guide beside its rows (nesting-guide.css), down the column a row's move grip
   shows in on hover, so the grip sits on it and the rows' own highlight never covers it. */
.sidebar-list-body{position:relative;--nesting-guide-left:10.5px}
/* A row's children start below its label. Saved rows also reserve the shared move-grip gutter. */
.sidebar-owned-navigation{padding-inline-start:16px}
.sidebar-owned-navigation[data-list-member]{padding-inline-start:56px}

/* Shared notification appearance: stacked toasts, live progress and the
   notification center panel (an ordinary screen, and its compact hover preview). Structure and behaviour live in packages/ui/show/notifications
   and packages/ui/show/coss/ui/toast.tsx; this file only decides how they look.
   Tones are named by ui/show/notifications/notification-kinds.json; add a tone here, never a kind. A notification itself
   is the shared glance row (listing-card.css draws its tile, ring, title, chips, value and buttons); this file draws the
   toast stack, the center around the rows, the unread dot and the close control.
   Anatomy references: 21st.dev #2527 (progress ring glyph), #28243 (tone accent,
   inline Undo), #27135 and #8245 (All/Unread, grouped rows);
   Mobbin Dropbox/Supabase upload trays, Linear inbox, GitHub notifications,
   an activity feed grouped by date (full list: ui/show/notifications/README.md). */

:root{
  --notification-tone-blue:#6aa8ff;--notification-tone-green:#4fcf94;--notification-tone-red:#ff6b6b;
  --notification-tone-yellow:#f2c14e;--notification-tone-purple:#b08cff;--notification-tone-neutral:#a3a9b1;
  --notification-spring:var(--ease-overshoot);--notification-ease:var(--ease-enter);
}
[data-tone="blue"]{--notification-tone:var(--notification-tone-blue)}
[data-tone="green"]{--notification-tone:var(--notification-tone-green)}
[data-tone="red"]{--notification-tone:var(--notification-tone-red)}
[data-tone="yellow"]{--notification-tone:var(--notification-tone-yellow)}
[data-tone="purple"]{--notification-tone:var(--notification-tone-purple)}
[data-tone="neutral"]{--notification-tone:var(--notification-tone-neutral)}

/* Integrate the source viewport with app dialogs and device safe areas. The
   stack sits above floating panels and picture-in-picture (layer-order 9998)
   and below dialogs (10000). */
.coss-ui [data-slot="toast-viewport"]{z-index:var(--layer-notification,9999);--toast-inset:max(16px,env(safe-area-inset-bottom));pointer-events:none}
/* Notifications stay at the window edge. Where they would cover a docked floating
   control, the UI owner (keepBesideFloating) gives them room beside it, or lift
   above it only when there is no room; these turn that answer into the sides and
   the bottom. */
.coss-ui [data-slot="toast-viewport"]{width:calc(100% - var(--toast-inset)*2 - var(--floating-room-left,0px) - var(--floating-room-right,0px))}
.coss-ui [data-slot="toast-viewport"][data-position*="bottom"]{bottom:calc(var(--toast-inset) + var(--floating-room-lift,0px))}
.coss-ui [data-slot="toast-viewport"][data-position*="left"]{left:calc(var(--toast-inset) + var(--floating-room-left,0px))}
.coss-ui [data-slot="toast-viewport"][data-position*="right"]{right:calc(var(--toast-inset) + var(--floating-room-right,0px))}
.coss-ui [data-slot="toast-viewport"][data-position*="center"]{left:calc(50% + (var(--floating-room-left,0px) - var(--floating-room-right,0px))/2)}
.coss-ui [data-slot="toast-viewport"]>div{pointer-events:auto}
.coss-ui [data-slot="toast-title"]{overflow-wrap:anywhere;font-size:inherit;line-height:inherit;margin:0}

/* Card */
/* Opaque on the screen-look surface token; cards behind the front one darken
   slightly so the stack reads as depth, never as see-through. */
/* Its corner follows the tile in it (screen-look nested-corners.css): the tile's 8px corner plus the 16px from the card's
   edge to the tile, so the two curves run parallel instead of a tight tile in a loose card. */
.notification-root{overflow:hidden;--corner-held:8px;--corner-inset:16px;border-radius:var(--corner-out,24px)!important;
  background:color-mix(in srgb,var(--surface,var(--color-popover,#13151a)) calc(100% - 4%*min(var(--toast-index,0),3)),#000)!important;
  color:var(--text,var(--color-foreground,#eee));border-color:color-mix(in srgb,var(--color-foreground,#eee) 10%,transparent)!important;
  box-shadow:0 1px 0 color-mix(in srgb,#fff 5%,transparent) inset,0 12px 32px -12px rgb(0 0 0/.55),0 2px 6px -2px rgb(0 0 0/.35)!important}
.notification-root[data-expanded]{background:var(--surface,var(--color-popover,#13151a))!important}
.notification-card{position:relative;z-index:1;padding:4px}
/* Each notification is the shared glance row (tools/ui/show/listing-card); the toast and the center row draw its edge
   and surface, so the row inside them is bare. */
.notification-card [data-slot="listing-card"],.notification-center-row [data-slot="listing-card"]{border:0;background:transparent;box-shadow:none}
/* A notification reads whole, as a notification (pairs/04-notification): its tile, then the title with when after a bar,
   its one short line under them (up to two lines, never cut to nothing), and its buttons under that, lined up with the
   words. The glance row stays one line everywhere else; only the toast and the center stack it. */
:is(.notification-card,.notification-center-row) [data-form="row"]{align-items:flex-start;padding-block:10px}
:is(.notification-card,.notification-center-row) [data-form="row"] [data-listing-line]{height:auto;min-height:36px;align-items:flex-start;flex-basis:100%;flex-wrap:wrap;row-gap:6px}
/* The words get the line beside the tile (and the percent at its end); who has it and its state go under them. */
:is(.notification-card,.notification-center-row) [data-form="row"] [data-listing-line]>p:not([data-listing-value]){order:1;flex:1 1 calc(100% - 112px)}
:is(.notification-card,.notification-center-row) [data-form="row"] [data-listing-line]>[data-listing-value]{order:2}
:is(.notification-card,.notification-center-row) [data-form="row"] [data-listing-line]>:not([data-listing-tile]):not(p){order:3;max-width:none}
:is(.notification-card,.notification-center-row) [data-form="row"] [data-listing-line]>p:not([data-listing-value])+:not([data-listing-value]){margin-left:44px}
/* The tile keeps its kind's icon while work goes on with no known share; its state is the badge beside the words. */
:is(.notification-card,.notification-center-row) [data-form="row"] [data-listing-working]{display:none}
:is(.notification-card,.notification-center-row) [data-form="row"] [data-listing-line]>p:not([data-listing-value]){flex-wrap:wrap;align-self:center;white-space:normal;row-gap:2px;column-gap:8px}
:is(.notification-card,.notification-center-row) [data-form="row"] [data-listing-line]>p:not([data-listing-value])>span:first-child{max-width:100%;flex:0 1 auto;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
:is(.notification-card,.notification-center-row) [data-form="row"] [data-listing-line]>p:not([data-listing-value])>span:last-child:not(:first-child):not([data-listing-when]){flex-basis:100%;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:12.5px;line-height:18px}
:is(.notification-card,.notification-center-row) [data-form="row"]>[data-slot="listing-actions"]{margin-left:44px;flex-basis:calc(100% - 44px)}

/* Dismiss: quiet until the card is hovered or focused; always there on touch */
.notification-dismiss{display:grid;place-items:center;width:22px;height:22px;border-radius:999px;border:0;padding:0;cursor:pointer;
  color:var(--color-muted-foreground,#aaa);background:transparent;opacity:0;transition:opacity .15s,background-color .15s,color .15s}
.notification-dismiss svg{width:13px;height:13px}
.notification-root:hover .notification-dismiss,.notification-root:focus-within .notification-dismiss,.notification-dismiss:focus-visible{opacity:1}
.notification-dismiss:hover{background:color-mix(in srgb,var(--color-foreground,#eee) 12%,transparent);color:var(--color-foreground,#eee)}
@media (pointer:coarse){.notification-dismiss{opacity:1}}

/* Notification center: the body of an ordinary screen (a floating window or a
   tab) and, compact, the live feed of a navigation hover preview. It fills the
   frame it is placed in; the frame (window, tab, preview card) draws the edge.
   Every notification surface is opaque on the screen-look surface token. */
.notification-center{box-sizing:border-box;width:100%;height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;
  background:var(--surface,var(--color-popover,#13151a));color:var(--text,var(--color-foreground,#eee))}
.notification-center-host{height:100%;min-height:0}
.notification-center-count{margin:0;padding:10px 16px 0;font-size:12px;font-weight:600;color:var(--notification-tone-blue)}
.notification-center[data-compact] .notification-center-row{padding:0 0 0 8px}
.notification-center-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 12px 6px 16px}
.notification-center-title{margin:0;font-size:15px;font-weight:650;letter-spacing:-.01em}
.notification-center-header-actions{display:flex;align-items:center;gap:6px}
.notification-center-filters{padding:4px 12px 10px;border-bottom:1px solid var(--line,color-mix(in srgb,var(--color-foreground,#eee) 8%,transparent))}
.notification-center-scroll{overflow-y:auto;overscroll-behavior:contain;padding-bottom:8px}
.notification-center-group-label{position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:7px;margin:0;padding:10px 16px 6px;
  font-size:11px;font-weight:650;color:var(--muted,var(--color-muted-foreground,#9298a6));background:var(--surface,var(--color-popover,#13151a))}
/* One column that never grows past the panel: a row's one line truncates instead of pushing its value and buttons out. */
.notification-center-list{list-style:none;display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:0;padding:0 10px}
.notification-center-row{position:relative;display:block;min-width:0;padding:0 0 0 8px;border-radius:12px;cursor:default;transition:background-color .15s}
.notification-center-row:hover,.notification-center-row:focus-within{background:var(--surface-soft,color-mix(in srgb,var(--color-foreground,#eee) 5%,transparent))}
.notification-center-row[data-running]{background:color-mix(in srgb,var(--notification-tone) 7%,var(--surface,#13151a))}
.notification-center-unread{position:absolute;left:3px;top:21px;width:6px;height:6px;border-radius:999px;background:transparent;transition:background-color .2s}
.notification-center-row[data-unread] .notification-center-unread{background:var(--notification-tone-blue)}
.notification-center-row:not([data-unread]) [data-listing-line] p:not([data-listing-value])>span:first-child{font-weight:450;color:var(--muted,var(--color-muted-foreground,#aaa))}
.notification-center-row-actions{display:flex;gap:4px;opacity:0;transition:opacity .15s}
.notification-center-row:hover .notification-center-row-actions,.notification-center-row:focus-within .notification-center-row-actions{opacity:1}
@media (pointer:coarse){.notification-center-row-actions{opacity:1}}
.notification-center-empty{display:flex;flex-direction:column;align-items:center;gap:6px;padding:44px 24px 40px;text-align:center}
.notification-center-empty-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--surface-soft,color-mix(in srgb,var(--color-foreground,#eee) 6%,transparent));color:var(--muted,#9298a6)}
.notification-center-empty-mark svg{width:18px;height:18px}
.notification-center-empty-title{margin:0;font-size:13.5px;font-weight:600}
.notification-center-empty-detail{margin:0;max-width:280px;font-size:12.5px;color:var(--muted,var(--color-muted-foreground,#9298a6))}



@media(prefers-reduced-motion:reduce){
  .coss-ui [data-slot="toast-viewport"] *,.notification-center,.notification-center *{transition:none!important;animation:none!important}
}

/* Notifications that say the same thing, listed under the row that stands for them: set in one step, a quiet line
   joining them to it. */
.notification-center-row[data-within]{margin-inline-start:20px;border-inline-start:1px solid var(--color-border,#e5e5e5)}

/* A reply answered in place: the field over the notification, Send at its foot on the right. */
.notification-answer{display:flex;flex-direction:column;gap:10px;width:min(320px,calc(100vw - 32px));padding:12px 12px 14px}
.notification-answer-send{align-self:flex-end;margin-top:2px}

/* BeautifulUI MIT (c) 2026 Shane Levine.
 * Behavioral/DOM adaptation of ChatComposer, SearchList, ApprovalCard and Button.
 * Upstream ff0f74d62d8be9d89bcb735b3632e31a6ccf88dc. See BeautifulUI LICENSE. */
.bui{--bui-field:oklch(0.961 0.001 286.375);--bui-hover:oklch(0.97 0.002 247.839);--bui-ink:oklch(0.247 0.006 258.361);--bui-muted:oklch(0.506 0.01 264.477);--bui-line:oklch(0.912 0.005 258.326);--bui-surface:#fff;color:var(--bui-ink);font:13px/1.5 var(--font-primary,-apple-system,sans-serif)}
[data-look-scheme=dark] .bui{--bui-field:oklch(0.293 0.006 271.223);--bui-hover:oklch(0.289 0.006 271.22);--bui-ink:oklch(0.964 0.002 247.839);--bui-muted:oklch(0.731 0.008 260.731);--bui-line:oklch(0.356 0.007 264.474);--bui-surface:oklch(0.26 0.006 271.191)}
.bui button,.bui select{font:inherit;cursor:pointer}.bui button{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 13px;border:1px solid var(--bui-line);border-radius:8px;color:var(--bui-ink);background:var(--bui-surface);transition:background-color .15s,transform .15s}.bui button:hover{background:var(--bui-hover)}.bui button:active{transform:scale(.98)}.bui button:disabled{opacity:.45;cursor:default}.bui button[type=submit],.bui .bui-primary{background:var(--bui-ink);color:var(--bui-surface);border-color:transparent}.bui input:not([type=checkbox]),.bui select,.bui textarea{font:inherit;min-width:0;border:1px solid var(--bui-line);border-radius:8px;padding:10px 12px;color:var(--bui-ink);background:var(--bui-field)}.bui :focus-visible{outline:2px solid var(--accent,#6375dd);outline-offset:3px}.bui [hidden]{display:none!important}.bui input[type=checkbox]{width:17px;height:17px;accent-color:var(--bui-ink);flex:none}

@media(prefers-reduced-motion:reduce){.bui *{animation:none!important;transition:none!important}}

/* Shared compact workspace roles. BeautifulUI SidebarNav/SelectionActions anatomy;
   existing ui Button primary/secondary/ghost sizing. MIT notice beside this file. */
:root{--control-height:34px;--control-radius:8px;--workspace-gap:24px}

/* Placed in the shared record-views toolbar, the bar is one item of that row and adds no spacing of its own. */

.ui-action-menu{position:relative;display:inline-block;font-size:12px}.ui-action-menu summary{list-style:none;cursor:pointer;padding:8px 12px;border-radius:8px;color:var(--muted);user-select:none}.ui-action-menu summary::-webkit-details-marker{display:none}.ui-action-menu summary:hover,.ui-action-menu[open]>summary{background:var(--surface-soft);color:var(--text)}

.ui-workspace :focus-visible,.ui-action-menu :focus-visible{outline:2px solid var(--accent);outline-offset:3px}

.coss-action-card p,.coss-action-card small{white-space:pre-wrap;overflow-wrap:anywhere}
.coss-record-editor,.coss-record-editor-fields{display:grid;gap:12px;min-width:0}
.coss-record-editor-row label{display:grid;gap:6px;min-width:0}
.coss-record-editor-row>button{justify-self:start}
.coss-record-editor-row>[data-slot=card-footer]{flex-wrap:wrap;gap:8px}
.coss-record-editor-grid .coss-record-editor-fields{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 12px}
.coss-record-editor-grid .coss-record-field-wide{grid-column:1/-1}
.coss-record-field-value{display:block;padding:10px 12px;border:1px solid var(--color-border);border-radius:10px;background:color-mix(in srgb,var(--color-muted) 55%,transparent);font-size:15px;font-weight:600;overflow-wrap:anywhere}
@media(max-width:700px){.coss-record-editor-grid .coss-record-editor-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}


.source-rotating-carousel{width:100%;min-width:0;margin-inline:auto;max-width:760px}
.mw-grid:has(>.source-rotating-carousel){display:block}
.source-rotating-stage{height:390px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;perspective:1000px;touch-action:pan-y;outline-offset:-3px}
.source-rotating-cylinder{position:relative;display:flex;height:100%;justify-content:center;align-items:center;transform-style:preserve-3d;cursor:grab}
.source-rotating-cylinder:active{cursor:grabbing}
.source-rotating-face{position:absolute;transform-style:preserve-3d;backface-visibility:hidden;opacity:.12;pointer-events:none;transition:opacity .25s}
.source-rotating-face[data-active=true]{opacity:1;pointer-events:auto}
.source-rotating-face[data-active=false] strong,.source-rotating-face[data-active=false] small,.source-rotating-face[data-active=false] .coss-media-actions{visibility:hidden}
.source-rotating-face .coss-media-card{width:100%;margin:0}
.source-rotating-face .coss-media-open{white-space:normal}
.source-rotating-controls{display:flex;align-items:center;justify-content:center;gap:16px;margin:4px 0 16px}
.source-rotating-controls [role=status]{font-size:12px;color:var(--muted-foreground);font-variant-numeric:tabular-nums}
@media(max-width:640px){.source-rotating-stage{height:300px}}
@media(prefers-reduced-motion:reduce){.source-rotating-face{transition:none}}
.source-carousel-action { width: 100%; margin-top: 1rem; }

/* packages/screen-look/show/floating-menus.css
 *
 * Purpose: ONE look for everything that floats over the page: the shared
 * ActionMenu (packages/ui/show/action-menu) and its hover submenus, and the
 * shared popovers (the rule filter's builder, value checklist and range, the
 * sidebar's "Add a list" picker). Same
 * surface, same corners, same shadow, same row anatomy, same entry motion.
 *
 * The row is the sidebar row the owner picked as the good one: left-aligned, an
 * icon then the words, a soft fill on hover, and its secondary controls (the
 * drag grip) appearing only on the row under the pointer.
 *
 *   [grip] [icon] Label ...................... [hint] [check | ⌘K | ›]
 *
 * Anatomy adapted from 21st.dev originui "Dropdown Menu — Menu with icons"
 * (id 385) and coss "Menu" (id 11567, nested submenus), checked against
 * Linear's filter menu (Mobbin ed670cda-0527-4716-a1a6-0159f12c4f42: search
 * box, icon rows, a chevron for rows that open more, counts at the end).
 * Entry motion from the owner's bookmark of @ozzyxs1a: start at scale .97, never
 * 0, so a menu settles instead of inflating. On a phone the same surfaces are
 * sheets at the bottom edge (the last section, after Amie).
 */

/* The surface. */
.coss-ui [data-slot=menu-sub-content].action-menu,
.coss-ui [data-slot=menu-popup].action-menu,
.coss-ui [data-slot=popover-popup]:is(.rule-filter-popup,.rule-filter-values-popup,.rule-filter-range-popup,.sidebar-list-popover) {
  box-sizing: border-box;
  padding: 0;
  border: 1px solid var(--color-input);
  border-radius: 12px;
  background: var(--color-popover);
  color: var(--color-popover-foreground, var(--color-foreground));
  box-shadow: var(--elevation-2);
  transform-origin: var(--transform-origin);
  transition: opacity var(--motion-base, 200ms) var(--ease-enter, ease), transform var(--motion-base, 200ms) var(--ease-snap, ease);
}
.coss-ui :is([data-slot=menu-sub-content],[data-slot=menu-popup]).action-menu:is([data-starting-style],[data-ending-style]),
.coss-ui [data-slot=popover-popup]:is(.rule-filter-popup,.rule-filter-values-popup,.rule-filter-range-popup,.sidebar-list-popover):is([data-starting-style],[data-ending-style]) {
  opacity: 0;
  transform: scale(.97);
}
/* Leaving eases out of the way on the look's exit curve. */
.coss-ui :is([data-slot=menu-sub-content],[data-slot=menu-popup]).action-menu[data-ending-style],
.coss-ui [data-slot=popover-popup]:is(.rule-filter-popup,.rule-filter-values-popup,.rule-filter-range-popup,.sidebar-list-popover)[data-ending-style] {
  transition-timing-function: var(--ease-exit, ease);
}
.coss-ui :is([data-slot=menu-sub-content],[data-slot=menu-popup]).action-menu {
  min-width: 232px;
  max-width: min(380px, calc(100vw - 24px));
}
.coss-ui :is([data-slot=menu-popup],[data-slot=menu-sub-content]).action-menu > div {
  padding: 4px;
  max-height: min(460px, var(--available-height, 460px));
}
/* A row's panel (a message box, a form) opens beside it as its own level: wide enough to write in, never wider than
 * the screen, its own content scrolling when it is taller than the room left. */
.coss-ui [data-slot=menu-sub-content].action-menu.action-menu-panel {
  width: min(420px, calc(100vw - 24px));
  max-width: min(420px, calc(100vw - 24px));
}
.coss-ui .action-menu-panel [data-slot=menu-panel] {
  padding: 6px;
  max-height: min(560px, var(--available-height, 560px));
  overflow: auto;
}

/* The row: left-aligned, never centred, the same height everywhere. */
.coss-ui .action-menu [data-slot=menu-sub-trigger],
.coss-ui .action-menu [data-slot=menu-item] {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 7px;
  color: var(--color-popover-foreground, var(--color-foreground));
  font-size: 13px;
  font-weight: 450;
  line-height: 1;
  text-align: left;
  cursor: default;
  white-space: nowrap;
}
.coss-ui .action-menu [data-slot=menu-sub-trigger]:is([data-highlighted],[data-popup-open]),
.coss-ui .action-menu [data-slot=menu-item][data-highlighted] {
  background: var(--color-accent);
  color: var(--color-accent-foreground, var(--color-foreground));
}
.coss-ui .action-menu [data-slot=menu-item-icon] {
  display: block;
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--color-muted-foreground);
  font-size: 14px;
  line-height: 16px;
  text-align: center;
}
.coss-ui .action-menu svg[data-slot=menu-item-icon] { stroke-width: 1.5 }
.coss-ui .action-menu :is([data-slot=menu-item],[data-slot=menu-sub-trigger])[data-highlighted] [data-slot=menu-item-icon] {
  color: var(--color-popover-foreground, var(--color-foreground));
}
.coss-ui .action-menu [data-slot=menu-item-label] {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 18px;
}
.coss-ui .action-menu [data-slot=menu-item-hint] {
  flex: none;
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-muted-foreground);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.coss-ui .action-menu svg[data-slot=menu-item-check] {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--color-primary);
}
.coss-ui .action-menu [data-slot=menu-item-shortcut] {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 3px;
  margin-left: 16px;
}
.coss-ui .action-menu [data-slot=menu-item-shortcut] kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 1px solid color-mix(in srgb, var(--color-foreground) 13%, transparent);
  border-radius: 4px;
  background: color-mix(in srgb, var(--color-foreground) 4%, transparent);
  color: var(--color-muted-foreground);
  font: 500 10.5px/1 var(--font-heading);
  letter-spacing: 0;
}
.coss-ui .action-menu [data-slot=menu-sub-trigger] > svg:last-child {
  flex: none;
  width: 14px;
  height: 14px;
  margin-left: 2px;
  color: var(--color-muted-foreground);
}

/* The grip: seen on every row that can move, so a list that reorders says so
 * before the pointer finds it, and full strength on the row under the pointer.
 * A pinned row keeps the space, empty. */
.coss-ui .action-menu [data-slot=menu-item-grip] {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: -4px;
  color: var(--color-muted-foreground);
  opacity: .6;
  cursor: grab;
  transition: opacity 120ms ease;
}
.coss-ui .action-menu [data-slot=menu-item-grip] svg { width: 12px; height: 12px }
.coss-ui .action-menu :is([data-slot=menu-item],[data-slot=menu-sub-trigger]):is(:hover,[data-highlighted]) [data-slot=menu-item-grip]:not([data-pinned]) { opacity: 1 }
.coss-ui .action-menu [data-dragging='true'] { opacity: .45 }

/* The search box at the top of a long menu. */
.coss-ui .action-menu [data-slot=menu-search] {
  padding: 2px 2px 6px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--color-input);
}
.coss-ui .action-menu [data-slot=menu-search] [data-slot=input] {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.coss-ui .action-menu [data-slot=menu-empty] {
  margin: 0;
  padding: 10px 8px;
  color: var(--color-muted-foreground);
  font-size: 13px;
}

.coss-ui .action-menu [data-slot=menu-separator] { height: 1px; margin: 4px -4px; background: var(--color-input) }
.coss-ui .action-menu [data-slot=menu-label] {
  padding: 8px 8px 4px;
  color: var(--color-muted-foreground);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-align: left;
}
/* A destructive row (Remove, Delete) rests in the menu's own quiet colour like every other row and turns red only when
 * pointed at or focused, so a menu never shouts about the one thing you rarely want. */
.coss-ui .action-menu [data-slot=menu-item][data-variant=destructive] { color: var(--color-foreground) }
.coss-ui .action-menu [data-slot=menu-item][data-variant=destructive] [data-slot=menu-item-icon] { color: var(--color-muted-foreground) }
.coss-ui .action-menu [data-slot=menu-item][data-variant=destructive][data-highlighted],
.coss-ui .action-menu [data-slot=menu-item][data-variant=destructive][data-highlighted] [data-slot=menu-item-icon] {
  color: var(--color-destructive-muted);
}
.coss-ui .action-menu [data-slot=menu-item][data-variant=destructive][data-highlighted] {
  background: color-mix(in srgb, var(--color-destructive) 10%, transparent);
}
.coss-ui .action-menu [data-slot=menu-item][data-confirming] {
  background: color-mix(in srgb, var(--color-destructive) 12%, transparent);
  font-weight: 550;
}

/* The expandable toolbar's badge (a count or value beside an icon: 3, 100%,
 * H2) and the detail an item holds ("Group by · Project"). A badge is a quiet
 * value, never the accent: in a look whose accent is red it read as an error. */
.expandable-tabs-badge {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  margin-left: 3px;
  padding: 0 4px;
  border-radius: var(--radius-chip, 0.375rem);
  background: color-mix(in srgb, var(--text-primary, currentColor) 10%, transparent);
  color: var(--text-primary, var(--color-foreground));
  font-size: 12px;
  font-weight: 550;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.expandable-tabs-detail {
  margin-left: 6px;
  color: var(--text-muted, var(--color-muted-foreground));
  font-weight: 450;
}
.expandable-tabs-detail::before { content: '· '; }

/* Hidden copies of an expandable group's labels, measured so the group can
 * reserve the room a label needs and hovering never moves its neighbours. The
 * text comes from an attribute so it never joins the group's own text. */
[data-expandable-tabs-sizer] [data-label]::before { content: attr(data-label); }
[data-expandable-tabs-sizer] [data-label] { padding-left: 6px; }
[data-expandable-tabs-sizer] { width: 0; overflow: hidden; }
[data-expandable-tabs-sizer] [data-label] { flex-shrink: 0; }

/* A row of choices wider than its place scrolls inside itself, so choosing one never slides the whole screen sideways
 * (a list's views in a 390px pane). */
[data-expandable-tabs][aria-orientation=horizontal] { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
[data-expandable-tabs][aria-orientation=horizontal]::-webkit-scrollbar { display: none; }

/* On a phone (a finger and a small screen, tools/ui/show/phone-sheet) every menu, popover and select is a sheet
 * at the bottom edge, after Amie (Mobbin d055271a-e29a-4014-93f0-3a6b95cd89f6, d00daa2e-1094-48ea-87ba-c1a1ee192586):
 * the page dims, the sheet runs the full width with round top corners and a small grip, it slides up from below,
 * and its rows end above the home indicator. The positioner is pinned here over the placement the primitive
 * computed (hence !important: an inline position must lose); the primitive and its rows are unchanged, so every
 * look above still draws the rows. A finger dragging the grip moves the sheet with it (--phone-sheet-drag). */
[data-phone-sheet] {
  position: fixed !important;
  inset: auto 0 0 0 !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  transform: translateY(var(--phone-sheet-drag, 0px)) !important;
  transition: transform var(--motion-sheet) var(--ease-snap);
  --available-height: calc(88dvh - env(safe-area-inset-top, 0px)) !important;
  --available-width: 100vw !important;
}
[data-phone-sheet][data-phone-sheet-dragging] { transition: none; }
[data-phone-sheet] > * {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  transform-origin: 50% 100% !important;
  transition: transform var(--motion-sheet) var(--ease-snap), opacity var(--motion-base) ease !important;
  scale: none !important;
}
[data-phone-sheet] > :is([data-starting-style], [data-ending-style]) {
  transform: translateY(100%) !important;
  opacity: 1 !important;
}
[data-phone-sheet] [data-phone-sheet-surface] {
  position: relative;
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  border-width: 1px 0 0 !important;
  border-radius: 20px 20px 0 0 !important;
  padding-top: 20px !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  box-shadow: 0 -8px 32px rgb(0 0 0 / 0.12) !important;
}
[data-phone-sheet] [data-phone-sheet-surface]::before { border-radius: 20px 20px 0 0 !important; }
/* The rows read at a finger's size. */
@media (pointer: coarse) {
  .glass-popover [role=option] { min-height: 44px; }
}
[data-phone-sheet] [data-phone-sheet-surface] :is([role=menuitem], [role=menuitemcheckbox], [role=menuitemradio], [role=option]) {
  min-height: 44px;
}
/* The grip: a wide area a thumb can catch, drawn as a small pill. */
.phone-sheet-grip {
  position: absolute;
  inset: 0 0 auto 0;
  height: 22px;
  touch-action: none;
  cursor: grab;
  z-index: 1;
}
.phone-sheet-grip::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 36px;
  height: 5px;
  border-radius: 3px;
  translate: -50% 0;
  background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 22%, transparent);
}
.phone-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 0.32);
  transition: opacity 260ms ease;
}
.phone-sheet-backdrop:is([data-starting-style], [data-ending-style]) { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  [data-phone-sheet], [data-phone-sheet] > *, .phone-sheet-backdrop { transition: none !important; }
}

.source-conversation[data-layout=floating]{position:fixed;inset:0;z-index:49;pointer-events:none;background:transparent}

.source-conversation{--chrome-header-height:0px;--color-card:var(--card);font:16px/1.5 var(--font-primary,system-ui);color:var(--foreground)}
.source-conversation[hidden]{display:none}
.source-conversation[data-layout=floating][hidden]{display:block;visibility:hidden}

.source-conversation[data-layout=inline] .text-foreground,.source-conversation[data-layout=inline] .aui-md{color:var(--foreground)}


/* packages/screen-look/show/rule-filter.css
 *
 * Purpose: how the shared rule filter (packages/ui/show/rule-filter) looks: a
 * row of segmented chips under the view bar (field | comparison | value | ×),
 * and a builder where every line reads Where / and / or, then a field, a
 * comparison and a value, with a quiet "…" at its end; groups sit in their own
 * inset box with a Not switch. The surfaces themselves (corners, shadow, entry
 * motion) come from floating-menus.css, shared with every menu. Colours and
 * radii come from the Coss theme variables.
 *
 * Reference anatomy: Linear filter chips and menu (Mobbin
 * ed670cda-0527-4716-a1a6-0159f12c4f42, d1d26f7d-e1e5-490f-ab4f-c96dd12854c1),
 * Notion's builder ("Where / And", Mobbin d41e1c3f-7554-4129-af21-b8d1c8eace43),
 * Airtable's one-line condition (f2241482-541b-4d10-9295-0cd14783fc45),
 * 21st.dev 1633 "Filters" (segmented chip), 21st.dev 27325 (checklist with
 * counts), ReUI Filters (keenthemes/reui, MIT: chip bar plus advanced builder).
 */

.rule-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

/* A chip is one pill cut into segments, each a different weight of the same
 * sentence: the field, how it compares, the value, and the way out. */
.rule-filter-chip {
  display: inline-flex;
  align-items: center;
  max-width: min(360px, 100%);
  height: 28px;
  border: 1px solid var(--color-input);
  border-radius: 8px;
  background: color-mix(in srgb, var(--color-foreground) 4%, var(--color-background));
  overflow: hidden;
  transition: border-color 120ms ease, background 120ms ease;
}

.rule-filter-chip:hover,
.rule-filter-chip:focus-within {
  border-color: var(--color-ring);
}

.rule-filter-chip[data-incomplete='true'] {
  border-style: dashed;
}

.rule-filter-chip[data-negated='true'] {
  border-color: var(--color-destructive-muted, var(--color-ring));
}

.coss-ui .rule-filter-chip .rule-filter-chip-body {
  display: inline-flex;
  /* The shared Button never shrinks; this one gives way so the × stays on the chip. */
  flex: 0 1 auto;
  align-items: stretch;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 0;
  font-size: 12px;
}

.rule-filter-chip-body > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rule-filter-chip-body > span + span {
  border-left: 1px solid var(--color-input);
}

.rule-filter-chip-field {
  color: var(--color-foreground);
  font-weight: 500;
  min-width: 0;
  max-width: 220px;
}

/* A segment's words end in an ellipsis when the chip runs out of room; the whole
 * sentence stays on the chip's title and label. */
.rule-filter-chip-words {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rule-filter-chip-operator {
  /* One short word ("between"); the field and value give up room first, with an ellipsis. */
  flex: none;
  color: var(--color-muted-foreground);
}

.rule-filter-chip-value {
  color: var(--color-foreground);
  font-weight: 500;
  min-width: 0;
}

.coss-ui .rule-filter-chip .rule-filter-chip-remove {
  flex: none;
  width: 26px;
  height: 26px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--color-input);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--color-muted-foreground);
}

.coss-ui .rule-filter-chip .rule-filter-chip-remove::before {
  display: none;
}

.coss-ui .rule-filter-chip .rule-filter-chip-remove:hover {
  color: var(--color-foreground);
  background: color-mix(in srgb, var(--color-foreground) 10%, transparent);
}

.coss-ui .rule-filter-join,
.rule-filter-not {
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  color: var(--color-muted-foreground);
  font-size: 12px;
  text-transform: lowercase;
}

.coss-ui .rule-filter-join:hover {
  color: var(--color-foreground);
  background: var(--color-accent);
}

/* "Clear" is plain text: no border, no fill, only a colour change on hover. */
.coss-ui .rule-filter-clear {
  height: 24px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--color-muted-foreground);
  font-size: 12px;
}

.coss-ui .rule-filter-clear:hover {
  color: var(--color-foreground);
  background: transparent;
}

/* Builder and value popups are portaled out of the toolbar, so nothing here
 * depends on an ancestor inside the page. */
.coss-ui [data-slot='popover-positioner'] {
  z-index: 10000;
}

/* The popup is as wide as its rules. The primitive keeps the width it first
 * measured (for its own resize animation), which would clip a builder that
 * grows as rules are added, so the width follows the content here. */
.coss-ui .rule-filter-popup[data-slot='popover-popup'] {
  width: max-content;
  /* Never wider than the room beside its anchor (--available-width, set by the positioner), so on a narrow window
   * its lines wrap instead of running off the edge. */
  min-width: min(440px, var(--available-width, calc(100vw - 24px)));
  max-width: min(820px, var(--available-width, calc(100vw - 24px)));
}

.coss-ui .rule-filter-popup [data-slot='popover-viewport'] {
  display: grid;
  gap: 8px;
  width: auto;
  padding: 10px;
  overflow: visible;
}

.rule-filter-empty {
  margin: 0;
  padding: 2px 4px;
  color: var(--color-muted-foreground);
  font-size: 13px;
}

.rule-filter-group {
  display: grid;
  gap: 4px;
}

.rule-filter-group[data-nested='true'] {
  padding: 6px 6px 4px;
  border: 1px solid var(--color-input);
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-foreground) 3%, transparent);
}

.rule-filter-group[data-negated='true'] {
  border-color: var(--color-destructive-muted, var(--color-ring));
}

.rule-filter-group-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  color: var(--color-muted-foreground);
  font-size: 12px;
}

.rule-filter-group-words {
  flex: 1;
}

.coss-ui .rule-filter-not-toggle {
  gap: 4px;
  color: var(--color-muted-foreground);
}

.coss-ui .rule-filter-not-toggle[aria-pressed='true'] {
  background: color-mix(in srgb, var(--color-destructive) 14%, transparent);
  color: var(--color-destructive-muted, var(--color-foreground));
}

/* One line: the drag grip, the joining word, the rule (or a nested group),
 * the row menu. Lines reorder through the shared sortable
 * (ui/show/drag-reorder-list); its landing slot and displacement are
 * drag-reorder.css. */
.rule-filter-lines {
  gap: 4px;
}

.rule-filter-line {
  display: grid;
  grid-template-columns: 14px 56px minmax(0, 1fr) 28px;
  align-items: start;
  gap: 6px;
  border-radius: 8px;
}

.rule-filter-grip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  color: var(--color-muted-foreground);
  cursor: grab;
  opacity: 0;
  transition: opacity 120ms ease;
}

.rule-filter-grip:active {
  cursor: grabbing;
}

.rule-filter-line:hover > .rule-filter-grip,
.rule-filter-line:focus-within > .rule-filter-grip {
  opacity: .7;
}

.rule-filter-joiner {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding-left: 4px;
  color: var(--color-muted-foreground);
  font-size: 12px;
  text-transform: capitalize;
}

.coss-ui .rule-filter-combinator {
  gap: 2px;
  padding: 0 6px;
  color: var(--color-foreground);
  text-transform: lowercase;
}

.rule-filter-rule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 32px;
}

/* Field and comparison pickers: a menu trigger that reads like the value. */
.coss-ui .rule-filter-field,
.coss-ui .rule-filter-operator {
  gap: 6px;
  max-width: 220px;
  justify-content: flex-start;
}

.coss-ui .rule-filter-operator {
  color: var(--color-muted-foreground);
}

.rule-filter-picker-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rule-filter-picker-chevron {
  opacity: .6;
}

/* The row menu waits for the row under the pointer, like a sidebar row. */
.rule-filter-row-menu {
  display: flex;
  align-items: center;
  min-height: 32px;
  opacity: 0;
  transition: opacity 120ms ease;
}

.rule-filter-line:hover > .rule-filter-row-menu,
.rule-filter-line:focus-within > .rule-filter-row-menu,
.rule-filter-group-head .rule-filter-row-menu,
.rule-filter-row-menu:has([data-popup-open]) {
  opacity: 1;
}

.coss-ui .rule-filter-value {
  justify-content: flex-start;
  /* Gives way on a narrow line, ending in an ellipsis, so the row's "…" stays in the builder. */
  flex: 0 1 auto;
  min-width: min(120px, 100%);
  max-width: min(260px, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coss-ui .rule-filter-text,
.coss-ui .rule-filter-number {
  width: 180px;
}

.rule-filter-single {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rule-filter-unit {
  color: var(--color-muted-foreground);
  font-size: 12px;
}

.rule-filter-group-foot {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0 0 76px;
}

/* Several words or phrases: each a small removable token before the box. */
.rule-filter-words {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.rule-filter-word {
  display: inline-flex;
  align-items: center;
  max-width: 220px;
  height: 24px;
  padding-left: 8px;
  border: 1px solid var(--color-input);
  border-radius: 6px;
  background: color-mix(in srgb, var(--color-foreground) 5%, transparent);
  font-size: 12px;
}

.rule-filter-word-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coss-ui .rule-filter-word-remove {
  width: 22px;
  height: 22px;
  min-height: 0;
  color: var(--color-muted-foreground);
}

.rule-filter-foot-end {
  margin-left: auto;
}

/* Several values: a searchable checklist with counts. */
.coss-ui .rule-filter-values-popup[data-slot='popover-popup'] {
  width: 300px;
}

.coss-ui .rule-filter-values-popup [data-slot='popover-viewport'] {
  display: grid;
  gap: 6px;
  padding: 6px;
}

.rule-filter-options {
  display: grid;
  max-height: var(--floating-list-max-height, 300px);
  overflow-y: auto;
}

.rule-filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}

.rule-filter-option:hover {
  background: var(--color-accent);
}

.rule-filter-option-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rule-filter-option-count {
  color: var(--color-muted-foreground);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.rule-filter-options-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 0;
  border-top: 1px solid var(--color-input);
  color: var(--color-muted-foreground);
  font-size: 12px;
}

.rule-filter-picker {
  min-height: 200px;
}

/* A range: three rows that never share space. The track row is tall enough
 * for its thumbs to sit inside it, so a thumb never touches the words above
 * or the typed ends below. */
.coss-ui .rule-filter-range-popup[data-slot='popover-popup'] {
  width: min(320px, var(--available-width, calc(100vw - 16px)));
}

.coss-ui .rule-filter-range-popup [data-slot='popover-viewport'] {
  padding: 0;
}

.rule-filter-range {
  display: grid;
  grid-template-rows: auto 28px auto;
  gap: 10px;
  padding: 14px 16px 16px;
}

.rule-filter-range-values {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.rule-filter-range-track {
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
}

.rule-filter-range-track .rule-filter-slider {
  width: 100%;
}

.rule-filter-range-track [data-slot='slider-control'] {
  display: flex;
  align-items: center;
  height: 28px;
  min-width: 0;
}

.rule-filter-range-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: var(--color-muted-foreground);
  font-size: 12px;
}

.rule-filter-range-inputs .rule-filter-number {
  width: 100%;
}

/* The focus for a whole level (rule-filter/FocusEditor.tsx), in a sidebar
 * section's panel: the filter menu's trigger and its chips, stacked. */
.focus-editor {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 4px 4px;
  min-width: 0;
}

.focus-editor-row {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

/* At the top of the sidebar it reads like a workspace's name: full width, the name taking the room, the chevron at the
 * end (Notion's workspace switcher). */
.focus-editor-trigger {
  gap: 12px;
  flex: 1;
  min-width: 0;
  justify-content: flex-start;
  font-weight: 600;
}

.focus-editor-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: start;
}

/* The calendar stays the established Trillion DatePicker. Clock choices and
 * date/time groups use the same glass, type, focus and theme tokens everywhere.
 * Catalog references inspected 2026-10-12: 21st.dev/@coss.com/components/calendar/range
 * and 21st.dev/@shadcn/components/calendar-with-time-pressets (anatomy; no copied code).
 * Mobbin was unavailable in this session. */
.temporal-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.temporal-label { font-size: 12px; color: var(--text-tertiary, var(--color-muted-foreground)); }
.temporal-date-time { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.temporal-time { display: inline-flex; align-items: center; flex-wrap: wrap; position: relative; width: 112px; max-width: 100%; min-width: 0; border: 1px solid var(--color-input, var(--glass-border)); border-radius: var(--radius-control, 8px); background: var(--glass-bg-subtle, var(--color-background)); color: var(--text-primary, var(--color-foreground)); }
.temporal-time:focus-within { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }
.temporal-time > input { width: 100%; min-width: 0; height: 34px; border: 0; outline: 0; background: transparent; padding: 0 32px 0 9px; color: inherit; font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; }
.temporal-time > input::placeholder { color: var(--text-muted, var(--color-muted-foreground)); }
.temporal-time:has(input:disabled) { opacity: .5; }
.temporal-clock-trigger { display: flex; align-items: center; justify-content: center; position: absolute; right: 2px; top: 2px; width: 29px; height: 30px; border: 0; border-radius: var(--radius-control, 8px); color: var(--text-muted, var(--color-muted-foreground)); background: transparent; }
.temporal-clock-trigger:hover { background: var(--glass-bg-active, var(--color-muted)); color: var(--text-primary, var(--color-foreground)); }
.temporal-clock-trigger:focus-visible, .temporal-time-options > button:focus-visible, .temporal-clear:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: -2px; }
.temporal-time-popup { width: 168px; max-width: calc(100vw - 24px); padding: 6px; background: var(--glass-popover-background, var(--color-popover, var(--color-background))); color: var(--text-primary, var(--color-foreground)); }
.temporal-time-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; max-height: min(260px, 50dvh); overflow-y: auto; overscroll-behavior: contain; }
.temporal-time-options > button { min-height: 32px; border: 0; border-radius: var(--radius-control, 8px); background: transparent; color: inherit; font-size: 13px; font-variant-numeric: tabular-nums; }
.temporal-time-options > button:hover { background: var(--glass-bg-active, var(--color-muted)); }
.temporal-time-options > button[aria-selected='true'] { background: var(--button-primary-bg); box-shadow: var(--button-highlight), var(--button-shadow); color: var(--button-primary-text, var(--color-primary-foreground)); }
.temporal-time-options > button:disabled { opacity: .3; cursor: not-allowed; }
.temporal-clear { display: block; width: 100%; min-height: 30px; margin-top: 6px; border: 0; border-top: 1px solid var(--color-input, var(--glass-border)); background: transparent; color: var(--text-muted, var(--color-muted-foreground)); font-size: 12px; }
.temporal-error { display: block; width: 100%; margin-top: 4px; font-size: 12px; line-height: 1.4; color: var(--color-destructive, var(--status-error)); }
.rule-filter-date-range { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.rule-filter-date-range > label { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 12px; color: var(--text-muted, var(--color-muted-foreground)); }
@media (max-width: 420px) { .temporal-time > input { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .temporal-field *, .temporal-time-popup * { transition: none !important; animation: none !important; } }

/* Saved configuration controls extend the shared RecordViews editor: one
 * inline form for a name and the aspects that will travel with it. */
.record-views-configuration-editor { min-width: 0; margin-block: 8px; }
.record-views-configuration-aspects { display: flex; flex-wrap: wrap; gap: 10px 20px; min-width: 0; margin: 8px 0; padding: 10px 12px; border: 1px solid var(--color-border, var(--glass-border)); border-radius: var(--radius-control, 8px); }
.record-views-configuration-aspects > legend { padding-inline: 4px; font-size: 12px; color: var(--text-muted, var(--color-muted-foreground)); }
.record-views-configuration-aspects > label { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: 13px; color: var(--text-primary, var(--color-foreground)); }
.record-views-configuration-aspects > p { flex-basis: 100%; margin: 0; font-size: 12px; color: var(--text-muted, var(--color-muted-foreground)); }
.record-views-configuration-error { margin-block: 8px; font-size: 13px; color: var(--color-destructive, var(--status-error)); }
.record-views-time-editor > fieldset { display: contents; }
@media (max-width: 420px) {
  .record-views-configuration-editor .record-views-saved-view-editor { flex-wrap: wrap; }
  .record-views-configuration-editor .record-views-saved-view-editor > input { flex-basis: 100%; min-width: 0; font-size: 16px; }
}

/* packages/screen-look/show/drag-reorder.css
 * How a sortable list looks while a row is dragged (ui/show/drag-reorder-list/SortableRows.tsx):
 * the picked-up row lifts and follows the pointer, the other rows spring aside,
 * and the gap it will fill shows a soft slot with an accent line that moves
 * with it. Spring timing lives in SortableRows; reduced motion moves rows instantly.
 * Reference: 21st.dev #23550 "Reorder List" (lifted row, spring-shifted rows). */
:root{
  --reorder-line:var(--border-focus,var(--color-primary));
  --reorder-lift-shadow:0 1px 2px color-mix(in srgb,var(--text-primary) 10%,transparent),0 12px 24px -14px color-mix(in srgb,var(--text-primary) 45%,transparent);
}
[data-reorder-handle]{touch-action:none;cursor:grab}
[data-reorder-list][data-reorder-dragging],[data-reorder-list][data-reorder-dragging] *{cursor:grabbing}
[data-reorder-list] [data-reorder-lifted]{z-index:10;border-radius:var(--radius-control,8px);background:var(--glass-bg,var(--bg-primary));box-shadow:var(--reorder-lift-shadow)}
[data-reorder-list] [data-reorder-slot]{position:absolute;inset:0;z-index:-1;border-radius:var(--radius-control,8px);background:color-mix(in srgb,var(--reorder-line) 9%,transparent);pointer-events:none}
[data-reorder-list] [data-reorder-slot]::after{content:"";position:absolute;left:6px;right:6px;top:50%;height:2px;margin-top:-1px;border-radius:999px;background:var(--reorder-line);box-shadow:0 0 0 3px color-mix(in srgb,var(--reorder-line) 18%,transparent)}

/* A grouped list (DragReorderList surface="grouped"): one bordered group, a hairline between rows, rows padded as a
 * settings list reads (Linear's settings lists). Every row carries the hairline above it and the group clips the
 * first one, so the rule holds however the rows are wrapped. It never shrinks to fit a column: clipping hides rows. */
[data-reorder-surface="grouped"]{flex-shrink:0;overflow:hidden;border:1px solid var(--border-primary);border-radius:var(--radius-card,12px);background:var(--glass-bg-subtle,transparent)}
[data-reorder-surface="grouped"]>*{margin-top:-1px}
[data-reorder-surface="grouped"] [data-reorder-row]{padding:10px 12px 10px 6px;border-top:1px solid var(--border-primary);border-radius:0}

/* packages/screen-look/show/search-field.css
 *
 * The look of ui/show/search-field: a magnifier inside the start of the box,
 * the box on the same surface, border and radius as the toolbar controls
 * beside it (ui/show/expandable-tabs sm: --glass-bg-subtle, --border-primary,
 * 12px), so a search in a toolbar reads as one of its controls rather than a
 * lighter patch. Reference anatomy: 21st.dev 27914 (search with leading
 * icon), Dropbox Dash search.
 */
.search-field {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.search-field-icon {
  position: absolute;
  inset-inline-start: 10px;
  z-index: 1;
  pointer-events: none;
  color: var(--t-font-color-light, var(--muted-foreground));
}

.search-field > [data-slot='input-control'] {
  border-color: var(--border-primary, var(--border));
  border-radius: 12px;
  background-color: var(--glass-bg-subtle, transparent);
  box-shadow: none;
}

.search-field > [data-slot='input-control']::before {
  display: none;
}

.search-field > [data-slot='input-control']:hover {
  background-color: var(--glass-bg-hover, var(--glass-bg-subtle));
}

.search-field [data-slot='input'] {
  padding-inline-start: 30px;
  text-overflow: ellipsis;
}

.search-field[data-size='sm'] [data-slot='input'] {
  height: 32px;
  line-height: 32px;
}

/*
 *
 * Find anything (tools/command-palette drawn by src/workspace/command-palette.tsx), as a cmdk-style palette: the search
 * field is the palette's own top line with no box or ring of its own (the window around it is the field), larger words,
 * and a hairline under it; result rows are one compact line. Colours are the look's own tokens.
 */
[data-command-palette] .glass-input,
[data-command-palette] .glass-input:focus,
[data-command-palette] .glass-input:focus-visible {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  outline: none;
  font-size: var(--font-size-title, 1rem);
  padding-inline: 4px;
}
[data-command-palette] [role="option"] {
  min-height: 40px;
  padding-block: 8px;
  align-items: center;
}
[data-command-palette] [role="option"] > div { align-items: center; }
[data-command-palette] [role="option"] svg { color: var(--text-secondary); flex: none; }
/* Rows sit close together, as a list of names; a heading keeps a little room above its group. */
[data-command-palette] #palette-results { gap: 2px !important; }

/* The one on/off switch (ui/show/switch). A pill track whose two-colour background slides from "off" to "on", and a
 * white pill thumb that follows it, springier on the way on. Anatomy and motion from 21st.dev component 21948
 * (serafimcloud/switch, MIT). Base UI marks the state with data-checked / data-unchecked / data-disabled. */
.ui-switch {
  --switch-height: 20px;
  --switch-width: 44px;
  --switch-thumb-height: 18px;
  --switch-thumb-width: 25px;
  --switch-color: var(--color-primary, var(--accent-primary, #111));
  --switch-muted: color-mix(in oklch, var(--color-muted-foreground, #737373) 22%, transparent);
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  width: var(--switch-width);
  height: var(--switch-height);
  padding: 1px;
  border: 0;
  border-radius: var(--radius-pill);
  appearance: none;
  cursor: pointer;
  background-color: transparent;
  background-image: linear-gradient(to right, var(--switch-color) 35%, var(--switch-muted) 65%);
  background-size: calc(var(--switch-width) * 2.8) 100%;
  background-repeat: no-repeat;
  background-position-x: 100%;
  box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.05), inset 0 1.5px 2px oklch(0 0 0 / 0.1);
  transition: background-position 125ms cubic-bezier(.26, .75, .38, .45), box-shadow 125ms ease;
}

.ui-switch[data-size='sm'] {
  --switch-height: 16px;
  --switch-width: 36px;
  --switch-thumb-height: 14px;
  --switch-thumb-width: 20px;
}

.ui-switch[data-checked] {
  background-position-x: 0%;
  transition-duration: 250ms;
}

/* Off reads as off at a glance on every look: an outlined track and a dimmed thumb, so on (filled, white thumb) and off
 * never look alike. */
.ui-switch[data-unchecked] {
  box-shadow: inset 0 0 0 1.5px color-mix(in oklch, var(--color-muted-foreground, #737373) 55%, transparent);
}
.ui-switch-thumb[data-unchecked] {
  background: color-mix(in oklch, var(--color-muted-foreground, #737373) 60%, #fff);
  box-shadow: none;
}

.ui-switch:focus-visible {
  outline: 2px solid var(--color-ring, var(--border-focus, #3b82f6));
  outline-offset: 2px;
}

.ui-switch[data-disabled] {
  cursor: not-allowed;
  opacity: .5;
}

.ui-switch-thumb {
  pointer-events: none;
  width: var(--switch-thumb-width);
  height: var(--switch-thumb-height);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 1px 1px oklch(0 0 0 / 0.08), 0 1px 1px oklch(0 0 0 / 0.12), 1px 2px 4px -1px oklch(0 0 0 / 0.18);
  translate: 0 0;
  transition: translate 125ms cubic-bezier(.26, .75, .38, .45);
}

.ui-switch-thumb[data-checked] {
  translate: calc(var(--switch-width) - var(--switch-thumb-width) - 2px) 0;
  transition-duration: 250ms;
}

@media (prefers-reduced-motion: reduce) {
  .ui-switch, .ui-switch-thumb { transition: none; }
}

/* The switch matrix (ui/show/switch-matrix): a sticky, fixed-width label column, equal switch columns with every switch
 * centred under its heading, and a fade at the right edge while more columns are past it. */
.ui-switch-matrix { position: relative; }
.ui-switch-matrix-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.ui-switch-matrix-table { table-layout: fixed; border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; }
.ui-switch-matrix-label {
  position: sticky; left: 0; z-index: 1;
  width: var(--matrix-label); min-width: var(--matrix-label); max-width: var(--matrix-label);
  padding: 12px 16px; text-align: left; font-size: 14px; font-weight: 500; line-height: 1.35;
  color: var(--color-foreground, var(--text-primary)); background: var(--color-card, var(--surface-1, inherit));
  overflow-wrap: normal; word-break: normal; hyphens: none;
}
thead .ui-switch-matrix-label { padding-top: 10px; padding-bottom: 10px; }
.ui-switch-matrix-head {
  width: var(--matrix-cell); min-width: var(--matrix-cell); max-width: var(--matrix-cell);
  padding: 10px 8px; text-align: center; vertical-align: bottom; font-size: 12px; font-weight: 600; line-height: 1.3;
  color: var(--color-muted-foreground, var(--text-tertiary));
}
.ui-switch-matrix-cell { width: var(--matrix-cell); min-width: var(--matrix-cell); padding: 12px 8px; text-align: center; vertical-align: middle; }
.ui-switch-matrix-cell > .ui-switch { margin-inline: auto; }
.ui-switch-matrix-row:last-child { border-bottom: 0; }
.ui-switch-matrix-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ui-switch-matrix[data-more]::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 40px; pointer-events: none;
  background: linear-gradient(to right, transparent, var(--color-card, var(--surface-1, #fff)));
}
@media (max-width: 480px) {
  .ui-switch-matrix-label { width: min(var(--matrix-label), 46vw); min-width: min(var(--matrix-label), 46vw); max-width: min(var(--matrix-label), 46vw); padding-inline: 12px; }
}

/* The hover card of a control something automatic stands behind (ui/show/automation-preview): its name, one line of
 * what it does, a small still graph of its steps, and "Open to edit". The card itself is the record-preview look
 * (navigation-preview.css); this sets its width and the graph's box. */
.automation-preview {
  width: min(420px, calc(100vw - 24px));
}

.automation-preview-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--color-foreground);
}

.automation-preview-title {
  margin: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-preview-said {
  margin: 0;
  color: var(--color-muted-foreground);
  font-size: 12px;
  line-height: 1.4;
}

.automation-preview-said[data-tone='error'] {
  color: var(--color-destructive, #dc2626);
}

.automation-preview-graph {
  position: relative;
  height: 200px;
  overflow: hidden;
  border: 1px solid var(--color-border, rgba(0, 0, 0, .08));
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-foreground, #111) 3%, transparent);
}

.automation-preview-open {
  align-self: flex-start;
}


/* The words or control the card belongs to: a quiet dotted underline says there is more to see. */
.automation-preview-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  cursor: pointer;
  text-decoration: underline dotted color-mix(in srgb, var(--color-foreground, #111) 35%, transparent);
  text-underline-offset: 3px;
}

.automation-preview-trigger:focus-visible {
  outline: 2px solid var(--color-ring, #3b82f6);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Under a setting: each automation that stands behind it, one quiet line each. */
.automation-preview-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 4px;
  color: var(--color-muted-foreground);
  font-size: 12px;
}

/* Beside a heading or column name: one small mark per automation behind it, each opening its own card. */
.automation-marks {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
  vertical-align: middle;
  color: var(--color-muted-foreground);
}

.automation-marks .automation-preview-trigger {
  display: inline-flex;
  text-decoration: none;
  border-radius: 4px;
  padding: 1px;
}

.automation-marks .automation-preview-trigger:hover {
  color: var(--color-foreground);
}

/* A column name with marks keeps them on its own line. */
th:has(> .automation-marks) {
  white-space: nowrap;
}

/* packages/screen-look/show/action-row.css
 *
 * The look of the shared action row (ui/show/action-row): one rounded track on
 * a raised surface, every action the same weight, icon first, and the hovered
 * or focused row opening every action's name at once. Anatomy from ExpandableTabs
 * (21st.dev 1428) and beui's Expandable Action Bar (21st.dev 26780); detail
 * headers checked against Magnific's clip detail and Higgsfield's asset panel
 * on Mobbin.
 *
 * Geometry is concentric: track radius 16px = button radius 12px + 4px of
 * track padding, so the inner corners sit parallel to the outer ones.
 *
 * Colours come from the page's own surface, line and text custom properties,
 * so the row sits on any theme. Rules outrank the buttons' utility classes
 * (which live in a cascade layer), so a row never shows a mix of filled and
 * outlined buttons.
 */

.ui-action-row button:is([data-action-row-item],[data-slot=button],[data-slot=menu-trigger]){
  display:inline-flex;align-items:center;justify-content:center;flex:none;gap:0;
  height:32px;min-width:32px;padding:0 8px;margin:0;
  border:0;border-radius:12px;background:transparent;box-shadow:none;
  color:color-mix(in srgb,var(--text,currentColor) 78%,transparent);
  font-size:13px;font-weight:550;line-height:1;white-space:nowrap;
  transition:background-color var(--motion-fast) ease,color var(--motion-fast) ease,gap var(--motion-sheet) var(--ease-snap),padding var(--motion-sheet) var(--ease-snap);
}
.ui-action-row button:is([data-action-row-item],[data-slot=button],[data-slot=menu-trigger])::before,
.ui-action-row button:is([data-action-row-item],[data-slot=button],[data-slot=menu-trigger])::after{display:none}
.ui-action-row button:is([data-action-row-item],[data-slot=button],[data-slot=menu-trigger]):is(:hover,:focus-visible,[aria-expanded=true]):not(:disabled){
  background:color-mix(in srgb,var(--text,#111) 11%,transparent);color:var(--text,currentColor);
}

/* Labels open for the whole row at once while the pointer or focus is inside it (the beui Expandable Action Bar
 * behaviour). Opening one action at a time shifted its neighbours sideways, so a pointer moving slowly from one
 * action to the next landed on empty track or on the wrong action. Closing waits briefly, so crossing a gap or
 * brushing the edge does not flicker the row. */

/* Words that are not an action (a selection count) sit quietly at the start. */
.ui-action-row>:is(span,small,p):not([data-shared-root]):not(:has(button)){padding:0 8px 0 6px;font-size:12px;font-weight:650;color:color-mix(in srgb,var(--text,currentColor) 60%,transparent);white-space:nowrap}

/* An empty message slot (a status line the page fills later) takes no room. */


/*
 *
 * The look of the shared record picker (tools/ui/show/record-picker/RecordPicker.tsx): a search box with its panel
 * opening in the flow beneath it (never over the next field, so a phone's form still scrolls), the sort row, the
 * rows grouped by list (the mention picker's own look), a plain "New ..." row, one quiet line for loading, nothing
 * found, failed (with Try again) and making, and the chosen row as a chip with a Remove press.
 *
 * Colours come from the page's own surface, line and text custom properties, so it sits on any theme.
 */

.record-picker { position: relative; min-width: 0; width: 100%; }
.record-picker-panel {
  min-width: 0; max-height: min(22rem, 60vh); overflow-y: auto; overscroll-behavior: contain;
  padding: 6px; border-radius: 12px;
  border: 1px solid var(--line, color-mix(in srgb, var(--text, #111) 14%, transparent));
  background: var(--surface-raised, var(--surface, Canvas));
}
.record-picker-sort { flex-wrap: wrap; padding: 0 2px 2px; }
.record-picker-note { padding: 6px 8px; min-width: 0; }
.record-picker-note[data-state="failed"], .record-picker-note[data-state="make-failed"] { flex-wrap: wrap; }
.record-picker-new { justify-content: flex-start; width: 100%; min-height: 40px; text-align: left; }
.record-picker-new > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-picker-chosen { min-width: 0; flex-wrap: wrap; }
.record-picker-remove { flex: none; }
.record-picker [role="option"] { min-height: 40px; }
@media (pointer: coarse) { .record-picker [role="option"], .record-picker-remove { min-height: 44px; } }
/* A row's name wraps instead of being cut ("Sam Ri…"); the why or detail beside it takes the shrink, on its own line when
   the row is narrow. The press stays one row tall on wide screens. */
.record-picker .mention-picker-option { height: auto; flex-wrap: wrap; align-items: center; padding-block: 6px; white-space: normal; row-gap: 0; }
.record-picker .mention-picker-option > span:not(.mention-picker-mark) { min-width: 0; max-width: 100%; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.record-picker .mention-picker-option > span:nth-of-type(2) { flex: 0 1 auto; }
.record-picker .mention-picker-option > span:nth-of-type(3) { flex: 1 1 8rem; }
/* The shared form's field: its label, then the words about it muted on their own line. */
.record-hover-form-field-detail { overflow-wrap: anywhere; line-height: 1.4; }

/* packages/screen-look/show/fact-chips.css
 *
 * The look of the shared fact chips (ui/show/fact-chips): small rounded chips
 * with a leading icon under a player or a detail header, and the popover card
 * each opens on hover (details, a tag editor, actions). Anatomy from 21st.dev
 * Chip (3259) and shadcn Hover Card (1481); sizing checked against Magnific's
 * clip settings chips on Mobbin (24px chips, 6px gaps).
 *
 * Colours come from the page's surface, line and text custom properties.
 */
.ui-fact-chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;padding:0}
.ui-fact-chip{
  display:inline-flex;align-items:center;gap:6px;box-sizing:border-box;height:26px;max-width:22rem;padding:0 10px 0 8px;
  border:1px solid color-mix(in srgb,var(--line,#e9e7e4) 85%,transparent);border-radius:var(--radius-chip, 0.375rem);
  background:color-mix(in srgb,var(--surface,#fff) 70%,transparent);
  color:color-mix(in srgb,var(--text,currentColor) 82%,transparent);
  font:inherit;font-size:12px;font-weight:550;line-height:1;cursor:default;
  transition:background-color .15s ease,border-color .15s ease,color .15s ease;
}
.ui-fact-chip:is(:hover,:focus-visible,[data-popup-open]){background:color-mix(in srgb,var(--text,#111) 9%,var(--surface,#fff));border-color:color-mix(in srgb,var(--text,#111) 22%,transparent);color:var(--text,currentColor)}
.ui-fact-chip:focus-visible{outline:2px solid color-mix(in srgb,var(--accent,#6aa6ff) 70%,transparent);outline-offset:1px}
.ui-fact-chip svg{flex:none;opacity:.72}
.ui-fact-chip-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ui-fact-chip-popover{box-sizing:border-box;min-width:220px;max-width:min(320px,calc(100vw - 24px))}
.ui-fact-chip-card{display:grid;gap:10px;font-size:13px}
.ui-fact-chip-card-label{display:flex;align-items:center;gap:6px;margin:0;font-size:11px;font-weight:650;opacity:.62}
.ui-fact-chip-card-value{margin:0;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
.ui-fact-chip-card-list{display:grid;gap:4px;margin:0;padding:0;list-style:none}
.ui-fact-chip-card-details{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;margin:0;font-size:12px}
.ui-fact-chip-card-details dt{display:flex;align-items:center;gap:5px;opacity:.62}
.ui-fact-chip-card-details dt svg{flex:none;width:13px;height:13px;opacity:.82}
.ui-fact-chip-card-details dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.ui-fact-chip-card-actions{display:flex;flex-wrap:wrap;gap:6px;padding-top:2px;border-top:1px solid color-mix(in srgb,currentColor 10%,transparent);padding-top:10px}
.ui-fact-chip-card-action,.ui-fact-chip-tag-add{
  display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border:1px solid color-mix(in srgb,currentColor 16%,transparent);border-radius:9px;
  background:transparent;color:inherit;font:inherit;font-size:12px;font-weight:600;cursor:pointer;
}
.ui-fact-chip-card-action:hover,.ui-fact-chip-tag-add:hover:not(:disabled){background:color-mix(in srgb,currentColor 9%,transparent)}
.ui-fact-chip-tags{display:grid;gap:8px}
.ui-fact-chip-tag-list{display:flex;flex-wrap:wrap;gap:4px;margin:0;padding:0;list-style:none}
.ui-fact-chip-tag{display:inline-flex;align-items:center;gap:2px;height:24px;padding:0 2px 0 9px;border-radius:var(--radius-chip, 0.375rem);background:color-mix(in srgb,currentColor 9%,transparent);font-size:12px}
.ui-fact-chip-tag-remove{display:inline-grid;place-items:center;width:20px;height:20px;padding:0;border:0;border-radius:999px;background:transparent;color:inherit;opacity:.6;cursor:pointer}
.ui-fact-chip-tag-remove:hover{opacity:1;background:color-mix(in srgb,currentColor 12%,transparent)}
.ui-fact-chip-tag-form{display:flex;align-items:center;gap:6px;min-width:0;width:100%}
.ui-fact-chip-tag-input{box-sizing:border-box;display:block;flex:1 1 auto;width:0;min-width:0;height:32px;padding:0 10px;border:1px solid color-mix(in srgb,currentColor 18%,transparent);border-radius:9px;background:transparent;color:inherit;font:inherit;font-size:12px;outline:none;transition:border-color .15s ease,box-shadow .15s ease}
.ui-fact-chip-tag-input:focus-visible{border-color:color-mix(in srgb,var(--accent,#6aa6ff) 78%,transparent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent,#6aa6ff) 22%,transparent)}
.ui-fact-chip-tag-add{width:28px;padding:0;justify-content:center}
.ui-fact-chip-tag-add:disabled{opacity:.4;cursor:default}
@media (prefers-reduced-motion:reduce){.ui-fact-chip{transition:none}}

/* packages/screen-look/show/edge-fade.css
 *
 * A scrolling list of text (a transcript, captions) fades out at its top and
 * bottom edges instead of cutting a line in half. Any scroll container takes
 * the look by adding the class `screen-edge-fade`; the fade depth is one
 * custom property (--screen-edge-fade-size) so a dense list can ask for less.
 *
 * The mask keeps the list itself transparent at the edges, so the fade shows
 * whatever sits behind it (the player, the page) and needs no colour of its
 * own. Where the engine drives animations from scrolling, an edge fades only
 * while there is more text beyond it: nothing fades at the very top, the very
 * bottom, or in a list short enough not to scroll.
 */
@property --screen-edge-fade-top{syntax:'<length>';inherits:false;initial-value:0px}
@property --screen-edge-fade-bottom{syntax:'<length>';inherits:false;initial-value:0px}
.screen-edge-fade{
  --screen-edge-fade-size:28px;
  --screen-edge-fade-top:var(--screen-edge-fade-size);
  --screen-edge-fade-bottom:var(--screen-edge-fade-size);
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 var(--screen-edge-fade-top),#000 calc(100% - var(--screen-edge-fade-bottom)),transparent 100%);
  mask-image:linear-gradient(to bottom,transparent 0,#000 var(--screen-edge-fade-top),#000 calc(100% - var(--screen-edge-fade-bottom)),transparent 100%);
}
@supports (animation-timeline:scroll()){
  .screen-edge-fade{
    --screen-edge-fade-top:0px;
    --screen-edge-fade-bottom:0px;
    animation:screen-edge-fade-follows-scroll linear both;
    animation-timeline:scroll(self block);
  }
}
@keyframes screen-edge-fade-follows-scroll{
  0%{--screen-edge-fade-top:0px;--screen-edge-fade-bottom:var(--screen-edge-fade-size)}
  6%{--screen-edge-fade-top:var(--screen-edge-fade-size)}
  94%{--screen-edge-fade-bottom:var(--screen-edge-fade-size)}
  100%{--screen-edge-fade-top:var(--screen-edge-fade-size);--screen-edge-fade-bottom:0px}
}

/* A strip that moves sideways (a live waveform, a ticker) fades in at the edge new things arrive from and out at the
 * edge they leave by, the same depth at both unless a look sets one edge on its own: the class `screen-edge-fade-x`,
 * its depths the tokens --screen-edge-fade-start (left) and --screen-edge-fade-end (right). */
.screen-edge-fade-x{
  --screen-edge-fade-start:14%;
  --screen-edge-fade-end:var(--screen-edge-fade-start);
  -webkit-mask-image:linear-gradient(to right,transparent 0,#000 var(--screen-edge-fade-start),#000 calc(100% - var(--screen-edge-fade-end)),transparent 100%);
  mask-image:linear-gradient(to right,transparent 0,#000 var(--screen-edge-fade-start),#000 calc(100% - var(--screen-edge-fade-end)),transparent 100%);
}

/* A pane shorter than its screen's own layout height shows the part that fits (screen-arrangement
 * SplitTreeArranger, `data-pane-cut`): the bottom edge blurs and fades out over --pane-cut-fade, so a
 * squashed pane reads as tucked away rather than broken. Across, a screen always reflows to its pane. */
[data-pane-cut]{position:relative}
[data-pane-cut="y"]{
  -webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - var(--pane-cut-fade,28px)),transparent 100%);
  mask-image:linear-gradient(to bottom,#000 calc(100% - var(--pane-cut-fade,28px)),transparent 100%);
}
[data-pane-cut]::after{
  content:'';position:absolute;pointer-events:none;z-index:1;left:0;right:0;bottom:0;height:var(--pane-cut-fade,28px);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  -webkit-mask-image:linear-gradient(to bottom,transparent,#000);mask-image:linear-gradient(to bottom,transparent,#000);
}

/*
 *
 * A list with one of its items opened beside it (the host row carries data-opened-beside-list, the list
 * data-opened-list, the opened item data-opened-item), as Posts opens a post beside its posts. In a pane too narrow
 * for both, the opened item takes the whole pane and the list waits behind it until the item is closed, the way Mail
 * and Linear show one message or issue at a time on a phone. Panes size through the named `surface` container.
 */
@container surface (max-width: 759px) {
  [data-opened-beside-list]:has(> [data-opened-item]) > [data-opened-list] { display: none; }
  [data-opened-beside-list] > [data-opened-item] { flex: 1 1 auto; width: 100% !important; border-inline: 0; }
}

/*
 *
 * A canvas (the positioned element carrying data-canvas-host) and its tool dock (the element carrying
 * data-canvas-dock: the pointer tools and the zoom of a board). In a wide pane the dock sits in the
 * canvas's header row. In a narrow pane it leaves the header and floats as one pill centred on the
 * canvas's bottom edge, so the work starts right under a short header and every tool stays one tap away.
 * Panes size through the named `surface` container (tools/ui/show/container-size), so a narrow pane in a
 * wide window docks the same as a phone; widening the pane puts the tools back in the header.
 *
 * Parts made for a pointer in a wide header (data-canvas-toolbar-only, such as a zoom track) stay out of
 * the pill, and the overview map (data-canvas-minimap) gives the bottom edge to the dock while it floats.
 *
 * A Draw view inside a list (record views) sizes its canvas from --canvas-view-height. On a wide pane that
 * falls back to the view's own height; on a narrow pane the list's header wraps onto more rows, so the
 * canvas takes the window less that taller header and the composer under it, and its bottom edge (where
 * the dock floats) stays on screen instead of under the composer.
 *
 * Anatomy from phone canvases that keep their tools in one floating bar at the bottom edge over the work:
 * Freeform and tldraw on iPhone (tool pill along the bottom), Givingli's card editor (Mobbin
 * e021456e-e0ea-4ad4-9b83-c5735b02900a, a white pill of icon buttons over the canvas) and Halide (Mobbin
 * 50228284-dc8a-494e-a7a0-b45ccd56dc60, the zoom pill floating above the bottom bar).
 */
@container surface (max-width: 599px) {
  [data-canvas-host] [data-canvas-dock] {
    position: absolute;
    left: 50%;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 20;
    width: max-content;
    max-width: calc(100% - 1rem);
    justify-content: center;
    gap: 0.25rem;
    padding: 3px 6px;
    border: 1px solid var(--color-input);
    border-radius: 1.25rem;
    background: var(--color-popover);
    color: var(--color-popover-foreground, var(--color-foreground));
    box-shadow: 0 10px 28px -14px color-mix(in srgb, #000 55%, transparent), 0 2px 6px -2px color-mix(in srgb, #000 25%, transparent);
  }
  /* Inside the pill the tool groups lose their own frames; the pill is the one frame. */
  [data-canvas-host] [data-canvas-dock] [data-expandable-tabs-frame] { border-color: transparent; background: transparent; box-shadow: none; }
  [data-canvas-host] [data-canvas-dock] [data-canvas-toolbar-only] { display: none; }
  [data-canvas-host] [data-canvas-minimap] { display: none; }
  .record-views { --canvas-view-height: max(320px, calc(100dvh - 360px)); }
}

/*
 *
 * The sidebar's thin bar (tools/sidebar/show/SidebarBar.tsx), collapsed on an edge or lying on a seam between two
 * panes: every button in it (a screen's icon, a list's panel, Expand, More) is one square of --sidebar-bar-button with
 * an icon of --sidebar-bar-icon, both read from the bar's DATA (tools/sidebar/read-data/sidebar-bar.json), so the bar
 * is as thin as that DATA says on every edge and seam.
 */
.sidebar-bar :is([data-sidebar-activate],[data-sidebar-bar-expand],[data-sidebar-bar-more],[data-sidebar-bar-panel] button){
  width:var(--sidebar-bar-button)!important;height:var(--sidebar-bar-button)!important;min-height:0!important;min-width:0!important;padding:0!important;
}
.sidebar-bar :is([data-sidebar-activate],[data-sidebar-bar-expand],[data-sidebar-bar-more],[data-sidebar-bar-panel] button) > svg{
  width:var(--sidebar-bar-icon)!important;height:var(--sidebar-bar-icon)!important;
}
/* The bar's rows scroll along it when they do not all fit (SidebarBar.tsx invariant 2): by wheel, trackpad or touch,
 * with no scrollbar drawn in the thin bar; the edge with more beyond it fades (edge-fade.css). */
.sidebar-bar-rows{overscroll-behavior:contain;scrollbar-width:none}
.sidebar-bar-rows::-webkit-scrollbar{display:none}
.sidebar-bar[data-sidebar-bar=vertical] .sidebar-bar-rows{overflow-x:hidden;overflow-y:auto}
.sidebar-bar[data-sidebar-bar=horizontal] .sidebar-bar-rows{overflow-x:auto;overflow-y:hidden}

/* packages/screen-look/show/status-overview.css
 *
 * Appearance of ui/show/status-overview: stat cards, one proportional strip,
 * short section lists and a small secondary card. Anatomy from 21st.dev 28770
 * (stat cards, recent activity), 21st.dev 29473 (share strip) and Linear
 * "My issues" / Asana "My tasks" rows. Every tone arrives as --status-tone,
 * resolved from the shared record-kind palette, so no rule names a tone. */
.status-overview{display:grid;gap:16px;container-type:inline-size}
.status-overview-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.status-overview-stat{display:grid;gap:2px;padding:12px 14px;border-radius:14px}
.status-overview-stat-label{display:flex;align-items:center;gap:7px;color:var(--color-muted-foreground);font-size:12.5px;font-weight:500;line-height:1.3}
.status-overview-stat-value{margin-top:4px;color:var(--color-foreground);font-size:26px;font-weight:600;line-height:1.1;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.status-overview-stat-detail{color:var(--color-muted-foreground);font-size:12px;line-height:1.35;font-variant-numeric:tabular-nums;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.status-overview-dot{flex:none;width:8px;height:8px;border-radius:999px;background:var(--status-tone)}
.status-overview-strip{display:flex;gap:2px;height:6px;overflow:hidden;border-radius:999px}
.status-overview-strip>span{min-width:3px;background:color-mix(in oklab,var(--status-tone) 78%,transparent)}
.status-overview-sections{display:grid;gap:18px}
.status-overview-section-header{display:flex;align-items:baseline;gap:8px;padding:0 2px 6px;border-bottom:1px solid var(--color-input)}
.status-overview-section-header h3{margin:0;color:var(--color-foreground);font-size:13.5px;font-weight:600}
.status-overview-count{color:var(--color-muted-foreground);font-size:12.5px;font-variant-numeric:tabular-nums}
.status-overview-section ul{margin:0;padding:0;list-style:none}
.status-overview-section li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:10px;padding:9px 2px;border-bottom:1px solid color-mix(in oklab,var(--color-input) 55%,transparent)}
.status-overview-section li>.status-overview-dot{margin-top:6px}
.status-overview-item{display:grid;gap:2px;min-width:0}
.status-overview-title{color:var(--color-foreground);font-size:13.5px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.status-overview-detail{color:var(--color-muted-foreground);font-size:12px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.status-overview-meta{display:grid;justify-items:end;gap:2px;color:var(--color-muted-foreground);font-size:12px;line-height:1.4;white-space:nowrap;font-variant-numeric:tabular-nums}
.status-overview-state{color:color-mix(in oklab,var(--status-tone) 80%,var(--color-foreground))}
.status-overview-empty{margin:0;padding:10px 2px;color:var(--color-muted-foreground);font-size:13px}
.status-overview-more{margin-top:4px;color:var(--color-muted-foreground)}
.status-overview-aside{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;padding:10px 14px;border-radius:12px;font-size:12.5px;color:var(--color-muted-foreground)}
.status-overview-aside-label{font-weight:500}
.status-overview-aside-items{display:flex;flex-wrap:wrap;gap:4px 12px}
.status-overview-aside-items strong{color:var(--color-foreground);font-weight:600;font-variant-numeric:tabular-nums}
@container (min-width:640px){.status-overview-stats{grid-template-columns:repeat(auto-fit,minmax(132px,1fr))}}
@container (max-width:420px){
  .status-overview-stats{gap:8px}
  .status-overview-stat{padding:10px 12px}
  .status-overview-stat-value{font-size:22px}
  .status-overview-meta small{display:none}
}

.kibo-file-dropzone{width:100%;min-width:0}
.kibo-file-dropzone .kibo-file-drop-target{display:flex;width:100%;height:auto;min-height:176px;padding:28px 20px;border:2px dashed var(--border,#bbb);border-radius:12px;background:transparent;white-space:normal;text-align:center;cursor:pointer}
.kibo-file-dropzone .kibo-file-drop-target:hover,.kibo-file-dropzone .kibo-file-drop-target.ring-1{border-color:var(--primary,#4263eb);background:color-mix(in srgb,var(--primary,#4263eb) 7%,transparent)}
.kibo-file-dropzone .kibo-file-drop-target:focus-visible{outline:3px solid var(--primary,#4263eb);outline-offset:3px}
.kibo-file-dropzone .kibo-file-drop-content{display:flex;flex-direction:column;align-items:center;gap:10px;max-width:100%;overflow-wrap:anywhere}
.kibo-file-dropzone .kibo-file-drop-content>svg{width:28px;height:28px}
.kibo-file-dropzone .kibo-file-drop-content>span{font-weight:400;color:var(--muted-foreground,#666);line-height:1.5}
.kibo-file-dropzone .kibo-file-drop-error{margin:12px 0 0;color:var(--destructive,#b42318);overflow-wrap:anywhere}
.kibo-file-dropzone .kibo-file-drop-status{display:block;margin-top:8px;font-size:13px}
.kibo-file-dropzone .kibo-file-drop-status:empty{display:none}
.kibo-file-dropzone .kibo-file-drop-target:disabled{cursor:default;opacity:.65}
:where(.kibo-file-drop-workspace){position:relative}
.kibo-workspace-file-overlay:not([hidden]){position:absolute;inset:0;z-index:2147483000;display:grid;padding:20px;background:color-mix(in srgb,var(--background,#fff) 92%,transparent);box-sizing:border-box}
.kibo-workspace-file-overlay[hidden]{display:none!important}
.kibo-workspace-file-overlay>div,.kibo-workspace-file-overlay .kibo-file-drop-target{width:100%;height:100%}

/* shadcn Skeleton composition: only shown while the consumer is loading. */
.shared-media-loading {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;grid-column:1/-1}
.shared-media-loading-poster {aspect-ratio:16/9;width:100%}
.shared-media-loading-title {height:14px;width:70%;margin-top:12px}
.shared-media-loading[data-loading-layout=rows] {grid-template-columns:minmax(0,1fr);gap:0}
.shared-media-loading-row {display:flex;align-items:center;gap:12px;min-height:76px;padding:12px 4px;border-bottom:1px solid var(--border-secondary,var(--line,#e5e7eb))}
.shared-media-loading-row-leading {width:48px;height:48px;flex:0 0 48px;border-radius:8px}
.shared-media-loading-row-copy {display:grid;flex:1;gap:8px;min-width:0}
.shared-media-loading-row-title {width:min(42%,240px);height:14px}
.shared-media-loading-row-detail {width:min(68%,420px);height:11px;opacity:.72}
.shared-media-loading-preview {display:grid;gap:16px;max-width:100%}
.shared-media-loading[data-loading-layout=preview],.shared-media-loading[data-loading-layout=editor] {grid-template-columns:minmax(0,1fr)}
.shared-media-loading-preview-frame {width:100%;aspect-ratio:16/9;min-height:180px;border-radius:12px}
.shared-media-loading-preview-copy {display:grid;gap:8px}
.shared-media-loading-preview-title {width:min(52%,360px);height:16px}
.shared-media-loading-preview-detail {width:min(78%,540px);height:12px;opacity:.72}
.shared-media-loading-preview-lines {display:grid;grid-template-columns:2.75rem minmax(0,1fr);gap:10px 8px}
.shared-media-loading-preview-line {height:11px;opacity:.6}
.shared-media-loading-preview-line:nth-child(odd) {width:2.25rem}
.shared-media-loading-preview-line:nth-child(4n+2) {width:88%}
.shared-media-loading-preview-line:nth-child(4n) {width:64%}
.shared-media-loading[data-loading-layout=preview] {animation:shared-media-loading-in .16s ease-out both}
@keyframes shared-media-loading-in {from {opacity:0}}
.shared-media-loading-editor {display:grid;gap:12px;width:100%;max-width:360px}
.shared-media-loading-editor-fields {display:grid;gap:12px}
.shared-media-loading-editor-fields>span {display:grid;gap:8px}
.shared-media-loading-editor-label {width:34%;height:10px;opacity:.72}
.shared-media-loading-editor-field {width:100%;height:38px;border-radius:8px}
.shared-media-loading-editor-action {width:42%;height:34px;border-radius:8px;justify-self:end}
/* Board and table placeholders draw the same arrangement the shared list view is about to show. */
.shared-media-loading[data-loading-layout=board],.shared-media-loading[data-loading-layout=table] {grid-template-columns:minmax(0,1fr);gap:0}
.shared-media-loading-board {display:flex;gap:12px;align-items:flex-start;overflow:hidden}
.shared-media-loading-column {flex:0 0 min(280px,72%);display:grid;gap:8px;padding:10px 8px;border-radius:12px;background:color-mix(in srgb,var(--border-primary,#e5e7eb) 28%,transparent)}
.shared-media-loading-column-title {width:46%;height:12px;margin:0 4px 4px}
.shared-media-loading-card {display:grid;gap:8px;padding:10px 12px;border-radius:10px;border:1px solid var(--border-secondary,var(--line,#e5e7eb))}
.shared-media-loading-card-title {width:72%;height:13px}
.shared-media-loading-card-detail {width:48%;height:10px;opacity:.72}
.shared-media-loading-column:nth-child(2n) .shared-media-loading-card-title {width:58%}
.shared-media-loading-column:nth-child(3n) .shared-media-loading-card-detail {width:64%}
.shared-media-loading-table {display:grid}
.shared-media-loading-table-row {display:grid;grid-template-columns:2fr 1fr 1fr 1.2fr;gap:16px;align-items:center;min-height:40px;padding:0 8px;border-bottom:1px solid var(--border-secondary,var(--line,#e5e7eb))}
.shared-media-loading-table-row[data-head] {min-height:34px;opacity:.7}
.shared-media-loading-table-cell {height:11px;width:62%}
.shared-media-loading-table-cell:nth-child(2) {width:48%}
.shared-media-loading-table-cell:nth-child(3) {width:36%}
.shared-media-loading-table-cell:nth-child(4) {width:54%}
.shared-media-loading-table-row:nth-child(3n) .shared-media-loading-table-cell:first-child {width:80%}
.shared-media-loading-table-row:nth-child(3n+1) .shared-media-loading-table-cell:first-child {width:48%}
.coss-ui [data-slot=empty] {grid-column:1/-1;min-height:180px}
.coss-ui [data-empty-description] {max-width:36rem;color:var(--muted,#667085);line-height:1.5}
@media(max-width:600px){.shared-media-loading {grid-template-columns:1fr 1fr;gap:16px}.shared-media-loading[data-loading-layout=gallery]>div:last-child {display:none}}
@media(max-width:600px){.shared-media-loading[data-loading-layout=rows] {grid-template-columns:minmax(0,1fr);gap:0}.shared-media-loading-row {min-height:68px}.shared-media-loading-row-leading {width:40px;height:40px;flex-basis:40px}.shared-media-loading-preview-frame {min-height:150px}}
/* A placeholder breathes (opacity to the look's low and back) at the look's pace; the reveal delay keeps a fast answer from ever showing one. */
@keyframes placeholder-breathe {50% {opacity:var(--placeholder-breathe-low,.6)}}
.shared-media-loading [data-slot=skeleton] {animation:placeholder-breathe var(--placeholder-breathe-duration,1.6s) ease-in-out infinite}
@media(max-width:600px){.shared-media-loading-table-row {grid-template-columns:2fr 1fr}.shared-media-loading-table-cell:nth-child(n+3) {display:none}.shared-media-loading-column {flex-basis:82%}}
@media(prefers-reduced-motion:reduce){.shared-media-loading [data-slot=skeleton],.shared-media-loading[data-loading-layout=preview] {animation:none}}

/* The one loading animation (tools/ui/show/loading-mark): a needle stitches the look's accent thread across the space,
   pulls it through and starts again. It waits the look's placeholder-reveal-delay (~500 ms) before showing so a fast answer never flashes, and holds still
   for reduced motion. Also the moving highlight over the screen-state loading rows (21st.dev Skeleton Loader, 19999). */
.loading-mark {display:inline-flex;align-items:center;justify-content:center;flex:none;animation:loading-mark-appear .24s ease-out var(--placeholder-reveal-delay,.3s) both;line-height:0}
.loading-mark[data-loading-mark=sm] {width:30px;height:12px}
.loading-mark[data-loading-mark=md] {width:48px;height:18px}
.loading-mark[data-loading-mark=lg] {width:96px;height:36px}
.loading-mark-art {width:100%;height:100%;overflow:visible}
.loading-mark-guide {stroke:currentColor;stroke-opacity:.12;stroke-width:1;stroke-dasharray:2.4 2.6;stroke-linecap:round}
.loading-mark-thread {stroke:var(--thread-line,var(--accent-primary,#ff1d1d));stroke-width:1.8;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100;animation:loading-mark-thread 1.9s cubic-bezier(.55,0,.35,1) var(--placeholder-reveal-delay,.3s) infinite}
.loading-mark-needle {offset-rotate:auto;offset-distance:0%;animation:loading-mark-needle 1.9s cubic-bezier(.55,0,.35,1) var(--placeholder-reveal-delay,.3s) infinite}
.loading-mark-needle-body {fill:currentColor}
.loading-mark-needle-eye {fill:var(--glass-bg-primary,#fffdf8)}
[data-loading-mark=sm] .loading-mark-thread {stroke-width:2.4}
[data-loading-mark=sm] .loading-mark-guide {display:none}
/* Inside a pressed button the thread takes the button's own text colour, so it reads on a red or an ink fill. */
:is(button,[role=button],a) .loading-mark-thread {stroke:currentColor}
:is(button,[role=button],a) .loading-mark-needle-eye {fill:transparent}
@keyframes loading-mark-appear {from {opacity:0;transform:translateY(2px)}}
@keyframes loading-mark-thread {0% {stroke-dashoffset:100} 62% {stroke-dashoffset:0} 100% {stroke-dashoffset:-100}}
@keyframes loading-mark-needle {0% {offset-distance:0%;opacity:0} 8% {opacity:1} 62% {offset-distance:100%;opacity:1} 80%,100% {offset-distance:100%;opacity:0}}
/* The screen-state loading rows: the mark over them, the whole block waiting the look's reveal delay, a highlight crossing each bar. */
.shared-media-loading[data-screen-state=loading] {animation:loading-mark-appear .24s ease-out var(--placeholder-reveal-delay,.3s) both}
.screen-state-loading-mark {grid-column:1/-1;display:flex;justify-content:center;padding:28px 0 20px}
.shared-media-loading[data-screen-state=loading] [data-slot=skeleton] {background:linear-gradient(100deg,var(--glass-bg-secondary,rgba(25,25,25,.05)) 30%,color-mix(in srgb,var(--thread-line,var(--accent-primary,#ff1d1d)) 6%,var(--glass-bg-secondary,rgba(25,25,25,.05))) 50%,var(--glass-bg-secondary,rgba(25,25,25,.05)) 70%);background-size:300% 100%;animation:loading-mark-shimmer var(--shimmer-duration,1.9s) ease-in-out infinite}
@keyframes loading-mark-shimmer {from {background-position:100% 0} to {background-position:0 0}}
@media(prefers-reduced-motion:reduce){
  .loading-mark,.shared-media-loading[data-screen-state=loading] {animation-duration:.01s}
  .loading-mark-thread {animation:none;stroke-dashoffset:0}
  .loading-mark-needle {animation:none;offset-distance:100%;opacity:1}
  .shared-media-loading[data-screen-state=loading] [data-slot=skeleton] {animation:none}
}

/* A load that runs long says it is still working (tools/ui/show/still-working): one quiet line under the needle and
   thread whose words change as time passes, with a light sweeping across it like a thinking line, still under reduced
   motion. */
.screen-state-still-working {grid-column:1/-1;margin:-8px 0 16px;text-align:center;font-size:.875rem;line-height:1.4;color:var(--color-muted-foreground);background:linear-gradient(90deg,var(--color-muted-foreground) 0%,var(--color-muted-foreground) 40%,var(--color-foreground) 50%,var(--color-muted-foreground) 60%,var(--color-muted-foreground) 100%);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:still-working-sweep 2.4s linear infinite}
@keyframes still-working-sweep {from{background-position:100% 0}to{background-position:-100% 0}}
@media (prefers-reduced-motion: reduce) {.screen-state-still-working{animation:none;-webkit-text-fill-color:currentColor;background:none}}

/* The border beam (tools/ui/show/border-beam): while a box is at work the look's thread travels round its border with
   a soft bloom, as the loading mark's needle runs its stitch. A conic light on an animated angle is masked to the
   border ring; the bloom is the same ring blurred. It waits ~300 ms before showing, fades out when the work ends, and
   holds still for reduced motion. The box keeps its own corners; the beam inherits them. The box is positioned by its
   caller (the shared Container's position="relative"), so the beam fills exactly that box.
   Motion anatomy: Libraries.dev Border beam (MIT); written from scratch. */
@property --border-beam-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.border-beam {
  --border-beam-colour: var(--thread-line, var(--accent-primary, #ff1d1d));
  --border-beam-width: 1.5px;
  --border-beam-turn: 2.8s;
  display: block; position: absolute; inset: 0; margin: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .3s ease-out;
}
.border-beam[data-border-beam=on] { opacity: 1; transition: opacity .24s ease-out .3s; }
.border-beam-bloom { display: block; position: absolute; inset: 0; border-radius: inherit; filter: blur(6px); opacity: .6; }
.border-beam-ring {
  display: block; position: absolute; inset: 0; border-radius: inherit; padding: var(--border-beam-width);
  background: conic-gradient(from var(--border-beam-angle),
    transparent 0deg 220deg,
    color-mix(in srgb, var(--border-beam-colour) 35%, transparent) 290deg,
    var(--border-beam-colour) 340deg,
    transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: border-beam-turn var(--border-beam-turn) linear infinite paused;
}
.border-beam-bloom > .border-beam-ring { padding: calc(var(--border-beam-width) * 2.5); }
.border-beam[data-border-beam=on] .border-beam-ring { animation-play-state: running; }
@keyframes border-beam-turn { to { --border-beam-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .border-beam-ring { animation: none; background: color-mix(in srgb, var(--border-beam-colour) 40%, transparent); }
  .border-beam-bloom { display: none; }
}

/* The empty and failed screen states (tools/ui/show/screen-state). The loading rows are media-loading.css.
   An empty state is quiet: a soft tile, the title, one outlined way forward. A failed state keeps the same frame and
   says it failed through its tile and its filled Try again, never by turning the words red. */
[data-slot=empty].screen-state {border:0;min-height:min(420px,70vh);padding:48px 24px;gap:20px}
[data-slot=empty].screen-state .screen-state-icon {width:48px;height:48px;border-radius:14px;margin-bottom:6px;background:color-mix(in srgb,var(--text-primary) 6%,transparent);color:var(--text-secondary);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--text-primary) 8%,transparent)}
[data-slot=empty].screen-state .screen-state-icon svg {width:22px;height:22px}
[data-slot=empty].screen-state .screen-state-title {font-family:var(--font-display);font-size:1.0625rem;font-weight:600;letter-spacing:normal;color:var(--text-primary)}
[data-slot=empty].screen-state .screen-state-description {max-width:30rem;font-size:.875rem;line-height:1.55}
[data-slot=empty].screen-state .screen-state-actions {flex-direction:row;flex-wrap:wrap;justify-content:center;gap:8px;max-width:30rem}
/* Try again, Ask your AI and the place to go instead read as one row of one size, on a phone too. */
[data-slot=empty].screen-state .screen-state-actions [data-slot=button] {font-size:.875rem}
[data-slot=empty].screen-state[data-screen-state=failed] .screen-state-icon {background:color-mix(in srgb,var(--color-error) 10%,transparent);color:var(--color-error);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--color-error) 22%,transparent)}
[data-slot=empty].screen-state[data-screen-state=unavailable] .screen-state-icon {background:color-mix(in srgb,var(--color-info) 9%,transparent);color:var(--color-info);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--color-info) 18%,transparent)}
[data-slot=empty].screen-state[data-inline=true] {display:flex;flex:initial;flex-direction:row;align-items:center;justify-content:flex-start;min-height:0;padding:10px 12px;gap:10px;border:1px solid color-mix(in srgb,var(--text-primary) 12%,transparent);border-radius:10px;text-align:left}
[data-slot=empty].screen-state[data-inline=true] .screen-state-icon {width:30px;height:30px;margin:0;border-radius:8px}
[data-slot=empty].screen-state[data-inline=true] .screen-state-icon svg {width:16px;height:16px}
/* Inline, the title sits above its description beside the icon (an alert's shape: 21st.dev cnippet-dev/v-alert-3), so a
   narrow place never squeezes the title into one word a line. */
[data-slot=empty].screen-state[data-inline=true] [data-slot=empty-header] {display:grid;flex:1;grid-template-columns:auto minmax(0,1fr);align-items:center;justify-items:start;gap:2px 10px;max-width:none;text-align:left}
[data-slot=empty].screen-state[data-inline=true] [data-slot=empty-header] > .screen-state-icon {grid-row:span 2}
[data-slot=empty].screen-state[data-inline=true] .screen-state-title {font-size:.875rem}
[data-slot=empty].screen-state[data-inline=true] .screen-state-description {font-size:.8125rem}
[data-slot=empty].screen-state[data-inline=true] .screen-state-actions {width:auto;max-width:none;flex-direction:row;gap:6px}
[data-slot=empty].screen-state[data-inline=true] .screen-state-actions [data-slot=button] {min-height:32px;padding:4px 8px;font-size:.8125rem}
.trillion-screen-view [data-slot=empty].screen-state {min-height:0;padding:28px 20px;gap:12px}
.trillion-screen-view [data-slot=empty].screen-state .screen-state-icon {margin-bottom:0}
[data-slot=empty].screen-state {animation:screen-state-in .18s ease-out both}
@keyframes screen-state-in {from {opacity:0;transform:translateY(4px)}}
@media(max-width:600px){[data-slot=empty].screen-state {min-height:280px;padding:32px 16px}[data-slot=empty].screen-state[data-inline=true] {min-height:0;padding:8px;gap:7px}[data-slot=empty].screen-state[data-inline=true] [data-slot=empty-header] {flex-wrap:wrap;gap:3px 7px}}
@media(prefers-reduced-motion:reduce){[data-slot=empty].screen-state {animation:none}}

/* packages/screen-look/show/media-preview.css
 *
 * Appearance of the shared MediaPreview (packages/ui/show/media-preview): the
 * picture, waveform, text or type mark that stands in for one record. The
 * preview fills whatever box its host gives it; the host decides the size.
 *
 * Shimmer: a highlight sweeping left to right across the placeholder while a
 * picture or waveform loads, adapted from 21st.dev "Skeleton Loader"
 * (animbits, id 19999) as a pure CSS transform so a hundred tiles cost no
 * script. Text tiles follow the large muted passage with a small type mark
 * seen in Higgsfield's asset grid; audio tiles follow the centred bar
 * waveform in Descript's media library.
 */

.media-preview {
  --media-preview-placeholder: var(--t-background-tertiary, rgb(0 0 0 / 0.06));
  --media-preview-highlight: rgb(255 255 255 / 0.42);
  --media-preview-ink: var(--t-font-color-tertiary, #5f6368);
  --media-preview-muted: var(--t-font-color-light, #8a8f98);
  --media-preview-bar: var(--t-font-color-tertiary, #5f6368);
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--t-border-radius-sm, 4px);
  background-color: var(--media-preview-placeholder);
  color: var(--media-preview-ink);
  font-family: var(--t-font-family, inherit);
  -webkit-user-select: none;
  user-select: none;
}

.media-preview-picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 180ms ease-out;
}

.media-preview[data-state='ready'] .media-preview-picture {
  opacity: 1;
}

/* A document's first page shows whole on white, never cropped: a wide page is not cut at its sides. */
.media-preview[data-renderer='document-page'] {
  background-color: #fff;
}

.media-preview[data-renderer='document-page'] .media-preview-picture {
  object-fit: contain;
  object-position: top center;
}

.media-preview-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, var(--media-preview-highlight) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: media-preview-shimmer 1.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes media-preview-shimmer {
  to { transform: translateX(100%); }
}

.media-preview-waveform {
  position: absolute;
  inset: 12% 8%;
  width: 84%;
  height: 76%;
}

.media-preview-waveform-bar {
  fill: var(--media-preview-bar);
}

.media-preview:is([data-renderer='text-snippet'], [data-renderer='markdown-snippet']) {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--t-spacing-2, 8px);
  /* A host that floats controls over the tile's top (a gallery card's select
   * box and menu) names their height; the words start below them. */
  padding-top: max(var(--t-spacing-2, 8px), var(--media-preview-overlay-top, 0px));
}

/* The passage takes the room above the type mark and never the mark's own
 * line: a column with the passage allowed to shrink, clamped to whole lines
 * that fit the tile (its max-height, rounded down to lines), so a small tile shows fewer
 * lines instead of running words under "Note". One size for every tile,
 * matching the type tile's title, never the page's body size. */
.media-preview-snippet {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  flex: 0 1 auto;
  min-height: 0;
  /* Whole lines only: the room above the type mark (its 16px line and the 6px
   * gap), rounded down to whole lines, never half a line. */
  max-height: round(down, 100% - 22px, 16px);
  overflow: hidden;
  font-size: 12px;
  line-height: 16px;
  color: var(--media-preview-ink);
  overflow-wrap: anywhere;
}

/* A written file's lines stay the lines it was written in. */
.media-preview[data-renderer='text-snippet'] .media-preview-snippet {
  white-space: pre-line;
}

/* A markdown passage reads as its words: a heading is a bold line, a quote an
 * indented line with a rule beside it, a list its items; every block keeps the
 * tile's one type size and line height, so the tile still holds whole lines. */
.media-preview-snippet :is(h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, pre) {
  margin: 0;
  font: inherit;
  line-height: inherit;
  color: inherit;
}

.media-preview-snippet :is(h1, h2, h3, h4, h5, h6) {
  font-weight: 600;
}

.media-preview-snippet blockquote {
  font-family: var(--font-display, inherit);
  color: var(--media-preview-muted);
}

.media-preview-snippet :is(ul, ol) {
  padding-inline-start: 14px;
}

.media-preview-snippet :is(code, pre) {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: inherit;
  white-space: pre-wrap;
}

.media-preview-snippet hr {
  display: none;
}

.media-preview:is([data-renderer='text-snippet'], [data-renderer='markdown-snippet']) .media-preview-type-mark {
  flex: none;
  margin-top: auto;
}


.media-preview-type {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: var(--t-spacing-2, 8px);
  text-align: center;
}

.media-preview-type-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--media-preview-muted);
  font-size: 11px;
  line-height: 1;
}

.media-preview-type-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.media-preview-type-title {
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 12px;
  line-height: 16px;
  color: var(--media-preview-ink);
  overflow-wrap: anywhere;
}

/* A tile smaller than a word (a table row's thumbnail) keeps only its icon. */
@container (max-height: 40px) {
  .media-preview-type-label,
  .media-preview-type-title,
  .media-preview-snippet {
    display: none;
  }
}

/* A tile narrower than a word (a file waiting in the message box, named beside it) keeps its icon with its type under
 * it: a name there would show as its first few letters, and the type beside the icon would be cut at the edge. */
@container (max-width: 64px) {
  .media-preview-type {
    padding: 4px;
  }
  .media-preview-type-mark {
    flex-direction: column;
  }
  .media-preview-type-title {
    display: none;
  }
}

.media-preview {
  container-type: size;
}

[data-look-scheme="dark"] .media-preview {
  --media-preview-highlight: rgb(255 255 255 / 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .media-preview-shimmer {
    animation: none;
    transform: none;
    background: var(--media-preview-highlight);
    opacity: 0.4;
  }

  .media-preview-picture {
    transition: none;
  }
}

/* Scrubbing a video tile: the frame under the pointer, cut from a strip of
 * small frames, covers the tile the way the still picture does (a frame of
 * another shape is cropped, never stretched), with a thin bar along the bottom
 * saying how far into the video it is. */
.media-preview-scrub {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  container-type: size;
}

.media-preview-scrub-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100cqw, calc(100cqh * var(--media-preview-frame-aspect, 1.7778)));
  height: max(100cqh, calc(100cqw / var(--media-preview-frame-aspect, 1.7778)));
  transform: translate(-50%, -50%);
  background-repeat: no-repeat;
}

.media-preview-scrub-line {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: rgb(255 255 255 / 0.9);
  box-shadow: 0 -1px 0 rgb(0 0 0 / 0.25);
}

/* packages/screen-look/show/hover-preview.css
 *
 * Appearance of the shared HoverPreview (packages/ui/show/hover-preview): the
 * screen at the top of a hover card, which holds THE one file preview
 * (file-preview.css) in its glance size, and, with several items, the
 * row that moves between them. The card itself is the record-preview look in
 * navigation-preview.css. Anatomy follows Dropbox Dash's file hover card
 * (picture first, name, then facts; mobbin.com/screens/45d0683f-4dce-47b9-af7b-8413b6a17db2)
 * with the carousel's position kept to one quiet line under the picture.
 */

.hover-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.hover-preview-screen {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: color-mix(in srgb, var(--color-foreground, #eee) 6%, transparent);
}

/* A playing video gets a definite height: the shared file preview fits its
 * player inside a size container, which has no height of its own to give. */
.hover-preview-screen[data-preview-screen="video"] { height: min(42vh, 340px); background: #000; }
.hover-preview-screen[data-preview-screen="video"] [data-media-playback-browser-source] {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  max-height: 42vh;
  margin-inline: auto;
}

.hover-preview-screen[data-preview-screen="picture"],
.hover-preview-screen[data-preview-screen="pdf"],
.hover-preview-screen[data-preview-screen="office"],
.hover-preview-screen[data-preview-screen="file"],
.hover-preview-screen[data-preview-screen="card"] {
  height: min(42vh, 340px);
}

.hover-preview-screen[data-preview-screen="text"] { max-height: min(34vh, 300px); }
.hover-preview-screen[data-preview-screen="text"] .file-preview { height: auto; max-height: min(34vh, 300px); }

.hover-preview-screen[data-preview-screen="sound"] {
  display: grid;
  gap: 6px;
  padding: 8px;
}

.hover-preview-waveform { height: 72px; }

/* A sound's player is a card sized by its own content, not by a box. */
.hover-preview-screen[data-preview-screen="sound"] [data-file-preview-player] { container-type: normal; }

.hover-preview-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.hover-preview-position {
  min-width: 56px;
  text-align: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted, var(--color-muted-foreground, #9298a6));
}

/*
 * PORTED FROM: the media-workspace checkout's media-player.css .mw-clip-surface [data-summary] (lines 2068-2094: the open
 * recording's summary grid and its transcript beside the player) and its shared-controls.css
 * .mw-clip-surface .coss-action-cards (lines 9191-9200: the action row), recorded in scripts/port-sources.json; the
 * Expansion selectors are renamed to the shared file card's and its colours read the worn look's tokens.
 *
 * Appearance of the shared file card (ui/show/file-card): what a file is and what can be done with it, under its
 * screen in every hover card and beside the file in its own tab. Order and rhythm after Dropbox Dash's file hover
 * card (facts first, then actions; mobbin.com/screens/45d0683f-4dce-47b9-af7b-8413b6a17db2) and Frame.io's asset
 * panel (each comment led by its person). Sections are quiet: a small muted heading, then rows; nothing boxed but the
 * related files' pictures. The card sizes to its container, so it reads the same at a phone's width and a wide pane.
 */

/* In a hover card the video gives the card room: a shorter screen, so the facts and actions show without scrolling
 * wherever the card opens (a card near the top of the window has little height). */
.record-preview:has(.file-card) .hover-preview-screen[data-preview-screen="video"] { height: min(26vh, 220px); }
.record-preview:has(.file-card) .hover-preview-screen[data-preview-screen="video"] [data-media-playback-browser-source] { max-height: 26vh; }

.file-card { container-type: inline-size; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.file-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.file-card-section { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.file-card-next { flex-direction: row; flex-wrap: wrap; gap: 4px; }

/* Everything about the file sits in one disclosure behind the info button beside the ⋯ (closed in a hover card, open
 * in the file's own view); the button shows it is open the way a pressed toggle does. */
.file-card-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.file-card-info[hidden] { display: none; }
.file-card-info-toggle[aria-expanded="true"] { color: var(--color-foreground); background: color-mix(in srgb, var(--color-foreground) 8%, transparent); }
.file-card-heading {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--color-muted-foreground);
}

.file-card-people { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0; padding: 0; list-style: none; }
.file-card-person[data-unsure] { opacity: .72; font-style: italic; }

/* What was said, as a transcript: each line starts with its time, a small muted chip in a column of its own so every
 * line's words start at the same place, then who said it and the words, wrapping under themselves. */
.file-card-words {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: min(30vh, 260px);
  overflow: auto;
  overscroll-behavior: contain;
}
.file-card[data-file-card="full"] .file-card-words { max-height: none; }
.file-card-turn { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); align-items: baseline; gap: 8px; min-width: 0; font-size: 13px; line-height: 1.5; }
.file-card-at.file-card-at {
  justify-self: start;
  height: 20px;
  min-width: 0;
  padding: 0 6px;
  border-radius: var(--radius-chip);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--color-muted-foreground);
  background: color-mix(in srgb, var(--color-foreground) 6%, transparent);
}
.file-card-line { min-width: 0; overflow-wrap: anywhere; }
.file-card-who { display: inline-flex; vertical-align: baseline; margin-inline-end: 6px; font-size: 12px; font-weight: 600; }
.file-card-turn[data-unsure] .file-card-who { font-style: italic; opacity: .8; }
.file-card-turn[data-me] .file-card-who { color: var(--accent-primary); }
.file-card-all { align-self: flex-start; }

/* Files beside it: small pictures in a grid that wraps, two across on a phone. */
.file-card-related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.file-card-related-item.file-card-related-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  height: auto;
  padding: 4px;
  white-space: normal;
}
.file-card-related-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-chip);
  background: color-mix(in srgb, var(--color-foreground) 6%, transparent);
}
.file-card-related-title {
  overflow: hidden;
  font-size: 11px;
  text-align: start;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@container (max-width: 360px) {
  .file-card-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/*
 *
 * How answering a thing in place looks: the reaction chips and their picker (ui/show/reactions/ReactionRow), the bar
 * over selected words and its comment box (ui/show/responses/SelectionResponses), the words a reply is about
 * (.thread-quote in ui/show/coss/thread), and the nested cards a face opens (ui/show/coss/person-hover).
 * After 21st.dev Reaction Chip #6601 (small rounded chip, glyph then count, pressed tint), Selection Bubble Menu #26926
 * (a compact floating bar), Higgsfield's pinned comment card and Descript's quoted range (Mobbin).
 * Colours, corners and type come from the look's own tokens, so every look draws them its own way.
 */

.reaction-row { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; min-width: 0; }
.reaction-chip { border-radius: var(--radius-chip, 0.375rem); padding-inline: 0.45rem; gap: 0.3rem; font-variant-numeric: tabular-nums; }
.reaction-chip[data-yours] {
  border-color: color-mix(in srgb, var(--color-primary, #292929) 40%, transparent);
  background: color-mix(in srgb, var(--color-primary, #292929) 10%, transparent);
}
.reaction-count { font-size: 0.75rem; font-weight: 600; color: var(--color-muted-foreground, #666); }
.reaction-chip[data-yours] .reaction-count { color: var(--color-primary, #292929); }
.reaction-emoji { font-size: 0.95rem; line-height: 1; }
.reaction-picture { width: 1.1rem; height: 1.1rem; border-radius: calc(var(--radius-control, 0.375rem) / 2); object-fit: cover; }
.reaction-add { border-radius: 999px; color: var(--color-muted-foreground, #666); }
.reaction-row[data-compact] .reaction-chip { height: 1.5rem; }

.reaction-picker { width: min(18rem, calc(100vw - 1.5rem)); }
.reaction-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(2rem, 1fr)); gap: 0.125rem; }
.reaction-offered { font-size: 1.15rem; }
.reaction-offered[aria-pressed="true"] { background: color-mix(in srgb, var(--color-primary, #292929) 12%, transparent); }
.reaction-own { display: flex; gap: 0.375rem; align-items: center; margin-top: 0.625rem; padding-top: 0.625rem; border-top: 1px solid var(--border-primary, rgb(0 0 0 / 8%)); }
.reaction-own > :first-child { flex: 1; min-width: 0; }

/* The bar over selected words, and the box it opens. */
.selection-responses { max-width: min(22rem, calc(100vw - 1rem)); }
/* The bar opens on the words at once: its positioner never glides in from the corner the way a moved card does. */
[data-slot="popover-positioner"]:has(> .selection-responses) { transition: none; }
.selection-responses[data-ending-style] { opacity: 0; transform: scale(.98); transition-duration: 160ms; }
@media (prefers-reduced-motion: reduce) {
  .selection-responses[data-ending-style] { transition-duration: 1ms; }
}
.selection-responses [data-slot="popover-viewport"] { padding: 0.25rem; }
.selection-responses[data-writing] [data-slot="popover-viewport"] { padding: 0.75rem; }
.selection-responses-bar { display: flex; align-items: center; gap: 0.125rem; flex-wrap: wrap; }
.selection-responses-box { display: grid; gap: 0.5rem; width: min(20rem, calc(100vw - 2.5rem)); }
@media (max-width: 480px) {
  .selection-responses-box { width: min(19rem, calc(100vw - 3.5rem)); }
}
.selection-responses-thread { display: grid; gap: 0.4rem; max-height: min(15rem, 35vh); overflow-y: auto; font-size: 0.8125rem; color: var(--color-muted-foreground, #666); }
.selection-responses-entry { display: grid; gap: 0.125rem; padding: 0.45rem 0.55rem; border: 1px solid var(--border-primary, rgb(0 0 0 / 8%)); border-radius: var(--radius-control, 0.375rem); color: var(--color-foreground, #1f1f1f); }
.selection-responses-entry[data-reply] { margin-left: 0.7rem; border-left: 1px solid var(--border-primary, rgb(0 0 0 / 8%)); }
.selection-responses-entry p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.selection-responses-entry-by { font-weight: 600; }
.selection-responses-entry > button { justify-self: start; }
.selection-responses-replying { font-size: 0.75rem; color: var(--color-muted-foreground, #666); }
.selection-responses-foot { display: flex; align-items: center; gap: 0.375rem; }
.selection-responses-audience { flex: 1; min-width: 0; font-size: 0.75rem; color: var(--color-muted-foreground, #666); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The words of what a reply answers, above the reply's own words. */
.thread-quote, .selection-responses-quote {
  margin: 0.25rem 0 0;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-control, 8px);
  background: color-mix(in srgb, var(--color-foreground, #292929) 6%, transparent);
  color: var(--color-muted-foreground, #666);
  font-size: 0.8125rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* A face and the cards it opens. The face keeps the look's control corner, so a square look draws square faces. */
.person-hover-trigger, .person-hover-count, .person-hover-thing {
  all: unset; box-sizing: border-box; cursor: pointer; border-radius: var(--radius-control, 0.375rem);
}
.person-hover-trigger:focus-visible, .person-hover-count:focus-visible, .person-hover-thing:focus-visible { outline: 2px solid var(--color-ring, #888); outline-offset: 2px; }
.person-hover { width: min(20rem, calc(100vw - 1.5rem)); }
.person-hover-head { display: flex; align-items: center; gap: 0.625rem; }
.person-hover-name { margin: 0; font-weight: 600; font-size: 0.9375rem; }
.person-hover-count {
  display: inline-block; margin-top: 0.5rem; font-size: 0.8125rem; color: var(--color-foreground, #1f1f1f);
  text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px;
}
.person-hover-count:hover { text-decoration-color: currentColor; }
.person-hover-list { display: grid; gap: 0.125rem; margin: -0.25rem; }
.person-hover-thing { display: grid; gap: 0.125rem; padding: 0.4rem 0.5rem; }
.person-hover-thing:hover, .person-hover-thing[data-popup-open] { background: var(--color-accent, rgb(0 0 0 / 5%)); }
.person-hover-thing-title { font-size: 0.8125rem; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.person-hover-thing-when, .thread-peek-when { font-size: 0.75rem; color: var(--color-muted-foreground, #666); }
.thread-peek { display: grid; gap: 0.375rem; }
.thread-peek-when { margin: 0; }
.thread-peek .thread-actions { margin-top: 0; }

/* packages/screen-look/show/file-preview.css
 *
 * Appearance of THE one file preview (packages/ui/show/file-preview/FilePreview): every viewer fits the box it is
 * placed in, so the whole file is visible the moment it opens. Anatomy follows Dropbox Dash's side preview (the file
 * alone on a quiet ground, the name above it; mobbin.com/screens/a6bd0b0c-be56-46c7-bf72-68804e1d7a48) and
 * Cofounder's document reader (a readable column with real headings; mobbin.com/screens/7ba20fd8-7a09-4f78-8e2e-8736e07f4f3c);
 * a workbook, and delimited text (CSV, TSV), read like 21st.dev's Excel Viewer (id 15580: a grid with column letters,
 * row numbers that stay in view while scrolling, sheets below).
 */

.file-preview { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; min-width: 0; }
.file-preview > * { flex: 1 1 auto; min-height: 0; }
.trillion-file-transcript { flex: none; min-height: 10rem; max-height: 22rem; padding: 0 18px 18px; overflow: auto; }
.trillion-file-transcript[hidden] { display: none; }
.trillion-file-transcript-content { display: flex; flex-direction: column; gap: 0.65rem; height: clamp(10rem, 28vh, 22rem); }
.trillion-file-transcript-content > .file-preview { flex: 1 1 auto; min-height: 0; }
.trillion-file-review { flex: none; min-width: 0; padding: 0 18px 18px; }
.trillion-file-review > [aria-label="Recording review"] { min-width: 0; }
/* Written files stay readable inside a media carousel's dark video frame, in either screen look. */
.file-preview:is([data-file-viewer="text"], [data-file-viewer="markdown"], [data-file-viewer="table"], [data-file-viewer="office"], [data-file-viewer="file"]) {
  background: var(--color-background, #fff);
  color: var(--color-foreground, #111);
}

/* A video or sound: the player box is a size container, and the player (media-playback, which reports the video's
 * own shape as --media-aspect) takes the widest size whose height still fits, centred. A sound has no picture, so
 * its face is a card no wider than a line of reading and no taller than the box; its words scroll inside it (the
 * compact waveform player of 21st.dev's MP3 Player, id 31602, with words under it as Mistral's speech-to-text page
 * shows them, mobbin.com/screens/3768d985-f9d9-4a1c-a1a6-2a3c012742dd). */
[data-file-preview-player] { container-type: size; align-items: center; }
[data-file-preview-player] [data-media-playback-kind="video"] { width: min(100%, calc(100cqh * var(--media-aspect, 1.7778))); max-height: 100cqh; margin-inline: auto; }
[data-file-preview-player] [data-media-playback-kind="audio"] { width: min(100%, 44rem); max-height: 100cqh; margin-inline: auto; }

.file-preview-picture { display: block; width: 100%; height: 100%; object-fit: contain; }

.file-preview-page { display: block; width: 100%; height: 100%; border: 0; border-radius: 8px; background: #fff; }

/* A PDF drawn as its pages (FilePreview Pdf): a quiet ground with each page a sheet of paper on it, a slim bar with the
 * page count and zoom above, and a strip of numbered page pictures to jump by on the left when the box is wide
 * (anatomy: Preview and Gemini Notebook's slide strip, mobbin.com/screens/af9c1d3b-3ad9-4db3-934b-1eccac821991; a page
 * on a quiet ground as AirOps shows a report, mobbin.com/screens/65ce500f-f8c3-4f83-b484-60c115f9f590). */
.file-preview-pdf { container-type: inline-size; display: flex; flex-direction: column; min-height: 0; border-radius: 10px; overflow: hidden; background: color-mix(in srgb, var(--color-foreground, #eee) 5%, var(--color-background, #fff)); }
.file-preview-pdf-bar { flex: none; display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 8px; border-bottom: 1px solid color-mix(in srgb, var(--color-foreground, #eee) 8%, transparent); background: var(--color-background, #fff); }
.file-preview-pdf-count { flex: 1 1 auto; min-width: 0; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--color-muted-foreground, #6b7280); white-space: nowrap; }
.file-preview-pdf-zoom { flex: none; display: flex; align-items: center; gap: 2px; font-variant-numeric: tabular-nums; }
.file-preview-pdf-body { flex: 1 1 auto; display: flex; min-height: 0; }
.file-preview-pdf-rail { flex: none; display: flex; flex-direction: column; align-items: center; gap: 14px; width: 132px; padding: 16px 0; overflow-y: auto; overscroll-behavior: contain; border-inline-end: 1px solid color-mix(in srgb, var(--color-foreground, #eee) 8%, transparent); }
.file-preview-pdf-rail-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.file-preview-pdf-rail-page.file-preview-pdf-rail-page { height: auto; padding: 4px; border-radius: 8px; }
.file-preview-pdf-rail-item[data-current] .file-preview-pdf-rail-page { background: color-mix(in srgb, var(--color-primary, #2563eb) 14%, transparent); }
.file-preview-pdf-rail-number { font-size: 11px; color: var(--color-muted-foreground, #6b7280); font-variant-numeric: tabular-nums; }
.file-preview-pdf-rail-item[data-current] .file-preview-pdf-rail-number { color: var(--color-foreground, #111); font-weight: 600; }
.file-preview-pdf-pages { flex: 1 1 auto; min-width: 0; overflow: auto; overscroll-behavior: contain; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px; outline: none; }
.file-preview-pdf-page { position: relative; flex: none; width: var(--pdf-page-width); height: var(--pdf-page-height); border-radius: 3px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 4px 16px rgb(0 0 0 / 0.08); --scale-round-x: 1px; --scale-round-y: 1px; }
.file-preview-pdf-page:not([data-drawn]) { background: linear-gradient(90deg, #fff, #f4f4f5, #fff); }
.file-preview-pdf-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: inherit; }
.file-preview-pdf-rail .file-preview-pdf-page { box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08); }
.file-preview-pdf[data-glance] { border-radius: 0; background: none; }
.file-preview-pdf[data-glance] .file-preview-pdf-pages { padding: 0; overflow: hidden; }
/* The strip of pages shows when the box has room for it beside a readable page; a narrow box reads the pages alone. */
@container (max-width: 640px) {
  .file-preview-pdf-rail, .file-preview-pdf-rail-toggle { display: none; }
  .file-preview-pdf-pages { padding: 12px; gap: 12px; }
}
/* The page's words, laid invisibly over it so they can be selected and copied (the reader's own text layer rules). */
.file-preview-pdf-words.textLayer { position: absolute; inset: 0; overflow: clip; line-height: 1; text-align: initial; transform-origin: 0 0; z-index: 0; -webkit-text-size-adjust: none; text-size-adjust: none; forced-color-adjust: none; --min-font-size: 1; --text-scale-factor: calc(var(--total-scale-factor) * var(--min-font-size)); --min-font-size-inv: calc(1 / var(--min-font-size)); }
.file-preview-pdf-words.textLayer :is(span, br) { color: transparent; position: absolute; white-space: pre; cursor: text; transform-origin: 0% 0%; user-select: text; }

.file-preview-pdf-words.textLayer ::selection { background: color-mix(in srgb, var(--color-primary, #2563eb) 30%, transparent); }

.file-preview-reading { display: flex; align-items: center; justify-content: center; color: var(--color-muted-foreground, #9298a6); }

.file-preview-note { padding: 8px 2px 0; font-size: 12px; color: var(--color-muted-foreground, #9298a6); }

/* Text and code: the file's own lines, monospaced, scrolling inside the box. */
.file-preview-text { display: flex; flex-direction: column; overflow: auto; overscroll-behavior: contain; }
.file-preview-text-body {
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--color-foreground, #eee) 5%, transparent);
  font-family: var(--t-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}
.file-preview-text[data-glance] .file-preview-text-body { padding: 10px 12px; font-size: 12px; background: none; }

/* Markdown: the file's words as a readable document in the look's own type (MarkdownBlock over the one markdown
 * renderer's doc-* parts); a code block keeps its lines and scrolls sideways. Pair every document word with the
 * foreground of this file-preview surface, including links and marks, rather than MarkdownBlock's separate text role. */
.file-preview .file-preview-markdown { box-sizing: border-box; padding: 14px 18px; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; color: var(--color-foreground, var(--text-primary)); }
.file-preview-markdown .doc-h2 { font-size: 1.35em; font-weight: 650; line-height: 1.3; margin: 1.1em 0 0.45em; }
.file-preview-markdown .doc-h3 { font-size: 1.15em; font-weight: 620; line-height: 1.35; margin: 1em 0 0.4em; }
.file-preview-markdown .doc-h4 { font-size: 1em; font-weight: 600; margin: 0.9em 0 0.35em; }
.file-preview-markdown .doc-p { margin: 0 0 0.75em; }
.file-preview-markdown .doc-list { margin: 0 0 0.75em; padding-inline-start: 1.4em; list-style: disc; }
.file-preview-markdown ol.doc-list { list-style: decimal; }
.file-preview-markdown .doc-list li { margin: 0.2em 0; }
.file-preview-markdown .doc-quote { margin: 0 0 0.75em; font-family: var(--font-display, inherit); font-size: 1.12em; line-height: 1.45; color: var(--color-muted-foreground, #9298a6); }
.file-preview-markdown code { font-family: var(--t-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 0.88em; padding: 0.1em 0.35em; border-radius: 4px; background: color-mix(in srgb, var(--color-foreground, #eee) 7%, transparent); }
.file-preview-markdown .doc-code { margin: 0 0 0.9em; padding: 12px 14px; border-radius: 8px; overflow-x: auto; white-space: pre; line-height: 1.5; background: color-mix(in srgb, var(--color-foreground, #eee) 5%, transparent); }
.file-preview-markdown .doc-code code { padding: 0; background: none; font-size: 12.5px; }
.file-preview-markdown .doc-rule { border: 0; border-top: 1px solid color-mix(in srgb, var(--color-foreground, #eee) 12%, transparent); margin: 1.2em 0; }
.file-preview-markdown .doc-quote--held { font-family: inherit; font-size: 1em; line-height: inherit; color: inherit; padding: 10px 14px; border-radius: 8px; background: color-mix(in srgb, var(--color-foreground, #eee) 5%, transparent); }
.file-preview-markdown .doc-quote--held > :last-child { margin-bottom: 0; }
.file-preview-markdown .doc-table-wrap { margin: 0 0 0.9em; overflow-x: auto; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--color-foreground, #eee) 10%, transparent); }
.file-preview-markdown .doc-table { width: 100%; border-collapse: collapse; font-size: 0.94em; }
.file-preview-markdown .doc-table th, .file-preview-markdown .doc-table td { padding: 7px 12px; text-align: start; vertical-align: top; border-top: 1px solid color-mix(in srgb, var(--color-foreground, #eee) 8%, transparent); }
.file-preview-markdown .doc-table thead th { border-top: 0; font-weight: 600; background: color-mix(in srgb, var(--color-foreground, #eee) 4%, transparent); }
.file-preview-markdown .doc-table [data-align="right"] { text-align: end; }
.file-preview-markdown .doc-table [data-align="center"] { text-align: center; }
.file-preview-markdown .doc-img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.file-preview-markdown .doc-task { list-style: none; margin-inline-start: -1.4em; display: flex; gap: 0.55em; align-items: baseline; }
.file-preview-markdown .doc-task-box { flex: none; width: 0.85em; height: 0.85em; border-radius: 4px; border: 1.5px solid color-mix(in srgb, var(--color-foreground, #eee) 35%, transparent); transform: translateY(0.1em); }
.file-preview-markdown .doc-task[data-done="true"] .doc-task-box { border-color: var(--color-primary, currentColor); background: var(--color-primary, currentColor); }
.file-preview-markdown .doc-task[data-done="true"] { color: var(--color-muted-foreground, #9298a6); }
.file-preview-markdown del { color: var(--color-muted-foreground, #9298a6); }
.file-preview-markdown .file-preview-link { color: var(--color-foreground, currentColor); text-decoration: underline; text-underline-offset: 2px; }
/* Marks in plain words (document-page word-marks.json): a #tag as a small tinted tag, an @handle in the accent
 * colour, a bare address as a link that breaks anywhere so a long one never widens the passage. */
.file-preview-markdown .doc-mark[data-mark="tag"] { display: inline-block; padding: 0 0.4em; border-radius: 999px; font-size: 0.92em; line-height: 1.45; color: var(--color-foreground, currentColor); background: color-mix(in srgb, var(--color-primary, #6b7cff) 12%, transparent); white-space: nowrap; }
.file-preview-markdown .doc-mark[data-mark="handle"] { color: var(--color-foreground, currentColor); font-weight: 550; }
.file-preview-markdown .doc-mark[data-mark="link"] { overflow-wrap: anywhere; }
.file-preview-text[data-glance] .file-preview-markdown { padding: 10px 12px; font-size: 12px; }
/* The document starts and ends at its padding, whatever its first and last parts are. */
.file-preview-markdown > :first-child { margin-top: 0; }
.file-preview-markdown > :last-child { margin-bottom: 0; }

/* A Word document: a readable column on a sheet of paper, headings by the document's own styles. */
.file-preview-document { overflow: auto; overscroll-behavior: contain; }
.file-preview-page-sheet {
  box-sizing: border-box;
  max-width: 46rem;
  margin: 0 auto;
  padding: 40px 48px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--color-foreground, #eee) 4%, transparent);
  line-height: 1.6;
}
.file-preview-document[data-glance] .file-preview-page-sheet { padding: 12px 14px; font-size: 12px; }
.file-preview-paragraph { margin: 0 0 0.6em; white-space: pre-wrap; overflow-wrap: anywhere; }
.file-preview-paragraph[data-heading="1"] { font-size: 1.6em; font-weight: 650; line-height: 1.25; margin-block: 0.4em 0.5em; }
.file-preview-paragraph[data-heading="2"] { font-size: 1.3em; font-weight: 620; line-height: 1.3; margin-block: 0.6em 0.4em; }
.file-preview-paragraph[data-heading="3"],
.file-preview-paragraph[data-heading="4"] { font-size: 1.1em; font-weight: 600; margin-block: 0.6em 0.3em; }

/* An Excel workbook: a grid with column letters and row numbers, its sheets as tabs below. */
.file-preview-workbook { display: flex; flex-direction: column; min-height: 0; }
.file-preview-workbook-grid { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.file-preview-grid { font-size: 12px; font-variant-numeric: tabular-nums; }
.file-preview-grid td, .file-preview-grid th { white-space: nowrap; max-width: 24rem; overflow: hidden; text-overflow: ellipsis; border-inline-end: 1px solid color-mix(in srgb, var(--color-foreground, #eee) 8%, transparent); }
.file-preview-grid-corner, .file-preview-grid-row { width: 3rem; text-align: end; color: var(--color-muted-foreground, #9298a6); }
.file-preview-workbook-grid .file-preview-grid thead { position: sticky; top: 0; z-index: 1; background: var(--color-background, #111); }
.file-preview-workbook-grid .file-preview-grid-row { position: sticky; left: 0; z-index: 1; background: var(--color-background, #111); }
.file-preview-workbook-grid .file-preview-grid thead .file-preview-grid-corner { position: sticky; left: 0; z-index: 2; background: var(--color-background, #111); }
.file-preview-workbook-grid .file-preview-grid thead th { text-align: center; font-weight: 500; color: var(--color-muted-foreground, #9298a6); }
.file-preview-workbook-grid .file-preview-grid td { border-bottom: 1px solid color-mix(in srgb, var(--color-foreground, #eee) 6%, transparent); }
.file-preview-workbook[data-glance] .file-preview-grid { font-size: 11px; }
.file-preview-document .file-preview-grid { margin-block: 0.6em 1em; }
.file-preview-sheets { flex: none; display: flex; gap: 4px; overflow-x: auto; padding-top: 8px; }

/* A PowerPoint deck: each slide a card with its number and its words. */
.file-preview-slides { display: flex; flex-direction: column; gap: 12px; overflow: auto; overscroll-behavior: contain; }
.file-preview-slide {
  position: relative;
  box-sizing: border-box;
  aspect-ratio: 16 / 9;
  flex: none;
  padding: 28px 36px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-foreground, #eee) 5%, transparent);
  overflow: hidden;
}
.file-preview-slide-number { position: absolute; top: 10px; right: 14px; font-size: 11px; color: var(--color-muted-foreground, #9298a6); }

/* Anything else: its icon, name and a Download button, centred. */
.file-preview-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; }
.file-preview-card .file-preview-note { padding: 0; }
.file-preview-card-name { font-weight: 600; overflow-wrap: anywhere; }

/* Files a run made (file-preview/KeptFiles.tsx): each file shown whole in a quiet framed box, a video or sound
 * playable in place, its name and Open along its foot. */
.kept-files { display: grid; gap: 1rem; min-width: 0; }
.kept-file { display: grid; gap: 0.5rem; min-width: 0; }
.kept-file-preview { height: clamp(12rem, 40vw, 24rem); overflow: hidden; border: 1px solid var(--border-subtle, var(--border)); border-radius: var(--radius-lg, 0.5rem); background: var(--bg-surface, transparent); }
.kept-file-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-width: 0; }
.kept-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }

/*
   The look of the shared NextStepCard (tools/ui/show/next-step-card): one
   compact row above a media grid, small pictures left, one sentence and its
   reason in the middle, actions right. Anatomy from the composer rows Bloom,
   OpenAI Platform and ElevenLabs keep beside their media grids
   (https://mobbin.com/screens/8dd64604-12a1-46b1-b459-c815b01b3f01), pinned
   rather than floating so it never covers a picture. */
/* The host class raises specificity over the Card's own column layout. */
.next-step-card-host>.next-step-card{display:flex;flex-direction:row;align-items:center;gap:12px;padding:8px;margin:0 0 12px;border-radius:12px}
.next-step-card[data-pending] .next-step-card-body{opacity:.6}
.next-step-card-media{display:flex;gap:4px;flex:none}
.next-step-card-thumb{width:44px;height:44px;padding:0;border-radius:8px;overflow:hidden}
.next-step-card-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.next-step-card-media:empty{display:none}
.next-step-card-body{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.next-step-card-title{margin:0;font-weight:600;font-size:14px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.next-step-card-reason{margin:0;font-size:12px;line-height:16px;color:var(--t-font-color-secondary,#666);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.next-step-card-actions{display:flex;align-items:center;gap:4px;flex:none}
.next-step-card-destination{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--t-font-color-secondary,#555)}
/* The card's own width decides its layout, not the window's: a narrow pane
   in a wide window put the sentence and its buttons out of sight and left the
   destination floating over empty space. Narrow, the pictures and sentence
   keep the first line, and the destination starts the second with the
   buttons at its far end, so the width is used rather than left blank. */
.next-step-card-host{container-type:inline-size;container-name:next-step-card}
@container next-step-card (max-width:640px){.next-step-card-host>.next-step-card{flex-wrap:wrap;row-gap:8px}.next-step-card-body{flex:1 1 10rem}.next-step-card-actions{width:100%;justify-content:flex-end}.next-step-card-actions>:first-child{margin-inline-end:auto}}

/* The shared copy button (tools/ui/show/copy-button/CopyButton.tsx), on the workspace tokens: the mark and the words
   each stack their states in one grid cell so the button keeps its size while they cross-fade. */
.copy-button-control {display:inline-flex;align-items:center;position:relative}
.copy-mark {display:inline-grid;width:14px;height:14px;flex-shrink:0}
.copy-mark:not([data-idle-shown]) {width:auto}
.copy-mark-layer {grid-area:1/1;width:14px;height:14px}
.copy-words {display:inline-grid;position:relative}
.copy-words-layer {grid-area:1/1;white-space:nowrap}
.copy-status[role=status] {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.copy-status[role=alert] {font-size:12px;line-height:1.5;color:var(--color-destructive);max-width:28em;margin-inline-start:8px}

/*
 *
 * The look of the shared guide (ui/show/coss/guide.tsx): a centred reading column like 21st.dev's "Use 21st in your
 * agent" page, numbered steps joined by a thin line, a segmented tab track with a raised white tab, copyable lines in
 * white wells, two-column job cards, dotted step progress, and list rows with a quiet divider. Colours come from the
 * Coss tokens the workspace already defines (coss-workspace.css, twenty/theme-light.css), so a theme changes this too.
 *
 * Breathing room is kept: nothing here tightens letter spacing or line height to fit more words.
 */

.guide {
  box-sizing: border-box;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  color: var(--color-foreground, #1f1f1f);
  font-size: 0.9375rem;
  line-height: 1.6;
  container: guide / inline-size;
}
.guide * { box-sizing: border-box; }
.guide p { margin: 0; }

.guide-header { margin-bottom: 2rem; }
.guide-title {
  margin: 0;
  font-family: var(--font-display, ui-serif, Georgia, "Times New Roman", serif);
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 600;
}
.guide-lead { margin-top: 0.6rem; color: var(--color-muted-foreground, #666); font-size: 1rem; max-width: 38rem; }

.guide-progress { margin-top: 1.25rem; display: flex; align-items: center; gap: 0.9rem; }
.guide-progress-dots { display: flex; gap: 0.4rem; }
.guide-progress-dot { width: 2.25rem; height: 0.25rem; border-radius: 999px; background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 14%, transparent); }
.guide-progress-dot--done { background: var(--color-foreground, #1f1f1f); }
.guide-progress-track { width: 9rem; height: 0.25rem; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 14%, transparent); }
.guide-progress-fill { display: block; height: 100%; border-radius: inherit; background: var(--color-foreground, #1f1f1f); }
.guide-progress-label { color: var(--color-muted-foreground, #666); font-size: 0.8125rem; }

.guide-section { padding: 1.75rem 0; border-top: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 9%, transparent); }
.guide-header + .guide-section { border-top: 0; padding-top: 0; }
.guide-section-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.4rem; }
.guide-section-heading { margin: 0; font-size: 1.0625rem; line-height: 1.4; font-weight: 600; }
.guide-section-body { color: var(--color-muted-foreground, #666); margin-bottom: 1rem; max-width: 40rem; }
.guide-note { margin-top: 0.9rem !important; color: var(--color-muted-foreground, #666); font-size: 0.8125rem; }
.guide-widen { margin-top: 1.25rem; }
.guide-section-actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* One ordered list of bordered cards; each mark is the shared step mark (step-mark.css). A step not done has a bold
   title and its action inside the card; a done step keeps a muted title and shows no body, only its values as chips.
   A step's own screen can sit in place under it (.guide-step-place). */
.guide-steps { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; margin: 0.5rem 0 0; padding: 0; }
.guide-step {
  display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: 0.625rem; align-items: start;
  padding: 1rem; border: 1px solid var(--color-border); border-radius: 0.75rem; background: var(--color-card, #fff);
}
/* A whole screen in place stays a bounded box that scrolls inside itself, so the steps after it stay in reach. */
.guide-step-place {
  margin-top: 0.85rem; border: 1px solid var(--color-border); border-radius: 0.875rem; overflow: auto;
  min-height: 18rem; max-height: min(70vh, 40rem); overscroll-behavior: contain; display: flex;
}
.guide-step-place > * { flex: 1 0 auto; min-width: 0; }
.guide-step-content { min-width: 0; padding-top: 0.15rem; }
.guide-step-title { font-weight: 600; overflow-wrap: anywhere; }
.guide-step--done .guide-step-title { font-weight: 500; color: var(--color-muted-foreground, #666); }
.guide-step--checking .guide-step-title { font-weight: 500; }
.guide-step-body { margin-top: 0.2rem !important; color: var(--color-muted-foreground, #666); }
.guide-step-owner { margin-top: 0.2rem !important; font-size: 0.8125rem; color: var(--color-muted-foreground, #666); }
/* A value is a row: its name on the left, what was found on the right, stacked on a narrow pane. */
.guide-step-note {
  margin-top: 0.45rem !important; font-size: 0.875rem; color: var(--color-foreground, #1f1f1f);
  display: grid; grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr); gap: 0.15rem 0.75rem; overflow-wrap: anywhere;
}
.guide-step-note-label { font-weight: 400; color: var(--color-muted-foreground, #666); }
@media (max-width: 480px) { .guide-step-note { grid-template-columns: minmax(0, 1fr); } }
.guide-step-actions { margin-top: 0.7rem; display: flex; flex-wrap: wrap; gap: 0.5rem; min-width: 0; max-width: 100%; }
.guide-step-progress { margin-top: 0.6rem; display: flex; flex-direction: column; gap: 0.35rem; }
.guide-step-progress .guide-progress-track { width: 100%; max-width: 16rem; }

/* Connected things as compact chips: a 20px logo tile, the name, the status and the action, wrapping on a narrow pane. */
.guide-step-items { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0.6rem 0 0; padding: 0; }
.guide-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-card, #fff);
  font-size: 0.8125rem; line-height: 1.4;
}
.guide-chip-logo { width: 20px; height: 20px; flex: none; border-radius: 6px; }
.guide-chip-name { min-width: 0; overflow-wrap: anywhere; }
.guide-chip > * { max-width: 100%; }
.guide-step-more { margin-top: 0.5rem; }

/* A copyable line in a white well, the copy button at its right edge. */
.guide-code {
  margin-top: 0.7rem;
  display: flex; align-items: flex-start; gap: 0.5rem;
  padding: 0.55rem 0.5rem 0.55rem 0.85rem;
  border-radius: 0.6rem;
  border: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 10%, transparent);
  background: var(--color-card, #fff);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--color-foreground, #1f1f1f) 4%, transparent);
}
.guide-code-text {
  flex: 1; min-width: 0; margin: 0; padding-top: 0.2rem;
  font-family: var(--font-mono, ui-monospace, monospace); font-size: 0.8125rem; line-height: 1.55;
  white-space: pre-wrap; overflow-wrap: anywhere; color: var(--color-foreground, #1f1f1f);
}

.guide-header-badge { margin-top: 1rem; }
.guide-tabs .choice-tiles { margin: 0.9rem 0 1.25rem; }
.guide-tab-lead { color: var(--color-muted-foreground, #666); margin-bottom: 0.9rem !important; }
.guide-tab-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }

/* Job cards: two columns on wide panes, one on narrow ones. */
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.9rem; margin-top: 0.4rem; }
.guide-card {
  display: flex; flex-direction: column; gap: 0.45rem;
  padding: 1.15rem; border-radius: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 9%, transparent);
  background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 2.5%, var(--color-background, #fff));
}
.guide-card-icon { width: 1.25rem; height: 1.25rem; color: var(--color-foreground, #1f1f1f); margin-bottom: 0.25rem; }
.guide-card-title { font-weight: 600; }
.guide-card-body { color: var(--color-muted-foreground, #666); flex: 1; }
.guide-card-example {
  margin-top: 0.3rem !important; padding: 0.6rem 0.75rem; border-radius: 0.55rem;
  background: var(--color-card, #fff); border: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 8%, transparent);
  font-size: 0.8125rem; color: var(--color-foreground, #1f1f1f);
}
.guide-copy--wide { width: 100%; margin-top: 0.2rem; }
/* The copy mark sits at the size of the words beside it, never larger. */

/* A picture made of marks (logo-fan.tsx): the middle mark raised and larger, the others fanned out and tilted by their
 * distance from it, on a flat panel. After Higgsfield's "MCP for any AI" hero. */
.logo-fan {
  margin: 1rem 0 1.1rem; padding: 1.6rem 1rem 1.2rem; border-radius: 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 8%, transparent);
  background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 2%, var(--color-background, #fff));
}
.logo-fan-row { display: flex; align-items: center; justify-content: center; }
.logo-fan-mark {
  --fan-step: 7deg; margin: 0 -0.35rem; position: relative; z-index: calc(10 - max(var(--fan-offset), -1 * var(--fan-offset)));
  transform: translateY(calc(max(var(--fan-offset), -1 * var(--fan-offset)) * 0.3rem)) rotate(calc(var(--fan-offset) * var(--fan-step)));
  transition: transform var(--motion-base) var(--ease-snap);
}
.logo-fan:hover .logo-fan-mark { --fan-step: 10deg; }
.guide .logo-fan-logo {
  width: 3.25rem; height: 3.25rem; border-radius: 0.9rem; background: var(--color-card, #fff);
  border: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 10%, transparent);
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--color-foreground, #1f1f1f) 30%, transparent);
}
.guide .logo-fan-logo img { padding: 0.55rem; object-fit: contain; }
.logo-fan-mark[data-center] { margin: 0 0.35rem; }
.guide .logo-fan-mark[data-center] .logo-fan-logo { width: 4.5rem; height: 4.5rem; border-radius: 1.15rem; border-color: transparent; box-shadow: 0 12px 28px -10px color-mix(in srgb, var(--color-foreground, #1f1f1f) 55%, transparent); }
.guide .logo-fan-mark[data-center] .logo-fan-logo img { padding: 0; }
.logo-fan-caption { color: var(--color-muted-foreground, #666); font-size: 0.8125rem; text-align: center; }
@media (prefers-reduced-motion: reduce) { .logo-fan-mark { transition: none; } }
@container surface (max-width: 34rem) { .guide .logo-fan-logo { width: 2.6rem; height: 2.6rem; } .guide .logo-fan-mark[data-center] .logo-fan-logo { width: 3.6rem; height: 3.6rem; } }

/* Rows: a divided list; a row with steps opens below itself. */
.guide-rows { list-style: none; margin: 0.5rem 0 0; padding: 0; border-top: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 8%, transparent); }
.guide-rows-reach { height: 1px; }
.guide-row { padding: 0.8rem 0; border-bottom: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 8%, transparent); }
.guide-row-top { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.guide-row-toggle { margin-left: -0.35rem; }
.guide-row-text { flex: 1 1 14rem; min-width: 0; }
.guide-row-title { font-weight: 560; overflow-wrap: anywhere; }
.guide-row-detail { color: var(--color-muted-foreground, #666); font-size: 0.8125rem; overflow-wrap: anywhere; }
.guide-row-status { flex: none; }
.guide-row-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.guide-row-body { margin: 0.9rem 0 0.3rem 2.1rem; }
/* A row that can be dragged onto another (a drive onto a drive), the row it is over, and what the drop asks in place. */
.guide-row[data-draggable] .guide-row-top { cursor: grab; }
.guide .guide-row-pick { flex: none; align-self: center; }
.guide-pick-all { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0.2rem 0 0.6rem; font-size: 0.875rem; color: var(--color-muted-foreground, #6b6b6b); cursor: pointer; }
.guide-row--drop-over { border-radius: 0.75rem; outline: 2px dashed var(--color-primary, #2563eb); outline-offset: 2px; background: color-mix(in srgb, var(--color-primary, #2563eb) 6%, transparent); }
.guide-drop-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0.6rem 0 0.2rem 2.1rem; }
.guide-drop-words { font-size: 0.8125rem; color: var(--color-muted-foreground, #666); flex: 1 1 12rem; }
/* A row's mark, after Amie's integration tiles and 21st.dev's Integrations 02: the company's logo filling a rounded
 * square tile, or its initials. */
.guide .guide-row-logo { width: 2.5rem; height: 2.5rem; flex: none; border-radius: 0.7rem; background: var(--color-card, #fff); border: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 9%, transparent); box-shadow: 0 1px 2px color-mix(in srgb, var(--color-foreground, #1f1f1f) 6%, transparent); }
.guide .guide-row-logo img { padding: 0.35rem; object-fit: contain; }
.guide .logo-fallback { border-radius: inherit; background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 6%, var(--color-background, #fff)); color: var(--color-muted-foreground, #666); }
.guide .logo-fallback svg { width: 55%; height: 55%; }

/* A status is a chip with a dot in its tone, never bare words beside a button. */
.guide .guide-status {
  flex: none; gap: 0.35rem; height: 1.45rem; padding: 0 0.55rem; border-radius: var(--radius-chip, 0.375rem); font-size: 0.75rem; font-weight: 560;
  border: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 12%, transparent);
  background: var(--color-card, #fff); color: var(--color-foreground, #1f1f1f);
}
.guide .guide-status-dot { width: 0.4rem; height: 0.4rem; border-radius: 999px; background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 35%, transparent); }
.guide .guide-status[data-tone="good"] { background: color-mix(in srgb, var(--color-success, #16a34a) 10%, var(--color-background, #fff)); border-color: color-mix(in srgb, var(--color-success, #16a34a) 28%, transparent); color: var(--color-foreground, #1f1f1f); }
.guide .guide-status .guide-status-mark { width: 1rem; height: 1rem; }
.guide .guide-status .guide-status-mark svg { width: .6rem; height: .6rem; }
.guide .guide-status[data-tone="attention"] { background: color-mix(in srgb, #d97706 11%, var(--color-background, #fff)); border-color: color-mix(in srgb, #d97706 30%, transparent); color: #92400e; }
.guide .guide-status[data-tone="attention"] .guide-status-dot { background: #d97706; }
.guide .guide-status[data-tone="bad"] { background: color-mix(in srgb, #b42318 9%, var(--color-background, #fff)); border-color: color-mix(in srgb, #b42318 28%, transparent); color: #b42318; }
.guide .guide-status[data-tone="bad"] .guide-status-dot { background: #b42318; }
.guide .guide-status[data-tone="info"] .guide-status-dot { background: #2563eb; }

/* The accounts under a row: one line each in two columns, the name and its quiet line (cut short with an ellipsis)
 * and the actions, which keep their own column so they never sit on the words; they show while the line is hovered or
 * holds focus, and always where there is no hover, such as a phone. */
.guide-items { list-style: none; margin: 0.75rem 0 0; padding: 0.25rem 0 0; display: grid; gap: 0.1rem; border-top: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 7%, transparent); }
.guide-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 0.75rem; min-height: 2.6rem; padding: 0.3rem 0.4rem 0.3rem 0.6rem; border-radius: 0.6rem; }
.guide-item:hover, .guide-item:focus-within { background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 4%, transparent); }
.guide-item-text { min-width: 0; }
.guide-item-title, .guide-item-detail { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guide-item-title { font-size: 0.875rem; font-weight: 520; }
.guide-item-detail { color: var(--color-muted-foreground, #666); font-size: 0.75rem; }
.guide-item-status { grid-column: 1; justify-self: start; margin-top: 0.2rem; }
.guide-item-actions { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 0.15rem; opacity: 0; transition: opacity 120ms ease; }
.guide-item:hover .guide-item-actions, .guide-item:focus-within .guide-item-actions { opacity: 1; }
@media (hover: none) { .guide-item-actions { opacity: 1; } }
.guide-item-actions .guide-action { gap: 0.35rem; }
/* A question asked in place takes the whole line under the account, beside nothing. */
.guide-item-actions:has(.guide-confirm) { grid-column: 1 / -1; grid-row: auto; opacity: 1; flex-wrap: wrap; margin-top: 0.35rem; }
.guide-item-actions:has(.guide-confirm) .guide-action { flex-wrap: wrap; }

/* An on/off action: a small switch with its short label. */
.guide-switch-label { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.8125rem; color: var(--color-muted-foreground, #666); cursor: pointer; white-space: nowrap; }
.guide-switch .guide-confirm { max-width: 18rem; }

/* A plain action that removes something is red, quietly. */
.guide [data-tone="plain-danger"] { color: var(--color-destructive-foreground, #b42318); }
.guide [data-tone="plain-danger"]:hover { background: color-mix(in srgb, #b42318 8%, transparent); }

/* A link's arrow is the size of its words. */
.guide .guide-action-icon { width: 0.9em; height: 0.9em; flex: none; }

/* A catalog: the shared record views' bar over the rows. */
/* A screen holding a catalog is a workspace, not a page to read: it takes its pane's whole width, while its lead and
 * section words keep their own reading measure, and the catalog's rows fill as many columns as fit. */
.guide:has(.guide-catalog) { max-width: none; }
.guide-catalog { margin-top: 0.4rem; }
.guide-catalog-named { display: inline-flex; align-items: center; gap: 0.6rem; min-width: 0; }
.guide-catalog-named > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guide .guide-catalog-logo { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 0.4rem; }
.guide .guide-catalog-logo img { padding: 0.2rem; object-fit: contain; }
.guide-ask { display: inline-flex; align-items: center; gap: 0.4rem; }
.guide-ask input { width: 14rem; }
/* A catalog's rows are cards with room between them (21st.dev Integrations 02); a service's line of what it does is
 * one line, cut short, until the row is open. */
.guide-catalog .guide-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr)); align-items: start; gap: 0.6rem; border-top: 0; }
.guide-catalog .guide-row { padding: 0.8rem 1rem; border: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 9%, transparent); border-radius: 0.9rem; background: var(--color-card, #fff); min-width: 0; container: guide-card / inline-size; }
.guide-catalog .guide-row-title { line-height: 1.35; }
.guide-catalog .guide-row-detail { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guide-catalog .guide-items { margin-left: 3.75rem; }
.guide-catalog .record-views-bar { margin-left: 0; margin-right: 0; }
.guide-catalog .record-views-caller-view { font-size: 0.9375rem; line-height: 1.6; color: var(--color-foreground, #1f1f1f); }
.guide-catalog .record-views-caller-view .guide-rows { margin-top: 0.25rem; }
/* A service card can be narrow inside a wide pane. Its account names keep
 * their own line when the actions need to wrap, just as in a narrow pane;
 * the card's width decides this, not the window around the catalog. */
@container guide-card (max-width: 64rem) {
  .guide-items, .guide-catalog .guide-items { margin-left: 0; min-width: 0; }
  .guide-item { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  .guide-item-actions { grid-column: 1; grid-row: auto; opacity: 1; flex-wrap: wrap; min-width: 0; max-width: 100%; margin-top: 0.2rem; }
  .guide-item-actions .guide-action { max-width: 100%; }
  .guide-item-actions .guide-action > button { max-width: 100%; height: auto; min-height: 2rem; padding-block: 0.25rem; white-space: normal; }
}
.guide-fields { display: grid; gap: 0.75rem; margin: 1.1rem 0 0.9rem; }
.guide-field { display: grid; gap: 0.3rem; }
.guide-field-label { font-size: 0.8125rem; font-weight: 560; }

.guide-action { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.guide-confirm { font-size: 0.8125rem; color: var(--color-destructive-foreground, #b42318); max-width: 24rem; }
.guide-reveal { margin-top: 0.9rem; padding: 0.9rem; border-radius: 0.7rem; background: color-mix(in srgb, #f5b400 12%, var(--color-background, #fff)); border: 1px solid color-mix(in srgb, #f5b400 40%, transparent); }
.guide-reveal-label { font-weight: 560; }
.guide-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* One offer as a card (ui/show/coss/offer-card.tsx), after 21st.dev's single-plan pricing cards: a small title and the
 * price large in the display face on top, a hairline, then the features with a round check tile and bold opening words. */
.offer-card {
  margin-top: 0.4rem; padding: 1.5rem 1.5rem 1.6rem; border-radius: 1rem; background: var(--color-card, #fff);
  border: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 9%, transparent);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--color-foreground, #1f1f1f) 5%, transparent), 0 8px 24px -12px color-mix(in srgb, var(--color-foreground, #1f1f1f) 14%, transparent);
}
.offer-card-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 8%, transparent); }
.offer-card-title { color: var(--color-muted-foreground, #666); font-size: 0.75rem; font-weight: 560; }
.offer-card-price { display: flex; align-items: baseline; gap: 0.5rem; }
.offer-card-amount { font-family: var(--font-display, ui-serif, Georgia, serif); font-size: 2.5rem; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; }
.offer-card-per { color: var(--color-muted-foreground, #666); font-size: 0.875rem; white-space: nowrap; }
.offer-card-features { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.85rem; }
.offer-card-feature { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.offer-card-mark {
  display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; margin-top: 0.05rem; border-radius: 999px; corner-shape: round;
  background: color-mix(in srgb, var(--guide-accent) 14%, transparent); color: var(--guide-accent);
}
.offer-card-mark svg { width: 0.875rem; height: 0.875rem; stroke-width: 2.5; }
.offer-card-line { color: var(--color-muted-foreground, #666); }
.offer-card-lead { color: var(--color-foreground, #1f1f1f); font-weight: 620; }
@container guide (min-width: 40rem) {
  .offer-card-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.75rem; }
}

/* What an empty list says (the shared EmptyState): an icon tile, a title and a line, on a quiet dashed surface. */
.guide-empty { margin-top: 0.6rem; border-radius: 0.9rem; border: 1px dashed color-mix(in srgb, var(--color-foreground, #1f1f1f) 16%, transparent); background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 2.5%, transparent); }
.guide-empty [data-slot="empty"] { padding: 2rem 1.5rem; gap: 0; }
.guide-empty [data-slot="empty-title"] { font-size: 1rem; font-weight: 600; }

/* A section's one main action, drawn large across the whole column. */
.guide-action--full { flex: 1 1 100%; }
.guide-action--full > button, .guide-action--full > a { width: 100%; }

/* The time slot picker (ui/show/coss/time-slot-picker.tsx): Calendly's month grid with the open days lit, the chosen
 * day's times in a column beside it; under it when the pane is narrow. */
.time-slot-picker {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.75rem; margin-top: 0.4rem;
  padding: 1.1rem; border-radius: 0.9rem; background: var(--color-card, #fff);
  border: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 9%, transparent);
}
.time-slot-picker-month-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.time-slot-picker-month-name { font-weight: 600; }
.time-slot-picker-month-moves { display: inline-flex; gap: 0.25rem; }
.time-slot-picker [role="gridcell"] {
  border: 0; border-radius: 999px; background: transparent; color: color-mix(in srgb, var(--color-foreground, #1f1f1f) 38%, transparent);
  font-size: 0.875rem;
}
.time-slot-picker [role="gridcell"]:not([aria-disabled]) {
  background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 7%, transparent); color: var(--color-foreground, #1f1f1f); font-weight: 600;
}
.time-slot-picker [role="gridcell"]:not([aria-disabled]):hover { background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 13%, transparent); }
.time-slot-picker [role="gridcell"][aria-selected="true"] { background: var(--color-primary, #292929); color: var(--color-primary-foreground, #fff); box-shadow: none; }
.time-slot-picker [role="gridcell"][aria-disabled] { opacity: 1; }
.time-slot-picker [role="gridcell"] [data-calendar-cell-count] { display: none; }
.time-slot-picker [role="gridcell"] span { color: inherit; }
.time-slot-picker [role="columnheader"] { color: var(--color-muted-foreground, #666); }
.time-slot-picker-day { font-weight: 600; margin-bottom: 0.6rem !important; }
.time-slot-picker-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: 0.5rem; max-height: 19rem; overflow-y: auto; }
.time-slot-picker-option { width: 100%; }

/* A narrow pane (a phone, or a pane beside another) keeps the same order with tighter edges. */
@container surface (max-width: 34rem) {
  .guide { padding: 1.5rem 1rem 3rem; }
  .guide-title { font-size: 1.6rem; }
  .guide-row-body, .guide-drop-ask { margin-left: 0; }
  .guide-items, .guide-catalog .guide-items { margin-left: 0; }
  .guide-catalog .guide-row { padding: 0.75rem; }
  .guide-item { grid-template-columns: minmax(0, 1fr); }
  .guide-item-actions { grid-column: 1; grid-row: auto; opacity: 1; flex-wrap: wrap; margin-top: 0.2rem; }
  .guide-row-top { align-items: flex-start; }
  .guide-row-text { flex-basis: calc(100% - 6.5rem); }
  .time-slot-picker { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
}
@media (max-width: 34rem) {
  .guide { padding: 1.5rem 1rem 3rem; }
  .guide-title { font-size: 1.6rem; }
  .guide-row-body, .guide-drop-ask { margin-left: 0; }
  .guide-items, .guide-catalog .guide-items { margin-left: 0; }
  .guide-catalog .guide-row { padding: 0.75rem; }
  .guide-item { grid-template-columns: minmax(0, 1fr); }
  .guide-item-actions { grid-column: 1; grid-row: auto; opacity: 1; flex-wrap: wrap; margin-top: 0.2rem; }
  .guide-row-top { align-items: flex-start; }
  .guide-row-text { flex-basis: calc(100% - 6.5rem); }
  .time-slot-picker { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
}

/* Number tiles (ui/show/coss/stat-tiles.tsx), after 21st.dev's Stats Card: a quiet label, a big value in the display
 * face, a thin bar for how far along, a line under it. Two to four across, by the pane's width. */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.75rem; margin-top: 0.5rem; }
/* A narrow pane stacks its tiles full width, so no tile is left alone on a row, with a smaller value. */
@container surface (max-width: 34rem) {
  .stat-tiles { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .stat-tile { padding: 0.75rem; }
  .stat-value { font-size: 1.35rem; }
}
@media (max-width: 34rem) {
  .stat-tiles { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .stat-tile { padding: 0.75rem; }
  .stat-value { font-size: 1.35rem; }
}
.stat-tile {
  display: flex; flex-direction: column; gap: 0.3rem; min-width: 0;
  padding: 0.95rem 1rem; border-radius: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 9%, transparent);
  background: var(--color-card, #fff);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--color-foreground, #1f1f1f) 4%, transparent);
}
.stat-label { display: flex; align-items: center; gap: 0.4rem; color: var(--color-muted-foreground, #666); font-size: 0.8125rem; }
.stat-icon { width: 0.95rem; height: 0.95rem; flex: none; }
.stat-value { font-family: var(--font-display, ui-serif, Georgia, serif); font-size: 1.75rem; line-height: 1.15; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-detail { color: var(--color-muted-foreground, #666); font-size: 0.8125rem; }
.stat-bar { display: block; height: 0.3rem; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 10%, transparent); }
.stat-bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--color-foreground, #1f1f1f); }
.stat-tile[data-tone="good"] .stat-bar-fill { background: var(--color-success, #16a34a); }

/* A discussion (ui/show/coss/thread.tsx), after 21st.dev's Reddit nested thread: avatar beside the author line, the
 * words, a rounded vote pill and ghost actions; replies nested on a thin rail, folded away and back. */
.thread { display: grid; gap: 0.9rem; margin-top: 0.5rem; }
.thread-compose, .thread-card {
  border-radius: 0.9rem; border: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 9%, transparent);
  background: var(--color-card, #fff);
}
.thread-compose { padding: 0.85rem; }
.thread-box { display: grid; gap: 0.6rem; }
.thread-card .thread-box { margin-top: 0.75rem; }
.thread-box-text { min-height: 4.5rem; resize: vertical; }
.thread-box-actions { display: flex; gap: 0.5rem; }
.thread-posts, .thread-replies { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.thread-replies { margin: 0.7rem 0 0 1.05rem; padding-left: 1.05rem; border-left: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 12%, transparent); }
.thread-card { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.75rem; padding: 0.9rem 1rem; transition: background-color 150ms ease; }
.thread-card:hover { background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 2%, var(--color-card, #fff)); }
.thread-replies .thread-card { border-color: transparent; background: transparent; padding: 0.35rem 0; }
.thread-main { min-width: 0; }
.thread-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; font-size: 0.8125rem; }
.thread-author { font-weight: 600; }
.thread-via { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--color-muted-foreground, #666); }
.thread-via-name { font-size: 0.75rem; }
.thread-when { color: var(--color-muted-foreground, #666); }
.thread-when::before { content: "·"; margin-right: 0.45rem; }
.thread-body { margin-top: 0.25rem !important; white-space: pre-wrap; overflow-wrap: anywhere; }
.thread-actions { margin-top: 0.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.thread-vote { display: inline-flex; align-items: center; gap: 0.1rem; padding: 0.15rem 0.55rem 0.15rem 0.15rem; border-radius: 999px; background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 6%, transparent); }
.thread-vote-button { border-radius: 999px; }
.thread-vote-mark { width: 1rem; height: 1rem; margin: 0 0.3rem; color: var(--color-muted-foreground, #666); }
.thread-score { font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 1ch; text-align: center; }
.thread-vote[data-voted] { background: color-mix(in srgb, var(--color-primary, #292929) 14%, transparent); color: var(--color-primary, #292929); }
.thread-vote[data-voted] .thread-vote-button { color: inherit; }
.thread-action { color: var(--color-muted-foreground, #666); }
.thread-action svg { width: 0.9rem; height: 0.9rem; }
.thread-empty { color: var(--color-muted-foreground, #666); }

/* People in a numbered list (ui/show/coss/rank-list.tsx), after 21st.dev's Activity list: place, avatar, name over a
 * quiet line, the value at the right; the first three places tinted, the reader's own row lit. */
.rank-list { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.25rem; }
.rank-row { display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 0.75rem; border-radius: 0.75rem; }
.rank-row[data-highlight] { background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 5%, transparent); }
.rank-place { width: 1.6rem; height: 1.6rem; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--color-muted-foreground, #666); }
.rank-row[data-place="1"] .rank-place { background: color-mix(in srgb, #f5b400 26%, transparent); color: #7a5a00; }
.rank-row[data-place="2"] .rank-place { background: color-mix(in srgb, #9aa4b2 26%, transparent); color: #4a5361; }
.rank-row[data-place="3"] .rank-place { background: color-mix(in srgb, #c7773a 24%, transparent); color: #7a3f12; }
.rank-text { flex: 1 1 auto; min-width: 0; }
.rank-name { display: flex; align-items: center; gap: 0.45rem; font-weight: 560; overflow-wrap: anywhere; }
.rank-detail { color: var(--color-muted-foreground, #666); font-size: 0.8125rem; }
.rank-value { flex: none; text-align: right; }
.rank-value-main { font-weight: 600; font-variant-numeric: tabular-nums; }
.rank-value-detail { color: var(--color-muted-foreground, #666); font-size: 0.75rem; }

/* Numbers over time (ui/show/coss/trend-lines.tsx): the stat tile's label and value, a line saying what changed, and
   the shared line chart under it. Green is "moved the way that counts as better", amber the other way. */
/* A whole cut into its parts (guide `split`, the shared usage meter): a little air above the bar. */
.guide-split { margin-top: 0.75rem; }
.trend-lines { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.75rem; margin-top: 0.75rem; }
.trend-tile { --trend-good: #16865c; --trend-bad: #d97706; display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem 1rem 0.75rem; border: 1px solid var(--color-border, #e5e5e5); border-radius: 0.75rem; background: var(--color-card, #fff); min-width: 0; }
.trend-label { margin: 0; color: var(--color-muted-foreground, #666); font-size: 0.8125rem; }
.trend-value { margin: 0; font-family: var(--font-display, ui-serif, Georgia, serif); font-size: 1.75rem; line-height: 1.15; font-weight: 600; font-variant-numeric: tabular-nums; }
.trend-detail { margin: 0; font-size: 0.8125rem; color: var(--color-muted-foreground, #666); }
.trend-tile[data-tone="success"] .trend-detail { color: var(--trend-good); }
.trend-tile[data-tone="error"] .trend-detail { color: var(--trend-bad); }
.trend-chart { margin-top: 0.5rem; --chart-tone-good: var(--trend-good); --chart-tone-warning: var(--trend-bad); }

/* Share a card (ui/show/share-card/ShareSheet.tsx), after Strava's share sheet: the card itself on top, the three
   ways to send it, then the places as a row of marks. */
/* The one sharing sheet (tools/ui/show/sharing-sheet): the preview of what others see, where it goes, which fields go,
 * the linked-records switch, then its buttons. Rows are label then switch, the way Notion's share menu lists people. */
.sharing-sheet { display: flex; flex-direction: column; gap: 1rem; max-width: 40rem; }
.sharing-sheet-section { display: flex; flex-direction: column; gap: 0.25rem; }
.sharing-sheet-heading { margin: 0 0 0.25rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; color: var(--color-muted-foreground, #666); }
.sharing-sheet-picture { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: 0.875rem; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.1); }
.sharing-sheet-preview { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.875rem 1rem; border: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 12%, transparent); border-radius: 0.75rem; }
.sharing-sheet-preview-title { margin: 0; font-weight: 600; }
.sharing-sheet-preview-fields { display: flex; flex-direction: column; gap: 0.375rem; margin: 0; }
.sharing-sheet-preview-field { display: grid; grid-template-columns: minmax(7rem, 30%) 1fr; gap: 0.75rem; }
.sharing-sheet-preview-field dt { color: var(--color-muted-foreground, #666); }
.sharing-sheet-preview-field dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 34rem) { .sharing-sheet-preview-field { grid-template-columns: minmax(0, 1fr); gap: 0.125rem; } }
.sharing-sheet-row { display: flex; align-items: center; gap: 0.625rem; min-height: 2.25rem; }
.sharing-sheet-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sharing-sheet-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
/* The places are one grid of equal tiles: each place a mark over its name, the same size in every column. */
.sharing-sheet-places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.375rem; }
@media (max-width: 30rem) { .sharing-sheet-places { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sharing-sheet-place { flex-direction: column; justify-content: center; gap: 0.375rem; min-height: 4.5rem; width: 100%; white-space: normal; }
.sharing-sheet-place .sharing-sheet-mark { width: 1.5rem; height: 1.5rem; }
.sharing-sheet-mark { width: 1.1rem; height: 1.1rem; flex: none; border-radius: 0.3rem; }
.sharing-sheet-invite { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.sharing-sheet-invite-field { flex: 1 1 12rem; min-width: 0; }
/* The shared Select fills its row by default; a role picker sits beside the name it is for, so it keeps its own size. */
.sharing-sheet .sharing-sheet-role-choice { width: auto; flex: none; min-width: 7rem; max-width: 12rem; }
.sharing-sheet-role { color: var(--color-muted-foreground, #666); font-size: 0.8125rem; white-space: nowrap; }
.sharing-sheet-person { min-height: 2.75rem; }
.sharing-sheet-person .sharing-sheet-label { min-width: 5rem; }
.sharing-sheet-person .sharing-sheet-label, .sharing-sheet-general .sharing-sheet-label, .sharing-sheet-option .sharing-sheet-label, .sharing-sheet-stacked .sharing-sheet-label { display: flex; flex-direction: column; gap: 0.125rem; white-space: normal; }
.sharing-sheet-name { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.375rem; min-width: 0; overflow-wrap: anywhere; }
.sharing-sheet-badge { flex: none; white-space: nowrap; }
.sharing-sheet-detail { font-size: 0.75rem; color: var(--color-muted-foreground, #666); overflow-wrap: anywhere; }
.sharing-sheet-general { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem; border: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 12%, transparent); border-radius: 0.75rem; }
.sharing-sheet-general-mark { width: 1.25rem; height: 1.25rem; flex: none; margin-top: 0.3rem; }
.sharing-sheet-general-choice { width: auto; max-width: 100%; }
.sharing-sheet-option { display: grid; grid-template-columns: minmax(0, 1fr) minmax(8rem, 12rem); align-items: center; gap: 0.75rem; min-height: 2.5rem; }
.sharing-sheet-more-toggle { align-self: flex-start; gap: 0.25rem; }
.sharing-sheet [data-busy='true'] { opacity: 0.72; }
@container (max-width: 30rem) {
  .sharing-sheet-option { grid-template-columns: 1fr; gap: 0.25rem; }
  .sharing-sheet-invite > * { flex-basis: 100%; }
}
.sharing-collection-panel { max-width: 42rem; }
.sharing-collection-items { width: 100%; }
.sharing-collection-item { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .5rem; border: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 12%, transparent); border-radius: .75rem; }
.sharing-collection-preview { width: 4.5rem; height: 3.25rem; overflow: hidden; border-radius: .5rem; background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 6%, transparent); }
.sharing-collection-preview > * { width: 100%; height: 100%; }

/* The accent the community parts use for a lit rung, an accent column, a meter's label and bar. A look may set
 * --guide-accent; the default is a warm terracotta that reads on the cream look. */
.guide { --guide-accent: var(--color-guide-accent, #c2542d); --guide-line-gap: 0.3rem; }
.guide > .guide-section:first-child { border-top: 0; padding-top: 0; }

/* Two columns (the main sections and a sticky aside) when the guide has room; the aside stacks after the main ones
 * when it does not. The guide itself is the container, since it lives in panes of every width. */
.guide[data-aside] { max-width: 76rem; }
.guide-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 2.5rem; }
.guide-main > .guide-section:first-child { border-top: 0; padding-top: 0; }
.guide-aside > .guide-section:first-child { border-top: 0; }
@container guide (min-width: 46rem) {
  .guide-columns { grid-template-columns: minmax(0, 1fr) 19.5rem; align-items: start; }
  .guide-aside { position: sticky; top: 1rem; }
  .guide-aside > .guide-section { padding-top: 0; border-top: 0; }
  .guide-aside > .guide-section + .guide-section { padding-top: 1.25rem; }
}

/* A block that is one action (press-action.tsx): the shared Button holding a card, a foot row or a name, laid out as
 * its content wants rather than as a one-line button. */
.guide .press-action { height: auto; min-height: 0; padding: 0; border: 0; border-radius: inherit; white-space: normal; text-align: left; font-weight: inherit; font-size: inherit; line-height: inherit; color: inherit; justify-content: flex-start; }
.guide .press-action::before { display: none; }
.guide .press-action-external { width: 0.9em; height: 0.9em; flex: none; }
.press-action-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.5rem; font-size: 0.8125rem; }
.press-action-question { color: var(--color-destructive-foreground, #b42318); }

/* A person at a glance (ui/show/coss/profile-card.tsx), after the Promethee profile card: avatar, name and tag, a
 * meter with its label in the accent, fact rows with quiet labels, an inner highlight tile, a foot row. */
.profile-card {
  display: flex; flex-direction: column; margin-top: 0.4rem; overflow: hidden;
  border-radius: 1rem; border: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 9%, transparent);
  background: var(--color-card, #fff); box-shadow: 0 1px 2px color-mix(in srgb, var(--color-foreground, #1f1f1f) 5%, transparent);
}
.profile-top { display: flex; align-items: center; gap: 0.85rem; padding: 1.1rem 1.1rem 0; }
.profile-names { min-width: 0; }
.profile-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.profile-name-text { font-size: 1.125rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.guide .profile-tag, .guide .rank-table-tag, .guide .thread-post-card .thread-tag { height: 1.25rem; padding: 0 0.45rem; border-radius: 0.35rem; font-size: 0.625rem; font-weight: 600; color: var(--color-muted-foreground, #666); background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 4%, var(--color-card, #fff)); max-width: 12rem; overflow: hidden; text-overflow: ellipsis; }
.profile-detail { color: var(--color-muted-foreground, #666); font-size: 0.8125rem; line-height: 1.45; }
/* The line under a name keeps the guide's gap from it (a guide's paragraphs start with no margin of their own). */
.guide .profile-detail, .guide .profile-highlight-detail { margin-top: var(--guide-line-gap); }
.profile-meter { padding: 1rem 1.1rem 0; }
.profile-meter-label { color: var(--guide-accent); font-size: 0.8125rem; font-weight: 600; }
.profile-meter-bar, .course-bar { display: block; height: 0.25rem; margin-top: 0.45rem; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 9%, transparent); }
.profile-meter-fill, .course-bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--guide-accent); }
.profile-meter-ends { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.4rem !important; color: var(--color-muted-foreground, #666); font-size: 0.6875rem; font-weight: 560; font-variant-numeric: tabular-nums; }
.profile-facts { display: grid; gap: 0.45rem; margin: 0; padding: 0.9rem 1.1rem 0; }
.profile-fact { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.profile-fact-label { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--color-muted-foreground, #666); font-size: 0.75rem; font-weight: 560; }
.profile-fact-icon { width: 0.9rem; height: 0.9rem; flex: none; }
.profile-fact-value { margin: 0; font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.profile-highlight {
  display: flex; align-items: center; gap: 0.75rem; margin: 1rem 0.6rem 0; padding: 0.75rem 0.85rem;
  border-radius: 0.8rem; background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 4%, var(--color-card, #fff));
}
.profile-highlight-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; flex: none; border-radius: 0.65rem; background: var(--color-card, #fff); color: var(--guide-accent); box-shadow: 0 1px 2px color-mix(in srgb, var(--color-foreground, #1f1f1f) 8%, transparent); }
.profile-highlight-icon svg { width: 1.15rem; height: 1.15rem; }
.profile-highlight-text { flex: 1 1 auto; min-width: 0; }
.profile-highlight-title { font-weight: 600; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-highlight-end { flex: none; text-align: right; }
.profile-highlight-value { font-size: 1.05rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.profile-highlight-detail { color: var(--color-muted-foreground, #666); font-size: 0.75rem; }
.guide .profile-foot { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 1rem; padding: 0.7rem 1.1rem; border-radius: 0; border-top: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 8%, transparent); color: var(--color-muted-foreground, #666); font-size: 0.75rem; font-weight: 600; }
.guide .profile-foot:hover { background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 3%, transparent); color: var(--color-foreground, #1f1f1f); }
.profile-foot-arrow { width: 0.9rem; height: 0.9rem; flex: none; }
.profile-card > .press-action-confirm { padding: 0 1.1rem 0.8rem; }

/* One line across the top of a section (ui/show/coss/banner.tsx), after the Promethee standing card: an icon tile, a
 * small line over a larger one, a value, and the learn-more button at the end. */
.banner { display: grid; gap: 0.75rem; margin-top: 0.4rem; }
.banner-card {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1rem;
  border-radius: 1rem; border: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 10%, transparent);
  background: var(--color-card, #fff);
}
.banner-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; flex: none; border-radius: 0.65rem; background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 5%, transparent); color: var(--color-muted-foreground, #666); }
.banner-icon svg { width: 1.1rem; height: 1.1rem; }
.banner-text { flex: 1 1 auto; min-width: 0; }
.banner-title { font-size: 1.125rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.banner-detail { color: var(--color-muted-foreground, #666); font-size: 0.8125rem; }
.banner-value { flex: none; font-size: 1.25rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.banner-end { flex: none; display: flex; align-items: center; gap: 0.5rem; }

/* "Learn more" opened in place (ui/show/coss/explain-card.tsx), after the Promethee "How ranking works" card: title
 * and line, a round close button, numbered tiles, and the ladder with the reader's own rung in the accent. */
.explain { display: grid; gap: 0.75rem; justify-items: start; margin-top: 0.4rem; }
.explain > .explain-card { justify-self: stretch; }
.explain-card {
  display: grid; gap: 1.1rem; padding: 1.25rem;
  border-radius: 1rem; border: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 12%, transparent);
  background: var(--color-card, #fff); box-shadow: 0 1px 2px color-mix(in srgb, var(--color-foreground, #1f1f1f) 5%, transparent);
}
.explain-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.explain-title { font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
.explain-lead { margin-top: 0.15rem !important; color: var(--color-muted-foreground, #666); }
.guide .explain-close { flex: none; border-radius: 999px; }
.explain-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 0.6rem; }
.explain-step { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.9rem; border-radius: 0.8rem; background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 3.5%, var(--color-card, #fff)); }
.explain-step-mark { margin-bottom: 0.35rem; width: 1.4rem; height: 1.4rem; font-size: 0.6875rem; }
.explain-step-title { font-weight: 600; line-height: 1.35; }
.explain-step-body { color: var(--color-muted-foreground, #666); font-size: 0.8125rem; }
.explain-ladder { padding: 0.9rem 1rem 1rem; border-radius: 0.8rem; background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 3.5%, var(--color-card, #fff)); }
.explain-ladder-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; }
.explain-ladder-label { font-size: 0.75rem; font-weight: 600; }
.explain-ladder-note { color: var(--color-muted-foreground, #666); font-size: 0.8125rem; }
.explain-rungs { list-style: none; margin: 0.85rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(3.75rem, 1fr)); gap: 0.5rem; }
.explain-rung { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; color: var(--color-muted-foreground, #666); font-size: 0.8125rem; }
.explain-rung-mark { width: 0.7rem; height: 0.7rem; border-radius: 999px; background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 16%, transparent); }
.explain-rung-detail { font-size: 0.6875rem; }
.explain-rung[data-current] { color: var(--guide-accent); font-weight: 600; }
.explain-rung[data-current] .explain-rung-mark { width: 0.9rem; height: 0.9rem; background: var(--guide-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--guide-accent) 18%, transparent); }

/* People by place in columns (ui/show/coss/rank-table.tsx), after the Promethee leaderboard: a quiet header,
 * "1st" in a narrow column, avatar, name and tag, numbers right-aligned, an accent column, the reader's row lit. */
.guide .rank-table { margin-top: 0.4rem; border-collapse: separate; border-spacing: 0; font-size: 0.9375rem; }
.guide .rank-table tr { border: 0; }
.guide .rank-table th { height: auto; padding: 0.5rem 0.6rem; border: 0; color: var(--color-muted-foreground, #666); font-size: 0.6875rem; font-weight: 560; text-align: left; white-space: nowrap; }
.guide .rank-table td { padding: 0.55rem 0.6rem; border: 0; vertical-align: middle; }
.guide .rank-table [data-align="end"] { text-align: right; font-variant-numeric: tabular-nums; }
.guide .rank-table-place-head, .guide .rank-table-place { width: 3.25rem; text-align: center; }
.guide .rank-table-place { color: var(--color-muted-foreground, #666); font-variant-numeric: tabular-nums; white-space: nowrap; }
.guide .rank-table-row[data-place] .rank-table-place { color: var(--color-foreground, #1f1f1f); font-weight: 600; }
.guide .rank-table-cell[data-accent], .guide .rank-table-column-head[data-accent] { color: var(--guide-accent); }
.guide .rank-table-cell[data-accent] { font-weight: 600; }
.guide .rank-table-row:hover td { background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 2.5%, transparent); }
.guide .rank-table-row[data-highlight] td { background: color-mix(in srgb, var(--guide-accent) 8%, var(--color-card, #fff)); }
.guide .rank-table-row td:first-child { border-radius: 0.7rem 0 0 0.7rem; }
.guide .rank-table-row td:last-child { border-radius: 0 0.7rem 0.7rem 0; }
.rank-table-person { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.rank-table-names { display: flex; flex-direction: column; min-width: 0; }
.rank-table-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.rank-table-name-text { font-weight: 560; overflow-wrap: anywhere; }
.rank-table-detail { color: var(--color-muted-foreground, #666); font-size: 0.75rem; }
.guide .rank-table-open { width: 100%; padding: 0.15rem; margin: -0.15rem; border-radius: 0.6rem; }
.guide .rank-table-open:hover .rank-table-name-text { text-decoration: underline; text-underline-offset: 0.2em; }
.guide .rank-table-gap { padding: 0.9rem 0.6rem; text-align: center; color: color-mix(in srgb, var(--color-muted-foreground, #666) 75%, transparent); font-size: 0.6875rem; font-weight: 560; }
.rank-table-empty { color: var(--color-muted-foreground, #666); }

/* Cards with parts to finish (ui/show/coss/course-cards.tsx), after Skool's classroom: a tinted band with the icon,
 * the title, two lines about it, a bar with its words and a status; the whole card is the press when it has one. */
.course-cards { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); gap: 0.9rem; }
.course-card-slot { display: flex; flex-direction: column; min-width: 0; }
.guide .course-card {
  display: flex; flex-direction: column; align-items: stretch; flex: 1; width: 100%; overflow: hidden;
  border-radius: 1rem; border: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 9%, transparent);
  background: var(--color-card, #fff); box-shadow: 0 1px 2px color-mix(in srgb, var(--color-foreground, #1f1f1f) 5%, transparent);
  transition: box-shadow 150ms ease, transform 150ms ease, border-color 150ms ease;
}
.guide button.course-card:hover, .guide a.course-card:hover { border-color: color-mix(in srgb, var(--color-foreground, #1f1f1f) 16%, transparent); box-shadow: 0 6px 18px color-mix(in srgb, var(--color-foreground, #1f1f1f) 8%, transparent); transform: translateY(-1px); background: var(--color-card, #fff); }
@media (prefers-reduced-motion: reduce) { .guide .course-card { transition: none; } .guide button.course-card:hover { transform: none; } }
.course-cover { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 7; background: linear-gradient(135deg, color-mix(in srgb, var(--guide-accent) 16%, var(--color-background, #fff)), color-mix(in srgb, var(--guide-accent) 5%, var(--color-background, #fff))); color: var(--guide-accent); }
.course-cover-icon { width: 1.9rem; height: 1.9rem; }
.course-text { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.9rem 1rem 0; }
.course-title { font-weight: 600; line-height: 1.35; }
.course-about { color: var(--color-muted-foreground, #666); font-size: 0.8125rem; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.course-foot { display: flex; flex-direction: column; gap: 0.45rem; margin-top: auto; padding: 0.9rem 1rem 1rem; }
.course-bar { margin-top: 0; }
.course-foot-line { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.course-progress-words { color: var(--color-muted-foreground, #666); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.guide .course-status { margin-left: auto; }

/* A discussion drawn as a feed (thread.tsx, style 'cards'), after the Promethee activity feed: each post its own
 * card, avatar, author and the time together on top, the words and any shared thing across the card's full width,
 * then a foot row with the vote pill, reactions, replies and Reply. Reply and the way to add a reaction show while
 * the card is pointed at or focused (always on a touch screen); they fade in place, so nothing moves under the pointer. */
.thread[data-style="cards"] .thread-posts { gap: 0.8rem; }
.thread-post-card {
  display: grid; gap: 0.6rem; padding: 1rem 1.1rem 0.75rem;
  border-radius: 1rem; border: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 9%, transparent);
  background: var(--color-card, #fff); box-shadow: 0 1px 2px color-mix(in srgb, var(--color-foreground, #1f1f1f) 4%, transparent);
}
.thread-post-card-top { display: flex; align-items: center; gap: 0.7rem; }
.thread-post-card .thread-meta { font-size: 0.9375rem; }
.thread-post-card > .thread-body { margin-top: 0 !important; }
.thread-post-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; min-height: 0; margin-top: -0.25rem; }
.thread-post-card-when { color: var(--color-muted-foreground, #666); font-size: 0.8125rem; font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.thread-post-card-when::before { content: '·'; margin-right: 0.4rem; }
@media (hover: hover) {
  .thread-post-card .thread-post-card-foot > .thread-action:not(.thread-fold),
  .thread-post-card .thread-post-card-foot > .reaction-row > .reaction-add { opacity: 0; transition: opacity 120ms ease; }
  .thread-post-card:hover .thread-post-card-foot > .thread-action,
  .thread-post-card:focus-within .thread-post-card-foot > .thread-action,
  .thread-post-card:hover .thread-post-card-foot > .reaction-row > .reaction-add,
  .thread-post-card:focus-within .thread-post-card-foot > .reaction-row > .reaction-add,
  .thread-post-card .thread-post-card-foot [aria-expanded="true"] { opacity: 1; }
}
.thread-post-card > .thread-box { margin-top: 0.25rem; }
.thread-post-card > .thread-replies { margin: 0.25rem 0 0.35rem 1.1rem; }

/* A post's `…` menu sits at the end of its author line; a post taken back keeps one quiet line where its words were. */
.thread-meta .thread-menu, .thread-post-card-top .thread-menu { margin-left: auto; }
.thread-menu { display: inline-flex; opacity: 0.7; transition: opacity 150ms ease; }
.thread-post:hover > .thread-card .thread-menu, .thread-post-card:hover > .thread-post-card-top .thread-menu, .thread-menu:focus-within { opacity: 1; }
.thread-withdrawn { margin-top: 0.25rem !important; color: var(--color-muted-foreground, #666); font-size: 0.8125rem; font-style: italic; }
/* A thing shared into the conversation, inside the post of whoever shared it (after 21st.dev 30730 and 29545, Tana's
 * chat with attached things): its picture on the left when it has one, its kind, title and two lines of its words,
 * and Open at the end. */
.thread-attachment {
  margin-top: 0.5rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0.75rem; max-width: 34rem; border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 9%, transparent);
  background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 2%, var(--color-card, #fff));
}
.thread-attachment[data-picture] { grid-template-columns: 4.5rem minmax(0, 1fr) auto; }
.thread-attachment-picture { width: 4.5rem; aspect-ratio: 4 / 3; border-radius: 0.5rem; overflow: hidden; }
.thread-attachment-main { display: grid; gap: 0.2rem; min-width: 0; justify-items: start; }
.thread-attachment-title { font-weight: 600; font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.thread-attachment-detail { color: var(--color-muted-foreground, #666); font-size: 0.8125rem; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.thread-post-card > .thread-attachment { margin-top: 0; max-width: none; }
/* The older end of a conversation: "Show older" centred above (newest-last) or below (newest-first) the posts. */
.thread-older { display: flex; justify-content: center; }
.thread-end { height: 1px; }
@container surface (max-width: 34rem) {
  .thread-attachment, .thread-attachment[data-picture] { grid-template-columns: minmax(0, 1fr); }
  .thread-attachment-picture { width: 100%; aspect-ratio: 16 / 9; }
  .thread-attachment-open { justify-self: start; }
}

/* People as cards (ui/show/coss/person-cards.tsx), after 21st.dev's Info Card and Opportunity Card: avatar, name and
 * tag, status at the right, labelled lists (lines, or chips after nexus-ui's Suggestions), actions along the foot. */
.person-cards { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 0.9rem; }
.person-card {
  display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; padding: 1.1rem;
  border-radius: 1rem; border: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 9%, transparent);
  background: var(--color-card, #fff); box-shadow: 0 1px 2px color-mix(in srgb, var(--color-foreground, #1f1f1f) 5%, transparent);
}
.person-card[data-highlight] { border-color: color-mix(in srgb, var(--guide-accent) 40%, transparent); }
.person-top { display: flex; align-items: center; gap: 0.8rem; }
.person-names { flex: 1 1 auto; min-width: 0; }
.person-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.person-name-text { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.guide .person-tag, .guide .chain-tag { height: 1.25rem; padding: 0 0.45rem; border-radius: 0.35rem; font-size: 0.625rem; font-weight: 600; color: var(--color-muted-foreground, #666); background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 4%, var(--color-card, #fff)); max-width: 12rem; overflow: hidden; text-overflow: ellipsis; }
.person-detail { color: var(--color-muted-foreground, #666); font-size: 0.8125rem; }
.guide .person-status { flex: none; }
.person-list { display: grid; gap: 0.4rem; }
.person-list-label { color: var(--color-muted-foreground, #666); font-size: 0.6875rem; font-weight: 600; }
.person-list-empty { color: var(--color-muted-foreground, #666); font-size: 0.875rem; font-style: italic; }
.person-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.person-line { position: relative; padding-inline-start: 1rem; font-size: 0.9rem; line-height: 1.45; }
.person-line::before { content: ""; position: absolute; inset-inline-start: 0.2rem; top: 0.6em; width: 0.35rem; height: 0.35rem; border-radius: 999px; background: var(--guide-accent); corner-shape: round; }
.person-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.person-chip { padding: 0.3rem 0.7rem; border-radius: var(--radius-chip, 0.375rem); font-size: 0.8125rem; line-height: 1.3; background: color-mix(in srgb, var(--guide-accent) 9%, var(--color-card, #fff)); color: color-mix(in srgb, var(--guide-accent) 70%, var(--color-foreground, #1f1f1f)); border: 1px solid color-mix(in srgb, var(--guide-accent) 18%, transparent); }
.person-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 0.2rem; }

/* People in one line from top to bottom (ui/show/coss/chain-list.tsx), after 21st.dev's Vertical Titled Stepper:
 * numbered nodes on a rail, the reader's own link lit, the caller's word on the rail between two links. */
.chain-list { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; }
.chain-link { display: grid; }
.chain-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.75rem; border-radius: 0.75rem; }
.chain-link[data-highlight] .chain-row { background: color-mix(in srgb, var(--guide-accent) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--guide-accent) 30%, transparent); }
.chain-node { width: 1.6rem; height: 1.6rem; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; corner-shape: round; font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--color-muted-foreground, #666); background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 6%, transparent); }
.chain-link[data-highlight] .chain-node { background: var(--guide-accent); color: var(--color-card, #fff); }
.chain-text { flex: 1 1 auto; min-width: 0; }
.chain-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; font-weight: 560; }
.chain-name-text { overflow-wrap: anywhere; }
.guide .chain-badge { height: 1.35rem; gap: 0.25rem; padding: 0 0.5rem; border-radius: var(--radius-chip, 0.375rem); font-size: 0.6875rem; font-weight: 650; color: #7a5a00; background: color-mix(in srgb, #f5b400 22%, var(--color-card, #fff)); border-color: color-mix(in srgb, #f5b400 45%, transparent); }
.chain-badge-icon { width: 0.8rem; height: 0.8rem; }
.chain-detail { color: var(--color-muted-foreground, #666); font-size: 0.8125rem; }
.chain-between { display: flex; align-items: center; gap: 0.4rem; margin: 0 0 0 1.55rem !important; padding: 0.15rem 0 0.15rem 0.9rem; border-inline-start: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 14%, transparent); color: var(--color-muted-foreground, #666); font-size: 0.75rem; }
.chain-between-icon { width: 0.8rem; height: 0.8rem; }

/* A narrow pane: courses go one across, the banner's buttons move under its words, a table drops its tags and keeps
 * its numbers. */
@container surface (max-width: 34rem) {
  .course-cards { grid-template-columns: minmax(0, 1fr); }
  .course-cover { aspect-ratio: 16 / 5; }
  .banner-card { flex-wrap: wrap; }
  .banner-end { width: 100%; justify-content: flex-end; }
  .guide .rank-table-place-head, .guide .rank-table-place { width: 2.5rem; }
  .guide .rank-table-tag { display: none; }
}
@media (max-width: 34rem) {
  .course-cards { grid-template-columns: minmax(0, 1fr); }
  .course-cover { aspect-ratio: 16 / 5; }
  .banner-card { flex-wrap: wrap; }
  .banner-end { width: 100%; justify-content: flex-end; }
  .guide .rank-table-place-head, .guide .rank-table-place { width: 2.5rem; }
  .guide .rank-table-tag { display: none; }
}

/* Round things stay round: the Twenty theme draws every corner as a squircle where the browser can, and its own rule
 * says circles and capsules opt out with corner-shape: round. */
.guide [data-slot="avatar"], .guide [data-slot="avatar-fallback"], .explain-rung-mark, .explain-step-mark, .guide .explain-close,
.profile-meter-bar, .profile-meter-fill, .course-bar, .course-bar-fill, .thread-vote, .guide .guide-status { corner-shape: round; }
/* Several values picked with a plus (coss/pick-field.tsx PickList): each picked value a badge with its remove button. */
.pick-list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.pick-list-item { gap: 0.15rem; padding-inline-end: 0.1rem; }
.space-permissions{display:grid;gap:1.5rem;padding:0 1rem 2rem;max-width:58rem}
.space-permissions section{display:grid;gap:.75rem;padding:1rem;border:1px solid var(--border-primary);border-radius:var(--radius-card);background:var(--bg-surface)}
.space-permissions h3{margin:0;font-size:1rem;font-weight:650;color:var(--text-primary)}

.space-permissions [role=alert]{margin:0;color:var(--color-error)}

/* An action's wrapper only lets the held card find it; it takes no part in the layout. */
.guide-do-it { display: contents; }

/* The one picker of a choice drawn as tiles (tools/ui/show/choice-tiles), after Klaviyo's "Who is your reviews
 * provider?" picker (mobbin.com/screens/0c6903c3-5ec3-40bd-befb-4b8d5f68dfe4): equal bordered tiles in a grid that fills
 * the width and wraps into rows of the same size, each with the choice's logo before its name; the chosen tile is
 * ringed. The button that opens the chosen one (OpenChoice) wears the choice's logo before its words, and a small
 * button beside it opens the tiles in a popover. */
.choice-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0.5rem; }
.choice-tiles .choice-tile { border-color: color-mix(in srgb, var(--color-foreground, #1f1f1f) 12%, transparent); justify-content: flex-start; gap: 0.6rem; height: auto; min-height: 2.9rem; padding: 0.5rem 0.75rem; border-radius: 0.75rem; white-space: normal; text-align: left; line-height: 1.25; color: var(--color-foreground, #1f1f1f); }
.choice-tiles .choice-tile[data-selected] { border-color: var(--color-foreground, #1f1f1f); box-shadow: 0 0 0 1px var(--color-foreground, #1f1f1f); background: var(--color-card, #fff); }
.choice-tiles .choice-tile:focus-visible { outline: 2px solid var(--color-ring, var(--color-foreground, #1f1f1f)); outline-offset: 3px; }
.choice-tile-label { min-width: 0; overflow-wrap: anywhere; display: inline-flex; align-items: center; gap: 0.35rem; }
.choice-tile-text { display: grid; min-width: 0; gap: 0.25rem; }
.choice-tile-description { color: var(--color-muted-foreground, #666); font-size: 0.875rem; font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; }
/* Explained single choices use the same picker as guides and account choices.
   The caller supplies all rows and words; Screen Look owns their spacing/state. */
.choice-tiles[data-choice-kind="radio"] { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 0.625rem; }
.choice-tiles[data-choice-kind="radio"] .choice-tile { min-height: 4.75rem; padding: 0.875rem 1rem; gap: 0.875rem; background: var(--color-muted, #f4f4f4); }
.choice-tiles[data-choice-kind="radio"] .choice-tile[data-selected] { background: var(--color-card, #fff); }
.choice-tile-radio { width: 1.25rem; height: 1.25rem; flex: none; border: 2px solid var(--color-muted-foreground, #666); border-radius: var(--radius-pill); corner-shape: round; display: grid; place-items: center; }
.choice-tile[data-selected] .choice-tile-radio { border-color: currentColor; }
.choice-tile[data-selected] .choice-tile-radio::after { content: ""; width: 0.625rem; height: 0.625rem; border-radius: var(--radius-pill); corner-shape: round; background: currentColor; }
/* Copy labels share one grid cell to keep a stable size. In a tile the full label wraps within its column rather
   than inheriting the ordinary copy button's single-line text, including while its success words are displayed. */
.choice-tile-label .copy-words { min-width: 0; max-width: 100%; }
.choice-tile-label .copy-words-layer { white-space: normal; overflow-wrap: anywhere; }
.choice-tiles .choice-tile-mark { width: 1.6rem; height: 1.6rem; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 0.45rem; background: var(--color-card, #fff); color: var(--color-muted-foreground, #666); }
.choice-tiles .choice-tile-mark img { object-fit: contain; }
.choice-tiles .choice-tile-mark svg { width: 1rem; height: 1rem; opacity: 1; margin: 0; }
.choice-tiles .choice-tile .logo-fallback svg { width: 55%; height: 55%; }

.open-choice-split { display: inline-flex; align-items: stretch; }
.open-choice-split .open-choice { border-start-end-radius: 0; border-end-end-radius: 0; }
.open-choice-split .open-choice-more { border-start-start-radius: 0; border-end-start-radius: 0; margin-inline-start: -1px; }
.open-choice .open-choice-mark { width: 1.15rem; height: 1.15rem; border-radius: 0.3rem; flex: none; }
.open-choice .open-choice-mark img { object-fit: contain; }
.open-choice .open-choice-mark .logo-fallback svg { width: 60%; height: 60%; }
.open-choice .open-choice-icon { width: 1rem; height: 1rem; }
.open-choice-popup { width: min(22rem, calc(100vw - 2rem)); }
.open-choice-popup .open-choice-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.6rem; }
.open-choice-popup .choice-tiles { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); }

/*
 *
 * The look of the shared collection header (tools/ui/show/collection-header/CollectionHeader.tsx): the kind and title
 * with one line about the place on the left, the people, the main buttons and the `…` menu on the right, all on one
 * row when they fit, set apart from what follows by space alone (no rule under it). After Basecamp's project home and
 * HoneyBook's project header. The identity keeps a readable minimum measure and the controls move below it whenever
 * their intrinsic widths no longer fit, including narrow panes in a wide window. On a narrow header the part moves
 * the buttons into the menu itself; its people and menu remain available below the title when necessary.
 * Colours and type sizes come from the surface tokens only. The picture, the title and the controls share one centre
 * line (Linear's and Notion's page headers): a title is never pinned to the top of a taller picture, and the people
 * sit apart from the buttons by the same space the buttons keep between themselves.
 */
.collection-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.25rem 0 1rem; min-width: 0;
}
.collection-header-identity {
  display: flex; align-items: center; gap: 0.75rem;
  flex: 1 1 18rem; min-width: min(100%, 18rem); max-width: 100%;
}
.collection-header-mark {
  flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; overflow: hidden; display: grid; place-items: center;
  background: var(--surface-secondary); border: 1px solid var(--border-primary); color: var(--text-secondary);
}
.collection-header-mark img { width: 100%; height: 100%; object-fit: cover; }
/* A place a person gave a colour (`data-colour`, a palette id; its hue is --record-kind from coss-workspace.css): the
 * letters' tile wears a soft wash of it, the same as its card on the list. */
.collection-header-mark[data-colour] {
  background: color-mix(in oklab, var(--record-kind) 22%, transparent);
  border-color: color-mix(in oklab, var(--record-kind) 40%, transparent);
  color: color-mix(in oklab, var(--record-kind) 72%, var(--text-primary, var(--color-foreground)));
}
.collection-header-letters { font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; }
.collection-header-text { display: grid; flex: 1; gap: 0.15rem; min-width: 0; justify-items: start; }
.collection-header-heading { display: inline-flex; align-items: center; gap: 0.35rem; min-width: 0; max-width: 100%; }
.collection-header-title { margin: 0; overflow-wrap: anywhere; }
.collection-header-lead { max-width: 40rem; }
.collection-header-side { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; flex-shrink: 0; max-width: 100%; }
.collection-header-people { display: inline-flex; align-items: center; margin-right: 0.25rem; }
.collection-header-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; max-width: 100%; }
.collection-header[data-narrow] { gap: 0.6rem; }
.collection-header[data-narrow] .collection-header-identity { gap: 0.6rem; }
.collection-header[data-narrow] .collection-header-side { gap: 0.35rem; }
/* A header straight on a pane above a list (`inset="list"`): the same inset as the list's title under it, the list
 * place's padding (12px) plus the view bar's own inset (8px, record-table.css --record-views-inset), so the picture,
 * the list's title and its first record share one left edge. */
.collection-header[data-inset="list"] { padding: 0.75rem 20px 0.25rem; }

/* packages/screen-look/show/disclosure-heading.css
 *
 * How the one folding heading looks (ui/show/disclosure-heading): a sidebar
 * list heading and a group of records in the Library are the same row. No box
 * and no border at rest; the whole row lights on hover like a sidebar row, the
 * chevron turns to show which way it will go, the count is the sidebar's
 * neutral badge chip, and the row's own actions fade in at its end.
 *
 * References (anatomy only): the sidebar list heading it replaces
 * (sidebar/show/SidebarContent.tsx), Higgsfield's asset library day headings
 * (Mobbin 0d41df30-eca5-48b2-8235-978e81fa827f), 21st.dev 31385 Collapsible and
 * 14029 Disclosure (whole-row trigger, turning chevron).
 */

/* The toggle stretches to the row's height, so the heading is exactly as tall
 * as the action group at its end (a sidebar list's pin and auto-hide). */
.disclosure-heading {
  display: flex;
  align-items: stretch;
  gap: 2px;
  width: 100%;
  min-width: 0;
}

.coss-ui .disclosure-heading-toggle,
.disclosure-heading-toggle {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  height: auto;
  min-height: 32px;
  padding: 4px 10px;
  border-color: transparent;
  border-radius: var(--radius-control, 8px);
  background: transparent;
  box-shadow: none;
  color: var(--text-primary, var(--color-foreground));
  font-size: var(--font-size-body-sm, 13px);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.coss-ui .disclosure-heading-toggle::before {
  display: none;
}

.coss-ui .disclosure-heading-toggle:hover,
.disclosure-heading-toggle:hover {
  border-color: transparent;
  background: var(--glass-bg-hover, color-mix(in srgb, var(--color-foreground) 7%, transparent));
}

.coss-ui .disclosure-heading-toggle:focus-visible {
  outline: var(--focus-ring-width, 2px) solid var(--focus-ring-color, var(--color-ring));
  outline-offset: -2px;
}

.disclosure-heading-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.disclosure-heading[data-chevron='start'] .disclosure-heading-label {
  flex: 0 1 auto;
}

.disclosure-heading-count {
  flex: none;
  font-variant-numeric: tabular-nums;
}

.disclosure-heading-chevron {
  flex: none;
  color: var(--text-tertiary, var(--color-muted-foreground));
  transition: transform 150ms ease;
}

.disclosure-heading[data-open='false'] .disclosure-heading-chevron {
  transform: rotate(-90deg);
}

.disclosure-heading-actions {
  display: flex;
  flex: none;
  align-items: center;
  /* Keep the controls' width in the row while hidden, so pointing at the
     heading never changes the toggle's hit area or moves its words. */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 150ms ease, visibility 0s linear 150ms;
}

.disclosure-heading-actions[data-revealed],
.disclosure-heading-actions:has([data-popup-open]) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
  .disclosure-heading-chevron,
  .disclosure-heading-actions {
    transition: none;
  }
}

/*
 * NO PRIOR: searched ~/dev/bitfield-packages/packages (indent-guide, nesting-guide, tree-guide) and 21st.dev (sidebar
 *   nested list indent guide line: #29954 Tree Nav rail); reference: AirOps sidebar on Mobbin
 *   (https://mobbin.com/screens/f550b9a4-26e8-418f-9c00-513a70f7a7fe), a guide beside an open list's rows.
 * How the guide beside an open list's rows looks (ui/show/nesting-guide/NestingGuide.tsx): a soft pill, 3px, rounded at
 * both ends and inset from them, so the pills of two lists one after the other stay apart (the owner 2026-09-30: thicker,
 * like a pill, the tips not so close that they read as one line). A neutral guide for nesting, never a coloured bar.
 * The host is positioned and places it: --nesting-guide-left is the first guide's left edge, --nesting-guide-step the
 * distance between levels (a tree's indent). */
:root{
  --nesting-guide-width:3px;
  --nesting-guide-inset:5px;
  --nesting-guide-color:color-mix(in srgb,var(--text-primary,var(--color-foreground,currentColor)) 13%,transparent);
}
.nesting-guide{
  position:absolute;
  top:0;
  bottom:0;
  left:calc(var(--nesting-guide-left,0px) + var(--guide-level,0) * var(--nesting-guide-step,0px));
  width:var(--nesting-guide-width);
  background:var(--nesting-guide-color);
  pointer-events:none;
}
.nesting-guide[data-nesting-guide-start]{top:var(--nesting-guide-inset);border-top-left-radius:999px;border-top-right-radius:999px}
.nesting-guide[data-nesting-guide-end]{bottom:var(--nesting-guide-inset);border-bottom-left-radius:999px;border-bottom-right-radius:999px}

/*
 *
 * The look of the shared block editor (tools/documents/show/DocumentEditor.tsx): plain writing that grows with its
 * words, a placeholder in the first block while nothing is written, each block a rule made drawn by its look id
 * (`data-look`, from tools/documents/read-data/editing-rules.json), mentions as coloured chips, marks as their
 * elements, and selected blocks washed in the look's selection colour. Colours come only from the look's own roles;
 * a chip's colour is the one colour attribute every coloured thing uses ([data-colour], coss-workspace.css sets
 * --record-kind for it). After Notion and Linear's block editors (headings, quotes, callouts and code as blocks in
 * one column) and the chips-in-the-words composers of 21st.dev "AI Input" (28303) and "AI Agent Input" (23594).
 */
.document-editor { position: relative; min-width: 0; outline: none; }
.document-editor-blocks { gap: 0.15rem; max-height: 16rem; overflow-y: auto; }
/* The caller's mention picker opens above the words, as wide as the box. */
.document-editor-picker {
  position: absolute; z-index: 30; bottom: calc(100% + 0.5rem); left: 0; right: 0; max-height: 20rem; overflow-y: auto;
  padding: 0.35rem; border: 1px solid var(--border-subtle); border-radius: 0.75rem; background: var(--surface-primary);
  box-shadow: 0 12px 30px rgb(0 0 0 / 12%);
}
.document-block {
  min-height: 1.6rem; padding: 0.2rem 0.25rem; white-space: pre-wrap; overflow-wrap: break-word; outline: none; cursor: text;
  color: var(--text-primary); font-size: var(--font-size-body-lg, 1rem); line-height: 1.5; border-radius: var(--radius-control, 0.5rem);
}
.document-block[data-empty][data-placeholder]::before { content: attr(data-placeholder); color: var(--text-muted); pointer-events: none; }
.document-block[aria-disabled] { opacity: 0.6; cursor: default; }
.document-block[data-selected] { background: color-mix(in oklab, var(--color-primary, currentColor) 14%, transparent); }
.document-editor[data-selecting] { caret-color: transparent; }
/* The value layer stores nesting depth; this look supplies its visual step. */
.document-block[data-indent-level] { margin-inline-start: min(40%, calc(var(--document-list-indent-step, 1.5rem) * var(--document-indent-level, 0))); }

/* Looks a rule gives a block. A new look is one rule here and one row in the DATA. */
.document-block[data-look="heading-1"] { font-size: 1.6em; font-weight: 700; line-height: 1.25; }
.document-block[data-look="heading-2"] { font-size: 1.35em; font-weight: 700; line-height: 1.3; }
.document-block[data-look="heading-3"] { font-size: 1.15em; font-weight: 600; }
.document-block[data-look="heading-4"] { font-size: 1.05em; font-weight: 600; }
.document-block[data-look="small"] { font-size: 0.85em; color: var(--text-muted); }
.document-block[data-look="quote"] {
  font-family: var(--font-display, inherit); font-size: 1.15em; line-height: 1.45; color: var(--text-secondary, var(--text-primary));
  padding: 0.4rem 0.8rem;
}
.document-block[data-look="callout"] { padding: 0.65rem 0.8rem; background: color-mix(in oklab, var(--color-primary, currentColor) 12%, transparent); }
:is(.document-block, .ca-text-node)[data-look="code"] {
  font-family: var(--font-mono, var(--font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace)); font-size: 0.9em; padding: 0.55rem 0.7rem;
  border-radius: var(--radius-control, 0.5rem);
  background: var(--surface-secondary, var(--color-muted)); border: 1px solid var(--border-subtle);
}
.document-block[data-look="spark"] {
  font-weight: 600; font-style: italic; padding: 0.65rem 0.9rem; --record-kind: var(--record-kind-yellow, currentColor);
  color: color-mix(in oklab, var(--record-kind) 70%, var(--text-primary, currentColor));
  background: color-mix(in oklab, var(--record-kind) 14%, transparent); border: 1px solid color-mix(in oklab, var(--record-kind) 40%, transparent);
}
.document-block[data-look="divider"] { min-height: 0; height: 2px; margin: 0.6rem 0.25rem; padding: 0; cursor: default; background: var(--border-subtle); }

/* Marks (the element each inline-mark row draws). */
.document-block code { font-family: var(--font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 0.9em; padding: 0 0.25rem; border-radius: 0.3rem; background: var(--surface-secondary, var(--color-muted)); }

/* Mentions. A caller that draws its own chip (renderChip) fills the host; the default is a glyph and a name. */
.document-chip { display: inline-flex; vertical-align: baseline; white-space: nowrap; user-select: all; margin: 0 0.1rem; }
.document-chip:not([data-colour]) { --record-kind: var(--record-kind-grey, currentColor); }
.document-chip:not([data-drawn-by]) {
  align-items: center; gap: 0.3rem; padding: 0 0.45rem 0 0.35rem; border-radius: var(--radius-chip, 0.375rem); font-weight: 500;
  color: color-mix(in oklab, var(--record-kind) 70%, var(--text-primary, currentColor));
  background: color-mix(in oklab, var(--record-kind) 14%, transparent); border: 1px solid color-mix(in oklab, var(--record-kind) 32%, transparent);
}
.document-chip-glyph { color: var(--record-kind); }

/*
 *
 * The Write screen's page (tools/documents/show/write-screen.tsx, the documents surface under the class `trillion-write`):
 * one reading column about 45rem wide, centred with generous margins, body words at a comfortable 16px, a page's
 * title block large (its size is the title block's own DATA), and an empty title showing "Untitled" even while the
 * caret is elsewhere. The column is the surface's own content plane, so the layout engine measures and lays out
 * inside the reading width. After Notion, Dropbox Dash and Tana's page editors (Mobbin
 * ff1d684c-08e6-454d-af4c-f0d0d57e6308, f7b146fb-ea9a-4596-a37a-3f72b340ea1e, 54a131b3-1fd5-4927-b1d4-517f742e1718).
 */
.trillion-write .ca-root .ca-stage:not(.ca-stage-canvas) { margin: 2.5rem 1.5rem 3rem; }
.trillion-write .ca-root .ca-stage:not(.ca-stage-canvas) > .ca-content-plane {
  width: min(45rem, calc(100% - 2 * var(--ca-gutter)));
  margin-left: auto;
  margin-right: auto;
}
.trillion-write .ca-root .ca-page-controls { padding: 0.5rem 1rem 0; }
.trillion-write .ca-text-node[data-indent-level] { padding-inline-start: min(40%, calc(var(--document-indent-level, 0) * var(--document-list-indent-step, 1.5rem))); }
.trillion-write .ca-root .ca-text-node { font-size: 1rem; line-height: 1.7; }
.trillion-write .ca-root .ca-text-node[data-placeholder-always="true"][data-empty="true"] { position: relative; }
.trillion-write .ca-root .ca-text-node[data-placeholder-always="true"][data-empty="true"]::before {
  content: attr(data-placeholder);
  position: absolute; top: 1px; left: 0; right: 0;
  color: var(--text-tertiary, rgb(0 0 0 / 30%));
  pointer-events: none; white-space: nowrap;
}
@media (max-width: 720px) {
  .trillion-write .ca-root .ca-stage:not(.ca-stage-canvas) { margin: 1.5rem 0.5rem 2rem; }
  /* One touch-sized actions target occupies the writing gutter. The same menu
     contains insertion actions, so two tiny adjacent targets are unnecessary. */
  .trillion-write .ca-grip button[aria-label="Add block below"] { display: none; }
  .trillion-write .ca-grip { transform: translateX(-6px); }
  .trillion-write .ca-grip button[aria-label="Block actions"] {
    width: 44px;
    min-width: 44px;
    height: 44px;
    transform: translateY(-10px);
  }
}

/*
 *
 * The look of the shared message field (tools/ui/show/mention-field/MentionField.tsx): plain writing that grows
 * with its words, a placeholder while empty, each mention as a coloured chip (the documents part's chip, tools/documents/read-data/inline-chip-dom.ts), and the @ picker above the box.
 * After 21st.dev 28303 "AI Input" and 23594 "AI Agent Input" (agent and skill pills in the words) and Tana's home
 * composer on Mobbin (chips inside the box, @ beside attach and voice). A chip's colour is the one colour
 * attribute every coloured thing uses ([data-colour], coss-workspace.css sets --record-kind for it).
 */
.mention-field-root { position: relative; min-width: 0; }
.mention-field {
  min-height: 2.5rem; max-height: 8rem; overflow-y: auto; padding: 0.55rem 0.25rem;
  white-space: pre-wrap; overflow-wrap: anywhere; outline: none; cursor: text;
  color: var(--text-primary); font-size: var(--font-size-body-lg); line-height: 1.45;
}
.mention-field[data-empty]::before { content: attr(data-placeholder); color: var(--text-muted); pointer-events: none; }
.mention-field[aria-disabled] { opacity: 0.6; cursor: default; }
.mention-field .document-chip:not([data-colour]) { --record-kind: var(--record-kind-grey); }
.mention-field .document-chip {
  display: inline-flex; align-items: center; gap: 0; margin: 0 0.1rem; padding: 0 0.45rem 0 0.35rem;
  border-radius: var(--radius-chip, 0.375rem); vertical-align: baseline; white-space: nowrap; user-select: all; font-weight: 500;
  color: color-mix(in oklab, var(--record-kind) 70%, var(--text-primary, currentColor));
  background: color-mix(in oklab, var(--record-kind) 14%, transparent);
  border: 1px solid color-mix(in oklab, var(--record-kind) 32%, transparent);
}
.mention-field .document-chip-glyph { color: var(--record-kind); font-weight: 600; }
.mention-field-picker {
  position: absolute; z-index: 30; bottom: calc(100% + 0.5rem); left: 0; right: 0; max-height: 18rem; overflow-y: auto;
  padding: 0.35rem; border: 1px solid var(--border-subtle); border-radius: 0.75rem; background: var(--surface-primary);
  box-shadow: 0 12px 30px rgb(0 0 0 / 12%);
}

/*
 *
 * The look of what `@` shows (tools/ui/show/mention-picker/MentionPicker.tsx): a row of kinds that narrows the list,
 * then the things grouped under faint kind headers, each with its kind's icon in a soft disc of the kind's colour.
 * After Dropbox Dash's composer suggestions and Notion's @-menu on Mobbin, and 21st.dev 29425 "Tabs with Count Badge"
 * (coss) for the kind row. Colours ride [data-colour] (coss-workspace.css sets --record-kind for it).
 */
.mention-picker { min-width: 0; }
.mention-picker-kinds {
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0.1rem 2.5rem 0.35rem 0.1rem;
  border-bottom: 1px solid var(--border-subtle);
  /* More kinds than fit scroll sideways; the far edge fades so a cut-off kind reads as "more this way". */
  mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
}
.mention-picker-kinds::-webkit-scrollbar { display: none; }
.mention-picker-kinds > * { flex-shrink: 0; gap: 0.3rem; }
.mention-picker-kind-icon:not([data-colour]), .mention-picker-mark:not([data-colour]) { --record-kind: var(--record-kind-grey); }
.mention-picker-kind-icon { color: var(--record-kind); }
.mention-picker-list { min-width: 0; }
.mention-picker-heading { padding: 0.45rem 0.6rem 0.15rem; }
.mention-picker-option { width: 100%; min-height: 2.5rem; justify-content: flex-start; gap: 0.55rem; text-align: left; }
.mention-picker-mark {
  width: 1.5rem; height: 1.5rem; flex-shrink: 0; color: var(--record-kind);
  background: color-mix(in oklab, var(--record-kind) 16%, transparent);
}

/*
 *
 * The look of the one live chip for a mentioned thing (tools/ui/show/record-chip/RecordChip.tsx): a soft pill in its
 * kind's colour, the kind's icon, then the thing's name, sitting on the line of the words around it. After 21st.dev
 * 28303 "AI Input" (entity pills in the words) and the Notion and Dropbox Dash @-mention chips on Mobbin. The colour
 * is the one colour attribute every coloured thing uses ([data-colour]; coss-workspace.css sets --record-kind).
 */
.record-chip:not([data-colour]) { --record-kind: var(--record-kind-grey); }
.record-chip {
  display: inline-flex; align-items: center; gap: 0.25rem; max-width: 100%; margin: 0 0.1rem; padding: 0 0.45rem 0 0.35rem;
  border-radius: var(--radius-chip, 0.375rem); vertical-align: baseline; white-space: nowrap; font: inherit; font-weight: 500; line-height: 1.5;
  text-decoration: none; cursor: pointer;
  color: color-mix(in oklab, var(--record-kind) 70%, var(--text-primary, currentColor));
  background: color-mix(in oklab, var(--record-kind) 14%, transparent);
  border: 1px solid color-mix(in oklab, var(--record-kind) 32%, transparent);
  transition: background-color 120ms ease, border-color 120ms ease;
}
.record-chip:is(a, button):hover { background: color-mix(in oklab, var(--record-kind) 22%, transparent); border-color: color-mix(in oklab, var(--record-kind) 48%, transparent); }
.record-chip:is(a, button):focus-visible { outline: 2px solid color-mix(in oklab, var(--record-kind) 60%, transparent); outline-offset: 1px; }
.record-chip[data-still] { cursor: default; }
.record-chip-icon { flex-shrink: 0; color: var(--record-kind); }
.record-chip-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .record-chip { transition: none; } }

/*
 *
 * The look of the chat part (tools/chat, brought over from bitfield-packages packages/chat): its conversation list
 * beside the open conversation. The chat draws with the shared ui and sidebar parts and their tokens; this file only
 * decides how the two panes share a frame. Wide (the frame's own width from 40rem), the list and the conversation sit
 * side by side, the list in a quiet column with a line between; narrow, they take turns: the list when the person
 * goes back to it (data-pane="list"), the conversation otherwise, with a Conversations button back to the list
 * (.chat-panes-back) shown only then. The frame is its own query container, so the same chat works in a full page,
 * a split pane or a phone. Anatomy after 21st.dev 28186 "Chat" (joyco) and 29936 "Conversation List", and Mobbin's
 * Delphi, Threads and Instagram messages screens. Colours come from the look's tokens only.
 * Each selector repeats its first class once (.chat-x.chat-x) so it outranks the layout utilities the shared
 * Container puts on the same element, whatever order the stylesheets load in.
 */

.chat-panes.chat-panes { container: chat-panes / inline-size; }
.chat-panes-list.chat-panes-list { border-right: 1px solid var(--border-subtle, var(--line, var(--color-muted))); }
.chat-panes-back.chat-panes-back { display: none; flex: none; }

@container chat-panes (max-width: 40rem) {
  .chat-panes-list.chat-panes-list { width: 100% !important; border-right: 0; }
  .chat-panes-back.chat-panes-back { display: flex; }
  .chat-panes.chat-panes[data-pane="detail"] > .chat-panes-list { display: none; }
  .chat-panes.chat-panes[data-pane="list"] > :not(.chat-panes-list) { display: none; }
}

/*
 *
 * The look of one conversation drawn as a chat (tools/ui/show/chat/ChatThread.tsx), as a pursuit's Messages and any
 * list's Chat view draw it: one centred reading column, newest at the bottom, the box pinned under it in the same
 * column; days named between days; runs of one speaker (others on the left under their picture, name and time, the
 * reader's own on the right in the look's primary ink); a quoted reply at a bubble's top; a shared thing as a compact
 * card; reactions as small chips on a bubble's lower edge; tools (react, reply, copy, menu, the clock time) beside a
 * bubble only while it is pointed at, focused or tapped; a "New" line over what arrived since the reader looked; and
 * the round button back to the newest. Anatomy after 21st.dev 28186 "Chat" (joyco), 29393 "Chat Bubble Thread",
 * 28759 "Chat Bubble Reactions", 34988 "Message Bubble", 28485 "AI Messages", 23819 "AI Message", 31661 "Message
 * Thread" and 12404 "Agent Chat", and Messenger, WhatsApp and Slack as people use them. Colours come from the look's
 * tokens only (surface/text roles, falling back to the Coss theme roles every look defines), so every look repaints
 * it. Each selector repeats its first class once (.chat-x.chat-x) so it outranks the layout utilities the shared
 * Container and Button put on the same element, whatever order the stylesheets load in. Spacing is on a 4px grid.
 */

/* A list that draws a chat fills the place that holds it: the bar on top, the conversation taking the rest and
   scrolling on its own, the box pinned at the foot (never scrolled away with the messages). */
.record-views:has(> .record-views-caller-view > .record-views-design[data-design="chat"]) { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.record-views-caller-view:has(> .record-views-design[data-design="chat"]) { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.record-views-design[data-design="chat"] { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
/* What holds a list drawing a chat stops scrolling itself; the conversation scrolls. */
:has(> .record-views > .record-views-caller-view > .record-views-design[data-design="chat"]) { overflow-y: hidden; }

.chat-thread.chat-thread {
  container: chat-thread / inline-size;
  position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 16rem; min-width: 0;
}
.chat-thread-frame.chat-thread-frame { position: relative; display: flex; flex: 1 1 auto; min-height: 0; }
.chat-thread-viewport.chat-thread-viewport { display: block; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; outline: none; scrollbar-gutter: stable; }
.chat-thread-viewport.chat-thread-viewport:focus-visible { box-shadow: inset 0 0 0 2px var(--border-focus, var(--color-ring)); border-radius: 12px; }
.chat-thread-column.chat-thread-column {
  display: flex; flex-direction: column; justify-content: flex-end;
  width: 100%; max-width: 52rem; min-height: 100%; margin: 0 auto; padding: 16px 16px 12px; box-sizing: border-box;
}
.chat-thread-older.chat-thread-older { padding-bottom: 8px; }
.chat-thread-empty.chat-thread-empty { flex: 1; gap: 12px; padding: 48px 16px; text-align: center; color: var(--text-muted, var(--color-muted-foreground)); }

/* Days: the day's name centred between days, held at the top while its day scrolls under it. */
.chat-day.chat-day { display: flex; flex-direction: column; }
.chat-day-divider.chat-day-divider { position: sticky; top: 4px; z-index: 1; display: flex; justify-content: center; padding: 12px 0 4px; pointer-events: none; }
.chat-day-divider.chat-day-divider > * {
  padding: 2px 10px; border-radius: 999px; pointer-events: auto; font-weight: 500;
  background: var(--surface-primary, var(--color-card)); border: 1px solid var(--border-subtle, var(--line, var(--color-border)));
}

/* What arrived since the reader last looked: a hairline in the alert colour with "New" at its end (Slack). */
.chat-unread-line.chat-unread-line { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; color: var(--color-destructive, #d93f3f); }
.chat-unread-line.chat-unread-line::before { content: ''; flex: 1; height: 1px; background: currentColor; opacity: 0.55; }

/* A run: one speaker's messages in a row. Others on the left, their picture at the run's foot, their name and the
   run's time on top; the reader's on the right with the run's time under its last bubble. */
.chat-run.chat-run { display: flex; align-items: flex-end; gap: 8px; margin-top: 12px; min-width: 0; }
.chat-run.chat-run[data-side="mine"] { justify-content: flex-end; }
.chat-run-mark.chat-run-mark { display: grid; place-items: center; flex: none; width: 28px; height: 28px; margin-bottom: 2px; }
.chat-run-body.chat-run-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.chat-run.chat-run[data-side="mine"] .chat-run-body { align-items: flex-end; }
.chat-run.chat-run[data-side="theirs"] .chat-run-body { align-items: flex-start; }
.chat-run-head.chat-run-head { display: flex; align-items: baseline; gap: 8px; padding: 0 12px 2px; min-width: 0; }
.chat-run-name.chat-run-name { color: var(--text-primary, var(--color-foreground)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-run-time.chat-run-time, .chat-run-foot.chat-run-foot { white-space: nowrap; font-variant-numeric: tabular-nums; }
.chat-run-foot.chat-run-foot { padding: 2px 4px 0; }

/* One message: its bubble (and card, and reactions) with its tools beside it, on the far side from its speaker. */
.chat-message.chat-message { position: relative; display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; }
.chat-run.chat-run[data-side="mine"] .chat-message { flex-direction: row-reverse; }
.chat-message-stack.chat-message-stack { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: min(34rem, 78cqi); }
.chat-run.chat-run[data-side="mine"] .chat-message-stack { align-items: flex-end; }
.chat-run.chat-run[data-side="theirs"] .chat-message-stack { align-items: flex-start; }

.chat-bubble.chat-bubble {
  display: block; min-width: 0; max-width: 100%; padding: 8px 12px; border-radius: 18px; box-sizing: border-box;
  background: var(--surface-secondary, var(--color-muted)); color: var(--text-primary, var(--color-foreground));
}
.chat-run.chat-run[data-side="mine"] .chat-bubble { background: var(--color-primary, var(--text-primary)); color: var(--color-primary-foreground, var(--surface-primary)); }
.chat-bubble.chat-bubble[data-quiet="true"] { background: transparent; border: 1px dashed var(--border-subtle, var(--color-border)); color: var(--text-muted, var(--color-muted-foreground)); }
.chat-bubble-text.chat-bubble-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; color: inherit; }
/* Bubbles in one run sit close; the corner toward the speaker's side tightens between them (29393). */
.chat-run.chat-run[data-side="theirs"] .chat-message:not(:last-of-type) .chat-bubble { border-bottom-left-radius: 6px; }
.chat-run.chat-run[data-side="theirs"] .chat-message:not(:first-of-type) .chat-bubble { border-top-left-radius: 6px; }
.chat-run.chat-run[data-side="mine"] .chat-message:not(:last-of-type) .chat-bubble { border-bottom-right-radius: 6px; }
.chat-run.chat-run[data-side="mine"] .chat-message:not(:first-of-type) .chat-bubble { border-top-right-radius: 6px; }
.chat-mention.chat-mention { font-weight: 600; color: inherit; }

/* What a message answers, quoted at its top inside the bubble (iMessage, WhatsApp): who said it, its first words,
   on a faint wash of the bubble's own ink. */
.chat-reply-quote.chat-reply-quote {
  display: flex; flex-direction: column; gap: 0; margin: 0 -4px 6px; padding: 6px 8px; border-radius: 10px;
  background: color-mix(in oklab, currentColor 9%, transparent);
}
.chat-reply-quote-name.chat-reply-quote-name { color: inherit; }
.chat-reply-quote-text.chat-reply-quote-text {
  color: inherit; opacity: 0.8; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere;
}

/* A thing shared into the conversation: a compact card with its picture or its kind's glyph, its kind, title and a
   line of its words; the whole card opens it (21st.dev 30730, 29545; iMessage and Slack attachments). */
.chat-attachment.chat-attachment {
  display: flex; align-items: center; gap: 12px; width: 22rem; max-width: 100%; height: auto; min-height: 0; padding: 8px 12px 8px 8px;
  box-sizing: border-box; border-radius: 14px; text-align: left; justify-content: flex-start; white-space: normal;
  border: 1px solid var(--border-subtle, var(--line, var(--color-border))); background: var(--surface-primary, var(--color-card));
  color: var(--text-primary, var(--color-foreground)); box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}
button.chat-attachment.chat-attachment:hover { background: var(--surface-hover, color-mix(in oklab, var(--color-foreground) 3%, var(--color-card))); }
.chat-attachment-picture.chat-attachment-picture {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 10px; overflow: hidden;
  background: var(--surface-secondary, var(--color-muted)); color: var(--text-secondary, var(--color-muted-foreground));
}
.chat-attachment-picture.chat-attachment-picture[data-picture] { width: 56px; height: 56px; }
.chat-attachment-picture.chat-attachment-picture[data-picture] img, .chat-attachment-picture.chat-attachment-picture[data-picture] video { width: 100%; height: 100%; object-fit: cover; }
.chat-attachment-words.chat-attachment-words { display: flex; flex-direction: column; gap: 0; min-width: 0; flex: 1 1 auto; }
.chat-attachment-kind.chat-attachment-kind { line-height: 1.3; }
.chat-attachment-title.chat-attachment-title { display: block; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: inherit; }
.chat-attachment-detail.chat-attachment-detail { line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }

/* Reactions as small chips on the bubble's lower edge (28759), toward the speaker's side. */
.chat-message-reactions.chat-message-reactions { display: flex; margin-top: -10px; padding: 0 8px; position: relative; z-index: 1; }
.chat-message-reactions .reaction-chip { background: var(--surface-primary, var(--color-card)); box-shadow: 0 0 0 2px var(--surface-primary, var(--color-card)); }

/* The tools beside a bubble, only while it is pointed at, focused or tapped, or while one of its menus is open. */
.chat-message-tools.chat-message-tools {
  display: flex; align-items: center; gap: 0; flex: none; padding: 2px; border-radius: 999px;
  background: var(--surface-primary, var(--color-card)); border: 1px solid var(--border-subtle, var(--line, var(--color-border)));
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.08); opacity: 0; pointer-events: none; transition: opacity 120ms ease;
}
.chat-message-tools.chat-message-tools button { width: 28px; height: 28px; min-width: 28px; border-radius: 999px; }
.chat-message-tools.chat-message-tools .reaction-row { display: inline-flex; }
.chat-message-time.chat-message-time { padding: 0 8px 0 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chat-message.chat-message:hover .chat-message-tools,
.chat-message.chat-message:focus-within .chat-message-tools,
.chat-message.chat-message[data-chosen="true"] .chat-message-tools,
.chat-message.chat-message:has([aria-expanded="true"]) .chat-message-tools { opacity: 1; pointer-events: auto; }

/* The round button back to the newest message (28485), only while reading further up. */
.chat-thread-newest.chat-thread-newest {
  position: absolute; left: 50%; bottom: 12px; z-index: 2; transform: translateX(-50%) scale(1);
  transition: opacity 150ms ease, transform 150ms ease;
}
.chat-thread-newest.chat-thread-newest > button { width: 36px; height: 36px; border-radius: 999px; box-shadow: 0 6px 20px rgb(0 0 0 / 0.12); }
.chat-thread-newest.chat-thread-newest[data-shown="false"] { opacity: 0; transform: translateX(-50%) scale(0.6); pointer-events: none; }

/* Under the conversation: what the next message answers, then the one composer, in a column matching the messages. */
.chat-compose.chat-compose { display: flex; flex-direction: column; gap: 8px; flex: none; width: 100%; max-width: 52rem; margin: 0 auto; padding: 4px 16px 16px; box-sizing: border-box; }
.chat-replying.chat-replying {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 12px;
  background: var(--surface-secondary, var(--color-muted)); color: var(--text-secondary, var(--color-muted-foreground));
}
.chat-replying-words.chat-replying-words { display: flex; flex-direction: column; gap: 0; min-width: 0; flex: 1 1 auto; }
.chat-replying-words.chat-replying-words > * { color: var(--text-primary, var(--color-foreground)); }
.chat-replying-text.chat-replying-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-secondary, var(--color-muted-foreground)) !important; }

/* A phone or a narrow pane: bubbles take more of the row, the column's edges tighten, and a message's tools float
   just above its bubble (shown on a tap) instead of beside it, so they never squeeze the words. */
@container chat-thread (max-width: 34rem) {
  .chat-thread-column.chat-thread-column { padding: 12px 8px 8px; }
  .chat-message-stack.chat-message-stack { max-width: 86cqi; }
  .chat-run.chat-run[data-side="theirs"] .chat-message-stack { max-width: calc(86cqi - 36px); }
  .chat-message-tools.chat-message-tools { position: absolute; bottom: calc(100% + 4px); z-index: 3; }
  .chat-run.chat-run[data-side="theirs"] .chat-message-tools { left: 0; }
  .chat-run.chat-run[data-side="mine"] .chat-message-tools { right: 0; }
  .chat-attachment.chat-attachment { width: 100%; }
  .chat-day-divider.chat-day-divider { position: static; }
  .chat-compose.chat-compose { padding: 4px 8px 8px; }
}
@media (hover: none) {
  .chat-message.chat-message:hover:not([data-chosen="true"]) .chat-message-tools { opacity: 0; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  .chat-message-tools.chat-message-tools, .chat-thread-newest.chat-thread-newest { transition: none; }
}

/*
 *
 * The look of the shared message box (tools/ui/show/composer/Composer.tsx): its words (the shared document editor)
 * above its tools. The message box screen (src/workspace/global-composer.tsx) fills the window the screen
 * arrangement floats it in, its box at the bottom as a chat box is; where that window sits is the arrangement's.
 */
.message-box {
  display: flex; flex-direction: column; justify-content: flex-end; box-sizing: border-box;
  inline-size: 100%; block-size: 100%; padding: 0.5rem; overflow-y: auto;
}
/* The words and the tools, laid out as a chat input (21st.dev Input Bar 12400, Prompt Input 28187): the words fill the
 * box, and under them one row holds the ways to add, bare and flush with the words' start, with Send at its end. The
 * box measures itself (a size container, so a narrow pane on a desktop behaves as a phone does): when the ways to add
 * do not fit beside Send they wrap onto a second row instead of leaving the box. */
.composer { container: composer / inline-size; }
.composer-field { box-shadow: 0 10px 30px rgb(46 35 85 / 8%); border-radius: 1rem; }
.composer-words { min-inline-size: 0; }
.composer-tools > [data-expandable-tabs] { flex: 1 1 0; min-width: 0; margin-inline-start: -0.25rem; }
@container composer (max-width: 18rem) {
  .composer-tools > [data-expandable-tabs] { flex-wrap: wrap; }
}
/* What the next message answers or carries, one small removable pill each above the words, after 21st.dev 28500
 * "attachment composer tray" and 12400 "input bar" staged chips. Colours come from the surface tokens only. */
.composer-context { padding: 0 0.25rem; }
.composer-context-chip {
  max-width: 100%; min-height: 1.75rem; padding: 0.15rem 0.3rem 0.15rem 0.6rem; border-radius: var(--radius-chip, 0.375rem);
  border: 1px solid var(--border-primary); background: var(--surface-secondary); color: var(--text-secondary);
}
.composer-context-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 16rem; }
.composer-context-chip:not(:has(button)) { padding-right: 0.6rem; }
/* The choices a message is sent with (where it goes, what the AI does): a quiet button each above the words, its
 * current choice after its label, opening the shared action menu. */
.composer-pickers { padding: 0 0.25rem; }
.composer-picker {
  display: inline-flex; align-items: center; gap: 0.35rem; max-width: 100%; min-height: 1.75rem; padding: 0.15rem 0.6rem;
  border-radius: 999px; border: 1px solid var(--border-primary); background: var(--surface-secondary); color: var(--text-secondary);
}
.composer-picker-choice { color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14rem; }
/* What scrolls beneath a corner's controls ends with room for them, so its last card can be scrolled out from under
   them (tools/ui/show/floating-occlusion/clear-scroll-beneath.ts marks the area and gives it the height). */
[data-floating-clearance]::after { content: ''; display: block; flex: none; block-size: var(--floating-clearance, 0px); }
/* A box pinned at the bottom of its screen gets room under it while a control floats over the window's bottom edge
   (tools/ui/show/floating-occlusion/lift-above-floating.ts marks it and gives it the height), so it lifts clear. */
[data-floating-lift] { margin-block-end: var(--floating-lift, 0px); }
/* What the last send said, with the one next step its answer names (Connect your AI) beside it. */
.composer-said { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }

/*
   How the controls that float in a window corner line up (tools/ui/show/floating-occlusion/window-corner.tsx): one
   group per corner, the same distance from the window's edges on every screen and every device, its controls side by
   side with one gap, the first at the corner itself. Nothing in a corner positions itself. */
.floating-corner-group {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  pointer-events: none;
}
.floating-corner-group[data-floating-corner="bottom-right"] { right: max(1rem, env(safe-area-inset-right)); flex-direction: row-reverse; }
.floating-corner-group[data-floating-corner="bottom-left"] { left: max(1rem, env(safe-area-inset-left)); flex-direction: row; }
.floating-corner-group > .floating-corner-item { pointer-events: auto; }

/*
 *
 * How a directory card (tools/ui/show/listing-card) says a tone: the corner badge and the dot beside its signal line,
 * by the plain tone words every screen passes (good, attention, bad, info, quiet). The same colours the guide's status
 * badges use (guide.css), so a tone reads the same on a card and in a row. A tone not named here draws quiet.
 */
[data-slot="listing-card"] [data-listing-badge] {
  display: inline-flex; align-items: center; gap: 0.3rem; flex-shrink: 0;
  padding: 0.1rem 0.45rem; border-radius: var(--radius-chip, 0.375rem); border: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 14%, transparent);
  font-size: 0.6875rem; font-weight: 500; line-height: 1rem; color: color-mix(in srgb, var(--color-foreground, #1f1f1f) 72%, transparent);
  background: var(--color-background, #fff);
}
[data-slot="listing-card"] [data-listing-dot] { width: 0.4rem; height: 0.4rem; border-radius: 999px; flex-shrink: 0; background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 30%, transparent); }
[data-slot="listing-card"] [data-tone="good"] [data-listing-dot], [data-slot="listing-card"] [data-listing-dot][data-tone="good"] { background: #16865c; }
[data-slot="listing-card"] [data-tone="attention"] [data-listing-dot], [data-slot="listing-card"] [data-listing-dot][data-tone="attention"] { background: #d97706; }
[data-slot="listing-card"] [data-tone="bad"] [data-listing-dot], [data-slot="listing-card"] [data-listing-dot][data-tone="bad"] { background: #b42318; }
[data-slot="listing-card"] [data-tone="info"] [data-listing-dot], [data-slot="listing-card"] [data-listing-dot][data-tone="info"] { background: #2563eb; }
[data-slot="listing-card"] [data-listing-badge][data-tone="good"] { background: color-mix(in srgb, #16865c 10%, var(--color-background, #fff)); border-color: color-mix(in srgb, #16865c 28%, transparent); color: #0f6b48; }
[data-slot="listing-card"] [data-listing-badge][data-tone="attention"] { background: color-mix(in srgb, #d97706 11%, var(--color-background, #fff)); border-color: color-mix(in srgb, #d97706 30%, transparent); color: #92400e; }
[data-slot="listing-card"] [data-listing-badge][data-tone="bad"] { background: color-mix(in srgb, #b42318 9%, var(--color-background, #fff)); border-color: color-mix(in srgb, #b42318 28%, transparent); color: #b42318; }
[data-slot="listing-card"] [data-listing-badge][data-tone="info"] { background: color-mix(in srgb, #2563eb 8%, var(--color-background, #fff)); border-color: color-mix(in srgb, #2563eb 26%, transparent); color: #1d4ed8; }
/* A cover a person gave a colour (`data-colour`, a palette id; its hue is --record-kind, set in coss-workspace.css):
 * the fill becomes a soft wash of that hue and the letters take it deeper, so the card reads as its colour in every
 * look without shouting over the words below it. */
[data-slot="listing-card"] [data-slot="listing-cover"][data-colour] {
  background: color-mix(in oklab, var(--record-kind) 24%, var(--color-card, var(--color-background, #fff)));
}
[data-slot="listing-card"] [data-slot="listing-cover"][data-colour] [data-slot="listing-cover-letters"] {
  color: color-mix(in oklab, var(--record-kind) 72%, var(--color-foreground, #1f1f1f));
}
/* The lead tile's tint (`data-tone` on `[data-listing-tile]`): the state of the thing at a glance, in the same tone
 * colours as the badge, as a soft wash with the icon in the tone. A tone not named here stays the quiet tile. */
[data-slot="listing-card"] [data-listing-tile][data-tone="good"] { background: color-mix(in srgb, #16865c 12%, var(--color-card, #fff)); border-color: color-mix(in srgb, #16865c 26%, transparent); color: #0f6b48; }
[data-slot="listing-card"] [data-listing-tile][data-tone="attention"] { background: color-mix(in srgb, #d97706 13%, var(--color-card, #fff)); border-color: color-mix(in srgb, #d97706 28%, transparent); color: #92400e; }
[data-slot="listing-card"] [data-listing-tile][data-tone="bad"] { background: color-mix(in srgb, #b42318 11%, var(--color-card, #fff)); border-color: color-mix(in srgb, #b42318 26%, transparent); color: #b42318; }
[data-slot="listing-card"] [data-listing-tile][data-tone="info"] { background: color-mix(in srgb, #2563eb 10%, var(--color-card, #fff)); border-color: color-mix(in srgb, #2563eb 24%, transparent); color: #1d4ed8; }
/* A state drawn as a dot alone (`mark`) is a little larger than the dot beside words, so it reads on its own. */
[data-slot="listing-card"] [data-listing-mark] { width: 0.55rem; height: 0.55rem; }
/* Work still going on, on the lead tile (`progress`): a ring in the tile's tone that fills as the work gets on, its
 * track a faint wash of the same colour; the loading mark covers the icon while how far is not known. */
[data-slot="listing-card"] [data-listing-tile][data-working] { --listing-ring: currentColor; border-radius: 999px; }
[data-slot="listing-card"] [data-listing-ring] circle { fill: none; stroke-width: 2.5; }
[data-slot="listing-card"] [data-listing-ring-track] { stroke: color-mix(in srgb, var(--listing-ring) 18%, transparent); }
[data-slot="listing-card"] [data-listing-ring-value] { stroke: var(--listing-ring); stroke-linecap: round; transition: stroke-dashoffset var(--motion-slow) var(--ease-snap); }
[data-slot="listing-card"] [data-listing-working] { border-radius: inherit; }
@media (prefers-reduced-motion: reduce) { [data-slot="listing-card"] [data-listing-ring-value] { transition: none; } }
/* Someone at the work now (`face.working`): a short stroke in the working blue runs around the edge of their face (the
 * same soft square the face is), over a faint track, so the face itself says they are at it. With reduced motion the
 * stroke stays still. */
[data-slot="listing-card"] [data-listing-arc] rect { fill: none; stroke-width: 2.5; }
[data-slot="listing-card"] [data-listing-arc-track] { stroke: color-mix(in srgb, #2563eb 16%, transparent); }
[data-slot="listing-card"] [data-listing-arc-value] { stroke: #2563eb; stroke-linecap: round; animation: listing-arc-run 1.4s linear infinite; }
@keyframes listing-arc-run { to { stroke-dashoffset: -100; } }
@media (prefers-reduced-motion: reduce) { [data-slot="listing-card"] [data-listing-arc-value] { animation: none; } }
/* A state drawn as a chip (`chips[].tone` with no kind): a pill in the tone's colour, so `New -> In progress` reads at a
 * glance. A tone not named here is the quiet pill. */
[data-slot="listing-card"] [data-listing-chip][data-tone] { background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 7%, transparent); color: color-mix(in srgb, var(--color-foreground, #1f1f1f) 75%, transparent); }
[data-slot="listing-card"] [data-listing-chip][data-tone="good"] { background: color-mix(in srgb, #16865c 13%, transparent); color: #0f6b48; }
[data-slot="listing-card"] [data-listing-chip][data-tone="attention"] { background: color-mix(in srgb, #d97706 15%, transparent); color: #92400e; }
[data-slot="listing-card"] [data-listing-chip][data-tone="bad"] { background: color-mix(in srgb, #b42318 12%, transparent); color: #b42318; }
[data-slot="listing-card"] [data-listing-chip][data-tone="info"] { background: color-mix(in srgb, #2563eb 11%, transparent); color: #1d4ed8; }

/*
 *
 * How whether every copy is in step looks (tools/ui/show/catch-up): the small mark, its dot and ring, the whole picture
 * and the view that settles two versions. Tones are the plain tone words every screen passes (good, attention, bad,
 * info, quiet), in the same colours listing-card.css gives a card, so a device's row and the mark read alike. The pill
 * is 21st.dev diceui "Status" (component 25395, MIT): a soft tint, a hairline in the tone and a dot that breathes; the
 * breathing is a ring that grows and fades from the dot, still for anyone who asked for less motion.
 */
.catch-up-mark, [data-catch-up-panel], [data-catch-up-versions] {
  --catch-up-tone: color-mix(in srgb, var(--color-foreground, #1f1f1f) 38%, transparent);
  --catch-up-ink: color-mix(in srgb, var(--color-foreground, #1f1f1f) 72%, transparent);
}
[data-tone="good"] { --catch-up-tone: #16865c; --catch-up-ink: #0f6b48; }
[data-tone="attention"] { --catch-up-tone: #d97706; --catch-up-ink: #92400e; }
[data-tone="bad"] { --catch-up-tone: #b42318; --catch-up-ink: #b42318; }
[data-tone="info"] { --catch-up-tone: #2563eb; --catch-up-ink: #1d4ed8; }

/* The mark: a pill with the dot (or the ring) and the state's words, or the state's icon with its dot. */
.catch-up-mark {
  display: inline-flex; align-items: center; gap: 0.4rem; flex-shrink: 0; max-width: 100%; min-width: 0;
  height: 1.75rem; padding: 0 0.65rem 0 0.55rem; border-radius: 999px; cursor: pointer;
  font-size: 0.75rem; font-weight: 500; line-height: 1; color: var(--catch-up-ink);
  background: color-mix(in srgb, var(--catch-up-tone) 10%, var(--color-background, #fff));
  border: 1px solid color-mix(in srgb, var(--catch-up-tone) 26%, transparent);
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.catch-up-mark:hover { background: color-mix(in srgb, var(--catch-up-tone) 16%, var(--color-background, #fff)); }
.catch-up-mark:active { transform: scale(0.97); }
.catch-up-mark:focus-visible { outline: 2px solid color-mix(in srgb, var(--catch-up-tone) 60%, transparent); outline-offset: 2px; }
.catch-up-mark[data-quiet] { background: transparent; border-color: color-mix(in srgb, var(--color-foreground, #1f1f1f) 12%, transparent); color: color-mix(in srgb, var(--color-foreground, #1f1f1f) 60%, transparent); }
[data-catch-up-mark-words] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.catch-up-mark[data-catch-up-mark="icon"] { width: 2rem; height: 2rem; padding: 0; justify-content: center; border-radius: 0.6rem; }
[data-catch-up-mark-icon] { position: relative; display: inline-flex; }
[data-catch-up-mark-icon] [data-catch-up-dot] { position: absolute; right: -0.2rem; top: -0.2rem; box-shadow: 0 0 0 2px var(--color-background, #fff); }

[data-catch-up-dot] { position: relative; width: 0.5rem; height: 0.5rem; border-radius: 999px; flex-shrink: 0; background: var(--catch-up-tone); }
[data-catch-up-dot][data-moving]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--catch-up-tone);
  animation: catch-up-breathe 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes catch-up-breathe { 0% { transform: scale(1); opacity: 0.55; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
[data-catch-up-ring] circle { fill: none; stroke-width: 2.6; }
[data-catch-up-ring-track] { stroke: color-mix(in srgb, var(--catch-up-tone) 20%, transparent); }
[data-catch-up-ring-value] { stroke: var(--catch-up-tone); stroke-linecap: round; transition: stroke-dashoffset var(--motion-slow) var(--ease-snap); }
@media (prefers-reduced-motion: reduce) {
  [data-catch-up-dot][data-moving]::after { animation: none; opacity: 0; }
  [data-catch-up-ring-value], .catch-up-mark { transition: none; }
}

/* The whole picture: a tinted head, then the devices, then the records kept as two versions. */
[data-catch-up-panel] { padding: 1rem; container-type: inline-size; }
/* As a screen (a window, a pane, a placed piece) it fills its frame and scrolls inside it. */
.catch-up-screen { height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
/* Beside its mark, the picture scrolls within the window; as a screen, its pane scrolls it. */
.catch-up-popup { max-height: min(42rem, 80vh); overflow-y: auto; }
[data-catch-up-head] { padding-bottom: 0.25rem; }
[data-catch-up-apart-row][data-open] > [data-slot="listing-card"] { border-color: color-mix(in srgb, #d97706 34%, transparent); }

/* Two versions: each version a column with its own head when there is room; one stacked list on a phone. */
[data-catch-up-versions] {
  container-type: inline-size; padding: 0.85rem; border-radius: var(--radius-card, 0.75rem);
  background: color-mix(in srgb, var(--color-foreground, #1f1f1f) 3%, var(--color-background, #fff));
  border: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 9%, transparent);
}
[data-catch-up-columns], [data-catch-up-field] { display: grid; grid-template-columns: minmax(5rem, 0.6fr) repeat(var(--catch-up-sides, 2), minmax(0, 1fr)); align-items: start; }
[data-catch-up-versions][data-single] [data-catch-up-columns], [data-catch-up-versions][data-single] [data-catch-up-field] { grid-template-columns: repeat(var(--catch-up-sides, 2), minmax(0, 1fr)); }
[data-catch-up-versions][data-sides="3"] { --catch-up-sides: 3; }
[data-catch-up-versions][data-sides="4"] { --catch-up-sides: 4; }
[data-catch-up-field-name] { padding-top: 0.55rem; overflow-wrap: anywhere; }
[data-catch-up-side-head] { min-width: 0; padding: 0 0.75rem; }
[data-catch-up-pick] {
  position: relative; min-width: 0; border-radius: 0.6rem; border: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 10%, transparent);
  background: var(--color-background, #fff); text-align: start; transition: border-color .15s ease, background-color .15s ease;
}
[data-catch-up-pick]:hover { border-color: color-mix(in srgb, #2563eb 34%, transparent); }
[data-catch-up-pick][data-picked] { border-color: color-mix(in srgb, #2563eb 55%, transparent); background: color-mix(in srgb, #2563eb 7%, var(--color-background, #fff)); color: inherit; }
[data-catch-up-pick][data-picked] svg { color: #2563eb; }
[data-catch-up-value] { flex: 1; min-width: 0; overflow-wrap: anywhere; }
[data-catch-up-value][data-empty] { font-style: italic; opacity: 0.6; }
[data-catch-up-pick-from] { display: none; }
/* No side-by-side room: the version heads give way, each field stacks its versions, and each version names itself. */
@container (max-width: 32rem) {
  [data-catch-up-columns] { display: none; }
  [data-catch-up-field], [data-catch-up-versions][data-single] [data-catch-up-field] { grid-template-columns: minmax(0, 1fr); }
  [data-catch-up-field-name] { padding-top: 0.25rem; }
  [data-catch-up-pick-from] { display: inline; flex-shrink: 0; }
}

/*
 *
 * How the Layouts picker looks (tools/ui/show/arrangement-thumbnail, laid out by
 * tools/screen-arrangement/show/LayoutPicker.tsx): a grid of small framed pictures of
 * each layout's panes with the name under it. Paper frame, ink lines, and the look's
 * accent thread ringing the layout on screen now. Every colour is a look token.
 */
.layout-picker { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.layout-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr)); gap: 0.625rem 0.5rem; min-width: 0; }

.arrangement-thumbnail { position: relative; min-width: 0; }
.arrangement-thumbnail-press.arrangement-thumbnail-press {
  display: flex; flex-direction: column; align-items: stretch; gap: 0.3125rem;
  width: 100%; height: auto; min-height: 0; padding: 0; white-space: normal; text-align: left;
  border-radius: var(--radius-control, 0.5rem);
}
.arrangement-thumbnail-press:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }
.arrangement-thumbnail-press:active { scale: 1; }

.arrangement-thumbnail-picture {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 0.5rem; border: 1px solid var(--border-primary);
  background: var(--glass-bg-subtle);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.arrangement-thumbnail-press:hover .arrangement-thumbnail-picture { border-color: var(--border-secondary, var(--text-muted)); }
.arrangement-thumbnail[data-selected] .arrangement-thumbnail-picture {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-primary);
}

.arrangement-thumbnail-box {
  position: absolute; box-sizing: border-box; display: flex; align-items: center; justify-content: center; overflow: hidden;
  border: 2px solid transparent; background-clip: padding-box;
  border-radius: 0.3125rem;
  background-color: var(--surface, var(--glass-bg-primary));
  box-shadow: inset 0 0 0 1px var(--border-primary);
  color: var(--text-secondary);
}
.arrangement-thumbnail-box svg { width: 0.75rem; height: 0.75rem; flex-shrink: 0; }
.arrangement-thumbnail[data-selected] .arrangement-thumbnail-box { color: var(--accent-primary); }
.arrangement-thumbnail-box-label {
  max-width: 100%; padding: 0 0.125rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 0.5625rem; line-height: 1; color: var(--text-secondary);
}

.arrangement-thumbnail-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: var(--font-size-caption, 0.75rem); line-height: 1.25; font-weight: 450; color: var(--text-secondary);
}
.arrangement-thumbnail[data-selected] .arrangement-thumbnail-name { color: var(--text-primary); font-weight: 550; }
.arrangement-thumbnail-name-editor { margin-top: 0.3125rem; }

.arrangement-thumbnail-actions {
  position: absolute; top: 0.25rem; right: 0.25rem; display: flex;
  border-radius: 0.375rem; background: var(--surface, var(--glass-bg-primary));
  box-shadow: 0 0 0 1px var(--border-primary);
  opacity: 0; transition: opacity 120ms ease;
}
.arrangement-thumbnail:hover .arrangement-thumbnail-actions,
.arrangement-thumbnail:focus-within .arrangement-thumbnail-actions,
.arrangement-thumbnail-actions:has([aria-expanded="true"]) { opacity: 1; }
@media (hover: none) { .arrangement-thumbnail-actions { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .arrangement-thumbnail-picture, .arrangement-thumbnail-actions { transition: none; }
}

/* The pane map. Each pane is drawn as its own tile and handle: grab it to move it, press it to go to it. A band along a
   pane's inside edge shows, dashed, the part a new pane would take there; the line between two panes drags to resize. */
[data-pane-map-tile] {
  border: 1px solid var(--border-primary, var(--text-muted, currentColor)); background: var(--glass-bg-subtle, transparent);
  cursor: grab; transition: opacity 120ms ease, border-color 120ms ease;
}
[data-pane-map-tile]:hover, [data-pane-map-tile][aria-pressed="true"] { border-color: var(--border-secondary, var(--text-muted, currentColor)); }
[data-pane-map-tile][data-pane-map-lifted] { opacity: 0.35; }
[data-pane-map-surface][data-pane-map-pointer="move"], [data-pane-map-surface][data-pane-map-pointer="move"] * { cursor: grabbing; }
[data-pane-map-surface][data-pane-map-pointer="add"] [data-pane-map-tile],
[data-pane-map-surface][data-pane-map-pointer="around"] { cursor: copy; }
[data-pane-map-dot-mark] {
  display: block; border-radius: 999px; pointer-events: none; background: var(--text-muted);
  transition: background-color 120ms ease;
}
[data-pane-map-tile][data-pane-map-current] [data-pane-map-dot-mark] { background: var(--accent-primary, var(--border-focus, var(--text-primary))); }
[data-pane-map-resize-edge="right"] { cursor: col-resize; }
[data-pane-map-resize-edge="bottom"] { cursor: row-resize; }
[data-pane-map-resize-edge]:hover, [data-pane-map-resize-edge]:focus-visible, [data-pane-map-resize-edge][data-pane-map-resizing] { background: transparent; }
[data-pane-map-resize-line] {
  position: absolute; pointer-events: none; border-radius: 999px; background: var(--accent-primary, var(--text-primary, currentColor));
  opacity: 0; transition: opacity 120ms ease;
}
[data-pane-map-resize-line="across"] { left: 3px; top: 0; bottom: 0; width: 3px; }
[data-pane-map-resize-line="down"] { top: 3px; left: 0; right: 0; height: 3px; }
[data-pane-map-resize-edge]:hover [data-pane-map-resize-line],
[data-pane-map-resize-edge]:focus-visible [data-pane-map-resize-line],
[data-pane-map-resizing] [data-pane-map-resize-line] { opacity: 1; }
[data-pane-map-landing] {
  position: absolute; z-index: 25; pointer-events: none; display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed var(--accent-primary, var(--text-primary, currentColor)); border-radius: 3px; color: var(--accent-primary, var(--text-primary, currentColor));
  background: color-mix(in srgb, var(--accent-primary, var(--text-primary, currentColor)) 10%, transparent);
}
[data-pane-map-landing] svg { width: 0.75rem; height: 0.75rem; }
[data-pane-map-add-button] { border: 1.5px dashed var(--accent-primary, var(--text-primary, currentColor)); border-radius: 3px; }
[data-pane-map-ghost] {
  position: absolute; z-index: 30; pointer-events: none; border-radius: 3px;
  border: 1px solid var(--accent-primary, var(--text-primary, currentColor)); background: var(--glass-bg-primary, var(--surface));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--text-primary) 18%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  [data-pane-map-tile], [data-pane-map-dot-mark], [data-pane-map-resize-line] { transition: none; }
}

/*
   The look of every chart (tools/ui/show/chart): the first series wears the worn look's accent (--accent-primary), the
   others categorical series colours in a fixed, colour-blind-checked order
   (the dataviz reference palette, validated light and dark: worst adjacent CVD ΔE 9.1 / 8.4), reserved tones for a
   budget or a state, recessive grid and ticks, a tooltip card, and the motion (lines draw in over 600ms, bars grow from
   their baseline over 400ms with a stagger, changes morph over 300ms, all on ease-out-quint; none with reduced motion).
   Craft numbers: taken from a set of saved dashboards, social-media saves, Arc
   sites, shadcn charts MIT, Spectrum UI Apache-2.0, Mobbin Copilot Money / Framer usage, 21st Balance Chart).

   Also here: the look of pie, rings (radial), radar, tiles (treemap), ranked bars, bars and lines (composed), candlesticks,
   histogram and the step marks, and the five fills a placement can ask for (data-fill on .chart: gradient is the default,
   then solid, hatched, dotted, none, glow). Marks wear roles only: --series, --chart-tone-<tone>, and for candlesticks
   --chart-tone-rise / --chart-tone-fall (a theme may set them; they fall back to good / critical).

   Adapted from Spectrum UI (https://github.com/arihantcodes/spectrum-ui, Apache-2.0, commit acdc998c): registry/charts/candlestick-chart.tsx, radar-chart.tsx, radial-chart.tsx, pie-chart.tsx, histogram-chart.tsx, chart-kit.tsx (their fills, glow and wick/body styling);
   changes: plain CSS over the look's colour roles, no hex in marks, dark scheme and reduced motion handled, fitted to a 390px pane. */

.chart {
  --chart-series-1: var(--accent-primary, #2a78d6); --chart-series-2: #eb6834; --chart-series-3: #1baf7a; --chart-series-4: #eda100;
  --chart-series-5: #e87ba4; --chart-series-6: #008300; --chart-series-7: #4a3aa7; --chart-series-8: #e34948;
  --chart-tone-good: #0ca30c; --chart-tone-warning: #fab219; --chart-tone-critical: #d03b3b; --chart-tone-info: #2a78d6; --chart-tone-quiet: #b9b8b2;
  --chart-ink: var(--color-foreground, #111);
  --chart-muted: var(--color-muted-foreground, #6b6a66);
  --chart-grid: color-mix(in oklab, var(--color-foreground, #111) 8%, transparent);
  --chart-surface: var(--color-card, #fff);
  --chart-ease: var(--ease-enter);
  position: relative; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; width: 100%;
  border-radius: 0.75rem; outline: none; color: var(--chart-ink);
}
[data-look-scheme=dark] .chart {
  --chart-series-1: var(--accent-primary, #3987e5); --chart-series-2: #d95926; --chart-series-3: #199e70; --chart-series-4: #c98500;
  --chart-series-5: #d55181; --chart-series-6: #008300; --chart-series-7: #9085e9; --chart-series-8: #e66767;
  --chart-grid: color-mix(in oklab, var(--color-foreground, #eee) 10%, transparent);
}
.chart:focus-visible { box-shadow: 0 0 0 2px var(--color-ring, #8888); }

/* Heading: the chart's name, its number in the display face, a line under it; controls on the right. */
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; min-width: 0; }
.chart-head-words { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; }
.chart-title { margin: 0; font-size: 0.8125rem; font-weight: 600; color: var(--chart-muted); }
.chart-value { margin: 0; font-family: var(--font-display, ui-serif, Georgia, serif); font-size: 1.75rem; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; transition: opacity 120ms ease; }
.chart-detail { margin: 0; font-size: 0.8125rem; color: var(--chart-muted); font-variant-numeric: tabular-nums; }
.chart-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.125rem; flex-shrink: 0; }
.chart-step[aria-pressed="true"] { color: var(--chart-ink); font-weight: 600; }
.chart-step { color: var(--chart-muted); font-variant-numeric: tabular-nums; }
.chart[data-narrow="true"] .chart-head { flex-direction: column; }
.chart[data-narrow="true"] .chart-controls { justify-content: flex-start; margin-left: -0.5rem; }
.chart[data-narrow="true"] .chart-value { font-size: 1.5rem; }

/* The plot. */
.chart-plot { position: relative; width: 100%; }
.chart-svg { display: block; overflow: visible; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.chart-svg[data-presses="true"] { cursor: pointer; }
.chart-grid { stroke: var(--chart-grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart-zero { stroke: color-mix(in oklab, var(--chart-ink) 18%, transparent); }
.chart-tick { fill: var(--chart-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
/* A value label inside the plot sits over the marks with a ring of the card's colour, so a bar or line under it never cuts it. */
.chart-tick-backdrop { fill: var(--chart-surface); stroke: none; }
.chart[data-narrow="true"] .chart-tick { font-size: 10.5px; }

.chart-series { color: var(--series); }
.chart-line { fill: none; stroke: var(--series); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: chart-draw 600ms var(--chart-ease) both; transition: d 300ms var(--chart-ease); }
.chart-series[data-dashed="true"] .chart-line { stroke-dasharray: 4 4; stroke-width: 1.5; opacity: 0.6; animation: none; }
.chart[data-bare="true"] .chart-line { stroke-width: 1.5; }
.chart-area { stroke: none; transition: d 300ms var(--chart-ease); animation: chart-fade 600ms var(--chart-ease) both; }
.chart-over.chart-line { stroke: var(--chart-tone-critical); stroke-dasharray: none; animation: none; }
.chart-over.chart-area { fill: color-mix(in oklab, var(--chart-tone-critical) 14%, transparent); animation: none; }
.chart-dot { fill: var(--series); stroke: var(--chart-surface); stroke-width: 2; }
.chart-hover-dot { fill: var(--series); stroke: var(--chart-surface); stroke-width: 2; animation: chart-pop 120ms var(--chart-ease) both; transform-box: fill-box; transform-origin: center; }
.chart-crosshair { stroke: color-mix(in oklab, var(--chart-ink) 30%, transparent); stroke-width: 1; stroke-dasharray: 3 3; shape-rendering: crispEdges; }
.chart-mid { stroke: color-mix(in oklab, var(--chart-ink) 38%, transparent); stroke-width: 1; stroke-dasharray: 2 4; shape-rendering: crispEdges; pointer-events: none; }
.chart-tooltip-mid .chart-tooltip-value { color: color-mix(in oklab, var(--chart-ink) 70%, transparent); }
.chart-band { fill: color-mix(in oklab, var(--chart-ink) 6%, transparent); }

.chart-bar { fill: var(--series); transform-box: fill-box; transform-origin: 50% 100%; animation: chart-grow 400ms var(--chart-ease) both; transition: d 300ms var(--chart-ease), opacity 120ms ease; }
.chart-bar[data-dimmed="true"] { opacity: 0.45; }

/* A budget, a target, a limit: the true-value line stays in the plot; its full name sits below where bars cannot hide it. */
.chart-ref line { stroke: color-mix(in oklab, var(--chart-ink) 55%, transparent); stroke-width: 1; stroke-dasharray: 4 4; shape-rendering: crispEdges; }
.chart-ref[data-tone="critical"] line { stroke: var(--chart-tone-critical); }
.chart-ref[data-tone="good"] line { stroke: var(--chart-tone-good); }
.chart-reference-list { display: flex; flex-wrap: wrap; gap: 0.25rem 0.875rem; margin: 0; padding: 0; list-style: none; font-size: 0.75rem; color: var(--chart-muted); }
.chart-reference-row { display: inline-flex; align-items: center; gap: 0.375rem; min-width: 0; overflow-wrap: anywhere; }
.chart-reference-row strong { color: var(--chart-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart-reference-rule { flex: none; width: 1.125rem; border-top: 1px dashed color-mix(in oklab, var(--chart-ink) 55%, transparent); }
.chart-reference-row[data-tone="critical"] .chart-reference-rule { border-color: var(--chart-tone-critical); }
.chart-reference-row[data-tone="good"] .chart-reference-rule { border-color: var(--chart-tone-good); }
.chart-said { margin: 0; font-size: 0.75rem; color: var(--chart-muted); }

/* The tooltip card: the slot, each series with its swatch, the total, and how it stands against each line. */
.chart-tooltip {
  /* Floating surfaces own both their background and foreground; a dark plot can have a light popover. */
  --chart-ink: var(--color-popover-foreground, var(--color-card-foreground, #111));
  --chart-muted: color-mix(in oklab, var(--chart-ink) 70%, transparent);
  position: absolute; top: 0.25rem; z-index: 2; width: max-content; min-width: 8.5rem; max-width: 16rem; padding: 0.5rem 0.625rem;
  border: 1px solid color-mix(in oklab, var(--chart-ink) 10%, transparent); border-radius: 0.5rem;
  background: var(--color-popover, var(--chart-surface)); box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
  pointer-events: none; font-size: 0.75rem; animation: chart-fade 120ms ease both; transition: left 80ms var(--chart-ease);
}
.chart-tooltip[data-side="right"] { transform: translateX(12px); }
.chart-tooltip[data-side="left"] { transform: translateX(calc(-100% - 12px)); }
.chart-tooltip[data-pinned="true"] { left: auto; right: 0; transform: none; }
.chart-tooltip-head { margin: 0 0 0.25rem; font-weight: 600; color: var(--chart-ink); white-space: nowrap; }
.chart-tooltip-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.4rem; margin: 0.125rem 0 0; color: var(--chart-muted); }
.chart-tooltip-row:not(:has(.chart-swatch)) { grid-template-columns: minmax(0, 1fr) auto; }
.chart-tooltip-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-tooltip-value { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--chart-ink); text-align: right; }
.chart-tooltip-total { margin-top: 0.3rem; padding-top: 0.3rem; border-top: 1px solid color-mix(in oklab, var(--chart-ink) 8%, transparent); }
.chart-tooltip-total .chart-tooltip-label { color: var(--chart-ink); font-weight: 600; }
.chart-tooltip-against[data-over="true"] .chart-tooltip-value { color: var(--chart-tone-critical); }
/* A line's name (a budget) is read whole: it wraps rather than cut to a few letters. */
.chart-tooltip-against .chart-tooltip-label { white-space: normal; overflow: visible; }
.chart-swatch { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--series); }

.chart-legend { display: flex; flex-wrap: wrap; gap: 0.25rem 0.875rem; margin: 0; padding: 0; list-style: none; font-size: 0.75rem; color: var(--chart-muted); }
.chart-legend-row { display: inline-flex; align-items: center; gap: 0.375rem; min-width: 0; }
.chart-legend-row[data-dashed="true"] .chart-swatch { height: 2px; border-radius: 0; background: repeating-linear-gradient(90deg, var(--series) 0 3px, transparent 3px 5px); }
.chart[data-narrow="true"] .chart-legend { flex-wrap: wrap; }
.chart-readout { margin: 0; font-size: 0.75rem; color: var(--chart-muted); font-variant-numeric: tabular-nums; }
.chart-readout-bare { position: absolute; right: 0; top: -1.25rem; }
/* The one quiet line over a plot that names its numbers (O 182.1 H 184.0 L 181.2 C 183.5 +0.8%): the names stay quiet, the numbers wear the direction's role, and a derived line's number wears its line's colour. */
.chart-readings { display: flex; flex-wrap: wrap; gap: 0 0.75rem; margin: 0; font-size: 0.75rem; line-height: 1.5; color: var(--chart-muted); font-variant-numeric: tabular-nums; }
.chart-reading { display: inline-flex; gap: 0.25rem; white-space: nowrap; }
.chart-readings[data-tone="rise"] .chart-reading-value { color: var(--chart-tone-rise, var(--chart-tone-good)); }
.chart-readings[data-tone="fall"] .chart-reading-value { color: var(--chart-tone-fall, var(--chart-tone-critical)); }
.chart-reading-change[data-tone="rise"] { color: var(--chart-tone-rise, var(--chart-tone-good)); }
.chart-reading-change[data-tone="fall"] { color: var(--chart-tone-fall, var(--chart-tone-critical)); }
.chart-readings .chart-reading-line .chart-reading-value { color: var(--series); }
/* On a phone the line wraps onto a second line, every value whole, rather than scroll off or cut short. */
.chart[data-narrow="true"] .chart-readings { flex-wrap: wrap; row-gap: 0.125rem; }
.chart-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* A ring: slices with 2px gaps, the hovered one standing out, the others falling back; the centre says what is
   pointed at; the legend lists every slice with its value and share. */
.chart-donut { display: flex; align-items: center; justify-content: center; gap: 2.5rem; min-width: 0; }
.chart-donut[data-narrow="true"] { flex-direction: column; align-items: stretch; gap: 1rem; }
.chart-donut[data-narrow="true"] .chart-donut-figure { align-self: center; }
.chart-donut-figure { position: relative; flex: none; }
.chart-donut-ring { display: block; overflow: visible; animation: chart-spin-in 600ms var(--chart-ease) both; }
.chart-donut-track { fill: color-mix(in oklab, var(--chart-ink) 6%, transparent); }
.chart-slice { fill: var(--series); transition: d 160ms var(--chart-ease), opacity 120ms ease; cursor: default; }
.chart-slice[data-dimmed="true"] { opacity: 0.4; }
.chart-donut-centre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.125rem; padding: 22%; text-align: center; pointer-events: none; }
.chart-donut-caption { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.6875rem; font-weight: 600; color: var(--chart-muted); }
.chart-donut-value { font-family: var(--font-display, ui-serif, Georgia, serif); font-size: 1.5rem; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-donut-share { font-size: 0.75rem; color: var(--chart-muted); font-variant-numeric: tabular-nums; }
.chart-donut-legend { flex-direction: column; flex-wrap: nowrap; gap: 0; flex: 1 1 auto; min-width: 0; max-width: 28rem; }
.chart-donut-legend .chart-legend-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 2.75rem; gap: 0.5rem; padding: 0.375rem 0.25rem; border-top: 1px solid color-mix(in oklab, var(--chart-ink) 6%, transparent); border-radius: 0.25rem; }
.chart-donut-legend .chart-legend-row:first-child { border-top: 0; }
.chart-donut-legend .chart-legend-row[data-active="true"] { background: color-mix(in oklab, var(--chart-ink) 5%, transparent); }
.chart-legend-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--chart-ink); }
.chart-legend-value { font-family: var(--font-mono, ui-monospace, monospace); font-variant-numeric: tabular-nums; color: var(--chart-ink); text-align: right; }
.chart-legend-share { font-variant-numeric: tabular-nums; text-align: right; }

/* A heat map: one hue in five steps, thresholds spelled by the legend; a calendar of days scrolls, today on the right. */
.chart-heat { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.chart-heat-body { display: flex; align-items: flex-start; min-width: 0; }
.chart-heat-body > svg { flex-shrink: 0; }
.chart-heat-scroll { overflow-x: auto; scrollbar-width: thin; flex: 1; min-width: 0; }
/* Every heat map opens at its newest columns; older ones scroll in from the left. */
.chart-heat-scroll { direction: rtl; }
.chart-heat-scroll > svg { direction: ltr; display: block; margin-left: 0; margin-right: auto; }
.chart-cell { fill: color-mix(in oklab, var(--chart-ink) 6%, transparent); transition: fill 300ms var(--chart-ease); }
.chart-cell[data-step="1"], .chart-heat-key[data-step="1"] { fill: color-mix(in oklab, var(--chart-series-1) 25%, var(--chart-surface)); background: color-mix(in oklab, var(--chart-series-1) 25%, var(--chart-surface)); }
.chart-cell[data-step="2"], .chart-heat-key[data-step="2"] { fill: color-mix(in oklab, var(--chart-series-1) 48%, var(--chart-surface)); background: color-mix(in oklab, var(--chart-series-1) 48%, var(--chart-surface)); }
.chart-cell[data-step="3"], .chart-heat-key[data-step="3"] { fill: color-mix(in oklab, var(--chart-series-1) 72%, var(--chart-surface)); background: color-mix(in oklab, var(--chart-series-1) 72%, var(--chart-surface)); }
.chart-cell[data-step="4"], .chart-cell[data-step="5"], .chart-heat-key[data-step="4"] { fill: var(--chart-series-1); background: var(--chart-series-1); }
.chart-cell[data-hovered="true"] { stroke: var(--chart-ink); stroke-width: 1.5; }
.chart-cell-value { fill: var(--chart-ink); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
.chart-heat-legend { display: flex; align-items: center; justify-content: flex-end; gap: 3px; font-size: 0.6875rem; color: var(--chart-muted); }
.chart-heat-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: color-mix(in oklab, var(--chart-ink) 6%, transparent); }
.chart-heat-legend > span:first-child { margin-right: 4px; }
.chart-heat-legend > span:last-child { margin-left: 4px; }

/* Radial rings (one arc per slot, a 270-degree sweep) reuse the ring classes above; a pie is a ring with no track and no centre. */
.chart-radial .chart-donut-track { fill: color-mix(in oklab, var(--chart-ink) 5%, transparent); }
.chart-donut[data-shape="pie"] .chart-slice { stroke: var(--chart-surface); stroke-width: 1px; }

/* Radar: rings and spokes recede, each series is a translucent shape with its points; the hovered spoke's name stands out. */
.chart-radar { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; min-width: 0; }
.chart-radar-web { display: block; max-width: 100%; height: auto; overflow: visible; }
.chart-radar-ring { fill: none; stroke: var(--chart-grid); stroke-width: 1; }
.chart-radar-ring:last-of-type { fill: color-mix(in oklab, var(--chart-ink) 2.5%, transparent); }
.chart-radar-spoke { stroke: var(--chart-grid); stroke-width: 1; }
.chart-radar-label { font-size: 11px; }
g[data-active="true"] > .chart-radar-label { fill: var(--chart-ink); font-weight: 600; }
.chart-radar-area { fill: color-mix(in oklab, var(--series) 22%, transparent); stroke: var(--series); stroke-width: 2; stroke-linejoin: round; animation: chart-fade 600ms var(--chart-ease) both; transition: d 300ms var(--chart-ease); }
.chart-radar-shape[data-dashed="true"] .chart-radar-area { stroke-dasharray: 4 4; stroke-width: 1.5; }
.chart-radar-point { stroke-width: 1.5; transition: r 120ms var(--chart-ease); }
.chart-radar-legend { justify-content: center; }
.chart[data-narrow="true"] .chart-radar-label { font-size: 10px; }

/* Tiles (treemap): area is the reading; a gap of the card's colour between tiles; the name and number sit on the tile with a halo so any colour reads. */
.chart-treemap { min-width: 0; }
.chart-treemap > svg { display: block; max-width: 100%; height: auto; }
.chart-tile { transition: opacity 120ms ease; cursor: default; }
.chart-tile[data-dimmed="true"] { opacity: 0.45; }
.chart-tile-fill { fill: color-mix(in oklab, var(--series) 82%, var(--chart-surface)); stroke: var(--chart-surface); stroke-width: 2px; transition: fill 160ms var(--chart-ease); animation: chart-fade 400ms var(--chart-ease) both; }
.chart-tile[data-hovered="true"] .chart-tile-fill { fill: var(--series); }
.chart-tile-label, .chart-tile-value { fill: #fff; paint-order: stroke; stroke: color-mix(in oklab, var(--series) 45%, #000); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; font-variant-numeric: tabular-nums; }
.chart-tile-label { font-size: 12px; font-weight: 600; }
.chart-tile-value { font-size: 11px; font-weight: 500; }
.chart[data-narrow="true"] .chart-tile-label { font-size: 11px; }
[data-look-scheme=dark] .chart-tile-fill { fill: color-mix(in oklab, var(--series) 70%, var(--chart-surface)); }

/* Ranked bars: the name, a track with the bar from its edge, the number. Two series draw as a pair either side of the name. */
.chart-ranked { display: flex; flex-direction: column; gap: 0.25rem; margin: 0; padding: 0; list-style: none; min-width: 0; }
.chart-ranked-row { display: grid; grid-template-columns: minmax(4rem, 30%) minmax(0, 1fr) auto; align-items: center; gap: 0.625rem; padding: 0.25rem 0.25rem; border-radius: 0.375rem; font-size: 0.8125rem; transition: opacity 120ms ease, background 120ms ease; }
.chart-ranked[data-pair="true"] .chart-ranked-row { grid-template-columns: minmax(4rem, 24%) minmax(0, 1fr) auto auto; }
.chart-ranked-row[data-active="true"] { background: color-mix(in oklab, var(--chart-ink) 5%, transparent); }
.chart-ranked-row[data-dimmed="true"] { opacity: 0.5; }
.chart-ranked-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--chart-ink); }
.chart-ranked-track { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; height: 0.75rem; border-radius: 0.375rem; background: color-mix(in oklab, var(--chart-ink) 5%, transparent); overflow: hidden; }
.chart-ranked[data-pair="true"] .chart-ranked-track { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.chart-ranked-fill { display: block; height: 100%; border-radius: 0.375rem; background: var(--series); transition: width 300ms var(--chart-ease); }
.chart-ranked-fill[data-side="left"] { justify-self: end; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.chart-ranked-fill[data-side="right"] { justify-self: start; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.chart-ranked-value { font-family: var(--font-mono, ui-monospace, monospace); font-variant-numeric: tabular-nums; color: var(--chart-ink); text-align: right; }
.chart-ranked[data-behind="true"] .chart-ranked-row { position: relative; grid-template-columns: minmax(0, 1fr) auto auto; isolation: isolate; }
.chart-ranked[data-behind="true"] .chart-ranked-label { color: var(--series, var(--chart-ink)); font-family: var(--font-mono, ui-monospace, monospace); font-variant-numeric: tabular-nums; }
.chart-ranked[data-behind="true"] .chart-ranked-track { position: absolute; inset: 0; z-index: -1; height: auto; border-radius: inherit; background: none; pointer-events: none; }
.chart-ranked[data-behind="true"] .chart-ranked-fill { justify-self: end; border-radius: inherit; background: color-mix(in oklab, var(--series) 18%, transparent); }
.chart-ranked[data-behind="true"] .chart-ranked-total { min-width: 4.5rem; color: color-mix(in oklab, var(--chart-ink) 70%, transparent); }
.chart[data-narrow="true"] .chart-ranked-row { grid-template-columns: minmax(3.5rem, 34%) minmax(0, 1fr) auto; gap: 0.5rem; }
.chart[data-narrow="true"] .chart-ranked[data-pair="true"] .chart-ranked-row { grid-template-columns: minmax(3.5rem, 28%) minmax(0, 1fr) auto auto; }

/* Candlesticks: a wick from the low to the high, a body from the open to the close; rising and falling wear their own tones. */
.chart-candle { --candle: var(--chart-tone-rise, var(--chart-tone-good)); transition: opacity 120ms ease; animation: chart-fade 400ms var(--chart-ease) both; }
.chart-candle[data-direction="fall"] { --candle: var(--chart-tone-fall, var(--chart-tone-critical)); }
.chart-candle[data-dimmed="true"] { opacity: 0.45; }
.chart-wick { stroke: var(--candle); stroke-width: 1.5; stroke-linecap: round; shape-rendering: geometricPrecision; }
.chart-candle-body { fill: var(--candle); stroke: var(--candle); stroke-width: 1; }
.chart-candle[data-hovered="true"] .chart-candle-body { stroke-width: 2; }

/* Histogram: bars that touch, one per range; the same bar look, so the fills apply. */
.chart-bin { transform-origin: 50% 100%; }

/* Stock-chart interaction. The guides follow the pointer: a thin vertical and horizontal line, the horizontal one's value
   tag on the axis edge in the same quiet roles as the tick words. They never take the pointer from the plot beneath. */
.chart-guide, .chart-crosshair { pointer-events: none; }
.chart-crosshair-h { stroke-dasharray: 3 3; }
.chart-crosshair-tag { fill: var(--chart-ink); }
.chart-crosshair-tag-text { fill: var(--chart-surface); font-size: 11px; font-variant-numeric: tabular-nums; font-family: var(--font-mono, ui-monospace, monospace); }

/* The low strip under a price (volume): short bars on a scale of their own, rising and falling in the candle's tones, quieter than the marks above. */
.chart-pane-bar { --pane: var(--chart-tone-rise, var(--chart-tone-good)); fill: color-mix(in oklab, var(--pane) 42%, transparent); transform-box: fill-box; transform-origin: 50% 100%; animation: chart-grow 400ms var(--chart-ease) both; transition: opacity 120ms ease, fill 120ms ease; }
.chart-pane-bar[data-direction="fall"] { --pane: var(--chart-tone-fall, var(--chart-tone-critical)); }
.chart-pane-bar[data-hovered="true"] { fill: var(--pane); }
.chart-pane-bar[data-dimmed="true"] { opacity: 0.45; }
.chart[data-fill="none"] .chart-pane-bar { fill: transparent; stroke: var(--pane); stroke-width: 1; }

/* Each pane (volume) is its own strip under the plot, set apart from the marks above by one hairline. */
.chart-pane-rule { stroke: var(--chart-grid, currentColor); stroke-opacity: 0.35; stroke-width: 1; shape-rendering: crispEdges; }

/* The range choice (1W, 1M, 3M, 1Y, All) is the shared segmented control, made small to sit beside the bucket steps. */
.chart-ranges { height: 1.5rem; padding: 0.125rem; gap: 0.125rem; border-radius: 999px; font-size: 0.6875rem; font-variant-numeric: tabular-nums; }
.chart-ranges [role="radio"] { border-radius: 999px; padding-inline: 0.5rem; }
.chart[data-narrow="true"] .chart-ranges { max-width: 100%; overflow-x: auto; scrollbar-width: none; }

/* A line worked out from another (a moving average) is a switch in the legend; off, it dims and the swatch goes hollow. */
.chart-legend-toggle { gap: 0.375rem; padding-inline: 0.25rem; font-size: inherit; color: inherit; font-weight: 400; }
.chart-legend-toggle[aria-pressed="true"] { color: var(--chart-ink); }
.chart-legend-row[data-hidden="true"] .chart-legend-toggle { color: var(--chart-muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.chart-legend-row[data-hidden="true"] .chart-swatch { background: transparent; box-shadow: inset 0 0 0 1.5px var(--series); opacity: 0.6; }
.chart-legend-row[data-hidden="true"][data-dashed="true"] .chart-swatch { box-shadow: none; background: repeating-linear-gradient(90deg, var(--series) 0 3px, transparent 3px 5px); opacity: 0.4; }

/* The fills a placement can ask for (data-fill on the chart). Gradient is the default and needs nothing here. */
.chart[data-fill="solid"] .chart-area { fill: color-mix(in oklab, var(--series) 32%, transparent); }
.chart[data-fill="solid"] .chart-radar-area { fill: color-mix(in oklab, var(--series) 45%, transparent); }
.chart[data-fill="hatched"] :is(.chart-area, .chart-bar, .chart-slice, .chart-tile-fill, .chart-candle-body, .chart-radar-area) { fill: var(--fill-hatched, var(--series)); }
.chart[data-fill="hatched"] .chart-ranked-fill { background: repeating-linear-gradient(135deg, var(--series) 0 2px, color-mix(in oklab, var(--series) 22%, transparent) 2px 6px); }
.chart[data-fill="dotted"] :is(.chart-area, .chart-bar, .chart-slice, .chart-tile-fill, .chart-candle-body, .chart-radar-area) { fill: var(--fill-dotted, var(--series)); }
.chart[data-fill="dotted"] .chart-ranked-fill { background: radial-gradient(circle, var(--series) 0 1.2px, transparent 1.6px) 0 0 / 6px 6px, color-mix(in oklab, var(--series) 14%, transparent); }
.chart[data-fill="none"] :is(.chart-area, .chart-radar-area) { fill: none; }
.chart[data-fill="none"] :is(.chart-bar, .chart-slice, .chart-tile-fill) { fill: color-mix(in oklab, var(--series) 8%, transparent); stroke: var(--series); stroke-width: 1.5; }
.chart[data-fill="none"] .chart-candle-body { fill: transparent; }
.chart[data-fill="none"] .chart-ranked-fill { background: color-mix(in oklab, var(--series) 8%, transparent); box-shadow: inset 0 0 0 1.5px var(--series); }
.chart[data-fill="none"] :is(.chart-tile-label, .chart-tile-value) { fill: var(--chart-ink); stroke: var(--chart-surface); }
.chart[data-fill="glow"] :is(.chart-line, .chart-bar, .chart-slice, .chart-radar-area, .chart-dot, .chart-hover-dot) { filter: drop-shadow(0 0 5px color-mix(in oklab, var(--series) 55%, transparent)); }
.chart[data-fill="glow"] .chart-candle { filter: drop-shadow(0 0 4px color-mix(in oklab, var(--candle) 55%, transparent)); }
.chart[data-fill="glow"] .chart-ranked-fill { box-shadow: 0 0 8px color-mix(in oklab, var(--series) 55%, transparent); }
[data-look-scheme=dark] .chart[data-fill="glow"] :is(.chart-line, .chart-bar, .chart-slice, .chart-radar-area, .chart-dot, .chart-hover-dot) { filter: drop-shadow(0 0 7px color-mix(in oklab, var(--series) 70%, transparent)); }

/* Nothing counted, loading or unread: the frame stays, three faint gridlines, one sentence or a shimmer sweeping. */
.chart-state { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 0.5rem; }
.chart-state-grid { position: absolute; inset: 1rem 0 1.5rem; display: flex; flex-direction: column; justify-content: space-between; }
.chart-state-grid > span { display: block; height: 1px; background: var(--chart-grid); }
/* The words sit on the card's own colour, so the quiet grid behind them stops at the words instead of crossing them. */
.chart-state-words { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; max-width: 22rem; padding: 0.5rem 1rem; text-align: center; background: var(--chart-surface); border-radius: 0.5rem; box-shadow: 0 0 0 0.5rem var(--chart-surface); }
.chart-state-title { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--chart-ink); }
.chart-state-description { margin: 0; font-size: 0.8125rem; color: var(--chart-muted); }
.chart-state[data-state="error"] .chart-state-title { color: var(--chart-muted); }
.chart-shimmer { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, color-mix(in oklab, var(--chart-ink) 6%, transparent) 50%, transparent 100%); background-size: 50% 100%; background-repeat: no-repeat; animation: chart-shimmer 1.2s linear infinite; }

/* A list drawn as a chart (the Chart view every list offers). */
.chart-view { padding: 0.75rem 0.25rem 1rem; }

/* Several charts together: wide ones span the row, others share it by width (container query on the grid itself). */
.chart-cards { container: chart-cards / inline-size; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.chart-card { --chart-surface: var(--color-card, #fff); min-width: 0; padding: 1rem 1rem 0.875rem; border: 1px solid var(--color-border, #e7e5e0); border-radius: 0.875rem; background: var(--chart-surface); }
@container chart-cards (min-width: 44rem) { .chart-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .chart-card[data-wide="true"] { grid-column: 1 / -1; } }
@container chart-cards (min-width: 72rem) { .chart-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .chart-card[data-wide="true"] { grid-column: span 2; } }

@keyframes chart-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes chart-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes chart-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes chart-pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes chart-spin-in { from { transform: rotate(-90deg) scale(0.92); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes chart-shimmer { from { background-position: -50% 0; } to { background-position: 150% 0; } }
@media (prefers-reduced-motion: reduce) {
  .chart *, .chart *::before, .chart *::after { animation: none !important; transition: none !important; }
}

/* A record set with charts over its list (record-views/record-set.tsx): the charts, then the list at a usable height. */
.record-set-charts { flex: none; padding: 1rem 1rem 0.25rem; }
.record-set-list-under-charts { display: flex; flex-direction: column; flex: none; min-width: 0; height: min(40rem, 85vh); min-height: 24rem; }

/* A baseline (a portfolio's start): one quiet dashed line, the area under it in the fall tone, the area over it keeping the series colour. */
.chart-baseline { stroke: var(--chart-grid, currentColor); stroke-opacity: 0.7; stroke-width: 1; stroke-dasharray: 3 4; shape-rendering: crispEdges; }
.chart-series[data-baselined] .chart-line:not(.chart-over) { stroke: var(--base-stroke); }

/* The change under each range (TradingView): the second line of a choice, toned by what it says. */
.chart-ranges[data-noted="true"] { height: 2.25rem; }
.chart-ranges [data-segmented-note] { font-size: 0.625rem; font-weight: 600; color: var(--chart-muted); }
.chart-ranges [data-note-tone="rise"] { color: var(--chart-tone-rise, var(--chart-tone-good)); }
.chart-ranges [data-note-tone="fall"] { color: var(--chart-tone-fall, var(--chart-tone-critical)); }
.chart-ranges[data-noted="true"] [role="radio"] { padding-block: 0.125rem; }

/*
   The look of the region map (tools/ui/show/region-map): one drawing of named regions. Regions wear roles only: the
   worn look's accent (--accent-primary) mixed into the card surface in five steps (--region-heat-0 palest to
   --region-heat-4 strongest), a quiet empty fill for a region with no reading, the foreground as outline, and the look's
   focus ring. Heat arrives as data-heat="0".."4" or "empty", the picked region as data-picked, so no colour is ever set
   inline and a theme can retune the five steps by setting the roles. Reduced motion drops the colour transition. */

.region-map {
  --region-surface: var(--color-card, #fff);
  --region-ink: var(--color-foreground, #111);
  --region-heat-0: color-mix(in oklab, var(--accent-primary, #2a78d6) 12%, var(--region-surface));
  --region-heat-1: color-mix(in oklab, var(--accent-primary, #2a78d6) 30%, var(--region-surface));
  --region-heat-2: color-mix(in oklab, var(--accent-primary, #2a78d6) 50%, var(--region-surface));
  --region-heat-3: color-mix(in oklab, var(--accent-primary, #2a78d6) 72%, var(--region-surface));
  --region-heat-4: color-mix(in oklab, var(--accent-primary, #2a78d6) 92%, var(--region-surface));
  --region-empty: color-mix(in oklab, var(--region-ink) 6%, var(--region-surface));
  display: block; width: 100%; height: 100%;
}
.region-map-region {
  fill: var(--region-empty); stroke: color-mix(in oklab, var(--region-ink) 30%, transparent); stroke-width: 1;
  cursor: pointer; outline: none; transition: fill 160ms var(--ease-enter, ease-out);
}
.region-map-region[data-heat="0"] { fill: var(--region-heat-0); }
.region-map-region[data-heat="1"] { fill: var(--region-heat-1); }
.region-map-region[data-heat="2"] { fill: var(--region-heat-2); }
.region-map-region[data-heat="3"] { fill: var(--region-heat-3); }
.region-map-region[data-heat="4"] { fill: var(--region-heat-4); }
.region-map-region:hover { stroke: var(--region-ink); }
.region-map-region[data-picked="true"] { stroke: var(--region-ink); stroke-width: 2.5; }
.region-map-region:focus-visible { stroke: var(--color-ring, var(--accent-primary, #2a78d6)); stroke-width: 3; }
@media (prefers-reduced-motion: reduce) { .region-map-region { transition: none; } }

/* The view that draws a list on a map: the drawing fills the pane, one line under it reads the picked region. */
.region-map-view { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; min-width: 0; padding: 1rem; color: var(--color-foreground, #111); }
.region-map-view .region-map { max-width: 28rem; height: auto; max-height: 60vh; }
.region-map-readout { margin: 0; font-size: 0.875rem; color: var(--color-muted-foreground, #6b6a66); text-align: center; }

/*
   The look of the shared dashboard (ui/show/dashboard/Dashboard.tsx), after 21st.dev's "App Dashboard Layout": a
   greeting, the one next step as a strip, a row of stat cards with their lines, then a grid of cards (a wide chart,
   lists that answer in place, a feed, a gallery of things with their pictures after Descript's Recents). Colors and
   faces are the page's own tokens. */

.dashboard, .dashboard-piece { container: dashboard / inline-size; --dash-good: #16865c; --dash-bad: #d97706; --dash-gap: 1rem; }
/* One part of a dashboard drawn alone, as a piece of a board: its head, its numbers or one card, filling the piece. */
.dashboard-piece { display: flex; flex-direction: column; gap: var(--dash-gap); height: 100%; }
.dashboard-piece > .dashboard-card { flex: 1 1 auto; }
/* A piece that is only words (the greeting) keeps the cards' own inset from the pane's edges, so its words never touch
   or run under the pane's curved edge, which cards keep with their padding. */
.dashboard-piece > .dashboard-head { padding: 1.25rem 1.125rem 0.25rem; }
.dashboard { display: flex; flex-direction: column; gap: var(--dash-gap); max-width: 76rem; margin: 0 auto; padding: 2rem 1.5rem 3rem; }
.dashboard-head { display: flex; flex-direction: column; gap: 0.35rem; }
.dashboard-greeting { margin: 0; font-family: var(--font-display, ui-serif, Georgia, serif); font-size: 2rem; line-height: 1.15; font-weight: 600; }
.dashboard-summary { margin: 0; color: var(--color-muted-foreground, #666); font-size: 0.9375rem; }
/* Counts under the greeting: small tiles, number over words, in the card's own radius family; they wrap at any width. */
.dashboard-glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: 0.5rem; margin-top: 0.4rem; }
.dashboard-glance-tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.1rem; min-width: 0; height: auto; padding: 0.55rem 0.75rem; border: 1px solid var(--color-border, #e5e5e5); border-radius: var(--radius-control, 0.625rem); background: var(--color-card, #fff); text-align: left; white-space: normal; }
button.dashboard-glance-tile:hover { background: var(--color-accent, #f4f4f5); }
.dashboard-glance-value { font-family: var(--font-display, ui-serif, Georgia, serif); font-size: 1.375rem; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--color-foreground, #111); }
.dashboard-glance-value[data-tone="attention"] { color: var(--dash-bad, #c2410c); }
.dashboard-glance-label { overflow: hidden; max-width: 100%; color: var(--color-muted-foreground, #666); font-size: 0.75rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }

.dashboard-next { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.875rem 1rem; border: 1px solid var(--color-border, #e5e5e5); border-radius: 0.75rem; background: var(--color-card, #fff); }
.dashboard-next[data-asks="true"] { cursor: pointer; }
.dashboard-next-title { margin: 0; font-weight: 600; font-size: 0.9375rem; }

.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: var(--dash-gap); }
.dashboard-stat { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; padding: 1rem 1rem 0.75rem; border: 1px solid var(--color-border, #e5e5e5); border-radius: 0.75rem; background: var(--color-card, #fff); }
.dashboard-stat-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 1.5rem; }
.dashboard-stat-label { margin: 0; color: var(--color-muted-foreground, #666); font-size: 0.8125rem; }
.dashboard-stat-value { margin: 0; font-family: var(--font-display, ui-serif, Georgia, serif); font-size: 1.75rem; line-height: 1.15; font-weight: 600; font-variant-numeric: tabular-nums; }
.dashboard-stat-detail { margin: 0; font-size: 0.8125rem; color: var(--color-muted-foreground, #666); }
.dashboard-stat[data-tone="success"] .dashboard-stat-detail { color: var(--dash-good); }
.dashboard-stat[data-tone="error"] .dashboard-stat-detail { color: var(--dash-bad); }
.dashboard-stat-line { margin-top: 0.5rem; --chart-tone-good: var(--dash-good); --chart-tone-warning: var(--dash-bad); }
.dashboard-chart .chart { --chart-tone-good: var(--dash-good); --chart-tone-warning: var(--dash-bad); }

.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--dash-gap); align-items: start; }
.dashboard-card { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; padding: 1.125rem 1.125rem 1rem; border: 1px solid var(--color-border, #e5e5e5); border-radius: 0.875rem; background: var(--color-card, #fff); }
.dashboard-card[data-wide="true"] { grid-column: span 2; }
.dashboard-card[data-wide="full"] { grid-column: 1 / -1; }
.dashboard-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.dashboard-card-title { margin: 0; font-size: 1rem; font-weight: 600; }
.dashboard-card-description { margin: 0.2rem 0 0; color: var(--color-muted-foreground, #666); font-size: 0.8125rem; }
.dashboard-empty { margin: 0; color: var(--color-muted-foreground, #666); font-size: 0.875rem; }
.dashboard-card-empty { border: 1px dashed var(--color-border, #e5e5e5); border-radius: 0.75rem; }

/* A gallery: one row of pictures that scrolls sideways, each tile its still, its name, who made it and when. */
.dashboard-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(11.5rem, 13.5rem); gap: 0.875rem; margin: 0; padding: 0 0 0.25rem; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.dashboard-tile-item { min-width: 0; scroll-snap-align: start; }
.dashboard-tile-item > [data-slot] { display: block; }
.dashboard-tile { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; border-radius: 0.75rem; outline: none; }
.dashboard-tile[role="link"] { cursor: pointer; }
.dashboard-tile-picture { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--color-border, #e5e5e5); border-radius: 0.75rem; background: var(--color-muted, #f4f4f5); transition: border-color 120ms ease, box-shadow 120ms ease; }
.dashboard-tile-picture > * { width: 100%; height: 100%; }
.dashboard-tile[role="link"]:hover .dashboard-tile-picture { border-color: color-mix(in oklab, var(--color-ring, #888) 45%, transparent); box-shadow: 0 4px 14px rgb(0 0 0 / 0.06); }
.dashboard-tile:focus-visible .dashboard-tile-picture { box-shadow: 0 0 0 2px var(--color-ring, #888); }
.dashboard-tile-heading { display: flex; align-items: center; gap: 0.375rem; min-width: 0; }
.dashboard-tile-badge { flex: none; }
.dashboard-tile-title { min-width: 0; margin: 0; font-size: 0.8125rem; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-tile-meta { display: flex; align-items: center; gap: 0.375rem; min-width: 0; font-size: 0.75rem; color: var(--color-muted-foreground, #666); }
.dashboard-tile-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-tile-when { margin-left: auto; white-space: nowrap; color: var(--color-muted-foreground, #888); }
@media (prefers-reduced-motion: reduce) { .dashboard-tile-picture { transition: none; } }

.dashboard-chart { display: flex; flex-direction: column; gap: 0.2rem; }

.dashboard-rows { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.dashboard-row-item { border-top: 1px solid var(--color-border, #eee); }
.dashboard-row-item:first-child { border-top: 0; }
.dashboard-row-item > [role="button"] { display: block; }
.dashboard-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.625rem 0.25rem; border-radius: 0.5rem; }
.dashboard-row[data-asks="true"] { cursor: pointer; }
.dashboard-row[data-asks="true"]:hover { background: var(--color-accent, rgba(0, 0, 0, 0.035)); }
.dashboard-row-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }

.dashboard-row-detail { margin: 0; font-size: 0.8125rem; color: var(--color-muted-foreground, #666); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.dashboard-feed { display: flex; flex-direction: column; gap: 0.875rem; margin: 0; padding: 0; list-style: none; }
.dashboard-feed-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 0.625rem; }
.dashboard-feed-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.dashboard-feed-title { margin: 0; font-size: 0.8125rem; line-height: 1.35; }
.dashboard-feed-who { font-weight: 600; }
.dashboard-feed-detail { margin: 0; font-size: 0.75rem; color: var(--color-muted-foreground, #666); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-feed-item[data-tone="bad"] .dashboard-feed-detail { color: var(--dash-bad); }
.dashboard-feed-when { font-size: 0.75rem; color: var(--color-muted-foreground, #888); white-space: nowrap; }

@container (max-width: 60rem) { .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 40rem) { .dashboard-grid { grid-template-columns: minmax(0, 1fr); } .dashboard-card[data-wide="true"] { grid-column: auto; } }
@media (max-width: 60rem) { .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .dashboard-grid { grid-template-columns: minmax(0, 1fr); } .dashboard-card[data-wide="true"] { grid-column: auto; } }

/* A card's head holds its form button beside its "more" button. */
.dashboard-card-head-actions { display: flex; align-items: center; gap: 0.375rem; flex-shrink: 0; }

/* A spotlight card: one thing shown large, its stages joined by the accent thread (Dashboard.tsx invariant 7). */
.dashboard-card[data-kind="spotlight"] { gap: 0.875rem; padding: 1.375rem 1.375rem 1.25rem; border-color: color-mix(in oklab, var(--color-primary, #111) 45%, transparent); background: linear-gradient(135deg, color-mix(in oklab, var(--color-primary, #111) 14%, var(--color-card, #fff)), var(--color-card, #fff) 70%); }
.dashboard-card[data-kind="spotlight"] .dashboard-card-title { color: var(--color-primary, #111); font-size: 0.6875rem; font-weight: 700; }
.dashboard-spotlight { display: flex; flex-direction: column; gap: 0.875rem; }
.dashboard-spotlight-headline { margin: 0; font-size: 1.5rem; line-height: 1.25; font-weight: 650; text-wrap: balance; }
.dashboard-spotlight-thread { display: flex; flex-direction: column; gap: 0.75rem; margin: 0; padding: 0 0 0 1.25rem; list-style: none; border-left: 1px solid var(--color-primary, #111); }
.dashboard-spotlight-stage { position: relative; }
.dashboard-spotlight-stage::before { content: ""; position: absolute; left: calc(-1.25rem - 5.5px); top: 0.2rem; width: 10px; height: 10px; border-radius: 999px; background: var(--color-muted-foreground, #666); }
.dashboard-spotlight-stage[data-tone="accent"]::before { background: var(--color-primary, #111); }
.dashboard-spotlight-stage-label { margin: 0; color: var(--color-muted-foreground, #666); font-size: 0.6875rem; font-weight: 700; }
.dashboard-spotlight-stage[data-tone="accent"] .dashboard-spotlight-stage-label { color: var(--color-primary, #111); }
.dashboard-spotlight-stage-text { margin: 0.15rem 0 0; font-size: 0.9375rem; }
.dashboard-spotlight-detail { margin: 0; color: var(--color-muted-foreground, #666); font-size: 0.875rem; }
.dashboard-spotlight-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* A narrow dashboard (a phone, or a thin pane) puts the next step's button under its words instead of squeezing the
   title to a word per line; it measures the dashboard itself, not the window. */
@container dashboard (max-width: 30rem) {
  .dashboard-next { flex-direction: column; align-items: stretch; }
  .dashboard-next > :last-child { align-self: flex-start; }
}
/* In a narrow pane (a phone, a thin pane, a host app's small window) the dashboard gives its width to the work: a thin
   edge instead of the wide page margins, a smaller greeting and tighter gaps; it measures the pane, not the window. */
@container pane (max-width: 30rem) {
  .dashboard { padding: 0.75rem 0.75rem 1.25rem; --dash-gap: 0.625rem; }
  .dashboard-greeting { font-size: 1.5rem; }
}

/*
   The look of the shared attention stack (ui/show/attention-stack/AttentionStack.tsx): what only the person can do,
   drawn louder than anything else on the screen. After Deel's "For you today" and 21st.dev's "Alert with Action
   Buttons": a big count, groups each headed by an icon, a title and a solid count badge, and the shared button per
   thing. Colours and faces are the page's own tokens; the whole card is tinted in the page's attention colour (never an edge bar). It reflows from a
   phone-width pane up by its own width (a container query), never the window's. */

.attention-stack { container: attention / inline-size; display: flex; flex-direction: column; gap: 0.75rem; padding: 1rem 1.125rem; border: 1px solid color-mix(in oklab, var(--color-destructive, #dc2626) 28%, var(--color-border, #e5e5e5)); border-radius: 0.875rem; background: color-mix(in oklab, var(--color-destructive, #dc2626) 4%, var(--color-card, #fff)); }
.attention-head { display: flex; align-items: baseline; gap: 0.6rem; }
.attention-total { font-family: var(--font-display, ui-serif, Georgia, serif); font-size: 2.25rem; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--color-destructive, #dc2626); }
.attention-title { font-size: 1.125rem; font-weight: 600; line-height: 1.25; color: var(--color-foreground, #111); }
/* The press that goes through everything waiting, one thing at a time: at the end of the count's row. */
.attention-go { margin-left: auto; align-self: center; flex: none; }

.attention-group { display: flex; flex-direction: column; gap: 0.35rem; padding-top: 0.6rem; border-top: 1px solid var(--color-border, #e5e5e5); }
.attention-group-notice { margin: 0; color: var(--color-muted-foreground); font-size: .875rem; line-height: 1.45; }
.attention-group-head { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.attention-group-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 0.5rem; background: var(--color-muted, #f4f4f5); color: var(--color-foreground, #111); }
.attention-group-icon svg { width: 1rem; height: 1rem; }
.attention-group-title { min-width: 0; font-size: 0.9375rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attention-count { flex: none; font-variant-numeric: tabular-nums; }
.attention-group-all { margin-left: auto; flex: none; }

.attention-things { display: flex; flex-direction: column; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.attention-thing { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.35rem 0.75rem; padding: 0.5rem 0.25rem 0.5rem 2.25rem; border-radius: 0.5rem; }
.attention-thing:hover { background: var(--color-accent, #f4f4f5); }
.attention-thing[data-has-clip="true"] { grid-template-columns: minmax(0, 1fr) minmax(10rem, 16rem) auto; }
.attention-thing-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.attention-thing-title { display: flex; align-items: baseline; gap: 0.4rem; min-width: 0; font-size: 0.875rem; font-weight: 500; overflow-wrap: anywhere; }
.attention-thing-meta { flex: none; color: var(--color-muted-foreground, #666); font-size: 0.75rem; font-weight: 400; }
.attention-thing-detail { color: var(--color-muted-foreground, #666); font-size: 0.8125rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.attention-thing-clip { min-width: 0; }
.attention-do { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; }
.attention-do-button { min-width: 5.5rem; }
/* The form trigger wears the shared button's own face (coss buttonVariants), so it matches the button beside it. */
.attention-do-form { cursor: pointer; white-space: nowrap; }
.attention-refusal { max-width: 16rem; color: var(--color-destructive, #dc2626); font-size: 0.75rem; text-align: right; }
.attention-more { align-self: flex-start; margin-left: 2rem; }

/* A narrow pane: the button goes under the words at full width, the sound player under them too. */
@container attention (max-width: 34rem) {
  .attention-stack { padding: 0.875rem; }
  .attention-total { font-size: 1.875rem; }
  .attention-thing, .attention-thing[data-has-clip="true"] { grid-template-columns: minmax(0, 1fr); padding-left: 0.25rem; }
  .attention-do { align-items: stretch; }
  .attention-do-button, .attention-do-form { width: 100%; }
  .attention-refusal { max-width: none; text-align: left; }
  .attention-more { margin-left: 0; }
}

/*
   The look of the shared one-at-a-time queue (ui/show/one-at-a-time-queue/OneAtATimeQueue.tsx): one focused column with
   where the person is ("3 of 214"), then one card with the deck's next two edges showing behind it (Deepstash's
   onboarding deck), the one way to finish it as the loudest thing on the card, compact context beneath it, and the moves
   (Back, Open, Later) along the bottom. The next card slides in from the
   side it comes from; reduced motion turns the slide off. Colours and faces are the page's own tokens; it reflows by
   its own width (a container query), never the window's. */

/* Keep the incoming card's translated edge out of the page's scroll width during its short transition. */
.queue { container: queue / inline-size; display: flex; flex-direction: column; gap: 1rem; width: 100%; max-width: 42rem; margin: 0 auto; padding: 1.25rem 1rem 2rem; box-sizing: border-box; overflow-x: clip; }
.queue-head, .queue-card-top, .queue-moves { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.queue h1, .queue h2, .queue p, .queue dl, .queue dd { margin: 0; }
.queue-title { flex: 1; font-size: 1.0625rem; font-weight: 600; }
.queue-position, .queue-card-meta { color: var(--color-muted-foreground); font-size: .875rem; font-variant-numeric: tabular-nums; }

/* The deck: the card in front, and up to two edges of the cards after it peeking out below. */
.queue-deck { position: relative; padding-bottom: .75rem; }
.queue-deck::before, .queue-deck::after { content: ""; position: absolute; left: 1.5rem; right: 1.5rem; bottom: .375rem; height: 2rem; border: 1px solid var(--color-border); border-radius: 1.125rem; background: var(--color-card); opacity: 0; }
.queue-deck::after { left: 3rem; right: 3rem; bottom: 0; }
.queue-deck:not([data-behind="0"])::before { opacity: .9; }
.queue-deck[data-behind="2"]::after { opacity: .55; }
.queue-slot { position: relative; z-index: 1; animation: queue-in var(--motion-sheet) var(--ease-enter) both; }
.queue-slot[data-moving="back"] { --from: -2.5rem; }
@keyframes queue-in { from { opacity: 0; transform: translateX(var(--from, 2.5rem)) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .queue-slot { animation: none; } }

.queue-card { min-width: 0; }
.queue-listing { height: auto; gap: .875rem; padding: 1.25rem; overflow: visible; }
.queue-listing [data-listing-head] h3 { display: block; -webkit-line-clamp: unset; -webkit-box-orient: unset; overflow: visible; font-family: var(--font-display, inherit); font-size: 1.375rem; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; text-wrap: balance; }
.queue-listing [data-listing-when] { display: block; overflow: visible; overflow-wrap: anywhere; white-space: normal; color: var(--color-muted-foreground); font-size: .875rem; line-height: 1.4; }
.queue-listing [data-listing-facts] > li > span:last-child { display: block; min-width: 0; overflow: visible; overflow-wrap: anywhere; white-space: normal; -webkit-box-orient: initial; -webkit-line-clamp: unset; }
.queue-listing-content { display: flex; flex-direction: column; gap: .875rem; min-width: 0; }
.queue-listing > [data-slot="listing-actions"] { display: flex; flex-direction: column; align-items: stretch; gap: .875rem; }
.queue-card-detail { color: var(--color-muted-foreground); font-size: .9375rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.queue-card-body { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.queue-card-clip { display: flex; flex-direction: column; gap: .5rem; }
.queue-audio-note { display: flex; align-items: flex-start; gap: .5rem; color: var(--color-muted-foreground); font-size: .875rem; line-height: 1.45; }
.queue-audio-note svg { flex: none; width: 1rem; height: 1rem; margin-top: .125rem; }

/* The way to finish: the one filled press, at its own width (21st.dev Tool Approval 26580: "Allow once" is a pill sized
   to its words at the start of the footer, the quiet choices beside it), never a slab across the card. */
.queue-finish, .queue-form, .queue-form .record-hover-form-field { display: flex; flex-direction: column; gap: .5rem; }
.queue-finish[data-finish="press"] { flex-direction: row; flex-wrap: wrap; align-items: center; }
.queue-finish-press { min-width: 7.5rem; padding-inline: 1.125rem; font-weight: 600; }
.queue-form .record-hover-form-send { width: 100%; min-height: 2.75rem; font-weight: 600; }
.queue-finish[data-finish="press"] .queue-refusal { flex-basis: 100%; }

/* The goal a thing serves: a quiet link under the title, its icon muted, never a boxed chip. */
.queue-card-links { display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin-top: -.375rem; }
.queue-card-link { display: inline-flex; align-items: center; gap: .375rem; height: auto; min-height: 0; padding: 0; color: var(--color-muted-foreground); font-size: .875rem; font-weight: 500; }
.queue-card-link svg { width: .875rem; height: .875rem; opacity: .8; }
button.queue-card-link:hover { color: var(--color-foreground); }

/* Purpose precedes the owning action surface; the completion condition follows it, always visible. */
.queue-task-purpose, .queue-task-completion { margin: 0; font-size: .9375rem; line-height: 1.5; overflow-wrap: anywhere; }
.queue-task-purpose > span, .queue-task-completion > span > span { display: block; margin-bottom: .25rem; color: var(--color-muted-foreground); font-size: .8125rem; }
.queue-task-completion { display: flex; align-items: flex-start; gap: .625rem; }
.queue-task-completion > svg { flex: none; width: 1rem; height: 1rem; margin-top: .25rem; color: var(--color-muted-foreground); }
.queue-form .record-hover-form-label { font-size: .8125rem; font-weight: 500; }
.queue-form textarea { min-height: 7rem; }
.queue-refusal, .queue-form .record-hover-form-refusal { color: var(--color-destructive); font-size: .8125rem; }
.queue-checked { display: flex; gap: .5rem; padding: .75rem .875rem; border-radius: .75rem; background: color-mix(in oklab, var(--color-success, #16a34a) 9%, var(--color-card)); line-height: 1.45; }
.queue-checked svg, .queue-empty-icon { flex: none; color: var(--color-success, #16a34a); }

.queue-open, .queue-later:not(.queue-open + *) { margin-left: auto; }
.queue-empty { display: flex; flex-direction: column; align-items: center; gap: .625rem; padding: 3rem 1rem; text-align: center; }
.queue-empty-icon { width: 3rem; height: 3rem; border-radius: 99px; }
.queue-empty-title { font-size: 1.25rem; font-weight: 600; }

/* A phone-width pane: a little less room around the card, the reasons stacked under their labels. */
@container queue (max-width: 30rem) {
  .queue-listing { padding: 1rem; }
  .queue-listing [data-listing-head] h3 { font-size: 1.25rem; }
}

/* One thing alone (`alone`, as the hold shows it): when several are walked, their place between the moves that can be
   made (Uxcel's "Question 1/25" beside the arrows, Mobbin 4ba413cf); the caller's ways out are the card's own last part,
   divided from the thing by a hairline like the card's folded explanation, so the card is one composed whole. */
.queue[data-state="alone"] .queue-title { text-align: center; }
.queue-alone-moves { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; }
.queue-alone-moves > :first-child { justify-self: start; }
.queue-alone-moves > :last-child { justify-self: end; }
.queue-head-start, .queue-head-end { display: flex; align-items: center; gap: .25rem; min-width: 0; }
.queue-head-end { justify-content: flex-end; }
/* The card's one footer row: the finish press first, the caller's quiet ways out beside it on the same row; whatever
   a way out opens (its panel, its form) takes the whole width under the row. */
.queue-card-under { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .125rem; padding-top: 1rem; border-top: 1px solid var(--color-border); }
.queue-card-under > .queue-finish { flex: none; }
/* Long forms stay inside the card; the answer rows scroll and the send button follows them. */
/* Every box from the card down to the answer rows is a bounded column, so the rows scroll inside the card and never
   spill over what follows the queue on the page (the card's content wrapper is a plain box in ListingCard). */
.queue-listing:has(.queue-finish[data-many-fields="true"]) { display: flex; flex-direction: column; height: min(72dvh, 50rem); min-height: 0; overflow: visible; }
.queue-listing:has(.queue-finish[data-many-fields="true"]) [data-listing-content], .queue-listing:has(.queue-finish[data-many-fields="true"]) .queue-listing-content { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.queue-finish[data-many-fields="true"] { flex: 1; min-height: 0; }
.queue-finish[data-many-fields="true"] .queue-form { display: flex; flex: 1; flex-direction: column; min-height: 0; max-height: none; overflow: hidden; }
.queue-finish[data-many-fields="true"] .record-hover-form-fields { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: .25rem; scroll-padding-block: .5rem; }
.queue-finish[data-many-fields="true"] .record-hover-form-actions { flex: none; gap: .5rem; }
.queue-finish[data-many-fields="true"] .record-hover-form-field { display: grid; grid-template-columns: minmax(0, 1fr) minmax(9rem, .85fr); align-items: center; gap: .375rem .75rem; padding: .75rem; border: 1px solid var(--color-border); border-radius: .875rem; background: color-mix(in oklab, var(--color-muted) 24%, var(--color-card)); }
.queue-finish[data-many-fields="true"] .record-hover-form-label { grid-column: 1; font-size: .875rem; font-weight: 600; }
.queue-finish[data-many-fields="true"] .record-hover-form-field-detail, .queue-finish[data-many-fields="true"] .record-hover-form-field-clip { grid-column: 1; }
.queue-finish[data-many-fields="true"] .record-hover-form-field input, .queue-finish[data-many-fields="true"] .record-hover-form-field textarea, .queue-finish[data-many-fields="true"] .record-hover-form-field select { grid-column: 2; grid-row: 1 / span 3; }
.queue-finish[data-many-fields="true"] .record-hover-form-send { flex: none; margin-top: .5rem; }
.queue-form .record-hover-form-field-detail { color: var(--color-muted-foreground); font-size: .8125rem; line-height: 1.4; }
.queue-form .record-hover-form-field-clip { display: block; }

@container queue (max-width: 30rem) {
  .queue-finish[data-many-fields="true"] .record-hover-form-field { grid-template-columns: minmax(0, 1fr); }
  .queue-finish[data-many-fields="true"] .record-hover-form-field input, .queue-finish[data-many-fields="true"] .record-hover-form-field textarea, .queue-finish[data-many-fields="true"] .record-hover-form-field select { grid-column: 1; grid-row: auto; }
}

/*
   The hold (src/workspace/needs-you-hold.tsx) and the one thing it holds (src/workspace/waiting-screen.tsx, opened on
   one thing). The hold is the screen arrangement locked on that thing (arrangement-lock.css); what is drawn here is
   only what goes inside it: as the held card's own last part the only ways out, folded behind ONE quiet text button that opens them in one small
   panel (I did my part, this doesn't work here, set it aside with a reason, turn the hold off at the cost the person chose), and the thing's own parts: the place in
   Trillion it is done in shown in place, framed like the saved login, a value to copy beside a step, a saved login shown in
   place under one, and the passage around the steps. Anatomy: a lock screen's one decision and its quiet "not now"
   beneath (Tolan's lock prompt, Mobbin 34a84b8d; Jomo's unlock chooser, Mobbin 1b76cc4c), a cost stated before undoing
   (LinkedIn's unblock, Mobbin 9c936090), and setup steps with their values inline and copyable (DoorDash Merchant,
   Mobbin cb2e2006; Supabase, Mobbin 2c39a77f; Klaviyo, Mobbin 38834bba). Colours and faces are the page's own tokens. */

.hold-ways, .hold-way { display: flex; box-sizing: border-box; flex-direction: column; align-items: center; gap: .625rem; width: 100%; }
/* In the held card's footer row (one-at-a-time-queue.css .queue-card-under) the one quiet button sits beside the
   finish press, and what it opens (the panel, a way's form, a note) takes the row's whole width under them. */
.queue-card-under .hold-ways, .queue-card-under .hold-ways-menu { display: contents; }
.queue-card-under .hold-ways-panel, .queue-card-under .hold-way, .queue-card-under .hold-pending { flex-basis: 100%; max-width: none; }
.queue-card-under .hold-pending { text-align: start; }
.hold-way { align-items: stretch; max-width: 28rem; padding: 1rem; border: 1px solid var(--color-border); border-radius: 1rem; background: var(--color-card); }
.hold-ways-menu { display: flex; flex-direction: column; align-items: center; gap: .5rem; width: 100%; }
.hold-ways-trigger { color: var(--color-muted-foreground); }
.hold-ways-trigger:hover, .hold-ways-trigger[aria-expanded="true"] { color: var(--color-foreground); }
/* The ways out in one small panel under the one quiet button: plain rows, the way's own icon at the start. */
.hold-ways-panel { display: flex; flex-direction: column; align-items: stretch; gap: .125rem; width: 100%; max-width: 20rem; padding: .375rem; border: 1px solid var(--color-border); border-radius: .875rem; background: var(--color-card); }
.hold-ways-panel .hold-way-out { justify-content: flex-start; width: 100%; min-height: 2.5rem; font-weight: 500; }
.hold-ways-panel .hold-pending { padding: .5rem .625rem; text-align: start; }
.hold-ways-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.hold-way-title { font-weight: 600; }
.hold-stake { color: var(--color-foreground); font-size: 1rem; line-height: 1.45; }
.hold-stakes { display: flex; flex-direction: column; gap: .5rem; }
.hold-stake-choice { justify-content: flex-start; text-align: start; white-space: normal; height: auto; min-height: 2.75rem; }
.hold-pending { color: var(--color-muted-foreground); font-size: .875rem; line-height: 1.45; text-align: center; }

/* The thing itself. */
.waiting-words { padding: 0; color: var(--color-muted-foreground); font-size: .9375rem; line-height: 1.55; }
.waiting-value { max-width: 16rem; font-family: var(--font-mono, ui-monospace, monospace); font-size: .8125rem; }
.waiting-value .copy-words { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.waiting-login-in-place .guide, .waiting-place-in-place .guide { max-width: none; padding: .25rem .75rem .5rem; }
.waiting-login-in-place, .waiting-place-in-place { display: block; overflow: hidden; border: 1px solid var(--color-border); border-radius: .75rem; background: var(--color-card); }

/*
   The arrangement, locked (screen-arrangement/show/arrangement-lock.tsx): the one screen fills the window in the page's
   own background with nothing else drawn: the page's arrangement, its sidebar, notices and automatic tours are hidden while the
   page's root carries data-arrangement-locked (a tour that starts meanwhile waits, undrawn, and shows once the lock
   ends). Its stacking is the shared layer order's `lockedArrangement` (set by the part): above the sidebar's floating panel
   and its edge strips, below dialogs and menus a locked screen opens; floating panels and the sidebar's portaled
   rail are hidden with the rest, and so is every layer a tour draws (a centred step's blurred backdrop included) and
   the marks layers of the arrangement under it. Anatomy: a focus app's lock, where the window is only the one thing
   (Spatial's welcome, a window holding a line of words and one way on; Cogito's single centred card on a quiet page,
   both from the person's /Inspiration/Trillion Screens); a host's ways out are part of the locked screen itself. A screen asked for
   while locked opens beside the locked one, with a quiet Back above. Only a tour the person asked for by name with a
   press inside the lock (the part's tourMayShow) carries data-arrangement-lock-guided and draws over the lock while it
   runs; no other tour ever does, and the arrangement, the sidebar and notices stay hidden. The page's colour is see-through glass in some
   looks (look-bridges: --color-background is --glass-bg-primary), so it is laid over the look's opaque surface and the
   window's own opaque colour (Canvas): the lock is always solid and nothing under it reads through. In the iPhone app the
   page runs under the status bar and home indicator (viewport-fit=cover), so the lock sits inside the same safe area as
   the workspace (src/workspace/workspace.css .trillion-workspace); the insets are 0 everywhere else. */

.arrangement-lock {
  position: fixed; display: flex;
  left: env(safe-area-inset-left); right: env(safe-area-inset-right);
  top: calc(var(--visible-viewport-top, 0px) + env(safe-area-inset-top));
  height: calc(var(--visible-viewport-height, 100dvh) - env(safe-area-inset-top) - env(safe-area-inset-bottom) * (1 - var(--visible-viewport-keyboard, 0)));
  flex-direction: column; isolation: isolate;
  background: linear-gradient(var(--color-background), var(--color-background)), linear-gradient(var(--bg-surface, transparent), var(--bg-surface, transparent)), Canvas;
  color: var(--color-foreground);
}
.arrangement-lock-screens { display: flex; flex: 1; min-height: 0; }
.arrangement-lock-pane { flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.arrangement-lock-pane > :last-child { flex: 1; min-height: 0; }
.arrangement-lock-pane[hidden] { display: none; }
.arrangement-lock-back { display: flex; padding: .5rem .75rem 0; }
html[data-arrangement-locked] [data-screen-arrangement-root],
html[data-arrangement-locked] [data-sidebar-root],
html[data-arrangement-locked] [data-bitfield-scene-portal-owner],
html[data-arrangement-locked] .floating-panel-host,
html[data-arrangement-locked] [data-shared-notifications],
html[data-arrangement-locked]:not([data-arrangement-lock-guided]) [data-overlay-blur],
html[data-arrangement-locked]:not([data-arrangement-lock-guided]) [data-overlay-spotlight],
html[data-arrangement-locked]:not([data-arrangement-lock-guided]) [data-overlay-scrim],
html[data-arrangement-locked]:not([data-arrangement-lock-guided]) [data-anchored-coachmark],
html[data-arrangement-locked]:not([data-arrangement-lock-guided]) [data-guided-overlay-target-highlight],
html[data-arrangement-locked]:not([data-arrangement-lock-guided]) [data-guided-centered-backdrop],
html[data-arrangement-locked]:not([data-arrangement-lock-guided]) [data-overlay-backdrop]:not(.arrangement-lock *),
html[data-arrangement-locked] [data-whole-screen-marks]:not(.arrangement-lock *),
html[data-arrangement-locked] [data-shown-on-screen-marks]:not(.arrangement-lock *) { display: none !important; }
html[data-arrangement-locked] body { overflow: hidden; }

/*
   The look of the shared steps checklist (ui/show/steps-checklist/StepsChecklist.tsx): a small done / total count over a
   two pixel bar (21st.dev Onboarding Checklist 30552), then one bordered list with a hairline between rows (Xero's set-up
   steps, DoorDash Merchant's numbered instructions, Mobbin cb2e2006 and 42576734), each row a round mark, the words, and a
   value to copy on the right (Supabase's and Klaviyo's copyable values, Mobbin 2c39a77f and 38834bba). A ticked row
   settles to muted words struck through. Colours and faces are the page's own tokens. */

.steps-checklist { display: flex; flex-direction: column; gap: .5rem; container-type: inline-size; }
.steps-checklist-count { color: var(--color-muted-foreground); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.steps-checklist-bar { height: 2px; border-radius: 2px; background: color-mix(in oklab, var(--color-foreground) 8%, transparent); overflow: hidden; }
.steps-checklist-bar > span { display: block; height: 100%; background: var(--color-success, #16a34a); transition: inline-size var(--motion-slow) var(--ease-enter); }
.steps-checklist-rows { margin: .25rem 0 0; padding: 0; list-style: none; border: 1px solid var(--color-border); border-radius: .875rem; overflow: hidden; }
.steps-checklist-row { --first-line-size: .9375rem; --first-line-leading: 1.45; font-size: var(--first-line-size); line-height: var(--first-line-leading); display: flex; align-items: flex-start; gap: .75rem; padding: .75rem .875rem; }
.steps-checklist-row + .steps-checklist-row { border-top: 1px solid var(--color-border); }
.steps-checklist-mark { border-radius: var(--radius-pill) !important; }
.steps-checklist-mark [data-slot="checkbox-indicator"] { background: var(--color-success, #16a34a) !important; }
.steps-checklist-body { display: flex; flex-direction: column; gap: .5rem; flex: 1; min-width: 0; }
.steps-checklist-line { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.steps-checklist-words { flex: 1; min-width: 0; font-size: var(--first-line-size); line-height: var(--first-line-leading); overflow-wrap: anywhere; transition: color .3s; }
.steps-checklist-beside { flex: none; display: inline-flex; align-items: center; gap: .25rem; }
.steps-checklist-row[data-done] .steps-checklist-words { color: var(--color-muted-foreground); text-decoration: line-through; text-decoration-color: color-mix(in oklab, var(--color-foreground) 25%, transparent); }
@container (max-width: 30rem) {
  .steps-checklist-line { flex-direction: column; align-items: flex-start; gap: .375rem; }
}
@media (prefers-reduced-motion: reduce) { .steps-checklist-bar > span, .steps-checklist-words { transition: none; } }

/*
   The look of the shared step mark (ui/show/step-mark/StepMark.tsx): a round mark the height of a title line. Still to
   do: the step's number in a hairline ring. Done: the same success fill and tick as the shared steps checklist's mark
   (steps-checklist.css), never ink or the accent, so a done step reads as done in every look. Not readable: a dashed
   ring. Colours are the look's own tokens. */

.step-mark {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 1.75rem; height: 1.75rem; border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  color: var(--color-foreground);
  font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color .3s, border-color .3s, color .3s;
}
.step-mark svg { width: .9rem; height: .9rem; }
.step-mark[data-state="done"] { border-color: transparent; background: var(--color-success, #16a34a); color: #fff; }
.step-mark[data-state="unknown"] { border-style: dashed; color: var(--color-muted-foreground); }
/* Checking: an empty ring that breathes slowly while the step's state is read; it never reads as not done. */
.step-mark[data-state="checking"] { border-color: color-mix(in srgb, var(--color-foreground) 28%, transparent); animation: step-mark-checking 2.4s ease-in-out infinite; }
@keyframes step-mark-checking {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-foreground) 0%, transparent); }
  50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-foreground) 10%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .step-mark { transition: none; } .step-mark[data-state="checking"] { animation: none; } }

/*
   The look of the shared live check (ui/show/live-check/LiveCheck.tsx): one quiet row per check with its mark, what is
   checked and the line under it, and the state as a small pill on the right (Tolaria's "AI agents ready" rows, from the
   person's own /Inspiration/Trillion Screens); the watched mark turns (21st.dev Task Steps 23569) and a done mark is a
   tick on a soft green tile. Colours are the page's own tokens. */

.live-check { display: flex; flex-direction: column; gap: .5rem; }
.live-check-row { display: flex; align-items: center; gap: .75rem; padding: .75rem .875rem; border: 1px solid var(--color-border); border-radius: .875rem; background: color-mix(in oklab, var(--color-foreground) 2%, var(--color-card)); }
.live-check-mark { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: .5rem; color: var(--color-muted-foreground); background: var(--color-muted); }
.live-check-mark svg { width: 1rem; height: 1rem; }
.live-check-row[data-state="watching"] .live-check-mark svg { animation: live-check-turn .9s linear infinite; }
.live-check-row[data-state="done"] .live-check-mark { color: var(--color-success, #16a34a); background: color-mix(in oklab, var(--color-success, #16a34a) 14%, transparent); }
.live-check-row[data-state="failed"] .live-check-mark { color: var(--color-destructive); background: color-mix(in oklab, var(--color-destructive) 12%, transparent); }
.live-check-words { display: flex; flex-direction: column; gap: .125rem; flex: 1; min-width: 0; }
.live-check-label { font-size: .9375rem; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.live-check-detail { color: var(--color-muted-foreground); font-size: .8125rem; line-height: 1.4; overflow-wrap: anywhere; }
.live-check-status { flex: none; padding: .125rem .625rem; border-radius: 999px; font-size: .8125rem; font-weight: 500; color: var(--color-muted-foreground); background: var(--color-muted); }
.live-check-row[data-state="done"] .live-check-status { color: var(--color-success, #16a34a); background: color-mix(in oklab, var(--color-success, #16a34a) 12%, transparent); }
.live-check-said { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes live-check-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .live-check-row[data-state="watching"] .live-check-mark svg { animation: none; } }

/* A check that has an answer is one quiet line, not a pill: a muted dot while it is not true yet, a tick on a soft green tile when it is, plain words when Trillion cannot look. */
.live-check-dot { width: .5rem; height: .5rem; border-radius: 99px; background: var(--color-muted-foreground); opacity: .55; }
.live-check-row[data-state="not_yet"] .live-check-label, .live-check-row[data-state="plain"] .live-check-label { font-weight: 400; }
.live-check-row[data-state="plain"] { padding-inline-start: .875rem; }

/*
 *
 * A code another device scans (tools/ui/show/scan-code): the code on a white tile so any phone camera reads it in
 * every look, the words under it. In a guide row it sits under the row's buttons, and only where there is room for a
 * phone beside the screen: a narrow pane is usually the phone itself, so the code is left out there. */
.scan-code { display: inline-flex; flex-direction: column; align-items: center; gap: 0.4rem; margin: 0; }
.scan-code-picture { display: block; padding: 0.5rem; border-radius: 0.75rem; background: #fff; border: 1px solid color-mix(in srgb, var(--color-foreground, #1f1f1f) 10%, transparent); }
.scan-code-label { color: var(--color-muted-foreground, #666); font-size: 0.75rem; text-align: center; }
.guide .guide-row-scan { align-self: flex-end; margin-top: 0.5rem; }
@container guide (max-width: 34rem) { .guide .guide-row-scan { display: none; } }

/*
 * How a whole split into parts looks (ui/show/usage-meter/UsageMeter.tsx): a rounded track with
 * segments separated by a hairline gap, and a legend of dots. Each segment's colour is a named
 * tone: `used` and `free` for taken and free space, and palette tones 1 to 10 for kinds of things,
 * chosen by the caller's DATA. The palette reads as one family in light and dark looks.
 * Reference: 21st.dev #26545 "Partition Bar" (8starlabs); Mintlify usage legend (Mobbin). */
:root{
  --usage-meter-track:var(--glass-bg-subtle,color-mix(in srgb,var(--text-primary) 8%,transparent));
  --usage-meter-used:var(--text-primary);
  --usage-meter-free:color-mix(in srgb,var(--text-primary) 12%,transparent);
  --usage-meter-1:#3b82f6;
  --usage-meter-2:#8b5cf6;
  --usage-meter-3:#ec4899;
  --usage-meter-4:#f59e0b;
  --usage-meter-5:#10b981;
  --usage-meter-6:#06b6d4;
  --usage-meter-7:#ef4444;
  --usage-meter-8:#84cc16;
  --usage-meter-9:#a16207;
  --usage-meter-10:#64748b;
}
.usage-meter-track{background:var(--usage-meter-track);height:10px}
.usage-meter[data-size="sm"] .usage-meter-track{height:6px}
.usage-meter-segment:first-child{border-top-left-radius:999px;border-bottom-left-radius:999px}
.usage-meter-segment:last-child{border-top-right-radius:999px;border-bottom-right-radius:999px}
[data-tone="used"].usage-meter-segment,[data-tone="used"].usage-meter-dot{background:var(--usage-meter-used)}
[data-tone="free"].usage-meter-segment,[data-tone="free"].usage-meter-dot{background:var(--usage-meter-free)}
[data-tone="1"].usage-meter-segment,[data-tone="1"].usage-meter-dot{background:var(--usage-meter-1)}
[data-tone="2"].usage-meter-segment,[data-tone="2"].usage-meter-dot{background:var(--usage-meter-2)}
[data-tone="3"].usage-meter-segment,[data-tone="3"].usage-meter-dot{background:var(--usage-meter-3)}
[data-tone="4"].usage-meter-segment,[data-tone="4"].usage-meter-dot{background:var(--usage-meter-4)}
[data-tone="5"].usage-meter-segment,[data-tone="5"].usage-meter-dot{background:var(--usage-meter-5)}
[data-tone="6"].usage-meter-segment,[data-tone="6"].usage-meter-dot{background:var(--usage-meter-6)}
[data-tone="7"].usage-meter-segment,[data-tone="7"].usage-meter-dot{background:var(--usage-meter-7)}
[data-tone="8"].usage-meter-segment,[data-tone="8"].usage-meter-dot{background:var(--usage-meter-8)}
[data-tone="9"].usage-meter-segment,[data-tone="9"].usage-meter-dot{background:var(--usage-meter-9)}
[data-tone="10"].usage-meter-segment,[data-tone="10"].usage-meter-dot{background:var(--usage-meter-10)}

/*
 * How the shared file tree looks (ui/show/file-tree/FileTree.tsx): a soft highlight that glides
 * under the pointer, chosen rows tinted with the focus colour, and a folder being dropped on
 * outlined with the words for what the drop will do. Spring timing lives in FileTree.
 * Reference: 21st.dev #20042 "Animated File Tree Primitives" (unlumen). */
:root{
  --file-tree-accent:var(--border-focus,var(--color-primary,#3b82f6));
}
.file-tree{color:var(--text-primary)}
.file-tree-highlight{background:var(--glass-bg-hover,color-mix(in srgb,var(--text-primary) 6%,transparent))}
.file-tree-row:focus-visible{box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--file-tree-accent) 60%,transparent)}
.file-tree-row-chosen{background:color-mix(in srgb,var(--file-tree-accent) 14%,transparent)}
.file-tree-row-dropping{background:color-mix(in srgb,var(--file-tree-accent) 12%,transparent);box-shadow:inset 0 0 0 1.5px var(--file-tree-accent)}
.file-tree-drop-words{color:var(--file-tree-accent)}
.file-tree-row[draggable="true"]{cursor:default}

/*
 *
 * The look of the live cut player (tools/ui/show/selection/LiveCompositionPreview.tsx): the person's cut plays from
 * its original files in a frame of the chosen shape, with its looks, text and layers drawn over the picture and the
 * shared playback controls under it. Picture layers are part of the video, not the screen's chrome.
 */
.live-composition{min-width:0;display:grid;gap:8px}
/* not-a-panel: the black behind the person's own video, part of the picture. */
.live-composition-frame{container-type:inline-size;position:relative;overflow:hidden;background:#000;margin:auto;border-radius:var(--radius-lg,12px);max-height:var(--live-preview-height,52vh);max-width:100%}
.live-composition-frame>.live-composition-source,.live-composition-blur{position:absolute;inset:0;width:100%;height:100%;max-height:none}
.live-composition-blur{object-fit:cover;filter:blur(20px);transform:scale(1.1)}
.live-composition-layer{position:absolute;transform:translate(-50%,-50%)}
.live-composition-layer img,.live-composition-layer video{display:block;width:100%;height:auto;max-height:none}
/* not-a-panel: darkens the edges of the video being edited, part of the picture. */
.live-composition-vignette{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse,transparent 35%,#0009)}
.live-composition-controls{position:relative;min-height:64px;border-radius:var(--radius-md,10px);background:var(--bg-tertiary,#252525);color:var(--text-primary,#fff)}
.live-composition>audio{display:none}
.live-composition-lut{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.live-composition-frame>[role=alert]{position:absolute;top:0;left:0;right:0;padding:12px;z-index:5;background:var(--bg-primary,#fff);color:var(--text-danger,#922)}
.live-adjustment-layer{position:absolute;z-index:10;pointer-events:none}

/*
 *
 * The look of the shared file chip (tools/ui/show/file-chip/FileChip.tsx): the file's kind icon and name in a quiet
 * rounded pill, then its folder as a small badge in the folder's own palette hue ([data-colour], whose --record-kind
 * coss-workspace.css sets, the one colour attribute every coloured thing uses). The full path opens in the coss
 * popover on hover or press. After 21st.dev 19226 "Tag" (rounded outlined tag, coloured mark) and the file rows of
 * Dropbox Dash on Mobbin (icon, name, small coloured source).
 */
.file-chips { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; min-width: 0; }
.file-chip {
  max-width: 100%; min-width: 0; gap: 0.35rem; padding-inline: 0.45rem 0.3rem;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-chip, 0.375rem); background: var(--glass-bg-subtle);
  color: var(--text-primary); font-weight: 500;
}
.file-chip:hover, .file-chip[data-popup-open] { background: var(--glass-bg-hover); }
.file-chip [data-slot="file-chip-icon"] { flex: none; color: var(--text-tertiary); }
.file-chip-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip-folder {
  flex: none; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 0 0.4rem; border-radius: var(--radius-chip, 0.375rem); font-size: var(--font-size-micro, 0.6875rem); line-height: 1.35rem; font-weight: 600;
  color: color-mix(in oklab, var(--record-kind) 72%, var(--text-primary, currentColor));
  background: color-mix(in oklab, var(--record-kind) 16%, transparent);
}
.file-chip-path { font-family: var(--font-mono, ui-monospace, monospace); font-size: var(--font-size-caption, 0.75rem); overflow-wrap: anywhere; }

/*
 *
 * The look of the shared file field (tools/ui/show/file-field/FileField.tsx): a low dashed box that takes a dropped
 * file or opens the upload chooser, with "Choose from your files" beside it; while a file uploads, one line with its
 * name and share done; once chosen, the file's chip with a small remove button. After Square's compact "Choose a file
 * or drag and drop it here" box (Mobbin 004704ad) and 21st.dev 19201 "File Dropzone".
 */
.file-field { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; min-width: 0; }
.file-field[data-chosen] { gap: 0.25rem; }
.file-field .file-field-drop {
  flex: 1 1 16rem; min-width: 0; height: auto; min-height: 2.75rem; padding: 0.55rem 0.9rem;
  border-style: dashed; border-width: 1.5px; justify-content: flex-start; white-space: normal; text-align: start;
}
.file-field .file-field-drop:hover { background: var(--glass-bg-hover, color-mix(in oklab, currentColor 5%, transparent)); }
.file-field-drop-words { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; color: var(--text-secondary, inherit); font-weight: 500; }
.file-field-drop-words > span { min-width: 0; overflow-wrap: anywhere; }
.file-field-choose { flex: none; }
.file-field-uploading {
  flex: 1 1 16rem; display: flex; align-items: center; gap: 0.5rem; min-width: 0; min-height: 2.75rem; padding: 0.55rem 0.9rem;
  border: 1.5px dashed var(--border-subtle, var(--border)); border-radius: var(--radius-lg, 0.5rem); color: var(--text-secondary, inherit);
}
.file-field-uploading > span:not(.file-field-share) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-field-share { margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.file-field-problem { flex-basis: 100%; margin: 0; color: var(--color-error, var(--destructive)); font-size: var(--font-size-caption, 0.8125rem); }
.file-field-chooser { width: min(24rem, calc(100vw - 2rem)); max-height: min(24rem, 60vh); }
.file-field-chooser-note { display: flex; align-items: center; gap: 0.5rem; margin: 0; color: var(--text-secondary, inherit); }

/*
 * The one close look every close wears (a pane's close, a tab's close): wherever it is shown it is a red X on a faint
 * red ground, and pointing at, tapping, pressing or focusing it deepens the ground. The red is the look's own error
 * colour, so a look that changes it changes every close at once.
 */
.close-control {
  color: var(--color-error, #e5484d);
  background-color: color-mix(in srgb, var(--color-error, #e5484d) 10%, transparent);
  border-radius: var(--radius-control, 6px);
  transition: color .15s, background-color .15s;
}
.close-control:is(:focus-visible, [data-touch-hover], [data-touch-press]) {
  background-color: color-mix(in srgb, var(--color-error, #e5484d) 20%, transparent);
}
@media (hover: hover) {
  .close-control:hover {
    background-color: color-mix(in srgb, var(--color-error, #e5484d) 20%, transparent);
  }
}

/*
 * How the page answers a finger, page-wide, from the marks ui touch-equivalence.ts leaves (data-touch-hover on the chain
 * the last tap landed in, data-touch-press for a moment on what was pressed), plus the page-wide scroll look.
 *
 * - No scrollbar is drawn anywhere: every area still scrolls by wheel, trackpad, finger and keys, it just never paints
 *   a bar over the work.
 * - A press shows at once: what a finger pressed tints for a moment over its own colours, whatever they are.
 * - No ring is drawn on a tapped pane: the selected pane's own frame (screen-arrangement) is the one mark of which
 *   pane is current, so a tap never leaves a second, square outline on a pane that is not selected.
 * - A resize edge belongs to the finger dragging it: the page does not scroll under it.
 * - The browser's own grey tap flash and the long-press callout on controls are replaced by the above.
 * - A control answers a tap at once: it never waits to see whether a second tap makes a zoom (touch-action:
 *   manipulation), and holding a finger on one never selects its words. Words that are content stay selectable.
 * - A field a finger types into is never smaller than 16px, so the phone never zooms the page into it and leaves it
 *   zoomed; with a mouse the field keeps its own size.
 * - Words keep the size the look gives them when a phone turns sideways: the browser's own text inflation in landscape
 *   (text-size-adjust) is off, so a turned phone does not suddenly draw every paragraph larger than its layout.
 * Every rule here is :where(), so any part's own rule (a drag handle's touch-action: none) wins over it.
 */
body.screen-look-page, body.screen-look-page * { scrollbar-width: none; }
body.screen-look-page ::-webkit-scrollbar { display: none; }

html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
:is(button, a[href], [role="button"], [role="tab"], [role="menuitem"], [role="option"], [data-tab-draggable]) { -webkit-touch-callout: none; }

[data-touch-press] { box-shadow: inset 0 0 0 100vmax color-mix(in srgb, currentColor 12%, transparent); }

[role="separator"][tabindex] { touch-action: none; }

/* The page itself never zooms under a finger: a thumb sliding over the tab bar, the sidebar or the header and a second
   finger landing (or a quick double tap) zoomed the whole app and left it zoomed, cut off at the right (reported
   2026-10-03). A finger may scroll and pan; a surface that takes pinch itself (the board's arrangement, a canvas, a
   picture) says touch-action: none or its own rule, and the allowed gestures of a surface are the intersection of
   its own and its ancestors', so this never takes a gesture such a surface handles itself. */
:where(body.screen-look-page) { touch-action: pan-x pan-y; }

:where(button, a[href], summary, label, [role="button"], [role="tab"], [role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="option"], [role="switch"], [role="checkbox"], [role="radio"]) { touch-action: manipulation; }
:where(button, summary, [role="button"], [role="tab"], [role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="option"], [role="switch"]) { -webkit-user-select: none; user-select: none; }

@media (pointer: coarse) {
  :where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"], [type="button"], [type="submit"], [type="reset"], [type="image"]), textarea, select, [contenteditable]:not([contenteditable="false"])) {
    --specified-font-size: initial;
    font-size: max(16px, var(--specified-font-size, 1em)) !important;
  }
}

/* packages/screen-look/show/card-layouts.css
 *
 * The look of the shared CardLayouts (packages/ui/show/card-layouts). A layout
 * row names a flow; this file is the only place a flow's look lives, so a new
 * flow is one more `[data-flow=...]` rule here and zero component changes.
 *
 * Anatomy, taken from real screens:
 *   Sections: the 21st.dev home page (the owner's captures, 2026-09-27): a bold
 *     title with a quiet count, one muted line under it, View all at the far
 *     right, then a sideways row of about four large rounded pictures with the
 *     name under each. Dark row rhythm checked against Higgsfield
 *     (https://mobbin.com/screens/084ea6ae-141e-4913-856a-0f812a28f00e) and
 *     SchoolAI's View all (https://mobbin.com/screens/f1c4ed4f-7ba1-4c9a-91b5-8652a01a1c18).
 *   Wall: Pinterest home (https://mobbin.com/screens/eb0ad4dd-1cc1-4287-9819-38cbe7028c63)
 *     and Curater (https://mobbin.com/screens/570811a7-d458-4a3b-ae87-ecb4cdeb5fac):
 *     column-balanced cards that keep their picture's own shape, CSS columns
 *     with break-inside avoid (the approach of 21st.dev component 7844).
 *   Row stepping: 21st.dev Scroller (component 3929): edges fade while more
 *     lies past them, a round step button at each end.
 *
 * Colours come from the page's own surface, line, text and muted custom
 * properties, so the part sits on any theme.
 */
.card-layouts-host{display:block;min-width:0;container-type:inline-size;container-name:card-layouts}
.card-layouts{--card-gap:16px;--card-radius:14px;--card-row-width:clamp(220px,calc((100cqw - 3 * var(--card-gap)) / 4),420px);display:flex;flex-direction:column;gap:44px;min-width:0;padding-bottom:32px}
.card-layouts-bar{display:flex;justify-content:flex-end;margin-bottom:-24px}

/* Section header: title and count, one quiet line, tools at the far right. */
.card-layouts-section{display:flex;flex-direction:column;gap:18px;min-width:0}
.card-layouts-section-header{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;min-width:0}
.card-layouts-heading{display:flex;flex-direction:column;gap:4px;min-width:0}
.card-layouts-section-title{display:flex;align-items:baseline;gap:10px;margin:0;font-size:20px;line-height:26px;font-weight:650;letter-spacing:-.01em;color:var(--text,#111)}
.card-layouts-count{font-size:13px;font-weight:500;color:var(--muted,#777);font-variant-numeric:tabular-nums}
.card-layouts-subtitle{margin:0;font-size:14px;line-height:20px;color:var(--muted,#777);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card-layouts-section-tools{display:flex;align-items:center;gap:6px;flex:none}
.card-layouts-section-tools [data-slot=button]{color:var(--muted,#777)}
.card-layouts-section-tools [data-slot=button]:hover{color:var(--text,#111)}

/* One card: a large rounded picture, the name under it, one quiet line. */
.card-layouts-card{display:flex;flex-direction:column;gap:10px;min-width:0}
.card-layouts-picture{position:relative;display:block;width:100%;aspect-ratio:var(--card-aspect,16/10);padding:0;border:1px solid color-mix(in srgb,var(--line,#e9e7e4) 70%,transparent);border-radius:var(--card-radius);overflow:hidden;background:color-mix(in srgb,var(--surface,#fff) 88%,var(--text,#111));cursor:pointer;transition:transform var(--motion-base) var(--ease-snap),box-shadow var(--motion-base),border-color var(--motion-base)}
.card-layouts-picture>*{position:absolute;inset:0;width:100%;height:100%}
.card-layouts-picture img{object-fit:cover}
.card-layouts-card:hover .card-layouts-picture,.card-layouts-picture:focus-visible{transform:translateY(-2px);border-color:color-mix(in srgb,var(--text,#111) 22%,transparent);box-shadow:0 18px 40px -22px #000c}
.card-layouts-picture:focus-visible{outline:2px solid var(--accent,#5b8def);outline-offset:2px}
.card-layouts-meta{display:flex;flex-direction:column;gap:2px;min-width:0;padding:0 2px}
.card-layouts-title{font-size:14px;line-height:20px;font-weight:550;color:var(--text,#111);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card-layouts-detail{font-size:12px;line-height:16px;color:var(--muted,#777);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Flow: row. One sideways row of about four cards, stepped by the end buttons. */
.card-layouts-cards-frame{position:relative;min-width:0}
.card-layouts-cards[data-flow=row]{display:grid;grid-auto-flow:column;grid-auto-columns:var(--card-row-width);gap:var(--card-gap);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;padding:4px 2px 6px;margin:-4px -2px -6px}
.card-layouts-cards[data-flow=row]::-webkit-scrollbar{display:none}
.card-layouts-cards[data-flow=row]>.card-layouts-item{scroll-snap-align:start;min-width:0}
.card-layouts-cards[data-flow=row] .card-layouts-picture{--card-aspect:16/10}
.card-layouts-step{position:absolute;top:calc(var(--card-row-width) * 10 / 32);z-index:1;transform:translateY(-50%);opacity:0;pointer-events:none;transition:opacity .18s}
.card-layouts-step[data-edge=start]{left:-6px}
.card-layouts-step[data-edge=end]{right:-6px}
.card-layouts-step [data-slot=button]{border-radius:999px;background:var(--surface,#fff);box-shadow:0 8px 22px -10px #000a}
.card-layouts-cards-frame[data-flow=row]:hover:has(.card-layouts-cards[data-scroll-fade~=left]) .card-layouts-step[data-edge=start],
.card-layouts-cards-frame[data-flow=row]:hover:has(.card-layouts-cards[data-scroll-fade~=right]) .card-layouts-step[data-edge=end]{opacity:1;pointer-events:auto}
.card-layouts-cards-frame:not([data-flow=row]) .card-layouts-step{display:none}

/* Flow: wall. Column-balanced cards that keep their picture's own shape. */
.card-layouts-cards[data-flow=wall]{column-width:230px;column-gap:var(--card-gap)}
.card-layouts-cards[data-flow=wall]>.card-layouts-item{break-inside:avoid;margin-bottom:22px}

/* Flow: grid. Even rows of equal cards. */
.card-layouts-cards[data-flow=grid]{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:26px var(--card-gap)}
.card-layouts-cards[data-flow=grid] .card-layouts-picture{--card-aspect:16/10}

/* Hover card: what the card holds, its name, its actions. */
.card-layouts-hover{display:flex;flex-direction:column;gap:10px;width:min(360px,calc(100vw - 24px));padding:10px;border:1px solid color-mix(in srgb,var(--line,#e9e7e4) 85%,transparent);border-radius:18px;background:color-mix(in srgb,var(--surface,#fff) 96%,transparent);box-shadow:0 24px 60px -24px #000d;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);transform-origin:var(--transform-origin);transition:opacity .16s,transform .16s}
.card-layouts-hover[data-starting-style],.card-layouts-hover[data-ending-style]{opacity:0;transform:scale(.97)}
.card-layouts-hover-media{border-radius:12px;overflow:hidden;background:#000;aspect-ratio:16/9}
.card-layouts-hover-media:empty{display:none}
.card-layouts-hover-body{display:flex;flex-direction:column;gap:2px;min-width:0;padding:0 4px}
.card-layouts-hover-title{font-size:14px;line-height:20px;font-weight:600;color:var(--text,#111)}
.card-layouts-summary{margin:2px 0 0;font-size:12.5px;line-height:18px;color:var(--muted,#777);display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.card-layouts-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

/* States: reading, failed, empty. */
.card-layouts-pending{height:calc(var(--card-row-width) * 10 / 16 + 32px);border-radius:var(--card-radius);background:linear-gradient(90deg,color-mix(in srgb,var(--text,#111) 4%,transparent),color-mix(in srgb,var(--text,#111) 9%,transparent),color-mix(in srgb,var(--text,#111) 4%,transparent));background-size:200% 100%;animation:card-layouts-shimmer 1.4s linear infinite}
@keyframes card-layouts-shimmer{to{background-position:-200% 0}}
.card-layouts-note{margin:0;font-size:13px;color:var(--muted,#777)}
.card-layouts-empty{display:flex;flex-direction:column;gap:6px;padding:64px 0;text-align:center;color:var(--muted,#777)}
.card-layouts-empty strong{font-size:16px;color:var(--text,#111)}
.card-layouts-empty p{margin:0;font-size:13px}

@container card-layouts (max-width:640px){.card-layouts{--card-row-width:72cqw;gap:32px}.card-layouts-section-title{font-size:18px}.card-layouts-cards[data-flow=wall]{column-width:160px}}
@media (prefers-reduced-motion:reduce){.card-layouts-picture,.card-layouts-hover,.card-layouts-step{transition:none}.card-layouts-pending{animation:none}.card-layouts-card:hover .card-layouts-picture{transform:none}}

/* A small good moment (tools/ui/show/delight-moment/DelightMoment.tsx): one line of words with a turning mark and a
   ring of sparks, low on the screen and centred, above the work and below dialogs, never catching a click. The motion
   is the moment's DATA (records/delight-moments.json); this file only decides how the card looks.
   References: 21st.dev Confetti (motiondotdev) and Burst (tinkerers-labs); Mobbin Descript and Dropbox Dash "You're all
   set". */
.delight-moment-layer{position:fixed;left:50%;bottom:calc(max(20px,env(safe-area-inset-bottom)) + 56px);transform:translateX(-50%);z-index:var(--layer-notification,9999);pointer-events:none;display:flex;justify-content:center;width:min(92vw,440px)}
.delight-moment{display:flex;align-items:center;gap:12px;padding:12px 18px 12px 12px;border-radius:999px;background:color-mix(in oklab,var(--color-popover,#1b1c1f) 92%,transparent);color:var(--color-popover-foreground,#f4f4f5);box-shadow:0 18px 48px -18px rgba(0,0,0,.45),0 0 0 1px color-mix(in oklab,var(--color-foreground,#fff) 10%,transparent);backdrop-filter:blur(14px) saturate(1.3);-webkit-backdrop-filter:blur(14px) saturate(1.3);max-width:100%}
.delight-moment-mark{position:relative;display:inline-grid;place-items:center;flex-shrink:0;width:30px;height:30px;border-radius:999px;font-size:15px;line-height:1;color:#1b1c1f;background:linear-gradient(135deg,#f2c14e,#ff8a5b 55%,#b08cff)}
.delight-moment-spark{position:absolute;left:50%;top:50%;width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:2px;background:#f2c14e}
.delight-moment-spark[data-hue="1"]{background:#ff8a5b;border-radius:999px}
.delight-moment-spark[data-hue="2"]{background:#b08cff}
.delight-moment-spark[data-hue="3"]{background:#4fcf94;border-radius:999px}
.delight-moment-words{font-size:14px;line-height:1.4;font-weight:500;letter-spacing:-.005em;text-wrap:pretty}
@container (max-width:420px){.delight-moment-words{font-size:13px}}
@media (max-width:480px){.delight-moment-layer{bottom:calc(max(16px,env(safe-area-inset-bottom)) + 64px)}.delight-moment{border-radius:18px}}

/*
 *
 * NO PRIOR: searched the show folders of ~/dev/bitfield-packages/packages for "concentric", "corner-inset", "nested radius" and
 * "inner radius" (only balsa-theme.css's five-surface --balsa-radius-contained and twenty's comment, both already here)
 * and 21st.dev for "concentric nested border radius" (animated borders only).
 *
 * Nested corners, computed. A rounded box that holds other rounded things names its own corner (--corner) and the gap
 * from its edge to what sits in its corners (--corner-inset); what sits there takes --corner-in, the holder's corner
 * less the gap (never below zero), so the inner curve runs parallel to the outer one. The reverse, a box whose corner
 * follows what it holds, takes --corner-out: the held corner (--corner-held) plus the gap. The same rule as numbers is
 * nestedCorner / holdingCorner in read-data/resolve-screen-look-palette.js, written into every compiled device palette by
 * scripts/make-device-looks.mjs, and scripts/check-narrow-widths.mjs measures every screen against it
 * (corners-not-concentric), the window being the outermost box.
 *
 * A part marks a holder with data-corner-holder and what follows it with data-corner-follows; a part that carries no
 * mark is named by its own selector below. Each holder is one line naming its corner and gap; the nearest holder wins.
 * A holder inside a holder writes its corner out as the outer corner less the outer gap: a property cannot read the
 * value its parent gave the same name.
 */
:where(
  [data-corner-holder],
  [data-tab-draggable],
  [data-surface-container],
  .composer-field,
  .glass-surface,
  .coss-floating-panel,
  .notification-root
) {
  --corner-in: max(0px, calc(var(--corner, 0px) - var(--corner-inset, 0px)));
  --corner-out: calc(var(--corner-held, 0px) + var(--corner-inset, 0px));
}

/* Holders: each one's own corner and the gap to what sits in its corners. */
/* A framed choice row (ui expandable-tabs): one line and its padding in. */
[data-expandable-tabs-frame="group"][data-expandable-tabs-size="sm"] { --corner: 0.75rem; --corner-inset: calc(1px + 0.125rem); border-radius: var(--corner); }
[data-expandable-tabs-frame="group"][data-expandable-tabs-size="md"] { --corner: 1rem; --corner-inset: calc(1px + 0.25rem); border-radius: var(--corner); }
/* The segmented control: the look's control corner, one line and 2px in. */
[data-segmented-control] { --corner: var(--radius-control, 10px); --corner-inset: 3px; border-radius: var(--corner); }
[data-tab-draggable] { --corner: var(--radius-control, 10px); --corner-inset: 0.25rem; border-radius: var(--corner); }
.composer-field { --corner: 1rem; --corner-inset: calc(0.5rem + 1px); border-radius: var(--corner); }
/* A floating window's frame is a glass surface with a one-pixel line, so a screen filling it sits one pixel in. */
.glass-surface { --corner: var(--radius-card, 1rem); --corner-inset: 1px; }
/* A pane's padded body starts inside the pane's one-pixel line and keeps 0.5rem to what it shows. */
[data-surface-container] { --corner: calc(var(--radius-card, 1rem) - 1px); --corner-inset: 0.5rem; }
/* A floating panel (a tour card, a picker): its own corner, its top row's controls 3px in. */
.coss-floating-panel { --corner: var(--radius-lg, 12px); --corner-inset: 4px; }

/* Holders inside holders. */
/* The message box sits a quarter rem in from its window's line. */
.message-box { padding: 0.25rem; }
.message-box .composer-field { --corner: calc(var(--radius-card, 1rem) - 1px - 0.25rem); }
/* A page drawn as one card filling a pane's body (a list's surface) sits half a rem in from the body's corner. */
[data-surface-container] .glass-surface[data-visual-database-presentation="surface"] { --corner: calc(var(--radius-card, 1rem) - 1px - 0.5rem); border-radius: var(--corner); }
/* A choice row in a floating panel's top row sits 4px from the panel's corner. */
.coss-floating-panel-grab [data-expandable-tabs-frame="group"][data-expandable-tabs-size] { --corner: calc(var(--radius-lg, 12px) - 4px); }

/* Followers. Doubled so the rule outranks the corner a part types on itself. */
[data-corner-follows][data-corner-follows] { border-radius: var(--corner-in); }
[data-tab-draggable] .close-control { border-radius: var(--corner-in); }
.composer-field > .composer-tools > button[type="submit"] { border-radius: var(--corner-in); }
.glass-surface > .notification-center,
.glass-surface > * > .notification-center { border-radius: var(--corner-in); }
/* The chat filling a pane: its two panes clip to the body's inner corner, and the open conversation's card follows it. */
[data-surface-container] .chat-panes { border-radius: var(--corner-in); overflow: hidden; }
[data-surface-container] [data-reach-role="message-view"] > .glass-nested { border-radius: var(--corner-in); }

/* Generated from design-tokens by scripts/generateThemeTokens.ts.
   Do not edit manually. Regenerate with: npx nx generateTokens twenty-ui. */

:root, .light {
  --t-spacing-1: 4px;
  --t-spacing-2: 8px;
  --t-accent-quaternary: color(display-p3 0.971 0.977 0.998);
  --t-background-primary: color(display-p3 1 1 1);
  --t-background-secondary: color(display-p3 0.988 0.988 0.988);
  --t-background-tertiary: color(display-p3 0.945 0.945 0.945);
  --t-background-transparent-light: color(display-p3 0 0 0 / 0.039);
  --t-border-color-medium: color(display-p3 0.922 0.922 0.922);
  --t-border-color-light: color(display-p3 0.945 0.945 0.945);
  --t-border-radius-xs: 2px;
  --t-border-radius-sm: 4px;
  --t-border-radius-md: 8px;
  --t-border-radius-lg: 16px;
  --t-border-radius-xl: 20px;
  --t-border-radius-xxl: 40px;
  --t-box-shadow-light:
    0px 2px 4px 0px color(display-p3 0 0 0 / 0.039),
    0px 0px 4px 0px color(display-p3 0 0 0 / 0.078);
  --t-font-color-primary: color(display-p3 0.2 0.2 0.2);
  --t-font-color-secondary: color(display-p3 0.4 0.4 0.4);
  --t-font-color-tertiary: color(display-p3 0.6 0.6 0.6);
  --t-font-color-light: color(display-p3 0.702 0.702 0.702);
  --t-font-color-danger: color(display-p3 0.83 0.329 0.324);
  --t-font-size-xxs: 0.625rem;
  --t-font-size-xs: 0.85rem;
  --t-font-size-sm: 0.92rem;
  --t-font-size-md: 1rem;
  --t-font-size-lg: 1.23rem;
  --t-font-size-xl: 1.54rem;
  --t-font-size-xxl: 1.85rem;
  --t-font-family: Inter, sans-serif;
}

/* Squircle corners: progressive enhancement for browsers supporting
   corner-shape (Chromium 139+). A squircle needs ~2x the radius of a round
   corner to read as the same visual size, so the radius tokens are doubled
   here; other browsers keep the base tokens as plain rounded corners.

   Shape rules:
   - pill, rounded and the *-round tokens are never doubled: they belong to
     elements that keep corner-shape: round (circles, capsules, checkboxes,
     chips, tags) and must look identical in both modes.
   - Opt a subtree out of squircles with --t-corner-shape: round, or a
     single element with corner-shape: round.
   - Nested radii must stay concentric in both modes: derive them from the
     parent radius token minus the inset, e.g.
     calc(var(--t-border-radius-md) - var(--t-spacing-1)).
     The token doubles under squircle while the inset does not, which is
     exactly what concentricity requires. */
@supports (corner-shape: squircle) {
  .light {
    --t-border-radius-xs: 4px;
    --t-border-radius-sm: 8px;
    --t-border-radius-md: 16px;
    --t-border-radius-lg: 32px;
    --t-border-radius-xl: 40px;
    --t-border-radius-xxl: 80px;
  }

  /* Zero specificity on purpose: any component rule can override it. */
  *,
  *::before,
  *::after {
    corner-shape: var(--t-corner-shape, superellipse(2.2));
  }
}

