/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}/*
! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com
*//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: -apple-system, BlinkMacSystemFont, SF Pro Text, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SF Mono, JetBrains Mono, Menlo, Consolas, monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
  :root {
    /* === Semantic tokens === */
    --bg: #fafafa;
    --surface: #ffffff;
    --surface-muted: #f4f4f5;
    --border: #e4e4e7;
    --border-strong: #d4d4d8;
    --fg: #09090b;
    --fg-muted: #52525b;
    --fg-subtle: #71717a;
    --fg-faint: #a1a1aa;
    --accent: #0a0a0a;
    --accent-fg: #fafafa;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --ok: #16a34a;
    --warn: #d97706;
    --radius: 8px;
    --radius-sm: 6px;
    --r-pill: 999px;
    --h-header: 56px;
    --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
    --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
      Helvetica, Arial, sans-serif;

    /* === HSL-tokens для Tailwind/shadcn (`hsl(var(--background))` etc) === */
    --background: 0 0% 98%;
    --foreground: 240 10% 3.9%;
    --muted: 240 5% 96%;
    --muted-foreground: 240 4% 33%;
    --primary: 240 10% 4%;
    --primary-foreground: 0 0% 98%;
    --accent-tw: 240 5% 96%;
    --accent-foreground: 240 10% 3.9%;
    --destructive: 0 72% 51%;
    --destructive-foreground: 0 0% 100%;
    --input: 240 6% 90%;
    --ring: 240 10% 3.9%;
  }

  :root[data-theme="dark"],
  .dark {
    --bg: #09090b;
    --surface: #0f0f11;
    --surface-muted: #18181b;
    --border: #27272a;
    --border-strong: #3f3f46;
    --fg: #fafafa;
    --fg-muted: #a1a1aa;
    --fg-subtle: #71717a;
    --fg-faint: #52525b;
    --accent: #fafafa;
    --accent-fg: #09090b;
    --danger: #ef4444;
    --danger-bg: #3f1d1d;

    --background: 240 10% 4%;
    --foreground: 0 0% 98%;
    --muted: 240 4% 12%;
    --muted-foreground: 240 5% 65%;
    --primary: 0 0% 98%;
    --primary-foreground: 240 10% 4%;
    --accent-tw: 240 4% 12%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 72% 51%;
    --destructive-foreground: 0 0% 98%;
    --input: 240 4% 16%;
    --ring: 0 0% 83%;
  }

  * {
    box-sizing: border-box;
    border-color: var(--border);
  }
  html, body {
    margin: 0;
    padding: 0;
  }
  body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv11", "ss01";
  }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; }
  textarea, input, select { font: inherit; color: inherit; }
  pre { font-family: var(--mono); font-size: 13.5px; margin: 0; white-space: pre-wrap; word-break: break-word; }
  code, .mono { font-family: var(--mono); }
  h1, h2, h3, h4, h5, h6 { letter-spacing: -0.01em; }
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}
@media (min-width: 1320px) {

  .container {
    max-width: 1320px;
  }
}
/* ——— Layout ——— */
.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; width: 100%; }
/* ——— Header ——— */
.app-header {
    position: sticky; top: 0; z-index: 30;
    height: var(--h-header);
    background: color-mix(in oklab, var(--bg) 85%, transparent);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--border);
  }
.app-header-inner {
    height: 100%;
    display: flex; align-items: center; gap: 20px;
  }
.brand {
    font-weight: 600; letter-spacing: -0.01em; font-size: 15px;
    display: inline-flex; align-items: center; gap: 8px;
  }
.brand .dot {
    width: 6px; height: 6px;
    background: var(--fg);
    border-radius: 1px;
    display: inline-block;
  }
.app-nav { display: flex; gap: 4px; }
.app-nav a {
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--fg-muted);
    transition: background-color .12s ease, color .12s ease;
  }
.app-nav a:hover { background: var(--surface-muted); color: var(--fg); }
.app-nav a.active { color: var(--fg); background: var(--surface-muted); }
.user-chip {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13.5px; color: var(--fg-muted);
  }
