/* [next]/internal/font/google/geist_a71539c9.module.css [app-client] (css) */
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/fef07dbb0973bf53-s.12tyk43_3sh9u.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/8a480f0b521d4e75-s.0jzbimsg8vl84.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/53b9e256198e5412-s.0-wfv7uh4i7h9.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/7178b3e590c64307-s.0nx0ww8fni_q3.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Geist Fallback;
  src: local(Arial);
  ascent-override: 95.94%;
  descent-override: 28.16%;
  line-gap-override: 0.0%;
  size-adjust: 104.76%;
}

.geist_a71539c9-module__T19VSG__className {
  font-family: Geist, Geist Fallback;
  font-style: normal;
}

.geist_a71539c9-module__T19VSG__variable {
  --font-geist-sans: "Geist", "Geist Fallback";
}

/* [next]/internal/font/google/geist_mono_8d43a2aa.module.css [app-client] (css) */
@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/5ce348bf30bf5439-s.0zgw-jeven.3w.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/4fa387ec64143e14-s.0wkzw~je483f-.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/6306c77e7c8268e4-s.0rhz0arwfsn~5.woff2") format("woff2");
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/7d817b4c03b0c5f1-s.0l76wvqk9d84w.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/bbc41e54d2fcbd21-s.0k4k9394f2q-k.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/797e433ab948586e-s.p.08e28id.o-okb.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Geist Mono Fallback;
  src: local(Arial);
  ascent-override: 74.67%;
  descent-override: 21.92%;
  line-gap-override: 0.0%;
  size-adjust: 134.59%;
}

.geist_mono_8d43a2aa-module__8Li5zG__className {
  font-family: Geist Mono, Geist Mono Fallback;
  font-style: normal;
}

.geist_mono_8d43a2aa-module__8Li5zG__variable {
  --font-geist-mono: "Geist Mono", "Geist Mono Fallback";
}

/* [project]/packages/fe/app/globals.css [app-client] (css) */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-ordinal: initial;
      --tw-slashed-zero: initial;
      --tw-numeric-figure: initial;
      --tw-numeric-spacing: initial;
      --tw-numeric-fraction: initial;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-ease: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --font-mono: var(--font-geist-mono);
    --shadow-sm: 0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;
    --ease-in-out: cubic-bezier(.4, 0, .2, 1);
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-geist-sans);
    --default-mono-font-family: var(--font-geist-mono);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

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

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

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

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

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

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

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

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

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

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

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

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

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

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

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

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

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .collapse {
    visibility: collapse;
  }

  .visible {
    visibility: visible;
  }

  .sr-only {
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    position: absolute;
    overflow: hidden;
  }

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .static {
    position: static;
  }

  .container {
    width: 100%;
  }

  @media (min-width: 40rem) {
    .container {
      max-width: 40rem;
    }
  }

  @media (min-width: 48rem) {
    .container {
      max-width: 48rem;
    }
  }

  @media (min-width: 64rem) {
    .container {
      max-width: 64rem;
    }
  }

  @media (min-width: 80rem) {
    .container {
      max-width: 80rem;
    }
  }

  @media (min-width: 96rem) {
    .container {
      max-width: 96rem;
    }
  }

  .block {
    display: block;
  }

  .contents {
    display: contents;
  }

  .flex {
    display: flex;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline {
    display: inline;
  }

  .inline-block {
    display: inline-block;
  }

  .inline-flex {
    display: inline-flex;
  }

  .table {
    display: table;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .resize {
    resize: both;
  }

  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }

  .capitalize {
    text-transform: capitalize;
  }

  .uppercase {
    text-transform: uppercase;
  }

  .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, );
  }

  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }

  .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, );
  }

  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .ease-in-out {
    --tw-ease: var(--ease-in-out);
    transition-timing-function: var(--ease-in-out);
  }
}

:root {
  --bg: #fafafa;
  --surface: #fff;
  --surface-2: #f5f5f5;
  --hover: #f4f4f5;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #18181b;
  --text-2: #3f3f46;
  --text-3: #71717a;
  --text-4: #a1a1aa;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-border: #bfdbfe;
  --accent-text: #1e40af;
  --s-open-bg: #eff6ff;
  --s-open-fg: #1e40af;
  --s-open-dot: #2563eb;
  --s-prog-bg: #fefce8;
  --s-prog-fg: #854d0e;
  --s-prog-dot: #ca8a04;
  --s-wait-bg: #fff7ed;
  --s-wait-fg: #9a3412;
  --s-wait-dot: #ea580c;
  --s-done-bg: #ecfdf5;
  --s-done-fg: #065f46;
  --s-done-dot: #059669;
  --s-closed-bg: #f4f4f5;
  --s-closed-fg: #52525b;
  --s-closed-dot: #a1a1aa;
  --p-low-bg: #f4f4f5;
  --p-low-fg: #52525b;
  --p-med-bg: #eff6ff;
  --p-med-fg: #1e40af;
  --p-high-bg: #fff7ed;
  --p-high-fg: #9a3412;
  --p-urg-bg: #fef2f2;
  --p-urg-fg: #991b1b;
  --av-1: #e0e7ff;
  --av-1f: #3730a3;
  --av-2: #fce7f3;
  --av-2f: #9d174d;
  --av-3: #dcfce7;
  --av-3f: #166534;
  --av-4: #fef3c7;
  --av-4f: #92400e;
  --av-5: #e0f2fe;
  --av-5f: #075985;
  --av-6: #ede9fe;
  --av-6f: #5b21b6;
  --r-sm: 4px;
  --r: 6px;
  --r-md: 8px;
  --r-lg: 10px;
  --shadow-pop: 0 1px 2px #0000000a, 0 8px 24px -8px #18181b1f;
  --shadow-sm: 0 1px 2px #0000000a;
  --sidebar-w: 220px;
  --sidebar-w-collapsed: 56px;
  --topbar-h: 48px;
  --ctl-h: 30px;
  --ctl-h-sm: 26px;
  --ctl-h-lg: 38px;
  --ch-1: #2563eb;
  --ch-2: #0d9488;
  --ch-3: #d97706;
  --ch-4: #7c3aed;
  --ch-5: #dc2626;
  --ch-6: #0891b2;
  --ch-7: #65a30d;
  --ch-8: #db2777;
}

