/* twenty-stack theme module, generated at container start by entrypoint-skin.sh.
   Palette: Szef.AI OS Royal (dark variant). Source: skin/palettes/. Do not edit the generated file.

   How it works: Twenty draws its whole UI from design tokens named --t-* that are defined once under
   .dark{} and .light{}. We override them with html.dark{... !important}, so hover, focus, selection and
   every future Twenty screen follow the palette without us touching Twenty's DOM or its hashed class names.
   tests/contract_test.py fails if Twenty ever renames or drops a token used here. */

/* first paint: Twenty's inline style colours <body> before its CSS tokens exist */
:root { --theme-dark-background-secondary: #070c1b; }

html.dark {
  /* palette primitives, also usable by tenant extras */
  --skin-accent: #eab308;
  --skin-accent-fg: #0a0a0f;
  --skin-accent-text: #f0c040;
  --skin-surface: #060b1a;

  /* surfaces */
  --t-background-primary: #060b1a !important;
  --t-background-secondary: #0e1529 !important;
  --t-background-tertiary: #141d38 !important;
  --t-background-quaternary: #1d2848 !important;
  --t-background-transparent-lighter: rgba(255,255,255,.04) !important;
  --t-background-transparent-light: rgba(255,255,255,.07) !important;
  --t-background-transparent-medium: rgba(234,179,8,.16) !important;
  --t-background-transparent-strong: rgba(234,179,8,.26) !important;

  /* Twenty also reads its raw grey scale in places (app frame, focused cell): alias it to the palette */
  --t-gray-scale-gray1: #060b1a !important;
  --t-gray-scale-gray2: #0e1529 !important;
  --t-gray-scale-gray3: #070c1b !important;
  --t-gray-scale-gray4: #141d38 !important;
  --t-gray-scale-gray5: #1d2848 !important;
  --t-gray-scale-gray6: rgba(212,160,23,.55) !important;
  --t-gray-scale-gray7: #5d6e94 !important;
  --t-gray-scale-gray8: #8497bd !important;
  --t-gray-scale-gray9: #a9b8d9 !important;
  --t-gray-scale-gray10: #a9b8d9 !important;
  --t-gray-scale-gray11: #c9d3ee !important;
  --t-gray-scale-gray12: #eef2ff !important;

  /* borders */
  --t-border-color-light: rgba(212,160,23,.20) !important;
  --t-border-color-medium: rgba(212,160,23,.34) !important;
  --t-border-color-strong: rgba(212,160,23,.55) !important;

  /* text */
  --t-font-color-primary: #eef2ff !important;
  --t-font-color-secondary: #c9d3ee !important;
  --t-font-color-tertiary: #a9b8d9 !important;
  --t-font-color-light: #8497bd !important;
  --t-font-color-extra-light: #5d6e94 !important;
  --t-font-color-on-accent: #0a0a0f !important;

  /* accent: Twenty's blue scale (1 = faintest tint ... 9 = the accent ... 12 = lightest text) derived from ACCENT.
     Steps 1-8 mix the accent into the surface, so the same palette works on dark and light. */
  --t-color-blue: #eab308 !important;
  --t-color-blue1: color-mix(in srgb, #eab308 5%, #060b1a) !important;
  --t-color-blue2: color-mix(in srgb, #eab308 9%, #060b1a) !important;
  --t-color-blue3: color-mix(in srgb, #eab308 16%, #060b1a) !important;
  --t-color-blue4: color-mix(in srgb, #eab308 24%, #060b1a) !important;
  --t-color-blue5: color-mix(in srgb, #eab308 32%, #060b1a) !important;
  --t-color-blue6: color-mix(in srgb, #eab308 42%, #060b1a) !important;
  --t-color-blue7: color-mix(in srgb, #eab308 54%, #060b1a) !important;
  --t-color-blue8: color-mix(in srgb, #eab308 70%, #060b1a) !important;
  --t-color-blue9: #eab308 !important;
  --t-color-blue10: color-mix(in srgb, #eab308 88%, white) !important;
  --t-color-blue11: #f0c040 !important;
  --t-color-blue12: color-mix(in srgb, #f0c040 60%, white) !important;
  --t-accent-accent1: var(--t-color-blue1) !important;
  --t-accent-accent2: var(--t-color-blue2) !important;
  --t-accent-accent3: var(--t-color-blue3) !important;
  --t-accent-accent4: var(--t-color-blue4) !important;
  --t-accent-accent5: var(--t-color-blue5) !important;
  --t-accent-accent6: var(--t-color-blue6) !important;
  --t-accent-accent7: var(--t-color-blue7) !important;
  --t-accent-accent8: var(--t-color-blue8) !important;
  --t-accent-accent9: var(--t-color-blue9) !important;
  --t-accent-accent10: var(--t-color-blue10) !important;
  --t-accent-accent11: var(--t-color-blue11) !important;
  --t-accent-accent12: var(--t-color-blue12) !important;
  --t-accent-primary: var(--t-color-blue5) !important;
  --t-accent-secondary: var(--t-color-blue5) !important;
  --t-accent-tertiary: var(--t-color-blue3) !important;
  --t-accent-quaternary: var(--t-color-blue2) !important;
  --t-accent-accent3570: var(--t-color-blue8) !important;
  --t-accent-accent4060: var(--t-color-blue8) !important;
  --t-background-transparent-blue: color-mix(in srgb, #eab308 30%, transparent) !important;
  --t-border-color-blue: var(--t-color-blue7) !important;
  --t-buttons-secondary-text-color: #f0c040 !important;

  /* "inverted" tokens drive Twenty's solid primary buttons (for example Continue on the login page) */
  --t-background-primary-inverted: #eab308 !important;
  --t-background-primary-inverted-hover: color-mix(in srgb, #eab308 86%, white) !important;
  --t-background-inverted-primary: #eab308 !important;
  --t-background-inverted-secondary: color-mix(in srgb, #eab308 86%, white) !important;
  --t-border-color-inverted: #eab308 !important;
  --t-border-color-secondary-inverted: color-mix(in srgb, #eab308 86%, white) !important;
  --t-font-color-inverted: #0a0a0f !important;

  /* shape and type */
  --t-border-radius-sm: 4px !important;
  --t-border-radius-sm-round: 4px !important;
  --t-border-radius-md: 6px !important;
  --t-border-radius-md-round: 6px !important;
  --t-border-radius-lg: 8px !important;
  --t-border-radius-lg-round: 8px !important;
  --t-border-radius-xl: 12px !important;
  --t-font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
}

html.dark body {
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html.dark ::selection {
  background: color-mix(in srgb, #eab308 40%, transparent);
  color: inherit;
}

/* Scrollbars: colour, and optionally a thin width (SCROLLBAR_SIZE). Twenty hides some scrollbars on purpose with
   scrollbar-width:none and ::-webkit-scrollbar{display:none}: the theme never sets display or scrollbar-width, only the
   ::-webkit-scrollbar width, so those hidden bars stay hidden. Chromium ignores ::-webkit-scrollbar wherever scrollbar-color is
   set (Twenty sets it on its table container), so the first rule resets scrollbar-color to auto when a thin bar is wanted. */
html.dark * { scrollbar-color: auto; --skin-scrollbar: 10px; }
html.dark::-webkit-scrollbar, html.dark ::-webkit-scrollbar { width: 10px; height: 10px; }
html.dark ::-webkit-scrollbar-thumb { background-clip: padding-box; border: calc((10px - 4px) / 2) solid transparent; border-radius: 999px; }
html.dark ::-webkit-scrollbar-track { background: transparent; }
html.dark ::-webkit-scrollbar-thumb { background-color: rgba(255,255,255,.10); }
html.dark *:hover::-webkit-scrollbar-thumb { background-color: rgba(234,179,8,.60); }
html.dark ::-webkit-scrollbar-corner { background: transparent; }
@supports (-moz-appearance: none) {
  html.dark * { scrollbar-color: rgba(255,255,255,.10) transparent; }
  html.dark *:hover { scrollbar-color: rgba(234,179,8,.60) transparent; }
}

/* Motion: this module adds no animation. The few transitions of the extras layer are declared only inside
   @media (prefers-reduced-motion: no-preference). Twenty's own motion is left alone. */

/* twenty-stack theme module: EXTRAS layer (appended to skin.css when EXTRAS=1).
   Pure cosmetics on Twenty's STABLE hooks only: data-testid, aria-current, the semantic class navigation-drawer-item.
   Never hashed class names. If a Twenty upgrade breaks a hook, the worst case is that one decoration disappears:
   nothing here changes layout, behaviour or data. Set EXTRAS=0 to drop the whole layer.
   Rules are one per line on purpose: a rule that uses a variable set to the "off" marker (see defaults.env) is
   deleted at build time by entrypoint-skin.sh. Keep every rule on a single line, and no marker in comments. */

/* 3px accent line along the top edge of the window */
html.dark body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, rgba(212,160,23,.95), transparent); pointer-events: none; z-index: 2147479000; }

/* backdrop (the Royal look of Szef.AI OS): canvas colour plus soft glows and a fine grid. The glows and the grid are two
   fixed, click-through layers ABOVE the app (surfaces stay opaque, so sticky headers and menus never show rows through them).
   The glows use mix-blend-mode screen, which can only lighten: text never loses contrast. */
html.dark, html.dark body { background-color: #050912 !important; }
html.dark::before { content: ""; position: fixed; inset: -6%; z-index: 2147478000; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(660px 660px at 100% 0%, rgba(212,160,23,.40), transparent 70%), radial-gradient(540px 540px at 0% 100%, rgba(96,165,250,.28), transparent 70%), radial-gradient(380px 380px at 52% 48%, rgba(168,85,247,.14), transparent 70%); }
html.dark::after { content: ""; position: fixed; inset: 0; z-index: 2147478001; pointer-events: none; background-image: linear-gradient(rgba(212,160,23,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(212,160,23,.10) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 75% 65% at 100% 0%, #000, transparent 72%); mask-image: radial-gradient(ellipse 75% 65% at 100% 0%, #000, transparent 72%); }

/* editable fields: a visible well, so you can see where to type (inputs, textareas, the value boxes of the record panel).
   Outline by box-shadow, so no field changes size; a focused field keeps Twenty's own accent ring. */
html.dark input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]), html.dark textarea { background-color: #101933; }
html.dark input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]):not(:focus), html.dark textarea:not(:focus) { border-color: rgba(212,160,23,.50); }
html.dark [data-testid="record-fields-widget"] [id^="fields-"] { background-color: #101933; box-shadow: inset 0 0 0 1px rgba(212,160,23,.50); border-radius: 6px; }

/* hover brightens the outline: fields, the value boxes of the record panel, outlined buttons (data-variant is a stable attribute) */
html.dark input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]):not(:focus):hover, html.dark textarea:not(:focus):hover { border-color: rgba(240,192,64,.95); box-shadow: 0 0 0 1px color-mix(in srgb, rgba(240,192,64,.95) 45%, transparent); }
html.dark [data-testid="record-fields-widget"] [id^="fields-"]:hover { outline: 1px solid rgba(240,192,64,.95); outline-offset: -1px; box-shadow: 0 0 0 1px color-mix(in srgb, rgba(240,192,64,.95) 45%, transparent); }
html.dark button[data-variant="secondary"]:hover:not(:disabled), html.dark button[data-variant="outline"]:hover:not(:disabled) { outline: 1px solid rgba(240,192,64,.95); outline-offset: -1px; }

/* table header and footer rows (semantic classes header-cell and footer-cell): their own shade and a line, so the column names
   and the totals do not blend with the rows of data */
html.dark .header-cell, html.dark .footer-cell { background-color: #101a36 !important; }
html.dark .header-cell { box-shadow: inset 0 -1px 0 0 rgba(212,160,23,.50); }
html.dark .header-cell:hover, html.dark .header-cell:hover > [data-select-disable="true"], html.dark .footer-cell:hover, html.dark div:has(+ .footer-cell):hover { background-color: #1b2852 !important; }
html.dark .header-cell > [data-select-disable="true"] { background-color: #101a36 !important; }
html.dark .footer-cell, html.dark div:has(+ .footer-cell) { box-shadow: inset 0 1px 0 0 rgba(212,160,23,.50); }
html.dark div:has(+ .footer-cell) { background-color: #101a36 !important; }

/* text on a filled accent button (the gold Create button): Twenty hard-codes white; use the palette's text-on-accent colour */
html.dark button[data-variant="solid"][data-color="accent"] { color: #0a0a0f !important; }

/* link chips (domains, e-mails): Twenty reserves 18px for a "+N" counter even when there is none, which cut "name.us" to "name..."
   inside a wide column. The chip keeps shrinking with ellipsis when the cell really is too narrow. */
html.dark a[class*="_chip_"] { max-width: 100% !important; }
html.dark a[class*="_chip_"]:hover { background-color: rgba(234,179,8,.20); }
html.dark a[class*="_chip_"]:hover, html.dark [class*="_card_"]:hover { border-color: rgba(240,192,64,.95); }

/* the frame Twenty draws around the hovered table cell is an outline in its token --t-font-color-extra-light (dim grey):
   re-point that token inside the hovered cell, so the frame brightens without touching Twenty's hashed class names */
html.dark [class*="table-cell-"]:hover { --t-font-color-extra-light: rgba(240,192,64,.95); }

/* table text colours, scoped by re-pointing Twenty's own text tokens inside the rows (data) and the header cells (column names),
   so coloured tags, links and icons keep their colours; set both variables to swap or tune data against column names */
html.dark [data-testid^="row-id"] { --t-font-color-primary: #a9b8d9; }
html.dark .header-cell { --t-font-color-tertiary: #eef2ff; }

/* Twenty paints the sticky first cell of the table with a colour copied from its built-in grey scale into an inline style
   (not a token), so tokens cannot reach it: match that exact inline colour and use the palette surface instead.
   If Twenty changes the value this simply stops matching. */
html.dark [class*="table-cell-"][style*="display-p3 .09 .09 .09"] { background-color: #060b1a !important; }

/* table rows: tinted fill and a 2px bar at the left edge of the hovered row (not on selected rows) */
html.dark [data-testid^="row-id"]:not([data-active="true"]):hover > div { background-image: linear-gradient(rgba(234,179,8,.11), rgba(234,179,8,.11)); }
html.dark [data-testid^="row-id"]:not([data-active="true"]):hover > div:first-child { box-shadow: inset 2px 0 0 0 #eab308; }

/* sidebar: hover, active item with a 3px bar, one icon colour */
html.dark a.navigation-drawer-item { position: relative; }
html.dark a.navigation-drawer-item:hover { background-color: rgba(234,179,8,.08); color: #fde68a; }
html.dark a.navigation-drawer-item[aria-current="page"] { background-color: rgba(234,179,8,.15); }
html.dark a.navigation-drawer-item[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 999px; background: #eab308; }
html.dark a.navigation-drawer-item svg { stroke: #f0c040 !important; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes skin-drift { from { transform: translate(-1.5%, -1.5%) scale(1); } to { transform: translate(1.5%, 1.5%) scale(1.05); } }
  @keyframes skin-pulse { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
  html.dark::before { animation: skin-drift 28s ease-in-out infinite alternate; --skin-orbs: radial-gradient(660px 660px at 100% 0%, rgba(212,160,23,.40), transparent 70%), radial-gradient(540px 540px at 0% 100%, rgba(96,165,250,.28), transparent 70%), radial-gradient(380px 380px at 52% 48%, rgba(168,85,247,.14), transparent 70%); }
  html.dark::after { animation: skin-pulse 8s ease-in-out infinite; --skin-grid: rgba(212,160,23,.10); }
  html.dark a.navigation-drawer-item { transition: background-color .15s ease, color .15s ease; }
  html.dark input, html.dark textarea, html.dark [data-testid="record-fields-widget"] [id^="fields-"] { transition: border-color .15s ease, box-shadow .15s ease; --skin-fh: rgba(240,192,64,.95); }
}
/* twenty-stack theme module, generated at container start by entrypoint-skin.sh.
   Palette: Szef.AI OS (light variant). Source: skin/palettes/. Do not edit the generated file.

   How it works: Twenty draws its whole UI from design tokens named --t-* that are defined once under
   .dark{} and .light{}. We override them with html.light{... !important}, so hover, focus, selection and
   every future Twenty screen follow the palette without us touching Twenty's DOM or its hashed class names.
   tests/contract_test.py fails if Twenty ever renames or drops a token used here. */

/* first paint: Twenty's inline style colours <body> before its CSS tokens exist */
:root { --theme-light-background-secondary: #f1f1f5; }

html.light {
  /* palette primitives, also usable by tenant extras */
  --skin-accent: #eab308;
  --skin-accent-fg: #0a0a0f;
  --skin-accent-text: #a16207;
  --skin-surface: #ffffff;

  /* surfaces */
  --t-background-primary: #ffffff !important;
  --t-background-secondary: #f7f7fa !important;
  --t-background-tertiary: #eeeef3 !important;
  --t-background-quaternary: #e4e4ec !important;
  --t-background-transparent-lighter: rgba(10,10,15,.03) !important;
  --t-background-transparent-light: rgba(10,10,15,.06) !important;
  --t-background-transparent-medium: rgba(234,179,8,.20) !important;
  --t-background-transparent-strong: rgba(234,179,8,.30) !important;

  /* Twenty also reads its raw grey scale in places (app frame, focused cell): alias it to the palette */
  --t-gray-scale-gray1: #ffffff !important;
  --t-gray-scale-gray2: #f7f7fa !important;
  --t-gray-scale-gray3: #f1f1f5 !important;
  --t-gray-scale-gray4: #eeeef3 !important;
  --t-gray-scale-gray5: #e4e4ec !important;
  --t-gray-scale-gray6: #a9a9bd !important;
  --t-gray-scale-gray7: #a2a2b2 !important;
  --t-gray-scale-gray8: #767689 !important;
  --t-gray-scale-gray9: #55556a !important;
  --t-gray-scale-gray10: #55556a !important;
  --t-gray-scale-gray11: #33334a !important;
  --t-gray-scale-gray12: #0a0a0f !important;

  /* borders */
  --t-border-color-light: #e3e3ec !important;
  --t-border-color-medium: #d3d3df !important;
  --t-border-color-strong: #a9a9bd !important;

  /* text */
  --t-font-color-primary: #0a0a0f !important;
  --t-font-color-secondary: #33334a !important;
  --t-font-color-tertiary: #55556a !important;
  --t-font-color-light: #767689 !important;
  --t-font-color-extra-light: #a2a2b2 !important;
  --t-font-color-on-accent: #0a0a0f !important;

  /* accent: Twenty's blue scale (1 = faintest tint ... 9 = the accent ... 12 = lightest text) derived from ACCENT.
     Steps 1-8 mix the accent into the surface, so the same palette works on dark and light. */
  --t-color-blue: #eab308 !important;
  --t-color-blue1: color-mix(in srgb, #eab308 5%, #ffffff) !important;
  --t-color-blue2: color-mix(in srgb, #eab308 9%, #ffffff) !important;
  --t-color-blue3: color-mix(in srgb, #eab308 16%, #ffffff) !important;
  --t-color-blue4: color-mix(in srgb, #eab308 24%, #ffffff) !important;
  --t-color-blue5: color-mix(in srgb, #eab308 32%, #ffffff) !important;
  --t-color-blue6: color-mix(in srgb, #eab308 42%, #ffffff) !important;
  --t-color-blue7: color-mix(in srgb, #eab308 54%, #ffffff) !important;
  --t-color-blue8: color-mix(in srgb, #eab308 70%, #ffffff) !important;
  --t-color-blue9: #eab308 !important;
  --t-color-blue10: color-mix(in srgb, #eab308 88%, white) !important;
  --t-color-blue11: #a16207 !important;
  --t-color-blue12: color-mix(in srgb, #a16207 60%, white) !important;
  --t-accent-accent1: var(--t-color-blue1) !important;
  --t-accent-accent2: var(--t-color-blue2) !important;
  --t-accent-accent3: var(--t-color-blue3) !important;
  --t-accent-accent4: var(--t-color-blue4) !important;
  --t-accent-accent5: var(--t-color-blue5) !important;
  --t-accent-accent6: var(--t-color-blue6) !important;
  --t-accent-accent7: var(--t-color-blue7) !important;
  --t-accent-accent8: var(--t-color-blue8) !important;
  --t-accent-accent9: var(--t-color-blue9) !important;
  --t-accent-accent10: var(--t-color-blue10) !important;
  --t-accent-accent11: var(--t-color-blue11) !important;
  --t-accent-accent12: var(--t-color-blue12) !important;
  --t-accent-primary: var(--t-color-blue5) !important;
  --t-accent-secondary: var(--t-color-blue5) !important;
  --t-accent-tertiary: var(--t-color-blue3) !important;
  --t-accent-quaternary: var(--t-color-blue2) !important;
  --t-accent-accent3570: var(--t-color-blue8) !important;
  --t-accent-accent4060: var(--t-color-blue8) !important;
  --t-background-transparent-blue: color-mix(in srgb, #eab308 30%, transparent) !important;
  --t-border-color-blue: var(--t-color-blue7) !important;
  --t-buttons-secondary-text-color: #a16207 !important;

  /* "inverted" tokens drive Twenty's solid primary buttons (for example Continue on the login page) */
  --t-background-primary-inverted: #eab308 !important;
  --t-background-primary-inverted-hover: color-mix(in srgb, #eab308 86%, white) !important;
  --t-background-inverted-primary: #eab308 !important;
  --t-background-inverted-secondary: color-mix(in srgb, #eab308 86%, white) !important;
  --t-border-color-inverted: #eab308 !important;
  --t-border-color-secondary-inverted: color-mix(in srgb, #eab308 86%, white) !important;
  --t-font-color-inverted: #0a0a0f !important;

  /* shape and type */
  --t-border-radius-sm: 4px !important;
  --t-border-radius-sm-round: 4px !important;
  --t-border-radius-md: 6px !important;
  --t-border-radius-md-round: 6px !important;
  --t-border-radius-lg: 8px !important;
  --t-border-radius-lg-round: 8px !important;
  --t-border-radius-xl: 12px !important;
  --t-font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
}

html.light body {
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html.light ::selection {
  background: color-mix(in srgb, #eab308 40%, transparent);
  color: inherit;
}

/* Scrollbars: colour, and optionally a thin width (SCROLLBAR_SIZE). Twenty hides some scrollbars on purpose with
   scrollbar-width:none and ::-webkit-scrollbar{display:none}: the theme never sets display or scrollbar-width, only the
   ::-webkit-scrollbar width, so those hidden bars stay hidden. Chromium ignores ::-webkit-scrollbar wherever scrollbar-color is
   set (Twenty sets it on its table container), so the first rule resets scrollbar-color to auto when a thin bar is wanted. */
html.light * { scrollbar-color: auto; --skin-scrollbar: 10px; }
html.light::-webkit-scrollbar, html.light ::-webkit-scrollbar { width: 10px; height: 10px; }
html.light ::-webkit-scrollbar-thumb { background-clip: padding-box; border: calc((10px - 4px) / 2) solid transparent; border-radius: 999px; }
html.light ::-webkit-scrollbar-track { background: transparent; }
html.light ::-webkit-scrollbar-thumb { background-color: rgba(10,10,15,.16); }
html.light *:hover::-webkit-scrollbar-thumb { background-color: rgba(202,138,4,.65); }
html.light ::-webkit-scrollbar-corner { background: transparent; }
@supports (-moz-appearance: none) {
  html.light * { scrollbar-color: rgba(10,10,15,.16) transparent; }
  html.light *:hover { scrollbar-color: rgba(202,138,4,.65) transparent; }
}

/* Motion: this module adds no animation. The few transitions of the extras layer are declared only inside
   @media (prefers-reduced-motion: no-preference). Twenty's own motion is left alone. */

/* twenty-stack theme module: EXTRAS layer (appended to skin.css when EXTRAS=1).
   Pure cosmetics on Twenty's STABLE hooks only: data-testid, aria-current, the semantic class navigation-drawer-item.
   Never hashed class names. If a Twenty upgrade breaks a hook, the worst case is that one decoration disappears:
   nothing here changes layout, behaviour or data. Set EXTRAS=0 to drop the whole layer.
   Rules are one per line on purpose: a rule that uses a variable set to the "off" marker (see defaults.env) is
   deleted at build time by entrypoint-skin.sh. Keep every rule on a single line, and no marker in comments. */

/* 3px accent line along the top edge of the window */
html.light body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, #ca8a04, transparent); pointer-events: none; z-index: 2147479000; }

/* backdrop (the Royal look of Szef.AI OS): canvas colour plus soft glows and a fine grid. The glows and the grid are two
   fixed, click-through layers ABOVE the app (surfaces stay opaque, so sticky headers and menus never show rows through them).
   The glows use mix-blend-mode screen, which can only lighten: text never loses contrast. */

/* editable fields: a visible well, so you can see where to type (inputs, textareas, the value boxes of the record panel).
   Outline by box-shadow, so no field changes size; a focused field keeps Twenty's own accent ring. */
html.light input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]), html.light textarea { background-color: #f3f3f8; }
html.light input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]):not(:focus), html.light textarea:not(:focus) { border-color: rgba(202,138,4,.55); }
html.light [data-testid="record-fields-widget"] [id^="fields-"] { background-color: #f3f3f8; box-shadow: inset 0 0 0 1px rgba(202,138,4,.55); border-radius: 6px; }

/* hover brightens the outline: fields, the value boxes of the record panel, outlined buttons (data-variant is a stable attribute) */
html.light input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]):not(:focus):hover, html.light textarea:not(:focus):hover { border-color: rgba(161,98,7,.95); box-shadow: 0 0 0 1px color-mix(in srgb, rgba(161,98,7,.95) 45%, transparent); }
html.light [data-testid="record-fields-widget"] [id^="fields-"]:hover { outline: 1px solid rgba(161,98,7,.95); outline-offset: -1px; box-shadow: 0 0 0 1px color-mix(in srgb, rgba(161,98,7,.95) 45%, transparent); }
html.light button[data-variant="secondary"]:hover:not(:disabled), html.light button[data-variant="outline"]:hover:not(:disabled) { outline: 1px solid rgba(161,98,7,.95); outline-offset: -1px; }

/* table header and footer rows (semantic classes header-cell and footer-cell): their own shade and a line, so the column names
   and the totals do not blend with the rows of data */
html.light .header-cell, html.light .footer-cell { background-color: #ececf4 !important; }
html.light .header-cell { box-shadow: inset 0 -1px 0 0 rgba(202,138,4,.55); }
html.light .header-cell > [data-select-disable="true"] { background-color: #ececf4 !important; }
html.light .footer-cell, html.light div:has(+ .footer-cell) { box-shadow: inset 0 1px 0 0 rgba(202,138,4,.55); }
html.light div:has(+ .footer-cell) { background-color: #ececf4 !important; }

/* text on a filled accent button (the gold Create button): Twenty hard-codes white; use the palette's text-on-accent colour */
html.light button[data-variant="solid"][data-color="accent"] { color: #0a0a0f !important; }

/* link chips (domains, e-mails): Twenty reserves 18px for a "+N" counter even when there is none, which cut "name.us" to "name..."
   inside a wide column. The chip keeps shrinking with ellipsis when the cell really is too narrow. */
html.light a[class*="_chip_"] { max-width: 100% !important; }
html.light a[class*="_chip_"]:hover, html.light [class*="_card_"]:hover { border-color: rgba(161,98,7,.95); }

/* the frame Twenty draws around the hovered table cell is an outline in its token --t-font-color-extra-light (dim grey):
   re-point that token inside the hovered cell, so the frame brightens without touching Twenty's hashed class names */

/* table text colours, scoped by re-pointing Twenty's own text tokens inside the rows (data) and the header cells (column names),
   so coloured tags, links and icons keep their colours; set both variables to swap or tune data against column names */

/* Twenty paints the sticky first cell of the table with a colour copied from its built-in grey scale into an inline style
   (not a token), so tokens cannot reach it: match that exact inline colour and use the palette surface instead.
   If Twenty changes the value this simply stops matching. */
html.light [class*="table-cell-"][style*="display-p3 .09 .09 .09"] { background-color: #ffffff !important; }

/* table rows: tinted fill and a 2px bar at the left edge of the hovered row (not on selected rows) */
html.light [data-testid^="row-id"]:not([data-active="true"]):hover > div { background-image: linear-gradient(rgba(234,179,8,.14), rgba(234,179,8,.14)); }
html.light [data-testid^="row-id"]:not([data-active="true"]):hover > div:first-child { box-shadow: inset 2px 0 0 0 #ca8a04; }

/* sidebar: hover, active item with a 3px bar, one icon colour */
html.light a.navigation-drawer-item { position: relative; }
html.light a.navigation-drawer-item:hover { background-color: rgba(234,179,8,.12); color: #854d0e; }
html.light a.navigation-drawer-item[aria-current="page"] { background-color: rgba(234,179,8,.22); }
html.light a.navigation-drawer-item[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 999px; background: #ca8a04; }
html.light a.navigation-drawer-item svg { stroke: #a16207 !important; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes skin-drift { from { transform: translate(-1.5%, -1.5%) scale(1); } to { transform: translate(1.5%, 1.5%) scale(1.05); } }
  @keyframes skin-pulse { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
  html.light a.navigation-drawer-item { transition: background-color .15s ease, color .15s ease; }
  html.light input, html.light textarea, html.light [data-testid="record-fields-widget"] [id^="fields-"] { transition: border-color .15s ease, box-shadow .15s ease; --skin-fh: rgba(161,98,7,.95); }
}