.user-chip .name { color: var(--fg); font-weight: 500; }
/* ——— Buttons ——— */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 34px; padding: 0 12px;
    font-size: 13.5px; font-weight: 500;
    border: 1px solid var(--border); background: var(--surface); color: var(--fg);
    border-radius: var(--radius-sm); cursor: pointer;
    transition: background-color .12s ease, border-color .12s ease, color .12s ease;
    white-space: nowrap;
  }
.btn:hover { background: var(--surface-muted); }
.btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 88%, var(--fg-muted)); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--surface-muted); }
.btn-danger { color: var(--danger); border-color: var(--border); }
.btn-danger:hover { background: color-mix(in oklab, var(--danger) 8%, var(--surface)); border-color: var(--danger); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 6px; }
.btn-lg { height: 40px; padding: 0 16px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 14px; height: 14px; }
/* ——— Cards ——— */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }
.card-h { padding: 18px 20px 12px; }
.card-h h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.card-h p { margin: 0; font-size: 13.5px; color: var(--fg-muted); }
.card-b { padding: 4px 20px 20px; }
/* ——— Badges ——— */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    height: 22px; padding: 0 8px;
    font-size: 12px; font-weight: 500;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    color: var(--fg-muted);
  }
.badge-outline { background: transparent; }
.badge-solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.badge-secondary { background: var(--surface-muted); color: var(--fg); border-color: var(--border); }
.badge-role { text-transform: lowercase; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-faint); display: inline-block; }
.badge-dot.ok { background: var(--ok); }
.badge-dot.warn { background: var(--warn); }
.badge-dot.idle { background: var(--fg-faint); }
/* ——— Inputs ——— */
.label { display: block; font-size: 13px; font-weight: 500; margin: 0 0 6px; color: var(--fg); }
.hint { font-size: 12.5px; color: var(--fg-subtle); margin-top: 6px; }
.input, .textarea, .select {
    width: 100%;
    /* min-width: 0 — чтобы в flex/grid родителях native select'ы не
       выдавливали ячейку до ширины самой длинной <option>. Без этого
       grid-template-columns "1fr 1fr" делил бы неравномерно. */
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    font-size: 14px;
    color: var(--fg);
    transition: border-color .12s ease, box-shadow .12s ease;
  }
.input:focus, .textarea:focus, .select:focus {
    outline: none;
    border-color: var(--fg);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--fg) 12%, transparent);
  }
.textarea { resize: vertical; min-height: 80px; font-family: var(--sans); }
.textarea.mono { font-family: var(--mono); font-size: 13px; }
.select {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2371717a' stroke-width='1.5'><path d='M4 6l4 4 4-4'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
  }
.field + .field { margin-top: 16px; }
/* В flex/grid контейнерах margin-top ломает выравнивание — spacing
     задаётся родительским gap'ом (.row имеет gap, grid-обёртки — inline). */
.row > .field + .field { margin-top: 0; }
/* ——— Sub-nav (project tabs) ——— */
.subnav {
    border-bottom: 1px solid var(--border);
    display: flex; gap: 0; overflow-x: auto;
  }
.subnav a, .subnav button {
    padding: 12px 14px;
    font-size: 14px; color: var(--fg-muted);
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap;
    background: transparent;
    cursor: pointer;
  }
.subnav a:hover, .subnav button:hover { color: var(--fg); }
.subnav a.active, .subnav button.active {
    color: var(--fg);
    border-bottom-color: var(--fg);
    font-weight: 500;
  }
.subnav a.disabled, .subnav button.disabled {
    color: var(--fg-faint);
    cursor: default;
  }
.subnav a.disabled:hover, .subnav button.disabled:hover { color: var(--fg-faint); }
/* ——— Page heads ——— */
.page-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 20px;
    padding: 32px 0 20px;
  }
.page-head h1 {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
  }
.page-head p {
    margin: 0;
    color: var(--fg-muted);
    max-width: 620px;
    font-size: 14px;
  }
/* ——— Project cards grid ——— */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.project-card {
    display: flex; flex-direction: column; gap: 14px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    transition: border-color .12s ease, background-color .12s ease;
    min-height: 130px;
    color: inherit;
  }