[data-theme="dark"] {
  --bg: #09090b;
  --surface: #18181b;
  --surface-2: #27272a;
  --hover: #3f3f46;
  --border: #3f3f46;
  --border-strong: #52525b;
  --text: #fafafa;
  --text-2: #d4d4d8;
  --text-3: #a1a1aa;
  --text-4: #71717a;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-soft: #172554;
  --accent-border: #1e40af;
  --accent-text: #93c5fd;
  --s-open-bg: #172554;
  --s-open-fg: #93c5fd;
  --s-open-dot: #3b82f6;
  --s-prog-bg: #422006;
  --s-prog-fg: #fde68a;
  --s-prog-dot: #eab308;
  --s-wait-bg: #431407;
  --s-wait-fg: #fed7aa;
  --s-wait-dot: #f97316;
  --s-done-bg: #052e16;
  --s-done-fg: #86efac;
  --s-done-dot: #10b981;
  --s-closed-bg: #27272a;
  --s-closed-fg: #a1a1aa;
  --s-closed-dot: #71717a;
  --p-low-bg: #27272a;
  --p-low-fg: #a1a1aa;
  --p-med-bg: #172554;
  --p-med-fg: #93c5fd;
  --p-high-bg: #431407;
  --p-high-fg: #fed7aa;
  --p-urg-bg: #450a0a;
  --p-urg-fg: #fca5a5;
  --av-1: #312e81;
  --av-1f: #c7d2fe;
  --av-2: #831843;
  --av-2f: #fbcfe8;
  --av-3: #14532d;
  --av-3f: #bbf7d0;
  --av-4: #78350f;
  --av-4f: #fde68a;
  --av-5: #0c4a6e;
  --av-5f: #bae6fd;
  --av-6: #4c1d95;
  --av-6f: #ddd6fe;
  --shadow-pop: 0 1px 2px #0000004d, 0 8px 24px -8px #00000080;
  --shadow-sm: 0 1px 2px #0000004d;
  --ch-1: #60a5fa;
  --ch-2: #2dd4bf;
  --ch-3: #fbbf24;
  --ch-4: #a78bfa;
  --ch-5: #f87171;
  --ch-6: #22d3ee;
  --ch-7: #a3e635;
  --ch-8: #f472b6;
}

* {
  box-sizing: border-box;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-geist-sans), system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
}

#__next, #root {
  min-height: 100vh;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  color: inherit;
  background: none;
  border: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

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

.auth-page {
  background: var(--bg);
  min-height: 100vh;
}

.auth-topbar {
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding: 0 28px;
  display: flex;
}

.auth-brand {
  letter-spacing: -.02em;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  display: inline-flex;
}

.auth-language {
  border: 1px solid var(--border);
  border-radius: var(--r);
  min-width: 38px;
  height: 30px;
  color: var(--text-3);
  font-family: var(--font-geist-mono), monospace;
  padding: 0 9px;
  font-size: 11px;
}

.auth-language:hover {
  background: var(--surface);
  color: var(--text);
}

.auth-stage {
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 64px);
  padding: 32px 20px 72px;
  display: flex;
}

.auth-stage.wide {
  align-items: flex-start;
  padding-top: clamp(36px, 7vh, 80px);
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-card.onboarding {
  max-width: 520px;
}

.auth-kicker {
  color: var(--accent);
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 650;
}

.auth-title {
  letter-spacing: -.035em;
  margin: 0;
  font-size: 28px;
  font-weight: 680;
  line-height: 1.2;
}

.auth-subtitle {
  color: var(--text-3);
  margin: 9px 0 28px;
  font-size: 14px;
  line-height: 1.6;
}

.auth-form {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-pop);
  border-radius: 12px;
  padding: 26px;
}

.auth-field {
  margin-bottom: 17px;
  display: block;
}

.auth-label {
  color: var(--text-2);
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
}

.auth-input {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  width: 100%;
  height: 42px;
  color: var(--text);
  border-radius: 7px;
  outline: none;
  padding: 0 12px;
  transition: border-color .12s, box-shadow .12s;
}

.auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.auth-input.invalid {
  border-color: #dc2626;
}

.auth-input:disabled {
  background: var(--surface-2);
  color: var(--text-3);
}

.auth-error {
  color: #dc2626;
  margin-top: 5px;
  font-size: 11px;
}

.auth-actions {
  gap: 10px;
  margin-top: 24px;
  display: flex;
}

.auth-primary, .auth-secondary {
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 620;
  display: inline-flex;
}

.auth-primary {
  background: var(--accent);
  color: #fff;
  flex: 1;
}

.auth-primary:hover {
  background: var(--accent-hover);
}

.auth-secondary {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
}

.auth-primary:disabled, .auth-secondary:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.auth-switch {
  text-align: center;
  color: var(--text-3);
  margin-top: 20px;
  font-size: 13px;
}

.auth-switch a, .auth-link {
  color: var(--accent);
  font-weight: 550;
}

.auth-steps {
  gap: 8px;
  margin-bottom: 26px;
  display: flex;
}

.auth-step {
  background: var(--border);
  border-radius: 999px;
  flex: 1;
  height: 3px;
}

.auth-step.active {
  background: var(--accent);
}

.auth-step-labels {
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: .07em;
  justify-content: space-between;
  margin-top: -16px;
  margin-bottom: 26px;
  font-size: 10px;
  font-weight: 600;
  display: flex;
}

.auth-step-labels .active {
  color: var(--text-2);
}

.auth-notice {
  border-radius: 7px;
  margin-bottom: 17px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
}

.auth-notice.error {
  background: var(--p-urg-bg);
  color: var(--p-urg-fg);
}

.auth-notice.success {
  background: var(--s-done-bg);
  color: var(--s-done-fg);
}

.auth-notice.neutral {
  background: var(--surface-2);
  color: var(--text-2);
}

.password-hint {
  color: var(--text-4);
  margin-top: 6px;
  font-size: 11px;
}

.password-hint.valid {
  color: var(--s-done-fg);
}

.auth-success {
  text-align: center;
  padding: 10px 8px 4px;
}

.auth-success-icon {
  background: var(--s-done-bg);
  width: 48px;
  height: 48px;
  color: var(--s-done-fg);
  border-radius: 50%;
  place-items: center;
  margin: 0 auto 18px;
  font-size: 22px;
  display: grid;
}

.auth-email {
  font-family: var(--font-geist-mono), monospace;
  color: var(--text);
  overflow-wrap: anywhere;
  font-weight: 600;
}

.auth-meta {
  color: var(--text-3);
  align-items: center;
  gap: 8px;
  margin: -12px 0 20px;
  font-size: 12px;
  display: flex;
}

@media (max-width: 600px) {
  .auth-topbar {
    padding: 0 18px;
  }

  .auth-stage, .auth-stage.wide {
    align-items: flex-start;
    padding: 24px 14px 48px;
  }

  .auth-title {
    font-size: 24px;
  }

  .auth-form {
    padding: 20px;
  }

  .auth-actions {
    flex-direction: column-reverse;
  }

  .auth-secondary {
    width: 100%;
  }
}

.embed-page {
  color: var(--text);
  font-family: var(--font-geist-sans), system-ui, -apple-system, sans-serif;
  padding: 20px;
}

.embed-panel {
  max-width: 480px;
  margin: 0 auto;
}

.embed-headline {
  letter-spacing: -.01em;
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 650;
}

.embed-intro {
  color: var(--text-3);
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
}

.embed-form .auth-field {
  margin-bottom: 13px;
}

.embed-textarea {
  resize: vertical;
  height: auto;
  min-height: 84px;
  padding: 10px 12px;
}

.embed-honeypot {
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  position: absolute;
  left: -9999px;
}

.embed-file-btn {
  height: var(--ctl-h);
  border: 1px dashed var(--border-strong);
  color: var(--text-2);
  cursor: pointer;
  border-radius: 7px;
  align-items: center;
  padding: 0 12px;
  font-size: 12px;
  display: inline-flex;
}

