/*
  Blueprint: Overlap CRM in Overlap UI's Neo-brutal style (not part of upstream Twenty).
  Tim picked this direction on 2026-11-30 and asked to switch between it and Atrium.

  What makes it Blueprint
  - Every part has an outline and a hard shadow: a solid block with no blur, down and to
    the right. A press slides the part into its shadow. Hover changes color only.
  - Flat fills on grid paper. No gradients, no frosted glass.
  - Table headers and the labels on a record's blocks are solid ink, like the tags on a
    drawing.

  How it works: brand.css loads first and is a complete look (Atrium). Every rule here starts
  with html[data-ou-style='blueprint'], so this file does nothing until ou-style.js puts that
  word on <html>. It sets Twenty's --t-* variables again, sets the --ob-* variables the
  shared parts in brand.css read, and adds outlines and hard shadows to parts Twenty marks
  with a stable name. Those names (.table-row, .header-cell, .widget, data-click-outside-id,
  the data-variant and data-color on a button) are the ones Twenty's own alternate theme
  uses (twenty-front/src/modules/salesfarce/styles), so they hold across Twenty versions.

  Three color schemes, as in overlap-ui/looks/neobrutal.css:
    Seafoam (light, the default)  black outline and shadow, a seafoam main button, ice grid paper
    Pill    (light)               Overlap's round shapes, slate outline, steel-blue shadow,
                                  a steel-blue main button, dotted paper
    Night   (dark mode)           slate panels on black, ice outlines, steel-blue shadow,
                                  a seafoam main button

  Rules this file keeps (Tim, 2026-11-19)
  - Only the seven brand colors, see-through versions of them, or a mix of two.
  - A hard shadow is always darker than the part above it, in every state. A black part has
    none. One exception Tim asked for by name: in Night the slate panels keep a steel-blue
    block. Every button there is white, ice, or seafoam, so the block is darker than each.
*/

/* ───────────── Shapes and sizes, every scheme ───────────── */
html[data-ou-style='blueprint'] {
  --bp-line: 2px;      /* the outline */
  --bp-off: 4px;       /* the hard shadow under a panel */
  --bp-off-s: 2px;     /* the hard shadow under a button, a chip, or a card on a board */
  --bp-press: 90ms;

  --t-corner-shape: round;
  --t-border-radius-xs: 3px;
  --t-border-radius-sm: 5px;
  --t-border-radius-sm-round: 3px;
  --t-border-radius-md: 5px;
  --t-border-radius-md-round: 5px;
  --t-border-radius-lg: 5px;
  --t-border-radius-lg-round: 5px;
  --t-border-radius-xl: 8px;
  --tw-button-radius: 5px;
  --t-blur-light: none;
  --t-blur-medium: none;
  --t-blur-strong: none;

  --ob-r-card: 8px;
  --ob-r-row: 5px;
  /* A wider gutter than Atrium's: room for the hard shadows, and the grid paper shows. */
  --ob-gap: 14px;
  --ob-card-line: var(--bp-line);
  --ob-panel-blur: none;
  --ob-card-edge: var(--bp-ol);
  --ob-panel: var(--t-background-primary);
  --ob-card-shadow: var(--bp-off) var(--bp-off) 0 0 var(--bp-sh);
  --ob-current: var(--bp-on);
  --ob-on-current: var(--bp-on-ink);
  --ob-current-icon: var(--bp-on-ink);
  --ob-current-ring: inset 0 0 0 var(--bp-line) var(--bp-ol), var(--bp-off-s) var(--bp-off-s) 0 0 var(--bp-sh);
  --ob-block-line: var(--bp-line);
  --ob-block-edge: var(--bp-ol);
  --ob-block-radius: var(--t-border-radius-md);
  --ob-block-shadow: var(--bp-off) var(--bp-off) 0 0 var(--bp-sh);
  --ob-block-head: var(--bp-head);
  --ob-block-head-ink: var(--bp-head-ink);
  --ob-label-size: 10.5px;
  --ob-label-space: 0.09em;
  --ob-label-case: uppercase;
  --ob-section-head: color-mix(in srgb, var(--ol-steel) 20%, transparent);
  --ob-section-head-hover: color-mix(in srgb, var(--ol-steel) 32%, transparent);
  --ob-section-edge: var(--bp-ol);
  --ob-section-radius: 0 var(--t-border-radius-xs) var(--t-border-radius-xs) 0;
  --ob-pinned-fill: color-mix(in srgb, var(--ol-seafoam) 26%, transparent);
  --ob-pinned-hover: color-mix(in srgb, var(--ol-seafoam) 26%, var(--t-background-primary));

  /* Hard shadows everywhere Twenty asks for a soft one. */
  --t-box-shadow-color: transparent;
  --t-box-shadow-light: var(--bp-off-s) var(--bp-off-s) 0 0 var(--bp-sh);
  --t-box-shadow-strong: var(--bp-off) var(--bp-off) 0 0 var(--bp-sh-pop);
  --t-box-shadow-super-heavy: 8px 8px 0 0 var(--bp-sh-pop);
  --t-box-shadow-sidebar: none;
  --t-box-shadow-bottom-panel: 0 calc(var(--bp-line) * -1) 0 0 var(--bp-ol);
  --t-box-shadow-underline: 0 var(--bp-line) 0 0 var(--bp-ol);
}