.project-card:hover { border-color: var(--border-strong); }
.project-card .slug { font-family: var(--mono); font-size: 12px; color: var(--fg-subtle); }
.project-card .title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.project-card .meta {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--fg-muted);
    margin-top: auto;
  }
/* ——— Key-Value rows ——— */
.kv {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 8px 12px;
    align-items: center;
    font-size: 13.5px;
  }
.kv dt { color: var(--fg-muted); }
.kv dd { margin: 0; color: var(--fg); }
/* ——— Dropdown ——— */
.ddwrap { position: relative; }
.dd-trigger {
    display: inline-flex; align-items: center; gap: 6px;
    height: 30px; padding: 0 10px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--fg); font-size: 13.5px; cursor: pointer;
  }
.dd-trigger:hover { background: var(--surface-muted); }
.dd-menu {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    padding: 4px; z-index: 40;
  }
:root[data-theme="dark"] .dd-menu, .dark .dd-menu { box-shadow: 0 8px 28px rgba(0,0,0,0.5); }
.dd-item {
    display: flex; flex-direction: column; gap: 2px;
    padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 13.5px;
    color: var(--fg);
  }
.dd-item:hover { background: var(--surface-muted); }
.dd-item .slug { font-family: var(--mono); font-size: 11.5px; color: var(--fg-subtle); }
.dd-sep { height: 1px; background: var(--border); margin: 4px -4px; }
/* ——— Alert ——— */
.alert {
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 12px 14px; font-size: 13.5px;
    display: flex; gap: 10px; align-items: flex-start;
  }
.alert-destructive {
    border-color: color-mix(in oklab, var(--danger) 40%, var(--border));
    background: var(--danger-bg);
    color: var(--danger);
  }
:root[data-theme="dark"] .alert-destructive,
  .dark .alert-destructive { color: #fca5a5; }
/* ——— Dialog ——— */
.backdrop {
    position: fixed; inset: 0; z-index: 100;
    background: color-mix(in oklab, #000 40%, transparent);
    display: flex; align-items: center; justify-content: center; padding: 24px;
    animation: bf-fadeIn .15s ease;
  }
@keyframes bf-fadeIn { from { opacity: 0; } to { opacity: 1; } }
.dialog {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); width: 100%; max-width: 640px;
    max-height: calc(100vh - 48px);
    display: flex; flex-direction: column; overflow: hidden;
    animation: bf-popIn .18s cubic-bezier(.2,.8,.2,1);
  }
.dialog.sm { max-width: 440px; }
@keyframes bf-popIn { from { transform: scale(.98); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.dialog-h {
    padding: 18px 20px 12px;
    border-bottom: 1px solid var(--border);
    position: relative;
  }
.dialog-h h2 { margin: 0 0 4px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.dialog-h p { margin: 0; font-size: 13.5px; color: var(--fg-muted); }
.dialog-close {
    position: absolute; top: 10px; right: 10px;
    height: 30px; width: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    border: none; background: transparent; color: var(--fg-muted);
    cursor: pointer; border-radius: 6px;
  }
.dialog-close:hover { background: var(--surface-muted); color: var(--fg); }
.dialog-b { padding: 18px 20px; overflow-y: auto; }
.dialog-f {
    padding: 14px 20px; border-top: 1px solid var(--border);
    display: flex; justify-content: flex-end; gap: 8px;
    background: var(--surface);
  }
/* ——— Radio cards ——— */
.radio-card.active { border-color: var(--fg); background: var(--surface-muted); }
.radio-card .t { font-weight: 600; font-size: 14px; margin-bottom: 4px; letter-spacing: -0.01em; }
.radio-card .d { font-size: 12.5px; color: var(--fg-muted); line-height: 1.45; }
/* ——— Tables ——— */
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th, table.t td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
  }
table.t th {
    font-weight: 500; color: var(--fg-muted);
    font-size: 12.5px;
    background: var(--surface-muted);
  }
table.t tbody tr.clickable { cursor: pointer; }
table.t tbody tr.clickable:hover { background: var(--surface-muted); }
table.t td.num { text-align: right; font-family: var(--mono); font-size: 12.5px; }
table.t th.num { text-align: right; }
table.t tr:last-child td { border-bottom: none; }
/* ——— Stat cards ——— */
.stat {
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface);
    padding: 16px 18px;
  }
.stat .n {
    font-size: 28px; font-weight: 600;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
  }
.stat .l { color: var(--fg-muted); font-size: 12.5px; margin-top: 2px; }
/* ——— Sticky bar ——— */
.stickybar {
    position: sticky; bottom: 0; z-index: 20;
    background: color-mix(in oklab, var(--bg) 88%, transparent);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    padding: 12px 0; margin-top: 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
  }
/* ——— Theme toggle ——— */
.theme-toggle {
    display: inline-flex; align-items: center; gap: 2px;
    border: 1px solid var(--border); border-radius: var(--r-pill);
    padding: 2px; background: var(--surface);
  }
.theme-toggle button {
    width: 26px; height: 26px;
    border: none; background: transparent;
    border-radius: var(--r-pill);
    color: var(--fg-muted); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
  }
.theme-toggle button:hover { color: var(--fg); }
.theme-toggle button.active { background: var(--surface-muted); color: var(--fg); }
/* ——— Checkbox ——— */
.cb { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; user-select: none; }
.cb input { display: none; }
.cb .box {
    width: 16px; height: 16px;
    border: 1px solid var(--border-strong); border-radius: 4px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface);
  }
.cb input:checked + .box { background: var(--fg); border-color: var(--fg); }
.cb input:checked + .box svg { display: block; color: var(--bg); }
.cb .box svg { display: none; width: 12px; height: 12px; }
/* ——— Tracked fields (story bible anchors) ——— */
.tf {
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface);
    padding: 14px 16px;
    display: flex; flex-direction: column; gap: 6px;
  }