.embed-file-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.embed-file-list {
  flex-direction: column;
  gap: 4px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.embed-file-list li {
  color: var(--text-2);
  background: var(--surface-2);
  border-radius: 6px;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  font-size: 12px;
  display: flex;
}

.embed-file-list button {
  color: var(--text-3);
  font-size: 15px;
  line-height: 1;
}

.embed-file-list button:hover {
  color: var(--p-urg-fg);
}

.embed-success, .embed-auth-required, .embed-error {
  text-align: center;
  padding: 24px 8px;
}

.embed-success-icon {
  background: var(--s-done-bg);
  width: 44px;
  height: 44px;
  color: var(--s-done-fg);
  border-radius: 50%;
  place-items: center;
  margin: 0 auto 14px;
  font-size: 20px;
  display: grid;
}

.embed-success-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 650;
}

.embed-success-code {
  color: var(--text-3);
  font-size: 13px;
}

.embed-success-code strong {
  color: var(--text);
  font-family: var(--font-geist-mono), monospace;
}

.embed-open-app {
  margin-top: 10px;
  display: inline-flex;
}

.app {
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  transition: grid-template-columns .18s;
  display: grid;
}

.app.collapsed {
  grid-template-columns: var(--sidebar-w-collapsed) 1fr;
}

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  flex-direction: column;
  height: 100vh;
  display: flex;
  position: sticky;
  top: 0;
  overflow: hidden;
}

.sidebar-brand {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  display: flex;
}

.brand-mark {
  background: var(--text);
  width: 24px;
  height: 24px;
  color: var(--bg);
  font-family: var(--font-geist-mono), monospace;
  border-radius: 6px;
  flex-shrink: 0;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  display: grid;
}

.brand-name {
  letter-spacing: -.01em;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}

.brand-env {
  font-family: var(--font-geist-mono), monospace;
  color: var(--text-4);
  border: 1px solid var(--border);
  white-space: nowrap;
  border-radius: 4px;
  margin-left: auto;
  padding: 2px 6px;
  font-size: 10px;
}

.sidebar-nav {
  flex-direction: column;
  flex: 1;
  gap: 1px;
  padding: 10px 8px;
  display: flex;
  overflow-y: auto;
}

.sidebar-section-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-4);
  padding: 10px 8px 4px;
  font-size: 10px;
  font-weight: 500;
}

.nav-item {
  border-radius: var(--r);
  color: var(--text-2);
  white-space: nowrap;
  cursor: pointer;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  position: relative;
}

.nav-item:hover {
  background: var(--hover);
  color: var(--text);
}

.nav-item.active {
  background: var(--surface-2);
  color: var(--text);
}

.nav-item .nav-icon {
  color: var(--text-3);
  flex-shrink: 0;
}

.nav-item.active .nav-icon {
  color: var(--text);
}

.nav-item .nav-count {
  font-family: var(--font-geist-mono), monospace;
  color: var(--text-3);
  background: var(--surface-2);
  border-radius: 4px;
  margin-left: auto;
  padding: 1px 5px;
  font-size: 11px;
}

.nav-item.active .nav-count {
  background: var(--surface);
  color: var(--text-2);
}

.collapsed .sidebar-brand {
  padding: 0 16px;
}

.collapsed .brand-name, .collapsed .brand-env, .collapsed .sidebar-section-label {
  display: none;
}

.collapsed .nav-item {
  justify-content: center;
  padding: 8px;
}

.collapsed .nav-label, .collapsed .nav-count {
  display: none;
}

.collapsed .sidebar-foot {
  align-items: center;
  padding: 8px;
}

.collapsed .foot-row {
  justify-content: center;
}

.collapsed .foot-label {
  display: none;
}

.sidebar-user {
  border-radius: var(--r);
  background: var(--surface-2);
  align-items: center;
  gap: 10px;
  margin: 0 8px 6px;
  padding: 10px 14px;
  display: flex;
}

.sidebar-user-info {
  min-width: 0;
}

.sidebar-user-name {
  color: var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
}

.sidebar-user-role {
  color: var(--text-3);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
  overflow: hidden;
}

.collapsed .sidebar-user {
  justify-content: center;
  margin: 0 4px 4px;
  padding: 8px;
}

.collapsed .sidebar-user-info {
  display: none;
}

.sidebar-foot {
  border-top: 1px solid var(--border);
  flex-direction: column;
  gap: 2px;
  padding: 10px 8px;
  display: flex;
}

.foot-row {
  border-radius: var(--r);
  color: var(--text-3);
  cursor: pointer;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  font-size: 12px;
  display: flex;
}

.foot-row:hover, .foot-row.active {
  background: var(--hover);
  color: var(--text);
}

.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 20;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  display: flex;
  position: sticky;
  top: 0;
}

.topbar-left {
  align-items: center;
  gap: 8px;
  display: flex;
}

.icon-btn {
  width: var(--ctl-h);
  height: var(--ctl-h);
  border-radius: var(--r);
  color: var(--text-3);
  place-items: center;
  display: grid;
  position: relative;
}

.icon-btn:hover {
  background: var(--hover);
  color: var(--text);
}

.breadcrumb {
  color: var(--text-3);
  align-items: center;
  gap: 6px;
  font-size: 13px;
  display: flex;
}

.breadcrumb .sep {
  color: var(--text-4);
}

.breadcrumb .cur {
  color: var(--text);
  font-weight: 500;
}

.search-global {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg);
  width: 280px;
  color: var(--text-3);
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 5px 10px;
  font-size: 12px;
  display: flex;
}

.search-global kbd {
  font-family: var(--font-geist-mono), monospace;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-3);
  border-radius: 3px;
  margin-left: auto;
  padding: 1px 5px;
  font-size: 10px;
}

.topbar-right {
  align-items: center;
  gap: 4px;
  display: flex;
}

.icon-btn .dot {
  background: var(--accent);
  border: 1.5px solid var(--surface);
  border-radius: 50%;
  width: 6px;
  height: 6px;
  position: absolute;
  top: 6px;
  right: 6px;
}

.main-area {
  background: var(--bg);
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  display: flex;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 20px 24px 48px;
}

.page-head {
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
  display: flex;
}

.page-title {
  letter-spacing: -.015em;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.page-sub {
  color: var(--text-3);
  margin-top: 2px;
  font-size: 13px;
}

.page-actions {
  align-items: center;
  gap: 8px;
  display: flex;
}

.avatar {
  letter-spacing: -.02em;
  border-radius: 50%;
  flex-shrink: 0;
  place-items: center;
  width: 24px;
  height: 24px;
  font-size: 10px;
  font-weight: 600;
  display: grid;
}

.avatar.sm {
  width: 20px;
  height: 20px;
  font-size: 9px;
}

.avatar.md {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.avatar.lg {
  width: 36px;
  height: 36px;
  font-size: 13px;
}

.btn {
  height: var(--ctl-h);
  border-radius: var(--r);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  transition: background 80ms, border-color 80ms;
  display: inline-flex;
}

.btn:hover {
  background: var(--hover);
}

.btn.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn.primary:hover {
  opacity: .9;
}

.btn.accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn.accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn.ghost {
  color: var(--text-2);
  background: none;
  border-color: #0000;
}

.btn.ghost:hover {
  background: var(--hover);
  color: var(--text);
}

.btn.sm {
  height: var(--ctl-h-sm);
  padding: 0 8px;
  font-size: 12px;
}

.btn.lg {
  height: var(--ctl-h-lg);
  padding: 0 16px;
}

.btn.danger {
  color: #ef4444;
  border-color: var(--border);
}

.btn.danger:hover {
  background: var(--p-urg-bg);
  border-color: var(--p-urg-fg);
}

.btn.danger-solid {
  color: #fff;
  background: #dc2626;
  border-color: #dc2626;
  justify-content: center;
}

.btn.danger-solid:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.card-head {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  display: flex;
}

.card-title {
  color: var(--text);
  letter-spacing: -.005em;
  font-size: 13px;
  font-weight: 600;
}

.card-sub {
  color: var(--text-3);
  font-size: 12px;
}

.card-body {
  padding: 14px;
}

.metric-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  display: grid;
}

.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  transition: border-color .1s, box-shadow .1s;
  display: flex;
  position: relative;
}