/* ───────────── Seafoam: the light scheme ───────────── */
html.light[data-ou-style='blueprint'] {
  /* "ol" is the outline, "sh" the hard shadow, "sh-pop" the shadow under a menu or a dialog.
     "key" is a plain button, "main" the main button, "on" what is chosen or current,
     "head" a table header or a block's label. */
  --bp-ol: var(--ol-black);
  --bp-sh: var(--ol-black);
  --bp-sh-pop: var(--ol-black);
  --bp-key: var(--ol-white);
  --bp-key-ink: var(--ol-black);
  --bp-key-hover: var(--ol-ice);
  --bp-main: var(--ol-seafoam);
  --bp-main-ink: var(--ol-black);
  --bp-main-hover: color-mix(in srgb, var(--ol-seafoam) 50%, var(--ol-white));
  --bp-on: var(--ol-seafoam);
  --bp-on-ink: var(--ol-black);
  --bp-head: var(--ol-black);
  --bp-head-ink: var(--ol-white);
  --bp-hair: color-mix(in srgb, var(--ol-black) 26%, transparent);
  --bp-grid: var(--ol-white);
  --bp-paper: var(--ol-ice);

  /* gray3 is the app's ground (see brand.css): grid paper. */
  --t-gray-scale-gray3: linear-gradient(var(--bp-grid) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, var(--bp-grid) 1px, transparent 1px) 0 0 / 28px 28px, var(--bp-paper);
  --t-gray-scale-gray11: var(--ol-slate);
  --t-gray-scale-gray12: var(--ol-black);

  --t-background-primary: var(--ol-white);
  --t-background-secondary: color-mix(in srgb, var(--ol-ice) 34%, var(--ol-white));
  --t-background-tertiary: color-mix(in srgb, var(--ol-ice) 68%, var(--ol-white));
  --t-background-quaternary: var(--ol-ice);
  --t-background-inverted-primary: var(--ol-black);
  --t-background-inverted-secondary: var(--ol-slate);
  --t-background-primary-inverted: var(--ol-black);
  --t-background-primary-inverted-hover: var(--ol-slate);
  --t-background-danger: var(--ol-ice);
  --t-background-danger-solid: var(--ol-black);
  --t-background-transparent-primary: var(--ol-white);
  --t-background-transparent-secondary: var(--ol-white);
  --t-background-transparent-strong: color-mix(in srgb, var(--ol-black) 16%, transparent);
  --t-background-transparent-medium: color-mix(in srgb, var(--ol-black) 9%, transparent);
  --t-background-transparent-light: color-mix(in srgb, var(--ol-black) 5%, transparent);
  --t-background-transparent-lighter: color-mix(in srgb, var(--ol-black) 2.5%, transparent);
  --t-background-transparent-danger: color-mix(in srgb, var(--ol-black) 9%, transparent);
  --t-background-transparent-blue: color-mix(in srgb, var(--ol-seafoam) 40%, transparent);
  --t-background-transparent-success: color-mix(in srgb, var(--ol-seafoam) 40%, transparent);
  --t-background-overlay-primary: color-mix(in srgb, var(--ol-black) 55%, transparent);
  --t-background-overlay-secondary: color-mix(in srgb, var(--ol-black) 32%, transparent);

  --t-border-color-strong: var(--bp-ol);
  --t-border-color-medium: var(--bp-ol);
  --t-border-color-light: var(--bp-hair);
  --t-border-color-secondary-inverted: var(--bp-ol);
  --t-border-color-inverted: var(--bp-ol);
  --t-border-color-danger: var(--bp-ol);
  --t-border-color-blue: var(--bp-ol);

  --t-font-color-primary: var(--ol-black);
  --t-font-color-secondary: var(--ol-slate);
  --t-font-color-tertiary: var(--ol-navy);
  --t-font-color-light: color-mix(in srgb, var(--ol-navy) 62%, var(--ol-steel));
  --t-font-color-extra-light: color-mix(in srgb, var(--ol-steel) 70%, var(--ol-white));
  --t-font-color-inverted: var(--ol-white);
  --t-font-color-danger: var(--ol-black);
  --t-buttons-secondary-text-color: var(--ol-black);

  --t-tooltip-background: var(--ol-black);
  --t-tooltip-color: var(--ol-white);
  --t-tooltip-description-color: var(--ol-ice);

  --t-snack-bar-success-color: var(--ol-black);
  --t-snack-bar-success-background-color: color-mix(in srgb, var(--ol-seafoam) 55%, var(--ol-white));
  --t-snack-bar-error-color: var(--ol-black);
  --t-snack-bar-error-background-color: var(--ol-ice);
  --t-snack-bar-warning-color: var(--ol-black);
  --t-snack-bar-warning-background-color: color-mix(in srgb, var(--ol-steel) 35%, var(--ol-white));
  --t-snack-bar-info-color: var(--ol-black);
  --t-snack-bar-info-background-color: var(--ol-ice);
  --t-snack-bar-default-color: var(--ol-black);
  --t-snack-bar-default-background-color: var(--ol-white);

  /* The solid accent step and Twenty's "blue" (focus, links, a ticked box) are ink here.
     The seafoam main button is set on the button itself, below. */
  --t-accent-accent9: var(--ol-black);
  --t-accent-accent10: var(--ol-slate);
  --t-accent-accent11: var(--ol-slate);
  --t-accent-accent12: var(--ol-black);
  --t-color-blue: var(--ol-black);
  --t-color-blue9: var(--ol-black);
  --t-color-blue10: var(--ol-slate);
  --t-color-blue11: var(--ol-slate);
  --t-color-blue12: var(--ol-black);
}