.tf-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tf-name { font-weight: 500; font-size: 13.5px; color: var(--fg); }
.tf-value { font-size: 14px; color: var(--fg); line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.tf-value.empty { color: var(--fg-faint); font-style: italic; }
.tf-note { font-size: 12.5px; color: var(--fg-subtle); }
.tf-note::before { content: "↳ "; color: var(--fg-faint); }
.tf-badge {
    display: inline-flex; align-items: center; gap: 5px;
    height: 22px; padding: 0 8px;
    font-size: 11.5px; font-weight: 500;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-muted);
    color: var(--fg-muted);
    text-transform: lowercase; letter-spacing: 0.02em;
  }
.tf-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-faint); }
.tf-badge.known { color: var(--ok); border-color: color-mix(in oklab, var(--ok) 30%, var(--border)); background: color-mix(in oklab, var(--ok) 8%, var(--surface)); }
.tf-badge.known .dot { background: var(--ok); }
.tf-badge.assumed { color: var(--warn); border-color: color-mix(in oklab, var(--warn) 30%, var(--border)); background: color-mix(in oklab, var(--warn) 8%, var(--surface)); }
.tf-badge.assumed .dot { background: var(--warn); }
.tf-badge.gap { color: var(--fg-faint); }
.tf-edit {
    display: inline-flex; align-items: center; gap: 4px;
    height: 24px; padding: 0 8px;
    font-size: 12px; color: var(--fg-muted);
    border: 1px solid transparent; background: transparent;
    border-radius: 6px; cursor: pointer;
  }
.tf-edit:hover { background: var(--surface-muted); color: var(--fg); }
/* ——— Progress rows (extract dialog) ——— */
.agent-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 13.5px;
  }
.agent-row + .agent-row { margin-top: 8px; }
.agent-row .name { flex: 1; color: var(--fg); font-weight: 500; }
.agent-row .status { font-size: 12px; color: var(--fg-muted); }
.agent-row.done { border-color: color-mix(in oklab, var(--ok) 30%, var(--border)); background: color-mix(in oklab, var(--ok) 5%, var(--surface)); }
.agent-row.failed { border-color: color-mix(in oklab, var(--danger) 40%, var(--border)); background: var(--danger-bg); color: var(--danger); }
.agent-row.running { border-color: var(--border-strong); }
.agent-row.\!running { border-color: var(--border-strong) !important; }
.agent-row .spin {
    width: 14px; height: 14px;
    border: 2px solid var(--fg-faint);
    border-top-color: var(--fg);
    border-radius: 50%;
    animation: bf-spin .9s linear infinite;
  }