.metric:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.metric-label {
  color: var(--text-3);
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
}

.metric-value {
  letter-spacing: -.02em;
  font-size: 24px;
  font-weight: 600;
  font-family: var(--font-geist-sans), sans-serif;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

.metric-delta {
  font-size: 11px;
  font-family: var(--font-geist-mono), monospace;
  color: var(--text-3);
  align-items: center;
  gap: 4px;
  display: flex;
}

.metric-delta.up {
  color: #059669;
}

.metric-delta.down {
  color: #dc2626;
}

.visually-hidden {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.report-print-header, .report-print-footer {
  display: none;
}

.report-chart {
  width: 100%;
}

.report-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.report-legend {
  color: var(--text-2);
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 10px;
  font-size: 12px;
  display: flex;
}

.report-legend-item {
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.report-legend-swatch {
  border-radius: 2px;
  flex-shrink: 0;
  width: 9px;
  height: 9px;
}

.report-footnote {
  color: var(--text-3);
  padding: 10px 2px 0;
  font-size: 11.5px;
  line-height: 1.5;
}

.report-truncated-banner {
  background: var(--p-high-bg);
  color: var(--p-high-fg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  font-size: 12.5px;
  display: flex;
}

.badge {
  white-space: nowrap;
  border-radius: 4px;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  display: inline-flex;
}

.badge .bdot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}

.badge.status-open {
  background: var(--s-open-bg);
  color: var(--s-open-fg);
}

.badge.status-open .bdot {
  background: var(--s-open-dot);
}

.badge.status-prog {
  background: var(--s-prog-bg);
  color: var(--s-prog-fg);
}

.badge.status-prog .bdot {
  background: var(--s-prog-dot);
}

.badge.status-wait {
  background: var(--s-wait-bg);
  color: var(--s-wait-fg);
}

.badge.status-wait .bdot {
  background: var(--s-wait-dot);
}

.badge.status-done {
  background: var(--s-done-bg);
  color: var(--s-done-fg);
}

.badge.status-done .bdot {
  background: var(--s-done-dot);
}

.badge.status-closed {
  background: var(--s-closed-bg);
  color: var(--s-closed-fg);
}

.badge.status-closed .bdot {
  background: var(--s-closed-dot);
}

.badge.prio-low {
  background: var(--p-low-bg);
  color: var(--p-low-fg);
}

.badge.prio-med {
  background: var(--p-med-bg);
  color: var(--p-med-fg);
}

.badge.prio-high {
  background: var(--p-high-bg);
  color: var(--p-high-fg);
}

.badge.prio-urg {
  background: var(--p-urg-bg);
  color: var(--p-urg-fg);
}

.badge.neutral {
  background: var(--surface-2);
  color: var(--text-2);
}

.badge.warn {
  background: var(--s-prog-bg);
  color: var(--s-prog-fg);
}

.tbl-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}

.tbl {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

.tbl thead th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 500;
}

.tbl tbody td {
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
  padding: 10px 12px;
}

.tbl tbody tr:last-child td {
  border-bottom: none;
}

.tbl tbody tr {
  transition: background 80ms;
}

.tbl tbody tr:hover {
  background: var(--hover);
  cursor: pointer;
}

.tbl tbody tr.selected {
  background: var(--accent-soft);
}

.tbl tbody tr.selected:hover {
  background: var(--accent-border);
}

.tbl thead th {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.sort-th {
  align-items: center;
  gap: 3px;
  display: inline-flex;
}

.sort-icon {
  opacity: 0;
  color: var(--text-4);
  align-items: center;
  line-height: 0;
  transition: opacity 80ms;
  display: inline-flex;
}

.sort-icon.active {
  opacity: 1;
  color: var(--text);
}

.tbl thead th:hover .sort-icon {
  opacity: .5;
}

.tbl thead th:hover .sort-icon.active {
  opacity: 1;
}

.tbl td.t-id, .tbl td.t-mono {
  font-family: var(--font-geist-mono), monospace;
  color: var(--text-3);
  font-size: 12px;
}

.tbl td.t-title {
  color: var(--text);
  text-overflow: ellipsis;
  max-width: 360px;
  font-weight: 500;
  overflow: hidden;
}

.chk {
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  cursor: pointer;
  border-radius: 3px;
  flex-shrink: 0;
  place-items: center;
  width: 14px;
  height: 14px;
  transition: all 80ms;
  display: inline-grid;
}

.chk.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.chk svg {
  opacity: 0;
  width: 10px;
  height: 10px;
}

.chk.on svg {
  opacity: 1;
}

.chk.mixed {
  background: var(--accent);
  border-color: var(--accent);
}

.chk.mixed:after {
  content: "";
  background: var(--surface);
  border-radius: 1px;
  width: 8px;
  height: 1.5px;
}

.filters-bar {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  display: flex;
}

.filter-chip {
  height: var(--ctl-h);
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 12px;
  transition: all 80ms;
  display: inline-flex;
}

.filter-chip:hover {
  border-color: var(--border-strong);
}

.filter-chip.active {
  border-color: var(--text);
  color: var(--text);
  font-weight: 500;
}

.filter-chip .fc-val {
  color: var(--text);
  font-weight: 500;
}

.search-input {
  height: var(--ctl-h);
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  flex: 1;
  align-items: center;
  gap: 6px;
  min-width: 240px;
  max-width: 360px;
  padding: 0 10px;
  display: flex;
}

.search-input input {
  background: none;
  border: none;
  outline: none;
  flex: 1;
  font-size: 13px;
}

.search-input input::placeholder {
  color: var(--text-4);
}

.bulk-bar {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 7px 12px;
  display: flex;
}

.bulk-bar .bulk-clear {
  background: var(--surface-2);
  width: 20px;
  height: 20px;
  color: var(--text-3);
  border: none;
  border-radius: 5px;
  flex-shrink: 0;
  place-items: center;
  display: grid;
}

.bulk-bar .bulk-clear:hover {
  background: var(--hover);
  color: var(--text);
}

.bulk-bar .bulk-count {
  color: var(--text);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}

.bulk-bar .bulk-sep {
  background: var(--border);
  flex-shrink: 0;
  width: 1px;
  height: 18px;
}

.bulk-bar .bulk-actions {
  align-items: center;
  gap: 6px;
  display: flex;
}

.bulk-picker {
  display: inline-block;
  position: relative;
}

.bulk-bar .bulk-btn {
  height: var(--ctl-h-sm);
  border-radius: var(--r-sm);
  color: var(--text-2);
  white-space: nowrap;
  background: none;
  border: 1px solid #0000;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
}

.bulk-bar .bulk-btn svg:last-child {
  color: var(--text-4);
}

.bulk-bar .bulk-btn:hover, .bulk-bar .bulk-btn.open {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

.bulk-bar .bulk-delete {
  height: var(--ctl-h-sm);
  border-radius: var(--r-sm);
  color: #b91c1c;
  white-space: nowrap;
  background: none;
  border: 1px solid #0000;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
}

.bulk-bar .bulk-delete:hover {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

[data-theme="dark"] .bulk-bar .bulk-delete:hover {
  color: #fca5a5;
  background: #ef44441f;
  border-color: #ef444459;
}

.kanban-grid {
  gap: 10px;
  padding-bottom: 4px;
  display: grid;
  overflow-x: auto;
}

.board-col {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  flex-direction: column;
  min-height: 200px;
  max-height: calc(100vh - 260px);
  padding: 8px;
  transition: background 80ms, border-color 80ms;
  display: flex;
}

.board-col.over {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.board-col-head {
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 10px;
  display: flex;
}

.board-col-body {
  flex-direction: column;
  flex: 1;
  gap: 6px;
  min-height: 40px;
  display: flex;
  overflow-y: auto;
}

.board-col-foot {
  flex-shrink: 0;
  padding-top: 8px;
}

.board-card {
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: grab;
  border-radius: 6px;
  padding: 8px 10px;
  transition: border-color 80ms, box-shadow 80ms;
}

.board-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.board-card.dragging {
  opacity: .5;
}

.board-card.static {
  cursor: default;
}

.board-col-empty {
  text-align: center;
  color: var(--text-4);
  border: 1.5px dashed var(--border);
  border-radius: 6px;
  padding: 20px 10px;
  font-size: 11px;
}

.board-col-skeleton {
  background: var(--surface);
  border: 1px solid var(--border);
  opacity: .5;
  border-radius: 6px;
  height: 64px;
}

.pagination {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  color: var(--text-3);
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  font-size: 12px;
  display: flex;
}

.pagination .pages {
  gap: 2px;
  display: flex;
}

.pg-btn {
  border-radius: var(--r-sm);
  min-width: 24px;
  height: 24px;
  font-family: var(--font-geist-mono), monospace;
  color: var(--text-2);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0 6px;
  font-size: 11px;
}

.pg-btn:hover {
  background: var(--hover);
}

.pg-btn.active {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.pg-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.pop {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
  z-index: 50;
  min-width: 180px;
  padding: 4px;
  position: absolute;
}

.pop-item {
  border-radius: var(--r-sm);
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 13px;
  display: flex;
}

.pop-item:hover {
  background: var(--hover);
  color: var(--text);
}

.pop-item.active {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.pop-sep {
  background: var(--border);
  height: 1px;
  margin: 4px 0;
}

.pop-notif {
  width: min(320px, 100vw - 24px);
  min-width: 320px;
}

.pop-foot {
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--accent);
  cursor: pointer;
  margin-top: 4px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 500;
}

.pop-foot:hover {
  background: var(--hover);
}

.pop-label {
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 6px 10px 4px;
  font-size: 10px;
  font-weight: 500;
}

.modal-scrim {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: 100;
  background: #18181b80;
  place-items: center;
  padding: 24px;
  animation: .12s fade;
  display: grid;
  position: fixed;
  inset: 0;
}

@keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  background: var(--surface);
  border-radius: var(--r-lg);
  flex-direction: column;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  animation: .14s pop;
  display: flex;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px #00000040;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(8px)scale(.99);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.modal-head {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  display: flex;
}

.modal-title {
  font-size: 14px;
  font-weight: 600;
}

.modal-body {
  padding: 18px;
  overflow-y: auto;
}

.modal-foot {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  display: flex;
}

.modal.confirm-modal {
  max-width: 400px;
}

.confirm-body {
  text-align: center;
  padding: 24px 20px 20px;
}

.confirm-icon {
  background: var(--surface-2);
  width: 40px;
  height: 40px;
  color: var(--text-2);
  border-radius: 50%;
  place-items: center;
  margin: 0 auto 14px;
  display: grid;
}

.confirm-icon.danger {
  color: #dc2626;
  background: #fef2f2;
}

[data-theme="dark"] .confirm-icon.danger {
  color: #f87171;
  background: #dc262626;
}

.confirm-title {
  color: var(--text);
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
}

.confirm-message {
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.5;
}

.confirm-extra {
  text-align: left;
  margin-top: 16px;
}

.confirm-modal .modal-foot {
  justify-content: center;
}

.confirm-check {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 12.5px;
  display: flex;
}

.field {
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
  display: flex;
}

.field-row {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  display: grid;
}

.label {
  color: var(--text-2);
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
}

.label .req {
  color: #dc2626;
}

.hint {
  color: var(--text-3);
  font-size: 11px;
}

.input, .select, .textarea {
  min-height: var(--ctl-h);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  background: var(--surface);
  outline: none;
  width: 100%;
  padding: 6px 10px;
  font-size: 13px;
  transition: border-color 80ms, box-shadow 80ms;
}

.textarea {
  min-height: 80px;
}

.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #2563eb1f;
}

.textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.select {
  appearance: none;
  background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M2 4l3 3 3-3' stroke='%2371717a' stroke-width='1.25' fill='none' stroke-linecap='round'/></svg>") no-repeat right 10px center;
  padding-right: 28px;
}

.input.invalid, .select.invalid, .textarea.invalid {
  border-color: #dc2626;
}

.field-err {
  color: #dc2626;
  margin-top: -2px;
  font-size: 11px;
}

.radio-row {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.radio-chip {
  height: var(--ctl-h);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  transition: all 80ms;
  display: inline-flex;
}

.radio-chip:hover {
  background: var(--hover);
}

.radio-chip.on {
  border-color: var(--text);
  color: var(--text);
  background: var(--surface-2);
}

.dropzone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-md);
  text-align: center;
  color: var(--text-3);
  background: var(--bg);
  cursor: pointer;
  padding: 20px;
  font-size: 12px;
  transition: all 80ms;
}

.dropzone:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.detail {
  grid-template-columns: 1fr 320px;
  align-items: start;
  gap: 20px;
  display: grid;
}

.detail-main {
  min-width: 0;
}

.detail-side {
  top: calc(var(--topbar-h) + 20px);
  position: sticky;
}

.meta-list {
  flex-direction: column;
  display: flex;
}

.meta-row {
  border-bottom: 1px solid var(--border);
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 14px;
  display: grid;
}

.meta-row:last-child {
  border-bottom: none;
}

.meta-label {
  color: var(--text-3);
  font-size: 12px;
}

.meta-value {
  color: var(--text);
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  display: flex;
}

.timeline {
  flex-direction: column;
  gap: 18px;
  display: flex;
}

.tl-item {
  grid-template-columns: 28px 1fr;
  gap: 10px;
  display: grid;
  position: relative;
}

.tl-item:before {
  content: "";
  background: var(--border);
  width: 1.5px;
  position: absolute;
  top: 28px;
  bottom: -18px;
  left: 13px;
}

.tl-item:last-child:before {
  display: none;
}

.tl-item.unread {
  background: var(--accent-soft);
  box-shadow: inset 2px 0 0 var(--accent);
  border-radius: 8px;
  margin: -6px -8px;
  padding: 6px 8px;
}

.tl-dot {
  background: var(--surface-2);
  width: 28px;
  height: 28px;
  color: var(--text-3);
  border: 1.5px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border);
  z-index: 1;
  border-radius: 50%;
  place-items: center;
  display: grid;
}

.tl-body {
  min-width: 0;
  padding-top: 4px;
  font-size: 13px;
}

.tl-meta {
  color: var(--text-3);
  margin-bottom: 4px;
  font-size: 12px;
}

.tl-meta strong {
  color: var(--text);
  font-weight: 500;
}

.tl-comment {
  background: var(--surface-2);
  border-radius: var(--r);
  color: var(--text-2);
  margin-top: 4px;
  padding: 10px 12px;
}

.composer {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color 80ms;
  overflow: hidden;
}

.composer:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #2563eb14;
}

.composer textarea {
  resize: vertical;
  border: none;
  outline: none;
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
}

.composer-actions {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  gap: 4px;
  padding: 6px 8px;
  display: flex;
}

.composer-actions .btn {
  margin-left: auto;
}

.attach-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  display: grid;
}

.attach {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  flex-direction: column;
  display: flex;
  overflow: hidden;
}

.attach .attach-preview {
  background: var(--surface-2);
  height: 110px;
  color: var(--text-3);
  cursor: pointer;
  flex-shrink: 0;
  place-items: center;
  display: grid;
}

.attach-preview img, .attach-preview video {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.attach-preview iframe {
  pointer-events: none;
  border: none;
  width: 100%;
  height: 100%;
}

.attach-info {
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  display: flex;
}

.attach-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
}

.attach-size {
  color: var(--text-3);
  font-size: 11px;
  font-family: var(--font-geist-mono), monospace;
}

.empty {
  text-align: center;
  color: var(--text-3);
  padding: 48px 24px;
}

.empty-icon {
  background: var(--surface-2);
  width: 44px;
  height: 44px;
  color: var(--text-4);
  border-radius: 10px;
  place-items: center;
  margin: 0 auto 10px;
  display: grid;
}

.empty-title {
  color: var(--text);
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
}

.empty-sub {
  max-width: 320px;
  margin: 0 auto 14px;
  font-size: 13px;
}

.settings-grid {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  display: grid;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  display: grid;
}

.grid-3-1 {
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  display: grid;
}

.chart {
  padding: 8px 4px;
}

.chart svg {
  width: 100%;
  height: 200px;
  display: block;
}

.bar-list {
  flex-direction: column;
  gap: 10px;
  padding: 4px 0;
  display: flex;
}

.bar-row {
  grid-template-columns: 84px 1fr 36px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  display: grid;
}

.bar-row .bar-lbl {
  color: var(--text-2);
  align-items: center;
  gap: 6px;
  display: flex;
}

.bar-row .bar-track {
  background: var(--surface-2);
  border-radius: 4px;
  height: 8px;
  position: relative;
  overflow: hidden;
}

.bar-row .bar-fill {
  border-radius: 4px;
  height: 100%;
  transition: width .3s;
}

.bar-row .bar-num {
  font-family: var(--font-geist-mono), monospace;
  color: var(--text-3);
  text-align: right;
}

.link {
  color: var(--accent);
  cursor: pointer;
  font-weight: 500;
}

.link:hover {
  text-decoration: underline;
}

.matrix-wrap {
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
}

.matrix {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  min-width: fit-content;
  overflow: hidden;
}

.matrix-row {
  grid-template-columns: var(--matrix-cols, 1fr repeat(4, 90px));
  border-bottom: 1px solid var(--border);
  display: grid;
}

.matrix-row:last-child {
  border-bottom: none;
}

.matrix-row.head {
  background: var(--surface-2);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 500;
}

.matrix-row > div {
  border-right: 1px solid var(--border);
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  display: flex;
}

.matrix-row > div:first-child {
  justify-content: flex-start;
}

.matrix-row > div:last-child {
  border-right: none;
}

.matrix-row .mx-label {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.matrix-cell {
  cursor: pointer;
  color: var(--text-2);
  justify-content: center;
  font-size: 12px;
  transition: background 80ms;
}

.matrix-cell:hover {
  background: var(--hover);
}

.tabbar {
  border-bottom: 1px solid var(--border);
  gap: 2px;
  margin-bottom: 14px;
  display: flex;
}

.tab {
  color: var(--text-3);
  cursor: pointer;
  border-bottom: 2px solid #0000;
  align-items: center;
  gap: 6px;
  margin-bottom: -1px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
}

.tab:hover {
  color: var(--text-2);
}

.tab.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

.tab .tab-count {
  background: var(--surface-2);
  font-family: var(--font-geist-mono), monospace;
  color: var(--text-3);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
}

.tab.active .tab-count {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.view-switch {
  height: var(--ctl-h);
  background: var(--surface-2);
  border-radius: var(--r);
  align-items: center;
  padding: 2px;
  display: inline-flex;
}

.view-switch button {
  height: calc(var(--ctl-h) - 4px);
  color: var(--text-3);
  border-radius: var(--r-sm);
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
}

.view-switch button.on {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.theme-switch {
  background: var(--surface-2);
  border-radius: var(--r);
  padding: 2px;
  display: flex;
}

.theme-switch button {
  color: var(--text-3);
  border-radius: var(--r-sm);
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
}

.theme-switch button:hover {
  color: var(--text-2);
}

.theme-switch button.on {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.toast {
  background: var(--text);
  color: var(--bg);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
  z-index: 200;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  animation: .18s toast-in;
  display: flex;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 8px);
  }

  to {
    opacity: 1;
    transform: translate(-50%);
  }
}

.code-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  position: relative;
}

.code-block pre {
  font-family: var(--font-geist-mono), monospace;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
  padding: 14px 44px 14px 14px;
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
}

.code-copy {
  background: var(--surface);
  border: 1px solid var(--border);
  height: 24px;
  color: var(--text-3);
  border-radius: 6px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  font-size: 11px;
  display: inline-flex;
  position: absolute;
  top: 8px;
  right: 8px;
}

.code-copy:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.domain-chip-list {
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  display: flex;
}

.domain-chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  height: 24px;
  font-size: 12px;
  font-family: var(--font-geist-mono), monospace;
  color: var(--text-2);
  border-radius: 6px;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  display: inline-flex;
}

.domain-chip button {
  color: var(--text-3);
  font-size: 13px;
  line-height: 1;
}

.domain-chip button:hover {
  color: var(--p-urg-fg);
}

@keyframes spin {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes refresh-bar {
  0% {
    transform: translateX(-100%);
  }

  60% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(100%);
  }
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: none;
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border: 2px solid var(--bg);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-4);
}