/* ───────────── Pill: the second light scheme ─────────────
   The same outlines and shadows on Overlap's round shapes. */
html.light[data-ou-style='blueprint'][data-ou-tone='pill'] {
  --t-border-radius-xs: 6px;
  --t-border-radius-sm: 10px;
  --t-border-radius-sm-round: 999px;
  --t-border-radius-md: 14px;
  --t-border-radius-md-round: 14px;
  --t-border-radius-lg: 16px;
  --t-border-radius-lg-round: 16px;
  --t-border-radius-xl: 20px;
  --tw-button-radius: 999px;
  --ob-r-card: 22px;
  --ob-r-row: 999px;

  --bp-ol: var(--ol-slate);
  --bp-sh: var(--ol-steel);
  --bp-sh-pop: var(--ol-navy);
  --bp-key-ink: var(--ol-slate);
  --bp-main: var(--ol-steel);
  --bp-main-ink: var(--ol-black);
  --bp-main-hover: var(--ol-ice);
  --bp-main-sh: var(--ol-navy);
  --bp-on-ink: var(--ol-slate);
  --bp-head: var(--ol-slate);
  --bp-hair: color-mix(in srgb, var(--ol-slate) 30%, transparent);

  --t-gray-scale-gray3: radial-gradient(var(--ol-ice) 1.5px, transparent 2px) 0 0 / 18px 18px, var(--ol-white);
  --t-gray-scale-gray12: var(--ol-slate);
  --t-background-inverted-primary: var(--ol-slate);
  --t-background-inverted-secondary: var(--ol-navy);
  --t-background-primary-inverted: var(--ol-slate);
  --t-background-primary-inverted-hover: var(--ol-navy);
  --t-background-danger-solid: var(--ol-slate);
  --t-font-color-primary: var(--ol-slate);
  --t-font-color-secondary: var(--ol-navy);
  --t-font-color-danger: var(--ol-slate);
  --t-buttons-secondary-text-color: var(--ol-slate);
  --t-tooltip-background: var(--ol-slate);
  --t-accent-accent9: var(--ol-slate);
  --t-accent-accent10: var(--ol-navy);
  --t-accent-accent11: var(--ol-navy);
  --t-accent-accent12: var(--ol-slate);
  --t-color-blue: var(--ol-slate);
  --t-color-blue9: var(--ol-slate);
  --t-color-blue10: var(--ol-navy);
  --t-color-blue11: var(--ol-navy);
  --t-color-blue12: var(--ol-slate);
}