@keyframes bf-spin { to { transform: rotate(360deg); } }
/* ——— Misc ——— */
.divider { height: 1px; background: var(--border); margin: 20px 0; border: none; }
.muted { color: var(--fg-muted); }
.subtle { color: var(--fg-subtle); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 8px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.mono-sm { font-family: var(--mono); font-size: 12px; color: var(--fg-subtle); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.visible {
  visibility: visible;
}
.collapse {
  visibility: collapse;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.sticky {
  position: sticky;
}
.inset-0 {
  inset: 0px;
}
.left-2 {
  left: 0.5rem;
}
.left-\[50\%\] {
  left: 50%;
}
.right-4 {
  right: 1rem;
}
.top-4 {
  top: 1rem;
}
.top-\[50\%\] {
  top: 50%;
}
.z-50 {
  z-index: 50;
}
.-mx-1 {
  margin-left: -0.25rem;
  margin-right: -0.25rem;
}
.my-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.ml-2 {
  margin-left: 0.5rem;
}
.mt-0\.5 {
  margin-top: 0.125rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-10 {
  margin-top: 2.5rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mt-8 {
  margin-top: 2rem;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.table {
  display: table;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.h-10 {
  height: 2.5rem;
}
.h-3\.5 {
  height: 0.875rem;
}
.h-4 {
  height: 1rem;
}
.h-8 {
  height: 2rem;
}
.h-9 {
  height: 2.25rem;
}
.h-px {
  height: 1px;
}
.min-h-screen {
  min-height: 100vh;
}
.w-3\.5 {
  width: 0.875rem;
}
.w-4 {
  width: 1rem;
}
.w-9 {
  width: 2.25rem;
}
.w-full {
  width: 100%;
}
.min-w-\[12rem\] {
  min-width: 12rem;
}
.max-w-lg {
  max-width: 32rem;
}
.flex-1 {
  flex: 1 1 0%;
}
.caption-bottom {
  caption-side: bottom;
}
.translate-x-\[-50\%\] {
  --tw-translate-x: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.translate-y-\[-50\%\] {
  --tw-translate-y: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.cursor-pointer {
  cursor: pointer;
}
.select-none {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.flex-col {
  flex-direction: column;
}
.flex-col-reverse {
  flex-direction: column-reverse;
}
.items-start {
  align-items: flex-start;
}
.items-center {
  align-items: center;
}
.justify-end {
  justify-content: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-8 {
  gap: 2rem;
}
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));
}
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}
.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}
.overflow-auto {
  overflow: auto;
}
.overflow-hidden {
  overflow: hidden;
}
.whitespace-nowrap {
  white-space: nowrap;
}
.break-all {
  word-break: break-all;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: var(--radius);
}
.rounded-md {
  border-radius: calc(var(--radius) - 2px);
}
.rounded-sm {
  border-radius: calc(var(--radius) - 4px);
}
.border {
  border-width: 1px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-border {
  border-color: hsl(var(--input));
}
.border-destructive\/50 {
  border-color: hsl(var(--destructive) / 0.5);
}
.border-foreground {
  border-color: hsl(var(--foreground));
}
.border-input {
  border-color: hsl(var(--input));
}
.border-transparent {
  border-color: transparent;
}
.bg-background {
  background-color: hsl(var(--background));
}
.bg-black\/40 {
  background-color: rgb(0 0 0 / 0.4);
}
.bg-border {
  background-color: hsl(var(--input));
}
.bg-destructive {
  background-color: hsl(var(--destructive));
}
.bg-muted {
  background-color: hsl(var(--muted));
}
.bg-primary {
  background-color: hsl(var(--primary));
}
.p-1 {
  padding: 0.25rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-5 {
  padding: 1.25rem;
}
.p-6 {
  padding: 1.5rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-2\.5 {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-3\.5 {
  padding-left: 0.875rem;
  padding-right: 0.875rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}
.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.pl-8 {
  padding-left: 2rem;
}
.pr-2 {
  padding-right: 0.5rem;
}
.pt-0 {
  padding-top: 0px;
}
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.align-middle {
  vertical-align: middle;
}
.font-mono {
  font-family: ui-monospace, SF Mono, JetBrains Mono, Menlo, Consolas, monospace;
}
.text-2xl {
  font-size: 24px;
  line-height: 32px;
}
.text-base {
  font-size: 15px;
  line-height: 22px;
}
.text-lg {
  font-size: 17px;
  line-height: 26px;
}
.text-sm {
  font-size: 13.5px;
  line-height: 20px;
}
.text-xs {
  font-size: 12px;
  line-height: 16px;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.uppercase {
  text-transform: uppercase;
}
.italic {
  font-style: italic;
}
.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);
}
.leading-none {
  line-height: 1;
}
.tracking-tight {
  letter-spacing: -0.025em;
}
.text-destructive {
  color: hsl(var(--destructive));
}
.text-destructive-foreground {
  color: hsl(var(--destructive-foreground));
}
.text-foreground {
  color: hsl(var(--foreground));
}
.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}
.text-primary-foreground {
  color: hsl(var(--primary-foreground));
}
.underline {
  text-decoration-line: underline;
}
.underline-offset-4 {
  text-underline-offset: 4px;
}
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.opacity-70 {
  opacity: 0.7;
}
.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-md {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.outline-none {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.outline {
  outline-style: solid;
}
.ring-offset-background {
  --tw-ring-offset-color: hsl(var(--background));
}
.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);
}
.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-sm {
  --tw-backdrop-blur: blur(4px);
  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, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-200 {
  transition-duration: 200ms;
}
.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
@keyframes enter {

  from {
    opacity: var(--tw-enter-opacity, 1);
    transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0));
  }
}
@keyframes exit {

  to {
    opacity: var(--tw-exit-opacity, 1);
    transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));
  }
}
.duration-200 {
  animation-duration: 200ms;
}
.ease-in-out {
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.ease-out {
  animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
.\!running {
  animation-play-state: running !important;
}
.running {
  animation-play-state: running;
}

/*
 * Дизайн-токены — портированы из Ndesign (zinc-палитра, semantic naming).
 * Поддерживаем оба формата:
 *   --bg / --fg / --surface     — semantic классы (.btn, .card, ...)
 *   --background / --foreground — Tailwind через hsl(var(--*)) (для shadcn)
 * Theme switching через `data-theme="dark"` на <html> (старый класс `.dark`
 * тоже работает — defensive против residual mounted state).
 */

/*
 * Semantic компоненты дизайна (полный порт из Ndesign).
 * Используются напрямую в JSX: <button className="btn btn-primary">.
 */
.file\:border-0::file-selector-button {
  border-width: 0px;
}
.file\:bg-transparent::file-selector-button {
  background-color: transparent;
}
.file\:text-sm::file-selector-button {
  font-size: 13.5px;
  line-height: 20px;
}
.file\:font-medium::file-selector-button {
  font-weight: 500;
}
.placeholder\:text-muted-foreground::-moz-placeholder {
  color: hsl(var(--muted-foreground));
}
.placeholder\:text-muted-foreground::placeholder {
  color: hsl(var(--muted-foreground));
}
.hover\:bg-destructive\/90:hover {
  background-color: hsl(var(--destructive) / 0.9);
}
.hover\:bg-muted:hover {
  background-color: hsl(var(--muted));
}
.hover\:bg-muted\/50:hover {
  background-color: hsl(var(--muted) / 0.5);
}
.hover\:bg-muted\/60:hover {
  background-color: hsl(var(--muted) / 0.6);
}
.hover\:bg-muted\/70:hover {
  background-color: hsl(var(--muted) / 0.7);
}
.hover\:bg-primary\/90:hover {
  background-color: hsl(var(--primary) / 0.9);
}
.hover\:text-foreground:hover {
  color: hsl(var(--foreground));
}
.hover\:underline:hover {
  text-decoration-line: underline;
}
.hover\:opacity-100:hover {
  opacity: 1;
}
.focus\:bg-accent:focus {
  background-color: hsl(var(--accent-tw));
}
.focus\:text-accent-foreground:focus {
  color: hsl(var(--accent-foreground));
}
.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.focus\:ring-2:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus\:ring-ring:focus {
  --tw-ring-color: hsl(var(--ring));
}
.focus\:ring-offset-2:focus {
  --tw-ring-offset-width: 2px;
}
.focus-visible\:outline-none:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.focus-visible\:ring-2:focus-visible {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus-visible\:ring-ring:focus-visible {
  --tw-ring-color: hsl(var(--ring));
}
.focus-visible\:ring-offset-2:focus-visible {
  --tw-ring-offset-width: 2px;
}
.disabled\:pointer-events-none:disabled {
  pointer-events: none;
}
.disabled\:cursor-not-allowed:disabled {
  cursor: not-allowed;
}
.disabled\:opacity-50:disabled {
  opacity: 0.5;
}
.peer:disabled ~ .peer-disabled\:cursor-not-allowed {
  cursor: not-allowed;
}
.peer:disabled ~ .peer-disabled\:opacity-70 {
  opacity: 0.7;
}
.data-\[disabled\]\:pointer-events-none[data-disabled] {
  pointer-events: none;
}
.data-\[state\=selected\]\:bg-muted[data-state="selected"] {
  background-color: hsl(var(--muted));
}
.data-\[disabled\]\:opacity-50[data-disabled] {
  opacity: 0.5;
}
.data-\[state\=open\]\:animate-in[data-state="open"] {
  animation-name: enter;
  animation-duration: 150ms;
  --tw-enter-opacity: initial;
  --tw-enter-scale: initial;
  --tw-enter-rotate: initial;
  --tw-enter-translate-x: initial;
  --tw-enter-translate-y: initial;
}
.data-\[state\=closed\]\:animate-out[data-state="closed"] {
  animation-name: exit;
  animation-duration: 150ms;
  --tw-exit-opacity: initial;
  --tw-exit-scale: initial;
  --tw-exit-rotate: initial;
  --tw-exit-translate-x: initial;
  --tw-exit-translate-y: initial;
}
.data-\[state\=closed\]\:fade-out-0[data-state="closed"] {
  --tw-exit-opacity: 0;
}
.data-\[state\=open\]\:fade-in-0[data-state="open"] {
  --tw-enter-opacity: 0;
}
.data-\[state\=closed\]\:zoom-out-95[data-state="closed"] {
  --tw-exit-scale: .95;
}
.data-\[state\=open\]\:zoom-in-95[data-state="open"] {
  --tw-enter-scale: .95;
}
.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state="closed"] {
  --tw-exit-translate-x: -50%;
}
.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state="closed"] {
  --tw-exit-translate-y: -48%;
}
.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state="open"] {
  --tw-enter-translate-x: -50%;
}
.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state="open"] {
  --tw-enter-translate-y: -48%;
}
@media (min-width: 640px) {

  .sm\:max-w-xl {
    max-width: 36rem;
  }

  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm\:flex-row {
    flex-direction: row;
  }

  .sm\:justify-end {
    justify-content: flex-end;
  }

  .sm\:space-x-2 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(0.5rem * var(--tw-space-x-reverse));
    margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
  }

  .sm\:rounded-lg {
    border-radius: var(--radius);
  }

  .sm\:text-left {
    text-align: left;
  }
}
@media (min-width: 1024px) {

  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.\[\&\:has\(svg\)\]\:pl-11:has(svg) {
  padding-left: 2.75rem;
}
.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div {
  --tw-translate-y: -3px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.\[\&\>svg\]\:absolute>svg {
  position: absolute;
}
.\[\&\>svg\]\:left-4>svg {
  left: 1rem;
}
.\[\&\>svg\]\:top-4>svg {
  top: 1rem;
}
.\[\&\>svg\]\:text-destructive>svg {
  color: hsl(var(--destructive));
}
.\[\&\>svg\]\:text-foreground>svg {
  color: hsl(var(--foreground));
}
.\[\&_p\]\:leading-relaxed p {
  line-height: 1.625;
}
.\[\&_tr\:last-child\]\:border-0 tr:last-child {
  border-width: 0px;
}
.\[\&_tr\]\:border-b tr {
  border-bottom-width: 1px;
}