.master-detail {
  grid-template-columns: 280px 1fr;
  align-items: start;
  gap: 14px;
  max-width: 960px;
  display: grid;
}

.mobile-filter-toggle {
  display: none;
}

.mobile-menu-btn {
  border-radius: var(--r);
  width: 32px;
  height: 32px;
  color: var(--text-2);
  flex-shrink: 0;
  place-items: center;
  display: none;
}

.mobile-menu-btn:hover {
  background: var(--hover);
}

.sidebar-overlay {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: 99;
  background: #18181b80;
  display: none;
  position: fixed;
  inset: 0;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: grid;
  }

  .app, .app.collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: var(--sidebar-w);
    z-index: 100;
    transition: transform .2s;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
  }

  .app.mobile-open .sidebar {
    transform: translateX(0);
  }

  .app.mobile-open .sidebar-overlay {
    display: block;
  }

  .app.collapsed .sidebar {
    width: var(--sidebar-w);
  }

  .app.collapsed .brand-name, .app.collapsed .brand-env, .app.collapsed .sidebar-section-label, .app.collapsed .nav-label, .app.collapsed .nav-count, .app.collapsed .foot-label, .app.collapsed .sidebar-user-info {
    display: revert;
  }

  .app.collapsed .nav-item {
    justify-content: flex-start;
    padding: 6px 8px;
  }

  .app.collapsed .sidebar-brand {
    padding: 0 14px;
  }

  .app.collapsed .sidebar-foot {
    align-items: stretch;
    padding: 10px 8px;
  }

  .app.collapsed .foot-row {
    justify-content: flex-start;
  }

  .app.collapsed .sidebar-user {
    justify-content: flex-start;
    margin: 0 8px 6px;
    padding: 10px 14px;
  }

  .topbar {
    gap: 8px;
    padding: 0 12px;
  }

  .search-global {
    display: none;
  }

  .topbar-right {
    margin-left: auto;
  }

  .breadcrumb {
    font-size: 12px;
  }

  .page {
    padding: 16px 14px 32px;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-title {
    font-size: 18px;
  }

  .page-actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .metric {
    padding: 12px 14px;
  }

  .metric-value {
    font-size: 20px;
  }

  .grid-2, .grid-3-1, .settings-grid, .detail {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

  .master-detail {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .tbl-wrap {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
  }

  .tbl {
    min-width: 720px;
  }

  .pop {
    max-width: calc(100vw - 24px);
  }

  .pop-notif {
    width: calc(100vw - 24px);
    min-width: 0;
  }

  .search-input {
    flex: auto;
    min-width: 0;
    max-width: none;
  }

  .bar-row {
    grid-template-columns: 1fr;
  }

  .kanban-grid {
    scroll-snap-type: x mandatory;
    grid-auto-columns: minmax(82vw, 1fr);
    grid-auto-flow: column;
    grid-template-columns: none !important;
  }

  .kanban-grid > div {
    scroll-snap-align: start;
  }

  :root {
    --ctl-h: var(--ctl-h-lg);
    --ctl-h-sm: 34px;
  }

  .card-head {
    flex-wrap: wrap;
    gap: 8px;
  }

  .matrix-wrap {
    margin: 0 -14px;
    padding: 0 14px;
  }

  .matrix {
    min-width: 520px;
  }

  .meta-row {
    grid-template-columns: 1fr;
    gap: 2px;
    min-height: auto;
  }

  .meta-label {
    font-size: 11px;
  }

  .filters-bar {
    display: none;
  }

  .filters-bar.mobile-open {
    flex-wrap: wrap;
    display: flex;
  }

  .mobile-filter-toggle {
    display: inline-flex;
  }

  .modal-scrim {
    padding: 12px;
  }

  .modal {
    max-height: 95vh;
  }

  .modal-body {
    padding: 14px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
  }
}

.builder-root {
  height: calc(100vh - var(--topbar-h));
  flex-direction: column;
  display: flex;
}

.builder-root.fullscreen {
  z-index: 100;
  background: var(--bg);
  height: 100vh;
  position: fixed;
  inset: 0;
}

@media (max-width: 900px) {
  .builder-body {
    flex-direction: column;
  }

  .builder-palette {
    border-bottom: 1px solid var(--border);
    align-items: center;
    overflow-x: auto;
    border-right: none !important;
    flex-direction: row !important;
    width: 100% !important;
  }

  .builder-palette p, .builder-palette hr {
    display: none;
  }

  .builder-palette button {
    flex-shrink: 0;
  }

  .builder-config-panel {
    border-top: 1px solid var(--border);
    max-height: 60vh;
    box-shadow: var(--shadow-pop);
    z-index: 101;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-left: none !important;
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .topbar-right {
    gap: 2px;
  }
}

@page {
  size: A4 portrait;
  margin: 14mm 12mm 16mm;
}

@media print {
  :root {
    --bg: #fff;
    --surface: #fff;
    --surface-2: #f5f5f5;
    --hover: #f4f4f5;
    --border: #d4d4d8;
    --border-strong: #a1a1aa;
    --text: #000;
    --text-2: #27272a;
    --text-3: #52525b;
    --text-4: #71717a;
    --ch-1: #2563eb;
    --ch-2: #0d9488;
    --ch-3: #d97706;
    --ch-4: #7c3aed;
    --ch-5: #dc2626;
    --ch-6: #0891b2;
    --ch-7: #65a30d;
    --ch-8: #db2777;
  }

  html, body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .sidebar, .topbar, .page-actions, .composer, .sidebar-overlay, .detail-side .btn, #activity-timeline .composer, .report-controls, .report-actions {
    display: none !important;
  }

  .app, .detail {
    grid-template-columns: 1fr !important;
  }

  .page {
    padding: 0 !important;
  }

  body {
    color: #000 !important;
    background: #fff !important;
  }

  .report-print-header {
    border-bottom: 1px solid #d4d4d8;
    margin-bottom: 6mm;
    padding-bottom: 6mm;
    display: block !important;
  }

  .report-print-footer {
    color: #71717a;
    border-top: 1px solid #d4d4d8;
    margin-top: 8mm;
    padding-top: 4mm;
    font-size: 10px;
    display: block !important;
  }

  .card, .metric {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none !important;
  }

  .report-section {
    break-inside: avoid-page;
  }

  .report-section + .report-section {
    margin-top: 8mm !important;
  }

  .report-page-break {
    break-before: page;
  }

  .metric-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  .grid-2, .grid-3-1 {
    grid-template-columns: 1fr 1fr !important;
  }

  .report-chart svg, .chart svg {
    max-width: 100% !important;
    height: auto !important;
  }

  svg text {
    fill: #27272a !important;
  }

  a[href]:after {
    content: none !important;
  }
}

.help-search-wrap {
  height: var(--ctl-h-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  color: var(--text-3);
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 0 12px;
  display: flex;
}

.help-search-wrap:focus-within {
  border-color: var(--accent);
  color: var(--text);
}

.help-search-input {
  color: var(--text);
  background: none;
  border: none;
  outline: none;
  flex: 1;
  font-size: 13px;
}

.help-search-input::placeholder {
  color: var(--text-3);
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.help-filter-chips {
  gap: 6px;
  margin-bottom: 16px;
  display: flex;
}

.help-filter-chip {
  height: var(--ctl-h-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
}

.help-filter-chip:hover {
  background: var(--hover);
}

.help-filter-chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.help-count {
  color: var(--text-3);
  margin-bottom: 10px;
  font-size: 12px;
}

.help-hub-grid {
  flex-direction: column;
  gap: 24px;
  display: flex;
}

.help-cat-title {
  color: var(--text);
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
}

.help-cat-cards {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  display: grid;
}

.help-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  color: inherit;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  text-decoration: none;
  transition: background 80ms, border-color 80ms;
  display: flex;
}

.help-card:hover {
  background: var(--hover);
  border-color: var(--border-strong);
}

.help-card-icon {
  border-radius: var(--r-md);
  background: var(--surface-2);
  width: 30px;
  height: 30px;
  color: var(--text-2);
  flex-shrink: 0;
  place-items: center;
  display: grid;
}

.help-card-body {
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  display: flex;
}

.help-card-title {
  color: var(--text);
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.help-card-sum {
  color: var(--text-3);
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.help-results {
  flex-direction: column;
  gap: 8px;
  display: flex;
}

.help-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: inherit;
  padding: 12px 14px;
  text-decoration: none;
  display: block;
}

.help-result:hover {
  background: var(--hover);
}

.help-result-head {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  display: flex;
}

.help-result-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.help-cat-chip {
  color: var(--text-3);
  background: var(--surface-2);
  border-radius: 999px;
  flex-shrink: 0;
  padding: 1px 8px;
  font-size: 10.5px;
}

.help-result-snippet {
  color: var(--text-3);
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
}

.help-mark {
  background: var(--accent-soft);
  color: var(--accent-text);
  border-radius: 3px;
  padding: 0 1px;
}

.help-article-layout {
  grid-template-columns: 240px 1fr;
  align-items: start;
  gap: 20px;
  display: grid;
}

.help-article-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  display: flex;
  position: sticky;
  top: 16px;
}

.help-back-link {
  color: var(--text-2);
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  padding: 6px 8px;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  display: flex;
}

.help-back-link:hover {
  color: var(--text);
}

.help-article-search-wrap {
  height: var(--ctl-h);
  margin: 0 0 6px;
}

.help-nav-results {
  flex-direction: column;
  gap: 2px;
  max-height: 200px;
  margin-bottom: 6px;
  display: flex;
  overflow-y: auto;
}

.help-toc-title {
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-3);
  padding: 6px 8px 4px;
  font-size: 11px;
  font-weight: 600;
}

.help-toc-item {
  border-radius: var(--r);
  color: var(--text-2);
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 12.5px;
  text-decoration: none;
  display: flex;
}

.help-toc-item:hover {
  background: var(--hover);
  color: var(--text);
}

.help-toc-item svg {
  color: var(--text-3);
  flex-shrink: 0;
}

.help-toc-item[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
}

.help-toc-item[aria-current="page"] svg {
  color: var(--accent-text);
}

.help-content {
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  display: flex;
}

.help-empty {
  text-align: center;
  color: var(--text-3);
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px;
  font-size: 13px;
  display: flex;
}

.help-section-title {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.help-section-title svg {
  color: var(--text-3);
  flex-shrink: 0;
}

.help-badge {
  letter-spacing: .02em;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 10.5px;
  font-weight: 600;
}

.help-badge-admin {
  background: var(--p-high-bg);
  color: var(--p-high-fg);
}

.help-badge-dev {
  background: var(--hover);
  color: var(--text-2);
}

.help-section-body {
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.help-goal {
  color: var(--text);
  background: var(--surface-2);
  border-radius: var(--r-md);
  border-left: 3px solid var(--accent);
  margin: 0;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.6;
}

.help-p {
  color: var(--text-2);
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

.help-sub {
  color: var(--text);
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  scroll-margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
}

.help-anchor-btn {
  width: 20px;
  height: 20px;
  color: var(--text-3);
  border-radius: var(--r);
  cursor: pointer;
  opacity: 0;
  background: none;
  border: none;
  justify-content: center;
  align-items: center;
  transition: opacity 80ms;
  display: inline-flex;
}

.help-sub:hover .help-anchor-btn, .help-anchor-btn:focus-visible {
  opacity: 1;
}

.help-anchor-btn:hover {
  background: var(--hover);
  color: var(--text);
}

.help-steps, .help-list {
  color: var(--text-2);
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.6;
  display: flex;
}

.help-inline-code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-family: var(--font-mono), monospace;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 12px;
}

.help-callout {
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  display: flex;
}

.help-callout p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
}

.help-callout svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.help-callout-note {
  background: var(--surface-2);
  color: var(--text-2);
}

.help-callout-note svg {
  color: var(--accent);
}

.help-callout-warn {
  background: var(--p-urg-bg);
  color: var(--p-urg-fg);
  border-color: #0000;
}

.help-callout-warn svg {
  color: var(--p-urg-fg);
}

.help-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow-x: auto;
}

.help-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12.5px;
}

.help-table th, .help-table td {
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  padding: 8px 10px;
}

.help-table th {
  background: var(--surface-2);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 11px;
  font-weight: 600;
}

.help-table tr:last-child td {
  border-bottom: none;
}

.help-kbd {
  flex-direction: column;
  gap: 10px;
  margin: 0;
  display: flex;
}

.help-kbd-row {
  align-items: center;
  gap: 12px;
  display: flex;
}

.help-kbd-row dt {
  flex-shrink: 0;
  align-items: center;
  min-width: 90px;
  display: flex;
}

.help-kbd-row dd {
  color: var(--text-2);
  margin: 0;
  font-size: 13px;
}

.help-kbd-key {
  min-width: 22px;
  height: 22px;
  font-family: var(--font-mono), monospace;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  box-shadow: 0 1px 0 var(--border-strong);
  border-radius: 5px;
  justify-content: center;
  align-items: center;
  padding: 0 6px;
  font-size: 12px;
  display: inline-flex;
}

.help-kbd-plus {
  color: var(--text-3);
  margin: 0 3px;
  font-size: 11px;
}

.help-defs {
  flex-direction: column;
  gap: 10px;
  margin: 0;
  display: flex;
}

.help-defs-row dt {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.help-defs-row dd {
  color: var(--text-2);
  margin: 2px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
}

.help-faq {
  flex-direction: column;
  gap: 14px;
  display: flex;
}

.help-faq-q {
  color: var(--text);
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 600;
}

.help-related-list {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  display: grid;
}

.help-related-card {
  padding: 10px;
}

.help-prevnext {
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  display: flex;
}

.help-prevnext-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-2);
  flex: 1;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  font-size: 12.5px;
  text-decoration: none;
  display: flex;
}

.help-prevnext-item:hover {
  background: var(--hover);
  color: var(--text);
}

.help-prevnext-next {
  text-align: right;
  justify-content: flex-end;
}

.help-prevnext-label {
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--text-3);
  font-size: 10.5px;
  display: block;
}

.help-prevnext-item span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.help-hint-btn {
  color: var(--text-3);
}

.help-hint-btn:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .help-article-layout {
    grid-template-columns: 1fr;
  }

  .help-article-nav {
    position: static;
  }

  .help-toc-item span {
    display: block;
  }

  .help-hub-grid {
    gap: 18px;
  }

  .help-cat-cards, .help-related-list {
    grid-template-columns: 1fr;
  }
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-ordinal {
  syntax: "*";
  inherits: false
}

@property --tw-slashed-zero {
  syntax: "*";
  inherits: false
}

@property --tw-numeric-figure {
  syntax: "*";
  inherits: false
}

@property --tw-numeric-spacing {
  syntax: "*";
  inherits: false
}

@property --tw-numeric-fraction {
  syntax: "*";
  inherits: false
}

@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}

@property --tw-ease {
  syntax: "*";
  inherits: false
}

/*# sourceMappingURL=%5Broot-of-the-server%5D__0r2b0xf._.css.map*/