/* ───────────── Night: dark mode ───────────── */
html.dark[data-ou-style='blueprint'] {
  --bp-ol: var(--ol-ice);
  --bp-sh: var(--ol-steel);
  --bp-sh-pop: var(--ol-black);
  --bp-key: var(--ol-white);
  --bp-key-ink: var(--ol-slate);
  --bp-key-hover: var(--ol-ice);
  --bp-main: var(--ol-seafoam);
  --bp-main-ink: var(--ol-slate);
  --bp-main-hover: var(--ol-white);
  --bp-on: var(--ol-seafoam);
  --bp-on-ink: var(--ol-slate);
  --bp-head: var(--ol-ice);
  --bp-head-ink: var(--ol-slate);
  --bp-hair: color-mix(in srgb, var(--ol-ice) 32%, transparent);
  --bp-grid: var(--ol-slate);
  --bp-paper: var(--ol-black);

  --t-gray-scale-gray3: linear-gradient(var(--bp-grid) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, var(--bp-grid) 1px, transparent 1px) 0 0 / 28px 28px, var(--bp-paper);
  --t-gray-scale-gray1: var(--ol-black);
  --t-gray-scale-gray12: var(--ol-white);

  --t-background-primary: var(--ol-slate);
  --t-background-secondary: color-mix(in srgb, var(--ol-navy) 24%, var(--ol-slate));
  --t-background-tertiary: color-mix(in srgb, var(--ol-navy) 55%, var(--ol-slate));
  --t-background-quaternary: var(--ol-navy);
  --t-background-inverted-primary: var(--ol-ice);
  --t-background-inverted-secondary: var(--ol-white);
  --t-background-primary-inverted: var(--ol-ice);
  --t-background-primary-inverted-hover: var(--ol-white);
  --t-background-danger: var(--ol-navy);
  --t-background-danger-solid: var(--ol-ice);
  --t-background-transparent-primary: var(--ol-slate);
  --t-background-transparent-secondary: var(--ol-slate);
  --t-background-transparent-strong: color-mix(in srgb, var(--ol-ice) 18%, transparent);
  --t-background-transparent-medium: color-mix(in srgb, var(--ol-ice) 12%, transparent);
  --t-background-transparent-light: color-mix(in srgb, var(--ol-ice) 7%, transparent);
  --t-background-transparent-lighter: color-mix(in srgb, var(--ol-ice) 4%, transparent);
  --t-background-transparent-danger: color-mix(in srgb, var(--ol-ice) 12%, transparent);
  --t-background-transparent-blue: color-mix(in srgb, var(--ol-seafoam) 22%, transparent);
  --t-background-transparent-success: color-mix(in srgb, var(--ol-seafoam) 22%, transparent);
  --t-background-overlay-primary: color-mix(in srgb, var(--ol-black) 70%, transparent);
  --t-background-overlay-secondary: color-mix(in srgb, var(--ol-black) 45%, transparent);

  --t-border-color-strong: var(--bp-ol);
  --t-border-color-medium: var(--bp-ol);
  --t-border-color-light: var(--bp-hair);
  --t-border-color-secondary-inverted: var(--bp-ol);
  --t-border-color-inverted: var(--bp-ol);
  --t-border-color-danger: var(--bp-ol);
  --t-border-color-blue: var(--ol-seafoam);

  --t-font-color-primary: var(--ol-white);
  --t-font-color-secondary: var(--ol-ice);
  --t-font-color-tertiary: color-mix(in srgb, var(--ol-ice) 60%, var(--ol-steel));
  --t-font-color-light: color-mix(in srgb, var(--ol-ice) 45%, var(--ol-steel));
  --t-font-color-extra-light: color-mix(in srgb, var(--ol-ice) 20%, var(--ol-steel));
  --t-font-color-inverted: var(--ol-slate);
  --t-font-color-danger: var(--ol-white);
  --t-buttons-secondary-text-color: var(--ol-ice);

  --t-tooltip-background: var(--ol-ice);
  --t-tooltip-color: var(--ol-slate);
  --t-tooltip-description-color: var(--ol-navy);

  --t-snack-bar-success-color: var(--ol-slate);
  --t-snack-bar-success-background-color: var(--ol-seafoam);
  --t-snack-bar-error-color: var(--ol-slate);
  --t-snack-bar-error-background-color: var(--ol-ice);
  --t-snack-bar-warning-color: var(--ol-slate);
  --t-snack-bar-warning-background-color: var(--ol-ice);
  --t-snack-bar-info-color: var(--ol-white);
  --t-snack-bar-info-background-color: var(--ol-navy);
  --t-snack-bar-default-color: var(--ol-white);
  --t-snack-bar-default-background-color: var(--ol-slate);

  --t-accent-accent9: var(--ol-seafoam);
  --t-accent-accent10: color-mix(in srgb, var(--ol-seafoam) 70%, var(--ol-white));
  --t-accent-accent11: var(--ol-seafoam);
  --t-accent-accent12: var(--ol-ice);
  --t-color-blue: var(--ol-seafoam);
  --t-color-blue9: var(--ol-seafoam);
  --t-color-blue10: color-mix(in srgb, var(--ol-seafoam) 70%, var(--ol-white));
  --t-color-blue11: var(--ol-seafoam);
  --t-color-blue12: var(--ol-ice);
}

/* ───────────── The menu ───────────── */

/* Room for the hard shadow. The row you are on has a 2-pixel shadow down and to the right.
   The rows used to fill their list edge to edge, 2 pixels apart, and the list hides anything
   outside it: the shadow's right side was cut off and its bottom touched the next row. Every
   row now keeps 3 pixels clear on its right and below it. (Tim, 2026-12-01: "each of those
   elements needs just a little more spacing".) */
html[data-ou-style='blueprint'] .navigation-drawer-item {
  margin-bottom: 3px;
  margin-right: 3px;
}
/* A row under the mouse turns the hover color; it gets no outline, so nothing shifts. */
html[data-ou-style='blueprint'] .navigation-drawer-item:not([aria-current]):hover {
  background: var(--t-background-quaternary);
}
html[data-ou-style='blueprint'] .navigation-drawer-item[aria-current] .navigation-drawer-item-label {
  font-weight: 600;
}
/* Twenty colors a row's icon with its own stroke color; on the seafoam block it is ink. */
html[data-ou-style='blueprint'] .navigation-drawer-item[aria-current] svg {
  stroke: var(--ob-current-icon);
}
/* Group names ("Workspace", "Favorites") read as drawing labels: small capitals. */
html[data-ou-style='blueprint'] .section-title-container {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* ───────────── Buttons ─────────────
   Twenty's button reads --tw-button-* variables and marks itself with data-variant and
   data-color. A chip carries the same two words with other values (primary, secondary), so
   the color list below is what keeps these rules on buttons only.
   An outlined or solid button is a block: outline, hard shadow, and a press that slides into
   the shadow. A ghost or soft button stays flat; a toolbar full of blocks would be noise. */
html[data-ou-style='blueprint'] :is(button, a):is([data-color='neutral'], [data-color='accent'], [data-color='danger'], [data-color='success']):is([data-variant='outline'], [data-variant='solid']) {
  --tw-button-background: var(--bp-key);
  --tw-button-border: var(--bp-ol);
  --tw-button-color: var(--bp-key-ink);
  --tw-button-hover: var(--bp-key-hover);
  --tw-button-active: var(--bp-key-hover);
  --tw-button-font-weight: 600;

  box-shadow: inset 0 0 0 1px var(--bp-ol), var(--bp-off-s) var(--bp-off-s) 0 0 var(--bp-sh);
  transition: translate var(--bp-press), box-shadow var(--bp-press), background-color 140ms;
}
html[data-ou-style='blueprint'] :is(button, a):is([data-color='neutral'], [data-color='accent'], [data-color='danger'], [data-color='success']):is([data-variant='outline'], [data-variant='solid']):active:not([data-disabled]) {
  box-shadow: inset 0 0 0 1px var(--bp-ol), 0 0 0 0 var(--bp-sh);
  translate: var(--bp-off-s) var(--bp-off-s);
}
/* The main button: seafoam (steel-blue in Pill). */
html[data-ou-style='blueprint'] :is(button, a):is([data-color='neutral'], [data-color='accent'], [data-color='success'])[data-variant='solid'] {
  --tw-button-background: var(--bp-main);
  --tw-button-color: var(--bp-main-ink);
  --tw-button-hover: var(--bp-main-hover);
  --tw-button-active: var(--bp-main-hover);

  box-shadow: inset 0 0 0 1px var(--bp-ol), var(--bp-off-s) var(--bp-off-s) 0 0 var(--bp-main-sh, var(--bp-sh));
}
/* A button that deletes is solid ink. Ink is the darkest color, so it has no shadow. */
html[data-ou-style='blueprint'] :is(button, a)[data-color='danger'][data-variant='solid'] {
  --tw-button-background: var(--t-background-primary-inverted);
  --tw-button-color: var(--t-font-color-inverted);
  --tw-button-hover: var(--t-background-primary-inverted-hover);
  --tw-button-active: var(--t-background-primary-inverted-hover);

  box-shadow: none;
}
html[data-ou-style='blueprint'] :is(button, a):is([data-color='neutral'], [data-color='accent'], [data-color='danger'], [data-color='success']):is([data-variant='outline'], [data-variant='solid'])[data-disabled] {
  border-style: dashed;
  box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
  html[data-ou-style='blueprint'] :is(button, a)[data-variant] {
    transition: none;
  }
}

/* ───────────── Fields, boxes to tick, and switches ───────────── */
html[data-ou-style='blueprint'] :is(input:not([type='checkbox'], [type='radio'], [data-grouped], [data-variant='plain']), textarea, [role='button'][aria-haspopup], div:has(> input[data-grouped])) {
  --t-background-transparent-lighter: var(--t-background-primary);
}
html[data-ou-style='blueprint'] [role='checkbox'] {
  --tw-checkbox-border-width: 1.5px;
  --tw-checkbox-border-color: var(--bp-ol);
}
html[data-ou-style='blueprint'] [role='switch'] {
  box-shadow: inset 0 0 0 1.5px var(--bp-ol);
}
html[data-ou-style='blueprint'] [role='switch'][data-checked] {
  background-color: var(--bp-on);
}
html[data-ou-style='blueprint'] [role='switch'] > span {
  background-color: var(--ol-white);
  box-shadow: 0 0 0 1.5px var(--bp-ol);
}
html.dark[data-ou-style='blueprint'] [role='switch'] > span {
  box-shadow: 0 0 0 1.5px var(--ol-slate);
}

/* ───────────── Tags and chips ─────────────
   A tag (a stage, a choice in a field) is a small outlined block. Its fill and its words keep
   the tag's own colors, so a dark tag still has light words. */
html[data-ou-style='blueprint'] :is([style*='--tw-tag-background'], [style*='--tw-status-background']):not([data-variant='ghost'], [data-variant='outline'], [style*='--tw-tag-background: transparent']) {
  box-shadow: inset 0 0 0 1.5px var(--bp-ol);
  font-weight: 600;
}
/* Email and phone chips keep Twenty's thin outline, in the outline color, with square corners. */
html[data-ou-style='blueprint']:not([data-ou-tone='pill']) [data-variant='outline'][data-shape='round'],
html.dark[data-ou-style='blueprint'] [data-variant='outline'][data-shape='round'] {
  border-radius: var(--t-border-radius-sm-round);
}

/* ───────────── Tables ─────────────
   The header row is solid ink. Rows keep only the lines under them. */
html[data-ou-style='blueprint'] .header-cell,
html[data-ou-style='blueprint'] .header-cell .record-table-cell-content,
html[data-ou-style='blueprint'] .header-cell > [data-select-disable] {
  --t-background-primary: var(--bp-head);
  --t-font-color-tertiary: var(--bp-head-ink);
  --t-font-color-light: var(--bp-head-ink);
  --t-font-color-secondary: var(--bp-head-ink);

  background: var(--bp-head);
  color: var(--bp-head-ink);
}
html[data-ou-style='blueprint'] .header-cell .record-table-cell-content {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
html[data-ou-style='blueprint'] .header-cell svg {
  color: var(--bp-head-ink);
  stroke: var(--bp-head-ink);
}
html[data-ou-style='blueprint'] .header-cell [role='checkbox'] {
  --tw-checkbox-border-color: var(--bp-head-ink);
}
html[data-ou-style='blueprint'] .header-cell {
  border-color: var(--bp-head);
}
html[data-ou-style='blueprint'] :is(.table-cell, .table-cell-0-0):where(:not([data-without-right-border])) {
  border-right-color: transparent;
}
html[data-ou-style='blueprint'] .table-row:not([data-active='true'], [data-focused='true']):hover .table-cell:not([data-selected], [data-dragging]) {
  background: var(--t-background-quaternary);
}

/* ───────────── Boards ─────────────
   A card on a board is a block with a small hard shadow. */
html[data-ou-style='blueprint'] [data-click-outside-id='record-board-card'] > div > div[data-selected] {
  background: var(--t-background-primary);
  border-color: var(--bp-ol);
  box-shadow: inset 0 0 0 1px var(--bp-ol), 3px 3px 0 0 var(--bp-sh);
}
html[data-ou-style='blueprint'] [data-click-outside-id='record-board-card'] > div > div[data-selected='false']:hover {
  background: var(--t-background-secondary);
}
html[data-ou-style='blueprint'] [data-click-outside-id='record-board-card'] > div > div[data-selected='true'] {
  background: var(--t-accent-tertiary);
}

/* ───────────── A record: a stack of labeled blocks ─────────────
   brand.css draws each group on a record as a block (see "Structure" there). Here a block has
   the outline, the hard shadow, and a solid ink label, the same label a table header wears.
   The variables are set in the first rule of this file. */

/* Inside the fields block, each group ("Contact", "Texting") starts on a ruled line with its
   name in small capitals, the way a drawing's title block is ruled. */
html[data-ou-style='blueprint'] [data-testid='record-fields-widget'] header {
  border-bottom: var(--bp-line) solid var(--bp-ol);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
html[data-ou-style='blueprint'] [data-testid='record-fields-widget'] header :is(div, span) {
  font-size: inherit;
  font-weight: inherit;
}

/* A lane's header on a board is a block of its own, above its cards. "board-lane-head" is the
   class our copy adds in RecordBoardColumnHeader.tsx.
   Twenty's header row is 40 pixels tall and the head inside it 24, with a white strip inside
   the head that is taller than that: the strip painted over the head's own top and bottom
   outline. Here the row is 52 tall and the head 30, the strip is see-through, and the lane
   keeps 12 pixels on its right and under each block, so every shadow is clear of the next
   part and of the line between lanes. */
html[data-ou-style='blueprint'] [id^='record-board-header-'] {
  height: 52px;
}
html[data-ou-style='blueprint'] div:has(> [data-dnd-sortable-handle] > .board-lane-head) {
  padding: 8px 12px 12px 8px;
}
html[data-ou-style='blueprint'] .board-lane-head {
  background: var(--t-background-primary);
  border: var(--bp-line) solid var(--bp-ol);
  border-radius: var(--t-border-radius-md);
  box-shadow: var(--bp-off-s) var(--bp-off-s) 0 0 var(--bp-sh);
  box-sizing: border-box;
  height: 30px;
  padding: 0 6px 0 3px;
}
html[data-ou-style='blueprint'] .board-lane-head > div {
  background: transparent;
}
html[data-ou-style='blueprint'] [data-record-board-column-id] {
  padding-right: 12px;
}
html[data-ou-style='blueprint'] [data-click-outside-id='record-board-card'] {
  padding-bottom: 12px;
}

/* The buttons at the top right of a page ("Create") sit in two strips, one inside the other,
   that hide anything outside them, and each strip is exactly as big as the buttons. Padding
   gives the shadows room; the matching negative margin keeps each strip where it was. */
html[data-ou-style='blueprint'] [data-click-outside-id='page-action-container'] > div:has([data-command-menu-item-id]),
html[data-ou-style='blueprint'] div:has(> div > [data-command-menu-item-id]) {
  margin: 0 -4px -4px 0;
  padding: 0 4px 4px 0;
}

/* The saved view you are on ("All People · 12") is a block in the "on" color, like the chosen
   row of the menu. Twenty marks it with aria-controls="view-picker-...". */
html[data-ou-style='blueprint'] [role='button'][aria-controls^='view-picker-'] > div {
  background: var(--bp-on);
  box-shadow: inset 0 0 0 var(--bp-line) var(--bp-ol), var(--bp-off-s) var(--bp-off-s) 0 0 var(--bp-sh);
  color: var(--bp-on-ink);
  font-weight: 600;
}
html[data-ou-style='blueprint'] [role='button'][aria-controls^='view-picker-'] > div :is(div, span, svg) {
  color: var(--bp-on-ink);
}

/* ───────────── Menus, dialogs, notices ───────────── */
html[data-ou-style='blueprint'] [data-floating-ui-viewport] > div {
  border-color: var(--bp-ol);
}
html[data-ou-style='blueprint'] [data-testid='dialog-viewport'] > :is([role='dialog'], [role='alertdialog']) {
  border: var(--bp-line) solid var(--bp-ol);
  box-shadow: 8px 8px 0 0 var(--bp-sh-pop);
}
html[data-ou-style='blueprint'] [id^='toast-']:is([role='status'], [role='alert']) {
  border: var(--bp-line) solid var(--bp-ol);
  box-shadow: var(--bp-off) var(--bp-off) 0 0 var(--bp-sh-pop);
}

/* ───────────── What has the keyboard ─────────────
   One clear ring in the outline color, clear of the part's own outline. */
html[data-ou-style='blueprint'] :focus-visible:not(input, textarea, [contenteditable='true']) {
  outline: 2px solid var(--bp-ol);
  outline-offset: 2px;
}

/* ───────────── The workflow editor's canvas ─────────────
   Twenty colors the canvas dots with the medium border color. In Blueprint that is the full
   outline color, so the canvas read as a field of black dots behind the steps (Tim, 2026-12-01:
   "really, really dark"). The dots stay, at about a seventh of the outline's strength. */
html[data-ou-style='blueprint'] .react-flow__background-pattern,
html[data-ou-style='blueprint'] .react-flow__background circle {
  fill: color-mix(in srgb, var(--bp-ol) 14%, transparent) !important;
}

/* ───────────── Workflow tags ─────────────
   A tag button is a white key with the small hard shadow; the picked one is the "on" color with
   its ring (brand.css gives it --ob-current-ring, which here is the outline plus the shadow).
   The row keeps 4 pixels free on the right and under the buttons so no shadow is cut. */
html[data-ou-style='blueprint'] .workflow-tags-bar {
  gap: 10px;
  padding: 12px 20px 14px 16px;
}
html[data-ou-style='blueprint'] .workflow-tag-chip:not([aria-pressed='true']) {
  background: var(--bp-key);
  box-shadow: var(--bp-off-s) var(--bp-off-s) 0 0 var(--bp-sh);
  color: var(--bp-key-ink);
}
@media (hover: hover) {
  html[data-ou-style='blueprint'] .workflow-tag-chip:not([aria-pressed='true']):hover {
    background: var(--bp-key-hover);
  }
}
html[data-ou-style='blueprint'] .workflow-tags-new-button {
  box-shadow: var(--bp-off-s) var(--bp-off-s) 0 0 var(--bp-sh);
  margin: 0 2px 2px 0;
}

/* ───────────── Workflows home grid ─────────────
   A card is a white panel with the outline and the large hard shadow (black under white). The grid
   keeps room on the right and below for the shadow. Pressing a card pushes it into its shadow. */
html[data-ou-style='blueprint'] .workflow-home {
  gap: 20px;
  padding: 20px 28px 32px 20px;
}
html[data-ou-style='blueprint'] .workflow-home-card {
  border-left-color: var(--bp-ol);
  border-left-width: var(--bp-line);
  border-radius: var(--t-border-radius-md);
  box-shadow: inset 6px 0 0 var(--ol-seafoam), var(--bp-off) var(--bp-off) 0 0 var(--bp-sh);
}
html[data-ou-style='blueprint'] .workflow-home-card:active {
  box-shadow: inset 6px 0 0 var(--ol-seafoam), var(--bp-off-s) var(--bp-off-s) 0 0 var(--bp-sh);
  transform: translate(2px, 2px);
}
html[data-ou-style='blueprint'] .workflow-home-card[data-kind='all'] {
  border-color: var(--bp-ol);
}
